import{createVNode as e,defineComponent as d,computed as i}from"vue";import{SwapOutlined as u,RightOutlined as w,LeftOutlined as g,CloseOutlined as O,ZoomOutOutlined as C,ZoomInOutlined as P,RotateRightOutlined as h,RotateLeftOutlined as N}from"@antsoo-lib/icons";import{getTransitionName as a}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(N,null,null),rotateRight:e(h,null,null),zoomIn:e(P,null,null),zoomOut:e(C,null,null),close:e(O,null,null),left:e(g,null,null),right:e(w,null,null),flipX:e(u,null,null),flipY:e(u,{rotate:90},null)},G=()=>({previewPrefixCls:String,preview:x()}),b=d({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:G(),setup(o,{attrs:s,slots:m}){const{prefixCls:n,rootPrefixCls:r}=I("image",o),p=i(()=>`${n.value}-preview`),[f,v]=S(n),c=i(()=>{const{preview:t}=o;if(t===!1)return t;const l=typeof t=="object"?t:{};return{...l,rootClassName:v.value,transitionName:a(r.value,"zoom",l.transitionName),maskTransitionName:a(r.value,"fade",l.maskTransitionName)}});return()=>f(e(R,{...s,...o,preview:c.value,icons:y,previewPrefixCls:p.value},m))}});export{b as default,y as icons};
