import{aa as a,N as n,bo as r,bp as i,c as l,v as c}from"./index.8f93de0e.js";import{s as d}from"./ImagePreview.3829cf34.js";let e;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:e}=r({setup(){const{state:o,toggle:s}=i(),t=()=>{o.images=[]};return()=>l(d,c(o,{onClosed:t,"onUpdate:show":s}),null)}}))}const v=(o,s=0)=>{if(!!a)return e||u(),o=Array.isArray(o)?{images:o,startPosition:s}:o,e.open(n({},m,o)),e};export{v as s};
