import{u as y}from"./useInstance.233fbdde.js";import{v as F}from"./vue-qr.b9282eb1.js";import{d as k,r as c,p as B,c as a,e as _,k as p,i as v,g as l,t as f,h as d,A as b,u as q,q as D,m as I,_ as N}from"./index.0308b213.js";const Q={class:"container"},R={class:"url url--wx"},S={class:"url url--system"},A={class:"qrcode"},M=I("\u5173\u95ED"),U=k({props:{modelValue:{type:Boolean,default:!1},url:null,logo:null,sid:null},emits:["update:modelValue"],setup(e,{emit:g}){const i=e;y();const r=c([]),u=c(!1);let o=c(!1);B(()=>i.modelValue,s=>{console.log(i,"props"),o.value=s},{immediate:!0});const C=(s,t)=>{r.value=[s]},V=()=>{u.value=!1},m=()=>{g("update:modelValue",!1)};return(s,t)=>{const E=a("el-divider"),h=a("el-button"),w=a("el-image-viewer"),x=a("el-dialog");return _(),p(x,{modelValue:q(o),"onUpdate:modelValue":t[1]||(t[1]=n=>D(o)?o.value=n:o=n),title:"\u95E8\u5E97\u4E8C\u7EF4\u7801&\u8BBF\u95EE\u5730\u5740",width:"50%","destroy-on-close":"",onClose:m},{default:v(()=>[l("div",Q,[l("div",R," \u95E8\u5E97\u8DEF\u5F84: "+f(e.url),1),l("div",S," \u5C0F\u7A0B\u5E8F\u8DEF\u5F84: /store-page/product-showcase/template-1?sid="+f(e.sid),1),l("div",A,[l("div",{onClick:t[0]||(t[0]=n=>u.value=!0),class:"qrcode__container qrcode--system"},[d(F,{callback:C,text:e.url,logoSrc:e.logo,size:260},null,8,["text","logoSrc"])])]),d(E),d(h,{onClick:m},{default:v(()=>[M]),_:1}),u.value?(_(),p(w,{key:0,onClose:V,"url-list":r.value},null,8,["url-list"])):b("",!0)])]),_:1},8,["modelValue"])}}});const j=N(U,[["__scopeId","data-v-028bf417"]]);export{j as default};
