{"version":3,"file":"customStylish.mjs","names":[],"sources":["../../../src/styles/theme/customStylish.ts"],"sourcesContent":["import { type GetCustomStylish, keyframes } from 'antd-style';\n\nimport type { LobeCustomStylish } from '@/types/customStylish';\n\nexport const generateCustomStylish: GetCustomStylish<LobeCustomStylish> = ({\n  css,\n  token,\n  isDarkMode,\n}) => {\n  const gradient = keyframes`\n    0% {\n      background-position: 0% 50%;\n    }\n    50% {\n      background-position: 100% 50%;\n    }\n    100% {\n      background-position: 0% 50%;\n    }\n  `;\n\n  return {\n    active: css`\n      color: ${token.colorText};\n      background: ${token.colorFillSecondary};\n\n      &:hover {\n        color: ${token.colorText};\n        background: ${token.colorFill};\n      }\n    `,\n    blur: css`\n      backdrop-filter: saturate(150%) blur(10px);\n    `,\n    blurStrong: css`\n      backdrop-filter: saturate(150%) blur(36px);\n    `,\n    bottomScrollbar: css`\n      ::-webkit-scrollbar {\n        width: 0;\n        height: 4px;\n        background-color: transparent;\n\n        &-thumb {\n          border-radius: 4px;\n          background-color: ${token.colorFill};\n          transition: background-color 500ms ${token.motionEaseOut};\n        }\n\n        &-corner {\n          display: none;\n          width: 0;\n          height: 0;\n        }\n      }\n    `,\n    disabled: css`\n      cursor: not-allowed;\n      opacity: 0.5;\n    `,\n    gradientAnimation: css`\n      border-radius: inherit;\n      background-image: linear-gradient(\n        -45deg,\n        ${token.gold},\n        ${token.magenta},\n        ${token.geekblue},\n        ${token.cyan}\n      );\n      background-size: 400% 400%;\n      animation: 5s ${gradient} 5s ease infinite;\n    `,\n    noScrollbar: css`\n      ::-webkit-scrollbar {\n        display: none;\n        width: 0;\n        height: 0;\n        background-color: transparent;\n      }\n    `,\n    resetLinkColor: css`\n      cursor: pointer;\n      color: ${token.colorTextSecondary};\n\n      &:hover {\n        color: ${token.colorText};\n      }\n    `,\n    shadow: css`\n      box-shadow:\n        0 1px 0 -1px ${isDarkMode ? token.colorBgLayout : token.colorBorder},\n        0 1px 2px -0.5px ${isDarkMode ? token.colorBgLayout : token.colorBorder},\n        0 2px 2px -1px ${isDarkMode ? token.colorBgLayout : token.colorBorderSecondary},\n        0 3px 6px -4px ${isDarkMode ? token.colorBgLayout : token.colorBorderSecondary};\n    `,\n    variantBorderless: css`\n      border: none;\n      background: none;\n      box-shadow: none;\n\n      &:hover {\n        background: ${token.colorFillTertiary};\n      }\n    `,\n    variantBorderlessDanger: css`\n      border: none;\n      background: none;\n      box-shadow: none;\n\n      &:hover {\n        background: ${token.colorErrorFillTertiary};\n        box-shadow: inset 0 0 0 1px ${token.colorErrorFillTertiary};\n      }\n    `,\n    variantBorderlessWithoutHover: css`\n      border: none;\n      background: none;\n      box-shadow: none;\n    `,\n    variantFilled: css`\n      background: ${token.colorFillTertiary};\n\n      &:hover {\n        background: ${token.colorFillSecondary};\n      }\n    `,\n    variantFilledDanger: css`\n      background: ${token.colorErrorFillTertiary};\n\n      &:hover {\n        background: ${token.colorErrorFillSecondary};\n      }\n    `,\n    variantFilledWithoutHover: css`\n      background: ${token.colorFillTertiary};\n    `,\n    variantOutlined: css`\n      border: 1px solid ${token.colorBorderSecondary};\n      background: ${token.colorBgContainer};\n\n      &:hover {\n        border: 1px solid ${token.colorBorder};\n        background: ${token.colorBgContainer};\n      }\n    `,\n\n    variantOutlinedDanger: css`\n      border: 1px solid ${token.colorErrorBorder};\n\n      &:hover {\n        border: 1px solid ${token.colorErrorBorder};\n      }\n    `,\n    variantOutlinedWithoutHover: css`\n      border: 1px solid ${token.colorBorderSecondary};\n      background: ${token.colorBgContainer};\n    `,\n  };\n};\n"],"mappings":";;AAIA,MAAa,yBAA8D,EACzE,KACA,OACA,iBACI;CACJ,MAAM,WAAW,SAAS;;;;;;;;;;;AAY1B,QAAO;EACL,QAAQ,GAAG;eACA,MAAM,UAAU;oBACX,MAAM,mBAAmB;;;iBAG5B,MAAM,UAAU;sBACX,MAAM,UAAU;;;EAGlC,MAAM,GAAG;;;EAGT,YAAY,GAAG;;;EAGf,iBAAiB,GAAG;;;;;;;;8BAQM,MAAM,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