import{aa as a,N as n,bi as r,bj as i,c as l,E as c}from"./index.d1dca38b.js";import{s as d}from"./ImagePreview.f958365a.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,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 g=(e,s=0)=>{if(!!a)return o||u(),e=Array.isArray(e)?{images:e,startPosition:s}:e,o.open(n({},m,e)),o};export{g as s};
