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kBACIA,0BAwEAA,yBAKAA,0BA8BJA,QACJA,QACJA,QACJA,eA7IeA,mDAIAA,wDA2BOA,6FAwEAA,2FAKuBA,2z4YE7FtC,MAAM2F,EAAS,CAClB,CAACC,KAAM,GAAIC,UAAWL,EAAsBM,UAAW,SA0BpD,SACIC,SAASJ,wCADPI,4DAtBA,CACLC,KACAC,cAAsBN,GAItB3D,KACAA,KACAkE,IACAC,KACAC,IACAC,KACA9F,KACA+F,IACAC","names":["n","constructor","e","t","this","ngOnInit","C","c","selectors","idf","firstName","lastName","subject","text","A","h","makeContact","post","pipe","ngUnsubscribe$","N","ngOnDestroy","next","complete","g","factory","m","l","O","s","nn","tn","r","name","categories","router","select","route","snapshot","queryParamMap","get","errorJson","error","JSON","parse","errorJsonForMailBody","encodeURIComponent","log","info","contactForm","userService","getMainDistributionCentersAdressObservable","subscribe","d","mainDistributionCenterAdress","getAllDistributionCentersAdressObservable","allDistributionCenterAdress","idfs$","loadAllIdfs","showInput","isPhoenixUser","getMainIdfObservable","u","mainIdf","setValue","on","allSubjects","find","en","includes","openShowAllDistributionCenters","autoFocus","data","centers","dialog","open","submit","submitClicked","valid","submitted","Z","Object","value","userServiceRestService","showContactAttemptSucceededMessage","reset","showContactAttemptErrorMessage","errorCode","_","k","y","b","path","component","pathMatch","i","p","P","V","M","w","x","G","v"],"sources":["webpack:///src/app/modules/account/pages/contact-form/modal-all-distribution-centers/modal-all-distribution-centers.component.html","webpack:///src/app/modules/account/pages/contact-form/modal-all-distribution-centers/modal-all-distribution-centers.component.ts","webpack:///src/app/core/models/user-contact-request.model.ts","webpack:///src/app/core/services/api/userService.rest-service.ts","webpack:///src/app/modules/account/pages/contact-form/contact-form.component.html","webpack:///src/app/modules/account/pages/contact-form/contact-form.component.ts","webpack:///src/app/modules/account/pages/contact-form/contact-form.module.ts"],"sourcesContent":["

Alle Vertriebszentren

\n
\n
\n
\n {{center.id}}\n
\n
\n {{center.location}}\n
\n
\n {{center.street}}\n
\n
\n {{center.zipCode}} {{center.city}}\n
\n
\n
\n
\n \n
\n","import {Component, Inject, OnInit} from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from \"@angular/material/dialog\";\nimport {DialogData} from \"../../../../../core/interfaces/dialog-data.interface\";\n\n@Component({\n selector: 'modal-all-distribution-centers',\n templateUrl: './modal-all-distribution-centers.component.html',\n styleUrls: ['./modal-all-distribution-centers.component.scss']\n})\nexport class ModalAllDistributionCentersComponent implements OnInit {\n\n constructor(@Inject(MAT_DIALOG_DATA) public data: DialogData,\n public dialogRef: MatDialogRef) {\n }\n\n ngOnInit() {\n }\n\n}\n","/**\n * represent the basic user model\n */\n\nexport class UserContactRequest {\n idf: string;\n firstName: string;\n lastName: string;\n subject: string;\n text: string;\n\n\n constructor(obj: any) {\n this.idf = obj && obj.idf || null;\n this.firstName = obj && obj.firstName || null;\n this.lastName = obj && obj.lastName || null;\n this.subject = obj && obj.subject || null;\n this.text = obj && obj.text || null;\n }\n}\n","import {Injectable, OnDestroy} from '@angular/core';\nimport {RestServiceAbstract} from '../../abstracts/rest-service.abstract';\nimport {map, takeUntil} from 'rxjs/operators';\nimport {Observable, Subject} from 'rxjs';\nimport {Response} from '../../models/response.model';\nimport {UserContactRequest} from '../../models/user-contact-request.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UserServiceRestService extends RestServiceAbstract implements OnDestroy {\n\n public ngUnsubscribe$: Subject = new Subject();\n\n public makeContact(irar: UserContactRequest): Observable {\n return this.post(`/usermanagement/userservice/contact`, irar).pipe(\n takeUntil(this.ngUnsubscribe$),\n map(data => {\n return new Response(data);\n })\n );\n }\n\n\n /**\n * Unsubscribe from all subscriptions.\n */\n ngOnDestroy(): void {\n // This aborts all HTTP requests.\n this.ngUnsubscribe$.next();\n // This completes the subject properly.\n this.ngUnsubscribe$.complete();\n }\n}\n","\n\n\n
\n
\n
\n
\n

