import{_ as f,c,w as e,j as h,o as d,k as s,i as u,q as m,p as a,t as i,l as p}from"./index-CZJgrp0v.js";const g={name:"QrCodeCard",props:{name:{type:String,default:""},phone:{type:String,default:""},no:{type:String,default:""},qrUrl:{type:String,default:""},hint:{type:String,default:"出示二维码进行签到"}},computed:{showNo(){return!!(this.phone||this.no)},desensitizedPhone(){const n=String(this.phone||"");return n.length<=7?n:n.slice(0,3)+"****"+n.slice(-4)}}};function x(n,y,t,q,S,l){const r=m,o=h,_=p;return d(),c(o,{class:"qr-code-card"},{default:e(()=>[s(o,{class:"user-info"},{default:e(()=>[s(r,{class:"user-name"},{default:e(()=>[a(i(t.name),1)]),_:1}),l.showNo?(d(),c(r,{key:0,class:"user-sep"},{default:e(()=>[a("   ")]),_:1})):u("",!0),t.phone?(d(),c(r,{key:1,class:"user-no"},{default:e(()=>[a(i(l.desensitizedPhone),1)]),_:1})):t.no?(d(),c(r,{key:2,class:"user-no"},{default:e(()=>[a(i(t.no),1)]),_:1})):u("",!0)]),_:1}),s(o,{class:"qr-box"},{default:e(()=>[s(_,{class:"qr-img",src:t.qrUrl,mode:"widthFix"},null,8,["src"])]),_:1}),s(o,{class:"qr-hint"},{default:e(()=>[a(i(t.hint),1)]),_:1})]),_:1})}const w=f(g,[["render",x],["__scopeId","data-v-9365d351"]]);export{w as Q};
