1import{o as e}from"./Cnu0k-Zl.js";import{D as t,On as n,T as r,Yt as i,_ as a,b as o,k as s,mt as c,tr as l,vn as u,y as d}from"./Car86Ubo.js";import{dt as f,mt as p,ut as m}from"./QdjmqAoI.js";import{n as h,t as g}from"./CATM49-w.js";import{r as _}from"./DyVgGPf5.js";import{r as v}from"#entry";import{t as y}from"./BBstXnwD.js";var b={class:`mb-5 grid gap-4 lg:grid-cols-6`},x={class:`col-span-2`},S={key:0,class:`text-sm text-red-500`},C={class:`col-span-2`},w={key:0,class:`text-sm text-red-500`},T={class:`mb-5 grid gap-4 lg:grid-cols-6`},E={class:`col-span-2`},D={key:0,class:`text-sm text-red-500`},O={class:`mb-5 grid gap-4 lg:grid-cols-6`},k={key:0,class:`text-sm text-red-500 lg:col-span-5 lg:col-start-2`},A={class:`mb-5 grid gap-4 lg:grid-cols-6`},j={key:0,class:`text-sm text-red-500 lg:col-span-5 lg:col-start-2`},M={class:`mb-5 grid gap-4 lg:grid-cols-6`},N=[`disabled`],P=Object.assign(s({__name:`ContactForm`,setup(t){let s={name:``,email:``,contact_number:``,subject:``,content:``},{notify:_}=y(),v=e(),P=u(!1),F=u({...s}),I=u({}),L=async()=>{P.value=!0;try{await g(`/api/contact`,{baseURL:v.public.apiUrl,headers:{"Content-Type":`application/json`,accept:`application/json`},method:`POST`,body:F.value}),_({title:`Success`,message:`Your message has been sent`,type:`success`}),F.value={...s},I.value={}}catch(e){if(!(e instanceof h))throw e;if(e.statusCode===422){I.value=e.data.errors;return}_({title:`Error`,message:`Something went wrong`,type:`error`})}finally{P.value=!1}};return(e,t)=>(c(),o(`form`,{onSubmit:p(L,[`prevent`])},[a(`div`,b,[t[5]||=a(`div`,{class:``},[a(`label`,{for:`name`},`Name:`)],-1),a(`div`,x,[i(a(`input`,{class:`w-full rounded-sm border px-3 py-2 text-sm shadow-sm placeholder:text-slate-300 focus:border-sky-400 focus:ring-1 focus:outline-hidden`,type:`text`,"onUpdate:modelValue":t[0]||=e=>n(F).name=e,id:`name`,placeholder:`Your Name`},null,512),[[f,n(F).name]]),n(I).name?(c(),o(`span`,S,l(n(I).name[0]),1)):d(``,!0)]),t[6]||=a(`div`,null,[a(`label`,{for:`email`},`Email:`)],-1),a(`div`,C,[i(a(`input`,{class:`w-full rounded-sm border px-3 py-2 text-sm shadow-sm placeholder:text-slate-300 focus:border-sky-400 focus:ring-1 focus:outline-hidden`,type:`email`,"onUpdate:modelValue":t[1]||=e=>n(F).email=e,id:`email`,placeholder:`Your Email`},null,512),[[f,n(F).email]]),n(I).email?(c(),o(`span`,w,l(n(I).email[0]),1)):d(``,!0)])]),a(`div`,T,[t[7]||=a(`div`,{class:``},[a(`label`,{for:`contact_number`},`Contact:`)],-1),a(`div`,E,[i(a(`input`,{class:`w-full rounded-sm border px-3 py-2 text-sm shadow-sm placeholder:text-slate-300 focus:border-sky-400 focus:ring-1 focus:outline-hidden`,type:`number`,"onUpdate:modelValue":t[2]||=e=>n(F).contact_number=e,id:`contact_number`,placeholder:`Your Phone Number`},null,512),[[f,n(F).contact_number]]),n(I).contact_number?(c(),o(`span`,D,l(n(I).contact_number[0]),1)):d(``,!0)])]),t[11]||=a(`hr`,{class:`mb-5`},null,-1),a(`div`,O,[t[9]||=a(`label`,{for:`type`},`Type:`,-1),i(a(`select`,{class:`col-span-2 rounded-sm border px-3 py-2 text-sm text-slate-600 shadow-sm focus:border-sky-400`,"onUpdate:modelValue":t[3]||=e=>n(F).subject=e,id:`type`},[...t[8]||=[r(`<option value="" disabled selected>Select the subject...</option><option value="Business Development">Business Development</option><option value="Advertising Sales">Advertising Sales</option><option value="Media Enquiries">Media Enquiries</option><option value="General Feedback">General Feedback</option><option value="Others">Others</option>`,6)]],512),[[m,n(F).subject]]),n(I).subject?(c(),o(`span`,k,l(n(I).subject[0]),1)):d(``,!0)]),a(`div`,A,[t[10]||=a(`label`,{for:`content`},`Content:`,-1),i(a(`textarea`,{class:`col-span-5 w-full rounded-sm border px-3 py-2 text-sm shadow-sm placeholder:text-slate-300 focus:border-sky-400 focus:ring-1 focus:outline-hidden`,"onUpdate:modelValue":t[4]||=e=>n(F).content=e,id:`content`,cols:`30`,rows:`10`,placeholder:`Message . . .`},null,512),[[f,n(F).content]]),n(I).content?(c(),o(`span`,j,l(n(I).content[0]),1)):d(``,!0)]),t[12]||=a(`hr`,{class:`mb-5`},null,-1),a(`div`,M,[a(`button`,{disabled:n(P),class:`rounded-sm bg-blue-500 px-4 py-2 text-sm text-white hover:bg-blue-600 disabled:opacity-50 lg:col-start-2`,type:`submit`},` Send Message `,8,N)])],32))}}),{__name:`ContactForm`}),F={class:`mx-auto flex max-w-6xl flex-col gap-8 px-4 py-12`},I=s({__name:`contact-us`,setup(n){let r=e();return _({title:`Contact | TripZilla.sg`,ogTitle:`Contact | TripZilla.sg`,description:`Need help with something on TripZilla? Or do you have comments or suggestions regarding TripZilla? Please email us at [email protected].`,ogDescription:`Need help with something on TripZilla? Or do you have comments or suggestions regarding TripZilla? Please email us at [email protected].`,ogImage:r.public.appUrl+`/img/destinations/contact-us.webp`,ogUrl:r.public.appUrl+`/contact-us`,twitterTitle:`Contact | TripZilla.sg`,twitterImage:r.public.appUrl+`/img/destinations/contact-us.webp`,twitterDescription:`Need help with something on TripZilla? Or do you have comments or suggestions regarding TripZilla? Please email us at [email protected].`,twitterCard:`summary`}),(e,n)=>{let r=v,i=P;return c(),o(`div`,null,[t(r,{title:`Contact Us`,featuredImage:`/img/destinations/contact-us.webp`,excerpt:``}),a(`div`,null,[a(`main`,F,[t(i)])])])}}});
1export{I 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.