function n(r,t,e){let a;switch(t=typeof t=="number"?`${t}px`:t,e=typeof e=="number"?`${e}px`:e,r){case"top":a={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":a={left:0,top:t,bottom:"auto"};break;case"topRight":a={right:0,top:t,bottom:"auto"};break;case"bottom":a={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:e};break;case"bottomLeft":a={left:0,top:"auto",bottom:e};break;default:a={right:0,top:"auto",bottom:e};break}return a}function o(r){return{name:`${r}-fade`}}export{o as getMotion,n as getPlacementStyle};
