1import{F as v}from"./Simple-BLjuFar5.js";import{S as k}from"./SubmitButton-CwcskGz4.js";import{a as b}from"./apiPost-C4xD0A-h.js";import{_ as x,c as o,a as t,F as d,b as a,w as y,j as u,k as c,t as p,d as n,m as E,r as m,u as S,o as r,f as w}from"./app-D-cVr9vr.js";import{i as C}from"./isEmailValid-Cq8bst8j.js";import"./getCSRF-7MinvhD0.js";const F={components:{SubmitButton:k,Footer:v},data(){return{loading:!1,email:null,message:null,emailError:null,messageError:null,sent:!1}},mounted(){this.sideprojectorsStore.getCurrUser!=null?(this.email=this.sideprojectorsStore.getCurrUser.email,this.$refs.message.focus()):this.$refs.email.focus()},computed:{...E(S)},methods:{submit(){let i=!0;this.emailError=null,this.messageError=null;let e=this.email.toLowerCase().trim();(e==null||!C(e))&&(this.emailError="Please type a valid email.",i=!1),(this.message==null||this.message.length==0)&&(this.messageError="Please type a valid message.",i=!1),i&&(this.loading=!0,b("/contact-us",{email:this.email.toLowerCase().trim(),message:this.message}),this.sent=!0)}}},B={class:"max-w-xl mx-auto px-6 lg:px-8 mt-12"},V={class:"mt-4 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 p-6 rounded"},U={class:"mt-8"},j={key:0,class:"mb-8"},N={class:"form-line"},P=["disabled"],T={key:0,class:"input-error"},W={class:"form-line"},D=["disabled"],L={key:0,class:"input-error"},M={class:"mt-4"},Q={class:"mt-6"};function q(i,e,z,A,s,g){const h=m("router-link"),f=m("SubmitButton"),_=m("Footer");return r(),o("div",B,[e[6]||(e[6]=t("div",{class:"text-lg ml-2 dark:text-white"},"ð Â We'd love to hear from you!",-1)),t("div",V,[s.sent?(r(),o(d,{key:0},[e[3]||(e[3]=t("div",{class:"dark:text-white"}
1," Thank you so much for taking the time to contact us! We will review your message and get back to you as soon as possible. ",-1)),t("div",U,[a(h,{to:{name:"home"},class:"text-blue-500 hover:underline"},{default:y(()=>e[2]||(e[2]=[w("Back to home")])),_:1,__:[2]})])],64)):(r(),o(d,{key:1},[i.sideprojectorsStore.getCurrUser==null?(r(),o("div",j,[e[4]||(e[4]=t("div",{class:""},"Email",-1)),t("div",N,[u(t("input",{type:"email","onUpdate:modelValue":e[0]||(e[0]=l=>s.email=l),ref:"email",class:"input-standard",disabled:s.loading,placeholder:"Email"},null,8,P),[[c,s.email]]),s.emailError!==null?(r(),o("div",T,p(s.emailError),1)):n("",!0)])])):n("",!0),e[5]||(e[5]=t("div",{class:"dark:text-white"}," Question? comment? suggestion? tell us! ",-1)),t("div",W,[u(t("textarea",{"onUpdate:modelValue":e[1]||(e[1]=l=>s.message=l),ref:"message",class:"input-standard h-48",disabled:s.loading,placeholder:""},null,8,D),[[c,s.message]]),s.messageError!==null?(r(),o("div",L,p(s.messageError),1)):n("",!0)]),t("div",M,[a(f,{onClick:g.submit,loading:s.loading,label:"Send",isFullWidth:!0},null,8,["onClick","loading"])])],64))]),t("div",Q,[a(_)])])}const R=x(F,[["render",q]]);export{R 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.