{"ast":null,"code":"import { Keyframes } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion } from '../../style/motion/fade';\nimport { initMotion } from '../../style/motion/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport getOffset from '../util';\nconst initFloatButtonGroupMotion = token => {\n  const {\n    componentCls,\n    floatButtonSize,\n    motionDurationSlow,\n    motionEaseInOutCirc\n  } = token;\n  const groupPrefixCls = `${componentCls}-group`;\n  const moveDownIn = new Keyframes('antFloatButtonMoveDownIn', {\n    '0%': {\n      transform: `translate3d(0, ${floatButtonSize}px, 0)`,\n      transformOrigin: '0 0',\n      opacity: 0\n    },\n    '100%': {\n      transform: 'translate3d(0, 0, 0)',\n      transformOrigin: '0 0',\n      opacity: 1\n    }\n  });\n  const moveDownOut = new Keyframes('antFloatButtonMoveDownOut', {\n    '0%': {\n      transform: 'translate3d(0, 0, 0)',\n      transformOrigin: '0 0',\n      opacity: 1\n    },\n    '100%': {\n      transform: `translate3d(0, ${floatButtonSize}px, 0)`,\n      transformOrigin: '0 0',\n      opacity: 0\n    }\n  });\n  return [{\n    [`${groupPrefixCls}-wrap`]: Object.assign({}, initMotion(`${groupPrefixCls}-wrap`, moveDownIn, moveDownOut, motionDurationSlow, true))\n  }, {\n    [`${groupPrefixCls}-wrap`]: {\n      [`\n          &${groupPrefixCls}-wrap-enter,\n          &${groupPrefixCls}-wrap-appear\n        `]: {\n        opacity: 0,\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`&${groupPrefixCls}-wrap-leave`]: {\n        animationTimingFunction: motionEaseInOutCirc\n      }\n    }\n  }];\n};\n// ============================== Group ==============================\nconst floatButtonGroupStyle = token => {\n  const {\n    antCls,\n    componentCls,\n    floatButtonSize,\n    margin,\n    borderRadiusLG,\n    borderRadiusSM,\n    badgeOffset,\n    floatButtonBodyPadding\n  } = token;\n  const groupPrefixCls = `${componentCls}-group`;\n  return {\n    [groupPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      zIndex: 99,\n      display: 'block',\n      border: 'none',\n      position: 'fixed',\n      width: floatButtonSize,\n      height: 'auto',\n      boxShadow: 'none',\n      minHeight: floatButtonSize,\n      insetInlineEnd: token.floatButtonInsetInlineEnd,\n      insetBlockEnd: token.floatButtonInsetBlockEnd,\n      borderRadius: borderRadiusLG,\n      [`${groupPrefixCls}-wrap`]: {\n        zIndex: -1,\n        display: 'block',\n        position: 'relative',\n        marginBottom: margin\n      },\n      [`&${groupPrefixCls}-rtl`]: {\n        direction: 'rtl'\n      },\n      [componentCls]: {\n        position: 'static'\n      }\n    }),\n    [`${groupPrefixCls}-circle`]: {\n      [`${componentCls}-circle:not(:last-child)`]: {\n        marginBottom: token.margin,\n        [`${componentCls}-body`]: {\n          width: floatButtonSize,\n          height: floatButtonSize,\n          borderRadius: '50%'\n        }\n      }\n    },\n    [`${groupPrefixCls}-square`]: {\n      [`${componentCls}-square`]: {\n        borderRadius: 0,\n        padding: 0,\n        '&:first-child': {\n          borderStartStartRadius: borderRadiusLG,\n          borderStartEndRadius: borderRadiusLG\n        },\n        '&:last-child': {\n          borderEndStartRadius: borderRadiusLG,\n          borderEndEndRadius: borderRadiusLG\n        },\n        '&:not(:last-child)': {\n          borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n        },\n        [`${antCls}-badge`]: {\n          [`${antCls}-badge-count`]: {\n            top: -(floatButtonBodyPadding + badgeOffset),\n            insetInlineEnd: -(floatButtonBodyPadding + badgeOffset)\n          }\n        }\n      },\n      [`${groupPrefixCls}-wrap`]: {\n        display: 'block',\n        borderRadius: borderRadiusLG,\n        boxShadow: token.boxShadowSecondary,\n        [`${componentCls}-square`]: {\n          boxShadow: 'none',\n          marginTop: 0,\n          borderRadius: 0,\n          padding: floatButtonBodyPadding,\n          '&:first-child': {\n            borderStartStartRadius: borderRadiusLG,\n            borderStartEndRadius: borderRadiusLG\n          },\n          '&:last-child': {\n            borderEndStartRadius: borderRadiusLG,\n            borderEndEndRadius: borderRadiusLG\n          },\n          '&:not(:last-child)': {\n            borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n          },\n          [`${componentCls}-body`]: {\n            width: token.floatButtonBodySize,\n            height: token.floatButtonBodySize\n          }\n        }\n      }\n    },\n    [`${groupPrefixCls}-circle-shadow`]: {\n      boxShadow: 'none'\n    },\n    [`${groupPrefixCls}-square-shadow`]: {\n      boxShadow: token.boxShadowSecondary,\n      [`${componentCls}-square`]: {\n        boxShadow: 'none',\n        padding: floatButtonBodyPadding,\n        [`${componentCls}-body`]: {\n          width: token.floatButtonBodySize,\n          height: token.floatButtonBodySize,\n          borderRadius: borderRadiusSM\n        }\n      }\n    }\n  };\n};\n// ============================== Shared ==============================\nconst sharedFloatButtonStyle = token => {\n  const {\n    antCls,\n    componentCls,\n    floatButtonBodyPadding,\n    floatButtonIconSize,\n    floatButtonSize,\n    borderRadiusLG,\n    badgeOffset,\n    dotOffsetInSquare,\n    dotOffsetInCircle\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      border: 'none',\n      position: 'fixed',\n      cursor: 'pointer',\n      zIndex: 99,\n      // Do not remove the 'display: block' here.\n      // Deleting it will cause marginBottom to become ineffective.\n      // Ref: https://github.com/ant-design/ant-design/issues/44700\n      display: 'block',\n      width: floatButtonSize,\n      height: floatButtonSize,\n      insetInlineEnd: token.floatButtonInsetInlineEnd,\n      insetBlockEnd: token.floatButtonInsetBlockEnd,\n      boxShadow: token.boxShadowSecondary,\n      // Pure Panel\n      '&-pure': {\n        position: 'relative',\n        inset: 'auto'\n      },\n      '&:empty': {\n        display: 'none'\n      },\n      [`${antCls}-badge`]: {\n        width: '100%',\n        height: '100%',\n        [`${antCls}-badge-count`]: {\n          transform: 'translate(0, 0)',\n          transformOrigin: 'center',\n          top: -badgeOffset,\n          insetInlineEnd: -badgeOffset\n        }\n      },\n      [`${componentCls}-body`]: {\n        width: '100%',\n        height: '100%',\n        display: 'flex',\n        justifyContent: 'center',\n        alignItems: 'center',\n        transition: `all ${token.motionDurationMid}`,\n        [`${componentCls}-content`]: {\n          overflow: 'hidden',\n          textAlign: 'center',\n          minHeight: floatButtonSize,\n          display: 'flex',\n          flexDirection: 'column',\n          justifyContent: 'center',\n          alignItems: 'center',\n          padding: `${floatButtonBodyPadding / 2}px ${floatButtonBodyPadding}px`,\n          [`${componentCls}-icon`]: {\n            textAlign: 'center',\n            margin: 'auto',\n            width: floatButtonIconSize,\n            fontSize: floatButtonIconSize,\n            lineHeight: 1\n          }\n        }\n      }\n    }),\n    [`${componentCls}-rtl`]: {\n      direction: 'rtl'\n    },\n    [`${componentCls}-circle`]: {\n      height: floatButtonSize,\n      borderRadius: '50%',\n      [`${antCls}-badge`]: {\n        [`${antCls}-badge-dot`]: {\n          top: dotOffsetInCircle,\n          insetInlineEnd: dotOffsetInCircle\n        }\n      },\n      [`${componentCls}-body`]: {\n        borderRadius: '50%'\n      }\n    },\n    [`${componentCls}-square`]: {\n      height: 'auto',\n      minHeight: floatButtonSize,\n      borderRadius: borderRadiusLG,\n      [`${antCls}-badge`]: {\n        [`${antCls}-badge-dot`]: {\n          top: dotOffsetInSquare,\n          insetInlineEnd: dotOffsetInSquare\n        }\n      },\n      [`${componentCls}-body`]: {\n        height: 'auto',\n        borderRadius: borderRadiusLG\n      }\n    },\n    [`${componentCls}-default`]: {\n      backgroundColor: token.floatButtonBackgroundColor,\n      transition: `background-color ${token.motionDurationMid}`,\n      [`${componentCls}-body`]: {\n        backgroundColor: token.floatButtonBackgroundColor,\n        transition: `background-color ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.colorFillContent\n        },\n        [`${componentCls}-content`]: {\n          [`${componentCls}-icon`]: {\n            color: token.colorText\n          },\n          [`${componentCls}-description`]: {\n            display: 'flex',\n            alignItems: 'center',\n            lineHeight: `${token.fontSizeLG}px`,\n            color: token.colorText,\n            fontSize: token.fontSizeSM\n          }\n        }\n      }\n    },\n    [`${componentCls}-primary`]: {\n      backgroundColor: token.colorPrimary,\n      [`${componentCls}-body`]: {\n        backgroundColor: token.colorPrimary,\n        transition: `background-color ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.colorPrimaryHover\n        },\n        [`${componentCls}-content`]: {\n          [`${componentCls}-icon`]: {\n            color: token.colorTextLightSolid\n          },\n          [`${componentCls}-description`]: {\n            display: 'flex',\n            alignItems: 'center',\n            lineHeight: `${token.fontSizeLG}px`,\n            color: token.colorTextLightSolid,\n            fontSize: token.fontSizeSM\n          }\n        }\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('FloatButton', token => {\n  const {\n    colorTextLightSolid,\n    colorBgElevated,\n    controlHeightLG,\n    marginXXL,\n    marginLG,\n    fontSize,\n    fontSizeIcon,\n    controlItemBgHover,\n    paddingXXS,\n    borderRadiusLG\n  } = token;\n  const floatButtonToken = mergeToken(token, {\n    floatButtonBackgroundColor: colorBgElevated,\n    floatButtonColor: colorTextLightSolid,\n    floatButtonHoverBackgroundColor: controlItemBgHover,\n    floatButtonFontSize: fontSize,\n    floatButtonIconSize: fontSizeIcon * 1.5,\n    floatButtonSize: controlHeightLG,\n    floatButtonInsetBlockEnd: marginXXL,\n    floatButtonInsetInlineEnd: marginLG,\n    floatButtonBodySize: controlHeightLG - paddingXXS * 2,\n    // 这里的 paddingXXS 是简写，完整逻辑是 (controlHeightLG - (controlHeightLG - paddingXXS * 2)) / 2,\n    floatButtonBodyPadding: paddingXXS,\n    badgeOffset: paddingXXS * 1.5,\n    dotOffsetInCircle: getOffset(controlHeightLG / 2),\n    dotOffsetInSquare: getOffset(borderRadiusLG)\n  });\n  return [floatButtonGroupStyle(floatButtonToken), sharedFloatButtonStyle(floatButtonToken), initFadeMotion(token), initFloatButtonGroupMotion(floatButtonToken)];\n});","map":{"version":3,"names":["Keyframes","resetComponent","initFadeMotion","initMotion","genComponentStyleHook","mergeToken","getOffset","initFloatButtonGroupMotion","token","componentCls","floatButtonSize","motionDurationSlow","motionEaseInOutCirc","groupPrefixCls","moveDownIn","transform","transformOrigin","opacity","moveDownOut","Object","assign","animationTimingFunction","floatButtonGroupStyle","antCls","margin","borderRadiusLG","borderRadiusSM","badgeOffset","floatButtonBodyPadding","zIndex","display","border","position","width","height","boxShadow","minHeight","insetInlineEnd","floatButtonInsetInlineEnd","insetBlockEnd","floatButtonInsetBlockEnd","borderRadius","marginBottom","direction","padding","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","borderBottom","lineWidth","lineType","colorSplit","top","boxShadowSecondary","marginTop","floatButtonBodySize","sharedFloatButtonStyle","floatButtonIconSize","dotOffsetInSquare","dotOffsetInCircle","cursor","inset","justifyContent","alignItems","transition","motionDurationMid","overflow","textAlign","flexDirection","fontSize","lineHeight","backgroundColor","floatButtonBackgroundColor","colorFillContent","color","colorText","fontSizeLG","fontSizeSM","colorPrimary","colorPrimaryHover","colorTextLightSolid","colorBgElevated","controlHeightLG","marginXXL","marginLG","fontSizeIcon","controlItemBgHover","paddingXXS","floatButtonToken","floatButtonColor","floatButtonHoverBackgroundColor","floatButtonFontSize"],"sources":["/Users/chrishaack/UC_Trains_Voice/react-demo/node_modules/antd/es/float-button/style/index.js"],"sourcesContent":["import { Keyframes } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion } from '../../style/motion/fade';\nimport { initMotion } from '../../style/motion/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport getOffset from '../util';\nconst initFloatButtonGroupMotion = token => {\n  const {\n    componentCls,\n    floatButtonSize,\n    motionDurationSlow,\n    motionEaseInOutCirc\n  } = token;\n  const groupPrefixCls = `${componentCls}-group`;\n  const moveDownIn = new Keyframes('antFloatButtonMoveDownIn', {\n    '0%': {\n      transform: `translate3d(0, ${floatButtonSize}px, 0)`,\n      transformOrigin: '0 0',\n      opacity: 0\n    },\n    '100%': {\n      transform: 'translate3d(0, 0, 0)',\n      transformOrigin: '0 0',\n      opacity: 1\n    }\n  });\n  const moveDownOut = new Keyframes('antFloatButtonMoveDownOut', {\n    '0%': {\n      transform: 'translate3d(0, 0, 0)',\n      transformOrigin: '0 0',\n      opacity: 1\n    },\n    '100%': {\n      transform: `translate3d(0, ${floatButtonSize}px, 0)`,\n      transformOrigin: '0 0',\n      opacity: 0\n    }\n  });\n  return [{\n    [`${groupPrefixCls}-wrap`]: Object.assign({}, initMotion(`${groupPrefixCls}-wrap`, moveDownIn, moveDownOut, motionDurationSlow, true))\n  }, {\n    [`${groupPrefixCls}-wrap`]: {\n      [`\n          &${groupPrefixCls}-wrap-enter,\n          &${groupPrefixCls}-wrap-appear\n        `]: {\n        opacity: 0,\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`&${groupPrefixCls}-wrap-leave`]: {\n        animationTimingFunction: motionEaseInOutCirc\n      }\n    }\n  }];\n};\n// ============================== Group ==============================\nconst floatButtonGroupStyle = token => {\n  const {\n    antCls,\n    componentCls,\n    floatButtonSize,\n    margin,\n    borderRadiusLG,\n    borderRadiusSM,\n    badgeOffset,\n    floatButtonBodyPadding\n  } = token;\n  const groupPrefixCls = `${componentCls}-group`;\n  return {\n    [groupPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      zIndex: 99,\n      display: 'block',\n      border: 'none',\n      position: 'fixed',\n      width: floatButtonSize,\n      height: 'auto',\n      boxShadow: 'none',\n      minHeight: floatButtonSize,\n      insetInlineEnd: token.floatButtonInsetInlineEnd,\n      insetBlockEnd: token.floatButtonInsetBlockEnd,\n      borderRadius: borderRadiusLG,\n      [`${groupPrefixCls}-wrap`]: {\n        zIndex: -1,\n        display: 'block',\n        position: 'relative',\n        marginBottom: margin\n      },\n      [`&${groupPrefixCls}-rtl`]: {\n        direction: 'rtl'\n      },\n      [componentCls]: {\n        position: 'static'\n      }\n    }),\n    [`${groupPrefixCls}-circle`]: {\n      [`${componentCls}-circle:not(:last-child)`]: {\n        marginBottom: token.margin,\n        [`${componentCls}-body`]: {\n          width: floatButtonSize,\n          height: floatButtonSize,\n          borderRadius: '50%'\n        }\n      }\n    },\n    [`${groupPrefixCls}-square`]: {\n      [`${componentCls}-square`]: {\n        borderRadius: 0,\n        padding: 0,\n        '&:first-child': {\n          borderStartStartRadius: borderRadiusLG,\n          borderStartEndRadius: borderRadiusLG\n        },\n        '&:last-child': {\n          borderEndStartRadius: borderRadiusLG,\n          borderEndEndRadius: borderRadiusLG\n        },\n        '&:not(:last-child)': {\n          borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n        },\n        [`${antCls}-badge`]: {\n          [`${antCls}-badge-count`]: {\n            top: -(floatButtonBodyPadding + badgeOffset),\n            insetInlineEnd: -(floatButtonBodyPadding + badgeOffset)\n          }\n        }\n      },\n      [`${groupPrefixCls}-wrap`]: {\n        display: 'block',\n        borderRadius: borderRadiusLG,\n        boxShadow: token.boxShadowSecondary,\n        [`${componentCls}-square`]: {\n          boxShadow: 'none',\n          marginTop: 0,\n          borderRadius: 0,\n          padding: floatButtonBodyPadding,\n          '&:first-child': {\n            borderStartStartRadius: borderRadiusLG,\n            borderStartEndRadius: borderRadiusLG\n          },\n          '&:last-child': {\n            borderEndStartRadius: borderRadiusLG,\n            borderEndEndRadius: borderRadiusLG\n          },\n          '&:not(:last-child)': {\n            borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n          },\n          [`${componentCls}-body`]: {\n            width: token.floatButtonBodySize,\n            height: token.floatButtonBodySize\n          }\n        }\n      }\n    },\n    [`${groupPrefixCls}-circle-shadow`]: {\n      boxShadow: 'none'\n    },\n    [`${groupPrefixCls}-square-shadow`]: {\n      boxShadow: token.boxShadowSecondary,\n      [`${componentCls}-square`]: {\n        boxShadow: 'none',\n        padding: floatButtonBodyPadding,\n        [`${componentCls}-body`]: {\n          width: token.floatButtonBodySize,\n          height: token.floatButtonBodySize,\n          borderRadius: borderRadiusSM\n        }\n      }\n    }\n  };\n};\n// ============================== Shared ==============================\nconst sharedFloatButtonStyle = token => {\n  const {\n    antCls,\n    componentCls,\n    floatButtonBodyPadding,\n    floatButtonIconSize,\n    floatButtonSize,\n    borderRadiusLG,\n    badgeOffset,\n    dotOffsetInSquare,\n    dotOffsetInCircle\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      border: 'none',\n      position: 'fixed',\n      cursor: 'pointer',\n      zIndex: 99,\n      // Do not remove the 'display: block' here.\n      // Deleting it will cause marginBottom to become ineffective.\n      // Ref: https://github.com/ant-design/ant-design/issues/44700\n      display: 'block',\n      width: floatButtonSize,\n      height: floatButtonSize,\n      insetInlineEnd: token.floatButtonInsetInlineEnd,\n      insetBlockEnd: token.floatButtonInsetBlockEnd,\n      boxShadow: token.boxShadowSecondary,\n      // Pure Panel\n      '&-pure': {\n        position: 'relative',\n        inset: 'auto'\n      },\n      '&:empty': {\n        display: 'none'\n      },\n      [`${antCls}-badge`]: {\n        width: '100%',\n        height: '100%',\n        [`${antCls}-badge-count`]: {\n          transform: 'translate(0, 0)',\n          transformOrigin: 'center',\n          top: -badgeOffset,\n          insetInlineEnd: -badgeOffset\n        }\n      },\n      [`${componentCls}-body`]: {\n        width: '100%',\n        height: '100%',\n        display: 'flex',\n        justifyContent: 'center',\n        alignItems: 'center',\n        transition: `all ${token.motionDurationMid}`,\n        [`${componentCls}-content`]: {\n          overflow: 'hidden',\n          textAlign: 'center',\n          minHeight: floatButtonSize,\n          display: 'flex',\n          flexDirection: 'column',\n          justifyContent: 'center',\n          alignItems: 'center',\n          padding: `${floatButtonBodyPadding / 2}px ${floatButtonBodyPadding}px`,\n          [`${componentCls}-icon`]: {\n            textAlign: 'center',\n            margin: 'auto',\n            width: floatButtonIconSize,\n            fontSize: floatButtonIconSize,\n            lineHeight: 1\n          }\n        }\n      }\n    }),\n    [`${componentCls}-rtl`]: {\n      direction: 'rtl'\n    },\n    [`${componentCls}-circle`]: {\n      height: floatButtonSize,\n      borderRadius: '50%',\n      [`${antCls}-badge`]: {\n        [`${antCls}-badge-dot`]: {\n          top: dotOffsetInCircle,\n          insetInlineEnd: dotOffsetInCircle\n        }\n      },\n      [`${componentCls}-body`]: {\n        borderRadius: '50%'\n      }\n    },\n    [`${componentCls}-square`]: {\n      height: 'auto',\n      minHeight: floatButtonSize,\n      borderRadius: borderRadiusLG,\n      [`${antCls}-badge`]: {\n        [`${antCls}-badge-dot`]: {\n          top: dotOffsetInSquare,\n          insetInlineEnd: dotOffsetInSquare\n        }\n      },\n      [`${componentCls}-body`]: {\n        height: 'auto',\n        borderRadius: borderRadiusLG\n      }\n    },\n    [`${componentCls}-default`]: {\n      backgroundColor: token.floatButtonBackgroundColor,\n      transition: `background-color ${token.motionDurationMid}`,\n      [`${componentCls}-body`]: {\n        backgroundColor: token.floatButtonBackgroundColor,\n        transition: `background-color ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.colorFillContent\n        },\n        [`${componentCls}-content`]: {\n          [`${componentCls}-icon`]: {\n            color: token.colorText\n          },\n          [`${componentCls}-description`]: {\n            display: 'flex',\n            alignItems: 'center',\n            lineHeight: `${token.fontSizeLG}px`,\n            color: token.colorText,\n            fontSize: token.fontSizeSM\n          }\n        }\n      }\n    },\n    [`${componentCls}-primary`]: {\n      backgroundColor: token.colorPrimary,\n      [`${componentCls}-body`]: {\n        backgroundColor: token.colorPrimary,\n        transition: `background-color ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.colorPrimaryHover\n        },\n        [`${componentCls}-content`]: {\n          [`${componentCls}-icon`]: {\n            color: token.colorTextLightSolid\n          },\n          [`${componentCls}-description`]: {\n            display: 'flex',\n            alignItems: 'center',\n            lineHeight: `${token.fontSizeLG}px`,\n            color: token.colorTextLightSolid,\n            fontSize: token.fontSizeSM\n          }\n        }\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('FloatButton', token => {\n  const {\n    colorTextLightSolid,\n    colorBgElevated,\n    controlHeightLG,\n    marginXXL,\n    marginLG,\n    fontSize,\n    fontSizeIcon,\n    controlItemBgHover,\n    paddingXXS,\n    borderRadiusLG\n  } = token;\n  const floatButtonToken = mergeToken(token, {\n    floatButtonBackgroundColor: colorBgElevated,\n    floatButtonColor: colorTextLightSolid,\n    floatButtonHoverBackgroundColor: controlItemBgHover,\n    floatButtonFontSize: fontSize,\n    floatButtonIconSize: fontSizeIcon * 1.5,\n    floatButtonSize: controlHeightLG,\n    floatButtonInsetBlockEnd: marginXXL,\n    floatButtonInsetInlineEnd: marginLG,\n    floatButtonBodySize: controlHeightLG - paddingXXS * 2,\n    // 这里的 paddingXXS 是简写，完整逻辑是 (controlHeightLG - (controlHeightLG - paddingXXS * 2)) / 2,\n    floatButtonBodyPadding: paddingXXS,\n    badgeOffset: paddingXXS * 1.5,\n    dotOffsetInCircle: getOffset(controlHeightLG / 2),\n    dotOffsetInSquare: getOffset(borderRadiusLG)\n  });\n  return [floatButtonGroupStyle(floatButtonToken), sharedFloatButtonStyle(floatButtonToken), initFadeMotion(token), initFloatButtonGroupMotion(floatButtonToken)];\n});"],"mappings":"AAAA,SAASA,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,cAAc,QAAQ,aAAa;AAC5C,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,UAAU,QAAQ,2BAA2B;AACtD,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,SAAS,MAAM,SAAS;AAC/B,MAAMC,0BAA0B,GAAGC,KAAK,IAAI;EAC1C,MAAM;IACJC,YAAY;IACZC,eAAe;IACfC,kBAAkB;IAClBC;EACF,CAAC,GAAGJ,KAAK;EACT,MAAMK,cAAc,GAAI,GAAEJ,YAAa,QAAO;EAC9C,MAAMK,UAAU,GAAG,IAAId,SAAS,CAAC,0BAA0B,EAAE;IAC3D,IAAI,EAAE;MACJe,SAAS,EAAG,kBAAiBL,eAAgB,QAAO;MACpDM,eAAe,EAAE,KAAK;MACtBC,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACNF,SAAS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