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AAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAC7F,mDAAG,CAAC,QAAQ,CAAC,EAAE;YACX,OAAoB,QAAQ,CAAC;QACjC,CAAC,CAAC,CACL,CAAC;IACN,CAAC;IAEM,WAAW;QAEd,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,EACnB;YACI,OAAO,wCAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC5B;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CACtB,qDAAK,EAAE,CACV,CAAC;IACN,CAAC;;8EAxBQ,eAAe;gHAAf,eAAe,WAAf,eAAe;;;;;;;;;;;;;;;;ACNmB;AAGF;AAE7C,+BAA+B;AAC7B,6DAAc,EAAE,CAAC;AACnB,GAAG;AAEH,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/app-insights.service.ts","./src/app/services/brand.service.ts","./src/app/services/loading-indicator.interceptor.ts","./src/app/services/loading-indicator.service.ts","./src/app/services/settings.service.ts","./src/main.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nconst routes: Routes = [\r\n { path: '', redirectTo: '/customer-registration', pathMatch: 'full' },\r\n { path: 'customer-registration', loadChildren: () => import('./customer-registration/customer-registration.module').then(m => m.CustomerRegistrationModule) }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy', enableTracing: true })],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import { AfterViewChecked, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\nimport { AdalService } from 'adal-angular4';\r\nimport { Subject } from 'rxjs';\r\nimport { takeUntil } from 'rxjs/operators';\r\nimport { AppInsightsService } from './services/app-insights.service';\r\nimport { LoadingIndicatorService } from './services/loading-indicator.service';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent implements OnInit, OnDestroy, AfterViewChecked {\r\n\r\n loading = false;\r\n private unsubscribe$ = new Subject();\r\n\r\n constructor(private loadingIndicatorService: LoadingIndicatorService, private cdr: ChangeDetectorRef,\r\n private router: Router, private appInsightsService: AppInsightsService) {}\r\n\r\n ngOnInit() {\r\n // log page views to app insights\r\n this.router.events\r\n .pipe(takeUntil(this.unsubscribe$))\r\n .subscribe(event => {\r\n if (event instanceof NavigationEnd) {\r\n this.appInsightsService.logPageView(event.urlAfterRedirects, event.urlAfterRedirects);\r\n }\r\n });\r\n }\r\n\r\n ngAfterViewChecked() {\r\n this.loadingIndicatorService.loading\r\n .pipe(takeUntil(this.unsubscribe$))\r\n .subscribe(loading => {\r\n this.loading = loading;\r\n });\r\n this.cdr.detectChanges();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.unsubscribe$.next();\r\n this.unsubscribe$.complete();\r\n }\r\n}\r\n","
\r\n
\r\n \r\n
\r\n
\r\n\r\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule, APP_INITIALIZER } from '@angular/core';\r\n\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { CollapseModule } from 'ngx-bootstrap/collapse';\r\nimport { TypeaheadModule } from 'ngx-bootstrap/typeahead';\r\nimport { AlertModule } from 'ngx-bootstrap/alert';\r\nimport { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';\r\nimport { LoadingIndicatorInterceptor } from './services/loading-indicator.interceptor';\r\nimport { LoadingIndicatorService } from './services/loading-indicator.service';\r\nimport { AdalService } from 'adal-angular4';\r\nimport { SettingsService } from './services/settings.service';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { BrandService } from './services/brand.service';\r\n\r\nconst initSettings = (settingsService: SettingsService) => {\r\n return () => settingsService.getSettings().toPromise();\r\n}\r\n\r\nconst initBrandConfig = (brandService: BrandService) => {\r\n return () => {\r\n brandService.setBrandSpecificConfiguration();\r\n return Promise.resolve();\r\n }\r\n}\r\n@NgModule({\r\n declarations: [\r\n AppComponent\r\n ],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n BrowserAnimationsModule,\r\n HttpClientModule,\r\n CollapseModule.forRoot(),\r\n TypeaheadModule.forRoot(),\r\n AlertModule.forRoot(),\r\n FontAwesomeModule\r\n ],\r\n providers: [\r\n { \r\n provide: APP_INITIALIZER,\r\n useFactory: initSettings,\r\n deps: [SettingsService],\r\n multi: true\r\n },\r\n { \r\n provide: APP_INITIALIZER,\r\n useFactory: initBrandConfig,\r\n deps: [BrandService],\r\n multi: true\r\n },\r\n SettingsService,\r\n BrandService,\r\n AdalService,\r\n LoadingIndicatorService,\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: LoadingIndicatorInterceptor,\r\n multi: true\r\n }\r\n ],\r\n bootstrap: [AppComponent]\r\n\r\n})\r\nexport class AppModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { AppInsights, Microsoft } from 'applicationinsights-js';\r\n\r\nimport { SettingsService } from './settings.service';\r\n\r\n// methods checking for instrumentationKey are logging to console instead if one does not exist. This is intended for local logging\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppInsightsService {\r\n private config: Microsoft.ApplicationInsights.IConfig;\r\n\r\n constructor(private settingsService: SettingsService) {\r\n // only instantiate app insights if the instrumentationKey exists\r\n this.settingsService.getSettings().subscribe(settings => \r\n {\r\n if (!AppInsights.config && settings.applicationInsights.instrumentationKey) {\r\n this.config = {\r\n instrumentationKey: settings.applicationInsights.instrumentationKey\r\n };\r\n AppInsights.downloadAndSetup(this.config);\r\n AppInsights.queue.push(() => {\r\n AppInsights.context.addTelemetryInitializer(this.customTelemetry);\r\n });\r\n }\r\n });\r\n }\r\n\r\n logPageView(name?: string, url?: string, properties?: any, measurements?: any, duration?: number) {\r\n if (this.config) {\r\n this.setUser();\r\n AppInsights.trackPageView(name, url, properties, measurements, duration);\r\n } else {\r\n // name and url are the same at this time so only logging url\r\n console.log(url, properties, measurements, duration);\r\n }\r\n }\r\n\r\n logEvent(name: string, properties?: any, measurements?: any) {\r\n if (this.config) {\r\n this.setUser();\r\n AppInsights.trackEvent(name, properties, measurements);\r\n } else {\r\n console.log(name, properties, measurements);\r\n }\r\n }\r\n\r\n logException(exception: Error, isHttpErrorResponse: boolean, handledAt?: string, properties?: any, measurements?: any) {\r\n if (this.config) {\r\n this.setUser();\r\n AppInsights.trackException(exception, handledAt, properties, measurements);\r\n\r\n // log the error to the console if its not an http error response\r\n if (!isHttpErrorResponse) {\r\n console.error(exception);\r\n }\r\n } else {\r\n console.group(exception.name);\r\n console.error(exception.message);\r\n console.error(exception.stack);\r\n console.warn(handledAt);\r\n console.groupEnd();\r\n }\r\n }\r\n\r\n logTrace(message: string, properties?: any, severityLevel?: any) {\r\n if (this.config) {\r\n this.setUser();\r\n AppInsights.trackTrace(message, properties, severityLevel);\r\n } else {\r\n console.log(message, properties, severityLevel);\r\n }\r\n }\r\n\r\n // No authentication in place currently\r\n setUser() {\r\n AppInsights.clearAuthenticatedUserContext();\r\n }\r\n\r\n customTelemetry(envelope: any) {\r\n const item = envelope.data.baseData;\r\n item.properties = item.properties || {};\r\n item.properties.Role = 'REGCARD';\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\n\r\n@Injectable()\r\nexport class BrandService {\r\n public apiBrandName: string;\r\n public displayBrandName: string;\r\n public brand: string;\r\n\r\n constructor() {\r\n\r\n }\r\n\r\n /**\r\n * Add brand specific link and meta tags based on the search param 'brand' or hostname in the url\r\n * Add brand specific class to body tag\r\n * Set display brand name and brand in environment constant\r\n */\r\n public setBrandSpecificConfiguration(): void {\r\n // get the brand from the hostname and the search param 'brand'\r\n const hostname = window.location.hostname.toLowerCase();\r\n const url = new URL(window.location.href);\r\n const searchParamBrandName = url.searchParams.get('brand');\r\n\r\n // default brandname to pulte\r\n let brandName = 'pulte';\r\n\r\n // set brand name based on search params if they exist. otherwise, use hostname\r\n if (searchParamBrandName) {\r\n brandName = this.getBrandName(searchParamBrandName);\r\n } else {\r\n brandName = this.getBrandName(hostname);\r\n }\r\n\r\n // set environment brand display name\r\n this.setEnvironmentBrand(brandName);\r\n\r\n // add the brand-{brand} class to the body element where {brand} is the brand name\r\n document.getElementsByTagName('body')[0].className += 'brand-' + brandName;\r\n\r\n // array of link tags\r\n const linkTags = [\r\n {\r\n rel: 'apple-touch-icon',\r\n sizes: '180x180',\r\n href: '/assets/' + brandName + '/favicon/apple-touch-icon-180x180.png'\r\n },\r\n {\r\n rel: 'apple-touch-icon',\r\n sizes: '144x144',\r\n href: '/assets/' + brandName + '/favicon/apple-touch-icon-144x144.png'\r\n },\r\n {\r\n rel: 'icon',\r\n type: 'image/png',\r\n sizes: '32x32',\r\n href: '/assets/' + brandName + '/favicon/favicon-32x32.png'\r\n },\r\n {\r\n rel: 'shortcut icon',\r\n href: '/assets/' + brandName + '/favicon/favicon.ico'\r\n },\r\n {\r\n rel: 'stylesheet'\r\n }\r\n ];\r\n\r\n // array of meta tags\r\n const metaTags = [\r\n {\r\n name: 'msapplication-TileImage',\r\n content: '/assets/' + brandName + '/favicon/mstile-144x144.png'\r\n }\r\n ];\r\n\r\n const head = document.getElementsByTagName('head')[0];\r\n\r\n // add link tags to head\r\n for (const linkTag of linkTags) {\r\n const link = document.createElement('link');\r\n\r\n if (linkTag.rel) {\r\n link.rel = linkTag.rel;\r\n }\r\n if (linkTag.type) {\r\n link.type = linkTag.type;\r\n }\r\n if (linkTag.sizes) {\r\n link.sizes.value = linkTag.sizes;\r\n }\r\n if (linkTag.href) {\r\n link.href = linkTag.href;\r\n }\r\n\r\n head.appendChild(link);\r\n }\r\n\r\n // add meta tags to head\r\n for (const metaTag of metaTags) {\r\n const meta = document.createElement('meta');\r\n\r\n if (metaTag.name) {\r\n meta.name = metaTag.name;\r\n }\r\n if (metaTag.content) {\r\n meta.content = metaTag.content;\r\n }\r\n\r\n head.appendChild(meta);\r\n }\r\n }\r\n\r\n // set brand name that will be used for display across the site in environment constant\r\n private setEnvironmentBrand(brandName: string): void {\r\n let displayBrandName: string;\r\n\r\n switch (brandName) {\r\n case 'pulte':\r\n displayBrandName = 'Pulte';\r\n break;\r\n case 'delwebb':\r\n displayBrandName = 'Del Webb';\r\n break;\r\n case 'centex':\r\n displayBrandName = 'Centex';\r\n break;\r\n case 'divosta':\r\n displayBrandName = 'DiVosta';\r\n break;\r\n case 'jw':\r\n displayBrandName = 'John Wieland';\r\n break;\r\n case 'americanwest' || 'americanwesthomes':\r\n displayBrandName = 'American West';\r\n break;\r\n default:\r\n displayBrandName = 'Pulte';\r\n break;\r\n }\r\n\r\n let apiBrandName: string = displayBrandName;\r\n\r\n switch (apiBrandName) {\r\n case 'John Wieland':\r\n apiBrandName = 'JW';\r\n break;\r\n case 'American West':\r\n apiBrandName = 'AmericanWest';\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n this.apiBrandName = apiBrandName;\r\n this.displayBrandName = displayBrandName;\r\n this.brand = brandName;\r\n }\r\n\r\n private getBrandName(value: string): string {\r\n let brandName: string;\r\n\r\n if (value === 'pulte' || value.includes('pulte')) {\r\n brandName = 'pulte';\r\n } else if (value === 'delwebb' || value.includes('delwebb')) {\r\n brandName = 'delwebb';\r\n } else if (value === 'centex' || value.includes('centex')) {\r\n brandName = 'centex';\r\n } else if (value === 'divosta' || value.includes('divosta')) {\r\n brandName = 'divosta';\r\n } else if (value === 'jw' || value.includes('jwhomes')) {\r\n brandName = 'jw';\r\n } else if (value === 'americanwest' || value.includes('americanwesthomes')) {\r\n brandName = 'americanwest';\r\n } else {\r\n brandName = 'pulte';\r\n }\r\n\r\n return brandName;\r\n }\r\n\r\n}","import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { finalize } from 'rxjs/operators';\r\nimport { LoadingIndicatorService } from './loading-indicator.service';\r\n\r\n@Injectable()\r\nexport class LoadingIndicatorInterceptor implements HttpInterceptor {\r\n\r\n constructor(private loadingIndicatorService: LoadingIndicatorService) { }\r\n\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n // emit onStarted event before request execution\r\n this.loadingIndicatorService.onStarted(req);\r\n\r\n return next\r\n .handle(req)\r\n .pipe( \r\n finalize(() => {\r\n this.loadingIndicatorService.onFinished(req);\r\n })\r\n )\r\n }\r\n}\r\n","import { HttpRequest } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class LoadingIndicatorService {\r\n\r\n loading = new Subject();\r\n\r\n // Stores all currently active requests\r\n private requests: HttpRequest[] = [];\r\n\r\n // Adds request to the storage and notifies observers\r\n onStarted(req: HttpRequest): void {\r\n this.loading.next(true);\r\n this.requests.push(req);\r\n }\r\n\r\n // Removes request from the storage and notifies observers\r\n onFinished(req: HttpRequest): void {\r\n const index = this.requests.indexOf(req);\r\n if (index !== -1) {\r\n this.requests.splice(index, 1);\r\n }\r\n if (this.requests.length <= 0) {\r\n this.loading.next(false);\r\n }\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { Observable, from, of } from \"rxjs\";\r\nimport { map, share } from \"rxjs/operators\";\r\nimport { Environment } from \"src/environments/environment\";\r\n\r\n@Injectable()\r\nexport class SettingsService \r\n{\r\n private settings: Environment;\r\n private settings$: Observable;\r\n\r\n constructor()\r\n {\r\n this.settings$ = from(fetch('./assets/environment/settings.json').then(resp => resp.json())).pipe(\r\n map(response => {\r\n return response;\r\n })\r\n );\r\n }\r\n\r\n public getSettings(): Observable\r\n {\r\n if (!!this.settings) \r\n {\r\n return of(this.settings);\r\n } \r\n\r\n return this.settings$.pipe(\r\n share()\r\n );\r\n }\r\n}","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\n\r\n//if (environment.production) {\r\n enableProdMode();\r\n//}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"names":[],"sourceRoot":"webpack:///","x_google_ignoreList":[]}