{"ast":null,"code":"import { genComponentStyleHook } from '../../theme/internal';\nimport genLayoutLightStyle from './light';\nconst genLayoutStyle = token => {\n  const {\n    antCls,\n    // .ant\n    componentCls,\n    // .ant-layout\n    colorText,\n    triggerColor,\n    footerBg,\n    triggerBg,\n    headerHeight,\n    headerPadding,\n    headerColor,\n    footerPadding,\n    triggerHeight,\n    zeroTriggerHeight,\n    zeroTriggerWidth,\n    motionDurationMid,\n    motionDurationSlow,\n    fontSize,\n    borderRadius,\n    bodyBg,\n    headerBg,\n    siderBg\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({\n      display: 'flex',\n      flex: 'auto',\n      flexDirection: 'column',\n      /* fix firefox can't set height smaller than content on flex item */\n      minHeight: 0,\n      background: bodyBg,\n      '&, *': {\n        boxSizing: 'border-box'\n      },\n      [`&${componentCls}-has-sider`]: {\n        flexDirection: 'row',\n        [`> ${componentCls}, > ${componentCls}-content`]: {\n          // https://segmentfault.com/a/1190000019498300\n          width: 0\n        }\n      },\n      [`${componentCls}-header, &${componentCls}-footer`]: {\n        flex: '0 0 auto'\n      },\n      [`${componentCls}-sider`]: {\n        position: 'relative',\n        // fix firefox can't set width smaller than content on flex item\n        minWidth: 0,\n        background: siderBg,\n        transition: `all ${motionDurationMid}, background 0s`,\n        '&-children': {\n          height: '100%',\n          // Hack for fixing margin collapse bug\n          // https://github.com/ant-design/ant-design/issues/7967\n          // solution from https://stackoverflow.com/a/33132624/3040605\n          marginTop: -0.1,\n          paddingTop: 0.1,\n          [`${antCls}-menu${antCls}-menu-inline-collapsed`]: {\n            width: 'auto'\n          }\n        },\n        '&-has-trigger': {\n          paddingBottom: triggerHeight\n        },\n        '&-right': {\n          order: 1\n        },\n        '&-trigger': {\n          position: 'fixed',\n          bottom: 0,\n          zIndex: 1,\n          height: triggerHeight,\n          color: triggerColor,\n          lineHeight: `${triggerHeight}px`,\n          textAlign: 'center',\n          background: triggerBg,\n          cursor: 'pointer',\n          transition: `all ${motionDurationMid}`\n        },\n        '&-zero-width': {\n          '> *': {\n            overflow: 'hidden'\n          },\n          '&-trigger': {\n            position: 'absolute',\n            top: headerHeight,\n            insetInlineEnd: -zeroTriggerWidth,\n            zIndex: 1,\n            width: zeroTriggerWidth,\n            height: zeroTriggerHeight,\n            color: triggerColor,\n            fontSize: token.fontSizeXL,\n            display: 'flex',\n            alignItems: 'center',\n            justifyContent: 'center',\n            background: siderBg,\n            borderStartStartRadius: 0,\n            borderStartEndRadius: borderRadius,\n            borderEndEndRadius: borderRadius,\n            borderEndStartRadius: 0,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&::after': {\n              position: 'absolute',\n              inset: 0,\n              background: 'transparent',\n              transition: `all ${motionDurationSlow}`,\n              content: '\"\"'\n            },\n            '&:hover::after': {\n              background: `rgba(255, 255, 255, 0.2)`\n            },\n            '&-right': {\n              insetInlineStart: -zeroTriggerWidth,\n              borderStartStartRadius: borderRadius,\n              borderStartEndRadius: 0,\n              borderEndEndRadius: 0,\n              borderEndStartRadius: borderRadius\n            }\n          }\n        }\n      }\n    }, genLayoutLightStyle(token)), {\n      // RTL\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    }),\n    // ==================== Header ====================\n    [`${componentCls}-header`]: {\n      height: headerHeight,\n      padding: headerPadding,\n      color: headerColor,\n      lineHeight: `${headerHeight}px`,\n      background: headerBg,\n      // Other components/menu/style/index.less line:686\n      // Integration with header element so menu items have the same height\n      [`${antCls}-menu`]: {\n        lineHeight: 'inherit'\n      }\n    },\n    // ==================== Footer ====================\n    [`${componentCls}-footer`]: {\n      padding: footerPadding,\n      color: colorText,\n      fontSize,\n      background: footerBg\n    },\n    // =================== Content ====================\n    [`${componentCls}-content`]: {\n      flex: 'auto',\n      // fix firefox can't set height smaller than content on flex item\n      minHeight: 0\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Layout', token => [genLayoutStyle(token)], token => {\n  const {\n    colorBgLayout,\n    controlHeight,\n    controlHeightLG,\n    colorText,\n    controlHeightSM,\n    marginXXS,\n    colorTextLightSolid,\n    colorBgContainer\n  } = token;\n  const paddingInline = controlHeightLG * 1.25;\n  return {\n    // Deprecated\n    colorBgHeader: '#001529',\n    colorBgBody: colorBgLayout,\n    colorBgTrigger: '#002140',\n    bodyBg: colorBgLayout,\n    headerBg: '#001529',\n    headerHeight: controlHeight * 2,\n    headerPadding: `0 ${paddingInline}px`,\n    headerColor: colorText,\n    footerPadding: `${controlHeightSM}px ${paddingInline}px`,\n    footerBg: colorBgLayout,\n    siderBg: '#001529',\n    triggerHeight: controlHeightLG + marginXXS * 2,\n    triggerBg: '#002140',\n    triggerColor: colorTextLightSolid,\n    zeroTriggerWidth: controlHeightLG,\n    zeroTriggerHeight: controlHeightLG,\n    lightSiderBg: colorBgContainer,\n    lightTriggerBg: colorBgContainer,\n    lightTriggerColor: colorText\n  };\n}, {\n  deprecatedTokens: [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']]\n});","map":{"version":3,"names":["genComponentStyleHook","genLayoutLightStyle","genLayoutStyle","token","antCls","componentCls","colorText","triggerColor","footerBg","triggerBg","headerHeight","headerPadding","headerColor","footerPadding","triggerHeight","zeroTriggerHeight","zeroTriggerWidth","motionDurationMid","motionDurationSlow","fontSize","borderRadius","bodyBg","headerBg","siderBg","Object","assign","display","flex","flexDirection","minHeight","background","boxSizing","width","position","minWidth","transition","height","marginTop","paddingTop","paddingBottom","order","bottom","zIndex","color","lineHeight","textAlign","cursor","overflow","top","insetInlineEnd","fontSizeXL","alignItems","justifyContent","borderStartStartRadius","borderStartEndRadius","borderEndEndRadius","borderEndStartRadius","inset","content","insetInlineStart","direction","padding","colorBgLayout","controlHeight","controlHeightLG","controlHeightSM","marginXXS","colorTextLightSolid","colorBgContainer","paddingInline","colorBgHeader","colorBgBody","colorBgTrigger","lightSiderBg","lightTriggerBg","lightTriggerColor","deprecatedTokens"],"sources":["/var/www/gavt/node_modules/antd/es/layout/style/index.js"],"sourcesContent":["import { genComponentStyleHook } from '../../theme/internal';\nimport genLayoutLightStyle from './light';\nconst genLayoutStyle = token => {\n  const {\n    antCls,\n    // .ant\n    componentCls,\n    // .ant-layout\n    colorText,\n    triggerColor,\n    footerBg,\n    triggerBg,\n    headerHeight,\n    headerPadding,\n    headerColor,\n    footerPadding,\n    triggerHeight,\n    zeroTriggerHeight,\n    zeroTriggerWidth,\n    motionDurationMid,\n    motionDurationSlow,\n    fontSize,\n    borderRadius,\n    bodyBg,\n    headerBg,\n    siderBg\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({\n      display: 'flex',\n      flex: 'auto',\n      flexDirection: 'column',\n      /* fix firefox can't set height smaller than content on flex item */\n      minHeight: 0,\n      background: bodyBg,\n      '&, *': {\n        boxSizing: 'border-box'\n      },\n      [`&${componentCls}-has-sider`]: {\n        flexDirection: 'row',\n        [`> ${componentCls}, > ${componentCls}-content`]: {\n          // https://segmentfault.com/a/1190000019498300\n          width: 0\n        }\n      },\n      [`${componentCls}-header, &${componentCls}-footer`]: {\n        flex: '0 0 auto'\n      },\n      [`${componentCls}-sider`]: {\n        position: 'relative',\n        // fix firefox can't set width smaller than content on flex item\n        minWidth: 0,\n        background: siderBg,\n        transition: `all ${motionDurationMid}, background 0s`,\n        '&-children': {\n          height: '100%',\n          // Hack for fixing margin collapse bug\n          // https://github.com/ant-design/ant-design/issues/7967\n          // solution from https://stackoverflow.com/a/33132624/3040605\n          marginTop: -0.1,\n          paddingTop: 0.1,\n          [`${antCls}-menu${antCls}-menu-inline-collapsed`]: {\n            width: 'auto'\n          }\n        },\n        '&-has-trigger': {\n          paddingBottom: triggerHeight\n        },\n        '&-right': {\n          order: 1\n        },\n        '&-trigger': {\n          position: 'fixed',\n          bottom: 0,\n          zIndex: 1,\n          height: triggerHeight,\n          color: triggerColor,\n          lineHeight: `${triggerHeight}px`,\n          textAlign: 'center',\n          background: triggerBg,\n          cursor: 'pointer',\n          transition: `all ${motionDurationMid}`\n        },\n        '&-zero-width': {\n          '> *': {\n            overflow: 'hidden'\n          },\n          '&-trigger': {\n            position: 'absolute',\n            top: headerHeight,\n            insetInlineEnd: -zeroTriggerWidth,\n            zIndex: 1,\n            width: zeroTriggerWidth,\n            height: zeroTriggerHeight,\n            color: triggerColor,\n            fontSize: token.fontSizeXL,\n            display: 'flex',\n            alignItems: 'center',\n            justifyContent: 'center',\n            background: siderBg,\n            borderStartStartRadius: 0,\n            borderStartEndRadius: borderRadius,\n            borderEndEndRadius: borderRadius,\n            borderEndStartRadius: 0,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&::after': {\n              position: 'absolute',\n              inset: 0,\n              background: 'transparent',\n              transition: `all ${motionDurationSlow}`,\n              content: '\"\"'\n            },\n            '&:hover::after': {\n              background: `rgba(255, 255, 255, 0.2)`\n            },\n            '&-right': {\n              insetInlineStart: -zeroTriggerWidth,\n              borderStartStartRadius: borderRadius,\n              borderStartEndRadius: 0,\n              borderEndEndRadius: 0,\n              borderEndStartRadius: borderRadius\n            }\n          }\n        }\n      }\n    }, genLayoutLightStyle(token)), {\n      // RTL\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    }),\n    // ==================== Header ====================\n    [`${componentCls}-header`]: {\n      height: headerHeight,\n      padding: headerPadding,\n      color: headerColor,\n      lineHeight: `${headerHeight}px`,\n      background: headerBg,\n      // Other components/menu/style/index.less line:686\n      // Integration with header element so menu items have the same height\n      [`${antCls}-menu`]: {\n        lineHeight: 'inherit'\n      }\n    },\n    // ==================== Footer ====================\n    [`${componentCls}-footer`]: {\n      padding: footerPadding,\n      color: colorText,\n      fontSize,\n      background: footerBg\n    },\n    // =================== Content ====================\n    [`${componentCls}-content`]: {\n      flex: 'auto',\n      // fix firefox can't set height smaller than content on flex item\n      minHeight: 0\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Layout', token => [genLayoutStyle(token)], token => {\n  const {\n    colorBgLayout,\n    controlHeight,\n    controlHeightLG,\n    colorText,\n    controlHeightSM,\n    marginXXS,\n    colorTextLightSolid,\n    colorBgContainer\n  } = token;\n  const paddingInline = controlHeightLG * 1.25;\n  return {\n    // Deprecated\n    colorBgHeader: '#001529',\n    colorBgBody: colorBgLayout,\n    colorBgTrigger: '#002140',\n    bodyBg: colorBgLayout,\n    headerBg: '#001529',\n    headerHeight: controlHeight * 2,\n    headerPadding: `0 ${paddingInline}px`,\n    headerColor: colorText,\n    footerPadding: `${controlHeightSM}px ${paddingInline}px`,\n    footerBg: colorBgLayout,\n    siderBg: '#001529',\n    triggerHeight: controlHeightLG + marginXXS * 2,\n    triggerBg: '#002140',\n    triggerColor: colorTextLightSolid,\n    zeroTriggerWidth: controlHeightLG,\n    zeroTriggerHeight: controlHeightLG,\n    lightSiderBg: colorBgContainer,\n    lightTriggerBg: colorBgContainer,\n    lightTriggerColor: colorText\n  };\n}, {\n  deprecatedTokens: [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']]\n});"],"mappings":"AAAA,SAASA,qBAAqB,QAAQ,sBAAsB;AAC5D,OAAOC,mBAAmB,MAAM,SAAS;AACzC,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,MAAM;IACN;IACAC,YAAY;IACZ;IACAC,SAAS;IACTC,YAAY;IACZC,QAAQ;IACRC,SAAS;IACTC,YAAY;IACZC,aAAa;IACbC,WAAW;IACXC,aAAa;IACbC,aAAa;IACbC,iBAAiB;IACjBC,gBAAgB;IAChBC,iBAAiB;IACjBC,kBAAkB;IAClBC,QAAQ;IACRC,YAAY;IACZC,MAAM;IACNC,QAAQ;IACRC;EACF,CAAC,GAAGpB,KAAK;EACT,OAAO;IACL,CAACE,YAAY,GAAGmB,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC;MAC1CC,OAAO,EAAE,MAAM;MACfC,IAAI,EAAE,MAAM;MACZC,aAAa,EAAE,QAAQ;MACvB;MACAC,SAAS,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