1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a89c6758-ed59-429c-b602-8268b56b7176",e._sentryDebugIdIdentifier="sentry-dbid-a89c6758-ed59-429c-b602-8268b56b7176")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8467],{19392:(e,t,a)=>{"use strict";a.d(t,{V:()=>m,e:()=>p});var i=a(36720),n=a(59860),r=a(14232),l=a(18324);let o=["children","isDevice","gapSize","gapSizeDevice","isGapless","isMultiline","isVcentered","isCentered","className"];var s=r.createElement;let d=(e,t)=>void 0!==e?`is-${e}${t?"-":""}${t||""} is-variable`:void 0,p=e=>{let{children:t,isDevice:a,gapSize:r,gapSizeDevice:p={},isGapless:c=!1,isMultiline:u=!1,isVcentered:m=!1,isCentered:f=!1,className:h}=e,y=(0,n.A)(e,o);return s("div",(0,i.A)({className:l.Wd("columns",h,{"is-gapless":c,"is-multiline":u,"is-vcentered":m,"is-centered":f},a?`is-${a}`:null,d(r),d(p.mobile,"mobile"),d(p.tablet,"tablet"),d(p.desktop,"desktop"),d(p.widescreen,"widescreen"),d(p.fullhd,"fullhd"))},y),t)},c=["children","isNarrow","isSize","sizeByDevice","isOffset","offsetByDevice","className"];var u=r.createElement;let m=e=>{let{children:t,isNarrow:a=!1,isSize:r,sizeByDevice:o={},isOffset:s,offsetByDevice:d={},className:p}=e,m=(0,n.A)(e,c);return u("div",(0,i.A)({className:l.Wd("column",p,a?"is-narrow":"",l.rr(null,r),l.rr(null,o.mobile,"mobile"),l.rr(null,o.tablet,"tablet"),l.rr(null,o.desktop,"desktop"),l.rr(null,o.widescreen,"widescreen"),l.rr(null,o.fullhd,"fullhd"),l.rr("offset",s),l.rr("offset",d.mobile,"mobile"),l.rr("offset",d.tablet,"tablet"),l.rr("offset",d.desktop,"desktop"),l.rr("offset",d.widescreen,"widescreen"),l.rr("offset",d.fullhd,"fullhd"))},m),t)}},21888:(e,t,a)=>{"use strict";a.d(t,{J:()=>d});var i=a(43181),n=a(14232),r=a(54232),l=a(30236),o=n.createElement;let{Column:s}=r.e;function d({children:e,wideView:t=!1}){return o(p,{className:"container-fluid",wideView:!0},o(r.e,{centered:!0},o(s,{tablet:{size:t?12:8},desktop:{size:t?12:6},fullhd:{size:t?8:5}},e)))}let p=(0,i.A)("div",{target:"es1maqa0"})("padding:",e=>e.wideView?"0.75rem 20px 0 20px":"0.75rem 0 0 0",";@media (max-width: ",l.fi.tablet,"){padding-bottom:6rem;}")},31158:(e,t,a)=>{"use strict";a.d(t,{A:()=>er});var i=a(14232),n=a(36720),r=a(59860),l=a(89099),o=a(40118),s=a(23225),d=a(3232),p=a(50207),c=a(21381),u=a(13030),m=a(52187),f=a(62777),h=a(86092),y=a(42047);let g=["href"];var v=i.createElement;let b=e=>{let{href:t}=e,a=(0,r.A)(e,g);return v(o.N,(0,n.A)({to:t},a))},_=({children:e})=>{let t=(0,l.useRouter)(),a=(0,c.PJ)(),{data:{accolade_user_id:i,userprofile:n}}=(0,h.P_)(),r=n?.person_id??void 0,[o]=(0,u.J)(i??void 0),g=o?.hasAccessedMobile,_=`${t.basePath}${y.RM.accoladeX.dashboard}`,{isFromPartnerApp:w}=(0,m.m)(r);return v(s.I,null,v(d.T,{$hasPartnerNavigation:w},v(f.V,{asPath:t.asPath,CustomLink:b,patient:r,myHealthUrl:_,pathname:_,showDownloadAppLink:g,unreadMessagesCount:a}),v(p.K,{style:{display:"block"}},e)))};var w=a(38696),A=a(25663),x=a(18847),k=a.n(x),E=a(5646),N=a(54232),S=a(54587),$=a.n(S),I=a(41114),T=a(4376),P=a(57628),C=a(32354),D=a.n(C);let j=["to","alt","size","fontWeight","onClick"];var M=i.createElement;let z=E.Ay.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-cedj5w-0"})([""," text-decoration:none;cursor:pointer;&:hover,&:active,&:focus-visible{text-decoration-line:underline;text-decoration-thickness:",";text-underline-offset:",";}"," color:",";&:hover{color:",";}&:active{color:",';}&[aria-disabled="true"]{color:',";}&:focus-visible{outline:none;}"],e=>{let{$size:t,$fontWeight:a,theme:i}=e,n="small"===t?i?.fontSizes?.small??"0.875rem":"large"===t?i?.fontSizes?.large??"1.125rem":i?.fontSizes?.medium??"1rem",r="small"===t?i?.lineHeights?.small??"1.25":"large"===t?i?.lineHeights?.large??"1.4":i?.lineHeights?.medium??"1.35";return(0,E.AH)(["font-size:",";line-height:",";font-weight:",";"],n,r,"bold"===a?700:"medium"===a?600:400)},e=>(0,E.AH)(["calc("," / 4)"],e.theme.space.get("3xs")),e=>(0,E.AH)(["calc("," / 4)"],e.theme.space.get("3xs")),({$disabled:e})=>e&&(0,E.AH)(["cursor:not-allowed;pointer-events:none;"]),e=>e.theme.colors[e.$variation].default,e=>e.theme.colors[e.$variation].hover,e=>e.theme.colors[e.$variation].selected,e=>e.theme.colors[e.$variation].disabled),F=(0,i.forwardRef)((e,t)=>{let{to:a,alt:i,size:l="medium",fontWeight:o="normal",onClick:s}=e,d=(0,r.A)(e,j),p=!0===d["aria-disabled"]||"true"===d["aria-disabled"];
1return M(z,(0,n.A)({href:a,ref:t,$variation:i?"tertiary":"primary",$size:l,$fontWeight:o,$disabled:p,onClick:e=>{if(p)return void e.preventDefault();s?.(e)}},d))});F.displayName="Link";let L=["active","href","tabIndex"];var O=i.createElement;let H="nav-link",V=e=>{let{active:t=!1,href:a,tabIndex:i=0}=e,l=(0,r.A)(e,L);return O(R,(0,n.A)({},0!==i?{tabIndex:i}:{},{to:a,className:t?`${H} nav-link-active`:H,style:{alignItems:"stretch",display:"flex"}},l))},R=(0,E.I4)(F).withConfig({displayName:"NavigationLink__CustomAdsLink",componentId:"sc-gyj8o-0"})(["&.nav-link-active{color:rgb(9,113,103);> a > div{color:inherit;}}"]),W=E.I4.div.withConfig({displayName:"NavigationSubItem",componentId:"sc-rylef9-0"})(['padding:0 10px;display:flex;column-gap:8px;align-items:center;color:rgb(102,102,102);font-family:"DM Sans",sans-serif;font-size:16;font-weight:400;line-height:1.5;text-decoration:none;cursor:pointer;&:hover{color:rgb(39,158,146);text-decoration:underline;}']),B=E.I4.span.withConfig({displayName:"NavigationItem",componentId:"sc-1fiwe30-0"})(["align-items:stretch;display:flex;margin:0 ",";align-items:center;.nav-link:not(.nav-link-active){color:",";}"],e=>e.theme.space.get("3xs"),e=>e.theme.colors.secondary.default);var Y=i.createElement;let G=k()(()=>Promise.all([a.e(8433),a.e(8914),a.e(9981),a.e(1623)]).then(a.bind(a,49981)).then(e=>e.Desktop),{ssr:!1,loadableGenerated:{webpack:()=>[49981]}}),U=k()(()=>Promise.all([a.e(8433),a.e(8914),a.e(9981),a.e(1623)]).then(a.bind(a,49981)).then(e=>e.TabletAndBelow),{ssr:!1,loadableGenerated:{webpack:()=>[49981]}}),J=[{href:"/messaging",title:"Messages",icon:Y(I.j2d,null)},{href:"/benefits",title:"Benefits",icon:Y(I.aLq,null)},{href:"/care",title:"Care",icon:Y(I.XOY,null)},{href:"/care/virtual",title:"My Health",icon:Y(I.ogV,null),active:!0}],q=[{href:"/",title:"Home",icon:Y(I.cFB,null)},...J],K=E.Ay.div.withConfig({displayName:"Navigation__StyledNavigationMobile",componentId:"sc-1b0hj6p-0"})(["align-items:stretch;background:",";border-top:1px solid ",";bottom:0;display:flex;justify-content:space-around;padding:"," 0;position:fixed;width:100%;font-size:14px;z-index:1;&:after{background:",';bottom:-3px;content:"";height:',";position:absolute;width:100%;}"],e=>e.theme.colors.background,e=>e.theme.colors.gray3,e=>e.theme.space.get("s"),e=>e.theme.colors.background,e=>e.theme.space.get("3xs")),X=E.Ay.div.withConfig({displayName:"Navigation__StyledNavigationDesktop",componentId:"sc-1b0hj6p-1"})(["align-items:stretch;bottom:0;display:flex;padding:"," 0;position:sticky;border:0;justify-content:space-between;"],e=>e.theme.space.get("s")),Z=()=>{let{color_scheme:e,application_title:t}=(0,P.PB)(),a=i.useMemo(()=>"celeste"===e?Y($(),{src:D(),alt:t,width:100,height:40}):Y(T.o,{size:"small",text:"title"}),[e,t]);return Y(i.Fragment,null,Y(G,null,Y(N.mc,null,Y(X,null,Y(B,null,Y(V,{"aria-label":"Home",href:"/",passHref:!0},Y("a",null,a))),J.map((e,t)=>Y(B,{className:`nav-item-${t}`,key:e.title},Y(V,{href:e.href,passHref:!0,"data-ete":`nav-link-${e.title.toLowerCase()}`,as:e.as,active:e.active},Y("a",null,Y(W,null,e.icon,e.title))))),Y("div",{style:{display:"flex"}},Y(B,null,Y(V,{href:"/notifications","aria-label":"Notifications",passHref:!0},Y("a",null,Y(W,null,Y(I.XFE,null))))),Y(B,null,Y(V,{"aria-label":"Settings",href:"/settings",passHref:!0},Y("a",null,Y(W,null,Y(I.Zes,null))))))))),Y(U,null,Y(K,null,q.map((e,t)=>Y(B,{className:`nav-item-${t}`,key:e.title},Y(V,{href:e.href,passHref:!0,as:e.as,active:e.active},Y("a",null,Y(W,{style:{flexDirection:"column"}},e.icon,e.title))))))))};var Q=a(95053),ee=i.createElement;let et=({appVersion:e,children:t})=>{let{data:a}=(0,h.P_)(),n=a?.accolade_user_id;return n?ee(c.wc,{appVersion:e,userId:n},t):ee(i.Fragment,null,t)};var ea=a(71036),ei=a(57471),en=i.createElement;function er({children:e}){let{isAccoladeX:t}=(0,ea.Yb)(),[{enabled:a}]=(0,A.u)(w.W.NEW_ACCOLADEX_NAVIGATION,{autoUpdate:!0});return t&&a?en(et,{appVersion:"care"},en(_,null,e)):t?en(i.Fragment,null,en(Z,null),e):en("div",null,en(Q.A,null),en(ei.A,null),e)}},32354:e=>{e.exports="/_next/static/images/Celeste-4e02849c09583e9650862ac04fb23ea8.png"},34670:(e,t,a)=>{"use strict";a.d(t,{HM:()=>r});var i=a(43181),n=a(30236);let r=(0,i.A)("div",{target:"e8759vw4"})("h1{font-size:24px;line-height:24px;color:",e=>e.theme.colors.foreground,";margin-bottom:24px;font-weight:600;}h2{color:",e=>e.theme.colors.foreground,";font-size:27px;line-height:28px;font-weight:400;}p{color:",e=>e.theme.colors.foreground,";margin-bottom:30px;}button{display:block;background:none;border:none;position:relative;
1left:-35px;&:focus{outline:none;}}");(0,i.A)("p",{target:"e8759vw2"})("margin:-.5em 0 0;color:",n.Tj.adaGray,";size:14px;"),(0,i.A)("div",{target:"e8759vw1"})("margin-top:30px;font-size:16px;line-height:20px;color:",n.Tj.adaGray,";text-align:center;a{color:",n.Tj.adaRoyalBlue,";}"),(0,i.A)("div",{target:"e8759vw0"})({name:"1ab8s7t",styles:"margin:30px 0"})},37078:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var i=a(14232),n=a(77328),r=a.n(n),l=a(57628),o=i.createElement;let s=({title:e})=>{let{application_title:t}=(0,l.PB)();return o(r(),null,o("title",null,`${e} | ${t}`))}},40862:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>T,default:()=>P});var i=a(43181),n=a(14232),r=a(38993),l=a(34670),o=a(37179),s=a(63305),d=a(54424),p=a(30236),c=a(69004),u=a(46359),m=a(19392),f=a(67588),h=a(31158),y=a(89342),g=a(65297),v=a(86092),b=a(77580),_=a(44936),w=a(3635),A=a(25663),x=a(38696),k=a(72528),E=a(76190),N=a(37078),S=a(44992),$=n.createElement;let I={[g.VD.Single]:0,[g.VD.Weekly]:7,[g.VD.Biweekly]:10,[g.VD.Monthly]:44};var T=!0;function P({appointment_id:e,isReschedule:t,isRecurring:a,hasConflicts:i,symbol:l,child:p}){let{setLoading:T,isLoading:P}=(0,f.su)((0,f.N7)()),{0:R,1:W}=(0,n.useState)(null),{data:B}=(0,g.F_)(e),{data:Y}=(0,v.P_)(),{data:G}=(0,v.pF)(),U=(0,k.sj)(),J=Y?.userprofile?.child?.find(e=>e.id===Number(p))?.first_name,q=!(0,u.I7)(Y)&&!U,K=Y.subscription_memberships?.length>0,X=q&&K,[{enabled:Z}]=(0,A.u)(x.W.HARD_MEMBERSHIP,{autoUpdate:!0,decideOptions:X?[]:[w.kn.DISABLE_DECISION_EVENT]}),Q=s.uW.getItem("therapy_appointment_price"),ee=Y.is_enterprise_user,et=ee&&Y.user_feature_flags?.is_auto_pay&&R?.eapTherapy===void 0,{dashboardUrl:ea}=(0,b.A)(Y.userprofile?.person_id??void 0);return(0,n.useEffect)(()=>{let e=()=>{s.uW.removeItem("therapy_appointment_price")};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),s.uW.removeItem("therapy_appointment_price")}},[]),(0,n.useEffect)(()=>{let e=async()=>{W(await (0,E.K)())};ee&&e()},[ee]),$(h.A,null,$(N.A,{title:S.So.ub.ph}),$(D,{withTallContent:!1},$(r.mL,{styles:C}),$(d.J,{wideView:!1},$(M,null,$(o.A,null)),$(j,null,$("h1",null,((e=!1,t=!1)=>{let a=`Appointment${e?"s":""} booked`;return e||t?`${a}${t?" and enrolled in membership!":"!"}`:"Appointment booked!"})(a,q))),$(V,{role:"group","aria-label":"Appointment summary"},$(z,{isMultiline:!0},q&&$(m.V,{isSize:"12"},$(H,null,$("div",null,"Membership"),$("div",{"data-testid":"membership-offer",className:"membership-offer"},`${Z&&X?"":"30-day free trial, "}$${G?.membership?.recurring_price}/${G?.membership?.interval}`))),Q&&!et&&$(m.V,{isSize:"12"},$(H,null,$("div",{className:"label"},"Services"),$("span",{id:"appointment-price","data-testid":"appointment-price"},`$${Number(Q).toFixed(2)}`))),B&&$(n.Fragment,null,$(m.V,{isSize:"12"},$(F,null,"Your next session",J?` for ${J}`:""),$(L,null,(0,s.JC)(B?.appointment.appointment_utc_time))),a&&$(m.V,{isSize:"12"},$(F,null,J?`Additional upcoming appointments for ${J}`:"Your upcoming appointments"),$(L,null,(0,s.xo)(B?.appointment.appointment_utc_time)," ","ending"," ",(()=>{let e=I[l],t=(0,s.Xd)("weeks",e,B?.appointment.appointment_utc_time);return(0,s.lC)(t,"ddd, MMM D, YYYY")})()),i&&$(O,null,"There is at least one week that has a conflict. You can choose a different times in the Dashboard.")),q&&$(m.V,{isSize:"12"},$(_.A,null))))),$(y.PQ,null,$(c.$n,{onClick:()=>{if(T(),s.uW.removeItem("therapy_appointment_price"),t)return void(0,s.Nt)(ea);(0,s.Nt)(`${s.RM.booking.selectAddress}?booked=true`)},fullWidth:!0,isLoading:P,style:{justifySelf:"center",marginBottom:"25px"}},"Continue")))))}let C={name:"ywzk0k",styles:"html,body,#__next{width:100%;height:100%;}"},D=(0,i.A)("div",{target:"e3g0nxf8"})("@media (max-height: ",e=>e.withTallContent?"700px":"330px","){position:relative;}@media (max-width: ",p.fi.tablet,"){padding-bottom:90px;}"),j=(0,i.A)(l.HM,{target:"e3g0nxf7"})({name:"xlf0uy",styles:"margin-bottom:50px;h1{margin-bottom:-15px;}"}),M=(0,i.A)("div",{target:"e3g0nxf6"})(""),z=(0,i.A)(m.e,{target:"e3g0nxf5"})({name:"utc344",styles:"font-size:18px;p{margin:0;}"}),F=(0,i.A)("p",{target:"e3g0nxf4"})("font-size:16px;line-height:16px;color:",p.Tj.blueDark,";font-weight:500;padding-bottom:8px;"),L=(0,i.A)("p",{target:"e3g0nxf3"})("font-size:16px;line-height:16px;color:",p.Tj.support,";"),O=(0,i.A)("p",{target:"e3g0nxf2"})("font-size:16px;line-height:18px;color:",p.Tj.darkGray,";margin-top:6px!important;"),H=(0,i.A)("div",{target:"e3g0nxf1"})("display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:",p.Tj.support,";font-size:16px;width:100%;margin-bottom:8px;.label{display:flex;justify-items:center;}.membership-offer{text-align:right;width:140px;color:",p.Tj.black,";}span{color:",p.Tj.black,";}"),V=(0,i.A)("div",{target:"e3g0nxf0"})({name:"ti75j2",styles:"margin:0"})},44992:e=>{"use strict";e.exports=JSON.parse('{"j2":{"i":"Login"},"An":{"S":"Create Profile"},"So":{"sx":{"g":"Select Appointment Type"},"_o":{"SH":"Create profile","Ek":"Select State","E_":"Select Patient","Ef":"Payment Method","NF":"Insurance Information","Lj":"Schedule Appointment","Ji":"Payment","rh":"Choose Delivery Method","oL":"Delivery Confirmation"},"ub":{"YC":"Who Is This For","Ek":"Select State","z5":"How This Works","Fr":"Survey","wq":"Choose Provider","FQ":"Provider Profile","Lj":"Schedule Appointment","Ji":"Payment","ph":"Appointment Confirmed"},"Rh":{"Ek":"Select State","Te":"Select Doctor","Lj":"Schedule Appointment"},"E6":{"H":"Annual Checkup"},"Fb":{"v":"Privacy Consent"}},"Dl":{"b":{"ju":"General","b6":"History","NA":"Symptoms","AH":"Lifestyle","vs":"Treatment","O9":"Finish"},"z":{"z":"Dashboard","w":"Getting Ready"}},"ME":{"ME":"Profile","K1":"Account Access","Aq":"Payment and Insurance","xU":"Membership","Se":"Pharmacy","hl":"Address","ve":"Privacy Consent","Fr":"Survey"},"T1":{"T":"Family","w":"Invite Family"},"WN":{"b":"Cancel Membership"},"Ey":{"Wt":"Follow-up Confirmed","ZT":"Choose Provider","mp":"Feedback","Zn":"Next Steps","e3":"Provider Details","IL":"Provider Question","xZ":"Additional Feedback"}}')},54424:(e,t,a)=>{"use strict";a.d(t,{J:()=>i.J});var i=a(21888)},57471:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(14232),n=a(38696),r=a(25663),l=a(72528),o=a(30236),s=a(5646),d=a(90940),p=i.createElement;let c=({showBanner:e=!1})=>{let[{enabled:t}]=(0,r.u)(n.W.SHOW_SUNSETTING_MEDICARE_BANNER),{data:a}=(0,l.Wl)();return t&&(e||a?.is_medicare)?p(u,null,p(d.Ex,{appearance:"warning"},p("span",null,"As of 1/1/26 we are unable to see Medicare Part B patients."," ","Medicare Part B rules prevent us from allowing you to pay cash for your visit."," ","For more information please visit this"," ",p("a",{href:"https://plushcare.com/medicare-coverage",target:"_blank",rel:"noopener noreferrer"},"page"),"."))):null},u=s.Ay.div.withConfig({displayName:"MedicareBanner__Container",componentId:"sc-19ih5y9-0"})(["text-align:center;background-color:",";padding:8px 16px;a{color:",";}"],o.Tj.lightWarning,o.Tj.midnight)},65297:(e,t,a)=>{"use strict";a.d(t,{Bj:()=>y,F_:()=>_,MD:()=>k,Mo:()=>h,QO:()=>N,Sr:()=>w,VD:()=>f,bi:()=>x,cs:()=>v,fE:()=>g,i7:()=>b,jf:()=>A,zR:()=>E}
1);var i=a(66284),n=a(14232),r=a(58149),l=a(41462),o=a(84116),s=a(63305),d=a(8010),p=a(95121),c=a(68320);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function m(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let f={Weekly:"WEEKLY",Biweekly:"BIWEEKLY",Monthly:"MONTHLY",Single:"SINGLE"},h=(e={revalidateOnFocus:!0})=>{let t=`${s.y0.getTherapyActiveRecurringPlan}${e.child_id?`?child_id=${e.child_id}`:""}`,{data:a,error:i,isValidating:n,mutate:l}=(0,r.Ay)(t,c.w,e);return{data:a?.payload,error:i,isValidating:n,mutate:l}},y=(e,t)=>{let a=`${s.y0.getTherapists}?${e?`licensed_state=${e}`:""}&accepting_new_patients=true&adolescent_therapy=${t}`,{data:i,error:n,isValidating:l,mutate:o}=(0,r.Ay)(a,c.w,{revalidateOnFocus:!1}),d=i?.payload?.therapists?.sort((e,t)=>!!t.primary_therapist-!!e.primary_therapist);return{data:d?m(m({},i?.payload),{},{therapists:d}):i?.payload,error:n,isValidating:l,mutate:o}},g=e=>{let{data:t,error:a,isValidating:i,mutate:n}=(0,r.Ay)(s.y0.getTherapistDetail(e),c.w);return{data:t?.payload,error:a,isValidating:i,mutate:n}},v=(e,t,a,i,n=!1,l=!1,o=99)=>{let{data:d,error:p,isValidating:u,mutate:m}=(0,r.Ay)(`${s.y0.getTherapyAppointments}?adolescent_therapy=${n}&doctor_id=${e}&state=${t}&date=${a}&pagination_size=${o}&free_consults=${l}${i?`&frequency=${i}`:""}`,c.w);return{availableAppointmentsForDate:d?.payload,error:p,isValidating:u,mutate:m}},b=(e,t,a,i=!1)=>{let n=`${s.y0.getTherapyDates}?doctor_id=${e}&state=${t}${a?`&frequency=${a}`:""}&adolescent_therapy=${i}`,{data:l,error:o,isValidating:d,mutate:p}=(0,r.Ay)(n,c.w,{revalidateOnFocus:!1});return{availableDates:l?.payload?.dates??[],error:o,isValidating:d,mutate:p}},_=(e,t,a,i,l)=>{let o=e&&`${s.y0.patients.appointment}?appointment_id=${e}${t?`&previous_appointment_id=${t}`:""}${i?`&flow_type=${i}`:""}${l?`&flow_sub_type=${l}`:""}`,{data:u,error:f,isValidating:h,mutate:y}=(0,r.Ay)(o,c.w,{revalidateOnFocus:!1}),{0:g,1:v}=(0,n.useState)(!0);if(u?.payload?.appointment&&a){let{appointment:e,doctor:t}=u.payload;if(g&&e?.doctor_type_booked){let a={doctorFirstName:t.first_name,doctorLastName:t.last_name,doctorImageUrl:t.image_url,doctorRating:t.rating,appointmentState:e.booked_state,doctorType:e.doctor_type_booked,appointmentTime:e.appointment_utc_time,appointmentUUID:e.appointment_id,appointmentType:(0,p.kZ)(e)};d.Ay.addToDataLayer(m({event:"Payment page loaded"},a)),d.Ay.track("Payment page loaded",a),v(!1)}}return{data:u?.payload,error:f,isValidating:h,mutate:y}},w=async e=>(0,l.get)(s.y0.getTherapyAppointmentPrices,{for_reschedule:e}).then(e=>(0,l.isSuccess)(e)?m(m({},e),{},{payload:e.payload.sort((e,t)=>parseFloat(e.price_to_pay)-parseFloat(t.price_to_pay))}):e),A=(e,t,a)=>{let{data:i,error:n,isValidating:r,mutate:l}=(0,o.g)(`${s.y0.getTherapyAppointmentPrices}?rescheduling=${e}${a?`&child_id=${a}`:""}`,c.w,{initialData:t,revalidateOnMount:!t}),d=i?.payload||[],p=d.filter(({frequency:e})=>e===f.Weekly)[0],u=d.filter(({frequency:e})=>e===f.Single)[0];return{data:i?.payload?.sort((e,t)=>parseFloat(e.price_to_pay)-parseFloat(t.price_to_pay)),error:n,isValidating:r,mutate:l,recurringPrice:p,singlePrice:u}},x=e=>{if(e?.previous_appointment_id)return(0,l.post)("/ver1/booking/therapy/reschedule/",e);return(0,l.post)("/ver1/booking/therapy/book/",e)},k=()=>{let{data:e,error:t,isValidating:a,mutate:i}=(0,o.g)(s.y0.patients.lateCancelNoShow,l.get,{});return{data:e?.payload,error:t,isValidating:a,mutate:i}},E=async e=>{let{data:t}=await s.Ir.apiGet(s.y0.treecko.consentForms,{user_uuid:e});return t?.payload},N=async(e,t)=>{let{data:a}=await s.Ir.apiPatch(s.y0.treecko.consentFormStatusUpdate(e),t,!0);return a}},67588:(e,t,a)=>{"use strict";a.d(t,{Gs:()=>l,Lq:()=>r,N7:()=>n,su:()=>o});var i=a(14232);let n=e=>({type:"idle",data:e}),r=()=>({type:"loading"}),l=(e,t)=>
1o(n(e),t),o=(e,t)=>{let{0:a,1:n}=(0,i.useState)(e),r="loading"===a.type,l="idle"===a.type,o="error"===a.type,s="success"===a.type,d="refreshing"===a.type,p="data"in a?a.data:t;return{data:p,matchStatus:e=>{switch(a.type){case"idle":return e.idle??e.default??null;case"error":return"function"==typeof e.error?e.error(a.error,a.data):e.error??e.default??null;case"loading":return e.loading??e.default??null;case"success":return e.success?e.success(a.data):e.default??null;case"refreshing":return e.refreshing?e.refreshing(a.data):e.default??null;default:return e.default??null}},isLoading:r,isIdle:l,isError:o,isSuccess:s,isRefreshing:d,whenLoading:(e,t=()=>null)=>r?e():t(),whenSuccess:(e,t=()=>null)=>s?e(a.data):t(),whenError:(e,t=()=>null)=>o?e(a.error):t(),whenIdle:(e,t=()=>null)=>l?e():t(),setIdle:()=>n({type:"idle"}),setLoading:()=>n({type:"loading"}),setError:e=>n({type:"error",error:e,data:p}),setSuccess:e=>{e instanceof Function?n(t=>({type:"success",data:e("data"in t?t.data:void 0)})):n({type:"success",data:e})},setRefreshing:()=>{(s||d)&&n({type:"refreshing",data:a.data})}}}},76190:(e,t,a)=>{"use strict";a.d(t,{K:()=>l,i:()=>n});var i=a(63305);let n=function(e){return e.medical="medical_visit",e.therapy="therapy_visit",e}({}),r={medical_visit:"eapMedical",therapy_visit:"eapTherapy"},l=async()=>{let{data:e}=await i.Ir.get(i.y0.enterprise.eap,null,!0),t={eapMedical:null,eapTherapy:null};if(!e?.payload?.eap)return t;for(let a of e.payload.eap)t[r[a.service_type]]={service_type:a.service_type,interval:a.interval,interval_count:a.interval_count,interval_start:a.interval_start,interval_end:a.interval_end,unit_price:Number(a.unit_price),units_quantity:a.units_quantity,units_used:a.units_used};return t}},95121:(e,t,a)=>{"use strict";a.d(t,{Jk:()=>o,gG:()=>r,kZ:()=>l});var i=a(78648),n=a(63305);let r={PRIMARY_CARE:"primary_care",THERAPY:"therapy",PREVENTATIVE_ANNUAL_CHECK:"preventative_annual_check"},l=e=>"therapist"===String(e.doctor_type||e.doctor_type_booked).toLowerCase()?r.THERAPY:o()?r.PREVENTATIVE_ANNUAL_CHECK:r.PRIMARY_CARE,o=()=>{let e=n.DT.getItem("flow_type")||null,t=n.DT.getItem("flow_sub_type")||null;return e===i.xL.PREVENTATIVE&&t===i.CX.ANNUAL_VISIT}},98876:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/booking/therapy/success",function(){return a(40862)}])}},e=>{e.O(0,[4049,5587,2262,4232,7479,9516,941,5053,9342,7179,7182,636,6593,8792],()=>e(e.s=98876)),_N_E=e.O()}]);
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.