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