bitz-react-admin-ui 2.7.4 → 2.7.5
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/dist/node_modules/@ant-design/colors/es/generate.mjs +93 -0
- package/dist/node_modules/@ant-design/colors/es/presets.mjs +72 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.mjs +40 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.mjs +18 -0
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.mjs +38 -0
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.mjs +51 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs +92 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs +15 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs +27 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.mjs +47 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs +210 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.mjs +7 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.mjs +20 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs +104 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs +4 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.mjs +42 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/css-variables.mjs +28 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.mjs +52 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Enum.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Serializer.mjs +29 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Tokenizer.mjs +127 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Utility.mjs +37 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.mjs +63 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/hooks/useCSP.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.mjs +59 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.mjs +44 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/calculator.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/index.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/genStyleUtils.mjs +156 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getCompVarPrefix.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.mjs +26 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getDefaultComponentToken.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/maxmin.mjs +36 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/statistic.mjs +55 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.mjs +327 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.mjs +42 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.mjs +6 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.mjs +46 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.mjs +18 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FileTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PaperClipOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PictureTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/utils.mjs +127 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AlignCenterOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AppstoreOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenExitOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuFoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuUnfoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PauseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PictureTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlayCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.mjs +5 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.mjs +26 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/construct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeFunction.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +29 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.mjs +315 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.mjs +32 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/objectSpread2.mjs +31 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.mjs +22 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.mjs +16 -0
- package/dist/node_modules/@better-scroll/core/dist/core.esm.mjs +1377 -0
- package/dist/node_modules/@better-scroll/wheel/dist/wheel.esm.mjs +253 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.mjs +115 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.mjs +153 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.mjs +68 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.mjs +183 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.mjs +32 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2524 -0
- package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +251 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.mjs +86 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.mjs +7 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +134 -0
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +45 -0
- package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.mjs +51 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
- package/dist/node_modules/@fullcalendar/core/index.mjs +1365 -0
- package/dist/node_modules/@fullcalendar/core/internal-common.mjs +4823 -0
- package/dist/node_modules/@fullcalendar/core/locales/zh-cn.mjs +28 -0
- package/dist/node_modules/@fullcalendar/daygrid/index.mjs +32 -0
- package/dist/node_modules/@fullcalendar/daygrid/internal.mjs +746 -0
- package/dist/node_modules/@fullcalendar/interaction/index.mjs +842 -0
- package/dist/node_modules/@fullcalendar/list/index.mjs +54 -0
- package/dist/node_modules/@fullcalendar/list/internal.mjs +207 -0
- package/dist/node_modules/@fullcalendar/react/dist/index.mjs +71 -0
- package/dist/node_modules/@fullcalendar/timegrid/index.mjs +31 -0
- package/dist/node_modules/@fullcalendar/timegrid/internal.mjs +900 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.mjs +159 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.mjs +58 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/enum.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/index.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/range.mjs +10 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/required.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.mjs +63 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/whitespace.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/util.mjs +167 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/any.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/array.mjs +13 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/boolean.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/date.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/enum.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/float.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/integer.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/method.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/number.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/object.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/regexp.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/required.mjs +9 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/string.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/type.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/ColorPicker.mjs +103 -0
- package/dist/node_modules/@rc-component/color-picker/es/color.mjs +47 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/ColorBlock.mjs +18 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Gradient.mjs +22 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Handler.mjs +15 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Palette.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Picker.mjs +58 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Slider.mjs +76 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Transform.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorDrag.mjs +41 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorState.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useComponent.mjs +11 -0
- package/dist/node_modules/@rc-component/color-picker/es/util.mjs +50 -0
- package/dist/node_modules/@rc-component/portal/es/Context.mjs +5 -0
- package/dist/node_modules/@rc-component/portal/es/Portal.mjs +45 -0
- package/dist/node_modules/@rc-component/portal/es/index.mjs +4 -0
- package/dist/node_modules/@rc-component/portal/es/mock.mjs +8 -0
- package/dist/node_modules/@rc-component/portal/es/useDom.mjs +37 -0
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.mjs +29 -0
- package/dist/node_modules/@rc-component/portal/es/util.mjs +6 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.mjs +22 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.mjs +24 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/PopupContent.mjs +11 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.mjs +92 -0
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.mjs +14 -0
- package/dist/node_modules/@rc-component/trigger/es/context.mjs +5 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.mjs +13 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.mjs +187 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWinClick.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/index.mjs +213 -0
- package/dist/node_modules/@rc-component/trigger/es/util.mjs +61 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.mjs +20 -0
- package/dist/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/ahooks/es/useControllableValue/index.mjs +23 -0
- package/dist/node_modules/ahooks/es/useInterval/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.mjs +12 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/useUpdateLayoutEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +18 -0
- package/dist/node_modules/ahooks/es/utils/index.mjs +9 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/node_modules/antd/es/_util/ActionButton.mjs +70 -0
- package/dist/node_modules/antd/es/_util/ContextIsolator.mjs +20 -0
- package/dist/node_modules/antd/es/_util/PurePanel.mjs +16 -0
- package/dist/node_modules/antd/es/_util/colors.mjs +9 -0
- package/dist/node_modules/antd/es/_util/hooks/useClosable.mjs +66 -0
- package/dist/node_modules/antd/es/_util/hooks/useForceUpdate.mjs +8 -0
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.mjs +11 -0
- package/dist/node_modules/antd/es/_util/hooks/useZIndex.mjs +45 -0
- package/dist/node_modules/antd/es/_util/motion.mjs +34 -0
- package/dist/node_modules/antd/es/_util/placements.mjs +150 -0
- package/dist/node_modules/antd/es/_util/reactNode.mjs +13 -0
- package/dist/node_modules/antd/es/_util/styleChecker.mjs +5 -0
- package/dist/node_modules/antd/es/_util/toList.mjs +6 -0
- package/dist/node_modules/antd/es/_util/warning.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.mjs +96 -0
- package/dist/node_modules/antd/es/_util/wave/index.mjs +40 -0
- package/dist/node_modules/antd/es/_util/wave/interface.mjs +6 -0
- package/dist/node_modules/antd/es/_util/wave/style.mjs +47 -0
- package/dist/node_modules/antd/es/_util/wave/useWave.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/util.mjs +16 -0
- package/dist/node_modules/antd/es/_util/zindexContext.mjs +7 -0
- package/dist/node_modules/antd/es/button/IconWrapper.mjs +18 -0
- package/dist/node_modules/antd/es/button/LoadingIcon.mjs +70 -0
- package/dist/node_modules/antd/es/button/button-group.mjs +65 -0
- package/dist/node_modules/antd/es/button/button.mjs +177 -0
- package/dist/node_modules/antd/es/button/buttonHelpers.mjs +44 -0
- package/dist/node_modules/antd/es/button/index.mjs +4 -0
- package/dist/node_modules/antd/es/button/style/compactCmp.mjs +75 -0
- package/dist/node_modules/antd/es/button/style/group.mjs +70 -0
- package/dist/node_modules/antd/es/button/style/index.mjs +373 -0
- package/dist/node_modules/antd/es/button/style/token.mjs +81 -0
- package/dist/node_modules/antd/es/calendar/locale/en_US.mjs +4 -0
- package/dist/node_modules/antd/es/color-picker/color.mjs +96 -0
- package/dist/node_modules/antd/es/color-picker/components/ColorPresets.mjs +17 -0
- package/dist/node_modules/antd/es/config-provider/DisabledContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.mjs +32 -0
- package/dist/node_modules/antd/es/config-provider/PropWarning.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/SizeContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/context.mjs +11 -0
- package/dist/node_modules/antd/es/config-provider/cssVariables.mjs +39 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useCSSVarCls.mjs +23 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.mjs +9 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.mjs +41 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useThemeKey.mjs +7 -0
- package/dist/node_modules/antd/es/config-provider/index.mjs +327 -0
- package/dist/node_modules/antd/es/date-picker/locale/en_US.mjs +20 -0
- package/dist/node_modules/antd/es/form/context.mjs +23 -0
- package/dist/node_modules/antd/es/form/validateMessagesContext.mjs +5 -0
- package/dist/node_modules/antd/es/locale/context.mjs +5 -0
- package/dist/node_modules/antd/es/locale/en_US.mjs +146 -0
- package/dist/node_modules/antd/es/locale/index.mjs +28 -0
- package/dist/node_modules/antd/es/locale/useLocale.mjs +17 -0
- package/dist/node_modules/antd/es/modal/ConfirmDialog.mjs +175 -0
- package/dist/node_modules/antd/es/modal/Modal.mjs +137 -0
- package/dist/node_modules/antd/es/modal/PurePanel.mjs +60 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmCancelBtn.mjs +29 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmOkBtn.mjs +30 -0
- package/dist/node_modules/antd/es/modal/components/NormalCancelBtn.mjs +16 -0
- package/dist/node_modules/antd/es/modal/components/NormalOkBtn.mjs +20 -0
- package/dist/node_modules/antd/es/modal/confirm.mjs +122 -0
- package/dist/node_modules/antd/es/modal/context.mjs +8 -0
- package/dist/node_modules/antd/es/modal/destroyFns.mjs +4 -0
- package/dist/node_modules/antd/es/modal/index.mjs +37 -0
- package/dist/node_modules/antd/es/modal/locale.mjs +19 -0
- package/dist/node_modules/antd/es/modal/shared.mjs +51 -0
- package/dist/node_modules/antd/es/modal/style/confirm.mjs +113 -0
- package/dist/node_modules/antd/es/modal/style/index.mjs +292 -0
- package/dist/node_modules/antd/es/modal/useModal/HookModal.mjs +60 -0
- package/dist/node_modules/antd/es/modal/useModal/index.mjs +73 -0
- package/dist/node_modules/antd/es/progress/Circle.mjs +60 -0
- package/dist/node_modules/antd/es/progress/Line.mjs +109 -0
- package/dist/node_modules/antd/es/progress/Steps.mjs +38 -0
- package/dist/node_modules/antd/es/progress/index.mjs +4 -0
- package/dist/node_modules/antd/es/progress/progress.mjs +120 -0
- package/dist/node_modules/antd/es/progress/style/index.mjs +313 -0
- package/dist/node_modules/antd/es/progress/utils.mjs +51 -0
- package/dist/node_modules/antd/es/skeleton/Avatar.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Button.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Element.mjs +29 -0
- package/dist/node_modules/antd/es/skeleton/Image.mjs +34 -0
- package/dist/node_modules/antd/es/skeleton/Input.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Node.mjs +28 -0
- package/dist/node_modules/antd/es/skeleton/Paragraph.mjs +35 -0
- package/dist/node_modules/antd/es/skeleton/Skeleton.mjs +108 -0
- package/dist/node_modules/antd/es/skeleton/Title.mjs +22 -0
- package/dist/node_modules/antd/es/skeleton/index.mjs +4 -0
- package/dist/node_modules/antd/es/skeleton/style/index.mjs +311 -0
- package/dist/node_modules/antd/es/slider/Context.mjs +5 -0
- package/dist/node_modules/antd/es/slider/SliderTooltip.mjs +30 -0
- package/dist/node_modules/antd/es/slider/index.mjs +153 -0
- package/dist/node_modules/antd/es/slider/style/index.mjs +325 -0
- package/dist/node_modules/antd/es/slider/useRafLock.mjs +15 -0
- package/dist/node_modules/antd/es/space/Compact.mjs +37 -0
- package/dist/node_modules/antd/es/style/compact-item-vertical.mjs +44 -0
- package/dist/node_modules/antd/es/style/compact-item.mjs +61 -0
- package/dist/node_modules/antd/es/style/index.mjs +125 -0
- package/dist/node_modules/antd/es/style/motion/collapse.mjs +20 -0
- package/dist/node_modules/antd/es/style/motion/fade.mjs +50 -0
- package/dist/node_modules/antd/es/style/motion/motion.mjs +35 -0
- package/dist/node_modules/antd/es/style/motion/zoom.mjs +195 -0
- package/dist/node_modules/antd/es/style/placementArrow.mjs +164 -0
- package/dist/node_modules/antd/es/style/roundedArrow.mjs +74 -0
- package/dist/node_modules/antd/es/table/ExpandIcon.mjs +29 -0
- package/dist/node_modules/antd/es/theme/context.mjs +25 -0
- package/dist/node_modules/antd/es/theme/getDesignToken.mjs +23 -0
- package/dist/node_modules/antd/es/theme/interface/presetColors.mjs +4 -0
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/compact/index.mjs +16 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colors.mjs +51 -0
- package/dist/node_modules/antd/es/theme/themes/dark/index.mjs +21 -0
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/default/colors.mjs +49 -0
- package/dist/node_modules/antd/es/theme/themes/default/index.mjs +23 -0
- package/dist/node_modules/antd/es/theme/themes/seed.mjs +69 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.mjs +78 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.mjs +17 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/useToken.mjs +118 -0
- package/dist/node_modules/antd/es/theme/util/alias.mjs +162 -0
- package/dist/node_modules/antd/es/theme/util/genPresetColor.mjs +15 -0
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.mjs +50 -0
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.mjs +38 -0
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.mjs +36 -0
- package/dist/node_modules/antd/es/time-picker/locale/en_US.mjs +7 -0
- package/dist/node_modules/antd/es/tooltip/PurePanel.mjs +33 -0
- package/dist/node_modules/antd/es/tooltip/index.mjs +148 -0
- package/dist/node_modules/antd/es/tooltip/style/index.mjs +139 -0
- package/dist/node_modules/antd/es/tooltip/util.mjs +15 -0
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.mjs +64 -0
- package/dist/node_modules/antd/es/upload/Dragger.mjs +32 -0
- package/dist/node_modules/antd/es/upload/Upload.mjs +304 -0
- package/dist/node_modules/antd/es/upload/UploadList/ListItem.mjs +156 -0
- package/dist/node_modules/antd/es/upload/UploadList/index.mjs +167 -0
- package/dist/node_modules/antd/es/upload/index.mjs +9 -0
- package/dist/node_modules/antd/es/upload/style/dragger.mjs +84 -0
- package/dist/node_modules/antd/es/upload/style/index.mjs +65 -0
- package/dist/node_modules/antd/es/upload/style/list.mjs +115 -0
- package/dist/node_modules/antd/es/upload/style/motion.mjs +54 -0
- package/dist/node_modules/antd/es/upload/style/picture.mjs +240 -0
- package/dist/node_modules/antd/es/upload/style/rtl.mjs +13 -0
- package/dist/node_modules/antd/es/upload/utils.mjs +79 -0
- package/dist/node_modules/antd/es/version/index.mjs +4 -0
- package/dist/node_modules/antd/es/version/version.mjs +4 -0
- package/dist/node_modules/antd/es/watermark/context.mjs +25 -0
- package/dist/node_modules/antd/lib/calendar/locale/en_US.mjs +11 -0
- package/dist/node_modules/antd/lib/date-picker/locale/en_US.mjs +28 -0
- package/dist/node_modules/antd/lib/locale/en_US.mjs +157 -0
- package/dist/node_modules/antd/lib/time-picker/locale/en_US.mjs +10 -0
- package/dist/node_modules/antd/locale/en_US.mjs +8 -0
- package/dist/node_modules/antd-img-crop/dist/antd-img-crop.esm.mjs +137 -0
- package/dist/node_modules/better-scroll/dist/better-scroll.esm.mjs +3670 -0
- package/dist/node_modules/classnames/index.mjs +42 -0
- package/dist/node_modules/clsx/dist/clsx.mjs +23 -0
- package/dist/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/dayjs/dayjs.min.mjs +297 -0
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isBetween.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isSameOrAfter.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isSameOrBefore.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isToday.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.mjs +34 -0
- package/dist/node_modules/dayjs/plugin/objectSupport.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/relativeTime.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/utc.mjs +87 -0
- package/dist/node_modules/dayjs/plugin/weekOfYear.mjs +31 -0
- package/dist/node_modules/immer/dist/immer.mjs +473 -0
- package/dist/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
- package/dist/node_modules/lodash-es/_Hash.mjs +20 -0
- package/dist/node_modules/lodash-es/_ListCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Map.mjs +7 -0
- package/dist/node_modules/lodash-es/_MapCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
- package/dist/node_modules/lodash-es/_Set.mjs +7 -0
- package/dist/node_modules/lodash-es/_Stack.mjs +18 -0
- package/dist/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/dist/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/dist/node_modules/lodash-es/_apply.mjs +16 -0
- package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.mjs +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignValue.mjs +10 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseAt.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
- package/dist/node_modules/lodash-es/_baseCreate.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseFlatten.mjs +13 -0
- package/dist/node_modules/lodash-es/_baseFor.mjs +6 -0
- package/dist/node_modules/lodash-es/_baseGet.mjs +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.mjs +16 -0
- package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.mjs +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.mjs +31 -0
- package/dist/node_modules/lodash-es/_baseRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseTimes.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseToString.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseUnary.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
- package/dist/node_modules/lodash-es/_castPath.mjs +10 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.mjs +11 -0
- package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_copyArray.mjs +9 -0
- package/dist/node_modules/lodash-es/_copyObject.mjs +14 -0
- package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/dist/node_modules/lodash-es/_createAssigner.mjs +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.mjs +13 -0
- package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
- package/dist/node_modules/lodash-es/_defineProperty.mjs +12 -0
- package/dist/node_modules/lodash-es/_flatRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/_getMapData.mjs +8 -0
- package/dist/node_modules/lodash-es/_getNative.mjs +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/dist/node_modules/lodash-es/_getRawTag.mjs +15 -0
- package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
- package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
- package/dist/node_modules/lodash-es/_getValue.mjs +6 -0
- package/dist/node_modules/lodash-es/_hashClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashGet.mjs +13 -0
- package/dist/node_modules/lodash-es/_hashHas.mjs +9 -0
- package/dist/node_modules/lodash-es/_hashSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
- package/dist/node_modules/lodash-es/_initCloneObject.mjs +9 -0
- package/dist/node_modules/lodash-es/_isFlattenable.mjs +10 -0
- package/dist/node_modules/lodash-es/_isIndex.mjs +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.mjs +13 -0
- package/dist/node_modules/lodash-es/_isKey.mjs +12 -0
- package/dist/node_modules/lodash-es/_isKeyable.mjs +7 -0
- package/dist/node_modules/lodash-es/_isMasked.mjs +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.mjs +6 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.mjs +12 -0
- package/dist/node_modules/lodash-es/_listCacheGet.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.mjs +13 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.mjs +11 -0
- package/dist/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.mjs +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.mjs +12 -0
- package/dist/node_modules/lodash-es/_objectToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_overArg.mjs +8 -0
- package/dist/node_modules/lodash-es/_overRest.mjs +15 -0
- package/dist/node_modules/lodash-es/_parent.mjs +8 -0
- package/dist/node_modules/lodash-es/_root.mjs +6 -0
- package/dist/node_modules/lodash-es/_safeGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_setToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_shortOut.mjs +16 -0
- package/dist/node_modules/lodash-es/_stackClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackGet.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackHas.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackSet.mjs +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.mjs +11 -0
- package/dist/node_modules/lodash-es/_toKey.mjs +11 -0
- package/dist/node_modules/lodash-es/_toSource.mjs +17 -0
- package/dist/node_modules/lodash-es/at.mjs +7 -0
- package/dist/node_modules/lodash-es/constant.mjs +8 -0
- package/dist/node_modules/lodash-es/eq.mjs +6 -0
- package/dist/node_modules/lodash-es/flatten.mjs +8 -0
- package/dist/node_modules/lodash-es/get.mjs +8 -0
- package/dist/node_modules/lodash-es/identity.mjs +6 -0
- package/dist/node_modules/lodash-es/isArguments.mjs +11 -0
- package/dist/node_modules/lodash-es/isArray.mjs +5 -0
- package/dist/node_modules/lodash-es/isArrayLike.mjs +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
- package/dist/node_modules/lodash-es/isBoolean.mjs +9 -0
- package/dist/node_modules/lodash-es/isBuffer.mjs +7 -0
- package/dist/node_modules/lodash-es/isFunction.mjs +12 -0
- package/dist/node_modules/lodash-es/isLength.mjs +7 -0
- package/dist/node_modules/lodash-es/isMap.mjs +8 -0
- package/dist/node_modules/lodash-es/isObject.mjs +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.mjs +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.mjs +16 -0
- package/dist/node_modules/lodash-es/isSet.mjs +8 -0
- package/dist/node_modules/lodash-es/isSymbol.mjs +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/keys.mjs +9 -0
- package/dist/node_modules/lodash-es/keysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/last.mjs +7 -0
- package/dist/node_modules/lodash-es/memoize.mjs +18 -0
- package/dist/node_modules/lodash-es/merge.mjs +9 -0
- package/dist/node_modules/lodash-es/omit.mjs +24 -0
- package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
- package/dist/node_modules/lodash-es/stubFalse.mjs +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.mjs +8 -0
- package/dist/node_modules/lodash-es/toString.mjs +7 -0
- package/dist/node_modules/normalize-wheel/index.mjs +7 -0
- package/dist/node_modules/normalize-wheel/src/ExecutionEnvironment.mjs +11 -0
- package/dist/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.mjs +142 -0
- package/dist/node_modules/normalize-wheel/src/isEventSupported.mjs +33 -0
- package/dist/node_modules/normalize-wheel/src/normalizeWheel.mjs +19 -0
- package/dist/node_modules/object-assign/index.mjs +55 -0
- package/dist/node_modules/preact/compat/dist/compat.module.mjs +202 -0
- package/dist/node_modules/preact/dist/preact.module.mjs +343 -0
- package/dist/node_modules/preact/hooks/dist/hooks.module.mjs +63 -0
- package/dist/node_modules/prop-types/checkPropTypes.mjs +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.mjs +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.mjs +330 -0
- package/dist/node_modules/prop-types/index.mjs +16 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +11 -0
- package/dist/node_modules/prop-types/lib/has.mjs +7 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.mjs +11 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.mjs +93 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.mjs +43 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.mjs +25 -0
- package/dist/node_modules/rc-dialog/es/Dialog/index.mjs +114 -0
- package/dist/node_modules/rc-dialog/es/DialogWrap.mjs +32 -0
- package/dist/node_modules/rc-dialog/es/context.mjs +5 -0
- package/dist/node_modules/rc-dialog/es/index.mjs +6 -0
- package/dist/node_modules/rc-dialog/es/util.mjs +23 -0
- package/dist/node_modules/rc-field-form/es/Field.mjs +300 -0
- package/dist/node_modules/rc-field-form/es/FieldContext.mjs +41 -0
- package/dist/node_modules/rc-field-form/es/Form.mjs +78 -0
- package/dist/node_modules/rc-field-form/es/FormContext.mjs +46 -0
- package/dist/node_modules/rc-field-form/es/List.mjs +82 -0
- package/dist/node_modules/rc-field-form/es/ListContext.mjs +5 -0
- package/dist/node_modules/rc-field-form/es/index.mjs +22 -0
- package/dist/node_modules/rc-field-form/es/useForm.mjs +541 -0
- package/dist/node_modules/rc-field-form/es/useWatch.mjs +53 -0
- package/dist/node_modules/rc-field-form/es/utils/NameMap.mjs +66 -0
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.mjs +15 -0
- package/dist/node_modules/rc-field-form/es/utils/messages.mjs +50 -0
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.mjs +10 -0
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.mjs +203 -0
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.mjs +60 -0
- package/dist/node_modules/rc-motion/es/CSSMotion.mjs +73 -0
- package/dist/node_modules/rc-motion/es/CSSMotionList.mjs +95 -0
- package/dist/node_modules/rc-motion/es/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-motion/es/context.mjs +13 -0
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.mjs +20 -0
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.mjs +6 -0
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.mjs +28 -0
- package/dist/node_modules/rc-motion/es/hooks/useStatus.mjs +91 -0
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.mjs +38 -0
- package/dist/node_modules/rc-motion/es/index.mjs +7 -0
- package/dist/node_modules/rc-motion/es/interface.mjs +13 -0
- package/dist/node_modules/rc-motion/es/util/diff.mjs +65 -0
- package/dist/node_modules/rc-motion/es/util/motion.mjs +51 -0
- package/dist/node_modules/rc-pagination/es/locale/en_US.mjs +18 -0
- package/dist/node_modules/rc-pagination/lib/locale/en_US.mjs +21 -0
- package/dist/node_modules/rc-picker/es/locale/common.mjs +9 -0
- package/dist/node_modules/rc-picker/es/locale/en_US.mjs +31 -0
- package/dist/node_modules/rc-picker/lib/locale/common.mjs +14 -0
- package/dist/node_modules/rc-picker/lib/locale/en_US.mjs +37 -0
- package/dist/node_modules/rc-progress/es/Circle/PtgCircle.mjs +52 -0
- package/dist/node_modules/rc-progress/es/Circle/index.mjs +83 -0
- package/dist/node_modules/rc-progress/es/Circle/util.mjs +23 -0
- package/dist/node_modules/rc-progress/es/Line.mjs +3 -0
- package/dist/node_modules/rc-progress/es/common.mjs +27 -0
- package/dist/node_modules/rc-progress/es/hooks/useId.mjs +18 -0
- package/dist/node_modules/rc-resize-observer/es/Collection.mjs +22 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.mjs +59 -0
- package/dist/node_modules/rc-resize-observer/es/index.mjs +24 -0
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.mjs +23 -0
- package/dist/node_modules/rc-slider/es/Handles/Handle.mjs +103 -0
- package/dist/node_modules/rc-slider/es/Handles/index.mjs +69 -0
- package/dist/node_modules/rc-slider/es/Marks/Mark.mjs +22 -0
- package/dist/node_modules/rc-slider/es/Marks/index.mjs +20 -0
- package/dist/node_modules/rc-slider/es/Slider.mjs +225 -0
- package/dist/node_modules/rc-slider/es/Steps/Dot.mjs +16 -0
- package/dist/node_modules/rc-slider/es/Steps/index.mjs +28 -0
- package/dist/node_modules/rc-slider/es/Tracks/Track.mjs +34 -0
- package/dist/node_modules/rc-slider/es/Tracks/index.mjs +50 -0
- package/dist/node_modules/rc-slider/es/context.mjs +17 -0
- package/dist/node_modules/rc-slider/es/hooks/useDrag.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useOffset.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useRange.mjs +13 -0
- package/dist/node_modules/rc-slider/es/index.mjs +5 -0
- package/dist/node_modules/rc-slider/es/util.mjs +29 -0
- package/dist/node_modules/rc-tooltip/es/Popup.mjs +17 -0
- package/dist/node_modules/rc-tooltip/es/Tooltip.mjs +52 -0
- package/dist/node_modules/rc-tooltip/es/index.mjs +6 -0
- package/dist/node_modules/rc-tooltip/es/placements.mjs +84 -0
- package/dist/node_modules/rc-upload/es/AjaxUploader.mjs +284 -0
- package/dist/node_modules/rc-upload/es/Upload.mjs +57 -0
- package/dist/node_modules/rc-upload/es/attr-accept.mjs +22 -0
- package/dist/node_modules/rc-upload/es/index.mjs +4 -0
- package/dist/node_modules/rc-upload/es/request.mjs +46 -0
- package/dist/node_modules/rc-upload/es/traverseFileTree.mjs +137 -0
- package/dist/node_modules/rc-upload/es/uid.mjs +7 -0
- package/dist/node_modules/rc-util/es/Children/toArray.mjs +11 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.mjs +6 -0
- package/dist/node_modules/rc-util/es/Dom/contains.mjs +15 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.mjs +87 -0
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.mjs +24 -0
- package/dist/node_modules/rc-util/es/Dom/isVisible.mjs +22 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.mjs +14 -0
- package/dist/node_modules/rc-util/es/KeyCode.mjs +517 -0
- package/dist/node_modules/rc-util/es/React/render.mjs +81 -0
- package/dist/node_modules/rc-util/es/getScrollBarSize.mjs +38 -0
- package/dist/node_modules/rc-util/es/hooks/useEvent.mjs +14 -0
- package/dist/node_modules/rc-util/es/hooks/useId.mjs +27 -0
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.mjs +21 -0
- package/dist/node_modules/rc-util/es/hooks/useMemo.mjs +8 -0
- package/dist/node_modules/rc-util/es/hooks/useMergedState.mjs +25 -0
- package/dist/node_modules/rc-util/es/hooks/useState.mjs +17 -0
- package/dist/node_modules/rc-util/es/hooks/useSyncState.mjs +16 -0
- package/dist/node_modules/rc-util/es/isEqual.mjs +35 -0
- package/dist/node_modules/rc-util/es/isMobile.mjs +9 -0
- package/dist/node_modules/rc-util/es/omit.mjs +9 -0
- package/dist/node_modules/rc-util/es/pickAttrs.mjs +42 -0
- package/dist/node_modules/rc-util/es/raf.mjs +40 -0
- package/dist/node_modules/rc-util/es/ref.mjs +39 -0
- package/dist/node_modules/rc-util/es/utils/get.mjs +11 -0
- package/dist/node_modules/rc-util/es/utils/set.mjs +47 -0
- package/dist/node_modules/rc-util/es/warning.mjs +44 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.mjs +103 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.mjs +82 -0
- package/dist/node_modules/rc-util/node_modules/react-is/index.mjs +8 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +616 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
- package/dist/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/node_modules/react-device-detect/dist/lib.mjs +721 -0
- package/dist/node_modules/react-dom/client.mjs +26 -0
- package/dist/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/react-draggable/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/react-easy-crop/index.module.mjs +543 -0
- package/dist/node_modules/react-i18next/dist/es/context.mjs +19 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.mjs +17 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.mjs +7 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.mjs +25 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.mjs +74 -0
- package/dist/node_modules/react-i18next/dist/es/utils.mjs +61 -0
- package/dist/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.mjs +79 -0
- package/dist/node_modules/react-is/index.mjs +10 -0
- package/dist/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +290 -0
- package/dist/node_modules/screenfull/index.mjs +122 -0
- package/dist/node_modules/stylis/src/Enum.mjs +12 -0
- package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
- package/dist/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
- package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
- package/dist/node_modules/stylis/src/Utility.mjs +50 -0
- package/dist/node_modules/throttle-debounce/esm/index.mjs +35 -0
- package/dist/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/node_modules/tslib/tslib.es6.mjs +97 -0
- package/dist/node_modules/ua-parser-js/dist/ua-parser.min.mjs +86 -0
- package/dist/node_modules/use-immer/dist/use-immer.module.mjs +13 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +61 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +60 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +85 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +50 -0
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
- package/dist/node_modules/zustand/esm/index.mjs +24 -0
- package/dist/node_modules/zustand/esm/vanilla.mjs +16 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +13 -13
- package/package.json +1 -1
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
import { __extends as F, __assign as l } from "../tslib/tslib.es6.mjs";
|
|
2
|
+
import * as w from "react";
|
|
3
|
+
import N from "../normalize-wheel/index.mjs";
|
|
4
|
+
function I(n, r, t, e, o, i) {
|
|
5
|
+
i === void 0 && (i = 0);
|
|
6
|
+
var s = y(n, r, i), a = s.width, c = s.height, h = Math.min(a, t), p = Math.min(c, e);
|
|
7
|
+
return h > p * o ? {
|
|
8
|
+
width: p * o,
|
|
9
|
+
height: p
|
|
10
|
+
} : {
|
|
11
|
+
width: h,
|
|
12
|
+
height: h / o
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function j(n) {
|
|
16
|
+
return n.width > n.height ? n.width / n.naturalWidth : n.height / n.naturalHeight;
|
|
17
|
+
}
|
|
18
|
+
function R(n, r, t, e, o) {
|
|
19
|
+
o === void 0 && (o = 0);
|
|
20
|
+
var i = y(r.width, r.height, o), s = i.width, a = i.height;
|
|
21
|
+
return {
|
|
22
|
+
x: _(n.x, s, t.width, e),
|
|
23
|
+
y: _(n.y, a, t.height, e)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function _(n, r, t, e) {
|
|
27
|
+
var o = r * e / 2 - t / 2;
|
|
28
|
+
return x(n, -o, o);
|
|
29
|
+
}
|
|
30
|
+
function E(n, r) {
|
|
31
|
+
return Math.sqrt(Math.pow(n.y - r.y, 2) + Math.pow(n.x - r.x, 2));
|
|
32
|
+
}
|
|
33
|
+
function M(n, r) {
|
|
34
|
+
return Math.atan2(r.y - n.y, r.x - n.x) * 180 / Math.PI;
|
|
35
|
+
}
|
|
36
|
+
function H(n, r, t, e, o, i, s) {
|
|
37
|
+
i === void 0 && (i = 0), s === void 0 && (s = !0);
|
|
38
|
+
var a = s ? G : B, c = y(r.width, r.height, i), h = y(r.naturalWidth, r.naturalHeight, i), p = {
|
|
39
|
+
x: a(100, ((c.width - t.width / o) / 2 - n.x / o) / c.width * 100),
|
|
40
|
+
y: a(100, ((c.height - t.height / o) / 2 - n.y / o) / c.height * 100),
|
|
41
|
+
width: a(100, t.width / c.width * 100 / o),
|
|
42
|
+
height: a(100, t.height / c.height * 100 / o)
|
|
43
|
+
}, u = Math.round(a(h.width, p.width * h.width / 100)), d = Math.round(a(h.height, p.height * h.height / 100)), g = h.width >= h.height * e, f = g ? {
|
|
44
|
+
width: Math.round(d * e),
|
|
45
|
+
height: d
|
|
46
|
+
} : {
|
|
47
|
+
width: u,
|
|
48
|
+
height: Math.round(u / e)
|
|
49
|
+
}, m = l(l({}, f), {
|
|
50
|
+
x: Math.round(a(h.width - f.width, p.x * h.width / 100)),
|
|
51
|
+
y: Math.round(a(h.height - f.height, p.y * h.height / 100))
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
croppedAreaPercentages: p,
|
|
55
|
+
croppedAreaPixels: m
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function G(n, r) {
|
|
59
|
+
return Math.min(n, Math.max(0, r));
|
|
60
|
+
}
|
|
61
|
+
function B(n, r) {
|
|
62
|
+
return r;
|
|
63
|
+
}
|
|
64
|
+
function V(n, r, t, e, o, i) {
|
|
65
|
+
var s = y(r.width, r.height, t), a = x(e.width / s.width * (100 / n.width), o, i), c = {
|
|
66
|
+
x: a * s.width / 2 - e.width / 2 - s.width * a * (n.x / 100),
|
|
67
|
+
y: a * s.height / 2 - e.height / 2 - s.height * a * (n.y / 100)
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
crop: c,
|
|
71
|
+
zoom: a
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function q(n, r, t) {
|
|
75
|
+
var e = j(r);
|
|
76
|
+
return t.height > t.width ? t.height / (n.height * e) : t.width / (n.width * e);
|
|
77
|
+
}
|
|
78
|
+
function U(n, r, t, e, o, i) {
|
|
79
|
+
t === void 0 && (t = 0);
|
|
80
|
+
var s = y(r.naturalWidth, r.naturalHeight, t), a = x(q(n, r, e), o, i), c = e.height > e.width ? e.height / n.height : e.width / n.width, h = {
|
|
81
|
+
x: ((s.width - n.width) / 2 - n.x) * c,
|
|
82
|
+
y: ((s.height - n.height) / 2 - n.y) * c
|
|
83
|
+
};
|
|
84
|
+
return {
|
|
85
|
+
crop: h,
|
|
86
|
+
zoom: a
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function W(n, r) {
|
|
90
|
+
return {
|
|
91
|
+
x: (r.x + n.x) / 2,
|
|
92
|
+
y: (r.y + n.y) / 2
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function Y(n) {
|
|
96
|
+
return n * Math.PI / 180;
|
|
97
|
+
}
|
|
98
|
+
function y(n, r, t) {
|
|
99
|
+
var e = Y(t);
|
|
100
|
+
return {
|
|
101
|
+
width: Math.abs(Math.cos(e) * n) + Math.abs(Math.sin(e) * r),
|
|
102
|
+
height: Math.abs(Math.sin(e) * n) + Math.abs(Math.cos(e) * r)
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function x(n, r, t) {
|
|
106
|
+
return Math.min(Math.max(n, r), t);
|
|
107
|
+
}
|
|
108
|
+
function S() {
|
|
109
|
+
for (var n = [], r = 0; r < arguments.length; r++)
|
|
110
|
+
n[r] = arguments[r];
|
|
111
|
+
return n.filter(function(t) {
|
|
112
|
+
return typeof t == "string" && t.length > 0;
|
|
113
|
+
}).join(" ").trim();
|
|
114
|
+
}
|
|
115
|
+
var k = `.reactEasyCrop_Container {
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 0;
|
|
118
|
+
left: 0;
|
|
119
|
+
right: 0;
|
|
120
|
+
bottom: 0;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
user-select: none;
|
|
123
|
+
touch-action: none;
|
|
124
|
+
cursor: move;
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
align-items: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.reactEasyCrop_Image,
|
|
131
|
+
.reactEasyCrop_Video {
|
|
132
|
+
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.reactEasyCrop_Contain {
|
|
136
|
+
max-width: 100%;
|
|
137
|
+
max-height: 100%;
|
|
138
|
+
margin: auto;
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: 0;
|
|
141
|
+
bottom: 0;
|
|
142
|
+
left: 0;
|
|
143
|
+
right: 0;
|
|
144
|
+
}
|
|
145
|
+
.reactEasyCrop_Cover_Horizontal {
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: auto;
|
|
148
|
+
}
|
|
149
|
+
.reactEasyCrop_Cover_Vertical {
|
|
150
|
+
width: auto;
|
|
151
|
+
height: 100%;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.reactEasyCrop_CropArea {
|
|
155
|
+
position: absolute;
|
|
156
|
+
left: 50%;
|
|
157
|
+
top: 50%;
|
|
158
|
+
transform: translate(-50%, -50%);
|
|
159
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
160
|
+
box-sizing: border-box;
|
|
161
|
+
box-shadow: 0 0 0 9999em;
|
|
162
|
+
color: rgba(0, 0, 0, 0.5);
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.reactEasyCrop_CropAreaRound {
|
|
167
|
+
border-radius: 50%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.reactEasyCrop_CropAreaGrid::before {
|
|
171
|
+
content: ' ';
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
position: absolute;
|
|
174
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
175
|
+
top: 0;
|
|
176
|
+
bottom: 0;
|
|
177
|
+
left: 33.33%;
|
|
178
|
+
right: 33.33%;
|
|
179
|
+
border-top: 0;
|
|
180
|
+
border-bottom: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.reactEasyCrop_CropAreaGrid::after {
|
|
184
|
+
content: ' ';
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
position: absolute;
|
|
187
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
188
|
+
top: 33.33%;
|
|
189
|
+
bottom: 33.33%;
|
|
190
|
+
left: 0;
|
|
191
|
+
right: 0;
|
|
192
|
+
border-left: 0;
|
|
193
|
+
border-right: 0;
|
|
194
|
+
}
|
|
195
|
+
`, J = 1, X = 3, $ = (
|
|
196
|
+
/** @class */
|
|
197
|
+
function(n) {
|
|
198
|
+
F(r, n);
|
|
199
|
+
function r() {
|
|
200
|
+
var t = n !== null && n.apply(this, arguments) || this;
|
|
201
|
+
return t.imageRef = w.createRef(), t.videoRef = w.createRef(), t.containerPosition = {
|
|
202
|
+
x: 0,
|
|
203
|
+
y: 0
|
|
204
|
+
}, t.containerRef = null, t.styleRef = null, t.containerRect = null, t.mediaSize = {
|
|
205
|
+
width: 0,
|
|
206
|
+
height: 0,
|
|
207
|
+
naturalWidth: 0,
|
|
208
|
+
naturalHeight: 0
|
|
209
|
+
}, t.dragStartPosition = {
|
|
210
|
+
x: 0,
|
|
211
|
+
y: 0
|
|
212
|
+
}, t.dragStartCrop = {
|
|
213
|
+
x: 0,
|
|
214
|
+
y: 0
|
|
215
|
+
}, t.gestureZoomStart = 0, t.gestureRotationStart = 0, t.isTouching = !1, t.lastPinchDistance = 0, t.lastPinchRotation = 0, t.rafDragTimeout = null, t.rafPinchTimeout = null, t.wheelTimer = null, t.currentDoc = typeof document < "u" ? document : null, t.currentWindow = typeof window < "u" ? window : null, t.resizeObserver = null, t.state = {
|
|
216
|
+
cropSize: null,
|
|
217
|
+
hasWheelJustStarted: !1,
|
|
218
|
+
mediaObjectFit: void 0
|
|
219
|
+
}, t.initResizeObserver = function() {
|
|
220
|
+
if (!(typeof window.ResizeObserver > "u" || !t.containerRef)) {
|
|
221
|
+
var e = !0;
|
|
222
|
+
t.resizeObserver = new window.ResizeObserver(function(o) {
|
|
223
|
+
if (e) {
|
|
224
|
+
e = !1;
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
t.computeSizes();
|
|
228
|
+
}), t.resizeObserver.observe(t.containerRef);
|
|
229
|
+
}
|
|
230
|
+
}, t.preventZoomSafari = function(e) {
|
|
231
|
+
return e.preventDefault();
|
|
232
|
+
}, t.cleanEvents = function() {
|
|
233
|
+
t.currentDoc && (t.currentDoc.removeEventListener("mousemove", t.onMouseMove), t.currentDoc.removeEventListener("mouseup", t.onDragStopped), t.currentDoc.removeEventListener("touchmove", t.onTouchMove), t.currentDoc.removeEventListener("touchend", t.onDragStopped), t.currentDoc.removeEventListener("gesturemove", t.onGestureMove), t.currentDoc.removeEventListener("gestureend", t.onGestureEnd), t.currentDoc.removeEventListener("scroll", t.onScroll));
|
|
234
|
+
}, t.clearScrollEvent = function() {
|
|
235
|
+
t.containerRef && t.containerRef.removeEventListener("wheel", t.onWheel), t.wheelTimer && clearTimeout(t.wheelTimer);
|
|
236
|
+
}, t.onMediaLoad = function() {
|
|
237
|
+
var e = t.computeSizes();
|
|
238
|
+
e && (t.emitCropData(), t.setInitialCrop(e)), t.props.onMediaLoaded && t.props.onMediaLoaded(t.mediaSize);
|
|
239
|
+
}, t.setInitialCrop = function(e) {
|
|
240
|
+
if (t.props.initialCroppedAreaPercentages) {
|
|
241
|
+
var o = V(t.props.initialCroppedAreaPercentages, t.mediaSize, t.props.rotation, e, t.props.minZoom, t.props.maxZoom), i = o.crop, s = o.zoom;
|
|
242
|
+
t.props.onCropChange(i), t.props.onZoomChange && t.props.onZoomChange(s);
|
|
243
|
+
} else if (t.props.initialCroppedAreaPixels) {
|
|
244
|
+
var a = U(t.props.initialCroppedAreaPixels, t.mediaSize, t.props.rotation, e, t.props.minZoom, t.props.maxZoom), i = a.crop, s = a.zoom;
|
|
245
|
+
t.props.onCropChange(i), t.props.onZoomChange && t.props.onZoomChange(s);
|
|
246
|
+
}
|
|
247
|
+
}, t.computeSizes = function() {
|
|
248
|
+
var e, o, i, s, a, c, h = t.imageRef.current || t.videoRef.current;
|
|
249
|
+
if (h && t.containerRef) {
|
|
250
|
+
t.containerRect = t.containerRef.getBoundingClientRect(), t.saveContainerPosition();
|
|
251
|
+
var p = t.containerRect.width / t.containerRect.height, u = ((e = t.imageRef.current) === null || e === void 0 ? void 0 : e.naturalWidth) || ((o = t.videoRef.current) === null || o === void 0 ? void 0 : o.videoWidth) || 0, d = ((i = t.imageRef.current) === null || i === void 0 ? void 0 : i.naturalHeight) || ((s = t.videoRef.current) === null || s === void 0 ? void 0 : s.videoHeight) || 0, g = h.offsetWidth < u || h.offsetHeight < d, f = u / d, m = void 0;
|
|
252
|
+
if (g)
|
|
253
|
+
switch (t.state.mediaObjectFit) {
|
|
254
|
+
default:
|
|
255
|
+
case "contain":
|
|
256
|
+
m = p > f ? {
|
|
257
|
+
width: t.containerRect.height * f,
|
|
258
|
+
height: t.containerRect.height
|
|
259
|
+
} : {
|
|
260
|
+
width: t.containerRect.width,
|
|
261
|
+
height: t.containerRect.width / f
|
|
262
|
+
};
|
|
263
|
+
break;
|
|
264
|
+
case "horizontal-cover":
|
|
265
|
+
m = {
|
|
266
|
+
width: t.containerRect.width,
|
|
267
|
+
height: t.containerRect.width / f
|
|
268
|
+
};
|
|
269
|
+
break;
|
|
270
|
+
case "vertical-cover":
|
|
271
|
+
m = {
|
|
272
|
+
width: t.containerRect.height * f,
|
|
273
|
+
height: t.containerRect.height
|
|
274
|
+
};
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
else
|
|
278
|
+
m = {
|
|
279
|
+
width: h.offsetWidth,
|
|
280
|
+
height: h.offsetHeight
|
|
281
|
+
};
|
|
282
|
+
t.mediaSize = l(l({}, m), {
|
|
283
|
+
naturalWidth: u,
|
|
284
|
+
naturalHeight: d
|
|
285
|
+
}), t.props.setMediaSize && t.props.setMediaSize(t.mediaSize);
|
|
286
|
+
var v = t.props.cropSize ? t.props.cropSize : I(t.mediaSize.width, t.mediaSize.height, t.containerRect.width, t.containerRect.height, t.props.aspect, t.props.rotation);
|
|
287
|
+
return (((a = t.state.cropSize) === null || a === void 0 ? void 0 : a.height) !== v.height || ((c = t.state.cropSize) === null || c === void 0 ? void 0 : c.width) !== v.width) && t.props.onCropSizeChange && t.props.onCropSizeChange(v), t.setState({
|
|
288
|
+
cropSize: v
|
|
289
|
+
}, t.recomputeCropPosition), t.props.setCropSize && t.props.setCropSize(v), v;
|
|
290
|
+
}
|
|
291
|
+
}, t.saveContainerPosition = function() {
|
|
292
|
+
if (t.containerRef) {
|
|
293
|
+
var e = t.containerRef.getBoundingClientRect();
|
|
294
|
+
t.containerPosition = {
|
|
295
|
+
x: e.left,
|
|
296
|
+
y: e.top
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}, t.onMouseDown = function(e) {
|
|
300
|
+
t.currentDoc && (e.preventDefault(), t.currentDoc.addEventListener("mousemove", t.onMouseMove), t.currentDoc.addEventListener("mouseup", t.onDragStopped), t.saveContainerPosition(), t.onDragStart(r.getMousePoint(e)));
|
|
301
|
+
}, t.onMouseMove = function(e) {
|
|
302
|
+
return t.onDrag(r.getMousePoint(e));
|
|
303
|
+
}, t.onScroll = function(e) {
|
|
304
|
+
t.currentDoc && (e.preventDefault(), t.saveContainerPosition());
|
|
305
|
+
}, t.onTouchStart = function(e) {
|
|
306
|
+
t.currentDoc && (t.isTouching = !0, !(t.props.onTouchRequest && !t.props.onTouchRequest(e)) && (t.currentDoc.addEventListener("touchmove", t.onTouchMove, {
|
|
307
|
+
passive: !1
|
|
308
|
+
}), t.currentDoc.addEventListener("touchend", t.onDragStopped), t.saveContainerPosition(), e.touches.length === 2 ? t.onPinchStart(e) : e.touches.length === 1 && t.onDragStart(r.getTouchPoint(e.touches[0]))));
|
|
309
|
+
}, t.onTouchMove = function(e) {
|
|
310
|
+
e.preventDefault(), e.touches.length === 2 ? t.onPinchMove(e) : e.touches.length === 1 && t.onDrag(r.getTouchPoint(e.touches[0]));
|
|
311
|
+
}, t.onGestureStart = function(e) {
|
|
312
|
+
t.currentDoc && (e.preventDefault(), t.currentDoc.addEventListener("gesturechange", t.onGestureMove), t.currentDoc.addEventListener("gestureend", t.onGestureEnd), t.gestureZoomStart = t.props.zoom, t.gestureRotationStart = t.props.rotation);
|
|
313
|
+
}, t.onGestureMove = function(e) {
|
|
314
|
+
if (e.preventDefault(), !t.isTouching) {
|
|
315
|
+
var o = r.getMousePoint(e), i = t.gestureZoomStart - 1 + e.scale;
|
|
316
|
+
if (t.setNewZoom(i, o, {
|
|
317
|
+
shouldUpdatePosition: !0
|
|
318
|
+
}), t.props.onRotationChange) {
|
|
319
|
+
var s = t.gestureRotationStart + e.rotation;
|
|
320
|
+
t.props.onRotationChange(s);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}, t.onGestureEnd = function(e) {
|
|
324
|
+
t.cleanEvents();
|
|
325
|
+
}, t.onDragStart = function(e) {
|
|
326
|
+
var o, i, s = e.x, a = e.y;
|
|
327
|
+
t.dragStartPosition = {
|
|
328
|
+
x: s,
|
|
329
|
+
y: a
|
|
330
|
+
}, t.dragStartCrop = l({}, t.props.crop), (i = (o = t.props).onInteractionStart) === null || i === void 0 || i.call(o);
|
|
331
|
+
}, t.onDrag = function(e) {
|
|
332
|
+
var o = e.x, i = e.y;
|
|
333
|
+
t.currentWindow && (t.rafDragTimeout && t.currentWindow.cancelAnimationFrame(t.rafDragTimeout), t.rafDragTimeout = t.currentWindow.requestAnimationFrame(function() {
|
|
334
|
+
if (t.state.cropSize && !(o === void 0 || i === void 0)) {
|
|
335
|
+
var s = o - t.dragStartPosition.x, a = i - t.dragStartPosition.y, c = {
|
|
336
|
+
x: t.dragStartCrop.x + s,
|
|
337
|
+
y: t.dragStartCrop.y + a
|
|
338
|
+
}, h = t.props.restrictPosition ? R(c, t.mediaSize, t.state.cropSize, t.props.zoom, t.props.rotation) : c;
|
|
339
|
+
t.props.onCropChange(h);
|
|
340
|
+
}
|
|
341
|
+
}));
|
|
342
|
+
}, t.onDragStopped = function() {
|
|
343
|
+
var e, o;
|
|
344
|
+
t.isTouching = !1, t.cleanEvents(), t.emitCropData(), (o = (e = t.props).onInteractionEnd) === null || o === void 0 || o.call(e);
|
|
345
|
+
}, t.onWheel = function(e) {
|
|
346
|
+
if (t.currentWindow && !(t.props.onWheelRequest && !t.props.onWheelRequest(e))) {
|
|
347
|
+
e.preventDefault();
|
|
348
|
+
var o = r.getMousePoint(e), i = N(e).pixelY, s = t.props.zoom - i * t.props.zoomSpeed / 200;
|
|
349
|
+
t.setNewZoom(s, o, {
|
|
350
|
+
shouldUpdatePosition: !0
|
|
351
|
+
}), t.state.hasWheelJustStarted || t.setState({
|
|
352
|
+
hasWheelJustStarted: !0
|
|
353
|
+
}, function() {
|
|
354
|
+
var a, c;
|
|
355
|
+
return (c = (a = t.props).onInteractionStart) === null || c === void 0 ? void 0 : c.call(a);
|
|
356
|
+
}), t.wheelTimer && clearTimeout(t.wheelTimer), t.wheelTimer = t.currentWindow.setTimeout(function() {
|
|
357
|
+
return t.setState({
|
|
358
|
+
hasWheelJustStarted: !1
|
|
359
|
+
}, function() {
|
|
360
|
+
var a, c;
|
|
361
|
+
return (c = (a = t.props).onInteractionEnd) === null || c === void 0 ? void 0 : c.call(a);
|
|
362
|
+
});
|
|
363
|
+
}, 250);
|
|
364
|
+
}
|
|
365
|
+
}, t.getPointOnContainer = function(e, o) {
|
|
366
|
+
var i = e.x, s = e.y;
|
|
367
|
+
if (!t.containerRect)
|
|
368
|
+
throw new Error("The Cropper is not mounted");
|
|
369
|
+
return {
|
|
370
|
+
x: t.containerRect.width / 2 - (i - o.x),
|
|
371
|
+
y: t.containerRect.height / 2 - (s - o.y)
|
|
372
|
+
};
|
|
373
|
+
}, t.getPointOnMedia = function(e) {
|
|
374
|
+
var o = e.x, i = e.y, s = t.props, a = s.crop, c = s.zoom;
|
|
375
|
+
return {
|
|
376
|
+
x: (o + a.x) / c,
|
|
377
|
+
y: (i + a.y) / c
|
|
378
|
+
};
|
|
379
|
+
}, t.setNewZoom = function(e, o, i) {
|
|
380
|
+
var s = i === void 0 ? {} : i, a = s.shouldUpdatePosition, c = a === void 0 ? !0 : a;
|
|
381
|
+
if (!(!t.state.cropSize || !t.props.onZoomChange)) {
|
|
382
|
+
var h = x(e, t.props.minZoom, t.props.maxZoom);
|
|
383
|
+
if (c) {
|
|
384
|
+
var p = t.getPointOnContainer(o, t.containerPosition), u = t.getPointOnMedia(p), d = {
|
|
385
|
+
x: u.x * h - p.x,
|
|
386
|
+
y: u.y * h - p.y
|
|
387
|
+
}, g = t.props.restrictPosition ? R(d, t.mediaSize, t.state.cropSize, h, t.props.rotation) : d;
|
|
388
|
+
t.props.onCropChange(g);
|
|
389
|
+
}
|
|
390
|
+
t.props.onZoomChange(h);
|
|
391
|
+
}
|
|
392
|
+
}, t.getCropData = function() {
|
|
393
|
+
if (!t.state.cropSize)
|
|
394
|
+
return null;
|
|
395
|
+
var e = t.props.restrictPosition ? R(t.props.crop, t.mediaSize, t.state.cropSize, t.props.zoom, t.props.rotation) : t.props.crop;
|
|
396
|
+
return H(e, t.mediaSize, t.state.cropSize, t.getAspect(), t.props.zoom, t.props.rotation, t.props.restrictPosition);
|
|
397
|
+
}, t.emitCropData = function() {
|
|
398
|
+
var e = t.getCropData();
|
|
399
|
+
if (e) {
|
|
400
|
+
var o = e.croppedAreaPercentages, i = e.croppedAreaPixels;
|
|
401
|
+
t.props.onCropComplete && t.props.onCropComplete(o, i), t.props.onCropAreaChange && t.props.onCropAreaChange(o, i);
|
|
402
|
+
}
|
|
403
|
+
}, t.emitCropAreaChange = function() {
|
|
404
|
+
var e = t.getCropData();
|
|
405
|
+
if (e) {
|
|
406
|
+
var o = e.croppedAreaPercentages, i = e.croppedAreaPixels;
|
|
407
|
+
t.props.onCropAreaChange && t.props.onCropAreaChange(o, i);
|
|
408
|
+
}
|
|
409
|
+
}, t.recomputeCropPosition = function() {
|
|
410
|
+
if (t.state.cropSize) {
|
|
411
|
+
var e = t.props.restrictPosition ? R(t.props.crop, t.mediaSize, t.state.cropSize, t.props.zoom, t.props.rotation) : t.props.crop;
|
|
412
|
+
t.props.onCropChange(e), t.emitCropData();
|
|
413
|
+
}
|
|
414
|
+
}, t;
|
|
415
|
+
}
|
|
416
|
+
return r.prototype.componentDidMount = function() {
|
|
417
|
+
!this.currentDoc || !this.currentWindow || (this.containerRef && (this.containerRef.ownerDocument && (this.currentDoc = this.containerRef.ownerDocument), this.currentDoc.defaultView && (this.currentWindow = this.currentDoc.defaultView), this.initResizeObserver(), typeof window.ResizeObserver > "u" && this.currentWindow.addEventListener("resize", this.computeSizes), this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, {
|
|
418
|
+
passive: !1
|
|
419
|
+
}), this.containerRef.addEventListener("gesturestart", this.onGestureStart)), this.currentDoc.addEventListener("scroll", this.onScroll), this.props.disableAutomaticStylesInjection || (this.styleRef = this.currentDoc.createElement("style"), this.styleRef.setAttribute("type", "text/css"), this.props.nonce && this.styleRef.setAttribute("nonce", this.props.nonce), this.styleRef.innerHTML = k, this.currentDoc.head.appendChild(this.styleRef)), this.imageRef.current && this.imageRef.current.complete && this.onMediaLoad(), this.props.setImageRef && this.props.setImageRef(this.imageRef), this.props.setVideoRef && this.props.setVideoRef(this.videoRef));
|
|
420
|
+
}, r.prototype.componentWillUnmount = function() {
|
|
421
|
+
var t, e;
|
|
422
|
+
!this.currentDoc || !this.currentWindow || (typeof window.ResizeObserver > "u" && this.currentWindow.removeEventListener("resize", this.computeSizes), (t = this.resizeObserver) === null || t === void 0 || t.disconnect(), this.containerRef && this.containerRef.removeEventListener("gesturestart", this.preventZoomSafari), this.styleRef && ((e = this.styleRef.parentNode) === null || e === void 0 || e.removeChild(this.styleRef)), this.cleanEvents(), this.props.zoomWithScroll && this.clearScrollEvent());
|
|
423
|
+
}, r.prototype.componentDidUpdate = function(t) {
|
|
424
|
+
var e, o, i, s, a, c, h, p, u;
|
|
425
|
+
t.rotation !== this.props.rotation ? (this.computeSizes(), this.recomputeCropPosition()) : t.aspect !== this.props.aspect ? this.computeSizes() : t.objectFit !== this.props.objectFit ? this.computeSizes() : t.zoom !== this.props.zoom ? this.recomputeCropPosition() : ((e = t.cropSize) === null || e === void 0 ? void 0 : e.height) !== ((o = this.props.cropSize) === null || o === void 0 ? void 0 : o.height) || ((i = t.cropSize) === null || i === void 0 ? void 0 : i.width) !== ((s = this.props.cropSize) === null || s === void 0 ? void 0 : s.width) ? this.computeSizes() : (((a = t.crop) === null || a === void 0 ? void 0 : a.x) !== ((c = this.props.crop) === null || c === void 0 ? void 0 : c.x) || ((h = t.crop) === null || h === void 0 ? void 0 : h.y) !== ((p = this.props.crop) === null || p === void 0 ? void 0 : p.y)) && this.emitCropAreaChange(), t.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef && (this.props.zoomWithScroll ? this.containerRef.addEventListener("wheel", this.onWheel, {
|
|
426
|
+
passive: !1
|
|
427
|
+
}) : this.clearScrollEvent()), t.video !== this.props.video && ((u = this.videoRef.current) === null || u === void 0 || u.load());
|
|
428
|
+
var d = this.getObjectFit();
|
|
429
|
+
d !== this.state.mediaObjectFit && this.setState({
|
|
430
|
+
mediaObjectFit: d
|
|
431
|
+
}, this.computeSizes);
|
|
432
|
+
}, r.prototype.getAspect = function() {
|
|
433
|
+
var t = this.props, e = t.cropSize, o = t.aspect;
|
|
434
|
+
return e ? e.width / e.height : o;
|
|
435
|
+
}, r.prototype.getObjectFit = function() {
|
|
436
|
+
var t, e, o, i;
|
|
437
|
+
if (this.props.objectFit === "cover") {
|
|
438
|
+
var s = this.imageRef.current || this.videoRef.current;
|
|
439
|
+
if (s && this.containerRef) {
|
|
440
|
+
this.containerRect = this.containerRef.getBoundingClientRect();
|
|
441
|
+
var a = this.containerRect.width / this.containerRect.height, c = ((t = this.imageRef.current) === null || t === void 0 ? void 0 : t.naturalWidth) || ((e = this.videoRef.current) === null || e === void 0 ? void 0 : e.videoWidth) || 0, h = ((o = this.imageRef.current) === null || o === void 0 ? void 0 : o.naturalHeight) || ((i = this.videoRef.current) === null || i === void 0 ? void 0 : i.videoHeight) || 0, p = c / h;
|
|
442
|
+
return p < a ? "horizontal-cover" : "vertical-cover";
|
|
443
|
+
}
|
|
444
|
+
return "horizontal-cover";
|
|
445
|
+
}
|
|
446
|
+
return this.props.objectFit;
|
|
447
|
+
}, r.prototype.onPinchStart = function(t) {
|
|
448
|
+
var e = r.getTouchPoint(t.touches[0]), o = r.getTouchPoint(t.touches[1]);
|
|
449
|
+
this.lastPinchDistance = E(e, o), this.lastPinchRotation = M(e, o), this.onDragStart(W(e, o));
|
|
450
|
+
}, r.prototype.onPinchMove = function(t) {
|
|
451
|
+
var e = this;
|
|
452
|
+
if (!(!this.currentDoc || !this.currentWindow)) {
|
|
453
|
+
var o = r.getTouchPoint(t.touches[0]), i = r.getTouchPoint(t.touches[1]), s = W(o, i);
|
|
454
|
+
this.onDrag(s), this.rafPinchTimeout && this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout), this.rafPinchTimeout = this.currentWindow.requestAnimationFrame(function() {
|
|
455
|
+
var a = E(o, i), c = e.props.zoom * (a / e.lastPinchDistance);
|
|
456
|
+
e.setNewZoom(c, s, {
|
|
457
|
+
shouldUpdatePosition: !1
|
|
458
|
+
}), e.lastPinchDistance = a;
|
|
459
|
+
var h = M(o, i), p = e.props.rotation + (h - e.lastPinchRotation);
|
|
460
|
+
e.props.onRotationChange && e.props.onRotationChange(p), e.lastPinchRotation = h;
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
}, r.prototype.render = function() {
|
|
464
|
+
var t = this, e, o = this.props, i = o.image, s = o.video, a = o.mediaProps, c = o.transform, h = o.crop, p = h.x, u = h.y, d = o.rotation, g = o.zoom, f = o.cropShape, m = o.showGrid, v = o.style, A = v.containerStyle, T = v.cropAreaStyle, D = v.mediaStyle, b = o.classes, Z = b.containerClassName, L = b.cropAreaClassName, z = b.mediaClassName, C = (e = this.state.mediaObjectFit) !== null && e !== void 0 ? e : this.getObjectFit();
|
|
465
|
+
return w.createElement("div", {
|
|
466
|
+
onMouseDown: this.onMouseDown,
|
|
467
|
+
onTouchStart: this.onTouchStart,
|
|
468
|
+
ref: function(O) {
|
|
469
|
+
return t.containerRef = O;
|
|
470
|
+
},
|
|
471
|
+
"data-testid": "container",
|
|
472
|
+
style: A,
|
|
473
|
+
className: S("reactEasyCrop_Container", Z)
|
|
474
|
+
}, i ? w.createElement("img", l({
|
|
475
|
+
alt: "",
|
|
476
|
+
className: S("reactEasyCrop_Image", C === "contain" && "reactEasyCrop_Contain", C === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", C === "vertical-cover" && "reactEasyCrop_Cover_Vertical", z)
|
|
477
|
+
}, a, {
|
|
478
|
+
src: i,
|
|
479
|
+
ref: this.imageRef,
|
|
480
|
+
style: l(l({}, D), {
|
|
481
|
+
transform: c || "translate(".concat(p, "px, ").concat(u, "px) rotate(").concat(d, "deg) scale(").concat(g, ")")
|
|
482
|
+
}),
|
|
483
|
+
onLoad: this.onMediaLoad
|
|
484
|
+
})) : s && w.createElement("video", l({
|
|
485
|
+
autoPlay: !0,
|
|
486
|
+
playsInline: !0,
|
|
487
|
+
loop: !0,
|
|
488
|
+
muted: !0,
|
|
489
|
+
className: S("reactEasyCrop_Video", C === "contain" && "reactEasyCrop_Contain", C === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", C === "vertical-cover" && "reactEasyCrop_Cover_Vertical", z)
|
|
490
|
+
}, a, {
|
|
491
|
+
ref: this.videoRef,
|
|
492
|
+
onLoadedMetadata: this.onMediaLoad,
|
|
493
|
+
style: l(l({}, D), {
|
|
494
|
+
transform: c || "translate(".concat(p, "px, ").concat(u, "px) rotate(").concat(d, "deg) scale(").concat(g, ")")
|
|
495
|
+
}),
|
|
496
|
+
controls: !1
|
|
497
|
+
}), (Array.isArray(s) ? s : [{
|
|
498
|
+
src: s
|
|
499
|
+
}]).map(function(P) {
|
|
500
|
+
return w.createElement("source", l({
|
|
501
|
+
key: P.src
|
|
502
|
+
}, P));
|
|
503
|
+
})), this.state.cropSize && w.createElement("div", {
|
|
504
|
+
style: l(l({}, T), {
|
|
505
|
+
width: this.state.cropSize.width,
|
|
506
|
+
height: this.state.cropSize.height
|
|
507
|
+
}),
|
|
508
|
+
"data-testid": "cropper",
|
|
509
|
+
className: S("reactEasyCrop_CropArea", f === "round" && "reactEasyCrop_CropAreaRound", m && "reactEasyCrop_CropAreaGrid", L)
|
|
510
|
+
}));
|
|
511
|
+
}, r.defaultProps = {
|
|
512
|
+
zoom: 1,
|
|
513
|
+
rotation: 0,
|
|
514
|
+
aspect: 4 / 3,
|
|
515
|
+
maxZoom: X,
|
|
516
|
+
minZoom: J,
|
|
517
|
+
cropShape: "rect",
|
|
518
|
+
objectFit: "contain",
|
|
519
|
+
showGrid: !0,
|
|
520
|
+
style: {},
|
|
521
|
+
classes: {},
|
|
522
|
+
mediaProps: {},
|
|
523
|
+
zoomSpeed: 1,
|
|
524
|
+
restrictPosition: !0,
|
|
525
|
+
zoomWithScroll: !0
|
|
526
|
+
}, r.getMousePoint = function(t) {
|
|
527
|
+
return {
|
|
528
|
+
x: Number(t.clientX),
|
|
529
|
+
y: Number(t.clientY)
|
|
530
|
+
};
|
|
531
|
+
}, r.getTouchPoint = function(t) {
|
|
532
|
+
return {
|
|
533
|
+
x: Number(t.clientX),
|
|
534
|
+
y: Number(t.clientY)
|
|
535
|
+
};
|
|
536
|
+
}, r;
|
|
537
|
+
}(w.Component)
|
|
538
|
+
);
|
|
539
|
+
export {
|
|
540
|
+
$ as default,
|
|
541
|
+
V as getInitialCropFromCroppedAreaPercentages,
|
|
542
|
+
U as getInitialCropFromCroppedAreaPixels
|
|
543
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createContext as t } from "react";
|
|
2
|
+
const r = t();
|
|
3
|
+
class o {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.usedNamespaces = {};
|
|
6
|
+
}
|
|
7
|
+
addUsedNamespaces(s) {
|
|
8
|
+
s.forEach((e) => {
|
|
9
|
+
this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
getUsedNamespaces() {
|
|
13
|
+
return Object.keys(this.usedNamespaces);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
r as I18nContext,
|
|
18
|
+
o as ReportNamespaces
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { unescape as e } from "./unescape.mjs";
|
|
2
|
+
let t = {
|
|
3
|
+
bindI18n: "languageChanged",
|
|
4
|
+
bindI18nStore: "",
|
|
5
|
+
transEmptyNodeValue: "",
|
|
6
|
+
transSupportBasicHtmlNodes: !0,
|
|
7
|
+
transWrapTextNodes: "",
|
|
8
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
9
|
+
useSuspense: !0,
|
|
10
|
+
unescape: e
|
|
11
|
+
};
|
|
12
|
+
function r() {
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
r as getDefaults
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const p = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, e = {
|
|
2
|
+
"&": "&",
|
|
3
|
+
"&": "&",
|
|
4
|
+
"<": "<",
|
|
5
|
+
"<": "<",
|
|
6
|
+
">": ">",
|
|
7
|
+
">": ">",
|
|
8
|
+
"'": "'",
|
|
9
|
+
"'": "'",
|
|
10
|
+
""": '"',
|
|
11
|
+
""": '"',
|
|
12
|
+
" ": " ",
|
|
13
|
+
" ": " ",
|
|
14
|
+
"©": "©",
|
|
15
|
+
"©": "©",
|
|
16
|
+
"®": "®",
|
|
17
|
+
"®": "®",
|
|
18
|
+
"…": "…",
|
|
19
|
+
"…": "…",
|
|
20
|
+
"/": "/",
|
|
21
|
+
"/": "/"
|
|
22
|
+
}, n = (t) => e[t], o = (t) => t.replace(p, n);
|
|
23
|
+
export {
|
|
24
|
+
o as unescape
|
|
25
|
+
};
|