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,MAAO,qBAQJ,IAAMyB,EAAyB,MAAhC,MAAOA,YAAyB,oCAAzBA,EAAyB,EAAzBA,EAAyB,sBAAzBA,MAAyB,0BAH1BC,cAAsB9B,GACtB8B,QAECD,CAAyB,mBGH/B,IAAME,EAAkB,MAAzB,MAAOA,YAAkB,oCAAlBA,EAAkB,EAAlBA,EAAkB,sBAAlBA,MAAkB,0BAN3BC,KACAH,EACAI,kBACAC,QAGSH,CAAkB","names":["QuestionIds","QuestionIdsSL","SearchComponent","constructor","this","selectors","i0","routes","path","pathMatch","component","title","FitResultsLoadingComponent","router","route","store","messages","messages$","interval","pipe","take","map","x","startWith","finalize","select","selectSearchId","filter","searchId","subscribe","navigateByUrl","snapshot","queryParams","corrId","undefined","core","PublicSearchRoutingModule","RouterModule","PublicSearchModule","CommonModule","FitWizardModule","MatProgressSpinnerModule"],"sourceRoot":"webpack:///","sources":["./src/app/fit-wizard/models/question.model.ts","./src/app/public-search/components/search/search.component.ts","./src/app/public-search/components/search/search.component.html","./src/app/public-search/public-search-routing.module.ts","./src/app/public-search/components/fit-results-loading/fit-results-loading.component.ts","./src/app/public-search/components/fit-results-loading/fit-results-loading.component.html","./src/app/public-search/public-search.module.ts"],"sourcesContent":["import { IResponseOption, ISelectedAnswerOption, ResponseTypes } from '../services/fit-questions/fit-questions.service';\r\n\r\nexport interface IBaseQuestionConfig {\r\n order: number;\r\n question: string;\r\n questionId: number;\r\n display: boolean;\r\n choiceId?: number;\r\n selectedAnswer?: ISelectedAnswerOption[];\r\n responseOptions: IResponseOption[];\r\n}\r\n\r\nexport interface IRadioQuestion extends IBaseQuestionConfig {\r\n responseType: ResponseTypes.single;\r\n}\r\n\r\nexport interface ITextQuestion extends IBaseQuestionConfig {\r\n responseType: ResponseTypes.text;\r\n}\r\nexport interface IRankedQuestion extends IBaseQuestionConfig {\r\n responseType: ResponseTypes.ranked;\r\n}\r\nexport interface IMultipleQuestion extends IBaseQuestionConfig {\r\n responseType: ResponseTypes.multiple;\r\n}\r\n\r\nexport type QuestionTypes = IRadioQuestion | ITextQuestion | IRankedQuestion | IMultipleQuestion;\r\n\r\nexport enum QuestionIds {\r\n serviceType = 68,\r\n technologySolution=69,\r\n numberEmployees = 70,\r\n serviceLocation=71,\r\n primaryService = 79,\r\n hasIntegrations = 88,\r\n importantIntegrations = 98,\r\n makePayments = 101,\r\n paymentPreference = 102,\r\n whichIntegrations = 174,\r\n}\r\n\r\n\r\nexport enum QuestionIdsSL {\r\n serviceType = 106,\r\n technologyServices = 107,\r\n handleService = 110,\r\n handlesCash = 116,\r\n dataGov = 130,\r\n respManagement = 132,\r\n disasterPlan = 133,\r\n mobileAppTeam = 144,\r\n mobileAppEmployee = 145,\r\n whichIntegrations = 152,\r\n techProprietary = 175,\r\n useTech = 178,\r\n appName = 192,\r\n email = 194,\r\n}\r\n","import { ChangeDetectionStrategy, Component, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'maas-search',\r\n templateUrl: './search.component.html',\r\n styleUrls: ['./search.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SearchComponent {\r\n isPublicSearch = true;\r\n}\r\n","
\r\n \r\n
","import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { SearchComponent } from './components/search/search.component';\r\nimport { FitResultsLoadingComponent } from './components/fit-results-loading/fit-results-loading.component';\r\n\r\nconst routes: Routes = [ {\r\n path: '',\r\n pathMatch: 'full',\r\n component: SearchComponent,\r\n title: 'fit search'\r\n },\r\n {\r\n path: 'fit-results',\r\n pathMatch: 'full',\r\n component: FitResultsLoadingComponent,\r\n title: 'View FIT results'\r\n }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class PublicSearchRoutingModule { }\r\n","import { Component } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { interval, Observable, Subject } from 'rxjs';\r\nimport { map, take, startWith, finalize, filter, switchMap, tap } from 'rxjs/operators';\r\nimport { Store } from '@ngrx/store';\r\n\r\nimport { FitState } from '../../../fit/store/fit.reducers';\r\nimport { selectSearchId } from '../../../fit/store/selectors/search-id.selector';\r\n\r\n@Component({\r\n selector: 'maas-fit-results-loading',\r\n templateUrl: './fit-results-loading.component.html',\r\n styleUrls: ['./fit-results-loading.component.scss']\r\n})\r\nexport class FitResultsLoadingComponent {\r\n\r\n messages$: Observable;\r\n\r\n constructor(\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private store: Store,\r\n ) {\r\n const messages = [\r\n 'searching for suppliers...',\r\n 'optimizing FIT ranking...',\r\n 'done!'\r\n ];\r\n this.messages$ = interval(1500).pipe(\r\n take(3),\r\n map(x => messages[x]),\r\n startWith('analyzing your responses...'),\r\n finalize(() => {\r\n this.store\r\n .select(selectSearchId)\r\n .pipe(\r\n filter(searchId => searchId > 0),\r\n take(1)\r\n ).subscribe(searchId => {\r\n const corrId: string | undefined = this.route.snapshot.queryParams?.corrId ? this.route.snapshot.queryParams.corrId : undefined;\r\n this.router.navigateByUrl(\r\n `/public/searchresults/fitresults/${searchId}?corrId=${corrId}`\r\n );\r\n })\r\n })\r\n );\r\n }\r\n}\r\n","
\r\n
\r\n \r\n

{{messages$ | async}}

\r\n
\r\n
","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SearchComponent } from './components/search/search.component';\r\nimport { FitResultsLoadingComponent } from './components/fit-results-loading/fit-results-loading.component';\r\nimport { PublicSearchRoutingModule } from './public-search-routing.module';\r\nimport { FitWizardModule } from '../fit-wizard/fit-wizard.module';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\n\r\n@NgModule({\r\n declarations: [\r\n SearchComponent,\r\n FitResultsLoadingComponent,\r\n ],\r\n imports: [\r\n CommonModule,\r\n PublicSearchRoutingModule,\r\n FitWizardModule,\r\n MatProgressSpinnerModule\r\n ]\r\n})\r\nexport class PublicSearchModule { }\r\n"],"x_google_ignoreList":[]}