Rufen Sie uns an.

\n

Sie erreichen das PHOENIX Kunden-Service-Center unter unserer bundesweit einheitlichen Hotline:

\n

0800 104 8888

\n (kostenlos aus dem dt. Festnetz, Mobilfunkpreise abweichend)\n
\n
\n \n
\n
\n
\n
\n
\n

Schreiben Sie uns.

\n

Teilen Sie uns über das Formular Ihr Anliegen mit und nennen Sie bei Bedarf einen Ansprechpartner für Rückfragen.

\n
\n
\n
\n \n Anliegen\n \n \n {{singleSubject.name}}\n \n \n Bitte wählen Sie\n Ihr Anliegen\n \n \n \n Vorname - optional\n \n \n
\n
\n \n IDF-Nummer\n \n \n IDFs werden geladen.\n \n \n {{ idf.idf }} ({{idf.name}})\n \n \n \n \n IDF-Nummer\n \n \n \n Nachname - optional\n \n \n
\n
\n
\n \n Ihre Fragen und Anmerkungen\n \n Bitte stellen Sie hier\n Ihre Frage\n \n \n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n  Ihre Eingabe wird geprüft.\n
\n
\n
\n

Ihr Hauptvertriebszentrum: {{mainDistributionCenterAdress.location}}

\n
\n
\n

Adresse

\n
{{mainDistributionCenterAdress.street}}
\n
{{mainDistributionCenterAdress.zipCode}}\n {{mainDistributionCenterAdress.city}}\n
\n \n
\n
\n

Direkter Kontakt

