1import{r as h,o as a,c as n,a as t,t as r,d as b,F as m,e as p,w as l,k as f,v as _,b as v,f as k,g as y,h as S}from"./vue-router-CSEP06dd.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";const g={data(){return{attribution:"",otherSource:"",status:"",attributionOptions:["facebookInstagramAd","facebookInstagramPost","googleSearch","aiSearch","youtube","tiktok","twitter","reddit","friendRecommendation","spotify","other"]}},mounted(){this.addTitleAndDescription(this.$t("survey"),"")},methods:{submitSurvey(){this.status||(this.status="processing",Snackbar.show(this.$t("processing"),0),axios.post("/attribution-survey",{attribution_source:this.attribution,other_source:this.showOtherField?this.otherSource:null}).then(()=>{Snackbar.show(this.$t("thankYouFeedback")),this.$router.push(this.$path("upcoming"))}).catch(e=>Snackbar.show(this.getErrorMessage(e))).finally(()=>this.status=""))}},computed:{showOtherField(){return this.attribution==="other"}}},$={class:"p-4 border-bottom"},F={class:"h3"},V={class:"p-4 border-bottom"},D={class:"mb-3"},O={class:"form-label fw-bold mb-4"},A=["id","value"],C=["for"],M={key:0,class:"mb-3"},N={class:"form-label"},T=["placeholder"],B={class:"d-flex justify-content-between"},Y={type:"submit",class:"btn btn-primary"};function q(e,o,E,H,i,u){const d=h("router-link");return a(),n("div",null,[t("div",$,[t("h1",F,r(e.$t("attributionSurveyTitle")),1)]),t("div",V,[t("form",{onSubmit:o[2]||(o[2]=b((...s)=>u.submitSurvey&&u.submitSurvey(...s),["prevent"]))},[t("div",D,[t("label",O,r(e.$t("howDidYouHear")),1),(a(!0),n(m,null,p(i.attributionOptions,s=>(a(),n("div",{key:s,class:"form-check mb-2"},[l(t("input",{class:"form-check-input",type:"radio",id:s,value:s,"onUpdate:modelValue":o[0]||(o[0]=c=>i.attribution=c),required:""},null,8,A),[[f,i.attribution]]),t("label",{class:"form-check-label",for:s},r(e.$t(s)),9,C)]))),128))]),u.showOtherField?(a(),n("div",M,[t("label",N,r(e.$t("pleaseSpecify")),1),l(t("input",{type:"text",class:"form-control","onUpdate:modelValue":o[1]||(o[1]=s=>i.otherSource=s),placeholder:e.$t("whereDidYouHearPlaceholder"),required:""},null,8,T),[[_,i.otherSource]])])):v("",!0),t("div",B,[t("button",Y,r(e.$t("submitAndContinue")),1),k(d,{to:e.$path("upcoming"),class:"btn btn-link"},{default:y(()=>[S(r(e.$t("skip")),1)]),_:1},8,["to"])])],32)])])}const R=w(g,[["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.