1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3114],{8363:(e,t,i)=>{"use strict";i.d(t,{D:()=>o,x:()=>r});var n=i(1257),l=i(98786);function r(e,t,i=!1){if("location"===t.type&&(t.schedulingEnabledServicesCount??0)>1){if(e((0,n.qG)(!1)),e((0,n.YE)(!0)),e((0,n.qU)(null)),t.locations&&t.locations.length>0){let i=t.locations.map(e=>e?.EpicDepartmentId).filter(e=>null!=e&&""!==e.trim()).join(",");e((0,n.Uh)(i))}e((0,n.Xs)("")),e((0,n.hU)("")),e((0,n.vD)("")),e((0,n.o3)(""));return}if(e((0,n.qG)(!0)),e((0,n.YE)(!1)),e((0,n.qU)(String(t.id))),t.epicOnlineSchedulingEnabled){let i=t.locations?.map(e=>e?.EpicDepartmentId).filter(e=>null!=e&&""!==e.trim()).join(",");e((0,n.Uh)(i??""));let l=t.providers?.filter(e=>e.EpicOnlineSchedulingEnabled&&e.EpicProviderId).map(e=>e.EpicProviderId).join(",")??"";e((0,n.Xs)(l)),e((0,n.hU)("")),e((0,n.vD)("")),e((0,n.o3)(""))}else{var o=e,s=t,a=i;if(s.epicSchedulingDisabledMessage)o((0,n.vD)(s.epicSchedulingDisabledMessage));else{let e=s.name?`Thank you for your interest in ${s.name}!`:"To Schedule an Appointment:";o((0,n.o3)(e));let t="",i=s.locations?.filter(e=>e?.PhoneNumber).map(e=>`${e.Name}: ${a?"<br/>":""}<a href='tel:${(0,l.bA)(e?.PhoneNumber)}'>${e?.PhoneNumber}</a>`)??[];i.length>0?(t+="<p>Our dedicated team is happy to help schedule your appointment. <br/>Please call any of our locations below:</p>",i.forEach(e=>{e&&(t+="<p>"+e+"</p>")})):s.providers&&s.providers.length>0&&(t+="<p>Our dedicated team is happy to help schedule your appointment. <br/>Please call any of our team members below for assistance:</p>",s.providers.map(e=>{let t=e?.Locations?.find(e=>!0===e.PrimaryLocation);return t&&t.PhoneNumber&&t.Name?`${e.FirstName} ${e.LastName}: <a href='tel:${(0,l.bA)(t?.PhoneNumber)}'>${t?.PhoneNumber}</a>`:null}).filter(Boolean).forEach(e=>{e&&(t+="<p>"+e+"</p>")})),o((0,n.hU)(t.length>0?t:" "))}}}function o(e,t,i,n){return e||t||i?{shouldSet:!1,useAllServices:!1}:{shouldSet:!0,useAllServices:"/"!==n&&""!==n}}},33284:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(37876),l=i(14895),r=i(26746),o=i(92374),s=i(54587),a=i.n(s),d=i(34860),c=i.n(d);function h(){return(0,n.jsx)(l.A,{open:!0,slots:{backdrop:r.A},slotProps:{backdrop:{sx:{backgroundColor:"var(--navy)"}}},children:(0,n.jsx)(o.A,{className:c().emblemModal,children:(0,n.jsx)("div",{className:c().emblem,children:(0,n.jsx)(a(),{src:"/MeritusHealthMini.png",alt:"Loading",width:280,height:140})})})})}},34860:e=>{e.exports={emblem:"LoadingEmblem_emblem__I9Zyl",blinker:"LoadingEmblem_blinker__azET5",emblemModal:"LoadingEmblem_emblemModal__0NNcm"}},53114:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>O});var n=i(37876),l=i(26118),r=i(14895),o=i(26746),s=i(92374),a=i(54142),d=i(40042),c=i(93985),h=i(32788),p=i(15438),u=i(33640),m=i.n(u),x=i(31777),g=i(1257),f=i(97537),v=i(14232),j=i(5510),b=i(55006);function A(e){let[t,i]=(0,v.useState)(!0),[l,r]=(0,v.useState)(!1),o=`${f.o$}/openscheduling/embedded?apikey=${f.Pz}&widgetid=MyChartIframe0&id=${e.providerId}&vt=${e.visitTypeId}&dept=${e.departmentId}`;return(0,v.useEffect)(()=>{if(!e.departmentId&&!e.providerId){r(!1),i(!0);return}i(!0),r(!1);let t=setTimeout(()=>{r(!0);let e=setTimeout(()=>{i(!1)},500);return()=>clearTimeout(e)},100);return()=>clearTimeout(t)},[e.departmentId,e.providerId,e.visitTypeId]),(0,n.jsx)(n.Fragment,{children:e&&(0,n.jsxs)("div",{className:m().iframeWrapper,style:{position:"relative",minHeight:"70vh"},children:[(0,n.jsx)(j.A,{in:t||!l,timeout:300,children:(0,n.jsx)(s.A,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:t||!l?"flex":"none",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.9)",zIndex:10},children:(0,n.jsx)(b.A,{sx:{color:"#68af7e"}})})}),l&&(0,n.jsx)(j.A,{in:!t,timeout:500,children:(0,n.jsx)("iframe",{className:m().iframeOverride,title:"SchedulingWidget",src:o,style:{opacity:+!t,transition:"opacity 0.5s ease-in-out"}},`${e.departmentId}-${e.providerId}-${e.visitTypeId}`)})]})})}var y=i(89099),E=i(33284),S=i(66750),I=i(14938),C=i(66584),k=i(66492),w=i(8363);function N(){let e=(0,x.wA)(),t=(0,y.useRouter)(),{selectedServiceId:i,hasContext:l,departmentId:r}=(0,x.d4)(e=>e.schedule),[o,s]=(0,v.useState)([]),[a,d]=(0,v.useState)(""),[c,h]=(0,v.useState)(!0);(0,v.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/get-scheduling-services");if(!e.ok)throw Error("Failed to fetch scheduling services");let t=await e.json();s(t.services),d(t.allDepartmentIds)}catch(e){console.error("Error fetching services for scheduling:",e)}finally{h(!1)}})()},[e]),(0,v.useEffect)(()=>
1{if(0===o.length)return;let n=(0,w.D)(l,r,i,t.pathname);if(n.shouldSet)if(n.useAllServices)e((0,g.qU)(null)),e((0,g.Uh)(a)),e((0,g.Xs)("")),e((0,g.lf)("")),e((0,g.hU)("")),e((0,g.vD)("")),e((0,g.o3)("")),e((0,g.ht)([]));else{let t=o.find(e=>"88"===String(e.id));if(t)if(e((0,g.qU)(String(t.id))),t.EpicOnlineSchedulingEnabled&&t.Locations){let i=t.Locations.map(e=>e.EpicDepartmentId).filter(e=>e&&""!==e.trim()).join(",");e((0,g.Uh)(i));let n=t.Providers?.filter(e=>e.EpicOnlineSchedulingEnabled&&e.EpicProviderId).map(e=>e.EpicProviderId).join(",")??"";e((0,g.Xs)(n)),e((0,g.lf)("")),e((0,g.hU)("")),e((0,g.vD)("")),e((0,g.o3)("")),e((0,g.ht)([]))}else p(t);else e((0,g.qU)(null)),e((0,g.Uh)(a)),e((0,g.Xs)("")),e((0,g.lf)(""))}},[o,l,r,i,e,a,t.pathname]);let p=t=>{e((0,g.Uh)("")),e((0,g.Xs)("")),e((0,g.lf)("")),e((0,g.ht)(t.Locations||[])),t.EpicSchedulingDisabledMessage?(e((0,g.vD)(t.EpicSchedulingDisabledMessage)),e((0,g.hU)("")),e((0,g.o3)(""))):(e((0,g.o3)(`Thank you for your interest in ${t.PatientFriendlyName||t.Name}!`)),e((0,g.hU)("Our dedicated team is happy to help schedule your appointment. <br/>Please call us for assistance.")),e((0,g.vD)("")))};return c?(0,n.jsx)(b.A,{size:24,sx:{color:"#68af7e"}}):(0,n.jsx)(I.A,{size:"small",sx:{minWidth:{xs:"100%",sm:200},width:{xs:"100%",sm:"auto"}},children:(0,n.jsxs)(C.A,{id:"appointment-type-select",value:i||"all",onChange:t=>{let i=t.target.value;if("all"===i){e((0,g.qU)(null)),e((0,g.Uh)(a)),e((0,g.Xs)("")),e((0,g.lf)("")),e((0,g.hU)("")),e((0,g.vD)("")),e((0,g.o3)("")),e((0,g.ht)([]));return}e((0,g.qU)(i));let n=o.find(e=>String(e.id)===i);if(!n)return void e((0,g.Uh)(""));if(!n.EpicOnlineSchedulingEnabled)return void p(n);if(n.Locations&&n.Locations.length>0){let t=n.Locations.map(e=>e.EpicDepartmentId).filter(e=>e&&""!==e.trim()).join(",");if(t){if(e((0,g.Uh)(t)),"2"===i)e((0,g.Xs)("")),e((0,g.lf)(""));else{let t=n.Providers?.filter(e=>e.EpicOnlineSchedulingEnabled&&e.EpicProviderId).map(e=>e.EpicProviderId).join(",")??"";e((0,g.Xs)(t)),e((0,g.lf)(""))}e((0,g.hU)("")),e((0,g.vD)("")),e((0,g.o3)("")),e((0,g.ht)([]))}else p(n)}else p(n)},displayEmpty:!0,sx:{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#68af7e"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#539b70"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#68af7e"}},children:[(0,n.jsx)(k.A,{value:"all",children:"All Services"}),o.map(e=>(0,n.jsx)(k.A,{value:String(e.id),children:e.PatientFriendlyName||e.Name},e.id))]})})}var P=i(29473),U=i(78023),D=i(88494),M=i(52893);function B(){let e=(0,x.wA)();return(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"200px",padding:3,textAlign:"center"},children:[(0,n.jsx)(a.A,{variant:"h6",component:"h3",sx:{marginBottom:3},children:"Are you pregnant or think you might be pregnant?"}),(0,n.jsxs)(s.A,{sx:{display:"flex",gap:2},children:[(0,n.jsx)(U.A,{variant:"contained",onClick:()=>{e((0,g.Pb)(!0))},sx:{backgroundColor:"#68af7e","&:hover":{backgroundColor:"#539b70"},minWidth:"100px"},children:"Yes"}),(0,n.jsx)(U.A,{variant:"outlined",onClick:()=>{e((0,g.Pb)(!1))},sx:{borderColor:"#68af7e",color:"#68af7e","&:hover":{borderColor:"#539b70",backgroundColor:"rgba(104, 175, 126, 0.1)"},minWidth:"100px"},children:"No"})]})]})}function L(){return(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"200px",padding:3,textAlign:"center"},children:[(0,n.jsx)(a.A,{variant:"body1",sx:{marginBottom:3},children:"Thank you for your interest in scheduling with OB/GYN! For pregnancy-related appointments, please call our office directly so we can best assist you."}),(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:1,padding:2,backgroundColor:"#f5f5f5",borderRadius:2},children:[(0,n.jsx)(M.A,{sx:{color:"#68af7e"}}),(0,n.jsxs)(a.A,{variant:"h6",component:"span",children:["Call OB/GYN:"," ",(0,n.jsx)(D.A,{href:"tel:3017909355",sx:{color:"#3c92df",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline"}},children:"301-790-WELL"})]})]})]})}var _=i(27888),$=i(29904);function O(){let e=(0,y.useRouter)(),t=(0,x.wA)(),i=(0,l.A)("(max-width:768px)"),[u,f]=v.useState(!1),{isModalVisible:j,disabledMsgDirectus:b,disabledMsgGeneric:I,disabledHdrGeneric:C,departmentId:k,visitTypeId:w,providerId:U,hasContext:D,showAppointmentTypeSelector:M,selectedServiceLocations:O,selectedServiceId:T,providerServiceIds:q,ageGateVerified:W,pregnancyGateVerified:X}=(0,x.d4)(e=>e.schedule),Y="75"===T,F=q.some(e=>"75"===String(e)),H=1===q.length&&F;return(v.useEffect(()=>{j&&k?.includes("100871101")?f(!0):f(!1)}),v.useEffect(()=>{u&&e.push("https://now.meritushealth.com/schedule/reason-for-visit")}),u)?(0,n.jsx)(E.A,{}):(0,n.jsx)("div",{children:(0,n.jsx)(r.A,{"aria-labelledby":"transition-modal-title","aria-describedby":"transition-modal-description",open:j,closeAfterTransition:!0,slots:{backdrop:o.A},children:(0,n.jsx)(s.A,{className:m().modal,sx:{bgcolor:"background.paper",boxShadow:24,p:2,...b.length>0||I.length>0?{height:"auto !important",maxHeight:"90vh",overflowY:"auto !important"}:{}},children:(0,n.jsxs)("div",{style:{backgroundColor:"#fff",padding:"20px"}
1,children:[(0,n.jsxs)(s.A,{sx:{marginBottom:"16px"},children:[(0,n.jsxs)(s.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:{xs:2,sm:0}},children:[(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:2,flex:1},children:[(0,n.jsx)(a.A,{id:"transition-modal-title",variant:"h6",component:"h2",children:"Schedule Appointment"}),!D&&M&&(0,n.jsx)(s.A,{sx:{display:{xs:"none",sm:"block"}},children:(0,n.jsx)(N,{})})]}),(0,n.jsx)(d.A,{onClick:()=>{t((0,g.KH)())},children:(0,n.jsx)(c.A,{})})]}),!D&&M&&(0,n.jsx)(s.A,{sx:{display:{xs:"block",sm:"none"},width:"100%"},children:(0,n.jsx)(N,{})})]}),(Y||H)&&null===X?(0,n.jsx)(B,{}):(Y||H)&&!0===X?(0,n.jsx)(L,{}):b.length>0?(0,n.jsxs)("div",{children:[(0,n.jsx)(a.A,{id:"transition-modal-description",sx:{marginY:2},children:(0,n.jsx)(S.A,{fieldData:b,style:{},addTags:!1})}),O&&O.length>0&&(0,n.jsxs)(s.A,{sx:{marginTop:1},children:[(0,n.jsx)(a.A,{variant:"h6",component:"h3",sx:{marginBottom:1},children:"Locations"}),O.length>2?(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center"},children:[!i&&(0,n.jsx)(d.A,{sx:{color:"#3c92df","&:hover":{backgroundColor:"transparent"}},className:"customModal_next",children:(0,n.jsx)(h.A,{})}),(0,n.jsx)(_.RC,{style:i?{height:"max-content",paddingBottom:"30px"}:{height:"max-content",paddingBottom:"0px"},speed:1e3,slidesPerView:"auto",centeredSlides:!!i,spaceBetween:30,grabCursor:!0,loop:i&&O.length>3,navigation:!i&&{nextEl:".customModal_prev",prevEl:".customModal_next"},pagination:!!i&&{clickable:!0,dynamicBullets:O.length>3},modules:[$.Vx,$.dK],children:O.map((e,t)=>(0,n.jsx)(_.qr,{style:{width:"auto",height:"auto"},children:(0,n.jsx)(P.A,{location:e,primaryLocation:!1,inSwiper:!0,hideScheduleButton:!0})},t))}),!i&&(0,n.jsx)(d.A,{sx:{color:"#3c92df","&:hover":{backgroundColor:"transparent"}},className:"customModal_prev",children:(0,n.jsx)(p.A,{})})]}):(0,n.jsx)(s.A,{sx:{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:2},children:O.map((e,t)=>(0,n.jsx)(P.A,{location:e,primaryLocation:!1,inSwiper:!1,hideScheduleButton:!0},t))})]})]}):I.length>0?(0,n.jsxs)("div",{children:[C.length>0&&(0,n.jsx)(a.A,{variant:"h6",component:"h3",sx:{marginBottom:2},children:C}),(0,n.jsx)(a.A,{id:"transition-modal-description",sx:{marginY:2},component:"div",children:(0,n.jsx)(S.A,{fieldData:I,style:{},addTags:!1})}),O&&O.length>0&&(0,n.jsxs)(s.A,{sx:{marginTop:1},children:[(0,n.jsx)(a.A,{variant:"h6",component:"h3",sx:{marginBottom:1},children:"Locations"}),O.length>2?(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center"},children:[!i&&(0,n.jsx)(d.A,{sx:{color:"#3c92df","&:hover":{backgroundColor:"transparent"}},className:"customModal_next",children:(0,n.jsx)(h.A,{})}),(0,n.jsx)(_.RC,{style:i?{height:"max-content",paddingBottom:"30px"}:{height:"max-content",paddingBottom:"0px"},speed:1e3,slidesPerView:"auto",centeredSlides:!!i,spaceBetween:30,grabCursor:!0,loop:i&&O.length>3,navigation:!i&&{nextEl:".customModal_prev",prevEl:".customModal_next"},pagination:!!i&&{clickable:!0,dynamicBullets:O.length>3},modules:[$.Vx,$.dK],children:O.map((e,t)=>(0,n.jsx)(_.qr,{style:{width:"auto",height:"auto"},children:(0,n.jsx)(P.A,{location:e,primaryLocation:!1,inSwiper:!0,hideScheduleButton:!0})},t))}),!i&&(0,n.jsx)(d.A,{sx:{color:"#3c92df","&:hover":{backgroundColor:"transparent"}},className:"customModal_prev",children:(0,n.jsx)(p.A,{})})]}):(0,n.jsx)(s.A,{sx:{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:2},children:O.map((e,t)=>(0,n.jsx)(P.A,{location:e,primaryLocation:!1,inSwiper:!1,hideScheduleButton:!0},t))})]})]}):(0,n.jsxs)("div",{children:[(0,n.jsx)(a.A,{variant:"subtitle1",id:"transition-modal-description",sx:{marginBottom:2},children:"For prompt care, visit Urgent care at Meritus Medical Plaza, Valley Mall, or Mental Health Urgent Care, no appointment needed."}),(0,n.jsx)(A,{departmentId:k,visitTypeId:w,providerId:U})]})]})})})})}i(97603),i(73797)}}]);
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.