\n
E-Mail:\n {{mainDistributionCenterAdress.email}}\n
\n
\n Telefon: {{mainDistributionCenterAdress.phone}}
\n
\n Fax: {{mainDistributionCenterAdress.fax}}
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n","import {Component, Inject, OnDestroy, OnInit} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {FormControl, FormGroup, Validators} from '@angular/forms';\nimport {LogService} from '../../../../core/services/utility/log.service';\nimport {UserService} from '../../../../core/services/user.service';\nimport {MatDialog, MatDialogConfig, MatDialogRef} from '@angular/material/dialog';\nimport {ModalAllDistributionCentersComponent} from './modal-all-distribution-centers/modal-all-distribution-centers.component';\nimport {UserContactRequest} from '../../../../core/models/user-contact-request.model';\nimport {UserServiceRestService} from '../../../../core/services/api/userService.rest-service';\nimport {Observable, Subject} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'contact',\n templateUrl: './contact-form.component.html',\n styleUrls: ['./contact-form.component.scss']\n})\nexport class ContactFormComponent implements OnInit, OnDestroy {\n router: Router;\n error: Object;\n errorJson: string;\n errorJsonForMailBody: string;\n status: string;\n\n latitude = -28.68352;\n longitude = -147.20785;\n mapType = 'satellite';\n mainDistributionCenterAdress: any;\n allDistributionCenterAdress: any;\n\n public submitted = false;\n public submitClicked = false;\n\n public showContactAttemptSucceededMessage = false;\n public showContactAttemptErrorMessage = '';\n public contactForm: FormGroup;\n public subject: FormControl = new FormControl('', Validators.required);\n public text: FormControl = new FormControl('', Validators.required);\n public idf: FormControl = new FormControl('', Validators.pattern(/^\\d{2,7}$/));\n public firstName: FormControl = new FormControl('');\n public lastName: FormControl = new FormControl('');\n public select: String;\n public idfs$: Observable;\n public ngUnsubscribe$ = new Subject();\n public showInput = false;\n public mainIdf: string;\n public allSubjects: any[] = [\n {name: 'Bestellung & Lieferung', categories: ['sendungsverfolgung']},\n {name: 'Bezahlung & Rechnung', categories: ['meinebelege', 'datev']},\n {name: 'Einzelimport', categories: []},\n {name: 'Reklamation', categories: []},\n {name: 'Mein Konto & Persönliche Daten', categories: ['apothekenstammdaten', 'mitbenutzer']},\n {name: 'Produktberatung', categories: []},\n {name: 'Technischer Support', categories: []},\n {name: 'Sonstiges', categories: ['datenschutz']}];\n\n constructor(router: Router,\n public route: ActivatedRoute,\n @Inject('CMS_URL') public CMS_URL,\n @Inject('ADMIN_MAIL') public ADMIN_MAIL: string,\n @Inject(LogService) public log: LogService,\n @Inject(UserService) public userService: UserService,\n @Inject(UserServiceRestService) public userServiceRestService: UserServiceRestService,\n public dialog: MatDialog) {\n this.router = router;\n\n this.select = this.route.snapshot.queryParamMap.get('category');\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 this.errorJsonForMailBody = encodeURIComponent(this.errorJson);\n this.log.info('Error: ', this.error);\n\n this.contactForm = new FormGroup({\n subject: this.subject,\n idf: this.idf,\n firstName: this.firstName,\n lastName: this.lastName,\n text: this.text,\n });\n this.userService.getMainDistributionCentersAdressObservable().subscribe(data => {\n this.mainDistributionCenterAdress = data;\n });\n this.userService.getAllDistributionCentersAdressObservable().subscribe(data => {\n this.allDistributionCenterAdress = data;\n });\n this.idfs$ = userService.loadAllIdfs();\n this.showInput = userService.isPhoenixUser();\n this.userService\n .getMainIdfObservable()\n .pipe(takeUntil(this.ngUnsubscribe$))\n .subscribe((idf) => {\n if (idf) {\n this.mainIdf = idf;\n this.contactForm.get('idf').setValue(this.mainIdf);\n if (this.select) {\n const selectedCategory = this.allSubjects.find((subject) => subject.categories.includes(this.select) ).name;\n this.contactForm.get('subject').setValue(selectedCategory);\n }\n }\n });\n\n }\n\n ngOnInit() {\n }\n\n openShowAllDistributionCenters(): MatDialogRef {\n const dialogConfig = new MatDialogConfig();\n dialogConfig.autoFocus = true;\n dialogConfig.data = {centers: this.allDistributionCenterAdress};\n return this.dialog.open(ModalAllDistributionCentersComponent, dialogConfig);\n }\n\n submit(): void {\n this.submitClicked = true;\n if (this.contactForm.valid) {\n this.submitted = true;\n const request = new UserContactRequest({...this.contactForm.value});\n this.userServiceRestService.makeContact(request).subscribe(\n () => {\n this.showContactAttemptSucceededMessage = true;\n this.contactForm.reset();\n },\n err => {\n this.showContactAttemptErrorMessage = `MESSAGE.ERROR.${err.error.errorCode}`;\n },\n () => {\n // do stuff after completion\n }\n )\n }\n }\n\n /**\n * Unsubscribe from all subscriptions.\n */\n ngOnDestroy() {\n this.ngUnsubscribe$.next();\n this.ngUnsubscribe$.complete();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ContactFormComponent} from './contact-form.component';\nimport {RouterModule} from '@angular/router';\n// import {AgmCoreModule} from '@agm/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport {ModalAllDistributionCentersComponent} from './modal-all-distribution-centers/modal-all-distribution-centers.component';\nimport {SuccessModule} from '../../../shared/success/success.module';\nimport {NotificationModule} from '../../../shared/notification/notification.module';\nimport {TranslateModule} from \"@ngx-translate/core\";\n\nexport const routes = [\n {path: '', component: ContactFormComponent, pathMatch: 'full'},\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n /*AgmCoreModule.forRoot({\n apiKey: 'AIzaSyDsqZJGhUk4dUqSYmqLp805yZGsxdISRJg'\n }),*/\n FormsModule,\n ReactiveFormsModule,\n SuccessModule,\n MatFormFieldModule,\n MatInputModule,\n MatSelectModule,\n MatDialogModule,\n NotificationModule,\n TranslateModule\n ],\n declarations: [\n ContactFormComponent,\n ModalAllDistributionCentersComponent],\n exports: [ContactFormComponent],\n entryComponents: [ModalAllDistributionCentersComponent]\n})\nexport class ContactFormModule {\n static routes = routes;\n}\n"]}