1import{_ as C}from"./CBzBOmYY.js";import{Y as q,d as O,u as V,$ as B,E as D,k as _,o as U,l as N,w as c,a as o,t as m,h as n,b as f,e as R,j as y,i as $}from"./CYMs3uwY.js";import{u as A,c as G}from"./DDsDBead.js";import{u as I}from"./C4qEx6HW.js";const M=()=>({fetchContactSubForm:async l=>q.post("/support/contactUs",l)}),j={class:"email-edit-content"},L={class:"text-head-panel"},T={class:"email-form-panel"},Y={class:"submit-content"},z=O({__name:"index",props:{isShowEmailOverlay:{type:Boolean}},emits:["update:isShowEmailOverlay"],setup(v,{emit:l}){const{t}=V(),d=l,h=B(),{isEmail:b}=A(),g=M(),p=D(),{trackGtagEvent:S}=I(),i=_(!1),r=_(null),F=[{name:"name",label:t("your-name"),type:"text",required:!0},{name:"email",label:t("your-email-address"),type:"email",required:!0,validate:b},{name:"title",label:t("question"),type:"text",required:!0},{name:"content",label:t("message"),type:"textarea",required:!0,rows:3,validate:e=>G().required(t("is-required")).max(255,t("length-should-be-less-than-255")).validate(e)}],w=async e=>{try{if(i.value=!0,!r.value)return;const s=await g.fetchContactSubForm(e);s.code===200?(s.data&&(e.email="",e.name="",e.content="",e.title="",d("update:isShowEmailOverlay")),S("contactus_submit",{source:"contact_us_form"}),p.handleSuccess({message:s.msg,duration:3e3})):p.handleError({message:s.msg})}catch(a){console.error("Submit error:",a)}finally{i.value=!1}},x=()=>{if(!r.value)return;const e=r.value;if(!e.validateForm()){console.error("Form is invalid",e.formErrors);return}w(e.formData)};return(e,a)=>{const s=y("DynaButton"),E=C,k=y("DynaOverlay");return U(),N(k,{"model-value":e.isShowEmailOverlay,class:"resource-update-overlay","onUpdate:modelValue":a[0]||(a[0]=u=>d("update:isShowEmailOverlay",u))},{default:c(()=>[o("div",j,[o("div",L,[a[1]||(a[1]=o("span",null,[o("i",{class:"fa-light fa-envelope"})],-1)),o("span",null,m(n(t)("send-an-email")),1),o("span",null,m(n(t)("email-us-and-our-dedicated-and-knowledgeable-support-team-will-get-back-to-you")),1)]),o("div",T,[f(E,{ref_key:"emailFormRef",ref:r,fields:F,class:"email-form","form-data":{email:n(h).query.email},"show-submit-button":!0,onSubmit:x},{"submit-button":c(({submitForm:u})=>[o("div",Y,[f(s,{shape:"round",type:"default",loading:n(i),onClick:u},{default:c(()=>[R(m(n(t)("send-email")),1)]),_:2},1032,["loading","onClick"])])]),_:1},8,["form-data"])])])]),_:1},8,["model-value"])}}}),Q=$(z,[["__scopeId","data-v-2d03c50e"]]);export{Q as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.