import{d as _,ai as n,L as h,r as w,a as m,o as x,x as b,al as y,R as I,_ as g,bc as z,g as C,bd as k,__tla as L}from"./index-7d5b26d3.js";import{E as V,__tla as v}from"./el-image-viewer-2f0c9a58.js";let f,B=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return v}catch{}})()]).then(async()=>{const p=g(_({name:"ImageViewer",__name:"ImageViewer",props:{urlList:{type:Array,default:()=>[]},zIndex:n.number.def(200),initialIndex:n.number.def(0),infinite:n.bool.def(!0),hideOnClickModal:n.bool.def(!1),appendToBody:n.bool.def(!1),show:n.bool.def(!1)},setup(o){const t=o,l=h(()=>{const a={...t};return delete a.show,a}),i=w(t.show),s=()=>{i.value=!1};return(a,c)=>{const r=V;return m(i)?(x(),b(r,y({key:0},m(l),{onClose:s}),null,16)):I("",!0)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/components/ImageViewer/src/ImageViewer.vue"]]);let d=null;f=function(o){if(!z)return;const{urlList:t,initialIndex:l=0,infinite:i=!0,hideOnClickModal:s=!1,appendToBody:a=!1,zIndex:c=2e3,show:r=!0}=o,e={},u=document.createElement("div");e.urlList=t,e.initialIndex=l,e.infinite=i,e.hideOnClickModal=s,e.appendToBody=a,e.zIndex=c,e.show=r,document.body.appendChild(u),d=C(p,e),k(d,u)}});export{B as __tla,f as c};
