PageSourceSearch

https://inspiriadental.com/_nuxt/baseContactUser.D_DqHSPt.js

js inspiriadental.com collected 2026-09-24 13:10:27 UTC 4,727 bytes, 1 lines download raw bytes

1import{_ as M}from"./TheQuote.CiOu_dMA.js";import{u as N,a as T,b as E}from"./useValidationTranslation.CKRRkcpZ.js";import{u as L,_ as q,a as I}from"./useCountries.CjTGtg3_.js";import{_ as D}from"./NuxtLinkLocale.CujcQd8a.js";import{_ as R}from"./CheckBoxField.B3SjDQsv.js";import{o as z,L as F,U as G,w as O,v as k}from"./entry.CcJPRZll.js";import{d as U,r as P,b as _,e as y,m as a,u as e,I as Q,A as f,x as j,p as x,G as w,S as W,z as Z,j as H,t as C,q as J}from"./vendor-vue.CbeIOTrE.js";import{r as K}from"./redirectToPage.WfMau5MA.js";import"./i18n.AiQ4g02z.js";const X={key:0,class:"text-error text-[length:var(--s-font-p)] col-span-2 max-xl:col-span-full"},Y=U({__name:"ContactForm",setup(A){const{t:c}=z(),i=L(),{formData:n,invalidFields:d,markFieldAsTouched:s,getFieldValidation:B}=N({name:"",email:"",country:"",fullPhone:"",subject:"",policy:!1}),{getValidationWithTranslation:r}=T(B),{showAlert:g}=F(),b=P(!1);Z("isButtonLoading",b);const p=P(!0),S=async()=>{const{name:t,email:o,country:u,fullPhone:h,subject:v}=n,m=t.trim().split(" "),V=m.length>1?m.slice(m.length===2?-1:-2).join(" "):"";b.value=!0;try{await O("sendZohoContact",{nombre:t,apellidos:V,email:o,fullPhoneNumber:h,pais:u[2]??"",asunto:v,vertical:k.strapiService,crm:k.stripeServiceCRM},{useFallback:!1})?K("thank-you","contact"):g("error",c("forms.message_errors.api_error"))}catch{g("error",c("forms.message_errors.api_error"))}finally{b.value=!1}};return(t,o)=>{const u=E,h=q,v=I,m=D,V=R,$=G;return _(),y("form",{class:"bg-[var(--c-graphite)] rounded-[0.5rem] p-[3.625rem] grid grid-cols-5 gap-y-10 gap-x-6 max-xs:px-6 max-xs:py-12",onSubmit:W(S,["prevent"])},[a(u,{class:"col-span-full","auto-complete":"name","input-id":"name",label:t.$t("forms.inputs.name"),validation:e(r)("name"),"on-field-touched":e(s),modelValue:e(n).name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(n).name=l),modelModifiers:{trim:!0}},null,8,["label","validation","on-field-touched","modelValue"]),a(u,{class:"col-span-full","auto-complete":"email","input-id":"email",label:t.$t("forms.inputs.email"),type:"email",validation:e(r)("email"),"on-field-touched":e(s),modelValue:e(n).email,"onUpdate:modelValue":o[1]||(o[1]=l=>e(n).email=l),modelModifiers:{trim:!0}},null,8,["label","validation","on-field-touched","modelValue"]),a(h,{class:"col-span-full","auto-complete":"country-name","input-id":"country",label:t.$t("forms.inputs.country"),options:e(i),validation:e(r)("country"),"on-field-touched":e(s),"no-options-text":t.$t("forms.select.no_options"),"no-results-text":t.$t("forms.select.no_results"),modelValue:e(n).country,"onUpdate:modelValue":o[2]||(o[2]=l=>e(n).country=l),modelModifiers:{trim:!0}},null,8,["label","options","validation","on-field-touched","no-options-text","no-results-text","modelValue"]),a(v,{modelValue:e(n).fullPhone,"onUpdate:modelValue":o[3]||(o[3]=l=>e(n).fullPhone=l),valid:e(p),"onUpdate:valid":o[4]||(o[4]=l=>Q(p)?p.value=l:null),class:"col-span-full",label:t.$t("forms.inputs.phone"),"input-id":"fullPhone",validation:e(r)("fullPhone"),"on-field-touched":e(s)},null,8,["modelValue","valid","label","validation","on-field-touched"]),a(u,{class:"col-span-full","input-id":"subject",label:t.$t("forms.inputs.subject"),modelValue:e(n).subject,"onUpdate:modelValue":o[5]||(o[5]=l=>e(n).subject=l),modelModifiers:{trim:!0}},null,8,["label","modelValue"]),e(d)?(_(),y("p",X,f(`${t.$t("forms.message_errors.feedback_form_error")??""} ${t.$t("forms.mandatory_field")??""}`),1)):j("",!0),a(V,{class:"col-start-3 col-span-3 max-xl:col-span-full","input-id":"policy",label:t.$t("forms.terms_and_conditions.text"),validation:e(r)("policy"),"on-field-touched":e(s),modelValue:e(n).policy,"onUpdate:modelValue":o[6]||(o[6]=l=>e(n).policy=l)},{redirection:x(()=>[a(m,{class:"cursor-pointer inline text-[length:var(--s-font-small)] hover:underline",to:{name:"privacy"},target:"_blank"},{default:x(()=>[w(f(t.$t("forms.terms_and_conditions.redirection.text")??""),1)]),_:1})]),_:1},8,["label","validation","on-field-touched","modelValue"]),a($,{class:"col-span-full bg-[var(--c-primary)] text-[var(--c-static-black)]",disabled:e(d)||!e(p),type:"submit"},{default:x(()=>[w(f(t.$t("forms.buttons.information")),1)]),_:1},8,["disabled"])],32)}}}),ee=Object.assign(Y,{__name:"ViewsContactForm"}),oe={class:"pt-8 px-lateral-mobile md:px-lateral"},te={class:"text-[var(--c-static-white)] text-h4 w-fit h-fit"},ne={class:"mx-auto max-w-[50em]"},pe=U({__name:"baseContactUser",setup(A){const{resetAlert:c}=F();return H(()=>{c()}),(i,n)=>{const d=M,s=ee;return _(),y("section",oe,[C("h1",te,f(i.$t("contact.title")),1),i.$t("contact.quote")?(_(),J(d,{key:0,title:i.$t("contact.quote")},null,8,["title"])):j("",!0),C("article",ne,[a(s)])])}}});
1export{pe as default};

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.