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,IAAItM,eAAJ,CAAoBsQ,KAAK,CAACzM,OAAN,EAApB,EAAqCyM,KAAK,CAAC1M,QAAN,KAAmB,CAAxD,EAA2D0M,KAAK,CAAC3M,WAAN,EAA3D,CAAP;IACD;EACF;;AAhByB;;;;;;;;;;;;;;ACCtB,MAAO1D,iBAAP,CAAwB;EAC5BQ,YACSkB,IADT,EAESD,KAFT,EAGSD,GAHT,EAISqC,IAJT,EAKSC,OALT,EAKwB;IAJf;IACA;IACA;IACA;IACA;EACJ;;AAPuB;;;;;;;;;;;;;;ACAxB,MAAOhE,UAAP,SAA0BuM,IAA1B,CAA8B;EAClCiE,UAAU;IACR,IAAI,IAAJ,EAAU;MACR,OAAO,KAAK1M,OAAL,KAAiB,GAAjB,IAAwB,KAAKD,QAAL,KAAkB,CAA1C,IAA+C,GAA/C,GAAqD,KAAKD,WAAL,EAA5D;IACD,CAFD,MAGK;MACH,OAAO,EAAP;IACD;EACF;;AARiC;;;;;;;;;;;;;;ACDpC;AACA;AACA;AAEO,MAAM6M,WAAW,GAAG;EACzBC,UAAU,EAAE;AADa,CAApB;AAIP;;;;;;;AAOA;;;;;;;;;;;;;;;;ACfA;AAEA;AACA;;AAEA,IAAID,6EAAJ,EAA4B;EAC1BE,6DAAc;AACf;;AAEDC,sEAAAA,GAAyBC,eAAzB,CAAyClJ,sDAAzC,EACGmJ,KADH,CACSC,GAAG,IAAIjI,OAAO,CAAC5G,KAAR,CAAc6O,GAAd,CADhB","sources":["./src/app/add-appointment/add-appointment.component.ts","./src/app/add-appointment/add-appointment.component.html","./src/app/add-appointment/add-appointment.request.ts","./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/appointment/appointment.component.ts","./src/app/appointment/appointment.component.html","./src/app/appointment/appointment.confirmation-dialog.ts","./src/app/appointment/appointment.confirmation-dialog.html","./src/app/appointment/appointment.service.ts","./src/app/appointment/appointmentTime.ts","./src/app/appointment/create.appointment.request.ts","./src/app/auth.service.ts","./src/app/localization/localization.ts","./src/app/localization/localizedstrings.service.ts","./src/app/masterdata/masterdata-service.service.ts","./src/app/material-module.ts","./src/app/message.service.ts","./src/app/shared/appointment-date.ts","./src/app/shared/appointment-moment.ts","./src/app/shared/studio-date.ts","./src/environments/environment.ts","./src/main.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { AbstractControl, UntypedFormBuilder, Validators } from '@angular/forms';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { AppointmentService } from '../appointment/appointment.service';\r\nimport { AppointmentTime } from '../appointment/appointmentTime';\r\nimport { StudioDate } from \"../shared/studio-date\";\r\nimport { AppointmentDate } from \"../shared/appointment-date\";\r\nimport { AppointmentMoment } from \"../shared/appointment-moment\";\r\nimport { AuthService } from '../auth.service';\r\nimport { LocalizedHash, MapToLocalizedHash } from '../localization/localization';\r\nimport { LocalizedstringsService } from '../localization/localizedstrings.service';\r\nimport { MasterDataService } from '../masterdata/masterdata-service.service';\r\nimport { MessageService } from '../message.service';\r\nimport { AddAppointmentRequest } from './add-appointment.request';\r\n\r\n@Component({\r\n selector: 'app-add-appointment',\r\n templateUrl: './add-appointment.component.html',\r\n styleUrls: ['./add-appointment.component.css']\r\n})\r\nexport class AddAppointmentComponent implements OnInit {\r\n\r\n appointmentForm;\r\n startDate: Date;\r\n localized: LocalizedHash = {};\r\n timeList = new Array();\r\n selectedHairdresser=\"\";\r\n selectedServiceName=\"\";\r\n availableDates = new Array();\r\n selectedTime : AppointmentTime;\r\n selectedDate = new StudioDate();\r\n selectedServiceTranslatedName =\"\";\r\n waiting = false;\r\n showConfirmation = false;\r\n longHair = false;\r\n highLight = false;\r\n\r\n constructor( public masterData: MasterDataService,\r\n private authService: AuthService,\r\n private appointmentService: AppointmentService,\r\n private formBuilder: UntypedFormBuilder,\r\n private localizedstringService: LocalizedstringsService,\r\n private route: ActivatedRoute,\r\n private messageService: MessageService,\r\n private router: Router) {\r\n this.localizedstringService.getAllAsync()\r\n .subscribe(result => this.localized = MapToLocalizedHash(result)\r\n , error=> this.messageService.handleError(error));\r\n }\r\n\r\n ngOnInit(): void {\r\n this.authService.isAuthenticated().subscribe(\r\n isAuthenticated => { if (!isAuthenticated){\r\n this.router.navigate([\"/register\"]);\r\n }})\r\n\r\n this.appointmentForm = this.formBuilder.group({\r\n formArray : this.formBuilder.array([\r\n this.formBuilder.group({\r\n hairdresserCtrl : ['', Validators.required]\r\n }),\r\n this.formBuilder.group({\r\n serviceCtrl : ['', Validators.required],\r\n longHairCtrl :[''],\r\n highlightCtrl :['']\r\n }),\r\n this.formBuilder.group({\r\n dateCtrl : ['', Validators.required]\r\n }),\r\n this.formBuilder.group({\r\n timeCtrl : ['', Validators.required]\r\n }),\r\n this.formBuilder.group({\r\n nameCtrl : ['', Validators.required],\r\n })\r\n ])\r\n });\r\n }\r\n\r\n /** Returns a FormArray with the name 'formArray'. */\r\n get formArray(): AbstractControl | null { return this.appointmentForm.get('formArray'); }\r\n\r\n calendarFilter = (d: Date): boolean => {\r\n const date = AppointmentDate.MapFromDate(d);\r\n return this.availableDates.find(ad => ad.day == date.day && ad.month == date.month && ad.year == date.year) != undefined;\r\n }\r\n\r\n onSubmit(formData) {\r\n // Process checkout data here\r\n let hairdresser: string = formData.formArray[0].hairdresserCtrl;\r\n let service = formData.formArray[1].serviceCtrl;\r\n let longHair : boolean = formData.formArray[1].longHairCtrl;\r\n let highlight : boolean = formData.formArray[1].highlightCtrl;\r\n let date : Date = formData.formArray[2].dateCtrl;\r\n let time : AppointmentTime = formData.formArray[3].timeCtrl;\r\n let moment = new AppointmentMoment(\r\n date.getFullYear(),\r\n date.getMonth() + 1,\r\n date.getDate(),\r\n time.hour,\r\n time.minutes\r\n );\r\n let name = formData.formArray[4].nameCtrl;\r\n\r\n const appointment = new AddAppointmentRequest(\r\n moment,\r\n hairdresser,\r\n longHair == true,\r\n highlight == true,\r\n service.name,\r\n this.authService.getCustomerGuid(),\r\n name\r\n );\r\n this.waiting = true;\r\n\r\n this.appointmentService.addAppointment(appointment)\r\n .subscribe(result => {\r\n\r\n this.waiting = false;\r\n window.location.href=\"./confirmation?customerGuid=\"+ this.authService.getCustomerGuid() +\"&appointmentId=\" + result.appointmentId;\r\n }, error => {\r\n this.showError(error);\r\n this.waiting = false;\r\n });\r\n }\r\n\r\n selectedDateChanged(event){\r\n this.selectedTime = undefined;\r\n this.selectedDate = new StudioDate(event.value);\r\n var appointmentDate = AppointmentDate.MapFromDate(this.selectedDate);\r\n this.appointmentService.getAvailableAppointmentTimes(appointmentDate, this.selectedServiceName, this.selectedHairdresser, this.longHair || this.highLight)\r\n .subscribe(times => this.timeList = times,\r\n error=> this.messageService.handleError(error));\r\n }\r\n\r\n resetSelection(event){\r\n this.selectedTime = undefined;\r\n this.selectedDate = new StudioDate();\r\n this.loadAvailableDates();\r\n }\r\n\r\n loadAvailableDates(){\r\n this.timeList = new Array();\r\n if (this.selectedServiceName && this.selectedHairdresser){\r\n this.waiting = true;\r\n this.appointmentService.getAvailableDates(this.selectedHairdresser, this.selectedServiceName, this.longHair || this.highLight)\r\n .subscribe(ad => {\r\n this.availableDates = ad;\r\n this.waiting = false;\r\n }, error=> this.messageService.handleError(error));\r\n }\r\n }\r\n\r\n showError(error: any) {\r\n if (error.error) {\r\n this.messageService.showErrorMessage(error.error);\r\n }\r\n else if (error.message) {\r\n this.messageService.showErrorMessage(error.message);\r\n }\r\n }\r\n}\r\n","{{localized[\"title\"]}}\r\n{{localized[\"confirmationText\"]}}\r\n\r\n
\r\n\r\n \r\n \r\n {{localized[\"myHairdresser\"]}}:\r\n {{(selectedHairdresser=='Any')?localized['any']:selectedHairdresser}}\r\n \r\n {{localized[\"kapper\"]}}\r\n \r\n {{localized[\"any\"]}}\r\n Nathalie\r\n Kurt\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n {{localized[\"service\"]}}: {{selectedServiceTranslatedName}}\r\n \r\n {{localized[\"selectService\"]}}\r\n \r\n \r\n {{service.translatedName}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n {{localized['hairHight']}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{localized['highlights']}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n \r\n {{localized[\"appointmentDate\"]}}: {{ selectedDate.FormatDate()}}\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 {{localized[\"appointmentTime\"]}}: {{selectedTime}}\r\n \r\n {{localized[\"tijd\"]}}\r\n \r\n \r\n {{time.toString()}}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n {{localized[\"voorwie\"]}}\r\n \r\n \r\n \r\n \r\n \r\n {{localized[\"appointmentConfirmation\"]}}\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n","import { AppointmentMoment } from '../shared/appointment-moment'\r\n\r\nexport class AddAppointmentRequest {\r\n constructor(\r\n public moment : AppointmentMoment,\r\n public hairdresser : string,\r\n public longHair : boolean,\r\n public highlights : boolean,\r\n public serviceName : string,\r\n public customerGuid : string,\r\n public name : string)\r\n {}\r\n}\r\n\r\nexport class AddAppointmentResult {\r\n public appointmentId : string;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { AppointmentComponent } from './appointment/appointment.component';\r\nimport { AddAppointmentComponent } from './add-appointment/add-appointment.component'\r\n\r\n\r\nconst routes: Routes = [\r\n { path: '', redirectTo: '/register', pathMatch: 'full' },\r\n { path: 'register', component: AppointmentComponent },\r\n { path: 'add', component: AddAppointmentComponent },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n\r\n\r\n","import { Component } from '@angular/core';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css']\r\n})\r\nexport class AppComponent {\r\n\r\n title = 'appointment-app';\r\n}\r\n","\r\n\r\n\r\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { AppointmentComponent } from './appointment/appointment.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { CookieService } from 'ngx-cookie-service'\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { MAT_DATE_LOCALE } from '@angular/material/core';\r\n\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { MaterialModule } from './material-module';\r\nimport { AppComponent } from './app.component';\r\n\r\nimport { AppointmentConfirmationDialog } from './appointment/appointment.confirmation-dialog';\r\nimport { AddAppointmentComponent } from './add-appointment/add-appointment.component';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n AppointmentComponent,\r\n AppointmentConfirmationDialog,\r\n AddAppointmentComponent,\r\n ],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n HttpClientModule,\r\n ReactiveFormsModule,\r\n BrowserAnimationsModule,\r\n MaterialModule,\r\n CommonModule,\r\n ToastrModule.forRoot()\r\n ],\r\n providers: [{ provide: MAT_DATE_LOCALE, useValue: 'nl-BE' }, CookieService],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { UntypedFormBuilder, AbstractControl, Validators, FormControl } from '@angular/forms';\r\nimport { AppointmentService } from './appointment.service';\r\nimport { CreateAppointmentRequest } from './create.appointment.request';\r\nimport { StudioDate } from \"../shared/studio-date\";\r\nimport { AppointmentDate } from \"../shared/appointment-date\";\r\nimport { AppointmentMoment } from \"../shared/appointment-moment\";\r\nimport { LocalizedstringsService } from '../localization/localizedstrings.service';\r\nimport { LocalizedHash, MapToLocalizedHash } from '../localization/localization';\r\nimport { AppointmentTime } from './appointmentTime';\r\nimport { MasterDataService } from '../masterdata/masterdata-service.service';\r\nimport { AppointmentConfirmationDialog } from './appointment.confirmation-dialog'\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { MessageService } from '../message.service';\r\nimport { AuthService } from '../auth.service'\r\n\r\n@Component({\r\n selector: 'app-appointment',\r\n templateUrl: './appointment.component.html',\r\n styleUrls: ['./appointment.component.css']\r\n})\r\nexport class AppointmentComponent implements OnInit {\r\n appointmentForm;\r\n localized: LocalizedHash = {};\r\n timeList = new Array();\r\n selectedHairdresser=\"\";\r\n selectedServiceName=\"\";\r\n availableDates = new Array();\r\n selectedTime : AppointmentTime;\r\n selectedDate = new StudioDate();\r\n selectedServiceTranslatedName =\"\";\r\n waiting = false;\r\n showConfirmation = false;\r\n longHair = false;\r\n highLight = false;\r\n\r\n constructor(\r\n public masterData: MasterDataService,\r\n private authService: AuthService,\r\n private appointmentService: AppointmentService,\r\n private formBuilder: UntypedFormBuilder,\r\n private localizedstringService: LocalizedstringsService,\r\n private dialog: MatDialog,\r\n private route: ActivatedRoute,\r\n private messageService: MessageService,\r\n private router: Router) {\r\n this.localizedstringService.getAllAsync()\r\n .subscribe(result => this.localized = MapToLocalizedHash(result)\r\n , error=> this.showError(error));\r\n\r\n this.route.queryParams\r\n .subscribe(params => {\r\n if (params.hd){\r\n this.selectedHairdresser = params.hd;\r\n };\r\n if (params.customerGuid){\r\n this.authService.setCustomerGuid(params.customerGuid);\r\n }\r\n }, error=> this.showError(error));\r\n }\r\n\r\n /** Returns a FormArray with the name 'formArray'. */\r\n get formArray(): AbstractControl | null { return this.appointmentForm.get('formArray'); }\r\n\r\n ngOnInit() {\r\n this.authService.isAuthenticated()\r\n .subscribe(isAuthenticated =>{\r\n if (isAuthenticated){\r\n this.router.navigate(['/add']);\r\n }});\r\n\r\n this.appointmentForm = this.formBuilder.group({\r\n formArray : this.formBuilder.array([\r\n this.formBuilder.group({\r\n hairdresserCtrl : ['', Validators.required]\r\n }),\r\n this.formBuilder.group({\r\n serviceCtrl : ['', Validators.required],\r\n longHairCtrl :[''],\r\n highlightCtrl :['']\r\n }),\r\n this.formBuilder.group({\r\n dateCtrl : ['', Validators.required]\r\n }),\r\n this.formBuilder.group({\r\n timeCtrl : ['', Validators.required]\r\n }),\r\n this.formBuilder.group({\r\n nameCtrl : ['', Validators.required],\r\n phoneCtrl: ['', Validators.required],\r\n emailCtrl: ['', [Validators.required, Validators.email]]\r\n })\r\n ])\r\n });\r\n\r\n }\r\n\r\n calendarFilter = (d: Date): boolean => {\r\n const date = AppointmentDate.MapFromDate(d);\r\n return this.availableDates.find(ad => ad.day == date.day && ad.month == date.month && ad.year == date.year) != undefined;\r\n }\r\n\r\n onSubmit(formData) {\r\n // Process checkout data here\r\n let hairdresser: string = formData.formArray[0].hairdresserCtrl;\r\n let service = formData.formArray[1].serviceCtrl;\r\n let longHair : boolean = formData.formArray[1].longHairCtrl;\r\n let highlight : boolean = formData.formArray[1].highlightCtrl;\r\n let date : Date = formData.formArray[2].dateCtrl;\r\n let time : AppointmentTime = formData.formArray[3].timeCtrl;\r\n let moment = new AppointmentMoment(\r\n date.getFullYear(),\r\n date.getMonth() + 1,\r\n date.getDate(),\r\n time.hour,\r\n time.minutes\r\n );\r\n let name = formData.formArray[4].nameCtrl;\r\n let phone = formData.formArray[4].phoneCtrl;\r\n let email = formData.formArray[4].emailCtrl;\r\n\r\n const appointment = new CreateAppointmentRequest(\r\n name,\r\n phone,\r\n email,\r\n moment,\r\n hairdresser,\r\n longHair == true,\r\n highlight == true,\r\n service.name\r\n );\r\n this.waiting = true;\r\n this.appointmentService.createAppointment(appointment)\r\n .subscribe(result => {\r\n console.log('Your form has been submitted', result);\r\n this.waiting = false;\r\n this.openDialog(result.appointmentId);\r\n this.reset();\r\n }, error => {\r\n this.showError(error);\r\n this.waiting = false;\r\n });\r\n }\r\n\r\n openDialog(appointmentId:string): void {\r\n const dialogRef = this.dialog.open(AppointmentConfirmationDialog, {\r\n width: '500px',\r\n data: {\r\n appointmentId: appointmentId,\r\n title: this.localized[\"confirmationTitle\"],\r\n body: this.localized['confirmationBody'],\r\n button:this.localized[\"confirmationButton\"]}\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => {\r\n this.showConfirmation = true;\r\n });\r\n }\r\n\r\n loadAvailableDates(){\r\n this.timeList = new Array();\r\n if (this.selectedServiceName && this.selectedHairdresser){\r\n this.waiting = true;\r\n this.appointmentService.getAvailableDates(this.selectedHairdresser, this.selectedServiceName, this.longHair || this.highLight)\r\n .subscribe(ad => {\r\n this.availableDates = ad;\r\n this.waiting = false;\r\n }, error=> this.showError(error));\r\n }\r\n }\r\n\r\n resetSelection(event){\r\n this.selectedTime = undefined;\r\n this.selectedDate = new StudioDate();\r\n this.loadAvailableDates();\r\n }\r\n\r\n selectedDateChanged(event){\r\n this.selectedTime = undefined;\r\n this.selectedDate = new StudioDate(event.value);\r\n var appointmentDate = AppointmentDate.MapFromDate(this.selectedDate);\r\n this.appointmentService.getAvailableAppointmentTimes(appointmentDate, this.selectedServiceName, this.selectedHairdresser, this.longHair || this.highLight)\r\n .subscribe(times => this.timeList = times,\r\n error=> this.showError(error));\r\n }\r\n\r\n reset(){\r\n this.appointmentForm.reset();\r\n this.selectedTime = undefined;\r\n this.selectedDate = new StudioDate();\r\n this.selectedHairdresser = \"Any\";\r\n this.selectedServiceName = \"\";\r\n this.selectedServiceTranslatedName = \"\";\r\n }\r\n\r\n showError(error: any) {\r\n if (error.error) {\r\n this.messageService.showErrorMessage(error.error);\r\n }\r\n else if (error.message) {\r\n this.messageService.showErrorMessage(error.message);\r\n }\r\n }\r\n}\r\n","{{localized[\"title\"]}}\r\n{{localized[\"confirmationText\"]}}\r\n\r\n
\r\n\r\n \r\n \r\n {{localized[\"myHairdresser\"]}}:\r\n {{(selectedHairdresser=='Any')?localized['any']:selectedHairdresser}}\r\n \r\n {{localized[\"kapper\"]}}\r\n \r\n {{localized[\"any\"]}}\r\n Nathalie\r\n Kurt\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n {{localized[\"service\"]}}: {{selectedServiceTranslatedName}}\r\n \r\n {{localized[\"selectService\"]}}\r\n \r\n \r\n {{service.translatedName}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n {{localized['hairHight']}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{localized['highlights']}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n \r\n {{localized[\"appointmentDate\"]}}: {{ selectedDate.FormatDate()}}\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 {{localized[\"appointmentTime\"]}}: {{selectedTime}}\r\n \r\n {{localized[\"tijd\"]}}\r\n \r\n \r\n {{time.toString()}}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n \r\n {{localized[\"info\"]}}\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 {{localized[\"appointmentConfirmation\"]}}\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ConfirmationData } from './confirmation-data';\r\nimport { interval, Observable } from 'rxjs';\r\nimport { startWith, switchMap } from 'rxjs/operators';\r\nimport { AppointmentService } from './appointment.service';\r\nimport { IsAppointmentConfirmed } from './IsAppointmentConfirmed';\r\n\r\n@Component({\r\n selector: 'appointment-confirmation-dialog',\r\n templateUrl: 'appointment.confirmation-dialog.html',\r\n })\r\n export class AppointmentConfirmationDialog implements OnInit, OnDestroy {\r\n \r\n obs: Observable;\r\n subscriber;\r\n \r\n constructor(\r\n public dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public data:ConfirmationData,\r\n private appointmentService: AppointmentService) {\r\n \r\n }\r\n\r\n ngOnInit(){\r\n this.obs = interval(2000).pipe(startWith(0), \r\n switchMap(() => this.appointmentService.getAppointmentConfirmation(this.data.appointmentId)))\r\n \r\n\r\n this.subscriber = this.obs.subscribe(result => {\r\n if (result.isConfirmed){\r\n console.log(result);\r\n this.dialogRef.close();\r\n }\r\n });\r\n }\r\n \r\n ngOnDestroy() {\r\n this.subscriber.unsubscribe();\r\n }\r\n\r\n }","

{{data.title}}

\r\n
\r\n

\r\n
\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, map, tap } from 'rxjs/operators';\r\nimport { MessageService } from '../message.service';\r\nimport { CreateAppointmentRequest, CreateAppointmentResult } from './create.appointment.request';\r\nimport { AppointmentDate } from '../shared/appointment-date';\r\nimport { AppointmentTime } from './appointmentTime';\r\nimport { IsAppointmentConfirmed } from './IsAppointmentConfirmed';\r\nimport { AddAppointmentRequest, AddAppointmentResult } from '../add-appointment/add-appointment.request';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppointmentService {\r\n\r\n private AppointMentUrl = 'api/appointment'; // URL to web api\r\n httpOptions = {\r\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\r\n };\r\n\r\n constructor(\r\n private http: HttpClient,\r\n private messageService: MessageService\r\n ) { }\r\n\r\n createAppointment(appointment: CreateAppointmentRequest): Observable {\r\n return this.http.post(this.AppointMentUrl, appointment, this.httpOptions).pipe(\r\n tap((result => this.messageService.log(`added Appointment w/ ${result}`)),\r\n error => catchError(this.messageService.handleError('createAppointment', error))\r\n ))};\r\n\r\n addAppointment(appointment: AddAppointmentRequest): Observable {\r\n return this.http.put(this.AppointMentUrl, appointment, this.httpOptions).pipe(\r\n tap((result => this.messageService.log(`added Appointment w/ ${result}`)),\r\n error => catchError(this.messageService.handleError('addAppointment', error))\r\n ))};\r\n\r\n getAvailableDates(hairdresser:string, service:string, extra: boolean): Observable{\r\n return this.http.get(\r\n `${this.AppointMentUrl}/availabledates?hairdresser=${hairdresser}&service=${service}&extra=${extra}`)\r\n .pipe(catchError(this.messageService.handleError('getAvailableDates', [])))\r\n }\r\n\r\n getAvailableAppointmentTimes(date:AppointmentDate, service:string, hairdresser:string, extra: boolean): Observable {\r\n return this.http.get(\r\n `${this.AppointMentUrl}/availabletimes?day=${date.day}&month=${date.month}&year=${date.year}&service=${service}&hairdresser=${hairdresser}&extra=${extra}`).pipe(\r\n map(result => {\r\n let response : AppointmentTime[] = result;\r\n return response.map(t => new AppointmentTime(t.hour, t.minutes))}),\r\n catchError(this.messageService.handleError('getAvailableAppointmentTimes', [])))\r\n }\r\n\r\n getAppointmentConfirmation(appointmentId:string): Observable {\r\n return this.http.get(`api/confirmation/confirmedappointments/${appointmentId}`);\r\n }\r\n\r\n}\r\n","export class AppointmentTime{\r\n constructor(\r\n public hour:number , \r\n public minutes:number){\r\n\r\n }\r\n\r\n public toString():string{\r\n let prefixh = \"\";\r\n if (this.hour < 10){\r\n prefixh = \"0\";\r\n }\r\n let prefixm = \"\";\r\n if(this.minutes< 10){\r\n prefixm = \"0\";\r\n }\r\n\r\n return prefixh + this.hour + \":\" + prefixm + this.minutes\r\n } \r\n}\r\n\r\n","import { AppointmentMoment } from \"../shared/appointment-moment\";\r\n\r\nexport class CreateAppointmentRequest {\r\n constructor( \r\n public name: string,\r\n public phone: string,\r\n public email: string,\r\n public moment: AppointmentMoment,\r\n public hairdresser: string,\r\n public longHair: boolean,\r\n public highlights: boolean,\r\n public serviceName: string)\r\n {}\r\n}\r\n\r\nexport class CreateAppointmentResult {\r\n public appointmentId: string;\r\n}\r\n\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, retry, map } from 'rxjs/operators';\r\nimport { MessageService } from './message.service';\r\nimport { CustomerContract } from './customer-contract';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthService {\r\n\r\n private customerGuid;\r\n private customer: CustomerContract;\r\n private url = 'api/customers'; // URL to web api\r\n httpOptions = {\r\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\r\n };\r\n\r\n constructor(\r\n private cookieService: CookieService,\r\n private http: HttpClient,\r\n private messageService: MessageService\r\n ) {\r\n\r\n this.customerGuid = this.getCustomerGuidCookieValue();\r\n\r\n if (this.customerGuid) {\r\n this.getCustomer(this.customerGuid)\r\n .subscribe(result => this.customer = result);\r\n }\r\n }\r\n\r\n public setCustomerGuid(guid: string) {\r\n this.customerGuid = guid;\r\n this.cookieService.set('customer-guid', guid, new Date(2030, 1), null, null, true, \"Strict\")\r\n }\r\n\r\n public getCustomerGuid(): string {\r\n return this.customerGuid;\r\n }\r\n\r\n public isAuthenticated(): Observable {\r\n\r\n if (this.customerGuid == undefined || this.customerGuid == '')\r\n return of(false);\r\n\r\n if (this.customer != undefined) {\r\n return of(true);\r\n }\r\n\r\n return this.getCustomer(this.customerGuid)\r\n .pipe(map(customer => customer != undefined));\r\n }\r\n\r\n private getCustomerGuidCookieValue(): string {\r\n return this.cookieService.get('customer-guid');\r\n }\r\n\r\n private getCustomer(guid: string): Observable {\r\n return this.http.get(this.url + \"/\" + guid, this.httpOptions)\r\n .pipe(\r\n retry(3)\r\n );\r\n }\r\n}\r\n","export class Localizedstring\r\n{\r\n constructor( \r\n public name: string,\r\n public value: string,\r\n public resourceNotFound: boolean,\r\n public searchedLocation: string){\r\n }\r\n}\r\n\r\nexport interface LocalizedHash{\r\n [name: string]: string; \r\n}\r\n\r\nexport function MapToLocalizedHash(items: Array):LocalizedHash{\r\n let localizedHash:LocalizedHash = {};\r\n items.forEach(r => localizedHash[r.name] = r.value);\r\n return localizedHash;\r\n}","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, map, tap } from 'rxjs/operators';\r\nimport { MessageService } from '../message.service';\r\n\r\nimport { Localizedstring } from './localization';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LocalizedstringsService {\r\n private apiUrl = 'api/applocalizedstrings'; // URL to web api\r\n httpOptions = {\r\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\r\n };\r\n constructor(\r\n private http: HttpClient,\r\n private messageService: MessageService) { \r\n }\r\n \r\n getAllAsync():Observable{\r\n return this.http.get(this.apiUrl, this.httpOptions);\r\n }\r\n\r\n /**\r\n * Handle Http operation that failed.\r\n * Let the app continue.\r\n * @param operation - name of the operation that failed\r\n * @param result - optional value to return as the observable result\r\n */\r\n private handleError (operation = 'operation', result?: T) {\r\n return (error: any): Observable => {\r\n\r\n // TODO: send the error to remote logging infrastructure\r\n console.error(error); // log to console instead\r\n\r\n // TODO: better job of transforming error for user consumption\r\n this.log(`${operation} failed: ${error.message}`);\r\n\r\n // Let the app keep running by returning an empty result.\r\n return of(result as T);\r\n };\r\n }\r\n\r\n /** Log a message with the MessageService */\r\n private log(message: string) {\r\n this.messageService.add(`AppointmentService: ${message}`);\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, map, tap } from 'rxjs/operators';\r\nimport { MessageService } from '../message.service';\r\nimport { Service } from './service';\r\nimport { ApiService} from '../api.service';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class MasterDataService {\r\n\r\n private MasterDataUrl = 'api/masterdata'; // URL to web api\r\n public services: Service[];\r\n\r\n httpOptions = {\r\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\r\n };\r\n\r\n constructor(\r\n private http: HttpClient,\r\n private messageService: MessageService\r\n ) { \r\n this.getServices();\r\n }\r\n\r\n private getServices() {\r\n return this.http.get(this.MasterDataUrl + \"/services\", this.httpOptions).subscribe(\r\n result => this.services = result,\r\n error => catchError(this.messageService.handleError(error)))\r\n };\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {A11yModule} from '@angular/cdk/a11y';\r\nimport {DragDropModule} from '@angular/cdk/drag-drop';\r\nimport {PortalModule} from '@angular/cdk/portal';\r\nimport {ScrollingModule} from '@angular/cdk/scrolling';\r\nimport {CdkStepperModule} from '@angular/cdk/stepper';\r\nimport {CdkTableModule} from '@angular/cdk/table';\r\nimport {CdkTreeModule} from '@angular/cdk/tree';\r\nimport {MatAutocompleteModule} from '@angular/material/autocomplete';\r\nimport {MatBadgeModule} from '@angular/material/badge';\r\nimport {MatBottomSheetModule} from '@angular/material/bottom-sheet';\r\nimport {MatButtonModule} from '@angular/material/button';\r\nimport {MatButtonToggleModule} from '@angular/material/button-toggle';\r\nimport {MatCardModule} from '@angular/material/card';\r\nimport {MatCheckboxModule} from '@angular/material/checkbox';\r\nimport {MatChipsModule} from '@angular/material/chips';\r\nimport {MatStepperModule} from '@angular/material/stepper';\r\nimport {MatDatepickerModule} from '@angular/material/datepicker';\r\nimport {MatDialogModule} from '@angular/material/dialog';\r\nimport {MatDividerModule} from '@angular/material/divider';\r\nimport {MatExpansionModule} from '@angular/material/expansion';\r\nimport {MatGridListModule} from '@angular/material/grid-list';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport {MatInputModule} from '@angular/material/input';\r\nimport {MatListModule} from '@angular/material/list';\r\nimport {MatMenuModule} from '@angular/material/menu';\r\nimport {MatNativeDateModule, MatRippleModule} from '@angular/material/core';\r\nimport {MatPaginatorModule} from '@angular/material/paginator';\r\nimport {MatProgressBarModule} from '@angular/material/progress-bar';\r\nimport {MatProgressSpinnerModule} from '@angular/material/progress-spinner';\r\nimport {MatRadioModule} from '@angular/material/radio';\r\nimport {MatSelectModule} from '@angular/material/select';\r\nimport {MatSidenavModule} from '@angular/material/sidenav';\r\nimport {MatSliderModule} from '@angular/material/slider';\r\nimport {MatSlideToggleModule} from '@angular/material/slide-toggle';\r\nimport {MatSnackBarModule} from '@angular/material/snack-bar';\r\nimport {MatSortModule} from '@angular/material/sort';\r\nimport {MatTableModule} from '@angular/material/table';\r\nimport {MatTabsModule} from '@angular/material/tabs';\r\nimport {MatToolbarModule} from '@angular/material/toolbar';\r\nimport {MatTooltipModule} from '@angular/material/tooltip';\r\nimport {MatTreeModule} from '@angular/material/tree';\r\n\r\n@NgModule({\r\n exports: [\r\n A11yModule,\r\n CdkStepperModule,\r\n CdkTableModule,\r\n CdkTreeModule,\r\n DragDropModule,\r\n MatAutocompleteModule,\r\n MatBadgeModule,\r\n MatBottomSheetModule,\r\n MatButtonModule,\r\n MatButtonToggleModule,\r\n MatCardModule,\r\n MatCheckboxModule,\r\n MatChipsModule,\r\n MatStepperModule,\r\n MatDatepickerModule,\r\n MatDialogModule,\r\n MatDividerModule,\r\n MatExpansionModule,\r\n MatGridListModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n MatMenuModule,\r\n MatNativeDateModule,\r\n MatPaginatorModule,\r\n MatProgressBarModule,\r\n MatProgressSpinnerModule,\r\n MatRadioModule,\r\n MatRippleModule,\r\n MatSelectModule,\r\n MatSidenavModule,\r\n MatSliderModule,\r\n MatSlideToggleModule,\r\n MatSnackBarModule,\r\n MatSortModule,\r\n MatTableModule,\r\n MatTabsModule,\r\n MatToolbarModule,\r\n MatTooltipModule,\r\n MatTreeModule,\r\n PortalModule,\r\n ScrollingModule,\r\n ]\r\n})\r\nexport class MaterialModule {}\r\n\r\n\r\n/** Copyright 2019 Google Inc. All Rights Reserved.\r\n Use of this source code is governed by an MIT-style license that\r\n can be found in the LICENSE file at http://angular.io/license */","import { Injectable } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Observable, of } from 'rxjs';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MessageService {\r\n messages: string[] = [];\r\n\r\n constructor(private toastr: ToastrService) {}\r\n\r\n add(message: string) {\r\n this.messages.push(message);\r\n }\r\n\r\n clear() {\r\n this.messages = [];\r\n }\r\n\r\n showErrorMessage(message: string){\r\n this.add(message);\r\n this.toastr.error(message, \"Error\");\r\n }\r\n\r\n /**\r\n * Handle Http operation that failed.\r\n * Let the app continue.\r\n * @param operation - name of the operation that failed\r\n * @param result - optional value to return as the observable result\r\n */\r\n public handleError (operation = 'operation', result?: T) {\r\n return (error: any): Observable => {\r\n\r\n // TODO: send the error to remote logging infrastructure\r\n console.error(error); // log to console instead\r\n\r\n // TODO: better job of transforming error for user consumption\r\n this.log(`${operation} failed: ${error.message}`);\r\n\r\n // Let the app keep running by returning an empty result.\r\n return of(result as T);\r\n };\r\n }\r\n\r\n /** Log a message with the MessageService */\r\n public log(message: string) {\r\n this.add(`${message}`);\r\n }\r\n}\r\n","export class AppointmentDate {\r\n constructor(\r\n public day: number,\r\n public month: number,\r\n public year: number\r\n ) {\r\n }\r\n\r\n static MapFromDate(d: Date): AppointmentDate {\r\n if (d) {\r\n return new AppointmentDate(d.getDate(), d.getMonth() + 1, d.getFullYear());\r\n }\r\n else {\r\n var today = new Date();\r\n return new AppointmentDate(today.getDate(), today.getMonth() + 1, today.getFullYear());\r\n }\r\n }\r\n\r\n}\r\n","\r\nexport class AppointmentMoment {\r\n constructor(\r\n public year: number,\r\n public month: number,\r\n public day: number,\r\n public hour: number,\r\n public minutes: number\r\n ) { }\r\n}\r\n","\r\nexport class StudioDate extends Date {\r\n FormatDate(): string {\r\n if (this) {\r\n return this.getDate() + \"/\" + (this.getMonth() + 1) + \"/\" + this.getFullYear();\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n}\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: false\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"names":["Validators","StudioDate","AppointmentDate","AppointmentMoment","MapToLocalizedHash","AddAppointmentRequest","i0","ctx_r22","ctx_r24","ctx_r2","AddAppointmentComponent","constructor","masterData","authService","appointmentService","formBuilder","localizedstringService","route","messageService","router","Array","d","date","MapFromDate","availableDates","find","ad","day","month","year","undefined","getAllAsync","subscribe","result","localized","error","handleError","ngOnInit","isAuthenticated","navigate","appointmentForm","group","formArray","array","hairdresserCtrl","required","serviceCtrl","longHairCtrl","highlightCtrl","dateCtrl","timeCtrl","nameCtrl","get","onSubmit","formData","hairdresser","service","longHair","highlight","time","moment","getFullYear","getMonth","getDate","hour","minutes","name","appointment","getCustomerGuid","waiting","addAppointment","window","location","href","appointmentId","showError","selectedDateChanged","event","selectedTime","selectedDate","value","appointmentDate","getAvailableAppointmentTimes","selectedServiceName","selectedHairdresser","highLight","times","timeList","resetSelection","loadAvailableDates","getAvailableDates","showErrorMessage","message","selectors","decls","vars","consts","template","highlights","serviceName","customerGuid","AddAppointmentResult","RouterModule","AppointmentComponent","routes","path","redirectTo","pathMatch","component","AppRoutingModule","forRoot","imports","exports","AppComponent","BrowserModule","CommonModule","HttpClientModule","ReactiveFormsModule","CookieService","ToastrModule","BrowserAnimationsModule","MAT_DATE_LOCALE","MaterialModule","AppointmentConfirmationDialog","AppModule","bootstrap","provide","useValue","declarations","i1","UntypedFormBuilder","AbstractControl","CreateAppointmentRequest","dialog","queryParams","params","hd","setCustomerGuid","phoneCtrl","emailCtrl","email","phone","createAppointment","console","log","openDialog","reset","dialogRef","open","width","data","title","body","button","afterClosed","showConfirmation","selectedServiceTranslatedName","MAT_DIALOG_DATA","interval","startWith","switchMap","obs","pipe","getAppointmentConfirmation","subscriber","isConfirmed","close","ngOnDestroy","unsubscribe","HttpHeaders","Observable","catchError","map","tap","AppointmentTime","AppointmentService","http","headers","post","AppointMentUrl","httpOptions","put","extra","response","t","factory","providedIn","toString","prefixh","prefixm","CreateAppointmentResult","of","retry","AuthService","cookieService","getCustomerGuidCookieValue","getCustomer","customer","guid","set","Date","url","Localizedstring","resourceNotFound","searchedLocation","items","localizedHash","forEach","r","LocalizedstringsService","apiUrl","operation","add","MasterDataService","getServices","MasterDataUrl","services","A11yModule","DragDropModule","PortalModule","ScrollingModule","CdkStepperModule","CdkTableModule","CdkTreeModule","MatAutocompleteModule","MatBadgeModule","MatBottomSheetModule","MatButtonModule","MatButtonToggleModule","MatCardModule","MatCheckboxModule","MatChipsModule","MatStepperModule","MatDatepickerModule","MatDialogModule","MatDividerModule","MatExpansionModule","MatGridListModule","MatIconModule","MatInputModule","MatListModule","MatMenuModule","MatNativeDateModule","MatRippleModule","MatPaginatorModule","MatProgressBarModule","MatProgressSpinnerModule","MatRadioModule","MatSelectModule","MatSidenavModule","MatSliderModule","MatSlideToggleModule","MatSnackBarModule","MatSortModule","MatTableModule","MatTabsModule","MatToolbarModule","MatTooltipModule","MatTreeModule","MessageService","toastr","messages","push","clear","today","FormatDate","environment","production","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch","err"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}