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FA,WAAgB,OAKxB,CAEDC,WACE,MAAM+E,EAAkBhF,KAAK+E,UAAUE,iBACvCjF,KAAKkF,SAAWlF,KAAK+E,UAAUI,iBAC/BnF,KAAK+E,UAAUK,IAAIJ,GAAmBhF,KAAKkF,SAC5C,CAEDG,QAAQC,GACNtF,KAAKkF,SAAWI,EAChBtF,KAAK+E,UAAUK,IAAIE,GACnBtF,KAAK+E,UAAUQ,eAAeD,EAC/B,+CArBUR,GAAyBlE,sCAAzBkE,EAAyBjE,gVCRtCD,iBAAgG,UAAhGA,CAAgG,SAEzFA,gCAAS4E,UAAQ,KAAK,GACvB5E,qBACFA,QACAA,kBAAeA,aAACA,QAChBA,eAAGA,gCAAS4E,UAAQ,KAAK,GACvB5E,wBACFA,mBAN2BA,wGAIAA,gIDElBkE,CAAb","names":["LandingFooterComponent","constructor","cd","this","ngOnInit","_a","config$","subscribe","config","console","log","feeMinimum","processingFee","toFixed","detectChanges","i0","selectors","LandingIndividualComponent","formatService","router","EventEmitter","BehaviorSubject","components","individual","hasIndividual$","next","payments","estimates","uploadToFile","fillToFile","estimateLookups","file$","estimateLookups$","payments$","isClosed","eFileCloseDate","isClosed$","openDate","eFileOpenDate","lookup","lookupEvent","emit","nowDate","Date","onRedirect","path","navigate","queryParams","redirectPath","LandingBusinessComponent","business","hasBusiness$","withholdings","scanToFile","withholdings$","filing$","routes","component","LandingComponent","HexaDetailComponent","injector","authService","modalService","super","hasBusiness","hasIndividual","loadConfig","environment","error","onLookup","bsModalRef","show","EstimateComponent","initialState","onHide","LandingRouting","RouterModule","LandingModule","CommonModule","TranslateModule","SharedModule","LanguageSelectorComponent","translate","browserLanguage","getBrowserLang","selected","getDefaultLang","use","setLang","event","setDefaultLang","ctx"],"sourceRoot":"webpack:///","sources":["./libs/shared/src/lib/components/landing-footer/landing-footer.component.ts","./libs/shared/src/lib/components/landing-footer/landing-footer.component.html","./libs/shared/src/lib/components/landing-individual/landing-individual.component.html","./libs/shared/src/lib/components/landing-individual/landing-individual.component.ts","./libs/shared/src/lib/components/landing-business/landing-business.component.html","./libs/shared/src/lib/components/landing-business/landing-business.component.ts","./apps/oh-athens/src/app/layouts/landing/landing.component.html","./apps/oh-athens/src/app/layouts/landing/landing.routing.ts","./apps/oh-athens/src/app/layouts/landing/landing.component.ts","./apps/oh-athens/src/app/layouts/landing/landing.module.ts","./libs/shared/src/lib/components/language-selector/language-selector.component.ts","./libs/shared/src/lib/components/language-selector/language-selector.component.html"],"sourcesContent":["import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit} from '@angular/core';\n\n@Component({\n selector: 'city-tax-landing-footer',\n templateUrl: './landing-footer.component.html',\n styleUrls: ['./landing-footer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LandingFooterComponent implements OnInit {\n @Input() public config$: any;\n\n public processingFee = '3.0%';\n public feeMinimum = '$1.95';\n\n constructor(\n private cd: ChangeDetectorRef,\n ) {\n }\n\n ngOnInit(): void {\n this.config$?.subscribe((config: any) => {\n if (config) {\n\n console.log('config', config);\n\n const processingFee = config.processingFee || 0.03;\n const feeMinimum = config.feeMinimum || 1.95;\n\n this.processingFee = (processingFee * 100).toFixed(1) + '%';\n this.feeMinimum = `$${feeMinimum.toFixed(2)}`;\n\n this.cd.detectChanges();\n }\n });\n }\n\n}\n","
\n
\n
\n
\n \n {{ \"LandingPage.pay-online-heading\" | translate }}\n \n
\n \n {{ \"LandingPage.pay-online-description\" | translate }}\n \n
\n
\n {{ \"LandingPage.ach-debit-heading\" | translate }}\n
\n {{ \"LandingPage.ach-debit-description\" | translate }}\n
\n
\n \n {{ \"LandingPage.credit-card-heading\" | translate }}\n \n
\n \n {{ \"LandingPage.credit-card-description\" | translate: { processingFee, feeMinimum } }}\n \n
\n \n {{ \"LandingPage.credit-card-description-2\" | translate }}\n\n '{{ \"LandingPage.credit-card-description-2-heading\"| translate }}.'\n \n
\n
\n
\n
\n","
\n
\n {{ \"LandingPage.service-heading-individual\" | translate }}\n
\n\n
\n
\n
\n {{ \"LandingFilingPage.income-heading\" | translate }}\n
\n
\n {{ \"LandingFilingPage.income-step-1-heading\" | translate }}\n
\n
\n
\n
\n {{ \"LandingFilingPage.income-step-1-sub-a\" | translate }}\n
\n \n \n \n
\n {{ \"LandingFilingPage.income-step-1-sub-c\" | translate }}\n
\n
\n {{ \"LandingFilingPage.income-step-1-sub-c-part-1\"| translate }}\n
\n
\n {{ \"LandingFilingPage.income-step-1-sub-d\" | translate }}\n
\n \n \n \n
\n
\n
\n {{ \"LandingFilingPage.income-step-2-heading\" | translate }}\n
\n
\n {{ \"LandingFilingPage.income-step-3-heading\" | translate }}\n
\n
\n {{ \"LandingFilingPage.income-step-4-heading\" | translate }}\n
\n
\n {{ \"LandingFilingPage.income-step-5-heading\" | translate }}\n
\n\n
\n \n
\n
\n {{ \"LandingFilingPage.opens\" | translate }}\n {{ openDate | date:\"MM/dd/yyyy\" }}\n
\n
\n
\n\n
\n
\n
\n {{ \"LandingPage.estimates-heading\" | translate }}\n
\n
\n
\n
\n {{ \"LandingPage.estimates-sub-a\" | translate }}\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n {{ \"LandingPage.income-heading\" | translate }}\n
\n\n
\n {{ \"LandingPage.income-step-1-heading\" | translate }}\n
\n

\n {{ \"LandingPage.income-step-1-description\" | translate }}\n

\n\n
\n {{ \"LandingPage.income-step-2-heading\" | translate }}\n
\n

\n {{ \"LandingPage.income-step-2-description\" | translate: { processingFee, feeMinimum } }}\n

\n\n
\n {{ \"LandingPage.income-step-3-heading\" | translate }}\n
\n

\n {{ \"LandingPage.income-step-3-description\" | translate }}\n

\n\n
\n \n
\n
\n
\n
\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport {BehaviorSubject} from \"rxjs\";\nimport {Router} from \"@angular/router\";\nimport {FormatService} from \"@city-tax/shared\";\n\n@Component({\n selector: 'city-tax-landing-individual',\n templateUrl: './landing-individual.component.html',\n styleUrls: ['./landing-individual.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LandingIndividualComponent implements OnInit {\n\n @Input() public config$: any;\n @Output() public lookupEvent = new EventEmitter();\n\n public hasIndividual$ = new BehaviorSubject(false);\n public file$ = new BehaviorSubject(false);\n public estimateLookups$ = new BehaviorSubject(false);\n public payments$ = new BehaviorSubject(false);\n public processingFee = '3.0%';\n public feeMinimum = '$1.95';\n\n public isClosed$ = new BehaviorSubject(true);\n public openDate: any = null;\n\n constructor(\n private cd: ChangeDetectorRef,\n private formatService: FormatService,\n private router: Router\n ) {\n\n }\n\n ngOnInit(): void {\n\n this.config$?.subscribe((config: any) => {\n if (config) {\n const components = config?.components || {};\n const individual = components?.individual || {};\n\n const processingFee = config.processingFee || 0.03;\n const feeMinimum = config.feeMinimum || 1.95;\n\n this.processingFee = (processingFee * 100).toFixed(1) + '%';\n this.feeMinimum = `$${feeMinimum.toFixed(2)}`;\n\n const hasIndividual = individual.payments || individual.estimates || individual.uploadToFile || individual.fillToFile || individual.estimateLookups;\n this.hasIndividual$.next(hasIndividual);\n const file = individual.uploadToFile || individual.fillToFile;\n this.file$.next(file);\n const estimateLookups = individual.estimateLookups;\n this.estimateLookups$.next(estimateLookups);\n const payments = individual.payments || individual.estimates;\n this.payments$.next(payments);\n const isClosed = this.isClosed(individual.eFileCloseDate);\n this.isClosed$.next(isClosed);\n this.openDate = individual.eFileOpenDate;\n this.cd.detectChanges();\n }\n });\n }\n\n lookup(): void {\n this.lookupEvent.emit();\n }\n\n isClosed(eFileCloseDate: any) {\n const nowDate = new Date();\n if (!eFileCloseDate) return false;\n const closeDate = new Date(eFileCloseDate);\n return nowDate > closeDate;\n }\n\n onRedirect(path: string): void {\n this.router.navigate(['/auth/individual'], {queryParams: {redirectPath: path}});\n }\n\n}\n","
\n
\n {{ \"LandingPage.service-heading-business\" | translate }}\n
\n\n
\n
\n
\n {{ \"LandingBusinessFilingPage.service-heading\" | translate }}\n
\n

\n {{ \"LandingBusinessFilingPage.service-description\" | translate }}\n

\n
\n \n
\n
\n
\n\n\n
\n
\n
\n {{ \"LandingWithholdingPage.withholding-heading\" | translate }}\n
\n

\n {{ \"LandingWithholdingPage.service-description\" | translate }}\n

\n

\n {{ \"LandingWithholdingPage.do-not-use-link-for-payments\" | translate }}\n

\n
\n \n
\n
\n
\n\n\n
\n
\n
\n {{ \"LandingBusinessPaymentPage.business-heading\" | translate }}\n
\n

\n {{ \"LandingBusinessPaymentPage.service-description\" | translate }}\n

\n
\n \n
\n
\n
\n
\n","import {ChangeDetectorRef, Component, Input, OnInit} from '@angular/core';\nimport {BehaviorSubject} from \"rxjs\";\nimport {Router} from \"@angular/router\";\n\n@Component({\n selector: 'city-tax-landing-business',\n templateUrl: './landing-business.component.html',\n styleUrls: ['./landing-business.component.scss']\n})\nexport class LandingBusinessComponent implements OnInit {\n @Input() public config$: any;\n\n public hasBusiness$ = new BehaviorSubject(false);\n\n public filing$ = new BehaviorSubject(false);\n public withholdings$ = new BehaviorSubject(false);\n public payments$ = new BehaviorSubject(false);\n\n constructor(private cd: ChangeDetectorRef,\n private router: Router) {\n }\n\n ngOnInit(): void {\n this.config$?.subscribe((config: any) => {\n if (config) {\n const components = config?.components || {};\n const business = components?.business || {};\n\n const hasBusiness = business.payments || business.estimates || business.withholdings || business.fillToFile || business.uploadToFile || business.scanToFile;\n this.hasBusiness$.next(hasBusiness);\n\n const withholdings = business.withholdings;\n this.withholdings$.next(withholdings);\n\n const filing = business.fillToFile || business.uploadToFile || business.scanToFile;\n this.filing$.next(filing);\n\n const payments = business.payments || business.estimates;\n this.payments$.next(payments);\n }\n });\n }\n\n\n onRedirect(path: string): void {\n this.router.navigate(['/auth/business'], {queryParams: {redirectPath: path}});\n }\n\n}\n","\n\n\n\n
\n
\n
\n\n \n
\n \n
\n\n \n
\n \n
\n\n
\n
\n
\n
\n \n
\n
\n
\n\n","import {NgModule} from \"@angular/core\";\nimport {RouterModule, Routes} from \"@angular/router\";\n\nimport {LandingComponent} from \"./landing.component\";\n\nconst routes: Routes = [\n {\n path: \"\",\n component: LandingComponent,\n // children: [\n // {\n // path: 'invites',\n // loadChildren: () => import('../../features/invites/invites.module').then(m => m.InvitesModule)\n // }\n // ]\n },\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class LandingRouting {\n}\n","import {Component, Injector, OnInit} from \"@angular/core\";\nimport {HexaDetailComponent} from \"@hexalang/ui/core\";\nimport {AuthService} from \"@city-tax/features/auth\";\nimport {environment} from \"../../../environments/environment\";\nimport {BsModalRef, BsModalService} from \"ngx-bootstrap/modal\";\nimport {EstimateComponent} from \"@city-tax/features/individual\";\n\n@Component({\n selector: \"insource-landing\",\n templateUrl: \"./landing.component.html\",\n styleUrls: [\"./landing.component.scss\"],\n})\nexport class LandingComponent extends HexaDetailComponent implements OnInit {\n public bsModalRef: BsModalRef;\n config$ = this.authService.config$;\n nowDate = new Date();\n\n public hasIndividual: boolean = false;\n public hasBusiness: boolean = false;\n\n constructor(\n injector: Injector,\n private authService: AuthService,\n private modalService: BsModalService\n ) {\n super(injector);\n this.config$?.subscribe((config: any) => {\n if (config) {\n const components = config?.components || {};\n const individual = components?.individual || {};\n const business = components?.business || {};\n this.hasBusiness = business.payments || business.estimates || business.withholdings || business.fillToFile || business.uploadToFile || business.scanToFile;\n this.hasIndividual = individual.payments || individual.estimates || individual.uploadToFile || individual.fillToFile || individual.estimateLookups;\n }\n });\n }\n\n async ngOnInit() {\n await this.loadConfig();\n }\n\n async loadConfig() {\n try {\n await this.authService.loadConfig(environment.state, environment.city);\n } catch (error) {\n }\n }\n\n public onLookup() {\n this.bsModalRef = this.modalService.show(EstimateComponent, {\n initialState: {},\n });\n this.bsModalRef.onHide.subscribe(() => {\n\n });\n }\n}\n","import {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {LandingRouting} from \"./landing.routing\";\nimport {LandingComponent} from \"./landing.component\";\nimport {TranslateModule} from \"@ngx-translate/core\";\nimport {SharedModule} from \"@city-tax/shared\";\n\n@NgModule({\n imports: [CommonModule, LandingRouting, TranslateModule, SharedModule],\n declarations: [LandingComponent],\n})\nexport class LandingModule {\n}\n","import {Component, Input, OnInit} from '@angular/core';\nimport {TranslateService} from \"@ngx-translate/core\";\n\n@Component({\n selector: 'city-tax-language-selector',\n templateUrl: './language-selector.component.html',\n styleUrls: ['./language-selector.component.scss']\n})\nexport class LanguageSelectorComponent implements OnInit {\n supportLanguages = [\"en\", \"es\"];\n selected = \"en\";\n\n @Input() theme: string = 'light'; // Default theme, can be 'dark' or other values.\n\n constructor(\n private translate: TranslateService,\n ) {\n }\n\n ngOnInit(): void {\n const browserLanguage = this.translate.getBrowserLang();\n this.selected = this.translate.getDefaultLang();\n this.translate.use(browserLanguage || this.selected);\n }\n\n setLang(event: any) {\n this.selected = event;\n this.translate.use(event);\n this.translate.setDefaultLang(event);\n }\n\n}\n","\n"],"x_google_ignoreList":[]}