1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[779,8702],{36863:e=>{e.exports={root:"Address_root__vQoU5"}},58170:(e,a,r)=>{"use strict";r.d(a,{b:()=>c});var l=r(37876);r(14232);var s=r(17978),t=r(56399),i=r(37393),d=r(17564),n=r(19666),o=r(58103),u=r.n(o);let c=e=>{var a;let{t:r}=(0,n.B)(),o=(0,s.lN)(),c=e.status===t.t3.Pending,m=o.invalid||c;return(0,l.jsxs)(i.A,{type:"submit",disabled:m,className:u()(m&&"no-click"),children:[c&&r(d.Pd.PleaseWait),!c&&(null!=(a=e.text)?a:r(d.Pd.Save))]})}},69516:(e,a,r)=>{"use strict";r.r(a),r.d(a,{__N_SSG:()=>L,default:()=>R});var l=r(47117),s=r(37876),t=r(14232),i=r(35946),d=r(89306),n=r(62867),o=r(58103),u=r.n(o),c=r(96662),m=r(36863),v=r.n(m),x=r(17564),h=r(19666);let j=()=>{let{t:e}=(0,h.B)(),{contact:a}=(0,c.zj)();return a.address?(0,s.jsxs)("div",{className:v().root,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{children:"Address"}),a.address.map((e,a)=>(0,s.jsx)("p",{children:e},a))]}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{children:[e(x.Pd.CompanyRegistrationNumber),": ",a.companyReg]})})]}):null};var p=r(73083),b=r.n(p),P=r(78229),f=r(17978),_=r(58170),g=r(56399),y=r(78753),C=r(91801),N=r(76667),A=r.n(N),O=r(25406);let S=e=>{var a;let r,{required:l=!1,disabled:t=!1,helpVisible:i=!0,displayLabel:d=!0,errorIcon:n=!0,placeholder:o,title:c,initialValue:m,helpText:v,hasError:x,autoComplete:j,field:p,...b}=e,{t:P}=(0,h.B)();return(0,s.jsxs)("div",{className:u()({[b.fieldClass||"".concat(A().field," field")]:!0,[A().error]:x,[A().hidden]:b.hidden,[b.className||""]:!0}),children:[d&&(0,s.jsx)("label",{htmlFor:p,children:b.label}),n&&x&&(0,s.jsx)("span",{className:A().icon,children:(0,s.jsx)(O.A,{})}),(r=b.type,(0,s.jsx)(f.fs,{className:u()({[A().textInput]:!0,[A().inputError]:x,[b.inputClassName||""]:!0,[A().textArea]:!0}),initialValue:m,placeholder:o,type:r,disabled:t,required:l,title:c,autoComplete:j||"off",field:p,id:b.id||p,validate:b.validate,validateOnBlur:b.validateOnBlur,validateOnChange:!!x,"aria-label":b.label,onValueChange:b.onChange,maxLength:b.maxLength,"data-test-id":b["data-test-id"]})),v&&(0,s.jsx)("small",{className:A().caption,children:v}),x&&Array.isArray(x)&&(0,s.jsx)("small",{className:A().errorText,children:P(x[0],x[1])}),x&&!Array.isArray(x)&&(0,s.jsx)("small",{className:A().errorText,children:null!=(a=P(x))?a:x})]})};var E=r(17806),B=r(38034),q=r(91431),M=r(75925);let I="demedz"===x.YY.MMyM,k=(0,i.Ng)(function(e){var a;return{status:e.account.status,email:null==(a=e.user.data.email)?void 0:a.trim(),name:"".concat(e.user.data.firstname," ").concat(e.user.data.lastname).trim()}},{AccountMsg:y.nl})(e=>{var a,r;let{t:l}=(0,h.B)(),i={name:null!=(a=e.name)?a:"",email:null!=(r=e.email)?r:"",enquiry:"",message:""},[d,n]=(0,E.Y)(),{recaptchaRef:o,executeRecaptcha:u,resetRecaptcha:c}=(0,B.x)(),[m,v]=(0,t.useState)(!1),j=d===g.t3.Success,p=d===g.t3.Error,y=d===g.t3.Pending||m,N=e=>{if(!e)return l(x.Pd.ValidationRequired)};return(0,s.jsxs)("div",{children:[!j&&(0,s.jsx)(f.lV,{initialValues:i,onSubmit:async e=>{v(!0);try{let a=await u();if(!a)return;n({...e,recaptchaToken:a,accountSection:!0})}catch(e){console.error("reCAPTCHA error:",e)}finally{c(),v(!1)}},"data-test-id":"CustomerContactUsForm",children:a=>{let{formState:r}=a;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h4",{children:l(x.Pd.EmailUs)}),(0,s.jsxs)("fieldset",{children:[(0,s.jsx)(C.p,{label:l(x.Pd.FullName),field:"name",validate:N,validateOnBlur:!0,disabled:!!e.name,required:!0,hasError:r.errors.name||void 0}),(0,s.jsx)(C.p,{label:l(x.Pd.EmailAddress),field:"email",validate:e=>e?e.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i)?void 0:l(x.Pd.ValidationEmail):l(x.Pd.ValidationRequired),validateOnBlur:!0,disabled:!!e.email,required:!0,hasError:r.errors.email||void 0}),(0,s.jsx)(C.p,{label:l(x.Pd.ContactSubject),field:"enquiry",validate:N,validateOnBlur:!0,required:!0,hasError:r.errors.enquiry||void 0}),(0,s.jsx)(C.p,{label:l(x.Pd.OrderId),required:!0,field:"orderId",validate:(0,q.Xc)()}),(0,s.jsx)(M.B,{label:l(x.Pd.SupportCategory),field:"supportCategory",validate:(0,q.Xc)(),initialValue:"orderStatus",items:[{label:l(x.Pd.OrderStatus),value:"orderStatus"},{label:l(x.Pd.MissingOrder),value:"missingOrder"}
1,{label:l(x.Pd.CancelMyOrder),value:"cancelMyOrder"},{label:l(x.Pd.Refunds),value:"refunds"},{label:l(x.Pd.Subscriptions),value:"subscriptions"},{label:l(x.Pd.IssueWithMyAccount),value:"issueWithMyAccount"},{label:l(x.Pd.FailedDelivery),value:"failedDelivery"},{label:l(x.Pd.AwaitingDelivery),value:"awaitingDelivery"},...I?[]:[{label:l(x.Pd.IOrderedMaunjaro),value:"iOrderedMaunjaro"},{label:l(x.Pd.IOrderedInhalers),value:"iOrderedInhalers"}]]}),(0,s.jsx)(S,{label:l(x.Pd.ContactMessage),field:"message",validate:N,validateOnBlur:!0,required:!0,hasError:r.errors.message||void 0})]}),(0,s.jsx)(P.A,{ref:o,size:"invisible",sitekey:"6Ld5i08sAAAAAH-I3QmPkKZhlxdPHhk0gExurPqu"}),(0,s.jsx)(_.b,{text:l(x.Pd.Submit),status:y?g.t3.Pending:d})]})}}),j&&(0,s.jsx)("div",{className:b().information,children:(0,s.jsx)("p",{children:l(x.Pd.ContactSuccess)})}),p&&(0,s.jsx)("div",{className:b().information,children:(0,s.jsx)("p",{children:l(x.Pd.ContactError)})})]})});var w=r(2764),U=r(80143),V=r.n(U),F=r(36469);let T=(0,i.Ng)(function(e){var a,r,l,s;return{firstname:null!=(l=null==(r=e.user)||null==(a=r.data)?void 0:a.firstname)?l:null,user:null!=(s=e.user)?s:null,isSignedIn:e.user.session===d._T.SignedIn}})(()=>{let{t:e}=(0,h.B)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.bV,{title:e(x.tV.SeoContactUs)}),(0,s.jsxs)("div",{className:V().root,children:[(0,s.jsx)("div",{className:V().cardsContainer,children:(0,s.jsx)(w.g,{className:u()(V().card,V().text),showBorder:!1,children:"demedz"===x.YY.PX?(0,s.jsx)("h4",{children:e(F.k.SupportEmail)}):(0,s.jsx)(j,{})})}),(0,s.jsx)("div",{className:V().text,children:(0,s.jsx)(k,{})})]})]})});T.Layout=l.Ay;var L=!0;let R=T},73083:e=>{e.exports={information:"EmailUs_information__5zfn3"}},80143:e=>{e.exports={root:"ContactUs_root__RsxLi",cardsContainer:"ContactUs_cardsContainer__oYpFU",text:"ContactUs_text__GNLag",card:"ContactUs_card__xtm8s"}},88961:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/contact-us",function(){return r(69516)}])}},e=>{e.O(0,[7978,8242,4440,7574,3977,2347,8916,1618,7925,7763,2151,9581,4950,3970,7573,2587,636,6593,8792],()=>e(e.s=88961)),_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.