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]="64583dc8-6ebc-4886-8200-8abcb2a9bf72",e._sentryDebugIdIdentifier="sentry-dbid-64583dc8-6ebc-4886-8200-8abcb2a9bf72")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6739],{21802:(e,t,a)=>{"use strict";a.d(t,{_:()=>i});let i=e=>e},37078:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(14232),n=a(77328),l=a.n(n),o=a(57628),r=i.createElement;let d=({title:e})=>{let{application_title:t}=(0,o.PB)();return r(l(),null,r("title",null,`${e} | ${t}`))}},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"}}')},63916:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>T});var i=a(43181),n=a(14232),l=a(89099),o=a(2171),r=a(66950),d=a(89880),s=a(13675),c=a(30236),u=a(69004),p=a(86362),m=a(88890),y=a(47889),h=a(64302),b=a(81984),g=a(63305),_=a(17917),f=a(95511),v=a(95121),A=a(29385),w=a(21802),k=a(37078),E=a(44992),S=n.createElement;let T=({exactMatch:e=!1})=>{let t=(0,o.wA)(),a=(0,l.useRouter)(),{0:i,1:c}=(0,n.useState)(!0),{0:T,1:P}=(0,n.useState)(!1),{0:D,1:N}=(0,n.useState)(new Date(Date.now())),{0:L,1:F}=(0,n.useState)([]),{0:R,1:j}=(0,n.useState)({}),M=(0,o.d4)(_.hf),H=a.query.state||M.state,$=a.query.doctor_id,W=a.query.doctor_uuid,{0:O,1:J}=(0,n.useState)(null),V=(0,v.Jk)(),{goToPrev:q,goToNext:z,goToStart:G,gotoBookingFlow:U,getBookingFlowType:B}=(0,s.ym)(s.do.ClinicianFirst),Y=async e=>{if(c(!0),null==O)return{};H||await G();let t={state:H,doctor_type:M.doctor_type,date:e.toISOString().split("T")[0],pagination_size:200,doctor_id:O.doctor_id,flow_sub_type:V?"annual_visit":null},a=await (0,m.Ns)(t);return c(!1),a},Z=async()=>{let e={state:H,doctor_type:M.doctor_type,doctor_id:O?.doctor_id,flow_sub_type:V?"annual_visit":null};return(0,m.eO)(e)},K=async e=>{let a={appointment_id:e.id,doctor_type:M.doctor_type,state:H,previous_appointment_id:null},i=await (0,m.Wc)(a);t((0,y.h0)((0,w._)(i.data))),await z()},X=e=>{let t=new Date,a=(0,g.A8)(e)?e:t;N(a),Y(a).then(e=>j(e))},Q=e=>{P(!0),K(e)},ee=async e=>{let a=await g.Ir.apiGet(`${g.y0.patients.doctorInfo}${e}`),i=a?.data.doctors[0];i.primary_doctor_type=i.doctor_type.toLowerCase(),J(i),((e,a)=>{t((0,y.qH)(e)),t((0,y.Tt)(Number(a))),t((0,y.FS)({state:H,doctor_type:e.primary_doctor_type}))})(i,e)};return(0,n.useEffect)(()=>{let e=$||W;if(e)ee(e);else{let e=A.M_.getState().booking?.clinician;e?J(e):U(B()||s.do.ClinicianFirst)}},[$,W]),(0,n.useEffect)(()=>{O?.doctor_id&&Z().then(e=>{F(e),X(new Date(e[0]))}).catch()},[O]),S(r.h,null,S(k.A,{title:E.So.Rh.Lj}),S(d.u,{onBackClick:q}),O&&S(C,null,S(h.A,{clinician:O,showExtras:!1,toggleModal:()=>{},useExactMatch:e})),S(x,null,S(I,null,S(f.a,{calendarDate:D,onChange:e=>{X(e)},availableDates:L||[]}))),i?S(b.A,{loadingText:"Loading Available Appointments",displayActivityIndicator:!0}):S(n.Fragment,null,S("div",null,S("div",{"data-testid":"availabilityText"},S(u.o5,{variant:{plushcare:"md",tc:"body"},sx:{margin:0}},"Availability -",` ${(0,g.Ib)(D).date}`)),S("div",{"data-testid":"timesWrapper"},S(u.o5,{variant:{plushcare:"md",tc:"body"},color:"secondary",sx:{margin:0}},"All times are in",` ${(0,g.Ai)()} (${(0,g.cv)(D)})`))),R?.appointments!=null&&R?.appointments.length>0?S("div",{"data-testid":"appointmentList"},R.appointments.map(e=>S(p.A,{key:e.appointment_id,appointment:e,clickCallback:Q,disabled:T}))):S("p",{"data-testid":"stockoutMsg"},"There are no appointments available on this day.")))},C=(0,i.A)("div",{target:"e81ytdu2"})({name:"1vzvzx1",styles:"align-items:left;display:flex;flex-direction:column;flex:0.5;width:100%"}),x=(0,i.A)("div",{target:"e81ytdu1"})("align-items:left;display:flex;flex-direction:column;flex:0.5;padding-top:25px;padding-bottom:25px;@media (max-width: ",c.fi.tablet,"){margin-left:0;}"),I=(0,i.A)("div",{target:"e81ytdu0"})("display:flex;flex-direction:column;flex:0.8;@media (max-width: ",c.fi.tablet,"){padding-top:20px;border-top:1px solid ",c.Tj.chineseWhite,";}")},66950:(e,t,a)=>{"use strict";a.d(t,{h:()=>c});var i=a(14232),n=a(54107),l=a(13675),o=a(37363),r=a(54424),d=a(31158),s=i.createElement;function c({children:e}){return s(u,null,e)}function u({children:e}){let{length:t,currentIndex:a}=(0,l.ym)();return s(o.Pm,{total:t,current:a+1},s(d.A,null,s(n.dG,null),s(r.J,null,e)))}},78542:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/booking/clinician-first/schedule",function(){return a(63916)}])},86362:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(43181),n=a(14232),l=a(30236),o=a(69004),r=n.createElement;let d=({appointment:e,clickCallback:t=()=>{},disabled:a=!1})=>{let{0:i,1:l}
1=(0,n.useState)(!1);return r(s,null,r(u,null,r(p,null,r(c,null,r(o.o5,{as:"span","data-testid":"schedule-time-slot",variant:{plushcare:"md",tc:"body"}},new Date(e.appointment_utc_time).toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0}).toLowerCase()))),r(p,{alignRight:!0},r(o.$n,{variant:"primary",disabled:a,isLoading:i,id:"book-doctor","data-testid":"book-doctor-button",onClick:()=>{i||a||(l(!0),t(e))}},"Book"))))},s=(0,i.A)("div",{target:"e1k31ajl3"})("background:",l.Tj.white,";padding:7px;border-bottom:1px solid ",l.Tj.gainsboro,";width:100%;"),c=(0,i.A)("div",{target:"e1k31ajl2"})({name:"j7aebd",styles:"padding-top:15px"}),u=(0,i.A)("div",{target:"e1k31ajl1"})({name:"1hsp21g",styles:"display:table;width:100%"}),p=(0,i.A)("div",{target:"e1k31ajl0"})("background:",l.Tj.white,";float:",({alignRight:e})=>e?"right":"left",";")},89880:(e,t,a)=>{"use strict";a.d(t,{u:()=>h});var i=a(43181),n=a(14232),l=a(63305),o=a(89099),r=a(30236),d=a(69004),s=a(83491),c=a(83202),u=a(37363),p=a(78648),m=n.createElement;let y=p.HE,h=({onBackClick:e,backLink:t,holdLength:a,sticky:i=!1,disableFirstStepBackClick:r=!0,customRedirect:d,hideTimer:p=!1,hideStepCount:h=!1,hideBack:g=!1})=>{let _=(0,o.useRouter)(),{selectors:{isFirstStep:f}}=(0,u.lE)(),v=!!s.Jt("widget_payer"),A=m(b,{variant:"secondary",onClick:()=>_.push(d?.path||"")},d?.label);return m("header",null,m(u.jw,{sticky:i,indicatorComponent:m(u.k9,{onBackClick:e??(()=>_.push(t)),shouldDisableFirstStep:f()&&r,hideCount:v||h,hideBack:v||g})},!p&&a&&c.A.get(y)&&m(u.M4,{text:"Weâre holding your appointment:",durationInMinutes:a,startTime:(0,l.Ad)(c.A.get(y)),fallbackElement:m(n.Fragment,null,"The appointment is no longer being"," ",m("br",null)," ","held, but you can still try to book.")}),d&&A))},b=(0,i.A)(d.$n,{target:"elkccsp0"})("float:right;margin-right:15px;@media (min-width: ",r.fi.desktop,"){margin-right:35px;}")},95121:(e,t,a)=>{"use strict";a.d(t,{Jk:()=>r,gG:()=>l,kZ:()=>o});var i=a(78648),n=a(63305);let l={PRIMARY_CARE:"primary_care",THERAPY:"therapy",PREVENTATIVE_ANNUAL_CHECK:"preventative_annual_check"},o=e=>"therapist"===String(e.doctor_type||e.doctor_type_booked).toLowerCase()?l.THERAPY:r()?l.PREVENTATIVE_ANNUAL_CHECK:l.PRIMARY_CARE,r=()=>{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}},95511:(e,t,a)=>{"use strict";a.d(t,{a:()=>r});var i=a(14232),n=a(63305),l=a(37950),o=i.createElement;let r=({calendarDate:e,availableDates:t,onChange:a})=>{let i=e=>e.split("T")[0];return o(l.A,{calendarDate:e,onChange:a,availableDates:t,isDateAvailable:e=>t.some(t=>i(t)===i(e.toISOString())),isDateSelected:a=>{let n=new Date(e);n.setHours(0,0,0,0);let l=t.map(e=>i(e)).includes(i(a.toISOString()));return n.getTime()===a.getTime()&&l},getUnavailableText:e=>`We're sorry, this doctor currently has no availability for the month of ${(0,n.Ge)(e)}.`,calendarEnabled:!0})}}},e=>{e.O(0,[4049,5587,2262,4232,7479,9516,941,883,5053,6088,9553,4216,5501,7950,636,6593,8792],()=>e(e.s=78542)),_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.