import e from"../../_util/cssinjs/Keyframes.mjs";import{initMotion as t}from"./motion.mjs";var n=new e(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),r=new e(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),i=new e(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),a=new e(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),o=new e(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),s=new e(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),c=new e(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),l=new e(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),u=new e(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),d=new e(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),f=new e(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),p=new e(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),m={zoom:{inKeyframes:n,outKeyframes:r},"zoom-big":{inKeyframes:i,outKeyframes:a},"zoom-big-fast":{inKeyframes:i,outKeyframes:a},"zoom-left":{inKeyframes:c,outKeyframes:l},"zoom-right":{inKeyframes:u,outKeyframes:d},"zoom-up":{inKeyframes:o,outKeyframes:s},"zoom-down":{inKeyframes:f,outKeyframes:p}},h=(e,n)=>{let{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:a,outKeyframes:o}=m[n];return[t(i,a,o,n===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
        ${i}-enter,
        ${i}-appear
      `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};export{h as initZoomMotion,i as zoomBigIn,a as zoomBigOut,f as zoomDownIn,p as zoomDownOut,n as zoomIn,c as zoomLeftIn,l as zoomLeftOut,r as zoomOut,u as zoomRightIn,d as zoomRightOut,o as zoomUpIn,s as zoomUpOut};