PageSourceSearch

https://www.mhaifafc.com/_next/static/chunks/app/contact-us/page-82199ee73156e07e.js

js mhaifafc.com collected 2026-10-02 19:04:47 UTC 14,407 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="59cad3d2-cc8e-455b-9ac6-aa48fb9dd976",e._sentryDebugIdIdentifier="sentry-dbid-59cad3d2-cc8e-455b-9ac6-aa48fb9dd976")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5746],{1898:function(e,l,t){Promise.resolve().then(t.t.bind(t,65878,23)),Promise.resolve().then(t.t.bind(t,72972,23)),Promise.resolve().then(t.bind(t,51838)),Promise.resolve().then(t.bind(t,70869)),Promise.resolve().then(t.bind(t,54050)),Promise.resolve().then(t.bind(t,98639)),Promise.resolve().then(t.bind(t,1458)),Promise.resolve().then(t.bind(t,60698)),Promise.resolve().then(t.bind(t,41673)),Promise.resolve().then(t.bind(t,20604)),Promise.resolve().then(t.bind(t,42549)),Promise.resolve().then(t.bind(t,42150)),Promise.resolve().then(t.bind(t,66808)),Promise.resolve().then(t.bind(t,77571)),Promise.resolve().then(t.bind(t,9461)),Promise.resolve().then(t.bind(t,19710)),Promise.resolve().then(t.bind(t,83194)),Promise.resolve().then(t.bind(t,96886)),Promise.resolve().then(t.bind(t,16699)),Promise.resolve().then(t.bind(t,90594)),Promise.resolve().then(t.bind(t,47477)),Promise.resolve().then(t.bind(t,85939)),Promise.resolve().then(t.bind(t,73734)),Promise.resolve().then(t.bind(t,60811)),Promise.resolve().then(t.bind(t,26866)),Promise.resolve().then(t.bind(t,38270))},26866:function(e,l,t){"use strict";var n=t(57437),o=t(67844),a=t(78489),r=t(54365),s=t(63433),i=t(2265),d=t(60811);l.default=e=>{let{url:l,customClass:t,displayMuteButton:c=!1,videoControls:u=!1,autoPlay:x=!1,loader:m=!1}=e,f=(0,i.useRef)(null),h=(0,s.Y)(f,{amount:.6}),[v,b]=(0,i.useState)(!0),[p,g]=(0,i.useState)(!0),j=()=>{g(!1)};(0,i.useEffect)(()=>{f.current&&(f.current.readyState>=3?g(!1):g(!0))},[l]);let w=(0,a.O)(l);return(0,n.jsxs)("div",{className:(0,r.Z)("h-full w-full",m&&"relative"),children:[(0,n.jsx)("video",{ref:f,loop:!0,playsInline:!0,muted:!h||v,autoPlay:x,controls:u,className:(0,r.Z)("object-cover object-center w-full",t),src:l?w:"",onLoadedData:j,onError:j,children:(0,n.jsx)("track",{kind:"captions"})}),c&&(0,n.jsx)("div",{className:"absolute top-12 mt-8 text-white left-0 pe-4 z-10",onClick:()=>{b(!v)},children:v?(0,n.jsx)(o.JB,{stroke:"white"}):(0,n.jsx)(o.Ux,{stroke:"white"})}),m&&p&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)(d.StarsLoader,{})})]})}},38270:function(e,l,t){"use strict";t.d(l,{default:function(){return C}});var n=t(57437),o=t(40628),a=t(2265),r=t(29501),s=e=>{let{label:l,required:t}=e;return(0,n.jsxs)(n.Fragment,{children:[l,t&&(0,n.jsx)("span",{className:"text-requiredGoldStar",children:" *"})]})},i=t(54365),d=t(27648),c=t(90464),u=t(56632),x=t(45689),m=t(86727),f=t(46414),h=t(58584),v=t(70445),b=t(67844),p=t(8461),g=t(97048),j=e=>{var l,t,a;let{isModalOpen:r,setIsSuccessModalOpen:s}=e,c=(0,o.g)().dictionary;return(0,n.jsx)(p.Z,{open:r,footer:null,width:g.tq?380:568,mask:!0,centered:!0,keyboard:!0,closeIcon:(0,n.jsx)(b.h5,{className:"h-5 w=5",viewBox:"0 0 20 20"}),onCancel:e=>{e.stopPropagation(),s(!1)},children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-[330px] md:h-[410px] bg-gradient-to-br from-modalTopGreen via-modalCenterGreen to-modalBottomGreen rounded-lg gap-y-3 md:gap-y-6 shadow-[4px_4px_8px_0_rgba(0,0,0,0.25)]",children:[g.tq?(0,n.jsx)(b.K3,{className:"w-[69px] h-[64px]",viewBox:(0,i.Z)(g.tq?"0 0 69 64":"0 0 90 88"),fill:"none"}):(0,n.jsx)(b.XZ,{className:"w-[90px] h-[88px]",viewBox:"0 0 90 88"}),(0,n.jsx)(f.Z,{content:null==c?void 0:null===(l=c.contactUsPage)||void 0===l?void 0:l.successModalTitle,customClass:"font-medium text-white text-4xl md:text-[64px] whitespace-pre-line [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)]"}),(0,n.jsx)(f.Z,{content:null==c?void 0:null===(t=c.contactUsPage)||void 0===t?void 0:t.successModalMessage,customClass:"font-regular text-white text-xl md:text-2xl whitespace-pre-line text-center pb-4"}),(0,n.jsx)(d.default,{href:v.Z5.HOME,className:"bg-secondary flex text-white  items-center justify-center border  border-secondary rounded-md drop-shadow-lg text-lg md:text-2xl px-2 md:px-5 py-1 md:py-3 md:w-full max-w-[220px]",children:null==c?void 0:null===(a=c.routes)||void 0===a?void 0:a.backToHomePage})]})})},w=t(33145),y=t(18740),P=e=>{var l,t,a;let{isModalOpen:r,setIsFailureModalOpen:s}=e,i=(0,o.g)().dictionary;
1return(0,n.jsx)(p.Z,{open:r,footer:null,width:g.tq?360:435,mask:!0,centered:!0,keyboard:!0,closeIcon:(0,n.jsx)(b.KU,{className:"h-5 w=5",viewBox:"0 0 20 20"}),onCancel:e=>{e.stopPropagation(),s(!1)},children:(0,n.jsxs)("div",{className:"flex flex-col items-start justify-start rounded-lg relative h-[260px] px-6 pt-5 pb-8 bg-white shadow-[4px_4px_8px_0_rgba(0,0,0,0.25)]",children:[(0,n.jsx)(f.Z,{content:null==i?void 0:null===(l=i.contactUsPage)||void 0===l?void 0:l.failureModalTitle,customClass:"font-regular text-[32px] "}),(0,n.jsx)(f.Z,{content:null==i?void 0:null===(t=i.contactUsPage)||void 0===t?void 0:t.failureModalMessage,customClass:"font-regular text-base md:text-lg whitespace-pre-line leading-[26px] md:leading-[34px] pb-10"}),(0,n.jsx)(d.default,{href:v.Z5.HOME,className:"bg-secondary flex text-white  items-center justify-center border  border-secondary rounded-md drop-shadow-lg text-lg md:text-2xl px-7 md:px-5 py-4 md:py-3 md:w-full max-w-[220px]",children:null==i?void 0:null===(a=i.routes)||void 0===a?void 0:a.backToHomePage}),(0,n.jsx)(w.default,{src:y.C6.FailureModalRedCard.src,alt:y.C6.FailureModalRedCard.alt,width:y.C6.FailureModalRedCard.width,height:y.C6.FailureModalRedCard.height,className:"absolute left-0 md:left-2.5 bottom-0"})]})})},N=t(98895),C=e=>{var l,t,b,p,g,w,y,C,I,k,M,_,S,U,q;let{contactSubjects:Z,departments:F,privacyPolicySlug:L}=e,{dictionary:B}=(0,o.g)(),[O,E]=(0,a.useState)(!1),[T,A]=(0,a.useState)(!1),[D,V]=(0,a.useState)([]),z=()=>{E(!0)},Q=()=>{A(!0)},{handleSubmit:H,reset:R,control:G,formState:{isValid:K,isDirty:J,isSubmitting:$,errors:X}}=(0,r.cI)({mode:"all"}),Y=async e=>{let l=F.find(l=>(null==l?void 0:l.item)===(null==e?void 0:e.department)),t=(null==l?void 0:l.departmentEmail)||"[email protected]",n={...e,departmentEmail:t};try{(await (0,h.a)("".concat(v.MF.CONTACT_US),{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},mode:"cors",body:JSON.stringify(n)})).ok||Q(),z(),R()}catch(e){Q()}},W=(0,r.qo)({control:G,name:"message"}),ee=W?W.length:null===m.Iw||void 0===m.Iw?void 0:m.Iw.zeroChars,el=e=>{let l=F.find(l=>l.item===e);if(l){var t,n;let e=null==l?void 0:l.subjects.map(e=>null==e?void 0:e.text);e.includes(null==B?void 0:null===(t=B.general)||void 0===t?void 0:t.other)||e.push(null==B?void 0:null===(n=B.general)||void 0===n?void 0:n.other),V(e)}else V([])};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{onSubmit:H(Y),noValidate:!0,className:"flex flex-col w-full items-start justify-start gap-y-2.5 pb-8",children:[(0,n.jsx)(f.Z,{content:null==B?void 0:null===(l=B.contactUsPage)||void 0===l?void 0:l.leaveMessage,customClass:"font-regular pb-6 pt-8 text-2xl md:text-[32px]"}),(0,n.jsxs)("div",{className:"flex flex-row gap-x-2.5 w-full",children:[(0,n.jsxs)("div",{className:"flex flex-col w-full",children:[(0,n.jsx)("label",{htmlFor:"firstName",children:(0,n.jsx)(s,{label:null==B?void 0:null===(t=B.contactUsPage)||void 0===t?void 0:t.firstName,required:!0})}),(0,n.jsx)(r.Qr,{name:"firstName",rules:{required:!0},control:G,render:e=>{let{field:l}=e;return(0,n.jsx)(u.Z,{...l,onChange:e=>{l.onChange(e)},maxLength:null===m.Iw||void 0===m.Iw?void 0:m.Iw.namesMaxLength,style:{backgroundColor:"#f8f8ff",height:"40px",fontSize:"16px"}})},defaultValue:m.v6})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full",children:[(0,n.jsx)("label",{htmlFor:"lastName",children:(0,n.jsx)(s,{label:null==B?void 0:null===(b=B.contactUsPage)||void 0===b?void 0:b.lastName,required:!0})}),(0,n.jsx)(r.Qr,{name:"lastName",rules:{required:!0},control:G,render:e=>{let{field:l}=e;return(0,n.jsx)(u.Z,{...l,onChange:e=>{l.onChange(e)},maxLength:null===m.Iw||void 0===m.Iw?void 0:m.Iw.namesMaxLength,style:{backgroundColor:"#f8f8ff",height:"40px",fontSize:"16px"}})},defaultValue:m.v6})]})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full md:flex-row md: gap-2.5",children:[(0,n.jsxs)("div",{className:"flex flex-col w-full",children:[(0,n.jsx)("label",{htmlFor:"email",children:(0,n.jsx)(s,{label:null==B?void 0:null===(p=B.contactUsPage)||void 0===p?void 0:p.email,required:!0})}),(0,n.jsx)(r.Qr,{name:"email",rules:{required:!0,pattern:/^\S+@\S+\.\S+$/},control:G,render:e=>{let{field:l}=e;return(0,n.jsx)(u.Z,{...l,type:"email",onChange:e=>{l.onChange(e)},status:X.email&&"error",maxLength:null===m.Iw||void 0===m.Iw?void 0:m.Iw.emailMaxLength,style:{backgroundColor:"#f8f8ff",height:"40px",fontSize:"16px"}})},defaultValue:m.v6})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full gap-",children:[(0,n.jsx)("label",{htmlFor:"phoneNumber",children:(0,n.jsx)(s,{label:null==B?void 0:null===(g=B.contactUsPage)||void 0===g?void 0:g.phoneNumber,required:!1})}),(0,n.jsx)(r.Qr,{name:"phoneNumber",rules:{pattern:/^05\d{8}$/},control:G,render:e=>{var l;let{field:t}=e;
1return(0,n.jsx)(u.Z,{...t,type:"tel",onChange:e=>{t.onChange(e)},dir:"rtl",placeholder:null==B?void 0:null===(l=B.contactUsPage)||void 0===l?void 0:l.phonePlaceHolder,status:X.phoneNumber&&"error",maxLength:null===m.Iw||void 0===m.Iw?void 0:m.Iw.phoneNumberMaxLength,style:{backgroundColor:"#f8f8ff",height:"40px",fontSize:"16px"}})},defaultValue:m.v6})]})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full md:flex-row gap-2.5",children:[(0,n.jsxs)("div",{className:"flex flex-col w-full",children:[(0,n.jsx)("label",{htmlFor:"department",children:(0,n.jsx)(s,{label:null==B?void 0:null===(w=B.contactUsPage)||void 0===w?void 0:w.department,required:!0})}),(0,n.jsx)(r.Qr,{name:"department",rules:{required:!0},control:G,render:e=>{let{field:l}=e;return(0,n.jsx)(x.default,{...l,dropdownStyle:{background:"#f8f8ff"},popupClassName:"text-regular text-base",options:null==F?void 0:F.map(e=>({value:null==e?void 0:e.item,label:null==e?void 0:e.item,key:(0,N.IA)()})),onChange:e=>{l.onChange(e),l.onBlur(),el(e)},className:"!h-10 !bg-contactUsInputBackground"})},defaultValue:m.v6})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full",children:[(0,n.jsx)("label",{htmlFor:"subject",children:(0,n.jsx)(s,{label:null==B?void 0:null===(y=B.contactUsPage)||void 0===y?void 0:y.subject,required:!0})}),(0,n.jsx)(r.Qr,{name:"subject",rules:{required:!0},control:G,render:e=>{let{field:l}=e;return(0,n.jsx)(x.default,{...l,dropdownStyle:{background:"#f8f8ff"},popupClassName:"text-regular text-base",options:null==D?void 0:D.map(e=>({value:e,label:e,key:(0,N.IA)()})),onChange:e=>{l.onChange(e),l.onBlur()},className:"!h-10 !bg-contactUsInputBackground"})},defaultValue:m.v6})]})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full mt-2",children:[(0,n.jsx)("label",{htmlFor:"message",children:(0,n.jsx)(s,{label:null==B?void 0:null===(C=B.contactUsPage)||void 0===C?void 0:C.message,required:!0})}),(0,n.jsx)(r.Qr,{name:"message",rules:{required:!0},control:G,render:e=>{let{field:l}=e;return(0,n.jsx)(c.Z,{className:"!h-[245px] !pt-1 !pb-1",...l,onChange:e=>{l.onChange(e)},maxLength:null===m.Iw||void 0===m.Iw?void 0:m.Iw.messageMaxLength,style:{backgroundColor:"#f8f8ff"}})},defaultValue:m.v6}),(0,n.jsx)(f.Z,{content:"".concat(ee,"/").concat(m.Iw.messageMaxLength),customClass:"text-grayInput pt-1"})]}),(0,n.jsx)("div",{children:(0,n.jsxs)("label",{htmlFor:"disclaimer",children:[(0,n.jsx)(s,{label:null==B?void 0:null===(k=B.contactUsPage)||void 0===k?void 0:null===(I=k.formDisclaimer)||void 0===I?void 0:I.prePolicy,required:!1}),(0,n.jsx)(d.default,{href:"/".concat(L),target:"_blank",className:"w-fit text-unvisitedLinkBlue hover:text-hoveredLinkBlue visited:text-visitedLinkPurple underline underline-offset-2",children:null==B?void 0:null===(_=B.contactUsPage)||void 0===_?void 0:null===(M=_.formDisclaimer)||void 0===M?void 0:M.privacyPolicy}),(0,n.jsx)(s,{label:null==B?void 0:null===(U=B.contactUsPage)||void 0===U?void 0:null===(S=U.formDisclaimer)||void 0===S?void 0:S.postPolicy,required:!1})]})}),(0,n.jsx)("button",{type:"submit",className:(0,i.Z)("w-[120px] h-[50px] font-medium text-white text-[18px]",K&&J&&!$?"active-form-button":"disabled-form-button"),disabled:!K||!J||$,children:null==B?void 0:null===(q=B.contactUsPage)||void 0===q?void 0:q.button})]}),(0,n.jsx)(j,{isModalOpen:O,setIsSuccessModalOpen:E}),(0,n.jsx)(P,{isModalOpen:T,setIsFailureModalOpen:A})]})}},98895:function(e,l,t){"use strict";t.d(l,{ED:function(){return o},Gj:function(){return a},IA:function(){return n}}),t(77398);let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&",t="";for(let n=0;n<e;n++)t+=l.charAt(Math.floor(Math.random()*l.length));return t},o=e=>{let[l,t]=e.split("/").map(e=>e.trim());return"".concat(t," / ").concat(l)},a=e=>{let l=e.split(" ");return l.length>1?l.slice(1).join(" "):""}},58584:function(e,l,t){"use strict";t.d(l,{a:function(){return r}});var n=t(99376),o=t(31522),a=t(86727);let r=async(e,l)=>{try{let r=await (0,o.A)(),s=e.includes("?")?"&":"?",i=new URL("".concat("https://api.mhaifafc.com/api/content").concat(e).concat(s,"app=").concat(a.xw,"&lang=").concat(r)),d=new Headers({...null==l?void 0:l.headers,Authorization:"Bearer ".concat("49a2b7bad700d13e43ebebea5f1bccb1327c49b1e5a18bbac48dbe5767a7968fd48d59ef13a09684d1d072c7978abac65372a911d3e09af6ce2c5bf46453a47c1dd7cbc9de3a5fe19ecfe53677d71ffecd67ba0b34cf0b7ae791184981f25c315b4bd41dc8abeadf2ec951d34a6fe0ec879ccb410ce8a672b51dc86eba210d66")}),c={...l,headers:d,next:(null==l?void 0:l.next)||{revalidate:a.Kw.tenMinutes}},u=await fetch(i.toString(),c);if(u.ok)return u;{let e=await u.json();if("error"in e){var t;if((null===(t=e.error)||void 0===t?void 0:t.status)===404)(0,n.notFound)();else throw Error("API Error - status: ".concat(u.status,", message: ").concat(e.message))}return e}}catch(e){throw e}}}},function(e){e.O(0,[7326,4705,6990,5878,8784,2972,1178,8306,7048,9021,2742,7104,1280,7019,7826,5689,7194,4722,661,3734,991,2971,8456,1744],function(){return e(e.s=1898)}),_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.