{ "version": 3, "sources": ["src/app/shared/services/previous-route.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class PreviousRouteService {\n private previousUrl: string;\n private currentUrl: string;\n\n constructor(private readonly router: Router) {\n this.currentUrl = this.router.url;\n router.events.subscribe((event) => {\n if (event instanceof NavigationEnd) {\n this.previousUrl = this.currentUrl;\n this.currentUrl = event.url;\n }\n });\n }\n\n public getPreviousUrl() {\n return this.previousUrl;\n }\n\n public getCurrentUrl() {\n return this.currentUrl;\n }\n}\n"], "mappings": ";;;;;;;;;;AAMM,IAAO,uBAAP,MAAO,sBAAoB;EAI/B,YAA6B,QAAc;AAAd,SAAA,SAAA;AAC3B,SAAK,aAAa,KAAK,OAAO;AAC9B,WAAO,OAAO,UAAU,CAAC,UAAS;AAChC,UAAI,iBAAiB,eAAe;AAClC,aAAK,cAAc,KAAK;AACxB,aAAK,aAAa,MAAM;MAC1B;IACF,CAAC;EACH;EAEO,iBAAc;AACnB,WAAO,KAAK;EACd;EAEO,gBAAa;AAClB,WAAO,KAAK;EACd;;;uCApBW,uBAAoB,mBAAA,MAAA,CAAA;IAAA;EAAA;;4EAApB,uBAAoB,SAApB,sBAAoB,WAAA,YAFnB,OAAM,CAAA;EAAA;;", "names": [] }