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CI,yCAA8C,EAC9CA,oBAAiB,IAAI2C,KAK5BC,WAAQ,CAGRC,wBAAwBjD,GACpBI,KAAK8C,oCAAqC,EAC1C9C,KAAK+C,SAAWnD,EAMpBoD,cACIhD,KAAKiD,eAAeb,OACpBpC,KAAKiD,eAAeC,kDArBfC,GAAgB1D,MAKL+C,+BALXW,EAAgBT,igBDV7BjD,sBACAA,iBACIA,iBAAsBA,cAAIA,8BAAkBA,QAAKA,QACrDA,QACAA,iBACIA,SACIA,gCAEAA,2BAGJA,QACJA,eAZKA,oDAOkBA,6DACLA,kSEOX,MAAM2D,EAAS,CAClB,CAACC,KAAM,GAAIC,UAAWH,EAAkBI,UAAW,SAwBhD,+CAAMC,4DApBA,CACLC,KACAC,cAAsBN,GACtBnD,KACAA,KACA0D,KACAC,IACAC,KACAC,KACAC,KACAC,IACAC,IACAC","names":["t","m","constructor","o","e","f","g","this","r","router","errorJson","route","snapshot","queryParamMap","get","error","JSON","parse","errorCode","errorJsonForMailBody","encodeURIComponent","log","info","queryParams","subscribe","R","showForm","contactForm","subject","idf","email","phone","text","submit","submittedClicked","valid","submitted","_","Object","value","publicServiceRestService","makeContact","submittedValid","next","navigate","stringify","s","C","v","selectors","T","ngOnInit","contactAttemptSucceeded","showContactAttemptSucceededMessage","response","ngOnDestroy","ngUnsubscribe$","complete","c","b","path","component","pathMatch","a","u","l","d","h","A","x","Z","D","B","P"],"sources":["webpack:///src/app/modules/shared/contact/contact-form/contact-form.component.html","webpack:///src/app/modules/shared/contact/contact-form/contact-form.component.ts","webpack:///src/app/modules/shared/contact/contact.component.html","webpack:///src/app/modules/shared/contact/contact.component.ts","webpack:///src/app/modules/shared/contact/contact.module.ts"],"sourcesContent":["\n
\n
\n
\n
\n
\n
\n

Ihr Anliegen

\n
\n \n Anliegen\n \n \n {{subjectOption}}\n \n \n Bitte wählen Sie Ihr\n Anliegen\n \n \n
\n
\n \n \n Bitte stellen Sie hier Ihre\n Frage\n \n \n
\n
\n
\n

Ihre Angaben

