{"ast":null,"code":"\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport React, { Children, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport omit from \"rc-util/es/omit\";\nimport { useComposeRef } from \"rc-util/es/ref\";\nimport { devUseWarning } from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { ConfigContext, useComponentConfig } from '../config-provider/context';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useSize from '../config-provider/hooks/useSize';\nimport { useCompactItemContext } from '../space/Compact';\nimport Group, { GroupSizeContext } from './button-group';\nimport { isTwoCNChar, isUnBorderedButtonVariant, spaceChildren } from './buttonHelpers';\nimport DefaultLoadingIcon from './DefaultLoadingIcon';\nimport IconWrapper from './IconWrapper';\nimport useStyle from './style';\nimport Compact from './style/compact';\nfunction getLoadingConfig(loading) {\n  if (typeof loading === 'object' && loading) {\n    let delay = loading === null || loading === void 0 ? void 0 : loading.delay;\n    delay = !Number.isNaN(delay) && typeof delay === 'number' ? delay : 0;\n    return {\n      loading: delay <= 0,\n      delay\n    };\n  }\n  return {\n    loading: !!loading,\n    delay: 0\n  };\n}\nconst ButtonTypeMap = {\n  default: ['default', 'outlined'],\n  primary: ['primary', 'solid'],\n  dashed: ['default', 'dashed'],\n  // `link` is not a real color but we should compatible with it\n  link: ['link', 'link'],\n  text: ['default', 'text']\n};\nconst InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {\n  var _a, _b;\n  const {\n      loading = false,\n      prefixCls: customizePrefixCls,\n      color,\n      variant,\n      type,\n      danger = false,\n      shape: customizeShape,\n      size: customizeSize,\n      styles,\n      disabled: customDisabled,\n      className,\n      rootClassName,\n      children,\n      icon,\n      iconPosition = 'start',\n      ghost = false,\n      block = false,\n      // React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.\n      htmlType = 'button',\n      classNames: customClassNames,\n      style: customStyle = {},\n      autoInsertSpace,\n      autoFocus\n    } = props,\n    rest = __rest(props, [\"loading\", \"prefixCls\", \"color\", \"variant\", \"type\", \"danger\", \"shape\", \"size\", \"styles\", \"disabled\", \"className\", \"rootClassName\", \"children\", \"icon\", \"iconPosition\", \"ghost\", \"block\", \"htmlType\", \"classNames\", \"style\", \"autoInsertSpace\", \"autoFocus\"]);\n  // https://github.com/ant-design/ant-design/issues/47605\n  // Compatible with original `type` behavior\n  const mergedType = type || 'default';\n  const {\n    button\n  } = React.useContext(ConfigContext);\n  const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || 'default';\n  const [mergedColor, mergedVariant] = useMemo(() => {\n    // >>>>> Local\n    // Color & Variant\n    if (color && variant) {\n      return [color, variant];\n    }\n    // Sugar syntax\n    if (type || danger) {\n      const colorVariantPair = ButtonTypeMap[mergedType] || [];\n      if (danger) {\n        return ['danger', colorVariantPair[1]];\n      }\n      return colorVariantPair;\n    }\n    // >>> Context fallback\n    if ((button === null || button === void 0 ? void 0 : button.color) && (button === null || button === void 0 ? void 0 : button.variant)) {\n      return [button.color, button.variant];\n    }\n    return ['default', 'outlined'];\n  }, [color, variant, type, danger, button === null || button === void 0 ? void 0 : button.color, button === null || button === void 0 ? void 0 : button.variant, mergedType]);\n  const isDanger = mergedColor === 'danger';\n  const mergedColorText = isDanger ? 'dangerous' : mergedColor;\n  const {\n    getPrefixCls,\n    direction,\n    autoInsertSpace: contextAutoInsertSpace,\n    className: contextClassName,\n    style: contextStyle,\n    classNames: contextClassNames,\n    styles: contextStyles\n  } = useComponentConfig('button');\n  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;\n  const prefixCls = getPrefixCls('btn', customizePrefixCls);\n  const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n  const disabled = useContext(DisabledContext);\n  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n  const groupSize = useContext(GroupSizeContext);\n  const loadingOrDelay = useMemo(() => getLoadingConfig(loading), [loading]);\n  const [innerLoading, setLoading] = useState(loadingOrDelay.loading);\n  const [hasTwoCNChar, setHasTwoCNChar] = useState(false);\n  const buttonRef = useRef(null);\n  const mergedRef = useComposeRef(ref, buttonRef);\n  const needInserted = Children.count(children) === 1 && !icon && !isUnBorderedButtonVariant(mergedVariant);\n  // ========================= Mount ==========================\n  // Record for mount status.\n  // This will help to no to show the animation of loading on the first mount.\n  const isMountRef = useRef(true);\n  React.useEffect(() => {\n    isMountRef.current = false;\n    return () => {\n      isMountRef.current = true;\n    };\n  }, []);\n  // ========================= Effect =========================\n  // Loading. Should use `useLayoutEffect` to avoid low perf multiple click issue.\n  // https://github.com/ant-design/ant-design/issues/51325\n  useLayoutEffect(() => {\n    let delayTimer = null;\n    if (loadingOrDelay.delay > 0) {\n      delayTimer = setTimeout(() => {\n        delayTimer = null;\n        setLoading(true);\n      }, loadingOrDelay.delay);\n    } else {\n      setLoading(loadingOrDelay.loading);\n    }\n    function cleanupTimer() {\n      if (delayTimer) {\n        clearTimeout(delayTimer);\n        delayTimer = null;\n      }\n    }\n    return cleanupTimer;\n  }, [loadingOrDelay.delay, loadingOrDelay.loading]);\n  // Two chinese characters check\n  useEffect(() => {\n    // FIXME: for HOC usage like <FormatMessage />\n    if (!buttonRef.current || !mergedInsertSpace) {\n      return;\n    }\n    const buttonText = buttonRef.current.textContent || '';\n    if (needInserted && isTwoCNChar(buttonText)) {\n      if (!hasTwoCNChar) {\n        setHasTwoCNChar(true);\n      }\n    } else if (hasTwoCNChar) {\n      setHasTwoCNChar(false);\n    }\n  });\n  // Auto focus\n  useEffect(() => {\n    if (autoFocus && buttonRef.current) {\n      buttonRef.current.focus();\n    }\n  }, []);\n  // ========================= Events =========================\n  const handleClick = React.useCallback(e => {\n    var _a;\n    // FIXME: https://github.com/ant-design/ant-design/issues/30207\n    if (innerLoading || mergedDisabled) {\n      e.preventDefault();\n      return;\n    }\n    (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, 'href' in props ? e : e);\n  }, [props.onClick, innerLoading, mergedDisabled]);\n  // ========================== Warn ==========================\n  if (process.env.NODE_ENV !== 'production') {\n    const warning = devUseWarning('Button');\n    process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'breaking', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n    process.env.NODE_ENV !== \"production\" ? warning(!(ghost && isUnBorderedButtonVariant(mergedVariant)), 'usage', \"`link` or `text` button can't be a `ghost` button.\") : void 0;\n  }\n  // ========================== Size ==========================\n  const {\n    compactSize,\n    compactItemClassnames\n  } = useCompactItemContext(prefixCls, direction);\n  const sizeClassNameMap = {\n    large: 'lg',\n    small: 'sm',\n    middle: undefined\n  };\n  const sizeFullName = useSize(ctxSize => {\n    var _a, _b;\n    return (_b = (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : groupSize) !== null && _b !== void 0 ? _b : ctxSize;\n  });\n  const sizeCls = sizeFullName ? (_b = sizeClassNameMap[sizeFullName]) !== null && _b !== void 0 ? _b : '' : '';\n  const iconType = innerLoading ? 'loading' : icon;\n  const linkButtonRestProps = omit(rest, ['navigate']);\n  // ========================= Render =========================\n  const classes = classNames(prefixCls, hashId, cssVarCls, {\n    [`${prefixCls}-${shape}`]: shape !== 'default' && shape,\n    // Compatible with versions earlier than 5.21.0\n    [`${prefixCls}-${mergedType}`]: mergedType,\n    [`${prefixCls}-dangerous`]: danger,\n    [`${prefixCls}-color-${mergedColorText}`]: mergedColorText,\n    [`${prefixCls}-variant-${mergedVariant}`]: mergedVariant,\n    [`${prefixCls}-${sizeCls}`]: sizeCls,\n    [`${prefixCls}-icon-only`]: !children && children !== 0 && !!iconType,\n    [`${prefixCls}-background-ghost`]: ghost && !isUnBorderedButtonVariant(mergedVariant),\n    [`${prefixCls}-loading`]: innerLoading,\n    [`${prefixCls}-two-chinese-chars`]: hasTwoCNChar && mergedInsertSpace && !innerLoading,\n    [`${prefixCls}-block`]: block,\n    [`${prefixCls}-rtl`]: direction === 'rtl',\n    [`${prefixCls}-icon-end`]: iconPosition === 'end'\n  }, compactItemClassnames, className, rootClassName, contextClassName);\n  const fullStyle = Object.assign(Object.assign({}, contextStyle), customStyle);\n  const iconClasses = classNames(customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.icon, contextClassNames.icon);\n  const iconStyle = Object.assign(Object.assign({}, (styles === null || styles === void 0 ? void 0 : styles.icon) || {}), contextStyles.icon || {});\n  /**\n   * Extract icon node\n   * If there is a custom icon and not in loading state: show custom icon\n   */\n  const iconWrapperElement = child => (/*#__PURE__*/React.createElement(IconWrapper, {\n    prefixCls: prefixCls,\n    className: iconClasses,\n    style: iconStyle\n  }, child));\n  const defaultLoadingIconElement = () => (/*#__PURE__*/React.createElement(DefaultLoadingIcon, {\n    existIcon: !!icon,\n    prefixCls: prefixCls,\n    loading: innerLoading,\n    mount: isMountRef.current\n  }));\n  /**\n   * Using if-else statements can improve code readability without affecting future expansion.\n   */\n  let iconNode;\n  if (icon && !innerLoading) {\n    iconNode = iconWrapperElement(icon);\n  } else if (loading && typeof loading === 'object' && loading.icon) {\n    iconNode = iconWrapperElement(loading.icon);\n  } else {\n    iconNode = defaultLoadingIconElement();\n  }\n  const kids = children || children === 0 ? spaceChildren(children, needInserted && mergedInsertSpace) : null;\n  if (linkButtonRestProps.href !== undefined) {\n    return wrapCSSVar(/*#__PURE__*/React.createElement(\"a\", Object.assign({}, linkButtonRestProps, {\n      className: classNames(classes, {\n        [`${prefixCls}-disabled`]: mergedDisabled\n      }),\n      href: mergedDisabled ? undefined : linkButtonRestProps.href,\n      style: fullStyle,\n      onClick: handleClick,\n      ref: mergedRef,\n      tabIndex: mergedDisabled ? -1 : 0,\n      \"aria-disabled\": mergedDisabled\n    }), iconNode, kids));\n  }\n  let buttonNode = /*#__PURE__*/React.createElement(\"button\", Object.assign({}, rest, {\n    type: htmlType,\n    className: classes,\n    style: fullStyle,\n    onClick: handleClick,\n    disabled: mergedDisabled,\n    ref: mergedRef\n  }), iconNode, kids, compactItemClassnames && /*#__PURE__*/React.createElement(Compact, {\n    prefixCls: prefixCls\n  }));\n  if (!isUnBorderedButtonVariant(mergedVariant)) {\n    buttonNode = /*#__PURE__*/React.createElement(Wave, {\n      component: \"Button\",\n      disabled: innerLoading\n    }, buttonNode);\n  }\n  return wrapCSSVar(buttonNode);\n});\nconst Button = InternalCompoundedButton;\nButton.Group = Group;\nButton.__ANT_BUTTON = true;\nif (process.env.NODE_ENV !== 'production') {\n  Button.displayName = 'Button';\n}\nexport default Button;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","Children","useContext","useEffect","useMemo","useRef","useState","classNames","useLayoutEffect","omit","useComposeRef","devUseWarning","Wave","ConfigContext","useComponentConfig","DisabledContext","useSize","useCompactItemContext","Group","GroupSizeContext","isTwoCNChar","isUnBorderedButtonVariant","spaceChildren","DefaultLoadingIcon","IconWrapper","useStyle","Compact","getLoadingConfig","loading","delay","Number","isNaN","ButtonTypeMap","default","primary","dashed","link","text","InternalCompoundedButton","forwardRef","props","ref","_a","_b","prefixCls","customizePrefixCls","color","variant","type","danger","shape","customizeShape","size","customizeSize","styles","disabled","customDisabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","customClassNames","style","customStyle","autoInsertSpace","autoFocus","rest","mergedType","button","mergedColor","mergedVariant","colorVariantPair","isDanger","mergedColorText","getPrefixCls","direction","contextAutoInsertSpace","contextClassName","contextStyle","contextClassNames","contextStyles","mergedInsertSpace","wrapCSSVar","hashId","cssVarCls","mergedDisabled","groupSize","loadingOrDelay","innerLoading","setLoading","hasTwoCNChar","setHasTwoCNChar","buttonRef","mergedRef","needInserted","count","isMountRef","current","delayTimer","setTimeout","cleanupTimer","clearTimeout","buttonText","textContent","focus","handleClick","useCallback","preventDefault","onClick","process","env","NODE_ENV","warning","compactSize","compactItemClassnames","sizeClassNameMap","large","small","middle","undefined","sizeFullName","ctxSize","sizeCls","iconType","linkButtonRestProps","classes","fullStyle","assign","iconClasses","iconStyle","iconWrapperElement","child","createElement","defaultLoadingIconElement","existIcon","mount","iconNode","kids","href","tabIndex","buttonNode","component","Button","__ANT_BUTTON","displayName"],"sources":["/Users/nili/Documents/trae_projects/client/node_modules/antd/es/button/button.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport React, { Children, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport omit from \"rc-util/es/omit\";\nimport { useComposeRef } from \"rc-util/es/ref\";\nimport { devUseWarning } from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { ConfigContext, useComponentConfig } from '../config-provider/context';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useSize from '../config-provider/hooks/useSize';\nimport { useCompactItemContext } from '../space/Compact';\nimport Group, { GroupSizeContext } from './button-group';\nimport { isTwoCNChar, isUnBorderedButtonVariant, spaceChildren } from './buttonHelpers';\nimport DefaultLoadingIcon from './DefaultLoadingIcon';\nimport IconWrapper from './IconWrapper';\nimport useStyle from './style';\nimport Compact from './style/compact';\nfunction getLoadingConfig(loading) {\n  if (typeof loading === 'object' && loading) {\n    let delay = loading === null || loading === void 0 ? void 0 : loading.delay;\n    delay = !Number.isNaN(delay) && typeof delay === 'number' ? delay : 0;\n    return {\n      loading: delay <= 0,\n      delay\n    };\n  }\n  return {\n    loading: !!loading,\n    delay: 0\n  };\n}\nconst ButtonTypeMap = {\n  default: ['default', 'outlined'],\n  primary: ['primary', 'solid'],\n  dashed: ['default', 'dashed'],\n  // `link` is not a real color but we should compatible with it\n  link: ['link', 'link'],\n  text: ['default', 'text']\n};\nconst InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {\n  var _a, _b;\n  const {\n      loading = false,\n      prefixCls: customizePrefixCls,\n      color,\n      variant,\n      type,\n      danger = false,\n      shape: customizeShape,\n      size: customizeSize,\n      styles,\n      disabled: customDisabled,\n      className,\n      rootClassName,\n      children,\n      icon,\n      iconPosition = 'start',\n      ghost = false,\n      block = false,\n      // React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.\n      htmlType = 'button',\n      classNames: customClassNames,\n      style: customStyle = {},\n      autoInsertSpace,\n      autoFocus\n    } = props,\n    rest = __rest(props, [\"loading\", \"prefixCls\", \"color\", \"variant\", \"type\", \"danger\", \"shape\", \"size\", \"styles\", \"disabled\", \"className\", \"rootClassName\", \"children\", \"icon\", \"iconPosition\", \"ghost\", \"block\", \"htmlType\", \"classNames\", \"style\", \"autoInsertSpace\", \"autoFocus\"]);\n  // https://github.com/ant-design/ant-design/issues/47605\n  // Compatible with original `type` behavior\n  const mergedType = type || 'default';\n  const {\n    button\n  } = React.useContext(ConfigContext);\n  const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || 'default';\n  const [mergedColor, mergedVariant] = useMemo(() => {\n    // >>>>> Local\n    // Color & Variant\n    if (color && variant) {\n      return [color, variant];\n    }\n    // Sugar syntax\n    if (type || danger) {\n      const colorVariantPair = ButtonTypeMap[mergedType] || [];\n      if (danger) {\n        return ['danger', colorVariantPair[1]];\n      }\n      return colorVariantPair;\n    }\n    // >>> Context fallback\n    if ((button === null || button === void 0 ? void 0 : button.color) && (button === null || button === void 0 ? void 0 : button.variant)) {\n      return [button.color, button.variant];\n    }\n    return ['default', 'outlined'];\n  }, [color, variant, type, danger, button === null || button === void 0 ? void 0 : button.color, button === null || button === void 0 ? void 0 : button.variant, mergedType]);\n  const isDanger = mergedColor === 'danger';\n  const mergedColorText = isDanger ? 'dangerous' : mergedColor;\n  const {\n    getPrefixCls,\n    direction,\n    autoInsertSpace: contextAutoInsertSpace,\n    className: contextClassName,\n    style: contextStyle,\n    classNames: contextClassNames,\n    styles: contextStyles\n  } = useComponentConfig('button');\n  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;\n  const prefixCls = getPrefixCls('btn', customizePrefixCls);\n  const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n  const disabled = useContext(DisabledContext);\n  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n  const groupSize = useContext(GroupSizeContext);\n  const loadingOrDelay = useMemo(() => getLoadingConfig(loading), [loading]);\n  const [innerLoading, setLoading] = useState(loadingOrDelay.loading);\n  const [hasTwoCNChar, setHasTwoCNChar] = useState(false);\n  const buttonRef = useRef(null);\n  const mergedRef = useComposeRef(ref, buttonRef);\n  const needInserted = Children.count(children) === 1 && !icon && !isUnBorderedButtonVariant(mergedVariant);\n  // ========================= Mount ==========================\n  // Record for mount status.\n  // This will help to no to show the animation of loading on the first mount.\n  const isMountRef = useRef(true);\n  React.useEffect(() => {\n    isMountRef.current = false;\n    return () => {\n      isMountRef.current = true;\n    };\n  }, []);\n  // ========================= Effect =========================\n  // Loading. Should use `useLayoutEffect` to avoid low perf multiple click issue.\n  // https://github.com/ant-design/ant-design/issues/51325\n  useLayoutEffect(() => {\n    let delayTimer = null;\n    if (loadingOrDelay.delay > 0) {\n      delayTimer = setTimeout(() => {\n        delayTimer = null;\n        setLoading(true);\n      }, loadingOrDelay.delay);\n    } else {\n      setLoading(loadingOrDelay.loading);\n    }\n    function cleanupTimer() {\n      if (delayTimer) {\n        clearTimeout(delayTimer);\n        delayTimer = null;\n      }\n    }\n    return cleanupTimer;\n  }, [loadingOrDelay.delay, loadingOrDelay.loading]);\n  // Two chinese characters check\n  useEffect(() => {\n    // FIXME: for HOC usage like <FormatMessage />\n    if (!buttonRef.current || !mergedInsertSpace) {\n      return;\n    }\n    const buttonText = buttonRef.current.textContent || '';\n    if (needInserted && isTwoCNChar(buttonText)) {\n      if (!hasTwoCNChar) {\n        setHasTwoCNChar(true);\n      }\n    } else if (hasTwoCNChar) {\n      setHasTwoCNChar(false);\n    }\n  });\n  // Auto focus\n  useEffect(() => {\n    if (autoFocus && buttonRef.current) {\n      buttonRef.current.focus();\n    }\n  }, []);\n  // ========================= Events =========================\n  const handleClick = React.useCallback(e => {\n    var _a;\n    // FIXME: https://github.com/ant-design/ant-design/issues/30207\n    if (innerLoading || mergedDisabled) {\n      e.preventDefault();\n      return;\n    }\n    (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, 'href' in props ? e : e);\n  }, [props.onClick, innerLoading, mergedDisabled]);\n  // ========================== Warn ==========================\n  if (process.env.NODE_ENV !== 'production') {\n    const warning = devUseWarning('Button');\n    process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'breaking', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n    process.env.NODE_ENV !== \"production\" ? warning(!(ghost && isUnBorderedButtonVariant(mergedVariant)), 'usage', \"`link` or `text` button can't be a `ghost` button.\") : void 0;\n  }\n  // ========================== Size ==========================\n  const {\n    compactSize,\n    compactItemClassnames\n  } = useCompactItemContext(prefixCls, direction);\n  const sizeClassNameMap = {\n    large: 'lg',\n    small: 'sm',\n    middle: undefined\n  };\n  const sizeFullName = useSize(ctxSize => {\n    var _a, _b;\n    return (_b = (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : groupSize) !== null && _b !== void 0 ? _b : ctxSize;\n  });\n  const sizeCls = sizeFullName ? (_b = sizeClassNameMap[sizeFullName]) !== null && _b !== void 0 ? _b : '' : '';\n  const iconType = innerLoading ? 'loading' : icon;\n  const linkButtonRestProps = omit(rest, ['navigate']);\n  // ========================= Render =========================\n  const classes = classNames(prefixCls, hashId, cssVarCls, {\n    [`${prefixCls}-${shape}`]: shape !== 'default' && shape,\n    // Compatible with versions earlier than 5.21.0\n    [`${prefixCls}-${mergedType}`]: mergedType,\n    [`${prefixCls}-dangerous`]: danger,\n    [`${prefixCls}-color-${mergedColorText}`]: mergedColorText,\n    [`${prefixCls}-variant-${mergedVariant}`]: mergedVariant,\n    [`${prefixCls}-${sizeCls}`]: sizeCls,\n    [`${prefixCls}-icon-only`]: !children && children !== 0 && !!iconType,\n    [`${prefixCls}-background-ghost`]: ghost && !isUnBorderedButtonVariant(mergedVariant),\n    [`${prefixCls}-loading`]: innerLoading,\n    [`${prefixCls}-two-chinese-chars`]: hasTwoCNChar && mergedInsertSpace && !innerLoading,\n    [`${prefixCls}-block`]: block,\n    [`${prefixCls}-rtl`]: direction === 'rtl',\n    [`${prefixCls}-icon-end`]: iconPosition === 'end'\n  }, compactItemClassnames, className, rootClassName, contextClassName);\n  const fullStyle = Object.assign(Object.assign({}, contextStyle), customStyle);\n  const iconClasses = classNames(customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.icon, contextClassNames.icon);\n  const iconStyle = Object.assign(Object.assign({}, (styles === null || styles === void 0 ? void 0 : styles.icon) || {}), contextStyles.icon || {});\n  /**\n   * Extract icon node\n   * If there is a custom icon and not in loading state: show custom icon\n   */\n  const iconWrapperElement = child => (/*#__PURE__*/React.createElement(IconWrapper, {\n    prefixCls: prefixCls,\n    className: iconClasses,\n    style: iconStyle\n  }, child));\n  const defaultLoadingIconElement = () => (/*#__PURE__*/React.createElement(DefaultLoadingIcon, {\n    existIcon: !!icon,\n    prefixCls: prefixCls,\n    loading: innerLoading,\n    mount: isMountRef.current\n  }));\n  /**\n   * Using if-else statements can improve code readability without affecting future expansion.\n   */\n  let iconNode;\n  if (icon && !innerLoading) {\n    iconNode = iconWrapperElement(icon);\n  } else if (loading && typeof loading === 'object' && loading.icon) {\n    iconNode = iconWrapperElement(loading.icon);\n  } else {\n    iconNode = defaultLoadingIconElement();\n  }\n  const kids = children || children === 0 ? spaceChildren(children, needInserted && mergedInsertSpace) : null;\n  if (linkButtonRestProps.href !== undefined) {\n    return wrapCSSVar(/*#__PURE__*/React.createElement(\"a\", Object.assign({}, linkButtonRestProps, {\n      className: classNames(classes, {\n        [`${prefixCls}-disabled`]: mergedDisabled\n      }),\n      href: mergedDisabled ? undefined : linkButtonRestProps.href,\n      style: fullStyle,\n      onClick: handleClick,\n      ref: mergedRef,\n      tabIndex: mergedDisabled ? -1 : 0,\n      \"aria-disabled\": mergedDisabled\n    }), iconNode, kids));\n  }\n  let buttonNode = /*#__PURE__*/React.createElement(\"button\", Object.assign({}, rest, {\n    type: htmlType,\n    className: classes,\n    style: fullStyle,\n    onClick: handleClick,\n    disabled: mergedDisabled,\n    ref: mergedRef\n  }), iconNode, kids, compactItemClassnames && /*#__PURE__*/React.createElement(Compact, {\n    prefixCls: prefixCls\n  }));\n  if (!isUnBorderedButtonVariant(mergedVariant)) {\n    buttonNode = /*#__PURE__*/React.createElement(Wave, {\n      component: \"Button\",\n      disabled: innerLoading\n    }, buttonNode);\n  }\n  return wrapCSSVar(buttonNode);\n});\nconst Button = InternalCompoundedButton;\nButton.Group = Group;\nButton.__ANT_BUTTON = true;\nif (process.env.NODE_ENV !== 'production') {\n  Button.displayName = 'Button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