(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4752],{54752:(k,y,l)=>{l.r(y),l.d(y,{CreateEventEventStartDateTimePageModule:()=>q});var C=l(61380),R=l(69270),_=l(15861),e=l(45449),b=l(15439),o=l.n(b),D=l(24889),g=l(24006),h=l(47898),v=l(90603),G=l(21284),B=l(37763),M=l(90944),V=l(36290),w=l(96893),L=l(31044),H=l(99826);function j(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function Y(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,j,2,1,"div",15),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("startDate"))}}function U(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function W(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,U,2,1,"div",15),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("endDate"))}}function z(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"ion-select-option",17),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=u.$implicit;e.\u0275\u0275property("value",n),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(n.description)}}function X(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"ion-select-option",17),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=u.$implicit;e.\u0275\u0275property("value",n),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(n.description)}}function $(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"ion-item",5)(1,"ion-label"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ion-select",18),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275template(8,X,2,2,"ion-select-option",10),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext();e.\u0275\u0275property("className","input-holder")("disabled",n.disableInputDates),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,8,"PG_CREATE_DATE_STEP_TEXT_GROUP")),e.\u0275\u0275advance(2),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(5,10,"PG_CREATE_DATE_STEP_SELECT_GROUP"))("okText",e.\u0275\u0275pipeBind1(6,12,"PG_CREATE_DATE_STEP_SELECT_GROUP_OK"))("cancelText",e.\u0275\u0275pipeBind1(7,14,"PG_CREATE_DATE_STEP_SELECT_GROUP_CANCEL"))("compareWith",n.selectGroupCompareWith),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",n.groups)}}function K(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function Z(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,K,2,1,"div",15),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("floor"))}}function Q(i,u){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",19)(2,"button",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.goOneStepBack())}),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",21),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&i){const n=u.ngIf,a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"BTN_BACK")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",a.disabledBtnNext||"Offline"===n.status),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,5,"BTN_NEXT")," ")}}const J=[{path:"",component:(()=>{class i{constructor(n,a,s,d,p,T,O,I,A,x,ee,te,ne,ae,re,ie){var S=this;this.formBuilder=n,this.navigationService=a,this.notificatorService=s,this.createEventService=d,this.modalController=p,this.momentService=T,this.translateConfigService=O,this.stateService=I,this.datePickerService=A,this.focusService=x,this.cdr=ee,this.bookeiService=te,this.logService=ne,this.authService=ae,this.profileManagerService=re,this.apiService=ie,this.todayDate=null,this.startDate=null,this.startDay=null,this.endDate=null,this.minDate=null,this.maxDate=null,this.floors=[],this.groups=[],this.approveEventReview="",this.disabledBtnNext=!1,this.recurrenceDates=[],this.disableInputDates=!1,this.setInitialValueForFloor=()=>{let t=this.createEventService.getSelectedFloor();t=t&&t?.code?this.floors.find(r=>r.code===t.code):this.floors[0],t&&this.eventDateForm.controls.floor.setValue(t)},this.setInitialValueForGroup=()=>{let t=this.createEventService.getSelectedGroup();t=t&&t?.code?this.groups.find(r=>r.code===t.code):this.groups[0],t&&this.eventDateForm.controls.group.setValue(t)},this.setInitialValueForTodayDate=()=>{this.todayDate=new Date},this.setInitialValueForStartDay=()=>{const t=this.createEventService.getStartDate();t?this.startDay=this.recurrenceDates.length>0?o()(this.recurrenceDates[0].happensAt):o()(t):(this.startDay=o()(),this.startDay=o()(this.startDay).add(5,"minutes"))},this.setInitialValueForStartDate=()=>{const t=this.createEventService.getStartDate();t?this.startDate=o()(t):(this.startDate=o()(),this.startDate=o()(this.startDate).add(5,"minutes")),this.hourStartSelected=this.startDate?.format("HH:mm")},this.setInitialValueForEndDate=()=>{const t=this.createEventService.getEndDate();t?this.endDate=o()(t):(this.endDate=o()(),this.endDate=23===o()(this.endDate).hours()?o()(this.endDate).set({minutes:59}):o()(this.endDate).add(1,"hours")),this.hourEndSelected=this.endDate?.format("HH:mm")},this.onSubmit=()=>{this.cleanValidationErrors();const t=o()(this.startDay);let r=o()(this.startDate),c=o()(this.endDate);if(this.compareEndDateAndStartDate(c,r),this.max24h&&!this.recurrenceDates.length){const m=o()(t).add(1,"d"),P=m.month(),F=m.year(),se=m.date();c=c.date(se).month(P).year(F).set({seconds:59})}else if(this.recurrenceDates.length){const m=this.recurrenceDates.slice().pop(),P=o()(m.happensAt).set({hours:o()(this.endDate).hours(),minutes:o()(this.endDate).minutes(),seconds:o()(this.endDate).seconds()});console.log("lastDateWithTime",P.format()),c=o()(this.endDate).set({seconds:59}),c=P,console.log("EndDate",c.format())}else c=o()(c).date(t.date()).month(t.month()).year(t.year()).set({seconds:59});r=o()(r).date(t.date()).month(t.month()).year(t.year()).set({seconds:0}),c=o()(c).set({seconds:59});const E=this.eventDateForm.controls.floor.value,f=this.eventDateForm.controls.group.value,oe={startDate:o()(r).format(),endDate:o()(c).format(),floor:E,group:f},N=this.validateInput(oe);if(N.length&&!this.recurrenceDates.length){this.setValidationErrors(N);const m=this.translateConfigService.translate("PG_CREATE_DATE_STEP_TOAST_INVALID_DATA_TITLE"),P=this.translateConfigService.translate("PG_CREATE_DATE_STEP_TOAST_INVALID_DATA_NESSAGE");this.notificatorService.notify({title:m,message:P,type:"error"})}else{this.createEventService.setStartDate(r),this.createEventService.setEndDate(c),this.createEventService.setSelectedFloor(E),this.createEventService.setSelectedGroup(f),this.createEventService.setRecurrent(this.recurrenceDates?.length>1),this.createEventService.setRecurrenceDates(this.recurrenceDates);const m=this.createEventService.getMaxDatesRecurrence();if(m&&null!=m&&this.recurrenceDates.length>m)return void this.toastShowMaxDatesRecurrence(m);this.max24h&&!this.recurrenceDates.length?(this.disabledBtnNext=!0,this.messageNotificationFutureEvent(c),setTimeout(()=>{this.goToBookei(),this.disabledBtnNext=!1},1e3)):this.goToBookei()}},this.validateInput=t=>{const r=[],c=this.validateStartDate(t);c&&r.push(c);const E=this.validateEndDate(t);E&&r.push(E);const f=this.validateFloor(t);return f&&r.push(f),r},this.validateStartDate=t=>{const r=new Date;r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0);const c=new Date(t.startDate);return r.getTime()>c.getTime()?{field:"startDate",message:this.translateConfigService.translate("PG_CREATE_DATE_STEP_TEXT_FIELD_STARTDATE")}:null},this.validateEndDate=t=>{const r=new Date(t.startDate),c=new Date(t.endDate);c.setDate(r.getDate()),c.setMonth(r.getMonth()),c.setFullYear(r.getFullYear());const E=new Date;return this.max24h?null:c.getTime()t.floor?null:{field:"floor",message:this.translateConfigService.translate("PG_CREATE_DATE_STEP_TEXT_FIELD_FLOOR")},this.selectFloorCompareWith=(t,r)=>t&&r?t.id===r.id:t===r,this.selectGroupCompareWith=(t,r)=>t&&r?t.id===r.id:t===r,this.goOneStepBack=()=>{const r={state:{onBack:!0,approveEventReview:this.createEventService.getApproveEventReview()?this.createEventService.getApproveEventReview():"",action:this.createEventService.getAction()}};this.navigationService.back(["/create-event-event-name-step"],r)},this.goToBookei=()=>{this.navigationService.forward(["/create-event-event-bookei"])},this.setValidationErrors=t=>{this.eventDateFormErrors=t},this.cleanValidationErrors=()=>{this.eventDateFormErrors=[]},this.thereIsFieldInputValidationErrors=t=>this.eventDateFormErrors.find(r=>r.field===t),this.getFieldInputValidationErrors=t=>this.eventDateFormErrors.filter(r=>r.field===t),this.onOpenPickDateModal=function(){var t=(0,_.Z)(function*(r){const c=S.createEventService.getMaxDatesRecurrence();if(c&&null!=c&&S.recurrenceDates?.length>=c)return void S.toastShowMaxDatesRecurrence(c);const E={pickMode:r},f=yield S.modalController.create({component:D.G,componentProps:{startDate:S.startDay,maxSelectableDates:c??null,recurrence:"multi"===r?S.recurrenceDates:[],options:E}});f.onDidDismiss().then(S.onPickDateModalComponentDidDismiss),yield f.present()});return function(r){return t.apply(this,arguments)}}(),this.onPickDateModalComponentDidDismiss=t=>{if(!t?.data&&"OK"!==t.data.code)return this.startDay=this.startDay?this.startDay:o()(),void(this.recurrenceDates=[]);if(t.data&&"OK"===t.data.code){if(this.startDay=t.data.data.date,"single"===t.data.data.pickMode)this.startDay=o()(t.data.data.date);else if(t.data.data.recurrence.length>0){const r=this.mapRecurrenceDates(t.data.data.recurrence,this.eventId);this.recurrenceDates=r.slice(),this.startDay=o()(this.recurrenceDates[0].happensAt)}else this.recurrenceDates=[];console.log("startDay",o()(this.startDay).format("DD/MM/YYYY")),console.log("mapRecurrenceDates",this.recurrenceDates)}},this.handeSuccessGetSettings=t=>{t&&null!=t&&(this.createEventService.setSettingsCompany(t),t?.maxDates&&this.createEventService.setMaxDatesRecurrence(t.maxDates))},this.approveEventReview=this.createEventService.getApproveEventReview(),this.eventDateForm=this.formBuilder.group({floor:[""],group:[""]}),this.eventDateFormErrors=[],this.floors=this.createEventService.getFloors(),this.groups=this.createEventService.getGroups(),this.recurrenceDates=this.createEventService.getRecurrenceDates(),this.eventId=+this.createEventService.getId(),this.disableInputDates=this.createEventService.disableFields()}ngAfterViewInit(){this.cdr.checkNoChanges()}ionViewWillEnter(){this.focusService.applyFocusQuerySelector("create_event_start_date",3500),this.loaderSettings()}ngOnInit(){this.setInitialValueForTodayDate(),this.setInitialValueForStartDay(),this.setInitialValueForStartDate(),this.setInitialValueForEndDate(),this.setInitialValueForFloor(),this.setInitialValueForGroup()}openPickerHourDialog(n,a){if("startDate"===n){this.hourStartSelected=a;const s=new Date,d=new Date(s.toDateString()+" "+a);this.startDate=d,this.endDate=o()(this.startDate).add(1,"hours").toDate(),this.hourEndSelected=o()(this.endDate).format("HH:mm")}else{const s=new Date,d=new Date(s.toDateString()+" "+a);this.endDate=d,this.hourEndSelected=o()(this.endDate).format("HH:mm")}}getDateToBeShow(){return this.recurrenceDates.length>0?(console.log(this.recurrenceDates[0].happensAt),this.momentService.formatAs(this.recurrenceDates[0].happensAt,"DD/MM/YYYY")):this.momentService.formatAs(this.startDay,"DD/MM/YYYY")}getEndDatetimeToBeShow(){return this.hourEndSelected=o()(this.endDate).format("HH:mm"),this.momentService.formatAs(this.endDate,"HH[h]mm[min]")}compareEndDateAndStartDate(n,a){const s=o()(a.toISOString()),d=o()(n.toISOString()),p=s.hour(),T=s.minute(),O=s.second(),I=d.hour(),A=d.minute(),x=d.second();return this.max24h=I{this.max24h=!1,this.notificatorService.notify(p),clearTimeout(T)},500)}mapRecurrenceDates(n,a){return n.map(s=>{const d=o()(s).format("YYYY-MM-DD");return{eventId:a,happensAt:d}})}openPickerHour(n){var a=this;return(0,_.Z)(function*(){const s=yield a.datePickerService.openPickerHour(n,a.startDate,a.endDate);!s.endDate&&s.startDate||(a.startDate=s.startDate,a.endDate=s.endDate)})()}loaderSettings(){var n=this;return(0,_.Z)(function*(){const{accessToken:a,profile:s}=yield n.tokenProfile();a&&s?n.getSettings(s.company.instanceName,a).then(n.handeSuccessGetSettings).catch(n.handleErrorGetSettings).finally((0,_.Z)(function*(){n.focusService.applyFocusQuerySelector("create_bookei_step",3e3)})):n.handleErrorLoaderSettings({getTokenPortalProfile:a?"":"not found getTokenPortalProfile",profile:s?"":"not found getProfilePortalProfile"})})()}handleErrorLoaderSettings(n){this.logService.logError("method::loaderSettings","",n)}tokenProfile(){return new Promise((n,a)=>{const s=this.getProfileCurrent;this.authService.getToken().then(d=>{this.bookeiService.getTokenPortalProfile(s,d).then(p=>{n({accessToken:p&&p.access_token?p.access_token:null,profile:s||null})}).catch(p=>{this.logService.logError("startDateTime::tokenProfile::getTokenPortalProfile","",p),a(p)})}).catch(d=>{this.logService.logError("startDateTime::tokenProfile::authService.getToken","",d),a(d)})})}handleErrorGetSettings(n){}getSettings(n,a){return new Promise((s,d)=>{this.apiService.getSettingsByCompanyName(n,a).subscribe(s,d)})}get getProfileCurrent(){return this.profileManagerService.getProfile()}toastShowMaxDatesRecurrence(n){const a={title:"",message:this.translateConfigService.translate("TOAST_MAX_RECURRENCES_DATE",{count:n}),type:"error",timeout:1e4};this.notificatorService.notify(a)}}return i.\u0275fac=function(n){return new(n||i)(e.\u0275\u0275directiveInject(g.UntypedFormBuilder),e.\u0275\u0275directiveInject(h.f5),e.\u0275\u0275directiveInject(h.V6),e.\u0275\u0275directiveInject(h.jc),e.\u0275\u0275directiveInject(v.ModalController),e.\u0275\u0275directiveInject(h.EM),e.\u0275\u0275directiveInject(h.wK),e.\u0275\u0275directiveInject(G.b),e.\u0275\u0275directiveInject(h.Eo),e.\u0275\u0275directiveInject(B.i),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(h.lV),e.\u0275\u0275directiveInject(h.$V),e.\u0275\u0275directiveInject(h.e8),e.\u0275\u0275directiveInject(h.v4),e.\u0275\u0275directiveInject(h.sM))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-create-event-event-start-date-time"]],decls:40,vars:55,consts:[["defaultHref","create-event-event-name-step",3,"title","showBadge","refresh","menuToggle"],[1,"centralized-content","ion-padding-horizontal"],[1,"page-title"],["tabindex","1","id","create_event_start_date",1,"sub-title",3,"innerHTML"],[3,"formGroup","ngSubmit"],["lines","none",3,"className","disabled"],["type","button",1,"hidden-input-button",3,"click"],["class","errors",4,"ngIf"],[3,"valueHour","timeSet"],["formControlName","floor",3,"placeholder","okText","cancelText","compareWith"],[3,"value",4,"ngFor","ngForOf"],["lines","none",3,"className","disabled",4,"ngIf"],[3,"recurrenceDates","startDate","endDate","disabled","openPickDateModal"],[4,"ngIf"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"],[3,"value"],["formControlName","group",3,"placeholder","okText","cancelText","compareWith"],[1,"button-holder"],["type","button",1,"back",3,"click"],["type","submit",3,"disabled"]],template:function(n,a){1&n&&(e.\u0275\u0275element(0,"app-header",0),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementStart(2,"ion-content")(3,"div",1)(4,"div",2),e.\u0275\u0275element(5,"div",3),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"form",4),e.\u0275\u0275listener("ngSubmit",function(){return a.onSubmit()}),e.\u0275\u0275elementStart(8,"ion-item",5)(9,"ion-label"),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"button",6),e.\u0275\u0275listener("click",function(){return a.onOpenPickDateModal("single")}),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(14,Y,2,1,"div",7),e.\u0275\u0275elementStart(15,"ion-item",5)(16,"ion-label"),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"app-custom-timepicker",8),e.\u0275\u0275listener("timeSet",function(d){return a.openPickerHourDialog("startDate",d)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(20,"ion-item",5)(21,"ion-label"),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"app-custom-timepicker",8),e.\u0275\u0275listener("timeSet",function(d){return a.openPickerHourDialog("endDate",d)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(25,W,2,1,"div",7),e.\u0275\u0275elementStart(26,"ion-item",5)(27,"ion-label"),e.\u0275\u0275text(28),e.\u0275\u0275pipe(29,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"ion-select",9),e.\u0275\u0275pipe(31,"translate"),e.\u0275\u0275pipe(32,"translate"),e.\u0275\u0275pipe(33,"translate"),e.\u0275\u0275template(34,z,2,2,"ion-select-option",10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(35,$,9,16,"ion-item",11),e.\u0275\u0275template(36,Z,2,1,"div",7),e.\u0275\u0275elementStart(37,"app-list-recurrence-dates",12),e.\u0275\u0275listener("openPickDateModal",function(){return a.onOpenPickDateModal("multi")}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(38,Q,8,7,"ng-container",13),e.\u0275\u0275pipe(39,"async"),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275property("title",e.\u0275\u0275pipeBind1(1,35,"PG_CREATE_DATE_STEP_HEADER_TITLE"))("showBadge",!0)("refresh",!1)("menuToggle",!1),e.\u0275\u0275advance(5),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(6,37,"PG_CREATE_DATE_STEP_TEXT_SUBTITLE"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("formGroup",a.eventDateForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("className","input-holder")("disabled","TRUE"===a.approveEventReview||a.recurrenceDates.length>1||a.disableInputDates),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(11,39,"PG_CREATE_DATE_STEP_TEXT_DAY")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",a.getDateToBeShow()," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.thereIsFieldInputValidationErrors("startDate")),e.\u0275\u0275advance(1),e.\u0275\u0275property("className","input-holder")("disabled","TRUE"===a.approveEventReview||a.disableInputDates),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(18,41,"PG_CREATE_DATE_STEP_TEXT_STARTAT")),e.\u0275\u0275advance(2),e.\u0275\u0275property("valueHour",a.hourStartSelected),e.\u0275\u0275advance(1),e.\u0275\u0275property("className","input-holder")("disabled",a.disableInputDates),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(23,43,"PG_CREATE_DATE_STEP_TEXT_ENDAT"),""),e.\u0275\u0275advance(2),e.\u0275\u0275property("valueHour",a.hourEndSelected),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.thereIsFieldInputValidationErrors("endDate")),e.\u0275\u0275advance(1),e.\u0275\u0275property("className","input-holder")("disabled",a.disableInputDates),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(29,45,"PG_CREATE_DATE_STEP_TEXT_FLOOR")),e.\u0275\u0275advance(2),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(31,47,"PG_CREATE_DATE_STEP_SELECT_FLOOR"))("okText",e.\u0275\u0275pipeBind1(32,49,"PG_CREATE_DATE_STEP_SELECT_FLOOR_OK"))("cancelText",e.\u0275\u0275pipeBind1(33,51,"PG_CREATE_DATE_STEP_SELECT_FLOOR_CANCEL"))("compareWith",a.selectFloorCompareWith),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",a.floors),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==a.groups?null:a.groups.length)&&a.groups.length>=2),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.thereIsFieldInputValidationErrors("floor")),e.\u0275\u0275advance(1),e.\u0275\u0275property("recurrenceDates",a.recurrenceDates)("startDate",a.startDate)("endDate",a.endDate)("disabled",a.disableInputDates),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(39,53,a.stateService.getState())))},dependencies:[M.NgForOf,M.NgIf,v.IonContent,v.IonItem,v.IonLabel,v.IonSelect,v.IonSelectOption,v.SelectValueAccessor,g.\u0275NgNoValidate,g.NgControlStatus,g.NgControlStatusGroup,g.FormGroupDirective,g.FormControlName,V.G,w._,L.P,M.AsyncPipe,H.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: var(--ion-color-background)}ion-toolbar[_ngcontent-%COMP%]{font-family:Nunito,sans-serif}ion-toolbar[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]{height:25px;width:25px}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{letter-spacing:1px}ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:24px;padding:0;width:24px;margin:0;font-size:19px;color:#656768}ion-toolbar[_ngcontent-%COMP%] ion-button.hover[_ngcontent-%COMP%]{background:#fff}.centralized-content[_ngcontent-%COMP%]{height:calc(100vh - 56px);display:flex;justify-content:flex-start;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{border:1px solid #eeeeee;border-radius:32px;--border: 1px solid #eeeeee;--border-radius: 32px;margin:8px auto 0}.centralized-content[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{width:100%;margin-top:2.2em;margin-bottom:3em}.centralized-content[_ngcontent-%COMP%] .button-holder.more-config[_ngcontent-%COMP%]{margin-top:2em;display:flex;justify-content:center;align-items:center}.centralized-content[_ngcontent-%COMP%] .errors[_ngcontent-%COMP%]{width:80%;margin:12px 10% 0;color:var(--ion-color-error);text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:26px}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{text-align:center;color:#656768;font-size:.9em;margin-top:4px}.centralized-content[_ngcontent-%COMP%] .hidden-input-button[_ngcontent-%COMP%]{background-color:#fff;height:100%;font-size:1em;color:#000}.hidden-input-button[_ngcontent-%COMP%]{font-weight:500!important}.input-holder[_ngcontent-%COMP%]{width:100%}.pulsate-fwd[_ngcontent-%COMP%]{animation:pulsate-fwd .5s ease-in-out infinite both;outline:none}@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}"]}),i})()}];let q=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=e.\u0275\u0275defineInjector({imports:[R.I,C.RouterModule.forChild(J)]}),i})()},37763:(k,y,l)=>{l.d(y,{i:()=>o});var C=l(61380),_=l(92198),e=l(45449);let o=(()=>{class D{constructor(h){this.router=h}focusInRouterNavigate(){this.router.events.pipe((0,_.h)(h=>h instanceof C.NavigationEnd)).subscribe(()=>{const h=document.querySelector("#focusHeader");h&&h?.focus()})}applyFocusQuerySelector(h,v){setTimeout(()=>{document.querySelector(`#${h}`)?.focus()},v)}}return D.\u0275fac=function(h){return new(h||D)(e.\u0275\u0275inject(C.Router))},D.\u0275prov=e.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()}}]);