{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genMotionStyle from './motion';\n// =============================== Base ===============================\nconst genDrawerStyle = token => {\n  const {\n    componentCls,\n    zIndexPopup,\n    colorBgMask,\n    colorBgElevated,\n    motionDurationSlow,\n    motionDurationMid,\n    padding,\n    paddingLG,\n    fontSizeLG,\n    lineHeightLG,\n    lineWidth,\n    lineType,\n    colorSplit,\n    marginSM,\n    colorIcon,\n    colorIconHover,\n    colorText,\n    fontWeightStrong,\n    footerPaddingBlock,\n    footerPaddingInline\n  } = token;\n  const wrapperCls = `${componentCls}-content-wrapper`;\n  return {\n    [componentCls]: {\n      position: 'fixed',\n      inset: 0,\n      zIndex: zIndexPopup,\n      pointerEvents: 'none',\n      '&-pure': {\n        position: 'relative',\n        background: colorBgElevated,\n        [`&${componentCls}-left`]: {\n          boxShadow: token.boxShadowDrawerLeft\n        },\n        [`&${componentCls}-right`]: {\n          boxShadow: token.boxShadowDrawerRight\n        },\n        [`&${componentCls}-top`]: {\n          boxShadow: token.boxShadowDrawerUp\n        },\n        [`&${componentCls}-bottom`]: {\n          boxShadow: token.boxShadowDrawerDown\n        }\n      },\n      '&-inline': {\n        position: 'absolute'\n      },\n      // ====================== Mask ======================\n      [`${componentCls}-mask`]: {\n        position: 'absolute',\n        inset: 0,\n        zIndex: zIndexPopup,\n        background: colorBgMask,\n        pointerEvents: 'auto'\n      },\n      // ==================== Content =====================\n      [wrapperCls]: {\n        position: 'absolute',\n        zIndex: zIndexPopup,\n        maxWidth: '100vw',\n        transition: `all ${motionDurationSlow}`,\n        '&-hidden': {\n          display: 'none'\n        }\n      },\n      // Placement\n      [`&-left > ${wrapperCls}`]: {\n        top: 0,\n        bottom: 0,\n        left: {\n          _skip_check_: true,\n          value: 0\n        },\n        boxShadow: token.boxShadowDrawerLeft\n      },\n      [`&-right > ${wrapperCls}`]: {\n        top: 0,\n        right: {\n          _skip_check_: true,\n          value: 0\n        },\n        bottom: 0,\n        boxShadow: token.boxShadowDrawerRight\n      },\n      [`&-top > ${wrapperCls}`]: {\n        top: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerUp\n      },\n      [`&-bottom > ${wrapperCls}`]: {\n        bottom: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerDown\n      },\n      [`${componentCls}-content`]: {\n        width: '100%',\n        height: '100%',\n        overflow: 'auto',\n        background: colorBgElevated,\n        pointerEvents: 'auto'\n      },\n      // ===================== Panel ======================\n      [`${componentCls}-wrapper-body`]: {\n        display: 'flex',\n        flexDirection: 'column',\n        width: '100%',\n        height: '100%'\n      },\n      // Header\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        flex: 0,\n        alignItems: 'center',\n        padding: `${padding}px ${paddingLG}px`,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,\n        '&-title': {\n          display: 'flex',\n          flex: 1,\n          alignItems: 'center',\n          minWidth: 0,\n          minHeight: 0\n        }\n      },\n      [`${componentCls}-extra`]: {\n        flex: 'none'\n      },\n      [`${componentCls}-close`]: {\n        display: 'inline-block',\n        marginInlineEnd: marginSM,\n        color: colorIcon,\n        fontWeight: fontWeightStrong,\n        fontSize: fontSizeLG,\n        fontStyle: 'normal',\n        lineHeight: 1,\n        textAlign: 'center',\n        textTransform: 'none',\n        textDecoration: 'none',\n        background: 'transparent',\n        border: 0,\n        outline: 0,\n        cursor: 'pointer',\n        transition: `color ${motionDurationMid}`,\n        textRendering: 'auto',\n        '&:focus, &:hover': {\n          color: colorIconHover,\n          textDecoration: 'none'\n        }\n      },\n      [`${componentCls}-title`]: {\n        flex: 1,\n        margin: 0,\n        color: colorText,\n        fontWeight: token.fontWeightStrong,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG\n      },\n      // Body\n      [`${componentCls}-body`]: {\n        flex: 1,\n        minWidth: 0,\n        minHeight: 0,\n        padding: paddingLG,\n        overflow: 'auto'\n      },\n      // Footer\n      [`${componentCls}-footer`]: {\n        flexShrink: 0,\n        padding: `${footerPaddingBlock}px ${footerPaddingInline}px`,\n        borderTop: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      // ====================== RTL =======================\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Drawer', token => {\n  const drawerToken = mergeToken(token, {});\n  return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase,\n  footerPaddingBlock: token.paddingXS,\n  footerPaddingInline: token.padding\n}));","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genMotionStyle","genDrawerStyle","token","componentCls","zIndexPopup","colorBgMask","colorBgElevated","motionDurationSlow","motionDurationMid","padding","paddingLG","fontSizeLG","lineHeightLG","lineWidth","lineType","colorSplit","marginSM","colorIcon","colorIconHover","colorText","fontWeightStrong","footerPaddingBlock","footerPaddingInline","wrapperCls","position","inset","zIndex","pointerEvents","background","boxShadow","boxShadowDrawerLeft","boxShadowDrawerRight","boxShadowDrawerUp","boxShadowDrawerDown","maxWidth","transition","display","top","bottom","left","_skip_check_","value","right","insetInline","width","height","overflow","flexDirection","flex","alignItems","fontSize","lineHeight","borderBottom","minWidth","minHeight","marginInlineEnd","color","fontWeight","fontStyle","textAlign","textTransform","textDecoration","border","outline","cursor","textRendering","margin","flexShrink","borderTop","direction","drawerToken","zIndexPopupBase","paddingXS"],"sources":["/Users/chrishaack/UC_Trains_Voice/react-demo/node_modules/antd/es/drawer/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genMotionStyle from './motion';\n// =============================== Base ===============================\nconst genDrawerStyle = token => {\n  const {\n    componentCls,\n    zIndexPopup,\n    colorBgMask,\n    colorBgElevated,\n    motionDurationSlow,\n    motionDurationMid,\n    padding,\n    paddingLG,\n    fontSizeLG,\n    lineHeightLG,\n    lineWidth,\n    lineType,\n    colorSplit,\n    marginSM,\n    colorIcon,\n    colorIconHover,\n    colorText,\n    fontWeightStrong,\n    footerPaddingBlock,\n    footerPaddingInline\n  } = token;\n  const wrapperCls = `${componentCls}-content-wrapper`;\n  return {\n    [componentCls]: {\n      position: 'fixed',\n      inset: 0,\n      zIndex: zIndexPopup,\n      pointerEvents: 'none',\n      '&-pure': {\n        position: 'relative',\n        background: colorBgElevated,\n        [`&${componentCls}-left`]: {\n          boxShadow: token.boxShadowDrawerLeft\n        },\n        [`&${componentCls}-right`]: {\n          boxShadow: token.boxShadowDrawerRight\n        },\n        [`&${componentCls}-top`]: {\n          boxShadow: token.boxShadowDrawerUp\n        },\n        [`&${componentCls}-bottom`]: {\n          boxShadow: token.boxShadowDrawerDown\n        }\n      },\n      '&-inline': {\n        position: 'absolute'\n      },\n      // ====================== Mask ======================\n      [`${componentCls}-mask`]: {\n        position: 'absolute',\n        inset: 0,\n        zIndex: zIndexPopup,\n        background: colorBgMask,\n        pointerEvents: 'auto'\n      },\n      // ==================== Content =====================\n      [wrapperCls]: {\n        position: 'absolute',\n        zIndex: zIndexPopup,\n        maxWidth: '100vw',\n        transition: `all ${motionDurationSlow}`,\n        '&-hidden': {\n          display: 'none'\n        }\n      },\n      // Placement\n      [`&-left > ${wrapperCls}`]: {\n        top: 0,\n        bottom: 0,\n        left: {\n          _skip_check_: true,\n          value: 0\n        },\n        boxShadow: token.boxShadowDrawerLeft\n      },\n      [`&-right > ${wrapperCls}`]: {\n        top: 0,\n        right: {\n          _skip_check_: true,\n          value: 0\n        },\n        bottom: 0,\n        boxShadow: token.boxShadowDrawerRight\n      },\n      [`&-top > ${wrapperCls}`]: {\n        top: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerUp\n      },\n      [`&-bottom > ${wrapperCls}`]: {\n        bottom: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerDown\n      },\n      [`${componentCls}-content`]: {\n        width: '100%',\n        height: '100%',\n        overflow: 'auto',\n        background: colorBgElevated,\n        pointerEvents: 'auto'\n      },\n      // ===================== Panel ======================\n      [`${componentCls}-wrapper-body`]: {\n        display: 'flex',\n        flexDirection: 'column',\n        width: '100%',\n        height: '100%'\n      },\n      // Header\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        flex: 0,\n        alignItems: 'center',\n        padding: `${padding}px ${paddingLG}px`,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,\n        '&-title': {\n          display: 'flex',\n          flex: 1,\n          alignItems: 'center',\n          minWidth: 0,\n          minHeight: 0\n        }\n      },\n      [`${componentCls}-extra`]: {\n        flex: 'none'\n      },\n      [`${componentCls}-close`]: {\n        display: 'inline-block',\n        marginInlineEnd: marginSM,\n        color: colorIcon,\n        fontWeight: fontWeightStrong,\n        fontSize: fontSizeLG,\n        fontStyle: 'normal',\n        lineHeight: 1,\n        textAlign: 'center',\n        textTransform: 'none',\n        textDecoration: 'none',\n        background: 'transparent',\n        border: 0,\n        outline: 0,\n        cursor: 'pointer',\n        transition: `color ${motionDurationMid}`,\n        textRendering: 'auto',\n        '&:focus, &:hover': {\n          color: colorIconHover,\n          textDecoration: 'none'\n        }\n      },\n      [`${componentCls}-title`]: {\n        flex: 1,\n        margin: 0,\n        color: colorText,\n        fontWeight: token.fontWeightStrong,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG\n      },\n      // Body\n      [`${componentCls}-body`]: {\n        flex: 1,\n        minWidth: 0,\n        minHeight: 0,\n        padding: paddingLG,\n        overflow: 'auto'\n      },\n      // Footer\n      [`${componentCls}-footer`]: {\n        flexShrink: 0,\n        padding: `${footerPaddingBlock}px ${footerPaddingInline}px`,\n        borderTop: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      // ====================== RTL =======================\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Drawer', token => {\n  const drawerToken = mergeToken(token, {});\n  return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase,\n  footerPaddingBlock: token.paddingXS,\n  footerPaddingInline: token.padding\n}));"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,cAAc,MAAM,UAAU;AACrC;AACA,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,YAAY;IACZC,WAAW;IACXC,WAAW;IACXC,eAAe;IACfC,kBAAkB;IAClBC,iBAAiB;IACjBC,OAAO;IACPC,SAAS;IACTC,UAAU;IACVC,YAAY;IACZC,SAAS;IACTC,QAAQ;IACRC,UAAU;IACVC,QAAQ;IACRC,SAAS;IACTC,cAAc;IACdC,SAAS;IACTC,gBAAgB;IAChBC,kBAAkB;IAClBC;EACF,CAAC,GAAGpB,KAAK;EACT,MAAMqB,UAAU,GAAI,GAAEpB,YAAa,kBAAiB;EACpD,OAAO;IACL,CAACA,YAAY,GAAG;MACdqB,QAAQ,EAAE,OAAO;MACjBC,KAAK,EAAE,CAAC;MACRC,MAAM,EAAEtB,WAAW;MACnBuB,aAAa,EAAE,MAAM;MACrB,QAAQ,EAAE;QACRH,QAAQ,EAAE,UAAU;QACpBI,UAAU,EAAEtB,eAAe;QAC3B,CAAE,IAAGH,YAAa,OAAM,GAAG;UACzB0B,SAAS,EAAE3B,KAAK,CAAC4B;QACnB,CAAC;QACD,CAAE,IAAG3B,YAAa,QAAO,GAAG;UAC1B0B,SAAS,EAAE3B,KAAK,CAAC6B;QACnB,CAAC;QACD,CAAE,IAAG5B,YAAa,MAAK,GAAG;UACxB0B,SAAS,EAAE3B,KAAK,CAAC8B;QACnB,CAAC;QACD,CAAE,IAAG7B,YAAa,SAAQ,GAAG;UAC3B0B,SAAS,EAAE3B,KAAK,CAAC+B;QACnB;MACF,CAAC;MACD,UAAU,EAAE;QACVT,QAAQ,EAAE;MACZ,CAAC;MACD;MACA,CAAE,GAAErB,YAAa,OAAM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