import{d as _,p as n,b as h,r as w,a as m,o as I,l as y,ai as b,a2 as x,_ as k,cv as C,i as g,cw as v,__tla as z}from"./index-8c6726e5.js";import{E as V,__tla as B}from"./el-image-viewer-49715a4b.js";let p,L=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{const f=k(_({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,u)=>{const r=V;return m(i)?(I(),y(r,b({key:0},m(l),{onClose:s}),null,16)):x("",!0)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/ImageViewer/src/ImageViewer.vue"]]);let d=null;p=function(o){if(!C)return;const{urlList:t,initialIndex:l=0,infinite:i=!0,hideOnClickModal:s=!1,appendToBody:a=!1,zIndex:u=2e3,show:r=!0}=o,e={},c=document.createElement("div");e.urlList=t,e.initialIndex=l,e.infinite=i,e.hideOnClickModal=s,e.appendToBody=a,e.zIndex=u,e.show=r,document.body.appendChild(c),d=g(f,e),v(d,c)}});export{L as __tla,p as c};
