1import{a1 as C,cw as y,r as h,cC as v,c as w,a3 as k,ah as e,N as c,ao as d,a5 as l,aF as m,ai as E,cD as g,a0 as x,g as R,cE as D,f as I,M as t,T as V}from"./Czd9XnOY.js";import{P as M,a as $}from"./CS8A3m7m.js";import B from"./D93RmGd0.js";import{s as N}from"./BJfU8DFO.js";import"./Bfz1ZMkH.js";import"./B9R4XnGn.js";import"./D2kFVVdL.js";import"./DRNKrJGC.js";const P={key:1,class:"card-v2-wrapper"},S={key:1},O=C({__name:"[shortId]",async setup(b){let s,p;const u=y(),f=I(),_=h(V()||{}),{data:a,error:r}=([s,p]=v(async()=>x("cardData",async()=>{try{return await $fetch(`${f.public.QR_CODE_SERVICE_URL}/qr-code/template/data?shortId=${encodeURIComponent(String(u.params.shortId))}`,{headers:{..._.value,...R()}})}catch(n){const i=n?.statusCode??500;throw D({statusCode:i,statusMessage:"Failed to load card data"})}})),s=await s,p(),s),o=w(()=>a.value?.version===2);return k(async()=>{o.value&&await N()}),(n,i)=>e(r)?e(r)?(t(),c("div",S,[m(g,{error:e(r)},null,8,["error"])])):l("",!0):(t(),c("div",{key:0,class:E(["w-full h-full flex flex-col items-center",{"gap-4 py-[20px]":!(e(a)&&o.value)}])},[e(a)?l("",!0):(t(),d(B,{key:0,color:"#188bf6",size:"30px"})),e(a)&&o.value?(t(),c("div",P,[m(M,{"template-data":e(a),type:"profile"},null,8,["template-data"])])):e(a)?(t(),d($,{key:2,templateData:e(a),type:"profile"},null,8,["templateData"])):l("",!0)],2))}});export{O 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.