import{aa as a,N as n,bp as r,bq as i,c as l,v as c}from"./index.27735e87.js";import{s as d}from"./ImagePreview.a54a3be5.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 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};
