1import{S as p}from"./Page-BZnwvDJj.js";import{_ as u,e as g,u as f}from"./VueFinalModal.esm-B_ZhvDz4.js";import{F as h}from"./Field-D1qez_hM.js";import{I as _}from"./Input-OOB3C693.js";import{s as y}from"./saveSettings-ecdKjUJo.js";import{g as S,t as b,x as s,j as e,k as X,v as a}from"./charts-DjP_BkTY.js";import"./Button-DiH6GFIf.js";import"./FormCard-Bar4oOSC.js";import"./Card-BOAjZRq2.js";import"./Icon-_6oLRAba.js";import"./control-UkHg6rIs.js";import"./saveSite-JEGhW31x.js";import"./apiPost-Dloe6BMu.js";const v={components:{SettingsPage:p,Field:h,Input:_},data(){return{site:null,loading:!1}},created(){this.site=JSON.parse(JSON.stringify(this.adminStore.getCurrSite)),this.site.analytics==null&&(this.site.analytics={ga:null})},computed:{...g(f)},methods:{async submit(){this.loading=!0,await y({getWhat:"analytics-settings",siteId:this.site.id,site:this.site,column:"analytics_settings"},this.eventBus),this.loading=!1}}};function k(I,i,x,V,t,o){const n=e("Input"),l=e("Field"),r=e("SettingsPage");return t.site!=null?(X(),S(r,{key:0,title:"Analytics",saving:t.loading,onSave:o.submit},{default:s(()=>[a(l,{id:"input-google-analytics-id",label:"Google Analytics tracking ID",hint:"Paste the tracking ID for this site. Leave blank to use the default Hellobox analytics."},{default:s(({id:m,describedBy:d})=>[a(n,{id:m,"described-by":d,modelValue:t.site.analytics.ga,"onUpdate:modelValue":i[0]||(i[0]=c=>t.site.analytics.ga=c),placeholder:"G-XXXXXXXXXX",disabled:t.loading},null,8,["id","described-by","modelValue","disabled"])]),_:1})]),_:1},8,["saving","onSave"])):b("",!0)}const L=u(v,[["render",k]]);export{L 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.