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