{"version":3,"sources":["./src/vendor/styles/pages/authentication.scss","./src/app/account/email-confirm/email-confirm.component.ts","./src/app/account/email-confirm/email-confirm.component.html","./src/app/account/home/home.component.ts","./src/app/account/home/home.component.html","./src/app/account/login/login.component.ts","./src/app/account/login/login.component.html","./src/app/account/signup-purchaser/signup-purchaser-new.component.ts","./src/app/account/signup-purchaser/signup-purchaser-new.component.html","./src/app/account/signup-purchaser/signup-purchaser.component.ts","./src/app/account/signup-purchaser/signup-purchaser.component.html","./src/app/account/signup/signup.component.ts","./src/app/account/signup/signup.component.html","./src/app/account/account-routing.module.ts","./src/app/account/account.module.ts"],"names":["route","appService","toastrService","antiforgeryService","authService","profileService","controls","success","error","pageTitle","ngOnInit","this","data","emailConfirmUID","snapshot","queryParams","token","pipe","map","d1","mergeMap","d2","emailConfirm","subscribe","d","e","EmailConfirmComponent","selector","template","loading","signIn","errorDetected","params","window","location","search","urlParams","URLSearchParams","includes","errorDescription","get","HomeComponent","login","LoginRedirectComponent","SignupPurchaserNewComponent","modalService","router","formBuilder","lookupService","confirmService","purchaserService","purTypeEnum","purchaserTypes","PurchaserTypes","dontAgreeRedirect","captchaIsGood","passwordRequirements","name","errorMessage","dataForm","group","lastName","disabled","value","required","firstName","ageConfirm","requiredTrue","agreeTerms","countryUID","captchaText","languageUID","timezoneUID","emailAddress","email","purchaserType","organizationName","captchaComp","refreshImage","language","signupLanguage","timezone","signupTimezone","purchaserCountry","signupPurchaserCountry","forkJoin","retRes","popData","errRes","onTypeChange","id","patchValue","formControls","disable","Individual","enable","onAgreeChange","opts","Title","FunctionClose","setValue","FunctionConfirm","href","YesNo","onPolicyOpen","dialogPolicy","open","onCaptchaChanged","isGood","onSubmit","invalid","signup","dataValue","navigate","replaceUrl","country","results","SignupPurchaserComponent","changeDetector","password","ngAfterViewInit","detectChanges","SignupComponent","routes","path","component","AccountRoutingModule","imports","forChild","exports","AccountModule","declarations"],"mappings":"qPAAe,8vD,0ECuBb,WACUA,EACAC,EACRC,EACQC,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,UACxBuD,SAAU,CAAC,CAAE,IAAWvD,UACxBQ,YAAa,CAAC,CAAE,IAAWR,aAInC,YAAAwD,gBAAA,sBAEI7G,KAAKR,mBAAmBa,QAAQC,KAC5B,OAAAC,EAAA,IAAI,SAAAC,GAAQ,OAAOA,KACnB,OAAAC,EAAA,IAAS,SAAAC,GAEL,IAAIC,EAAe,EAAKjB,eAAeiB,aAAa,EAAKV,MACrDqE,EAAW,EAAKjC,cAAckC,iBAElC,OAAO,OAAAG,EAAA,GAAS,CAAC/D,EAAc2D,QAErC1D,WACE,SAAAC,GAEI,EAAKmC,SAASgC,WAAWnE,EAAE,IAC3B,EAAKiD,aAAejD,EAAE,GAAGiD,aACzB,EAAKQ,SAAWzD,EAAE,GAAG4F,QACrB,EAAK9G,SAASyG,QAAS,EAEvB,EAAKO,eAAeG,mBAExB,SAAAhG,GAAO,EAAKnB,SAASE,OAAQ,M,yCA5EhB,K,MAAhB,K,MACA,K,MAEA,K,MALe,K,MACf,K,MAGA,K,MAAoB,K,MAAoC,K,MAAwB,OAU5EkH,EAAe,aAL3B,YAAU,CACP/F,SAAU,aAEVC,SCZW,ouL,cDcF8F,G,CAAwB,KEL/BC,EACF,CACI,CAAEC,KAAM,GAAIC,UAAW,GACvB,CAAED,KAAM,QAASC,UAAW,GAC5B,CAAED,KAAM,SAAUC,UAAW,GAC7B,CAAED,KAAM,gBAAiBC,UAAW,GACpC,CAAED,KAAM,mBAAoBC,UAAW,GACvC,CAAED,KAAM,uBAAwBC,UAAW,I,2BASnD,OAFaC,EAAoB,aAJhC,YAAS,CACNC,QAAS,CAAC,IAAaC,SAASL,IAChCM,QAAS,CAAC,QAEDH,G,8BCcb,OAFaI,EAAa,aArBzB,YAAS,CACNC,aAAc,CACV,EACA,EACA,EACA,EACA,EACA,GAGJJ,QAAS,CACL,IACA,IACA,IAEA,IACA,IAEA,MAGKG,G","file":"10.js","sourcesContent":["export default \":host ::ng-deep .authentication-wrapper {\\n display: -ms-flexbox;\\n display: flex;\\n -ms-flex-preferred-size: 100%;\\n flex-basis: 100%;\\n min-height: 100vh;\\n width: 100%;\\n}\\n\\n:host ::ng-deep .authentication-wrapper .authentication-inner {\\n width: 100%;\\n}\\n\\n:host ::ng-deep .authentication-wrapper.authentication-1, :host ::ng-deep .authentication-wrapper.authentication-2, :host ::ng-deep .authentication-wrapper.authentication-4 {\\n -ms-flex-align: center;\\n align-items: center;\\n -ms-flex-pack: center;\\n justify-content: center;\\n}\\n\\n:host ::ng-deep .authentication-wrapper.authentication-1 .authentication-inner {\\n max-width: 300px;\\n}\\n\\n:host ::ng-deep .authentication-wrapper.authentication-2 .authentication-inner {\\n max-width: 380px;\\n}\\n\\n:host ::ng-deep .authentication-wrapper.authentication-3 {\\n -ms-flex-align: stretch;\\n align-items: stretch;\\n -ms-flex-pack: stretch;\\n justify-content: stretch;\\n}\\n\\n:host ::ng-deep .authentication-wrapper.authentication-3 .authentication-inner {\\n display: -ms-flexbox;\\n display: flex;\\n -ms-flex-align: stretch;\\n align-items: stretch;\\n -ms-flex-wrap: nowrap;\\n flex-wrap: nowrap;\\n -ms-flex-pack: stretch;\\n justify-content: stretch;\\n}\\n\\n:host ::ng-deep .authentication-wrapper.authentication-4 .authentication-inner {\\n max-width: 800px;\\n}\\n\\n:host ::ng-deep .authentication-wrapper .form-group i {\\n margin-left: 4px;\\n height: 7px;\\n width: 7px;\\n font-size: 16px;\\n}\\n\\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\\n :host ::ng-deep .authentication-wrapper::after {\\n content: '';\\n display: block;\\n -ms-flex: 0 0 0%;\\n flex: 0 0 0%;\\n min-height: inherit;\\n width: 0;\\n font-size: 0;\\n }\\n}\\n\";","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { map, mergeMap } from 'rxjs/operators';\r\n\r\nimport { ToastrService } from 'ngx-toastr';\r\n\r\nimport { AppService } from '@app/app.service';\r\nimport { BaseComponent, Profile, AntiforgeryService, AuthService, ProfileService } from '@app/data';\r\n\r\n@Component({\r\n selector: 'app-email-confirm',\r\n templateUrl: './email-confirm.component.html',\r\n styleUrls: [\r\n '../../../vendor/styles/pages/authentication.scss'\r\n ]\r\n})\r\nexport class EmailConfirmComponent extends BaseComponent implements OnInit {\r\n\r\n controls = {\r\n success: false,\r\n error: false\r\n };\r\n\r\n constructor(\r\n private route: ActivatedRoute,\r\n private appService: AppService,\r\n toastrService: ToastrService,\r\n private antiforgeryService: AntiforgeryService,\r\n public authService: AuthService,\r\n private profileService: ProfileService) {\r\n super(toastrService);\r\n\r\n this.appService.pageTitle = 'Email Confirm';\r\n }\r\n\r\n ngOnInit(): void {\r\n this.data = {\r\n emailConfirmUID: this.route.snapshot.queryParams['uid']\r\n };\r\n\r\n this.antiforgeryService.token().pipe(\r\n map(d1 => { return d1 }),\r\n mergeMap(d2 => {\r\n return this.profileService.emailConfirm(this.data);\r\n })\r\n ).subscribe(\r\n d => { this.controls.success = true; },\r\n e => { this.controls.error = true; }\r\n );\r\n }\r\n\r\n}\r\n","export default \"
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n
\\r\\n \\r\\n Your email address has been successfully confirmed.\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n

\\r\\n Email Confirmation Link is no longer valid.\\r\\n

\\r\\n\\r\\n Back to Home\\r\\n
\\r\\n
\\r\\n
\\r\\n
\";","import { Component, OnInit } from '@angular/core';\r\n\r\nimport { AuthService } from '@app/data';\r\n\r\n@Component({\r\n selector: 'app-home',\r\n templateUrl: './home.component.html',\r\n styles: [`\r\n .landing-slider-parallax-bg {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background-position: center;\r\n background-size: cover;\r\n }`]\r\n})\r\nexport class HomeComponent implements OnInit {\r\n\r\n loading: boolean = false;\r\n signIn: string = 'Sign In';\r\n errorDetected: boolean= false;\r\n errorDescription: string;\r\n\r\n constructor(\r\n public authService: AuthService) { }\r\n\r\n ngOnInit(): void {\r\n const params = window.location.search;\r\n const urlParams = new URLSearchParams(params);\r\n\r\n if (params.includes('code=') && params.includes('state=')) {\r\n this.loading = true;\r\n this.signIn = 'Redirecting to your Account...';\r\n }\r\n if(params.includes('error=') && params.includes('error_description=')) {\r\n this.errorDetected = true;\r\n this.errorDescription = urlParams.get('error_description');\r\n }\r\n }\r\n\r\n}\r\n","export default \"\\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n

\\r\\n To access your EasyExport® account, click Sign In\\r\\n

\\r\\n
\\r\\n
\\r\\n
{{ errorDescription }}
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n

\\r\\n To start buying firearms, parts, optics, and accessories from American sellers, click register with EasyExport®\\r\\n

\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\";","import { Component, OnInit } from '@angular/core';\r\nimport { AuthService } from '@app/data';\r\n\r\n@Component({\r\n selector: 'app-plogin',\r\n templateUrl: './login.component.html',\r\n styles: []\r\n})\r\nexport class LoginRedirectComponent implements OnInit {\r\n\r\n constructor(public authService: AuthService) { }\r\n\r\n ngOnInit(): void {\r\n this.authService.login()\r\n }\r\n\r\n}\r\n","export default \"Redirecting...\";","import { Component } from \"@angular/core\";\r\nimport { AppService } from \"@app/app.service\";\r\nimport { BaseComponent, Purchaser } from \"@app/data\";\r\nimport { ToastrService } from \"ngx-toastr\";\r\n\r\n@Component({\r\n styleUrls: [\"../../../vendor/styles/pages/authentication.scss\"],\r\n templateUrl: \"./signup-purchaser-new.component.html\"\r\n})\r\nexport class SignupPurchaserNewComponent extends BaseComponent\r\n{\r\n constructor(\r\n toastrService: ToastrService,\r\n private appService: AppService)\r\n {\r\n super(toastrService);\r\n\r\n this.appService.pageTitle = \"Signup New Purchaser\";\r\n }\r\n}","export default \"
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n
\\r\\n \\r\\n Please check your email inbox to set your password and login to complete registration.\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\";","import { Component, OnInit, ViewChild } from \"@angular/core\";\r\nimport { FormBuilder, Validators } from \"@angular/forms\";\r\nimport { Router } from \"@angular/router\";\r\nimport { AppService } from \"@app/app.service\";\r\nimport { AntiforgeryService, AuthService, BaseComponent, Lookup, LookupService, Purchaser, PurchaserService, PurchaserType } from \"@app/data\";\r\nimport { PurchaserCommon } from \"@app/data/purchaser/purchaser-common\";\r\nimport { CaptchaComponent } from \"@app/shared/captcha/captcha.component\";\r\nimport { CommonSettings } from \"@app/shared/common-settings\";\r\nimport { ConfirmationService, IConfirmationOptions } from \"@app/shared/confirmation/confirmation.service\";\r\nimport { PrivacyPolicyComponent } from \"@app/shared/privacy-policy/privacy-policy.component\";\r\nimport { NgbModal } from \"@ng-bootstrap/ng-bootstrap\";\r\nimport { ToastrService } from \"ngx-toastr\";\r\nimport { forkJoin } from \"rxjs\";\r\nimport { map, mergeMap } from \"rxjs/operators\";\r\n\r\n@Component({\r\n selector: \"app-signup-purchaser\",\r\n styleUrls: [\"../../../vendor/styles/pages/authentication.scss\"],\r\n templateUrl: \"./signup-purchaser.component.html\"\r\n})\r\nexport class SignupPurchaserComponent extends BaseComponent implements OnInit\r\n{\r\n @ViewChild(\"captchaComp\")\r\n captchaComp: CaptchaComponent;\r\n\r\n @ViewChild(\"dialogPolicy\")\r\n dialogPolicy: PrivacyPolicyComponent;\r\n\r\n public readonly purTypeEnum = PurchaserType;\r\n public readonly purchaserTypes = PurchaserCommon.PurchaserTypes;\r\n public readonly dontAgreeRedirect = \"https://trustedseller.easyexport.net/\";\r\n\r\n public captchaIsGood = false;\r\n\r\n country: Lookup[];\r\n language: Lookup[];\r\n timezone: Lookup[];\r\n public purchaserType: number;\r\n\r\n passwordRequirements: { name: string, errorMessage: string }[] = [\r\n { name: \"minlength\", errorMessage: \"Must be at least 8 characters!\" },\r\n { name: \"hasNumber\", errorMessage: \"Must contain at least 1 number!\" },\r\n { name: \"hasCapitalCase\", errorMessage: \"Must contain at least 1 in Capital Case!\" },\r\n { name: \"hasSmallCase\", errorMessage: \"Must contain at least 1 Letter in Lower Case!\" },\r\n { name: \"hasSpecialCharacters\", errorMessage: \"Must contain at least 1 Special Character!\" }\r\n ];\r\n\r\n constructor(toastrService: ToastrService,\r\n public authService: AuthService,\r\n public modalService: NgbModal,\r\n private router: Router,\r\n private appService: AppService,\r\n private formBuilder: FormBuilder,\r\n private lookupService: LookupService,\r\n private confirmService: ConfirmationService,\r\n private purchaserService: PurchaserService,\r\n private antiforgeryService: AntiforgeryService)\r\n {\r\n super(toastrService);\r\n\r\n this.modalService = modalService;\r\n this.appService.pageTitle = \"Signup Purchaser\";\r\n }\r\n\r\n ngOnInit(): void\r\n {\r\n this.dataForm = this.formBuilder.group(\r\n {\r\n lastName: [{ disabled: true, value: null }, Validators.required],\r\n firstName: [{ disabled: true, value: null }, Validators.required],\r\n ageConfirm: [{ disabled: true, value: null }, Validators.requiredTrue],\r\n agreeTerms: [],\r\n countryUID: [, Validators.required],\r\n captchaText: [],\r\n languageUID: [, Validators.required],\r\n timezoneUID: [, Validators.required],\r\n emailAddress: [, [Validators.required, Validators.email]],\r\n purchaserType: [, Validators.required],\r\n organizationName: [{ disabled: true, value: null }, Validators.required],\r\n });\r\n\r\n this.antiforgeryService.token().pipe(\r\n map(d1 => d1),\r\n mergeMap(d2 =>\r\n {\r\n this.captchaComp.refreshImage();\r\n\r\n const language = this.lookupService.signupLanguage();\r\n const timezone = this.lookupService.signupTimezone();\r\n const purchaserCountry = this.lookupService.signupPurchaserCountry();\r\n\r\n return forkJoin([purchaserCountry, language, timezone]);\r\n })).subscribe(\r\n retRes => this.popData(retRes),\r\n errRes => this.error(errRes));\r\n }\r\n\r\n public onTypeChange(value): void\r\n {\r\n this.purchaserType = value.id;\r\n\r\n this.dataForm.patchValue({\r\n lastName: null,\r\n firstName: null,\r\n ageConfirm: null,\r\n organizationName: null\r\n });\r\n\r\n this.formControls.ageConfirm.disable();\r\n this.formControls.firstName.disable();\r\n this.formControls.lastName.disable();\r\n this.formControls.organizationName.disable();\r\n\r\n if (this.purchaserType === PurchaserType.Individual)\r\n {\r\n this.formControls.ageConfirm.enable();\r\n this.formControls.firstName.enable();\r\n this.formControls.lastName.enable();\r\n }\r\n else\r\n {\r\n this.formControls.organizationName.enable();\r\n }\r\n }\r\n\r\n public onAgreeChange(): void\r\n {\r\n let opts: IConfirmationOptions =\r\n {\r\n Title: \"Are you sure?\",\r\n FunctionClose: () => this.setValue(\"agreeTerms\", true),\r\n FunctionConfirm: () => window.location.href = this.dontAgreeRedirect\r\n };\r\n\r\n this.confirmService.YesNo(\"Are you sure? If you do not agree, you will not be able to register with EasyExport\", opts);\r\n }\r\n\r\n public onPolicyOpen()\r\n {\r\n this.dialogPolicy.open();\r\n }\r\n\r\n public onCaptchaChanged(isGood)\r\n {\r\n this.captchaIsGood = isGood;\r\n }\r\n\r\n onSubmit()\r\n {\r\n // TBD: integrate with Auth0 integration\r\n\r\n if (this.invalid())\r\n {\r\n return;\r\n }\r\n\r\n this.setValue(\"captchaText\", this.captchaComp.captchaText);\r\n\r\n this.loading = true;\r\n this.purchaserService.signup(this.dataValue).subscribe(\r\n retRes =>\r\n {\r\n this.loading = false;\r\n this.router.navigate([\"signup-purchaser-new\"], { replaceUrl: true });\r\n },\r\n errRes =>\r\n {\r\n this.loading = false;\r\n this.error(errRes);\r\n }\r\n );\r\n }\r\n\r\n private popData(retRes)\r\n {\r\n this.country = retRes[0].results;\r\n this.language = retRes[1].results;\r\n this.timezone = retRes[2].results;\r\n }\r\n}","export default \"
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n\\r\\n
Register with EasyExport®
\\r\\n\\r\\n
\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n \\r\\n
Registration Type is required
\\r\\n
\\r\\n \\r\\n

If you are buying products for your own use, select “Individual.”

\\r\\n

If you are a licensed business, select “Business.”

\\r\\n

If you are an official government agency in your country, select “Government.”

\\r\\n
\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n
\\r\\n
Email Address is required
\\r\\n
Email must be a valid email address
\\r\\n
\\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n \\r\\n \\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n
First Name is required
\\r\\n
\\r\\n\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n
Last Name is required
\\r\\n
\\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n
Business Legal Name is required
\\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n
Government Agency Name is required
\\r\\n
\\r\\n \\r\\n Enter the name of your agency. Examples:\\r\\n
    \\r\\n
  • Ministry of Defense
  • \\r\\n
  • Ministry of the Interior
  • \\r\\n
  • National Police
  • \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n \\r\\n
Country is required
\\r\\n
\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n \\r\\n
Preferred Language is required
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n *\\r\\n \\r\\n \\r\\n \\r\\n
Time Zone is required
\\r\\n
\\r\\n
\\r\\n By registering with EasyExport® and by using your EasyExport login ID and password, you are agreeing to all practices and providing all consents described in this Privacy Policy.\\r\\n
\\r\\n
\\r\\n \\r\\n \\r\\n
\\r\\n \\r\\n \\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\nEasyExport® is unable to process registrations for individuals under 21 years of age.\\r\\nEnter the email address you will use for shopping with EasyExport® sellers.\\r\\nSelect or enter your country. If your country is not here, it is not part of the EasyExport® service territory.\\r\\nProvide your Last/Family/Surname\\r\\nProvide your first/given name\";","import { AfterViewInit, ChangeDetectorRef, Component, OnInit } from \"@angular/core\";\r\nimport { FormBuilder, Validators } from \"@angular/forms\";\r\nimport { ActivatedRoute, Router } from \"@angular/router\";\r\nimport { AppService } from \"@app/app.service\";\r\nimport { AntiforgeryService, AuthService, BaseComponent, Lookup, LookupService, Profile, ProfileService } from \"@app/data\";\r\nimport { ToastrService } from \"ngx-toastr\";\r\nimport { forkJoin } from \"rxjs\";\r\nimport { map, mergeMap } from \"rxjs/operators\";\r\n\r\n@Component({\r\n selector: \"app-signup\",\r\n styleUrls: [\"../../../vendor/styles/pages/authentication.scss\"],\r\n templateUrl: \"./signup.component.html\"\r\n})\r\nexport class SignupComponent extends BaseComponent implements OnInit, AfterViewInit\r\n{\r\n controls = {\r\n signup: false,\r\n success: false,\r\n error: false\r\n };\r\n emailAddress: string;\r\n timezone: Lookup[];\r\n\r\n constructor(\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private appService: AppService,\r\n toastrService: ToastrService,\r\n private changeDetector: ChangeDetectorRef,\r\n private formBuilder: FormBuilder,\r\n private antiforgeryService: AntiforgeryService,\r\n public authService: AuthService,\r\n private lookupService: LookupService,\r\n private profileService: ProfileService)\r\n {\r\n super(toastrService);\r\n\r\n this.appService.pageTitle = \"Signup\";\r\n }\r\n\r\n ngOnInit(): void\r\n {\r\n this.data = {\r\n emailConfirmUID: this.route.snapshot.queryParams[\"uid\"]\r\n };\r\n\r\n this.dataForm = this.formBuilder.group({\r\n emailConfirmUID: [],\r\n emailAddress: [],\r\n firstName: [, Validators.required],\r\n lastName: [, Validators.required],\r\n password: [, Validators.required],\r\n timezoneUID: [, Validators.required],\r\n });\r\n }\r\n\r\n ngAfterViewInit(): void\r\n {\r\n this.antiforgeryService.token().pipe(\r\n map(d1 => { return d1 }),\r\n mergeMap(d2 =>\r\n {\r\n let emailConfirm = this.profileService.emailConfirm(this.data);\r\n let timezone = this.lookupService.signupTimezone();\r\n\r\n return forkJoin([emailConfirm, timezone]);\r\n })\r\n ).subscribe(\r\n d =>\r\n {\r\n this.dataForm.patchValue(d[0]);\r\n this.emailAddress = d[0].emailAddress;\r\n this.timezone = d[1].results;\r\n this.controls.signup = true;\r\n\r\n this.changeDetector.detectChanges();\r\n },\r\n e => { this.controls.error = true; }\r\n );\r\n }\r\n}","export default \"
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n\\r\\n
Create your EasyExport® Account
\\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n {{ emailAddress }}\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n *\\r\\n \\r\\n
First Name is required
\\r\\n
\\r\\n\\r\\n
\\r\\n *\\r\\n \\r\\n
Last Name is required
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n *\\r\\n \\r\\n
Password is required
\\r\\n
\\r\\n\\r\\n
\\r\\n *\\r\\n \\r\\n
Confirm Password is required
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n *\\r\\n \\r\\n \\r\\n
Timezone is required
\\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n
\\r\\n \\r\\n Your account has been successfully created.\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\\"\\\"\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n

\\r\\n Signup Link is no longer valid or expired.\\r\\n

\\r\\n\\r\\n Back to Home\\r\\n
\\r\\n
\\r\\n
\\r\\n
\";","import { NgModule } from \"@angular/core\";\r\nimport { RouterModule, Routes } from \"@angular/router\";\r\nimport { EmailConfirmComponent } from \"./email-confirm/email-confirm.component\";\r\nimport { HomeComponent } from \"./home/home.component\";\r\nimport { LoginRedirectComponent } from \"./login/login.component\";\r\nimport { SignupPurchaserNewComponent } from \"./signup-purchaser/signup-purchaser-new.component\";\r\nimport { SignupPurchaserComponent } from \"./signup-purchaser/signup-purchaser.component\";\r\nimport { SignupComponent } from \"./signup/signup.component\";\r\n\r\nconst routes: Routes =\r\n [\r\n { path: \"\", component: HomeComponent },\r\n { path: \"login\", component: LoginRedirectComponent },\r\n { path: \"signup\", component: SignupComponent },\r\n { path: \"email-confirm\", component: EmailConfirmComponent },\r\n { path: \"signup-purchaser\", component: SignupPurchaserComponent },\r\n { path: \"signup-purchaser-new\", component: SignupPurchaserNewComponent }\r\n ];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AccountRoutingModule\r\n{\r\n}","import { CommonModule } from \"@angular/common\";\r\nimport { NgModule } from \"@angular/core\";\r\nimport { ReactiveFormsModule } from \"@angular/forms\";\r\nimport { SharedModule } from \"@app/shared/shared.module\";\r\nimport { NgbModule } from \"@ng-bootstrap/ng-bootstrap\";\r\nimport { NgSelectModule } from \"@ng-select/ng-select\";\r\nimport { AccountRoutingModule } from \"./account-routing.module\";\r\nimport { EmailConfirmComponent } from \"./email-confirm/email-confirm.component\";\r\nimport { HomeComponent } from \"./home/home.component\";\r\nimport { LoginRedirectComponent } from \"./login/login.component\";\r\nimport { SignupPurchaserNewComponent } from \"./signup-purchaser/signup-purchaser-new.component\";\r\nimport { SignupPurchaserComponent } from \"./signup-purchaser/signup-purchaser.component\";\r\nimport { SignupComponent } from \"./signup/signup.component\";\r\n\r\n@NgModule({\r\n declarations: [\r\n HomeComponent,\r\n SignupComponent,\r\n EmailConfirmComponent,\r\n LoginRedirectComponent,\r\n SignupPurchaserComponent,\r\n SignupPurchaserNewComponent\r\n ],\r\n\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n ReactiveFormsModule,\r\n\r\n NgbModule,\r\n NgSelectModule,\r\n\r\n AccountRoutingModule\r\n ]\r\n})\r\nexport class AccountModule\r\n{\r\n}"],"sourceRoot":"webpack:///"}