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AAG,EAAE,CACjB,8VAA8C,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;KAC3E;IACD,IAAI;IACJ,oBAAoB;IACpB,wBAAwB;IACxB,+DAA+D;IAC/D,8BAA8B;IAC9B,SAAS;IACT,KAAK;IACL;QACE,IAAI,EAAE,WAAW;QACjB,UAAU,EAAE,qBAAqB;QACjC,SAAS,EAAE,MAAM;KAClB;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAE,GAAG,EAAE,CACjB,kXAAwD,CAAC,IAAI,CAC3D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CACzB;KACJ;CACF,CAAC;AAEF,iEAAe,MAAM,EAAC;;;;;;;;;;;;;;;;;AClCyB;AAGF;AACY;AAEzD,IAAI,6EAAsB,EAAE;IAC1B,6DAAc,EAAE,CAAC;CAClB;AAED,wEAAwB,CAAC,eAAe,CAAC,sDAAS,CAAC;KAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC","sources":["./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/services/analytics/data-layer.service.ts","./src/environments/environment.ts","./src/environments/routing.ts","./src/main.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { PreloadAllModules, RouterModule, Routes } from '@angular/router';\nimport ROUTES from 'src/environments/routing';\n\nconst routes: Routes = ROUTES;\n\n@NgModule({\n imports: [\n RouterModule.forRoot(routes, {\n preloadingStrategy: PreloadAllModules,\n scrollPositionRestoration: 'enabled',\n }),\n ],\n exports: [RouterModule],\n})\nexport class AppRoutingModule {}\n","import { Component } from '@angular/core';\nimport { Router, Event, NavigationEnd } from '@angular/router';\nimport { Title } from '@angular/platform-browser';\n\nimport { DataLayerService } from './services/analytics/data-layer.service';\nimport { environment } from 'src/environments/environment';\n\ndeclare let fbq: Function;\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.scss'],\n})\nexport class AppComponent {\n title = 'loan-application-form';\n\n constructor(\n private router: Router,\n private dataLayerService: DataLayerService,\n private titleService: Title\n ) {\n this.router.events.subscribe((event: Event) => {\n if (event instanceof NavigationEnd) {\n // Only trigger in production.\n if (environment.production) {\n this.dataLayerService.logPageView(\n event.url,\n this.titleService.getTitle()\n );\n\n fbq('track', 'PageView');\n }\n }\n });\n }\n}\n","\n","import { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { HttpClientModule } from '@angular/common/http';\n\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n declarations: [AppComponent],\n imports: [BrowserModule, AppRoutingModule, HttpClientModule],\n providers: [],\n bootstrap: [AppComponent],\n})\nexport class AppModule {}\n","import { Injectable } from '@angular/core';\nimport { EngagementPath } from './data-layer.model';\n\n/**\n * Google Tag Manager (GTM) service to send events for Google tag detection.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DataLayerService {\n get windowRef(): any {\n return window;\n }\n\n constructor() {}\n\n private pushOnDataLayer(object: any) {\n if (object) {\n const dataLayer = this.windowRef.dataLayer;\n\n if (dataLayer) {\n dataLayer.push(object);\n }\n }\n }\n\n /**\n * User engagement by page path.\n *\n * @param url Page path.\n * @param title Page title (optional).\n */\n logPageView(url: string, title?: string) {\n const event: EngagementPath = {\n event: 'page_view',\n pagePath: url,\n };\n\n if (title) {\n event.pageTitle = title;\n }\n\n this.pushOnDataLayer(event);\n }\n\n /**\n * Log a custom event with an event, category, action, and label.\n */\n logEvent(event: string, category: string, action: string, label: string) {\n this.pushOnDataLayer({\n event,\n category,\n action,\n label,\n });\n }\n}\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false,\n apiUrl: '/api/',\n // Use when testing the loan app locally.\n //apiUrl: 'https://eagleaccount.rhdev1901.redhawk-tech.net/api/',\n // Use when testing the furniture app locally.\n //apiUrl: 'https://simsaccount.rhdev1901.redhawk-tech.net/api/',\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\n","import { Routes } from '@angular/router';\n\nconst ROUTES: Routes = [\n {\n path: '',\n redirectTo: 'loan',\n pathMatch: 'full',\n },\n {\n path: 'loan',\n loadChildren: () =>\n import('../../src/app/views/loan/loan.module').then((m) => m.LoanModule),\n },\n // {\n // path: 'retail',\n // loadChildren: () =>\n // import('../../src/app/views/retail/retail.module').then(\n // (m) => m.RetailModule\n // ),\n // },\n {\n path: 'furniture',\n redirectTo: 'furniture/applicant',\n pathMatch: 'full',\n },\n {\n path: 'furniture/applicant',\n loadChildren: () =>\n import('../../src/app/views/furniture/furniture.module').then(\n (m) => m.FurnitureModule\n ),\n },\n];\n\nexport default ROUTES;\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.error(err));\n"],"names":[],"sourceRoot":"webpack:///"}