import{anyType as e}from"../_util/type.mjs";import t from"../config-provider/hooks/useConfigInject.mjs";import{getTransitionName as n}from"../_util/transition.mjs";import r from"../vc-image/src/PreviewGroup.mjs";import i from"./style/index.mjs";import{computed as a,createVNode as o,defineComponent as s}from"vue";import{CloseOutlined as c,LeftOutlined as l,RightOutlined as u,RotateLeftOutlined as d,RotateRightOutlined as f,SwapOutlined as p,ZoomInOutlined as m,ZoomOutOutlined as h}from"@antsoo-lib/icons";var g={rotateLeft:o(d,null,null),rotateRight:o(f,null,null),zoomIn:o(m,null,null),zoomOut:o(h,null,null),close:o(c,null,null),left:o(l,null,null),right:o(u,null,null),flipX:o(p,null,null),flipY:o(p,{rotate:90},null)},_=s({compatConfig:{MODE:3},name:`AImagePreviewGroup`,inheritAttrs:!1,props:{previewPrefixCls:String,preview:e()},setup(e,{attrs:s,slots:c}){let{prefixCls:l,rootPrefixCls:u}=t(`image`,e),d=a(()=>`${l.value}-preview`),[f,p]=i(l),m=a(()=>{let{preview:t}=e;if(t===!1)return t;let r=typeof t==`object`?t:{};return{...r,rootClassName:p.value,transitionName:n(u.value,`zoom`,r.transitionName),maskTransitionName:n(u.value,`fade`,r.maskTransitionName)}});return()=>f(o(r,{...s,...e,preview:m.value,icons:g,previewPrefixCls:d.value},c))}});export{_ as default,g as icons};