1import{b as Fe}from"./chunk-SCJICY5W.js";import{a as Be}from"./chunk-M77AMZ54.js";import{d as Ge}from"./chunk-JFZ4SUIZ.js";import{a as V}from"./chunk-2EEIRCFA.js";import{a as U}from"./chunk-C5YXYG5J.js";import{a as Ee,b as Oe}from"./chunk-VHA2B63V.js";import"./chunk-BJIUXOVT.js";import{K as we,O as Pe,k as Te,p as Ae}from"./chunk-DEWYNES4.js";import"./chunk-VGAX5DFY.js";import"./chunk-ZNXWDWXR.js";import"./chunk-S3T6GKPQ.js";import"./chunk-AAJZNDYQ.js";import"./chunk-IFPVEAET.js";import"./chunk-36L5EIMI.js";import"./chunk-6FEL5JKA.js";import"./chunk-6Q7TIZF5.js";import"./chunk-J5MY3RLL.js";import"./chunk-4BI5JL5J.js";import"./chunk-BXO2KAJ4.js";import"./chunk-W3DFVNRI.js";import"./chunk-R3PKQ3TB.js";import"./chunk-T23HFUSL.js";import"./chunk-YAZHLPIK.js";import{a as Ie,b as Me}from"./chunk-YV65KTXK.js";import"./chunk-AEN7UG53.js";import"./chunk-MXZRA744.js";import"./chunk-KYPCSILX.js";import"./chunk-AP2M7IG3.js";import{y as xe,z as De}from"./chunk-PWAQQZZT.js";import{a as ve}from"./chunk-DE7B3DKQ.js";import"./chunk-423FB2E3.js";import{b as ye}from"./chunk-A53ZZ5VD.js";import"./chunk-BYXBJQAS.js";import{Aa as E,Ca as de,Ga as me,Ja as pe,Xa as ue,Ya as fe,bb as _e,db as Se,eb as be,ra as M,ua as le,va as se,xa as ce}from"./chunk-CZ7CIVLM.js";import"./chunk-CFHNTIK5.js";import"./chunk-TPRLJIWW.js";import"./chunk-63CITQUO.js";import"./chunk-JXOEDPGU.js";import{s as j}from"./chunk-7YFVVZJ2.js";import{a as he,b as Ce,c as O}from"./chunk-W35IR56S.js";import{Ad as Y,B as K,Bb as l,Cb as s,Db as m,Eb as te,Fb as ne,Gb as N,Hb as w,I as J,L as Q,Lb as P,Nb as d,P as D,Pc as ie,Uc as oe,Va as a,X as ee,Y as u,Zb as I,_a as p,_b as h,ac as R,bd as re,c as Z,d as G,da as _,ea as B,eb as F,fb as k,ga as g,k as H,kb as S,l as q,ld as ae,pa as T,pb as r,q as X,qa as A,rb as W,u as f,vd as ge,xd as z,yc as L}from"./chunk-UFTGOEXC.js";import"./chunk-PSTAX2V4.js";import"./chunk-ZT2CETVV.js";var C=function(i){return i.Completed="COMPLETED",i.InProgress="IN_PROGRESS",i}(C||{});var b=(()=>{let e=class e{constructor(n){this.http=n}getDateTimeAndCalendarLayout(){return this.http.get("/api/user/settings/datetime-calendar/layout").pipe(f(({data:o})=>o))}disconnectGoogleCalendar(n){return this.http.delete(n).pipe(f(({data:o})=>o))}synchronizeGoogleCalendar(n){return this.http.post(n,{}).pipe(f(({data:o})=>o))}updateGoogleCalendarStatus(n){return this.http.post("/api/user/settings/calendar/google/connect",{message:n}).pipe(f(({data:c})=>c))}checkGoogleCalendarStatus(n){return this.http.get(n).pipe(f(({data:o})=>o))}};e.\u0275fac=function(o){return new(o||e)(g(ae))},e.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var ke=(()=>{let e=class e{constructor(n){this.dateTimeAndCalendarDataService=n,this.MAX_DELAY_MS=3e4,this.FALLBACK_REFRESH_MS=3e3,this.MAX_CONSECUTIVE_ERRORS=3,this.pollAttempt=0,this.consecutiveErrors=0,this.currentUrl=null,this.pollingSubscription=null,this.dataSubject=ne
1w G(null),this.isPollingSubject=new G(!1),this.errorSubject=new G(null)}get data$(){return this.dataSubject.asObservable()}get isPolling$(){return this.isPollingSubject.asObservable()}get error$(){return this.errorSubject.asObservable()}start(n){n&&(this.currentUrl===n&&this.pollingSubscription||(this.stop(),this.currentUrl=n,this.resetPollingState(),this.isPollingSubject.next(!0),this.scheduleNext(0)))}updateUrl(n){if(n){if(!this.pollingSubscription){this.start(n);return}this.currentUrl=n}}stop(){this.pollingSubscription?.unsubscribe(),this.pollingSubscription=null,this.currentUrl=null,this.isPollingSubject.next(!1),this.pollAttempt=0,this.consecutiveErrors=0}scheduleNext(n){this.currentUrl&&(this.pollingSubscription?.unsubscribe(),this.pollingSubscription=K(n).pipe(ee(()=>this.dateTimeAndCalendarDataService.checkGoogleCalendarStatus(this.currentUrl)),Q(1)).subscribe({next:o=>this.handleResponse(o),error:o=>this.handleError(o)}))}handleResponse(n){if(this.dataSubject.next(n),this.consecutiveErrors=0,this.errorSubject.next(null),!(n?.connectedCalendar?.syncState?.status===C.InProgress)){this.stop();return}this.pollAttempt++,this.scheduleNext(this.calculateEffectiveDelay())}handleError(n){if(this.consecutiveErrors++,this.pollAttempt++,this.consecutiveErrors>=this.MAX_CONSECUTIVE_ERRORS){this.errorSubject.next(n),this.stop();return}this.scheduleNext(this.calculateEffectiveDelay())}resetPollingState(){this.pollAttempt=0,this.consecutiveErrors=0}calculateEffectiveDelay(){return Math.min(this.FALLBACK_REFRESH_MS+500*this.pollAttempt,this.MAX_DELAY_MS)}};e.\u0275fac=function(o){return new(o||e)(g(b))},e.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ne=(()=>{let e=class e{constructor(){this.ComponentColorTheme=_e}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=F({type:e,selectors:[["inline-loading-status"]],inputs:{text:"text"},decls:4,vars:3,consts:[[1,"inline-loading-status"],["main-loader","",1,"inline-loading-status__spinner",3,"isLoaderActive","loaderColorTheme"],[1,"inline-loading-status__text"]],template:function(o,c){o&1&&(l(0,"div",0),m(1,"span",1),l(2,"span",2),h(3),s()()),o&2&&(a(),r("isLoaderActive",!0)("loaderColorTheme",c.ComponentColorTheme.Dark),a(2),R(" ",c.text," "))},dependencies:[Se],styles:[".color-grey-dusty[_ngcontent-%COMP%]{color:#71717a}.color-discount[_ngcontent-%COMP%]{color:#0ea5e9!important}.inline-loading-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:100%;gap:10px}.inline-loading-status__spinner[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;flex:0 0 16px}.inline-loading-status__text[_ngcontent-%COMP%]{font-size:14px;line-height:20px;white-space:nowrap;color:#18181b}"]});let i=e;return i})();function Ze(i,e){if(i&1&&(l(0,"section",4),m(1,"sn-page-header",5),N(2,3),s()),i&2){let t=d(),n=I(6);a(),r("title",t.title)("breadcrumbs",t.breadcrumbs),a(),r("ngTemplateOutlet",n)}}function He(i,e){if(i&1&&(l(0,"section",6)(1,"div",7)(2,"back-button-bar",8)(3,"h2",9),h(4),s()()(),l(5,"div",10),N(6,3),s()()),i&2){let t=d(),n=I(6);a(2),r("backUrl","/settings"),a(2),R(" ",t.title," "),a(2),r("ngTemplateOutlet",n)}}function qe(i,e){if(i&1){let t=w();l(0,"sn-button-solid-primary",18),P("actionCompleted",function(o){T(t);let c=d(2);return A(c.onConnectGoogleCalendar(o.url))}),s()}if(i&2){let t=e.ngIf,n=d(2);r("snActionButton",t)("text",t.actionName)("type",n.ButtonBehavior.Button)("isDisabled",n.isAllCalendarIntegrationButtonsDisabled)("isLoading",n.isConnectGoogleCalendarSpinningWheelActive)("isFullWidth",n.isMobileView)("snPendoTag",n.PendoFeatureTag.ConnectGoogleCalendar)("preventOpenNewTab",!0)}}function Xe(i,e){if(i&1){let t=w();l(0,"sn-button-outlined",19),P("actionCompleted",function(o){T(t);let c=d(2);return A(c.onDisconnectGoogleCalendar(o.url))}),s()}if(i&2){let t=e.ngIf,n=d(2);r("snActionButton",t)("text",t.actionName)("isDisabled",n.isAllCalendarIntegrationButtonsDisabled)("isLoading",n.isDisconnectGoogleCalendarSpinningWheelActive)("iconClass","fi fi-disconnect")("snPendoTag",n.PendoFeatureTag.DisconnectGoogleCalendar)("isFullWidth",n.isMobileView)}}function Ke(i,e){if(i&1){let t=w();l(0,"sn-button-outlined",19),P("actionCompleted",function(o){T(t);let c=d(2);return A(c.onSynchronizeGoogleCalendar(o.url))}),s()}if(i&2){let t=e.ngIf,n=d(2);r("snActionButton",t)("text",t.actionName)("isDisabled",n.isAllCalendarIntegrationButtonsDisabled)("isLoading",n.isReSyncGoogleCalendarSpinningWheelActive)("iconClass","fi fi-resync")("snPendoTag",n.PendoFeatureTag.ReSyncGoogleCalendar)("isFullWidth",n.isMobileView)}}function Je(i,e){if(i&1&&(l(0,"div"),m(1,"inline-loading-status",20),s()),i&2){let t=d(2);W("text-align-center",t.isMobileView),a(),r("text","Syncing events with your Google Calendar\u2026")}}function Qe(i,e){i&1&&(l(0,"div",37)(1,"div",38),m(2,"sn-validation-block",39),s()()),i&2&&(a(2),r("validationMessage","This field is required. Please fill in."))}function et(i,e){if(i&1){let t=w();l(0,"div",40)(1,"sn-button-solid-primary",41),P("actionCompleted",function(o){T(t);let c=d(3);return A(c.onSaveCalendarPreferencesSettings(o.url))}),s()()}if(i&2){let t=e.ngIf,n=d(3);a(),r("snActionButton",t)("text",t.actionName)("type",n.ButtonBehavior.Submit)("isLoading",n.isSaveCalendarPreferencesSpinningWheelActive)("isDisabled",n.isSaveCalendarPreferencesSpinningWheelActive)("isFullWidth",n.isMobileView)("snPendoTag",n.PendoFeatureTag.SaveCalendarPreferences)}}function tt(i,e){if(i&1&&(te(0),m(1,"sn-divider"),l(2,"div",11),m(3,"sn-section-header",21),l(4,"form",22)(5,"div",23)(6,"label",24),h(7,"Timezone"),s(),l(8,"div",25),m(9,"lazy-loaded-select",26),S(10,Qe,3,1,"div",27),s()(),l(11,"div",28)(12,"div",29)(13,"div",30)(14,"p",31),h(15,"Week starts on"),s()(),l(16,"div",32),m(17,"sn-radio-group",33),s()(),l(18,"div",29)(19,"div",30)(20,"p",31),h(21,"Date format"),s()(),l(22,"div",32),m(23,"sn-radio-group",34),s()(),l(24,"div",29)(25,"div",30)(26,"p",31),h(27,"Time format"),s()(),l(28,"div",32),m(29,"sn-radio-group",35),s()()(),S(30,et,2,7,"div",36),s()(),ne()),i&2){let t=d(2);a(4),r("formGroup",t.dateTimeForm),a(4),W("control-invalid",!t.timeZoneControl.untouched&&t.timeZoneControl.invalid),a(),r("url",t.layout==null||t.layout.preferences==null||t.layout.preferences.timezone==null||t.layout.preferences.timezone.resourcesLinks==null||t.layout.preferences.timezone.resourcesLinks.ITEMS==null?null:t.layout.preferences.timezone.resourcesLinks.ITEMS.url)("defaultOption",t.layout==null||t.layout.preferences==null||t.layout.preferences.timezone==null?null:t.layout.preferences.timezone.fieldValue)("properties",t.layout==null||t.layout.preferences==null||t.layout.preferences.timezone==null?null:t.layout.preferences.timezone.fieldProperties),a(),r("ngIf",!t.timeZoneControl.untouched&&t.timeZoneControl.invalid),a(7),r("name","weekStartsOn")("options",t.weekStartsOnOptions),a(6),r("name","dateFormat")("options",t.dateFormatOptions),a(6),r("name","timeFormat")("options",t.timeFormatOptions),a(),r("ngIf",t.layout.preferences==null||t.layout.preferences.actions==null?null:t.layout.preferences.actions.SAVE)}}function nt(i,e){if(i&1&&(l(0,"div",11),m(1,"sn-section-header",12),s(),l(2,"div",13),S(3,qe,1,8,"sn-button-solid-primary",14)(4,Xe,1,7,"sn-button-outlined",15)(5,Ke,1,7,"sn-button-outlined",15)(6,Je,2,3,"div",16),s(),S(7,tt,31,14,"ng-container",17)),i&2){let t=d();a(3),r("ngIf",t.googleCalendarData==null||t.googleCalendarData.actions==null?null:t.googleCalendarData.actions.CONNECT),a(),r("ngIf",t.googleCalendarData==null||t.googleCalendarData.connectedCalendar==null||t.googleCalendarData.connectedCalendar.actions==null?null:t.googleCalendarData.connectedCalendar.actions.DISCONNECT),a(),r("ngIf",t.googleCalendarData==null||t.googleCalendarData.connectedCalendar==null||t.googleCalendarData.connectedCalendar.actions==null?null:t.googleCalendarData.connectedCalendar.actions.RE_SYNC),a(),r("ngIf",(t.googleCalendarData==null||t.googleCalendarData.connectedCalendar==null||t.googleCalendarData.connectedCalendar.syncState==null?null:t.googleCalendarData.connectedCalendar.syncState.status)===t.GoogleCalendarSyncStateStatus.InProgress),a(),r("ngIf",t.layout.preferences)}}var y=class y{get timeZoneControl(){return this.dateTimeForm.get("timeZone")}constructor(e,t,n,o,c,ze,je,Ue){this.settingsService=e,this.messageService=t,this.dateTimeAndCalendarService=n,this.dateTimeAndCalendarDataService=o,this.router=c,this.route=ze,this.pendoService=je,this.settingsLayoutService=Ue,this.title="Date, Time & Calendar",this.breadcrumbs=[{link:"/",title:"Dashboard"},{link:"/settings",title:"Settings"},{link:null,title:"Date, Time & Calendar"}],this.unsubscribe$=new Z,this.ButtonBehavior=fe,this.PendoFeatureTag=Ce,this.weekStartsOnOptions=[{label:"Monday",value:"MONDAY"},{label:"Saturday",value:"SATURDAY"},{label:"Sunday",value:"SUNDAY"}],this.dateFormatOptions=[{label:"DD/MM/YY",value:"DD_MM_YYYY"},{label:"MM/DD/YY",value:"MM_DD_YYYY"}],this.timeFormatOptions=[{label:"12 hour (e.g. 5:00pm)",value:"T_12"},{label:"24 hour (e.g. 17:00)",value:"T_24"}],this.GoogleCalendarSyncStateStatus=C}ngOnInit(){this.initResolvedData(),this.initForm(),this.integrateGoogleCalendar(
1),this.initGoogleCalendarPollingSubscriptions()}ngOnDestroy(){this.dateTimeAndCalendarService.stop(),this.unsubscribe$.next(),this.unsubscribe$.complete()}onConnectGoogleCalendar(e){e&&(this.isConnectGoogleCalendarSpinningWheelActive=!0,this.updateAllCalendarIntegrationButtonsDisabledState(),window.location.assign(e))}onDisconnectGoogleCalendar(e){e&&(this.isDisconnectGoogleCalendarSpinningWheelActive=!0,this.updateAllCalendarIntegrationButtonsDisabledState(),this.dateTimeAndCalendarDataService.disconnectGoogleCalendar(e).pipe(D(()=>{this.isDisconnectGoogleCalendarSpinningWheelActive=!1,this.updateAllCalendarIntegrationButtonsDisabledState()}),u(this.unsubscribe$)).subscribe({next:t=>{this.setGoogleCalendarData(t),this.pendoService.trackEvent(O.GoogleCalendarDisconnected),this.messageService.showToaster("s_2","googleCalendar"),this.triggerOnboardingRefresh()},error:t=>{this.handleGoogleCalendarIntegrationError(t)}}))}onSynchronizeGoogleCalendar(e){e&&(this.isReSyncGoogleCalendarSpinningWheelActive=!0,this.updateAllCalendarIntegrationButtonsDisabledState(),this.dateTimeAndCalendarDataService.synchronizeGoogleCalendar(e).pipe(D(()=>{this.isReSyncGoogleCalendarSpinningWheelActive=!1,this.updateAllCalendarIntegrationButtonsDisabledState()}),u(this.unsubscribe$)).subscribe({next:t=>{this.setGoogleCalendarData(t),this.pendoService.trackEvent(O.GoogleCalendarSynchronized),this.messageService.showToaster("s_1","googleCalendar")},error:t=>{this.handleGoogleCalendarIntegrationError(t)}}))}onSaveCalendarPreferencesSettings(e){e&&(this.isSaveCalendarPreferencesSpinningWheelActive=!0,this.updateAllCalendarIntegrationButtonsDisabledState(),this.settingsService.updateDateTimeSettings(e,this.dateTimeForm.value).pipe(u(this.unsubscribe$),D(()=>{this.isSaveCalendarPreferencesSpinningWheelActive=!1,this.updateAllCalendarIntegrationButtonsDisabledState()})).subscribe({next:t=>{this.pendoService.updatePendoUserOptions({visitor:{timeZone:t?.data?.timeZone?.name}}),this.settingsService.getNewUserBootstrapSettingsData().pipe(u(this.unsubscribe$)).subscribe(),this.messageService.showToaster("s_0","calendar")},error:t=>{this.messageService.handleError(t)}}))}initForm(){let e=this.layout.preferences;this.dateTimeForm=new ce({weekStartsOn:new E(e?.weekStartsOn,M.required),dateFormat:new E(e?.dateFormat,M.required),timeFormat:new E(e?.timeFormat,M.required),timeZone:new E(e?.timezone?.fieldValue?.key,M.required)})}integrateGoogleCalendar(){let t=new URL(window.location.href).searchParams.get("code");t&&(this.messageService.showToaster("i_0","googleCalendar"),this.updateGoogleCalendarStatus(t))}updateGoogleCalendarStatus(e){e&&(this.isConnectGoogleCalendarSpinningWheelActive=!0,this.updateAllCalendarIntegrationButtonsDisabledState(),this.dateTimeAndCalendarDataService.updateGoogleCalendarStatus(e).pipe(D(()=>{this.isConnectGoogleCalendarSpinningWheelActive=!1,this.updateAllCalendarIntegrationButtonsDisabledState()}),u(this.unsubscribe$)).subscribe({next:t=>{this.removeParamsFromUrl(),this.setGoogleCalendarData(t),this.checkIsCompleteCalendarIntegration(t)},error:t=>{this.handleGoogleCalendarIntegrationError(t)}}))}checkGoogleCalendarStatus(e){let n=e?.connectedCalendar?.syncState?.status===C.InProgress,o=e?.connectedCalendar?.resourcesLinks?.GET_DATA?.url;if(!n||!o){this.googleCalendarStatusUrl=null,this.dateTimeAndCalendarService.stop();return}if(!this.googleCalendarStatusUrl){this.googleCalendarStatusUrl=o,this.dateTimeAndCalendarService.start(o);return}this.googleCalendarStatusUrl!==o&&(this.googleCalendarStatusUrl=o,this.dateTimeAndCalendarService.updateUrl(o))}checkIsCompleteCalendarIntegration(e){e?.connectedCalendar?.syncState?.status===C.Completed&&this.completeCalendarIntegration()}triggerOnboardingRefresh(){this.settingsLayoutService.triggerOnboardingRefresh()}handleGoogleCalendarIntegrationError(e){this.messageService.handleError(e),this.pendoService.trackEvent(O.GoogleCalendarIntegrationError)}removeParamsFromUrl(){this.router.navigate([],{relativeTo:this.route,replaceUrl:!0})}completeCalendarIntegration(){this.pendoService.trackEvent(O.GoogleCalendarConnected),this.messageService.showToaster("s_1","googleCalendar"),this.triggerOnboardingRefresh()}updateAllCalendarIntegrationButtonsDisabledState(){this.isAllCalendarIntegrationButtonsDisabled=this.isConnectGoogleCalendarSpinningWheelActive||this.isDisconnectGoogleCalendarSpinningWheelActive||this.isReSyncGoogleCalendarSpinningWheelActive}
1initResolvedData(){this.setLayout(this.route.snapshot.data.layout)}setLayout(e){this.layout=e,this.setGoogleCalendarData(e.googleCalendar)}setGoogleCalendarData(e){this.googleCalendarData=e,this.checkGoogleCalendarStatus(e)}initGoogleCalendarPollingSubscriptions(){this.dateTimeAndCalendarService.data$.pipe(u(this.unsubscribe$)).subscribe(e=>{e&&(this.setGoogleCalendarData(e),this.checkIsCompleteCalendarIntegration(e))}),this.dateTimeAndCalendarService.error$.pipe(u(this.unsubscribe$)).subscribe(e=>{e&&this.handleGoogleCalendarIntegrationError(e)})}};y.\u0275fac=function(t){return new(t||y)(p(Ae),p(j),p(ke),p(b),p(z),p(ge),p(he),p(Ge))},y.\u0275cmp=F({type:y,selectors:[["date-time-calendar"]],standalone:!1,decls:7,vars:1,consts:[["deskTemplate",""],["mobileTemplate",""],["mainContentTemplate",""],[3,"ngTemplateOutlet"],[1,"settings-section"],[3,"title","breadcrumbs"],[1,"settings-section","settings-section-mobile"],[1,"settings-section__back-btn-bar-wrapper"],[3,"backUrl"],["bar-title",""],[1,"mt-20"],[1,"mtb-30"],["title","Calendar Integration","description",`Sync your Google Calendar with Studio Ninja so you have all your 2 appointments in one place.`],[1,"mtb-30","buttons-wrapper"],[3,"snActionButton","text","type","isDisabled","isLoading","isFullWidth","snPendoTag","preventOpenNewTab","actionCompleted",4,"ngIf"],[3,"snActionButton","text","isDisabled","isLoading","iconClass","snPendoTag","isFullWidth","actionCompleted",4,"ngIf"],[3,"text-align-center",4,"ngIf"],[4,"ngIf"],[3,"actionCompleted","snActionButton","text","type","isDisabled","isLoading","isFullWidth","snPendoTag","preventOpenNewTab"],[3,"actionCompleted","snActionButton","text","isDisabled","isLoading","iconClass","snPendoTag","isFullWidth"],[3,"text"],["title","Date, Time & Calendar Settings","description",`Choose your timezone, as well as your calendar, date and time format 3 preferences.`],[1,"mt-30",3,"formGroup"],[1,"form-group","mb-30","timezone-section"],["for","timezone",1,"timezone-label","input-field-alt-label","text-right"],[1,"p-0","mb-10","timezone-dropdown"],["id","timezone","formControlName","timeZone",3,"url","defaultOption","properties"],["class","input-field-alt-bottom-container",4,"ngIf"],[1,"option_group-wrapper"],[1,"option_group"],[1,"option_group__label","mr-18"],[1,"input-field-alt-label","text-right"],[1,"option_group__radios"],["formControlName","weekStartsOn",1,"option_group__radio-group",3,"name","options"],["formControlName","dateFormat",1,"option_group__radio-group",3,"name","options"],["formControlName","timeFormat",1,"option_group__radio-group",3,"name","options"],["class","mt-30",4,"ngIf"],[1,"input-field-alt-bottom-container"],[1,"input-field-alt-bottom-container__validations-wrapper"],[3,"validationMessage"],[1,"mt-30"],[3,"actionCompleted","snActionButton","text","type","isLoading","isDisabled","isFullWidth","snPendoTag"]],template:function(t,n){if(t&1&&(N(0,3),S(1,Ze,3,3,"ng-template",null,0,L)(3,He,7,3,"ng-template",null,1,L)(5,nt,8,5,"ng-template",null,2,L)),t&2){let o=I(2),c=I(4);r("ngTemplateOutlet",n.isMobileView?c:o)}},dependencies:[ie,oe,de,le,se,me,pe,Ee,we,ye,be,U,V,Be,ve,xe,Ie,Ne,Fe],styles:[".color-grey-dusty[_ngcontent-%COMP%]{color:#71717a}.color-discount[_ngcontent-%COMP%]{color:#0ea5e9!important}.option_group[_ngcontent-%COMP%]{display:flex}.option_group-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.option_group__label[_ngcontent-%COMP%]{max-width:125px;width:100%}.option_group__label[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{line-height:1.18}.timezone-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:0 15px}.timezone-section[_ngcontent-%COMP%] .timezone-label[_ngcontent-%COMP%]{width:125px;min-width:125px}.timezone-section[_ngcontent-%COMP%] .timezone-dropdown[_ngcontent-%COMP%]{flex-grow:1;max-width:400px}@media screen and (max-width: 991px){.timezone-section[_ngcontent-%COMP%] .timezone-dropdown[_ngcontent-%COMP%]{max-width:100%;width:100%}}@media screen and (max-width: 576px){.timezone-section[_ngcontent-%COMP%]{flex-wrap:wrap}.timezone-section[_ngcontent-%COMP%] .timezone-label[_ngcontent-%COMP%]{padding-left:0;text-align:left}.timezone-section[_ngcontent-%COMP%] .timezone-dropdown[_ngcontent-%COMP%]{width:100%;max-width:100%}}@media screen and (max-width: 576px){.option_group[_ngcontent-%COMP%]{flex-direction:column}.option_group[_ngcontent-%COMP%] .input-field-alt-label[_ngcontent-%COMP%]{text-align:left}}.buttons-wrapper[_ngcontent-%COMP%]{display:flex;row-gap:15px;column-gap:20px;width:100%}@media screen and (max-width: 991px){.buttons-wrapper[_ngcontent-%COMP%]{flex-direction:column}.buttons-wrapper[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:100%}}"]});var x=y;H([Te(),q("design:type",Boolean)],x.prototype,"isMobileView",void 0);var Re=(()=>{let e=class e{constructor(n,o,c){this.dateTimeAndCalendarDataService=n,this.messageService=o,this.router=c}resolve(){return this.dateTimeAndCalendarDataService.getDateTimeAndCalendarLayout().pipe(J(n=>(this.messageService.handleError(n),this.navigateToSettings(),X(()=>n))))}navigateToSettings(){this.router.navigateByUrl("/settings")}};e.\u0275fac=function(o){return new(o||e)(g(b),g(j),g(z))},e.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var it=[{path:"",component:x,data:{title:"Calendar Settings"},resolve:{layout:Re}}],Le=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=k({type:e}),e.\u0275inj=B({imports:[Y.forChild(it),Y]});let i=e;return i})();var Gn=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=k({type:e}),e.\u0275inj=B({imports:[re,Le,ue,Oe,Pe,U,V,De,Me]});let i=e;return i})();export{Gn as DateTimeAndCalendarModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.