{"ast":null,"code":"import { resetComponent, textEllipsis } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBorderedStyle = token => {\n  const {\n    componentCls,\n    labelBg\n  } = token;\n  return {\n    [`&${componentCls}-bordered`]: {\n      [`> ${componentCls}-view`]: {\n        border: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '> table': {\n          tableLayout: 'auto',\n          borderCollapse: 'collapse'\n        },\n        [`${componentCls}-row`]: {\n          borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n          '&:last-child': {\n            borderBottom: 'none'\n          },\n          [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {\n            padding: `${token.padding}px ${token.paddingLG}px`,\n            borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n            '&:last-child': {\n              borderInlineEnd: 'none'\n            }\n          },\n          [`> ${componentCls}-item-label`]: {\n            color: token.colorTextSecondary,\n            backgroundColor: labelBg,\n            '&::after': {\n              display: 'none'\n            }\n          }\n        }\n      },\n      [`&${componentCls}-middle`]: {\n        [`${componentCls}-row`]: {\n          [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {\n            padding: `${token.paddingSM}px ${token.paddingLG}px`\n          }\n        }\n      },\n      [`&${componentCls}-small`]: {\n        [`${componentCls}-row`]: {\n          [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {\n            padding: `${token.paddingXS}px ${token.padding}px`\n          }\n        }\n      }\n    }\n  };\n};\nconst genDescriptionStyles = token => {\n  const {\n    componentCls,\n    extraColor,\n    itemPaddingBottom,\n    colonMarginRight,\n    colonMarginLeft,\n    titleMarginBottom\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBorderedStyle(token)), {\n      [`&-rtl`]: {\n        direction: 'rtl'\n      },\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        alignItems: 'center',\n        marginBottom: titleMarginBottom\n      },\n      [`${componentCls}-title`]: Object.assign(Object.assign({}, textEllipsis), {\n        flex: 'auto',\n        color: token.titleColor,\n        fontWeight: token.fontWeightStrong,\n        fontSize: token.fontSizeLG,\n        lineHeight: token.lineHeightLG\n      }),\n      [`${componentCls}-extra`]: {\n        marginInlineStart: 'auto',\n        color: extraColor,\n        fontSize: token.fontSize\n      },\n      [`${componentCls}-view`]: {\n        width: '100%',\n        borderRadius: token.borderRadiusLG,\n        table: {\n          width: '100%',\n          tableLayout: 'fixed'\n        }\n      },\n      [`${componentCls}-row`]: {\n        '> th, > td': {\n          paddingBottom: itemPaddingBottom\n        },\n        '&:last-child': {\n          borderBottom: 'none'\n        }\n      },\n      [`${componentCls}-item-label`]: {\n        color: token.colorTextTertiary,\n        fontWeight: 'normal',\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        textAlign: `start`,\n        '&::after': {\n          content: '\":\"',\n          position: 'relative',\n          top: -0.5,\n          marginInline: `${colonMarginLeft}px ${colonMarginRight}px`\n        },\n        [`&${componentCls}-item-no-colon::after`]: {\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-no-label`]: {\n        '&::after': {\n          margin: 0,\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-content`]: {\n        display: 'table-cell',\n        flex: 1,\n        color: token.contentColor,\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        wordBreak: 'break-word',\n        overflowWrap: 'break-word'\n      },\n      [`${componentCls}-item`]: {\n        paddingBottom: 0,\n        verticalAlign: 'top',\n        '&-container': {\n          display: 'flex',\n          [`${componentCls}-item-label`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          },\n          [`${componentCls}-item-content`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          }\n        }\n      },\n      '&-middle': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingSM\n          }\n        }\n      },\n      '&-small': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingXS\n          }\n        }\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Descriptions', token => {\n  const descriptionToken = mergeToken(token, {});\n  return [genDescriptionStyles(descriptionToken)];\n}, token => ({\n  labelBg: token.colorFillAlter,\n  titleColor: token.colorText,\n  titleMarginBottom: token.fontSizeSM * token.lineHeightSM,\n  itemPaddingBottom: token.padding,\n  colonMarginRight: token.marginXS,\n  colonMarginLeft: token.marginXXS / 2,\n  contentColor: token.colorText,\n  extraColor: token.colorText\n}));","map":{"version":3,"names":["resetComponent","textEllipsis","genComponentStyleHook","mergeToken","genBorderedStyle","token","componentCls","labelBg","border","lineWidth","lineType","colorSplit","tableLayout","borderCollapse","borderBottom","padding","paddingLG","borderInlineEnd","color","colorTextSecondary","backgroundColor","display","paddingSM","paddingXS","genDescriptionStyles","extraColor","itemPaddingBottom","colonMarginRight","colonMarginLeft","titleMarginBottom","Object","assign","direction","alignItems","marginBottom","flex","titleColor","fontWeight","fontWeightStrong","fontSize","fontSizeLG","lineHeight","lineHeightLG","marginInlineStart","width","borderRadius","borderRadiusLG","table","paddingBottom","colorTextTertiary","textAlign","content","position","top","marginInline","margin","contentColor","wordBreak","overflowWrap","verticalAlign","descriptionToken","colorFillAlter","colorText","fontSizeSM","lineHeightSM","marginXS","marginXXS"],"sources":["/var/www/gavt/node_modules/antd/es/descriptions/style/index.js"],"sourcesContent":["import { resetComponent, textEllipsis } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBorderedStyle = token => {\n  const {\n    componentCls,\n    labelBg\n  } = token;\n  return {\n    [`&${componentCls}-bordered`]: {\n      [`> ${componentCls}-view`]: {\n        border: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '> table': {\n          tableLayout: 'auto',\n          borderCollapse: 'collapse'\n        },\n        [`${componentCls}-row`]: {\n          borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n          '&:last-child': {\n            borderBottom: 'none'\n          },\n          [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {\n            padding: `${token.padding}px ${token.paddingLG}px`,\n            borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n            '&:last-child': {\n              borderInlineEnd: 'none'\n            }\n          },\n          [`> ${componentCls}-item-label`]: {\n            color: token.colorTextSecondary,\n            backgroundColor: labelBg,\n            '&::after': {\n              display: 'none'\n            }\n          }\n        }\n      },\n      [`&${componentCls}-middle`]: {\n        [`${componentCls}-row`]: {\n          [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {\n            padding: `${token.paddingSM}px ${token.paddingLG}px`\n          }\n        }\n      },\n      [`&${componentCls}-small`]: {\n        [`${componentCls}-row`]: {\n          [`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {\n            padding: `${token.paddingXS}px ${token.padding}px`\n          }\n        }\n      }\n    }\n  };\n};\nconst genDescriptionStyles = token => {\n  const {\n    componentCls,\n    extraColor,\n    itemPaddingBottom,\n    colonMarginRight,\n    colonMarginLeft,\n    titleMarginBottom\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBorderedStyle(token)), {\n      [`&-rtl`]: {\n        direction: 'rtl'\n      },\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        alignItems: 'center',\n        marginBottom: titleMarginBottom\n      },\n      [`${componentCls}-title`]: Object.assign(Object.assign({}, textEllipsis), {\n        flex: 'auto',\n        color: token.titleColor,\n        fontWeight: token.fontWeightStrong,\n        fontSize: token.fontSizeLG,\n        lineHeight: token.lineHeightLG\n      }),\n      [`${componentCls}-extra`]: {\n        marginInlineStart: 'auto',\n        color: extraColor,\n        fontSize: token.fontSize\n      },\n      [`${componentCls}-view`]: {\n        width: '100%',\n        borderRadius: token.borderRadiusLG,\n        table: {\n          width: '100%',\n          tableLayout: 'fixed'\n        }\n      },\n      [`${componentCls}-row`]: {\n        '> th, > td': {\n          paddingBottom: itemPaddingBottom\n        },\n        '&:last-child': {\n          borderBottom: 'none'\n        }\n      },\n      [`${componentCls}-item-label`]: {\n        color: token.colorTextTertiary,\n        fontWeight: 'normal',\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        textAlign: `start`,\n        '&::after': {\n          content: '\":\"',\n          position: 'relative',\n          top: -0.5,\n          marginInline: `${colonMarginLeft}px ${colonMarginRight}px`\n        },\n        [`&${componentCls}-item-no-colon::after`]: {\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-no-label`]: {\n        '&::after': {\n          margin: 0,\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-content`]: {\n        display: 'table-cell',\n        flex: 1,\n        color: token.contentColor,\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        wordBreak: 'break-word',\n        overflowWrap: 'break-word'\n      },\n      [`${componentCls}-item`]: {\n        paddingBottom: 0,\n        verticalAlign: 'top',\n        '&-container': {\n          display: 'flex',\n          [`${componentCls}-item-label`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          },\n          [`${componentCls}-item-content`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          }\n        }\n      },\n      '&-middle': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingSM\n          }\n        }\n      },\n      '&-small': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingXS\n          }\n        }\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Descriptions', token => {\n  const descriptionToken = mergeToken(token, {});\n  return [genDescriptionStyles(descriptionToken)];\n}, token => ({\n  labelBg: token.colorFillAlter,\n  titleColor: token.colorText,\n  titleMarginBottom: token.fontSizeSM * token.lineHeightSM,\n  itemPaddingBottom: token.padding,\n  colonMarginRight: token.marginXS,\n  colonMarginLeft: token.marginXXS / 2,\n  contentColor: token.colorText,\n  extraColor: token.colorText\n}));"],"mappings":"AAAA,SAASA,cAAc,EAAEC,YAAY,QAAQ,aAAa;AAC1D,SAASC,qBAAqB,EAAEC,UA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