const e=require("../_util/classNames.js"),t=require("../locale/en_US.js"),n=require("../config-provider/hooks/useConfigInject.js"),r=require("../_util/transition.js"),i=require("../vc-image/src/Image.js"),a=require("../vc-image/index.js"),o=require("./style/index.js"),s=require("./PreviewGroup.js");let c=require("vue"),l=require("@antsoo-lib/icons");var u=(0,c.defineComponent)({name:`AImage`,inheritAttrs:!1,props:i.imageProps(),setup(i,{slots:u,attrs:d}){let{prefixCls:f,rootPrefixCls:p,configProvider:m}=n.default(`image`,i),[h,g]=o.default(f),_=(0,c.computed)(()=>{let{preview:e}=i;if(e===!1)return e;let t=typeof e==`object`?e:{};return{icons:s.icons,...t,transitionName:r.getTransitionName(p.value,`zoom`,t.transitionName),maskTransitionName:r.getTransitionName(p.value,`fade`,t.maskTransitionName)}});return()=>{let n=m.locale?.value?.Image||t.default.Image,r=()=>(0,c.createVNode)(`div`,{class:`${f.value}-mask-info`},[(0,c.createVNode)(l.EyeOutlined,null,null),n?.preview]),{previewMask:o=u.previewMask||r}=i;return h((0,c.createVNode)(a.default,{...d,...i,prefixCls:f.value,preview:_.value,rootClassName:e.default(i.rootClassName,g.value)},{...u,previewMask:typeof o==`function`?o:null}))}}});u.PreviewGroup=s.default,u.install=function(e){return e.component(u.name,u),e.component(u.PreviewGroup.name,u.PreviewGroup),e},exports.ImagePreviewGroup=s.default,exports.default=u,exports.imageProps=i.imageProps;