import{_ as w}from"./DApqQ8hH.js";import{_ as x}from"./Dh2Iwyy5.js";import{M as q,u as f,N as B,O as c,f as _,l as L,o as g,c as T,a as s,t as h,b as o,w as P,m as b,n as V,P as u,Q as j,R as E,S as I,T as N,q as A,h as U}from"./C_yW9YRN.js";import"./CiGiHfhf.js";import"./iQ7bPJE9.js";const C={class:"container min-h-fit pb-11"},D={class:"lg:pe-20 space-y-5 lg:ps-9 z-10"},G={class:"text-4xl lg:text-5xl lg:leading-[3.5rem] lg:mt-20 2xl:text-7 font-bold"},H={class:"mb-5"},z={class:"flex items-center justify-between"},k=["disabled"],Y={__name:"GeneralAbout",props:{items:{required:!1},options:{required:!1},id:{required:!1},name:{required:!1},placeholder:{required:!1}},setup(v){const r=q(),p=A(),a=f(),m=B({full_name:c().required(a.t("FORMS.Validation.name")),email:c().email(a.t("FORMS.Validation.validEmail")).required(a.t("FORMS.Validation.email")),phone:c().required(a.t("FORMS.Validation.phone")),subject:c().required(a.t("FORMS.Validation.subject")),message:c().required(a.t("FORMS.Validation.message"))}),d=_(null),n=_(!1);function O(e,l){n.value=!0;const t=new FormData;t.append("email",e.email),t.append("name",e.full_name),t.append("phone",e.phone),t.append("content",e.message),t.append("phone_code",d.value.phone_code),t.append("subject",e.subject),$fetch("contact",{method:"POST",body:t,baseURL:p.public.baseURL,headers:{"Accept-Language":a.locale.value}}).then(i=>{n.value=!1,l.resetForm(),r.success(i.message,{timeout:2e3,position:a.locale.value=="en"?u.BOTTOM_RIGHT:u.BOTTOM_LEFT})}).catch(i=>{n.value=!1,r.error(i.response._data.message,{timeout:2e3,position:a.locale.value=="en"?u.BOTTOM_RIGHT:u.BOTTOM_LEFT})})}function S(e,l){d.value=e}const R=_([]);function M(){$fetch("service",{method:"GET",baseURL:p.public.baseURL,headers:{"Accept-Language":a.locale.value}}).then(e=>R.value=e.data)}return L(()=>M()),(e,l)=>{const t=j,i=E,F=I,$=N;return g(),T("div",C,[s("div",{class:V(["form_wrapper",e.$i18n.locale])},[s("div",D,[s("h2",G,h(e.$t("TITLES.readyToGetStarted")),1),s("p",H,h(e.$t("TITLES.letBuildBestDigitalSolutionsForYourBusinessNow")),1)]),o($,{as:"div",onSubmit:O,"validation-schema":b(m),class:"bg-white bg-opacity-10 z-10 space-y-2 border border-opacity-10 border-white shadow-md rounded-[25px] px-8 pt-6 pb-8 mb-4"},{default:P(()=>[s("form",null,[o(t,{id:"full_name",name:"full_name",placeholder:e.$t("FORMS.Placeholders.fullName")},null,8,["placeholder"]),o(t,{id:"email_address",name:"email",type:"email",placeholder:e.$t("FORMS.Placeholders.yourEmail")},null,8,["placeholder"]),o(i,{onCode_change:l[0]||(l[0]=y=>S(y)),placeholder:e.$t("FORMS.Placeholders.yourPhone")},null,8,["placeholder"]),o(t,{id:"subject",name:"subject",type:"text",placeholder:e.$t("FORMS.Placeholders.subject")},null,8,["placeholder"]),o(F,{rows:"4",id:"message",name:"message",placeholder:e.$t("FORMS.Placeholders.TypeYourMessageHere")},null,8,["placeholder"]),s("div",z,[s("button",{disabled:b(n),class:"bg-blue-500 border border-white rounded-[25px] px-[30px] py-3 hover:bg-blue-700 text-white focus:outline-none focus:shadow-outline hover:bg-white hover:text-[#184aad] m-auto",type:"submit"},h(e.$t("BUTTONS.sendRequest")),9,k)])])]),_:1},8,["validation-schema"])],2)])}}},Z={__name:"index",setup(v){const{t:r}=f();return U({title:r("NAV.contact")}),(p,a)=>{const m=w,d=x,n=Y;return g(),T("div",null,[o(m,{class:"mt-11"}),o(d),o(n)])}}};export{Z as default};
