@swiftcrab/crab 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +143 -0
- package/es/_util/ActionButton.d.ts +19 -0
- package/es/_util/ActionButton.js +48 -0
- package/es/_util/ContextIsolator.d.ts +3 -0
- package/es/_util/ContextIsolator.js +40 -0
- package/es/_util/PurePanel.d.ts +9 -0
- package/es/_util/PurePanel.js +40 -0
- package/es/_util/aria-data-attrs.d.ts +4 -0
- package/es/_util/aria-data-attrs.js +0 -0
- package/es/_util/capitalize.d.ts +1 -0
- package/es/_util/capitalize.js +1 -0
- package/es/_util/colors.d.ts +13 -0
- package/es/_util/colors.js +1 -0
- package/es/_util/easings.d.ts +1 -0
- package/es/_util/easings.js +1 -0
- package/es/_util/extendsObject.d.ts +3 -0
- package/es/_util/extendsObject.js +1 -0
- package/es/_util/gapSize.d.ts +3 -0
- package/es/_util/gapSize.js +1 -0
- package/es/_util/getAllowClear.d.ts +4 -0
- package/es/_util/getAllowClear.js +1 -0
- package/es/_util/getRenderPropValue.d.ts +3 -0
- package/es/_util/getRenderPropValue.js +1 -0
- package/es/_util/getScroll.d.ts +3 -0
- package/es/_util/getScroll.js +1 -0
- package/es/_util/hooks/useClosable.d.ts +31 -0
- package/es/_util/hooks/useClosable.js +1 -0
- package/es/_util/hooks/useForceUpdate.d.ts +2 -0
- package/es/_util/hooks/useForceUpdate.js +1 -0
- package/es/_util/hooks/useMultipleSelect.d.ts +6 -0
- package/es/_util/hooks/useMultipleSelect.js +1 -0
- package/es/_util/hooks/usePatchElement.d.ts +5 -0
- package/es/_util/hooks/usePatchElement.js +1 -0
- package/es/_util/hooks/useProxyImperativeHandle.d.ts +4 -0
- package/es/_util/hooks/useProxyImperativeHandle.js +1 -0
- package/es/_util/hooks/useSyncState.d.ts +3 -0
- package/es/_util/hooks/useSyncState.js +1 -0
- package/es/_util/hooks/useUniqueMemo.d.ts +6 -0
- package/es/_util/hooks/useUniqueMemo.js +1 -0
- package/es/_util/hooks/useZIndex.d.ts +8 -0
- package/es/_util/hooks/useZIndex.js +35 -0
- package/es/_util/isNumeric.d.ts +2 -0
- package/es/_util/isNumeric.js +1 -0
- package/es/_util/isPrimitive.d.ts +2 -0
- package/es/_util/isPrimitive.js +1 -0
- package/es/_util/motion.d.ts +7 -0
- package/es/_util/motion.js +40 -0
- package/es/_util/placements.d.ts +21 -0
- package/es/_util/placements.js +1 -0
- package/es/_util/reactNode.d.ts +7 -0
- package/es/_util/reactNode.js +1 -0
- package/es/_util/responsiveObserver.d.ts +22 -0
- package/es/_util/responsiveObserver.js +35 -0
- package/es/_util/scrollTo.d.ts +10 -0
- package/es/_util/scrollTo.js +1 -0
- package/es/_util/statusUtils.d.ts +6 -0
- package/es/_util/statusUtils.js +1 -0
- package/es/_util/styleChecker.d.ts +3 -0
- package/es/_util/styleChecker.js +1 -0
- package/es/_util/throttleByAnimationFrame.d.ts +5 -0
- package/es/_util/throttleByAnimationFrame.js +1 -0
- package/es/_util/toList.d.ts +1 -0
- package/es/_util/toList.js +1 -0
- package/es/_util/transKeys.d.ts +3 -0
- package/es/_util/transKeys.js +1 -0
- package/es/_util/type.d.ts +54 -0
- package/es/_util/type.js +0 -0
- package/es/_util/warning.d.ts +31 -0
- package/es/_util/warning.js +1 -0
- package/es/_util/wave/WaveEffect.d.ts +10 -0
- package/es/_util/wave/WaveEffect.js +40 -0
- package/es/_util/wave/index.d.ts +9 -0
- package/es/_util/wave/index.js +41 -0
- package/es/_util/wave/interface.d.ts +11 -0
- package/es/_util/wave/interface.js +40 -0
- package/es/_util/wave/style.d.ts +7 -0
- package/es/_util/wave/style.js +35 -0
- package/es/_util/wave/useWave.d.ts +4 -0
- package/es/_util/wave/useWave.js +41 -0
- package/es/_util/wave/util.d.ts +2 -0
- package/es/_util/wave/util.js +1 -0
- package/es/_util/zindexContext.d.ts +3 -0
- package/es/_util/zindexContext.js +1 -0
- package/es/affix/index.d.ts +22 -0
- package/es/affix/index.js +40 -0
- package/es/affix/style/index.d.ts +11 -0
- package/es/affix/style/index.js +35 -0
- package/es/affix/utils.d.ts +4 -0
- package/es/affix/utils.js +1 -0
- package/es/alert/Alert.d.ts +42 -0
- package/es/alert/Alert.js +42 -0
- package/es/alert/ErrorBoundary.d.ts +24 -0
- package/es/alert/ErrorBoundary.js +42 -0
- package/es/alert/index.d.ts +8 -0
- package/es/alert/index.js +42 -0
- package/es/alert/style/index.d.ts +26 -0
- package/es/alert/style/index.js +37 -0
- package/es/anchor/Anchor.d.ts +59 -0
- package/es/anchor/Anchor.js +40 -0
- package/es/anchor/AnchorLink.d.ts +14 -0
- package/es/anchor/AnchorLink.js +40 -0
- package/es/anchor/context.d.ts +4 -0
- package/es/anchor/context.js +1 -0
- package/es/anchor/index.d.ts +10 -0
- package/es/anchor/index.js +40 -0
- package/es/anchor/style/index.d.ts +16 -0
- package/es/anchor/style/index.js +35 -0
- package/es/app/context.d.ts +16 -0
- package/es/app/context.js +1 -0
- package/es/app/index.d.ts +16 -0
- package/es/app/index.js +77 -0
- package/es/app/style/index.d.ts +6 -0
- package/es/app/style/index.js +35 -0
- package/es/auto-complete/index.d.ts +28 -0
- package/es/auto-complete/index.js +78 -0
- package/es/avatar/AvatarContext.d.ts +9 -0
- package/es/avatar/AvatarContext.js +1 -0
- package/es/avatar/avatar.d.ts +26 -0
- package/es/avatar/avatar.js +41 -0
- package/es/avatar/group.d.ts +27 -0
- package/es/avatar/group.js +50 -0
- package/es/avatar/index.d.ts +10 -0
- package/es/avatar/index.js +49 -0
- package/es/avatar/style/index.d.ts +51 -0
- package/es/avatar/style/index.js +35 -0
- package/es/badge/Ribbon.d.ts +16 -0
- package/es/badge/Ribbon.js +40 -0
- package/es/badge/ScrollNumber.d.ts +18 -0
- package/es/badge/ScrollNumber.js +40 -0
- package/es/badge/SingleNumber.d.ts +14 -0
- package/es/badge/SingleNumber.js +1 -0
- package/es/badge/index.d.ts +41 -0
- package/es/badge/index.js +40 -0
- package/es/badge/style/index.d.ts +104 -0
- package/es/badge/style/index.js +35 -0
- package/es/badge/style/ribbon.d.ts +2 -0
- package/es/badge/style/ribbon.js +35 -0
- package/es/breadcrumb/Breadcrumb.d.ts +58 -0
- package/es/breadcrumb/Breadcrumb.js +87 -0
- package/es/breadcrumb/BreadcrumbItem.d.ts +31 -0
- package/es/breadcrumb/BreadcrumbItem.js +83 -0
- package/es/breadcrumb/BreadcrumbSeparator.d.ts +4 -0
- package/es/breadcrumb/BreadcrumbSeparator.js +40 -0
- package/es/breadcrumb/index.d.ts +4 -0
- package/es/breadcrumb/index.js +87 -0
- package/es/breadcrumb/style/index.d.ts +41 -0
- package/es/breadcrumb/style/index.js +38 -0
- package/es/breadcrumb/useItemRender.d.ts +8 -0
- package/es/breadcrumb/useItemRender.js +1 -0
- package/es/breadcrumb/useItems.d.ts +6 -0
- package/es/breadcrumb/useItems.js +1 -0
- package/es/button/IconWrapper.d.ts +9 -0
- package/es/button/IconWrapper.js +1 -0
- package/es/button/LoadingIcon.d.ts +11 -0
- package/es/button/LoadingIcon.js +1 -0
- package/es/button/button-group.d.ts +12 -0
- package/es/button/button-group.js +40 -0
- package/es/button/button.d.ts +44 -0
- package/es/button/button.js +48 -0
- package/es/button/buttonHelpers.d.ts +18 -0
- package/es/button/buttonHelpers.js +1 -0
- package/es/button/index.d.ts +6 -0
- package/es/button/index.js +48 -0
- package/es/button/style/compact.d.ts +2 -0
- package/es/button/style/compact.js +47 -0
- package/es/button/style/group.d.ts +4 -0
- package/es/button/style/group.js +1 -0
- package/es/button/style/index.d.ts +4 -0
- package/es/button/style/index.js +47 -0
- package/es/button/style/token.d.ts +233 -0
- package/es/button/style/token.js +47 -0
- package/es/calendar/Header.d.ts +17 -0
- package/es/calendar/Header.js +79 -0
- package/es/calendar/generateCalendar.d.ts +44 -0
- package/es/calendar/generateCalendar.js +118 -0
- package/es/calendar/index.d.ts +10 -0
- package/es/calendar/index.js +118 -0
- package/es/calendar/locale/ar_EG.d.ts +2 -0
- package/es/calendar/locale/ar_EG.js +1 -0
- package/es/calendar/locale/az_AZ.d.ts +2 -0
- package/es/calendar/locale/az_AZ.js +1 -0
- package/es/calendar/locale/bg_BG.d.ts +2 -0
- package/es/calendar/locale/bg_BG.js +1 -0
- package/es/calendar/locale/bn_BD.d.ts +2 -0
- package/es/calendar/locale/bn_BD.js +1 -0
- package/es/calendar/locale/by_BY.d.ts +2 -0
- package/es/calendar/locale/by_BY.js +1 -0
- package/es/calendar/locale/ca_ES.d.ts +2 -0
- package/es/calendar/locale/ca_ES.js +1 -0
- package/es/calendar/locale/cs_CZ.d.ts +2 -0
- package/es/calendar/locale/cs_CZ.js +1 -0
- package/es/calendar/locale/da_DK.d.ts +2 -0
- package/es/calendar/locale/da_DK.js +1 -0
- package/es/calendar/locale/de_DE.d.ts +2 -0
- package/es/calendar/locale/de_DE.js +1 -0
- package/es/calendar/locale/el_GR.d.ts +2 -0
- package/es/calendar/locale/el_GR.js +1 -0
- package/es/calendar/locale/en_GB.d.ts +2 -0
- package/es/calendar/locale/en_GB.js +1 -0
- package/es/calendar/locale/en_US.d.ts +2 -0
- package/es/calendar/locale/en_US.js +1 -0
- package/es/calendar/locale/es_ES.d.ts +2 -0
- package/es/calendar/locale/es_ES.js +1 -0
- package/es/calendar/locale/et_EE.d.ts +2 -0
- package/es/calendar/locale/et_EE.js +1 -0
- package/es/calendar/locale/eu_ES.d.ts +2 -0
- package/es/calendar/locale/eu_ES.js +1 -0
- package/es/calendar/locale/fa_IR.d.ts +2 -0
- package/es/calendar/locale/fa_IR.js +1 -0
- package/es/calendar/locale/fi_FI.d.ts +2 -0
- package/es/calendar/locale/fi_FI.js +1 -0
- package/es/calendar/locale/fr_BE.d.ts +2 -0
- package/es/calendar/locale/fr_BE.js +1 -0
- package/es/calendar/locale/fr_CA.d.ts +2 -0
- package/es/calendar/locale/fr_CA.js +1 -0
- package/es/calendar/locale/fr_FR.d.ts +2 -0
- package/es/calendar/locale/fr_FR.js +1 -0
- package/es/calendar/locale/ga_IE.d.ts +2 -0
- package/es/calendar/locale/ga_IE.js +1 -0
- package/es/calendar/locale/gl_ES.d.ts +2 -0
- package/es/calendar/locale/gl_ES.js +1 -0
- package/es/calendar/locale/he_IL.d.ts +2 -0
- package/es/calendar/locale/he_IL.js +1 -0
- package/es/calendar/locale/hi_IN.d.ts +2 -0
- package/es/calendar/locale/hi_IN.js +1 -0
- package/es/calendar/locale/hr_HR.d.ts +2 -0
- package/es/calendar/locale/hr_HR.js +1 -0
- package/es/calendar/locale/hu_HU.d.ts +2 -0
- package/es/calendar/locale/hu_HU.js +1 -0
- package/es/calendar/locale/id_ID.d.ts +2 -0
- package/es/calendar/locale/id_ID.js +1 -0
- package/es/calendar/locale/is_IS.d.ts +2 -0
- package/es/calendar/locale/is_IS.js +1 -0
- package/es/calendar/locale/it_IT.d.ts +2 -0
- package/es/calendar/locale/it_IT.js +1 -0
- package/es/calendar/locale/ja_JP.d.ts +2 -0
- package/es/calendar/locale/ja_JP.js +1 -0
- package/es/calendar/locale/ka_GE.d.ts +2 -0
- package/es/calendar/locale/ka_GE.js +1 -0
- package/es/calendar/locale/kk_KZ.d.ts +2 -0
- package/es/calendar/locale/kk_KZ.js +1 -0
- package/es/calendar/locale/km_KH.d.ts +2 -0
- package/es/calendar/locale/km_KH.js +1 -0
- package/es/calendar/locale/kmr_IQ.d.ts +2 -0
- package/es/calendar/locale/kmr_IQ.js +1 -0
- package/es/calendar/locale/kn_IN.d.ts +2 -0
- package/es/calendar/locale/kn_IN.js +1 -0
- package/es/calendar/locale/ko_KR.d.ts +2 -0
- package/es/calendar/locale/ko_KR.js +1 -0
- package/es/calendar/locale/lt_LT.d.ts +2 -0
- package/es/calendar/locale/lt_LT.js +1 -0
- package/es/calendar/locale/lv_LV.d.ts +2 -0
- package/es/calendar/locale/lv_LV.js +1 -0
- package/es/calendar/locale/mk_MK.d.ts +2 -0
- package/es/calendar/locale/mk_MK.js +1 -0
- package/es/calendar/locale/ml_IN.d.ts +2 -0
- package/es/calendar/locale/ml_IN.js +1 -0
- package/es/calendar/locale/mn_MN.d.ts +2 -0
- package/es/calendar/locale/mn_MN.js +1 -0
- package/es/calendar/locale/ms_MY.d.ts +2 -0
- package/es/calendar/locale/ms_MY.js +1 -0
- package/es/calendar/locale/my_MM.d.ts +2 -0
- package/es/calendar/locale/my_MM.js +1 -0
- package/es/calendar/locale/nb_NO.d.ts +2 -0
- package/es/calendar/locale/nb_NO.js +1 -0
- package/es/calendar/locale/nl_BE.d.ts +2 -0
- package/es/calendar/locale/nl_BE.js +1 -0
- package/es/calendar/locale/nl_NL.d.ts +2 -0
- package/es/calendar/locale/nl_NL.js +1 -0
- package/es/calendar/locale/pl_PL.d.ts +2 -0
- package/es/calendar/locale/pl_PL.js +1 -0
- package/es/calendar/locale/pt_BR.d.ts +2 -0
- package/es/calendar/locale/pt_BR.js +1 -0
- package/es/calendar/locale/pt_PT.d.ts +2 -0
- package/es/calendar/locale/pt_PT.js +1 -0
- package/es/calendar/locale/ro_RO.d.ts +2 -0
- package/es/calendar/locale/ro_RO.js +1 -0
- package/es/calendar/locale/ru_RU.d.ts +2 -0
- package/es/calendar/locale/ru_RU.js +1 -0
- package/es/calendar/locale/si_LK.d.ts +2 -0
- package/es/calendar/locale/si_LK.js +1 -0
- package/es/calendar/locale/sk_SK.d.ts +2 -0
- package/es/calendar/locale/sk_SK.js +1 -0
- package/es/calendar/locale/sl_SI.d.ts +2 -0
- package/es/calendar/locale/sl_SI.js +1 -0
- package/es/calendar/locale/sr_RS.d.ts +2 -0
- package/es/calendar/locale/sr_RS.js +1 -0
- package/es/calendar/locale/sv_SE.d.ts +2 -0
- package/es/calendar/locale/sv_SE.js +1 -0
- package/es/calendar/locale/ta_IN.d.ts +2 -0
- package/es/calendar/locale/ta_IN.js +1 -0
- package/es/calendar/locale/th_TH.d.ts +2 -0
- package/es/calendar/locale/th_TH.js +1 -0
- package/es/calendar/locale/tk_TK.d.ts +2 -0
- package/es/calendar/locale/tk_TK.js +1 -0
- package/es/calendar/locale/tr_TR.d.ts +2 -0
- package/es/calendar/locale/tr_TR.js +1 -0
- package/es/calendar/locale/uk_UA.d.ts +2 -0
- package/es/calendar/locale/uk_UA.js +1 -0
- package/es/calendar/locale/ur_PK.d.ts +2 -0
- package/es/calendar/locale/ur_PK.js +1 -0
- package/es/calendar/locale/uz_UZ.d.ts +2 -0
- package/es/calendar/locale/uz_UZ.js +1 -0
- package/es/calendar/locale/vi_VN.d.ts +2 -0
- package/es/calendar/locale/vi_VN.js +1 -0
- package/es/calendar/locale/zh_CN.d.ts +2 -0
- package/es/calendar/locale/zh_CN.js +1 -0
- package/es/calendar/locale/zh_TW.d.ts +2 -0
- package/es/calendar/locale/zh_TW.js +1 -0
- package/es/calendar/style/index.d.ts +61 -0
- package/es/calendar/style/index.js +86 -0
- package/es/card/Card.d.ts +56 -0
- package/es/card/Card.js +67 -0
- package/es/card/Grid.d.ts +9 -0
- package/es/card/Grid.js +40 -0
- package/es/card/Meta.d.ts +11 -0
- package/es/card/Meta.js +40 -0
- package/es/card/index.d.ts +13 -0
- package/es/card/index.js +67 -0
- package/es/card/style/index.d.ts +51 -0
- package/es/card/style/index.js +44 -0
- package/es/carousel/index.d.ts +27 -0
- package/es/carousel/index.js +40 -0
- package/es/carousel/style/index.d.ts +43 -0
- package/es/carousel/style/index.js +35 -0
- package/es/cascader/Panel.d.ts +12 -0
- package/es/cascader/Panel.js +49 -0
- package/es/cascader/hooks/useBase.d.ts +8 -0
- package/es/cascader/hooks/useBase.js +40 -0
- package/es/cascader/hooks/useCheckable.d.ts +2 -0
- package/es/cascader/hooks/useCheckable.js +1 -0
- package/es/cascader/hooks/useColumnIcons.d.ts +3 -0
- package/es/cascader/hooks/useColumnIcons.js +1 -0
- package/es/cascader/index.d.ts +55 -0
- package/es/cascader/index.js +87 -0
- package/es/cascader/style/columns.d.ts +4 -0
- package/es/cascader/style/columns.js +44 -0
- package/es/cascader/style/index.d.ts +51 -0
- package/es/cascader/style/index.js +44 -0
- package/es/cascader/style/panel.d.ts +2 -0
- package/es/cascader/style/panel.js +44 -0
- package/es/checkbox/Checkbox.d.ts +43 -0
- package/es/checkbox/Checkbox.js +46 -0
- package/es/checkbox/Group.d.ts +32 -0
- package/es/checkbox/Group.js +46 -0
- package/es/checkbox/GroupContext.d.ts +12 -0
- package/es/checkbox/GroupContext.js +1 -0
- package/es/checkbox/index.d.ts +11 -0
- package/es/checkbox/index.js +46 -0
- package/es/checkbox/style/index.d.ts +23 -0
- package/es/checkbox/style/index.js +41 -0
- package/es/checkbox/useBubbleLock.d.ts +7 -0
- package/es/checkbox/useBubbleLock.js +1 -0
- package/es/col/index.d.ts +4 -0
- package/es/col/index.js +40 -0
- package/es/col/style/index.d.ts +2 -0
- package/es/col/style/index.js +1 -0
- package/es/collapse/Collapse.d.ts +45 -0
- package/es/collapse/Collapse.js +47 -0
- package/es/collapse/CollapsePanel.d.ts +19 -0
- package/es/collapse/CollapsePanel.js +40 -0
- package/es/collapse/index.d.ts +4 -0
- package/es/collapse/index.js +47 -0
- package/es/collapse/style/index.d.ts +46 -0
- package/es/collapse/style/index.js +42 -0
- package/es/color-picker/ColorPicker.d.ts +8 -0
- package/es/color-picker/ColorPicker.js +130 -0
- package/es/color-picker/ColorPickerPanel.d.ts +9 -0
- package/es/color-picker/ColorPickerPanel.js +130 -0
- package/es/color-picker/color.d.ts +34 -0
- package/es/color-picker/color.js +1 -0
- package/es/color-picker/components/ColorAlphaInput.d.ts +9 -0
- package/es/color-picker/components/ColorAlphaInput.js +70 -0
- package/es/color-picker/components/ColorClear.d.ts +9 -0
- package/es/color-picker/components/ColorClear.js +1 -0
- package/es/color-picker/components/ColorHexInput.d.ts +9 -0
- package/es/color-picker/components/ColorHexInput.js +66 -0
- package/es/color-picker/components/ColorHsbInput.d.ts +9 -0
- package/es/color-picker/components/ColorHsbInput.js +70 -0
- package/es/color-picker/components/ColorInput.d.ts +14 -0
- package/es/color-picker/components/ColorInput.js +116 -0
- package/es/color-picker/components/ColorPresets.d.ts +12 -0
- package/es/color-picker/components/ColorPresets.js +47 -0
- package/es/color-picker/components/ColorRgbInput.d.ts +9 -0
- package/es/color-picker/components/ColorRgbInput.js +70 -0
- package/es/color-picker/components/ColorSlider.d.ts +20 -0
- package/es/color-picker/components/ColorSlider.js +61 -0
- package/es/color-picker/components/ColorSteppers.d.ts +15 -0
- package/es/color-picker/components/ColorSteppers.js +70 -0
- package/es/color-picker/components/ColorTrigger.d.ts +20 -0
- package/es/color-picker/components/ColorTrigger.js +1 -0
- package/es/color-picker/components/PanelPicker/GradientColorBar.d.ts +8 -0
- package/es/color-picker/components/PanelPicker/GradientColorBar.js +61 -0
- package/es/color-picker/components/PanelPicker/index.d.ts +3 -0
- package/es/color-picker/components/PanelPicker/index.js +130 -0
- package/es/color-picker/components/PanelPresets.d.ts +3 -0
- package/es/color-picker/components/PanelPresets.js +47 -0
- package/es/color-picker/context.d.ts +38 -0
- package/es/color-picker/context.js +1 -0
- package/es/color-picker/hooks/useModeColor.d.ts +17 -0
- package/es/color-picker/hooks/useModeColor.js +1 -0
- package/es/color-picker/index.d.ts +4 -0
- package/es/color-picker/index.js +130 -0
- package/es/color-picker/interface.d.ts +73 -0
- package/es/color-picker/interface.js +1 -0
- package/es/color-picker/style/color-block.d.ts +8 -0
- package/es/color-picker/style/color-block.js +1 -0
- package/es/color-picker/style/index.d.ts +62 -0
- package/es/color-picker/style/index.js +35 -0
- package/es/color-picker/style/input.d.ts +5 -0
- package/es/color-picker/style/input.js +1 -0
- package/es/color-picker/style/picker.d.ts +5 -0
- package/es/color-picker/style/picker.js +1 -0
- package/es/color-picker/style/presets.d.ts +5 -0
- package/es/color-picker/style/presets.js +1 -0
- package/es/color-picker/style/slider.d.ts +5 -0
- package/es/color-picker/style/slider.js +1 -0
- package/es/color-picker/util.d.ts +15 -0
- package/es/color-picker/util.js +1 -0
- package/es/config-provider/DisabledContext.d.ts +8 -0
- package/es/config-provider/DisabledContext.js +1 -0
- package/es/config-provider/MotionWrapper.d.ts +5 -0
- package/es/config-provider/MotionWrapper.js +35 -0
- package/es/config-provider/PropWarning.d.ts +6 -0
- package/es/config-provider/PropWarning.js +1 -0
- package/es/config-provider/SizeContext.d.ts +9 -0
- package/es/config-provider/SizeContext.js +1 -0
- package/es/config-provider/UnstableContext.d.ts +10 -0
- package/es/config-provider/UnstableContext.js +2 -0
- package/es/config-provider/context.d.ts +248 -0
- package/es/config-provider/context.js +1 -0
- package/es/config-provider/cssVariables.d.ts +3 -0
- package/es/config-provider/cssVariables.js +6 -0
- package/es/config-provider/defaultRenderEmpty.d.ts +8 -0
- package/es/config-provider/defaultRenderEmpty.js +41 -0
- package/es/config-provider/hooks/useCSSVarCls.d.ts +7 -0
- package/es/config-provider/hooks/useCSSVarCls.js +35 -0
- package/es/config-provider/hooks/useConfig.d.ts +5 -0
- package/es/config-provider/hooks/useConfig.js +1 -0
- package/es/config-provider/hooks/useSize.d.ts +3 -0
- package/es/config-provider/hooks/useSize.js +1 -0
- package/es/config-provider/hooks/useTheme.d.ts +4 -0
- package/es/config-provider/hooks/useTheme.js +35 -0
- package/es/config-provider/hooks/useThemeKey.d.ts +3 -0
- package/es/config-provider/hooks/useThemeKey.js +1 -0
- package/es/config-provider/index.d.ts +139 -0
- package/es/config-provider/index.js +40 -0
- package/es/config-provider/style/index.d.ts +1 -0
- package/es/config-provider/style/index.js +35 -0
- package/es/copy/index.d.ts +13 -0
- package/es/copy/index.js +1 -0
- package/es/date-picker/PickerButton.d.ts +4 -0
- package/es/date-picker/PickerButton.js +48 -0
- package/es/date-picker/generatePicker/constant.d.ts +5 -0
- package/es/date-picker/generatePicker/constant.js +1 -0
- package/es/date-picker/generatePicker/generateRangePicker.d.ts +17 -0
- package/es/date-picker/generatePicker/generateRangePicker.js +99 -0
- package/es/date-picker/generatePicker/generateSinglePicker.d.ts +25 -0
- package/es/date-picker/generatePicker/generateSinglePicker.js +99 -0
- package/es/date-picker/generatePicker/index.d.ts +36 -0
- package/es/date-picker/generatePicker/index.js +99 -0
- package/es/date-picker/generatePicker/interface.d.ts +72 -0
- package/es/date-picker/generatePicker/interface.js +0 -0
- package/es/date-picker/generatePicker/useComponents.d.ts +13 -0
- package/es/date-picker/generatePicker/useComponents.js +48 -0
- package/es/date-picker/index.d.ts +48 -0
- package/es/date-picker/index.js +99 -0
- package/es/date-picker/locale/ar_EG.d.ts +3 -0
- package/es/date-picker/locale/ar_EG.js +1 -0
- package/es/date-picker/locale/az_AZ.d.ts +3 -0
- package/es/date-picker/locale/az_AZ.js +1 -0
- package/es/date-picker/locale/bg_BG.d.ts +3 -0
- package/es/date-picker/locale/bg_BG.js +1 -0
- package/es/date-picker/locale/bn_BD.d.ts +3 -0
- package/es/date-picker/locale/bn_BD.js +1 -0
- package/es/date-picker/locale/by_BY.d.ts +3 -0
- package/es/date-picker/locale/by_BY.js +1 -0
- package/es/date-picker/locale/ca_ES.d.ts +3 -0
- package/es/date-picker/locale/ca_ES.js +1 -0
- package/es/date-picker/locale/cs_CZ.d.ts +3 -0
- package/es/date-picker/locale/cs_CZ.js +1 -0
- package/es/date-picker/locale/da_DK.d.ts +3 -0
- package/es/date-picker/locale/da_DK.js +1 -0
- package/es/date-picker/locale/de_DE.d.ts +3 -0
- package/es/date-picker/locale/de_DE.js +1 -0
- package/es/date-picker/locale/el_GR.d.ts +3 -0
- package/es/date-picker/locale/el_GR.js +1 -0
- package/es/date-picker/locale/en_GB.d.ts +3 -0
- package/es/date-picker/locale/en_GB.js +1 -0
- package/es/date-picker/locale/en_US.d.ts +3 -0
- package/es/date-picker/locale/en_US.js +1 -0
- package/es/date-picker/locale/es_ES.d.ts +3 -0
- package/es/date-picker/locale/es_ES.js +1 -0
- package/es/date-picker/locale/et_EE.d.ts +3 -0
- package/es/date-picker/locale/et_EE.js +1 -0
- package/es/date-picker/locale/eu_ES.d.ts +3 -0
- package/es/date-picker/locale/eu_ES.js +1 -0
- package/es/date-picker/locale/fa_IR.d.ts +3 -0
- package/es/date-picker/locale/fa_IR.js +1 -0
- package/es/date-picker/locale/fi_FI.d.ts +3 -0
- package/es/date-picker/locale/fi_FI.js +1 -0
- package/es/date-picker/locale/fr_BE.d.ts +3 -0
- package/es/date-picker/locale/fr_BE.js +1 -0
- package/es/date-picker/locale/fr_CA.d.ts +3 -0
- package/es/date-picker/locale/fr_CA.js +1 -0
- package/es/date-picker/locale/fr_FR.d.ts +3 -0
- package/es/date-picker/locale/fr_FR.js +1 -0
- package/es/date-picker/locale/ga_IE.d.ts +3 -0
- package/es/date-picker/locale/ga_IE.js +1 -0
- package/es/date-picker/locale/gl_ES.d.ts +3 -0
- package/es/date-picker/locale/gl_ES.js +1 -0
- package/es/date-picker/locale/he_IL.d.ts +3 -0
- package/es/date-picker/locale/he_IL.js +1 -0
- package/es/date-picker/locale/hi_IN.d.ts +3 -0
- package/es/date-picker/locale/hi_IN.js +1 -0
- package/es/date-picker/locale/hr_HR.d.ts +3 -0
- package/es/date-picker/locale/hr_HR.js +1 -0
- package/es/date-picker/locale/hu_HU.d.ts +3 -0
- package/es/date-picker/locale/hu_HU.js +1 -0
- package/es/date-picker/locale/id_ID.d.ts +3 -0
- package/es/date-picker/locale/id_ID.js +1 -0
- package/es/date-picker/locale/is_IS.d.ts +3 -0
- package/es/date-picker/locale/is_IS.js +1 -0
- package/es/date-picker/locale/it_IT.d.ts +3 -0
- package/es/date-picker/locale/it_IT.js +1 -0
- package/es/date-picker/locale/ja_JP.d.ts +3 -0
- package/es/date-picker/locale/ja_JP.js +1 -0
- package/es/date-picker/locale/ka_GE.d.ts +3 -0
- package/es/date-picker/locale/ka_GE.js +1 -0
- package/es/date-picker/locale/kk_KZ.d.ts +3 -0
- package/es/date-picker/locale/kk_KZ.js +1 -0
- package/es/date-picker/locale/km_KH.d.ts +3 -0
- package/es/date-picker/locale/km_KH.js +1 -0
- package/es/date-picker/locale/kmr_IQ.d.ts +3 -0
- package/es/date-picker/locale/kmr_IQ.js +1 -0
- package/es/date-picker/locale/kn_IN.d.ts +3 -0
- package/es/date-picker/locale/kn_IN.js +1 -0
- package/es/date-picker/locale/ko_KR.d.ts +3 -0
- package/es/date-picker/locale/ko_KR.js +1 -0
- package/es/date-picker/locale/lt_LT.d.ts +3 -0
- package/es/date-picker/locale/lt_LT.js +1 -0
- package/es/date-picker/locale/lv_LV.d.ts +3 -0
- package/es/date-picker/locale/lv_LV.js +1 -0
- package/es/date-picker/locale/mk_MK.d.ts +3 -0
- package/es/date-picker/locale/mk_MK.js +1 -0
- package/es/date-picker/locale/ml_IN.d.ts +3 -0
- package/es/date-picker/locale/ml_IN.js +1 -0
- package/es/date-picker/locale/mn_MN.d.ts +3 -0
- package/es/date-picker/locale/mn_MN.js +1 -0
- package/es/date-picker/locale/ms_MY.d.ts +3 -0
- package/es/date-picker/locale/ms_MY.js +1 -0
- package/es/date-picker/locale/my_MM.d.ts +3 -0
- package/es/date-picker/locale/my_MM.js +1 -0
- package/es/date-picker/locale/nb_NO.d.ts +3 -0
- package/es/date-picker/locale/nb_NO.js +1 -0
- package/es/date-picker/locale/nl_BE.d.ts +3 -0
- package/es/date-picker/locale/nl_BE.js +1 -0
- package/es/date-picker/locale/nl_NL.d.ts +3 -0
- package/es/date-picker/locale/nl_NL.js +1 -0
- package/es/date-picker/locale/pl_PL.d.ts +3 -0
- package/es/date-picker/locale/pl_PL.js +1 -0
- package/es/date-picker/locale/pt_BR.d.ts +3 -0
- package/es/date-picker/locale/pt_BR.js +1 -0
- package/es/date-picker/locale/pt_PT.d.ts +3 -0
- package/es/date-picker/locale/pt_PT.js +1 -0
- package/es/date-picker/locale/ro_RO.d.ts +3 -0
- package/es/date-picker/locale/ro_RO.js +1 -0
- package/es/date-picker/locale/ru_RU.d.ts +4 -0
- package/es/date-picker/locale/ru_RU.js +1 -0
- package/es/date-picker/locale/si_LK.d.ts +3 -0
- package/es/date-picker/locale/si_LK.js +1 -0
- package/es/date-picker/locale/sk_SK.d.ts +3 -0
- package/es/date-picker/locale/sk_SK.js +1 -0
- package/es/date-picker/locale/sl_SI.d.ts +3 -0
- package/es/date-picker/locale/sl_SI.js +1 -0
- package/es/date-picker/locale/sr_RS.d.ts +3 -0
- package/es/date-picker/locale/sr_RS.js +1 -0
- package/es/date-picker/locale/sv_SE.d.ts +3 -0
- package/es/date-picker/locale/sv_SE.js +1 -0
- package/es/date-picker/locale/ta_IN.d.ts +3 -0
- package/es/date-picker/locale/ta_IN.js +1 -0
- package/es/date-picker/locale/th_TH.d.ts +3 -0
- package/es/date-picker/locale/th_TH.js +1 -0
- package/es/date-picker/locale/tk_TK.d.ts +3 -0
- package/es/date-picker/locale/tk_TK.js +1 -0
- package/es/date-picker/locale/tr_TR.d.ts +3 -0
- package/es/date-picker/locale/tr_TR.js +1 -0
- package/es/date-picker/locale/uk_UA.d.ts +3 -0
- package/es/date-picker/locale/uk_UA.js +1 -0
- package/es/date-picker/locale/ur_PK.d.ts +3 -0
- package/es/date-picker/locale/ur_PK.js +1 -0
- package/es/date-picker/locale/uz_UZ.d.ts +3 -0
- package/es/date-picker/locale/uz_UZ.js +1 -0
- package/es/date-picker/locale/vi_VN.d.ts +3 -0
- package/es/date-picker/locale/vi_VN.js +1 -0
- package/es/date-picker/locale/zh_CN.d.ts +3 -0
- package/es/date-picker/locale/zh_CN.js +1 -0
- package/es/date-picker/locale/zh_TW.d.ts +3 -0
- package/es/date-picker/locale/zh_TW.js +1 -0
- package/es/date-picker/style/index.d.ts +7 -0
- package/es/date-picker/style/index.js +86 -0
- package/es/date-picker/style/multiple.d.ts +4 -0
- package/es/date-picker/style/multiple.js +35 -0
- package/es/date-picker/style/panel.d.ts +6 -0
- package/es/date-picker/style/panel.js +12 -0
- package/es/date-picker/style/token.d.ts +103 -0
- package/es/date-picker/style/token.js +35 -0
- package/es/date-picker/style/variants.d.ts +4 -0
- package/es/date-picker/style/variants.js +35 -0
- package/es/date-picker/util.d.ts +8 -0
- package/es/date-picker/util.js +1 -0
- package/es/descriptions/Cell.d.ts +17 -0
- package/es/descriptions/Cell.js +1 -0
- package/es/descriptions/DescriptionsContext.d.ts +7 -0
- package/es/descriptions/DescriptionsContext.js +1 -0
- package/es/descriptions/Item.d.ts +13 -0
- package/es/descriptions/Item.js +1 -0
- package/es/descriptions/Row.d.ts +13 -0
- package/es/descriptions/Row.js +1 -0
- package/es/descriptions/constant.d.ts +3 -0
- package/es/descriptions/constant.js +1 -0
- package/es/descriptions/hooks/useItems.d.ts +4 -0
- package/es/descriptions/hooks/useItems.js +35 -0
- package/es/descriptions/hooks/useRow.d.ts +3 -0
- package/es/descriptions/hooks/useRow.js +1 -0
- package/es/descriptions/index.d.ts +42 -0
- package/es/descriptions/index.js +40 -0
- package/es/descriptions/style/index.d.ts +52 -0
- package/es/descriptions/style/index.js +35 -0
- package/es/divider/index.d.ts +20 -0
- package/es/divider/index.js +40 -0
- package/es/divider/style/index.d.ts +23 -0
- package/es/divider/style/index.js +35 -0
- package/es/drag/SortableBoard.d.ts +4 -0
- package/es/drag/SortableBoard.js +1 -0
- package/es/drag/SortableBoardProvider.d.ts +14 -0
- package/es/drag/SortableBoardProvider.js +1 -0
- package/es/drag/SortableList.d.ts +8 -0
- package/es/drag/SortableList.js +1 -0
- package/es/drag/SortableZone.d.ts +7 -0
- package/es/drag/SortableZone.js +1 -0
- package/es/drag/SortableZoneShared.d.ts +36 -0
- package/es/drag/SortableZoneShared.js +1 -0
- package/es/drag/index.d.ts +12 -0
- package/es/drag/index.js +1 -0
- package/es/drag/type.d.ts +362 -0
- package/es/drag/type.js +0 -0
- package/es/drawer/DrawerPanel.d.ts +49 -0
- package/es/drawer/DrawerPanel.js +55 -0
- package/es/drawer/index.d.ts +34 -0
- package/es/drawer/index.js +55 -0
- package/es/drawer/style/index.d.ts +23 -0
- package/es/drawer/style/index.js +35 -0
- package/es/drawer/style/motion.d.ts +4 -0
- package/es/drawer/style/motion.js +1 -0
- package/es/dropdown/dropdown-button.d.ts +21 -0
- package/es/dropdown/dropdown-button.js +88 -0
- package/es/dropdown/dropdown.d.ts +50 -0
- package/es/dropdown/dropdown.js +83 -0
- package/es/dropdown/index.d.ts +8 -0
- package/es/dropdown/index.js +89 -0
- package/es/dropdown/style/index.d.ts +40 -0
- package/es/dropdown/style/index.js +64 -0
- package/es/dropdown/style/status.d.ts +4 -0
- package/es/dropdown/style/status.js +1 -0
- package/es/empty/empty.d.ts +3 -0
- package/es/empty/empty.js +36 -0
- package/es/empty/index.d.ts +21 -0
- package/es/empty/index.js +41 -0
- package/es/empty/simple.d.ts +3 -0
- package/es/empty/simple.js +36 -0
- package/es/empty/style/index.d.ts +5 -0
- package/es/empty/style/index.js +35 -0
- package/es/flex/index.d.ts +4 -0
- package/es/flex/index.js +40 -0
- package/es/flex/interface.d.ts +15 -0
- package/es/flex/interface.js +0 -0
- package/es/flex/style/index.d.ts +30 -0
- package/es/flex/style/index.js +35 -0
- package/es/flex/utils.d.ts +6 -0
- package/es/flex/utils.js +1 -0
- package/es/form/ErrorList.d.ts +13 -0
- package/es/form/ErrorList.js +50 -0
- package/es/form/Form.d.ts +43 -0
- package/es/form/Form.js +50 -0
- package/es/form/FormItem/ItemHolder.d.ts +18 -0
- package/es/form/FormItem/ItemHolder.js +59 -0
- package/es/form/FormItem/StatusProvider.d.ts +16 -0
- package/es/form/FormItem/StatusProvider.js +1 -0
- package/es/form/FormItem/index.d.ts +46 -0
- package/es/form/FormItem/index.js +60 -0
- package/es/form/FormItemInput.d.ts +22 -0
- package/es/form/FormItemInput.js +50 -0
- package/es/form/FormItemLabel.d.ts +22 -0
- package/es/form/FormItemLabel.js +49 -0
- package/es/form/FormList.d.ts +25 -0
- package/es/form/FormList.js +40 -0
- package/es/form/context.d.ts +52 -0
- package/es/form/context.js +1 -0
- package/es/form/hooks/useChildren.d.ts +2 -0
- package/es/form/hooks/useChildren.js +1 -0
- package/es/form/hooks/useDebounce.d.ts +1 -0
- package/es/form/hooks/useDebounce.js +1 -0
- package/es/form/hooks/useForm.d.ts +8 -0
- package/es/form/hooks/useForm.js +1 -0
- package/es/form/hooks/useFormInstance.d.ts +2 -0
- package/es/form/hooks/useFormInstance.js +1 -0
- package/es/form/hooks/useFormItemStatus.d.ts +9 -0
- package/es/form/hooks/useFormItemStatus.js +2 -0
- package/es/form/hooks/useFormWarning.d.ts +2 -0
- package/es/form/hooks/useFormWarning.js +1 -0
- package/es/form/hooks/useFrameState.d.ts +3 -0
- package/es/form/hooks/useFrameState.js +1 -0
- package/es/form/hooks/useItemRef.d.ts +3 -0
- package/es/form/hooks/useItemRef.js +1 -0
- package/es/form/hooks/useVariants.d.ts +7 -0
- package/es/form/hooks/useVariants.js +40 -0
- package/es/form/index.d.ts +26 -0
- package/es/form/index.js +60 -0
- package/es/form/interface.d.ts +3 -0
- package/es/form/interface.js +0 -0
- package/es/form/style/explain.d.ts +4 -0
- package/es/form/style/explain.js +3 -0
- package/es/form/style/fallbackCmp.d.ts +6 -0
- package/es/form/style/fallbackCmp.js +45 -0
- package/es/form/style/index.d.ts +74 -0
- package/es/form/style/index.js +45 -0
- package/es/form/util.d.ts +9 -0
- package/es/form/util.js +1 -0
- package/es/form/validateMessagesContext.d.ts +3 -0
- package/es/form/validateMessagesContext.js +1 -0
- package/es/form-area/ValidateTooltip.d.ts +12 -0
- package/es/form-area/ValidateTooltip.js +353 -0
- package/es/form-area/index.d.ts +4 -0
- package/es/form-area/index.js +353 -0
- package/es/form-area/renderItemMap.d.ts +45 -0
- package/es/form-area/renderItemMap.js +353 -0
- package/es/form-area/type.d.ts +158 -0
- package/es/form-area/type.js +0 -0
- package/es/grid/RowContext.d.ts +6 -0
- package/es/grid/RowContext.js +1 -0
- package/es/grid/col.d.ts +29 -0
- package/es/grid/col.js +40 -0
- package/es/grid/hooks/useBreakpoint.d.ts +3 -0
- package/es/grid/hooks/useBreakpoint.js +35 -0
- package/es/grid/index.d.ts +10 -0
- package/es/grid/index.js +40 -0
- package/es/grid/row.d.ts +20 -0
- package/es/grid/row.js +40 -0
- package/es/grid/style/index.d.ts +7 -0
- package/es/grid/style/index.js +35 -0
- package/es/hooks/index.d.ts +5 -0
- package/es/hooks/index.js +353 -0
- package/es/hooks/useDrawer.d.ts +10 -0
- package/es/hooks/useDrawer.js +1 -0
- package/es/hooks/useForm.d.ts +33 -0
- package/es/hooks/useForm.js +353 -0
- package/es/hooks/useModal.d.ts +10 -0
- package/es/hooks/useModal.js +1 -0
- package/es/hooks/useParsedHash.d.ts +9 -0
- package/es/hooks/useParsedHash.js +1 -0
- package/es/hooks/useUrlState.d.ts +9 -0
- package/es/hooks/useUrlState.js +1 -0
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.js +1 -0
- package/es/image/PreviewGroup.d.ts +15 -0
- package/es/image/PreviewGroup.js +54 -0
- package/es/image/index.d.ts +9 -0
- package/es/image/index.js +54 -0
- package/es/image/style/index.d.ts +59 -0
- package/es/image/style/index.js +49 -0
- package/es/index.d.ts +150 -0
- package/es/index.js +353 -0
- package/es/input/Group.d.ts +15 -0
- package/es/input/Group.js +58 -0
- package/es/input/Input.d.ts +25 -0
- package/es/input/Input.js +59 -0
- package/es/input/OTP/OTPInput.d.ts +11 -0
- package/es/input/OTP/OTPInput.js +59 -0
- package/es/input/OTP/index.d.ts +29 -0
- package/es/input/OTP/index.js +59 -0
- package/es/input/Password.d.ts +14 -0
- package/es/input/Password.js +59 -0
- package/es/input/Search.d.ts +12 -0
- package/es/input/Search.js +66 -0
- package/es/input/TextArea.d.ts +25 -0
- package/es/input/TextArea.js +59 -0
- package/es/input/hooks/useRemovePasswordTimeout.d.ts +2 -0
- package/es/input/hooks/useRemovePasswordTimeout.js +1 -0
- package/es/input/index.d.ts +20 -0
- package/es/input/index.js +66 -0
- package/es/input/style/index.d.ts +17 -0
- package/es/input/style/index.js +53 -0
- package/es/input/style/otp.d.ts +2 -0
- package/es/input/style/otp.js +35 -0
- package/es/input/style/token.d.ts +97 -0
- package/es/input/style/token.js +35 -0
- package/es/input/style/variants.d.ts +15 -0
- package/es/input/style/variants.js +35 -0
- package/es/input/utils.d.ts +8 -0
- package/es/input/utils.js +1 -0
- package/es/input-number/index.d.ts +34 -0
- package/es/input-number/index.js +70 -0
- package/es/input-number/style/index.d.ts +18 -0
- package/es/input-number/style/index.js +65 -0
- package/es/input-number/style/token.d.ts +52 -0
- package/es/input-number/style/token.js +35 -0
- package/es/layout/Sider.d.ts +28 -0
- package/es/layout/Sider.js +40 -0
- package/es/layout/context.d.ts +8 -0
- package/es/layout/context.js +1 -0
- package/es/layout/hooks/useHasSider.d.ts +2 -0
- package/es/layout/hooks/useHasSider.js +40 -0
- package/es/layout/index.d.ts +15 -0
- package/es/layout/index.js +40 -0
- package/es/layout/layout.d.ts +18 -0
- package/es/layout/layout.js +40 -0
- package/es/layout/style/index.d.ts +96 -0
- package/es/layout/style/index.js +35 -0
- package/es/layout/style/sider.d.ts +2 -0
- package/es/layout/style/sider.js +35 -0
- package/es/list/Item.d.ts +35 -0
- package/es/list/Item.js +40 -0
- package/es/list/context.d.ts +8 -0
- package/es/list/context.js +1 -0
- package/es/list/index.d.ts +56 -0
- package/es/list/index.js +111 -0
- package/es/list/style/index.d.ts +62 -0
- package/es/list/style/index.js +35 -0
- package/es/locale/ar_EG.d.ts +3 -0
- package/es/locale/ar_EG.js +1 -0
- package/es/locale/az_AZ.d.ts +3 -0
- package/es/locale/az_AZ.js +1 -0
- package/es/locale/bg_BG.d.ts +3 -0
- package/es/locale/bg_BG.js +1 -0
- package/es/locale/bn_BD.d.ts +3 -0
- package/es/locale/bn_BD.js +1 -0
- package/es/locale/by_BY.d.ts +3 -0
- package/es/locale/by_BY.js +1 -0
- package/es/locale/ca_ES.d.ts +3 -0
- package/es/locale/ca_ES.js +1 -0
- package/es/locale/context.d.ts +6 -0
- package/es/locale/context.js +1 -0
- package/es/locale/cs_CZ.d.ts +3 -0
- package/es/locale/cs_CZ.js +1 -0
- package/es/locale/da_DK.d.ts +3 -0
- package/es/locale/da_DK.js +1 -0
- package/es/locale/de_DE.d.ts +3 -0
- package/es/locale/de_DE.js +1 -0
- package/es/locale/el_GR.d.ts +3 -0
- package/es/locale/el_GR.js +1 -0
- package/es/locale/en_GB.d.ts +3 -0
- package/es/locale/en_GB.js +1 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +1 -0
- package/es/locale/es_ES.d.ts +3 -0
- package/es/locale/es_ES.js +1 -0
- package/es/locale/et_EE.d.ts +3 -0
- package/es/locale/et_EE.js +1 -0
- package/es/locale/eu_ES.d.ts +3 -0
- package/es/locale/eu_ES.js +1 -0
- package/es/locale/fa_IR.d.ts +3 -0
- package/es/locale/fa_IR.js +1 -0
- package/es/locale/fi_FI.d.ts +3 -0
- package/es/locale/fi_FI.js +1 -0
- package/es/locale/fr_BE.d.ts +3 -0
- package/es/locale/fr_BE.js +1 -0
- package/es/locale/fr_CA.d.ts +3 -0
- package/es/locale/fr_CA.js +1 -0
- package/es/locale/fr_FR.d.ts +3 -0
- package/es/locale/fr_FR.js +1 -0
- package/es/locale/ga_IE.d.ts +3 -0
- package/es/locale/ga_IE.js +1 -0
- package/es/locale/gl_ES.d.ts +3 -0
- package/es/locale/gl_ES.js +1 -0
- package/es/locale/he_IL.d.ts +3 -0
- package/es/locale/he_IL.js +1 -0
- package/es/locale/hi_IN.d.ts +3 -0
- package/es/locale/hi_IN.js +1 -0
- package/es/locale/hr_HR.d.ts +3 -0
- package/es/locale/hr_HR.js +1 -0
- package/es/locale/hu_HU.d.ts +3 -0
- package/es/locale/hu_HU.js +1 -0
- package/es/locale/hy_AM.d.ts +3 -0
- package/es/locale/hy_AM.js +2 -0
- package/es/locale/id_ID.d.ts +3 -0
- package/es/locale/id_ID.js +1 -0
- package/es/locale/index.d.ts +61 -0
- package/es/locale/index.js +2 -0
- package/es/locale/is_IS.d.ts +3 -0
- package/es/locale/is_IS.js +1 -0
- package/es/locale/it_IT.d.ts +3 -0
- package/es/locale/it_IT.js +1 -0
- package/es/locale/ja_JP.d.ts +3 -0
- package/es/locale/ja_JP.js +1 -0
- package/es/locale/ka_GE.d.ts +3 -0
- package/es/locale/ka_GE.js +1 -0
- package/es/locale/kk_KZ.d.ts +3 -0
- package/es/locale/kk_KZ.js +1 -0
- package/es/locale/km_KH.d.ts +3 -0
- package/es/locale/km_KH.js +1 -0
- package/es/locale/kmr_IQ.d.ts +3 -0
- package/es/locale/kmr_IQ.js +1 -0
- package/es/locale/kn_IN.d.ts +3 -0
- package/es/locale/kn_IN.js +1 -0
- package/es/locale/ko_KR.d.ts +3 -0
- package/es/locale/ko_KR.js +1 -0
- package/es/locale/ku_IQ.d.ts +3 -0
- package/es/locale/ku_IQ.js +1 -0
- package/es/locale/lt_LT.d.ts +3 -0
- package/es/locale/lt_LT.js +1 -0
- package/es/locale/lv_LV.d.ts +3 -0
- package/es/locale/lv_LV.js +1 -0
- package/es/locale/mk_MK.d.ts +3 -0
- package/es/locale/mk_MK.js +1 -0
- package/es/locale/ml_IN.d.ts +3 -0
- package/es/locale/ml_IN.js +1 -0
- package/es/locale/mn_MN.d.ts +3 -0
- package/es/locale/mn_MN.js +1 -0
- package/es/locale/ms_MY.d.ts +3 -0
- package/es/locale/ms_MY.js +1 -0
- package/es/locale/my_MM.d.ts +3 -0
- package/es/locale/my_MM.js +1 -0
- package/es/locale/nb_NO.d.ts +3 -0
- package/es/locale/nb_NO.js +1 -0
- package/es/locale/ne_NP.d.ts +3 -0
- package/es/locale/ne_NP.js +1 -0
- package/es/locale/nl_BE.d.ts +3 -0
- package/es/locale/nl_BE.js +1 -0
- package/es/locale/nl_NL.d.ts +3 -0
- package/es/locale/nl_NL.js +1 -0
- package/es/locale/pl_PL.d.ts +3 -0
- package/es/locale/pl_PL.js +1 -0
- package/es/locale/pt_BR.d.ts +3 -0
- package/es/locale/pt_BR.js +1 -0
- package/es/locale/pt_PT.d.ts +3 -0
- package/es/locale/pt_PT.js +1 -0
- package/es/locale/ro_RO.d.ts +3 -0
- package/es/locale/ro_RO.js +1 -0
- package/es/locale/ru_RU.d.ts +3 -0
- package/es/locale/ru_RU.js +1 -0
- package/es/locale/si_LK.d.ts +3 -0
- package/es/locale/si_LK.js +1 -0
- package/es/locale/sk_SK.d.ts +3 -0
- package/es/locale/sk_SK.js +1 -0
- package/es/locale/sl_SI.d.ts +3 -0
- package/es/locale/sl_SI.js +1 -0
- package/es/locale/sr_RS.d.ts +3 -0
- package/es/locale/sr_RS.js +1 -0
- package/es/locale/sv_SE.d.ts +3 -0
- package/es/locale/sv_SE.js +1 -0
- package/es/locale/ta_IN.d.ts +3 -0
- package/es/locale/ta_IN.js +1 -0
- package/es/locale/th_TH.d.ts +3 -0
- package/es/locale/th_TH.js +1 -0
- package/es/locale/tk_TK.d.ts +3 -0
- package/es/locale/tk_TK.js +1 -0
- package/es/locale/tr_TR.d.ts +3 -0
- package/es/locale/tr_TR.js +1 -0
- package/es/locale/uk_UA.d.ts +3 -0
- package/es/locale/uk_UA.js +1 -0
- package/es/locale/ur_PK.d.ts +3 -0
- package/es/locale/ur_PK.js +1 -0
- package/es/locale/useLocale.d.ts +4 -0
- package/es/locale/useLocale.js +1 -0
- package/es/locale/uz_UZ.d.ts +3 -0
- package/es/locale/uz_UZ.js +1 -0
- package/es/locale/vi_VN.d.ts +3 -0
- package/es/locale/vi_VN.js +1 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +1 -0
- package/es/locale/zh_HK.d.ts +3 -0
- package/es/locale/zh_HK.js +1 -0
- package/es/locale/zh_TW.d.ts +3 -0
- package/es/locale/zh_TW.js +1 -0
- package/es/mentions/index.d.ts +45 -0
- package/es/mentions/index.js +58 -0
- package/es/mentions/style/index.d.ts +22 -0
- package/es/mentions/style/index.js +53 -0
- package/es/menu/MenuContext.d.ts +11 -0
- package/es/menu/MenuContext.js +1 -0
- package/es/menu/MenuDivider.d.ts +9 -0
- package/es/menu/MenuDivider.js +40 -0
- package/es/menu/MenuItem.d.ts +13 -0
- package/es/menu/MenuItem.js +49 -0
- package/es/menu/OverrideContext.d.ts +13 -0
- package/es/menu/OverrideContext.js +40 -0
- package/es/menu/SubMenu.d.ts +13 -0
- package/es/menu/SubMenu.js +35 -0
- package/es/menu/index.d.ts +32 -0
- package/es/menu/index.js +66 -0
- package/es/menu/interface.d.ts +20 -0
- package/es/menu/interface.js +0 -0
- package/es/menu/menu.d.ts +19 -0
- package/es/menu/menu.js +66 -0
- package/es/menu/style/horizontal.d.ts +4 -0
- package/es/menu/style/horizontal.js +3 -0
- package/es/menu/style/index.d.ts +354 -0
- package/es/menu/style/index.js +61 -0
- package/es/menu/style/rtl.d.ts +5 -0
- package/es/menu/style/rtl.js +2 -0
- package/es/menu/style/theme.d.ts +4 -0
- package/es/menu/style/theme.js +1 -0
- package/es/menu/style/vertical.d.ts +4 -0
- package/es/menu/style/vertical.js +9 -0
- package/es/message/PurePanel.d.ts +23 -0
- package/es/message/PurePanel.js +47 -0
- package/es/message/index.d.ts +23 -0
- package/es/message/index.js +47 -0
- package/es/message/interface.d.ts +66 -0
- package/es/message/interface.js +0 -0
- package/es/message/style/index.d.ts +23 -0
- package/es/message/style/index.js +42 -0
- package/es/message/useMessage.d.ts +8 -0
- package/es/message/useMessage.js +47 -0
- package/es/message/util.d.ts +4 -0
- package/es/message/util.js +1 -0
- package/es/modal/ConfirmDialog.d.ts +32 -0
- package/es/modal/ConfirmDialog.js +70 -0
- package/es/modal/Modal.d.ts +4 -0
- package/es/modal/Modal.js +68 -0
- package/es/modal/PurePanel.d.ts +9 -0
- package/es/modal/PurePanel.js +70 -0
- package/es/modal/components/ConfirmCancelBtn.d.ts +10 -0
- package/es/modal/components/ConfirmCancelBtn.js +48 -0
- package/es/modal/components/ConfirmOkBtn.d.ts +9 -0
- package/es/modal/components/ConfirmOkBtn.js +48 -0
- package/es/modal/components/NormalCancelBtn.d.ts +8 -0
- package/es/modal/components/NormalCancelBtn.js +48 -0
- package/es/modal/components/NormalOkBtn.d.ts +8 -0
- package/es/modal/components/NormalOkBtn.js +48 -0
- package/es/modal/confirm.d.ts +20 -0
- package/es/modal/confirm.js +70 -0
- package/es/modal/context.d.ts +8 -0
- package/es/modal/context.js +1 -0
- package/es/modal/destroyFns.d.ts +2 -0
- package/es/modal/destroyFns.js +1 -0
- package/es/modal/index.d.ts +15 -0
- package/es/modal/index.js +70 -0
- package/es/modal/interface.d.ts +123 -0
- package/es/modal/interface.js +0 -0
- package/es/modal/locale.d.ts +7 -0
- package/es/modal/locale.js +1 -0
- package/es/modal/shared.d.ts +9 -0
- package/es/modal/shared.js +48 -0
- package/es/modal/style/confirm.d.ts +2 -0
- package/es/modal/style/confirm.js +50 -0
- package/es/modal/style/index.d.ts +110 -0
- package/es/modal/style/index.js +49 -0
- package/es/modal/useModal/HookModal.d.ts +17 -0
- package/es/modal/useModal/HookModal.js +70 -0
- package/es/modal/useModal/index.d.ts +8 -0
- package/es/modal/useModal/index.js +70 -0
- package/es/notification/PurePanel.d.ts +27 -0
- package/es/notification/PurePanel.js +40 -0
- package/es/notification/index.d.ts +22 -0
- package/es/notification/index.js +41 -0
- package/es/notification/interface.d.ts +68 -0
- package/es/notification/interface.js +1 -0
- package/es/notification/style/index.d.ts +89 -0
- package/es/notification/style/index.js +35 -0
- package/es/notification/style/placement.d.ts +5 -0
- package/es/notification/style/placement.js +1 -0
- package/es/notification/style/pure-panel.d.ts +2 -0
- package/es/notification/style/pure-panel.js +35 -0
- package/es/notification/style/stack.d.ts +4 -0
- package/es/notification/style/stack.js +1 -0
- package/es/notification/useNotification.d.ts +8 -0
- package/es/notification/useNotification.js +40 -0
- package/es/notification/util.d.ts +5 -0
- package/es/notification/util.js +1 -0
- package/es/pagination/Pagination.d.ts +25 -0
- package/es/pagination/Pagination.js +111 -0
- package/es/pagination/index.d.ts +3 -0
- package/es/pagination/index.js +111 -0
- package/es/pagination/style/bordered.d.ts +2 -0
- package/es/pagination/style/bordered.js +68 -0
- package/es/pagination/style/index.d.ts +99 -0
- package/es/pagination/style/index.js +68 -0
- package/es/pagination/useShowSizeChanger.d.ts +3 -0
- package/es/pagination/useShowSizeChanger.js +1 -0
- package/es/popconfirm/PurePanel.d.ts +20 -0
- package/es/popconfirm/PurePanel.js +57 -0
- package/es/popconfirm/index.d.ts +30 -0
- package/es/popconfirm/index.js +57 -0
- package/es/popconfirm/style/index.d.ts +17 -0
- package/es/popconfirm/style/index.js +35 -0
- package/es/popover/PurePanel.d.ts +17 -0
- package/es/popover/PurePanel.js +49 -0
- package/es/popover/index.d.ts +15 -0
- package/es/popover/index.js +49 -0
- package/es/popover/style/index.d.ts +46 -0
- package/es/popover/style/index.js +44 -0
- package/es/progress/Circle.d.ts +10 -0
- package/es/progress/Circle.js +49 -0
- package/es/progress/Line.d.ts +36 -0
- package/es/progress/Line.js +35 -0
- package/es/progress/Steps.d.ts +9 -0
- package/es/progress/Steps.js +1 -0
- package/es/progress/index.d.ts +3 -0
- package/es/progress/index.js +49 -0
- package/es/progress/progress.d.ts +58 -0
- package/es/progress/progress.js +49 -0
- package/es/progress/style/index.d.ts +38 -0
- package/es/progress/style/index.js +35 -0
- package/es/progress/utils.d.ts +10 -0
- package/es/progress/utils.js +1 -0
- package/es/qr-code/QrcodeStatus.d.ts +11 -0
- package/es/qr-code/QrcodeStatus.js +48 -0
- package/es/qr-code/index.d.ts +4 -0
- package/es/qr-code/index.js +48 -0
- package/es/qr-code/interface.d.ts +29 -0
- package/es/qr-code/interface.js +0 -0
- package/es/qr-code/style/index.d.ts +6 -0
- package/es/qr-code/style/index.js +35 -0
- package/es/qrcode/index.d.ts +2 -0
- package/es/qrcode/index.js +48 -0
- package/es/qrcode/interface.d.ts +1 -0
- package/es/qrcode/interface.js +0 -0
- package/es/qrcode/style/index.d.ts +1 -0
- package/es/qrcode/style/index.js +35 -0
- package/es/radio/context.d.ts +7 -0
- package/es/radio/context.js +1 -0
- package/es/radio/group.d.ts +4 -0
- package/es/radio/group.js +41 -0
- package/es/radio/index.d.ts +11 -0
- package/es/radio/index.js +41 -0
- package/es/radio/interface.d.ts +43 -0
- package/es/radio/interface.js +0 -0
- package/es/radio/radio.d.ts +4 -0
- package/es/radio/radio.js +41 -0
- package/es/radio/radioButton.d.ts +6 -0
- package/es/radio/radioButton.js +41 -0
- package/es/radio/style/index.d.ts +76 -0
- package/es/radio/style/index.js +36 -0
- package/es/rate/index.d.ts +8 -0
- package/es/rate/index.js +49 -0
- package/es/rate/style/index.d.ts +27 -0
- package/es/rate/style/index.js +35 -0
- package/es/result/index.d.ts +33 -0
- package/es/result/index.js +41 -0
- package/es/result/noFound.d.ts +3 -0
- package/es/result/noFound.js +1 -0
- package/es/result/serverError.d.ts +3 -0
- package/es/result/serverError.js +1 -0
- package/es/result/style/index.d.ts +27 -0
- package/es/result/style/index.js +35 -0
- package/es/result/unauthorized.d.ts +3 -0
- package/es/result/unauthorized.js +1 -0
- package/es/row/index.d.ts +4 -0
- package/es/row/index.js +40 -0
- package/es/row/style/index.d.ts +2 -0
- package/es/row/style/index.js +1 -0
- package/es/search-area/index.d.ts +5 -0
- package/es/search-area/index.js +353 -0
- package/es/search-area/style/index.d.ts +2 -0
- package/es/search-area/style/index.js +1 -0
- package/es/segmented/index.d.ts +26 -0
- package/es/segmented/index.js +40 -0
- package/es/segmented/style/index.d.ts +46 -0
- package/es/segmented/style/index.js +35 -0
- package/es/select/index.d.ts +57 -0
- package/es/select/index.js +78 -0
- package/es/select/mergedBuiltinPlacements.d.ts +4 -0
- package/es/select/mergedBuiltinPlacements.js +1 -0
- package/es/select/style/dropdown.d.ts +4 -0
- package/es/select/style/dropdown.js +24 -0
- package/es/select/style/index.d.ts +4 -0
- package/es/select/style/index.js +73 -0
- package/es/select/style/multiple.d.ts +32 -0
- package/es/select/style/multiple.js +40 -0
- package/es/select/style/single.d.ts +3 -0
- package/es/select/style/single.js +45 -0
- package/es/select/style/token.d.ts +138 -0
- package/es/select/style/token.js +1 -0
- package/es/select/style/variants.d.ts +4 -0
- package/es/select/style/variants.js +1 -0
- package/es/select/useIcons.d.ts +26 -0
- package/es/select/useIcons.js +1 -0
- package/es/select/useShowArrow.d.ts +8 -0
- package/es/select/useShowArrow.js +1 -0
- package/es/skeleton/Avatar.d.ts +7 -0
- package/es/skeleton/Avatar.js +47 -0
- package/es/skeleton/Button.d.ts +8 -0
- package/es/skeleton/Button.js +47 -0
- package/es/skeleton/Element.d.ts +12 -0
- package/es/skeleton/Element.js +1 -0
- package/es/skeleton/Image.d.ts +6 -0
- package/es/skeleton/Image.js +48 -0
- package/es/skeleton/Input.d.ts +8 -0
- package/es/skeleton/Input.js +47 -0
- package/es/skeleton/Node.d.ts +8 -0
- package/es/skeleton/Node.js +47 -0
- package/es/skeleton/Paragraph.d.ts +11 -0
- package/es/skeleton/Paragraph.js +1 -0
- package/es/skeleton/Skeleton.d.ts +32 -0
- package/es/skeleton/Skeleton.js +48 -0
- package/es/skeleton/Title.d.ts +9 -0
- package/es/skeleton/Title.js +1 -0
- package/es/skeleton/index.d.ts +3 -0
- package/es/skeleton/index.js +48 -0
- package/es/skeleton/style/index.d.ts +40 -0
- package/es/skeleton/style/index.js +42 -0
- package/es/slider/Context.d.ts +9 -0
- package/es/slider/Context.js +1 -0
- package/es/slider/SliderTooltip.d.ts +8 -0
- package/es/slider/SliderTooltip.js +49 -0
- package/es/slider/index.d.ts +97 -0
- package/es/slider/index.js +61 -0
- package/es/slider/style/index.d.ts +97 -0
- package/es/slider/style/index.js +47 -0
- package/es/slider/useRafLock.d.ts +1 -0
- package/es/slider/useRafLock.js +1 -0
- package/es/space/Compact.d.ts +25 -0
- package/es/space/Compact.js +40 -0
- package/es/space/Item.d.ts +10 -0
- package/es/space/Item.js +1 -0
- package/es/space/context.d.ts +6 -0
- package/es/space/context.js +1 -0
- package/es/space/index.d.ts +28 -0
- package/es/space/index.js +40 -0
- package/es/space/style/compact.d.ts +8 -0
- package/es/space/style/compact.js +1 -0
- package/es/space/style/index.d.ts +7 -0
- package/es/space/style/index.js +35 -0
- package/es/spin/Indicator/Looper.d.ts +6 -0
- package/es/spin/Indicator/Looper.js +1 -0
- package/es/spin/Indicator/Progress.d.ts +7 -0
- package/es/spin/Indicator/Progress.js +1 -0
- package/es/spin/Indicator/index.d.ts +7 -0
- package/es/spin/Indicator/index.js +1 -0
- package/es/spin/index.d.ts +36 -0
- package/es/spin/index.js +40 -0
- package/es/spin/style/index.d.ts +26 -0
- package/es/spin/style/index.js +35 -0
- package/es/spin/usePercent.d.ts +1 -0
- package/es/spin/usePercent.js +1 -0
- package/es/splitter/Panel.d.ts +7 -0
- package/es/splitter/Panel.js +1 -0
- package/es/splitter/SplitBar.d.ts +19 -0
- package/es/splitter/SplitBar.js +1 -0
- package/es/splitter/Splitter.d.ts +4 -0
- package/es/splitter/Splitter.js +40 -0
- package/es/splitter/hooks/useItems.d.ts +12 -0
- package/es/splitter/hooks/useItems.js +1 -0
- package/es/splitter/hooks/useResizable.d.ts +7 -0
- package/es/splitter/hooks/useResizable.js +1 -0
- package/es/splitter/hooks/useResize.d.ts +6 -0
- package/es/splitter/hooks/useResize.js +1 -0
- package/es/splitter/hooks/useSizes.d.ts +8 -0
- package/es/splitter/hooks/useSizes.js +1 -0
- package/es/splitter/index.d.ts +8 -0
- package/es/splitter/index.js +40 -0
- package/es/splitter/interface.d.ts +64 -0
- package/es/splitter/interface.js +0 -0
- package/es/splitter/style/index.d.ts +27 -0
- package/es/splitter/style/index.js +35 -0
- package/es/statistic/Countdown.d.ts +10 -0
- package/es/statistic/Countdown.js +48 -0
- package/es/statistic/Number.d.ts +8 -0
- package/es/statistic/Number.js +1 -0
- package/es/statistic/Statistic.d.ts +21 -0
- package/es/statistic/Statistic.js +48 -0
- package/es/statistic/index.d.ts +11 -0
- package/es/statistic/index.js +48 -0
- package/es/statistic/interface.d.ts +0 -0
- package/es/statistic/interface.js +0 -0
- package/es/statistic/style/index.d.ts +16 -0
- package/es/statistic/style/index.js +35 -0
- package/es/statistic/utils.d.ts +15 -0
- package/es/statistic/utils.js +1 -0
- package/es/steps/index.d.ts +39 -0
- package/es/steps/index.js +49 -0
- package/es/steps/style/custom-icon.d.ts +5 -0
- package/es/steps/style/custom-icon.js +1 -0
- package/es/steps/style/horizontal.d.ts +5 -0
- package/es/steps/style/horizontal.js +1 -0
- package/es/steps/style/index.d.ts +102 -0
- package/es/steps/style/index.js +35 -0
- package/es/steps/style/inline.d.ts +5 -0
- package/es/steps/style/inline.js +1 -0
- package/es/steps/style/label-placement.d.ts +5 -0
- package/es/steps/style/label-placement.js +1 -0
- package/es/steps/style/nav.d.ts +5 -0
- package/es/steps/style/nav.js +1 -0
- package/es/steps/style/progress-dot.d.ts +5 -0
- package/es/steps/style/progress-dot.js +1 -0
- package/es/steps/style/progress.d.ts +5 -0
- package/es/steps/style/progress.js +1 -0
- package/es/steps/style/rtl.d.ts +5 -0
- package/es/steps/style/rtl.js +1 -0
- package/es/steps/style/small.d.ts +5 -0
- package/es/steps/style/small.js +1 -0
- package/es/steps/style/vertical.d.ts +5 -0
- package/es/steps/style/vertical.js +1 -0
- package/es/steps/useLegacyItems.d.ts +3 -0
- package/es/steps/useLegacyItems.js +1 -0
- package/es/style/compact-item-vertical.d.ts +3 -0
- package/es/style/compact-item-vertical.js +1 -0
- package/es/style/compact-item.d.ts +17 -0
- package/es/style/compact-item.js +1 -0
- package/es/style/index.d.ts +12 -0
- package/es/style/index.js +1 -0
- package/es/style/motion/collapse.d.ts +3 -0
- package/es/style/motion/collapse.js +3 -0
- package/es/style/motion/fade.d.ts +6 -0
- package/es/style/motion/fade.js +10 -0
- package/es/style/motion/index.d.ts +6 -0
- package/es/style/motion/index.js +21 -0
- package/es/style/motion/motion.d.ts +2 -0
- package/es/style/motion/motion.js +7 -0
- package/es/style/motion/move.d.ts +14 -0
- package/es/style/motion/move.js +10 -0
- package/es/style/motion/slide.d.ts +14 -0
- package/es/style/motion/slide.js +10 -0
- package/es/style/motion/zoom.d.ts +18 -0
- package/es/style/motion/zoom.js +10 -0
- package/es/style/placementArrow.d.ts +19 -0
- package/es/style/placementArrow.js +1 -0
- package/es/style/roundedArrow.d.ts +7 -0
- package/es/style/roundedArrow.js +1 -0
- package/es/switch/index.d.ts +37 -0
- package/es/switch/index.js +41 -0
- package/es/switch/style/index.d.ts +71 -0
- package/es/switch/style/index.js +35 -0
- package/es/table/Column.d.ts +8 -0
- package/es/table/Column.js +1 -0
- package/es/table/ColumnGroup.d.ts +10 -0
- package/es/table/ColumnGroup.js +1 -0
- package/es/table/ExpandIcon.d.ts +12 -0
- package/es/table/ExpandIcon.js +1 -0
- package/es/table/InternalTable.d.ts +32 -0
- package/es/table/InternalTable.js +216 -0
- package/es/table/RcTable/VirtualTable.d.ts +5 -0
- package/es/table/RcTable/VirtualTable.js +1 -0
- package/es/table/RcTable/index.d.ts +5 -0
- package/es/table/RcTable/index.js +1 -0
- package/es/table/Table.d.ts +17 -0
- package/es/table/Table.js +216 -0
- package/es/table/hooks/useContainerWidth.d.ts +1 -0
- package/es/table/hooks/useContainerWidth.js +1 -0
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +31 -0
- package/es/table/hooks/useFilter/FilterDropdown.js +114 -0
- package/es/table/hooks/useFilter/FilterSearch.d.ts +12 -0
- package/es/table/hooks/useFilter/FilterSearch.js +66 -0
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +8 -0
- package/es/table/hooks/useFilter/FilterWrapper.js +1 -0
- package/es/table/hooks/useFilter/index.d.ts +22 -0
- package/es/table/hooks/useFilter/index.js +114 -0
- package/es/table/hooks/useLazyKVMap.d.ts +4 -0
- package/es/table/hooks/useLazyKVMap.js +1 -0
- package/es/table/hooks/usePagination.d.ts +5 -0
- package/es/table/hooks/usePagination.js +1 -0
- package/es/table/hooks/useSelection.d.ts +20 -0
- package/es/table/hooks/useSelection.js +95 -0
- package/es/table/hooks/useSorter.d.ts +19 -0
- package/es/table/hooks/useSorter.js +49 -0
- package/es/table/hooks/useTitleColumns.d.ts +4 -0
- package/es/table/hooks/useTitleColumns.js +1 -0
- package/es/table/index.d.ts +7 -0
- package/es/table/index.js +216 -0
- package/es/table/interface.d.ts +194 -0
- package/es/table/interface.js +1 -0
- package/es/table/style/bordered.d.ts +5 -0
- package/es/table/style/bordered.js +10 -0
- package/es/table/style/ellipsis.d.ts +5 -0
- package/es/table/style/ellipsis.js +4 -0
- package/es/table/style/empty.d.ts +5 -0
- package/es/table/style/empty.js +1 -0
- package/es/table/style/expand.d.ts +5 -0
- package/es/table/style/expand.js +1 -0
- package/es/table/style/filter.d.ts +4 -0
- package/es/table/style/filter.js +1 -0
- package/es/table/style/fixed.d.ts +5 -0
- package/es/table/style/fixed.js +21 -0
- package/es/table/style/index.d.ts +202 -0
- package/es/table/style/index.js +97 -0
- package/es/table/style/pagination.d.ts +5 -0
- package/es/table/style/pagination.js +1 -0
- package/es/table/style/radius.d.ts +5 -0
- package/es/table/style/radius.js +1 -0
- package/es/table/style/rtl.d.ts +5 -0
- package/es/table/style/rtl.js +1 -0
- package/es/table/style/selection.d.ts +5 -0
- package/es/table/style/selection.js +5 -0
- package/es/table/style/size.d.ts +5 -0
- package/es/table/style/size.js +10 -0
- package/es/table/style/sorter.d.ts +5 -0
- package/es/table/style/sorter.js +4 -0
- package/es/table/style/sticky.d.ts +5 -0
- package/es/table/style/sticky.js +1 -0
- package/es/table/style/summary.d.ts +5 -0
- package/es/table/style/summary.js +1 -0
- package/es/table/style/virtual.d.ts +5 -0
- package/es/table/style/virtual.js +4 -0
- package/es/table/util.d.ts +13 -0
- package/es/table/util.js +1 -0
- package/es/tabs/TabPane.d.ts +5 -0
- package/es/tabs/TabPane.js +1 -0
- package/es/tabs/hooks/useAnimateConfig.d.ts +3 -0
- package/es/tabs/hooks/useAnimateConfig.js +40 -0
- package/es/tabs/hooks/useLegacyItems.d.ts +4 -0
- package/es/tabs/hooks/useLegacyItems.js +1 -0
- package/es/tabs/index.d.ts +29 -0
- package/es/tabs/index.js +51 -0
- package/es/tabs/style/index.d.ts +136 -0
- package/es/tabs/style/index.js +46 -0
- package/es/tabs/style/motion.d.ts +4 -0
- package/es/tabs/style/motion.js +10 -0
- package/es/tag/CheckableTag.d.ts +17 -0
- package/es/tag/CheckableTag.js +40 -0
- package/es/tag/index.d.ts +27 -0
- package/es/tag/index.js +41 -0
- package/es/tag/style/index.d.ts +25 -0
- package/es/tag/style/index.js +35 -0
- package/es/tag/style/presetCmp.d.ts +2 -0
- package/es/tag/style/presetCmp.js +35 -0
- package/es/tag/style/statusCmp.d.ts +2 -0
- package/es/tag/style/statusCmp.js +35 -0
- package/es/theme/context.d.ts +31 -0
- package/es/theme/context.js +3 -0
- package/es/theme/getDesignToken.d.ts +4 -0
- package/es/theme/getDesignToken.js +35 -0
- package/es/theme/index.d.ts +35 -0
- package/es/theme/index.js +35 -0
- package/es/theme/interface/alias.d.ts +545 -0
- package/es/theme/interface/alias.js +0 -0
- package/es/theme/interface/components.d.ts +131 -0
- package/es/theme/interface/components.js +0 -0
- package/es/theme/interface/cssinjs-utils.d.ts +10 -0
- package/es/theme/interface/cssinjs-utils.js +0 -0
- package/es/theme/interface/index.d.ts +15 -0
- package/es/theme/interface/index.js +1 -0
- package/es/theme/interface/maps/colors.d.ts +530 -0
- package/es/theme/interface/maps/colors.js +0 -0
- package/es/theme/interface/maps/font.d.ts +117 -0
- package/es/theme/interface/maps/font.js +0 -0
- package/es/theme/interface/maps/index.d.ts +29 -0
- package/es/theme/interface/maps/index.js +0 -0
- package/es/theme/interface/maps/size.d.ts +69 -0
- package/es/theme/interface/maps/size.js +0 -0
- package/es/theme/interface/maps/style.d.ts +42 -0
- package/es/theme/interface/maps/style.js +0 -0
- package/es/theme/interface/presetColors.d.ts +11 -0
- package/es/theme/interface/presetColors.js +1 -0
- package/es/theme/interface/seeds.d.ts +225 -0
- package/es/theme/interface/seeds.js +0 -0
- package/es/theme/internal.d.ts +13 -0
- package/es/theme/internal.js +35 -0
- package/es/theme/themes/ColorMap.d.ts +15 -0
- package/es/theme/themes/ColorMap.js +0 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.js +1 -0
- package/es/theme/themes/compact/index.d.ts +4 -0
- package/es/theme/themes/compact/index.js +1 -0
- package/es/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/dark/colorAlgorithm.js +1 -0
- package/es/theme/themes/dark/colors.d.ts +3 -0
- package/es/theme/themes/dark/colors.js +1 -0
- package/es/theme/themes/dark/index.d.ts +4 -0
- package/es/theme/themes/dark/index.js +1 -0
- package/es/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/default/colorAlgorithm.js +1 -0
- package/es/theme/themes/default/colors.d.ts +3 -0
- package/es/theme/themes/default/colors.js +1 -0
- package/es/theme/themes/default/index.d.ts +2 -0
- package/es/theme/themes/default/index.js +1 -0
- package/es/theme/themes/seed.d.ts +4 -0
- package/es/theme/themes/seed.js +3 -0
- package/es/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/es/theme/themes/shared/genColorMapToken.js +1 -0
- package/es/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genCommonMapToken.js +1 -0
- package/es/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/es/theme/themes/shared/genControlHeight.js +1 -0
- package/es/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/es/theme/themes/shared/genFontMapToken.js +1 -0
- package/es/theme/themes/shared/genFontSizes.d.ts +5 -0
- package/es/theme/themes/shared/genFontSizes.js +1 -0
- package/es/theme/themes/shared/genRadius.d.ts +3 -0
- package/es/theme/themes/shared/genRadius.js +1 -0
- package/es/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genSizeMapToken.js +1 -0
- package/es/theme/useToken.d.ts +19 -0
- package/es/theme/useToken.js +35 -0
- package/es/theme/util/alias.d.ts +12 -0
- package/es/theme/util/alias.js +35 -0
- package/es/theme/util/genPresetColor.d.ts +15 -0
- package/es/theme/util/genPresetColor.js +1 -0
- package/es/theme/util/genStyleUtils.d.ts +26 -0
- package/es/theme/util/genStyleUtils.js +35 -0
- package/es/theme/util/getAlphaColor.d.ts +2 -0
- package/es/theme/util/getAlphaColor.js +1 -0
- package/es/theme/util/useResetIconStyle.d.ts +3 -0
- package/es/theme/util/useResetIconStyle.js +35 -0
- package/es/time-picker/index.d.ts +30 -0
- package/es/time-picker/index.js +99 -0
- package/es/time-picker/locale/ar_EG.d.ts +3 -0
- package/es/time-picker/locale/ar_EG.js +1 -0
- package/es/time-picker/locale/az_AZ.d.ts +3 -0
- package/es/time-picker/locale/az_AZ.js +1 -0
- package/es/time-picker/locale/bg_BG.d.ts +3 -0
- package/es/time-picker/locale/bg_BG.js +1 -0
- package/es/time-picker/locale/bn_BD.d.ts +3 -0
- package/es/time-picker/locale/bn_BD.js +1 -0
- package/es/time-picker/locale/by_BY.d.ts +3 -0
- package/es/time-picker/locale/by_BY.js +1 -0
- package/es/time-picker/locale/ca_ES.d.ts +3 -0
- package/es/time-picker/locale/ca_ES.js +1 -0
- package/es/time-picker/locale/cs_CZ.d.ts +3 -0
- package/es/time-picker/locale/cs_CZ.js +1 -0
- package/es/time-picker/locale/da_DK.d.ts +3 -0
- package/es/time-picker/locale/da_DK.js +1 -0
- package/es/time-picker/locale/de_DE.d.ts +3 -0
- package/es/time-picker/locale/de_DE.js +1 -0
- package/es/time-picker/locale/el_GR.d.ts +3 -0
- package/es/time-picker/locale/el_GR.js +1 -0
- package/es/time-picker/locale/en_GB.d.ts +3 -0
- package/es/time-picker/locale/en_GB.js +1 -0
- package/es/time-picker/locale/en_US.d.ts +3 -0
- package/es/time-picker/locale/en_US.js +1 -0
- package/es/time-picker/locale/es_ES.d.ts +3 -0
- package/es/time-picker/locale/es_ES.js +1 -0
- package/es/time-picker/locale/et_EE.d.ts +3 -0
- package/es/time-picker/locale/et_EE.js +1 -0
- package/es/time-picker/locale/eu_ES.d.ts +3 -0
- package/es/time-picker/locale/eu_ES.js +1 -0
- package/es/time-picker/locale/fa_IR.d.ts +3 -0
- package/es/time-picker/locale/fa_IR.js +1 -0
- package/es/time-picker/locale/fi_FI.d.ts +3 -0
- package/es/time-picker/locale/fi_FI.js +1 -0
- package/es/time-picker/locale/fr_BE.d.ts +3 -0
- package/es/time-picker/locale/fr_BE.js +1 -0
- package/es/time-picker/locale/fr_CA.d.ts +3 -0
- package/es/time-picker/locale/fr_CA.js +1 -0
- package/es/time-picker/locale/fr_FR.d.ts +3 -0
- package/es/time-picker/locale/fr_FR.js +1 -0
- package/es/time-picker/locale/ga_IE.d.ts +3 -0
- package/es/time-picker/locale/ga_IE.js +1 -0
- package/es/time-picker/locale/gl_ES.d.ts +3 -0
- package/es/time-picker/locale/gl_ES.js +1 -0
- package/es/time-picker/locale/he_IL.d.ts +3 -0
- package/es/time-picker/locale/he_IL.js +1 -0
- package/es/time-picker/locale/hi_IN.d.ts +3 -0
- package/es/time-picker/locale/hi_IN.js +1 -0
- package/es/time-picker/locale/hr_HR.d.ts +3 -0
- package/es/time-picker/locale/hr_HR.js +1 -0
- package/es/time-picker/locale/hu_HU.d.ts +3 -0
- package/es/time-picker/locale/hu_HU.js +1 -0
- package/es/time-picker/locale/id_ID.d.ts +3 -0
- package/es/time-picker/locale/id_ID.js +1 -0
- package/es/time-picker/locale/is_IS.d.ts +3 -0
- package/es/time-picker/locale/is_IS.js +1 -0
- package/es/time-picker/locale/it_IT.d.ts +3 -0
- package/es/time-picker/locale/it_IT.js +1 -0
- package/es/time-picker/locale/ja_JP.d.ts +3 -0
- package/es/time-picker/locale/ja_JP.js +1 -0
- package/es/time-picker/locale/ka_GE.d.ts +3 -0
- package/es/time-picker/locale/ka_GE.js +1 -0
- package/es/time-picker/locale/kk_KZ.d.ts +3 -0
- package/es/time-picker/locale/kk_KZ.js +1 -0
- package/es/time-picker/locale/km_KH.d.ts +3 -0
- package/es/time-picker/locale/km_KH.js +1 -0
- package/es/time-picker/locale/kmr_IQ.d.ts +3 -0
- package/es/time-picker/locale/kmr_IQ.js +1 -0
- package/es/time-picker/locale/kn_IN.d.ts +3 -0
- package/es/time-picker/locale/kn_IN.js +1 -0
- package/es/time-picker/locale/ko_KR.d.ts +3 -0
- package/es/time-picker/locale/ko_KR.js +1 -0
- package/es/time-picker/locale/lt_LT.d.ts +3 -0
- package/es/time-picker/locale/lt_LT.js +1 -0
- package/es/time-picker/locale/lv_LV.d.ts +3 -0
- package/es/time-picker/locale/lv_LV.js +1 -0
- package/es/time-picker/locale/mk_MK.d.ts +3 -0
- package/es/time-picker/locale/mk_MK.js +1 -0
- package/es/time-picker/locale/ml_IN.d.ts +3 -0
- package/es/time-picker/locale/ml_IN.js +1 -0
- package/es/time-picker/locale/mn_MN.d.ts +3 -0
- package/es/time-picker/locale/mn_MN.js +1 -0
- package/es/time-picker/locale/ms_MY.d.ts +3 -0
- package/es/time-picker/locale/ms_MY.js +1 -0
- package/es/time-picker/locale/my_MM.d.ts +3 -0
- package/es/time-picker/locale/my_MM.js +1 -0
- package/es/time-picker/locale/nb_NO.d.ts +3 -0
- package/es/time-picker/locale/nb_NO.js +1 -0
- package/es/time-picker/locale/nl_BE.d.ts +3 -0
- package/es/time-picker/locale/nl_BE.js +1 -0
- package/es/time-picker/locale/nl_NL.d.ts +3 -0
- package/es/time-picker/locale/nl_NL.js +1 -0
- package/es/time-picker/locale/pl_PL.d.ts +3 -0
- package/es/time-picker/locale/pl_PL.js +1 -0
- package/es/time-picker/locale/pt_BR.d.ts +3 -0
- package/es/time-picker/locale/pt_BR.js +1 -0
- package/es/time-picker/locale/pt_PT.d.ts +3 -0
- package/es/time-picker/locale/pt_PT.js +1 -0
- package/es/time-picker/locale/ro_RO.d.ts +3 -0
- package/es/time-picker/locale/ro_RO.js +1 -0
- package/es/time-picker/locale/ru_RU.d.ts +4 -0
- package/es/time-picker/locale/ru_RU.js +1 -0
- package/es/time-picker/locale/si_LK.d.ts +3 -0
- package/es/time-picker/locale/si_LK.js +1 -0
- package/es/time-picker/locale/sk_SK.d.ts +3 -0
- package/es/time-picker/locale/sk_SK.js +1 -0
- package/es/time-picker/locale/sl_SI.d.ts +3 -0
- package/es/time-picker/locale/sl_SI.js +1 -0
- package/es/time-picker/locale/sr_RS.d.ts +3 -0
- package/es/time-picker/locale/sr_RS.js +1 -0
- package/es/time-picker/locale/sv_SE.d.ts +3 -0
- package/es/time-picker/locale/sv_SE.js +1 -0
- package/es/time-picker/locale/ta_IN.d.ts +3 -0
- package/es/time-picker/locale/ta_IN.js +1 -0
- package/es/time-picker/locale/th_TH.d.ts +3 -0
- package/es/time-picker/locale/th_TH.js +1 -0
- package/es/time-picker/locale/tk_TK.d.ts +3 -0
- package/es/time-picker/locale/tk_TK.js +1 -0
- package/es/time-picker/locale/tr_TR.d.ts +3 -0
- package/es/time-picker/locale/tr_TR.js +1 -0
- package/es/time-picker/locale/uk_UA.d.ts +3 -0
- package/es/time-picker/locale/uk_UA.js +1 -0
- package/es/time-picker/locale/ur_PK.d.ts +3 -0
- package/es/time-picker/locale/ur_PK.js +1 -0
- package/es/time-picker/locale/uz_UZ.d.ts +3 -0
- package/es/time-picker/locale/uz_UZ.js +1 -0
- package/es/time-picker/locale/vi_VN.d.ts +3 -0
- package/es/time-picker/locale/vi_VN.js +1 -0
- package/es/time-picker/locale/zh_CN.d.ts +3 -0
- package/es/time-picker/locale/zh_CN.js +1 -0
- package/es/time-picker/locale/zh_TW.d.ts +3 -0
- package/es/time-picker/locale/zh_TW.js +1 -0
- package/es/timeline/Timeline.d.ts +20 -0
- package/es/timeline/Timeline.js +48 -0
- package/es/timeline/TimelineItem.d.ts +20 -0
- package/es/timeline/TimelineItem.js +40 -0
- package/es/timeline/TimelineItemList.d.ts +7 -0
- package/es/timeline/TimelineItemList.js +40 -0
- package/es/timeline/index.d.ts +4 -0
- package/es/timeline/index.js +48 -0
- package/es/timeline/style/index.d.ts +31 -0
- package/es/timeline/style/index.js +43 -0
- package/es/timeline/useItems.d.ts +4 -0
- package/es/timeline/useItems.js +1 -0
- package/es/tooltip/PurePanel.d.ts +7 -0
- package/es/tooltip/PurePanel.js +49 -0
- package/es/tooltip/index.d.ts +80 -0
- package/es/tooltip/index.js +49 -0
- package/es/tooltip/style/index.d.ts +13 -0
- package/es/tooltip/style/index.js +44 -0
- package/es/tooltip/util.d.ts +6 -0
- package/es/tooltip/util.js +1 -0
- package/es/tour/PurePanel.d.ts +6 -0
- package/es/tour/PurePanel.js +57 -0
- package/es/tour/index.d.ts +7 -0
- package/es/tour/index.js +57 -0
- package/es/tour/interface.d.ts +31 -0
- package/es/tour/interface.js +0 -0
- package/es/tour/panelRender.d.ts +12 -0
- package/es/tour/panelRender.js +48 -0
- package/es/tour/style/index.d.ts +28 -0
- package/es/tour/style/index.js +35 -0
- package/es/transfer/ListBody.d.ts +17 -0
- package/es/transfer/ListBody.js +117 -0
- package/es/transfer/ListItem.d.ts +15 -0
- package/es/transfer/ListItem.js +46 -0
- package/es/transfer/hooks/useData.d.ts +5 -0
- package/es/transfer/hooks/useData.js +1 -0
- package/es/transfer/hooks/useSelection.d.ts +9 -0
- package/es/transfer/hooks/useSelection.js +1 -0
- package/es/transfer/index.d.ts +91 -0
- package/es/transfer/index.js +154 -0
- package/es/transfer/interface.d.ts +7 -0
- package/es/transfer/interface.js +0 -0
- package/es/transfer/list.d.ts +48 -0
- package/es/transfer/list.js +154 -0
- package/es/transfer/operation.d.ts +17 -0
- package/es/transfer/operation.js +48 -0
- package/es/transfer/search.d.ts +11 -0
- package/es/transfer/search.js +66 -0
- package/es/transfer/style/index.d.ts +36 -0
- package/es/transfer/style/index.js +35 -0
- package/es/tree/DirectoryTree.d.ts +16 -0
- package/es/tree/DirectoryTree.js +48 -0
- package/es/tree/Tree.d.ts +136 -0
- package/es/tree/Tree.js +48 -0
- package/es/tree/index.d.ts +16 -0
- package/es/tree/index.js +48 -0
- package/es/tree/style/directory.d.ts +3 -0
- package/es/tree/style/directory.js +1 -0
- package/es/tree/style/index.d.ts +57 -0
- package/es/tree/style/index.js +43 -0
- package/es/tree/utils/dictUtil.d.ts +13 -0
- package/es/tree/utils/dictUtil.js +1 -0
- package/es/tree/utils/dropIndicator.d.ts +11 -0
- package/es/tree/utils/dropIndicator.js +1 -0
- package/es/tree/utils/iconUtil.d.ts +13 -0
- package/es/tree/utils/iconUtil.js +1 -0
- package/es/tree-select/index.d.ts +61 -0
- package/es/tree-select/index.js +86 -0
- package/es/tree-select/style/index.d.ts +6 -0
- package/es/tree-select/style/index.js +43 -0
- package/es/type/index.d.ts +1 -0
- package/es/type/index.js +353 -0
- package/es/typography/Base/CopyBtn.d.ts +13 -0
- package/es/typography/Base/CopyBtn.js +49 -0
- package/es/typography/Base/Ellipsis.d.ts +18 -0
- package/es/typography/Base/Ellipsis.js +1 -0
- package/es/typography/Base/EllipsisTooltip.d.ts +10 -0
- package/es/typography/Base/EllipsisTooltip.js +49 -0
- package/es/typography/Base/index.d.ts +59 -0
- package/es/typography/Base/index.js +83 -0
- package/es/typography/Base/util.d.ts +10 -0
- package/es/typography/Base/util.js +1 -0
- package/es/typography/Editable.d.ts +20 -0
- package/es/typography/Editable.js +74 -0
- package/es/typography/Link.d.ts +7 -0
- package/es/typography/Link.js +83 -0
- package/es/typography/Paragraph.d.ts +6 -0
- package/es/typography/Paragraph.js +83 -0
- package/es/typography/Text.d.ts +7 -0
- package/es/typography/Text.js +83 -0
- package/es/typography/Title.d.ts +8 -0
- package/es/typography/Title.js +83 -0
- package/es/typography/Typography.d.ts +19 -0
- package/es/typography/Typography.js +56 -0
- package/es/typography/hooks/useCopyClick.d.ts +11 -0
- package/es/typography/hooks/useCopyClick.js +1 -0
- package/es/typography/hooks/useMergedConfig.d.ts +1 -0
- package/es/typography/hooks/useMergedConfig.js +1 -0
- package/es/typography/hooks/usePrevious.d.ts +2 -0
- package/es/typography/hooks/usePrevious.js +1 -0
- package/es/typography/hooks/useTooltipProps.d.ts +61 -0
- package/es/typography/hooks/useTooltipProps.js +1 -0
- package/es/typography/index.d.ts +13 -0
- package/es/typography/index.js +83 -0
- package/es/typography/style/index.d.ts +18 -0
- package/es/typography/style/index.js +51 -0
- package/es/typography/style/mixins.d.ts +9 -0
- package/es/typography/style/mixins.js +6 -0
- package/es/upload/Dragger.d.ts +10 -0
- package/es/upload/Dragger.js +80 -0
- package/es/upload/Upload.d.ts +23 -0
- package/es/upload/Upload.js +80 -0
- package/es/upload/UploadList/ListItem.d.ts +28 -0
- package/es/upload/UploadList/ListItem.js +49 -0
- package/es/upload/UploadList/index.d.ts +8 -0
- package/es/upload/UploadList/index.js +57 -0
- package/es/upload/index.d.ts +13 -0
- package/es/upload/index.js +80 -0
- package/es/upload/interface.d.ts +138 -0
- package/es/upload/interface.js +0 -0
- package/es/upload/style/dragger.d.ts +4 -0
- package/es/upload/style/dragger.js +7 -0
- package/es/upload/style/index.d.ts +16 -0
- package/es/upload/style/index.js +66 -0
- package/es/upload/style/list.d.ts +4 -0
- package/es/upload/style/list.js +4 -0
- package/es/upload/style/motion.d.ts +4 -0
- package/es/upload/style/motion.js +10 -0
- package/es/upload/style/picture.d.ts +5 -0
- package/es/upload/style/picture.js +12 -0
- package/es/upload/style/rtl.d.ts +4 -0
- package/es/upload/style/rtl.js +1 -0
- package/es/upload/utils.d.ts +8 -0
- package/es/upload/utils.js +2 -0
- package/es/version/index.d.ts +2 -0
- package/es/version/index.js +1 -0
- package/es/watermark/context.d.ts +8 -0
- package/es/watermark/context.js +1 -0
- package/es/watermark/index.d.ts +26 -0
- package/es/watermark/index.js +35 -0
- package/es/watermark/useClips.d.ts +7 -0
- package/es/watermark/useClips.js +1 -0
- package/es/watermark/useRafDebounce.d.ts +4 -0
- package/es/watermark/useRafDebounce.js +1 -0
- package/es/watermark/useWatermark.d.ts +13 -0
- package/es/watermark/useWatermark.js +1 -0
- package/es/watermark/utils.d.ts +7 -0
- package/es/watermark/utils.js +1 -0
- package/package.json +147 -0
- package/umd/index.min.js +626 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import*as _ from'react';import ___default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect,useImperativeHandle}from'react';import Qg from'@ant-design/icons/FilterFilled';import lt from'classnames';import Sc from'rc-util/lib/isEqual';import Ac,{resetWarned}from'rc-util/lib/warning';import tl from'rc-util/lib/omit';import {useComposeRef,supportNodeRef,getNodeRef,composeRef,supportRef}from'rc-util/lib/ref';import od from'rc-util/lib/Dom/isVisible';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Ip from'@ant-design/icons/lib/components/Context';import Pp from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import jc from'rc-pagination/lib/locale/en_US';import Wc from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import ip from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import Kp,{Provider}from'rc-motion';import pc from'rc-util/lib/hooks/useEvent';import la from'rc-util/lib/raf';import*as Fp from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import cd from'rc-util/lib/Children/toArray';import Sd from'@ant-design/icons/LoadingOutlined';import {Color}from'@rc-component/color-picker';import jm from'rc-util/lib/hooks/useMergedState';import Ol from'@ant-design/icons/RightOutlined';import Ed from'rc-collapse';import $m from'rc-checkbox';import'rc-field-form';import Qu from'rc-dropdown';import Lu,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import Jm from'@ant-design/icons/BarsOutlined';import Nl from'@ant-design/icons/LeftOutlined';import Hu from'@ant-design/icons/EllipsisOutlined';import Cu,{Popup}from'rc-tooltip';import Pf from'rc-util/lib/pickAttrs';import _f,{TreeNode}from'rc-tree';import Hf from'@ant-design/icons/FileOutlined';import Xf from'@ant-design/icons/FolderOpenOutlined';import Uf from'@ant-design/icons/FolderOutlined';import {conductExpandParent}from'rc-tree/lib/util';import {convertDataToEntities,convertTreeToData,fillFieldNames}from'rc-tree/lib/utils/treeUtil';import Vf from'@ant-design/icons/HolderOutlined';import Af from'@ant-design/icons/CaretDownFilled';import Ff from'@ant-design/icons/MinusSquareOutlined';import Gf from'@ant-design/icons/PlusSquareOutlined';import Wg from'@ant-design/icons/SearchOutlined';import Rg from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import Cg from'@ant-design/icons/CloseCircleFilled';import zg from'@ant-design/icons/EyeInvisibleOutlined';import Dg from'@ant-design/icons/EyeOutlined';import Kg from'rc-textarea';import Yg from'rc-util/lib/KeyCode';var Dc=(...e)=>{let o={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];r&&Object.keys(r).forEach(n=>{let a=r[n];a!==void 0&&(o[n]=a);});}return o},xi=Dc;function _r(){let[,e]=_.useReducer(o=>o+1,0);return e}function Kr(e){let o=_.useRef(e),t=_r();return [()=>o.current,r=>{o.current=r,t();}]}function Ti(){}var Qe=null;function Lc(){Qe=null,resetWarned();}var Xr=Ti;process.env.NODE_ENV!=="production"&&(Xr=(e,o,t)=>{Ac(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&Lc();});var Ur=_.createContext({}),j=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=_.useContext(Ur),t=(r,n,a)=>{if(!r)if(o===false&&n==="deprecated"){let i=Qe;Qe||(Qe={}),Qe[e]=Qe[e]||[],Qe[e].includes(a||"")||Qe[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",Qe);}else Xr(r,e,a);};return t.deprecated=(r,n,a,i)=>{t(r,"deprecated",`\`${n}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=Ti,e},lo=Xr;var vi=createContext(void 0);var Gc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ot=Gc;var Vc={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Wc},timePickerLocale:{...Ot}},zt=Vc;var Pi=zt;var Ne="${label} is not a valid ${type}",_c={locale:"en",Pagination:jc,DatePicker:zt,TimePicker:Ot,Calendar:Pi,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ne,method:Ne,array:Ne,object:Ne,number:Ne,date:Ne,boolean:Ne,integer:Ne,float:Ne,regexp:Ne,email:Ne,url:Ne,hex:Ne},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Je=_c;({...Je.Modal});var Dt=[],Ri=()=>Dt.reduce((e,o)=>({...e,...o}),Je.Modal);function $i(e){if(e){let o={...e};return Dt.push(o),Ri(),()=>{Dt=Dt.filter(t=>t!==o),Ri();}}({...Je.Modal});}var Xc=createContext(void 0),Vo=Xc;var Uc=(e,o)=>{let t=_.useContext(Vo),r=_.useMemo(()=>{let a=o||Je[e],i=t?.[e]??{};return {...typeof a=="function"?a():a,...i||{}}},[e,o,t]),n=_.useMemo(()=>{let a=t?.locale;return t?.exist&&!a?Je.locale:a},[t]);return [r,n]},so=Uc;var Yr="internalMark",Ii=e=>{let{locale:o={},children:t,_ANT_MARK__:r}=e;process.env.NODE_ENV!=="production"&&j("LocaleProvider")(r===Yr,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),_.useEffect(()=>$i(o?.Modal),[o]);let n=_.useMemo(()=>({...o,exist:true}),[o]);return _.createElement(Vo.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(Ii.displayName="LocaleProvider");var wi=Ii;var Zr={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},qc={...Zr,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},eo=qc;function Jr(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:r,colorWarning:n,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,p=o(l),m=o(r),d=o(n),f=o(a),u=o(i),y=t(s,c),g=e.colorLink||e.colorInfo,S=o(g),x=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...y,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:x,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Yc=e=>{let o=e,t=e,r=e,n=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:n}},Ei=Yc;function en(e){let{motionUnit:o,motionBase:t,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:n+1,...Ei(r)}}var Zc=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},Bi=Zc;function _o(e){return (e+8)/e}function on(e){let o=new Array(10).fill(null).map((t,r)=>{let n=r-1,a=e*Math.E**(n/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:_o(t)}))}var Qc=e=>{let o=on(e),t=o.map(p=>p.size),r=o.map(p=>p.lineHeight),n=t[1],a=t[0],i=t[2],l=r[1],s=r[0],c=r[2];return {fontSizeSM:a,fontSize:n,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*n),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Mi=Qc;function tn(e){let{sizeUnit:o,sizeStep:t}=e;return {sizeXXL:o*(t+8),sizeXL:o*(t+4),sizeLG:o*(t+2),sizeMD:o*(t+1),sizeMS:o*t,size:o*t,sizeSM:o*(t-1),sizeXS:o*(t-2),sizeXXS:o*(t-3)}}var Oe=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),Ko=(e,o)=>new TinyColor(e).darken(o).toHexString();var Ni=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},Oi=(e,o)=>{let t=e||"#fff",r=o||"#000";return {colorBgBase:t,colorTextBase:r,colorText:Oe(r,.88),colorTextSecondary:Oe(r,.65),colorTextTertiary:Oe(r,.45),colorTextQuaternary:Oe(r,.25),colorFill:Oe(r,.15),colorFillSecondary:Oe(r,.06),colorFillTertiary:Oe(r,.04),colorFillQuaternary:Oe(r,.02),colorBgSolid:Oe(r,1),colorBgSolidHover:Oe(r,.75),colorBgSolidActive:Oe(r,.95),colorBgLayout:Ko(t,4),colorBgContainer:Ko(t,0),colorBgElevated:Ko(t,0),colorBgSpotlight:Oe(r,.85),colorBgBlur:"transparent",colorBorder:Ko(t,15),colorBorderSecondary:Ko(t,6)}};function an(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(Zr).map(t=>{let r=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((n,a,i)=>(n[`${t}-${i+1}`]=r[i],n[`${t}${i+1}`]=r[i],n),{})}).reduce((t,r)=>(t={...t,...r},t),{});return {...e,...o,...Jr(e,{generateColorPalettes:Ni,generateNeutralColorPalettes:Oi}),...Mi(e.fontSize),...tn(e),...Bi(e),...en(e)}}var At=createTheme(an),ut={token:eo,override:{override:eo},hashed:true},ft=___default.createContext(ut);var co="ant",gt="anticon",ln=["outlined","borderless","filled"],rp=(e,o)=>o||(e?`${co}-${e}`:co),N=_.createContext({getPrefixCls:rp,iconPrefixCls:gt}),{Consumer:np}=N;var lp=`-ant-${Date.now()}-${Math.random()}`;function sp(e,o){let t={},r=(i,l)=>{let s=i.clone();return s=l?.(s)||s,s.toRgbString()},n=(i,l)=>{let s=new TinyColor(i),c=generate(s.toRgbString());t[`${l}-color`]=r(s),t[`${l}-color-disabled`]=c[1],t[`${l}-color-hover`]=c[4],t[`${l}-color-active`]=c[6],t[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),t[`${l}-color-deprecated-bg`]=c[0],t[`${l}-color-deprecated-border`]=c[2];};if(o.primaryColor){n(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),l=generate(i.toRgbString());l.forEach((c,p)=>{t[`primary-${p+1}`]=c;}),t["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),t["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),t["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),t["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),t["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));let s=new TinyColor(l[0]);t["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2));}return o.successColor&&n(o.successColor,"success"),o.warningColor&&n(o.warningColor,"warning"),o.errorColor&&n(o.errorColor,"error"),o.infoColor&&n(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function Ai(e,o){let t=sp(e,o);ip()?updateCSS(t,`${lp}-dynamic-theme`):lo(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var cn=_.createContext(false),Hi=({children:e,disabled:o})=>{let t=_.useContext(cn);return _.createElement(cn.Provider,{value:o??t},e)},Ee=cn;var pn=_.createContext(void 0),Li=({children:e,size:o})=>{let t=_.useContext(pn);return _.createElement(pn.Provider,{value:o||t},e)},To=pn;function cp(){let e=useContext(Ee),o=useContext(To);return {componentDisabled:e,componentSize:o}}var Gi=cp;var po=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Wi={version:"0.0.2"};var Vi=Wi.version;function dn(e){return e>=0&&e<=255}function dp(e,o){let{r:t,g:r,b:n,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:l,b:s}=new TinyColor(o).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((t-i*(1-c))/c),m=Math.round((r-l*(1-c))/c),d=Math.round((n-s*(1-c))/c);if(dn(p)&&dn(m)&&dn(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:t,g:r,b:n,a:1}).toRgbString()}var Ct=dp;function Lt(e){let{override:o,...t}=e,r={...o};Object.keys(eo).forEach(d=>{delete r[d];});let n={...t,...r},a=480,i=576,l=768,s=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Ct(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Ct(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Ct(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Ct(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var un={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},fp={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},gp={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},ji=(e,o,t)=>{let r=t.getDerivativeToken(e),{override:n,...a}=o,i={...r,override:n};return i=Lt(i),a&&Object.entries(a).forEach(([l,s])=>{let{theme:c,...p}=s,m=p;c&&(m=ji({...i,...p},{override:p},c)),i[l]=m;}),i};function Z(){let{token:e,hashed:o,theme:t,override:r,cssVar:n}=___default.useContext(ft),a=`${Vi}-${o||""}`,i=t||At,[l,s,c]=useCacheToken(i,[eo,e],{salt:a,override:r,getComputedToken:ji,formatToken:Lt,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:un,ignore:fp,preserve:gp}});return [i,c,o?s:"",l,n]}var _i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ne=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),vo=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),bt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ki=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Xi=(e,o,t,r)=>{let n=`[class^="${o}"], [class*=" ${o}"]`,a=t?`.${t}`:n,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return r!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[n]:i}}},Xe=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),yt=e=>({"&:focus-visible":{...Xe(e)}}),Ft=e=>({[`.${e}`]:{...vo(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Y,genComponentStyleHook:fn,genSubStyleComponent:gn}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(N);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,r,n]=Z();return {theme:e,realToken:o,hashId:t,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(N);return e??{}},getResetStyles:(e,o)=>[{"&":Ki(e)},Ft(o?.prefix.iconPrefixCls??gt)],getCommonStyle:Xi,getCompUnitless:(()=>un)});function Gt(e,o){return po.reduce((t,r)=>{let n=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return {...t,...o(r,{lightColor:n,lightBorderColor:a,darkColor:i,textColor:l})}},{})}var xp=(e,o)=>{let[t,r]=Z();return useStyleRegister({theme:t,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[Ft(e)])},Wt=xp;var hp={..._},{useId:qi}=hp,Tp=()=>"",vp=typeof qi>"u"?Tp:qi,Yi=vp;function Cn(e,o,t){let r=j("ConfigProvider"),n=e||{},a=n.inherit===false||!o?{...ut,hashed:o?.hashed??ut.hashed,cssVar:o?.cssVar}:o,i=Yi();if(process.env.NODE_ENV!=="production"){let l=n.cssVar||a.cssVar,s=!!(typeof n.cssVar=="object"&&n.cssVar?.key||i);r(!l||s,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return Pp(()=>{if(!e)return o;let l={...a.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let s=`css-var-${i.replace(/:/g,"")}`,c=(n.cssVar??a.cssVar)&&{prefix:t?.prefixCls,...typeof a.cssVar=="object"?a.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||s};return {...a,...n,token:{...a.token,...n.token},components:l,cssVar:c}},[n,a],(l,s)=>l.some((c,p)=>{let m=s[p];return !Sc(c,m,true)}))}function bn(e){let{children:o}=e,[,t]=Z(),{motion:r}=t,n=_.useRef(false);return n.current=n.current||r===false,n.current?_.createElement(Provider,{motion:r},o):o}var Qi=_.memo(({dropdownMatchSelectWidth:e})=>(j("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Qi.displayName="PropWarning");var Ji=process.env.NODE_ENV!=="production"?Qi:()=>null;var yn=false;process.env.NODE_ENV!=="production"?e=>{lo(!yn,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var Bp=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],oa;function Op(){return oa||co}function zp(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var Dp=e=>{let{prefixCls:o,iconPrefixCls:t,theme:r,holderRender:n}=e;o!==void 0&&(oa=o),r&&(zp(r)?(lo(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ai(Op(),r)):r);};var Ap=e=>{let{children:o,csp:t,autoInsertSpaceInButton:r,alert:n,anchor:a,form:i,locale:l,componentSize:s,direction:c,space:p,splitter:m,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:u,popupOverflow:y,legacyLocale:g,parentContext:S,iconPrefixCls:x,theme:C,componentDisabled:R,segmented:M,statistic:$,spin:P,calendar:h,carousel:b,cascader:T,collapse:I,typography:k,checkbox:E,descriptions:B,divider:v,drawer:A,skeleton:O,steps:w,image:W,layout:z,list:H,mentions:Q,modal:q,progress:L,result:V,slider:G,breadcrumb:ee,menu:U,pagination:de,input:be,textArea:Ie,empty:oe,badge:F,radio:me,rate:Ho,switch:io,transfer:D,avatar:K,message:se,tag:we,table:re,card:ao,tabs:Ye,timeline:Fr,timePicker:Gr,upload:Et,notification:Bt,tree:ct,colorPicker:ae,datePicker:Wr,rangePicker:vc,flex:Pc,wave:Rc,dropdown:$c,warning:Ic,tour:wc,variant:Ec,inputNumber:Bc,treeSelect:Mc}=e,gi=_.useCallback((ue,Ke)=>{let{prefixCls:Go}=e;if(Ke)return Ke;let Wo=Go||S.getPrefixCls("");return ue?`${Wo}-${ue}`:Wo},[S.getPrefixCls,e.prefixCls]),pt=x||S.iconPrefixCls||gt,dt=t||S.csp;Wt(pt,dt);let Mt=Cn(C,S.theme,{prefixCls:gi("")});process.env.NODE_ENV!=="production"&&(yn=yn||!!Mt);let Vr={csp:dt,autoInsertSpaceInButton:r,alert:n,anchor:a,locale:l||g,direction:c,space:p,splitter:m,virtual:d,popupMatchSelectWidth:u??f,popupOverflow:y,getPrefixCls:gi,iconPrefixCls:pt,theme:Mt,segmented:M,statistic:$,spin:P,calendar:h,carousel:b,cascader:T,collapse:I,typography:k,checkbox:E,descriptions:B,divider:v,drawer:A,skeleton:O,steps:w,image:W,input:be,textArea:Ie,layout:z,list:H,mentions:Q,modal:q,progress:L,result:V,slider:G,breadcrumb:ee,menu:U,pagination:de,empty:oe,badge:F,radio:me,rate:Ho,switch:io,transfer:D,avatar:K,message:se,tag:we,table:re,card:ao,tabs:Ye,timeline:Fr,timePicker:Gr,upload:Et,notification:Bt,tree:ct,colorPicker:ae,datePicker:Wr,rangePicker:vc,flex:Pc,wave:Rc,dropdown:$c,warning:Ic,tour:wc,variant:Ec,inputNumber:Bc,treeSelect:Mc};process.env.NODE_ENV!=="production"&&j("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let Lo={...S};Object.keys(Vr).forEach(ue=>{Vr[ue]!==void 0&&(Lo[ue]=Vr[ue]);}),Bp.forEach(ue=>{let Ke=e[ue];Ke&&(Lo[ue]=Ke);}),typeof r<"u"&&(Lo.button={autoInsertSpace:r,...Lo.button});let Fo=Pp(()=>Lo,Lo,(ue,Ke)=>{let Go=Object.keys(ue),Wo=Object.keys(Ke);return Go.length!==Wo.length||Go.some(kt=>ue[kt]!==Ke[kt])}),kc=_.useMemo(()=>({prefixCls:pt,csp:dt}),[pt,dt]),ye=_.createElement(_.Fragment,null,_.createElement(Ji,{dropdownMatchSelectWidth:f}),o),Ci=_.useMemo(()=>merge(Je.Form?.defaultValidateMessages||{},Fo.locale?.Form?.defaultValidateMessages||{},Fo.form?.validateMessages||{},i?.validateMessages||{}),[Fo,i?.validateMessages]);Object.keys(Ci).length>0&&(ye=_.createElement(vi.Provider,{value:Ci},ye)),l&&(ye=_.createElement(wi,{locale:l,_ANT_MARK__:Yr},ye)),(ye=_.createElement(Ip.Provider,{value:kc},ye)),s&&(ye=_.createElement(Li,{size:s},ye)),ye=_.createElement(bn,null,ye);let Nc=_.useMemo(()=>{let{algorithm:ue,token:Ke,components:Go,cssVar:Wo,...kt}=Mt||{},bi=ue&&(!Array.isArray(ue)||ue.length>0)?createTheme(ue):At,jr={};Object.entries(Go||{}).forEach(([Oc,zc])=>{let Ze={...zc};"algorithm"in Ze&&(Ze.algorithm===true?Ze.theme=bi:(Array.isArray(Ze.algorithm)||typeof Ze.algorithm=="function")&&(Ze.theme=createTheme(Ze.algorithm)),delete Ze.algorithm),jr[Oc]=Ze;});let yi={...eo,...Ke};return {...kt,theme:bi,token:yi,components:jr,override:{override:yi,...jr},cssVar:Wo}},[Mt]);return C&&(ye=_.createElement(ft.Provider,{value:Nc},ye)),Fo.warning&&(ye=_.createElement(Ur.Provider,{value:Fo.warning},ye)),R!==void 0&&(ye=_.createElement(Hi,{disabled:R},ye)),_.createElement(N.Provider,{value:Fo},ye)},Po=e=>{let o=_.useContext(N),t=_.useContext(Vo);return _.createElement(Ap,{parentContext:o,legacyLocale:t,...e})};Po.ConfigContext=N;Po.SizeContext=To;Po.config=Dp;Po.useConfig=Gi;Object.defineProperty(Po,"SizeContext",{get:()=>(lo(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),To)});process.env.NODE_ENV!=="production"&&(Po.displayName="ConfigProvider");var ta=Po;function _t(e){return e&&___default.isValidElement(e)&&e.type===___default.Fragment}var Hp=(e,o,t)=>___default.isValidElement(e)?___default.cloneElement(e,typeof t=="function"?t(e.props||{}):t):o;function te(e,o){return Hp(e,e,o)}var Lp=e=>{let{componentCls:o,colorPrimary:t}=e;return {[o]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},ra=fn("Wave",e=>[Lp(e)]);var mo=`${co}-wave-target`;var Vp=(e,o)=>{if(process.env.NODE_ENV!=="production"){let t=parseInt(_.version.split(".")[0],10),r=Object.keys(Fp);lo(t<19||r.includes("createRoot"),"compatible","swiftcrab v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");}return render(e,o),()=>unmount(o)},jp=Vp;function ia(){return jp}function xn(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function aa(e){let{borderTopColor:o,borderColor:t,backgroundColor:r}=getComputedStyle(e);return xn(o)?o:xn(t)?t:xn(r)?r:null}function Sn(e){return Number.isNaN(e)?0:e}var Up=e=>{let{className:o,target:t,component:r,registerUnmount:n}=e,a=_.useRef(null),i=_.useRef(null);_.useEffect(()=>{i.current=n();},[]);let[l,s]=_.useState(null),[c,p]=_.useState([]),[m,d]=_.useState(0),[f,u]=_.useState(0),[y,g]=_.useState(0),[S,x]=_.useState(0),[C,R]=_.useState(false),M={left:m,top:f,width:y,height:S,borderRadius:c.map(h=>`${h}px`).join(" ")};l&&(M["--wave-color"]=l);function $(){let h=getComputedStyle(t);s(aa(t));let b=h.position==="static",{borderLeftWidth:T,borderTopWidth:I}=h;d(b?t.offsetLeft:Sn(-parseFloat(T))),u(b?t.offsetTop:Sn(-parseFloat(I))),g(t.offsetWidth),x(t.offsetHeight);let{borderTopLeftRadius:k,borderTopRightRadius:E,borderBottomLeftRadius:B,borderBottomRightRadius:v}=h;p([k,E,v,B].map(A=>Sn(parseFloat(A))));}if(_.useEffect(()=>{if(t){let h=la(()=>{$(),R(true);}),b;return typeof ResizeObserver<"u"&&(b=new ResizeObserver($),b.observe(t)),()=>{la.cancel(h),b?.disconnect();}}},[]),!C)return null;let P=(r==="Checkbox"||r==="Radio")&&t?.classList.contains(mo);return _.createElement(Kp,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(h,b)=>{if(b.deadline||b.propertyName==="opacity"){let T=a.current?.parentElement;i.current?.().then(()=>{T?.remove();});}return false}},({className:h},b)=>_.createElement("div",{ref:composeRef(a,b),className:lt(o,h,{"wave-quick":P}),style:M}))},qp=(e,o)=>{let{component:t}=o;if(t==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=ia(),a=null;function i(){return a}a=n(_.createElement(Up,{...o,target:e,registerUnmount:i}),r);},sa=qp;var Zp=(e,o,t)=>{let{wave:r}=_.useContext(N),[,n,a]=Z(),i=pc(c=>{let p=e.current;if(r?.disabled||!p)return;let m=p.querySelector(`.${mo}`)||p,{showEffect:d}=r||{};(d||sa)(m,{className:o,token:n,component:t,event:c,hashId:a});}),l=_.useRef(null);return c=>{la.cancel(l.current),l.current=la(()=>{i(c);});}},pa=Zp;var ma=e=>{let{children:o,disabled:t,component:r}=e,{getPrefixCls:n}=useContext(N),a=useRef(null),i=n("wave"),[,l]=ra(i),s=pa(a,lt(i,l),r);if(___default.useEffect(()=>{let p=a.current;if(!p||p.nodeType!==1||t)return;let m=d=>{!od(d.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||s(d);};return p.addEventListener("click",m,true),()=>{p.removeEventListener("click",m,true);}},[t]),!___default.isValidElement(o))return o??null;let c=supportRef(o)?composeRef(getNodeRef(o),a):a;return te(o,{ref:c})};process.env.NODE_ENV!=="production"&&(ma.displayName="Wave");var qo=ma;var id=e=>{let o=___default.useContext(To);return ___default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},he=id;var ad=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},fa=ad;var ld=e=>{let{componentCls:o,antCls:t}=e;return {[o]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${o}-item:empty`]:{display:"none"},[`${o}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},sd=e=>{let{componentCls:o}=e;return {[o]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var Xt=Y("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [ld(o),sd(o),fa(o)]},()=>({}),{resetStyle:false});var Ut=_.createContext(null),uo=(e,o)=>{let t=_.useContext(Ut),r=_.useMemo(()=>{if(!t)return "";let{compactDirection:n,isFirstItem:a,isLastItem:i}=t,l=n==="vertical"?"-vertical-":"-";return lt(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:r}},Ca=({children:e})=>_.createElement(Ut.Provider,{value:null},e),pd=({children:e,...o})=>_.createElement(Ut.Provider,{value:o},e),dd=e=>{let{getPrefixCls:o,direction:t}=_.useContext(N),{size:r,direction:n,block:a,prefixCls:i,className:l,rootClassName:s,children:c,...p}=e,m=he(C=>r??C),d=o("space-compact",i),[f,u]=Xt(d),y=lt(d,u,{[`${d}-rtl`]:t==="rtl",[`${d}-block`]:a,[`${d}-vertical`]:n==="vertical"},l,s),g=_.useContext(Ut),S=cd(c),x=_.useMemo(()=>S.map((C,R)=>{let M=C?.key||`${d}-item-${R}`;return _.createElement(pd,{key:M,compactSize:m,compactDirection:n,isFirstItem:R===0&&(!g||g?.isFirstItem),isLastItem:R===S.length-1&&(!g||g?.isLastItem)},C)}),[r,S,g]);return S.length===0?null:f(_.createElement("div",{className:y,...p},x))},ba=dd;var hn=_.createContext(void 0),ud=e=>{let{getPrefixCls:o,direction:t}=_.useContext(N),{prefixCls:r,size:n,className:a,...i}=e,l=o("btn-group",r),[,,s]=Z(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}process.env.NODE_ENV!=="production"&&j("Button.Group")(!n||["large","small","middle"].includes(n),"usage","Invalid prop `size`.");let p=lt(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:t==="rtl"},a,s);return _.createElement(hn.Provider,{value:n},_.createElement("div",{...i,className:p}))},ya=ud;var xa=/^[\u4E00-\u9FA5]{2}$/,qt=xa.test.bind(xa);function Sa(e){return typeof e=="string"}function St(e){return e==="text"||e==="link"}function fd(e,o){if(e==null)return;let t=o?" ":"";return typeof e!="string"&&typeof e!="number"&&Sa(e.type)&&qt(e.props.children)?te(e,{children:e.props.children.split("").join(t)}):Sa(e)?qt(e)?___default.createElement("span",null,e.split("").join(t)):___default.createElement("span",null,e):_t(e)?___default.createElement("span",null,e):e}function ha(e,o){let t=false,r=[];return ___default.Children.forEach(e,n=>{let a=typeof n,i=a==="string"||a==="number";if(t&&i){let l=r.length-1,s=r[l];r[l]=`${s}${n}`;}else r.push(n);t=i;}),___default.Children.map(r,n=>fd(n,o))}var yd=forwardRef((e,o)=>{let{className:t,style:r,children:n,prefixCls:a}=e,i=lt(`${a}-icon`,t);return ___default.createElement("span",{ref:o,className:i,style:r},n)}),Yt=yd;var Ta=forwardRef((e,o)=>{let{prefixCls:t,className:r,style:n,iconClassName:a}=e,i=lt(`${t}-loading-icon`,r);return ___default.createElement(Yt,{prefixCls:t,className:i,style:n,ref:o},___default.createElement(Sd,{className:a}))}),Tn=()=>({width:0,opacity:0,transform:"scale(0)"}),vn=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Td=e=>{let{prefixCls:o,loading:t,existIcon:r,className:n,style:a,mount:i}=e,l=!!t;return r?___default.createElement(Ta,{prefixCls:o,className:n,style:a}):___default.createElement(Kp,{visible:l,motionName:`${o}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:true,onAppearStart:Tn,onAppearActive:vn,onEnterStart:Tn,onEnterActive:vn,onLeaveStart:vn,onLeaveActive:Tn},({className:s,style:c},p)=>{let m={...a,...c};return ___default.createElement(Ta,{prefixCls:o,className:lt(n,s),style:m,ref:p})})},Pa=Td;var Ra=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),vd=e=>{let{componentCls:o,fontSize:t,lineWidth:r,groupBorderColor:n,colorErrorHover:a}=e;return {[`${o}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${o}`]:{"&:not(:last-child)":{[`&, & > ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[o]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${o}-icon-only`]:{fontSize:t}},Ra(`${o}-primary`,n),Ra(`${o}-danger`,a)]}},$a=vd;var Pd=(e,o)=>e?.replace(/[^\w/]/g,"").slice(0,o?8:6)||"",Rd=(e,o)=>e?Pd(e,o):"",Tt=class e{metaColor;colors;cleared=false;constructor(o){if(o instanceof e){this.metaColor=o.metaColor.clone(),this.colors=o.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=o.cleared;return}let t=Array.isArray(o);t&&o.length?(this.colors=o.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(t?"":o),(!o||t&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return Rd(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(o){return !o||this.isGradient()!==o.isGradient()?false:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((t,r)=>{let n=o.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===o.toHexString()}};var Pn=()=>({height:0,opacity:0}),wa=e=>{let{scrollHeight:o}=e;return {height:o,opacity:1}},$d=e=>({height:e?e.offsetHeight:0}),Rn=(e,o)=>o?.deadline===true||o.propertyName==="height",Id=(e=co)=>({motionName:`${e}-motion-collapse`,onAppearStart:Pn,onEnterStart:Pn,onAppearActive:wa,onEnterActive:wa,onLeaveStart:$d,onLeaveActive:Pn,onAppearEnd:Rn,onEnterEnd:Rn,onLeaveEnd:Rn,motionDeadline:500});var Ea=(e,o,t)=>t!==void 0?t:`${e}-${o}`;var Yo=Id;var Bd=_.forwardRef((e,o)=>{process.env.NODE_ENV!=="production"&&j("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');let{getPrefixCls:t}=_.useContext(N),{prefixCls:r,className:n,showArrow:a=true}=e,i=t("collapse",r),l=lt({[`${i}-no-arrow`]:!a},n);return _.createElement(Ed.Panel,{ref:o,...e,prefixCls:i,className:l})}),Ba=Bd;var Md=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
41
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
42
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),$o=Md;var kd=e=>({animationDuration:e,animationFillMode:"both"}),Nd=e=>({animationDuration:e,animationFillMode:"both"}),Io=(e,o,t,r,n=false)=>{let a=n?"&":"";return {[`
|
|
43
|
+
${a}${e}-enter,
|
|
44
|
+
${a}${e}-appear
|
|
45
|
+
`]:{...kd(r),animationPlayState:"paused"},[`${a}${e}-leave`]:{...Nd(r),animationPlayState:"paused"},[`
|
|
46
|
+
${a}${e}-enter${e}-enter-active,
|
|
47
|
+
${a}${e}-appear${e}-appear-active
|
|
48
|
+
`]:{animationName:o,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}};new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}});new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}});var ka=new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Na=new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Oa=new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),za=new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Da=new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Aa=new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ha=new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),La=new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Dd={"move-up":{inKeyframes:Ha,outKeyframes:La},"move-down":{inKeyframes:ka,outKeyframes:Na},"move-left":{inKeyframes:Oa,outKeyframes:za},"move-right":{inKeyframes:Da,outKeyframes:Aa}},Zt=(e,o)=>{let{antCls:t}=e,r=`${t}-${o}`,{inKeyframes:n,outKeyframes:a}=Dd[o];return [Io(r,n,a,e.motionDurationMid),{[`
|
|
49
|
+
${r}-enter,
|
|
50
|
+
${r}-appear
|
|
51
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Qt=new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Jt=new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),er=new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),or=new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Fa=new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ga=new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wa=new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Va=new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ad={"slide-up":{inKeyframes:Qt,outKeyframes:Jt},"slide-down":{inKeyframes:er,outKeyframes:or},"slide-left":{inKeyframes:Fa,outKeyframes:Ga},"slide-right":{inKeyframes:Wa,outKeyframes:Va}},wo=(e,o)=>{let{antCls:t}=e,r=`${t}-${o}`,{inKeyframes:n,outKeyframes:a}=Ad[o];return [Io(r,n,a,e.motionDurationMid),{[`
|
|
52
|
+
${r}-enter,
|
|
53
|
+
${r}-appear
|
|
54
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var ja=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_a=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),$n=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),In=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ka=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Xa=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ua=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),qa=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ya=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Za=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Qa=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ja=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Hd={zoom:{inKeyframes:ja,outKeyframes:_a},"zoom-big":{inKeyframes:$n,outKeyframes:In},"zoom-big-fast":{inKeyframes:$n,outKeyframes:In},"zoom-left":{inKeyframes:Ua,outKeyframes:qa},"zoom-right":{inKeyframes:Ya,outKeyframes:Za},"zoom-up":{inKeyframes:Ka,outKeyframes:Xa},"zoom-down":{inKeyframes:Qa,outKeyframes:Ja}},Eo=(e,o)=>{let{antCls:t}=e,r=`${t}-${o}`,{inKeyframes:n,outKeyframes:a}=Hd[o];return [Io(r,n,a,o==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
55
|
+
${r}-enter,
|
|
56
|
+
${r}-appear
|
|
57
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Ld=e=>{let{componentCls:o,contentBg:t,padding:r,headerBg:n,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:p,colorBorder:m,colorText:d,colorTextHeading:f,colorTextDisabled:u,fontSizeLG:y,lineHeight:g,lineHeightLG:S,marginSM:x,paddingSM:C,paddingLG:R,paddingXS:M,motionDurationSlow:$,fontSizeIcon:P,contentPadding:h,fontHeight:b,fontHeightLG:T}=e,I=`${unit(c)} ${p} ${m}`;return {[o]:{...ne(e),backgroundColor:n,border:I,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${o}-item`]:{borderBottom:I,"&:last-child":{[`
|
|
58
|
+
&,
|
|
59
|
+
& > ${o}-header`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`> ${o}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:f,lineHeight:g,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${o}-header-text`]:{flex:"auto"},[`${o}-expand-icon`]:{height:b,display:"flex",alignItems:"center",paddingInlineEnd:x},[`${o}-arrow`]:{...vo(),fontSize:P,transition:`transform ${$}`,svg:{transition:`transform ${$}`}},[`${o}-header-text`]:{marginInlineEnd:"auto"}},[`${o}-collapsible-header`]:{cursor:"default",[`${o}-header-text`]:{flex:"none",cursor:"pointer"}},[`${o}-collapsible-icon`]:{cursor:"unset",[`${o}-expand-icon`]:{cursor:"pointer"}}},[`${o}-content`]:{color:d,backgroundColor:t,borderTop:I,[`& > ${o}-content-box`]:{padding:h},"&-hidden":{display:"none"}},"&-small":{[`> ${o}-item`]:{[`> ${o}-header`]:{padding:i,paddingInlineStart:M,[`> ${o}-expand-icon`]:{marginInlineStart:e.calc(C).sub(M).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:C}}},"&-large":{[`> ${o}-item`]:{fontSize:y,lineHeight:S,[`> ${o}-header`]:{padding:l,paddingInlineStart:r,[`> ${o}-expand-icon`]:{height:T,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:R}}},[`${o}-item:last-child`]:{borderBottom:0,[`> ${o}-content`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`& ${o}-item-disabled > ${o}-header`]:{"\n &,\n & > .arrow\n ":{color:u,cursor:"not-allowed"}},[`&${o}-icon-position-end`]:{[`& > ${o}-item`]:{[`> ${o}-header`]:{[`${o}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:x}}}}}}},Fd=e=>{let{componentCls:o}=e,t=`> ${o}-item > ${o}-header ${o}-arrow`;return {[`${o}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},Gd=e=>{let{componentCls:o,headerBg:t,paddingXXS:r,colorBorder:n}=e;return {[`${o}-borderless`]:{backgroundColor:t,border:0,[`> ${o}-item`]:{borderBottom:`1px solid ${n}`},[`
|
|
60
|
+
> ${o}-item:last-child,
|
|
61
|
+
> ${o}-item:last-child ${o}-header
|
|
62
|
+
`]:{borderRadius:0},[`> ${o}-item:last-child`]:{borderBottom:0},[`> ${o}-item > ${o}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${o}-item > ${o}-content > ${o}-content-box`]:{paddingTop:r}}}},Wd=e=>{let{componentCls:o,paddingSM:t}=e;return {[`${o}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${o}-item`]:{borderBottom:0,[`> ${o}-content`]:{backgroundColor:"transparent",border:0,[`> ${o}-content-box`]:{paddingBlock:t}}}}}},Vd=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),el=Y("Collapse",e=>{let o=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Ld(o),Gd(o),Wd(o),Fd(o),$o(o)]},Vd);var rl=_.forwardRef((e,o)=>{let{getPrefixCls:t,direction:r,collapse:n}=_.useContext(N),{prefixCls:a,className:i,rootClassName:l,style:s,bordered:c=true,ghost:p,size:m,expandIconPosition:d="start",children:f,expandIcon:u}=e,y=he(I=>m??I??"middle"),g=t("collapse",a),S=t(),[x,C,R]=el(g);process.env.NODE_ENV!=="production"&&j("Collapse")(d!=="left"&&d!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");let M=_.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),$=u??n?.expandIcon,P=_.useCallback((I={})=>{let k=typeof $=="function"?$(I):_.createElement(Ol,{rotate:I.isActive?90:void 0,"aria-label":I.isActive?"expanded":"collapsed"});return te(k,()=>({className:lt(k?.props?.className,`${g}-arrow`)}))},[$,g]),h=lt(`${g}-icon-position-${M}`,{[`${g}-borderless`]:!c,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!p,[`${g}-${y}`]:y!=="middle"},n?.className,i,l,C,R),b={...Yo(S),motionAppear:false,leavedClassName:`${g}-content-hidden`},T=_.useMemo(()=>f?cd(f).map((I,k)=>{let E=I.props;if(E?.disabled){let B=I.key??String(k),v={...tl(I.props,["disabled"]),key:B,collapsible:E.collapsible??"disabled"};return te(I,v)}return I}):null,[f]);return x(_.createElement(Ed,{ref:o,openMotion:b,...tl(e,["rootClassName"]),expandIcon:P,prefixCls:g,className:h,style:{...n?.style,...s}},T))});process.env.NODE_ENV!=="production"&&(rl.displayName="Collapse");Object.assign(rl,{Panel:Ba});var nl=(e,o)=>{let{r:t,g:r,b:n,a}=e.toRgb(),i=new Color(e.toRgbString()).onBackground(o).toHsv();return a<=.5?i.v>.5:t*.299+r*.587+n*.114>192};var tr=e=>{let{paddingInline:o,onlyIconSize:t}=e;return mergeToken(e,{buttonPaddingHorizontal:o,buttonPaddingVertical:0,buttonIconOnlyFontSize:t})},rr=e=>{let o=e.contentFontSize??e.fontSize,t=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??_o(o),a=e.contentLineHeightSM??_o(t),i=e.contentLineHeightLG??_o(r),l=nl(new Tt(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:o,contentFontSizeSM:t,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-o*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-t*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*i)/2-e.lineWidth,0)}};var qd=e=>{let{componentCls:o,iconCls:t,fontWeight:r,opacityLoading:n,motionDurationSlow:a,motionEaseInOut:i,marginXS:l,calc:s}=e;return {[o]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${o}-icon > svg`]:vo(),"> a":{color:"currentColor"},"&:not(:disabled)":yt(e),[`&${o}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${o}-two-chinese-chars > *:not(${t})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${o}-icon-only`]:{paddingInline:0,[`&${o}-compact-item`]:{flex:"none"},[`&${o}-round`]:{width:"auto"}},[`&${o}-loading`]:{opacity:n,cursor:"default"},[`${o}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${o}-icon-end)`]:{[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},il=(e,o,t)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":o,"&:active":t}}),Yd=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Zd=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Qd=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),En=(e,o,t,r,n,a,i,l)=>({[`&${e}-background-ghost`]:{color:t||void 0,background:o,borderColor:r||void 0,boxShadow:"none",...il(e,{background:o,...i},{background:o,...l}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:a||void 0}}}),Jd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...Qd(e)}}),em=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),nr=(e,o,t,r)=>({...(r&&["link","text"].includes(r)?em:Jd)(e),...il(e.componentCls,o,t)}),Bn=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:o,background:t,...nr(e,r,n)}}),Mn=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:o,background:t,...nr(e,r,n)}}),kn=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Nn=(e,o,t,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:o,...nr(e,t,r)}}),Qo=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-${t}`]:{color:o,boxShadow:"none",...nr(e,r,n,t)}}),om=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...Bn(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...kn(e),...Nn(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...Qo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...En(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),tm=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Mn(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...kn(e),...Nn(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...Qo(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...En(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),rm=e=>({color:e.colorError,boxShadow:e.dangerShadow,...Bn(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Mn(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...kn(e),...Nn(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...Qo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...Qo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...En(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),nm=e=>{let{componentCls:o}=e;return {[`${o}-color-default`]:om(e),[`${o}-color-primary`]:tm(e),[`${o}-color-dangerous`]:rm(e)}},im=e=>({...Mn(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...Qo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...Bn(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...Qo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),On=(e,o="")=>{let{componentCls:t,controlHeight:r,fontSize:n,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return [{[o]:{fontSize:n,height:r,padding:`${unit(s)} ${unit(i)}`,borderRadius:a,[`&${t}-icon-only`]:{width:r,[l]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${t}${t}-circle${o}`]:Yd(e)},{[`${t}${t}-round${o}`]:Zd(e)}]},am=e=>{let o=mergeToken(e,{fontSize:e.contentFontSize});return On(o,e.componentCls)},lm=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return On(o,`${e.componentCls}-sm`)},sm=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return On(o,`${e.componentCls}-lg`)},cm=e=>{let{componentCls:o}=e;return {[o]:{[`&${o}-block`]:{width:"100%"}}}},al=Y("Button",e=>{let o=tr(e);return [qd(o),am(o),lm(o),sm(o),cm(o),nm(o),im(o),$a(o)]},rr,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function pm(e,o,t){let{focusElCls:r,focus:n,borderElCls:a}=t,i=a?"> *":"",l=["hover",n?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${i}`]:{zIndex:0}}}}function dm(e,o,t){let{borderElCls:r}=t,n=r?`> ${r}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ir(e,o={focus:true}){let{componentCls:t}=e,r=`${t}-compact`;return {[r]:{...pm(e,r,o),...dm(t,r,o)}}}function mm(e,o){return {[`&-item:not(${o}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function um(e,o){return {[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ll(e){let o=`${e.componentCls}-compact-vertical`;return {[o]:{...mm(e,o),...um(e.componentCls,o)}}}var fm=e=>{let{componentCls:o,colorPrimaryHover:t,lineWidth:r,calc:n}=e,a=n(r).mul(-1).equal(),i=l=>({[`${o}-compact${l?"-vertical":""}-item${o}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?a:0,insetInlineStart:l?0:a,backgroundColor:t,content:'""',width:l?"100%":r,height:l?r:"100%"}}});return {...i(),...i(true)}},sl=gn(["Button","compact"],e=>{let o=tr(e);return [ir(o),ll(o),fm(o)]},rr);function ym(e){if(typeof e=="object"&&e){let o=e?.delay;return o=!Number.isNaN(o)&&typeof o=="number"?o:0,{loading:o<=0,delay:o}}return {loading:!!e,delay:0}}var xm={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Sm=___default.forwardRef((e,o)=>{let{loading:t=false,prefixCls:r,color:n,variant:a,type:i,danger:l=false,shape:s="default",size:c,styles:p,disabled:m,className:d,rootClassName:f,children:u,icon:y,iconPosition:g="start",ghost:S=false,block:x=false,htmlType:C="button",classNames:R,style:M={},autoInsertSpace:$,autoFocus:P,...h}=e,b=i||"default",[T,I]=useMemo(()=>{if(n&&a)return [n,a];let ae=xm[b]||[];return l?["danger",ae[1]]:ae},[i,n,a,l]),E=T==="danger"?"dangerous":T,{getPrefixCls:B,direction:v,button:A}=useContext(N),O=$??A?.autoInsertSpace??true,w=B("btn",r),[W,z,H]=al(w),Q=useContext(Ee),q=m??Q,L=useContext(hn),V=useMemo(()=>ym(t),[t]),[G,ee]=useState(V.loading),[U,de]=useState(false),be=useRef(null),Ie=useComposeRef(o,be),oe=Children.count(u)===1&&!y&&!St(I),F=useRef(true);___default.useEffect(()=>(F.current=false,()=>{F.current=true;}),[]),useEffect(()=>{let ae=null;V.delay>0?ae=setTimeout(()=>{ae=null,ee(true);},V.delay):ee(V.loading);function Wr(){ae&&(clearTimeout(ae),ae=null);}return Wr},[V]),useEffect(()=>{if(!be.current||!O)return;let ae=be.current.textContent||"";oe&&qt(ae)?U||de(true):U&&de(false);}),useEffect(()=>{P&&be.current&&be.current.focus();},[]);let me=___default.useCallback(ae=>{if(G||q){ae.preventDefault();return}e.onClick?.(ae);},[e.onClick,G,q]);if(process.env.NODE_ENV!=="production"){let ae=j("Button");ae(!(typeof y=="string"&&y.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${y}\` at https://ant.design/components/icon`),ae(!(S&&St(I)),"usage","`link` or `text` button can't be a `ghost` button.");}let{compactSize:Ho,compactItemClassnames:io}=uo(w,v),D={large:"lg",small:"sm",middle:void 0},K=he(ae=>c??Ho??L??ae),se=K?D[K]??"":"",we=G?"loading":y,re=tl(h,["navigate"]),ao=lt(w,z,H,{[`${w}-${s}`]:s!=="default"&&s,[`${w}-${b}`]:b,[`${w}-dangerous`]:l,[`${w}-color-${E}`]:E,[`${w}-variant-${I}`]:I,[`${w}-${se}`]:se,[`${w}-icon-only`]:!u&&u!==0&&!!we,[`${w}-background-ghost`]:S&&!St(I),[`${w}-loading`]:G,[`${w}-two-chinese-chars`]:U&&O&&!G,[`${w}-block`]:x,[`${w}-rtl`]:v==="rtl",[`${w}-icon-end`]:g==="end"},io,d,f,A?.className),Ye={...A?.style,...M},Fr=lt(R?.icon,A?.classNames?.icon),Gr={...p?.icon||{},...A?.styles?.icon||{}},Et=y&&!G?___default.createElement(Yt,{prefixCls:w,className:Fr,style:Gr},y):___default.createElement(Pa,{existIcon:!!y,prefixCls:w,loading:G,mount:F.current}),Bt=u||u===0?ha(u,oe&&O):null;if(re.href!==void 0)return W(___default.createElement("a",{...re,className:lt(ao,{[`${w}-disabled`]:q}),href:q?void 0:re.href,style:Ye,onClick:me,ref:Ie,tabIndex:q?-1:0},Et,Bt));let ct=___default.createElement("button",{...h,type:C,className:ao,style:Ye,onClick:me,disabled:q,ref:Ie},Et,Bt,io&&___default.createElement(sl,{prefixCls:w}));return St(I)||(ct=___default.createElement(qo,{component:"Button",disabled:G},ct)),W(ct)}),ar=Sm;ar.Group=ya;ar.__ANT_BUTTON=true;process.env.NODE_ENV!=="production"&&(ar.displayName="Button");var ml=ar;var Co=ml;var hm=e=>{let[,,,,o]=Z();return o?`${e}-css-var`:""},ge=hm;_.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});_.createContext(null);_.createContext({prefixCls:""});var xe=_.createContext({});process.env.NODE_ENV!=="production"&&(xe.displayName="FormItemInputContext");var ul=({children:e,status:o,override:t})=>{let r=_.useContext(xe),n=_.useMemo(()=>{let a={...r};return t&&delete a.isFormItemInput,o&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[o,t,r]);return _.createElement(xe.Provider,{value:n},e)},fl=_.createContext(void 0);var vm=___default.createContext(null),lr=vm;var Pm=e=>{let{checkboxCls:o}=e,t=`${o}-wrapper`;return [{[`${o}-group`]:{...ne(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[t]:{...ne(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${t}`]:{marginInlineStart:0},[`&${t}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[o]:{...ne(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${o}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${o}-inner`]:{...Xe(e)}},[`${o}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
63
|
+
${t}:not(${t}-disabled),
|
|
64
|
+
${o}:not(${o}-disabled)
|
|
65
|
+
`]:{[`&:hover ${o}-inner`]:{borderColor:e.colorPrimary}},[`${t}:not(${t}-disabled)`]:{[`&:hover ${o}-checked:not(${o}-disabled) ${o}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${o}-checked:not(${o}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${o}-checked`]:{[`${o}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
66
|
+
${t}-checked:not(${t}-disabled),
|
|
67
|
+
${o}-checked:not(${o}-disabled)
|
|
68
|
+
`]:{[`&:hover ${o}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[o]:{"&-indeterminate":{[`${o}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${o}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${t}-disabled`]:{cursor:"not-allowed"},[`${o}-disabled`]:{[`&, ${o}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${o}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${o}-indeterminate ${o}-inner::after`]:{background:e.colorTextDisabled}}}]};function Hn(e,o){let t=mergeToken(o,{checkboxCls:`.${e}`,checkboxSize:o.controlInteractiveSize});return [Pm(t)]}var sr=Y("Checkbox",(e,{prefixCls:o})=>[Hn(o,e)]);function vt(e){let o=___default.useRef(null),t=()=>{la.cancel(o.current),o.current=null;};return [()=>{t(),o.current=la(()=>{o.current=null;});},a=>{o.current&&(a.stopPropagation(),t()),e?.(a);}]}var wm=(e,o)=>{let{prefixCls:t,className:r,rootClassName:n,children:a,indeterminate:i=false,style:l,onMouseEnter:s,onMouseLeave:c,skipGroup:p=false,disabled:m,...d}=e,{getPrefixCls:f,direction:u,checkbox:y}=_.useContext(N),g=_.useContext(lr),{isFormItemInput:S}=_.useContext(xe),x=_.useContext(Ee),C=(g?.disabled||m)??x,R=_.useRef(d.value),M=_.useRef(null),$=composeRef(o,M);process.env.NODE_ENV!=="production"&&j("Checkbox")("checked"in d||!!g||!("value"in d),"usage","`value` is not a valid prop, do you mean `checked`?"),_.useEffect(()=>{g?.registerValue(d.value);},[]),_.useEffect(()=>{if(!p)return d.value!==R.current&&(g?.cancelValue(R.current),g?.registerValue(d.value),R.current=d.value),()=>g?.cancelValue(d.value)},[d.value]),_.useEffect(()=>{M.current?.input&&(M.current.input.indeterminate=i);},[i]);let P=f("checkbox",t),h=ge(P),[b,T,I]=sr(P,h),k={...d};g&&!p&&(k.onChange=(...O)=>{d.onChange&&d.onChange(...O),g.toggleOption&&g.toggleOption({label:a,value:d.value});},k.name=g.name,k.checked=g.value.includes(d.value));let E=lt(`${P}-wrapper`,{[`${P}-rtl`]:u==="rtl",[`${P}-wrapper-checked`]:k.checked,[`${P}-wrapper-disabled`]:C,[`${P}-wrapper-in-form-item`]:S},y?.className,r,n,I,h,T),B=lt({[`${P}-indeterminate`]:i},mo,T),[v,A]=vt(k.onClick);return b(_.createElement(qo,{component:"Checkbox",disabled:C},_.createElement("label",{className:E,style:{...y?.style,...l},onMouseEnter:s,onMouseLeave:c,onClick:v},_.createElement($m,{...k,onClick:A,prefixCls:P,className:B,disabled:C,ref:$}),a!==void 0&&_.createElement("span",null,a))))},yl=_.forwardRef(wm);process.env.NODE_ENV!=="production"&&(yl.displayName="Checkbox");var cr=yl;var Mm=_.forwardRef((e,o)=>{let{defaultValue:t,children:r,options:n=[],prefixCls:a,className:i,rootClassName:l,style:s,onChange:c,...p}=e,{getPrefixCls:m,direction:d}=_.useContext(N),[f,u]=_.useState(p.value||t||[]),[y,g]=_.useState([]);_.useEffect(()=>{"value"in p&&u(p.value||[]);},[p.value]);let S=_.useMemo(()=>n.map(v=>typeof v=="string"||typeof v=="number"?{label:v,value:v}:v),[n]),x=v=>{g(A=>A.filter(O=>O!==v));},C=v=>{g(A=>[...A,v]);},R=v=>{let A=f.indexOf(v.value),O=[...f];A===-1?O.push(v.value):O.splice(A,1),"value"in p||u(O),c?.(O.filter(w=>y.includes(w)).sort((w,W)=>{let z=S.findIndex(Q=>Q.value===w),H=S.findIndex(Q=>Q.value===W);return z-H}));},M=m("checkbox",a),$=`${M}-group`,P=ge(M),[h,b,T]=sr(M,P),I=tl(p,["value","disabled"]),k=n.length?S.map(v=>_.createElement(cr,{prefixCls:M,key:v.value.toString(),disabled:"disabled"in v?v.disabled:p.disabled,value:v.value,checked:f.includes(v.value),onChange:v.onChange,className:`${$}-item`,style:v.style,title:v.title,id:v.id,required:v.required},v.label)):r,E={toggleOption:R,value:f,disabled:p.disabled,name:p.name,registerValue:C,cancelValue:x},B=lt($,{[`${$}-rtl`]:d==="rtl"},i,l,T,P,b);return h(_.createElement("div",{className:B,style:s,...I,ref:o},_.createElement(lr.Provider,{value:E},k)))});var xl=Mm;var pr=cr;pr.Group=xl;pr.__ANT_CHECKBOX=true;process.env.NODE_ENV!=="production"&&(pr.displayName="Checkbox");var Ln=pr;var Sl=___default.createContext(void 0);process.env.NODE_ENV!=="production"&&(Sl.displayName="zIndexContext");var Jo=Sl;var ro=100,Om=10,zm=ro*Om,Dm=zm+ro,hl={Modal:ro,Drawer:ro,Popover:ro,Popconfirm:ro,Tooltip:ro,Tour:ro,FloatButton:ro},Am={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Hm(e){return e in hl}var et=(e,o)=>{let[,t]=Z(),r=___default.useContext(Jo),n=Hm(e),a;if(o!==void 0)a=[o,o];else {let i=r??0;n?i+=(r?0:t.zIndexPopupBase)+hl[e]:i+=Am[e],a=[r===void 0?o:i,i];}if(process.env.NODE_ENV!=="production"){let i=j(e),l=t.zIndexPopupBase+Dm,s=a[0]||0;i(o!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");}return a};var Lm=e=>typeof e!="object"&&typeof e!="function"||e===null,Tl=Lm;function dr(e){let{sizePopupArrow:o,borderRadiusXS:t,borderRadiusOuter:r}=e,n=o/2,a=0,i=n,l=r*1/Math.sqrt(2),s=n-r*(1-1/Math.sqrt(2)),c=n-t*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*n-c,d=p,f=2*n-l,u=s,y=2*n-a,g=i,S=n*Math.sqrt(2)+r*(Math.sqrt(2)-2),x=r*(Math.sqrt(2)-1),C=`polygon(${x}px 100%, 50% ${x}px, ${2*n-x}px 100%, ${x}px 100%)`,R=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${p} A ${t} ${t} 0 0 1 ${m} ${d} L ${f} ${u} A ${r} ${r} 0 0 0 ${y} ${g} Z')`;return {arrowShadowWidth:S,arrowPath:R,arrowPolygon:C}}var vl=(e,o,t)=>{let{sizePopupArrow:r,arrowPolygon:n,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:o,clipPath:{_multi_value_:true,value:[n,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}};var Fn=8;function ot(e){let{contentRadius:o,limitVerticalRadius:t}=e,r=o>12?o+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:t?Fn:r}}function mr(e,o){return e?o:{}}function Pt(e,o,t){let{componentCls:r,boxShadowPopoverArrow:n,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:true,right:true,top:true,bottom:true}}=t||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...vl(e,o,n),"&:before":{background:o}}],...mr(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:i}}}}),...mr(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:i}}}}),...mr(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...mr(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}}function Gm(e,o,t,r){if(r===false)return {adjustX:false,adjustY:false};let n=r&&typeof r=="object"?r:{},a={};switch(e){case "top":case "bottom":a.shiftX=o.arrowOffsetHorizontal*2+t,a.shiftY=true,a.adjustY=true;break;case "left":case "right":a.shiftY=o.arrowOffsetVertical*2+t,a.shiftX=true,a.adjustX=true;break}let i={...a,...n};return i.shiftX||(i.adjustX=true),i.shiftY||(i.adjustY=true),i}var Rl={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Wm={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Vm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rt(e){let{arrowWidth:o,autoAdjustOverflow:t,arrowPointAtCenter:r,offset:n,borderRadius:a,visibleFirst:i}=e,l=o/2,s={};return Object.keys(Rl).forEach(c=>{let m={...r&&Wm[c]||Rl[c],offset:[0,0],dynamicInset:true};switch(s[c]=m,Vm.has(c)&&(m.autoArrow=false),c){case "top":case "topLeft":case "topRight":m.offset[1]=-l-n;break;case "bottom":case "bottomLeft":case "bottomRight":m.offset[1]=l+n;break;case "left":case "leftTop":case "leftBottom":m.offset[0]=-l-n;break;case "right":case "rightTop":case "rightBottom":m.offset[0]=l+n;break}let d=ot({contentRadius:a,limitVerticalRadius:true});if(r)switch(c){case "topLeft":case "bottomLeft":m.offset[0]=-d.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":m.offset[0]=d.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":m.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":m.offset[1]=d.arrowOffsetHorizontal*2-l;break}m.overflow=Gm(c,d,o,t),i&&(m.htmlRegion="visibleFirst");}),s}function _m(e){return o=>_.createElement(ta,{theme:{token:{motion:false,zIndexPopupBase:0}}},_.createElement(e,{...o}))}var Km=(e,o,t,r,n)=>_m(i=>{let{prefixCls:l,style:s}=i,c=_.useRef(null),[p,m]=_.useState(0),[d,f]=_.useState(0),[u,y]=jm(false,{value:i.open}),{getPrefixCls:g}=_.useContext(N),S=g(r||"select",l);_.useEffect(()=>{if(y(true),typeof ResizeObserver<"u"){let R=new ResizeObserver($=>{let P=$[0].target;m(P.offsetHeight+8),f(P.offsetWidth);}),M=setInterval(()=>{let $=n?`.${n(S)}`:`.${S}-dropdown`,P=c.current?.querySelector($);P&&(clearInterval(M),R.observe(P));},10);return ()=>{clearInterval(M),R.disconnect();}}},[]);let x={...i,style:{...s,margin:0},open:u,visible:u,getPopupContainer:()=>c.current};return t&&(x=t(x)),o&&Object.assign(x,{[o]:{overflow:{adjustX:false,adjustY:false}}}),_.createElement("div",{ref:c,style:{paddingBottom:p,position:"relative",minWidth:d}},_.createElement(e,{...x}))}),$l=Km;var Xm=e=>!isNaN(parseFloat(e))&&isFinite(e),Il=Xm;var El=_.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var qm=e=>{let{antCls:o,componentCls:t,colorText:r,footerBg:n,headerHeight:a,headerPadding:i,headerColor:l,footerPadding:s,fontSize:c,bodyBg:p,headerBg:m}=e;return {[t]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${t}-has-sider`]:{flexDirection:"row",[`> ${t}, > ${t}-content`]:{width:0}},[`${t}-header, &${t}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${t}-header`]:{height:a,padding:i,color:l,lineHeight:unit(a),background:m,[`${o}-menu`]:{lineHeight:"inherit"}},[`${t}-footer`]:{padding:s,color:r,fontSize:c,background:n},[`${t}-content`]:{flex:"auto",color:r,minHeight:0}}},Gn=e=>{let{colorBgLayout:o,controlHeight:t,controlHeightLG:r,colorText:n,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=r*1.25;return {colorBgHeader:"#001529",colorBgBody:o,colorBgTrigger:"#002140",bodyBg:o,headerBg:"#001529",headerHeight:t*2,headerPadding:`0 ${c}px`,headerColor:n,footerPadding:`${a}px ${c}px`,footerBg:o,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:n}},Wn=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Y("Layout",e=>[qm(e)],Gn,{deprecatedTokens:Wn});var Zm=e=>{let{componentCls:o,siderBg:t,motionDurationMid:r,motionDurationSlow:n,antCls:a,triggerHeight:i,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:p,zeroTriggerHeight:m,borderRadius:d,lightSiderBg:f,lightTriggerColor:u,lightTriggerBg:y,bodyBg:g}=e;return {[o]:{position:"relative",minWidth:0,background:t,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${o}-children`]:{height:"100%",marginTop:-0.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${o}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:unit(i),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${a}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:m,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:t,borderStartStartRadius:0,borderStartEndRadius:d,borderEndEndRadius:d,borderEndStartRadius:0,cursor:"pointer",transition:`background ${n} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${n}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:d,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:d}}},"&-light":{background:f,[`${o}-trigger`]:{color:u,background:y},[`${o}-zero-width-trigger`]:{color:u,background:y,border:`1px solid ${g}`,borderInlineStart:0}}}}},Bl=Y(["Layout","Sider"],e=>[Zm(e)],Gn,{deprecatedTokens:Wn});var Dl={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},$t=_.createContext({}),ou=(()=>{let e=0;return (o="")=>(e+=1,`${o}${e}`)})(),tu=_.forwardRef((e,o)=>{let{prefixCls:t,className:r,trigger:n,children:a,defaultCollapsed:i=false,theme:l="dark",style:s={},collapsible:c=false,reverseArrow:p=false,width:m=200,collapsedWidth:d=80,zeroWidthTriggerStyle:f,breakpoint:u,onCollapse:y,onBreakpoint:g,...S}=e,{siderHook:x}=useContext(El),[C,R]=useState("collapsed"in e?e.collapsed:i),[M,$]=useState(false);useEffect(()=>{"collapsed"in e&&R(e.collapsed);},[e.collapsed]);let P=(O,w)=>{"collapsed"in e||R(O),y?.(O,w);},{getPrefixCls:h}=useContext(N),b=h("layout-sider",t),[T,I,k]=Bl(b),E=useRef(null);E.current=O=>{$(O.matches),g?.(O.matches),C!==O.matches&&P(O.matches,"responsive");},useEffect(()=>{function O(W){return E.current(W)}let w;if(typeof window<"u"){let{matchMedia:W}=window;if(W&&u&&u in Dl){w=W(`screen and (max-width: ${Dl[u]})`);try{w.addEventListener("change",O);}catch{w.addListener(O);}O(w);}}return ()=>{try{w?.removeEventListener("change",O);}catch{w?.removeListener(O);}}},[u]),useEffect(()=>{let O=ou("ant-sider-");return x.addSider(O),()=>x.removeSider(O)},[]);let B=()=>{P(!C,"clickTrigger");},v=()=>{let O=tl(S,["collapsed"]),w=C?d:m,W=Il(w)?`${w}px`:String(w),z=parseFloat(String(d||0))===0?_.createElement("span",{onClick:B,className:lt(`${b}-zero-width-trigger`,`${b}-zero-width-trigger-${p?"right":"left"}`),style:f},n||_.createElement(Jm,null)):null,q={expanded:p?_.createElement(Ol,null):_.createElement(Nl,null),collapsed:p?_.createElement(Nl,null):_.createElement(Ol,null)}[C?"collapsed":"expanded"],L=n!==null?z||_.createElement("div",{className:`${b}-trigger`,onClick:B,style:{width:W}},n||q):null,V={...s,flex:`0 0 ${W}`,maxWidth:W,minWidth:W,width:W},G=lt(b,`${b}-${l}`,{[`${b}-collapsed`]:!!C,[`${b}-has-trigger`]:c&&n!==null&&!z,[`${b}-below`]:!!M,[`${b}-zero-width`]:parseFloat(W)===0},r,I,k);return _.createElement("aside",{className:G,...O,style:V,ref:o},_.createElement("div",{className:`${b}-children`},a),c||M&&z?L:null)},A=_.useMemo(()=>({siderCollapsed:C}),[C]);return T(_.createElement($t.Provider,{value:A},v()))});process.env.NODE_ENV!=="production"&&(tu.displayName="Sider");var nu=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),Bo=nu;var lu=e=>{let{prefixCls:o,className:t,dashed:r,...n}=e,{getPrefixCls:a}=_.useContext(N),i=a("menu",o),l=lt({[`${i}-item-divider-dashed`]:!!r},t);return _.createElement(Divider,{className:l,...n})},fr=lu;var su=e=>{let{space:o,form:t,children:r}=e;if(r==null)return null;let n=r;return t&&(n=___default.createElement(ul,{override:true,status:true},n)),o&&(n=___default.createElement(Ca,null,n)),n},Mo=su;var cu=e=>{let{calc:o,componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:p,paddingXS:m,arrowOffsetHorizontal:d,sizePopupArrow:f}=e,u=o(i).add(f).add(d).equal(),y=o(i).mul(2).add(f).equal();return [{[t]:{...ne(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:y,minHeight:s,padding:`${unit(e.calc(p).div(2).equal())} ${unit(m)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Fn)}},[`${t}-content`]:{position:"relative"},...Gt(e,(g,{darkColor:S})=>({[`&${t}-${g}`]:{[`${t}-inner`]:{backgroundColor:S},[`${t}-arrow`]:{"--antd-arrow-background-color":S}}})),"&-rtl":{direction:"rtl"}}},Pt(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},pu=e=>({zIndexPopup:e.zIndexPopupBase+70,...ot({contentRadius:e.borderRadius,limitVerticalRadius:true}),...dr(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),gr=(e,o=true)=>Y("Tooltip",r=>{let{borderRadius:n,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=mergeToken(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:n,tooltipBg:i});return [cu(l),Eo(r,"zoom-big-fast")]},pu,{resetStyle:false,injectStyle:o})(e);var du=po.map(e=>`${e}-inverse`);function Ll(e,o=true){return o?[...du,...po].includes(e):po.includes(e)}function Cr(e,o){let t=Ll(o),r=lt({[`${e}-${o}`]:o&&t}),n={},a={};return o&&!t&&(n.background=o,a["--antd-arrow-background-color"]=o),{className:r,overlayStyle:n,arrowStyle:a}}var gu=e=>{let{prefixCls:o,className:t,placement:r="top",title:n,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=_.useContext(N),s=l("tooltip",o),[c,p,m]=gr(s),d=Cr(s,a),f=d.arrowStyle,u={...i,...d.overlayStyle},y=lt(p,m,s,`${s}-pure`,`${s}-placement-${r}`,t,d.className);return c(_.createElement("div",{className:y,style:f},_.createElement("div",{className:`${s}-arrow`}),_.createElement(Popup,{...e,className:p,prefixCls:s,overlayInnerStyle:u},n)))},Fl=gu;var yu=_.forwardRef((e,o)=>{let{prefixCls:t,openClassName:r,getTooltipContainer:n,overlayClassName:a,color:i,overlayInnerStyle:l,children:s,afterOpenChange:c,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:d=true,title:f,overlay:u,builtinPlacements:y,arrowPointAtCenter:g=false,autoAdjustOverflow:S=true}=e,x=!!d,[,C]=Z(),{getPopupContainer:R,getPrefixCls:M,direction:$}=_.useContext(N),P=j("Tooltip"),h=_.useRef(null),b=()=>{h.current?.forceAlign();};_.useImperativeHandle(o,()=>({forceAlign:b,forcePopupAlign:()=>{P.deprecated(false,"forcePopupAlign","forceAlign"),b();},nativeElement:h.current?.nativeElement})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(([re,ao])=>{P.deprecated(!(re in e),re,ao);}),P(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),P(!d||typeof d=="boolean"||!("arrowPointAtCenter"in d),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));let[T,I]=jm(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),k=!f&&!u&&f!==0,E=re=>{I(k?false:re),k||(e.onOpenChange?.(re),e.onVisibleChange?.(re));},B=_.useMemo(()=>{let re=g;return typeof d=="object"&&(re=d.pointAtCenter??d.arrowPointAtCenter??g),y||Rt({arrowPointAtCenter:re,autoAdjustOverflow:S,arrowWidth:x?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:true})},[g,d,y,C]),v=_.useMemo(()=>f===0?f:u||f||"",[u,f]),A=_.createElement(Mo,{space:true},typeof v=="function"?v():v),{getPopupContainer:O,placement:w="top",mouseEnterDelay:W=.1,mouseLeaveDelay:z=.1,overlayStyle:H,rootClassName:Q,...q}=e,L=M("tooltip",t),V=M(),G=e["data-popover-inject"],ee=T;!("open"in e)&&!("visible"in e)&&k&&(ee=false);let U=_.isValidElement(s)&&!_t(s)?s:_.createElement("span",null,s),de=U.props,be=!de.className||typeof de.className=="string"?lt(de.className,r||`${L}-open`):de.className,[Ie,oe,F]=gr(L,!G),me=Cr(L,i),Ho=me.arrowStyle,io={...l,...me.overlayStyle},D=lt(a,{[`${L}-rtl`]:$==="rtl"},me.className,Q,oe,F),[K,se]=et("Tooltip",q.zIndex),we=_.createElement(Cu,{...q,zIndex:K,showArrow:x,placement:w,mouseEnterDelay:W,mouseLeaveDelay:z,prefixCls:L,overlayClassName:D,overlayStyle:{...Ho,...H},getTooltipContainer:O||n||R,ref:h,builtinPlacements:B,overlay:A,visible:ee,onVisibleChange:E,afterVisibleChange:c??p,overlayInnerStyle:io,arrowContent:_.createElement("span",{className:`${L}-arrow-content`}),motion:{motionName:Ea(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m},ee?te(U,{className:be}):U);return Ie(_.createElement(Jo.Provider,{value:se},we))}),jn=yu;process.env.NODE_ENV!=="production"&&(jn.displayName="Tooltip");jn._InternalPanelDoNotUseOrYouWillBeFired=Fl;var Wl=jn;var Tu=e=>{let{className:o,children:t,icon:r,title:n,danger:a,extra:i}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=_.useContext(Bo),d=x=>{let C=t?.[0],R=_.createElement("span",{className:lt(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!i||i===0})},t);return (!r||_.isValidElement(t)&&t.type==="span")&&t&&x&&s&&typeof C=="string"?_.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):R},{siderCollapsed:f}=_.useContext($t),u=n;typeof n>"u"?u=s?t:"":n===false&&(u="");let y={title:u};!f&&!m&&(y.title=null,y.open=false);let g=cd(t).length,S=_.createElement(Item,{...tl(e,["title","icon","danger"]),className:lt({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(r?g+1:g)===1},o),title:typeof n=="string"?n:void 0},te(r,{className:lt(_.isValidElement(r)?r.props?.className:"",`${l}-item-icon`)}),d(m));return p||(S=_.createElement(Wl,{...y,placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`},S)),S},br=Tu;var Kn=_.createContext(null),yr=_.forwardRef((e,o)=>{let{children:t,...r}=e,n=_.useContext(Kn),a=_.useMemo(()=>({...n,...r}),[n,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=supportNodeRef(t),l=useComposeRef(o,i?getNodeRef(t):null);return _.createElement(Kn.Provider,{value:a},_.createElement(Mo,{space:true},i?_.cloneElement(t,{ref:l}):t))}),Xn=Kn;var Iu=e=>{let{componentCls:o,motionDurationSlow:t,horizontalLineHeight:r,colorSplit:n,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return {[`${o}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${unit(a)} ${i} ${n}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${o}-item, ${o}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${o}-item:hover,
|
|
69
|
+
> ${o}-item-active,
|
|
70
|
+
> ${o}-submenu ${o}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${o}-item, ${o}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${o}-submenu-arrow`]:{display:"none"}}}},Vl=Iu;var wu=({componentCls:e,menuArrowOffset:o,calc:t})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
71
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit(t(o).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit(o)})`}}}}),_l=wu;var Kl=e=>({...Xe(e)}),Eu=(e,o)=>{let{componentCls:t,itemColor:r,itemSelectedColor:n,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:p,activeBarBorderWidth:m,motionDurationSlow:d,motionEaseInOut:f,motionEaseOut:u,itemPaddingInline:y,motionDurationMid:g,itemHoverColor:S,lineType:x,colorSplit:C,itemDisabledColor:R,dangerItemColor:M,dangerItemHoverColor:$,dangerItemSelectedColor:P,dangerItemActiveBg:h,dangerItemSelectedBg:b,popupBg:T,itemHoverBg:I,itemActiveBg:k,menuSubMenuBg:E,horizontalItemSelectedColor:B,horizontalItemSelectedBg:v,horizontalItemBorderRadius:A,horizontalItemHoverBg:O}=e;return {[`${t}-${o}, ${t}-${o} > ${t}`]:{color:r,background:i,[`&${t}-root:focus-visible`]:{...Kl(e)},[`${t}-item`]:{"&-group-title, &-extra":{color:a}},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:n}},[`${t}-item, ${t}-submenu-title`]:{color:r,[`&:not(${t}-item-disabled):focus-visible`]:{...Kl(e)}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${R} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:S}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:k}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:k}}},[`${t}-item-danger`]:{color:M,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:$}},[`&${t}-item:active`]:{background:h}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:n,[`&${t}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:s,[`&${t}-item-danger`]:{backgroundColor:b}},[`&${t}-submenu > ${t}`]:{backgroundColor:E},[`&${t}-popup > ${t}`]:{backgroundColor:T},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:T},[`&${t}-horizontal`]:{...o==="dark"?{borderBottom:0}:{},[`> ${t}-item, > ${t}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${unit(c)} solid transparent`,transition:`border-color ${d} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:O,"&::after":{borderBottomWidth:c,borderBottomColor:B}},"&-selected":{color:B,backgroundColor:v,"&:hover":{backgroundColor:v},"&::after":{borderBottomWidth:c,borderBottomColor:B}}}},[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${unit(m)} ${x} ${C}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:l},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit(p)} solid ${n}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${u}`,`opacity ${g} ${u}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${f}`,`opacity ${g} ${f}`].join(",")}}}}}},qn=Eu;var Xl=e=>{let{componentCls:o,itemHeight:t,itemMarginInline:r,padding:n,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,p=e.calc(a).add(n).add(i).equal();return {[`${o}-item`]:{position:"relative",overflow:"hidden"},[`${o}-item, ${o}-submenu-title`]:{height:t,lineHeight:unit(t),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${o}-item,
|
|
72
|
+
> ${o}-submenu > ${o}-submenu-title`]:{height:t,lineHeight:unit(t)},[`${o}-item-group-list ${o}-submenu-title,
|
|
73
|
+
${o}-submenu-title`]:{paddingInlineEnd:p}}},Bu=e=>{let{componentCls:o,iconCls:t,itemHeight:r,colorTextLightSolid:n,dropdownWidth:a,controlHeightLG:i,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:p,motionDurationFast:m,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:u,collapsedWidth:y,collapsedIconSize:g}=e,S={height:r,lineHeight:unit(r),listStylePosition:"inside",listStyleType:"disc"};return [{[o]:{"&-inline, &-vertical":{[`&${o}-root`]:{boxShadow:"none"},...Xl(e)}},[`${o}-submenu-popup`]:{[`${o}-vertical`]:{...Xl(e),boxShadow:u}}},{[`${o}-submenu-popup ${o}-vertical${o}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${unit(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${o}-inline`]:{width:"100%",[`&${o}-root`]:{[`${o}-item, ${o}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${m} ${l}`].join(","),[`> ${o}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${o}-sub${o}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${o}-submenu > ${o}-submenu-title`]:S,[`& ${o}-item-group-title`]:{paddingInlineStart:s}},[`${o}-item`]:S}},{[`${o}-inline-collapsed`]:{width:y,[`&${o}-root`]:{[`${o}-item, ${o}-submenu ${o}-submenu-title`]:{[`> ${o}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${o}-item,
|
|
74
|
+
> ${o}-item-group > ${o}-item-group-list > ${o}-item,
|
|
75
|
+
> ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title,
|
|
76
|
+
> ${o}-submenu > ${o}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${unit(e.calc(g).div(2).equal())} - ${unit(c)})`,textOverflow:"clip",[`
|
|
77
|
+
${o}-submenu-arrow,
|
|
78
|
+
${o}-submenu-expand-icon
|
|
79
|
+
`]:{opacity:0},[`${o}-item-icon, ${t}`]:{margin:0,fontSize:g,lineHeight:unit(r),"+ span":{display:"inline-block",opacity:0}}},[`${o}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${o}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:n}},[`${o}-item-group-title`]:{..._i,paddingInline:f}}}]},Ul=Bu;var Yl=e=>{let{componentCls:o,motionDurationSlow:t,motionDurationMid:r,motionEaseInOut:n,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return {[`${o}-item, ${o}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding calc(${t} + 0.1s) ${n}`].join(","),[`${o}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${t} ${n}`,`color ${t}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${t} ${n}`,`margin ${t}`,`color ${t}`].join(",")}},[`${o}-item-icon`]:{...vo()},[`&${o}-item-only-child`]:{[`> ${i}, > ${o}-item-icon`]:{marginInlineEnd:0}}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${o}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Zl=e=>{let{componentCls:o,motionDurationSlow:t,motionEaseInOut:r,borderRadius:n,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${o}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${r}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:n,transition:[`background ${t} ${r}`,`transform ${t} ${r}`,`top ${t} ${r}`,`color ${t} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit(i)})`}}}}},Mu=e=>{let{antCls:o,componentCls:t,fontSize:r,motionDurationSlow:n,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:p,zIndexPopup:m,borderRadiusLG:d,subMenuItemBorderRadius:f,menuArrowSize:u,menuArrowOffset:y,lineType:g,groupTitleLineHeight:S,groupTitleFontSize:x}=e;return [{"":{[t]:{...bt(),"&-hidden":{display:"none"}}},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:{...ne(e),...bt(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${n} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${unit(l)} ${unit(s)}`,fontSize:x,lineHeight:S,transition:`all ${n}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${n} ${i}`,`background ${n} ${i}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${n} ${i}`,`background ${n} ${i}`,`padding ${a} ${i}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${n} ${i}`,`padding ${n} ${i}`].join(",")},[`${t}-title-content`]:{transition:`color ${n}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${o}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${t}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}},...Yl(e),[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${unit(e.calc(r).mul(2).equal())} ${unit(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:{borderRadius:d,...Yl(e),...Zl(e),[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:f},[`${t}-submenu-title::after`]:{transition:`transform ${n} ${i}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...Zl(e),[`&-inline-collapsed ${t}-submenu-arrow,
|
|
80
|
+
&-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit(y)})`},"&::after":{transform:`rotate(45deg) translateX(${unit(e.calc(y).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${unit(e.calc(u).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit(y)})`}}}},{[`${o}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},ku=e=>{let{colorPrimary:o,colorError:t,colorTextDisabled:r,colorErrorBg:n,colorText:a,colorTextDescription:i,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:p,lineWidthBold:m,controlItemBgActive:d,colorBgTextHover:f,controlHeightLG:u,lineHeight:y,colorBgElevated:g,marginXXS:S,padding:x,fontSize:C,controlHeightSM:R,fontSizeLG:M,colorTextLightSolid:$,colorErrorHover:P}=e,h=e.activeBarWidth??0,b=e.activeBarBorderWidth??p,T=e.itemMarginInline??e.marginXXS,I=new TinyColor($).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:l,itemBg:l,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:d,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:h,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:b,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:t,dangerItemColor:t,colorDangerItemTextHover:t,dangerItemHoverColor:t,colorDangerItemTextSelected:t,dangerItemSelectedColor:t,colorDangerItemBgActive:n,dangerItemActiveBg:n,colorDangerItemBgSelected:n,dangerItemSelectedBg:n,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:u,groupTitleLineHeight:y,collapsedWidth:u*2,popupBg:g,itemMarginBlock:S,itemPaddingInline:x,horizontalLineHeight:`${u*1.15}px`,iconSize:C,iconMarginInlineEnd:R-C,collapsedIconSize:M,groupTitleFontSize:C,darkItemDisabledColor:new TinyColor($).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:t,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:t,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:$,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:t,itemWidth:h?`calc(100% + ${b}px)`:`calc(100% - ${T*2}px)`}},Ql=(e,o=e,t=true)=>Y("Menu",n=>{let{colorBgElevated:a,controlHeightLG:i,fontSize:l,darkItemColor:s,darkDangerItemColor:c,darkItemBg:p,darkSubMenuItemBg:m,darkItemSelectedColor:d,darkItemSelectedBg:f,darkDangerItemSelectedBg:u,darkItemHoverBg:y,darkGroupTitleColor:g,darkItemHoverColor:S,darkItemDisabledColor:x,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:M,popupBg:$,darkPopupBg:P}=n,h=n.calc(l).div(7).mul(5).equal(),b=mergeToken(n,{menuArrowSize:h,menuHorizontalHeight:n.calc(i).mul(1.15).equal(),menuArrowOffset:n.calc(h).mul(.25).equal(),menuSubMenuBg:a,calc:n.calc,popupBg:$}),T=mergeToken(b,{itemColor:s,itemHoverColor:S,groupTitleColor:g,itemSelectedColor:d,itemBg:p,popupBg:P,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:y,itemDisabledColor:x,dangerItemColor:c,dangerItemHoverColor:C,dangerItemSelectedColor:R,dangerItemActiveBg:M,dangerItemSelectedBg:u,menuSubMenuBg:m,horizontalItemSelectedColor:d,horizontalItemSelectedBg:f});return [Mu(b),Vl(b),Ul(b),qn(b,"light"),qn(T,"dark"),_l(b),$o(b),wo(b,"slide-up"),wo(b,"slide-down"),Eo(b,"zoom-big")]},ku,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:true}})(e,o);var Du=e=>{let{popupClassName:o,icon:t,title:r,theme:n}=e,a=_.useContext(Bo),{prefixCls:i,inlineCollapsed:l,theme:s}=a,c=useFullPath(),p;if(!t)p=l&&!c.length&&r&&typeof r=="string"?_.createElement("div",{className:`${i}-inline-collapsed-noicon`},r.charAt(0)):_.createElement("span",{className:`${i}-title-content`},r);else {let f=_.isValidElement(r)&&r.type==="span";p=_.createElement(_.Fragment,null,te(t,{className:lt(_.isValidElement(t)?t.props?.className:"",`${i}-item-icon`)}),f?r:_.createElement("span",{className:`${i}-title-content`},r));}let m=_.useMemo(()=>({...a,firstLevel:false}),[a]),[d]=et("Menu");return _.createElement(Bo.Provider,{value:m},_.createElement(SubMenu,{...tl(e,["icon"]),title:p,popupClassName:lt(i,o,`${i}-${n||s}`),popupStyle:{zIndex:d,...e.popupStyle}}))},xr=Du;function Yn(e){return e===null||e===false}var Wu={item:br,submenu:xr,divider:fr},Vu=forwardRef((e,o)=>{let t=_.useContext(Xn),r=t||{},{getPrefixCls:n,getPopupContainer:a,direction:i,menu:l}=_.useContext(N),s=n(),{prefixCls:c,className:p,style:m,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:u,inlineCollapsed:y,siderCollapsed:g,rootClassName:S,mode:x,selectable:C,onClick:R,overflowedIndicatorPopupClassName:M,...$}=e,P=tl($,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){let H=j("Menu");H(!("inlineCollapsed"in e&&x!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),H.deprecated("items"in e&&!e.children,"children","items");}r.validator?.({mode:x});let h=pc((...H)=>{R?.(...H),r.onClick?.();}),b=r.mode||x,T=C??r.selectable,I=y??g,k={horizontal:{motionName:`${s}-slide-up`},inline:Yo(s),other:{motionName:`${s}-zoom-big`}},E=n("menu",c||r.prefixCls),B=ge(E),[v,A,O]=Ql(E,B,!t),w=lt(`${E}-${d}`,l?.className,p),W=_.useMemo(()=>{if(typeof f=="function"||Yn(f))return f||null;if(typeof r.expandIcon=="function"||Yn(r.expandIcon))return r.expandIcon||null;if(typeof l?.expandIcon=="function"||Yn(l?.expandIcon))return l?.expandIcon||null;let H=f??r?.expandIcon??l?.expandIcon;return te(H,{className:lt(`${E}-submenu-expand-icon`,_.isValidElement(H)?H.props?.className:void 0)})},[f,r?.expandIcon,l?.expandIcon,E]),z=_.useMemo(()=>({prefixCls:E,inlineCollapsed:I||false,direction:i,firstLevel:true,theme:d,mode:b,disableMenuItemTitleTooltip:u}),[E,I,i,u,d]);return v(_.createElement(Xn.Provider,{value:null},_.createElement(Bo.Provider,{value:z},_.createElement(Lu,{getPopupContainer:a,overflowedIndicator:_.createElement(Hu,null),overflowedIndicatorPopupClassName:lt(E,`${E}-${d}`,M),mode:b,selectable:T,onClick:h,...P,inlineCollapsed:I,style:{...l?.style,...m},className:w,prefixCls:E,direction:i,defaultMotions:k,expandIcon:W,ref:o,rootClassName:lt(S,A,r.rootClassName,O,B),_internalComponents:Wu}))))}),es=Vu;var rt=forwardRef((e,o)=>{let t=useRef(null),r=_.useContext($t);return useImperativeHandle(o,()=>({menu:t.current,focus:n=>{t.current?.focus(n);}})),_.createElement(es,{ref:t,...e,...r})});rt.Item=br;rt.SubMenu=xr;rt.Divider=fr;rt.ItemGroup=ItemGroup;process.env.NODE_ENV!=="production"&&(rt.displayName="Menu");var Tr=rt;var Uu=e=>{let{componentCls:o,menuCls:t,colorError:r,colorTextLightSolid:n}=e,a=`${t}-item`;return {[`${o}, ${o}-menu-submenu`]:{[`${t} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:n,backgroundColor:r}}}}}},os=Uu;var qu=e=>{let{componentCls:o,menuCls:t,zIndexPopup:r,dropdownArrowDistance:n,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:p,dropdownEdgeChildPadding:m,colorTextDisabled:d,fontSizeIcon:f,controlPaddingHorizontal:u,colorBgElevated:y}=e;return [{[o]:{position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(n).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:f}},[`${o}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${o}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomLeft,
|
|
81
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomLeft,
|
|
82
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottom,
|
|
83
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottom,
|
|
84
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomRight,
|
|
85
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:Qt},[`&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topLeft,
|
|
86
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topLeft,
|
|
87
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-top,
|
|
88
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-top,
|
|
89
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topRight,
|
|
90
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topRight`]:{animationName:er},[`&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomLeft,
|
|
91
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottom,
|
|
92
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:Jt},[`&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topLeft,
|
|
93
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-top,
|
|
94
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topRight`]:{animationName:or}}},Pt(e,y,{arrowPlacement:{top:true,bottom:true}}),{[`${o} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{...ne(e),[t]:{padding:m,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...yt(e),"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${unit(c)} ${unit(u)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${t}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${t}-item, ${t}-submenu-title`]:{display:"flex",margin:0,padding:`${unit(c)} ${unit(u)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...yt(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${unit(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}},[`${t}-item-group-list`]:{margin:`0 ${unit(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(u).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:y,cursor:"not-allowed"}},[`${t}-submenu-selected ${o}-menu-submenu-title`]:{color:e.colorPrimary}}}},[wo(e,"slide-up"),wo(e,"slide-down"),Zt(e,"move-up"),Zt(e,"move-down"),Eo(e,"zoom-big")]]},Yu=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...ot({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...dr(e)}),ts=Y("Dropdown",e=>{let{marginXXS:o,sizePopupArrow:t,paddingXXS:r,componentCls:n}=e,a=mergeToken(e,{menuCls:`${n}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(o).equal(),dropdownEdgeChildPadding:r});return [qu(a),os(a)]},Yu,{resetStyle:false});var vr=e=>{let{menu:o,arrow:t,prefixCls:r,children:n,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:p,overlayStyle:m,open:d,onOpenChange:f,visible:u,onVisibleChange:y,mouseEnterDelay:g=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:x=true,placement:C="",overlay:R,transitionName:M}=e,{getPopupContainer:$,getPrefixCls:P,direction:h,dropdown:b}=_.useContext(N),T=j("Dropdown");process.env.NODE_ENV!=="production"&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach(([F,me])=>{T.deprecated(!(F in e),F,me);}),T.deprecated(!("overlay"in e),"overlay","menu"));let I=_.useMemo(()=>{let F=P();return M!==void 0?M:C.includes("top")?`${F}-slide-down`:`${F}-slide-up`},[P,C,M]),k=_.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:h==="rtl"?"bottomRight":"bottomLeft",[C,h]);if(process.env.NODE_ENV!=="production"){if(C.includes("Center")){let F=C.slice(0,C.indexOf("Center"));T(!C.includes("Center"),"deprecated",`You are using '${C}' placement in Dropdown, which is deprecated. Try to use '${F}' instead.`);}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(([F,me])=>{T.deprecated(!(F in e),F,me);});}let E=P("dropdown",r),B=ge(E),[v,A,O]=ts(E,B),[,w]=Z(),W=_.Children.only(Tl(n)?_.createElement("span",null,n):n),z=te(W,{className:lt(`${E}-trigger`,{[`${E}-rtl`]:h==="rtl"},W.props.className),disabled:W.props.disabled??i}),H=i?[]:a,Q=!!H?.includes("contextMenu"),[q,L]=jm(false,{value:d??u}),V=pc(F=>{f?.(F,{source:"trigger"}),y?.(F),L(F);}),G=lt(c,p,A,O,B,b?.className,{[`${E}-rtl`]:h==="rtl"}),ee=Rt({arrowPointAtCenter:typeof t=="object"&&t.pointAtCenter,autoAdjustOverflow:x,offset:w.marginXXS,arrowWidth:t?w.sizePopupArrow:0,borderRadius:w.borderRadius}),U=_.useCallback(()=>{o?.selectable&&o?.multiple||(f?.(false,{source:"menu"}),L(false));},[o?.selectable,o?.multiple]),de=()=>{let F;return o?.items?F=_.createElement(Tr,{...o}):typeof R=="function"?F=R():F=R,l&&(F=l(F)),F=_.Children.only(typeof F=="string"?_.createElement("span",null,F):F),_.createElement(yr,{prefixCls:`${E}-menu`,rootClassName:lt(O,B),expandIcon:_.createElement("span",{className:`${E}-menu-submenu-arrow`},_.createElement(Ol,{className:`${E}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:U,validator:({mode:me})=>{T(!me||me==="vertical","usage",`mode="${me}" is not supported for Dropdown's Menu.`);}},F)},[be,Ie]=et("Dropdown",m?.zIndex),oe=_.createElement(Qu,{alignPoint:Q,...tl(e,["rootClassName"]),mouseEnterDelay:g,mouseLeaveDelay:S,visible:q,builtinPlacements:ee,arrow:!!t,overlayClassName:G,prefixCls:E,getPopupContainer:s||$,transitionName:I,trigger:H,overlay:de,placement:k,onVisibleChange:V,overlayStyle:{...b?.style,...m,zIndex:be}},z);return be&&(oe=_.createElement(Jo.Provider,{value:Ie},oe)),v(oe)},tf=$l(vr,"align",void 0,"dropdown",e=>e),rf=e=>_.createElement(tf,{...e},_.createElement("span",null));vr._InternalPanelDoNotUseOrYouWillBeFired=rf;process.env.NODE_ENV!=="production"&&(vr.displayName="Dropdown");var Pr=vr;function Qn(e){return ["small","middle","large"].includes(e)}function Jn(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var Rr=___default.createContext({latestIndex:0}),rs=Rr.Provider;var af=({className:e,index:o,children:t,split:r,style:n})=>{let{latestIndex:a}=_.useContext(Rr);return t==null?null:_.createElement(_.Fragment,null,_.createElement("div",{className:e,style:n},t),o<a&&r&&_.createElement("span",{className:`${e}-split`},r))},ns=af;var sf=_.forwardRef((e,o)=>{let{getPrefixCls:t,space:r,direction:n}=_.useContext(N),{size:a=r?.size??"small",align:i,className:l,rootClassName:s,children:c,direction:p="horizontal",prefixCls:m,split:d,style:f,wrap:u=false,classNames:y,styles:g,...S}=e,[x,C]=Array.isArray(a)?a:[a,a],R=Qn(C),M=Qn(x),$=Jn(C),P=Jn(x),h=cd(c,{keepEmpty:true}),b=i===void 0&&p==="horizontal"?"center":i,T=t("space",m),[I,k,E]=Xt(T),B=lt(T,r?.className,k,`${T}-${p}`,{[`${T}-rtl`]:n==="rtl",[`${T}-align-${b}`]:b,[`${T}-gap-row-${C}`]:R,[`${T}-gap-col-${x}`]:M},l,s,E),v=lt(`${T}-item`,y?.item??r?.classNames?.item),A=0,O=h.map((z,H)=>{z!=null&&(A=H);let Q=z?.key||`${v}-${H}`;return _.createElement(ns,{className:v,key:Q,index:H,split:d,style:g?.item??r?.styles?.item},z)}),w=_.useMemo(()=>({latestIndex:A}),[A]);if(h.length===0)return null;let W={};return u&&(W.flexWrap="wrap"),!M&&P&&(W.columnGap=x),!R&&$&&(W.rowGap=C),I(_.createElement("div",{ref:o,className:B,style:{...W,...r?.style,...f},...S},_.createElement(rs,{value:w},O)))}),ei=sf;ei.Compact=ba;process.env.NODE_ENV!=="production"&&(ei.displayName="Space");var as=ei;var ls=e=>{let{getPopupContainer:o,getPrefixCls:t,direction:r}=_.useContext(N),{prefixCls:n,type:a="default",danger:i,disabled:l,loading:s,onClick:c,htmlType:p,children:m,className:d,menu:f,arrow:u,autoFocus:y,overlay:g,trigger:S,align:x,open:C,onOpenChange:R,placement:M,getPopupContainer:$,href:P,icon:h=_.createElement(Hu,null),title:b,buttonsRender:T=U=>U,mouseEnterDelay:I,mouseLeaveDelay:k,overlayClassName:E,overlayStyle:B,destroyPopupOnHide:v,dropdownRender:A,...O}=e,w=t("dropdown",n),W=`${w}-button`,z={menu:f,arrow:u,autoFocus:y,align:x,disabled:l,trigger:l?[]:S,onOpenChange:R,getPopupContainer:$||o,mouseEnterDelay:I,mouseLeaveDelay:k,overlayClassName:E,overlayStyle:B,destroyPopupOnHide:v,dropdownRender:A},{compactSize:H,compactItemClassnames:Q}=uo(w,r),q=lt(W,Q,d);"overlay"in e&&(z.overlay=g),"open"in e&&(z.open=C),"placement"in e?z.placement=M:z.placement=r==="rtl"?"bottomLeft":"bottomRight";let L=_.createElement(Co,{type:a,danger:i,disabled:l,loading:s,onClick:c,htmlType:p,href:P,title:b},m),V=_.createElement(Co,{type:a,danger:i,icon:h}),[G,ee]=T([L,V]);return _.createElement(as.Compact,{className:q,size:H,block:true,...O},G,_.createElement(Pr,{...z},ee))};ls.__ANT_BUTTON=true;var ss=ls;var cs=Pr;cs.Button=ss;var ps=cs;var ds=()=>{let[,e]=Z(),[o]=so("Empty"),r=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return _.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},_.createElement("title",null,o?.description||"Empty"),_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("g",{transform:"translate(24 31.67)"},_.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),_.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),_.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),_.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),_.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),_.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),_.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},_.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),_.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(ds.displayName="EmptyImage");var ms=ds;var us=()=>{let[,e]=Z(),[o]=so("Empty"),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=useMemo(()=>({borderColor:new TinyColor(t).onBackground(a).toHexShortString(),shadowColor:new TinyColor(r).onBackground(a).toHexShortString(),contentColor:new TinyColor(n).onBackground(a).toHexShortString()}),[t,r,n,a]);return _.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},_.createElement("title",null,o?.description||"Empty"),_.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},_.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),_.createElement("g",{fillRule:"nonzero",stroke:i},_.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),_.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};process.env.NODE_ENV!=="production"&&(us.displayName="SimpleImage");var fs=us;var uf=e=>{let{componentCls:o,margin:t,marginXS:r,marginXL:n,fontSize:a,lineHeight:i}=e;return {[o]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${o}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${o}-description`]:{color:e.colorTextDescription},[`${o}-footer`]:{marginTop:t},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${o}-description`]:{color:e.colorTextDescription},[`${o}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${o}-image`]:{height:e.emptyImgHeightSM}}}}},gs=Y("Empty",e=>{let{componentCls:o,controlHeightLG:t,calc:r}=e,n=mergeToken(e,{emptyImgCls:`${o}-img`,emptyImgHeight:r(t).mul(2.5).equal(),emptyImgHeightMD:t,emptyImgHeightSM:r(t).mul(.875).equal()});return [uf(n)]});var Cs=_.createElement(ms,null),bs=_.createElement(fs,null),$r=({className:e,rootClassName:o,prefixCls:t,image:r=Cs,description:n,children:a,imageStyle:i,style:l,...s})=>{let{getPrefixCls:c,direction:p,empty:m}=_.useContext(N),d=c("empty",t),[f,u,y]=gs(d),[g]=so("Empty"),S=typeof n<"u"?n:g?.description,x=typeof S=="string"?S:"empty",C=null;return typeof r=="string"?C=_.createElement("img",{alt:x,src:r}):C=r,f(_.createElement("div",{className:lt(u,y,d,m?.className,{[`${d}-normal`]:r===bs,[`${d}-rtl`]:p==="rtl"},e,o),style:{...m?.style,...l},...s},_.createElement("div",{className:`${d}-image`,style:i},C),S&&_.createElement("div",{className:`${d}-description`},S),a&&_.createElement("div",{className:`${d}-footer`},a)))};$r.PRESENTED_IMAGE_DEFAULT=Cs;$r.PRESENTED_IMAGE_SIMPLE=bs;process.env.NODE_ENV!=="production"&&($r.displayName="Empty");var ti=$r;var ys=_.createContext(null),xs=ys.Provider,Ss=ys,ni=_.createContext(null),hs=ni.Provider;var gf=e=>{let{componentCls:o,antCls:t}=e,r=`${o}-group`;return {[r]:{...ne(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${t}-badge ${t}-badge-count`]:{zIndex:1},[`> ${t}-badge:not(:first-child) > ${t}-button-wrapper`]:{borderInlineStart:"none"}}}},Cf=e=>{let{componentCls:o,wrapperMarginInlineEnd:t,colorPrimary:r,radioSize:n,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:p,colorBgContainerDisabled:m,colorTextDisabled:d,paddingXS:f,dotColorDisabled:u,lineType:y,radioColor:g,radioBgColor:S,calc:x}=e,C=`${o}-inner`,M=x(n).sub(x(4).mul(2)),$=x(1).mul(n).equal({unit:true});return {[`${o}-wrapper`]:{...ne(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:t,cursor:"pointer",[`&${o}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${o}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit(p)} ${y} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[o]:{...ne(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${o}-wrapper:hover &,
|
|
95
|
+
&:hover ${C}`]:{borderColor:r},[`${o}-input:focus-visible + ${C}`]:{...Xe(e)},[`${o}:hover::after, ${o}-wrapper:hover &::after`]:{visibility:"visible"},[`${o}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$,height:$,marginBlockStart:x(1).mul(n).div(-2).equal({unit:true}),marginInlineStart:x(1).mul(n).div(-2).equal({unit:true}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${i}`},[`${o}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${o}-checked`]:{[C]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(n).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${o}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:u}},[`${o}-input`]:{cursor:"not-allowed"},[`${o}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${o}-checked`]:{[C]:{"&::after":{transform:`scale(${x(M).div(n).equal()})`}}}},[`span${o} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},bf=e=>{let{buttonColor:o,controlHeight:t,componentCls:r,lineWidth:n,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:p,buttonBg:m,fontSizeLG:d,controlHeightLG:f,controlHeightSM:u,paddingXS:y,borderRadius:g,borderRadiusSM:S,borderRadiusLG:x,buttonCheckedBg:C,buttonSolidCheckedColor:R,colorTextDisabled:M,colorBgContainerDisabled:$,buttonCheckedBgDisabled:P,buttonCheckedColorDisabled:h,colorPrimary:b,colorPrimaryHover:T,colorPrimaryActive:I,buttonSolidCheckedBg:k,buttonSolidCheckedHoverBg:E,buttonSolidCheckedActiveBg:B,calc:v}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:t,margin:0,paddingInline:c,paddingBlock:0,color:o,fontSize:p,lineHeight:unit(v(t).sub(v(n).mul(2)).equal()),background:m,border:`${unit(n)} ${a} ${i}`,borderBlockStartWidth:v(n).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:n,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:o},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:v(n).mul(-1).equal(),insetInlineStart:v(n).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:n,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit(n)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:unit(v(f).sub(v(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:u,paddingInline:v(y).sub(n).equal(),paddingBlock:0,lineHeight:unit(v(u).sub(v(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:b},"&:has(:focus-visible)":{...Xe(e)},[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:b,background:C,borderColor:b,"&::before":{backgroundColor:b},"&:first-child":{borderColor:b},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:R,background:k,borderColor:k,"&:hover":{color:R,background:E,borderColor:E},"&:active":{color:R,background:B,borderColor:B}},"&-disabled":{color:M,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:M,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:h,backgroundColor:P,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},yf=e=>{let{wireframe:o,padding:t,marginXS:r,lineWidth:n,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:p,colorPrimary:m,colorPrimaryHover:d,colorPrimaryActive:f,colorWhite:u}=e,y=4,g=a,S=o?g-y*2:g-(y+n)*2;return {radioSize:g,dotSize:S,dotColorDisabled:s,buttonSolidCheckedColor:p,buttonSolidCheckedBg:m,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:t-n,wrapperMarginInlineEnd:r,radioColor:o?m:u,radioBgColor:o?l:m}},Ir=Y("Radio",e=>{let{controlOutline:o,controlOutlineWidth:t}=e,r=`0 0 0 ${unit(t)} ${o}`,a=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [gf(a),Cf(a),bf(a)]},yf,{unitless:{radioSize:true,dotSize:true}});var hf=(e,o)=>{let t=_.useContext(Ss),r=_.useContext(ni),{getPrefixCls:n,direction:a,radio:i}=_.useContext(N),l=_.useRef(null),s=composeRef(o,l),{isFormItemInput:c}=_.useContext(xe);process.env.NODE_ENV!=="production"&&j("Radio")(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.");let p=B=>{e.onChange?.(B),t?.onChange?.(B);},{prefixCls:m,className:d,rootClassName:f,children:u,style:y,title:g,...S}=e,x=n("radio",m),C=(t?.optionType||r)==="button",R=C?`${x}-button`:x,M=ge(x),[$,P,h]=Ir(x,M),b={...S},T=_.useContext(Ee);t&&(b.name=t.name,b.onChange=p,b.checked=e.value===t.value,b.disabled=b.disabled??t.disabled),b.disabled=b.disabled??T;let I=lt(`${R}-wrapper`,{[`${R}-wrapper-checked`]:b.checked,[`${R}-wrapper-disabled`]:b.disabled,[`${R}-wrapper-rtl`]:a==="rtl",[`${R}-wrapper-in-form-item`]:c,[`${R}-wrapper-block`]:!!t?.block},i?.className,d,f,P,h,M),[k,E]=vt(b.onClick);return $(_.createElement(qo,{component:"Radio",disabled:b.disabled},_.createElement("label",{className:I,style:{...i?.style,...y},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:g,onClick:k},_.createElement($m,{...b,className:lt(b.className,{[mo]:!C}),type:"radio",prefixCls:R,ref:s,onClick:E}),u!==void 0?_.createElement("span",null,u):null)))},vs=_.forwardRef(hf);process.env.NODE_ENV!=="production"&&(vs.displayName="Radio");var Oo=vs;var Rf=_.forwardRef((e,o)=>{let{getPrefixCls:t,direction:r}=_.useContext(N),{prefixCls:n,className:a,rootClassName:i,options:l,buttonStyle:s="outline",disabled:c,children:p,size:m,style:d,id:f,optionType:u,name:y,defaultValue:g,value:S,block:x=false,onChange:C,onMouseEnter:R,onMouseLeave:M,onFocus:$,onBlur:P}=e,[h,b]=jm(g,{value:S}),T=_.useCallback(H=>{let Q=h,q=H.target.value;"value"in e||b(q),q!==Q&&C?.(H);},[h,b,C]),I=t("radio",n),k=`${I}-group`,E=ge(I),[B,v,A]=Ir(I,E),O=p;l&&l.length>0&&(O=l.map(H=>typeof H=="string"||typeof H=="number"?_.createElement(Oo,{key:H.toString(),prefixCls:I,disabled:c,value:H,checked:h===H},H):_.createElement(Oo,{key:`radio-group-value-options-${H.value}`,prefixCls:I,disabled:H.disabled||c,value:H.value,checked:h===H.value,title:H.title,style:H.style,id:H.id,required:H.required},H.label)));let w=he(m),W=lt(k,`${k}-${s}`,{[`${k}-${w}`]:w,[`${k}-rtl`]:r==="rtl",[`${k}-block`]:x},a,i,v,A,E),z=_.useMemo(()=>({onChange:T,value:h,disabled:c,name:y,optionType:u,block:x}),[T,h,c,y,u,x]);return B(_.createElement("div",{...Pf(e,{aria:true,data:true}),className:W,style:d,onMouseEnter:R,onMouseLeave:M,onFocus:$,onBlur:P,id:f,ref:o},_.createElement(xs,{value:z},O)))}),Ps=_.memo(Rf);var $f=(e,o)=>{let{getPrefixCls:t}=_.useContext(N),{prefixCls:r,...n}=e,a=t("radio",r);return _.createElement(hs,{value:"button"},_.createElement(Oo,{prefixCls:a,...n,type:"radio",ref:o}))},Rs=_.forwardRef($f);var wr=Oo;wr.Button=Rs;wr.Group=Ps;wr.__ANT_RADIO=true;var $s=wr;var Is=({treeCls:e,treeNodeCls:o,directoryNodeSelectedBg:t,directoryNodeSelectedColor:r,motionDurationMid:n,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${o}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${n}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:t}}}}});var wf=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ef=(e,o)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${o.motionDurationSlow}`}}}),Bf=(e,o)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:o.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit(o.lineWidthBold)} solid ${o.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Mf=(e,o)=>{let{treeCls:t,treeNodeCls:r,treeNodePadding:n,titleHeight:a,indentSize:i,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c}=o;return {[t]:{...ne(o),background:o.colorBgContainer,borderRadius:o.borderRadius,transition:`background-color ${o.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${t}-rtl ${t}-switcher_close ${t}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${t}-active-focused)`]:{...Xe(o)},[`${t}-list-holder-inner`]:{alignItems:"flex-start"},[`&${t}-block-node`]:{[`${t}-list-holder-inner`]:{alignItems:"stretch",[`${t}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${o.colorPrimary}`,opacity:0,animationName:wf,animationDuration:o.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:o.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:n,lineHeight:unit(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:n},[`&-disabled ${t}-node-content-wrapper`]:{color:o.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${t}-node-content-wrapper`]:{"&:hover":{color:o.nodeHoverColor}}},[`&-active ${t}-node-content-wrapper`]:{background:o.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${t}-title`]:{color:o.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${t}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${t}-draggable-icon`]:{visibility:"hidden"}}},[`${t}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${t}-draggable-icon`]:{visibility:"hidden"},[`${t}-switcher, ${t}-checkbox`]:{marginInlineEnd:o.calc(o.calc(a).sub(o.controlInteractiveSize)).div(2).equal()},[`${t}-switcher`]:{...Ef(e,o),position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${o.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:true,value:0},top:0,borderRadius:o.borderRadius,transition:`all ${o.motionDurationSlow}`},[`&:not(${t}-switcher-noop):hover:before`]:{backgroundColor:o.colorBgTextHover},[`&_close ${t}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:o.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:o.calc(a).div(2).equal(),bottom:o.calc(n).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${o.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:o.calc(o.calc(a).div(2).equal()).mul(.8).equal(),height:o.calc(a).div(2).equal(),borderBottom:`1px solid ${o.colorBorder}`,content:'""'}}},[`${t}-node-content-wrapper`]:{position:"relative",minHeight:a,paddingBlock:0,paddingInline:o.paddingXS,background:"transparent",borderRadius:o.borderRadius,cursor:"pointer",transition:`all ${o.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...Bf(e,o),"&:hover":{backgroundColor:s},[`&${t}-node-selected`]:{color:o.nodeSelectedColor,backgroundColor:l},[`${t}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${t}-unselectable ${t}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${o.colorPrimary}`},"&-show-line":{[`${t}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:o.calc(a).div(2).equal(),bottom:o.calc(n).mul(-1).equal(),borderInlineEnd:`1px solid ${o.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${t}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${t}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit(o.calc(a).div(2).equal())} !important`}}}},kf=(e,o)=>{let t=`.${e}`,r=`${t}-treenode`,n=o.calc(o.paddingXS).div(2).equal(),a=mergeToken(o,{treeCls:t,treeNodeCls:r,treeNodePadding:n});return [Mf(e,a),Is(a)]},Nf=e=>{let{controlHeightSM:o,controlItemBgHover:t,controlItemBgActive:r}=e,n=o;return {titleHeight:n,indentSize:n,nodeHoverBg:t,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Of=e=>{let{colorTextLightSolid:o,colorPrimary:t}=e;return {...Nf(e),directoryNodeSelectedColor:o,directoryNodeSelectedBg:t}},ws=Y("Tree",(e,{prefixCls:o})=>[{[e.componentCls]:Hn(`${o}-checkbox`,e)},kf(o,e),$o(e)],Of);var Es=4;function Df(e){let{dropPosition:o,dropLevelOffset:t,prefixCls:r,indent:n,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",s={[i]:-t*n+Es,[l]:0};switch(o){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[i]=n+Es;break}return ___default.createElement("div",{style:s,className:`${r}-drop-indicator`})}var Bs=Df;var Wf=e=>{let{prefixCls:o,switcherIcon:t,treeNodeProps:r,showLine:n,switcherLoadingIcon:a}=e,{isLeaf:i,expanded:l,loading:s}=r;if(s)return _.isValidElement(a)?a:_.createElement(Sd,{className:`${o}-switcher-loading-icon`});let c;if(n&&typeof n=="object"&&(c=n.showLeafIcon),i){if(!n)return null;if(typeof c!="boolean"&&c){let d=typeof c=="function"?c(r):c,f=`${o}-switcher-line-custom-icon`;return _.isValidElement(d)?te(d,{className:lt(d.props.className||"",f)}):d}return c?_.createElement(Hf,{className:`${o}-switcher-line-icon`}):_.createElement("span",{className:`${o}-switcher-leaf-line`})}let p=`${o}-switcher-icon`,m=typeof t=="function"?t(r):t;return _.isValidElement(m)?te(m,{className:lt(m.props.className||"",p)}):m!==void 0?m:n?l?_.createElement(Ff,{className:`${o}-switcher-line-icon`}):_.createElement(Gf,{className:`${o}-switcher-line-icon`}):_.createElement(Af,{className:p})},ks=Wf;var Ns=___default.forwardRef((e,o)=>{let{getPrefixCls:t,direction:r,virtual:n,tree:a}=___default.useContext(N),{prefixCls:i,className:l,showIcon:s=false,showLine:c,switcherIcon:p,switcherLoadingIcon:m,blockNode:d=false,children:f,checkable:u=false,selectable:y=true,draggable:g,motion:S,style:x}=e,C=t("tree",i),R=t(),M=S??{...Yo(R),motionAppear:false},$={...e,checkable:u,selectable:y,showIcon:s,motion:M,blockNode:d,showLine:!!c,dropIndicatorRender:Bs},[P,h,b]=ws(C),[,T]=Z(),I=T.paddingXS/2+(T.Tree?.titleHeight||T.controlHeightSM),k=___default.useMemo(()=>{if(!g)return false;let B={};switch(typeof g){case "function":B.nodeDraggable=g;break;case "object":B={...g};break;}return B.icon!==false&&(B.icon=B.icon||___default.createElement(Vf,null)),B},[g]),E=B=>___default.createElement(ks,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:B,showLine:c});return P(___default.createElement(_f,{itemHeight:I,ref:o,virtual:n,...$,style:{...a?.style,...x},prefixCls:C,className:lt({[`${C}-icon-hide`]:!s,[`${C}-block-node`]:d,[`${C}-unselectable`]:!y,[`${C}-rtl`]:r==="rtl"},a?.className,l,h,b),direction:r,checkable:u&&___default.createElement("span",{className:`${C}-checkbox-inner`}),selectable:y,switcherIcon:E,draggable:k},f))});process.env.NODE_ENV!=="production"&&(Ns.displayName="Tree");var Er=Ns;var Os=0,ai=1,zs=2;function li(e,o,t){let{key:r,children:n}=t;function a(i){let l=i[r],s=i[n];o(l,i)!==false&&li(s||[],o,t);}e.forEach(a);}function As({treeData:e,expandedKeys:o,startKey:t,endKey:r,fieldNames:n}){let a=[],i=Os;if(t&&t===r)return [t];if(!t||!r)return [];function l(s){return s===t||s===r}return li(e,s=>{if(i===zs)return false;if(l(s)){if(a.push(s),i===Os)i=ai;else if(i===ai)return i=zs,false}else i===ai&&a.push(s);return o.includes(s)},fillFieldNames(n)),a}function Br(e,o,t){let r=[...o],n=[];return li(e,(a,i)=>{let l=r.indexOf(a);return l!==-1&&(n.push(i),r.splice(l,1)),!!r.length},fillFieldNames(t)),n}function Jf(e){let{isLeaf:o,expanded:t}=e;return o?_.createElement(Hf,null):t?_.createElement(Xf,null):_.createElement(Uf,null)}function Hs({treeData:e,children:o}){return e||convertTreeToData(o)}var eg=({defaultExpandAll:e,defaultExpandParent:o,defaultExpandedKeys:t,...r},n)=>{let a=_.useRef(null),i=_.useRef(null),l=()=>{let{keyEntities:P}=convertDataToEntities(Hs(r)),h;return e?h=Object.keys(P):o?h=conductExpandParent(r.expandedKeys||t||[],P):h=r.expandedKeys||t||[],h},[s,c]=_.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[p,m]=_.useState(()=>l());_.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys);},[r.selectedKeys]),_.useEffect(()=>{"expandedKeys"in r&&m(r.expandedKeys);},[r.expandedKeys]);let d=(P,h)=>("expandedKeys"in r||m(P),r.onExpand?.(P,h)),f=(P,h)=>{let{multiple:b,fieldNames:T}=r,{node:I,nativeEvent:k}=h,{key:E=""}=I,B=Hs(r),v={...h,selected:true},A=k?.ctrlKey||k?.metaKey,O=k?.shiftKey,w;b&&A?(w=P,a.current=E,i.current=w,v.selectedNodes=Br(B,w,T)):b&&O?(w=Array.from(new Set([...i.current||[],...As({treeData:B,expandedKeys:p,startKey:E,endKey:a.current,fieldNames:T})])),v.selectedNodes=Br(B,w,T)):(w=[E],a.current=E,i.current=w,v.selectedNodes=Br(B,w,T)),r.onSelect?.(w,v),"selectedKeys"in r||c(w);},{getPrefixCls:u,direction:y}=_.useContext(N),{prefixCls:g,className:S,showIcon:x=true,expandAction:C="click",...R}=r,M=u("tree",g),$=lt(`${M}-directory`,{[`${M}-directory-rtl`]:y==="rtl"},S);return _.createElement(Er,{icon:Jf,ref:n,blockNode:true,...R,showIcon:x,expandAction:C,prefixCls:M,className:$,expandedKeys:p,selectedKeys:s,onSelect:f,onExpand:d})},Ls=_.forwardRef(eg);process.env.NODE_ENV!=="production"&&(Ls.displayName="DirectoryTree");var Fs=Ls;var si=Er;si.DirectoryTree=Fs;si.TreeNode=TreeNode;var Gs=si;function Mr(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var kr=e=>{let{controlHeight:o,fontSize:t,lineHeight:r,lineWidth:n,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:p,controlPaddingHorizontal:m,colorFillAlter:d,colorPrimaryHover:f,colorPrimary:u,controlOutlineWidth:y,controlOutline:g,colorErrorOutline:S,colorWarningOutline:x,colorBgContainer:C}=e;return {paddingBlock:Math.max(Math.round((o-t*r)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((a-t*r)/2*10)/10-n,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-n,paddingInline:c-n,paddingInlineSM:p-n,paddingInlineLG:m-n,addonBg:d,activeBorderColor:u,hoverBorderColor:f,activeShadow:`0 0 0 ${y}px ${g}`,errorActiveShadow:`0 0 0 ${y}px ${S}`,warningActiveShadow:`0 0 0 ${y}px ${x}`,hoverBg:C,activeBg:C,inputFontSize:t,inputFontSizeLG:l,inputFontSizeSM:t}};var tg=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ci=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...tg(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),Ks=(e,o)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:o.borderColor,"&:hover":{borderColor:o.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:o.activeBorderColor,boxShadow:o.activeShadow,outline:0,backgroundColor:e.activeBg}}),Ws=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Ks(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}},[`&${e.componentCls}-status-${o.status}${e.componentCls}-disabled`]:{borderColor:o.borderColor}}),Xs=(e,o)=>({"&-outlined":{...Ks(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...ci(e)},...Ws(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Ws(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...o}}),Vs=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:o.addonBorderColor,color:o.addonColor}}}),Us=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Vs(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Vs(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...ci(e)}}}}),qs=(e,o)=>{let{componentCls:t}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...o}}},Ys=(e,o)=>({background:o.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:o?.inputColor},"&:hover":{background:o.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:o.activeBorderColor,backgroundColor:e.activeBg}}),js=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Ys(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}}}),Zs=(e,o)=>({"&-filled":{...Ys(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...ci(e)},...js(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...js(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...o}}),_s=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{background:o.addonBg,color:o.addonColor}}}),Qs=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},..._s(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),..._s(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var rg=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Js=e=>{let{paddingBlockLG:o,lineHeightLG:t,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(o)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:r}},ec=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),oc=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...rg(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...Js(e)},"&-sm":{...ec(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),ng=e=>{let{componentCls:o,antCls:t}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${o}, &-lg > ${o}-group-addon`]:{...Js(e)},[`&-sm ${o}, &-sm > ${o}-group-addon`]:{...ec(e)},[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${o}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${o}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[o]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${o}-search-with-button &`]:{zIndex:0}}},[`> ${o}:first-child, ${o}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}-affix-wrapper`]:{[`&:not(:first-child) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}:last-child, ${o}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${o}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${o}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${o}-group-compact`]:{display:"block",...bt(),[`${o}-group-addon, ${o}-group-wrap, > ${o}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
96
|
+
& > ${o}-affix-wrapper,
|
|
97
|
+
& > ${o}-number-affix-wrapper,
|
|
98
|
+
& > ${t}-picker-range
|
|
99
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[o]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,
|
|
100
|
+
& > ${t}-select-auto-complete ${o},
|
|
101
|
+
& > ${t}-cascader-picker ${o},
|
|
102
|
+
& > ${o}-group-wrapper ${o}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
103
|
+
& > ${t}-select:first-child > ${t}-select-selector,
|
|
104
|
+
& > ${t}-select-auto-complete:first-child ${o},
|
|
105
|
+
& > ${t}-cascader-picker:first-child ${o}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
106
|
+
& > ${t}-select:last-child > ${t}-select-selector,
|
|
107
|
+
& > ${t}-cascader-picker:last-child ${o},
|
|
108
|
+
& > ${t}-cascader-picker-focused:last-child ${o}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${o}`]:{verticalAlign:"top"},[`${o}-group-wrapper + ${o}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${o}-affix-wrapper`]:{borderRadius:0}},[`${o}-group-wrapper:not(:last-child)`]:{[`&${o}-search > ${o}-group`]:{[`& > ${o}-group-addon > ${o}-search-button`]:{borderRadius:0},[`& > ${o}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},ig=e=>{let{componentCls:o,controlHeightSM:t,lineWidth:r,calc:n}=e,i=n(t).sub(n(r).mul(2)).sub(16).div(2).equal();return {[o]:{...ne(e),...oc(e),...Xs(e),...Zs(e),...qs(e),'&[type="color"]':{height:e.controlHeight,[`&${o}-lg`]:{height:e.controlHeightLG},[`&${o}-sm`]:{height:t,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},ag=e=>{let{componentCls:o}=e;return {[`${o}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},lg=e=>{let{componentCls:o,inputAffixPadding:t,colorTextDescription:r,motionDurationSlow:n,colorIcon:a,colorIconHover:i,iconCls:l}=e,s=`${o}-affix-wrapper`,c=`${o}-affix-wrapper-disabled`;return {[s]:{...oc(e),display:"inline-flex",[`&:not(${o}-disabled):hover`]:{zIndex:1,[`${o}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${o}`]:{padding:0},[`> input${o}, > textarea${o}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[o]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}},...ag(e),[`${l}${o}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:i}}},[c]:{[`${l}${o}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},sg=e=>{let{componentCls:o,borderRadiusLG:t,borderRadiusSM:r}=e;return {[`${o}-group`]:{...ne(e),...ng(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${o}-group-addon`]:{borderRadius:t,fontSize:e.inputFontSizeLG}},"&-sm":{[`${o}-group-addon`]:{borderRadius:r}},...Us(e),...Qs(e),[`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}, ${o}-group-addon`]:{borderRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-first-item`]:{[`${o}, ${o}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${o}-compact-first-item)${o}-compact-last-item`]:{[`${o}, ${o}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},cg=e=>{let{componentCls:o,antCls:t}=e,r=`${o}-search`;return {[r]:{[o]:{"&:hover, &:focus":{[`+ ${o}-group-addon ${r}-button:not(${t}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${o}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${o}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${o}-group`]:{[`> ${o}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${t}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${o}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${o}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${o}-compact-item`]:{[`&:not(${o}-compact-last-item)`]:{[`${o}-group-addon`]:{[`${o}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${o}-compact-first-item)`]:{[`${o},${o}-affix-wrapper`]:{borderRadius:0}},[`> ${o}-group-addon ${o}-search-button,
|
|
109
|
+
> ${o},
|
|
110
|
+
${o}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${o}-affix-wrapper-focused`]:{zIndex:2}}}}},pg=e=>{let{componentCls:o,paddingLG:t}=e,r=`${o}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${o}`]:{height:"100%"},[`${o}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
111
|
+
&-allow-clear > ${o},
|
|
112
|
+
&-affix-wrapper${r}-has-feedback ${o}
|
|
113
|
+
`]:{paddingInlineEnd:t},[`&-affix-wrapper${o}-affix-wrapper`]:{padding:0,[`> textarea${o}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${o}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${o}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${o}-affix-wrapper-sm`]:{[`${o}-suffix`]:{[`${o}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},dg=e=>{let{componentCls:o}=e;return {[`${o}-out-of-range`]:{[`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]:{color:e.colorError}}}},it=Y("Input",e=>{let o=mergeToken(e,Mr(e));return [ig(o),pg(o),lg(o),sg(o),cg(o),dg(o),ir(o)]},kr,{resetFont:false});var fg=e=>{let{getPrefixCls:o,direction:t}=useContext(N),{prefixCls:r,className:n}=e,a=o("input-group",r),i=o("input"),[l,s]=it(i),c=lt(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:t==="rtl"},s,n),p=useContext(xe),m=useMemo(()=>({...p,isFormItemInput:false}),[p]);return process.env.NODE_ENV!=="production"&&j("Input.Group").deprecated(false,"Input.Group","Space.Compact"),l(_.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},_.createElement(xe.Provider,{value:m},e.children)))},rc=fg;var bg=e=>{let o;return typeof e=="object"&&e?.clearIcon?o=e:e&&(o={clearIcon:___default.createElement(Cg,null)}),o},Nr=bg;function It(e,o,t){return lt({[`${e}-status-success`]:o==="success",[`${e}-status-warning`]:o==="warning",[`${e}-status-error`]:o==="error",[`${e}-status-validating`]:o==="validating",[`${e}-has-feedback`]:t})}var at=(e,o)=>o||e;var xg=(e,o,t=void 0)=>{let{variant:r,[e]:n}=_.useContext(N),a=_.useContext(fl),i=n?.variant,l;typeof o<"u"?l=o:t===false?l="borderless":l=a??i??r??"outlined";let s=ln.includes(l);return [l,s]},Or=xg;function wt(e,o){let t=useRef([]),r=()=>{t.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(o&&r(),()=>t.current.forEach(n=>{n&&clearTimeout(n);})),[]),r}function nc(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var lc=forwardRef((e,o)=>{let{prefixCls:t,bordered:r=true,status:n,size:a,disabled:i,onBlur:l,onFocus:s,suffix:c,allowClear:p,addonAfter:m,addonBefore:d,className:f,style:u,styles:y,rootClassName:g,onChange:S,classNames:x,variant:C,...R}=e;if(process.env.NODE_ENV!=="production"){let{deprecated:F}=j("Input");F(!("bordered"in e),"bordered","variant");}let{getPrefixCls:M,direction:$,input:P}=___default.useContext(N),h=M("input",t),b=useRef(null),T=ge(h),[I,k,E]=it(h,T),{compactSize:B,compactItemClassnames:v}=uo(h,$),A=he(F=>a??B??F),O=___default.useContext(Ee),w=i??O,{status:W,hasFeedback:z,feedbackIcon:H}=useContext(xe),Q=at(W,n),q=nc(e)||!!z,L=useRef(q);if(process.env.NODE_ENV!=="production"){let F=j("Input");useEffect(()=>{q&&!L.current&&F(document.activeElement===b.current?.input,"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),L.current=q;},[q]);}let V=wt(b,true),G=F=>{V(),l?.(F);},ee=F=>{V(),s?.(F);},U=F=>{V(),S?.(F);},de=(z||c)&&___default.createElement(___default.Fragment,null,c,z&&H),be=Nr(p??P?.allowClear),[Ie,oe]=Or("input",C,r);return I(___default.createElement(Rg,{ref:composeRef(o,b),prefixCls:h,autoComplete:P?.autoComplete,...R,disabled:w,onBlur:G,onFocus:ee,style:{...P?.style,...u},styles:{...P?.styles,...y},suffix:de,allowClear:be,className:lt(f,g,E,T,v,P?.className),onChange:U,addonBefore:d&&___default.createElement(Mo,{form:true,space:true},d),addonAfter:m&&___default.createElement(Mo,{form:true,space:true},m),classNames:{...x,...P?.classNames,input:lt({[`${h}-sm`]:A==="small",[`${h}-lg`]:A==="large",[`${h}-rtl`]:$==="rtl"},x?.input,P?.classNames?.input,k),variant:lt({[`${h}-${Ie}`]:oe},It(h,Q)),affixWrapper:lt({[`${h}-affix-wrapper-sm`]:A==="small",[`${h}-affix-wrapper-lg`]:A==="large",[`${h}-affix-wrapper-rtl`]:$==="rtl"},k),wrapper:lt({[`${h}-group-rtl`]:$==="rtl"},k),groupWrapper:lt({[`${h}-group-wrapper-sm`]:A==="small",[`${h}-group-wrapper-lg`]:A==="large",[`${h}-group-wrapper-rtl`]:$==="rtl",[`${h}-group-wrapper-${Ie}`]:oe},It(`${h}-group-wrapper`,Q,z),k)}}))});process.env.NODE_ENV!=="production"&&(lc.displayName="Input");var So=lc;var Ig=e=>{let{componentCls:o,paddingXS:t}=e;return {[o]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:t,"&-rtl":{direction:"rtl"},[`${o}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${o}-sm ${o}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${o}-lg ${o}-input`]:{paddingInline:e.paddingXS}}}},sc=Y(["Input","OTP"],e=>{let o=mergeToken(e,Mr(e));return [Ig(o)]},kr);var Eg=_.forwardRef((e,o)=>{let{value:t,onChange:r,onActiveChange:n,index:a,mask:i,...l}=e,s=t&&typeof i=="string"?i:t,c=u=>{r(a,u.target.value);},p=_.useRef(null);_.useImperativeHandle(o,()=>p.current);let m=()=>{la(()=>{let u=p.current?.input;document.activeElement===u&&u&&u.select();});};return _.createElement(So,{type:i===true?"password":"text",...l,ref:p,value:s,onInput:c,onFocus:m,onKeyDown:u=>{let{key:y,ctrlKey:g,metaKey:S}=u;y==="ArrowLeft"?n(a-1):y==="ArrowRight"?n(a+1):y==="z"&&(g||S)&&u.preventDefault(),m();},onKeyUp:u=>{u.key==="Backspace"&&!t&&n(a-1),m();},onMouseDown:m,onMouseUp:m})}),cc=Eg;function zr(e){return (e||"").split("")}var kg=_.forwardRef((e,o)=>{let{prefixCls:t,length:r=6,size:n,defaultValue:a,value:i,onChange:l,formatter:s,variant:c,disabled:p,status:m,autoFocus:d,mask:f,type:u,onInput:y,inputMode:g,...S}=e;process.env.NODE_ENV!=="production"&&j("Input.OTP")(!(typeof f=="string"&&f.length>1),"usage","`mask` prop should be a single character.");let{getPrefixCls:x,direction:C}=_.useContext(N),R=x("otp",t),M=Pf(S,{aria:true,data:true,attr:true}),$=ge(R),[P,h,b]=sc(R,$),T=he(L=>n??L),I=_.useContext(xe),k=at(I.status,m),E=_.useMemo(()=>({...I,status:k,hasFeedback:false,feedbackIcon:null}),[I,k]),B=_.useRef(null),v=_.useRef({});_.useImperativeHandle(o,()=>({focus:()=>{v.current[0]?.focus();},blur:()=>{for(let L=0;L<r;L+=1)v.current[L]?.blur();},nativeElement:B.current}));let A=L=>s?s(L):L,[O,w]=_.useState(zr(A(a||"")));_.useEffect(()=>{i!==void 0&&w(zr(i));},[i]);let W=pc(L=>{w(L),y&&y(L),l&&L.length===r&&L.every(V=>V)&&L.some((V,G)=>O[G]!==V)&&l(L.join(""));}),z=pc((L,V)=>{let G=[...O];for(let U=0;U<L;U+=1)G[U]||(G[U]="");V.length<=1?G[L]=V:G=G.slice(0,L).concat(zr(V)),G=G.slice(0,r);for(let U=G.length-1;U>=0&&!G[U];U-=1)G.pop();let ee=A(G.map(U=>U||" ").join(""));return G=zr(ee).map((U,de)=>U===" "&&!G[de]?G[de]:U),G}),H=(L,V)=>{let G=z(L,V),ee=Math.min(L+V.length,r-1);ee!==L&&G[L]!==void 0&&v.current[ee]?.focus(),W(G);},Q=L=>{v.current[L]?.focus();},q={variant:c,disabled:p,status:k,mask:f,type:u,inputMode:g};return P(_.createElement("div",{...M,ref:B,className:lt(R,{[`${R}-sm`]:T==="small",[`${R}-lg`]:T==="large",[`${R}-rtl`]:C==="rtl"},b,h)},_.createElement(xe.Provider,{value:E},Array.from({length:r}).map((L,V)=>{let G=`otp-${V}`,ee=O[V]||"";return _.createElement(cc,{ref:U=>{v.current[V]=U;},key:G,index:V,size:T,htmlSize:1,className:`${R}-input`,onChange:H,value:ee,onActiveChange:Q,autoFocus:V===0&&d,...q})}))))}),dc=kg;var Fg=e=>e?_.createElement(Dg,null):_.createElement(zg,null),Gg={click:"onClick",hover:"onMouseOver"},mc=_.forwardRef((e,o)=>{let{disabled:t,action:r="click",visibilityToggle:n=true,iconRender:a=Fg}=e,i=_.useContext(Ee),l=t??i,s=typeof n=="object"&&n.visible!==void 0,[c,p]=useState(()=>s?n.visible:false),m=useRef(null);_.useEffect(()=>{s&&p(n.visible);},[s,n]);let d=wt(m),f=()=>{if(l)return;c&&d();let T=!c;p(T),typeof n=="object"&&n.onVisibleChange?.(T);},u=T=>{let I=Gg[r]||"",k=a(c),E={[I]:f,className:`${T}-icon`,key:"passwordIcon",onMouseDown:B=>{B.preventDefault();},onMouseUp:B=>{B.preventDefault();}};return _.cloneElement(_.isValidElement(k)?k:_.createElement("span",null,k),E)},{className:y,prefixCls:g,inputPrefixCls:S,size:x,...C}=e,{getPrefixCls:R}=_.useContext(N),M=R("input",S),$=R("input-password",g),P=n&&u($),h=lt($,y,{[`${$}-${x}`]:!!x}),b={...tl(C,["suffix","iconRender","visibilityToggle"]),type:c?"text":"password",className:h,prefixCls:M,suffix:P};return x&&(b.size=x),_.createElement(So,{ref:composeRef(o,m),...b})});process.env.NODE_ENV!=="production"&&(mc.displayName="Input.Password");var uc=mc;var fc=_.forwardRef((e,o)=>{let{prefixCls:t,inputPrefixCls:r,className:n,size:a,suffix:i,enterButton:l=false,addonAfter:s,loading:c,disabled:p,onSearch:m,onChange:d,onCompositionStart:f,onCompositionEnd:u,...y}=e,{getPrefixCls:g,direction:S}=_.useContext(N),x=_.useRef(false),C=g("input-search",t),R=g("input",r),{compactSize:M}=uo(C,S),$=he(z=>a??M??z),P=_.useRef(null),h=z=>{z?.target&&z.type==="click"&&m&&m(z.target.value,z,{source:"clear"}),d?.(z);},b=z=>{document.activeElement===P.current?.input&&z.preventDefault();},T=z=>{m&&m(P.current?.input?.value,z,{source:"input"});},I=z=>{x.current||c||T(z);},k=typeof l=="boolean"?_.createElement(Wg,null):null,E=`${C}-button`,B,v=l||{},A=v.type&&v.type.__ANT_BUTTON===true;A||v.type==="button"?B=te(v,{onMouseDown:b,onClick:z=>{v?.props?.onClick?.(z),T(z);},key:"enterButton",...A?{className:E,size:$}:{}}):B=_.createElement(Co,{className:E,type:l?"primary":void 0,size:$,disabled:p,key:"enterButton",onMouseDown:b,onClick:T,loading:c,icon:k},l),s&&(B=[B,te(s,{key:"addonAfter"})]);let O=lt(C,{[`${C}-rtl`]:S==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!l},n),w=z=>{x.current=true,f?.(z);},W=z=>{x.current=false,u?.(z);};return _.createElement(So,{ref:composeRef(P,o),onPressEnter:I,...y,size:$,onCompositionStart:w,onCompositionEnd:W,prefixCls:R,addonAfter:B,suffix:i,onChange:h,className:O,disabled:p})});process.env.NODE_ENV!=="production"&&(fc.displayName="Search");var gc=fc;var Xg=forwardRef((e,o)=>{let{prefixCls:t,bordered:r=true,size:n,disabled:a,status:i,allowClear:l,classNames:s,rootClassName:c,className:p,style:m,styles:d,variant:f,...u}=e;if(process.env.NODE_ENV!=="production"){let{deprecated:w}=j("TextArea");w(!("bordered"in e),"bordered","variant");}let{getPrefixCls:y,direction:g,textArea:S}=_.useContext(N),x=he(n),C=_.useContext(Ee),R=a??C,{status:M,hasFeedback:$,feedbackIcon:P}=_.useContext(xe),h=at(M,i),b=_.useRef(null);_.useImperativeHandle(o,()=>({resizableTextArea:b.current?.resizableTextArea,focus:w=>{triggerFocus(b.current?.resizableTextArea?.textArea,w);},blur:()=>b.current?.blur()}));let T=y("input",t),I=ge(T),[k,E,B]=it(T,I),[v,A]=Or("textArea",f,r),O=Nr(l??S?.allowClear);return k(_.createElement(Kg,{autoComplete:S?.autoComplete,...u,style:{...S?.style,...m},styles:{...S?.styles,...d},disabled:R,allowClear:O,className:lt(B,I,p,c,S?.className),classNames:{...s,...S?.classNames,textarea:lt({[`${T}-sm`]:x==="small",[`${T}-lg`]:x==="large"},E,s?.textarea,S?.classNames?.textarea),variant:lt({[`${T}-${v}`]:A},It(T,h)),affixWrapper:lt(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:g==="rtl",[`${T}-affix-wrapper-sm`]:x==="small",[`${T}-affix-wrapper-lg`]:x==="large",[`${T}-textarea-show-count`]:e.showCount||e.count?.show},E)},prefixCls:T,suffix:$&&_.createElement("span",{className:`${T}-textarea-suffix`},P),ref:b}))}),Cc=Xg;var st=So;st.Group=rc;st.Search=gc;st.TextArea=Cc;st.Password=uc;st.OTP=dc;var bc=st;var qg=e=>{let{value:o,filterSearch:t,tablePrefixCls:r,locale:n,onChange:a}=e;return t?_.createElement("div",{className:`${r}-filter-dropdown-search`},_.createElement(bc,{prefix:_.createElement(Wg,null),placeholder:n.filterSearchPlaceholder,onChange:a,value:o,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},mi=qg;var Zg=e=>{let{keyCode:o}=e;o===Yg.ENTER&&e.stopPropagation();},yc=_.forwardRef((e,o)=>_.createElement("div",{className:e.className,onClick:t=>t.stopPropagation(),onKeyDown:Zg,ref:o},e.children));process.env.NODE_ENV!=="production"&&(yc.displayName="FilterDropdownMenuWrapper");var xc=yc;function Lr(e){let o=[];return (e||[]).forEach(({value:t,children:r})=>{o.push(t),r&&(o=[...o,...Lr(r)]);}),o}function Jg(e){return e.some(({children:o})=>o)}function hc(e,o){return typeof o=="string"||typeof o=="number"?o?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function Tc({filters:e,prefixCls:o,filteredKeys:t,filterMultiple:r,searchValue:n,filterSearch:a}){return e.map((i,l)=>{let s=String(i.value);if(i.children)return {key:s||l,label:i.text,popupClassName:`${o}-dropdown-submenu`,children:Tc({filters:i.children,prefixCls:o,filteredKeys:t,filterMultiple:r,searchValue:n,filterSearch:a})};let c=r?Ln:$s,p={key:i.value!==void 0?s:l,label:_.createElement(_.Fragment,null,_.createElement(c,{checked:t.includes(s)}),_.createElement("span",null,i.text))};return n.trim()?typeof a=="function"?a(n,i)?p:null:hc(n,i.text)?p:null:p})}function fi(e){return e||[]}var eC=e=>{let{tablePrefixCls:o,prefixCls:t,column:r,dropdownPrefixCls:n,columnKey:a,filterOnClose:i,filterMultiple:l,filterMode:s="menu",filterSearch:c=false,filterState:p,triggerFilter:m,locale:d,children:f,getPopupContainer:u,rootClassName:y}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:S,filterDropdownProps:x={},filterDropdownOpen:C,filterDropdownVisible:R,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:$}=r,[P,h]=_.useState(false),b=!!(p&&(p.filteredKeys?.length||p.forceFiltered)),T=D=>{h(D),x.onOpenChange?.(D),$?.(D),M?.(D);};if(process.env.NODE_ENV!=="production"){let D=j("Table");[["filterDropdownOpen","filterDropdownProps.open"],["filterDropdownVisible","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"],["onFilterDropdownVisibleChange","filterDropdownProps.onOpenChange"]].forEach(([se,we])=>{D.deprecated(!(se in r),se,we);});}let I=x.open??C??R??P,k=p?.filteredKeys,[E,B]=Kr(fi(k)),v=({selectedKeys:D})=>{B(D);},A=(D,{node:K,checked:se})=>{v(l?{selectedKeys:D}:{selectedKeys:se&&K.key?[K.key]:[]});};_.useEffect(()=>{P&&v({selectedKeys:fi(k)});},[k]);let[O,w]=_.useState([]),W=D=>{w(D);},[z,H]=_.useState(""),Q=D=>{let{value:K}=D.target;H(K);};_.useEffect(()=>{P||H("");},[P]);let q=D=>{let K=D?.length?D:null;if(K===null&&(!p||!p.filteredKeys)||Sc(K,p?.filteredKeys,true))return null;m({column:r,key:a,filteredKeys:K});},L=()=>{T(false),q(E());},V=({confirm:D,closeDropdown:K}={confirm:false,closeDropdown:false})=>{D&&q([]),K&&T(false),H(""),B(g?(S||[]).map(se=>String(se)):[]);},G=({closeDropdown:D}={closeDropdown:true})=>{D&&T(false),q(E());},ee=(D,K)=>{K.source==="trigger"&&(D&&k!==void 0&&B(fi(k)),T(D),!D&&!r.filterDropdown&&i&&L());},U=lt({[`${n}-menu-without-submenu`]:!Jg(r.filters||[])}),de=D=>{if(D.target.checked){let K=Lr(r?.filters).map(se=>String(se));B(K);}else B([]);},be=({filters:D})=>(D||[]).map((K,se)=>{let we=String(K.value),re={title:K.text,key:K.value!==void 0?we:String(se)};return K.children&&(re.children=be({filters:K.children})),re}),Ie=D=>({...D,text:D.title,value:D.key,children:D.children?.map(K=>Ie(K))||[]}),oe,{direction:F,renderEmpty:me}=_.useContext(N);if(typeof r.filterDropdown=="function")oe=r.filterDropdown({prefixCls:`${n}-custom`,setSelectedKeys:D=>v({selectedKeys:D}),selectedKeys:E(),confirm:G,clearFilters:V,filters:r.filters,visible:I,close:()=>{T(false);}});else if(r.filterDropdown)oe=r.filterDropdown;else {let D=E()||[],K=()=>{let we=me?.("Table.filter")??_.createElement(ti,{image:ti.PRESENTED_IMAGE_SIMPLE,description:d.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return we;if(s==="tree")return _.createElement(_.Fragment,null,_.createElement(mi,{filterSearch:c,value:z,onChange:Q,tablePrefixCls:o,locale:d}),_.createElement("div",{className:`${o}-filter-dropdown-tree`},l?_.createElement(Ln,{checked:D.length===Lr(r.filters).length,indeterminate:D.length>0&&D.length<Lr(r.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:de},d.filterCheckall):null,_.createElement(Gs,{checkable:true,selectable:false,blockNode:true,multiple:l,checkStrictly:!l,className:`${n}-menu`,onCheck:A,checkedKeys:D,selectedKeys:D,showIcon:false,treeData:be({filters:r.filters}),autoExpandParent:true,defaultExpandAll:true,filterTreeNode:z.trim()?Ye=>typeof c=="function"?c(z,Ie(Ye)):hc(z,Ye.title):void 0})));let re=Tc({filters:r.filters||[],filterSearch:c,prefixCls:t,filteredKeys:E(),filterMultiple:l,searchValue:z}),ao=re.every(Ye=>Ye===null);return _.createElement(_.Fragment,null,_.createElement(mi,{filterSearch:c,value:z,onChange:Q,tablePrefixCls:o,locale:d}),ao?we:_.createElement(Tr,{selectable:true,multiple:l,prefixCls:`${n}-menu`,className:U,onSelect:v,onDeselect:v,selectedKeys:D,getPopupContainer:u,openKeys:O,onOpenChange:W,items:re}))},se=()=>g?Sc((S||[]).map(we=>String(we)),D,true):D.length===0;oe=_.createElement(_.Fragment,null,K(),_.createElement("div",{className:`${t}-dropdown-btns`},_.createElement(Co,{type:"link",size:"small",disabled:se(),onClick:()=>V()},d.filterReset),_.createElement(Co,{type:"primary",size:"small",onClick:L},d.filterConfirm)));}r.filterDropdown&&(oe=_.createElement(yr,{selectable:void 0},oe)),oe=_.createElement(xc,{className:`${t}-dropdown`},oe);let io=xi({trigger:["click"],placement:F==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let D;return typeof r.filterIcon=="function"?D=r.filterIcon(b):r.filterIcon?D=r.filterIcon:D=_.createElement(Qg,null),_.createElement("span",{role:"button",tabIndex:-1,className:lt(`${t}-trigger`,{active:b}),onClick:K=>{K.stopPropagation();}},D)})(),getPopupContainer:u},{...x,rootClassName:lt(y,x.rootClassName),open:I,onOpenChange:ee,dropdownRender:()=>typeof x?.dropdownRender=="function"?x.dropdownRender(oe):oe});return _.createElement("div",{className:`${t}-column`},_.createElement("span",{className:`${o}-column-title`},f),_.createElement(ps,{...io}))},oB=eC;
|
|
114
|
+
export{oB as default,Lr as flattenKeys};
|