import{_ as F,K as U,u as V,r as B,c as d,o as c,a as t,b as o,t as l,d as m,v as u,D as j,F as q,h as E,f as k,i as M,S as $,B as I}from"./app-L4cdeQDO.js";/* empty css            */const T="/build/assets/support--DLg0v8R.png",L={class:"p-0"},W={class:"container"},z={class:"card shadow-sm border-0 rounded-4 overflow-hidden bg-white rounded-4 my-4"},A={class:"row g-0"},K={class:"col-lg-7 d-flex flex-column justify-content-center align-items-center",style:{height:"calc(100vh - 170px)"}},R={class:"mb-4 text-center"},Y=["src"],G={class:"card border p-4 rounded-4 w-75"},H={class:"mb-3 text-center"},J={class:"text-muted text-center small"},O={action:"#!"},P={class:"row g-3"},Q={class:"col-6 form-floating"},X={for:"firstName"},Z={class:"col-6 form-floating"},tt={for:"email"},et={class:"col-12 form-floating"},st={for:"subject"},ot={class:"col-12 form-floating"},at={for:"message"},lt={class:"col-12 mt-5 text-center"},nt={class:"text-center mt-4"},rt={key:0,class:"text-muted mb-3 small"},it={class:"d-flex justify-content-center flex-wrap gap-2"},dt=["href"],ct={class:"col-lg-5 d-none d-lg-block position-relative"},mt=["href"],ut={class:"small fw-semibold text-dark"},pt={class:"position-absolute bottom-0 start-50 translate-middle-x bg-white shadow-sm rounded-4 p-3 mb-4 text-center",style:{width:"250px"}},_t={class:"fw-bold mb-1"},ht={class:"small text-muted mb-0"},bt={__name:"ContactUs",setup(ft){const{t:D}=U(),r=V();let n=B({name:"",email:"",subject:"",message:""});const N=()=>{n.value={name:"",email:"",subject:"",message:""}},S=async()=>{var a,s;try{(await M.post("/contact/submit",n.value,{headers:{"Content-Type":"application/json",Accept:"application/json"}})).status===201&&($.fire({position:"top-end",icon:"success",title:D("Your inquiry has been submitted"),showConfirmButton:!1,timer:1500,customClass:{title:"swal-title"}}),N())}catch(i){$.fire({icon:"error",title:`Error submitting form:, ${(s=(a=i.response)==null?void 0:a.data)==null?void 0:s.message}`,showConfirmButton:!1,timer:3500,customClass:{title:"swal-title"}}),console.error("Error submitting form:",i)}};return(a,s)=>{var i,p,_,h,b,f,g,w,v,y,x,C;return c(),d("section",L,[t("div",W,[t("div",z,[t("div",A,[t("div",K,[t("div",R,[t("img",{src:(p=(i=o(r))==null?void 0:i.masterData)==null?void 0:p.logo,width:"220",height:"auto"},null,8,Y)]),t("div",G,[t("h4",H,l(a.$t("Connect with us"))+"!!",1),t("p",J,l(a.$t("We’d love to hear from you")),1),t("form",O,[t("div",P,[t("div",Q,[m(t("input",{type:"text",class:"form-control",id:"firstName",placeholder:"Full Name","onUpdate:modelValue":s[0]||(s[0]=e=>o(n).name=e),required:""},null,512),[[u,o(n).name]]),t("label",X,l(a.$t("Full Name"))+" *",1)]),t("div",Z,[m(t("input",{type:"email",class:"form-control",id:"email",placeholder:"Email","onUpdate:modelValue":s[1]||(s[1]=e=>o(n).email=e),required:""},null,512),[[u,o(n).email]]),t("label",tt,l(a.$t("Email"))+" *",1)]),t("div",et,[m(t("input",{type:"text",class:"form-control",id:"subject",placeholder:"Subject","onUpdate:modelValue":s[2]||(s[2]=e=>o(n).subject=e),required:""},null,512),[[u,o(n).subject]]),t("label",st,l(a.$t("Subject"))+" *",1)]),t("div",ot,[m(t("textarea",{class:"form-control",id:"message",placeholder:"Message",rows:"5","onUpdate:modelValue":s[3]||(s[3]=e=>o(n).message=e),required:""},null,512),[[u,o(n).message]]),t("label",at,l(a.$t("Message"))+" *",1)]),t("div",lt,[t("button",{type:"button",class:"btn btn-outline-primary btn-lg px-5 py-2 shadow-sm",onClick:S},l(a.$t("Connect Now")),1)])])]),t("div",nt,[((h=(_=o(r))==null?void 0:_.masterData)==null?void 0:h.footer_social_icons)!=""?(c(),d("p",rt,l(a.$t("Follow us on social media")),1)):j("",!0),t("div",it,[(c(!0),d(q,null,E((f=(b=o(r))==null?void 0:b.masterData)==null?void 0:f.footer_social_icons,e=>(c(),d("a",{class:"btn btn-outline-dark rounded-pill btn-sm px-3",key:e,href:e.url,target:"_blank"},[t("i",{class:I(e==null?void 0:e.icon)},null,2),k(" "+l(e==null?void 0:e.title),1)],8,dt))),128))])])])]),t("div",ct,[s[5]||(s[5]=t("img",{src:T,class:"w-100 h-100 object-fit-contain",alt:"Contact Us Image"},null,-1)),(w=(g=o(r))==null?void 0:g.masterData)!=null&&w.whatsapp_support_number?(c(),d("a",{key:0,href:(y=(v=o(r))==null?void 0:v.masterData)==null?void 0:y.whatsapp_support_number,target:"_blank",class:"position-absolute top-3 start-50 border border-primary translate-middle-x bg-white shadow-sm rounded-pill px-3 py-1 mt-4 text-decoration-none"},[t("span",ut,[s[4]||(s[4]=t("i",{class:"bi bi-telephone-plus me-1"},null,-1)),k(" "+l((C=(x=o(r))==null?void 0:x.masterData)==null?void 0:C.whatsapp_contact_us),1)])],8,mt)):j("",!0),t("div",pt,[t("h6",_t,l(a.$t("Customer Support")),1),t("p",ht,l(a.$t("We reply within 24 hours")),1)])])])])])])}}},vt=F(bt,[["__scopeId","data-v-475e2f40"]]);export{vt as default};
