PageSourceSearch

https://www.meritushealth.com/_next/static/chunks/pages/contact-us-3327991011c97a72.js

js meritushealth.com collected 2026-10-02 04:55:29 UTC 10,988 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2649],{6946:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var s=i(37876),n=i(26118),a=i(54587),r=i.n(a),l=i(14232),o=i(82633),d=i.n(o);function c({imgUrl:e,imgUrlMobile:t,pill:i,title:a}){let o=(0,n.A)("(max-width:768px)"),[c,u]=(0,l.useState)(),m=a?.length>50;return(0,l.useEffect)(()=>{u(o&&t&&!t.includes("null")&&!t.includes("undefined")?t:o||!e||e.includes("null")||e.includes("undefined")?null:e)},[o,e,t]),(0,s.jsx)("div",{className:d().root,children:(0,s.jsxs)("div",{className:d().topDiv,children:[(0,s.jsxs)("div",{className:d().textDiv,children:[(0,s.jsx)("p",{className:d().pill,children:i}),"NEWS"===i&&"Meritus News"===a?(0,s.jsx)("h2",{className:m?d().longTitle:d().title,children:a}):(0,s.jsx)("h1",{className:m?d().longTitle:d().title,children:a})]}),(0,s.jsxs)("div",{className:d().imgDiv,children:[c?(0,s.jsx)(r(),{src:`${c}?width=1920&fit=outside`,alt:a,fill:!0,priority:!0,style:{opacity:"55%"},sizes:"90vw"}):(0,s.jsx)("div",{style:{position:"initial",opacity:".15",overflow:"hidden"},children:(0,s.jsx)(r(),{src:"/meritusflower.svg",alt:"",fill:!0,priority:!0,style:{objectFit:"cover",objectPosition:"left"},sizes:"90vw"})}),(0,s.jsx)(r(),{src:o?"/CirclePatternMobile.png":"/CirclePattern.png",alt:"",fill:!0,priority:!0,style:{position:"absolute"},sizes:"90vw"})]})]})})}},30854:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact-us",function(){return i(61945)}])},42400:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(37876);i(14232);var n=i(97537),a=i(77328),r=i.n(a);function l({hidePage:e,pageTitle:t,metaDescription:i,ogTitle:a,ogImage:l}){return(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{name:"description",content:i}),e&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("meta",{property:"og:title",content:a}),l.length>0?(0,s.jsx)("meta",{property:"og:image",content:l}):(0,s.jsx)("meta",{property:"og:image",content:`${n.qk}${n.iA}`})]})}},42823:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var s=i(44501),n=i(40670),a=i(14232),r=i(69241),l=i(4697),o=i(69844),d=i(83957),c=i(47951),u=i(45879);function m(e){return(0,u.Ay)("MuiCardContent",e)}(0,c.A)("MuiCardContent",["root"]);var x=i(37876);let p=["className","component"],h=(0,o.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),g=a.forwardRef(function(e,t){let i=(0,d.b)({props:e,name:"MuiCardContent"}),{className:a,component:o="div"}=i,c=(0,n.A)(i,p),u=(0,s.A)({},i,{component:o}),g=(e=>{let{classes:t}=e;return(0,l.A)({root:["root"]},m,t)})(u);return(0,x.jsx)(h,(0,s.A)({as:o,className:(0,r.A)(g.root,a),ownerState:u,ref:t},c))})},53098:e=>{e.exports={contactMainDiv:"ContactUs_contactMainDiv__tIW9g",submitButton:"ContactUs_submitButton__iWubt"}},61945:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSG:()=>b,default:()=>A});var s=i(37876),n=i(26118),a=i(42823),r=i(54142),l=i(14232),o=i(92374),d=i(55006),c=i(68794),u=i(21117),m=i(49960),x=i(78023),p=i(53098),h=i.n(p),g=i(97537);function v(e){let[t,i]=l.useState(null),[n,a]=l.useState(!1),[p,v]=l.useState(""),[f,j]=l.useState(!1),[y,b]=l.useState(""),[A,_]=l.useState(""),[S,w]=l.useState(!1),[C,N]=l.useState(""),[T,D]=l.useState(""),[M,W]=l.useState(!1),[P,U]=l.useState(""),[k,E]=l.useState(""),[L,$]=l.useState(!1),[q,B]=l.useState(""),[I,H]=l.useState(""),[R,z]=l.useState(!1),[O,Z]=l.useState("unset"),[X,F
1]=l.useState(""),[Y,V]=l.useState(!1),[G,J]=l.useState("unset"),[K,Q]=l.useState(""),[ee,et]=l.useState(!1),[ei,es]=l.useState("unset"),[en,ea]=l.useState(""),[er,el]=l.useState(!1),[eo,ed]=l.useState(""),[ec,eu]=l.useState(!1);async function em(){""===p?(j(!0),b("Please enter the patient's first name.")):/[^a-z-A-Z]+/g.test(p)?(j(!0),b("Please only use letters and hyphens")):j(!1),""===A?(w(!0),N("Please enter the patient's last name.")):/[^a-z-A-Z]+/g.test(A)?(w(!0),N("Please only use letters and hyphens")):w(!1),!1==/^\(?([0-9]{3})\)?[-.●]?([0-9]{3})[-.●]?([0-9]{4})$/.test(T)?W(!0):W(!1),!1==/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(k)?$(!0):$(!1),""===I?(z(!0),Z("#d32f2f")):(z(!1),Z("unset")),""===X?(V(!0),J("#d32f2f")):(V(!1),J("unset")),""===K?(et(!0),es("#d32f2f")):(et(!1),es("unset")),""===en?(el(!0),ed("Please describe your concern, question, or how we can help.")):en.length>1e3?(el(!0),ed("Message must be 1,000 characters or less.")):(el(!1),ed("")),eu(!0)}async function ex(){fetch("/api/submit-contact-form",{method:"POST",body:JSON.stringify({firstName:p.trim(),lastName:A.trim(),phoneNumber:T.trim(),email:k.trim(),selectedMethodOfContact:I.trim(),selectedWayOfHelp:X.trim(),selectedServiceLineName:K.trim(),message:en.trim()})}).then(e=>{a(!1),e.ok&&i(!0)})}return l.useEffect(()=>{if(ec)if(f||S||M||L||R||Y||ee||er)return void eu(!1);else a(!0),ex()},[ec]),(0,s.jsxs)(o.A,{sx:{maxWidth:700,bgcolor:"background.paper",boxShadow:5,p:2,outline:0,justifyContent:"center",marginLeft:"auto",marginRight:"auto"},children:[n&&(0,s.jsx)(o.A,{children:(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",paddingTop:"10px"},children:(0,s.jsx)(d.A,{})})}),t&&(0,s.jsx)(o.A,{children:(0,s.jsx)(r.A,{align:"center",variant:"subtitle1",children:"Thank you, your form has been submitted."})}),!1==t&&(0,s.jsx)(o.A,{children:(0,s.jsx)(r.A,{align:"center",variant:"subtitle1",children:"We apologize, something has gone wrong. Please try resubmitting."})}),!t&&!n&&(0,s.jsxs)(o.A,{children:[(0,s.jsxs)(c.Ay,{container:!0,spacing:1,sx:{width:"100%",marginLeft:"auto",marginRight:"auto",display:"flex",justifyContent:"center"},children:[(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(u.A,{value:p,onChange:function(e){v(e.target.value.toString())},error:f,helperText:f?y:"",required:!0,id:"firstName",label:"First Name",fullWidth:!0,variant:"standard"})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(u.A,{value:A,onChange:function(e){_(e.target.value.toString())},error:S,helperText:S?C:"",required:!0,id:"lastName",label:"Last Name",fullWidth:!0,variant:"standard"})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(u.A,{value:T,onChange:function(e){let t=e.target.value.toString();if((t=t.replace(/[^0-9]+/g,"")).length>3&&t.length<7){var i=t.slice(0,3),s=t.slice(3,6);D(i+"-"+s)}else if(t.length>6){var i=t.slice(0,3),s=t.slice(3,6);D(i+"-"+s+"-"+t.slice(6,10))}else t.length<1&&D(""),D(t)},error:M,helperText:M?P:"",required:!0,id:"phoneNumber",label:"Phone Number",fullWidth:!0,variant:"standard"})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(u.A,{value:k,onChange:function(e){E(e.target.value.toString())},error:L,helperText:L?q:"",required:!0,id:"email",label:"Email",fullWidth:!0,variant:"standard"})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(m.A,{disableClearable:!0,sx:{width:"100%",marginTop:"5px",marginBottom:"2px",marginLeft:"0px",marginRight:"0px"},options:g.VD,renderInput:e=>(0,s.jsx)(u.A,{...e,label:"Best method to contact you?",variant:"standard",sx:{label:{color:`${O}`}}}),onChange:(e,t)=>
1{H(t)}})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(m.A,{disableClearable:!0,sx:{width:"100%",marginTop:"5px",marginBottom:"2px",marginLeft:"0px",marginRight:"0px"},options:g.zp,renderInput:e=>(0,s.jsx)(u.A,{...e,label:"How may we help you?",variant:"standard",sx:{label:{color:`${G}`}}}),onChange:(e,t)=>{F(t)}})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:6,sx:{maxWidth:"100%"},children:(0,s.jsx)(m.A,{disableClearable:!0,sx:{width:"100%",marginTop:"5px",marginBottom:"2px",marginLeft:"0px",marginRight:"0px"},options:e.serviceLines.map(e=>e.Name),renderInput:e=>(0,s.jsx)(u.A,{...e,label:"Service Line",variant:"standard",sx:{label:{color:`${ei}`}}}),onChange:(e,t)=>{Q(t)}})}),(0,s.jsx)(c.Ay,{item:!0,xs:12,sm:12,md:12,lg:12,sx:{maxWidth:"100%",marginTop:"20px"},children:(0,s.jsx)(u.A,{value:en,onChange:function(e){let t=e.target.value.toString();t.length<=1e3&&ea(t)},error:er,helperText:er?eo:`${en.length}/1000 characters`,required:!0,id:"message",label:"Please describe your concern, question, or how we can help",fullWidth:!0,multiline:!0,rows:4,variant:"outlined",inputProps:{maxLength:1e3}})})]}),(0,s.jsx)(x.A,{className:h().submitButton,variant:"contained",onClick:()=>{em()},children:"Submit"})]})]})}var f=i(81745),j=i(6946),y=i(42400),b=!0;function A({allServices:e,genericInfo:t}){let i=(0,n.A)("(max-width:768px)");return(0,s.jsxs)("div",{children:[(0,s.jsx)(y.A,{hidePage:!1,pageTitle:"Contact Us | Meritus Health",metaDescription:t[0]?.MetaDescription?t[0]?.MetaDescription:"Meritus Health: Expert Care, Close to Home.",ogTitle:"Contact Meritus Health",ogImage:""}),(0,s.jsx)(j.A,{pill:"Help Center",title:"Contact Us",imgUrl:`${g.qk}${t[0]?.HeroImg}`,imgUrlMobile:`${g.qk}${t[0]?.HeroImgMobile}`}),(0,s.jsxs)("div",{className:h().contactMainDiv,children:[(0,s.jsx)(f.A,{}),(0,s.jsxs)(a.A,{sx:{width:"100%"},children:[(0,s.jsx)(r.A,{align:"center",variant:i?"body1":"h5",sx:{paddingBottom:"1rem"},children:"Please complete the form below to contact Meritus Health with any questions, concerns, to opt-out of communication, or simply to request more information."}),(0,s.jsx)(v,{serviceLines:e})]})]})]})}},81745:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s=i(37876),n=i(89099),a=i(48230),r=i.n(a),l=i(3627);function o({}){let e=(0,n.useRouter)().asPath.split("?")[0].toUpperCase().split("/");return e.map((t,i)=>{t.includes("#")&&(t=t.split("#")[0],e[i]=t)}),(0,s.jsx)("div",{style:{display:"flex",borderBottom:"1px lightgray solid"},children:(0,s.jsxs)("div",{style:{display:"flex",marginTop:"25px",marginBottom:"25px",color:"#3c92df",flexWrap:"wrap",fontSize:"12px"},children:[(0,s.jsx)(r(),{href:"/",style:{margin:"5px 0px"},children:"HOME"}),e.map(t=>{let i=e.indexOf(t),n="";for(let t=0;t<=i;t++)n=n+e[t]+"/";let a=i!==e.length-1?"#3c92df":"#1e4265";return(0,s.jsxs)("div",{style:{display:"flex",color:a},children:[i===e.length-1&&(0,s.jsx)("p",{style:{padding:0,margin:"5px 0px"},children:t.replace(/-/g," ")}),i!==e.length-1&&(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsx)(r(),{href:n.replace(/\s+/g,"-").toLowerCase(),style:{margin:"5px 0px"},children:t.replace(/-/g," ")}),(0,s.jsx)(l.A,{orientation:"vertical",flexItem:!0,sx:{height:"75%",borderColor:"#3c92df",margin:"auto 5px"}})]})]},i)})]})})}i(14232)},82633:e=>{e.exports={root:"UniversalTopDiv_root__6ZP0F",topDiv:"UniversalTopDiv_topDiv__EpUZT",imgDiv:"UniversalTopDiv_imgDiv__Nj1Er",textDiv:"UniversalTopDiv_textDiv__7YYWR",pill:"UniversalTopDiv_pill__k3r11",title:"UniversalTopDiv_title__5bZLY",longTitle:"UniversalTopDiv_longTitle__VngUf",backgroundImg:"UniversalTopDiv_backgroundImg__ZXNTZ",backgroundImgMobile:"UniversalTopDiv_backgroundImgMobile__tCBXj"}}},e=>{e.O(0,[9960,636,6593,8792],()=>e(e.s=30854)),_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.