import{aa as a,N as n,bn as r,bo as i,c as l,E as c}from"./index.5f7ffb46.js";import{s as d}from"./ImagePreview.289405c5.js";let o;const m={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};function u(){({instance:o}=r({setup(){const{state:e,toggle:s}=i(),t=()=>{e.images=[]};return()=>l(d,c(e,{onClosed:t,"onUpdate:show":s}),null)}}))}const v=(e,s=0)=>{if(!!a)return o||u(),e=Array.isArray(e)?{images:e,startPosition:s}:e,o.open(n({},m,e)),o};export{v as s};