PageSourceSearch

https://www.pawsitivefoster.com/_nuxt/Bj-sPUgU.js

js pawsitivefoster.com collected 2026-10-02 01:39:36 UTC 7,348 bytes, 3 lines download raw bytes

1import{_ as z}from"./B2UnsJXf.js";import{I as y}from"./2Qq-omLE.js";import{B as D}from"./Bf1JrB5p.js";import{F as V,N as w}from"./Bto3la5R.js";import{a as n,d as F,i as P}from"./CS_J_7_a.js";import{e as k,f as E,m as N,M as q,_ as B,c as l,b as r,a as t,t as o,i as C,j as g,k as b,d as i,I as L,v as M,w as u,l as d,o as m}from"./BhMFTaRk.js";import"./BpNIR51K.js";const I=k({name:"ContactSalesPage",components:{Input:y,Button:D,Navigation:w,Footer:V},setup(){const e=N(),a=q();return{localePath:e,route:a}},computed:{isFounderVariant(){return this.route.query.from==="about"}},data(){return{formData:{name:"",email:"",phone:"",organization:"",orgSize:"",message:""},errors:{name:"",email:"",phone:"",organization:"",orgSize:""},isSubmitting:!1,isSubmitted:!1,submitError:""}},head(){return{title:"Contact Sales - Pawsitive Foster",meta:[{name:"description",content:"Talk to the Pawsitive Foster team about your foster program, whatever size it is."}]}},methods:{validateForm(){let e=!0;return this.errors={name:"",email:"",phone:"",organization:"",orgSize:""},this.formData.name.trim().length<2&&(this.errors.name=this.$t("contactSales.errName"),e=!1),P(this.formData.email)||(this.errors.email=this.$t("contactSales.errEmail"),e=!1),this.formData.organization.trim().length<2&&(this.errors.organization=this.$t("contactSales.errOrg"),e=!1),this.formData.orgSize||(this.errors.orgSize="Please select your organization size",e=!1),e},async handleSubmit(){if(this.submitError="",!!this.validateForm()){this.isSubmitting=!0;try{const e=[`Phone: ${this.formData.phone.trim()?n(this.formData.phone):"not given"}`,`Organization: ${n(this.formData.organization)}`,`Size: ${this.formData.orgSize} fosters`];this.formData.message.trim()&&e.push(`
2Message: ${n(this.formData.message)}`);const a={name:n(this.formData.name),email:n(this.formData.email),subject:this.isFounderVariant?"Call request from the founder story":"Sales inquiry, Enterprise plan",message:e.join(`
3`)},p=await F(a);if(p.success){this.isSubmitted=!0;const{gtag:h}=E();h("event","contact_sales_submission",{event_category:"form_submission",event_label:this.isFounderVariant?"about_founder_story":"contact_sales",org_size:this.formData.orgSize})}else this.submitError=p.error||this.$t("contactSales.errGeneric")}catch{this.submitError=this.$t("contactSales.errGeneric")}finally{this.isSubmitting=!1}}}}}),T={class:"contact-sales-page"},U={class:"contact-header"},j={class:"container"},G={class:"eyebrow"},O={class:"subtitle"},A={class:"form-section"},J={class:"container"},R={class:"contact-wrapper"},_={key:0,class:"form-container"},H={class:"input-wrapper"},K={class:"input-label"},Q={value:"",disabled:""},W={value:"just-starting"},X={value:"under-25"},Y={value:"25-50"},Z={value:"50-100"},x={value:"100-200"},ee={value:"200-500"},te={value:"500+"},ae={key:0,class:"input-error"},oe={class:"input-wrapper"},se={class:"input-label"},re=["placeholder"],ie={class:"privacy-notice"},ne={key:0,class:"submit-error"},le={key:1,class:"success-message"};function me(e,a,p,h,ce,ue){const $=d("Navigation"),c=d("Input"),f=z,S=d("Button"),v=d("Footer");return m(),l("div",T,[r($),t("section",U,[t("div",j,[t("span",G,o(e.isFounderVariant?e.$t("contactSales.founderEyebrow"):e.$t("contactSales.eyebrow")),1),t("h1",null,o(e.isFounderVariant?e.$t("contactSales.founderTitle"):e.$t("contactSales.title")),1),t("p",O,o(e.isFounderVariant?e.$t("contactSales.founderSubtitle"):e.$t("contactSales.subtitle")),1)])]),t("section",A,[t("div",J,[t("div",R,[e.isSubmitted?(m(),l("div",le,[a[9]||(a[9]=t("div",{class:"success-icon"},[t("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("circle",{cx:"32",cy:"32",r:"32",fill:"#E8F5E9"}),t("path",{d:"M28 32L30 34L36 28",stroke:"#4CAF50","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),t("h2",null,o(e.isFounderVariant?e.$t("contactSales.founderSuccessTitle"):e.$t("contactSales.successTitle")),1),t("p",null,o(e.isFounderVariant?e.$t("contactSales.founderSuccessMessage"):e.$t("contactSales.successMessage")),1),r(f,{to:e.localePath("/pricing"),class:"back-link"},{default:u(()=>[r(S,{variant:"secondary",size:"md"},{default:u(()=>[i(o(e.$t("contactSales.backToPricing")),1)]),_:1})]),_:1},8,["to"])])):(m(),l("div",_,[t("form",{onSubmit:a[6]||(a[6]=C((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"])),class:"contact-form"},[r(c,{modelValue:e.formData.name,"onUpdate:modelValue":a[0]||(a[0]=s=>e.formData.name=s),label:e.$t("contactSales.nameLabel"),type:"text",placeholder:e.$t("contactSales.namePlaceholder"),required:"",error:e.errors.name,autocomplete:"name"},null,8,["modelValue","label","placeholder","error"]),r(c,{modelValue:e.formData.email,"onUpdate:modelValue":a[1]||(a[1]=s=>e.formData.email=s),label:e.$t("contactSales.emailLabel"),type:"email",placeholder:e.$t("contactSales.emailPlaceholder"),required:"",error:e.errors.email,autocomplete:"email"},null,8,["modelValue","label","placeholder","error"]),r(c,{modelValue:e.formData.phone,"onUpdate:modelValue":a[2]||(a[2]=s=>e.formData.phone=s),label:e.$t("contactSales.phoneOptional"),type:"tel",placeholder:e.$t("contactSales.phonePlaceholder"),error:e.errors.phone,autocomplete:"tel"},null,8,["modelValue","label","placeholder","error"]),r(c,{modelValue:e.formData.organization,"onUpdate:modelValue":a[3]||(a[3]=s=>
3e.formData.organization=s),label:e.$t("contactSales.orgLabel"),type:"text",placeholder:e.$t("contactSales.orgPlaceholder"),required:"",error:e.errors.organization,autocomplete:"organization"},null,8,["modelValue","label","placeholder","error"]),t("div",H,[t("label",K,[i(o(e.$t("contactSales.orgSizeLabel"))+" ",1),a[7]||(a[7]=t("span",{class:"required"},"*",-1))]),b(t("select",{"onUpdate:modelValue":a[4]||(a[4]=s=>e.formData.orgSize=s),class:"select-input",required:""},[t("option",Q,o(e.$t("contactSales.orgSizePlaceholder")),1),t("option",W,o(e.$t("contactSales.sizeJustStarting")),1),t("option",X,o(e.$t("contactSales.sizeUnder25"))+" "+o(e.$t("contactSales.fosters")),1),t("option",Y,o(e.$t("contactSales.size25to50"))+" "+o(e.$t("contactSales.fosters")),1),t("option",Z,"50–100 "+o(e.$t("contactSales.fosters")),1),t("option",x,"100–200 "+o(e.$t("contactSales.fosters")),1),t("option",ee,"200–500 "+o(e.$t("contactSales.fosters")),1),t("option",te,"500+ "+o(e.$t("contactSales.fosters")),1)],512),[[L,e.formData.orgSize]]),e.errors.orgSize?(m(),l("span",ae,o(e.errors.orgSize),1)):g("",!0)]),t("div",oe,[t("label",se,o(e.$t("contactSales.messageLabel")),1),b(t("textarea",{"onUpdate:modelValue":a[5]||(a[5]=s=>e.formData.message=s),class:"textarea-input",placeholder:e.$t("contactSales.messagePlaceholder"),rows:"4"},null,8,re),[[M,e.formData.message]])]),t("p",ie,[i(o(e.$t("contactSales.privacyNotice"))+" ",1),r(f,{to:e.localePath("/privacy")},{default:u(()=>[i(o(e.$t("footer.privacyPolicy")),1)]),_:1},8,["to"]),a[8]||(a[8]=i(". ",-1))]),r(S,{type:"submit",variant:"primary",size:"lg",disabled:e.isSubmitting,class:"submit-btn"},{default:u(()=>[i(o(e.isSubmitting?e.$t("contactSales.sending"):e.isFounderVariant?e.$t("contactSales.founderSubmit"):e.$t("contactSales.submitBtn")),1)]),_:1},8,["disabled"]),e.submitError?(m(),l("p",ne,o(e.submitError),1)):g("",!0)],32)]))])])]),r(v)])}const $e=B(I,[["render",me],["__scopeId","data-v-b28fcb31"]]);export{$e 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.