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