import { initSlideMotion as n } from "../../style/motion/slide.mjs";
const a = (t) => {
  const {
    componentCls: o,
    motionDurationSlow: i
  } = t;
  return [
    {
      [o]: {
        [`${o}-switch`]: {
          "&-appear, &-enter": {
            transition: "none",
            "&-start": {
              opacity: 0
            },
            "&-active": {
              opacity: 1,
              transition: `opacity ${i}`
            }
          },
          "&-leave": {
            position: "absolute",
            transition: "none",
            inset: 0,
            "&-start": {
              opacity: 1
            },
            "&-active": {
              opacity: 0,
              transition: `opacity ${i}`
            }
          }
        }
      }
    },
    // Follow code may reuse in other components
    [n(t, "slide-up"), n(t, "slide-down")]
  ];
}, s = a;
export {
  s as default
};
