"use strict";exports.id=9243,exports.ids=[9243],exports.modules={69243:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>SubscribeToNewsletter});var l=r(20997),a=r(10365),n=r(52324),i=r(11377),o=e([a,n]);function SubscribeToNewsletter({title:e,description:t}){let{t:r}=(0,i.useTranslation)("common"),{mutate:s,isLoading:o,isSubscribed:c}=(0,n.m)();return(0,l.jsxs)("div",{className:"flex flex-col",children:[e?l.jsx("h3",{className:"text-heading mt-3 mb-7 text-xl font-semibold",children:r(e)}):"",t?l.jsx("p",{className:"text-heading mb-7 text-sm",children:r(t)}):"",l.jsx(a.Z,{onSubmit:function({email:e}){s({email:e})},loading:o,success:c})]})}[a,n]=o.then?(await o)():o,s()}catch(e){s(e)}})},16270:(e,t,r)=>{r.d(t,{j:()=>SendIcon});var s=r(20997);let SendIcon=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16.045",height:"16",viewBox:"0 0 16.045 16",...e,children:s.jsx("path",{id:"send",d:"M17.633,9.293,3.284,2.079a.849.849,0,0,0-1.2,1.042l2,5.371,9.138,1.523L4.086,11.538l-2,5.371a.812.812,0,0,0,1.2.962l14.349-7.214A.762.762,0,0,0,17.633,9.293Z",transform:"translate(-2.009 -1.994)",fill:"currentColor"})})},10365:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>SubscriptionForm});var l=r(20997),a=r(11377),n=r(16270),i=r(66644),o=r(75609),c=r(16974),d=e([i,c]);[i,c]=d.then?(await d)():d;let m=o.object().shape({email:o.string().email("error-email-format").required("error-email-required")});function SubscriptionForm({onSubmit:e,loading:t,success:r}){let{t:s}=(0,a.useTranslation)("common");return l.jsx("div",{className:"flex flex-col",children:l.jsx(i.l,{onSubmit:e,validationSchema:m,children:({register:e,formState:{errors:a}})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative w-full rounded border border-gray-200 bg-gray-50 ltr:pr-11 rtl:pl-11",children:[l.jsx(c.Z,{...e("email"),type:"email",placeholder:s("contact-us-email-field"),inputClassName:"border-0 dark:focus:outline-none focus:outline-none focus:ring-0 ring-0",label:""}),l.jsx("button",{className:"absolute top-1/2 -mt-2 ltr:right-3 rtl:left-3",children:t?l.jsx("span",{className:"text-accent flex h-5 w-5 shrink-0 animate-spin rounded-full border-[3px] border-t-[3px] border-gray-300 ltr:ml-2 rtl:mr-2",style:{borderTopColor:"currentcolor"}}):l.jsx(n.j,{className:"hover:text-accent text-gray-500 transition-colors"})})]}),a.email?.message&&l.jsx("span",{role:"alert",className:"block pt-2 text-xs text-warning",children:s(a.email?.message)}),!t&&r&&l.jsx("div",{className:"mt-1 text-[13px]",children:l.jsx("span",{className:"text-accent",children:s("text-subscribe-successfully")})})]})})})}s()}catch(e){s(e)}})}};