{"version":3,"mappings":"oWAAAA,SACIA,iBACIA,iBACAA,iBACIA,iBACIA,eAA4CA,2CAChDA,QACJA,QACAA,iBACJA,QACJA,+BACAA,iBACIA,iBACAA,iBACIA,cAAIA,8CAAkCA,QAE1CA,QACAA,iBACJA,SCPO,QAOHC,YAAmBC,EAC6BC,EAC7BC,GAFAC,aAC6BA,2BAC7BA,cALZA,oBAAiB,IAAIC,KAQ5BC,WACIF,KAAKG,SAAU,EACfH,KAAKI,MAAMC,OAAOC,MAAK,OAAUN,KAAKO,iBACjCC,UAAUX,IACHA,EAAOY,eAAe,WACtBT,KAAKU,MAAQb,EAAOa,MAEpBV,KAAKW,oBAAoBC,QAAQf,EAAOa,OAAOF,UAC3C,KACIR,KAAKG,SAAU,GAEnBL,IACQA,EAAIe,OAASf,EAAIe,MAAMC,WACvBd,KAAKe,OAAOC,SAAS,CAAC,WAAY,CAACC,YAAa,CAACJ,MAAOK,KAAKC,UAAUrB,OAG/E,UAAK,CAUzBsB,eAAevB,GACXG,KAAKqB,SAAWxB,EAChBG,KAAKe,OAAOO,cAAc,sCAG9BC,WAAW1B,GACPG,KAAKG,QAAUN,EAMnB2B,cACIxB,KAAKO,eAAekB,OACpBzB,KAAKO,eAAemB,kDApDfC,GAAsBhC,kBAQXiC,KAAmBjC,sCAR9BgC,EAAsBE,wUDXnClC,gCAWAA,uBAQAA,eACIA,iBACAA,iBACIA,2BAAeA,mCAAWG,qBAAXH,CAAkC,6BAGvBG,kBAC1BH,QACJA,QACAA,iBACJA,eA7BeA,wBAWTA,kCAQDA,oDAIkBA,gCAAe,4GEhB/B,MAAMmC,EAAS,CAClB,CAACC,KAAM,GAAIC,UAAWL,EAAwBM,UAAW,QACzD,CAACF,KAAM,SAAUC,UAAWL,EAAwBM,UAAW,SAY5D,+CAAMC,4DARA,CACLC,KACAC,cAAsBN,GACtBO,IACAC","names":["e","constructor","s","t","d","this","g","ngOnInit","loading","route","params","pipe","ngUnsubscribe$","subscribe","hasOwnProperty","token","passwordRestService","confirm","error","errorCode","router","navigate","queryParams","JSON","stringify","credentialsSet","response","navigateByUrl","setLoading","ngOnDestroy","next","complete","r","m","selectors","p","path","component","pathMatch","i","u","a","Z","T"],"sources":["webpack:///src/app/modules/authentication/password-reset/password-reset.component.html","webpack:///src/app/modules/authentication/password-reset/password-reset.component.ts","webpack:///src/app/modules/authentication/password-reset/password-reset.module.ts"],"sourcesContent":["\n
\n
\n
\n
\n  Ihre Daten werden geladen.\n
\n
\n
\n
\n
\n
\n
\n
\n

Legen Sie ein neues Passwort fest.

\n\n
\n
\n
\n
\n
\n
\n \n \n
\n
\n
\n\n","import {Component, Inject, OnDestroy, OnInit} from '@angular/core';\nimport {Observable, Subject} from 'rxjs';\nimport {ActivatedRoute, Router} from \"@angular/router\";\nimport {takeUntil} from \"rxjs/operators\";\nimport {PasswordRestService} from \"../../../core/services/api/password.rest-service\";\n\n@Component({\n selector: 'password-reset',\n templateUrl: './password-reset.component.html',\n styleUrls: ['./password-reset.component.scss']\n})\nexport class PasswordResetComponent implements OnInit, OnDestroy {\n\n public token: string;\n public response: any;\n public ngUnsubscribe$ = new Subject(); // emit unsubscription\n public loading: boolean;\n\n constructor(public route: ActivatedRoute,\n @Inject(PasswordRestService) public passwordRestService: PasswordRestService,\n public router: Router) {\n }\n\n ngOnInit() {\n this.loading = true;\n this.route.params.pipe(takeUntil(this.ngUnsubscribe$))\n .subscribe(params => {\n if (params.hasOwnProperty('token')) {\n this.token = params.token;\n\n this.passwordRestService.confirm(params.token).subscribe(\n () => {\n this.loading = false;\n },\n err => {\n if (err.error && err.error.errorCode) {\n this.router.navigate(['kontakt'], {queryParams: {error: JSON.stringify(err)}});\n }\n },\n () => {\n // Do stuff after completion\n }\n );\n }\n });\n\n }\n\n\n credentialsSet(e) {\n this.response = e;\n this.router.navigateByUrl('login/passwort-erfolgreich-gesetzt');\n }\n\n setLoading(e:boolean) {\n this.loading = e;\n }\n\n /**\n * unsubcribe all subscriptions on destroy\n */\n ngOnDestroy(): void {\n this.ngUnsubscribe$.next();\n this.ngUnsubscribe$.complete();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {PasswordResetComponent} from './password-reset.component';\nimport {RouterModule} from \"@angular/router\";\nimport {PasswordFormModule} from \"../../shared/password-form/password-form.module\";\nimport {MessageModule} from \"../../shared/message/message.module\";\n\nexport const routes = [\n {path: '', component: PasswordResetComponent, pathMatch: 'full'},\n {path: ':token', component: PasswordResetComponent, pathMatch: 'full'}\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n PasswordFormModule,\n MessageModule\n ],\n declarations: [PasswordResetComponent]\n})\nexport class PasswordResetModule {\n}\n"]}