import{aP as u,$ as r,aj as f,j as c,o as g,w as t,d as e,l as p,q as V,t as l,Y as m,z as v,i as C,C as _,M as b,y,aQ as D,aR as x}from"./index-BBhBboPS.js";import{V as I}from"./VContainer-CvKHPctk.js";const k=u("v-code","code"),S={__name:"debug",setup(w){const s=r(""),i=r({}),o=r(!1),n=async()=>{o.value=!0;try{s.value=await D(),i.value=await x()}catch(d){console.error(d),s.value="Error loading visitor ID"}finally{o.value=!1}};return f(()=>{n()}),(d,a)=>(g(),c(I,null,{default:t(()=>[e(p,{class:"mb-4"},{default:t(()=>[e(V,null,{default:t(()=>[...a[0]||(a[0]=[l("调试信息",-1)])]),_:1}),e(m,null,{default:t(()=>[...a[1]||(a[1]=[l(" 请将这个ID复制并私聊给开发者，以便进行问题排查。 ",-1)])]),_:1}),e(v,null,{default:t(()=>[a[2]||(a[2]=C("div",{class:"text-h6 mb-2"},"访客 ID",-1)),e(k,{class:"d-block pa-2 bg-grey-lighten-4 rounded mb-4"},{default:t(()=>[l(_(s.value||"加载中..."),1)]),_:1})]),_:1}),e(b,null,{default:t(()=>[e(y,{color:"primary",onClick:n,loading:o.value},{default:t(()=>[...a[3]||(a[3]=[l(" Refresh ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1}))}};export{S as default};