\n
\n \n E-Mail-Adresse\n \n Bitte geben Sie Ihre\n E-Mail-Adresse ein.\n \n Bitte geben Sie eine gültige\n E-Mail-Adresse ein.\n \n \n
\n
\n \n IDF-Nummer\n \n Bitte geben Sie Ihre IDF-Nummer ein.\n \n Geben Sie eine 7-stellige\n Zahlenfolge ein.\n \n \n
\n
\n \n Telefonnummer - optional\n \n Bitte geben Sie eine gültige\n Telefonnummer ein.\n \n \n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n  Ihre Eingabe wird verarbeitet.\n
\n
\n
\n
\n
\n
\n
\n","import {Component, Inject, Output, EventEmitter} from '@angular/core';\nimport {ActivatedRoute, Router} from \"@angular/router\";\nimport {FormControl, FormGroup, Validators} from \"@angular/forms\";\nimport {HttpErrorResponse} from \"@angular/common/http\";\nimport {LogService} from \"../../../../core/services/utility/log.service\";\nimport {PublicServiceRestService} from \"../../../../core/services/api/publicService.rest-service\";\nimport {PublicContactRequest} from \"../../../../core/models/public-contact-request.model\";\n\n@Component({\n selector: 'contact-form',\n templateUrl: './contact-form.component.html',\n styleUrls: ['./contact-form.component.scss']\n})\nexport class ContactFormComponent {\n router: Router;\n error: HttpErrorResponse;\n errorJson: string;\n errorJsonForMailBody: string;\n errorCode: string;\n showForm = false;\n public submitted: boolean = false;\n public submittedClicked: boolean = false;\n\n @Output() submittedValid = new EventEmitter();\n public contactForm: FormGroup;\n public subject: FormControl = new FormControl('', Validators.required);\n public idf: FormControl = new FormControl('',\n [Validators.required, Validators.pattern(/^\\d{2,7}$/)]);\n public email: FormControl = new FormControl('',\n [Validators.required, Validators.pattern(/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}$/)]);\n public phone: FormControl = new FormControl('', [Validators.pattern(/^(\\+[1-9]{2})?[\\d -]+$/)]);\n public text: FormControl = new FormControl('', [Validators.required]);\n\n constructor(router: Router,\n public route: ActivatedRoute,\n @Inject(PublicServiceRestService) public publicServiceRestService: PublicServiceRestService,\n @Inject('ADMIN_MAIL') public ADMIN_MAIL: string,\n @Inject(LogService) public log: LogService) {\n this.router = router;\n /**\n * Passed in by {@link error.interceptor.ts}\n * @type {string | null}\n */\n this.errorJson = this.route.snapshot.queryParamMap.get('error');\n this.error = JSON.parse(this.errorJson);\n if (this.error) {\n this.errorCode = 'MESSAGE.ERROR.' + this.error.error.errorCode;\n }\n this.errorJsonForMailBody = encodeURIComponent(this.errorJson);\n this.log.info('Error: ', this.error);\n\n this.route.queryParams.subscribe(param => {\n this.showForm = param.showForm;\n });\n this.contactForm = new FormGroup({\n subject: this.subject,\n idf: this.idf,\n email: this.email,\n phone: this.phone,\n text: this.text\n });\n }\n\n submit(): void {\n this.submittedClicked = true;\n if (this.contactForm.valid) {\n this.submitted = true; // hide form and show spinner\n const request = new PublicContactRequest({...this.contactForm.value});\n this.publicServiceRestService.makeContact(request).subscribe(\n () => {\n this.submittedValid.next();\n },\n err => {\n if (err != null && err.error.errorCode) {\n // TODO pure error page instead of contact loop?\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

Kontakt zu PHOENIX

\n
\n
\n \n \n \n \n
\n","import {Component, Inject, OnInit, ViewEncapsulation} from '@angular/core';\nimport {Subject} from 'rxjs';\nimport {PublicServiceRestService} from '../../../core/services/api/publicService.rest-service';\n\n@Component({\n selector: 'contact',\n templateUrl: './contact.component.html',\n styleUrls: ['./contact.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class ContactComponent implements OnInit {\n public response: any;\n public showContactAttemptSucceededMessage: boolean = false;\n public ngUnsubscribe$ = new Subject(); // emit unsubscription\n\n constructor(@Inject(PublicServiceRestService) public publicServiceRestService: PublicServiceRestService) {\n }\n\n ngOnInit() {\n }\n\n contactAttemptSucceeded(e): void {\n this.showContactAttemptSucceededMessage = true;\n this.response = 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 {RouterModule} from '@angular/router';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport {ContactComponent} from './contact.component';\nimport {ContactFormComponent} from './contact-form/contact-form.component';\nimport {MessageModule} from '../message/message.module';\nimport {NotificationPublicModule} from '../notification-public/notification-public.module';\nimport {SuccessModule} from '../success/success.module';\n\nexport const routes = [\n {path: '', component: ContactComponent, pathMatch: 'full'},\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n FormsModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n MatInputModule,\n MatCheckboxModule,\n MatIconModule,\n MatSelectModule,\n SuccessModule,\n MessageModule,\n NotificationPublicModule\n ],\n declarations: [\n ContactComponent,\n ContactFormComponent\n ],\n exports: [ContactComponent]\n})\nexport class ContactModule {\n}\n"]}