"use strict";exports.id=4996,exports.ids=[4996],exports.modules={75088:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.d(s,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r=t(20997),i=t(16974),n=t(13330),c=t(60802),l=t(29743),o=t(66644),u=t(11377),m=e([i,o]);[i,o]=m.then?(await m)():m;let __WEBPACK_DEFAULT_EXPORT__=({onSubmit:e,reset:s,isLoading:t})=>{let{t:a}=(0,u.useTranslation)("common");return r.jsx(o.l,{onSubmit:e,validationSchema:l.n,resetFields:s,children:({register:e,formState:{errors:s}})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("fieldset",{className:"mb-6 grid gap-5 sm:grid-cols-2",children:[r.jsx(i.Z,{label:a("contact-us-name-field"),...e("name"),error:s.name?.message}),r.jsx(i.Z,{label:a("contact-us-email-field"),type:"email",...e("email"),error:s.email?.message}),r.jsx(i.Z,{label:a("contact-us-subject-field"),...e("subject"),error:s.subject?.message,className:"sm:col-span-2"}),r.jsx(n.Z,{label:a("contact-us-message-field"),...e("description"),error:s.description?.message,className:"sm:col-span-2"})]}),r.jsx(c.Z,{type:"submit",className:"mb-1 w-full flex-1 sm:flex-none md:w-auto",isLoading:t,disabled:t,children:a("contact-us-submit-button")})]})})};a()}catch(e){a(e)}})},29743:(e,s,t)=>{t.d(s,{n:()=>r});var a=t(75609);let r=a.object().shape({name:a.string().required("Name is required."),email:a.string().email().required("Email is required."),subject:a.string().required("Subject is required."),description:a.string().required("Description is required.")})},88167:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.d(s,{$:()=>useContactUs});var r=t(61175),i=t(54574),n=t(86201),c=e([i,n]);function useContactUs(){let{mutate:e,isLoading:s,isSuccess:t}=(0,r.useMutation)(i.Z.settings.contactUs,{onSuccess:()=>{n.default.success("Successfully sent your message")},onError:e=>{n.default.error("Ops! something went wrong")}});return{mutate:e,isLoading:s,isSuccess:t}}[i,n]=c.then?(await c)():c,a()}catch(e){a(e)}})}};