{"version":3,"file":"768.ae50ce573e234b9d.js","sources":["./src/app/password/password.component.html","./src/app/password/password.component.ts"],"sourceRoot":"webpack:///","sourcesContent":["
\n
\n security\n

Protected Page

\n \n Password\n \n \n Invalid Password\n \n \n \n \n
\n
\n","import { NgIf } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { MatButton } from '@angular/material/button';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { PasswordProtector } from '../utils/passwordProtector.service';\n\n@Component({\n selector: 'app-password',\n imports: [\n ReactiveFormsModule,\n MatFormFieldModule,\n MatInputModule,\n MatButton,\n MatIcon,\n NgIf,\n ],\n templateUrl: './password.component.html',\n styleUrl: './password.component.scss'\n})\nexport class PasswordComponent {\n public form = this.fb.group({\n password: ['', Validators.required],\n });\n\n public constructor(\n private readonly fb: FormBuilder,\n private readonly router: Router,\n private readonly route: ActivatedRoute,\n private readonly passwordProtector: PasswordProtector\n ) {}\n\n public async submit() {\n const value = this.form.controls.password.value;\n if (value && this.passwordProtector.unlock(value)) {\n this.router.navigate([\n this.route.snapshot.queryParams['returnUrl'] || '/',\n ]);\n } else {\n this.form.controls.password.setErrors({ 'invalid-password': true });\n }\n }\n\n public getAPassword() {\n window.open('https://www.stillmandigital.com/getstarted');\n }\n}\n"],"names":["i0","PasswordComponent","constructor","fb","router","route","passwordProtector","this","form","group","password","Validators","required","submit","_this","_asyncToGenerator","value","controls","unlock","navigate","snapshot","queryParams","returnUrl","setErrors","getAPassword","window","open","i1","i2","i3","selectors","decls","vars","consts","template","rf","ctx","PasswordComponent_mat_error_10_Template","hasError","ReactiveFormsModule","MatFormFieldModule","i4","MatInputModule","i5","MatButton","MatIcon","NgIf","styles"],"mappings":";;iQAOMA,MAAA,eACEA,MAAA,wBACFA,SCcC,IAAMC,EAAiB,M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