import{D as v,u as y,r as w,c as m,a as s,t as n,b as i,e as d,v as c,d as l,F as j,A as x,z as $,S as _,o as u,n as C}from"./app-C3pBWUn1.js";/* empty css            */const B="/build/assets/contact-BQmwBgly.jpg",N={class:"p-3 p-md-4 p-xl-5"},S={class:"container"},F={class:"card border-light-subtle shadow-sm"},V={class:"row g-0"},k={class:"col-12 col-md-6 my-auto"},U={class:"card-body p-3 p-md-4 p-xl-5"},q={class:"row"},z={class:"col-12"},D={class:"mb-5"},E={class:"h3"},A={action:"#!"},M={class:"row gy-3 gy-md-4 overflow-hidden"},T={class:"col-12"},L={for:"firstName",class:"form-label"},I=["placeholder"],Q={class:"col-12"},Y={for:"email",class:"form-label"},G={class:"col-12"},H={for:"subject",class:"form-label"},J=["placeholder"],K={class:"col-12"},O={for:"message",class:"form-label"},P={class:"col-12"},R={class:"d-grid"},W={class:"row"},X={class:"col-12"},Z={class:"mt-5 mb-4"},ss={class:"d-flex gap-1 flex-column flex-xl-row flex-wrap justify-content-start"},ts=["href"],es={class:"ms-1",style:{"font-size":"14px"}},ns={__name:"ContactUs",setup(os){const{t:b}=v(),f=y();let a=w({name:"",email:"",subject:"",message:""});const h=()=>{a.value={name:"",email:"",subject:"",message:""}},g=async()=>{var o,t;try{(await $.post("/contact/submit",a.value,{headers:{"Content-Type":"application/json",Accept:"application/json"}})).status===201&&(_.fire({position:"top-end",icon:"success",title:b("Your inquiry has been submitted"),showConfirmButton:!1,timer:1500,customClass:{title:"swal-title"}}),h())}catch(r){_.fire({icon:"error",title:`Error submitting form:, ${(t=(o=r.response)==null?void 0:o.data)==null?void 0:t.message}`,showConfirmButton:!1,timer:3500,customClass:{title:"swal-title"}}),console.error("Error submitting form:",r)}};return(o,t)=>{var r,p;return u(),m("section",N,[s("div",S,[s("div",F,[s("div",V,[t[8]||(t[8]=s("div",{class:"col-12 col-md-6"},[s("img",{class:"rounded-start w-100 h-100 object-fit-cover",loading:"lazy",src:B,alt:"lms logo Logo"})],-1)),s("div",k,[s("div",U,[s("div",q,[s("div",z,[s("div",D,[s("h2",E,n(o.$t("Connect with us")),1)])])]),s("form",A,[s("div",M,[s("div",T,[s("label",L,[d(n(o.$t("Full Name"))+" ",1),t[4]||(t[4]=s("span",{class:"text-danger"},"*",-1))]),i(s("input",{type:"text",class:"form-control",name:"firstName",id:"firstName",placeholder:o.$t("First Name"),"onUpdate:modelValue":t[0]||(t[0]=e=>l(a).name=e),required:""},null,8,I),[[c,l(a).name]])]),s("div",Q,[s("label",Y,[d(n(o.$t("Email"))+" ",1),t[5]||(t[5]=s("span",{class:"text-danger"},"*",-1))]),i(s("input",{type:"email",class:"form-control",name:"email",id:"email",placeholder:"name@example.com","onUpdate:modelValue":t[1]||(t[1]=e=>l(a).email=e),required:""},null,512),[[c,l(a).email]])]),s("div",G,[s("label",H,[d(n(o.$t("Subject"))+" ",1),t[6]||(t[6]=s("span",{class:"text-danger"},"*",-1))]),i(s("input",{type:"text",class:"form-control",name:"subject",id:"subject",placeholder:o.$t("Subject"),"onUpdate:modelValue":t[2]||(t[2]=e=>l(a).subject=e),required:""},null,8,J),[[c,l(a).subject]])]),s("div",K,[s("label",O,[d(n(o.$t("Message"))+" ",1),t[7]||(t[7]=s("span",{class:"text-danger"},"*",-1))]),i(s("textarea",{rows:"4",id:"message",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=e=>l(a).message=e)},null,512),[[c,l(a).message]])]),s("div",P,[s("div",R,[s("button",{class:"btn bsb-btn-xl btn-primary",type:"button",onClick:g},n(o.$t("connect now")),1)])])])]),s("div",W,[s("div",X,[s("p",Z,n(o.$t("Are you trying to connect with us on social media"))+"? ",1),s("div",ss,[(u(!0),m(j,null,x((p=(r=l(f))==null?void 0:r.masterData)==null?void 0:p.footer_social_icons,e=>(u(),m("a",{key:e,href:e.url,target:"_blank",class:"btn btn-outline-primary btn-sm"},[s("i",{class:C(e==null?void 0:e.icon)},null,2),s("span",es,n(e==null?void 0:e.title),1)],8,ts))),128))])])])])])])])])])}}};export{ns as default};
