PageSourceSearch

https://portal.sondermind.com/release-20260930/chunk-NQBUTJPK.js

js sondermind.com collected 2026-10-01 13:05:08 UTC 56,080 bytes, 7 lines download raw bytes

1import{a as Ge,b as Mi}from"./chunk-EFEVWHFG.js";import{b as nn}from"./chunk-2COYZ5VQ.js";import{a as Hi,c as Ui,f as Gi,g as Yi,h as Wi,i as Pt,j as qi,k as Qi,m as Ji,n as q,o as wt,p as St,q as Q,r as ot,s as Ki,t as Zi,u as tn,v as en}from"./chunk-KEBIOISK.js";import{a as Di,b as Bi,c as Ri,d as ji,e as Li,j as $i,r as Fi,t as et,u as zi,y as yt}from"./chunk-ZMHLYSSK.js";import"./chunk-MJQZWSUD.js";import{g as Ne,h as Fe,i as ze,k as He,l as Ue}from"./chunk-3EVB7YX2.js";import{a as it,b as Ot,c as nt,d as xt,e as Tt,f as Ht,g as Et}from"./chunk-BOUR6FML.js";import{a as Ve}from"./chunk-IHFFCQZ6.js";import"./chunk-I5NJYKDN.js";import"./chunk-7VDTLGPD.js";import{c as Mt,f as Vi}from"./chunk-6VJYHPQW.js";import{a as ki}from"./chunk-IEY5VM6U.js";import"./chunk-4UPIZYXH.js";import{c as yi}from"./chunk-EVKN4UTE.js";import"./chunk-S75SA3MG.js";import"./chunk-2IUZCRFN.js";import"./chunk-7Q7ANX2H.js";import"./chunk-FKGFWPOL.js";import"./chunk-OWR5AWVW.js";import{c as Xi}from"./chunk-JJJYC4DQ.js";import"./chunk-NFDY3WQR.js";import"./chunk-XKKF5ICJ.js";import"./chunk-WBPAPLSL.js";import"./chunk-MITLZFI5.js";import"./chunk-RBMYRDUF.js";import"./chunk-ZKLSXHGX.js";import"./chunk-BSZLYF3D.js";import"./chunk-FO67IAQ4.js";import{b as Le}from"./chunk-XBXRV6YO.js";import"./chunk-KRTZAHSO.js";import{b as Ni}from"./chunk-6IROMZDQ.js";import"./chunk-YDDG2TNA.js";import"./chunk-G4R4NXCU.js";import"./chunk-IS4XDRT7.js";import"./chunk-TNRAUKLX.js";import"./chunk-JFCDCI4I.js";import"./chunk-VSK4EUWS.js";import"./chunk-LDTOX5IU.js";import"./chunk-6LGSEHXQ.js";import{I as bi}from"./chunk-FLXBYVYP.js";import{c as ke,d as De}from"./chunk-DNUCBN2F.js";import{K as hi,O as Ci,f as Ft,k as ni,l as oi,q as ri,r as ai,s as zt}from"./chunk-5KLW4PZ7.js";import{a as Ke,b as Ze,e as ti}from"./chunk-FPZ3QZ6T.js";import"./chunk-R6DXU43U.js";import{c as Ai}from"./chunk-KKNMQGBV.js";import{b as Pi,c as wi,q as Ti,r as Ei,t as Ii}from"./chunk-SNCCC2KE.js";import"./chunk-MUYNN7TE.js";import"./chunk-56S3QIIA.js";import{$a as xi,Aa as ui,E as Ye,Ea as fi,I as ii,Ka as _i,La as vi,Y as pi,Ya as Si,_a as Oi,c as Nt,d as Oe,e as ut,ea as di,k as Te,o as Ee,p as Ie,xa as gi}from"./chunk-BQX2HMN7.js";import"./chunk-KBQTCCS2.js";import{b as si,c as li}from"./chunk-KABOUG3F.js";import{g as ei}from"./chunk-2BLNBIGV.js";import"./chunk-AWURE4JY.js";import{b as mi,c as ci}from"./chunk-2SMPW3SE.js";import{P as Qe,Q as Xe,R as Je,w as xe}from"./chunk-3DPBWHKC.js";import{a as $e,j as Ct}from"./chunk-73FEF3PS.js";import{j as ht,s as Re,t as je}from"./chunk-R755IUS4.js";import"./chunk-F4MZ3DWB.js";import{a as We,b as _t,c as vt,m as G,o as Y,p as qe,r as W,s as bt}from"./chunk-WNDQP6KM.js";import"./chunk-NCIDOBTD.js";import"./chunk-DVHHB4WB.js";import"./chunk-FC6TLMRM.js";import{B as Be,O as U,v as Ae}from"./chunk-YPKDNI3P.js";import"./chunk-ZLON2Z7W.js";import{E as ye,G as Pe,H as we,h as Ce,i as _e,q as ve,u as be,x as Me}from"./chunk-77REXB4S.js";import"./chunk-3VGKZTQQ.js";import"./chunk-IYNTS4NH.js";import{H as ft,x as Se}from"./chunk-BQYW6GCH.js";import"./chunk-GVPKBVTG.js";import{$b as K,$d as j,Ab as b,Ac as pe,Bc as Lt,C as N,Ca as te,Cb as M,Dd as pt,E as Qt,F as Xt,Ga as lt,Hb as l,Ib as r,Jb as a,Jc as _,Kb as y,Kc as v,N as Jt,Na as mt,Ob as B,Oc as $t,Pb as R,Rb as E,T as Kt,Ub as g,Wa as ee,Wb as c,Xb as oe,Yb as Rt,Za as ie,Zb as re,Zd as dt,_b as jt,ab as s,ac as Z,ae as gt,bb as Vt,ca as rt,ce as tt,e as A,ec as O,f as $,fa as Zt,gc as ae,ha as S,ib as d,ic as se,ja as at,jc as p,jd as de,k as qt,kc as le,lc as H,ld as ge,mb as T,mc as me,nb as z,ob as ne,od as ct,pa as At,qa as F,r as w,rb as V,s as Dt,sa as J,ta as st,td as ue,ud as k,wd as fe,xa as u,xd as he,ya as f,zb as Bt,zc as ce}from"./chunk-LFUJLOLB.js";import"./chunk-UCFJC2RQ.js";import"./chunk-U72J75UF.js";
1import"./chunk-EQKOF2KP.js";import"./chunk-653QNZOA.js";import"./chunk-HW2FH25V.js";import"./chunk-TPMTEZSM.js";import"./chunk-HMFS42I2.js";import"./chunk-BIO6JXCF.js";var gn=["*",[["mat-toolbar-row"]]],un=["*","mat-toolbar-row"],fn=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=ne({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return i})(),on=(()=>{class i{_elementRef=st(mt);_platform=st(Se);_document=st(te);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=T({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,n,o){if(e&1&&re(o,fn,5),e&2){let m;K(m=Z())&&(n._toolbarRows=m)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(e,n){e&2&&(se(n.color?"mat-"+n.color:""),ae("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",n._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:un,decls:2,vars:0,template:function(e,n){e&1&&(oe(gn),Rt(0),Rt(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}
2`],encapsulation:2,changeDetection:0})}return i})();var rn=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=z({type:i});static \u0275inj=F({imports:[Nt,Nt]})}return i})();var It=(()=>{class i{constructor(t){this.breakpointService=t,this.IrisButtonTypes=Y,this.IrisButtonContainerAlignments=_t,this.IrisButtonContainerMobileLayouts=We,this.modalOpen=!1,this.stay=new Vt,this.leave=new Vt}ngOnInit(){this.breakpointService.hasMultipleModals=!0}closeModal(){this.leave.emit()}stayOnModal(){this.stay.emit()}static{this.\u0275fac=function(e){return new(e||i)(d(ft))}}static{this.\u0275cmp=T({type:i,selectors:[["dirty-data-prompt"]],inputs:{modalOpen:"modalOpen"},outputs:{stay:"stay",leave:"leave"},decls:11,vars:5,consts:[[1,"close-modal",3,"sonderModalClosed","sonderModalOpen"],[1,"close-wrapper"],["data-test","confirmation-close-icon",1,"close-icon",3,"click"],[1,"close-text"],[3,"mobileLayout","alignment"],["data-test","confirmation-close-button",3,"click","buttonType"],["data-test","confirmation-stay-button",3,"click","buttonType"]],template:function(e,n){e&1&&(r(0,"sonder-modal",0),g("sonderModalClosed",function(){return n.closeModal()}),r(1,"div",1)(2,"mat-icon",2),g("click",function(){return n.closeModal()}),p(3," close "),a()(),r(4,"h1",3),p(5," Leave without saving? "),a(),r(6,"iris-button-container",4)(7,"iris-button",5),g("click",function(){return n.closeModal()}),p(8," Leave "),a(),r(9,"iris-button",6),g("click",function(){return n.stayOnModal()}),p(10," Stay "),a()()()),e&2&&(l("sonderModalOpen",n.modalOpen),s(6),l("mobileLayout",n.IrisButtonContainerMobileLayouts.SIDEBYSIDE)("alignment",n.IrisButtonContainerAlignments.END),s(),l("buttonType",n.IrisButtonTypes.SECONDARY),s(2),l("buttonType",n.IrisButtonTypes.PRIMARY))},dependencies:[pt,wi,Pi,ut,Oe,bt,W,vt],styles:[`.close-modal[_ngcontent-%COMP%]     .sonder-modal-header{display:none!important}.close-wrapper[_ngcontent-%COMP%]{margin-bottom:1.5rem}.close-wrapper[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{cursor:pointer;float:right}.close-text[_ngcontent-%COMP%]{text-align:start;font-family:Inclusive Sans,Arial,sans-serif;color:#001219;font-weight:600;font-size:clamp(1.5rem,calc(1.5rem + 1.75 * ((100vw - 23.4375rem) / 96.5625)),3.25rem);line-height:1.2;letter-spacing:normal;margin-bottom:0;margin-bottom:2.5rem}@media(min-width:600px){.close-text[_ngcontent-%COMP%]{margin-bottom:3rem}}
3/*# sourceMappingURL=dirty-data-prompt.component-EUFTANDQ.css.map */`]})}}return i})();function yn(i,C){if(i&1){let t=E();B(0),r(1,"h2",3),p(2,"Decline and remove session?"),a(),r(3,"div",4),p(4),a(),r(5,"iris-button-container",5)(6,"iris-button",6),_(7,"async"),g("click",function(){u(t);let n=c(3);return f(n.goBack())}),p(8,"No, go back"),a(),r(9,"iris-button",7),_(10,"async"),g("click",function(){u(t);let n=c(2).ngIf,o=c();return f(o.declineTimeProposal(n.id))}),p(11,"Yes, decline and remove session"),a()(),R()}if(i&2){let t=c(2).ngIf,e=c();s(4),H(" This session will be removed from your calendar, and we'll notify ",t.patientName," that you declined their request. "),s(),l("alignment",e.IrisButtonContainerAlignments.END),s(),l("disabled",v(7,5,e.isSaving$))("buttonType",e.IrisButtonTypes.SECONDARY),s(3),l("disabled",v(10,7,e.isSaving$))}}function Pn(i,C){if(i&1&&(B(0),V(1,yn,12,9,"ng-container",2),_(2,"async"),R()),i&2){c();let t=O(4),e=c();s(),l("ngIf",!v(2,2,e.isDeclined$))("ngIfElse",t)}}function wn(i,C){if(i&1&&(r(0,"div",13)(1,"span",14),p(2,"Text message"),a(),r(3,"span",14),p(4),a()()),i&2){let t=c(2).ngIf;s(4),le(t.patientHomePhone)}}function Sn(i,C){if(i&1){let t=E();r(0,"div",13)(1,"span",14),p(2,"SonderMind messages"),a(),r(3,"iris-button",15),g("click",function(){u(t);let n=c(2).ngIf,o=c();return f(o.openChat(n.platformIdentity))}),p(4,"Send a message"),a()()}}function On(i,C){if(i&1&&(r(0,"h2",8),p(1,"The session has been removed "),a(),r(2,"div",9),p(3),a(),r(4,"div",10),p(5),a(),r(6,"div",11),V(7,wn,5,1,"div",12)(8,Sn,5,0,"div",12),a()),i&2){let t=c().ngIf;s(3),H(" Next, you'll need to follow up with ",t.patientName," to find a better time for their first session with you. "),s(2),H("",t.patientName," prefers to be contacted via"),s(2),l("ngIf",t.patientHomePhone),s(),l("ngIf",t.patientChatProfileUuid)}}function xn(i,C){if(i&1&&(B(0),V(1,Pn,3,4,"ng-container",2),_(2,"async"),V(3,On,9,4,"ng-template",null,1,$t),R()),i&2){let t=c(),e=O(3);s(),l("ngIf",!v(2,2,t.isSaving$))("ngIfElse",e)}}function Tn(i,C){i&1&&y(0,"mat-spinner",16)}var kt=(()=>{class i{constructor(t,e,n,o,m,h){this.eventSvc=t,this.route=e,this.router=n,this.calEventsStore=o,this.snackbar=m,this.chatStore=h,this.destroyed$=new A,this.isSaving$=new $(!1),this.isDeclined$=new $(!1),this.IrisButtonTypes=Y,this.IrisButtonContainerAlignments=_t}ngOnInit(){this.event$=this.route.paramMap.pipe(S(this.destroyed$),w(t=>{let e=t.get("id");return{id:e,hasEvent:this.calEventsStore.hasEvent(e)}}),Zt(t=>t.hasEvent?this.calEventsStore.selectEvent(t.id):this.eventSvc.find(t.id,{view:"with_patient_info"}).pipe(w(e=>e.data),rt(1)))),this.event$.subscribe(t=>{(!t.isTimeProposal||t.eventState==="scheduled")&&(this.snackbar.open("This is not a pending session request.","Dismiss"),this.closeDetailModal()),this.isDeclined$.next(t.proposalStatus==="declined")})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}declineTimeProposal(t){this.isSaving$.next(!0),this.eventSvc.declineTimeProposal(t).pipe(Kt(()=>{this.isSaving$.next(!1)})).subscribe({next:e=>{this.isDeclined$.next(!0),this.calEventsStore&&this.calEventsStore.doReloadEvents(),this.snackbar.open("Session request removed.","Dismiss")},error:e=>{this.snackbar.open("Session request could not be removed.","Dismiss"),console.error(e)}})}goBack(){this.router.navigate(["../"],{relativeTo:this.route})}openChat(t){this.chatStore.openChatRoomByPlatformIdentity$(t).pipe(Jt(1)).subscribe(),this.closeDetailModal()}closeDetailModal(){this.router.navigate(["/scheduling"])}static{this.\u0275fac=function(e){return new(e||i)(d(Mt),d(dt),d(j),d(yt),d(ke),d(Le))}}static{this.\u0275cmp=T({type:i,selectors:[["member-page-propose-a-time-decline"]],standalone:!1,decls:4,vars:4,consts:[["loading",""],["followUpInfo",""],[4,"ngIf","ngIfElse"],[1,"iris-h2-responsive","iris-mb-03"],[1,"decline-message","iris-body-responsive"],["data-dd-privacy","allow",1,"iris-mt-03",3,"alignment"],["aria-label","Back to view event page","data-test","back-to-view-event-button",1,"--retain-full-width",3,"click","disabled","buttonType"],["aria-label","Decline time proposal","data-test","decline-time-proposal-button",1,"--retain-full-width",3,"click","disabled"],["data-test","session-removed-text",1,"iris-h2-responsive","iris-mb-03"],[1,"iris-body-responsive","iris-mb-04"],[1,"iris-body-bold-responsive","iris-mb-03"],[1,"contact-via","iris-mb-08"],["class","contact-via-info 
3iris-body-responsive",4,"ngIf"],[1,"contact-via-info","iris-body-responsive"],[1,"contact-text"],["gtagCtaEvent","","label","NCC clicked from decline and remove session modal","aria-label","Non Clinical Chat","data-test","non-clinical-chat",1,"iris-mt-01",3,"click"],["mode","indeterminate"]],template:function(e,n){if(e&1&&(V(0,xn,5,4,"ng-container",2),_(1,"async"),V(2,Tn,1,0,"ng-template",null,0,$t)),e&2){let o=O(3);l("ngIf",v(1,2,n.event$))("ngIfElse",o)}},dependencies:[ct,Ee,W,vt,k],styles:[`.iris-margin-auto[_ngcontent-%COMP%]{margin:auto!important}.iris-mt-00[_ngcontent-%COMP%]{margin-top:0!important}.iris-mr-00[_ngcontent-%COMP%]{margin-right:0!important}.iris-mb-00[_ngcontent-%COMP%]{margin-bottom:0!important}.iris-ml-00[_ngcontent-%COMP%]{margin-left:0!important}.iris-mx-00[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.iris-my-00[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.iris-pt-00[_ngcontent-%COMP%]{padding-top:0!important}.iris-pr-00[_ngcontent-%COMP%]{padding-right:0!important}.iris-pb-00[_ngcontent-%COMP%]{padding-bottom:0!important}.iris-pl-00[_ngcontent-%COMP%]{padding-left:0!important}.iris-px-00[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.iris-py-00[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.iris-mt-01[_ngcontent-%COMP%]{margin-top:.25rem!important}.iris-mr-01[_ngcontent-%COMP%]{margin-right:.25rem!important}.iris-mb-01[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.iris-ml-01[_ngcontent-%COMP%]{margin-left:.25rem!important}.iris-mx-01[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.iris-my-01[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.iris-pt-01[_ngcontent-%COMP%]{padding-top:.25rem!important}.iris-pr-01[_ngcontent-%COMP%]{padding-right:.25rem!important}.iris-pb-01[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.iris-pl-01[_ngcontent-%COMP%]{padding-left:.25rem!important}.iris-px-01[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.iris-py-01[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.iris-mt-02[_ngcontent-%COMP%]{margin-top:.5rem!important}.iris-mr-02[_ngcontent-%COMP%]{margin-right:.5rem!important}.iris-mb-02[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.iris-ml-02[_ngcontent-%COMP%]{margin-left:.5rem!important}.iris-mx-02[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.iris-my-02[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.iris-pt-02[_ngcontent-%COMP%]{padding-top:.5rem!important}.iris-pr-02[_ngcontent-%COMP%]{padding-right:.5rem!important}.iris-pb-02[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.iris-pl-02[_ngcontent-%COMP%]{padding-left:.5rem!important}.iris-px-02[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.iris-py-02[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.iris-mt-03[_ngcontent-%COMP%]{margin-top:1rem!important}.iris-mr-03[_ngcontent-%COMP%]{margin-right:1rem!important}.iris-mb-03[_ngcontent-%COMP%]{margin-bottom:1rem!important}.iris-ml-03[_ngcontent-%COMP%]{margin-left:1rem!important}.iris-mx-03[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.iris-my-03[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.iris-pt-03[_ngcontent-%COMP%]{padding-top:1rem!important}.iris-pr-03[_ngcontent-%COMP%]{padding-right:1rem!important}.iris-pb-03[_ngcontent-%COMP%]{padding-bottom:1rem!important}.iris-pl-03[_ngcontent-%COMP%]{padding-left:1rem!important}.iris-px-03[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.iris-py-03[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.iris-mt-04[_ngcontent-%COMP%]{margin-top:1.5rem!important}.iris-mr-04[_ngcontent-%COMP%]{margin-right:1.5rem!important}.iris-mb-04[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.iris-ml-04[_ngcontent-%COMP%]{margin-left:1.5rem!important}.iris-mx-04[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.iris-my-04[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.iris-pt-04[_ngcontent-%COMP%]{padding-top:1.5rem!important}.iris-pr-04[_ngcontent-%COMP%]{padding-right:1.5rem!important}.iris-pb-04[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}
3.iris-pl-04[_ngcontent-%COMP%]{padding-left:1.5rem!important}.iris-px-04[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.iris-py-04[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.iris-mt-05[_ngcontent-%COMP%]{margin-top:2rem!important}.iris-mr-05[_ngcontent-%COMP%]{margin-right:2rem!important}.iris-mb-05[_ngcontent-%COMP%]{margin-bottom:2rem!important}.iris-ml-05[_ngcontent-%COMP%]{margin-left:2rem!important}.iris-mx-05[_ngcontent-%COMP%]{margin-left:2rem!important;margin-right:2rem!important}.iris-my-05[_ngcontent-%COMP%]{margin-top:2rem!important;margin-bottom:2rem!important}.iris-pt-05[_ngcontent-%COMP%]{padding-top:2rem!important}.iris-pr-05[_ngcontent-%COMP%]{padding-right:2rem!important}.iris-pb-05[_ngcontent-%COMP%]{padding-bottom:2rem!important}.iris-pl-05[_ngcontent-%COMP%]{padding-left:2rem!important}.iris-px-05[_ngcontent-%COMP%]{padding-left:2rem!important;padding-right:2rem!important}.iris-py-05[_ngcontent-%COMP%]{padding-top:2rem!important;padding-bottom:2rem!important}.iris-mt-06[_ngcontent-%COMP%]{margin-top:2.5rem!important}.iris-mr-06[_ngcontent-%COMP%]{margin-right:2.5rem!important}.iris-mb-06[_ngcontent-%COMP%]{margin-bottom:2.5rem!important}.iris-ml-06[_ngcontent-%COMP%]{margin-left:2.5rem!important}.iris-mx-06[_ngcontent-%COMP%]{margin-left:2.5rem!important;margin-right:2.5rem!important}.iris-my-06[_ngcontent-%COMP%]{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.iris-pt-06[_ngcontent-%COMP%]{padding-top:2.5rem!important}.iris-pr-06[_ngcontent-%COMP%]{padding-right:2.5rem!important}.iris-pb-06[_ngcontent-%COMP%]{padding-bottom:2.5rem!important}.iris-pl-06[_ngcontent-%COMP%]{padding-left:2.5rem!important}.iris-px-06[_ngcontent-%COMP%]{padding-left:2.5rem!important;padding-right:2.5rem!important}.iris-py-06[_ngcontent-%COMP%]{padding-top:2.5rem!important;padding-bottom:2.5rem!important}.iris-mt-07[_ngcontent-%COMP%]{margin-top:3rem!important}.iris-mr-07[_ngcontent-%COMP%]{margin-right:3rem!important}.iris-mb-07[_ngcontent-%COMP%]{margin-bottom:3rem!important}.iris-ml-07[_ngcontent-%COMP%]{margin-left:3rem!important}.iris-mx-07[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.iris-my-07[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.iris-pt-07[_ngcontent-%COMP%]{padding-top:3rem!important}.iris-pr-07[_ngcontent-%COMP%]{padding-right:3rem!important}.iris-pb-07[_ngcontent-%COMP%]{padding-bottom:3rem!important}.iris-pl-07[_ngcontent-%COMP%]{padding-left:3rem!important}.iris-px-07[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.iris-py-07[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.iris-mt-08[_ngcontent-%COMP%]{margin-top:3.5rem!important}.iris-mr-08[_ngcontent-%COMP%]{margin-right:3.5rem!important}.iris-mb-08[_ngcontent-%COMP%]{margin-bottom:3.5rem!important}.iris-ml-08[_ngcontent-%COMP%]{margin-left:3.5rem!important}.iris-mx-08[_ngcontent-%COMP%]{margin-left:3.5rem!important;margin-right:3.5rem!important}.iris-my-08[_ngcontent-%COMP%]{margin-top:3.5rem!important;margin-bottom:3.5rem!important}.iris-pt-08[_ngcontent-%COMP%]{padding-top:3.5rem!important}.iris-pr-08[_ngcontent-%COMP%]{padding-right:3.5rem!important}.iris-pb-08[_ngcontent-%COMP%]{padding-bottom:3.5rem!important}.iris-pl-08[_ngcontent-%COMP%]{padding-left:3.5rem!important}.iris-px-08[_ngcontent-%COMP%]{padding-left:3.5rem!important;padding-right:3.5rem!important}.iris-py-08[_ngcontent-%COMP%]{padding-top:3.5rem!important;padding-bottom:3.5rem!important}.iris-mt-auto[_ngcontent-%COMP%]{margin-top:auto!important}.iris-mr-auto[_ngcontent-%COMP%]{margin-right:auto!important}.iris-mb-auto[_ngcontent-%COMP%]{margin-bottom:auto!important}.iris-ml-auto[_ngcontent-%COMP%]{margin-left:auto!important}.iris-mx-auto[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}.iris-my-auto[_ngcontent-%COMP%]{margin-top:auto!important;margin-bottom:auto!important}[_nghost-%COMP%]   .decline-message[_ngcontent-%COMP%]{margin-bottom:3.5rem}[_nghost-%COMP%]   .contact-via-info[_ngcontent-%COMP%]{background-color:#f2f5f6;padding:.5rem 1rem;margin-bottom:1rem;display:flex;flex-direction:row;border-radius:.25rem;justify-content:space-between}[_nghost-%COMP%]   .contact-via-info[_ngcontent-%COMP%]   .contact-text[_ngcontent-%COMP%]{padding:1rem 0px}
4/*# sourceMappingURL=propose-a-time-decline.component-XYDRRFAA.css.map */`]})}}return i})();function En(i,C){if(i&1&&(r(0,"div",5)(1,"p"),p(2,"Video sessions only"),a(),r(3,"a",8),p(4,"Ready to offer in person sessions?"),a()()),i&2){let t=c(3);s(3),l("href",t.communityHelpArticleUrl,ee)}}function In(i,C){if(i&1&&(r(0,"form",9)(1,"iris-form-field",10),y(2,"iris-radio-group",11),a()()),i&2){let t=c(3),e=c();l("formGroup",e.sessionTypeForm),s(),l("showOptionalTag",!1),s(),l("options",e.sessionTypes)("disabled",!t.acceptingClients)}}function kn(i,C){if(i&1&&(r(0,"div",6),b(1,In,3,4,"form",9),a()),i&2){let t=c(2);s(),M(t?1:-1)}}function Dn(i,C){if(i&1&&(r(0,"h1"),p(1,"Availability"),a(),r(2,"p",1)(3,"span"),p(4,"Set whether you receive new matches. "),a(),r(5,"a",2),p(6,"Scheduling settings"),a(),r(7,"span"),p(8," and "),a(),r(9,"a",3),p(10,"working hours"),a(),r(11,"span"),p(12," are set independently."),a()(),r(13,"iris-card"),y(14,"provider-general-availability",4),a(),b(15,En,5,1,"div",5),b(16,kn,2,1,"div",6),y(17,"provider-shareable-link-copy-button",7)),i&2){let t=c(),e=c();s(14),l("acceptingClients",e.acceptingClients)("providerProfile",e.providerProfile),s(),M(t.noPhysicalLocation?15:-1),s(),M(!t.noPhysicalLocation&&e.showSessionTypesSection()?16:-1),s(),l("user$",e.user$)}}function An(i,C){if(i&1&&(r(0,"div",0),b(1,Dn,18,5),a()),i&2){let t=C;s(),M(t!=null&&t.isProvider?1:-1)}}var ln=(()=>{class i{constructor(t,e,n,o){this.appService=t,this.personaProviderStore=e,this.fb=n,this.featureFlagService=o,this.communityHelpArticleUrl="https://community.sondermind.com/kb/articles/122-im-ready-to-go-back-to-or-get-started-seeing-clients-in-person-what-do-i-need-to-do",this.sessionTypes=[{name:"Video sessions",value:"video"},{name:"In-person sessions",value:"in_person"},{name:"Either video or in-person",value:"video,in_person"}],this.acceptingClients=!1,this.destroyed$=new A,this.showSessionTypesSection=lt(!1)}ngOnInit(){this.user$=this.appService.currentUser$.pipe(at(t=>{let{sessionTypesOffered:e}=t;Array.isArray(e)||(e=t.noPhysicalLocation?["video"]:["video","in_person"]),e.sort((n,o)=>n>o?-1:n<o?1:0),this.sessionTypeForm=this.fb.group({sessionTypeOffered:this.fb.control(this.convertSessionTypesToOption(e))}),this.formSubscription=this.sessionTypeForm.valueChanges.pipe(w(n=>{let o=this.convertOptionToSessionTypes(n.sessionTypeOffered);return this.personaProviderStore.updateSessionTypesOffered$(o,t.personaProviderId)})).subscribe()}),rt(1)),this.setupProviderProfileSubscription(),this.featureFlagService.evaluate$("in-person-working-hours",Ct.LEGACY_VIEW).pipe(w(t=>t?.key??Ct.LEGACY_VIEW),w(t=>t===Ct.LEGACY_VIEW),Xt(()=>qt(!1)),S(this.destroyed$)).subscribe(t=>{this.showSessionTypesSection.set(t)})}ngAfterViewInit(){this.appService.pageLoaded=!0}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete(),this.formSubscription&&this.formSubscription.unsubscribe()}setupProviderProfileSubscription(){this.personaProviderStore.getPersonaProviderProfile$().pipe(N(t=>!!t),S(this.destroyed$)).subscribe(t=>{this.appService.acceptingClients=t.acceptingClients,this.acceptingClients=t.acceptingClients,this.providerProfile=t})}convertSessionTypesToOption(t){return t.join(",")}convertOptionToSessionTypes(t){return t.split(",")}static{this.\u0275fac=function(e){return new(e||i)(d(U),d(Ai),d(ye),d($e))}}static{this.\u0275cmp=T({type:i,selectors:[["member-page-general-availability"]],standalone:!1,decls:2,vars:3,consts:[["data-dd-privacy","allow",1,"page-container"],[1,"settings-text"],["routerLink","/scheduling/settings","data-test","set-working-hours-link"],["routerLink","/scheduling/settings/workinghours"],[3,"acceptingClients","providerProfile"],[1,"video-only"],[1,"session-types-offered"],["source","Provider Portal - Availability",3,"user$"],["target","blank",3,"href"],[3,"formGroup"],["label","I am seeking clients who want",3,"showOptionalTag"],["formControlName","sessionTypeOffered",3,"options","disabled"]],template:function(e,n){if(e&1&&(b(0,An,2,1,"div",0),_(1,"async")),e&2){let o;M((o=v(1,1,n.user$))?0:-1,o)}},dependencies:[ve,Ce,_e,be,Me,hi,ni,ai,gt,si,xt,Tt,k],styles:[`.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-family:Inclusive Sans,Arial,sans-serif;color:inherit;font-weight:400;font-size:calc(1rem + .125rem*clamp(0,(100vw - 23.4375rem) / (959px - 23.4375rem),1));line-height:1.5;letter-spacing:normal;text-decoration-line:underline;color:#0d6a97;text-decoration:underline}.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#2696c5;text-decoration-line:none;cursor:pointer}.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline-color:#009ea8}.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:#0a4e6f}@media(min-width:600px){.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-family:Inclusive Sans,Arial,sans-serif;color:inherit;font-weight:400;font-size:calc(1rem + .125rem*clamp(0,(100vw - 23.4375rem) / (959px - 23.4375rem),1));line-height:1.5;letter-spacing:normal;text-decoration-line:underline;color:#0d6a97}.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#2696c5;text-decoration-line:none;cursor:pointer}.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline-color:#009ea8}.settings-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:#0a4e6f}}.video-only[_ngcontent-%COMP%]{margin-left:54px}.video-only[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-family:Inclusive Sans,Arial,sans-serif;color:inherit;font-weight:400;font-size:calc(1rem + .125rem*clamp(0,(100vw - 23.4375rem) / (959px - 23.4375rem),1));line-height:1.5;letter-spacing:normal;color:#0d6a97}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#2696c5;text-decoration-line:none;cursor:pointer}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline-color:#009ea8}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:#0a4e6f}@media(min-width:600px){.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-family:Inclusive Sans,Arial,sans-serif;color:inherit;font-weight:400;font-size:calc(1rem + .125rem*clamp(0,(100vw - 23.4375rem) / (959px - 23.4375rem),1));line-height:1.5;letter-spacing:normal;color:#0d6a97}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#2696c5;text-decoration-line:none;cursor:pointer}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline-color:#009ea8}.video-only[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:#0a4e6f}}provider-shareable-link[_ngcontent-%COMP%]{display:flex;margin-top:2rem}.page-container[_ngcontent-%COMP%]{min-height:100vh;position:relative}
5/*# sourceMappingURL=general-availability.component-MERBGJA2.css.map */`]})}}return i})();var Bn=["container"],Rn=["viewEventSlide"],jn=i=>({event:i}),Ln=()=>["./events/new"],$n=i=>({start:i});function Nn(i,C){if(i&1){let t=E();r(0,"iris-icon-button",33),g("click",function(){u(t);let n=c();return f(n.location.back())}),a()}if(i&2){let t=c();l("type",t.IrisIconButtonTypes.TERTIARY)}}function Fn(i,C){if(i&1){let t=E();r(0,"iris-icon-button",35),g("click",function(){u(t);let n=c(2),o=O(1);return f(n.onDelete(o.event))}),a()}if(i&2){let t=c(2);l("type",t.IrisIconButtonTypes.TERTIARY)}}function zn(i,C){if(i&1){let t=E();r(0,"iris-icon-button",38),g("click",function(){u(t);let n=c(3),o=O(1);return f(n.onEdit(o.event))}),a()}if(i&2){let t=c(3);l("type",t.IrisIconButtonTypes.TERTIARY)}}function Hn(i,C){if(i&1){let t=E();b(0,zn,1,1,"iris-icon-button",36),r(1,"iris-icon-button",37),g("click",function(){u(t);let n=c(2),o=O(1);return f(n.onDelete(o.event))}),a()}if(i&2){let t=c(2),e=O(1);M(e.event!=null&&e.event.isAppointment?0:-1),s(),l("type",t.IrisIconButtonTypes.TERTIARY)}}function Un(i,C){if(i&1&&(b(0,Fn,1,1,"iris-icon-button",34),b(1,Hn,2,2)),i&2){let t=c(),e=O(1);M(e.event!=null&&e.event.isBlockedSession&&t.router.url.includes("/edit")?0:-1),s(),M(t.showEditCancel()?1:-1)}}function Gn(i,C){if(i&1&&(B(0),y(1,"member-calendar-external-event-detail",39),R()),i&2){let t=c();s(),l("event",t.extCalEvent)("modalOpen",!!t.extCalEvent)}}function Yn(i,C){if(i&1){let t=E();r(0,"div",10)(1,"div",40)(2,"sondermind-toast",41),g("dismissed",function(){u(t);let n=c();return f(n.hideDisabledWarning=!0)}),p(3),a()()()}if(i&2){let t=C;s(2),l("autoHide",!1),s(),me(" CLAIM SUBMISSION DISABLED FOR ",t," ",t>1?"CLIENTS":"CLIENT"," ")}}var Wn=300,qn=1,Qn=5,mn=(()=>{class i{constructor(t,e,n,o,m,h,D,x,P,I,L,pn){this.app=t,this.calEventsStore=e,this.calendarEventSvc=n,this.breakpoints=o,this.router=m,this.route=h,this.dialog=D,this.location=x,this.videoOverlayService=P,this.schedulingStore=I,this.calendarViewStore=L,this.sideNavService=pn,this.CalendarViewOption=et,this.destroyedSubj=new A,this.activeEventDestroyedSubj=new A,this.sidebarOpen=lt(!0),this.hideDisabledWarning=!1,this.extCalEvent=null,this.earliest=24,this.isMobileOrTablet$=this.breakpoints.isMobileOrTablet$,this.isMobile=!1,this.visibleColumnCountSubj=new $(1),this.visibleColumnCount$=this.visibleColumnCountSubj.asObservable(),this.disabledClaimClientsCountSubj=new $(0),this.disabledClaimClientsCount$=this.disabledClaimClientsCountSubj.asObservable(),this.defaultStartTime$=this.calendarViewStore.selectedDateRange$.pipe(Qt(0),w(dn=>this.calendarViewStore.buildDefaultStartTime(dn.start))),this.daysOfWeek=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],this.viewEventSlideMode="side",this.formTouched=!1,this.blockedEventClicked=!1,this.confirmationModalOpen=!1,this.routeModalShellOpen=!1,this.IrisModalSize=Ke,this.IrisButtonTypes=Y,this.IrisIconButtonTypes=Qe,this.IrisButtonIconPositions=qe}ngOnInit(){this.sideNavService.setCompact(!0),this.pageTitle$=this.calendarViewStore.selectedDateRange$.pipe(N(t=>!!t.start),at(t=>{this.firstDay=new Date(t.start),this.earliest=24,this.initCalendarScroll()}),w(t=>this.buildPageTitle(t))),this.isMobileOrTablet$.pipe(S(this.destroyedSubj)).subscribe(t=>this.onToggleMobile(t)),this.app.pageLoaded=!0,this.disabledClaimClientsCount$=this.calEventsStore.disabledClaimClientsCount$,this.calEventsStore.calendarFormIsTouched$.pipe(S(this.destroyedSubj)).subscribe(t=>{this.formTouched=t}),Dt([this.calendarViewStore.startTime$,this.calendarViewStore.endTime$]).pipe(S(this.destroyedSubj)).subscribe(t=>{this.start=t[0],this.end=t[1]})}toggleSidebar(){this.sidebarOpen.update(t=>!t)}ngOnDestroy(){this.destroyedSubj.next(),this.activeEventDestroyedSubj.next()}ngAfterViewInit(){this.app.pageLoaded=!0,setTimeout(()=>{this.refreshVisibleColumnCount(),this.calEventsStore.doReloadEvents()})}onBrowserResize(t){this.refreshVisibleColumnCount(),this.viewEventSlideMode=t.target.innerWidth<1366?"over":"side"}scrollIntoView(){let t=this.containerEl.nativeElement.querySelector(".drawer-content-container");if(t){t.scrollBy(0,-t.scrollTop);let e=40*((this.earliest-5)*2);t.scrollBy(0,e)}}initCalendarScroll(){Dt([this.calEventsStore.visibleEvents$,this.schedulingStore.workingHours$]).subscribe(([t,e])=>{let n=this.firstDay.getDay(),o=this.daysOfWeek[n],m=e?.findIndex(x=>x.day===o),h=[],D;if(t.length){let x=new Date().setDate(new Date(this.firstDay).getDate()+this.dayCount);if(t.forEach((P,I)=>{(P.start<this.firstDay||P.end>new Date(x))&&t.splice(I,1)}),t.length>1&&t.sort((P,I)=>P.start.getHours()-I.start.getHours()),t.length){let P={15:.25,30:.5,45:.75};D=t[0].start.getMinutes()>0?t[0].start.getHours()+P[t[0].start.getMinutes()]:t[0].start.getHours()}D<this.earliest&&(this.earliest=D,this.scrollIntoView())}if(e){for(let x=0;x<this.dayCount;x++){let P=m<=6?m:m-7;h.push(e[P]),m++}
5h.forEach(x=>{x.availabilityRanges.forEach(P=>{let I=P.value.start.split(":"),L=+I[0];L<12&&I[1].includes("pm")&&(L+=12),L<this.earliest&&(this.earliest=L)})})}this.earliest<24&&this.scrollIntoView()})}onToggleMobile(t){this.sidebarOpen.set(!t),this.isMobile=t,t?(this.calendarViewStore.doSetViewOption(et.Multiday),this.refreshVisibleColumnCount()):(this.calendarViewStore.doSetViewOption(et.Week),this.refreshVisibleColumnCount())}getDefaultStartTime(){this.defaultStartTime$.pipe(S(this.destroyedSubj)).subscribe(t=>{this.defaultStartTime=t})}closeCreateEventModal(t=!1){t&&(this.schedulingStore.resetScheduleForm(),this.calEventsStore.toggleFormTouched(!1)),this.confirmationModalOpen=!1}stayOnCreateModal(t=!1){t&&this.closeCreateEventModal(!1),this.start&&this.end?this.router.navigate(["./events/new"],{relativeTo:this.route,queryParams:{start:this.start,end:this.end}}):this.router.navigate(["./events/new"],{relativeTo:this.route,queryParams:{start:this.defaultStartTime}})}onEdit(t){this.router.navigate(["events",t.id,"edit"],{relativeTo:this.route})}onDelete(t){t.recurring||t.isAppointment?this.router.navigate([`./events/${t.id}/cancel`],{relativeTo:this.route}):this.calendarEventSvc.cancel(t.id).pipe(S(this.destroyedSubj)).subscribe(()=>{this.calEventsStore.doReloadEvents(),this.app.reloadCurrentUser(),this.router.navigate(["./scheduling"])})}onRouteModalDismiss(t){t!=="closeButton"&&(this.breakpoints.hasMultipleModals||this.breakpoints.toggleModal(!1),this.breakpoints.hasMultipleModals=!1),this.modalClosed(t==="closeButton"?"xClicked":!1)}onRouteModalDeactivate(){this.routeModalShellOpen=!1}modalClosed(t=null){this.formTouched&&(this.confirmationModalOpen=!0),(this.router.url.includes("/edit")||t==="xClicked")&&(this.closeCreateEventModal(!0),this.calEventsStore.toggleFormTouched(!1)),this.activeEventDestroyedSubj.next(),this.router.navigate(["."],{relativeTo:this.route,replaceUrl:!0})}onEventClicked(t){if(t instanceof Fi)this.extCalEvent=t;else{let e=this.eventRedirectPath(t);this.router.navigate(e,{relativeTo:this.route})}}onEventSummoned(t){let e=t.start.toISOString(),n=t.end.toISOString();this.calendarViewStore.setStartTime(e),this.calendarViewStore.setEndTime(n),this.router.navigate(["./events/new"],{relativeTo:this.route,queryParams:{start:e,end:n}})}onRouteActivate(t){this.routeModalShellOpen=!0;let e=parseFloat(this.router.url.split("/").slice(-2)[0]);t instanceof St?(e=parseFloat(this.router.url.split("/").pop()),this.activatedDetailComponent=t):t instanceof q?this.activatedCancelComponent=t:t instanceof Q?this.activatedEditComponent=t:t instanceof kt&&(this.activatedProposeATimeDeclineComponent=t),!Number.isNaN(e)&&(this.activeEvent$=this.calEventsStore.hasEvent(e)?this.calEventsStore.selectEvent(e):this.calendarEventSvc.find(e.toString()),this.activeEvent$.pipe(S(this.activeEventDestroyedSubj)).subscribe(n=>{this.activeEvent=n instanceof Be?n:n.data}))}eventRedirectPath(t){let e=[];return t.isPendingTimeProposal&&t.needToAcceptNcr?e.push("/referrals",t.referralMemberId):(e.push("events",t.id),t.eventType===Ae.BLOCKED&&e.push("edit")),e}refreshVisibleColumnCount(){if(!(this&&this.containerEl?.nativeElement))return;let t=this.containerEl.nativeElement.getBoundingClientRect().width,e=Math.floor(t/Wn);e=Math.max(qn,e),e=Math.min(e,Qn),this.visibleColumnCountSubj.next(e),this.calendarViewStore.doSetVisibleDayCount(e),this.dayCount=e,this.isMobile||this.calendarViewStore.doSetViewOption(et.Week)}buildPageTitle(t){let{start:e,end:n}=t,o=Ft(e)!==Ft(n),m=Ve(e,n),h="MMM dd",D="MMM dd";return m?ht(e,h):(o&&(h="MMM dd, yyyy"),`${ht(e,h)} \u2013 ${ht(n,D)}`)}openSettings(){this.router.navigate(["scheduling/settings"])}showBack(){return this.router.url.includes("/cancel")&&this.activatedCancelComponent&&!this.activatedCancelComponent.eventCanceled||this.router.url.includes("/edit")&&this.activatedEditComponent&&!this.activatedEditComponent.eventUpdated||this.router.url.includes("/hardware-test")}showEditCancel(){return this.activeEvent?.isPendingTimeProposal?!1:this.router.url!=="/scheduling"&&!this.router.url.includes("/cancel")&&!this.router.url.includes("/new")&&!this.router.url.includes("/edit")&&!this.router.url.includes("/hardware-test")}static{this.\u0275fac=function(e){return new(e||i)(d(U),d(yt),d(Mt),d(ft),d(j),d(dt),d(Te),d(de),d($i),d(Vi),d(zi),d(ki))}}static{this.\u0275cmp=T({type:i,selectors:[["member-calendar-app"]],viewQuery:function(e,n){if(e&1&&(jt(Bn,5,mt),jt(Rn,5)),e&2){let o;K(o=Z())&&(n.containerEl=o.first),K(o=Z())&&(n.viewEventSlide=o.first)}},hostBindings:function(e,n){e&1&&g("resize",function(m){return n.onBrowserResize(m)},ie)},standalone:!1,decls:53,vars:55,consts:[["tStore","templateStore"],["routeModal",""],["container",""],[3,"templateStore"],[1,"full-screen-on-mobile",3,"dismissed","routeActivate","routeDeactivate","size","showTitle","showHeader","ariaLabel","hasBackdrop","navigateOnDismiss"],[1,"calendar-route-modal-top-bar"],[1,"calendar-route-modal-top-bar__start"],["icon","arrow_back","ariaLabel","back",3,"type"],[1,"calendar-route-modal-top-bar__end"],["icon","close","ariaLabel","close scheduling","data-test","iris-modal-close-icon",3,"click","type"],[1,"margin-bottom-5","sondermind-design-system","sondermind-design-typography"],["data-dd-privacy","allow","data-test","calendar-container"],[3,"mode","opened"],[1,"sondermind-design-system","drawer-container","drawer-column"],[1,"calendar-header"],["icon","settings","ariaLabel","Open scheduling settings","data-test","scheduling-settings",1,"settings-container-icon",3,"click","type"],[1,"settings-container"],["data-test","calendar-mini-month","data-dd-privacy","allow",1,"flex-no-grow",3,"change","date","highlightRange","highlightCount"],["cdkScrollable","",1,"drawer-container-calendar-select","flex-grow"],["data-test","calendar-select-list"],["data-dd-privacy","allow",1,"toolbar-row"],["data-test","calendar-menu-toggle","ariaLabel","Toggle calendar menu",1,"calendar-menu-toggle",3,"click","icon","type"],[1,"toolbar-separator","before-title"],[1,"toolbar-left"],["icon","today","ariaLabel","Reset to Today",1,"today-button",3,"click","type"],["icon","chevron_left","ariaLabel","Previous","data-test","calendar-previous-button",3,"click","type"],[1,"toolbar-title"],["icon","chevron_right","ariaLabel","Next","data-test","calendar-next-button",3,"click","type"],["role","grid","cdkScrollable","","data-test","drawer-content-container","aria-label","Calendar grid",1,"drawer-content-container"],["data-test","calendar-multiday-container","role","presentation",3,"eventClicked","eventSummoned","lockToWeek"],["id","pendo-create-new-appointment-button","ariaLabel","Create new calendar event","data-test","create-new-appointment","data-dd-privacy","allow",1,"create-event-button",3,"click","iconPosition","buttonType","routerLink","queryParams"],["name","plus","colorToken","$color-neutral-white"],[3,"stay","leave","modalOpen"],["icon","arrow_back","ariaLabel","back",3,"click","type"],["icon","delete","ariaLabel","delete blocked event","data-test","delete-blocked-event",3,"type"],["icon","delete","ariaLabel","delete blocked event","data-test","delete-blocked-event",3,"click","type"],["icon","edit","ariaLabel","edit appointment","data-test","edit-appointment",3,"type"],["icon","delete","ariaLabel","delete appointment","data-test","delete-appointment",3,"click","type"],["icon","edit","ariaLabel","edit appointment","data-test","edit-appointment",3,"click","type"],[3,"event","modalOpen"],[1,"claims-navbar-container"],["severity","danger",3,"dismissed","autoHide"]],template:function(e,n){if(e&1){let o=E();B(0,3,0),r(2,"iris-route-modal",4,1),_(4,"async"),g("dismissed",function(h){return u(o),f(n.onRouteModalDismiss(h))})("routeActivate",function(h){return u(o),f(n.onRouteActivate(h))})("routeDeactivate",function(){return u(o),f(n.onRouteModalDeactivate())}),r(5,"div",5)(6,"div",6),b(7,Nn,1,1,"iris-icon-button",7),a(),r(8,"div",8),b(9,Un,2,2),r(10,"iris-icon-button",9),g("click",function(){u(o);let h=O(3);return f(h.dismiss("closeButton"))}),a()()()(),R(),r(11,"div"),b(12,Gn,2,2,"ng-container"),b(13,Yn,4,3,"div",10),_(14,"async"),r(15,"mat-drawer-container",11)(16,"mat-drawer",12),_(1
57,"async"),r(18,"div",13)(19,"div",14)(20,"h3"),p(21,"Calendar"),a(),r(22,"iris-icon-button",15),g("click",function(){return u(o),f(n.openSettings())}),a()(),r(23,"div",16),y(24,"direct-schedule-availability"),a(),y(25,"hr"),r(26,"member-calendar-mini-month",17),_(27,"async"),_(28,"async"),_(29,"async"),g("change",function(h){return u(o),f(n.calendarViewStore.doSetDate(h))}),a(),r(30,"div",18),y(31,"member-calendar-select-list",19),a()()(),r(32,"mat-drawer-content",null,2)(34,"mat-toolbar",20)(35,"iris-icon-button",21),g("click",function(){return u(o),f(n.toggleSidebar())}),a(),y(36,"span",22),r(37,"div",23)(38,"iris-icon-button",24),g("click",function(){return u(o),f(n.calendarViewStore.doResetDate())}),a(),r(39,"iris-icon-button",25),g("click",function(){return u(o),f(n.calendarViewStore.doSkipBackward())}),a(),r(40,"h4",26),p(41),_(42,"async"),a(),r(43,"iris-icon-button",27),g("click",function(){return u(o),f(n.calendarViewStore.doSkipForward())}),a()()(),r(44,"div",28)(45,"member-calendar-multiday-view",29),_(46,"async"),g("eventClicked",function(h){return u(o),f(n.onEventClicked(h))})("eventSummoned",function(h){return u(o),f(n.onEventSummoned(h))}),a()(),r(47,"iris-button",30),_(48,"async"),g("click",function(){return u(o),f(n.getDefaultStartTime())}),y(49,"iris-icon",31),r(50,"span"),p(51,"Create event"),a()()()(),r(52,"dirty-data-prompt",32),g("stay",function(){return u(o),f(n.stayOnCreateModal(!0))})("leave",function(){return u(o),f(n.closeCreateEventModal(!0))}),a()()}if(e&2){let o,m=O(1);l("templateStore",Lt(50,jn,n.activeEvent)),s(2),l("size",n.IrisModalSize.LG)("showTitle",!1)("showHeader",!1)("ariaLabel","Scheduling")("hasBackdrop",!v(4,32,n.videoOverlayService.open$))("navigateOnDismiss",!1),s(5),M(n.showBack()?7:-1),s(2),M(m.event!=null&&m.event.isActionable?9:-1),s(),l("type",n.IrisIconButtonTypes.TERTIARY),s(),Bt("aria-hidden",n.routeModalShellOpen),s(),M(n.extCalEvent?12:-1),s(),M((o=!n.hideDisabledWarning&&v(14,34,n.disabledClaimClientsCount$))?13:-1,o),s(3),l("mode",v(17,36,n.breakpoints.isMobile$)?"over":"side")("opened",n.sidebarOpen()),s(6),l("type",n.IrisIconButtonTypes.TERTIARY),s(4),l("date",v(27,38,n.calendarViewStore.selectedDate$))("highlightRange",v(28,40,n.calendarViewStore.viewOption$)!==n.CalendarViewOption.Week)("highlightCount",v(29,42,n.calendarViewStore.visibleDayCount$)),s(9),l("icon",n.sidebarOpen()?"left_panel_close":"left_panel_open")("type",n.IrisIconButtonTypes.TERTIARY),Bt("aria-expanded",n.sidebarOpen()),s(3),l("type",n.IrisIconButtonTypes.TERTIARY),s(),l("type",n.IrisIconButtonTypes.TERTIARY),s(2),H(" ",v(42,44,n.pageTitle$)," "),s(2),l("type",n.IrisIconButtonTypes.TERTIARY),s(2),l("lockToWeek",v(46,46,n.calendarViewStore.viewOption$)===n.CalendarViewOption.Week),s(2),l("iconPosition",n.IrisButtonIconPositions.LEFT)("buttonType",n.IrisButtonTypes.PRIMARY)("routerLink",pe(52,Ln))("queryParams",Lt(53,$n,v(48,48,n.defaultStartTime$))),s(5),l("modalOpen",n.confirmationModalOpen)}},dependencies:[_i,xe,Ei,It,Ot,W,G,Ze,gt,Ri,ji,Bi,on,Xe,qi,Wi,Pt,Gi,k],styles:[`[_nghost-%COMP%]{height:100dvh;overflow:hidden;display:block;position:relative}[_nghost-%COMP%]     .ng-spinner-icon{display:none!important}h3[_ngcontent-%COMP%]{font-family:Lora,Arial,sans-serif;color:inherit;font-weight:400;font-style:normal;font-size:clamp(1.25rem,calc(1.25rem + .5 * ((100vw - 23.4375rem) / 96.5625)),1.75rem);line-height:1.4;letter-spacing:normal;margin-bottom:0}.settings-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:252px}.settings-container[_ngcontent-%COMP%]   .settings-container-icon[_ngcontent-%COMP%]{height:100%;display:flex;align-self:center;margin-top:.5rem}.settings-container[_ngcontent-%COMP%]   direct-schedule-availability[_ngcontent-%COMP%]{max-width:90%}  .ng-spinner-icon{display:none!important}.drawer-container[_ngcontent-%COMP%]     .ng-spinner-icon{display:none}.mat-drawer[_ngcontent-%COMP%]     .ng-spinner-icon{display:none}.mat-drawer[_ngcontent-%COMP%]{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;max-width:100%}.mat-drawer[_ngcontent-%COMP%]:not(.mat-drawer-opened){max-width:60%}mat-drawer-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}mat-drawer-content[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-sizing:border-box;align-items:center;justify-content:flex-start;height:80px;padding:0;padding-right:1rem;background-color:#fdfbf7}mat-drawer-content[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]   .toolbar-title[_ngcontent-%COMP%]{font-family:Lora,Arial,sans-serif;color:inherit;font-weight:300;font-style:normal;font-size:clamp(1.25rem,calc(1.25rem + .5 * ((100vw - 23.4375rem) / 96.5625)),1.75rem);line-height:1.4;letter-spacing:normal;margin-bottom:0;font-weight:700;margin:auto 0px auto .5rem;line-height:1}@media(min-width:600px){mat-drawer-content[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]   .toolbar-title[_ngcontent-%COMP%]{margin-right:.5rem}}mat-drawer-content[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]   .today-button[_ngcontent-%COMP%]{margin-left:1rem}mat-drawer-content[_ngcontent-%COMP%]   .drawer-content-container[_ngcontent-%COMP%]{display:block;flex:1 1 auto;height:95dvh;background-color:#fffefd;border-top:1px solid #d8d8d8}@media(min-width:960px){mat-drawer-content[_ngcontent-%COMP%]   .drawer-content-container[_ngcontent-%COMP%]{min-width:900px}}
5.toolbar-separator[_ngcontent-%COMP%]{display:block;width:1px;background:#d8d8d8}.toolbar-separator.before-title[_ngcontent-%COMP%]{height:100%;flex-shrink:0}.calendar-menu-toggle[_ngcontent-%COMP%]{width:70px;display:flex;align-items:center;justify-content:center}@media(max-width:958px){[_nghost-%COMP%]   iris-route-modal[_ngcontent-%COMP%]    {z-index:600}}[_nghost-%COMP%]   iris-route-modal[_ngcontent-%COMP%]     .iris-overlay-panel.iris-overlay-panel-styles:not(.iris-overlay-panel-full-screen):not(.iris-overlay-panel-drawer).iris-overlay-panel-lg{max-width:800px!important;width:100%}.calendar-route-modal-top-bar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;width:calc(100dvw - 24px);box-sizing:border-box}@media(min-width:600px){.calendar-route-modal-top-bar[_ngcontent-%COMP%]{width:100%}}.calendar-route-modal-top-bar__start[_ngcontent-%COMP%], .calendar-route-modal-top-bar__end[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.calendar-route-modal-top-bar__end[_ngcontent-%COMP%]{margin-left:auto}.drawer-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.drawer-column[_ngcontent-%COMP%]   .calendar-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:.5rem}.drawer-column[_ngcontent-%COMP%]   .calendar-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}.flex-no-grow[_ngcontent-%COMP%]{flex:0 0 auto}.flex-grow[_ngcontent-%COMP%]{flex:1 1 auto}.toolbar-left[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.drawer-container[_ngcontent-%COMP%]{border-top:1px solid #e1e1e1;position:relative;max-height:100%;padding:0 16px}.drawer-container[_ngcontent-%COMP%]   .drawer-container-calendar-select[_ngcontent-%COMP%]{width:252px;overflow-y:auto;overflow-x:hidden;margin-top:24px;overflow:visible}.drawer-content-container[_ngcontent-%COMP%]{overflow:auto}.drawer-content-container[_ngcontent-%COMP%]   [role=gridcell][_ngcontent-%COMP%]:focus-visible{outline:2px solid #004455;outline-offset:-2px}.delete[_ngcontent-%COMP%]{margin-right:24px}.create-event-button[_ngcontent-%COMP%]{position:fixed;z-index:150;right:1rem;bottom:calc(1rem + 70px);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.create-event-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid #004455;outline-offset:2px}@media(min-width:960px){.create-event-button[_ngcontent-%COMP%]{right:2rem;bottom:2rem}}.mat-icon-button[_ngcontent-%COMP%]{border:none}.view-option-toggles[_ngcontent-%COMP%]{margin-right:2rem}.view-option-toggles[_ngcontent-%COMP%]     .mat-button-toggle-appearance-standard{font-family:Inclusive Sans,Arial,sans-serif;color:#001219;font-weight:400;font-size:calc(1rem + .125rem*clamp(0,(100vw - 23.4375rem) / (959px - 23.4375rem),1));line-height:1.5;letter-spacing:normal;line-height:2rem;background-color:#f2f5f6;color:#5e666b}.view-option-toggles[_ngcontent-%COMP%]     .mat-button-toggle-checked{background-color:#dae3e6;color:#045}.icon-badge[_ngcontent-%COMP%]{font-family:Inclusive Sans,Arial,sans-serif;color:#001219;font-weight:600;font-size:calc(.75rem + .125rem*clamp(0,(100vw - 23.4375rem) / (959px - 23.4375rem),1));line-height:1.4;letter-spacing:.01em;position:absolute;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;color:#fff;background:#b93646;border:1px solid white;text-align:center}dirty-data-prompt[_ngcontent-%COMP%]     .sonder-modal-header{display:none!important}dirty-data-prompt[_ngcontent-%COMP%]     .close-buttons{float:right}dirty-data-prompt[_ngcontent-%COMP%]     .close-text{font-family:Inclusive Sans,Arial,sans-serif;color:#001219;font-weight:600;font-size:clamp(1.25rem,calc(1.25rem + .5 * ((100vw - 23.4375rem) / 96.5625)),1.75rem);line-height:1.2;letter-spacing:normal;font-weight:300;margin-bottom:18px}dirty-data-prompt[_ngcontent-%COMP%]     .close-wrapper{line-height:1.5rem;margin-bottom:28px;justify-content:space-between}dirty-data-prompt[_ngcontent-%COMP%]     .close-icon{cursor:pointer;float:right}.toolbar-view-selection[_ngcontent-%COMP%]{justify-content:flex-end;flex:auto;display:inline-flex;align-items:center}.toolbar-view-selection[_ngcontent-%COMP%]   iris-button[_ngcontent-%COMP%]:not(:last-child){margin-right:.5rem}.toolbar-view-selection[_ngcontent-%COMP%]   iris-button[_ngcontent-%COMP%]:last-child{margin-left:-1.5rem}@media(min-width:600px){.toolbar-view-selection[_ngcontent-%COMP%]   iris-button[_ngcontent-%COMP%]:last-child{margin-left:unset}}button[_ngcontent-%COMP%]:focus-visible, a[_ngcontent-%COMP%]:focus-visible{outline:2px solid #004455;outline-offset:2px}[_nghost-%COMP%]     member-calendar-mini-month button.mat-mdc-icon-button{height:32px;width:32px;line-height:32px;padding:6px}[_nghost-%COMP%]     member-calendar-mini-month button.mat-mdc-icon-button .mat-icon{font-size:1.25rem;height:20px;width:20px;line-height:20px;font-weight:400}
6/*# sourceMappingURL=calendar-app.component-ANDTJXZM.css.map */`]})}}return i})();var Yt=(()=>{class i{constructor(t){this.router=t}canActivate(t){let e=t.parent.parent.url.map(n=>n.toString());return this.router.createUrlTree(e,{queryParams:{cal:t.data.cal}})}static{this.\u0275fac=function(e){return new(e||i)(J(j))}}static{this.\u0275prov=At({token:i,factory:i.\u0275fac})}}return i})(),Wt=(()=>{class i{constructor(t,e,n){this.router=t,this.appSvc=e,this.notificationToastService=n}canActivate(t){return this.appSvc.currentUser$.pipe(N(e=>e!==null&&e.id!==0),w(e=>e.canAccessCalendar?!0:(this.router.navigate(["/account"]),this.notificationToastService.showNotificationToast({message:"The calendar is not yet accessible because a location hasn't been configured for your account. Please contact support to request getting a location added to your account.",type:mi.WARNING,duration:8e3}),!1)))}canActivateChild(t){return this.canActivate(t)}static{this.\u0275fac=function(e){return new(e||i)(J(j),J(U),J(ci))}}static{this.\u0275prov=At({token:i,factory:i.\u0275fac})}}return i})(),Xn=[{path:"settings",component:ot,children:[{path:"",canMatch:[Et],component:Ht},{path:"",component:nt},{path:"workinghours",component:it},{path:"connect-external-calendars",component:Yi}]},{path:"general_availability",canMatch:[Et],component:ot,children:[{path:"",canMatch:[Et],component:Ht},{path:"",component:nt},{path:"workinghours",component:it}
6]},{path:"general_availability",component:ln},{path:"",component:mn,canActivate:[Wt],canActivateChild:[Wt],children:[{path:"private",data:{cal:"mine"},canActivate:[Yt],children:[]},{path:"community",data:{cal:"all"},canActivate:[Yt],children:[]},{path:"reservations",redirectTo:"/scheduling",pathMatch:"full"},{path:"my_reservations",redirectTo:"/scheduling",pathMatch:"full"},{path:"events",children:[{path:"",pathMatch:"full",redirectTo:"/scheduling"},{path:"new",component:wt,data:{title:"New Appointment",fullscreen:!0}},{path:":id",component:St,data:{title:"Appointment"}},{path:":id/cancel",component:q,data:{title:"Appointment"}},{path:":id/edit",component:Q,data:{title:"Edit Appointment"}},{path:":id/decline-proposed-time",component:kt,data:{title:"Appointment"}}]}]}],cn=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=z({type:i})}static{this.\u0275inj=F({providers:[Yt,Wt],imports:[tt.forChild(Xn),tt]})}}return i})();var cs=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=z({type:i})}static{this.\u0275inj=F({providers:[Ti,Ye()],imports:[pt,Pe,we,xi,Ii,Ci,nn,Di,vi,It,Ot,Ue.forRoot({provide:ze,useFactory:Ge}),bi,Mi,Ni,bt,ei,G,oi,zt,ti,fi,pi,ui,ut,di,yi,Si,Ie,De,gi,Li,rn,cn,tt,zt,ri,Xi,ii,Oi,Je,wt,q,Qi,Hi,Ui,li,it,nt,xt,Tt,ot,Ji,Q]})}}return i})();ce(Pt,function(){return[ge,ct,ue,Fe,Ne,He,G]},function(){return[k,he,fe,je,Re,tn,en,Zi,Ki]});export{cs as CalendarModule};
7//# sourceMappingURL=chunk-NQBUTJPK.js.map

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.