{"ast":null,"code":"import { genBasicInputStyle, genDisabledStyle, genPlaceholderStyle, genStatusStyle, initComponentToken, initInputToken } from '../../input/style';\nimport { resetComponent, textEllipsis } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genMentionsStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled,\n    controlItemBgHover,\n    controlPaddingHorizontal,\n    colorText,\n    motionDurationSlow,\n    lineHeight,\n    controlHeight,\n    paddingInline,\n    paddingBlock,\n    fontSize,\n    colorBgElevated,\n    paddingXXS,\n    borderRadius,\n    borderRadiusLG,\n    boxShadowSecondary\n  } = token;\n  const itemPaddingVertical = Math.round((token.controlHeight - token.fontSize * token.lineHeight) / 2);\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBasicInputStyle(token)), {\n      position: 'relative',\n      display: 'inline-block',\n      height: 'auto',\n      padding: 0,\n      overflow: 'hidden',\n      lineHeight,\n      whiteSpace: 'pre-wrap',\n      verticalAlign: 'bottom'\n    }), genStatusStyle(token, componentCls)), {\n      '&-disabled': {\n        '> textarea': Object.assign({}, genDisabledStyle(token))\n      },\n      [`&-affix-wrapper ${componentCls}-suffix`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: paddingInline,\n        bottom: 0,\n        zIndex: 1,\n        display: 'inline-flex',\n        alignItems: 'center',\n        margin: 'auto'\n      },\n      // ================= Input Area =================\n      [`> textarea, ${componentCls}-measure`]: {\n        color: colorText,\n        boxSizing: 'border-box',\n        minHeight: controlHeight - 2,\n        margin: 0,\n        padding: `${paddingBlock}px ${paddingInline}px`,\n        overflow: 'inherit',\n        overflowX: 'hidden',\n        overflowY: 'auto',\n        fontWeight: 'inherit',\n        fontSize: 'inherit',\n        fontFamily: 'inherit',\n        fontStyle: 'inherit',\n        fontVariant: 'inherit',\n        fontSizeAdjust: 'inherit',\n        fontStretch: 'inherit',\n        lineHeight: 'inherit',\n        direction: 'inherit',\n        letterSpacing: 'inherit',\n        whiteSpace: 'inherit',\n        textAlign: 'inherit',\n        verticalAlign: 'top',\n        wordWrap: 'break-word',\n        wordBreak: 'inherit',\n        tabSize: 'inherit'\n      },\n      '> textarea': Object.assign({\n        width: '100%',\n        border: 'none',\n        outline: 'none',\n        resize: 'none',\n        backgroundColor: 'inherit'\n      }, genPlaceholderStyle(token.colorTextPlaceholder)),\n      [`${componentCls}-measure`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: 0,\n        bottom: 0,\n        insetInlineStart: 0,\n        zIndex: -1,\n        color: 'transparent',\n        pointerEvents: 'none',\n        '> span': {\n          display: 'inline-block',\n          minHeight: '1em'\n        }\n      },\n      // ================== Dropdown ==================\n      '&-dropdown': Object.assign(Object.assign({}, resetComponent(token)), {\n        position: 'absolute',\n        top: -9999,\n        insetInlineStart: -9999,\n        zIndex: token.zIndexPopup,\n        boxSizing: 'border-box',\n        fontSize,\n        fontVariant: 'initial',\n        padding: paddingXXS,\n        backgroundColor: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        outline: 'none',\n        boxShadow: boxShadowSecondary,\n        '&-hidden': {\n          display: 'none'\n        },\n        [`${componentCls}-dropdown-menu`]: {\n          maxHeight: token.dropdownHeight,\n          margin: 0,\n          paddingInlineStart: 0,\n          overflow: 'auto',\n          listStyle: 'none',\n          outline: 'none',\n          '&-item': Object.assign(Object.assign({}, textEllipsis), {\n            position: 'relative',\n            display: 'block',\n            minWidth: token.controlItemWidth,\n            padding: `${itemPaddingVertical}px ${controlPaddingHorizontal}px`,\n            color: colorText,\n            borderRadius,\n            fontWeight: 'normal',\n            lineHeight,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&:hover': {\n              backgroundColor: controlItemBgHover\n            },\n            '&-disabled': {\n              color: colorTextDisabled,\n              cursor: 'not-allowed',\n              '&:hover': {\n                color: colorTextDisabled,\n                backgroundColor: controlItemBgHover,\n                cursor: 'not-allowed'\n              }\n            },\n            '&-selected': {\n              color: colorText,\n              fontWeight: token.fontWeightStrong,\n              backgroundColor: controlItemBgHover\n            },\n            '&-active': {\n              backgroundColor: controlItemBgHover\n            }\n          })\n        }\n      })\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Mentions', token => {\n  const mentionsToken = mergeToken(token, initInputToken(token));\n  return [genMentionsStyle(mentionsToken)];\n}, token => Object.assign(Object.assign({}, initComponentToken(token)), {\n  dropdownHeight: 250,\n  controlItemWidth: 100,\n  zIndexPopup: token.zIndexPopupBase + 50\n}));","map":{"version":3,"names":["genBasicInputStyle","genDisabledStyle","genPlaceholderStyle","genStatusStyle","initComponentToken","initInputToken","resetComponent","textEllipsis","genComponentStyleHook","mergeToken","genMentionsStyle","token","componentCls","colorTextDisabled","controlItemBgHover","controlPaddingHorizontal","colorText","motionDurationSlow","lineHeight","controlHeight","paddingInline","paddingBlock","fontSize","colorBgElevated","paddingXXS","borderRadius","borderRadiusLG","boxShadowSecondary","itemPaddingVertical","Math","round","Object","assign","position","display","height","padding","overflow","whiteSpace","verticalAlign","top","insetInlineEnd","bottom","zIndex","alignItems","margin","color","boxSizing","minHeight","overflowX","overflowY","fontWeight","fontFamily","fontStyle","fontVariant","fontSizeAdjust","fontStretch","direction","letterSpacing","textAlign","wordWrap","wordBreak","tabSize","width","border","outline","resize","backgroundColor","colorTextPlaceholder","insetInlineStart","pointerEvents","zIndexPopup","boxShadow","maxHeight","dropdownHeight","paddingInlineStart","listStyle","minWidth","controlItemWidth","cursor","transition","fontWeightStrong","mentionsToken","zIndexPopupBase"],"sources":["/var/www/gavt/node_modules/antd/es/mentions/style/index.js"],"sourcesContent":["import { genBasicInputStyle, genDisabledStyle, genPlaceholderStyle, genStatusStyle, initComponentToken, initInputToken } from '../../input/style';\nimport { resetComponent, textEllipsis } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genMentionsStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled,\n    controlItemBgHover,\n    controlPaddingHorizontal,\n    colorText,\n    motionDurationSlow,\n    lineHeight,\n    controlHeight,\n    paddingInline,\n    paddingBlock,\n    fontSize,\n    colorBgElevated,\n    paddingXXS,\n    borderRadius,\n    borderRadiusLG,\n    boxShadowSecondary\n  } = token;\n  const itemPaddingVertical = Math.round((token.controlHeight - token.fontSize * token.lineHeight) / 2);\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBasicInputStyle(token)), {\n      position: 'relative',\n      display: 'inline-block',\n      height: 'auto',\n      padding: 0,\n      overflow: 'hidden',\n      lineHeight,\n      whiteSpace: 'pre-wrap',\n      verticalAlign: 'bottom'\n    }), genStatusStyle(token, componentCls)), {\n      '&-disabled': {\n        '> textarea': Object.assign({}, genDisabledStyle(token))\n      },\n      [`&-affix-wrapper ${componentCls}-suffix`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: paddingInline,\n        bottom: 0,\n        zIndex: 1,\n        display: 'inline-flex',\n        alignItems: 'center',\n        margin: 'auto'\n      },\n      // ================= Input Area =================\n      [`> textarea, ${componentCls}-measure`]: {\n        color: colorText,\n        boxSizing: 'border-box',\n        minHeight: controlHeight - 2,\n        margin: 0,\n        padding: `${paddingBlock}px ${paddingInline}px`,\n        overflow: 'inherit',\n        overflowX: 'hidden',\n        overflowY: 'auto',\n        fontWeight: 'inherit',\n        fontSize: 'inherit',\n        fontFamily: 'inherit',\n        fontStyle: 'inherit',\n        fontVariant: 'inherit',\n        fontSizeAdjust: 'inherit',\n        fontStretch: 'inherit',\n        lineHeight: 'inherit',\n        direction: 'inherit',\n        letterSpacing: 'inherit',\n        whiteSpace: 'inherit',\n        textAlign: 'inherit',\n        verticalAlign: 'top',\n        wordWrap: 'break-word',\n        wordBreak: 'inherit',\n        tabSize: 'inherit'\n      },\n      '> textarea': Object.assign({\n        width: '100%',\n        border: 'none',\n        outline: 'none',\n        resize: 'none',\n        backgroundColor: 'inherit'\n      }, genPlaceholderStyle(token.colorTextPlaceholder)),\n      [`${componentCls}-measure`]: {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: 0,\n        bottom: 0,\n        insetInlineStart: 0,\n        zIndex: -1,\n        color: 'transparent',\n        pointerEvents: 'none',\n        '> span': {\n          display: 'inline-block',\n          minHeight: '1em'\n        }\n      },\n      // ================== Dropdown ==================\n      '&-dropdown': Object.assign(Object.assign({}, resetComponent(token)), {\n        position: 'absolute',\n        top: -9999,\n        insetInlineStart: -9999,\n        zIndex: token.zIndexPopup,\n        boxSizing: 'border-box',\n        fontSize,\n        fontVariant: 'initial',\n        padding: paddingXXS,\n        backgroundColor: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        outline: 'none',\n        boxShadow: boxShadowSecondary,\n        '&-hidden': {\n          display: 'none'\n        },\n        [`${componentCls}-dropdown-menu`]: {\n          maxHeight: token.dropdownHeight,\n          margin: 0,\n          paddingInlineStart: 0,\n          overflow: 'auto',\n          listStyle: 'none',\n          outline: 'none',\n          '&-item': Object.assign(Object.assign({}, textEllipsis), {\n            position: 'relative',\n            display: 'block',\n            minWidth: token.controlItemWidth,\n            padding: `${itemPaddingVertical}px ${controlPaddingHorizontal}px`,\n            color: colorText,\n            borderRadius,\n            fontWeight: 'normal',\n            lineHeight,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&:hover': {\n              backgroundColor: controlItemBgHover\n            },\n            '&-disabled': {\n              color: colorTextDisabled,\n              cursor: 'not-allowed',\n              '&:hover': {\n                color: colorTextDisabled,\n                backgroundColor: controlItemBgHover,\n                cursor: 'not-allowed'\n              }\n            },\n            '&-selected': {\n              color: colorText,\n              fontWeight: token.fontWeightStrong,\n              backgroundColor: controlItemBgHover\n            },\n            '&-active': {\n              backgroundColor: controlItemBgHover\n            }\n          })\n        }\n      })\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Mentions', token => {\n  const mentionsToken = mergeToken(token, initInputToken(token));\n  return [genMentionsStyle(mentionsToken)];\n}, token => Object.assign(Object.assign({}, initComponentToken(token)), {\n  dropdownHeight: 250,\n  controlItemWidth: 100,\n  zIndexPopup: token.zIndexPopupBase + 50\n}));"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,gBAAgB,EAAEC,mBAAmB,EAAEC,cAAc,EAAEC,kBAAkB,EAAEC,cAAc,QAAQ,mBAAmB;AACjJ,SAASC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AAC1D,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,MAAMC,gBAAgB,GAAGC,KAAK,IAAI;EAChC,MAAM;IACJC,YAAY;IACZC,iBAAiB;IACjBC,kBAAkB;IAClBC,wBAAwB;IACxBC,SAAS;IACTC,kBAAkB;IAClBC,UAAU;IACVC,aAAa;IACbC,aAAa;IACbC,YAAY;IACZC,QAAQ;IACRC,eAAe;IACfC,UAAU;IACVC,YAAY;IACZC,cAAc;IACdC;EACF,CAAC,GAAGhB,KAAK;EACT,MAAMiB,mBAAmB,GAAGC,IAAI,CAACC,KAAK,CAAC,CAACnB,KAAK,CAACQ,aAAa,GAAGR,KAAK,CAACW,QAAQ,GAAGX,KAAK,CAACO,UAAU,IAAI,CAAC,CAAC;EACrG,OAAO;IACL,CAACN,YAAY,GAAGmB,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAE1B,cAAc,CAACK,KAAK,CAAC,CAAC,EAAEX,kBAAkB,CAACW,KAAK,CAAC,CAAC,EAAE;MAC5IsB,QAAQ,EAAE,UAAU;MACpBC,OAAO,EAAE,cAAc;MACvBC,MAAM,EAAE,MAAM;MACdC,OAAO,EAAE,CAAC;MACVC,QAAQ,EAAE,QAAQ;MAClBnB,UAAU;MACVoB,UAAU,EAAE,UAAU;MACtBC,aAAa,EAAE;IACjB,CAAC,CAAC,EAAEpC,cAAc,CAACQ,KAAK,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