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AAQ,gBAAoB,MAAO,CAAEtvB,UAAWg6B,EAAYr5B,MAAOA,EAAO,WAAY,YAClFb,GAAS6G,EACT,gBAAoB,MAAO,CAAE3G,UAAWi6B,GACpC,gBAAoB,EAAAl5B,EAAUxC,EAAS,CAAC,EAAG0B,EAAM,CAAEuD,IAAKA,EAAK2L,SAPlD,SAAUtN,GACzBsN,GAAYA,EAAStN,IACpBy3B,GAAkBH,IAAyBQ,EAAS93B,EACzD,EAI6FsV,aAAcA,MAClGmY,GAAe6J,IAA0B,gBAAoB,MAAO,CAAEn5B,UAAW,GAAGI,OAAOD,EAAW,eAAgBQ,MAAO,CAAEuG,MAAO,GAAG9G,OAAOi5B,EAAkB,QAC/J,gBAAoBc,EAAA,EAAWC,UAAW,CAAEC,SAAU,CAC9CC,KAAMf,EACNgB,YAAa,CACT3xB,KAAM,UACN/I,MAAOitB,GAAgB,CAAElD,QAASkQ,MAErCA,KACzB,IAEA,EAAK94B,YAAc,OACnB,IChFA,EDgFA,C","sources":["../../../node_modules/@m4b-design/anchor/es/link.js","../../../node_modules/@m4b-design/anchor/es/hooks/useI18nCopy.js","../../../node_modules/@m4b-design/anchor/es/anchor.js","../../../node_modules/@m4b-design/anchor/es/index.js","../../../node_modules/@m4b-design/carousel/es/core/_util/is.js","../../../node_modules/@m4b-design/carousel/es/core/_util/warning.js","../../../node_modules/@m4b-design/carousel/es/core/_util/classNames.js","../../../node_modules/@m4b-design/carousel/es/core/Carousel/indicator.js","../../../node_modules/@m4b-design/carousel/es/core/_util/keycode.js","../../../node_modules/@m4b-design/carousel/es/core/Carousel/arrow.js","../../../node_modules/@m4b-design/carousel/es/core/_util/hooks/useKeyboardEvent.js","../../../node_modules/@m4b-design/carousel/es/core/_util/resizeObserver.js","../../../node_modules/@m4b-design/carousel/es/core/_util/omit.js","../../../node_modules/@m4b-design/carousel/es/core/_util/hooks/useMergeProps.js","../../../node_modules/@m4b-design/carousel/es/core/Carousel/index.js","../../../node_modules/@m4b-design/carousel/es/core/_util/hooks/useInterval.js","../../../node_modules/@m4b-design/carousel/es/carousel.js","../../../node_modules/@m4b-design/carousel/es/index.js","../../../node_modules/@m4b-design/collapse/es/core/_util/is.js","../../../node_modules/@m4b-design/collapse/es/core/_util/classNames.js","../../../node_modules/@m4b-design/collapse/es/core/_class/icon-hover.js","../../../node_modules/@m4b-design/collapse/es/core/_util/keycode.js","../../../node_modules/@m4b-design/collapse/es/core/item.js","../../../node_modules/@m4b-design/collapse/es/core/_util/hooks/useKeyboardEvent.js","../../../node_modules/@m4b-design/collapse/es/core/_util/omit.js","../../../node_modules/@m4b-design/collapse/es/core/_util/hooks/useMergeValue.js","../../../node_modules/@m4b-design/collapse/es/core/_util/hooks/usePrevious.js","../../../node_modules/@m4b-design/collapse/es/core/_util/hooks/useMergeProps.js","../../../node_modules/@m4b-design/collapse/es/core/collapse.js","../../../node_modules/@m4b-design/collapse/es/core/index.js","../../../node_modules/@m4b-design/collapse/es/header.js","../../../node_modules/@m4b-design/collapse/es/item.js","../../../node_modules/@m4b-design/collapse/es/collapse.js","../../../node_modules/@m4b-design/collapse/es/index.js","../../../node_modules/@m4b-design/form/es/constant.js","../../../node_modules/@m4b-design/form/es/context.js","../../../node_modules/@m4b-design/form/es/utils.js","../../../node_modules/@m4b-design/form/es/hooks/useMergeProps.js","../../../node_modules/@m4b-design/form/es/promisify.js","../../../node_modules/@m4b-design/form/es/store.js","../../../node_modules/@m4b-design/form/es/useForm.js","../../../node_modules/@m4b-design/form/es/form.js","../../../node_modules/@m4b-design/form/es/form-item/control.js","../../../node_modules/@m4b-design/form/es/hooks/useI18nCopy.js","../../../node_modules/@m4b-design/form/es/form-item/form-label.js","../../../node_modules/@m4b-design/alert/es/hooks/use-controlled.js","../../../node_modules/@m4b-design/alert/es/hooks/useI18nCopy.js","../../../node_modules/@m4b-design/alert/es/components/MoreIcon.js","../../../node_modules/@m4b-design/alert/es/components/CollapseIcon.js","../../../node_modules/@m4b-design/alert/es/alert.js","../../../node_modules/@m4b-design/alert/es/assets/icon.js","../../../node_modules/@m4b-design/alert/es/banner.js","../../../node_modules/@m4b-design/alert/es/index.js","../../../node_modules/@m4b-design/form/es/form-item/form-item-tip.js","../../../node_modules/@m4b-design/form/es/form-item/index.js","../../../node_modules/@m4b-design/form/es/form-provider.js","../../../node_modules/@m4b-design/form/es/hooks/useWatch.js","../../../node_modules/@m4b-design/form/es/hooks/useContext.js","../../../node_modules/@m4b-design/form/es/form-list.js","../../../node_modules/@m4b-design/form/es/hooks/useState.js","../../../node_modules/@m4b-design/space/es/space.js","../../../node_modules/@m4b-design/space/es/index.js","../../../node_modules/@m4b-design/form/es/search-and-filter/context.js","../../../node_modules/@m4b-design/form/es/search-and-filter/filter-item.js","../../../node_modules/@m4b-design/grid/es/col.js","../../../node_modules/@m4b-design/grid/es/row.js","../../../node_modules/@m4b-design/grid/es/grid.js","../../../node_modules/@m4b-design/grid/es/grid-item.js","../../../node_modules/@m4b-design/grid/es/index.js","../../../node_modules/@m4b-design/form/es/search-and-filter/search-item.js","../../../node_modules/@m4b-design/form/es/search-and-filter/utils.js","../../../node_modules/@m4b-design/form/es/search-and-filter/expand.js","../../../node_modules/@m4b-design/form/es/search-and-filter/triggers.js","../../../node_modules/@m4b-design/form/es/search-and-filter/index.js","../../../node_modules/@m4b-design/form/es/index.js","../../../node_modules/@m4b-design/radio/es/children.js","../../../node_modules/@m4b-design/radio/es/icon-hover.js","../../../node_modules/@m4b-design/radio/es/radio.js","../../../node_modules/@m4b-design/radio/es/group.js","../../../node_modules/@m4b-design/radio/es/index.js","../../../node_modules/@m4b-design/rate/es/rate.js","../../../node_modules/@m4b-design/rate/es/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { Anchor as ArcoAnchor } from '@arco-design/web-react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport { IconWarning } from '@arco-design/iconbox-react-m4b-next';\nimport { ErrorLinkListContext } from './anchor';\nvar LinkRender = function (props) {\n var title = props.title, field = props.field, className = props.className, rest = __rest(props, [\"title\", \"field\", \"className\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-anchor-link\");\n var CustomTitle = function (props) {\n var list = props.list;\n var hasError = list.some(function (v) { return v === field; });\n return (React.createElement(\"div\", { className: \"\".concat(globalPrefixCls, \"-anchor-custom-link\") },\n React.createElement(\"span\", { className: \"\".concat(globalPrefixCls, \"-anchor-custom-link-text\") }, title),\n hasError && (React.createElement(\"div\", null,\n React.createElement(IconWarning, { style: { stroke: 'none' } })))));\n };\n return (React.createElement(ErrorLinkListContext.Consumer, null, function (list) {\n if (list === void 0) { list = []; }\n return (React.createElement(ArcoAnchor.Link, __assign({ title: typeof title === 'string' ? React.createElement(CustomTitle, { list: list }) : title }, rest, { \"data-tid\": \"m4b_anchor_link\", className: cx(prefixCls, \"\".concat(globalPrefixCls, \"-anchor-child-link\"), className) })));\n }));\n};\nvar Link = forwardRef(LinkRender);\nLink.displayName = 'AnchorLink';\nexport default Link;\n","import { ConfigProvider } from '@arco-design/web-react';\nimport { useContext } from 'react';\nvar defaultCopy = {\n addNewLabel: 'Add',\n};\nexport var useI18nCopy = function () {\n var _a;\n var locale = useContext(ConfigProvider.ConfigContext).locale;\n var t = (locale === null || locale === void 0 ? void 0 : locale.Anchor) || ((_a = locale === null || locale === void 0 ? void 0 : locale.M4B) === null || _a === void 0 ? void 0 : _a.Anchor) || defaultCopy;\n return t;\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport React, { useState, forwardRef, useRef, useCallback } from 'react';\nimport { Affix, Anchor as ArcoAnchor } from '@arco-design/web-react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport { IconAdd, IconDown, IconUp, IconMenuUnfold, IconMenuFold, } from '@arco-design/iconbox-react-m4b-next';\nimport AnchorLink from './link';\nimport './style/anchor.less';\nimport { useI18nCopy } from './hooks/useI18nCopy';\nexport var ErrorLinkListContext = React.createContext([]);\nfunction isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n}\nfunction findNode(dom, selector) {\n var s = isString(selector) && selector[0] === '#' ? \"[id='\".concat(selector.replace('#', ''), \"']\") : selector;\n try {\n return dom.querySelector(s);\n }\n catch (e) {\n console.error(e);\n return null;\n }\n}\nfunction getContainer(targetContainer) {\n if (isString(targetContainer)) {\n return findNode(document, targetContainer);\n }\n return targetContainer || window;\n}\nvar handleOptionsToLink = function (options) {\n return options.map(function (item) { return (React.createElement(AnchorLink, __assign({ key: item.href }, item), item.children && handleOptionsToLink(item.children))); });\n};\nvar AffixWrapper = function (_a) {\n var affix = _a.affix, children = _a.children, rest = __rest(_a, [\"affix\", \"children\"]);\n return (affix ? React.createElement(Affix, __assign({}, rest), children) : React.createElement(React.Fragment, null, children));\n};\nvar Anchor = function (props, ref) {\n var t = useI18nCopy();\n var className = props.className, style = props.style, title = props.title, fold = props.fold, children = props.children, _a = props.showAddBtn, showAddBtn = _a === void 0 ? false : _a, addBtnIcon = props.addBtnIcon, _b = props.addBtnText, addBtnText = _b === void 0 ? t.addNewLabel : _b, footer = props.footer, onAddItem = props.onAddItem, errorLinkList = props.errorLinkList, options = props.options, _c = props.linkLimitCount, linkLimitCount = _c === void 0 ? 10 : _c, fixedIconOffsetRight = props.fixedIconOffsetRight, _d = props.hash, hash = _d === void 0 ? false : _d, _e = props.affix, affix = _e === void 0 ? true : _e, offsetTop = props.offsetTop, offsetBottom = props.offsetBottom, affixStyle = props.affixStyle, propScrollContainer = props.scrollContainer, _f = props.anchorProps, anchorProps = _f === void 0 ? {} : _f, rest = __rest(props, [\"className\", \"style\", \"title\", \"fold\", \"children\", \"showAddBtn\", \"addBtnIcon\", \"addBtnText\", \"footer\", \"onAddItem\", \"errorLinkList\", \"options\", \"linkLimitCount\", \"fixedIconOffsetRight\", \"hash\", \"affix\", \"offsetTop\", \"offsetBottom\", \"affixStyle\", \"scrollContainer\", \"anchorProps\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-anchor\");\n var _g = __read(useState(true), 2), topUnFold = _g[0], setTopUnFold = _g[1];\n var _h = __read(useState(true), 2), rightUnFold = _h[0], setRightUnFold = _h[1];\n var optionsLength = options === null || options === void 0 ? void 0 : options.length;\n var initOptionsLength = useRef(options === null || options === void 0 ? void 0 : options.length);\n var getAffixTarget = useCallback(function () {\n return getContainer(propScrollContainer);\n }, [propScrollContainer]);\n var handleTopFold = function () {\n setTopUnFold(!topUnFold);\n };\n var handleRightFold = function () {\n setRightUnFold(!rightUnFold);\n };\n var isFolded = !topUnFold || !rightUnFold;\n var topFoldIcon = (React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-top-icon-wrapper\"), \"\".concat(prefixCls, \"-icon-wrapper\")) }, topUnFold ? (React.createElement(IconUp, { onClick: handleTopFold, className: \"\".concat(prefixCls, \"-top-icon\") })) : (React.createElement(IconDown, { onClick: handleTopFold, className: \"\".concat(prefixCls, \"-top-icon\") }))));\n var rightFoldIcon = (React.createElement(React.Fragment, null, rightUnFold ? (React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-right-icon-wrapper\"), \"\".concat(prefixCls, \"-icon-wrapper\")) },\n React.createElement(IconMenuUnfold, { onClick: handleRightFold, className: \"\".concat(prefixCls, \"-right-icon\") }))) : (React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-right-icon-wrapper\"), \"\".concat(prefixCls, \"-icon-wrapper\")), style: { right: fixedIconOffsetRight } },\n React.createElement(IconMenuFold, { onClick: handleRightFold, className: \"\".concat(prefixCls, \"-right-icon\") })))));\n var TitleNode = (React.createElement(React.Fragment, null, title && rightUnFold && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-header\") },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-header-\").concat(typeof title === 'string' ? 'title' : 'node') }, title)))));\n var FoldIcon = function () { return (React.createElement(React.Fragment, null,\n fold === 'right' && rightFoldIcon,\n fold === 'top' && topFoldIcon)); };\n var AnchorNode = isFolded ? null : (React.createElement(ArcoAnchor, __assign({ className: cx(\"\".concat(prefixCls, \"-list\")), scrollContainer: propScrollContainer, hash: hash, affix: false }, rest, { ref: ref }, anchorProps),\n React.createElement(ErrorLinkListContext.Provider, { value: errorLinkList }, options ? handleOptionsToLink(options) : children)));\n var FooterNode = (React.createElement(\"p\", { className: \"\".concat(prefixCls, \"-footer-container\") }, footer ? (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-footer\") }, footer)) : initOptionsLength.current + linkLimitCount > optionsLength ? (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-add-btn\"), onClick: onAddItem }, addBtnIcon !== null && addBtnIcon !== void 0 ? addBtnIcon : React.createElement(IconAdd, { height: \"16\", width: \"16\" }),\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-add-btn-text\") }, addBtnText))) : null));\n return (React.createElement(AffixWrapper, { affix: affix, target: getAffixTarget, offsetTop: offsetTop, offsetBottom: offsetBottom, affixStyle: affixStyle },\n React.createElement(\"div\", { \"data-tid\": \"m4b_anchor\", className: cx(prefixCls, !rightUnFold ? \"\".concat(prefixCls, \"-right-folded\") : undefined, !topUnFold ? \"\".concat(prefixCls, \"-top-folded\") : undefined, className), style: style },\n React.createElement(FoldIcon, null),\n TitleNode,\n AnchorNode,\n (showAddBtn || footer) && FooterNode)));\n};\nvar ForwardRefAnchor = forwardRef(Anchor);\nForwardRefAnchor.displayName = 'Anchor';\nexport default ForwardRefAnchor;\n","import _Anchor from './anchor';\nimport Link from './link';\nvar Anchor = _Anchor;\nAnchor.Link = Link;\nexport * from './interface';\nexport default Anchor;\n","var opt = Object.prototype.toString;\nexport function isArray(obj) {\n return opt.call(obj) === '[object Array]';\n}\nexport function isObject(obj) {\n return opt.call(obj) === '[object Object]';\n}\nexport function isString(obj) {\n return opt.call(obj) === '[object String]';\n}\nexport function isNumber(obj) {\n return opt.call(obj) === '[object Number]' && obj === obj; // eslint-disable-line\n}\nexport function isRegExp(obj) {\n return opt.call(obj) === '[object RegExp]';\n}\nexport function isFile(obj) {\n return opt.call(obj) === '[object File]';\n}\nexport function isBlob(obj) {\n return opt.call(obj) === '[object Blob]';\n}\nfunction isHex(color) {\n return /^#[a-fA-F0-9]{3}$|#[a-fA-F0-9]{6}$/.test(color);\n}\nfunction isRgb(color) {\n return /^rgb\\((\\s*\\d+\\s*,?){3}\\)$/.test(color);\n}\nfunction isRgba(color) {\n return /^rgba\\((\\s*\\d+\\s*,\\s*){3}\\s*\\d(\\.\\d+)?\\s*\\)$/.test(color);\n}\nexport function isColor(color) {\n return isHex(color) || isRgb(color) || isRgba(color);\n}\nexport function isUndefined(obj) {\n return obj === undefined;\n}\nexport function isNull(obj) {\n return obj === null;\n}\nexport function isNullOrUndefined(obj) {\n return obj === null || obj === undefined;\n}\nexport function isFunction(obj) {\n return typeof obj === 'function';\n}\nexport function isEmptyObject(obj) {\n return isObject(obj) && Object.keys(obj).length === 0;\n}\nexport function isEmptyReactNode(node) {\n return !node && (node === null || node === undefined || node === '' || node === false);\n}\nexport function isExist(obj) {\n return obj || obj === 0;\n}\nexport function isWindow(el) {\n return el === window;\n}\nexport function isBoolean(value) {\n return typeof value === 'boolean';\n}\n","export default function warning(condition, message) {\n if (process.env.NODE_ENV !== 'production' && console) {\n if (condition) {\n console.error(\"[@arco-design/web-react]: \".concat(message));\n }\n }\n}\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { isArray, isObject, isString } from './is';\nimport warning from './warning';\nexport default function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var length = args.length;\n var classNames = [];\n var _loop_1 = function (i) {\n var v = args[i];\n if (!v) {\n return \"continue\";\n }\n if (isString(v)) {\n classNames.push(v);\n }\n else if (isArray(v)) {\n classNames = classNames.concat(v);\n }\n else if (isObject(v)) {\n Object.keys(v).forEach(function (k) {\n if (v[k]) {\n classNames.push(k);\n }\n });\n }\n else {\n warning(true, 'arguments must be one of string/array/object.');\n }\n };\n for (var i = 0; i < length; i++) {\n _loop_1(i);\n }\n return __spreadArray([], __read(new Set(classNames)), false).join(' ');\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { ConfigProvider } from '@arco-design/web-react';\nimport React, { useContext } from 'react';\nimport cs from '../_util/classNames';\nfunction CarouselIndicator(props, ref) {\n var _a, _b;\n var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;\n var className = props.className, _c = props.type, type = _c === void 0 ? 'line' : _c, _d = props.count, count = _d === void 0 ? 2 : _d, _e = props.activeIndex, activeIndex = _e === void 0 ? 0 : _e, _f = props.position, position = _f === void 0 ? 'bottom' : _f, _g = props.trigger, trigger = _g === void 0 ? 'click' : _g, onSelectIndex = props.onSelectIndex;\n var prefixCls = getPrefixCls('carousel-indicator');\n var indicatorContent = [];\n if (type === 'slider') {\n var step = 100 / count;\n indicatorContent.push(React.createElement(\"span\", { key: 0, style: {\n width: \"\".concat(step, \"%\"),\n left: \"\".concat(activeIndex * step, \"%\"),\n }, className: cs(\"\".concat(prefixCls, \"-item\"), \"\".concat(prefixCls, \"-item-active\")) }));\n }\n else {\n for (var i = 0; i < count; i++) {\n indicatorContent.push(React.createElement(\"span\", { key: i, \"data-index\": i, className: cs(\"\".concat(prefixCls, \"-item\"), (_a = {},\n _a[\"\".concat(prefixCls, \"-item-active\")] = i === activeIndex,\n _a)) }));\n }\n }\n var wrapperProps = (_b = {\n ref: ref,\n className: cs(prefixCls, \"\".concat(prefixCls, \"-\").concat(type), \"\".concat(prefixCls, \"-\").concat(position), className)\n },\n _b[trigger === 'click' ? 'onClick' : 'onMouseMove'] = function (event) {\n event.preventDefault();\n if (type === 'slider') {\n // clear up effect from event bubbling\n if (event.target === event.currentTarget) {\n var _a = event.currentTarget.getBoundingClientRect(), startX = _a.x, width = _a.width;\n var offsetX = event.nativeEvent.clientX - startX;\n var index = ~~((offsetX / width) * count);\n index !== activeIndex && onSelectIndex(index);\n }\n }\n else {\n var dataIndex = event.target.getAttribute('data-index');\n // Judge if data-index exists at first, event.target can be the wrapper of indicators\n dataIndex && +dataIndex !== activeIndex && onSelectIndex(+dataIndex);\n }\n },\n _b);\n return React.createElement(\"div\", __assign({}, wrapperProps), indicatorContent);\n}\nvar CarouselIndicatorComponent = React.forwardRef(CarouselIndicator);\nexport default CarouselIndicatorComponent;\n","// keyboard keycode\nexport var Enter = {\n key: 'Enter',\n code: 13,\n};\nexport var Esc = {\n key: 'Escape',\n code: 27,\n};\nexport var Backspace = {\n key: 'Backspace',\n code: 8,\n};\nexport var Tab = {\n key: 'Tab',\n code: 9,\n};\nexport var Space = {\n key: '',\n code: 32,\n};\nexport var ArrowUp = {\n key: 'ArrowUp',\n code: 38,\n};\nexport var ArrowDown = {\n key: 'ArrowDown',\n code: 40,\n};\nexport var ArrowLeft = {\n key: 'ArrowLeft',\n code: 37,\n};\nexport var ArrowRight = {\n key: 'ArrowRight',\n code: 39,\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { ConfigProvider } from '@arco-design/web-react';\nimport React, { useContext } from 'react';\nimport IconLeft from '@arco-design/web-react/icon/react-icon/IconLeft';\nimport IconRight from '@arco-design/web-react/icon/react-icon/IconRight';\nimport IconUp from '@arco-design/web-react/icon/react-icon/IconUp';\nimport IconDown from '@arco-design/web-react/icon/react-icon/IconDown';\nimport cs from '../_util/classNames';\nimport useKeyboardEvent from '../_util/hooks/useKeyboardEvent';\nfunction CarouselArrow(props, ref) {\n var _a;\n var className = props.className, _b = props.direction, direction = _b === void 0 ? 'horizontal' : _b, _c = props.showArrow, showArrow = _c === void 0 ? 'always' : _c, prev = props.prev, next = props.next, icons = props.icons;\n var getKeyboardEvents = useKeyboardEvent();\n var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;\n var prefixCls = getPrefixCls('carousel');\n var arrowClass = cs(\"\".concat(prefixCls, \"-arrow\"), (_a = {},\n _a[\"\".concat(prefixCls, \"-arrow-hover\")] = showArrow === 'hover',\n _a), className);\n var iconPrev = icons && icons.hasOwnProperty('prev') ? (icons.prev) : direction === 'horizontal' ? (React.createElement(IconLeft, null)) : (React.createElement(IconUp, null));\n var iconNext = icons && icons.hasOwnProperty('next') ? (icons.next) : direction === 'horizontal' ? (React.createElement(IconRight, null)) : (React.createElement(IconDown, null));\n return (React.createElement(\"div\", { ref: ref, className: arrowClass },\n React.createElement(\"div\", __assign({ className: \"\".concat(prefixCls, \"-arrow-\").concat(direction === 'vertical' ? 'top' : 'left'), onClick: prev, role: \"button\", tabIndex: 0 }, getKeyboardEvents({\n onPressEnter: prev,\n })), iconPrev),\n React.createElement(\"div\", __assign({ className: \"\".concat(prefixCls, \"-arrow-\").concat(direction === 'vertical' ? 'bottom' : 'right'), onClick: next, role: \"button\", tabIndex: 0 }, getKeyboardEvents({\n onPressEnter: next,\n })), iconNext)));\n}\nvar CarouselArrowComponent = React.forwardRef(CarouselArrow);\nexport default CarouselArrowComponent;\n","import { useCallback } from 'react';\nimport { Enter, ArrowDown, ArrowUp, ArrowLeft, ArrowRight } from '../keycode';\nexport default function useKeyboardEvent(props) {\n var getEventListeners = useCallback(function (callbacks) {\n return {\n onKeyDown: function (e) {\n var _a, _b, _c, _d, _e, _f;\n var keyCode = e.keyCode || e.which;\n if (keyCode === Enter.code) {\n (_a = callbacks.onPressEnter) === null || _a === void 0 ? void 0 : _a.call(callbacks, e);\n }\n if (keyCode === ArrowDown.code) {\n (_b = callbacks.onArrowDown) === null || _b === void 0 ? void 0 : _b.call(callbacks, e);\n }\n if (keyCode === ArrowLeft.code) {\n (_c = callbacks.onArrowLeft) === null || _c === void 0 ? void 0 : _c.call(callbacks, e);\n }\n if (keyCode === ArrowRight.code) {\n (_d = callbacks.onArrowRight) === null || _d === void 0 ? void 0 : _d.call(callbacks, e);\n }\n if (keyCode === ArrowUp.code) {\n (_e = callbacks.onArrowUp) === null || _e === void 0 ? void 0 : _e.call(callbacks, e);\n }\n (_f = props === null || props === void 0 ? void 0 : props.onKeyDown) === null || _f === void 0 ? void 0 : _f.call(props, e);\n },\n };\n }, []);\n return getEventListeners;\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport React from 'react';\nimport ResizeObserver from 'resize-observer-polyfill';\nimport lodashThrottle from 'lodash/throttle';\nimport { findDOMNode } from 'react-dom';\nvar ResizeObserverComponent = /** @class */ (function (_super) {\n __extends(ResizeObserverComponent, _super);\n function ResizeObserverComponent() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.componentWillUnmount = function () {\n if (_this.resizeObserver) {\n _this.destroyResizeObserver();\n }\n };\n _this.createResizeObserver = function () {\n var _a = _this.props.throttle, throttle = _a === void 0 ? true : _a;\n var onResize = function (entry) {\n var _a, _b;\n (_b = (_a = _this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entry);\n };\n var resizeHandler = throttle ? lodashThrottle(onResize) : onResize;\n var firstExec = true; // 首次监听时,立即执行一次 onResize,之前行为保持一致,避免布局类组件出现闪动的情况\n _this.resizeObserver = new ResizeObserver(function (entry) {\n if (firstExec) {\n firstExec = false;\n onResize(entry);\n }\n resizeHandler(entry);\n });\n _this.resizeObserver.observe(findDOMNode(_this));\n };\n _this.destroyResizeObserver = function () {\n _this.resizeObserver && _this.resizeObserver.disconnect();\n _this.resizeObserver = null;\n };\n return _this;\n }\n ResizeObserverComponent.prototype.componentDidMount = function () {\n if (!React.isValidElement(this.props.children)) {\n console.warn('The children of ResizeObserver is invalid.');\n }\n else {\n this.createResizeObserver();\n }\n };\n ResizeObserverComponent.prototype.componentDidUpdate = function () {\n if (!this.resizeObserver && findDOMNode(this)) {\n this.createResizeObserver();\n }\n };\n ResizeObserverComponent.prototype.render = function () {\n return this.props.children;\n };\n return ResizeObserverComponent;\n}(React.Component));\nexport default ResizeObserverComponent;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n// delete keys from object\nexport default function omit(obj, keys /* string 为了某些没有声明的属性被omit */) {\n var clone = __assign({}, obj);\n keys.forEach(function (key) {\n if (key in clone) {\n delete clone[key];\n }\n });\n return clone;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { useMemo } from 'react';\nimport omit from '../omit';\nexport default function useMergeProps(componentProps, defaultProps, globalComponentConfig) {\n var _ignorePropsFromGlobal = componentProps._ignorePropsFromGlobal;\n var _defaultProps = useMemo(function () {\n return __assign(__assign({}, defaultProps), (_ignorePropsFromGlobal ? {} : globalComponentConfig));\n }, [defaultProps, globalComponentConfig, _ignorePropsFromGlobal]);\n var props = useMemo(function () {\n // Must remove property of MergePropsOptions before passing it to component\n var mProps = omit(componentProps, ['_ignorePropsFromGlobal']);\n // https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react/src/ReactElement.js#L312\n for (var propName in _defaultProps) {\n if (mProps[propName] === undefined) {\n mProps[propName] = _defaultProps[propName];\n }\n }\n return mProps;\n }, [componentProps, _defaultProps]);\n return props;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { ConfigProvider } from '@arco-design/web-react';\nimport React, { useContext, useEffect, useImperativeHandle, useRef, useState, } from 'react';\nimport cs from '../_util/classNames';\nimport CarouselIndicator from './indicator';\nimport CarouselArrow from './arrow';\nimport { useInterval } from '../_util/hooks/useInterval';\nimport ResizeObserver from '../_util/resizeObserver';\nimport warning from '../_util/warning';\nimport omit from '../_util/omit';\nimport useMergeProps from '../_util/hooks/useMergeProps';\nvar DEFAULT_AUTO_PLAY_INTERVAL = 3000;\nvar defaultProps = {\n animation: 'slide',\n indicatorType: 'dot',\n indicatorPosition: 'bottom',\n direction: 'horizontal',\n showArrow: 'always',\n trigger: 'click',\n moveSpeed: 500,\n timingFunc: 'cubic-bezier(0.34, 0.69, 0.1, 1)',\n};\nfunction Carousel(baseProps, ref) {\n var _a, _b;\n var _c = useContext(ConfigProvider.ConfigContext), getPrefixCls = _c.getPrefixCls, componentConfig = _c.componentConfig, rtl = _c.rtl;\n var props = useMergeProps(baseProps, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.Carousel);\n var style = props.style, className = props.className, children = props.children, currentIndex = props.currentIndex, animation = props.animation, trigger = props.trigger, direction = props.direction, moveSpeed = props.moveSpeed, timingFunc = props.timingFunc, indicatorType = props.indicatorType, indicatorPosition = props.indicatorPosition, indicatorClassName = props.indicatorClassName, showArrow = props.showArrow, miniRender = props.miniRender, arrowClassName = props.arrowClassName, carousel = props.carousel, icons = props.icons, onChange = props.onChange, rest = __rest(props, [\"style\", \"className\", \"children\", \"currentIndex\", \"animation\", \"trigger\", \"direction\", \"moveSpeed\", \"timingFunc\", \"indicatorType\", \"indicatorPosition\", \"indicatorClassName\", \"showArrow\", \"miniRender\", \"arrowClassName\", \"carousel\", \"icons\", \"onChange\"]);\n // TODO 兼容 autoPlaySpeed, 3.x 移除\n var autoPlay = props.autoPlay;\n if (autoPlay && props.autoPlaySpeed) {\n autoPlay = {\n interval: props.autoPlaySpeed,\n };\n warning(true, \"[Arco Carousel] The 'autoPlaySpeed' property will be removed in the next major version, please use 'autoPlay.interval' instead.\");\n }\n var childrenList = React.Children.toArray(children).filter(function (child) {\n return React.isValidElement(child);\n });\n var childrenLength = childrenList.length;\n var refDom = useRef(null);\n var refSliderWrapper = useRef(null);\n var refAnimationTimer = useRef(null);\n var _d = __read(useState(typeof currentIndex === 'number' ? getValidIndex(currentIndex) : 0), 2), index = _d[0], setIndex = _d[1];\n var _e = __read(useState(index), 2), previousIndex = _e[0], setPreviousIndex = _e[1];\n var _f = __read(useState(false), 2), isPause = _f[0], setIsPause = _f[1];\n var _g = __read(useState(false), 2), isAnimating = _g[0], setIsAnimating = _g[1];\n var _h = __read(useState(null), 2), slideDirection = _h[0], setSlideDirection = _h[1];\n var _j = __read(useState({\n sliderWrapper: null,\n indicatorWrapper: null,\n }), 2), computedStyle = _j[0], setComputedStyle = _j[1];\n var mergedIndex = typeof currentIndex === 'number' ? getValidIndex(currentIndex) : index;\n var prevIndex = getValidIndex(mergedIndex - 1);\n var nextIndex = getValidIndex(mergedIndex + 1);\n var autoPlayInterval = typeof autoPlay === 'object' && autoPlay.interval\n ? autoPlay.interval\n : DEFAULT_AUTO_PLAY_INTERVAL;\n useEffect(function () {\n return function () { return refAnimationTimer.current && clearTimeout(refAnimationTimer.current); };\n }, []);\n useEffect(function () {\n slideTo({\n targetIndex: mergedIndex,\n });\n }, [mergedIndex]);\n var resetInterval = useInterval(function () {\n slideTo({\n targetIndex: nextIndex,\n });\n }, autoPlay && !isPause && childrenLength > 1 ? autoPlayInterval : null);\n useImperativeHandle(carousel, function () {\n return {\n dom: refDom.current,\n goto: function (_a) {\n var index = _a.index, isNegative = _a.isNegative, isManual = _a.isManual, resetAutoPlayInterval = _a.resetAutoPlayInterval;\n slideTo({\n targetIndex: getValidIndex(index),\n isNegative: isNegative,\n isManual: isManual,\n resetAutoPlayInterval: resetAutoPlayInterval,\n });\n },\n };\n });\n function getValidIndex(i) {\n var indexNumber = +i;\n return typeof indexNumber === 'number' && !isNaN(indexNumber)\n ? (indexNumber + childrenLength) % childrenLength\n : i;\n }\n function slideTo(_a) {\n var targetIndex = _a.targetIndex, _b = _a.isNegative, isNegative = _b === void 0 ? false : _b, _c = _a.isManual, isManual = _c === void 0 ? false : _c, _d = _a.resetAutoPlayInterval, resetAutoPlayInterval = _d === void 0 ? false : _d;\n if (!isAnimating && targetIndex !== mergedIndex) {\n setIsAnimating(true);\n setIndex(targetIndex);\n setPreviousIndex(index);\n setSlideDirection(isNegative ? 'negative' : 'positive');\n onChange && onChange(targetIndex, mergedIndex, isManual);\n if (autoPlay && resetAutoPlayInterval) {\n resetInterval();\n }\n refAnimationTimer.current = setTimeout(function () {\n setIsAnimating(false);\n refAnimationTimer.current = null;\n }, moveSpeed);\n }\n }\n function computeStyle() {\n if (animation === 'card') {\n if (refSliderWrapper.current) {\n var sliderElement = refSliderWrapper.current.children[0];\n if (!sliderElement) {\n return;\n }\n var totalWidth = refSliderWrapper.current.clientWidth;\n var sliderWidth = sliderElement.clientWidth;\n var edge = (totalWidth - sliderWidth) / 2;\n // deltaZ is TranslateZ(-Zpx) of prev/next slider's style\n // perspective / (perspective + deltaZ) = x / X\n var deltaZ = 200;\n var x = totalWidth / 2;\n var X = sliderWidth;\n // avoid getting a huge perspective value\n var perspective = x + 50 >= X ? deltaZ * 4 : (deltaZ * x) / (X - x);\n setComputedStyle({\n sliderWrapper: {\n perspective: perspective,\n },\n indicatorWrapper: {\n width: 'auto',\n left: edge,\n right: edge,\n },\n });\n }\n }\n else {\n setComputedStyle({\n sliderWrapper: null,\n indicatorWrapper: null,\n });\n }\n }\n var prefixCls = getPrefixCls('carousel');\n var classNames = cs(prefixCls, \"\".concat(prefixCls, \"-indicator-position-\").concat(indicatorPosition), (_a = {},\n _a[\"\".concat(prefixCls, \"-rtl\")] = rtl,\n _a), className);\n var eventHandlers = __assign({}, (autoPlay && (typeof autoPlay !== 'object' || autoPlay.hoverToPause !== false)\n ? {\n onMouseEnter: function () { return setIsPause(true); },\n onMouseLeave: function () { return setIsPause(false); },\n }\n : null));\n return (React.createElement(ResizeObserver, { onResize: computeStyle },\n React.createElement(\"div\", __assign({ ref: function (_ref) {\n ref = _ref;\n refDom.current = ref;\n }, className: classNames, style: style }, omit(rest, ['autoplay', 'autoPlaySpeed']), eventHandlers),\n React.createElement(\"div\", { ref: refSliderWrapper, style: computedStyle.sliderWrapper, className: cs(\"\".concat(prefixCls, \"-\").concat(animation), \"\".concat(prefixCls, \"-\").concat(direction), (_b = {},\n _b[\"\".concat(prefixCls, \"-negative\")] = slideDirection === 'negative',\n _b)) }, childrenList.map(function (child, index) {\n var _a;\n var isCurrent = index === mergedIndex;\n var isPrev = index === prevIndex;\n var isNext = index === nextIndex;\n var shouldRenderChild = !miniRender || isCurrent || isPrev || isNext;\n if (!shouldRenderChild) {\n return null;\n }\n var _b = child.props, childStyle = _b.style, childClassName = _b.className, childOnClick = _b.onClick;\n return React.cloneElement(child, {\n 'aria-hidden': !isCurrent,\n style: __assign({ transitionTimingFunction: timingFunc, transitionDuration: \"\".concat(moveSpeed, \"ms\"), animationTimingFunction: timingFunc, animationDuration: \"\".concat(moveSpeed, \"ms\") }, childStyle),\n className: cs(childClassName, (_a = {},\n _a[\"\".concat(prefixCls, \"-item-prev\")] = isPrev,\n _a[\"\".concat(prefixCls, \"-item-next\")] = isNext,\n _a[\"\".concat(prefixCls, \"-item-current\")] = isCurrent,\n _a[\"\".concat(prefixCls, \"-item-slide-in\")] = animation === 'slide' && slideDirection && isAnimating && isCurrent,\n _a[\"\".concat(prefixCls, \"-item-slide-out\")] = animation === 'slide' && slideDirection && isAnimating && index === previousIndex,\n _a)),\n onClick: function (event) {\n childOnClick && childOnClick(event);\n slideTo({\n targetIndex: index,\n isNegative: index === prevIndex,\n isManual: true,\n });\n },\n });\n })),\n indicatorType !== 'never' && childrenLength > 1 && (React.createElement(\"div\", { style: computedStyle.indicatorWrapper, className: cs(\"\".concat(prefixCls, \"-indicator-wrapper\"), \"\".concat(prefixCls, \"-indicator-wrapper-\").concat(indicatorPosition)) },\n React.createElement(CarouselIndicator, { className: indicatorClassName, type: indicatorType, count: childrenLength, activeIndex: mergedIndex, position: indicatorPosition, trigger: trigger, onSelectIndex: function (index) {\n return slideTo({\n targetIndex: index,\n isNegative: index < mergedIndex,\n isManual: true,\n });\n } }))),\n showArrow !== 'never' && childrenLength > 1 && (React.createElement(CarouselArrow, { className: arrowClassName, direction: direction, showArrow: showArrow, icons: icons, prev: function () {\n return slideTo({\n targetIndex: prevIndex,\n isNegative: true,\n isManual: true,\n });\n }, next: function () {\n return slideTo({\n targetIndex: nextIndex,\n isManual: true,\n });\n } })))));\n}\nvar CarouselComponent = React.forwardRef(Carousel);\nCarouselComponent.displayName = 'Carousel';\nexport default CarouselComponent;\n","import { useRef, useEffect } from 'react';\nexport function useInterval(callback, delay) {\n var refIntervalId = useRef(null);\n var refSavedCallback = useRef();\n var setUpInterval = function () {\n if (delay !== null) {\n refIntervalId.current = setInterval(function () {\n refSavedCallback.current();\n }, delay);\n }\n };\n var cleanUpInterval = function () {\n refIntervalId.current && clearInterval(refIntervalId.current);\n };\n var resetInterval = function () {\n cleanUpInterval();\n setUpInterval();\n };\n // Remember the latest function.\n useEffect(function () {\n refSavedCallback.current = callback;\n }, [callback]);\n // Set up the interval.\n useEffect(function () {\n setUpInterval();\n return cleanUpInterval;\n }, [delay]);\n return resetInterval;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { IconLeft, IconRight } from '@arco-design/iconbox-react-m4b-next';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { ArcoIconWrapper } from '@m4b-design/utils';\nimport cx from 'classnames';\nimport ArcoCarousel from './core/Carousel';\nimport './style/carousel.less';\nvar CarouselRender = function (props, ref) {\n var _a;\n var className = props.className, _b = props.arrowSize, arrowSize = _b === void 0 ? 'large' : _b, _c = props.indicatorType, indicatorType = _c === void 0 ? 'line' : _c, _d = props.indicatorColor, indicatorColor = _d === void 0 ? 'white' : _d, _icons = props.icons, hideIndicatorWrapper = props.hideIndicatorWrapper, restProps = __rest(props, [\"className\", \"arrowSize\", \"indicatorType\", \"indicatorColor\", \"icons\", \"hideIndicatorWrapper\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-carousel\");\n var icons = __assign({ prev: React.createElement(ArcoIconWrapper, { Icon: IconLeft }), next: React.createElement(ArcoIconWrapper, { Icon: IconRight }) }, (_icons !== null && _icons !== void 0 ? _icons : {}));\n return (React.createElement(ArcoCarousel, __assign({ indicatorType: indicatorType, className: cx(prefixCls, \"\".concat(prefixCls, \"-arrow-\").concat(arrowSize), \"\".concat(prefixCls, \"-indicator-\").concat(indicatorColor), (_a = {}, _a[\"\".concat(prefixCls, \"-indicator-hide-wrapper\")] = hideIndicatorWrapper, _a), className), ref: ref, icons: icons }, restProps, { \"data-tid\": \"m4b_carousel\" })));\n};\nvar Carousel = forwardRef(CarouselRender);\nCarousel.displayName = 'Carousel';\nexport default Carousel;\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\n/* eslint-disable import/first */\n// @ts-nocheck\nimport { Carousel as ArcoCarousel } from '@arco-design/web-react';\nimport Carousel from './carousel';\n// index文件中导出需要展示在文档站中的关键props\n/**\n * 保留 ArcoCarousel 的引入不被树摇,让组件arco样式的按需加载功能可用。\n */\n(function (o) { })(ArcoCarousel);\nexport * from './interface';\nexport default Carousel;\n","var opt = Object.prototype.toString;\nexport function isArray(obj) {\n return opt.call(obj) === '[object Array]';\n}\nexport function isObject(obj) {\n return opt.call(obj) === '[object Object]';\n}\nexport function isString(obj) {\n return opt.call(obj) === '[object String]';\n}\nexport function isNumber(obj) {\n return opt.call(obj) === '[object Number]' && obj === obj; // eslint-disable-line\n}\nexport function isRegExp(obj) {\n return opt.call(obj) === '[object RegExp]';\n}\nexport function isFile(obj) {\n return opt.call(obj) === '[object File]';\n}\nexport function isBlob(obj) {\n return opt.call(obj) === '[object Blob]';\n}\nfunction isHex(color) {\n return /^#[a-fA-F0-9]{3}$|#[a-fA-F0-9]{6}$/.test(color);\n}\nfunction isRgb(color) {\n return /^rgb\\((\\s*\\d+\\s*,?){3}\\)$/.test(color);\n}\nfunction isRgba(color) {\n return /^rgba\\((\\s*\\d+\\s*,\\s*){3}\\s*\\d(\\.\\d+)?\\s*\\)$/.test(color);\n}\nexport function isColor(color) {\n return isHex(color) || isRgb(color) || isRgba(color);\n}\nexport function isUndefined(obj) {\n return obj === undefined;\n}\nexport function isNull(obj) {\n return obj === null;\n}\nexport function isNullOrUndefined(obj) {\n return obj === null || obj === undefined;\n}\nexport function isFunction(obj) {\n return typeof obj === 'function';\n}\nexport function isEmptyObject(obj) {\n return isObject(obj) && Object.keys(obj).length === 0;\n}\nexport function isExist(obj) {\n return obj || obj === 0;\n}\nexport function isWindow(el) {\n return el === window;\n}\nexport function isDayjs(time) {\n // dayjs.isDayjs 在实际应用场景,比如多个版本的 dayjs 会失效\n return (isObject(time) &&\n (('$y' in time &&\n '$M' in time &&\n '$D' in time &&\n '$d' in time &&\n '$H' in time &&\n '$m' in time &&\n '$s' in time) ||\n time._isAMomentObject) // 兼容 moment 的验证\n );\n}\nexport function isBoolean(value) {\n return typeof value === 'boolean';\n}\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { isArray, isObject, isString } from './is';\nimport warning from './warning';\nexport default function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var length = args.length;\n var classNames = [];\n var _loop_1 = function (i) {\n var v = args[i];\n if (!v) {\n return \"continue\";\n }\n if (isString(v)) {\n classNames.push(v);\n }\n else if (isArray(v)) {\n classNames = classNames.concat(v);\n }\n else if (isObject(v)) {\n Object.keys(v).forEach(function (k) {\n if (v[k]) {\n classNames.push(k);\n }\n });\n }\n else {\n warning(true, 'arguments must be one of string/array/object.');\n }\n };\n for (var i = 0; i < length; i++) {\n _loop_1(i);\n }\n return __spreadArray([], __read(new Set(classNames)), false).join(' ');\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { useContext } from 'react';\nimport { ConfigProvider } from '@arco-design/web-react';\nimport cs from '../_util/classNames';\nvar ConfigContext = ConfigProvider.ConfigContext;\nexport default function IconHover(props) {\n var _a;\n var children = props.children, className = props.className, disabled = props.disabled, prefix = props.prefix, _b = props.size, size = _b === void 0 ? 'default' : _b, rest = __rest(props, [\"children\", \"className\", \"disabled\", \"prefix\", \"size\"]);\n var getPrefixCls = useContext(ConfigContext).getPrefixCls;\n var prefixCls = getPrefixCls('icon-hover');\n return (React.createElement(\"span\", __assign({ className: cs(prefixCls, (_a = {},\n _a[\"\".concat(prefix, \"-icon-hover\")] = prefix,\n _a[\"\".concat(prefixCls, \"-size-\").concat(size)] = size && size !== 'default',\n _a[\"\".concat(prefixCls, \"-disabled\")] = disabled,\n _a), className), onClick: props.onClick }, rest), children));\n}\n","// keyboard keycode\nexport var Enter = {\n key: 'Enter',\n code: 13,\n};\nexport var Esc = {\n key: 'Escape',\n code: 27,\n};\nexport var Backspace = {\n key: 'Backspace',\n code: 8,\n};\nexport var Tab = {\n key: 'Tab',\n code: 9,\n};\nexport var Space = {\n key: '',\n code: 32,\n};\nexport var ArrowUp = {\n key: 'ArrowUp',\n code: 38,\n};\nexport var ArrowDown = {\n key: 'ArrowDown',\n code: 40,\n};\nexport var ArrowLeft = {\n key: 'ArrowLeft',\n code: 37,\n};\nexport var ArrowRight = {\n key: 'ArrowRight',\n code: 39,\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { useContext } from 'react';\nimport { Transition } from 'react-transition-group';\nimport { ConfigProvider } from '@arco-design/web-react';\nimport cs from 'classnames';\nimport IconHover from './_class/icon-hover';\nimport { CollapseContext } from './collapse';\nimport useKeyboardEvent from './_util/hooks/useKeyboardEvent';\nfunction Item(props, ref) {\n var _a, _b, _c, _d, _e;\n var _f;\n var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;\n var ctx = useContext(CollapseContext);\n var getEventListeners = useKeyboardEvent();\n var children = props.children, name = props.name, header = props.header, className = props.className, style = props.style, contentStyle = props.contentStyle, extra = props.extra, disabled = props.disabled, destroyOnHide = props.destroyOnHide, expandIcon = props.expandIcon, _g = props.showExpandIcon, showExpandIcon = _g === void 0 ? true : _g, rest = __rest(props, [\"children\", \"name\", \"header\", \"className\", \"style\", \"contentStyle\", \"extra\", \"disabled\", \"destroyOnHide\", \"expandIcon\", \"showExpandIcon\"]);\n var prefixCls = getPrefixCls('collapse-item');\n var isExpanded = ((_f = ctx.activeKeys) === null || _f === void 0 ? void 0 : _f.indexOf(name)) > -1;\n var icon = showExpandIcon ? ('expandIcon' in props ? expandIcon : ctx.expandIcon) : null;\n var clickEventHandler = function (e, regionLevel) {\n if (disabled)\n return;\n var triggerRegion = ctx.triggerRegion;\n var triggerRegionLevel = triggerRegion === 'icon' ? 0 : triggerRegion === 'header' ? 1 : 2;\n if (regionLevel <= triggerRegionLevel) {\n ctx.onToggle(name, e);\n e.stopPropagation();\n }\n };\n return (React.createElement(\"div\", __assign({ ref: ref }, rest, { className: cs(prefixCls, (_a = {},\n _a[\"\".concat(prefixCls, \"-active\")] = isExpanded,\n _a[\"\".concat(prefixCls, \"-no-icon\")] = !icon,\n _a[\"\".concat(prefixCls, \"-disabled\")] = disabled,\n _a), className), style: style }),\n React.createElement(\"div\", __assign({ role: \"button\", \"aria-disabled\": disabled, \"aria-expanded\": isExpanded, \"data-active-region\": ctx.triggerRegion, tabIndex: disabled ? -1 : 0, className: cs(\"\".concat(prefixCls, \"-header\"), \"\".concat(prefixCls, \"-header-\").concat(ctx.expandIconPosition), (_b = {},\n _b[\"\".concat(prefixCls, \"-header-disabled\")] = disabled,\n _b)), onClick: function (e) { return clickEventHandler(e, 2); } }, getEventListeners({\n onPressEnter: function (e) {\n !disabled && ctx.onToggle(name, e);\n },\n })),\n icon && (React.createElement(IconHover, { prefix: prefixCls, disabled: disabled, className: cs((_c = {},\n _c[\"\".concat(prefixCls, \"-icon-hover-right\")] = ctx.expandIconPosition === 'right',\n _c[\"\".concat(prefixCls, \"-header-icon-right\")] = ctx.expandIconPosition === 'right',\n _c)), onClick: function (e) { return clickEventHandler(e, 0); } },\n React.createElement(\"span\", { className: cs(\"\".concat(prefixCls, \"-header-icon\"), (_d = {},\n _d[\"\".concat(prefixCls, \"-header-icon-down\")] = isExpanded,\n _d)) }, icon))),\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-header-title\"), onClick: function (e) { return clickEventHandler(e, 1); } }, header),\n extra && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-header-extra\"), onClick: function (e) {\n e.stopPropagation();\n } }, extra))),\n React.createElement(Transition, { in: isExpanded, addEndListener: function (node, done) {\n node.addEventListener('transitionend', done, false);\n }, mountOnEnter: 'destroyOnHide' in props ? destroyOnHide : ctx.destroyOnHide || ctx.lazyload, unmountOnExit: 'destroyOnHide' in props ? destroyOnHide : ctx.destroyOnHide, onEnter: function (e) {\n e.style.height = 0;\n e.style.display = 'block';\n }, onEntering: function (e) {\n e.style.height = \"\".concat(e.scrollHeight, \"px\");\n }, onEntered: function (e) {\n e.style.height = 'auto';\n }, onExit: function (e) {\n e.style.display = 'block';\n e.style.height = \"\".concat(e.offsetHeight, \"px\");\n // have to trigger reflow to get animation effect on exit\n e.offsetHeight; // eslint-disable-line\n }, onExiting: function (e) {\n e.style.height = 0;\n }, onExited: function (e) {\n e.style.display = 'none';\n e.style.height = 'auto';\n } },\n React.createElement(\"div\", { role: \"region\", className: cs(\"\".concat(prefixCls, \"-content\"), (_e = {},\n _e[\"\".concat(prefixCls, \"-content-expanded\")] = isExpanded,\n _e)) },\n React.createElement(\"div\", { style: contentStyle, className: \"\".concat(prefixCls, \"-content-box\") }, children)))));\n}\nvar ItemRef = React.forwardRef(Item);\nItemRef.displayName = 'CollapseItem';\nexport default ItemRef;\n","import { useCallback } from 'react';\nimport { Enter, ArrowDown, ArrowUp, ArrowLeft, ArrowRight } from '../keycode';\nexport default function useKeyboardEvent(props) {\n var getEventListeners = useCallback(function (callbacks) {\n return {\n onKeyDown: function (e) {\n var _a, _b, _c, _d, _e, _f;\n var keyCode = e.keyCode || e.which;\n if (keyCode === Enter.code) {\n (_a = callbacks.onPressEnter) === null || _a === void 0 ? void 0 : _a.call(callbacks, e);\n }\n if (keyCode === ArrowDown.code) {\n (_b = callbacks.onArrowDown) === null || _b === void 0 ? void 0 : _b.call(callbacks, e);\n }\n if (keyCode === ArrowLeft.code) {\n (_c = callbacks.onArrowLeft) === null || _c === void 0 ? void 0 : _c.call(callbacks, e);\n }\n if (keyCode === ArrowRight.code) {\n (_d = callbacks.onArrowRight) === null || _d === void 0 ? void 0 : _d.call(callbacks, e);\n }\n if (keyCode === ArrowUp.code) {\n (_e = callbacks.onArrowUp) === null || _e === void 0 ? void 0 : _e.call(callbacks, e);\n }\n (_f = props === null || props === void 0 ? void 0 : props.onKeyDown) === null || _f === void 0 ? void 0 : _f.call(props, e);\n },\n };\n }, []);\n return getEventListeners;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n// delete keys from object\nexport default function omit(obj, keys // string 为了某些没有声明的属性被omit\n) {\n var clone = __assign({}, obj);\n keys.forEach(function (key) {\n if (key in clone) {\n delete clone[key];\n }\n });\n return clone;\n}\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { useState, useEffect, useRef } from 'react';\nimport { isUndefined } from '../is';\nimport usePrevious from './usePrevious';\nexport default function useMergeValue(defaultStateValue, props) {\n var _a = props || {}, defaultValue = _a.defaultValue, value = _a.value;\n var firstRenderRef = useRef(true);\n var prevPropsValue = usePrevious(props.value);\n var _b = __read(useState(!isUndefined(value) ? value : !isUndefined(defaultValue) ? defaultValue : defaultStateValue), 2), stateValue = _b[0], setStateValue = _b[1];\n useEffect(function () {\n // 第一次渲染时候,props.value 已经在useState里赋值给stateValue了,不需要再次赋值。\n if (firstRenderRef.current) {\n firstRenderRef.current = false;\n return;\n }\n // 外部value等于undefined,也就是一开始有值,后来变成了undefined(\n // 可能是移除了value属性,或者直接传入的undefined),那么就更新下内部的值。\n // 如果value有值,在下一步逻辑中直接返回了value,不需要同步到stateValue\n /**\n * prevPropsValue !== value: https://github.com/arco-design/arco-design/issues/1686\n * react18 严格模式下 useEffect 执行两次,可能出现 defaultValue 不生效的问题。\n */\n if (value === undefined && prevPropsValue !== value) {\n setStateValue(value);\n }\n }, [value]);\n var mergedValue = isUndefined(value) ? stateValue : value;\n return [mergedValue, setStateValue, stateValue];\n}\n","import { useEffect, useRef } from 'react';\nexport default function usePrevious(value) {\n var ref = useRef();\n useEffect(function () {\n ref.current = value;\n });\n return ref.current;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { useMemo } from 'react';\nimport omit from '../omit';\nexport default function useMergeProps(componentProps, defaultProps, globalComponentConfig) {\n var _ignorePropsFromGlobal = componentProps._ignorePropsFromGlobal;\n var _defaultProps = useMemo(function () {\n return __assign(__assign({}, defaultProps), (_ignorePropsFromGlobal ? {} : globalComponentConfig));\n }, [defaultProps, globalComponentConfig, _ignorePropsFromGlobal]);\n var props = useMemo(function () {\n // Must remove property of MergePropsOptions before passing it to component\n var mProps = omit(componentProps, ['_ignorePropsFromGlobal']);\n // https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react/src/ReactElement.js#L312\n for (var propName in _defaultProps) {\n if (mProps[propName] === undefined) {\n mProps[propName] = _defaultProps[propName];\n }\n }\n return mProps;\n }, [componentProps, _defaultProps]);\n return props;\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport React, { createContext, useContext } from 'react';\nimport { ConfigProvider } from '@arco-design/web-react';\nimport { IconCaretRight, IconCaretLeft } from '@arco-design/web-react/icon';\nimport { isFunction } from './_util/is';\nimport cs from './_util/classNames';\nimport CollapseItem from './item';\nimport omit from './_util/omit';\nimport useMergeValue from './_util/hooks/useMergeValue';\nimport useMergeProps from './_util/hooks/useMergeProps';\nvar getActiveKeys = function (keys, accordion) {\n var res = [].concat(keys);\n if (accordion) {\n return res.slice(0, 1);\n }\n return res;\n};\nvar defaultProps = {\n bordered: true,\n lazyload: true,\n expandIconPosition: 'left',\n};\nexport var CollapseContext = createContext({\n expandIconPosition: 'left',\n expandIcon: React.createElement(IconCaretRight, null),\n activeKeys: [],\n onToggle: function () { },\n});\nfunction Collapse(baseProps, ref) {\n var _a;\n var _b = useContext(ConfigProvider.ConfigContext), getPrefixCls = _b.getPrefixCls, componentConfig = _b.componentConfig, rtl = _b.rtl;\n var props = useMergeProps(baseProps, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.Collapse);\n var _c = __read(useMergeValue([], {\n defaultValue: 'defaultActiveKey' in props\n ? getActiveKeys(props.defaultActiveKey, props.accordion)\n : undefined,\n value: 'activeKey' in props ? getActiveKeys(props.activeKey, props.accordion) : undefined,\n }), 2), activeKeys = _c[0], setActiveKeys = _c[1];\n var children = props.children, className = props.className, style = props.style, bordered = props.bordered, lazyload = props.lazyload, expandIcon = props.expandIcon, expandIconPosition = props.expandIconPosition, destroyOnHide = props.destroyOnHide, accordion = props.accordion, triggerRegion = props.triggerRegion, onChange = props.onChange, rest = __rest(props, [\"children\", \"className\", \"style\", \"bordered\", \"lazyload\", \"expandIcon\", \"expandIconPosition\", \"destroyOnHide\", \"accordion\", \"triggerRegion\", \"onChange\"]);\n var prefixCls = getPrefixCls('collapse');\n var onItemClick = function (key, e) {\n var newActiveKeys = __spreadArray([], __read((activeKeys || [])), false);\n var index = activeKeys === null || activeKeys === void 0 ? void 0 : activeKeys.indexOf(key);\n if (index > -1) {\n newActiveKeys.splice(index, 1);\n }\n else if (accordion) {\n newActiveKeys = [key];\n }\n else {\n newActiveKeys.push(key);\n }\n if (!('activeKey' in props)) {\n setActiveKeys(newActiveKeys);\n }\n isFunction(onChange) && onChange(key, newActiveKeys, e);\n };\n return (React.createElement(CollapseContext.Provider, { value: {\n activeKeys: activeKeys,\n triggerRegion: triggerRegion,\n lazyload: lazyload,\n destroyOnHide: destroyOnHide,\n expandIconPosition: expandIconPosition,\n onToggle: onItemClick,\n expandIcon: 'expandIcon' in props ? (expandIcon) : expandIconPosition === 'right' ? (React.createElement(IconCaretLeft, null)) : (React.createElement(IconCaretRight, null)),\n } },\n React.createElement(\"div\", __assign({ ref: ref }, omit(rest, ['activeKey', 'defaultActiveKey']), { className: cs(prefixCls, \"\".concat(prefixCls, \"-\").concat(bordered ? 'border' : 'borderless'), (_a = {}, _a[\"\".concat(prefixCls, \"-rtl\")] = rtl, _a), className), style: style }), children)));\n}\nvar ForwardRefCollapse = React.forwardRef(Collapse);\nvar CollapseComponent = ForwardRefCollapse;\nCollapseComponent.displayName = 'Collapse';\nCollapseComponent.Item = CollapseItem;\nexport default CollapseComponent;\n","import Collapse from './collapse';\nexport default Collapse;\n","import React from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport './style/collapse.less';\nvar Header = function (props) {\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-collapse-item-header\");\n var avatar = props.avatar, title = props.title, subTitle = props.subTitle, tag = props.tag, disabled = props.disabled;\n // 如果element有disabled的属性,且为true,那就用他自己的disabled样式\n var renderElement = function (element) {\n var _a;\n if (!disabled || (React.isValidElement(element) && ((_a = element === null || element === void 0 ? void 0 : element.props) === null || _a === void 0 ? void 0 : _a.disabled)))\n return element;\n return React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-element-disabled\") }, element);\n };\n var handleOnFocus = function (e) {\n e.stopPropagation();\n };\n return (React.createElement(\"div\", { className: prefixCls },\n React.createElement(\"input\", { type: \"checkbox\", disabled: Boolean(disabled) }),\n React.createElement(\"div\", { onFocus: handleOnFocus, className: \"\".concat(prefixCls, \"-area\") },\n avatar && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-avatar\") }, renderElement(avatar)),\n React.createElement(\"div\", null,\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-title-area\") },\n title && React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-title\") }, renderElement(title)),\n tag && React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-tag\") }, renderElement(tag))),\n subTitle && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-sub-title\") }, renderElement(subTitle))))));\n};\nexport default Header;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport React, { cloneElement, forwardRef, useState } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport ArcoCollapse from './core';\nimport Header from './header';\nimport './style/collapse.less';\nvar ItemRender = function (props, ref) {\n var _a;\n var _b;\n var _c = __read(useState(false), 2), focus = _c[0], setFocus = _c[1];\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-collapse-item\");\n var _d = props.header, _e = _d === void 0 ? {} : _d, avatar = _e.avatar, title = _e.title, tag = _e.tag, subTitle = _e.subTitle, render = _e.render, _f = props.wrapperProps, wrapperProps = _f === void 0 ? {} : _f, rest = __rest(props, [\"header\", \"wrapperProps\"]);\n var disabled = rest.disabled;\n var extra = rest.extra;\n if (disabled) {\n if (React.isValidElement(extra)) {\n extra = ((_b = extra === null || extra === void 0 ? void 0 : extra.props) === null || _b === void 0 ? void 0 : _b.disabled)\n ? extra\n : cloneElement(extra, { style: { opacity: 0.25 } });\n }\n else {\n extra = React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-header-disabled\") }, extra);\n }\n }\n // extra 需要阻止focus事件冒泡,否则触发Collapse.Item的focus状态\n extra = (React.createElement(\"span\", { onFocus: function (e) {\n e.stopPropagation();\n } }, extra));\n var getHeader = function () {\n return (React.createElement(Header, { avatar: avatar, title: title, subTitle: subTitle, tag: tag, disabled: disabled }));\n };\n return (\n // ArcoCollapse没有继承HTMLAttributes,给外部封装一个div\n React.createElement(\"div\", __assign({ \"data-tid\": \"m4b_collapse_item\" }, wrapperProps, { onFocus: function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n setFocus(true);\n (_a = wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.onFocus) === null || _a === void 0 ? void 0 : _a.call.apply(_a, __spreadArray([wrapperProps], __read(args), false));\n }, onBlur: function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n setFocus(false);\n (_a = wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.onBlur) === null || _a === void 0 ? void 0 : _a.call.apply(_a, __spreadArray([wrapperProps], __read(args), false));\n }, className: cx(prefixCls, (_a = {}, _a[\"\".concat(prefixCls, \"-disabled\")] = !!disabled, _a[\"\".concat(prefixCls, \"-focus\")] = focus, _a), wrapperProps.className) }),\n React.createElement(ArcoCollapse.Item, __assign({}, rest, { extra: extra, header: render ? render() : getHeader(), ref: ref }))));\n};\nvar Item = forwardRef(ItemRender);\nItem.displayName = 'Collapse.Item';\nexport default Item;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { IconDown } from '@arco-design/iconbox-react-m4b-next';\nimport cx from 'classnames';\nimport ArcoCollapse from './core';\nimport Item from './item';\nimport './style/collapse.less';\nvar CollapseRender = function (props, ref) {\n var _a;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-collapse\");\n var _b = props.titleSize, titleSize = _b === void 0 ? 'default' : _b, arcoCollapseProps = __rest(props, [\"titleSize\"]);\n var _c = arcoCollapseProps.bordered, bordered = _c === void 0 ? false : _c, _d = arcoCollapseProps.expandIconPosition, expandIconPosition = _d === void 0 ? 'right' : _d;\n var expandIcon = 'expandIcon' in arcoCollapseProps ? (arcoCollapseProps.expandIcon) : (React.createElement(IconDown, { className: \"\".concat(prefixCls, \"-item-header-expand-icon\") }));\n var mergedProps = __assign(__assign({}, arcoCollapseProps), { bordered: bordered, expandIconPosition: expandIconPosition, expandIcon: expandIcon });\n var classNames = cx(prefixCls, (_a = {},\n _a[\"\".concat(prefixCls, \"-title-default\")] = titleSize === 'default',\n _a[\"\".concat(prefixCls, \"-title-small\")] = titleSize === 'small',\n _a), mergedProps.className);\n return React.createElement(ArcoCollapse, __assign({}, mergedProps, { className: classNames, ref: ref, \"data-tid\": \"m4b_collapse\" }));\n};\nvar ForwardRefCollapse = forwardRef(CollapseRender);\nvar Collapse = ForwardRefCollapse;\nCollapse.displayName = 'Collapse';\nCollapse.Item = Item;\nexport default Collapse;\n","// import '@arco-design/web-react/es/Collapse/style/index.less';\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n/* eslint-disable import/first */\n// @ts-nocheck\nimport { Collapse as ArcoCollapse } from '@arco-design/web-react';\n/**\n * 保留 ArcoCollapse 的引入不被树摇,让组件arco样式的按需加载功能可用。\n */\n(function (o) { })(ArcoCollapse);\nimport Collapse from './collapse';\nexport * from './interface';\nexport default Collapse;\n","// pick item from object\nexport default function pick(obj, keys) {\n var clone = {};\n keys.forEach(function (key) {\n var k = key;\n if (key in obj) {\n clone[k] = obj[k];\n }\n });\n return clone;\n}\nexport var NOOP = function () { };\nexport function newArray(length) {\n return Array.apply(null, Array(length));\n}\nexport function pickTriggerPropsFromRest(rest) {\n return pick(rest, [\n 'onMouseEnter',\n 'onMouseLeave',\n 'onMouseMove',\n 'onContextMenu',\n 'onClick',\n 'onFocus',\n 'onBlur',\n 'tabIndex',\n ]);\n}\nexport var VALIDATE_STATUS = {\n error: 'error',\n success: 'success',\n warning: 'warning',\n validating: 'validating',\n};\n","import { createContext } from 'react';\nimport { NOOP } from './constant';\nexport var FormContext = createContext({\n layout: 'vertical',\n maintainRawRules: false,\n labelCol: { span: 7, offset: 0 },\n labelAlign: 'left',\n wrapperCol: { span: 17, offset: 0 },\n closeColumns: false,\n columnsNum: 1,\n columnsGutter: 16,\n optional: false,\n requiredSymbol: false,\n getFormElementId: function () { return 'arco-'; },\n store: {\n getFieldsValue: NOOP,\n getFieldValue: NOOP,\n getFieldError: NOOP,\n getFieldsError: NOOP,\n getTouchedFields: NOOP,\n getFields: NOOP,\n setFieldValue: NOOP,\n setFieldsValue: NOOP,\n setFields: NOOP,\n resetFields: NOOP,\n submit: NOOP,\n validate: NOOP,\n scrollToField: NOOP,\n getInnerMethods: function () { return ({\n registerField: NOOP,\n innerGetStore: NOOP,\n }); },\n },\n});\nexport var FormItemContext = createContext({\n formItemAlone: true,\n});\nexport var FormProviderContext = createContext({});\nexport var FormListContext = createContext({});\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n/* eslint-disable no-async-promise-executor */\nimport cloneDeepWith from 'lodash/cloneDeepWith';\nimport { has, setWith, set as lodashSet } from 'lodash';\nimport { Schema } from 'b-validate';\nimport React from 'react';\nvar opt = Object.prototype.toString;\nexport function isFieldMatch(field, fields) {\n var fieldObj = setWith({}, field, undefined, Object);\n return fields.some(function (item) { return has(fieldObj, item); });\n}\nexport { default as cs } from 'classnames';\nexport function isBoolean(value) {\n return typeof value === 'boolean';\n}\nexport function isArray(obj) {\n return opt.call(obj) === '[object Array]';\n}\nexport function isObject(obj) {\n return opt.call(obj) === '[object Object]';\n}\nexport function isFunction(obj) {\n return typeof obj === 'function';\n}\nexport function isUndefined(obj) {\n return obj === undefined;\n}\nexport function isNull(obj) {\n return obj === null;\n}\nexport function isNullOrUndefined(obj) {\n return obj === null || obj === undefined;\n}\nexport function cloneDeep(value) {\n // 只有对象才执行拷贝,否则直接返回。 如果是 File,MouseEvent对象,都可以直接返回\n return cloneDeepWith(value, function (val) {\n if (!isObject(val) && !isArray(val)) {\n return val;\n }\n });\n}\nexport var formatValidateMsg = function (validateMessages, info) {\n return cloneDeepWith(validateMessages, function (val) {\n if (isFunction(val)) {\n return function (data) {\n return val(data, info);\n };\n }\n });\n};\nexport function set(target, field, value) {\n lodashSet(target, field, cloneDeep(value));\n return target;\n}\n// iteratively get all keys of object including nested objects\n// e.g. const myObj = { a: { b: { c: [1,2] } } }\n// iterativelyGetKeys(myObj) returns ['a.b.c.0', 'a.b.c.1']\n// reference https://stackoverflow.com/a/47063174\nexport function iterativelyGetKeys(_obj, _prefix) {\n if (_prefix === void 0) { _prefix = ''; }\n var processed = new Set();\n var getKeys = function (obj, prefix) {\n if (prefix === void 0) { prefix = ''; }\n if (!obj) {\n return [];\n }\n // Avoid circular dependencies\n if (processed.has(obj)) {\n return [];\n }\n processed.add(obj);\n return Object.keys(obj).reduce(function (res, el) {\n if ((isObject(obj[el]) || isArray(obj[el])) &&\n Object.keys(obj[el]).length &&\n !React.isValidElement(obj[el])) {\n return __spreadArray(__spreadArray([], __read(res), false), __read(getKeys(obj[el], \"\".concat(prefix + el, \".\"))), false);\n }\n return __spreadArray(__spreadArray([], __read(res), false), [prefix + el], false);\n }, []);\n };\n return getKeys(_obj, _prefix);\n}\n// 判断是否是个事件对象 e?.constructor?.name 可能不是 SyntheticEvent,跟业务项目的打包方式有关系\nexport function isSyntheticEvent(e) {\n var _a;\n return ((_a = e === null || e === void 0 ? void 0 : e.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'SyntheticEvent' || (e === null || e === void 0 ? void 0 : e.nativeEvent) instanceof Event;\n}\nexport function schemaValidate(field, value, _rules, validateMessages) {\n return __awaiter(this, void 0, void 0, function () {\n var rules, current;\n var _this = this;\n return __generator(this, function (_a) {\n rules = __spreadArray([], __read(_rules), false);\n current = 0;\n return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {\n var warning, validate;\n var _this = this;\n return __generator(this, function (_a) {\n warning = [];\n validate = function (rule) { return __awaiter(_this, void 0, void 0, function () {\n var next, _rule, schema;\n var _a, _b;\n return __generator(this, function (_c) {\n next = function () {\n if (current < rules.length - 1) {\n current++;\n return validate(rules[current]);\n }\n return resolve({ error: null, warning: warning });\n };\n if (!rule) {\n return [2 /*return*/, next()];\n }\n _rule = __assign({}, rule);\n if (!_rule.type && !_rule.validator) {\n _rule.type = 'string';\n }\n schema = new Schema((_a = {}, _a[field] = [_rule], _a), {\n ignoreEmptyString: true,\n validateMessages: validateMessages,\n });\n schema.validate((_b = {}, _b[field] = value, _b), function (error) {\n if (error) {\n if (rule.validateLevel === 'warning') {\n warning.push(error[field].message);\n }\n else {\n return resolve({\n error: error,\n warning: warning,\n });\n }\n }\n return next();\n });\n return [2 /*return*/];\n });\n }); };\n validate(rules[current]);\n return [2 /*return*/];\n });\n }); })];\n });\n });\n}\nexport var ID_SUFFIX = '_input';\n// delete keys from object\nexport function omit(obj, keys // string 为了某些没有声明的属性被omit\n) {\n var clone = __assign({}, obj);\n keys.forEach(function (key) {\n if (key in clone) {\n delete clone[key];\n }\n });\n return clone;\n}\nexport function warning(condition, message) {\n if (process.env.NODE_ENV !== 'production' && console) {\n if (condition) {\n console.error(\"[@arco-design/web-react]: \".concat(message));\n }\n }\n}\nexport function isString(obj) {\n return opt.call(obj) === '[object String]';\n}\nexport function classNames() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var length = args.length;\n var classNames = [];\n var _loop_1 = function (i) {\n var v = args[i];\n if (!v) {\n return \"continue\";\n }\n if (isString(v)) {\n classNames.push(v);\n }\n else if (isArray(v)) {\n classNames = classNames.concat(v);\n }\n else if (isObject(v)) {\n Object.keys(v).forEach(function (k) {\n if (v[k]) {\n classNames.push(k);\n }\n });\n }\n else {\n warning(true, 'arguments must be one of string/array/object.');\n }\n };\n for (var i = 0; i < length; i++) {\n _loop_1(i);\n }\n return __spreadArray([], __read(new Set(classNames)), false).join(' ');\n}\n// 根据itemSpacing传入值,获取对应的间距样式\nexport var getItemSpacingSize = function (itemSpacingSize) {\n if (itemSpacingSize === 'mini' || itemSpacingSize === 8) {\n return 'mini';\n }\n if (itemSpacingSize === 'small' || itemSpacingSize === 16) {\n return 'small';\n }\n if (itemSpacingSize === 'default' || itemSpacingSize === 24) {\n return 'default';\n }\n if (typeof itemSpacingSize === 'number') {\n return itemSpacingSize;\n }\n // 默认,空值\n return 'default';\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { useMemo } from 'react';\nimport { omit } from '../utils';\nexport default function useMergeProps(componentProps, defaultProps, globalComponentConfig) {\n var _ignorePropsFromGlobal = componentProps._ignorePropsFromGlobal;\n var _defaultProps = useMemo(function () {\n return __assign(__assign({}, defaultProps), (_ignorePropsFromGlobal ? {} : globalComponentConfig));\n }, [defaultProps, globalComponentConfig, _ignorePropsFromGlobal]);\n var props = useMemo(function () {\n // Must remove property of MergePropsOptions before passing it to component\n var mProps = omit(componentProps, ['_ignorePropsFromGlobal']);\n // https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react/src/ReactElement.js#L312\n for (var propName in _defaultProps) {\n if (mProps[propName] === undefined) {\n mProps[propName] = _defaultProps[propName];\n }\n }\n return mProps;\n }, [componentProps, _defaultProps]);\n return props;\n}\n","// https://github.com/RyanZim/universalify/blob/master/index.js\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n// form validate error\nvar ValidateError = /** @class */ (function (_super) {\n __extends(ValidateError, _super);\n function ValidateError(errors) {\n var _this = _super.call(this, 'form validate error, get errors by error.errors') || this;\n _this.errors = {};\n _this.errors = errors;\n return _this;\n }\n return ValidateError;\n}(Error));\nfunction promisify(fn) {\n return Object.defineProperty(function () {\n var _this = this;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (typeof args[args.length - 1] === 'function')\n fn.apply(this, args);\n else {\n return new Promise(function (resolve, reject) {\n args[args.length] = function (err, res) {\n if (err)\n return reject(new ValidateError(err));\n resolve(res);\n };\n args.length++;\n fn.apply(_this, args);\n });\n }\n }, 'name', { value: fn.name });\n}\nexport default promisify;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport get from 'lodash/get';\nimport setWith from 'lodash/setWith';\nimport has from 'lodash/has';\nimport omit from 'lodash/omit';\nimport { cloneDeep, set, iterativelyGetKeys, isArray, isObject, isString } from './utils';\nimport promisify from './promisify';\nvar Store = /** @class */ (function () {\n function Store() {\n var _this = this;\n // 是否正在提交\n this.isSubmitting = false;\n this.registerFields = [];\n // 所有 form item value 的变动,都会通知这里注册到的 watcher\n this.registerWatchers = [];\n // 所有 form item 内部 errors, validating, touched 状态的变化,都会通知这里注册到的 watcher\n this.registerStateWatchers = [];\n // 和formControl 的 touched属性不一样。 只要被改过的字段,这里就会存储。并且不会跟随formControl被卸载而清除。\n // reset 的时候清除\n this.touchedFields = {};\n this.store = {};\n this.initialValues = {};\n this.callbacks = {};\n // 告知 form 状态改变,进行状态收集\n this.innerCollectFormState = function () {\n _this.notifyStateWatchers();\n };\n this.innerSetCallbacks = function (values) {\n _this.callbacks = values;\n };\n this.registerStateWatcher = function (item) {\n _this.registerStateWatchers.push(item);\n return function () {\n _this.registerStateWatchers = _this.registerStateWatchers.filter(function (x) { return x !== item; });\n };\n };\n this.registerWatcher = function (item) {\n _this.registerWatchers.push(item);\n return function () {\n _this.registerWatchers = _this.registerWatchers.filter(function (x) { return x !== item; });\n };\n };\n // 收集所有control字段,并在组件卸载时移除\n this.registerField = function (item) {\n _this.registerFields.push(item);\n _this.notifyWatchers();\n return function () {\n _this.registerFields = _this.registerFields.filter(function (x) { return x !== item; });\n _this.notifyWatchers();\n };\n };\n // hasField为true时,只返回传入field属性的control实例\n this.getRegisteredFields = function (hasField) {\n if (hasField) {\n return _this.registerFields.filter(function (control) { var _a; return control.hasFieldProps() && !((_a = control.props) === null || _a === void 0 ? void 0 : _a.isFormList); });\n }\n return _this.registerFields;\n };\n // 获取props.field === field 的control组件。\n this.getRegisteredField = function (field) {\n return _this.registerFields.filter(function (x) { return x.props.field === field; })[0];\n };\n // 通知所有的FormItem进行更新。\n // setFieldValue: 外部调用setFieldsValue (setFieldValue等)方法触发更新\n // innerSetValue: 控件例如Input,通过onChange事件触发的更新\n // reset:重置\n this.notify = function (type, info) {\n if (type === 'setFieldValue' || (type === 'innerSetValue' && !info.ignore)) {\n // type = reset时,在reset函数里处理\n // if info.field is a[0], get a.0\n _this._pushTouchField(info.changeValues\n ? iterativelyGetKeys(info.changeValues)\n : _this._getIterativelyKeysByField(info.field));\n }\n _this.registerFields.forEach(function (item) {\n item.onStoreChange &&\n item.onStoreChange(type, __assign(__assign({}, info), { current: _this.store }));\n });\n };\n this.innerSetInitialValues = function (values) {\n if (!values)\n return;\n _this.initialValues = cloneDeep(values);\n Object.keys(values).forEach(function (field) {\n set(_this.store, field, values[field]);\n });\n };\n this.innerSetInitialValue = function (field, value) {\n if (!field)\n return;\n _this.initialValues[field] = value;\n // 组件在创建的时候,需要判断store里存的对应field的值是否生效。只要没有被操作过(touchedFields里不存在),就生效\n if (!_this._inTouchFields(field)) {\n set(_this.store, field, get(_this.initialValues, field));\n }\n };\n /**\n *\n * 内部使用,更新value,会同时触发onChange 和 onValuesChange\n * @options.isFormList 强制更新field对应的组件包括其子组件,form\n */\n this.innerSetFieldValue = function (field, value, options) {\n var _a, _b, _c;\n if (!field)\n return;\n var prev = cloneDeep(_this.store);\n set(_this.store, field, value);\n _this.triggerValuesChange((_a = {}, _a[field] = value, _a));\n _this.triggerTouchChange((_b = {}, _b[field] = value, _b));\n _this.notify('innerSetValue', __assign(__assign({ prev: prev, field: field }, options), { changeValues: (_c = {}, _c[field] = value, _c) }));\n };\n // 内部使用\n this.innerGetStore = function () {\n return _this.store;\n };\n // 获取所有被操作过的字段\n this.getTouchedFields = function () {\n return _this.getRegisteredFields(true)\n .filter(function (item) {\n return item.isTouched();\n })\n .map(function (x) { return x.props.field; });\n };\n // 外部调用设置表单字段值\n this.setFieldValue = function (field, value) {\n var _a;\n if (!field)\n return;\n _this.setFields((_a = {},\n _a[field] = { value: value },\n _a));\n };\n // 外部调用,设置多个表单控件的值\n this.setFieldsValue = function (values) {\n if (isObject(values)) {\n var fields = Object.keys(values);\n var obj_1 = {};\n fields.forEach(function (field) {\n obj_1[field] = {\n value: values[field],\n };\n });\n _this.setFields(obj_1);\n }\n };\n // 外部调用,设置多个表单控件的值,以及 error,touch 信息。\n this.setFields = function (obj) {\n var fields = Object.keys(obj);\n var changeValues = {};\n fields.forEach(function (field) {\n var _a;\n var item = obj[field];\n var prev = cloneDeep(_this.store);\n if (item) {\n var info = {};\n if ('error' in item) {\n info.errors = item.error;\n }\n if ('warning' in item) {\n info.warnings = item.warning;\n }\n if ('touched' in item) {\n info.touched = item.touched;\n }\n if ('value' in item) {\n set(_this.store, field, item.value);\n changeValues[field] = item.value;\n }\n _this.notify('setFieldValue', {\n data: info,\n prev: prev,\n field: field,\n changeValues: (_a = {}, _a[field] = item.value, _a),\n });\n }\n });\n _this.triggerValuesChange(changeValues);\n };\n this.getFieldValue = function (field) {\n return cloneDeep(get(_this.store, field));\n };\n // 获取单个字段的错误信息。\n this.getFieldError = function (field) {\n var item = _this.getRegisteredField(field);\n return item ? item.getErrors() : null;\n };\n // 获取传入字段/全部的错误信息\n this.getFieldsError = function (fields) {\n var errors = {};\n if (isArray(fields)) {\n fields.map(function (field) {\n var error = _this.getFieldError(field);\n if (error) {\n errors[field] = error;\n }\n });\n }\n else {\n _this.getRegisteredFields(true).forEach(function (item) {\n if (item.getErrors()) {\n errors[item.props.field] = item.getErrors();\n }\n });\n }\n return errors;\n };\n this.getFields = function () {\n return cloneDeep(_this.store);\n };\n this.getFieldsValue = function (fields) {\n var values = {};\n if (isArray(fields)) {\n fields.forEach(function (key) {\n set(values, key, _this.getFieldValue(key));\n });\n return values;\n }\n _this.getRegisteredFields(true).forEach(function (_a) {\n var field = _a.props.field;\n var value = get(_this.store, field);\n set(values, field, value);\n });\n return values;\n };\n this.resetFields = function (fieldKeys) {\n var prev = cloneDeep(_this.store);\n var fields = isString(fieldKeys) ? [fieldKeys] : fieldKeys;\n if (fields && isArray(fields)) {\n var changeValues_1 = {};\n fields.forEach(function (field) {\n set(_this.store, field, _this.initialValues[field]);\n changeValues_1[field] = get(_this.store, field);\n });\n _this.triggerValuesChange(changeValues_1);\n _this.notify('reset', { prev: prev, field: fields });\n _this._popTouchField(fields);\n }\n else {\n var newValues_1 = {};\n var changeValues_2 = cloneDeep(_this.store);\n Object.keys(_this.initialValues).forEach(function (field) {\n set(newValues_1, field, _this.initialValues[field]);\n });\n _this.store = newValues_1;\n _this.getRegisteredFields(true).forEach(function (item) {\n var key = item.props.field;\n set(changeValues_2, key, get(_this.store, key));\n });\n _this.triggerValuesChange(changeValues_2);\n _this._popTouchField();\n _this.notify('reset', { prev: prev, field: Object.keys(changeValues_2) });\n }\n };\n this.validate = promisify(function (fieldsOrCallback, cb) {\n var callback = function () { };\n var controlItems = _this.getRegisteredFields(true);\n if (isArray(fieldsOrCallback) && fieldsOrCallback.length > 0) {\n controlItems = controlItems.filter(function (x) { return fieldsOrCallback.indexOf(x.props.field) > -1; });\n callback = cb || callback;\n }\n else if (typeof fieldsOrCallback === 'function') {\n callback = fieldsOrCallback;\n }\n var promises = controlItems.map(function (x) { return x.validateField(); });\n Promise.all(promises).then(function (result) {\n var errors = {};\n var values = {};\n result.map(function (x) {\n if (x.error) {\n errors = __assign(__assign({}, errors), x.error);\n }\n set(values, x.field, x.value);\n });\n if (Object.keys(errors).length) {\n var onValidateFail = _this.callbacks.onValidateFail;\n onValidateFail && onValidateFail(errors);\n callback && callback(errors, cloneDeep(values));\n }\n else {\n callback && callback(null, cloneDeep(values));\n }\n });\n });\n this.toggleSubmitting = function () {\n _this.isSubmitting = !_this.isSubmitting;\n _this.innerCollectFormState();\n };\n this.submit = function () {\n _this.toggleSubmitting();\n _this.validate(function (errors, values) {\n var result;\n var _a = _this.callbacks, onSubmit = _a.onSubmit, onSubmitFailed = _a.onSubmitFailed;\n if (!errors && onSubmit) {\n result = onSubmit(values);\n }\n if (errors && onSubmitFailed) {\n result = onSubmitFailed(errors);\n }\n if (result && result.then) {\n // resolve 或者 reject, 都需要更新 submitting 的提交状态\n result.then(_this.toggleSubmitting, function (error) {\n _this.toggleSubmitting();\n // 保持以前的逻辑\n return Promise.reject(error);\n });\n }\n else {\n _this.toggleSubmitting();\n }\n });\n };\n this.getFieldsState = function (fields) {\n var result = {};\n var getItemState = function (item) {\n if (!item) {\n return null;\n }\n var error = item.getErrors();\n return {\n errors: error ? [error] : [],\n warnings: item.getWarnings(),\n validateStatus: item.getValidateStatus(),\n isSubmitting: _this.isSubmitting,\n isTouched: item.isTouched(),\n };\n };\n if (isArray(fields)) {\n fields.forEach(function (key) {\n result[key] = getItemState(_this.getRegisteredField(key));\n });\n return result;\n }\n _this.getRegisteredFields(true).forEach(function (item) {\n result[item.props.field] = getItemState(item);\n });\n return result;\n };\n this.clearFields = function (fieldKeys) {\n var prev = cloneDeep(_this.store);\n var fields = isString(fieldKeys) ? [fieldKeys] : fieldKeys;\n if (fields && isArray(fields)) {\n var changeValues_3 = {};\n fields.forEach(function (field) {\n set(_this.store, field, undefined);\n changeValues_3[field] = get(_this.store, field);\n });\n _this.triggerValuesChange(changeValues_3);\n _this.notify('setFieldValue', {\n prev: prev,\n field: fields,\n data: {\n errors: null,\n warnings: null,\n },\n });\n // this._popTouchField(fields);\n }\n else {\n var changeValues_4 = {};\n _this.store = {};\n _this.getRegisteredFields(true).forEach(function (item) {\n var key = item.props.field;\n set(changeValues_4, key, undefined);\n });\n _this.triggerValuesChange(changeValues_4);\n // this._popTouchField();\n _this.notify('setFieldValue', {\n prev: prev,\n field: Object.keys(changeValues_4),\n data: {\n errors: null,\n warnings: null,\n },\n });\n }\n };\n }\n Store.prototype.notifyWatchers = function () {\n this.registerWatchers.forEach(function (item) {\n item();\n });\n };\n Store.prototype.notifyStateWatchers = function () {\n this.registerStateWatchers.forEach(function (item) {\n item();\n });\n };\n Store.prototype.triggerValuesChange = function (value) {\n if (value && Object.keys(value).length) {\n var onValuesChange = this.callbacks.onValuesChange;\n onValuesChange && onValuesChange(value, this.getFields());\n }\n this.notifyWatchers();\n };\n Store.prototype.triggerTouchChange = function (value) {\n if (value && Object.keys(value).length) {\n var onChange = this.callbacks.onChange;\n onChange && onChange(value, this.getFields());\n }\n };\n Store.prototype._getIterativelyKeysByField = function (field) {\n if (!field) {\n return [];\n }\n var fields = [].concat(field);\n var keys = fields\n .map(function (item) { return iterativelyGetKeys(set({}, item, undefined)); })\n .reduce(function (total, next) {\n return total.concat(next);\n }, []);\n return __spreadArray([field], __read(keys), false);\n };\n Store.prototype._inTouchFields = function (field) {\n var _this = this;\n var keys = this._getIterativelyKeysByField(field);\n // return fields.some((item) => has(fieldObj, item));\n return keys.some(function (item) { return has(_this.touchedFields, item); });\n };\n Store.prototype._popTouchField = function (field) {\n if (field === undefined) {\n this.touchedFields = {};\n }\n var keys = this._getIterativelyKeysByField(field);\n this.touchedFields = omit(this.touchedFields, keys);\n };\n Store.prototype._pushTouchField = function (field) {\n var _this = this;\n [].concat(field).forEach(function (key) {\n setWith(_this.touchedFields, key, undefined, Object);\n });\n };\n return Store;\n}());\nexport default Store;\n","import { useRef } from 'react';\nimport Store from './store';\nexport function getFormInstance() {\n var store = new Store();\n return {\n getFieldsValue: store.getFieldsValue,\n getFieldValue: store.getFieldValue,\n getFieldError: store.getFieldError,\n getFieldsError: store.getFieldsError,\n getTouchedFields: store.getTouchedFields,\n getFields: store.getFields,\n setFieldValue: store.setFieldValue,\n setFieldsValue: store.setFieldsValue,\n setFields: store.setFields,\n resetFields: store.resetFields,\n clearFields: store.clearFields,\n submit: store.submit,\n validate: store.validate,\n scrollToField: function () { },\n getFieldsState: store.getFieldsState,\n getInnerMethods: function (inner) {\n var methods = {};\n if (inner) {\n [\n 'registerField',\n 'registerWatcher',\n 'registerStateWatcher',\n 'innerSetInitialValues',\n 'innerSetInitialValue',\n 'innerSetCallbacks',\n 'innerSetFieldValue',\n 'innerGetStore',\n 'innerCollectFormState',\n ].map(function (key) {\n methods[key] = store[key];\n });\n }\n return methods;\n },\n };\n}\nexport default function useForm(form) {\n var formRef = useRef(form);\n if (!formRef.current) {\n if (form) {\n formRef.current = form;\n }\n else {\n formRef.current = getFormInstance();\n }\n }\n return [formRef.current];\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\n/* eslint-disable no-console */\nimport React, { useImperativeHandle, useEffect, forwardRef, useContext, useRef, } from 'react';\nimport scrollIntoView from 'scroll-into-view-if-needed';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport merge from 'lodash/merge';\nimport cs from 'classnames';\nimport { ConfigProvider as ArcoConfigProvider, Grid } from '@arco-design/web-react';\nimport { FormContext as RawFormContext, FormProviderContext, } from './context';\nimport { isObject, omit, ID_SUFFIX } from './utils';\nimport useMergeProps from './hooks/useMergeProps';\nimport useForm from './useForm';\nvar ConfigContext = ArcoConfigProvider.ConfigContext;\nfunction getFormElementId(prefix, field) {\n var id = field === null || field === void 0 ? void 0 : field.replace(/[\\[\\.]/g, '_').replace(/\\]/g, '');\n return prefix ? \"\".concat(prefix, \"-\").concat(id) : \"\".concat(id);\n}\nvar defaultProps = {\n layout: 'vertical',\n labelCol: { span: 7, offset: 0 },\n labelAlign: 'right',\n wrapperCol: { span: 17, offset: 0 },\n wrapper: 'form',\n validateTrigger: 'onChange',\n requiredSymbol: false,\n closeColumns: false,\n columnsNum: 1,\n columnsGutter: 16,\n};\n// 类型屏蔽layout属性, 布局只支持 vertical\n// 属性新增分栏能力 columnsNum, 默认为1 最大为 4\n// const layout = 'vertical';\nvar Form = function (baseProps, ref) {\n var _a;\n var _b, _c;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixClsForm = \"\".concat(globalPrefixCls, \"-form\");\n // 获取form 外部的 arco config provider 问题: 我需要在pro-form 额外再接收arco的 config provider 吗\n var ctx = useContext(ConfigContext);\n // Form.Provider 组件管理多个表单的数据\n var formProviderCtx = useContext(FormProviderContext);\n // 控制整体表单的一个盒子\n var wrapperRef = useRef(null);\n // 表单实例, 可以操作表单的一些行为,从而进行表单的数据处理\n var _d = __read(useForm(baseProps.form), 1), formInstance = _d[0];\n // 表单是否已经挂载,在第一次 useEffect 之后就会赋值 为true\n var isMount = useRef();\n // 传入的参数 baseProps, 默认参数 defaultProps, 全局配置的所有组件的默认参数 ctx.componentConfig\n var props = useMergeProps(baseProps, defaultProps, (_b = ctx.componentConfig) === null || _b === void 0 ? void 0 : _b.Form);\n var layout = props.layout, requiredSymbol = props.requiredSymbol, validateMessagesDisplayType = props.validateMessagesDisplayType, // 表单校验信息的展示形式\n labelCol = props.labelCol, // 默认 {span: 5, offset: 0}\n wrapperCol = props.wrapperCol, // 默认 {span: 19, offset: 0}\n Wrapper = props.wrapper, // 默认 form 可以自定义 容器tag 比如用 div 或者 p\n id = props.id, // 设置后,会作为表单控件 id的前缀, 默认undefined\n labelAlign = props.labelAlign, // label 的对齐方式, 默认 right\n disabled = props.disabled, // 全局控制为disabled 权重比 form-item 低 默认undefined\n colon = props.colon, // 全局控制为label 是否显示冒号的 权重比 form-item 低, 默认undefined\n className = props.className, // 类名 默认undefined\n validateTrigger = props.validateTrigger, // 默认Onchange\n formPrefixCls = props.prefixCls, // 样式的scope 默认为 arco\n validateMessages = props.validateMessages, // 默认undefined\n /**\n * 处理form 表单的多列问题,目前默认是单列。\n * closeColumns = faslse, columnsNum = 1 , columnsGutter = 16\n * 带来的效果是 form 的每一项独占一行,每一行的间距是 24\n * 当 closeColumns = fasle, columnsNum 不等于 1 的时候, 列间距由columnsGutter确定;\n */\n _e = props.closeColumns, // 默认undefined\n /**\n * 处理form 表单的多列问题,目前默认是单列。\n * closeColumns = faslse, columnsNum = 1 , columnsGutter = 16\n * 带来的效果是 form 的每一项独占一行,每一行的间距是 24\n * 当 closeColumns = fasle, columnsNum 不等于 1 的时候, 列间距由columnsGutter确定;\n */\n closeColumns = _e === void 0 ? false : _e, _f = props.columnsNum, columnsNum = _f === void 0 ? 1 : _f, _g = props.columnsGutter, columnsGutter = _g === void 0 ? 16 : _g, optional = props.optional, // 是否需要将form表单设置为全局非必填模式\n itemSpacingSize = props.itemSpacingSize, // form-item 的间距\n maintainRawRules = props.maintainRawRules, _h = props.wrapperRowProps, wrapperRowProps = _h === void 0 ? {} : _h, rest = __rest(props, [\"layout\", \"requiredSymbol\", \"validateMessagesDisplayType\", \"labelCol\", \"wrapperCol\", \"wrapper\", \"id\", \"labelAlign\", \"disabled\", \"colon\", \"className\", \"validateTrigger\", \"prefixCls\", \"validateMessages\", \"closeColumns\", \"columnsNum\", \"columnsGutter\", \"optional\", \"itemSpacingSize\", \"maintainRawRules\", \"wrapperRowProps\"]);\n // 是否为垂直布局\n var isVertical = layout === 'vertical';\n // 获取 自定义 scope , 如果没有 则会 arco-form\n var prefixCls = formPrefixCls || ctx.getPrefixCls('form');\n /**\n * @zh 视图的表现形式是从右开始向左结束。 可以理解如果为true , 则视图展示就跟原有视图成中心轴镜像关系\n * @en View starts from the right and ends on the left.\n * @type boolean\n */\n var rtl = ctx.rtl;\n // 获取 size 值,默认 default\n var size = 'size' in props ? props.size : ctx.size;\n // 获取表单内部调用的一些api 名字\n var innerMethods = formInstance.getInnerMethods(true);\n // 表单如果还没有挂载, 记录当前的初始值,在store里将对应变量根据这个值来初始化一遍\n if (!isMount.current) {\n innerMethods.innerSetInitialValues(props.initialValues);\n }\n // 表单挂载时触发,只一次\n useEffect(function () {\n isMount.current = true;\n }, []);\n // 根据form id 注册form 信息 formsRef.current[id] = formInstance 并返回销毁函数\n useEffect(function () {\n var unregister;\n if (formProviderCtx.register) {\n unregister = formProviderCtx.register(props.id, formInstance);\n }\n return unregister;\n }, [props.id, formInstance]);\n // 允许外部直接通过 form 的 ref 获取form内的 formInstance 并进行操作\n useImperativeHandle(ref, function () {\n return formInstance;\n });\n // 滚动到目标表单字段位置\n formInstance.scrollToField = function (field, options) {\n var node = wrapperRef.current;\n var id = props.id;\n if (!node) {\n return;\n }\n var fieldNode = node.querySelector(\"#\".concat(getFormElementId(id, field)));\n if (!fieldNode) {\n // 如果设置了nostyle, fieldNode不存在,尝试直接查询表单控件\n fieldNode = node.querySelector(\"#\".concat(getFormElementId(id, field)).concat(ID_SUFFIX));\n }\n // 滚动到对应的field\n fieldNode &&\n scrollIntoView(fieldNode, __assign({ behavior: 'smooth', block: 'nearest', scrollMode: 'if-needed' }, options));\n };\n // 设置内置方式调用,并能让方式在多表单场景触发。\n innerMethods.innerSetCallbacks({\n onValuesChange: function (value, values) {\n props.onValuesChange && props.onValuesChange(value, values);\n formProviderCtx.onFormValuesChange && formProviderCtx.onFormValuesChange(props.id, value);\n },\n onChange: props.onChange,\n onValidateFail: function (errors) {\n if (props.scrollToFirstError) {\n var options = isObject(props.scrollToFirstError) ? props.scrollToFirstError : {};\n formInstance.scrollToField(Object.keys(errors)[0], options);\n }\n },\n onSubmitFailed: props.onSubmitFailed,\n onSubmit: function (values) {\n var returnValue = props.onSubmit && props.onSubmit(values);\n formProviderCtx.onFormSubmit && formProviderCtx.onFormSubmit(props.id, values);\n return returnValue;\n },\n });\n // 管理多级表单时,需要同步过去的一些表单全局属性\n var contextProps = {\n layout: layout,\n requiredSymbol: requiredSymbol,\n maintainRawRules: maintainRawRules,\n itemSpacingSize: itemSpacingSize,\n optional: optional,\n closeColumns: closeColumns,\n columnsNum: columnsNum,\n columnsGutter: columnsGutter,\n validateMessagesDisplayType: validateMessagesDisplayType,\n labelAlign: labelAlign,\n disabled: disabled,\n colon: colon,\n labelCol: labelCol,\n wrapperCol: wrapperCol,\n store: formInstance,\n prefixCls: prefixCls,\n validateTrigger: validateTrigger,\n formItemAlone: false,\n validateMessages: merge({}, (_c = ctx.locale.Form) === null || _c === void 0 ? void 0 : _c.validateMessages, validateMessages),\n getFormElementId: function (field) { return getFormElementId(id, field); },\n };\n var FormContext = RawFormContext;\n return (\n // 将外部的 ConfigProvider 的值处理一遍,增加size 覆盖外部的 ConfigProvider 供form-item消费\n React.createElement(ArcoConfigProvider, __assign({}, ctx, { size: size }),\n React.createElement(FormContext.Provider, { value: contextProps },\n React.createElement(Wrapper, __assign({ ref: wrapperRef, \"data-tid\": \"m4b_form\" }, omit(rest, [\n 'prefixCls',\n 'id',\n 'layout',\n 'labelCol',\n 'wrapperCol',\n 'labelAlign',\n 'validateTrigger',\n 'wrapper',\n 'colon',\n 'validateMessages',\n 'disabled',\n 'form',\n 'size',\n 'initialValues',\n 'onValuesChange',\n 'onChange',\n 'wrapperProps',\n 'scrollToFirstError',\n 'onSubmit',\n 'onSubmitFailed',\n 'columnsNum',\n 'closeColumns',\n 'columnsGutter',\n 'validateMessagesDisplayType',\n ]), props.wrapperProps, { className: cs(prefixCls, prefixClsForm, \"\".concat(prefixCls, \"-\").concat(layout), \"\".concat(prefixCls, \"-size-\").concat(size), (_a = {}, _a[\"\".concat(prefixCls, \"-rtl\")] = rtl, _a), className), style: props.style, onSubmit: function (e) {\n e.preventDefault();\n e.stopPropagation();\n formInstance.submit();\n }, id: id }), isVertical && !closeColumns ? (React.createElement(Grid.Row, __assign({ gutter: columnsNum === 1 ? 0 : columnsGutter }, wrapperRowProps), props.children)) : (props.children)))));\n};\nvar FormComponent = forwardRef(Form);\nFormComponent.displayName = 'Form';\nexport default FormComponent;\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n/* eslint-disable react/static-property-placement */\n/* eslint-disable no-console */\nimport React, { Component, isValidElement } from 'react';\nimport { isEqualWith, set, get } from 'lodash';\nimport { IconInfoWarning, IconError, IconSuccess, IconLoading, } from '@arco-design/iconbox-react-m4b-next';\nimport { FormItemContext } from '../context';\nimport { isArray, isFunction, isNullOrUndefined, isSyntheticEvent, schemaValidate, ID_SUFFIX, warning as warn, classNames, isFieldMatch, isBoolean, } from '../utils';\nvar Control = /** @class */ (function (_super) {\n __extends(Control, _super);\n function Control(props, context) {\n var _this = _super.call(this, props) || this;\n // 校验信息\n _this.errors = null;\n // 校验 warning 信息\n _this.warnings = null;\n _this.isDestroyed = false;\n // 保存 props.children 或函数类型 props.children() 的返回值\n _this.childrenElement = null;\n // 触发 store 进行状态收集\n // TODO: error, validateStatys ,touched 状态和 UI 组件解耦,统一维护在 store 内部\n _this.triggerStateCollect = function () {\n var innerCollectFormState = _this.context.store.getInnerMethods(true).innerCollectFormState;\n innerCollectFormState();\n };\n // 切换校验状态\n _this.toggleValidateStatus = function (status) {\n _this.validateStatus = status;\n _this.triggerStateCollect();\n };\n // 切换 touch 状态\n _this.toggleTouched = function (touched) {\n _this.touched = isBoolean(touched) ? touched : !_this.touched;\n _this.triggerStateCollect();\n };\n _this.setWarnings = function (warnings) {\n _this.warnings = warnings;\n _this.triggerStateCollect();\n };\n _this.setErrors = function (errors) {\n _this.errors = errors;\n _this.triggerStateCollect();\n };\n _this.getErrors = function () {\n return _this.errors;\n };\n _this.getWarnings = function () {\n return _this.warnings || [];\n };\n _this.isTouched = function () {\n return _this.touched;\n };\n _this.getValidateStatus = function () {\n if (_this.props.validateStatus) {\n return _this.props.validateStatus;\n }\n return _this.validateStatus;\n };\n _this.hasFieldProps = function () {\n return !!_this.props.field;\n };\n _this.clearFormItemError = function (field) {\n if (field === void 0) { field = _this.props.field; }\n // destroy errors\n var updateFormItem = _this.context.updateFormItem;\n updateFormItem && updateFormItem(field, { errors: null, warnings: null });\n };\n _this.updateFormItem = function () {\n if (_this.isDestroyed)\n return;\n _this.forceUpdate();\n var updateFormItem = _this.context.updateFormItem;\n updateFormItem &&\n updateFormItem(_this.props.field, {\n errors: _this.errors,\n warnings: _this.warnings,\n });\n };\n _this.onStoreChange = function (type, info) {\n var fields = isArray(info.field) ? info.field : [info.field];\n var _a = _this.props, field = _a.field, shouldUpdate = _a.shouldUpdate, dependencies = _a.dependencies;\n // isInner: the value is changed by innerSetValue\n var shouldUpdateItem = function (extra) {\n if (dependencies && shouldUpdate) {\n warn(true, '`shouldUpdate` of the `Form.Item` will be ignored.');\n }\n if (dependencies) {\n if (isArray(dependencies) ||\n dependencies.some(function (depField) { return isFieldMatch(depField, fields); })) {\n if (_this.isTouched()) {\n _this.validateField();\n }\n }\n }\n else if (shouldUpdate) {\n var shouldRender = false;\n if (isFunction(shouldUpdate)) {\n shouldRender = shouldUpdate(info.prev, info.current, __assign({ field: info.field }, extra));\n }\n else {\n shouldRender = !isEqualWith(info.prev, info.current);\n }\n if (shouldRender) {\n _this.updateFormItem();\n }\n }\n };\n switch (type) {\n case 'reset':\n _this.toggleTouched(false);\n _this.toggleValidateStatus(undefined);\n _this.setErrors(null);\n _this.setWarnings(null);\n // https://github.com/arco-design/arco-design/issues/1460\n if (dependencies || shouldUpdate) {\n shouldUpdateItem();\n }\n else {\n // TODO\n // Keep the previous behavior, removed in the next major release\n _this.updateFormItem();\n }\n break;\n case 'innerSetValue':\n if (isFieldMatch(field, fields)) {\n _this.toggleTouched(true);\n _this.updateFormItem();\n return;\n }\n shouldUpdateItem({\n isInner: true,\n isFormList: info.isFormList,\n });\n break;\n case 'setFieldValue':\n if (isFieldMatch(field, fields)) {\n _this.toggleTouched(true);\n if (info.data && 'touched' in info.data) {\n _this.toggleTouched(info.data.touched);\n }\n if (info.data && 'warnings' in info.data) {\n _this.setWarnings(isNullOrUndefined(info.data.warnings) ? [] : [].concat(info.data.warnings));\n }\n if (info.data && 'errors' in info.data) {\n _this.setErrors(info.data.errors);\n }\n else if (!isEqualWith(get(info.prev, field), get(info.current, field))) {\n _this.setErrors(null);\n }\n _this.updateFormItem();\n return;\n }\n shouldUpdateItem();\n break;\n default:\n break;\n }\n };\n _this.innerSetFieldValue = function (field, value) {\n if (!field)\n return;\n var store = _this.context.store;\n var methods = store.getInnerMethods(true);\n methods.innerSetFieldValue(field, value);\n var changedValue = {};\n set(changedValue, field, value);\n _this.props.onValuesChange &&\n _this.props.onValuesChange(changedValue, __assign({}, store.getFieldsValue()));\n };\n /**\n *\n * @param triggerType the value of validateTrigger.\n * @returns\n */\n _this.validateField = function (triggerType) {\n var _a = _this.context, store = _a.store, ctxValidateTrigger = _a.validateTrigger, validateMessages = _a.validateMessages;\n var _b = _this.props, field = _b.field, rules = _b.rules, validateTrigger = _b.validateTrigger;\n var value = store.getFieldValue(field);\n // 进入到校验中的状态\n var gotoValidatingStatus = function () {\n var _a;\n var needUpdateItem = _this.errors || ((_a = _this.warnings) === null || _a === void 0 ? void 0 : _a.length);\n _this.toggleValidateStatus('validating');\n _this.setErrors(null);\n _this.setWarnings(null);\n needUpdateItem && _this.updateFormItem();\n };\n var _rules = !triggerType\n ? rules\n : (rules || []).filter(function (rule) {\n var triggers = [].concat(rule.validateTrigger || validateTrigger || ctxValidateTrigger);\n return triggers.indexOf(triggerType) > -1;\n });\n if (_rules && _rules.length && field) {\n gotoValidatingStatus();\n return schemaValidate(field, value, _rules, validateMessages).then(function (_a) {\n var _b;\n var error = _a.error, warning = _a.warning;\n _this.setErrors(error ? error[field] : null);\n _this.setWarnings(warning || null);\n _this.toggleValidateStatus(_this.errors ? 'error' : ((_b = _this.warnings) === null || _b === void 0 ? void 0 : _b.length) ? 'warning' : 'success');\n _this.updateFormItem();\n return Promise.resolve({ error: error, value: value, field: field });\n });\n }\n gotoValidatingStatus();\n return Promise.resolve({ error: null, value: value, field: field });\n };\n // 每次 render 都会作为 onChange 传递给 children,需要保证引用地址不变\n // 所以 handleTrigger 需要声明在类上,并且直接作为 children.props.onChange\n _this.handleTrigger = function (_value) {\n var _a;\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var children = (_this.childrenElement || _this.props.children);\n var store = _this.context.store;\n var _b = _this.props, field = _b.field, trigger = _b.trigger, normalize = _b.normalize, getValueFromEvent = _b.getValueFromEvent;\n var value = isFunction(getValueFromEvent) ? getValueFromEvent.apply(void 0, __spreadArray([_value], __read(args), false)) : _value;\n var normalizeValue = value;\n // break if value is instance of SyntheticEvent, 'cos value is missing\n if (isSyntheticEvent(value)) {\n warn(true, 'changed value missed, please check whether extra elements is outta input/select controled by Form.Item');\n value.stopPropagation();\n return;\n }\n if (typeof normalize === 'function') {\n normalizeValue = normalize(value, store.getFieldValue(field), __assign({}, store.getFieldsValue()));\n }\n _this.toggleTouched(true);\n _this.innerSetFieldValue(field, normalizeValue);\n _this.validateField(trigger);\n if (isValidElement(children) && children.props && children.props[trigger]) {\n (_a = children.props)[trigger].apply(_a, __spreadArray([normalizeValue], __read(args), false));\n }\n };\n _this.getChild = function () {\n var children = _this.props.children;\n var store = _this.context.store;\n var child = children;\n if (isFunction(children)) {\n child = children(store.getFields(), __assign({}, store));\n }\n _this.childrenElement = child;\n return child;\n };\n if ('initialValue' in props && _this.hasFieldProps()) {\n var innerMethods = context.store.getInnerMethods(true);\n innerMethods.innerSetInitialValue(props.field, props.initialValue);\n }\n return _this;\n }\n Control.prototype.componentDidMount = function () {\n var store = this.context.store;\n if (store) {\n var innerMethods = store.getInnerMethods(true);\n this.removeRegisterField = innerMethods.registerField(this);\n }\n this.isDestroyed = false;\n };\n Control.prototype.componentDidUpdate = function (prevProps) {\n // key 未改变,但 field 改变了,则需要把绑定在之前 prevProps.field 上的错误状态调整到 props.field\n // 一般会把 field 直接作为 control 的 key,他们会同步变动,不会触发此逻辑\n // 在 FormList 下,`FormItem` 顺序会被改变,为了保证校验状态被保留,key 不会改变但 field 和字段顺序有关\n if (prevProps.field !== this.props.field &&\n this.props._key &&\n prevProps._key === this.props._key) {\n this.updateFormItem();\n this.clearFormItemError(prevProps.field);\n }\n };\n Control.prototype.componentWillUnmount = function () {\n this.removeRegisterField && this.removeRegisterField();\n this.removeRegisterField = null;\n this.clearFormItemError();\n this.isDestroyed = true;\n };\n /**\n * 收集rules里的validateTrigger字段\n */\n Control.prototype.getValidateTrigger = function () {\n var _validateTrigger = this.props.validateTrigger || this.context.validateTrigger || 'onChange';\n var rules = this.props.rules || [];\n var result = [];\n rules.map(function (item) {\n result = result.concat(item.validateTrigger || _validateTrigger);\n });\n return Array.from(new Set(result));\n };\n Control.prototype.renderControl = function (children, id) {\n var _a;\n var _this = this;\n var _b;\n var _c = this.props, field = _c.field, _d = _c.trigger, trigger = _d === void 0 ? 'onChange' : _d, _e = _c.triggerPropName, triggerPropName = _e === void 0 ? 'value' : _e, validateStatus = _c.validateStatus, formatter = _c.formatter;\n var _f = this.context, store = _f.store, ctxDisabled = _f.disabled;\n var disabled = 'disabled' in this.props ? this.props.disabled : ctxDisabled;\n var child = React.Children.only(children);\n var childProps = {\n // used by label\n id: classNames(((_b = child.props) === null || _b === void 0 ? void 0 : _b.id) || (_a = {}, _a[\"\".concat(id).concat(ID_SUFFIX)] = id, _a)),\n };\n this.getValidateTrigger().forEach(function (vt) {\n childProps[vt] = function (e) {\n _this.validateField(vt);\n child.props[vt] && child.props[vt](e);\n };\n });\n childProps[trigger] = this.handleTrigger;\n if (disabled !== undefined) {\n childProps.disabled = disabled;\n }\n var _value = get(store.getInnerMethods(true).innerGetStore(), field);\n if (isFunction(formatter)) {\n _value = formatter(_value);\n }\n childProps[triggerPropName] = _value;\n if (!validateStatus && this.errors) {\n childProps.error = true;\n }\n return React.cloneElement(child, childProps);\n };\n Control.prototype.render = function () {\n var _a = this.props, noStyle = _a.noStyle, field = _a.field, isFormList = _a.isFormList, hasFeedback = _a.hasFeedback;\n var validateStatus = this.getValidateStatus();\n var _b = this.context, prefixCls = _b.prefixCls, getFormElementId = _b.getFormElementId;\n var child = this.getChild();\n var id = this.hasFieldProps() ? getFormElementId(field) : undefined;\n if (this.hasFieldProps() && !isFormList && React.Children.count(child) === 1) {\n child = this.renderControl(child, id);\n }\n if (noStyle) {\n return child;\n }\n return (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-item-control-wrapper\"), \"data-tid\": \"m4b_form_item_control\" },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-item-control\"), id: id },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-item-control-children\") },\n child,\n validateStatus && hasFeedback && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-item-feedback\") },\n validateStatus === 'warning' && React.createElement(IconInfoWarning, { style: { stroke: 'none' } }),\n validateStatus === 'success' && React.createElement(IconSuccess, { style: { stroke: 'none' } }),\n validateStatus === 'error' && React.createElement(IconError, { style: { stroke: 'none' } }),\n validateStatus === 'validating' && React.createElement(IconLoading, { style: { stroke: 'none' } })))))));\n };\n Control.defaultProps = {\n trigger: 'onChange',\n triggerPropName: 'value',\n };\n Control.isFormControl = true;\n Control.contextType = FormItemContext;\n return Control;\n}(Component));\nexport default Control;\n","import { ConfigProvider } from '@arco-design/web-react';\nimport { useContext } from 'react';\nvar defaultCopy = {\n optional: 'Optional',\n};\nexport var useI18nCopy = function () {\n var _a;\n var locale = useContext(ConfigProvider.ConfigContext).locale;\n var t = ((_a = locale === null || locale === void 0 ? void 0 : locale.Form) === null || _a === void 0 ? void 0 : _a.optional)\n ? locale === null || locale === void 0 ? void 0 : locale.Form\n : defaultCopy;\n return t;\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n/* eslint-disable no-console */\nimport React from 'react';\nimport Tooltip from '@m4b-design/tooltip';\nimport { IconQuestionCircle } from '@arco-design/iconbox-react-m4b-next';\nimport { cs, ID_SUFFIX, isObject } from '../utils';\nimport { useI18nCopy } from '../hooks/useI18nCopy';\n// 标签\nvar FormItemLabel = function (_a) {\n var _b;\n var htmlFor = _a.htmlFor, showColon = _a.showColon, label = _a.label, prefix = _a.prefix, helpTip = _a.helpTip, subTitle = _a.subTitle, optional = _a.optional, layout = _a.layout, requiredSymbol = _a.requiredSymbol, helpTipTooltipProps = _a.helpTipTooltipProps;\n var prefixCls = \"\".concat(prefix, \"-form-label\");\n var isOptional = isObject(optional) ? optional.show : optional;\n // symbolPosition 逻辑不支持变更位置\n // const symbolPosition = isObject(requiredSymbol) ? requiredSymbol.position : 'start';\n var t = useI18nCopy();\n // 空label用于占位使用\n var labelChildren = label !== null && label !== void 0 ? label : React.createElement(\"div\", null, \"\\u00A0\");\n if (isOptional) {\n labelChildren = (React.createElement(React.Fragment, null,\n labelChildren,\n React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-optional\") }, isObject(optional) && (optional === null || optional === void 0 ? void 0 : optional.content) ? \"\".concat(optional === null || optional === void 0 ? void 0 : optional.content) : \"(\".concat(t.optional, \")\"))));\n }\n if (helpTip) {\n var tooltipNode = (React.createElement(Tooltip, __assign({ content: helpTip }, (helpTipTooltipProps !== null && helpTipTooltipProps !== void 0 ? helpTipTooltipProps : {})),\n React.createElement(IconQuestionCircle, { className: \"\".concat(prefixCls, \"-help-icon\") })));\n labelChildren = (React.createElement(React.Fragment, null,\n labelChildren,\n tooltipNode));\n }\n var labelClassName = cs((_b = {},\n _b[\"\".concat(prefixCls, \"-symbol-before\")] = !optional && !!requiredSymbol,\n _b[\"\".concat(prefixCls, \"-item-no-subTitle\")] = !subTitle,\n _b[\"\".concat(prefixCls, \"-colon\")] = showColon,\n _b));\n if (layout === 'vertical' && subTitle) {\n return (React.createElement(\"label\", { htmlFor: htmlFor && \"\".concat(htmlFor).concat(ID_SUFFIX), className: \"\".concat(prefixCls, \"-container\") },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-title\") }, labelChildren),\n subTitle && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-subtitle\") }, typeof subTitle === 'string' ? (React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-information\") }, subTitle)) : (subTitle)))));\n }\n return (React.createElement(\"label\", { htmlFor: htmlFor, className: labelClassName, title: typeof label === 'string' ? label : '' }, labelChildren));\n};\nexport default FormItemLabel;\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n/* eslint-disable no-redeclare */\nimport { useState, useCallback } from 'react';\nexport function useControlled(props, options) {\n if (props === void 0) { props = {}; }\n if (options === void 0) { options = {}; }\n var _defaultValue = options.defaultValue, _a = options.defaultValuePropName, defaultValuePropName = _a === void 0 ? 'defaultValue' : _a, _b = options.valuePropName, valuePropName = _b === void 0 ? 'value' : _b, _c = options.onChangePropName, onChangePropName = _c === void 0 ? 'onChange' : _c;\n var propValue = props[valuePropName];\n var propOnChange = props[onChangePropName];\n var defaultValue = defaultValuePropName in props ? props[defaultValuePropName] : _defaultValue;\n var isControlled = valuePropName in props;\n var _d = __read(useState(function () { return (isControlled ? propValue : defaultValue); }), 2), innerState = _d[0], setInnerState = _d[1];\n var state = (isControlled ? propValue : innerState);\n var setState = useCallback(function (state) {\n var otherParams = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n otherParams[_i - 1] = arguments[_i];\n }\n setInnerState(state);\n if (propOnChange) {\n propOnChange.apply(void 0, __spreadArray([state], __read(otherParams), false));\n }\n }, [propOnChange]);\n return [state, setState];\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { ConfigProvider } from '@arco-design/web-react';\nimport { useContext } from 'react';\nvar defaultCopy = {\n dismiss: 'Dismiss',\n showMore: 'Show more',\n showLess: 'Show less',\n};\nexport var useI18nCopy = function () {\n var _a, _b;\n var locale = useContext(ConfigProvider.ConfigContext).locale;\n var tAlert = (locale === null || locale === void 0 ? void 0 : locale.Alert) || ((_a = locale === null || locale === void 0 ? void 0 : locale.M4B) === null || _a === void 0 ? void 0 : _a.Alert) || defaultCopy;\n var tNotiCard = (locale === null || locale === void 0 ? void 0 : locale.NotificationCard) ||\n ((_b = locale === null || locale === void 0 ? void 0 : locale.M4B) === null || _b === void 0 ? void 0 : _b.NotificationCard) ||\n defaultCopy;\n return __assign(__assign({}, tAlert), tNotiCard);\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport Button from '@m4b-design/button';\nimport { IconDown } from '@arco-design/iconbox-react-m4b-next';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { useI18nCopy } from '../hooks/useI18nCopy';\nvar expandNodesStyle = {\n textAlign: 'center',\n margin: '5px 0 0 -15px',\n cursor: 'pointer',\n};\nexport var MoreIcon = function (props) {\n var _a;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-alert\");\n var t = useI18nCopy();\n return (React.createElement(\"div\", __assign({ style: expandNodesStyle, className: \"\".concat(prefixCls, \"-expand-icon-wrapper\") }, ((_a = props.containerProps) !== null && _a !== void 0 ? _a : {})),\n React.createElement(Button, { type: \"text\", size: \"mini\" },\n t.showMore,\n React.createElement(IconDown, null))));\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport Button from '@m4b-design/button';\nimport { IconUp } from '@arco-design/iconbox-react-m4b-next';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { useI18nCopy } from '../hooks/useI18nCopy';\nvar expandNodesStyle = {\n textAlign: 'center',\n margin: '5px 0 0 -15px',\n cursor: 'pointer',\n};\nexport var CollapseIcon = function (props) {\n var _a;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-alert\");\n var t = useI18nCopy();\n return (React.createElement(\"div\", __assign({ style: expandNodesStyle, className: \"\".concat(prefixCls, \"-expand-icon-wrapper\") }, ((_a = props.containerProps) !== null && _a !== void 0 ? _a : {})),\n React.createElement(Button, { type: \"text\", size: \"mini\" },\n t.showLess,\n React.createElement(IconUp, null))));\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport React, { forwardRef, useLayoutEffect, useMemo, useRef, useState, } from 'react';\nimport { Tooltip } from '@arco-design/web-react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { IconSuccess, IconError, IconWarning, IconClose, IconInfoBlue, } from '@arco-design/iconbox-react-m4b-next';\nimport cx from 'classnames';\nimport { CSSTransition } from 'react-transition-group';\nimport { ArcoIconWrapper } from '@m4b-design/utils';\nimport { useControlled } from './hooks/use-controlled';\nimport './style/alert.less';\nimport { useI18nCopy } from './hooks/useI18nCopy';\nimport { MoreIcon } from './components/MoreIcon';\nimport { CollapseIcon } from './components/CollapseIcon';\nvar AlertRender = function (props, ref) {\n var _a, _b;\n var _c;\n var style = props.style, className = props.className, wrapperClassName = props.wrapperClassName, background = props.background, content = props.content, icon = props.icon, _d = props.showIcon, showIcon = _d === void 0 ? true : _d, _e = props.type, type = _e === void 0 ? 'success' : _e, closable = props.closable, closeElement = props.closeElement, onClose = props.onClose, afterClose = props.afterClose, _f = props.contentStyle, contentStyle = _f === void 0 ? {} : _f, _g = props.defaultLineClamp, _defaultLineClamp = _g === void 0 ? 3 : _g, _h = props.expandMode, expandMode = _h === void 0 ? true : _h, _j = props.hideExpandButtonOnInView, hideExpandButtonOnInView = _j === void 0 ? true : _j, _k = props.size, size = _k === void 0 ? 'default' : _k, rest = __rest(props, [\"style\", \"className\", \"wrapperClassName\", \"background\", \"content\", \"icon\", \"showIcon\", \"type\", \"closable\", \"closeElement\", \"onClose\", \"afterClose\", \"contentStyle\", \"defaultLineClamp\", \"expandMode\", \"hideExpandButtonOnInView\", \"size\"]);\n var t = useI18nCopy();\n var _l = __read(useState(true), 2), visible = _l[0], setVisible = _l[1];\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-alert\");\n var classNames = cx(prefixCls, \"\".concat(prefixCls, \"-\").concat(type), \"\".concat(prefixCls, \"-size-\").concat(size), (_a = {},\n _a[\"\".concat(prefixCls, \"-without-background\")] = !background,\n _a), className);\n var _m = __read(useControlled(props, {\n valuePropName: 'expanded',\n onChangePropName: 'onExpandChange',\n defaultValuePropName: 'defaultExpanded',\n }), 2), expanded = _m[0], setExpanded = _m[1];\n var defaultLineClamp = expanded ? 'unset' : _defaultLineClamp;\n function renderIcon(type) {\n if (icon) {\n return icon;\n }\n switch (type) {\n case 'success':\n return React.createElement(ArcoIconWrapper, { Icon: IconSuccess });\n case 'warning':\n return React.createElement(ArcoIconWrapper, { Icon: IconWarning });\n case 'error':\n return React.createElement(ArcoIconWrapper, { Icon: IconError });\n case 'info':\n return React.createElement(ArcoIconWrapper, { Icon: IconInfoBlue });\n default:\n return null;\n }\n }\n function onHandleClose(e) {\n setVisible(false);\n onClose && onClose(e);\n }\n var tooltipProps = (_c = props.tooltipProps) !== null && _c !== void 0 ? _c : {};\n var contentRef = useRef();\n var _o = __read(useState(false), 2), contentOverflow = _o[0], setContentOverflow = _o[1];\n useLayoutEffect(function () {\n var dom = contentRef.current;\n if (!dom)\n return;\n setContentOverflow(dom.scrollHeight > dom.offsetHeight);\n }, [content]);\n var expandNode = useMemo(function () {\n var node = expanded ? (React.createElement(CollapseIcon, { containerProps: {\n onClick: function () {\n setExpanded(false);\n },\n } })) : (React.createElement(MoreIcon, { containerProps: {\n onClick: function () {\n setExpanded(true);\n },\n } }));\n if (!expandMode)\n return null;\n if (!hideExpandButtonOnInView)\n return node;\n if (!contentOverflow)\n return null;\n return node;\n }, [contentOverflow, expandMode, expanded, hideExpandButtonOnInView, setExpanded]);\n return (React.createElement(CSSTransition, { in: visible, timeout: 300, classNames: \"zoomInTop\", unmountOnExit: true, onExited: function () {\n afterClose && afterClose();\n } },\n React.createElement(\"div\", __assign({ ref: ref, className: classNames, style: style, role: \"alert\", \"data-tid\": \"m4b_alert\" }, rest),\n React.createElement(Tooltip, __assign({}, tooltipProps, { content: typeof tooltipProps.content === 'string' ? (React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-tooltip-content\") }, tooltipProps.content)) : (tooltipProps.content) }),\n React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-wrapper\"), wrapperClassName) },\n showIcon && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-icon-wrapper\") }, renderIcon(type)),\n content && (React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-content-wrapper\")) },\n React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-content\"), (_b = {},\n _b[\"\".concat(prefixCls, \"-content-with-tooltip\")] = Boolean(props.tooltipProps),\n _b)), style: __assign({ WebkitLineClamp: defaultLineClamp }, contentStyle), ref: contentRef },\n Boolean(props.tooltipProps) && !background ? React.createElement(\"span\", null, content) : content,\n !background && closable && (React.createElement(\"button\", { className: \"\".concat(prefixCls, \"-close-btn\"), onClick: onHandleClose }, closeElement || t.dismiss))),\n expandNode)))),\n background && closable && (React.createElement(\"button\", { className: \"\".concat(prefixCls, \"-close-btn\"), onClick: onHandleClose }, closeElement || React.createElement(IconClose, null))))));\n};\nvar Alert = forwardRef(AlertRender);\nAlert.displayName = 'Alert';\nexport default Alert;\n","import React from 'react';\nexport var errorIcon = (React.createElement(\"svg\", { width: \"16\", height: \"17\", viewBox: \"0 0 16 17\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8 1.5C4.13401 1.5 1 4.63401 1 8.5C1 12.366 4.13401 15.5 8 15.5C11.866 15.5 15 12.366 15 8.5C15 4.63401 11.866 1.5 8 1.5ZM10.8243 11.3243C10.5899 11.5586 10.21 11.5586 9.97574 11.3243L8 9.34853L6.02426 11.3243C5.78995 11.5586 5.41005 11.5586 5.17574 11.3243C4.94142 11.0899 4.94142 10.7101 5.17574 10.4757L7.15147 8.5L5.17574 6.52426C4.94142 6.28995 4.94142 5.91005 5.17574 5.67574C5.41005 5.44142 5.78995 5.44142 6.02426 5.67574L8 7.65147L9.97574 5.67574C10.2101 5.44142 10.5899 5.44142 10.8243 5.67574C11.0586 5.91005 11.0586 6.28995 10.8243 6.52426L8.84853 8.5L10.8243 10.4757C11.0586 10.7101 11.0586 11.0899 10.8243 11.3243Z\", fill: \"white\" })));\nexport var warningIcon = (React.createElement(\"svg\", { width: \"16\", height: \"17\", viewBox: \"0 0 16 17\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"path\", { d: \"M0.427387 13.7541L7.56586 1.25986C7.7578 0.92391 8.2422 0.92391 8.43414 1.25985L15.5726 13.7541C15.7631 14.0874 15.5224 14.5021 15.1385 14.5021H0.861525C0.477629 14.5021 0.236943 14.0874 0.427387 13.7541Z\", fill: \"white\" }),\n React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8.76066 5.85352H7.24066L7.3633 9.85352H8.60377L8.76066 5.85352ZM8.00064 12.5013C8.46807 12.5013 8.84699 12.1224 8.84699 11.655C8.84699 11.1876 8.46807 10.8087 8.00064 10.8087C7.53322 10.8087 7.1543 11.1876 7.1543 11.655C7.1543 12.1224 7.53322 12.5013 8.00064 12.5013Z\", fill: \"#FA8416\" })));\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { IconClose } from '@arco-design/iconbox-react-m4b-next';\nimport { CSSTransition } from 'react-transition-group';\nimport cx from 'classnames';\nimport { errorIcon, warningIcon } from './assets/icon';\nimport './style/banner.less';\nimport { useControlled } from './hooks/use-controlled';\nvar AlertBannerRender = function (props, ref) {\n var _a;\n var globalPrefixCls = useConfigContext().prefixCls;\n var style = props.style, className = props.className, wrapperClassName = props.wrapperClassName, action = props.action, _b = props.type, type = _b === void 0 ? 'warning' : _b, title = props.title, content = props.content, icon = props.icon, _c = props.showIcon, showIcon = _c === void 0 ? true : _c, closable = props.closable, afterClose = props.afterClose, onClose = props.onClose, closeElement = props.closeElement;\n var _d = __read(useControlled(props, {\n valuePropName: 'closeVisible',\n onChangePropName: 'onCloseVisible',\n defaultValuePropName: 'defaultCloseVisible',\n defaultValue: true,\n }), 2), closeVisible = _d[0], setCloseVisible = _d[1];\n function renderIcon(type) {\n if (icon) {\n return icon;\n }\n switch (type) {\n case 'warning':\n return warningIcon;\n case 'error':\n return errorIcon;\n default:\n return null;\n }\n }\n function onHandleClose(e) {\n setCloseVisible(false);\n onClose && onClose(e);\n }\n var prefixCls = \"\".concat(globalPrefixCls, \"-alert-banner\");\n var classNames = cx(prefixCls, \"\".concat(prefixCls, \"-\").concat(type), (_a = {},\n _a[\"\".concat(prefixCls, \"-with-title\")] = title,\n _a), className);\n var wrapperClassNames = cx(\"\".concat(prefixCls, \"-wrapper\"), wrapperClassName);\n return (React.createElement(CSSTransition, { in: closeVisible, timeout: 300, classNames: \"zoomInTop\", unmountOnExit: true, onExited: function () {\n afterClose && afterClose();\n } },\n React.createElement(\"div\", { ref: ref, style: style, className: classNames, role: \"alert\", \"data-tid\": \"m4b_alert_banner\" },\n React.createElement(\"div\", { className: wrapperClassNames },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-content-wrapper\") },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-title-wrapper\") },\n showIcon && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-icon-wrapper\") }, renderIcon(type)),\n title && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-title\") }, title)),\n content && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-content\") }, content)),\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-action-wrapper\") },\n action && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-action\") }, action),\n closable && (React.createElement(\"button\", { onClick: onHandleClose, className: \"\".concat(prefixCls, \"-close-btn\") }, closeElement || React.createElement(IconClose, null))))))));\n};\nvar AlertBanner = forwardRef(AlertBannerRender);\nAlertBanner.displayName = 'Alert.Banner';\nexport default AlertBanner;\n","import Alert from './alert';\nimport AlertBanner from './banner';\nvar AlertExport = Alert;\nAlertExport.Banner = AlertBanner;\nexport * from './interface';\nexport default AlertExport;\n","/* eslint-disable no-console */\nimport React from 'react';\nimport Alert from '@m4b-design/alert';\nimport { CSSTransition } from 'react-transition-group';\nimport { isUndefined, cs } from '../utils';\n// 标签\n/**\n * form 的默认校验处理结束的 errors 和 warning 的展示逻辑\n * 相对 arco form ,增加了 validateMessagesDisplayType 来增加message 的默认展示样式\n */\nvar FormItemTip = function (_a) {\n var _b;\n var validateMessagesDisplayType = _a.validateMessagesDisplayType, prefixCls = _a.prefixCls, help = _a.help, propsErrors = _a.errors, warnings = _a.warnings;\n var isAlert = validateMessagesDisplayType === 'alert';\n var isTooltip = validateMessagesDisplayType === 'tooltip';\n var errorTip = propsErrors.map(function (item, i) {\n if (item) {\n if (isAlert) {\n return (React.createElement(\"div\", { key: i, role: \"alert\" },\n React.createElement(Alert, { type: \"error\", background: true, content: item.message })));\n }\n return (React.createElement(\"div\", { key: i, role: \"alert\" }, item.message));\n }\n });\n var warningTip = [];\n warnings.map(function (item, i) {\n warningTip.push(React.createElement(\"div\", { key: i, role: \"alert\", className: \"\".concat(prefixCls, \"-message-help-warning\") }, item));\n });\n var isHelpTip = !isUndefined(help) || !!warningTip.length;\n var visible = isHelpTip || !!errorTip.length;\n return (visible && (React.createElement(CSSTransition, { in: visible, appear: true, classNames: \"formblink\", timeout: 300, unmountOnExit: true }, isTooltip ? (React.createElement(\"div\", null)) : (React.createElement(\"div\", { className: cs(\"\".concat(prefixCls, \"-message\"), (_b = {},\n _b[\"\".concat(prefixCls, \"-message-help\")] = isHelpTip,\n _b[\"\".concat(prefixCls, \"-message-alert\")] = isAlert,\n _b)) }, !isUndefined(help) ? (help) : (React.createElement(React.Fragment, null,\n errorTip.length > 0 && errorTip,\n warningTip.length > 0 && warningTip)))))));\n};\nexport default FormItemTip;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n/* eslint-disable no-console */\nimport React, { cloneElement, forwardRef, useContext, useState, useEffect, useMemo, useRef, } from 'react';\nimport { Grid, ConfigProvider as ArcoConfigProvider } from '@arco-design/web-react';\nimport ConfigProvider, { useConfigContext } from '@m4b-design/config-provider';\nimport { cs, isArray, isFunction, isUndefined, isObject, omit, formatValidateMsg, isString, getItemSpacingSize, } from '../utils';\nimport { VALIDATE_STATUS } from '../constant';\nimport Control from './control';\nimport { FormItemContext as RawFormItemContext, FormContext, FormListContext, } from '../context';\nimport FormItemLabel from './form-label';\nimport FormItemTip from './form-item-tip';\nvar ConfigContext = ArcoConfigProvider.ConfigContext;\nvar Row = Grid.Row;\nvar Col = Grid.Col;\nvar Item = function (props, ref) {\n var _a, _b, _c, _d;\n var _e, _f, _g, _h, _j, _k, _l;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixClsItem = \"\".concat(globalPrefixCls, \"-form-item\");\n var label = props.label, subTitle = props.subTitle, helpTip = props.helpTip, helpTipTooltipProps = props.helpTipTooltipProps, prompt = props.prompt, description = props.description, validateMessagesDisplayTypeProps = props.validateMessagesDisplayType, rulesProps = props.rules, extra = props.extra, help = props.help, className = props.className, style = props.style, validateStatus = props.validateStatus, hidden = props.hidden, optional = props.optional, itemSpacingSize = props.itemSpacingSize, rest = __rest(props, [\"label\", \"subTitle\", \"helpTip\", \"helpTipTooltipProps\", \"prompt\", \"description\", \"validateMessagesDisplayType\", \"rules\", \"extra\", \"help\", \"className\", \"style\", \"validateStatus\", \"hidden\", \"optional\", \"itemSpacingSize\"]);\n var _m = useContext(ConfigContext), getPrefixCls = _m.getPrefixCls, prefix = _m.prefixCls;\n var topFormContext = useContext(RawFormItemContext);\n var formListContext = useContext(FormListContext);\n var _o = __read(useState(null), 2), errors = _o[0], setErrors = _o[1];\n var _p = __read(useState(null), 2), warnings = _p[0], setWarnings = _p[1];\n /**\n * 这里的一些值是在form 有传递过来的,form-item 里也有对应的值,这里需要处理 form 和 form-item的值问题,确定取哪一个,\n */\n // const formLayout = 'vertical';\n var formContext = useContext(FormContext);\n var formLayout = props.layout || formContext.layout;\n var prefixCls = formContext.prefixCls || getPrefixCls('form');\n var labelAlign = props.labelAlign || formContext.labelAlign;\n var isDestroyed = useRef(false);\n var closeColumns = formContext === null || formContext === void 0 ? void 0 : formContext.closeColumns;\n var columnsNum = (_e = formContext === null || formContext === void 0 ? void 0 : formContext.columnsNum) !== null && _e !== void 0 ? _e : 1;\n var optionalVal = optional !== null && optional !== void 0 ? optional : formContext === null || formContext === void 0 ? void 0 : formContext.optional;\n // 获取 form-item 的间距\n var itemSpacingSizeVal = getItemSpacingSize((_f = formContext === null || formContext === void 0 ? void 0 : formContext.itemSpacingSize) !== null && _f !== void 0 ? _f : itemSpacingSize);\n // 处理报错信息的展示类型\n var validateMessagesDisplayType = validateMessagesDisplayTypeProps !== null && validateMessagesDisplayTypeProps !== void 0 ? validateMessagesDisplayTypeProps : formContext === null || formContext === void 0 ? void 0 : formContext.validateMessagesDisplayType;\n var isTooltipDisplayType = validateMessagesDisplayType === 'tooltip';\n // prompt 位置有2处,一处是form-item 底部,一处是 form-item 头部。\n var promptIsBottom = isString(prompt) || isUndefined(prompt) || prompt.position === 'bottom';\n var promptContent = isString(prompt) || isUndefined(prompt) ? prompt : prompt.content;\n // 是否将 rules 和 optional 解绑\n var maintainRawRules = formContext === null || formContext === void 0 ? void 0 : formContext.maintainRawRules;\n /**\n * 对规则做处理,默认 optional 为false, 且默认form-item的required为true\n */\n var rules = rulesProps;\n if (!maintainRawRules) {\n if ((rulesProps === null || rulesProps === void 0 ? void 0 : rulesProps.length) > 0) {\n rules = rulesProps.map(function (item) { return (__assign(__assign({}, item), { required: Boolean(!optionalVal) })); });\n }\n else {\n rules = [{ required: Boolean(!optionalVal) }];\n }\n }\n // 是否为垂直布局\n var isVertical = formLayout === 'vertical';\n // 当前 form-item 是否是独立使用不在 form 容器内。\n var formItemAlone = (_g = formContext === null || formContext === void 0 ? void 0 : formContext.formItemAlone) !== null && _g !== void 0 ? _g : topFormContext === null || topFormContext === void 0 ? void 0 : topFormContext.formItemAlone;\n // update error status\n var updateInnerFormItem = function (field, params) {\n if (params === void 0) { params = {}; }\n if (isDestroyed.current) {\n return;\n }\n var _a = params || {}, errors = _a.errors, warnings = _a.warnings;\n setErrors(function (innerErrors) {\n var newErrors = __assign({}, (innerErrors || {}));\n if (errors) {\n newErrors[field] = errors;\n }\n else {\n delete newErrors[field];\n }\n return newErrors;\n });\n setWarnings(function (current) {\n var newVal = __assign({}, (current || {}));\n if (warnings && warnings.length) {\n newVal[field] = warnings;\n }\n else {\n delete newVal[field];\n }\n return newVal;\n });\n };\n var updateFormItem = isObject(props.noStyle) && props.noStyle.showErrorTip && topFormContext.updateFormItem\n ? topFormContext.updateFormItem\n : updateInnerFormItem;\n useEffect(function () {\n isDestroyed.current = false;\n return function () {\n isDestroyed.current = true;\n setErrors(null);\n setWarnings(null);\n };\n }, []);\n var contextProps = __assign(__assign({}, formContext), { validateMessages: formContext.validateMessages &&\n formatValidateMsg(formContext.validateMessages, {\n label: props.label,\n }), prefixCls: prefixCls, updateFormItem: updateFormItem, disabled: 'disabled' in props ? props.disabled : formContext.disabled });\n var labelClassNames = cs(\"\".concat(prefixCls, \"-label-item\"), (_a = {},\n _a[\"\".concat(prefixCls, \"-label-item-left\")] = labelAlign === 'left',\n _a));\n var errorInfo = errors ? Object.values(errors) : [];\n // 当 form-item 单独使用时,需要做定义error 场景,行内报错信息需要透传\n if (formItemAlone && typeof help === 'string') {\n errorInfo = [\n {\n message: help,\n },\n ];\n }\n var warningInfo = warnings\n ? Object.values(warnings).reduce(function (total, next) { return total.concat(next); }, [])\n : [];\n var itemStatus = useMemo(function () {\n if (validateStatus) {\n return validateStatus;\n }\n if (errorInfo.length) {\n return VALIDATE_STATUS.error;\n }\n if (warningInfo.length) {\n return VALIDATE_STATUS.warning;\n }\n return undefined;\n }, [errors, warnings, validateStatus]);\n var hasHelp = useMemo(function () {\n return !isUndefined(props.help) || warningInfo.length > 0;\n }, [props.help, warnings]);\n var classNames = cs(\"\".concat(prefixCls, \"-item\"), prefixClsItem, (_b = {},\n _b[\"\".concat(prefixCls, \"-item-error\")] = hasHelp || (!validateStatus && itemStatus === VALIDATE_STATUS.error),\n _b[\"\".concat(prefixCls, \"-item-status-\").concat(itemStatus)] = itemStatus,\n _b[\"\".concat(prefixCls, \"-item-has-help\")] = hasHelp,\n _b[\"\".concat(prefixCls, \"-item-hidden\")] = hidden,\n _b[\"\".concat(prefixCls, \"-item-has-feedback\")] = itemStatus && props.hasFeedback,\n _b[\"\".concat(prefixCls, \"-item-error-tooltip\")] = isTooltipDisplayType,\n _b[\"\".concat(prefixCls, \"-item-bottom-mini\")] = itemSpacingSizeVal === 'mini',\n _b[\"\".concat(prefixCls, \"-item-bottom-small\")] = itemSpacingSizeVal === 'small',\n _b[\"\".concat(prefixCls, \"-item-bottom-default\")] = itemSpacingSizeVal === 'default',\n _b), \"\".concat(prefixCls, \"-layout-\").concat(formLayout), className);\n var cloneElementWithDisabled = function () {\n var _a, _b;\n var field = props.field, children = props.children;\n var disabled = 'disabled' in props ? props.disabled : formContext.disabled;\n if (isFunction(children)) {\n return (React.createElement(Control, __assign({ disabled: disabled }, props, (field ? { key: field, _key: field } : {}), { rules: rules }), function () {\n var rest = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n rest[_i] = arguments[_i];\n }\n return children.apply(void 0, __spreadArray([], __read(rest), false));\n }\n // eslint-disable-next-line react/jsx-curly-newline\n ));\n }\n if (isArray(children)) {\n var childrenDom = React.Children.map(children, function (child, i) {\n var key = (isObject(child) && child.key) || i;\n var childProps = !isUndefined(disabled) ? { key: key, disabled: disabled } : { key: key };\n return isObject(child) ? cloneElement(child, childProps) : child;\n });\n return (React.createElement(Control, __assign({}, props, { field: undefined, rules: rules }), childrenDom));\n }\n if (React.Children.count(children) === 1) {\n if (field) {\n var key = ((_a = formListContext === null || formListContext === void 0 ? void 0 : formListContext.getItemKey) === null || _a === void 0 ? void 0 : _a.call(formListContext, field)) || field;\n return (React.createElement(Control, __assign({ disabled: disabled }, props, { key: key, _key: key, rules: rules }), children));\n }\n if (isObject(children)) {\n // Compatible Form.Control\n if ((_b = children.type) === null || _b === void 0 ? void 0 : _b.isFormControl) {\n return children;\n }\n var childProps = isUndefined(disabled) ? {} : { disabled: disabled };\n return (React.createElement(Control, __assign({}, props, { field: undefined, rules: rules }), cloneElement(children, childProps)));\n }\n }\n return children;\n };\n var FormItemContext = RawFormItemContext;\n var newFormContext = __assign({}, formContext);\n if (!props.noStyle) {\n newFormContext.wrapperCol = undefined;\n newFormContext.labelCol = undefined;\n }\n var getFormItemStyle = function (style) {\n if (['mini', 'small', 'default'].includes(itemSpacingSizeVal)) {\n return style;\n }\n return __assign({ marginBottom: itemSpacingSizeVal }, style);\n };\n var formItemDom = (React.createElement(ConfigProvider, { errorsContent: isTooltipDisplayType ? errorInfo : undefined, tooltipErrorProps: isTooltipDisplayType && ((_h = errorInfo[0]) === null || _h === void 0 ? void 0 : _h.message)\n ? { content: errorInfo[0].message, mode: 'error' }\n : undefined },\n React.createElement(FormContext.Provider, { value: newFormContext },\n React.createElement(FormItemContext.Provider, { value: contextProps }, props.noStyle ? (cloneElementWithDisabled()) : (React.createElement(Row, __assign({ \"data-tid\": \"m4b_form_item\", ref: ref }, omit(rest, [\n 'children',\n 'prefixCls',\n 'store',\n 'initialValue',\n 'field',\n 'labelCol',\n 'wrapperCol',\n 'colon',\n 'disabled',\n 'rules',\n 'trigger',\n 'triggerPropName',\n 'validateTrigger',\n 'noStyle',\n 'hasFeedback',\n 'help',\n 'normalize',\n 'formatter',\n 'getValueFromEvent',\n 'shouldUpdate',\n 'field',\n 'isInner',\n 'labelAlign',\n 'layout',\n 'isFormList',\n 'subTitle',\n 'helpTip',\n 'helpTipTooltipProps',\n 'prompt',\n 'optional',\n 'description',\n 'showLabel',\n 'customColspan',\n 'requiredSymbol',\n 'validateMessagesDisplayType',\n ]), { className: classNames, div: formLayout !== 'horizontal', style: getFormItemStyle(style) }),\n label || props.showLabel ? (React.createElement(Col, __assign({}, (props.labelCol || formContext.labelCol), { className: cs(labelClassNames, (_j = props.labelCol) === null || _j === void 0 ? void 0 : _j.className, (_k = formContext.labelCol) === null || _k === void 0 ? void 0 : _k.className, (_c = {},\n _c[\"\".concat(prefixCls, \"-label-item-flex\")] = !props.labelCol && !formContext.labelCol,\n _c)) }),\n React.createElement(FormItemLabel, { htmlFor: props.field && formContext.getFormElementId(props.field), subTitle: subTitle, helpTip: helpTip, helpTipTooltipProps: helpTipTooltipProps, optional: optionalVal, requiredSymbol: 'requiredSymbol' in props ? props.requiredSymbol : formContext.requiredSymbol, label: label, prefix: prefix, layout: formLayout, showColon: 'colon' in props ? props.colon : formContext.colon }))) : null,\n React.createElement(Col, __assign({ className: cs(\"\".concat(prefixCls, \"-item-wrapper\"), (_d = {},\n _d[\"\".concat(prefixCls, \"-item-wrapper-flex\")] = !props.wrapperCol && !formContext.wrapperCol,\n _d)) }, (props.wrapperCol || formContext.wrapperCol)),\n description && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-description\") },\n description.title && (React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-description-title\") }, description.title)),\n isString(description.content) ? (React.createElement(\"span\", { className: \"\".concat(prefixCls, \"-description-content\") }, description.content)) : (description.content))),\n !promptIsBottom && prompt && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-prompt\"), style: {\n marginBottom: '8px',\n } }, isString(promptContent) ? React.createElement(\"span\", null, promptContent) : promptContent)),\n cloneElementWithDisabled(),\n React.createElement(FormItemTip, { validateMessagesDisplayType: validateMessagesDisplayType, prefixCls: prefixCls, help: props.help, errors: errorInfo, warnings: warningInfo }),\n extra && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-extra\") }, extra),\n promptIsBottom && prompt && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-prompt\"), style: {\n // paddingLeft: isString(prompt) ? '12px' : 0,\n marginTop: '8px',\n } }, isString(promptContent) ? React.createElement(\"span\", null, promptContent) : promptContent)))))))));\n if (isVertical && !closeColumns && !formItemAlone) {\n /**\n * 如果form-item 没有设定自己的 customColspan, 则根据全局的分列计算,否则使用设定的 span。\n */\n return React.createElement(Col, { span: (_l = props.customColspan) !== null && _l !== void 0 ? _l : 24 / columnsNum }, formItemDom);\n }\n return formItemDom;\n};\nvar ItemComponent = forwardRef(Item);\nItemComponent.defaultProps = {\n trigger: 'onChange',\n triggerPropName: 'value',\n};\nItemComponent.displayName = 'FormItem';\nexport default ItemComponent;\n","import React, { useCallback, forwardRef, useRef, } from 'react';\nimport { FormProviderContext } from './context';\nvar FormProviderComponent = function (props, _) {\n var formsRef = useRef({});\n var register = useCallback(function (name, form) {\n if (name) {\n formsRef.current[name] = form;\n }\n return function () {\n delete formsRef.current[name];\n };\n }, []);\n var onFormSubmit = useCallback(function (name, changedValues) {\n props.onFormSubmit &&\n props.onFormSubmit(name, changedValues, {\n forms: formsRef.current,\n });\n }, [props.onFormSubmit]);\n var onFormValuesChange = useCallback(function (name, values) {\n props.onFormValuesChange &&\n props.onFormValuesChange(name, values, {\n forms: formsRef.current,\n });\n }, [props.onFormValuesChange]);\n return (React.createElement(FormProviderContext.Provider, { value: {\n onFormValuesChange: onFormValuesChange,\n onFormSubmit: onFormSubmit,\n register: register,\n } }, props.children));\n};\nvar FormProvider = forwardRef(FormProviderComponent);\nFormProvider.displayName = 'FormProvider';\nexport default FormProvider;\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { useState, useContext, useEffect, useRef } from 'react';\nimport get from 'lodash/get';\nimport { FormContext } from '../context';\nimport { warning as warn, isArray, isString } from '../utils';\nvar useWatch = function (field, form) {\n var formCtx = useContext(FormContext);\n var formInstance = form || formCtx.store;\n var _a = __read(useState(function () {\n var fieldValues = formInstance === null || formInstance === void 0 ? void 0 : formInstance.getFieldsValue([].concat(field));\n if (isString(field)) {\n return get(fieldValues, field);\n }\n return fieldValues;\n }), 2), value = _a[0], setValue = _a[1];\n // if field change, get the real value from fieldRef.current\n var fieldRef = useRef(field);\n fieldRef.current = field;\n var valueRef = useRef(JSON.stringify(value));\n useEffect(function () {\n if (!formInstance) {\n warn(true, 'formInstance is not available');\n return;\n }\n var registerWatcher = (formInstance === null || formInstance === void 0 ? void 0 : formInstance.getInnerMethods(true)).registerWatcher;\n var updateValue = function () {\n var field = fieldRef.current;\n var formValues = formInstance.getFieldsValue([].concat(field));\n var newValue = formValues;\n if (!isArray(field)) {\n newValue = get(formValues, field);\n }\n var newValueString = JSON.stringify(newValue);\n if (valueRef.current !== newValueString) {\n setValue(newValue);\n valueRef.current = newValueString;\n }\n };\n updateValue();\n var cancelWatch = registerWatcher && registerWatcher(updateValue);\n return function () {\n cancelWatch && cancelWatch();\n };\n }, []);\n return value;\n};\nexport default useWatch;\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { useContext, useEffect, useState, useCallback } from 'react';\nimport { FormContext } from '../context';\nimport { warning } from '../utils';\nvar useFormContext = function () {\n var formCtx = useContext(FormContext);\n var formInstance = formCtx.store;\n var _a = __read(useState(false), 2), isSubmitting = _a[0], setIsSubmitting = _a[1];\n var setSubmitting = useCallback(function () {\n var _a;\n var state = formInstance === null || formInstance === void 0 ? void 0 : formInstance.getFieldsState();\n var newValue = (_a = state[Object.keys(state)[0]]) === null || _a === void 0 ? void 0 : _a.isSubmitting;\n setIsSubmitting(newValue);\n }, []);\n useEffect(function () {\n if (!formInstance) {\n warning(true, 'formInstance is not available');\n return;\n }\n var registerStateWatcher = (formInstance === null || formInstance === void 0 ? void 0 : formInstance.getInnerMethods(true)).registerStateWatcher;\n var update = function () { return setSubmitting(); };\n update();\n var cancelWatch = registerStateWatcher && registerStateWatcher(update);\n return function () {\n cancelWatch && cancelWatch();\n };\n }, []);\n return {\n form: formInstance,\n disabled: formCtx.disabled,\n isSubmitting: isSubmitting\n };\n};\nexport default useFormContext;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n/* eslint-disable no-console */\nimport React, { useRef } from 'react';\nimport isEqualWith from 'lodash/isEqualWith';\nimport get from 'lodash/get';\nimport FormItem from './form-item';\nimport { isFunction, isUndefined, warning, isSyntheticEvent, isFieldMatch, set } from './utils';\nimport { FormListContext } from './context';\nvar isIndexLegal = function (index, value) {\n return !isUndefined(index) && index >= 0 && index < value.length;\n};\nvar List = function (props) {\n var field = props.field, children = props.children, initialValue = props.initialValue;\n var keysRef = useRef({\n id: 0,\n keys: [],\n });\n var extra = 'initialValue' in props ? { initialValue: initialValue } : {};\n var currentKeys = keysRef.current.keys;\n return (React.createElement(FormListContext.Provider, { value: {\n getItemKey: function (fieldKey) {\n var keys = fieldKey === null || fieldKey === void 0 ? void 0 : fieldKey.replace(/\\[|\\]/g, '.').split('.');\n var startIndex = keys.indexOf(field);\n var index = keys[startIndex + 1];\n return \"\".concat(String(field), \"_\").concat(currentKeys.indexOf(index), \"_\").concat(keys\n .slice(startIndex + 2)\n .join('_'));\n },\n } },\n React.createElement(FormItem, __assign({ \"data-tid\": \"m4b_form_item_list\", field: field }, extra, { isFormList: true, noStyle: true, shouldUpdate: function (prev, current, info) {\n var _a;\n if (info && info.isInner && !info.isFormList && info.field !== field) {\n // 如果是内部控件触发的 value 更新,那么不需要重新渲染整个formList。\n // info.field !== field 判断是因为如果内部修改了整个formList所绑定field的值的时候, 需要rerender,常见于formList嵌套formList\n return false;\n }\n if (info && !info.isInner && info.field !== field && !Array.isArray(info.field)) {\n // 通过 setFieldValue 更新 field 对应的值.setFieldValue('field.100', 'xxx')\n if (isFieldMatch(info.field, [field])) {\n var length_1 = (_a = get(set({}, info.field, undefined), field)) === null || _a === void 0 ? void 0 : _a.length;\n // 找到当前修改的字段在数组中的位置,如果大于当前数组的长度,说明新增,整体渲染。否则交由 FormItem 渲染即可\n if (length_1 <= get(prev, field).length) {\n return false;\n }\n }\n }\n return !isEqualWith(get(prev, field), get(current, field));\n } }), function (_, methods) {\n var getFieldValue = methods.getFieldValue, getInnerMethods = methods.getInnerMethods;\n var innerSetFieldValue = getInnerMethods(true).innerSetFieldValue;\n var values = getFieldValue(field) || [];\n var add = function (defaultValue, index) {\n if (isSyntheticEvent(defaultValue)) {\n warning(true, 'Form.List: The event object cannot be used as a parameter of the add method');\n return;\n }\n var key = keysRef.current.id;\n keysRef.current.id += 1;\n var oldValue = getFieldValue(field) || [];\n var newValue = oldValue;\n if (index !== undefined && index >= 0 && index <= oldValue.length) {\n currentKeys.splice(index, 0, key);\n newValue = __spreadArray(__spreadArray(__spreadArray([], __read(oldValue.slice(0, index)), false), [defaultValue], false), __read(oldValue.slice(index)), false);\n }\n else {\n currentKeys.push(key);\n newValue = __spreadArray(__spreadArray([], __read(oldValue), false), [defaultValue], false);\n }\n // defaultValue = undefined 时,认为当前字段未被操作过\n innerSetFieldValue(field, newValue, {\n isFormList: true,\n ignore: defaultValue === undefined,\n });\n };\n var remove = function (index) {\n var value = getFieldValue(field) || [];\n var newValue = value.filter(function (_, i) { return i !== index; });\n currentKeys.splice(index, 1);\n innerSetFieldValue(field, __spreadArray([], __read(newValue), false), { isFormList: true });\n };\n var move = function (fromIndex, toIndex) {\n var value = getFieldValue(field) || [];\n if (fromIndex === toIndex ||\n !isIndexLegal(fromIndex, value) ||\n !isIndexLegal(toIndex, value)) {\n return;\n }\n var fromId = currentKeys[fromIndex];\n currentKeys.splice(fromIndex, 1);\n currentKeys.splice(toIndex, 0, fromId);\n var fromItem = value[fromIndex];\n var newValue = __spreadArray([], __read(value), false);\n newValue.splice(fromIndex, 1);\n newValue.splice(toIndex, 0, fromItem);\n innerSetFieldValue(field, newValue, { isFormList: true });\n };\n return (isFunction(children) &&\n children(values.map(function (_, index) {\n var key = currentKeys[index];\n if (key === undefined) {\n key = keysRef.current.id;\n currentKeys.push(key);\n keysRef.current.id += 1;\n }\n return {\n field: \"\".concat(String(field), \"[\").concat(index, \"]\"),\n key: key,\n };\n }), {\n add: add,\n remove: remove,\n move: move,\n }));\n })));\n};\nList.displayName = 'FormList';\nexport default List;\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport isEqualWith from 'lodash/isEqualWith';\nimport { useState, useContext, useEffect, useRef, useCallback } from 'react';\nimport { FormContext } from '../context';\nimport { warning } from '../utils';\nvar useFormState = function (field, form) {\n var formCtx = useContext(FormContext);\n var formInstance = form || formCtx.store;\n // if field change, get the real value from fieldRef.current\n var fieldRef = useRef(field);\n fieldRef.current = field;\n var getFieldStateFromStore = useCallback(function () {\n var field = fieldRef.current;\n var formState = formInstance.getFieldsState([field]);\n return formState === null || formState === void 0 ? void 0 : formState[field];\n }, []);\n var _a = __read(useState(getFieldStateFromStore), 2), formState = _a[0], setFormState = _a[1];\n var formStateRef = useRef(formState);\n useEffect(function () {\n if (!formInstance) {\n warning(true, 'formInstance is not available');\n return;\n }\n var registerStateWatcher = (formInstance === null || formInstance === void 0 ? void 0 : formInstance.getInnerMethods(true)).registerStateWatcher;\n var updateState = function () {\n var newValue = getFieldStateFromStore();\n if (!isEqualWith(formStateRef.current, newValue)) {\n setFormState(newValue);\n formStateRef.current = newValue;\n }\n };\n updateState();\n var cancelWatch = registerStateWatcher && registerStateWatcher(updateState);\n return function () {\n cancelWatch && cancelWatch();\n };\n }, []);\n return formState;\n};\nexport default useFormState;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { Space as ArcoSpace } from '@arco-design/web-react';\nimport cs from 'classnames';\nimport './style/space.less';\nvar SpaceRender = function (props, ref) {\n var className = props.className, restProps = __rest(props, [\"className\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-space\");\n return (React.createElement(ArcoSpace, __assign({ \"data-tid\": \"m4b_space\" }, restProps, { ref: ref, className: cs(\"\".concat(prefixCls), className) })));\n};\nvar Space = forwardRef(SpaceRender);\nSpace.displayName = 'Space';\nexport default Space;\n","import space from './space';\nexport * from './interface';\nexport default space;\n","import React from 'react';\nexport var SearchAndFilterContext = React.createContext({});\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { useContext } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport Space from '@m4b-design/space';\nimport cx from 'classnames';\nimport FormItem from '../form-item';\nimport { SearchAndFilterContext } from './context';\nexport function FilterItem(props) {\n var label = props.label, items = props.items, _a = props.value, value = _a === void 0 ? [] : _a, onChange = props.onChange, containerProps = props.containerProps, _b = props.direction, direction = _b === void 0 ? 'horizontal' : _b;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-search-and-filter-filter-item\");\n var list = items.map(function (item, i) {\n var _a;\n if (!React.isValidElement(item))\n return item;\n var child = React.Children.only(item);\n return React.cloneElement(child, {\n className: cx(\"\".concat(prefixCls, \"-item\"), (_a = child.props) === null || _a === void 0 ? void 0 : _a.className),\n value: value[i],\n onChange: function (v) {\n var newValue = [];\n for (var i_1 = 0; i_1 < value.length; i_1++)\n newValue[i_1] = value[i_1];\n newValue[i] = v;\n onChange === null || onChange === void 0 ? void 0 : onChange(newValue);\n },\n });\n });\n return (React.createElement(\"div\", __assign({}, containerProps, { className: cx(prefixCls, \"\".concat(prefixCls, \"-\").concat(direction), containerProps === null || containerProps === void 0 ? void 0 : containerProps.className) }),\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-label\") }, label),\n React.createElement(Space, { className: \"\".concat(prefixCls, \"-items\"), wrap: true }, list)));\n}\nexport function FilterItems(props) {\n var config = useContext(SearchAndFilterContext);\n var _a = props.list, _list = _a === void 0 ? [] : _a, _b = props.colCount, _colCount = _b === void 0 ? 1 : _b, _c = props.spaceProps, spaceProps = _c === void 0 ? {} : _c;\n var colCount = Math.max(1, _colCount);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-search-and-filter-filter-items\");\n var list = _list.filter(function (v) { return (config.moreFilter.visible ? true : !v.showInMoreFilter); });\n return (React.createElement(\"div\", { className: prefixCls }, new Array(Math.ceil(list.length / colCount)).fill(0).map(function (_, i) { return (React.createElement(Space, __assign({ key: i, direction: \"horizontal\" }, spaceProps, { className: cx(\"\".concat(prefixCls, \"-space\"), spaceProps.className) }), list.slice(i * colCount, (i + 1) * colCount).map(function (props, i) {\n var _a, _b, _c;\n return (React.createElement(FormItem, __assign({ key: i, field: props.field, showLabel: false, wrapperCol: { span: 24 } }, ((_a = props.formItemProps) !== null && _a !== void 0 ? _a : {}), { style: __assign({ marginBottom: 0 }, ((_c = (_b = props.formItemProps) === null || _b === void 0 ? void 0 : _b.style) !== null && _c !== void 0 ? _c : {})) }),\n React.createElement(FilterItem, __assign({}, props))));\n }))); })));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { Grid } from '@arco-design/web-react';\nimport cs from 'classnames';\nimport './style/col.less';\nvar ColRender = function (props, ref) {\n var className = props.className, restProps = __rest(props, [\"className\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-col\");\n return (React.createElement(Grid.Col, __assign({ \"data-tid\": \"m4b_grid_col\" }, restProps, { ref: ref, className: cs(\"\".concat(prefixCls), className) })));\n};\nvar Col = forwardRef(ColRender);\nCol.displayName = 'Col';\nexport default Col;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { Grid } from '@arco-design/web-react';\nimport cs from 'classnames';\nimport './style/row.less';\nvar RowRender = function (props, ref) {\n var className = props.className, restProps = __rest(props, [\"className\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-row\");\n return (React.createElement(Grid.Row, __assign({}, restProps, { ref: ref, className: cs(\"\".concat(prefixCls), className), \"data-tid\": \"m4b_grid_row\" })));\n};\nvar Row = forwardRef(RowRender);\nRow.displayName = 'Row';\nexport default Row;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { Grid as ArcoGrid } from '@arco-design/web-react';\nimport cs from 'classnames';\nimport './style/col.less';\nvar GridRender = function (props, ref) {\n var className = props.className, restProps = __rest(props, [\"className\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-grid\");\n return (React.createElement(ArcoGrid, __assign({ \"data-tid\": \"m4b_grid\" }, restProps, { ref: ref, className: cs(\"\".concat(prefixCls), className) })));\n};\nvar Grid = forwardRef(GridRender);\nGrid.displayName = 'Grid';\nexport default Grid;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport { Grid } from '@arco-design/web-react';\nimport cs from 'classnames';\nimport './style/col.less';\nvar GridItemRender = function (props, ref) {\n var className = props.className, restProps = __rest(props, [\"className\"]);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-grid-item\");\n return (React.createElement(Grid.GridItem, __assign({ \"data-tid\": \"m4b_grid_grid_item\" }, restProps, { ref: ref, className: cs(\"\".concat(prefixCls), className) })));\n};\nvar GridItem = forwardRef(GridItemRender);\nGridItem.displayName = 'GridItem';\nGridItem.__ARCO_GRID_ITEM__ = true;\nexport default GridItem;\n","import Col from './col';\nimport Row from './row';\nimport _Grid from './grid';\nimport GridItem from './grid-item';\nexport * from './interface';\nvar Grid = _Grid;\nGrid.Col = Col;\nGrid.Row = Row;\nGrid.GridItem = GridItem;\nexport default Grid;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { useContext } from 'react';\nimport Grid from '@m4b-design/grid';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport FormItem from '../form-item';\nimport { SearchAndFilterContext } from './context';\nexport function SearchItems(props) {\n var config = useContext(SearchAndFilterContext);\n var _a = props.list, _list = _a === void 0 ? [] : _a, _b = props.containerProps, containerProps = _b === void 0 ? {} : _b;\n var list = _list.filter(function (v) { return (config.moreFilter.visible ? true : !v.showInMoreFilter); });\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-search-and-filter-search-items\");\n return (React.createElement(Grid, __assign({ colGap: 16, rowGap: 8 }, containerProps, { className: cx(prefixCls, containerProps.className) }), list.map(function (itemProps, i) {\n var _a;\n var field = itemProps.field, _b = itemProps.formItemProps, formItemProps = _b === void 0 ? {} : _b, _c = itemProps.containerProps, containerProps = _c === void 0 ? {} : _c, children = itemProps.children, label = itemProps.label;\n return (React.createElement(Grid.GridItem, __assign({ key: i }, containerProps),\n label && React.createElement(\"div\", { className: cx(\"\".concat(prefixCls, \"-label\")) }, label),\n React.createElement(FormItem, __assign({ field: field, showLabel: false, wrapperCol: { span: 24 } }, formItemProps, { style: __assign({ marginBottom: 0 }, ((_a = formItemProps === null || formItemProps === void 0 ? void 0 : formItemProps.style) !== null && _a !== void 0 ? _a : {})) }), children)));\n })));\n}\n","export var defaultRender = function (v) { return v; };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { useContext } from 'react';\nimport cx from 'classnames';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport Button from '@m4b-design/button';\nimport { ArcoIconWrapper } from '@m4b-design/utils';\nimport { IconDown, IconUp } from '@arco-design/iconbox-react-m4b-next';\nimport { SearchAndFilterContext } from './context';\nimport { defaultRender } from './utils';\nexport function Expand(props) {\n var config = useContext(SearchAndFilterContext);\n var _a = props.renderLeft, renderLeft = _a === void 0 ? defaultRender : _a, _b = props.renderRight, renderRight = _b === void 0 ? defaultRender : _b, _c = props.moreFilterProps, moreFilterProps = _c === void 0 ? {} : _c, _d = props.resetProps, resetProps = _d === void 0 ? {} : _d, disableDefaultMoreFilter = props.disableDefaultMoreFilter, disableDefaultReset = props.disableDefaultReset;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-search-and-filter-expand\");\n return (React.createElement(\"div\", { className: prefixCls },\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-left\") }, renderLeft(React.createElement(Button, __assign({ type: \"primary-text\" }, moreFilterProps, { className: cx(\"\".concat(prefixCls, \"-btn\"), moreFilterProps.className), onClick: function (e) {\n var _a;\n !disableDefaultMoreFilter && config.moreFilter.setVisible(!config.moreFilter.visible);\n (_a = moreFilterProps.onClick) === null || _a === void 0 ? void 0 : _a.call(moreFilterProps, e);\n } }),\n config.moreFilter.visible ? \"Hide Filter\" : \"More Filter\",\n React.createElement(ArcoIconWrapper, { Icon: config.moreFilter.visible ? IconUp : IconDown })))),\n React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-right\") }, renderRight(React.createElement(Button, __assign({ type: \"primary-text\" }, resetProps, { className: cx(\"\".concat(prefixCls, \"-btn\"), resetProps.className), onClick: function (e) {\n var _a;\n !disableDefaultReset && config.form.resetFields();\n (_a = resetProps.onClick) === null || _a === void 0 ? void 0 : _a.call(resetProps, e);\n } }), \"Reset\")))));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport React, { useContext } from 'react';\nimport Button from '@m4b-design/button';\nimport { defaultRender } from './utils';\nimport { SearchAndFilterContext } from './context';\nexport function Triggers(props) {\n var config = useContext(SearchAndFilterContext);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-search-and-filter-triggers\");\n var _a = props.renderReset, renderReset = _a === void 0 ? defaultRender : _a, _b = props.renderSubmit, renderSubmit = _b === void 0 ? defaultRender : _b, _c = props.submitProps, submitProps = _c === void 0 ? {} : _c, _d = props.resetProps, resetProps = _d === void 0 ? {} : _d, disableDefaultReset = props.disableDefaultReset, disableDefaultSubmit = props.disableDefaultSubmit;\n return (React.createElement(\"div\", { className: prefixCls },\n renderSubmit(React.createElement(Button, __assign({ type: \"primary\" }, submitProps, { onClick: function (e) {\n var _a;\n !disableDefaultSubmit && config.form.submit();\n (_a = submitProps.onClick) === null || _a === void 0 ? void 0 : _a.call(submitProps, e);\n } }), \"Submit\")),\n renderReset(React.createElement(Button, __assign({}, resetProps, { onClick: function (e) {\n var _a;\n !disableDefaultReset && config.form.resetFields();\n (_a = resetProps.onClick) === null || _a === void 0 ? void 0 : _a.call(resetProps, e);\n } }), \"Reset\"))));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport React, { forwardRef, useState } from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport { FilterItems } from './filter-item';\nimport { SearchAndFilterContext } from './context';\nimport Form from '../form';\nimport '../style/search-and-filter.less';\nimport useForm from '../useForm';\nimport { SearchItems } from './search-item';\nimport { Expand } from './expand';\nimport { Triggers } from './triggers';\nimport { defaultRender } from './utils';\nvar SearchAndFilterRender = forwardRef(function (props, ref) {\n var _a, _b, _c, _d, _e;\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-search-and-filter\");\n var _f = props.filterItemsProps, filterItemsProps = _f === void 0 ? {} : _f, _g = props.formProps, formProps = _g === void 0 ? {} : _g, _h = props.searchItemsProps, searchItemsProps = _h === void 0 ? {} : _h, _j = props.expandProps, expandProps = _j === void 0 ? {} : _j, _k = props.triggersProps, triggersProps = _k === void 0 ? {} : _k, _l = props.renderForm, renderForm = _l === void 0 ? defaultRender : _l, _m = props.renderFormItems, renderFormItems = _m === void 0 ? defaultRender : _m;\n var form = (React.createElement(Form, __assign({ className: cx(\"\".concat(prefixCls, \"-form\"), formProps.className), optional: __assign({ show: false }, ((_a = (typeof formProps.optional === 'boolean' ? {} : formProps.optional)) !== null && _a !== void 0 ? _a : {})) }, formProps), renderFormItems(React.createElement(React.Fragment, null,\n ((_b = filterItemsProps.visible) !== null && _b !== void 0 ? _b : true) && React.createElement(FilterItems, __assign({}, filterItemsProps)),\n ((_c = searchItemsProps.visible) !== null && _c !== void 0 ? _c : true) && React.createElement(SearchItems, __assign({}, searchItemsProps)),\n ((_d = expandProps.visible) !== null && _d !== void 0 ? _d : true) && React.createElement(Expand, __assign({}, expandProps)),\n ((_e = triggersProps.visible) !== null && _e !== void 0 ? _e : true) && React.createElement(Triggers, __assign({}, triggersProps))))));\n return (React.createElement(\"div\", { className: prefixCls, ref: ref }, renderForm(form)));\n});\nvar SearchAndFilterWrapper = forwardRef(function (props, ref) {\n var _a, _b;\n var _c = __read(useForm(), 1), form = _c[0];\n form = (_a = props.formProps.form) !== null && _a !== void 0 ? _a : form;\n var _d = __read(useState(props.defaultMoreFilterVisible), 2), moreFilterVisible = _d[0], setMoreFilterVisible = _d[1];\n var config = {\n moreFilter: {\n visible: moreFilterVisible,\n setVisible: setMoreFilterVisible,\n },\n form: form,\n };\n return (React.createElement(SearchAndFilterContext.Provider, { value: config },\n React.createElement(SearchAndFilterRender, __assign({}, props, { ref: ref, formProps: __assign(__assign({}, ((_b = props.formProps) !== null && _b !== void 0 ? _b : {})), { form: form }) }))));\n});\nvar SearchAndFilter = SearchAndFilterWrapper;\nSearchAndFilter.Context = SearchAndFilterContext;\nexport { SearchAndFilter };\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\n/**\n * 基于arco 2.42.0 版本的form改造的\n * 1. 布局 ✅\n * 新属性新增分栏能力 columnsNum, 默认为1 最大为 4\n * 2. 尺寸样式覆盖 ✅\n * 类型修改size属性,无新属性新增 目前只支持 default | large\n * 3. required 样式改造 ✅\n * 默认处理 required 为 true,\n * 对于非required的label增加(optional)\n * 4. 校验之后的信息逻辑 ✅\n * 5. 自定义表单校验逻辑 ✅\n * 6. label 的改造 ✅\n * labelAlign 默认改为left\n * 7. form-item 范围内支持背景色的设置 通过style ,wrapperCol.style 和 labelCol.style ✅\n */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\nimport './style/index.less';\nimport { Form as ArcoForm } from '@arco-design/web-react';\nimport Form from './form';\nimport FormItem from './form-item';\nimport FormControl from './form-item/control';\nimport FormProvider from './form-provider';\nimport useForm from './useForm';\nimport useWatch from './hooks/useWatch';\nimport useFormContext from './hooks/useContext';\nimport FormList from './form-list';\nimport useFormState from './hooks/useState';\nimport { SearchAndFilter } from './search-and-filter';\n/**\n * 保留 ArcoSelect 的引入不被树摇,让组件arco样式的按需加载功能可用。\n */\n(function (_o) { })(ArcoForm);\nexport * from './interface';\nvar FormComp = Form;\nFormComp.Provider = FormProvider;\nFormComp.Item = FormItem;\nFormComp.List = FormList;\nFormComp.Control = FormControl;\nFormComp.SearchAndFilter = SearchAndFilter;\nFormComp.useForm = useForm;\nFormComp.useFormContext = useFormContext;\nFormComp.useWatch = useWatch;\nFormComp.useFormState = useFormState;\nexport default FormComp;\n","import React from 'react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport Info from '@m4b-design/info';\nimport './style/radio.less';\nvar RadioRender = function (props) {\n var _a;\n // const mergedProps = usePropsTranslation(props, ['children', 'placeholder']);\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-radio-content\");\n var icon = props.icon, tooltipContent = props.tooltipContent, description = props.description, children = props.children;\n var iconLabelClassNames = cx(\"\".concat(prefixCls, \"-icon\"), (_a = {},\n _a[\"\".concat(prefixCls, \"-icon-large\")] = !!description,\n _a[\"\".concat(prefixCls, \"-icon-default\")] = !description,\n _a));\n return (React.createElement(\"div\", { className: cx(prefixCls) },\n icon && React.createElement(\"div\", { className: iconLabelClassNames }, icon),\n React.createElement(\"div\", null,\n children && (tooltipContent ? React.createElement(Info, { content: tooltipContent }, children) : children),\n description && React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-description\") }, description))));\n};\nexport default RadioRender;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { useContext } from 'react';\nimport cs from 'classnames';\nimport { ConfigProvider as ArcoConfigProvider } from '@arco-design/web-react';\nexport default function IconHover(props) {\n var _a;\n var children = props.children, className = props.className, disabled = props.disabled, prefix = props.prefix, _b = props.size, size = _b === void 0 ? 'default' : _b, rest = __rest(props, [\"children\", \"className\", \"disabled\", \"prefix\", \"size\"]);\n var ConfigContext = ArcoConfigProvider.ConfigContext;\n var ctx = useContext(ConfigContext);\n var arcoPrefixCls = ctx.prefixCls;\n var prefixCls = \"\".concat(arcoPrefixCls, \"-icon-hover\");\n return (React.createElement(\"span\", __assign({ className: cs(prefixCls, (_a = {},\n _a[\"\".concat(prefix, \"-icon-hover\")] = prefix,\n _a[\"\".concat(prefixCls, \"-size-\").concat(size)] = size && size !== 'default',\n _a[\"\".concat(prefixCls, \"-disabled\")] = disabled,\n _a), className), onClick: props.onClick }, rest), children));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { useContext } from 'react';\nimport { Radio as ArcoRadio, ConfigProvider as ArcoConfigProvider } from '@arco-design/web-react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport Child from './children';\nimport IconHover from './icon-hover';\nimport './style/radio.less';\nvar RadioRender = function (props) {\n var _a;\n var icon = props.icon, tooltipContent = props.tooltipContent, description = props.description, children = props.children, _b = props.size, size = _b === void 0 ? 'default' : _b, _c = props.lineFeed, lineFeed = _c === void 0 ? false : _c, _d = props.error, error = _d === void 0 ? false : _d, rest = __rest(props, [\"icon\", \"tooltipContent\", \"description\", \"children\", \"size\", \"lineFeed\", \"error\"]);\n var ConfigContext = ArcoConfigProvider.ConfigContext;\n var ctx = useContext(ConfigContext);\n var arcoPrefixCls = ctx.prefixCls;\n var arcoRarioPrefixCls = \"\".concat(arcoPrefixCls, \"-radio\");\n var arcoRadioBlock = \"\".concat(arcoPrefixCls, \"-radio-flex\");\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-radio\");\n var classNames = cx(props.className, prefixCls, lineFeed && arcoRadioBlock, \"\".concat(prefixCls, \"-size-\").concat(size), (_a = {},\n _a[\"\".concat(arcoRarioPrefixCls, \"-error\")] = error,\n _a));\n if (typeof children === 'function') {\n var radio_1 = (React.createElement(IconHover, { prefix: arcoRarioPrefixCls, className: \"\".concat(arcoRarioPrefixCls, \"-mask-wrapper\"), disabled: props.checked || props.disabled },\n React.createElement(\"div\", { className: \"\".concat(arcoRarioPrefixCls, \"-mask\") })));\n var newFun = function (_a) {\n var checked = _a.checked;\n return children({ checked: checked, radio: radio_1 });\n };\n return (React.createElement(ArcoRadio, __assign({}, rest, { className: classNames }), newFun));\n }\n var childProps = {\n icon: icon,\n tooltipContent: tooltipContent,\n description: description,\n children: children,\n };\n var isAllUndefined = function (obj) {\n return Object.keys(obj).reduce(function (acc, key) {\n return acc && obj[key] === undefined;\n }, true);\n };\n return (React.createElement(ArcoRadio, __assign({ \"data-tid\": \"m4b_radio\" }, rest, { className: classNames }), !isAllUndefined(childProps) && React.createElement(Child, __assign({}, childProps))));\n};\nvar Radio = RadioRender;\nRadio.displayName = 'Radio';\nexport default Radio;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { useContext } from 'react';\nimport { Radio as ArcoRadio, ConfigProvider as ArcoConfigProvider } from '@arco-design/web-react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport Radio from './radio';\nimport Child from './children';\nimport './style/group.less';\nfunction isPresetGapSize(gapSize) {\n return (gapSize === 'small' || gapSize === 'middle' || gapSize === 'large' || gapSize === 'default');\n}\nvar Group = function (props) {\n var _a;\n var options = props.options, _b = props.gapSize, gapSize = _b === void 0 ? 'default' : _b, _c = props.type, type = _c === void 0 ? 'radio' : _c, _d = props.size, size = _d === void 0 ? 'default' : _d, _e = props.warp, warp = _e === void 0 ? false : _e, _f = props.lineFeed, lineFeed = _f === void 0 ? true : _f, _g = props.compact, compact = _g === void 0 ? false : _g, _h = props.error, groupError = _h === void 0 ? false : _h;\n var ConfigContext = ArcoConfigProvider.ConfigContext;\n var ctx = useContext(ConfigContext);\n var newOptions = Array.isArray(options)\n ? options === null || options === void 0 ? void 0 : options.map(function (option) {\n if (Object.prototype.toString.call(option) === '[object Object]') {\n var _a = option, disabled = _a.disabled, icon = _a.icon, tooltipContent = _a.tooltipContent, description = _a.description, value = _a.value, label = _a.label, error = _a.error;\n return {\n value: value,\n disabled: !!disabled,\n error: error,\n label: (React.createElement(Child, { disabled: !!disabled, icon: icon, tooltipContent: tooltipContent, description: description }, label)),\n };\n }\n return {\n label: React.createElement(Child, null, option),\n value: option,\n };\n })\n : undefined;\n var mergedProps = __assign(__assign({}, props), { options: undefined });\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-radio-group\"), gapSizeCls = \"\".concat(prefixCls, \"-gap-size-\").concat(gapSize), warpCls = \"\".concat(prefixCls, \"-warp\"), arcoRadioGroupInline = \"\".concat(ctx.prefixCls, \"-radio-group-inline\"), compactCls = \"\".concat(prefixCls, \"-compact\");\n var handleChildren = React.Children.map(props.children, function (child) {\n if (groupError) {\n return React.cloneElement(child, {\n className: \"\".concat(ctx.prefixCls, \"-radio-error\"),\n });\n }\n return child;\n });\n return (React.createElement(ArcoRadio.Group, __assign({ \"data-tid\": \"m4b_radio_group\" }, mergedProps, { className: cx(prefixCls, \"\".concat(prefixCls, \"-size-\").concat(size), mergedProps.className, type === 'radio' && isPresetGapSize(gapSize) && gapSizeCls, warp && warpCls, compact && compactCls, !lineFeed && arcoRadioGroupInline), style: __assign({ gap: !isPresetGapSize(gapSize) ? gapSize : undefined }, ((_a = mergedProps.style) !== null && _a !== void 0 ? _a : {})), size: size === 'abnormal' ? 'large' : size }), handleChildren ||\n (newOptions === null || newOptions === void 0 ? void 0 : newOptions.map(function (v) { return (React.createElement(Radio, { key: v.value, value: v.value, disabled: v.disabled, error: v.error || groupError }, v.label)); }))));\n};\nGroup.displayName = 'Radio.Group';\nexport default Group;\n","import { Radio as ArcoRadio } from '@arco-design/web-react';\nimport Group from './group';\nimport _Radio from './radio';\nvar GroupContext = ArcoRadio.GroupContext;\nvar Radio = _Radio;\nRadio.__BYTE_RADIO = true;\nRadio.Group = Group;\nRadio.GroupContext = GroupContext;\nexport * from './interface';\nexport default Radio;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef, useEffect, useMemo, useState } from 'react';\nimport { Rate as ArcoRate, Typography } from '@arco-design/web-react';\nimport { useConfigContext } from '@m4b-design/config-provider';\nimport cx from 'classnames';\nimport './style/rate.less';\nvar RateRender = function (props, ref) {\n var afterRateDescription = props.afterRateDescription, _a = props.descriptionPosition, descriptionPosition = _a === void 0 ? 'right' : _a, _b = props.descriptionWidth, descriptionWidth = _b === void 0 ? 205 : _b, afterRateTitle = props.afterRateTitle, description = props.description, tooltipProps = props.tooltipProps, className = props.className, title = props.title, style = props.style, _c = props.ellipsisLineCount, ellipsisLineCount = _c === void 0 ? 1 : _c, _d = props.centerDisplay, centerDisplay = _d === void 0 ? false : _d, onChange = props.onChange, defaultValue = props.defaultValue, rest = __rest(props, [\"afterRateDescription\", \"descriptionPosition\", \"descriptionWidth\", \"afterRateTitle\", \"description\", \"tooltipProps\", \"className\", \"title\", \"style\", \"ellipsisLineCount\", \"centerDisplay\", \"onChange\", \"defaultValue\"]);\n var readonly = props.readonly || false;\n var value = (props === null || props === void 0 ? void 0 : props.value) || 0;\n var _e = useState(0), level = _e[0], setLevel = _e[1];\n var _f = useState(title), displayTitle = _f[0], setDisplayTitle = _f[1];\n var _g = useState(description), displayDesc = _g[0], setDisplayDesc = _g[1];\n var globalPrefixCls = useConfigContext().prefixCls;\n var prefixCls = \"\".concat(globalPrefixCls, \"-rate\");\n var classnames = cx(prefixCls, className, centerDisplay ? \"\".concat(globalPrefixCls, \"-rate-center\") : '');\n var descriptionClass = cx(centerDisplay\n ? \"\".concat(prefixCls, \"-description-content-center\")\n : \"\".concat(prefixCls, \"-description-content-\").concat(descriptionPosition));\n var TitleNode = useMemo(function () {\n if (typeof title === 'string') {\n return React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-title-content\") }, displayTitle);\n }\n return displayTitle;\n }, [displayTitle, title]);\n var afterDisplay = function (v) {\n afterRateTitle && setDisplayTitle(afterRateTitle);\n afterRateDescription &&\n setDisplayDesc(v <= afterRateDescription.length ? afterRateDescription[Math.ceil(v - 1)] : '');\n };\n useEffect(function () {\n if (readonly) {\n afterDisplay(defaultValue || value);\n }\n if (!readonly && level) {\n afterDisplay(level);\n }\n if (!readonly && !level) {\n setDisplayTitle(title);\n setDisplayDesc(description);\n }\n }, [level, value, defaultValue, readonly, title, description]);\n var handleChange = function (value) {\n onChange && onChange(value);\n (afterRateTitle || afterRateDescription) && setLevel(value);\n };\n return (React.createElement(\"div\", { className: classnames, style: style, \"data-tid\": \"m4b_rate\" },\n title && TitleNode,\n React.createElement(\"div\", { className: descriptionClass },\n React.createElement(ArcoRate, __assign({}, rest, { ref: ref, onChange: handleChange, defaultValue: defaultValue })),\n (description || afterRateDescription) && (React.createElement(\"div\", { className: \"\".concat(prefixCls, \"-typography\"), style: { width: \"\".concat(descriptionWidth, \"px\") } },\n React.createElement(Typography.Paragraph, { ellipsis: {\n rows: ellipsisLineCount,\n showTooltip: {\n type: 'tooltip',\n props: tooltipProps || { content: displayDesc },\n },\n } }, displayDesc))))));\n};\nvar Rate = forwardRef(RateRender);\nRate.displayName = 'Rate';\nexport default Rate;\n","import Rate from './rate';\nexport * from './interface';\nexport default Rate;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","Link","forwardRef","props","title","field","className","rest","globalPrefixCls","prefixCls","concat","CustomTitle","hasError","list","some","v","IconWarning","style","stroke","ErrorLinkListContext","Consumer","A","displayName","defaultCopy","addNewLabel","__read","o","m","Symbol","iterator","r","ar","next","done","push","value","error","isString","obj","toString","getContainer","targetContainer","dom","selector","replace","querySelector","console","findNode","document","window","handleOptionsToLink","options","map","item","key","href","children","AffixWrapper","_a","affix","Affix","ForwardRefAnchor","ref","locale","useContext","ConfigProvider","Anchor","M4B","useI18nCopy","fold","showAddBtn","addBtnIcon","_b","addBtnText","footer","onAddItem","errorLinkList","_c","linkLimitCount","fixedIconOffsetRight","_d","hash","_e","offsetTop","offsetBottom","affixStyle","propScrollContainer","scrollContainer","_f","anchorProps","_g","useState","topUnFold","setTopUnFold","_h","rightUnFold","setRightUnFold","optionsLength","initOptionsLength","useRef","getAffixTarget","useCallback","handleTopFold","handleRightFold","isFolded","topFoldIcon","IconUp","onClick","IconDown","rightFoldIcon","IconMenuUnfold","right","IconMenuFold","TitleNode","AnchorNode","Provider","FooterNode","current","IconAdd","height","width","target","undefined","opt","isObject","warning","condition","message","__spreadArray","to","from","pack","l","Array","slice","args","_i","classNames","_loop_1","isArray","keys","forEach","k","Set","join","getPrefixCls","type","count","activeIndex","position","trigger","onSelectIndex","indicatorContent","step","left","wrapperProps","event","preventDefault","currentTarget","getBoundingClientRect","startX","x","index","nativeEvent","clientX","dataIndex","getAttribute","Enter","code","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","direction","showArrow","prev","icons","getKeyboardEvents","callbacks","onKeyDown","keyCode","which","onPressEnter","onArrowDown","onArrowLeft","onArrowRight","onArrowUp","useKeyboardEvent","arrowClass","iconPrev","iconNext","role","tabIndex","__extends","extendStatics","d","b","setPrototypeOf","__proto__","TypeError","String","__","constructor","create","ResizeObserverComponent","_super","_this","componentWillUnmount","resizeObserver","destroyResizeObserver","createResizeObserver","throttle","onResize","entry","resizeHandler","firstExec","observe","findDOMNode","disconnect","componentDidMount","warn","componentDidUpdate","render","omit","clone","defaultProps","animation","indicatorType","indicatorPosition","moveSpeed","timingFunc","CarouselComponent","baseProps","componentConfig","rtl","componentProps","globalComponentConfig","_ignorePropsFromGlobal","_defaultProps","useMemo","mProps","propName","useMergeProps","Carousel","currentIndex","indicatorClassName","miniRender","arrowClassName","carousel","onChange","autoPlay","autoPlaySpeed","interval","childrenList","toArray","filter","child","childrenLength","refDom","refSliderWrapper","refAnimationTimer","getValidIndex","setIndex","previousIndex","setPreviousIndex","isPause","setIsPause","isAnimating","setIsAnimating","slideDirection","setSlideDirection","_j","sliderWrapper","indicatorWrapper","computedStyle","setComputedStyle","mergedIndex","prevIndex","nextIndex","autoPlayInterval","useEffect","clearTimeout","slideTo","targetIndex","resetInterval","callback","delay","refIntervalId","refSavedCallback","setUpInterval","setInterval","cleanUpInterval","clearInterval","useInterval","indexNumber","isNaN","isNegative","isManual","resetAutoPlayInterval","setTimeout","useImperativeHandle","goto","eventHandlers","hoverToPause","onMouseEnter","onMouseLeave","sliderElement","totalWidth","clientWidth","sliderWidth","edge","perspective","deltaZ","_ref","isCurrent","isPrev","isNext","childStyle","childClassName","childOnClick","transitionTimingFunction","transitionDuration","animationTimingFunction","animationDuration","arrowSize","indicatorColor","_icons","hideIndicatorWrapper","restProps","Icon","IconLeft","IconRight","isUndefined","ConfigContext","IconHover","disabled","prefix","size","ItemRef","ctx","CollapseContext","getEventListeners","name","header","contentStyle","extra","destroyOnHide","expandIcon","showExpandIcon","isExpanded","activeKeys","icon","clickEventHandler","regionLevel","triggerRegion","onToggle","stopPropagation","expandIconPosition","Transition","in","addEndListener","node","addEventListener","mountOnEnter","lazyload","unmountOnExit","onEnter","display","onEntering","scrollHeight","onEntered","onExit","offsetHeight","onExiting","onExited","useMergeValue","defaultStateValue","defaultValue","firstRenderRef","prevPropsValue","usePrevious","stateValue","setStateValue","getActiveKeys","accordion","res","bordered","createContext","IconCaretRight","ForwardRefCollapse","Collapse","defaultActiveKey","activeKey","setActiveKeys","newActiveKeys","splice","IconCaretLeft","CollapseComponent","Item","avatar","subTitle","tag","renderElement","element","Boolean","onFocus","focus","setFocus","cloneElement","opacity","onBlur","titleSize","arcoCollapseProps","mergedProps","NOOP","VALIDATE_STATUS","layout","maintainRawRules","labelCol","span","offset","labelAlign","wrapperCol","closeColumns","columnsNum","columnsGutter","optional","requiredSymbol","getFormElementId","store","getFieldsValue","getFieldValue","getFieldError","getFieldsError","getTouchedFields","getFields","setFieldValue","setFieldsValue","setFields","resetFields","submit","validate","scrollToField","getInnerMethods","registerField","innerGetStore","formItemAlone","FormProviderContext","FormListContext","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","rejected","result","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","op","pop","isFieldMatch","fields","fieldObj","setWith","has","isFunction","cloneDeep","val","set","lodash","iterativelyGetKeys","_obj","_prefix","processed","getKeys","add","reduce","el","isSyntheticEvent","Event","ID_SUFFIX","ValidateError","errors","Error","fn","defineProperty","err","Store","isSubmitting","registerFields","registerWatchers","registerStateWatchers","touchedFields","initialValues","innerCollectFormState","notifyStateWatchers","innerSetCallbacks","values","registerStateWatcher","registerWatcher","notifyWatchers","getRegisteredFields","hasField","control","hasFieldProps","isFormList","getRegisteredField","notify","info","ignore","_pushTouchField","changeValues","_getIterativelyKeysByField","onStoreChange","innerSetInitialValues","innerSetInitialValue","_inTouchFields","innerSetFieldValue","triggerValuesChange","triggerTouchChange","isTouched","obj_1","warnings","touched","data","getErrors","fieldKeys","changeValues_1","_popTouchField","newValues_1","changeValues_2","fieldsOrCallback","cb","controlItems","promises","validateField","all","onValidateFail","toggleSubmitting","onSubmit","onSubmitFailed","getFieldsState","getItemState","getWarnings","validateStatus","getValidateStatus","clearFields","changeValues_3","changeValues_4","onValuesChange","total","useForm","form","formRef","inner","methods","getFormInstance","id","wrapper","validateTrigger","FormComponent","prefixClsForm","formProviderCtx","wrapperRef","formInstance","isMount","Form","validateMessagesDisplayType","Wrapper","colon","formPrefixCls","validateMessages","itemSpacingSize","wrapperRowProps","isVertical","innerMethods","unregister","register","fieldNode","behavior","block","scrollMode","onFormValuesChange","scrollToFirstError","returnValue","onFormSubmit","contextProps","FormContext","Grid","Row","gutter","Control","context","isDestroyed","childrenElement","triggerStateCollect","toggleValidateStatus","status","toggleTouched","setWarnings","setErrors","clearFormItemError","updateFormItem","forceUpdate","shouldUpdate","dependencies","shouldUpdateItem","depField","isEqualWith","isInner","get","changedValue","triggerType","ctxValidateTrigger","rules","gotoValidatingStatus","needUpdateItem","_rules","rule","_rule","validator","ignoreEmptyString","validateLevel","schemaValidate","handleTrigger","_value","normalize","getValueFromEvent","normalizeValue","isValidElement","getChild","initialValue","removeRegisterField","prevProps","_key","getValidateTrigger","_validateTrigger","renderControl","triggerPropName","formatter","ctxDisabled","only","childProps","vt","noStyle","hasFeedback","IconInfoWarning","IconSuccess","IconError","IconLoading","isFormControl","contextType","Component","htmlFor","showColon","helpTip","helpTipTooltipProps","isOptional","show","labelChildren","content","tooltipNode","IconQuestionCircle","labelClassName","useControlled","_defaultValue","defaultValuePropName","valuePropName","onChangePropName","propValue","propOnChange","isControlled","innerState","setInnerState","state","setState","otherParams","dismiss","showMore","showLess","tAlert","Alert","tNotiCard","NotificationCard","expandNodesStyle","textAlign","margin","cursor","MoreIcon","containerProps","CollapseIcon","wrapperClassName","background","showIcon","closable","closeElement","onClose","afterClose","defaultLineClamp","_defaultLineClamp","expandMode","hideExpandButtonOnInView","_k","_l","visible","setVisible","_m","expanded","setExpanded","onHandleClose","tooltipProps","contentRef","_o","contentOverflow","setContentOverflow","useLayoutEffect","expandNode","CSSTransition","timeout","Tooltip","IconInfoBlue","renderIcon","WebkitLineClamp","IconClose","errorIcon","viewBox","fill","xmlns","fillRule","clipRule","warningIcon","AlertBanner","action","closeVisible","setCloseVisible","wrapperClassNames","AlertExport","Banner","help","propsErrors","isAlert","isTooltip","errorTip","warningTip","isHelpTip","appear","Col","ItemComponent","prefixClsItem","prompt","description","validateMessagesDisplayTypeProps","rulesProps","hidden","topFormContext","formListContext","_p","formContext","formLayout","optionalVal","itemSpacingSizeVal","getItemSpacingSize","isTooltipDisplayType","promptIsBottom","promptContent","required","showErrorTip","params","innerErrors","newErrors","newVal","labelClassNames","errorInfo","warningInfo","itemStatus","hasHelp","cloneElementWithDisabled","childrenDom","getItemKey","FormItemContext","newFormContext","formItemDom","errorsContent","tooltipErrorProps","mode","div","includes","marginBottom","getFormItemStyle","showLabel","marginTop","customColspan","FormProvider","formsRef","changedValues","forms","formCtx","fieldValues","setValue","fieldRef","valueRef","JSON","stringify","updateValue","formValues","newValue","newValueString","cancelWatch","setIsSubmitting","setSubmitting","update","isIndexLegal","List","keysRef","currentKeys","fieldKey","split","startIndex","oldValue","remove","move","fromIndex","toIndex","fromId","fromItem","getFieldStateFromStore","formState","setFormState","formStateRef","updateState","SearchAndFilterContext","FilterItem","items","i_1","wrap","FilterItems","config","_list","colCount","_colCount","spaceProps","Math","max","moreFilter","showInMoreFilter","ceil","formItemProps","GridItem","__ARCO_GRID_ITEM__","SearchItems","colGap","rowGap","itemProps","defaultRender","Expand","renderLeft","renderRight","moreFilterProps","resetProps","disableDefaultMoreFilter","disableDefaultReset","Triggers","renderReset","renderSubmit","submitProps","disableDefaultSubmit","SearchAndFilterRender","filterItemsProps","formProps","searchItemsProps","expandProps","triggersProps","renderForm","renderFormItems","SearchAndFilter","defaultMoreFilterVisible","Context","FormComp","useFormContext","useWatch","useFormState","tooltipContent","iconLabelClassNames","arcoPrefixCls","lineFeed","arcoRarioPrefixCls","arcoRadioBlock","radio_1","checked","radio","acc","isPresetGapSize","gapSize","Group","warp","compact","groupError","newOptions","option","gapSizeCls","warpCls","arcoRadioGroupInline","compactCls","handleChildren","gap","GroupContext","__BYTE_RADIO","afterRateDescription","descriptionPosition","descriptionWidth","afterRateTitle","ellipsisLineCount","centerDisplay","readonly","level","setLevel","displayTitle","setDisplayTitle","displayDesc","setDisplayDesc","classnames","descriptionClass","afterDisplay","Typography","Paragraph","ellipsis","rows","showTooltip"],"sourceRoot":""}