@apdesign/web-react 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arco-icon.min.js +1 -1
- package/dist/arco.development.js +105 -11
- package/dist/arco.min.js +3 -3
- package/es/Button/index.d.ts +3 -3
- package/es/TreeSelect/interface.d.ts +6 -0
- package/es/TreeSelect/tree-select.js +29 -5
- package/es/_util/constant.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/TreeSelect/interface.d.ts +6 -0
- package/lib/TreeSelect/tree-select.js +29 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -1
package/dist/arco.development.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* AP Design v1.
|
|
2
|
+
* AP Design v1.6.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2019-present, Bytedance, Inc.
|
|
5
5
|
* All rights reserved.
|
|
@@ -3555,7 +3555,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
|
|
|
3555
3555
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3556
3556
|
|
|
3557
3557
|
"use strict";
|
|
3558
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _hook_useStateValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hook/useStateValue */ \"./components/TreeSelect/hook/useStateValue.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./components/TreeSelect/utils.tsx\");\n/* harmony import */ var _util_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/is */ \"./components/_util/is.ts\");\n/* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Trigger */ \"./components/Trigger/index.tsx\");\n/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tree */ \"./components/Tree/index.tsx\");\n/* harmony import */ var _ConfigProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ConfigProvider */ \"./components/ConfigProvider/index.tsx\");\n/* harmony import */ var _Tree_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Tree/util */ \"./components/Tree/util.tsx\");\n/* harmony import */ var _class_select_view__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_class/select-view */ \"./components/_class/select-view.tsx\");\n/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./interface */ \"./components/TreeSelect/interface.ts\");\n/* harmony import */ var _hook_useTreeData__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./hook/useTreeData */ \"./components/TreeSelect/hook/useTreeData.ts\");\n/* harmony import */ var _hook_useKeyCache__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hook/useKeyCache */ \"./components/TreeSelect/hook/useKeyCache.ts\");\n/* harmony import */ var _tree_list__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./tree-list */ \"./components/TreeSelect/tree-list.tsx\");\n/* harmony import */ var _util_hooks_useMergeValue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/hooks/useMergeValue */ \"./components/_util/hooks/useMergeValue.ts\");\n/* harmony import */ var _util_classNames__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/classNames */ \"./components/_util/classNames.ts\");\n/* harmony import */ var _util_hooks_useMergeProps__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/hooks/useMergeProps */ \"./components/_util/hooks/useMergeProps.ts\");\n/* harmony import */ var _util_hooks_useIsFirstRender__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../_util/hooks/useIsFirstRender */ \"./components/_util/hooks/useIsFirstRender.ts\");\n/* harmony import */ var _util_hooks_useId__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../_util/hooks/useId */ \"./components/_util/hooks/useId.ts\");\n/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../Button */ \"./components/Button/index.tsx\");\n/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../Checkbox */ \"./components/Checkbox/index.tsx\");\nvar __assign = undefined && undefined.__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\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = undefined && undefined.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n 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\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nvar __read = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spreadArray = undefined && undefined.__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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction isEmptyValue(value) {\n return !value || Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isArray\"])(value) && value.length === 0 || Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isObject\"])(value) && Object.keys(value).length === 0;\n}\n\nvar defaultProps = {\n bordered: true,\n treeCheckedStrategy: _Tree__WEBPACK_IMPORTED_MODULE_6__[\"default\"].SHOW_CHILD,\n fieldNames: _interface__WEBPACK_IMPORTED_MODULE_10__[\"DefaultFieldNames\"],\n isQuickSingleSelectMode: true\n};\nvar triggerPopupAlign = {\n bottom: 4\n};\n\nvar TreeSelect = function TreeSelect(baseProps, ref) {\n var _a = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useContext\"])(_ConfigProvider__WEBPACK_IMPORTED_MODULE_7__[\"ConfigContext\"]),\n getPrefixCls = _a.getPrefixCls,\n renderEmpty = _a.renderEmpty,\n componentConfig = _a.componentConfig,\n rtl = _a.rtl,\n locale = _a.locale;\n\n var props = Object(_util_hooks_useMergeProps__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(baseProps, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.TreeSelect);\n var refIsFirstRender = Object(_util_hooks_useIsFirstRender__WEBPACK_IMPORTED_MODULE_17__[\"default\"])();\n var triggerRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])();\n var treeRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(null);\n var refSelectView = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(null);\n var indeterminateKeys = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])([]);\n\n var _b = __read(Object(_hook_useTreeData__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(props), 1),\n treeData = _b[0];\n\n var key2nodeProps = Object(_hook_useKeyCache__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(treeData, props.fieldNames);\n\n var _c = __read(Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(), 2),\n hitKeys = _c[0],\n setHitKeys = _c[1];\n\n var _d = __read(Object(_util_hooks_useMergeValue__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(false, {\n value: props.popupVisible\n }), 2),\n popupVisible = _d[0],\n setPopupVisible = _d[1];\n\n var _e = __read(Object(_util_hooks_useMergeValue__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(undefined, // Compatible with previous behavior 'undefined as default'\n {\n value: 'inputValue' in props ? props.inputValue || '' : undefined\n }), 2),\n inputValue = _e[0],\n setInputValue = _e[1]; // 触发 onInputValueChange 回调的值\n\n\n var refOnInputChangeCallbackValue = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(inputValue); // 触发 onInputValueChange 回调的原因\n\n var refOnInputChangeCallbackReason = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(null);\n var onInputValueChange = props.onInputValueChange;\n var multiple = props.multiple || props.treeCheckable;\n var isMultipleQuickSelectMode = multiple && props.isQuickSingleSelectMode;\n\n var _f = __read(Object(_hook_useStateValue__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(props, key2nodeProps, indeterminateKeys), 5),\n value = _f[0],\n setValue = _f[1],\n realValue = _f[2],\n confirmSetValue = _f[3],\n cancelSetValue = _f[4];\n\n var prefixCls = getPrefixCls('tree-select');\n var isFilterNode = inputValue && !Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isFunction\"])(props.onSearch); // Unique ID of this select instance\n\n var instancePopupID = Object(_util_hooks_useId__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(\"\".concat(prefixCls, \"-popup-\"));\n\n var tryUpdatePopupVisible = function tryUpdatePopupVisible(visible) {\n var _a;\n\n if (visible !== popupVisible) {\n setPopupVisible(visible);\n (_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, visible);\n\n if (isMultipleQuickSelectMode && !visible) {\n cancelSetValue();\n }\n }\n }; // 尝试更新 inputValue,并触发 onInputValueChange\n\n\n var tryUpdateInputValue = function tryUpdateInputValue(value, reason) {\n if (value !== refOnInputChangeCallbackValue.current || reason !== refOnInputChangeCallbackReason.current) {\n setInputValue(value);\n refOnInputChangeCallbackValue.current = value;\n refOnInputChangeCallbackReason.current = reason;\n onInputValueChange && onInputValueChange(value, reason);\n }\n };\n\n var handleSearch = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (inputText) {\n var search = lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default()(function (inputText) {\n return __awaiter(void 0, void 0, void 0, function () {\n var hitKeys;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isFunction\"])(props.onSearch)) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , props.onSearch(inputText)];\n\n case 1:\n _a.sent();\n\n return [2\n /*return*/\n ];\n\n case 2:\n if (!inputText) return [2\n /*return*/\n , treeData];\n hitKeys = new Set();\n Object.keys(key2nodeProps).forEach(function (key) {\n var nodeProps = key2nodeProps[key];\n var isHit = false;\n\n if (Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isFunction\"])(props.filterTreeNode)) {\n // @ts-ignore\n if (props.filterTreeNode(inputText, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tree__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Node, __assign({}, nodeProps)))) {\n isHit = true;\n }\n } else {\n var text = nodeProps.value || nodeProps._key;\n\n if (text && text.indexOf(inputText) > -1) {\n isHit = true;\n }\n }\n\n if (isHit) {\n hitKeys.add(nodeProps.key);\n }\n });\n setHitKeys(hitKeys);\n return [2\n /*return*/\n ];\n }\n });\n });\n }, 100);\n return search(inputText);\n }, [props.onSearch, treeData, key2nodeProps, props.filterTreeNode]);\n var resetInputValue = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n // 多选选中值时候不清除搜索文本\n var retainInputValueWhileSelect = true;\n\n if (Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isObject\"])(props.showSearch)) {\n retainInputValueWhileSelect = props.showSearch.retainInputValueWhileSelect !== false;\n } // default scene: inputValue = refOnInputChangeCallbackValue = undefined\n // if updateTo '',will trigger an unnecessary onsearch\n\n\n if (props.multiple && !retainInputValueWhileSelect && inputValue !== undefined) {\n tryUpdateInputValue('', 'optionChecked');\n }\n }, [inputValue, props.multiple, JSON.stringify(props.showSearch)]);\n var triggerChange = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (newValue, extra) {\n setValue(newValue, extra);\n resetInputValue();\n\n if (!multiple) {\n tryUpdatePopupVisible(false);\n }\n }, [setValue, resetInputValue, popupVisible]);\n\n var cancelCheck = function cancelCheck() {\n tryUpdatePopupVisible(false);\n };\n\n var confirmCheck = function confirmCheck() {\n var _a;\n\n confirmSetValue();\n setPopupVisible(false);\n (_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, false);\n };\n\n var handleRemoveCheckedItem = function handleRemoveCheckedItem(item, index, e) {\n e.stopPropagation();\n\n if (item.disabled) {\n return;\n }\n\n var itemValue = Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isObject\"])(item.value) ? item.value.value : item.value;\n\n if (!props.treeCheckable || props.treeCheckStrictly || !key2nodeProps[itemValue]) {\n var newValue = realValue.filter(function (_, i) {\n return i !== index;\n });\n triggerChange(newValue, {\n trigger: key2nodeProps[itemValue] || item,\n checked: false,\n selected: false\n });\n\n if (isMultipleQuickSelectMode) {\n confirmCheck();\n }\n\n return;\n }\n\n var result = Object(_Tree_util__WEBPACK_IMPORTED_MODULE_8__[\"getAllCheckedKeysByCheck\"])(itemValue, false, Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"normalizeValueToArray\"])(realValue), key2nodeProps, indeterminateKeys.current);\n indeterminateKeys.current = result.indeterminateKeys;\n triggerChange(Object(_hook_useStateValue__WEBPACK_IMPORTED_MODULE_2__[\"parseValue\"])(result.checkedKeys, key2nodeProps, realValue), {\n trigger: key2nodeProps[itemValue],\n checked: false,\n selected: false\n });\n\n if (isMultipleQuickSelectMode) {\n confirmCheck();\n }\n };\n\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n inputValue !== undefined && handleSearch(inputValue);\n\n if (inputValue !== refOnInputChangeCallbackValue.current) {\n refOnInputChangeCallbackValue.current = inputValue;\n }\n }, [inputValue]);\n var searchKeys = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useMemo\"])(function () {\n var newKeys = [];\n\n if (inputValue) {\n for (var key in key2nodeProps) {\n var item = key2nodeProps[key];\n\n var pathKeys = __spreadArray(__spreadArray([], __read(item.pathParentKeys), false), [key], false);\n\n if (pathKeys.some(function (_key) {\n return hitKeys && hitKeys.has(_key);\n })) {\n newKeys = newKeys.concat(pathKeys);\n }\n }\n }\n\n return Array.from(new Set(newKeys));\n }, [inputValue, key2nodeProps, hitKeys]);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (popupVisible) {\n setTimeout(function () {\n var target = value[0];\n\n if (treeRef.current && target) {\n treeRef.current.scrollIntoView(target.value);\n }\n });\n } else if (!refIsFirstRender) {\n inputValue && tryUpdateInputValue('', 'optionListHide');\n }\n }, [popupVisible]);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useImperativeHandle\"])(ref, function () {\n return {\n focus: function focus() {\n refSelectView.current && refSelectView.current.focus();\n },\n blur: function blur() {\n refSelectView.current && refSelectView.current.blur();\n },\n getRootDOMNode: function getRootDOMNode() {\n var _a, _b;\n\n return (_b = (_a = refSelectView.current) === null || _a === void 0 ? void 0 : _a.getRootDOMNode) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n };\n });\n var filterNode = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (node) {\n return isFilterNode ? searchKeys.indexOf(node._key) > -1 : true;\n }, [isFilterNode, searchKeys]);\n var renderText = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (val) {\n var _a = val || {},\n disabled = _a.disabled,\n value = _a.value;\n\n var label = val === null || val === void 0 ? void 0 : val.label;\n\n if (Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isFunction\"])(props.renderFormat)) {\n label = props.renderFormat(key2nodeProps[value] || null, props.labelInValue ? val : value);\n }\n\n return {\n text: label || value || '',\n disabled: disabled\n };\n }, [props.renderFormat, props.labelInValue, key2nodeProps]);\n\n var tryUpdateSelectValue = function tryUpdateSelectValue(value) {\n setValue(value, {});\n };\n\n var getSelectAllCheckBoxProps = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n if (!isMultipleQuickSelectMode || props.treeCheckStrictly) {\n return {\n style: {\n display: 'none'\n }\n };\n }\n\n var allCheckedKeys = Object(_Tree_util__WEBPACK_IMPORTED_MODULE_8__[\"getCheckedKeysByInitKeys\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"normalizeValueToArray\"])(value), key2nodeProps).checkedKeys;\n var rootKeys = treeData.map(function (item) {\n return item.key;\n });\n var checked = rootKeys.every(function (key) {\n return allCheckedKeys.includes(key);\n });\n var indeterminate = !checked && value.length && rootKeys.some(function (key) {\n return !allCheckedKeys.includes(key);\n });\n return {\n disabled: treeData.length === 0,\n checked: checked,\n indeterminate: indeterminate,\n onChange: function onChange(val) {\n if (val) {\n setValue(Object(_hook_useStateValue__WEBPACK_IMPORTED_MODULE_2__[\"getInitCheckKeys\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"normalizeValueToArray\"])(rootKeys), key2nodeProps, indeterminateKeys, props).map(function (x) {\n return {\n label: x,\n value: x\n };\n }), {});\n } else {\n setValue([], {});\n }\n }\n };\n }, [isMultipleQuickSelectMode, value, treeData]);\n\n var renderView = function renderView(eleView) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Trigger__WEBPACK_IMPORTED_MODULE_5__[\"default\"], __assign({\n autoAlignPopupWidth: false,\n autoAlignPopupMinWidth: true,\n ref: triggerRef,\n classNames: \"slideDynamicOrigin\",\n trigger: \"click\",\n position: \"bl\",\n getPopupContainer: props.getPopupContainer,\n popupAlign: triggerPopupAlign,\n unmountOnExit: props.unmountOnExit\n }, props.triggerProps, {\n className: Object(_util_classNames__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(\"\".concat(prefixCls, \"-trigger\"), props.triggerProps && props.triggerProps.className),\n popup: function popup() {\n var _a;\n\n var _b, _c, _d, _e, _f;\n\n var dropdownRender = props.dropdownRender;\n var treeListDom = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_tree_list__WEBPACK_IMPORTED_MODULE_13__[\"default\"], __assign({\n prefixCls: prefixCls,\n ref: treeRef\n }, props, {\n inputValue: inputValue,\n filterNode: filterNode,\n value: value,\n onChange: triggerChange,\n multiple: multiple,\n treeData: treeData,\n confirmCheck: confirmCheck\n }));\n var dom = isFilterNode && isEmptyValue(searchKeys) || isEmptyValue(treeData) ? props.notFoundContent || renderEmpty('TreeSelect') : isMultipleQuickSelectMode ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n maxHeight: 188,\n display: 'flex',\n flexDirection: 'column'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n flex: 1,\n overflowY: 'auto'\n }\n }, treeListDom), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n flex: 'none',\n display: 'flex',\n justifyContent: 'space-between',\n padding: '8px 16px 4px 8px',\n borderTop: '1px solid var(--color-fill-3)'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Checkbox__WEBPACK_IMPORTED_MODULE_20__[\"default\"], __assign({}, getSelectAllCheckBoxProps()), \"\\u5168\\u9009\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n display: 'flex',\n gap: 12\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_19__[\"default\"], {\n size: \"mini\",\n onClick: cancelCheck\n }, (_b = locale.Select) === null || _b === void 0 ? void 0 : _b.cancelText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_19__[\"default\"], {\n type: \"primary\",\n size: \"mini\",\n onClick: confirmCheck\n }, (_c = locale.Select) === null || _c === void 0 ? void 0 : _c.okText)))) : treeListDom;\n var wrapStyle = isMultipleQuickSelectMode ? {\n overflow: 'hidden'\n } : {};\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n id: instancePopupID,\n className: Object(_util_classNames__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(\"\".concat(prefixCls, \"-popup\"), (_a = {}, _a[\"\".concat(prefixCls, \"-rtl-popup\")] = rtl, _a)),\n style: __assign(__assign({\n maxHeight: ((_d = props.treeProps) === null || _d === void 0 ? void 0 : _d.height) || ((_f = (_e = props.treeProps) === null || _e === void 0 ? void 0 : _e.virtualListProps) === null || _f === void 0 ? void 0 : _f.height) ? 'unset' : ''\n }, wrapStyle), props.dropdownMenuStyle)\n }, Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isFunction\"])(dropdownRender) ? dropdownRender(dom) : dom);\n },\n disabled: props.disabled,\n onVisibleChange: function onVisibleChange(visible) {\n tryUpdatePopupVisible(visible); // props.onVisibleChange && props.onVisibleChange(visible);\n },\n popupVisible: popupVisible\n }), eleView);\n };\n\n var customTriggerElement = typeof props.triggerElement === 'function' ? function () {\n var _a;\n\n var valueForCallback;\n\n if (multiple) {\n valueForCallback = value.map(function (x) {\n return props.labelInValue ? {\n label: x.label,\n value: x.value\n } : x.value;\n });\n } else {\n valueForCallback = props.labelInValue ? value[0] : (_a = value[0]) === null || _a === void 0 ? void 0 : _a.value;\n }\n\n return props.triggerElement({\n value: valueForCallback\n });\n }() : props.triggerElement;\n return !Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isNullOrUndefined\"])(customTriggerElement) ? renderView(customTriggerElement) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_class_select_view__WEBPACK_IMPORTED_MODULE_9__[\"default\"], __assign({\n ref: refSelectView,\n rtl: rtl,\n ariaControls: instancePopupID\n }, props, {\n popupVisible: popupVisible,\n value: !multiple && Object(_util_is__WEBPACK_IMPORTED_MODULE_4__[\"isArray\"])(realValue) ? realValue[0] : realValue,\n inputValue: inputValue,\n // other\n isEmptyValue: isEmptyValue(realValue),\n prefixCls: prefixCls,\n isMultiple: multiple,\n renderText: renderText,\n onSort: tryUpdateSelectValue,\n onRemoveCheckedItem: handleRemoveCheckedItem,\n onClear: function onClear(e) {\n var _a;\n\n e.stopPropagation();\n triggerChange([], {});\n (_a = props.onClear) === null || _a === void 0 ? void 0 : _a.call(props, !!popupVisible);\n\n if (isMultipleQuickSelectMode) {\n confirmCheck();\n }\n },\n onKeyDown: function onKeyDown(e) {\n var _a;\n\n e.stopPropagation();\n (_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);\n },\n onFocus: function onFocus(e) {\n e && e.stopPropagation();\n },\n onChangeInputValue: function onChangeInputValue(value) {\n tryUpdateInputValue(value, 'manual');\n },\n renderView: renderView\n }));\n};\n\nvar ForwardRefTreeSelect = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(TreeSelect);\nvar TreeSelectComponent = ForwardRefTreeSelect;\nTreeSelectComponent.displayName = 'TreeSelect';\nTreeSelectComponent.Node = _Tree__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Node;\nTreeSelectComponent.SHOW_ALL = _Tree__WEBPACK_IMPORTED_MODULE_6__[\"default\"].SHOW_ALL;\nTreeSelectComponent.SHOW_PARENT = _Tree__WEBPACK_IMPORTED_MODULE_6__[\"default\"].SHOW_PARENT;\nTreeSelectComponent.SHOW_CHILD = _Tree__WEBPACK_IMPORTED_MODULE_6__[\"default\"].SHOW_CHILD;\n/* harmony default export */ __webpack_exports__[\"default\"] = (TreeSelectComponent);\n\n//# sourceURL=webpack://%5Bname%5D/./components/TreeSelect/tree-select.tsx?");
|
|
3558
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var pinyin_match__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! pinyin-match */ \"./node_modules/pinyin-match/es/main.js\");\n/* harmony import */ var _hook_useStateValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hook/useStateValue */ \"./components/TreeSelect/hook/useStateValue.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ \"./components/TreeSelect/utils.tsx\");\n/* harmony import */ var _util_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/is */ \"./components/_util/is.ts\");\n/* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Trigger */ \"./components/Trigger/index.tsx\");\n/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Tree */ \"./components/Tree/index.tsx\");\n/* harmony import */ var _ConfigProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ConfigProvider */ \"./components/ConfigProvider/index.tsx\");\n/* harmony import */ var _Tree_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Tree/util */ \"./components/Tree/util.tsx\");\n/* harmony import */ var _class_select_view__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_class/select-view */ \"./components/_class/select-view.tsx\");\n/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./interface */ \"./components/TreeSelect/interface.ts\");\n/* harmony import */ var _hook_useTreeData__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hook/useTreeData */ \"./components/TreeSelect/hook/useTreeData.ts\");\n/* harmony import */ var _hook_useKeyCache__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hook/useKeyCache */ \"./components/TreeSelect/hook/useKeyCache.ts\");\n/* harmony import */ var _tree_list__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./tree-list */ \"./components/TreeSelect/tree-list.tsx\");\n/* harmony import */ var _util_hooks_useMergeValue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/hooks/useMergeValue */ \"./components/_util/hooks/useMergeValue.ts\");\n/* harmony import */ var _util_classNames__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/classNames */ \"./components/_util/classNames.ts\");\n/* harmony import */ var _util_hooks_useMergeProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../_util/hooks/useMergeProps */ \"./components/_util/hooks/useMergeProps.ts\");\n/* harmony import */ var _util_hooks_useIsFirstRender__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../_util/hooks/useIsFirstRender */ \"./components/_util/hooks/useIsFirstRender.ts\");\n/* harmony import */ var _util_hooks_useId__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../_util/hooks/useId */ \"./components/_util/hooks/useId.ts\");\n/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../Button */ \"./components/Button/index.tsx\");\n/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../Checkbox */ \"./components/Checkbox/index.tsx\");\nvar __assign = undefined && undefined.__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\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = undefined && undefined.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n 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\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nvar __read = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spreadArray = undefined && undefined.__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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/** 与 value/_key 子串匹配,或在开启拼音时按 title(或 value)做拼音匹配 */\n\nfunction matchNodeByTextAndPinyin(nodeProps, inputText, allowPYSearch) {\n var text = nodeProps.value || nodeProps._key;\n\n if (text && text.indexOf(inputText) > -1) {\n return true;\n }\n\n if (!allowPYSearch) {\n return false;\n }\n\n var displayText = typeof nodeProps.title === 'string' || typeof nodeProps.title === 'number' ? String(nodeProps.title) : typeof text === 'string' || typeof text === 'number' ? String(text) : '';\n\n try {\n return !!pinyin_match__WEBPACK_IMPORTED_MODULE_2__[\"default\"].match(displayText, String(inputText || ''));\n } catch (_a) {\n return false;\n }\n}\n\nfunction isEmptyValue(value) {\n return !value || Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isArray\"])(value) && value.length === 0 || Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isObject\"])(value) && Object.keys(value).length === 0;\n}\n\nvar defaultProps = {\n bordered: true,\n treeCheckedStrategy: _Tree__WEBPACK_IMPORTED_MODULE_7__[\"default\"].SHOW_CHILD,\n fieldNames: _interface__WEBPACK_IMPORTED_MODULE_11__[\"DefaultFieldNames\"],\n isQuickSingleSelectMode: true\n};\nvar triggerPopupAlign = {\n bottom: 4\n};\n\nvar TreeSelect = function TreeSelect(baseProps, ref) {\n var _a = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useContext\"])(_ConfigProvider__WEBPACK_IMPORTED_MODULE_8__[\"ConfigContext\"]),\n getPrefixCls = _a.getPrefixCls,\n renderEmpty = _a.renderEmpty,\n componentConfig = _a.componentConfig,\n rtl = _a.rtl,\n locale = _a.locale;\n\n var props = Object(_util_hooks_useMergeProps__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(baseProps, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.TreeSelect);\n var refIsFirstRender = Object(_util_hooks_useIsFirstRender__WEBPACK_IMPORTED_MODULE_18__[\"default\"])();\n var triggerRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])();\n var treeRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(null);\n var refSelectView = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(null);\n var indeterminateKeys = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])([]);\n\n var _b = __read(Object(_hook_useTreeData__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(props), 1),\n treeData = _b[0];\n\n var key2nodeProps = Object(_hook_useKeyCache__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(treeData, props.fieldNames);\n\n var _c = __read(Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(), 2),\n hitKeys = _c[0],\n setHitKeys = _c[1];\n\n var _d = __read(Object(_util_hooks_useMergeValue__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(false, {\n value: props.popupVisible\n }), 2),\n popupVisible = _d[0],\n setPopupVisible = _d[1];\n\n var _e = __read(Object(_util_hooks_useMergeValue__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(undefined, // Compatible with previous behavior 'undefined as default'\n {\n value: 'inputValue' in props ? props.inputValue || '' : undefined\n }), 2),\n inputValue = _e[0],\n setInputValue = _e[1]; // 触发 onInputValueChange 回调的值\n\n\n var refOnInputChangeCallbackValue = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(inputValue); // 触发 onInputValueChange 回调的原因\n\n var refOnInputChangeCallbackReason = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(null);\n var onInputValueChange = props.onInputValueChange;\n var multiple = props.multiple || props.treeCheckable;\n var isMultipleQuickSelectMode = multiple && props.isQuickSingleSelectMode;\n\n var _f = __read(Object(_hook_useStateValue__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(props, key2nodeProps, indeterminateKeys), 5),\n value = _f[0],\n setValue = _f[1],\n realValue = _f[2],\n confirmSetValue = _f[3],\n cancelSetValue = _f[4];\n\n var prefixCls = getPrefixCls('tree-select');\n var isFilterNode = inputValue && !Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isFunction\"])(props.onSearch);\n var allowPYSearchEnabled = !!props.allowPYSearch && !!props.showSearch; // Unique ID of this select instance\n\n var instancePopupID = Object(_util_hooks_useId__WEBPACK_IMPORTED_MODULE_19__[\"default\"])(\"\".concat(prefixCls, \"-popup-\"));\n\n var tryUpdatePopupVisible = function tryUpdatePopupVisible(visible) {\n var _a;\n\n if (visible !== popupVisible) {\n setPopupVisible(visible);\n (_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, visible);\n\n if (isMultipleQuickSelectMode && !visible) {\n cancelSetValue();\n }\n }\n }; // 尝试更新 inputValue,并触发 onInputValueChange\n\n\n var tryUpdateInputValue = function tryUpdateInputValue(value, reason) {\n if (value !== refOnInputChangeCallbackValue.current || reason !== refOnInputChangeCallbackReason.current) {\n setInputValue(value);\n refOnInputChangeCallbackValue.current = value;\n refOnInputChangeCallbackReason.current = reason;\n onInputValueChange && onInputValueChange(value, reason);\n }\n };\n\n var handleSearch = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (inputText) {\n var search = lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default()(function (inputText) {\n return __awaiter(void 0, void 0, void 0, function () {\n var hitKeys;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isFunction\"])(props.onSearch)) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , props.onSearch(inputText)];\n\n case 1:\n _a.sent();\n\n return [2\n /*return*/\n ];\n\n case 2:\n if (!inputText) return [2\n /*return*/\n , treeData];\n hitKeys = new Set();\n Object.keys(key2nodeProps).forEach(function (key) {\n var nodeProps = key2nodeProps[key];\n var isHit = false;\n\n if (Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isFunction\"])(props.filterTreeNode)) {\n // Keep historical behavior: user errors should throw.\n // @ts-ignore\n if (props.filterTreeNode(inputText, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tree__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Node, __assign({}, nodeProps)))) {\n isHit = true;\n } else if (allowPYSearchEnabled) {\n isHit = matchNodeByTextAndPinyin(nodeProps, inputText, true);\n }\n } else {\n isHit = matchNodeByTextAndPinyin(nodeProps, inputText, allowPYSearchEnabled);\n }\n\n if (isHit) {\n hitKeys.add(nodeProps.key);\n }\n });\n setHitKeys(hitKeys);\n return [2\n /*return*/\n ];\n }\n });\n });\n }, 100);\n return search(inputText);\n }, [props.onSearch, treeData, key2nodeProps, props.filterTreeNode, allowPYSearchEnabled]);\n var resetInputValue = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n // 多选选中值时候不清除搜索文本\n var retainInputValueWhileSelect = true;\n\n if (Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isObject\"])(props.showSearch)) {\n retainInputValueWhileSelect = props.showSearch.retainInputValueWhileSelect !== false;\n } // default scene: inputValue = refOnInputChangeCallbackValue = undefined\n // if updateTo '',will trigger an unnecessary onsearch\n\n\n if (props.multiple && !retainInputValueWhileSelect && inputValue !== undefined) {\n tryUpdateInputValue('', 'optionChecked');\n }\n }, [inputValue, props.multiple, JSON.stringify(props.showSearch)]);\n var triggerChange = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (newValue, extra) {\n setValue(newValue, extra);\n resetInputValue();\n\n if (!multiple) {\n tryUpdatePopupVisible(false);\n }\n }, [setValue, resetInputValue, popupVisible]);\n\n var cancelCheck = function cancelCheck() {\n tryUpdatePopupVisible(false);\n };\n\n var confirmCheck = function confirmCheck() {\n var _a;\n\n confirmSetValue();\n setPopupVisible(false);\n (_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, false);\n };\n\n var handleRemoveCheckedItem = function handleRemoveCheckedItem(item, index, e) {\n e.stopPropagation();\n\n if (item.disabled) {\n return;\n }\n\n var itemValue = Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isObject\"])(item.value) ? item.value.value : item.value;\n\n if (!props.treeCheckable || props.treeCheckStrictly || !key2nodeProps[itemValue]) {\n var newValue = realValue.filter(function (_, i) {\n return i !== index;\n });\n triggerChange(newValue, {\n trigger: key2nodeProps[itemValue] || item,\n checked: false,\n selected: false\n });\n\n if (isMultipleQuickSelectMode) {\n confirmCheck();\n }\n\n return;\n }\n\n var result = Object(_Tree_util__WEBPACK_IMPORTED_MODULE_9__[\"getAllCheckedKeysByCheck\"])(itemValue, false, Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeValueToArray\"])(realValue), key2nodeProps, indeterminateKeys.current);\n indeterminateKeys.current = result.indeterminateKeys;\n triggerChange(Object(_hook_useStateValue__WEBPACK_IMPORTED_MODULE_3__[\"parseValue\"])(result.checkedKeys, key2nodeProps, realValue), {\n trigger: key2nodeProps[itemValue],\n checked: false,\n selected: false\n });\n\n if (isMultipleQuickSelectMode) {\n confirmCheck();\n }\n };\n\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n inputValue !== undefined && handleSearch(inputValue);\n\n if (inputValue !== refOnInputChangeCallbackValue.current) {\n refOnInputChangeCallbackValue.current = inputValue;\n }\n }, [inputValue]);\n var searchKeys = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useMemo\"])(function () {\n var newKeys = [];\n\n if (inputValue) {\n for (var key in key2nodeProps) {\n var item = key2nodeProps[key];\n\n var pathKeys = __spreadArray(__spreadArray([], __read(item.pathParentKeys), false), [key], false);\n\n if (pathKeys.some(function (_key) {\n return hitKeys && hitKeys.has(_key);\n })) {\n newKeys = newKeys.concat(pathKeys);\n }\n }\n }\n\n return Array.from(new Set(newKeys));\n }, [inputValue, key2nodeProps, hitKeys]);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (popupVisible) {\n setTimeout(function () {\n var target = value[0];\n\n if (treeRef.current && target) {\n treeRef.current.scrollIntoView(target.value);\n }\n });\n } else if (!refIsFirstRender) {\n inputValue && tryUpdateInputValue('', 'optionListHide');\n }\n }, [popupVisible]);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useImperativeHandle\"])(ref, function () {\n return {\n focus: function focus() {\n refSelectView.current && refSelectView.current.focus();\n },\n blur: function blur() {\n refSelectView.current && refSelectView.current.blur();\n },\n getRootDOMNode: function getRootDOMNode() {\n var _a, _b;\n\n return (_b = (_a = refSelectView.current) === null || _a === void 0 ? void 0 : _a.getRootDOMNode) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n };\n });\n var filterNode = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (node) {\n return isFilterNode ? searchKeys.indexOf(node._key) > -1 : true;\n }, [isFilterNode, searchKeys]);\n var renderText = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (val) {\n var _a = val || {},\n disabled = _a.disabled,\n value = _a.value;\n\n var label = val === null || val === void 0 ? void 0 : val.label;\n\n if (Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isFunction\"])(props.renderFormat)) {\n label = props.renderFormat(key2nodeProps[value] || null, props.labelInValue ? val : value);\n }\n\n return {\n text: label || value || '',\n disabled: disabled\n };\n }, [props.renderFormat, props.labelInValue, key2nodeProps]);\n\n var tryUpdateSelectValue = function tryUpdateSelectValue(value) {\n setValue(value, {});\n };\n\n var getSelectAllCheckBoxProps = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n if (!isMultipleQuickSelectMode || props.treeCheckStrictly) {\n return {\n style: {\n display: 'none'\n }\n };\n }\n\n var allCheckedKeys = Object(_Tree_util__WEBPACK_IMPORTED_MODULE_9__[\"getCheckedKeysByInitKeys\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeValueToArray\"])(value), key2nodeProps).checkedKeys;\n var rootKeys = treeData.map(function (item) {\n return item.key;\n });\n var checked = rootKeys.every(function (key) {\n return allCheckedKeys.includes(key);\n });\n var indeterminate = !checked && value.length && rootKeys.some(function (key) {\n return !allCheckedKeys.includes(key);\n });\n return {\n disabled: treeData.length === 0,\n checked: checked,\n indeterminate: indeterminate,\n onChange: function onChange(val) {\n if (val) {\n setValue(Object(_hook_useStateValue__WEBPACK_IMPORTED_MODULE_3__[\"getInitCheckKeys\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeValueToArray\"])(rootKeys), key2nodeProps, indeterminateKeys, props).map(function (x) {\n return {\n label: x,\n value: x\n };\n }), {});\n } else {\n setValue([], {});\n }\n }\n };\n }, [isMultipleQuickSelectMode, value, treeData]);\n\n var renderView = function renderView(eleView) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Trigger__WEBPACK_IMPORTED_MODULE_6__[\"default\"], __assign({\n autoAlignPopupWidth: false,\n autoAlignPopupMinWidth: true,\n ref: triggerRef,\n classNames: \"slideDynamicOrigin\",\n trigger: \"click\",\n position: \"bl\",\n getPopupContainer: props.getPopupContainer,\n popupAlign: triggerPopupAlign,\n unmountOnExit: props.unmountOnExit\n }, props.triggerProps, {\n className: Object(_util_classNames__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(\"\".concat(prefixCls, \"-trigger\"), props.triggerProps && props.triggerProps.className),\n popup: function popup() {\n var _a;\n\n var _b, _c, _d, _e, _f;\n\n var dropdownRender = props.dropdownRender;\n var treeListDom = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_tree_list__WEBPACK_IMPORTED_MODULE_14__[\"default\"], __assign({\n prefixCls: prefixCls,\n ref: treeRef\n }, props, {\n inputValue: inputValue,\n filterNode: filterNode,\n value: value,\n onChange: triggerChange,\n multiple: multiple,\n treeData: treeData,\n confirmCheck: confirmCheck\n }));\n var dom = isFilterNode && isEmptyValue(searchKeys) || isEmptyValue(treeData) ? props.notFoundContent || renderEmpty('TreeSelect') : isMultipleQuickSelectMode ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n maxHeight: 188,\n display: 'flex',\n flexDirection: 'column'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n flex: 1,\n overflowY: 'auto'\n }\n }, treeListDom), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n flex: 'none',\n display: 'flex',\n justifyContent: 'space-between',\n padding: '8px 16px 4px 8px',\n borderTop: '1px solid var(--color-fill-3)'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Checkbox__WEBPACK_IMPORTED_MODULE_21__[\"default\"], __assign({}, getSelectAllCheckBoxProps()), \"\\u5168\\u9009\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n display: 'flex',\n gap: 12\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_20__[\"default\"], {\n size: \"mini\",\n onClick: cancelCheck\n }, (_b = locale.Select) === null || _b === void 0 ? void 0 : _b.cancelText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_20__[\"default\"], {\n type: \"primary\",\n size: \"mini\",\n onClick: confirmCheck\n }, (_c = locale.Select) === null || _c === void 0 ? void 0 : _c.okText)))) : treeListDom;\n var wrapStyle = isMultipleQuickSelectMode ? {\n overflow: 'hidden'\n } : {};\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n id: instancePopupID,\n className: Object(_util_classNames__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(\"\".concat(prefixCls, \"-popup\"), (_a = {}, _a[\"\".concat(prefixCls, \"-rtl-popup\")] = rtl, _a)),\n style: __assign(__assign({\n maxHeight: ((_d = props.treeProps) === null || _d === void 0 ? void 0 : _d.height) || ((_f = (_e = props.treeProps) === null || _e === void 0 ? void 0 : _e.virtualListProps) === null || _f === void 0 ? void 0 : _f.height) ? 'unset' : ''\n }, wrapStyle), props.dropdownMenuStyle)\n }, Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isFunction\"])(dropdownRender) ? dropdownRender(dom) : dom);\n },\n disabled: props.disabled,\n onVisibleChange: function onVisibleChange(visible) {\n tryUpdatePopupVisible(visible); // props.onVisibleChange && props.onVisibleChange(visible);\n },\n popupVisible: popupVisible\n }), eleView);\n };\n\n var customTriggerElement = typeof props.triggerElement === 'function' ? function () {\n var _a;\n\n var valueForCallback;\n\n if (multiple) {\n valueForCallback = value.map(function (x) {\n return props.labelInValue ? {\n label: x.label,\n value: x.value\n } : x.value;\n });\n } else {\n valueForCallback = props.labelInValue ? value[0] : (_a = value[0]) === null || _a === void 0 ? void 0 : _a.value;\n }\n\n return props.triggerElement({\n value: valueForCallback\n });\n }() : props.triggerElement;\n return !Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isNullOrUndefined\"])(customTriggerElement) ? renderView(customTriggerElement) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_class_select_view__WEBPACK_IMPORTED_MODULE_10__[\"default\"], __assign({\n ref: refSelectView,\n rtl: rtl,\n ariaControls: instancePopupID\n }, props, {\n popupVisible: popupVisible,\n value: !multiple && Object(_util_is__WEBPACK_IMPORTED_MODULE_5__[\"isArray\"])(realValue) ? realValue[0] : realValue,\n inputValue: inputValue,\n // other\n isEmptyValue: isEmptyValue(realValue),\n prefixCls: prefixCls,\n isMultiple: multiple,\n renderText: renderText,\n onSort: tryUpdateSelectValue,\n onRemoveCheckedItem: handleRemoveCheckedItem,\n onClear: function onClear(e) {\n var _a;\n\n e.stopPropagation();\n triggerChange([], {});\n (_a = props.onClear) === null || _a === void 0 ? void 0 : _a.call(props, !!popupVisible);\n\n if (isMultipleQuickSelectMode) {\n confirmCheck();\n }\n },\n onKeyDown: function onKeyDown(e) {\n var _a;\n\n e.stopPropagation();\n (_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);\n },\n onFocus: function onFocus(e) {\n e && e.stopPropagation();\n },\n onChangeInputValue: function onChangeInputValue(value) {\n tryUpdateInputValue(value, 'manual');\n },\n renderView: renderView\n }));\n};\n\nvar ForwardRefTreeSelect = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(TreeSelect);\nvar TreeSelectComponent = ForwardRefTreeSelect;\nTreeSelectComponent.displayName = 'TreeSelect';\nTreeSelectComponent.Node = _Tree__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Node;\nTreeSelectComponent.SHOW_ALL = _Tree__WEBPACK_IMPORTED_MODULE_7__[\"default\"].SHOW_ALL;\nTreeSelectComponent.SHOW_PARENT = _Tree__WEBPACK_IMPORTED_MODULE_7__[\"default\"].SHOW_PARENT;\nTreeSelectComponent.SHOW_CHILD = _Tree__WEBPACK_IMPORTED_MODULE_7__[\"default\"].SHOW_CHILD;\n/* harmony default export */ __webpack_exports__[\"default\"] = (TreeSelectComponent);\n\n//# sourceURL=webpack://%5Bname%5D/./components/TreeSelect/tree-select.tsx?");
|
|
3559
3559
|
|
|
3560
3560
|
/***/ }),
|
|
3561
3561
|
|
|
@@ -4683,7 +4683,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
4683
4683
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4684
4684
|
|
|
4685
4685
|
"use strict";
|
|
4686
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\n/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alert */ \"./components/Alert/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Alert\", function() { return _Alert__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Anchor */ \"./components/Anchor/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Anchor\", function() { return _Anchor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _Affix__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Affix */ \"./components/Affix/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Affix\", function() { return _Affix__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _AutoComplete__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AutoComplete */ \"./components/AutoComplete/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AutoComplete\", function() { return _AutoComplete__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Avatar */ \"./components/Avatar/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Avatar\", function() { return _Avatar__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _BackTop__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BackTop */ \"./components/BackTop/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"BackTop\", function() { return _BackTop__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Badge */ \"./components/Badge/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Badge\", function() { return _Badge__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Breadcrumb */ \"./components/Breadcrumb/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Breadcrumb\", function() { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Button */ \"./components/Button/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Button\", function() { return _Button__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Calendar */ \"./components/Calendar/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Calendar\", function() { return _Calendar__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Card */ \"./components/Card/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Card\", function() { return _Card__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _Carousel__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Carousel */ \"./components/Carousel/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Carousel\", function() { return _Carousel__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _Cascader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Cascader */ \"./components/Cascader/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Cascader\", function() { return _Cascader__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Checkbox */ \"./components/Checkbox/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Checkbox\", function() { return _Checkbox__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Collapse */ \"./components/Collapse/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Collapse\", function() { return _Collapse__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _ColorPicker__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ColorPicker */ \"./components/ColorPicker/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ColorPicker\", function() { return _ColorPicker__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; });\n\n/* harmony import */ var _Comment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Comment */ \"./components/Comment/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Comment\", function() { return _Comment__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; });\n\n/* harmony import */ var _ConfigProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ConfigProvider */ \"./components/ConfigProvider/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ConfigProvider\", function() { return _ConfigProvider__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; });\n\n/* harmony import */ var _DatePicker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DatePicker */ \"./components/DatePicker/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DatePicker\", function() { return _DatePicker__WEBPACK_IMPORTED_MODULE_18__[\"default\"]; });\n\n/* harmony import */ var _Descriptions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Descriptions */ \"./components/Descriptions/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Descriptions\", function() { return _Descriptions__WEBPACK_IMPORTED_MODULE_19__[\"default\"]; });\n\n/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Divider */ \"./components/Divider/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Divider\", function() { return _Divider__WEBPACK_IMPORTED_MODULE_20__[\"default\"]; });\n\n/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Drawer */ \"./components/Drawer/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Drawer\", function() { return _Drawer__WEBPACK_IMPORTED_MODULE_21__[\"default\"]; });\n\n/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Dropdown */ \"./components/Dropdown/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Dropdown\", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_22__[\"default\"]; });\n\n/* harmony import */ var _Empty__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Empty */ \"./components/Empty/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Empty\", function() { return _Empty__WEBPACK_IMPORTED_MODULE_23__[\"default\"]; });\n\n/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Form */ \"./components/Form/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Form\", function() { return _Form__WEBPACK_IMPORTED_MODULE_24__[\"default\"]; });\n\n/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Grid */ \"./components/Grid/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Grid\", function() { return _Grid__WEBPACK_IMPORTED_MODULE_25__[\"default\"]; });\n\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Icon */ \"./components/Icon/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Icon\", function() { return _Icon__WEBPACK_IMPORTED_MODULE_26__[\"default\"]; });\n\n/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Input */ \"./components/Input/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Input\", function() { return _Input__WEBPACK_IMPORTED_MODULE_27__[\"default\"]; });\n\n/* harmony import */ var _InputTag__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./InputTag */ \"./components/InputTag/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"InputTag\", function() { return _InputTag__WEBPACK_IMPORTED_MODULE_28__[\"default\"]; });\n\n/* harmony import */ var _InputNumber__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./InputNumber */ \"./components/InputNumber/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"InputNumber\", function() { return _InputNumber__WEBPACK_IMPORTED_MODULE_29__[\"default\"]; });\n\n/* harmony import */ var _VerificationCode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./VerificationCode */ \"./components/VerificationCode/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"VerificationCode\", function() { return _VerificationCode__WEBPACK_IMPORTED_MODULE_30__[\"default\"]; });\n\n/* harmony import */ var _Layout__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Layout */ \"./components/Layout/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Layout\", function() { return _Layout__WEBPACK_IMPORTED_MODULE_31__[\"default\"]; });\n\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Link */ \"./components/Link/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Link\", function() { return _Link__WEBPACK_IMPORTED_MODULE_32__[\"default\"]; });\n\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./List */ \"./components/List/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"List\", function() { return _List__WEBPACK_IMPORTED_MODULE_33__[\"default\"]; });\n\n/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./Message */ \"./components/Message/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Message\", function() { return _Message__WEBPACK_IMPORTED_MODULE_34__[\"default\"]; });\n\n/* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./Menu */ \"./components/Menu/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Menu\", function() { return _Menu__WEBPACK_IMPORTED_MODULE_35__[\"default\"]; });\n\n/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Modal */ \"./components/Modal/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Modal\", function() { return _Modal__WEBPACK_IMPORTED_MODULE_36__[\"default\"]; });\n\n/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Notification */ \"./components/Notification/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Notification\", function() { return _Notification__WEBPACK_IMPORTED_MODULE_37__[\"default\"]; });\n\n/* harmony import */ var _PageHeader__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./PageHeader */ \"./components/PageHeader/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PageHeader\", function() { return _PageHeader__WEBPACK_IMPORTED_MODULE_38__[\"default\"]; });\n\n/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./Pagination */ \"./components/Pagination/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pagination\", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_39__[\"default\"]; });\n\n/* harmony import */ var _Popconfirm__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Popconfirm */ \"./components/Popconfirm/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Popconfirm\", function() { return _Popconfirm__WEBPACK_IMPORTED_MODULE_40__[\"default\"]; });\n\n/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Popover */ \"./components/Popover/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Popover\", function() { return _Popover__WEBPACK_IMPORTED_MODULE_41__[\"default\"]; });\n\n/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./Portal */ \"./components/Portal/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Portal\", function() { return _Portal__WEBPACK_IMPORTED_MODULE_42__[\"default\"]; });\n\n/* harmony import */ var _Progress__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./Progress */ \"./components/Progress/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Progress\", function() { return _Progress__WEBPACK_IMPORTED_MODULE_43__[\"default\"]; });\n\n/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./Radio */ \"./components/Radio/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Radio\", function() { return _Radio__WEBPACK_IMPORTED_MODULE_44__[\"default\"]; });\n\n/* harmony import */ var _Rate__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./Rate */ \"./components/Rate/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Rate\", function() { return _Rate__WEBPACK_IMPORTED_MODULE_45__[\"default\"]; });\n\n/* harmony import */ var _ResizeBox__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ResizeBox */ \"./components/ResizeBox/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ResizeBox\", function() { return _ResizeBox__WEBPACK_IMPORTED_MODULE_46__[\"default\"]; });\n\n/* harmony import */ var _Result__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./Result */ \"./components/Result/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Result\", function() { return _Result__WEBPACK_IMPORTED_MODULE_47__[\"default\"]; });\n\n/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./Select */ \"./components/Select/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Select\", function() { return _Select__WEBPACK_IMPORTED_MODULE_48__[\"default\"]; });\n\n/* harmony import */ var _Skeleton__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./Skeleton */ \"./components/Skeleton/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Skeleton\", function() { return _Skeleton__WEBPACK_IMPORTED_MODULE_49__[\"default\"]; });\n\n/* harmony import */ var _Slider__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./Slider */ \"./components/Slider/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Slider\", function() { return _Slider__WEBPACK_IMPORTED_MODULE_50__[\"default\"]; });\n\n/* harmony import */ var _Space__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./Space */ \"./components/Space/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Space\", function() { return _Space__WEBPACK_IMPORTED_MODULE_51__[\"default\"]; });\n\n/* harmony import */ var _Spin__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./Spin */ \"./components/Spin/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Spin\", function() { return _Spin__WEBPACK_IMPORTED_MODULE_52__[\"default\"]; });\n\n/* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./Statistic */ \"./components/Statistic/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Statistic\", function() { return _Statistic__WEBPACK_IMPORTED_MODULE_53__[\"default\"]; });\n\n/* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./Steps */ \"./components/Steps/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Steps\", function() { return _Steps__WEBPACK_IMPORTED_MODULE_54__[\"default\"]; });\n\n/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./Switch */ \"./components/Switch/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Switch\", function() { return _Switch__WEBPACK_IMPORTED_MODULE_55__[\"default\"]; });\n\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./Table */ \"./components/Table/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Table\", function() { return _Table__WEBPACK_IMPORTED_MODULE_56__[\"default\"]; });\n\n/* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./Tabs */ \"./components/Tabs/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tabs\", function() { return _Tabs__WEBPACK_IMPORTED_MODULE_57__[\"default\"]; });\n\n/* harmony import */ var _Tag__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./Tag */ \"./components/Tag/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tag\", function() { return _Tag__WEBPACK_IMPORTED_MODULE_58__[\"default\"]; });\n\n/* harmony import */ var _Timeline__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./Timeline */ \"./components/Timeline/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Timeline\", function() { return _Timeline__WEBPACK_IMPORTED_MODULE_59__[\"default\"]; });\n\n/* harmony import */ var _TimePicker__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./TimePicker */ \"./components/TimePicker/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TimePicker\", function() { return _TimePicker__WEBPACK_IMPORTED_MODULE_60__[\"default\"]; });\n\n/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./Tooltip */ \"./components/Tooltip/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tooltip\", function() { return _Tooltip__WEBPACK_IMPORTED_MODULE_61__[\"default\"]; });\n\n/* harmony import */ var _Transfer__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./Transfer */ \"./components/Transfer/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Transfer\", function() { return _Transfer__WEBPACK_IMPORTED_MODULE_62__[\"default\"]; });\n\n/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./Tree */ \"./components/Tree/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tree\", function() { return _Tree__WEBPACK_IMPORTED_MODULE_63__[\"default\"]; });\n\n/* harmony import */ var _TreeSelect__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./TreeSelect */ \"./components/TreeSelect/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TreeSelect\", function() { return _TreeSelect__WEBPACK_IMPORTED_MODULE_64__[\"default\"]; });\n\n/* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./Trigger */ \"./components/Trigger/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Trigger\", function() { return _Trigger__WEBPACK_IMPORTED_MODULE_65__[\"default\"]; });\n\n/* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./Typography */ \"./components/Typography/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Typography\", function() { return _Typography__WEBPACK_IMPORTED_MODULE_66__[\"default\"]; });\n\n/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./Upload */ \"./components/Upload/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Upload\", function() { return _Upload__WEBPACK_IMPORTED_MODULE_67__[\"default\"]; });\n\n/* harmony import */ var _Mentions__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./Mentions */ \"./components/Mentions/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Mentions\", function() { return _Mentions__WEBPACK_IMPORTED_MODULE_68__[\"default\"]; });\n\n/* harmony import */ var _Watermark__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./Watermark */ \"./components/Watermark/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Watermark\", function() { return _Watermark__WEBPACK_IMPORTED_MODULE_69__[\"default\"]; });\n\n/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./Image */ \"./components/Image/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Image\", function() { return _Image__WEBPACK_IMPORTED_MODULE_70__[\"default\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar version = '1.5.1';\n\n//# sourceURL=webpack://%5Bname%5D/./components/index.tsx?");
|
|
4686
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\n/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alert */ \"./components/Alert/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Alert\", function() { return _Alert__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Anchor */ \"./components/Anchor/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Anchor\", function() { return _Anchor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _Affix__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Affix */ \"./components/Affix/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Affix\", function() { return _Affix__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _AutoComplete__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AutoComplete */ \"./components/AutoComplete/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AutoComplete\", function() { return _AutoComplete__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Avatar */ \"./components/Avatar/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Avatar\", function() { return _Avatar__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _BackTop__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BackTop */ \"./components/BackTop/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"BackTop\", function() { return _BackTop__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Badge */ \"./components/Badge/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Badge\", function() { return _Badge__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Breadcrumb */ \"./components/Breadcrumb/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Breadcrumb\", function() { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Button */ \"./components/Button/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Button\", function() { return _Button__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Calendar */ \"./components/Calendar/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Calendar\", function() { return _Calendar__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Card */ \"./components/Card/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Card\", function() { return _Card__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _Carousel__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Carousel */ \"./components/Carousel/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Carousel\", function() { return _Carousel__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _Cascader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Cascader */ \"./components/Cascader/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Cascader\", function() { return _Cascader__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Checkbox */ \"./components/Checkbox/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Checkbox\", function() { return _Checkbox__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Collapse */ \"./components/Collapse/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Collapse\", function() { return _Collapse__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _ColorPicker__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ColorPicker */ \"./components/ColorPicker/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ColorPicker\", function() { return _ColorPicker__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; });\n\n/* harmony import */ var _Comment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Comment */ \"./components/Comment/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Comment\", function() { return _Comment__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; });\n\n/* harmony import */ var _ConfigProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ConfigProvider */ \"./components/ConfigProvider/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ConfigProvider\", function() { return _ConfigProvider__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; });\n\n/* harmony import */ var _DatePicker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DatePicker */ \"./components/DatePicker/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DatePicker\", function() { return _DatePicker__WEBPACK_IMPORTED_MODULE_18__[\"default\"]; });\n\n/* harmony import */ var _Descriptions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Descriptions */ \"./components/Descriptions/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Descriptions\", function() { return _Descriptions__WEBPACK_IMPORTED_MODULE_19__[\"default\"]; });\n\n/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Divider */ \"./components/Divider/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Divider\", function() { return _Divider__WEBPACK_IMPORTED_MODULE_20__[\"default\"]; });\n\n/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Drawer */ \"./components/Drawer/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Drawer\", function() { return _Drawer__WEBPACK_IMPORTED_MODULE_21__[\"default\"]; });\n\n/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Dropdown */ \"./components/Dropdown/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Dropdown\", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_22__[\"default\"]; });\n\n/* harmony import */ var _Empty__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Empty */ \"./components/Empty/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Empty\", function() { return _Empty__WEBPACK_IMPORTED_MODULE_23__[\"default\"]; });\n\n/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Form */ \"./components/Form/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Form\", function() { return _Form__WEBPACK_IMPORTED_MODULE_24__[\"default\"]; });\n\n/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Grid */ \"./components/Grid/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Grid\", function() { return _Grid__WEBPACK_IMPORTED_MODULE_25__[\"default\"]; });\n\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Icon */ \"./components/Icon/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Icon\", function() { return _Icon__WEBPACK_IMPORTED_MODULE_26__[\"default\"]; });\n\n/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Input */ \"./components/Input/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Input\", function() { return _Input__WEBPACK_IMPORTED_MODULE_27__[\"default\"]; });\n\n/* harmony import */ var _InputTag__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./InputTag */ \"./components/InputTag/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"InputTag\", function() { return _InputTag__WEBPACK_IMPORTED_MODULE_28__[\"default\"]; });\n\n/* harmony import */ var _InputNumber__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./InputNumber */ \"./components/InputNumber/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"InputNumber\", function() { return _InputNumber__WEBPACK_IMPORTED_MODULE_29__[\"default\"]; });\n\n/* harmony import */ var _VerificationCode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./VerificationCode */ \"./components/VerificationCode/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"VerificationCode\", function() { return _VerificationCode__WEBPACK_IMPORTED_MODULE_30__[\"default\"]; });\n\n/* harmony import */ var _Layout__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Layout */ \"./components/Layout/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Layout\", function() { return _Layout__WEBPACK_IMPORTED_MODULE_31__[\"default\"]; });\n\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Link */ \"./components/Link/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Link\", function() { return _Link__WEBPACK_IMPORTED_MODULE_32__[\"default\"]; });\n\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./List */ \"./components/List/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"List\", function() { return _List__WEBPACK_IMPORTED_MODULE_33__[\"default\"]; });\n\n/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./Message */ \"./components/Message/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Message\", function() { return _Message__WEBPACK_IMPORTED_MODULE_34__[\"default\"]; });\n\n/* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./Menu */ \"./components/Menu/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Menu\", function() { return _Menu__WEBPACK_IMPORTED_MODULE_35__[\"default\"]; });\n\n/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Modal */ \"./components/Modal/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Modal\", function() { return _Modal__WEBPACK_IMPORTED_MODULE_36__[\"default\"]; });\n\n/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Notification */ \"./components/Notification/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Notification\", function() { return _Notification__WEBPACK_IMPORTED_MODULE_37__[\"default\"]; });\n\n/* harmony import */ var _PageHeader__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./PageHeader */ \"./components/PageHeader/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PageHeader\", function() { return _PageHeader__WEBPACK_IMPORTED_MODULE_38__[\"default\"]; });\n\n/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./Pagination */ \"./components/Pagination/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pagination\", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_39__[\"default\"]; });\n\n/* harmony import */ var _Popconfirm__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Popconfirm */ \"./components/Popconfirm/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Popconfirm\", function() { return _Popconfirm__WEBPACK_IMPORTED_MODULE_40__[\"default\"]; });\n\n/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Popover */ \"./components/Popover/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Popover\", function() { return _Popover__WEBPACK_IMPORTED_MODULE_41__[\"default\"]; });\n\n/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./Portal */ \"./components/Portal/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Portal\", function() { return _Portal__WEBPACK_IMPORTED_MODULE_42__[\"default\"]; });\n\n/* harmony import */ var _Progress__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./Progress */ \"./components/Progress/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Progress\", function() { return _Progress__WEBPACK_IMPORTED_MODULE_43__[\"default\"]; });\n\n/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./Radio */ \"./components/Radio/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Radio\", function() { return _Radio__WEBPACK_IMPORTED_MODULE_44__[\"default\"]; });\n\n/* harmony import */ var _Rate__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./Rate */ \"./components/Rate/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Rate\", function() { return _Rate__WEBPACK_IMPORTED_MODULE_45__[\"default\"]; });\n\n/* harmony import */ var _ResizeBox__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ResizeBox */ \"./components/ResizeBox/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ResizeBox\", function() { return _ResizeBox__WEBPACK_IMPORTED_MODULE_46__[\"default\"]; });\n\n/* harmony import */ var _Result__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./Result */ \"./components/Result/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Result\", function() { return _Result__WEBPACK_IMPORTED_MODULE_47__[\"default\"]; });\n\n/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./Select */ \"./components/Select/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Select\", function() { return _Select__WEBPACK_IMPORTED_MODULE_48__[\"default\"]; });\n\n/* harmony import */ var _Skeleton__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./Skeleton */ \"./components/Skeleton/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Skeleton\", function() { return _Skeleton__WEBPACK_IMPORTED_MODULE_49__[\"default\"]; });\n\n/* harmony import */ var _Slider__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./Slider */ \"./components/Slider/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Slider\", function() { return _Slider__WEBPACK_IMPORTED_MODULE_50__[\"default\"]; });\n\n/* harmony import */ var _Space__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./Space */ \"./components/Space/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Space\", function() { return _Space__WEBPACK_IMPORTED_MODULE_51__[\"default\"]; });\n\n/* harmony import */ var _Spin__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./Spin */ \"./components/Spin/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Spin\", function() { return _Spin__WEBPACK_IMPORTED_MODULE_52__[\"default\"]; });\n\n/* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./Statistic */ \"./components/Statistic/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Statistic\", function() { return _Statistic__WEBPACK_IMPORTED_MODULE_53__[\"default\"]; });\n\n/* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./Steps */ \"./components/Steps/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Steps\", function() { return _Steps__WEBPACK_IMPORTED_MODULE_54__[\"default\"]; });\n\n/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./Switch */ \"./components/Switch/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Switch\", function() { return _Switch__WEBPACK_IMPORTED_MODULE_55__[\"default\"]; });\n\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./Table */ \"./components/Table/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Table\", function() { return _Table__WEBPACK_IMPORTED_MODULE_56__[\"default\"]; });\n\n/* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./Tabs */ \"./components/Tabs/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tabs\", function() { return _Tabs__WEBPACK_IMPORTED_MODULE_57__[\"default\"]; });\n\n/* harmony import */ var _Tag__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./Tag */ \"./components/Tag/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tag\", function() { return _Tag__WEBPACK_IMPORTED_MODULE_58__[\"default\"]; });\n\n/* harmony import */ var _Timeline__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./Timeline */ \"./components/Timeline/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Timeline\", function() { return _Timeline__WEBPACK_IMPORTED_MODULE_59__[\"default\"]; });\n\n/* harmony import */ var _TimePicker__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./TimePicker */ \"./components/TimePicker/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TimePicker\", function() { return _TimePicker__WEBPACK_IMPORTED_MODULE_60__[\"default\"]; });\n\n/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./Tooltip */ \"./components/Tooltip/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tooltip\", function() { return _Tooltip__WEBPACK_IMPORTED_MODULE_61__[\"default\"]; });\n\n/* harmony import */ var _Transfer__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./Transfer */ \"./components/Transfer/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Transfer\", function() { return _Transfer__WEBPACK_IMPORTED_MODULE_62__[\"default\"]; });\n\n/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./Tree */ \"./components/Tree/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tree\", function() { return _Tree__WEBPACK_IMPORTED_MODULE_63__[\"default\"]; });\n\n/* harmony import */ var _TreeSelect__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./TreeSelect */ \"./components/TreeSelect/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TreeSelect\", function() { return _TreeSelect__WEBPACK_IMPORTED_MODULE_64__[\"default\"]; });\n\n/* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./Trigger */ \"./components/Trigger/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Trigger\", function() { return _Trigger__WEBPACK_IMPORTED_MODULE_65__[\"default\"]; });\n\n/* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./Typography */ \"./components/Typography/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Typography\", function() { return _Typography__WEBPACK_IMPORTED_MODULE_66__[\"default\"]; });\n\n/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./Upload */ \"./components/Upload/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Upload\", function() { return _Upload__WEBPACK_IMPORTED_MODULE_67__[\"default\"]; });\n\n/* harmony import */ var _Mentions__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./Mentions */ \"./components/Mentions/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Mentions\", function() { return _Mentions__WEBPACK_IMPORTED_MODULE_68__[\"default\"]; });\n\n/* harmony import */ var _Watermark__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./Watermark */ \"./components/Watermark/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Watermark\", function() { return _Watermark__WEBPACK_IMPORTED_MODULE_69__[\"default\"]; });\n\n/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./Image */ \"./components/Image/index.tsx\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Image\", function() { return _Image__WEBPACK_IMPORTED_MODULE_70__[\"default\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar version = '1.6.0';\n\n//# sourceURL=webpack://%5Bname%5D/./components/index.tsx?");
|
|
4687
4687
|
|
|
4688
4688
|
/***/ }),
|
|
4689
4689
|
|
|
@@ -7968,6 +7968,18 @@ eval("/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disa
|
|
|
7968
7968
|
|
|
7969
7969
|
/***/ }),
|
|
7970
7970
|
|
|
7971
|
+
/***/ "./node_modules/pinyin-match/es/main.js":
|
|
7972
|
+
/*!**********************************************!*\
|
|
7973
|
+
!*** ./node_modules/pinyin-match/es/main.js ***!
|
|
7974
|
+
\**********************************************/
|
|
7975
|
+
/*! exports provided: default */
|
|
7976
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7977
|
+
|
|
7978
|
+
"use strict";
|
|
7979
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return l; });\nfunction n(n,a,u){return(a=function(n){var a=function(n,a){if(\"object\"!=typeof n||!n)return n;var u=n[Symbol.toPrimitive];if(void 0!==u){var i=u.call(n,a||\"default\");if(\"object\"!=typeof i)return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===a?String:Number)(n)}(n,\"string\");return\"symbol\"==typeof a?a:a+\"\"}(a))in n?Object.defineProperty(n,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[a]=u,n}var a=[],u={},i={};function e(n){for(var a=[],u=n.length,i=[],e=0;u>=e;e++)i.push(!0);return o(0,n,[],a,i),a}function o(n,u,i,e,r){var g=u.length;if(n!==g)for(var h=function(){var g=u.substring(n,t+1),h=!1;if(a.some((function(n){return 0===n.indexOf(g)}))&&!u[t+1]&&r[t+1]){if(1===g.length)i.push(g);else{var l=[];a.forEach((function(n){0===n.indexOf(g)&&l.push(n)})),i.push(l)}h=!0}else-1!==a.indexOf(g)&&r[t+1]&&(i.push(g),h=!0);if(h){var c=e.length;o(t+1,u,i,e,r),e.length===c&&(r[t+1]=!1),i.pop()}},t=n;g>t;t++)h();else e.push(i.join(\" \"))}function r(n,a,u,i){if(!n)return!1;var e=n.split(\" \");return e.forEach((function(n){n.length>0&&i&&e.push(n.charAt(0))})),u?e.some((function(n){return 0===n.indexOf(a)})):-1!==e.indexOf(a)}var g=[\"lü\",\"lüe\",\"nü\",\"nüe\"];function h(a,o){if(!a||!o)return!1;a=a.toLowerCase().normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\"),o=function(n){var a=n.replace(/\\s+/g,\"\").toLowerCase();return g.some((function(n){return a.includes(n)}))&&(a=a.replace(\"ü\",\"v\")),a.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\")}(o);var r=a.indexOf(o);if(-1!==r)return[r,r+o.length-1];var h=t(a.split(\"\"),[o.split(\"\")],o);if(h)return h;var l,c,f=function(n){for(var a=[],i=0,e=n.length;e>i;i++){var o=n.charAt(i);a.push(u[o]||o)}return a}(a);return t(f,i[o]||(c=[],e(l=o).forEach((function(n){var a=n.split(\" \"),u=a.length-1;a[u].indexOf(\",\")?a[u].split(\",\").forEach((function(n){a.splice(u,1,n),c.push(JSON.parse(JSON.stringify(a)))})):c.push(a)})),0!==c.length&&c[0].length===l.length||c.push(l.split(\"\")),i=n({},l,c),c),o)}function t(n,a,u){for(var i=0;n.length>i;i++)for(var e=0;a.length>e;e++){var o=a[e],g=o.length,h=g===u.length,t=!0,l=0,c=0,f=0;if(n.length>=g){for(;o.length>l;l++)if(0===l&&\" \"===n[i+l+c])c+=1,l-=1;else if(\" \"===n[i+l+f])f+=1,l-=1;else if(!r(n[i+l+f],o[l],!n[i+l+1]||!o[l+1],h)){t=!1;break}if(t)return[i+c,f+i+l-1]}}return!1}var l={match:function(n){var i={},e=[\"ju\",\"jun\",\"jue\",\"juan\",\"qu\",\"qun\",\"que\",\"xuan\",\"xu\",\"xue\",\"yu\",\"yuan\",\"yue\",\"yun\",\"nve\",\"lve\"],o=[\"lv\",\"lve\",\"nv\",\"nve\"];return Object.keys(n).forEach((function(u){if(i[u]=n[u],a.push(u),e.includes(u)){var r=-1!==(g=u).indexOf(\"u\")?g.replace(\"u\",\"v\"):g.replace(\"v\",\"u\");i[r]=n[u],a.push(r)}var g;if(o.includes(u)){var h=u.replace(\"v\",\"ü\");i[h]=n[u],a.push(h)}})),u=function(n){var a={};for(var u in n)for(var i=n[u],e=0,o=i.length;o>e;e++)a[i[e]]=a[i[e]]?a[i[e]]+\" \"+u:u;return a}(i),h}({a:\"阿啊呵腌嗄吖锕\",e:\"额阿俄恶鹅遏鄂厄饿峨扼娥鳄哦蛾噩愕讹锷垩婀鹗萼谔莪腭锇颚呃阏屙苊轭\",ai:\"爱埃艾碍癌哀挨矮隘蔼唉皑哎霭捱暧嫒嗳瑷嗌锿砹\",ei:\"诶\",xi:\"系西席息希习吸喜细析戏洗悉锡溪惜稀袭夕洒晰昔牺腊烯熙媳栖膝隙犀蹊硒兮熄曦禧嬉玺奚汐徙羲铣淅嘻歙熹矽蟋郗唏皙隰樨浠忾蜥檄郄翕阋鳃舾屣葸螅咭粞觋欷僖醯鼷裼穸饩舄禊诶菥蓰\",yi:\"祎一以已意议义益亿易医艺食依移衣异伊仪宜射遗疑毅谊亦疫役忆抑尾乙译翼蛇溢椅沂泄逸蚁夷邑怡绎彝裔姨熠贻矣屹颐倚诣胰奕翌疙弈轶蛾驿壹猗臆弋铱旖漪迤佚翊诒怿痍懿饴峄揖眙镒仡黟肄咿翳挹缢呓刈咦嶷羿钇殪荑薏蜴镱噫癔苡悒嗌瘗衤佾埸圯舣酏劓\",an:\"安案按岸暗鞍氨俺胺铵谙庵黯鹌桉埯犴揞厂广\",han:\"厂汉韩含旱寒汗涵函喊憾罕焊翰邯撼瀚憨捍酣悍鼾邗颔蚶晗菡旰顸犴焓撖\",ang:\"昂仰盎肮\",ao:\"奥澳傲熬凹鳌敖遨鏖袄坳翱嗷拗懊岙螯骜獒鏊艹媪廒聱\",wa:\"瓦挖娃洼袜蛙凹哇佤娲呙腽\",yu:\"于与育余预域予遇奥语誉玉鱼雨渔裕愈娱欲吁舆宇羽逾豫郁寓吾狱喻御浴愉禹俞邪榆愚渝尉淤虞屿峪粥驭瑜禺毓钰隅芋熨瘀迂煜昱汩於臾盂聿竽萸妪腴圄谕觎揄龉谀俣馀庾妤瘐鬻欤鹬阈嵛雩鹆圉蜮伛纡窬窳饫蓣狳肀舁蝓燠\",niu:\"牛纽扭钮拗妞忸狃\",o:\"哦噢喔\",ba:\"把八巴拔伯吧坝爸霸罢芭跋扒叭靶疤笆耙鲅粑岜灞钯捌菝魃茇\",pa:\"怕帕爬扒趴琶啪葩耙杷钯筢\",pi:\"被批副否皮坏辟啤匹披疲罢僻毗坯脾譬劈媲屁琵邳裨痞癖陂丕枇噼霹吡纰砒铍淠郫埤濞睥芘蚍圮鼙罴蜱疋貔仳庀擗甓陴\",bi:\"比必币笔毕秘避闭佛辟壁弊彼逼碧鼻臂蔽拂泌璧庇痹毙弼匕鄙陛裨贲敝蓖吡篦纰俾铋毖筚荸薜婢哔跸濞秕荜愎睥妣芘箅髀畀滗狴萆嬖襞舭\",bai:\"百白败摆伯拜柏佰掰呗擘捭稗\",bo:\"波博播勃拨薄佛伯玻搏柏泊舶剥渤卜驳簿脖膊簸菠礴箔铂亳钵帛擘饽跛钹趵檗啵鹁擗踣\",bei:\"北被备倍背杯勃贝辈悲碑臂卑悖惫蓓陂钡狈呗焙碚褙庳鞴孛鹎邶鐾\",ban:\"办版半班般板颁伴搬斑扮拌扳瓣坂阪绊钣瘢舨癍\",pan:\"判盘番潘攀盼拚畔胖叛拌蹒磐爿蟠泮袢襻丬\",bin:\"份宾频滨斌彬濒殡缤鬓槟摈膑玢镔豳髌傧\",bang:\"帮邦彭旁榜棒膀镑绑傍磅蚌谤梆浜蒡\",pang:\"旁庞乓磅螃彷滂逄耪胖\",beng:\"泵崩蚌蹦迸绷甭嘣甏堋\",bao:\"报保包宝暴胞薄爆炮饱抱堡剥鲍曝葆瀑豹刨褒雹孢苞煲褓趵鸨龅勹\",bu:\"不部步布补捕堡埔卜埠簿哺怖钚卟瓿逋晡醭钸\",pu:\"普暴铺浦朴堡葡谱埔扑仆蒲曝瀑溥莆圃璞濮菩蹼匍噗氆攵镨攴镤\",mian:\"面棉免绵缅勉眠冕娩腼渑湎沔黾宀眄\",po:\"破繁坡迫颇朴泊婆泼魄粕鄱珀陂叵笸泺皤钋钷\",fan:\"反范犯繁饭泛翻凡返番贩烦拚帆樊藩矾梵蕃钒幡畈蘩蹯燔\",fu:\"府服副负富复福夫妇幅付扶父符附腐赴佛浮覆辅傅伏抚赋辐腹弗肤阜袱缚甫氟斧孚敷俯拂俘咐腑孵芙涪釜脯茯馥宓绂讣呋罘麸蝠匐芾蜉跗凫滏蝮驸绋蚨砩桴赙菔呒趺苻拊阝鲋怫稃郛莩幞祓艴黻黼鳆\",ben:\"本奔苯笨夯贲锛畚坌\",feng:\"风丰封峰奉凤锋冯逢缝蜂枫疯讽烽俸沣酆砜葑唪\",bian:\"变便边编遍辩鞭辨贬匾扁卞汴辫砭苄蝙鳊弁窆笾煸褊碥忭缏\",pian:\"便片篇偏骗翩扁骈胼蹁谝犏缏\",zhen:\"镇真针圳振震珍阵诊填侦臻贞枕桢赈祯帧甄斟缜箴疹砧榛鸩轸稹溱蓁胗椹朕畛浈\",biao:\"表标彪镖裱飚膘飙镳婊骠飑杓髟鳔灬瘭\",piao:\"票朴漂飘嫖瓢剽缥殍瞟骠嘌莩螵\",huo:\"和活或货获火伙惑霍祸豁嚯藿锪蠖钬耠镬夥灬劐攉\",bie:\"别鳖憋瘪蹩\",min:\"民敏闽闵皿泯岷悯珉抿黾缗玟愍苠鳘\",fen:\"分份纷奋粉氛芬愤粪坟汾焚酚吩忿棼玢鼢瀵偾鲼\",bing:\"并病兵冰屏饼炳秉丙摒柄槟禀枋邴冫\",geng:\"更耕颈庚耿梗埂羹哽赓绠鲠\",fang:\"方放房防访纺芳仿坊妨肪邡舫彷枋鲂匚钫\",xian:\"现先县见线限显险献鲜洗宪纤陷闲贤仙衔掀咸嫌掺羡弦腺痫娴舷馅酰铣冼涎暹籼锨苋蚬跹岘藓燹鹇氙莶霰跣猃彡祆筅\",fou:\"不否缶\",ca:\"拆擦嚓礤\",cha:\"查察差茶插叉刹茬楂岔诧碴嚓喳姹杈汊衩搽槎镲苴檫馇锸猹\",cai:\"才采财材菜彩裁蔡猜踩睬\",can:\"参残餐灿惨蚕掺璨惭粲孱骖黪\",shen:\"信深参身神什审申甚沈伸慎渗肾绅莘呻婶娠砷蜃哂椹葚吲糁渖诜谂矧胂\",cen:\"参岑涔\",san:\"三参散伞叁糁馓毵\",cang:\"藏仓苍沧舱臧伧\",zang:\"藏脏葬赃臧奘驵\",chen:\"称陈沈沉晨琛臣尘辰衬趁忱郴宸谌碜嗔抻榇伧谶龀肜\",cao:\"草操曹槽糙嘈漕螬艚屮\",ce:\"策测册侧厕栅恻\",ze:\"责则泽择侧咋啧仄箦赜笮舴昃迮帻\",zhai:\"债择齐宅寨侧摘窄斋祭翟砦瘵哜\",dao:\"到道导岛倒刀盗稻蹈悼捣叨祷焘氘纛刂帱忉\",ceng:\"层曾蹭噌\",zha:\"查扎炸诈闸渣咋乍榨楂札栅眨咤柞喳喋铡蚱吒怍砟揸痄哳齄\",chai:\"差拆柴钗豺侪虿瘥\",ci:\"次此差词辞刺瓷磁兹慈茨赐祠伺雌疵鹚糍呲粢\",zi:\"资自子字齐咨滋仔姿紫兹孜淄籽梓鲻渍姊吱秭恣甾孳訾滓锱辎趑龇赀眦缁呲笫谘嵫髭茈粢觜耔\",cuo:\"措错磋挫搓撮蹉锉厝嵯痤矬瘥脞鹾\",chan:\"产单阐崭缠掺禅颤铲蝉搀潺蟾馋忏婵孱觇廛谄谗澶骣羼躔蒇冁\",shan:\"山单善陕闪衫擅汕扇掺珊禅删膳缮赡鄯栅煽姗跚鳝嬗潸讪舢苫疝掸膻钐剡蟮芟埏彡骟\",zhan:\"展战占站崭粘湛沾瞻颤詹斩盏辗绽毡栈蘸旃谵搌\",xin:\"新心信辛欣薪馨鑫芯锌忻莘昕衅歆囟忄镡\",lian:\"联连练廉炼脸莲恋链帘怜涟敛琏镰濂楝鲢殓潋裢裣臁奁莶蠊蔹\",chang:\"场长厂常偿昌唱畅倡尝肠敞倘猖娼淌裳徜昶怅嫦菖鲳阊伥苌氅惝鬯\",zhang:\"长张章障涨掌帐胀彰丈仗漳樟账杖璋嶂仉瘴蟑獐幛鄣嫜\",chao:\"超朝潮炒钞抄巢吵剿绰嘲晁焯耖怊\",zhao:\"着照招找召朝赵兆昭肇罩钊沼嘲爪诏濯啁棹笊\",zhou:\"调州周洲舟骤轴昼宙粥皱肘咒帚胄绉纣妯啁诌繇碡籀酎荮\",che:\"车彻撤尺扯澈掣坼砗屮\",ju:\"车局据具举且居剧巨聚渠距句拒俱柜菊拘炬桔惧矩鞠驹锯踞咀瞿枸掬沮莒橘飓疽钜趄踽遽琚龃椐苣裾榘狙倨榉苴讵雎锔窭鞫犋屦醵\",cheng:\"成程城承称盛抢乘诚呈净惩撑澄秤橙骋逞瞠丞晟铛埕塍蛏柽铖酲裎枨\",rong:\"容荣融绒溶蓉熔戎榕茸冗嵘肜狨蝾\",sheng:\"生声升胜盛乘圣剩牲甸省绳笙甥嵊晟渑眚\",deng:\"等登邓灯澄凳瞪蹬噔磴嶝镫簦戥\",zhi:\"制之治质职只志至指织支值知识直致执置止植纸拓智殖秩旨址滞氏枝芝脂帜汁肢挚稚酯掷峙炙栉侄芷窒咫吱趾痔蜘郅桎雉祉郦陟痣蛭帙枳踯徵胝栀贽祗豸鸷摭轵卮轾彘觯絷跖埴夂黹忮骘膣踬\",zheng:\"政正证争整征郑丁症挣蒸睁铮筝拯峥怔诤狰徵钲\",tang:\"堂唐糖汤塘躺趟倘棠烫淌膛搪镗傥螳溏帑羰樘醣螗耥铴瑭\",chi:\"持吃池迟赤驰尺斥齿翅匙痴耻炽侈弛叱啻坻眙嗤墀哧茌豉敕笞饬踟蚩柢媸魑篪褫彳鸱螭瘛眵傺\",shi:\"是时实事市十使世施式势视识师史示石食始士失适试什泽室似诗饰殖释驶氏硕逝湿蚀狮誓拾尸匙仕柿矢峙侍噬嗜栅拭嘘屎恃轼虱耆舐莳铈谥炻豕鲥饣螫酾筮埘弑礻蓍鲺贳\",qi:\"企其起期气七器汽奇齐启旗棋妻弃揭枝歧欺骑契迄亟漆戚岂稽岐琦栖缉琪泣乞砌祁崎绮祺祈凄淇杞脐麒圻憩芪伎俟畦耆葺沏萋骐鳍綦讫蕲屺颀亓碛柒啐汔綮萁嘁蛴槭欹芑桤丌蜞\",chuai:\"揣踹啜搋膪\",tuo:\"托脱拓拖妥驼陀沱鸵驮唾椭坨佗砣跎庹柁橐乇铊沲酡鼍箨柝\",duo:\"多度夺朵躲铎隋咄堕舵垛惰哆踱跺掇剁柁缍沲裰哚隳\",xue:\"学血雪削薛穴靴谑噱鳕踅泶彐\",chong:\"重种充冲涌崇虫宠忡憧舂茺铳艟\",chou:\"筹抽绸酬愁丑臭仇畴稠瞅踌惆俦瘳雠帱\",qiu:\"求球秋丘邱仇酋裘龟囚遒鳅虬蚯泅楸湫犰逑巯艽俅蝤赇鼽糗\",xiu:\"修秀休宿袖绣臭朽锈羞嗅岫溴庥馐咻髹鸺貅\",chu:\"出处础初助除储畜触楚厨雏矗橱锄滁躇怵绌搐刍蜍黜杵蹰亍樗憷楮\",tuan:\"团揣湍疃抟彖\",zhui:\"追坠缀揣椎锥赘惴隹骓缒\",chuan:\"传川船穿串喘椽舛钏遄氚巛舡\",zhuan:\"专转传赚砖撰篆馔啭颛\",yuan:\"元员院原源远愿园援圆缘袁怨渊苑宛冤媛猿垣沅塬垸鸳辕鸢瑗圜爰芫鼋橼螈眢箢掾\",cuan:\"窜攒篡蹿撺爨汆镩\",chuang:\"创床窗闯幢疮怆\",zhuang:\"装状庄壮撞妆幢桩奘僮戆\",chui:\"吹垂锤炊椎陲槌捶棰\",chun:\"春纯醇淳唇椿蠢鹑朐莼肫蝽\",zhun:\"准屯淳谆肫窀\",cu:\"促趋趣粗簇醋卒蹴猝蹙蔟殂徂\",dun:\"吨顿盾敦蹲墩囤沌钝炖盹遁趸砘礅\",qu:\"区去取曲趋渠趣驱屈躯衢娶祛瞿岖龋觑朐蛐癯蛆苣阒诎劬蕖蘧氍黢蠼璩麴鸲磲\",xu:\"需许续须序徐休蓄畜虚吁绪叙旭邪恤墟栩絮圩婿戌胥嘘浒煦酗诩朐盱蓿溆洫顼勖糈砉醑\",chuo:\"辍绰戳淖啜龊踔辶\",zu:\"组族足祖租阻卒俎诅镞菹\",ji:\"济机其技基记计系期际及集级几给积极己纪即继击既激绩急奇吉季齐疾迹鸡剂辑籍寄挤圾冀亟寂暨脊跻肌稽忌饥祭缉棘矶汲畸姬藉瘠骥羁妓讥稷蓟悸嫉岌叽伎鲫诘楫荠戟箕霁嵇觊麂畿玑笈犄芨唧屐髻戢佶偈笄跽蒺乩咭赍嵴虮掎齑殛鲚剞洎丌墼蕺彐芰哜\",cong:\"从丛匆聪葱囱琮淙枞骢苁璁\",zong:\"总从综宗纵踪棕粽鬃偬枞腙\",cou:\"凑辏腠楱\",cui:\"衰催崔脆翠萃粹摧璀瘁悴淬啐隹毳榱\",wei:\"为位委未维卫围违威伟危味微唯谓伪慰尾魏韦胃畏帷喂巍萎蔚纬潍尉渭惟薇苇炜圩娓诿玮崴桅偎逶倭猥囗葳隗痿猬涠嵬韪煨艉隹帏闱洧沩隈鲔軎\",cun:\"村存寸忖皴\",zuo:\"作做座左坐昨佐琢撮祚柞唑嘬酢怍笮阼胙\",zuan:\"钻纂攥缵躜\",da:\"大达打答搭沓瘩惮嗒哒耷鞑靼褡笪怛妲\",dai:\"大代带待贷毒戴袋歹呆隶逮岱傣棣怠殆黛甙埭诒绐玳呔迨\",tai:\"台太态泰抬胎汰钛苔薹肽跆邰鲐酞骀炱\",ta:\"他它她拓塔踏塌榻沓漯獭嗒挞蹋趿遢铊鳎溻闼\",dan:\"但单石担丹胆旦弹蛋淡诞氮郸耽殚惮儋眈疸澹掸膻啖箪聃萏瘅赕\",lu:\"路六陆录绿露鲁卢炉鹿禄赂芦庐碌麓颅泸卤潞鹭辘虏璐漉噜戮鲈掳橹轳逯渌蓼撸鸬栌氇胪镥簏舻辂垆\",tan:\"谈探坦摊弹炭坛滩贪叹谭潭碳毯瘫檀痰袒坍覃忐昙郯澹钽锬\",ren:\"人任认仁忍韧刃纫饪妊荏稔壬仞轫亻衽\",jie:\"家结解价界接节她届介阶街借杰洁截姐揭捷劫戒皆竭桔诫楷秸睫藉拮芥诘碣嗟颉蚧孑婕疖桀讦疥偈羯袷哜喈卩鲒骱\",yan:\"研严验演言眼烟沿延盐炎燕岩宴艳颜殷彦掩淹阎衍铅雁咽厌焰堰砚唁焉晏檐蜒奄俨腌妍谚兖筵焱偃闫嫣鄢湮赝胭琰滟阉魇酽郾恹崦芫剡鼹菸餍埏谳讠厣罨\",dang:\"当党档荡挡宕砀铛裆凼菪谠\",tao:\"套讨跳陶涛逃桃萄淘掏滔韬叨洮啕绦饕鼗\",tiao:\"条调挑跳迢眺苕窕笤佻啁粜髫铫祧龆蜩鲦\",te:\"特忑忒铽慝\",de:\"的地得德底锝\",dei:\"得\",di:\"的地第提低底抵弟迪递帝敌堤蒂缔滴涤翟娣笛棣荻谛狄邸嘀砥坻诋嫡镝碲骶氐柢籴羝睇觌\",ti:\"体提题弟替梯踢惕剔蹄棣啼屉剃涕锑倜悌逖嚏荑醍绨鹈缇裼\",tui:\"推退弟腿褪颓蜕忒煺\",you:\"有由又优游油友右邮尤忧幼犹诱悠幽佑釉柚铀鱿囿酉攸黝莠猷蝣疣呦蚴莸莜铕宥繇卣牖鼬尢蚰侑\",dian:\"电点店典奠甸碘淀殿垫颠滇癫巅惦掂癜玷佃踮靛钿簟坫阽\",tian:\"天田添填甜甸恬腆佃舔钿阗忝殄畋栝掭\",zhu:\"主术住注助属逐宁著筑驻朱珠祝猪诸柱竹铸株瞩嘱贮煮烛苎褚蛛拄铢洙竺蛀渚伫杼侏澍诛茱箸炷躅翥潴邾槠舳橥丶瘃麈疰\",nian:\"年念酿辗碾廿捻撵拈蔫鲶埝鲇辇黏\",diao:\"调掉雕吊钓刁貂凋碉鲷叼铫铞\",yao:\"要么约药邀摇耀腰遥姚窑瑶咬尧钥谣肴夭侥吆疟妖幺杳舀窕窈曜鹞爻繇徭轺铫鳐崾珧\",die:\"跌叠蝶迭碟爹谍牒耋佚喋堞瓞鲽垤揲蹀\",she:\"设社摄涉射折舍蛇拾舌奢慑赦赊佘麝歙畲厍猞揲滠\",ye:\"业也夜叶射野液冶喝页爷耶邪咽椰烨掖拽曳晔谒腋噎揶靥邺铘揲\",xie:\"些解协写血叶谢械鞋胁斜携懈契卸谐泄蟹邪歇泻屑挟燮榭蝎撷偕亵楔颉缬邂鲑瀣勰榍薤绁渫廨獬躞\",zhe:\"喆这者着著浙折哲蔗遮辙辄柘锗褶蜇蛰鹧谪赭摺乇磔螫\",ding:\"定订顶丁鼎盯钉锭叮仃铤町酊啶碇腚疔玎耵\",diu:\"丢铥\",ting:\"听庭停厅廷挺亭艇婷汀铤烃霆町蜓葶梃莛\",dong:\"动东董冬洞懂冻栋侗咚峒氡恫胴硐垌鸫岽胨\",tong:\"同通统童痛铜桶桐筒彤侗佟潼捅酮砼瞳恸峒仝嗵僮垌茼\",zhong:\"中重种众终钟忠仲衷肿踵冢盅蚣忪锺舯螽夂\",dou:\"都斗读豆抖兜陡逗窦渎蚪痘蔸钭篼\",du:\"度都独督读毒渡杜堵赌睹肚镀渎笃竺嘟犊妒牍蠹椟黩芏髑\",duan:\"断段短端锻缎煅椴簖\",dui:\"对队追敦兑堆碓镦怼憝\",rui:\"瑞兑锐睿芮蕊蕤蚋枘\",yue:\"月说约越乐跃兑阅岳粤悦曰钥栎钺樾瀹龠哕刖\",tun:\"吞屯囤褪豚臀饨暾氽\",hui:\"会回挥汇惠辉恢徽绘毁慧灰贿卉悔秽溃荟晖彗讳诲珲堕诙蕙晦睢麾烩茴喙桧蛔洄浍虺恚蟪咴隳缋哕\",wu:\"务物无五武午吴舞伍污乌误亡恶屋晤悟吾雾芜梧勿巫侮坞毋诬呜钨邬捂鹜兀婺妩於戊鹉浯蜈唔骛仵焐芴鋈庑鼯牾怃圬忤痦迕杌寤阢\",ya:\"亚压雅牙押鸭呀轧涯崖邪芽哑讶鸦娅衙丫蚜碣垭伢氩桠琊揠吖睚痖疋迓岈砑\",he:\"和合河何核盖贺喝赫荷盒鹤吓呵苛禾菏壑褐涸阂阖劾诃颌嗬貉曷翮纥盍\",wo:\"我握窝沃卧挝涡斡渥幄蜗喔倭莴龌肟硪\",en:\"恩摁蒽\",n:\"嗯唔\",er:\"而二尔儿耳迩饵洱贰铒珥佴鸸鲕\",fa:\"发法罚乏伐阀筏砝垡珐\",quan:\"全权券泉圈拳劝犬铨痊诠荃醛蜷颧绻犭筌鬈悛辁畎\",fei:\"费非飞肥废菲肺啡沸匪斐蜚妃诽扉翡霏吠绯腓痱芾淝悱狒榧砩鲱篚镄\",pei:\"配培坏赔佩陪沛裴胚妃霈淠旆帔呸醅辔锫\",ping:\"平评凭瓶冯屏萍苹乒坪枰娉俜鲆\",fo:\"佛\",hu:\"和护户核湖互乎呼胡戏忽虎沪糊壶葫狐蝴弧瑚浒鹄琥扈唬滹惚祜囫斛笏芴醐猢怙唿戽槲觳煳鹕冱瓠虍岵鹱烀轷\",ga:\"夹咖嘎尬噶旮伽尕钆尜\",ge:\"个合各革格歌哥盖隔割阁戈葛鸽搁胳舸疙铬骼蛤咯圪镉颌仡硌嗝鬲膈纥袼搿塥哿虼\",ha:\"哈蛤铪\",xia:\"下夏峡厦辖霞夹虾狭吓侠暇遐瞎匣瑕唬呷黠硖罅狎瘕柙\",gai:\"改该盖概溉钙丐芥赅垓陔戤\",hai:\"海还害孩亥咳骸骇氦嗨胲醢\",gan:\"干感赶敢甘肝杆赣乾柑尴竿秆橄矸淦苷擀酐绀泔坩旰疳澉\",gang:\"港钢刚岗纲冈杠缸扛肛罡戆筻\",jiang:\"将强江港奖讲降疆蒋姜浆匠酱僵桨绛缰犟豇礓洚茳糨耩\",hang:\"行航杭巷夯吭桁沆绗颃\",gong:\"工公共供功红贡攻宫巩龚恭拱躬弓汞蚣珙觥肱廾\",hong:\"红宏洪轰虹鸿弘哄烘泓訇蕻闳讧荭黉薨\",guang:\"广光逛潢犷胱咣桄\",qiong:\"穷琼穹邛茕筇跫蛩銎\",gao:\"高告搞稿膏糕镐皋羔锆杲郜睾诰藁篙缟槁槔\",hao:\"好号毫豪耗浩郝皓昊皋蒿壕灏嚎濠蚝貉颢嗥薅嚆\",li:\"理力利立里李历例离励礼丽黎璃厉厘粒莉梨隶栗荔沥犁漓哩狸藜罹篱鲤砺吏澧俐骊溧砾莅锂笠蠡蛎痢雳俪傈醴栎郦俚枥喱逦娌鹂戾砬唳坜疠蜊黧猁鬲粝蓠呖跞疬缡鲡鳢嫠詈悝苈篥轹\",jia:\"家加价假佳架甲嘉贾驾嫁夹稼钾挟拮迦伽颊浃枷戛荚痂颉镓笳珈岬胛袈郏葭袷瘕铗跏蛱恝哿\",luo:\"啰落罗络洛逻螺锣骆萝裸漯烙摞骡咯箩珞捋荦硌雒椤镙跞瘰泺脶猡倮蠃\",ke:\"可科克客刻课颗渴壳柯棵呵坷恪苛咳磕珂稞瞌溘轲窠嗑疴蝌岢铪颏髁蚵缂氪骒钶锞\",qia:\"卡恰洽掐髂袷咭葜\",gei:\"给\",gen:\"根跟亘艮哏茛\",hen:\"很狠恨痕哏\",gou:\"构购够句沟狗钩拘勾苟垢枸篝佝媾诟岣彀缑笱鞲觏遘\",kou:\"口扣寇叩抠佝蔻芤眍筘\",gu:\"股古顾故固鼓骨估谷贾姑孤雇辜菇沽咕呱锢钴箍汩梏痼崮轱鸪牯蛊诂毂鹘菰罟嘏臌觚瞽蛄酤牿鲴\",pai:\"牌排派拍迫徘湃俳哌蒎\",gua:\"括挂瓜刮寡卦呱褂剐胍诖鸹栝呙\",tou:\"钭投头透偷愉骰亠\",guai:\"怪拐乖\",kuai:\"会快块筷脍蒯侩浍郐蒉狯哙\",guan:\"关管观馆官贯冠惯灌罐莞纶棺斡矜倌鹳鳏盥掼涫\",wan:\"万完晚湾玩碗顽挽弯蔓丸莞皖宛婉腕蜿惋烷琬畹豌剜纨绾脘菀芄箢\",ne:\"呢哪呐讷疒\",gui:\"规贵归轨桂柜圭鬼硅瑰跪龟匮闺诡癸鳜桧皈鲑刽晷傀眭妫炅庋簋刿宄匦\",jun:\"军均俊君峻菌竣钧骏龟浚隽郡筠皲麇捃\",jiong:\"窘炯迥炅冂扃\",jue:\"决绝角觉掘崛诀獗抉爵嚼倔厥蕨攫珏矍蹶谲镢鳜噱桷噘撅橛孓觖劂爝\",gun:\"滚棍辊衮磙鲧绲丨\",hun:\"婚混魂浑昏棍珲荤馄诨溷阍\",guo:\"国过果郭锅裹帼涡椁囗蝈虢聒埚掴猓崞蜾呙馘\",hei:\"黑嘿嗨\",kan:\"看刊勘堪坎砍侃嵌槛瞰阚龛戡凵莰\",heng:\"衡横恒亨哼珩桁蘅\",mo:\"万没么模末冒莫摩墨默磨摸漠脉膜魔沫陌抹寞蘑摹蓦馍茉嘿谟秣蟆貉嫫镆殁耱嬷麽瘼貊貘\",peng:\"鹏朋彭膨蓬碰苹棚捧亨烹篷澎抨硼怦砰嘭蟛堋\",hou:\"后候厚侯猴喉吼逅篌糇骺後鲎瘊堠\",hua:\"婳化华划话花画滑哗豁骅桦猾铧砉\",huai:\"怀坏淮徊槐踝\",huan:\"还环换欢患缓唤焕幻痪桓寰涣宦垸洹浣豢奂郇圜獾鲩鬟萑逭漶锾缳擐\",xun:\"讯训迅孙寻询循旬巡汛勋逊熏徇浚殉驯鲟薰荀浔洵峋埙巽郇醺恂荨窨蕈曛獯\",huang:\"黄荒煌皇凰慌晃潢谎惶簧璜恍幌湟蝗磺隍徨遑肓篁鳇蟥癀\",nai:\"能乃奶耐奈鼐萘氖柰佴艿\",luan:\"乱卵滦峦鸾栾銮挛孪脔娈\",qie:\"切且契窃茄砌锲怯伽惬妾趄挈郄箧慊\",jian:\"建间件见坚检健监减简艰践兼鉴键渐柬剑尖肩舰荐箭浅剪俭碱茧奸歼拣捡煎贱溅槛涧堑笺谏饯锏缄睑謇蹇腱菅翦戬毽笕犍硷鞯牮枧湔鲣囝裥踺搛缣鹣蒹谫僭戋趼楗\",nan:\"南难男楠喃囡赧腩囝蝻\",qian:\"前千钱签潜迁欠纤牵浅遣谦乾铅歉黔谴嵌倩钳茜虔堑钎骞阡掮钤扦芊犍荨仟芡悭缱佥愆褰凵肷岍搴箝慊椠\",qiang:\"强抢疆墙枪腔锵呛羌蔷襁羟跄樯戕嫱戗炝镪锖蜣\",xiang:\"向项相想乡象响香降像享箱羊祥湘详橡巷翔襄厢镶飨饷缃骧芗庠鲞葙蟓\",jiao:\"教交较校角觉叫脚缴胶轿郊焦骄浇椒礁佼蕉娇矫搅绞酵剿嚼饺窖跤蛟侥狡姣皎茭峤铰醮鲛湫徼鹪僬噍艽挢敫\",zhuo:\"着著缴桌卓捉琢灼浊酌拙茁涿镯淖啄濯焯倬擢斫棹诼浞禚\",qiao:\"桥乔侨巧悄敲俏壳雀瞧翘窍峭锹撬荞跷樵憔鞘橇峤诮谯愀鞒硗劁缲\",xiao:\"小效销消校晓笑肖削孝萧俏潇硝宵啸嚣霄淆哮筱逍姣箫骁枭哓绡蛸崤枵魈\",si:\"司四思斯食私死似丝饲寺肆撕泗伺嗣祀厮驷嘶锶俟巳蛳咝耜笥纟糸鸶缌澌姒汜厶兕\",kai:\"开凯慨岂楷恺揩锴铠忾垲剀锎蒈\",jin:\"进金今近仅紧尽津斤禁锦劲晋谨筋巾浸襟靳瑾烬缙钅矜觐堇馑荩噤廑妗槿赆衿卺\",qin:\"亲勤侵秦钦琴禽芹沁寝擒覃噙矜嗪揿溱芩衾廑锓吣檎螓\",jing:\"经京精境竞景警竟井惊径静劲敬净镜睛晶颈荆兢靖泾憬鲸茎腈菁胫阱旌粳靓痉箐儆迳婧肼刭弪獍\",ying:\"应营影英景迎映硬盈赢颖婴鹰荧莹樱瑛蝇萦莺颍膺缨瀛楹罂荥萤鹦滢蓥郢茔嘤璎嬴瘿媵撄潆\",jiu:\"就究九酒久救旧纠舅灸疚揪咎韭玖臼柩赳鸠鹫厩啾阄桕僦鬏\",zui:\"最罪嘴醉咀蕞觜\",juan:\"卷捐圈眷娟倦绢隽镌涓鹃鄄蠲狷锩桊\",suan:\"算酸蒜狻\",yun:\"员运云允孕蕴韵酝耘晕匀芸陨纭郧筠恽韫郓氲殒愠昀菀狁\",qun:\"群裙逡麇\",ka:\"卡喀咖咔咯佧胩\",kang:\"康抗扛慷炕亢糠伉钪闶\",keng:\"坑铿吭\",kao:\"考靠烤拷铐栲尻犒\",ken:\"肯垦恳啃龈裉\",yin:\"因引银印音饮阴隐姻殷淫尹荫吟瘾寅茵圻垠鄞湮蚓氤胤龈窨喑铟洇狺夤廴吲霪茚堙\",kong:\"空控孔恐倥崆箜\",ku:\"苦库哭酷裤枯窟挎骷堀绔刳喾\",kua:\"跨夸垮挎胯侉\",kui:\"亏奎愧魁馈溃匮葵窥盔逵睽馗聩喟夔篑岿喹揆隗傀暌跬蒉愦悝蝰\",kuan:\"款宽髋\",kuang:\"况矿框狂旷眶匡筐邝圹哐贶夼诳诓纩\",que:\"确却缺雀鹊阙瘸榷炔阕悫\",kun:\"困昆坤捆琨锟鲲醌髡悃阃\",kuo:\"扩括阔廓蛞\",la:\"拉落垃腊啦辣蜡喇剌旯砬邋瘌\",lai:\"来莱赖睐徕籁涞赉濑癞崃疠铼\",lan:\"兰览蓝篮栏岚烂滥缆揽澜拦懒榄斓婪阑褴罱啉谰镧漤\",lin:\"林临邻赁琳磷淋麟霖鳞凛拎遴蔺吝粼嶙躏廪檩啉辚膦瞵懔\",lang:\"浪朗郎廊狼琅榔螂阆锒莨啷蒗稂\",liang:\"量两粮良辆亮梁凉谅粱晾靓踉莨椋魉墚\",lao:\"老劳落络牢捞涝烙姥佬崂唠酪潦痨醪铑铹栳耢\",mu:\"目模木亩幕母牧莫穆姆墓慕牟牡募睦缪沐暮拇姥钼苜仫毪坶\",le:\"了乐勒肋叻鳓嘞仂泐\",lei:\"类累雷勒泪蕾垒磊擂镭肋羸耒儡嫘缧酹嘞诔檑\",sui:\"随岁虽碎尿隧遂髓穗绥隋邃睢祟濉燧谇眭荽\",lie:\"列烈劣裂猎冽咧趔洌鬣埒捩躐\",leng:\"冷愣棱楞塄\",ling:\"领令另零灵龄陵岭凌玲铃菱棱伶羚苓聆翎泠瓴囹绫呤棂蛉酃鲮柃\",lia:\"俩\",liao:\"了料疗辽廖聊寥缪僚燎缭撂撩嘹潦镣寮蓼獠钌尥鹩\",liu:\"流刘六留柳瘤硫溜碌浏榴琉馏遛鎏骝绺镏旒熘鹨锍\",lun:\"论轮伦仑纶沦抡囵\",lv:\"率律旅绿虑履吕铝屡氯缕滤侣驴榈闾偻褛捋膂稆\",lou:\"楼露漏陋娄搂篓喽镂偻瘘髅耧蝼嵝蒌\",mao:\"贸毛矛冒貌茂茅帽猫髦锚懋袤牦卯铆耄峁瑁蟊茆蝥旄泖昴瞀\",long:\"龙隆弄垄笼拢聋陇胧珑窿茏咙砻垅泷栊癃\",nong:\"农浓弄脓侬哝\",shuang:\"双爽霜孀泷\",shu:\"术书数属树输束述署熟殊蔬舒疏鼠淑叔暑枢墅俞曙抒竖蜀薯梳戍恕孰沭赎庶漱塾倏澍纾姝菽黍腧秫毹殳疋摅\",shuai:\"率衰帅摔甩蟀\",lve:\"略掠锊\",ma:\"么马吗摩麻码妈玛嘛骂抹蚂唛蟆犸杩\",me:\"么麽\",mai:\"买卖麦迈脉埋霾荬劢\",man:\"满慢曼漫埋蔓瞒蛮鳗馒幔谩螨熳缦镘颟墁鞔嫚\",mi:\"米密秘迷弥蜜谜觅靡泌眯麋猕谧咪糜宓汨醚嘧弭脒冖幂祢縻蘼芈糸敉\",men:\"们门闷瞒汶扪焖懑鞔钔\",mang:\"忙盲茫芒氓莽蟒邙硭漭\",meng:\"蒙盟梦猛孟萌氓朦锰檬勐懵蟒蜢虻黾蠓艨甍艋瞢礞\",miao:\"苗秒妙描庙瞄缪渺淼藐缈邈鹋杪眇喵\",mou:\"某谋牟缪眸哞鍪蛑侔厶\",miu:\"缪谬\",mei:\"美没每煤梅媒枚妹眉魅霉昧媚玫酶镁湄寐莓袂楣糜嵋镅浼猸鹛\",wen:\"文问闻稳温纹吻蚊雯紊瘟汶韫刎璺玟阌\",mie:\"灭蔑篾乜咩蠛\",ming:\"明名命鸣铭冥茗溟酩瞑螟暝\",na:\"内南那纳拿哪娜钠呐捺衲镎肭\",nei:\"内那哪馁\",nuo:\"难诺挪娜糯懦傩喏搦锘\",ruo:\"若弱偌箬\",nang:\"囊馕囔曩攮\",nao:\"脑闹恼挠瑙淖孬垴铙桡呶硇猱蛲\",ni:\"你尼呢泥疑拟逆倪妮腻匿霓溺旎昵坭铌鲵伲怩睨猊\",nen:\"嫩恁\",neng:\"能\",nin:\"您恁\",niao:\"鸟尿溺袅脲茑嬲\",nie:\"摄聂捏涅镍孽捻蘖啮蹑嗫臬镊颞乜陧\",niang:\"娘酿\",ning:\"宁凝拧泞柠咛狞佞聍甯\",nu:\"努怒奴弩驽帑孥胬\",nv:\"女钕衄恧\",ru:\"入如女乳儒辱汝茹褥孺濡蠕嚅缛溽铷洳薷襦颥蓐\",nuan:\"暖\",nve:\"虐疟\",re:\"热若惹喏\",ou:\"区欧偶殴呕禺藕讴鸥瓯沤耦怄\",pao:\"跑炮泡抛刨袍咆疱庖狍匏脬\",pou:\"剖掊裒\",pen:\"喷盆湓\",pie:\"瞥撇苤氕丿\",pin:\"品贫聘频拼拚颦姘嫔榀牝\",se:\"色塞瑟涩啬穑铯槭\",qing:\"情青清请亲轻庆倾顷卿晴氢擎氰罄磬蜻箐鲭綮苘黥圊檠謦\",zan:\"赞暂攒堑昝簪糌瓒錾趱拶\",shao:\"少绍召烧稍邵哨韶捎勺梢鞘芍苕劭艄筲杓潲\",sao:\"扫骚嫂梢缫搔瘙臊埽缲鳋\",sha:\"沙厦杀纱砂啥莎刹杉傻煞鲨霎嗄痧裟挲铩唼歃\",xuan:\"县选宣券旋悬轩喧玄绚渲璇炫萱癣漩眩暄煊铉楦泫谖痃碹揎镟儇\",ran:\"然染燃冉苒髯蚺\",rang:\"让壤攘嚷瓤穰禳\",rao:\"绕扰饶娆桡荛\",reng:\"仍扔\",ri:\"日\",rou:\"肉柔揉糅鞣蹂\",ruan:\"软阮朊\",run:\"润闰\",sa:\"萨洒撒飒卅仨脎\",suo:\"所些索缩锁莎梭琐嗦唆唢娑蓑羧挲桫嗍睃\",sai:\"思赛塞腮噻鳃\",shui:\"说水税谁睡氵\",sang:\"桑丧嗓搡颡磉\",sen:\"森\",seng:\"僧\",shai:\"筛晒\",shang:\"上商尚伤赏汤裳墒晌垧觞殇熵绱\",xing:\"行省星腥猩惺兴刑型形邢饧醒幸杏性姓陉荇荥擤悻硎\",shou:\"收手受首售授守寿瘦兽狩绶艏扌\",shuo:\"说数硕烁朔铄妁槊蒴搠\",su:\"速素苏诉缩塑肃俗宿粟溯酥夙愫簌稣僳谡涑蔌嗉觫\",shua:\"刷耍唰\",shuan:\"栓拴涮闩\",shun:\"顺瞬舜吮\",song:\"送松宋讼颂耸诵嵩淞怂悚崧凇忪竦菘\",sou:\"艘搜擞嗽嗖叟馊薮飕嗾溲锼螋瞍\",sun:\"损孙笋荪榫隼狲飧\",teng:\"腾疼藤滕誊\",tie:\"铁贴帖餮萜\",tu:\"土突图途徒涂吐屠兔秃凸荼钍菟堍酴\",wai:\"外歪崴\",wang:\"王望往网忘亡旺汪枉妄惘罔辋魍\",weng:\"翁嗡瓮蓊蕹\",zhua:\"抓挝爪\",yang:\"样养央阳洋扬杨羊详氧仰秧痒漾疡泱殃恙鸯徉佯怏炀烊鞅蛘\",xiong:\"雄兄熊胸凶匈汹芎\",yo:\"哟唷\",yong:\"用永拥勇涌泳庸俑踊佣咏雍甬镛臃邕蛹恿慵壅痈鳙墉饔喁\",za:\"杂扎咱砸咋匝咂拶\",zai:\"在再灾载栽仔宰哉崽甾\",zao:\"造早遭枣噪灶燥糟凿躁藻皂澡蚤唣\",zei:\"贼\",zen:\"怎谮\",zeng:\"增曾综赠憎锃甑罾缯\",zhei:\"这\",zou:\"走邹奏揍诹驺陬楱鄹鲰\",zhuai:\"转拽\",zun:\"尊遵鳟樽撙\",dia:\"嗲\",nou:\"耨\"})};\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/pinyin-match/es/main.js?");
|
|
7980
|
+
|
|
7981
|
+
/***/ }),
|
|
7982
|
+
|
|
7971
7983
|
/***/ "./node_modules/prop-types/checkPropTypes.js":
|
|
7972
7984
|
/*!***************************************************!*\
|
|
7973
7985
|
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
|
@@ -8131,7 +8143,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
8131
8143
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8132
8144
|
|
|
8133
8145
|
"use strict";
|
|
8134
|
-
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"DraggableCore\", {\n enumerable: true,\n get: function get() {\n return _DraggableCore.default;\n }\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\"));\n\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"react-dom\"));\n\nvar _clsx2 = _interopRequireDefault(__webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.m.js\"));\n\nvar _domFns = __webpack_require__(/*! ./utils/domFns */ \"./node_modules/react-draggable/build/cjs/utils/domFns.js\");\n\nvar _positionFns = __webpack_require__(/*! ./utils/positionFns */ \"./node_modules/react-draggable/build/cjs/utils/positionFns.js\");\n\nvar _shims = __webpack_require__(/*! ./utils/shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\n\nvar _DraggableCore = _interopRequireDefault(__webpack_require__(/*! ./DraggableCore */ \"./node_modules/react-draggable/build/cjs/DraggableCore.js\"));\n\nvar _log = _interopRequireDefault(__webpack_require__(/*! ./utils/log */ \"./node_modules/react-draggable/build/cjs/utils/log.js\"));\n\nvar _excluded = [\"axis\", \"bounds\", \"children\", \"defaultPosition\", \"defaultClassName\", \"defaultClassNameDragging\", \"defaultClassNameDragged\", \"position\", \"positionOffset\", \"scale\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//\n// Define <Draggable>\n//\nvar Draggable = /*#__PURE__*/function (_React$Component) {\n _inherits(Draggable, _React$Component);\n\n var _super = _createSuper(Draggable);\n\n function Draggable(props\n /*: DraggableProps*/\n ) {\n var _this;\n\n _classCallCheck(this, Draggable);\n\n _this = _super.call(this, props);\n\n _defineProperty(_assertThisInitialized(_this), \"onDragStart\", function (e, coreData) {\n (0, _log.default)('Draggable: onDragStart: %j', coreData); // Short-circuit if user's callback killed it.\n\n var shouldStart = _this.props.onStart(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData)); // Kills start event on core as well, so move handlers are never bound.\n\n\n if (shouldStart === false) return false;\n\n _this.setState({\n dragging: true,\n dragged: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDrag\", function (e, coreData) {\n if (!_this.state.dragging) return false;\n (0, _log.default)('Draggable: onDrag: %j', coreData);\n var uiData = (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData);\n var newState\n /*: $Shape<DraggableState>*/\n = {\n x: uiData.x,\n y: uiData.y\n }; // Keep within bounds.\n\n if (_this.props.bounds) {\n // Save original x and y.\n var x = newState.x,\n y = newState.y; // Add slack to the values used to calculate bound position. This will ensure that if\n // we start removing slack, the element won't react to it right away until it's been\n // completely removed.\n\n newState.x += _this.state.slackX;\n newState.y += _this.state.slackY; // Get bound position. This will ceil/floor the x and y within the boundaries.\n\n var _getBoundPosition = (0, _positionFns.getBoundPosition)(_assertThisInitialized(_this), newState.x, newState.y),\n _getBoundPosition2 = _slicedToArray(_getBoundPosition, 2),\n newStateX = _getBoundPosition2[0],\n newStateY = _getBoundPosition2[1];\n\n newState.x = newStateX;\n newState.y = newStateY; // Recalculate slack by noting how much was shaved by the boundPosition handler.\n\n newState.slackX = _this.state.slackX + (x - newState.x);\n newState.slackY = _this.state.slackY + (y - newState.y); // Update the event we fire to reflect what really happened after bounds took effect.\n\n uiData.x = newState.x;\n uiData.y = newState.y;\n uiData.deltaX = newState.x - _this.state.x;\n uiData.deltaY = newState.y - _this.state.y;\n } // Short-circuit if user's callback killed it.\n\n\n var shouldUpdate = _this.props.onDrag(e, uiData);\n\n if (shouldUpdate === false) return false;\n\n _this.setState(newState);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDragStop\", function (e, coreData) {\n if (!_this.state.dragging) return false; // Short-circuit if user's callback killed it.\n\n var shouldContinue = _this.props.onStop(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData));\n\n if (shouldContinue === false) return false;\n (0, _log.default)('Draggable: onDragStop: %j', coreData);\n var newState\n /*: $Shape<DraggableState>*/\n = {\n dragging: false,\n slackX: 0,\n slackY: 0\n }; // If this is a controlled component, the result of this operation will be to\n // revert back to the old position. We expect a handler on `onDragStop`, at the least.\n\n var controlled = Boolean(_this.props.position);\n\n if (controlled) {\n var _this$props$position = _this.props.position,\n x = _this$props$position.x,\n y = _this$props$position.y;\n newState.x = x;\n newState.y = y;\n }\n\n _this.setState(newState);\n });\n\n _this.state = {\n // Whether or not we are currently dragging.\n dragging: false,\n // Whether or not we have been dragged before.\n dragged: false,\n // Current transform x and y.\n x: props.position ? props.position.x : props.defaultPosition.x,\n y: props.position ? props.position.y : props.defaultPosition.y,\n prevPropsPosition: _objectSpread({}, props.position),\n // Used for compensating for out-of-bounds drags\n slackX: 0,\n slackY: 0,\n // Can only determine if SVG after mounting\n isElementSVG: false\n };\n\n if (props.position && !(props.onDrag || props.onStop)) {\n // eslint-disable-next-line no-console\n console.warn('A `position` was applied to this <Draggable>, without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');\n }\n\n return _this;\n }\n\n _createClass(Draggable, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // Check to see if the element passed is an instanceof SVGElement\n if (typeof window.SVGElement !== 'undefined' && this.findDOMNode() instanceof window.SVGElement) {\n this.setState({\n isElementSVG: true\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.setState({\n dragging: false\n }); // prevents invariant if unmounted while dragging\n } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find\n // the underlying DOM node ourselves. See the README for more information.\n\n }, {\n key: \"findDOMNode\",\n value: function findDOMNode()\n /*: ?HTMLElement*/\n {\n var _this$props$nodeRef$c, _this$props, _this$props$nodeRef;\n\n return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$nodeRef = _this$props.nodeRef) === null || _this$props$nodeRef === void 0 ? void 0 : _this$props$nodeRef.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);\n }\n }, {\n key: \"render\",\n value: function render()\n /*: ReactElement<any>*/\n {\n var _clsx;\n\n var _this$props2 = this.props,\n axis = _this$props2.axis,\n bounds = _this$props2.bounds,\n children = _this$props2.children,\n defaultPosition = _this$props2.defaultPosition,\n defaultClassName = _this$props2.defaultClassName,\n defaultClassNameDragging = _this$props2.defaultClassNameDragging,\n defaultClassNameDragged = _this$props2.defaultClassNameDragged,\n position = _this$props2.position,\n positionOffset = _this$props2.positionOffset,\n scale = _this$props2.scale,\n draggableCoreProps = _objectWithoutProperties(_this$props2, _excluded);\n\n var style = {};\n var svgTransform = null; // If this is controlled, we don't want to move it - unless it's dragging.\n\n var controlled = Boolean(position);\n var draggable = !controlled || this.state.dragging;\n var validPosition = position || defaultPosition;\n var transformOpts = {\n // Set left if horizontal drag is enabled\n x: (0, _positionFns.canDragX)(this) && draggable ? this.state.x : validPosition.x,\n // Set top if vertical drag is enabled\n y: (0, _positionFns.canDragY)(this) && draggable ? this.state.y : validPosition.y\n }; // If this element was SVG, we use the `transform` attribute.\n\n if (this.state.isElementSVG) {\n svgTransform = (0, _domFns.createSVGTransform)(transformOpts, positionOffset);\n } else {\n // Add a CSS transform to move the element around. This allows us to move the element around\n // without worrying about whether or not it is relatively or absolutely positioned.\n // If the item you are dragging already has a transform set, wrap it in a <span> so <Draggable>\n // has a clean slate.\n style = (0, _domFns.createCSSTransform)(transformOpts, positionOffset);\n } // Mark with class while dragging\n\n\n var className = (0, _clsx2.default)(children.props.className || '', defaultClassName, (_clsx = {}, _defineProperty(_clsx, defaultClassNameDragging, this.state.dragging), _defineProperty(_clsx, defaultClassNameDragged, this.state.dragged), _clsx)); // Reuse the child provided\n // This makes it flexible to use whatever element is wanted (div, ul, etc)\n\n return /*#__PURE__*/React.createElement(_DraggableCore.default, _extends({}, draggableCoreProps, {\n onStart: this.onDragStart,\n onDrag: this.onDrag,\n onStop: this.onDragStop\n }), /*#__PURE__*/React.cloneElement(React.Children.only(children), {\n className: className,\n style: _objectSpread(_objectSpread({}, children.props.style), style),\n transform: svgTransform\n }));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: // React 16.3+\n // Arity (props, state)\n function getDerivedStateFromProps(_ref, _ref2)\n /*: ?$Shape<DraggableState>*/\n {\n var position = _ref.position;\n var prevPropsPosition = _ref2.prevPropsPosition;\n\n // Set x/y if a new position is provided in props that is different than the previous.\n if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {\n (0, _log.default)('Draggable: getDerivedStateFromProps %j', {\n position: position,\n prevPropsPosition: prevPropsPosition\n });\n return {\n x: position.x,\n y: position.y,\n prevPropsPosition: _objectSpread({}, position)\n };\n }\n\n return null;\n }\n }]);\n\n return Draggable;\n}(React.Component);\n\nexports.default = Draggable;\n\n_defineProperty(Draggable, \"displayName\", 'Draggable');\n\n_defineProperty(Draggable, \"propTypes\", _objectSpread(_objectSpread({}, _DraggableCore.default.propTypes), {}, {\n /**\n * `axis` determines which axis the draggable can move.\n *\n * Note that all callbacks will still return data as normal. This only\n * controls flushing to the DOM.\n *\n * 'both' allows movement horizontally and vertically.\n * 'x' limits movement to horizontal axis.\n * 'y' limits movement to vertical axis.\n * 'none' limits all movement.\n *\n * Defaults to 'both'.\n */\n axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),\n\n /**\n * `bounds` determines the range of movement available to the element.\n * Available values are:\n *\n * 'parent' restricts movement within the Draggable's parent node.\n *\n * Alternatively, pass an object with the following properties, all of which are optional:\n *\n * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}\n *\n * All values are in px.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable bounds={{right: 300, bottom: 300}}>\n * <div>Content</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n bounds: _propTypes.default.oneOfType([_propTypes.default.shape({\n left: _propTypes.default.number,\n right: _propTypes.default.number,\n top: _propTypes.default.number,\n bottom: _propTypes.default.number\n }), _propTypes.default.string, _propTypes.default.oneOf([false])]),\n defaultClassName: _propTypes.default.string,\n defaultClassNameDragging: _propTypes.default.string,\n defaultClassNameDragged: _propTypes.default.string,\n\n /**\n * `defaultPosition` specifies the x and y that the dragged item should start at\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable defaultPosition={{x: 25, y: 25}}>\n * <div>I start with transformX: 25px and transformY: 25px;</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n defaultPosition: _propTypes.default.shape({\n x: _propTypes.default.number,\n y: _propTypes.default.number\n }),\n positionOffset: _propTypes.default.shape({\n x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),\n y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])\n }),\n\n /**\n * `position`, if present, defines the current position of the element.\n *\n * This is similar to how form elements in React work - if no `position` is supplied, the component\n * is uncontrolled.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable position={{x: 25, y: 25}}>\n * <div>I start with transformX: 25px and transformY: 25px;</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n position: _propTypes.default.shape({\n x: _propTypes.default.number,\n y: _propTypes.default.number\n }),\n\n /**\n * These properties should be defined on the child, not here.\n */\n className: _shims.dontSetMe,\n style: _shims.dontSetMe,\n transform: _shims.dontSetMe\n}));\n\n_defineProperty(Draggable, \"defaultProps\", _objectSpread(_objectSpread({}, _DraggableCore.default.defaultProps), {}, {\n axis: 'both',\n bounds: false,\n defaultClassName: 'react-draggable',\n defaultClassNameDragging: 'react-draggable-dragging',\n defaultClassNameDragged: 'react-draggable-dragged',\n defaultPosition: {\n x: 0,\n y: 0\n },\n scale: 1\n}));\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/Draggable.js?");
|
|
8146
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"DraggableCore\", {\n enumerable: true,\n get: function () {\n return _DraggableCore.default;\n }\n});\nexports.default = void 0;\nvar React = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\nvar _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ \"./node_modules/react-draggable/node_modules/prop-types/index.js\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"react-dom\"));\nvar _clsx = _interopRequireDefault(__webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.m.js\"));\nvar _domFns = __webpack_require__(/*! ./utils/domFns */ \"./node_modules/react-draggable/build/cjs/utils/domFns.js\");\nvar _positionFns = __webpack_require__(/*! ./utils/positionFns */ \"./node_modules/react-draggable/build/cjs/utils/positionFns.js\");\nvar _shims = __webpack_require__(/*! ./utils/shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\nvar _DraggableCore = _interopRequireDefault(__webpack_require__(/*! ./DraggableCore */ \"./node_modules/react-draggable/build/cjs/DraggableCore.js\"));\nvar _log = _interopRequireDefault(__webpack_require__(/*! ./utils/log */ \"./node_modules/react-draggable/build/cjs/utils/log.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /*:: import type {ControlPosition, PositionOffsetControlPosition, DraggableCoreProps, DraggableCoreDefaultProps} from './DraggableCore';*/\n/*:: import type {Bounds, DraggableEventHandler} from './utils/types';*/\n/*:: import type {Element as ReactElement} from 'react';*/\n/*:: type DraggableState = {\n dragging: boolean,\n dragged: boolean,\n x: number, y: number,\n slackX: number, slackY: number,\n isElementSVG: boolean,\n prevPropsPosition: ?ControlPosition,\n};*/\n/*:: export type DraggableDefaultProps = {\n ...DraggableCoreDefaultProps,\n axis: 'both' | 'x' | 'y' | 'none',\n bounds: Bounds | string | false,\n defaultClassName: string,\n defaultClassNameDragging: string,\n defaultClassNameDragged: string,\n defaultPosition: ControlPosition,\n scale: number,\n};*/\n/*:: export type DraggableProps = {\n ...DraggableCoreProps,\n ...DraggableDefaultProps,\n positionOffset: PositionOffsetControlPosition,\n position: ControlPosition,\n};*/\n//\n// Define <Draggable>\n//\nclass Draggable extends React.Component /*:: <DraggableProps, DraggableState>*/{\n // React 16.3+\n // Arity (props, state)\n static getDerivedStateFromProps(_ref /*:: */, _ref2 /*:: */) /*: ?Partial<DraggableState>*/{\n let {\n position\n } /*: DraggableProps*/ = _ref /*: DraggableProps*/;\n let {\n prevPropsPosition\n } /*: DraggableState*/ = _ref2 /*: DraggableState*/;\n // Set x/y if a new position is provided in props that is different than the previous.\n if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {\n (0, _log.default)('Draggable: getDerivedStateFromProps %j', {\n position,\n prevPropsPosition\n });\n return {\n x: position.x,\n y: position.y,\n prevPropsPosition: {\n ...position\n }\n };\n }\n return null;\n }\n constructor(props /*: DraggableProps*/) {\n super(props);\n _defineProperty(this, \"onDragStart\", (e, coreData) => {\n (0, _log.default)('Draggable: onDragStart: %j', coreData);\n\n // Short-circuit if user's callback killed it.\n const shouldStart = this.props.onStart(e, (0, _positionFns.createDraggableData)(this, coreData));\n // Kills start event on core as well, so move handlers are never bound.\n if (shouldStart === false) return false;\n this.setState({\n dragging: true,\n dragged: true\n });\n });\n _defineProperty(this, \"onDrag\", (e, coreData) => {\n if (!this.state.dragging) return false;\n (0, _log.default)('Draggable: onDrag: %j', coreData);\n const uiData = (0, _positionFns.createDraggableData)(this, coreData);\n const newState = {\n x: uiData.x,\n y: uiData.y,\n slackX: 0,\n slackY: 0\n };\n\n // Keep within bounds.\n if (this.props.bounds) {\n // Save original x and y.\n const {\n x,\n y\n } = newState;\n\n // Add slack to the values used to calculate bound position. This will ensure that if\n // we start removing slack, the element won't react to it right away until it's been\n // completely removed.\n newState.x += this.state.slackX;\n newState.y += this.state.slackY;\n\n // Get bound position. This will ceil/floor the x and y within the boundaries.\n const [newStateX, newStateY] = (0, _positionFns.getBoundPosition)(this, newState.x, newState.y);\n newState.x = newStateX;\n newState.y = newStateY;\n\n // Recalculate slack by noting how much was shaved by the boundPosition handler.\n newState.slackX = this.state.slackX + (x - newState.x);\n newState.slackY = this.state.slackY + (y - newState.y);\n\n // Update the event we fire to reflect what really happened after bounds took effect.\n uiData.x = newState.x;\n uiData.y = newState.y;\n uiData.deltaX = newState.x - this.state.x;\n uiData.deltaY = newState.y - this.state.y;\n }\n\n // Short-circuit if user's callback killed it.\n const shouldUpdate = this.props.onDrag(e, uiData);\n if (shouldUpdate === false) return false;\n this.setState(newState);\n });\n _defineProperty(this, \"onDragStop\", (e, coreData) => {\n if (!this.state.dragging) return false;\n\n // Short-circuit if user's callback killed it.\n const shouldContinue = this.props.onStop(e, (0, _positionFns.createDraggableData)(this, coreData));\n if (shouldContinue === false) return false;\n (0, _log.default)('Draggable: onDragStop: %j', coreData);\n const newState /*: Partial<DraggableState>*/ = {\n dragging: false,\n slackX: 0,\n slackY: 0\n };\n\n // If this is a controlled component, the result of this operation will be to\n // revert back to the old position. We expect a handler on `onDragStop`, at the least.\n const controlled = Boolean(this.props.position);\n if (controlled) {\n const {\n x,\n y\n } = this.props.position;\n newState.x = x;\n newState.y = y;\n }\n this.setState(newState);\n });\n this.state = {\n // Whether or not we are currently dragging.\n dragging: false,\n // Whether or not we have been dragged before.\n dragged: false,\n // Current transform x and y.\n x: props.position ? props.position.x : props.defaultPosition.x,\n y: props.position ? props.position.y : props.defaultPosition.y,\n prevPropsPosition: {\n ...props.position\n },\n // Used for compensating for out-of-bounds drags\n slackX: 0,\n slackY: 0,\n // Can only determine if SVG after mounting\n isElementSVG: false\n };\n if (props.position && !(props.onDrag || props.onStop)) {\n // eslint-disable-next-line no-console\n console.warn('A `position` was applied to this <Draggable>, without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');\n }\n }\n componentDidMount() {\n // Check to see if the element passed is an instanceof SVGElement\n if (typeof window.SVGElement !== 'undefined' && this.findDOMNode() instanceof window.SVGElement) {\n this.setState({\n isElementSVG: true\n });\n }\n }\n componentWillUnmount() {\n this.setState({\n dragging: false\n }); // prevents invariant if unmounted while dragging\n }\n\n // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find\n // the underlying DOM node ourselves. See the README for more information.\n findDOMNode() /*: ?HTMLElement*/{\n var _this$props$nodeRef$c, _this$props;\n return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 || (_this$props = _this$props.nodeRef) === null || _this$props === void 0 ? void 0 : _this$props.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);\n }\n render() /*: ReactElement<any>*/{\n const {\n axis,\n bounds,\n children,\n defaultPosition,\n defaultClassName,\n defaultClassNameDragging,\n defaultClassNameDragged,\n position,\n positionOffset,\n scale,\n ...draggableCoreProps\n } = this.props;\n let style = {};\n let svgTransform = null;\n\n // If this is controlled, we don't want to move it - unless it's dragging.\n const controlled = Boolean(position);\n const draggable = !controlled || this.state.dragging;\n const validPosition = position || defaultPosition;\n const transformOpts = {\n // Set left if horizontal drag is enabled\n x: (0, _positionFns.canDragX)(this) && draggable ? this.state.x : validPosition.x,\n // Set top if vertical drag is enabled\n y: (0, _positionFns.canDragY)(this) && draggable ? this.state.y : validPosition.y\n };\n\n // If this element was SVG, we use the `transform` attribute.\n if (this.state.isElementSVG) {\n svgTransform = (0, _domFns.createSVGTransform)(transformOpts, positionOffset);\n } else {\n // Add a CSS transform to move the element around. This allows us to move the element around\n // without worrying about whether or not it is relatively or absolutely positioned.\n // If the item you are dragging already has a transform set, wrap it in a <span> so <Draggable>\n // has a clean slate.\n style = (0, _domFns.createCSSTransform)(transformOpts, positionOffset);\n }\n\n // Mark with class while dragging\n const className = (0, _clsx.default)(children.props.className || '', defaultClassName, {\n [defaultClassNameDragging]: this.state.dragging,\n [defaultClassNameDragged]: this.state.dragged\n });\n\n // Reuse the child provided\n // This makes it flexible to use whatever element is wanted (div, ul, etc)\n return /*#__PURE__*/React.createElement(_DraggableCore.default, _extends({}, draggableCoreProps, {\n onStart: this.onDragStart,\n onDrag: this.onDrag,\n onStop: this.onDragStop\n }), /*#__PURE__*/React.cloneElement(React.Children.only(children), {\n className: className,\n style: {\n ...children.props.style,\n ...style\n },\n transform: svgTransform\n }));\n }\n}\nexports.default = Draggable;\n_defineProperty(Draggable, \"displayName\", 'Draggable');\n_defineProperty(Draggable, \"propTypes\", {\n // Accepts all props <DraggableCore> accepts.\n ..._DraggableCore.default.propTypes,\n /**\n * `axis` determines which axis the draggable can move.\n *\n * Note that all callbacks will still return data as normal. This only\n * controls flushing to the DOM.\n *\n * 'both' allows movement horizontally and vertically.\n * 'x' limits movement to horizontal axis.\n * 'y' limits movement to vertical axis.\n * 'none' limits all movement.\n *\n * Defaults to 'both'.\n */\n axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),\n /**\n * `bounds` determines the range of movement available to the element.\n * Available values are:\n *\n * 'parent' restricts movement within the Draggable's parent node.\n *\n * Alternatively, pass an object with the following properties, all of which are optional:\n *\n * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}\n *\n * All values are in px.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable bounds={{right: 300, bottom: 300}}>\n * <div>Content</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n bounds: _propTypes.default.oneOfType([_propTypes.default.shape({\n left: _propTypes.default.number,\n right: _propTypes.default.number,\n top: _propTypes.default.number,\n bottom: _propTypes.default.number\n }), _propTypes.default.string, _propTypes.default.oneOf([false])]),\n defaultClassName: _propTypes.default.string,\n defaultClassNameDragging: _propTypes.default.string,\n defaultClassNameDragged: _propTypes.default.string,\n /**\n * `defaultPosition` specifies the x and y that the dragged item should start at\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable defaultPosition={{x: 25, y: 25}}>\n * <div>I start with transformX: 25px and transformY: 25px;</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n defaultPosition: _propTypes.default.shape({\n x: _propTypes.default.number,\n y: _propTypes.default.number\n }),\n positionOffset: _propTypes.default.shape({\n x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),\n y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])\n }),\n /**\n * `position`, if present, defines the current position of the element.\n *\n * This is similar to how form elements in React work - if no `position` is supplied, the component\n * is uncontrolled.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable position={{x: 25, y: 25}}>\n * <div>I start with transformX: 25px and transformY: 25px;</div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n position: _propTypes.default.shape({\n x: _propTypes.default.number,\n y: _propTypes.default.number\n }),\n /**\n * These properties should be defined on the child, not here.\n */\n className: _shims.dontSetMe,\n style: _shims.dontSetMe,\n transform: _shims.dontSetMe\n});\n_defineProperty(Draggable, \"defaultProps\", {\n ..._DraggableCore.default.defaultProps,\n axis: 'both',\n bounds: false,\n defaultClassName: 'react-draggable',\n defaultClassNameDragging: 'react-draggable-dragging',\n defaultClassNameDragged: 'react-draggable-dragged',\n defaultPosition: {\n x: 0,\n y: 0\n },\n scale: 1\n});\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/Draggable.js?");
|
|
8135
8147
|
|
|
8136
8148
|
/***/ }),
|
|
8137
8149
|
|
|
@@ -8143,7 +8155,7 @@ eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol
|
|
|
8143
8155
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8144
8156
|
|
|
8145
8157
|
"use strict";
|
|
8146
|
-
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\"));\n\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"react-dom\"));\n\nvar _domFns = __webpack_require__(/*! ./utils/domFns */ \"./node_modules/react-draggable/build/cjs/utils/domFns.js\");\n\nvar _positionFns = __webpack_require__(/*! ./utils/positionFns */ \"./node_modules/react-draggable/build/cjs/utils/positionFns.js\");\n\nvar _shims = __webpack_require__(/*! ./utils/shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\n\nvar _log = _interopRequireDefault(__webpack_require__(/*! ./utils/log */ \"./node_modules/react-draggable/build/cjs/utils/log.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// Simple abstraction for dragging events names.\nvar eventsFor = {\n touch: {\n start: 'touchstart',\n move: 'touchmove',\n stop: 'touchend'\n },\n mouse: {\n start: 'mousedown',\n move: 'mousemove',\n stop: 'mouseup'\n }\n}; // Default to mouse events.\n\nvar dragEventFor = eventsFor.mouse;\n/*:: type DraggableCoreState = {\n dragging: boolean,\n lastX: number,\n lastY: number,\n touchIdentifier: ?number\n};*/\n\n/*:: export type DraggableData = {\n node: HTMLElement,\n x: number, y: number,\n deltaX: number, deltaY: number,\n lastX: number, lastY: number,\n};*/\n\n/*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void | false;*/\n\n/*:: export type ControlPosition = {x: number, y: number};*/\n\n/*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/\n\n/*:: export type DraggableCoreDefaultProps = {\n allowAnyClick: boolean,\n disabled: boolean,\n enableUserSelectHack: boolean,\n onStart: DraggableEventHandler,\n onDrag: DraggableEventHandler,\n onStop: DraggableEventHandler,\n onMouseDown: (e: MouseEvent) => void,\n scale: number,\n};*/\n\n/*:: export type DraggableCoreProps = {\n ...DraggableCoreDefaultProps,\n cancel: string,\n children: ReactElement<any>,\n offsetParent: HTMLElement,\n grid: [number, number],\n handle: string,\n nodeRef?: ?React.ElementRef<any>,\n};*/\n\n//\n// Define <DraggableCore>.\n//\n// <DraggableCore> is for advanced usage of <Draggable>. It maintains minimal internal state so it can\n// work well with libraries that require more control over the element.\n//\nvar DraggableCore = /*#__PURE__*/function (_React$Component) {\n _inherits(DraggableCore, _React$Component);\n\n var _super = _createSuper(DraggableCore);\n\n function DraggableCore() {\n var _this;\n\n _classCallCheck(this, DraggableCore);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n dragging: false,\n // Used while dragging to determine deltas.\n lastX: NaN,\n lastY: NaN,\n touchIdentifier: null\n });\n\n _defineProperty(_assertThisInitialized(_this), \"mounted\", false);\n\n _defineProperty(_assertThisInitialized(_this), \"handleDragStart\", function (e) {\n // Make it possible to attach event handlers on top of this one.\n _this.props.onMouseDown(e); // Only accept left-clicks.\n\n\n if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; // Get nodes. Be sure to grab relative document (could be iframed)\n\n var thisNode = _this.findDOMNode();\n\n if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {\n throw new Error('<DraggableCore> not mounted on DragStart!');\n }\n\n var ownerDocument = thisNode.ownerDocument; // Short circuit if handle or cancel prop was provided and selector doesn't match.\n\n if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.cancel, thisNode)) {\n return;\n } // Prevent scrolling on mobile devices, like ipad/iphone.\n // Important that this is after handle/cancel.\n\n\n if (e.type === 'touchstart') e.preventDefault(); // Set touch identifier in component state if this is a touch event. This allows us to\n // distinguish between individual touches on multitouch screens by identifying which\n // touchpoint was set to this element.\n\n var touchIdentifier = (0, _domFns.getTouchIdentifier)(e);\n\n _this.setState({\n touchIdentifier: touchIdentifier\n }); // Get the current drag point from the event. This is used as the offset.\n\n\n var position = (0, _positionFns.getControlPosition)(e, touchIdentifier, _assertThisInitialized(_this));\n if (position == null) return; // not possible but satisfies flow\n\n var x = position.x,\n y = position.y; // Create an event object with all the data parents need to make a decision here.\n\n var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);\n (0, _log.default)('DraggableCore: handleDragStart: %j', coreEvent); // Call event handler. If it returns explicit false, cancel.\n\n (0, _log.default)('calling', _this.props.onStart);\n\n var shouldUpdate = _this.props.onStart(e, coreEvent);\n\n if (shouldUpdate === false || _this.mounted === false) return; // Add a style to the body to disable user-select. This prevents text from\n // being selected all over the page.\n\n if (_this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument); // Initiate dragging. Set the current x and y as offsets\n // so we know how much we've moved during the drag. This allows us\n // to drag elements around even if they have been moved, without issue.\n\n _this.setState({\n dragging: true,\n lastX: x,\n lastY: y\n }); // Add events to the document directly so we catch when the user's mouse/touch moves outside of\n // this element. We use different events depending on whether or not we have detected that this\n // is a touch-capable device.\n\n\n (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, _this.handleDrag);\n (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, _this.handleDragStop);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleDrag\", function (e) {\n // Get the current drag point from the event. This is used as the offset.\n var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));\n if (position == null) return;\n var x = position.x,\n y = position.y; // Snap to grid if prop has been provided\n\n if (Array.isArray(_this.props.grid)) {\n var deltaX = x - _this.state.lastX,\n deltaY = y - _this.state.lastY;\n\n var _snapToGrid = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);\n\n var _snapToGrid2 = _slicedToArray(_snapToGrid, 2);\n\n deltaX = _snapToGrid2[0];\n deltaY = _snapToGrid2[1];\n if (!deltaX && !deltaY) return; // skip useless drag\n\n x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;\n }\n\n var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);\n (0, _log.default)('DraggableCore: handleDrag: %j', coreEvent); // Call event handler. If it returns explicit false, trigger end.\n\n var shouldUpdate = _this.props.onDrag(e, coreEvent);\n\n if (shouldUpdate === false || _this.mounted === false) {\n try {\n // $FlowIgnore\n _this.handleDragStop(new MouseEvent('mouseup'));\n } catch (err) {\n // Old browsers\n var event = ((document.createEvent('MouseEvents')\n /*: any*/\n )\n /*: MouseTouchEvent*/\n ); // I see why this insanity was deprecated\n // $FlowIgnore\n\n event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n\n _this.handleDragStop(event);\n }\n\n return;\n }\n\n _this.setState({\n lastX: x,\n lastY: y\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleDragStop\", function (e) {\n if (!_this.state.dragging) return;\n var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));\n if (position == null) return;\n var x = position.x,\n y = position.y;\n var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y); // Call event handler\n\n var shouldContinue = _this.props.onStop(e, coreEvent);\n\n if (shouldContinue === false || _this.mounted === false) return false;\n\n var thisNode = _this.findDOMNode();\n\n if (thisNode) {\n // Remove user-select hack\n if (_this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);\n }\n\n (0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent); // Reset the el.\n\n _this.setState({\n dragging: false,\n lastX: NaN,\n lastY: NaN\n });\n\n if (thisNode) {\n // Remove event handlers\n (0, _log.default)('DraggableCore: Removing handlers');\n (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag);\n (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMouseDown\", function (e) {\n dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse\n\n return _this.handleDragStart(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMouseUp\", function (e) {\n dragEventFor = eventsFor.mouse;\n return _this.handleDragStop(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTouchStart\", function (e) {\n // We're on a touch device now, so change the event handlers\n dragEventFor = eventsFor.touch;\n return _this.handleDragStart(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTouchEnd\", function (e) {\n // We're on a touch device now, so change the event handlers\n dragEventFor = eventsFor.touch;\n return _this.handleDragStop(e);\n });\n\n return _this;\n }\n\n _createClass(DraggableCore, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.mounted = true; // Touch handlers must be added with {passive: false} to be cancelable.\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n\n var thisNode = this.findDOMNode();\n\n if (thisNode) {\n (0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {\n passive: false\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.mounted = false; // Remove any leftover event handlers. Remove both touch and mouse handlers in case\n // some browser quirk caused a touch event to fire during a mouse move, or vice versa.\n\n var thisNode = this.findDOMNode();\n\n if (thisNode) {\n var ownerDocument = thisNode.ownerDocument;\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);\n (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {\n passive: false\n });\n if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);\n }\n } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find\n // the underlying DOM node ourselves. See the README for more information.\n\n }, {\n key: \"findDOMNode\",\n value: function findDOMNode()\n /*: ?HTMLElement*/\n {\n var _this$props$nodeRef$c, _this$props, _this$props$nodeRef;\n\n return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$nodeRef = _this$props.nodeRef) === null || _this$props$nodeRef === void 0 ? void 0 : _this$props$nodeRef.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);\n }\n }, {\n key: \"render\",\n value: function render()\n /*: React.Element<any>*/\n {\n // Reuse the child provided\n // This makes it flexible to use whatever element is wanted (div, ul, etc)\n return /*#__PURE__*/React.cloneElement(React.Children.only(this.props.children), {\n // Note: mouseMove handler is attached to document so it will still function\n // when the user drags quickly and leaves the bounds of the element.\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n // onTouchStart is added on `componentDidMount` so they can be added with\n // {passive: false}, which allows it to cancel. See\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n onTouchEnd: this.onTouchEnd\n });\n }\n }]);\n\n return DraggableCore;\n}(React.Component);\n\nexports.default = DraggableCore;\n\n_defineProperty(DraggableCore, \"displayName\", 'DraggableCore');\n\n_defineProperty(DraggableCore, \"propTypes\", {\n /**\n * `allowAnyClick` allows dragging using any mouse button.\n * By default, we only accept the left button.\n *\n * Defaults to `false`.\n */\n allowAnyClick: _propTypes.default.bool,\n\n /**\n * `disabled`, if true, stops the <Draggable> from dragging. All handlers,\n * with the exception of `onMouseDown`, will not fire.\n */\n disabled: _propTypes.default.bool,\n\n /**\n * By default, we add 'user-select:none' attributes to the document body\n * to prevent ugly text selection during drag. If this is causing problems\n * for your app, set this to `false`.\n */\n enableUserSelectHack: _propTypes.default.bool,\n\n /**\n * `offsetParent`, if set, uses the passed DOM node to compute drag offsets\n * instead of using the parent node.\n */\n offsetParent: function offsetParent(props\n /*: DraggableCoreProps*/\n , propName\n /*: $Keys<DraggableCoreProps>*/\n ) {\n if (props[propName] && props[propName].nodeType !== 1) {\n throw new Error('Draggable\\'s offsetParent must be a DOM Node.');\n }\n },\n\n /**\n * `grid` specifies the x and y that dragging should snap to.\n */\n grid: _propTypes.default.arrayOf(_propTypes.default.number),\n\n /**\n * `handle` specifies a selector to be used as the handle that initiates drag.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable handle=\".handle\">\n * <div>\n * <div className=\"handle\">Click me to drag</div>\n * <div>This is some other content</div>\n * </div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n handle: _propTypes.default.string,\n\n /**\n * `cancel` specifies a selector to be used to prevent drag initialization.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return(\n * <Draggable cancel=\".cancel\">\n * <div>\n * <div className=\"cancel\">You can't drag from here</div>\n * <div>Dragging here works fine</div>\n * </div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n cancel: _propTypes.default.string,\n\n /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.\n * Unfortunately, in order for <Draggable> to work properly, we need raw access\n * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`\n * as in this example:\n *\n * function MyComponent() {\n * const nodeRef = React.useRef(null);\n * return (\n * <Draggable nodeRef={nodeRef}>\n * <div ref={nodeRef}>Example Target</div>\n * </Draggable>\n * );\n * }\n *\n * This can be used for arbitrarily nested components, so long as the ref ends up\n * pointing to the actual child DOM node and not a custom component.\n */\n nodeRef: _propTypes.default.object,\n\n /**\n * Called when dragging starts.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onStart: _propTypes.default.func,\n\n /**\n * Called while dragging.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onDrag: _propTypes.default.func,\n\n /**\n * Called when dragging stops.\n * If this function returns the boolean false, the drag will remain active.\n */\n onStop: _propTypes.default.func,\n\n /**\n * A workaround option which can be passed if onMouseDown needs to be accessed,\n * since it'll always be blocked (as there is internal use of onMouseDown)\n */\n onMouseDown: _propTypes.default.func,\n\n /**\n * `scale`, if set, applies scaling while dragging an element\n */\n scale: _propTypes.default.number,\n\n /**\n * These properties should be defined on the child, not here.\n */\n className: _shims.dontSetMe,\n style: _shims.dontSetMe,\n transform: _shims.dontSetMe\n});\n\n_defineProperty(DraggableCore, \"defaultProps\", {\n allowAnyClick: false,\n // by default only accept left click\n disabled: false,\n enableUserSelectHack: true,\n onStart: function onStart() {},\n onDrag: function onDrag() {},\n onStop: function onStop() {},\n onMouseDown: function onMouseDown() {},\n scale: 1\n});\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/DraggableCore.js?");
|
|
8158
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar React = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\nvar _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ \"./node_modules/react-draggable/node_modules/prop-types/index.js\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"react-dom\"));\nvar _domFns = __webpack_require__(/*! ./utils/domFns */ \"./node_modules/react-draggable/build/cjs/utils/domFns.js\");\nvar _positionFns = __webpack_require__(/*! ./utils/positionFns */ \"./node_modules/react-draggable/build/cjs/utils/positionFns.js\");\nvar _shims = __webpack_require__(/*! ./utils/shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\nvar _log = _interopRequireDefault(__webpack_require__(/*! ./utils/log */ \"./node_modules/react-draggable/build/cjs/utils/log.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n/*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/\n/*:: import type {Element as ReactElement} from 'react';*/\n// Simple abstraction for dragging events names.\nconst eventsFor = {\n touch: {\n start: 'touchstart',\n move: 'touchmove',\n stop: 'touchend'\n },\n mouse: {\n start: 'mousedown',\n move: 'mousemove',\n stop: 'mouseup'\n }\n};\n\n// Default to mouse events.\nlet dragEventFor = eventsFor.mouse;\n/*:: export type DraggableData = {\n node: HTMLElement,\n x: number, y: number,\n deltaX: number, deltaY: number,\n lastX: number, lastY: number,\n};*/\n/*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void | false;*/\n/*:: export type ControlPosition = {x: number, y: number};*/\n/*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/\n/*:: export type DraggableCoreDefaultProps = {\n allowAnyClick: boolean,\n disabled: boolean,\n enableUserSelectHack: boolean,\n onStart: DraggableEventHandler,\n onDrag: DraggableEventHandler,\n onStop: DraggableEventHandler,\n onMouseDown: (e: MouseEvent) => void,\n scale: number,\n};*/\n/*:: export type DraggableCoreProps = {\n ...DraggableCoreDefaultProps,\n cancel: string,\n children: ReactElement<any>,\n offsetParent: HTMLElement,\n grid: [number, number],\n handle: string,\n nodeRef?: ?React.ElementRef<any>,\n};*/\n//\n// Define <DraggableCore>.\n//\n// <DraggableCore> is for advanced usage of <Draggable>. It maintains minimal internal state so it can\n// work well with libraries that require more control over the element.\n//\n\nclass DraggableCore extends React.Component /*:: <DraggableCoreProps>*/{\n constructor() {\n super(...arguments);\n _defineProperty(this, \"dragging\", false);\n // Used while dragging to determine deltas.\n _defineProperty(this, \"lastX\", NaN);\n _defineProperty(this, \"lastY\", NaN);\n _defineProperty(this, \"touchIdentifier\", null);\n _defineProperty(this, \"mounted\", false);\n _defineProperty(this, \"handleDragStart\", e => {\n // Make it possible to attach event handlers on top of this one.\n this.props.onMouseDown(e);\n\n // Only accept left-clicks.\n if (!this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false;\n\n // Get nodes. Be sure to grab relative document (could be iframed)\n const thisNode = this.findDOMNode();\n if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {\n throw new Error('<DraggableCore> not mounted on DragStart!');\n }\n const {\n ownerDocument\n } = thisNode;\n\n // Short circuit if handle or cancel prop was provided and selector doesn't match.\n if (this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.handle, thisNode) || this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.cancel, thisNode)) {\n return;\n }\n\n // Prevent scrolling on mobile devices, like ipad/iphone.\n // Important that this is after handle/cancel.\n if (e.type === 'touchstart') e.preventDefault();\n\n // Set touch identifier in component state if this is a touch event. This allows us to\n // distinguish between individual touches on multitouch screens by identifying which\n // touchpoint was set to this element.\n const touchIdentifier = (0, _domFns.getTouchIdentifier)(e);\n this.touchIdentifier = touchIdentifier;\n\n // Get the current drag point from the event. This is used as the offset.\n const position = (0, _positionFns.getControlPosition)(e, touchIdentifier, this);\n if (position == null) return; // not possible but satisfies flow\n const {\n x,\n y\n } = position;\n\n // Create an event object with all the data parents need to make a decision here.\n const coreEvent = (0, _positionFns.createCoreData)(this, x, y);\n (0, _log.default)('DraggableCore: handleDragStart: %j', coreEvent);\n\n // Call event handler. If it returns explicit false, cancel.\n (0, _log.default)('calling', this.props.onStart);\n const shouldUpdate = this.props.onStart(e, coreEvent);\n if (shouldUpdate === false || this.mounted === false) return;\n\n // Add a style to the body to disable user-select. This prevents text from\n // being selected all over the page.\n if (this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument);\n\n // Initiate dragging. Set the current x and y as offsets\n // so we know how much we've moved during the drag. This allows us\n // to drag elements around even if they have been moved, without issue.\n this.dragging = true;\n this.lastX = x;\n this.lastY = y;\n\n // Add events to the document directly so we catch when the user's mouse/touch moves outside of\n // this element. We use different events depending on whether or not we have detected that this\n // is a touch-capable device.\n (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, this.handleDrag);\n (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, this.handleDragStop);\n });\n _defineProperty(this, \"handleDrag\", e => {\n // Get the current drag point from the event. This is used as the offset.\n const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);\n if (position == null) return;\n let {\n x,\n y\n } = position;\n\n // Snap to grid if prop has been provided\n if (Array.isArray(this.props.grid)) {\n let deltaX = x - this.lastX,\n deltaY = y - this.lastY;\n [deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY);\n if (!deltaX && !deltaY) return; // skip useless drag\n x = this.lastX + deltaX, y = this.lastY + deltaY;\n }\n const coreEvent = (0, _positionFns.createCoreData)(this, x, y);\n (0, _log.default)('DraggableCore: handleDrag: %j', coreEvent);\n\n // Call event handler. If it returns explicit false, trigger end.\n const shouldUpdate = this.props.onDrag(e, coreEvent);\n if (shouldUpdate === false || this.mounted === false) {\n try {\n // $FlowIgnore\n this.handleDragStop(new MouseEvent('mouseup'));\n } catch (err) {\n // Old browsers\n const event = ((document.createEvent('MouseEvents') /*: any*/) /*: MouseTouchEvent*/);\n // I see why this insanity was deprecated\n // $FlowIgnore\n event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n this.handleDragStop(event);\n }\n return;\n }\n this.lastX = x;\n this.lastY = y;\n });\n _defineProperty(this, \"handleDragStop\", e => {\n if (!this.dragging) return;\n const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);\n if (position == null) return;\n let {\n x,\n y\n } = position;\n\n // Snap to grid if prop has been provided\n if (Array.isArray(this.props.grid)) {\n let deltaX = x - this.lastX || 0;\n let deltaY = y - this.lastY || 0;\n [deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY);\n x = this.lastX + deltaX, y = this.lastY + deltaY;\n }\n const coreEvent = (0, _positionFns.createCoreData)(this, x, y);\n\n // Call event handler\n const shouldContinue = this.props.onStop(e, coreEvent);\n if (shouldContinue === false || this.mounted === false) return false;\n const thisNode = this.findDOMNode();\n if (thisNode) {\n // Remove user-select hack\n if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);\n }\n (0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent);\n\n // Reset the el.\n this.dragging = false;\n this.lastX = NaN;\n this.lastY = NaN;\n if (thisNode) {\n // Remove event handlers\n (0, _log.default)('DraggableCore: Removing handlers');\n (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, this.handleDrag);\n (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, this.handleDragStop);\n }\n });\n _defineProperty(this, \"onMouseDown\", e => {\n dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse\n\n return this.handleDragStart(e);\n });\n _defineProperty(this, \"onMouseUp\", e => {\n dragEventFor = eventsFor.mouse;\n return this.handleDragStop(e);\n });\n // Same as onMouseDown (start drag), but now consider this a touch device.\n _defineProperty(this, \"onTouchStart\", e => {\n // We're on a touch device now, so change the event handlers\n dragEventFor = eventsFor.touch;\n return this.handleDragStart(e);\n });\n _defineProperty(this, \"onTouchEnd\", e => {\n // We're on a touch device now, so change the event handlers\n dragEventFor = eventsFor.touch;\n return this.handleDragStop(e);\n });\n }\n componentDidMount() {\n this.mounted = true;\n // Touch handlers must be added with {passive: false} to be cancelable.\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n const thisNode = this.findDOMNode();\n if (thisNode) {\n (0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {\n passive: false\n });\n }\n }\n componentWillUnmount() {\n this.mounted = false;\n // Remove any leftover event handlers. Remove both touch and mouse handlers in case\n // some browser quirk caused a touch event to fire during a mouse move, or vice versa.\n const thisNode = this.findDOMNode();\n if (thisNode) {\n const {\n ownerDocument\n } = thisNode;\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);\n (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {\n passive: false\n });\n if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);\n }\n }\n\n // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find\n // the underlying DOM node ourselves. See the README for more information.\n findDOMNode() /*: ?HTMLElement*/{\n var _this$props, _this$props2;\n return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.nodeRef) === null || _this$props2 === void 0 ? void 0 : _this$props2.current : _reactDom.default.findDOMNode(this);\n }\n render() /*: React.Element<any>*/{\n // Reuse the child provided\n // This makes it flexible to use whatever element is wanted (div, ul, etc)\n return /*#__PURE__*/React.cloneElement(React.Children.only(this.props.children), {\n // Note: mouseMove handler is attached to document so it will still function\n // when the user drags quickly and leaves the bounds of the element.\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n // onTouchStart is added on `componentDidMount` so they can be added with\n // {passive: false}, which allows it to cancel. See\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n onTouchEnd: this.onTouchEnd\n });\n }\n}\nexports.default = DraggableCore;\n_defineProperty(DraggableCore, \"displayName\", 'DraggableCore');\n_defineProperty(DraggableCore, \"propTypes\", {\n /**\n * `allowAnyClick` allows dragging using any mouse button.\n * By default, we only accept the left button.\n *\n * Defaults to `false`.\n */\n allowAnyClick: _propTypes.default.bool,\n children: _propTypes.default.node.isRequired,\n /**\n * `disabled`, if true, stops the <Draggable> from dragging. All handlers,\n * with the exception of `onMouseDown`, will not fire.\n */\n disabled: _propTypes.default.bool,\n /**\n * By default, we add 'user-select:none' attributes to the document body\n * to prevent ugly text selection during drag. If this is causing problems\n * for your app, set this to `false`.\n */\n enableUserSelectHack: _propTypes.default.bool,\n /**\n * `offsetParent`, if set, uses the passed DOM node to compute drag offsets\n * instead of using the parent node.\n */\n offsetParent: function (props /*: DraggableCoreProps*/, propName /*: $Keys<DraggableCoreProps>*/) {\n if (props[propName] && props[propName].nodeType !== 1) {\n throw new Error('Draggable\\'s offsetParent must be a DOM Node.');\n }\n },\n /**\n * `grid` specifies the x and y that dragging should snap to.\n */\n grid: _propTypes.default.arrayOf(_propTypes.default.number),\n /**\n * `handle` specifies a selector to be used as the handle that initiates drag.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * <Draggable handle=\".handle\">\n * <div>\n * <div className=\"handle\">Click me to drag</div>\n * <div>This is some other content</div>\n * </div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n handle: _propTypes.default.string,\n /**\n * `cancel` specifies a selector to be used to prevent drag initialization.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return(\n * <Draggable cancel=\".cancel\">\n * <div>\n * <div className=\"cancel\">You can't drag from here</div>\n * <div>Dragging here works fine</div>\n * </div>\n * </Draggable>\n * );\n * }\n * });\n * ```\n */\n cancel: _propTypes.default.string,\n /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.\n * Unfortunately, in order for <Draggable> to work properly, we need raw access\n * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`\n * as in this example:\n *\n * function MyComponent() {\n * const nodeRef = React.useRef(null);\n * return (\n * <Draggable nodeRef={nodeRef}>\n * <div ref={nodeRef}>Example Target</div>\n * </Draggable>\n * );\n * }\n *\n * This can be used for arbitrarily nested components, so long as the ref ends up\n * pointing to the actual child DOM node and not a custom component.\n */\n nodeRef: _propTypes.default.object,\n /**\n * Called when dragging starts.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onStart: _propTypes.default.func,\n /**\n * Called while dragging.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onDrag: _propTypes.default.func,\n /**\n * Called when dragging stops.\n * If this function returns the boolean false, the drag will remain active.\n */\n onStop: _propTypes.default.func,\n /**\n * A workaround option which can be passed if onMouseDown needs to be accessed,\n * since it'll always be blocked (as there is internal use of onMouseDown)\n */\n onMouseDown: _propTypes.default.func,\n /**\n * `scale`, if set, applies scaling while dragging an element\n */\n scale: _propTypes.default.number,\n /**\n * These properties should be defined on the child, not here.\n */\n className: _shims.dontSetMe,\n style: _shims.dontSetMe,\n transform: _shims.dontSetMe\n});\n_defineProperty(DraggableCore, \"defaultProps\", {\n allowAnyClick: false,\n // by default only accept left click\n disabled: false,\n enableUserSelectHack: true,\n onStart: function () {},\n onDrag: function () {},\n onStop: function () {},\n onMouseDown: function () {},\n scale: 1\n});\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/DraggableCore.js?");
|
|
8147
8159
|
|
|
8148
8160
|
/***/ }),
|
|
8149
8161
|
|
|
@@ -8155,7 +8167,7 @@ eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol
|
|
|
8155
8167
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8156
8168
|
|
|
8157
8169
|
"use strict";
|
|
8158
|
-
eval("\n\
|
|
8170
|
+
eval("\n\nconst {\n default: Draggable,\n DraggableCore\n} = __webpack_require__(/*! ./Draggable */ \"./node_modules/react-draggable/build/cjs/Draggable.js\");\n\n// Previous versions of this lib exported <Draggable> as the root export. As to no-// them, or TypeScript, we export *both* as the root and as 'default'.\n// See https://github.com/mzabriskie/react-draggable/pull/254\n// and https://github.com/mzabriskie/react-draggable/issues/266\nmodule.exports = Draggable;\nmodule.exports.default = Draggable;\nmodule.exports.DraggableCore = DraggableCore;\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/cjs.js?");
|
|
8159
8171
|
|
|
8160
8172
|
/***/ }),
|
|
8161
8173
|
|
|
@@ -8167,7 +8179,7 @@ eval("\n\nvar _require = __webpack_require__(/*! ./Draggable */ \"./node_modules
|
|
|
8167
8179
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8168
8180
|
|
|
8169
8181
|
"use strict";
|
|
8170
|
-
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matchesSelector = matchesSelector;\nexports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;\nexports.addEvent = addEvent;\nexports.removeEvent = removeEvent;\nexports.outerHeight = outerHeight;\nexports.outerWidth = outerWidth;\nexports.innerHeight = innerHeight;\nexports.innerWidth = innerWidth;\nexports.offsetXYFromParent = offsetXYFromParent;\nexports.createCSSTransform = createCSSTransform;\nexports.createSVGTransform = createSVGTransform;\nexports.getTranslation = getTranslation;\nexports.getTouch = getTouch;\nexports.getTouchIdentifier = getTouchIdentifier;\nexports.addUserSelectStyles = addUserSelectStyles;\nexports.removeUserSelectStyles = removeUserSelectStyles;\nexports.addClassName = addClassName;\nexports.removeClassName = removeClassName;\n\nvar _shims = __webpack_require__(/*! ./shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\n\nvar _getPrefix = _interopRequireWildcard(__webpack_require__(/*! ./getPrefix */ \"./node_modules/react-draggable/build/cjs/utils/getPrefix.js\"));\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar matchesSelectorFunc = '';\n\nfunction matchesSelector(el\n/*: Node*/\n, selector\n/*: string*/\n)\n/*: boolean*/\n{\n if (!matchesSelectorFunc) {\n matchesSelectorFunc = (0, _shims.findInArray)(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) {\n // $FlowIgnore: Doesn't think elements are indexable\n return (0, _shims.isFunction)(el[method]);\n });\n } // Might not be found entirely (not an Element?) - in that case, bail\n // $FlowIgnore: Doesn't think elements are indexable\n\n\n if (!(0, _shims.isFunction)(el[matchesSelectorFunc])) return false; // $FlowIgnore: Doesn't think elements are indexable\n\n return el[matchesSelectorFunc](selector);\n} // Works up the tree to the draggable itself attempting to match selector.\n\n\nfunction matchesSelectorAndParentsTo(el\n/*: Node*/\n, selector\n/*: string*/\n, baseNode\n/*: Node*/\n)\n/*: boolean*/\n{\n var node = el;\n\n do {\n if (matchesSelector(node, selector)) return true;\n if (node === baseNode) return false;\n node = node.parentNode;\n } while (node);\n\n return false;\n}\n\nfunction addEvent(el\n/*: ?Node*/\n, event\n/*: string*/\n, handler\n/*: Function*/\n, inputOptions\n/*: Object*/\n)\n/*: void*/\n{\n if (!el) return;\n\n var options = _objectSpread({\n capture: true\n }, inputOptions); // $FlowIgnore[method-unbinding]\n\n\n if (el.addEventListener) {\n el.addEventListener(event, handler, options);\n } else if (el.attachEvent) {\n el.attachEvent('on' + event, handler);\n } else {\n // $FlowIgnore: Doesn't think elements are indexable\n el['on' + event] = handler;\n }\n}\n\nfunction removeEvent(el\n/*: ?Node*/\n, event\n/*: string*/\n, handler\n/*: Function*/\n, inputOptions\n/*: Object*/\n)\n/*: void*/\n{\n if (!el) return;\n\n var options = _objectSpread({\n capture: true\n }, inputOptions); // $FlowIgnore[method-unbinding]\n\n\n if (el.removeEventListener) {\n el.removeEventListener(event, handler, options);\n } else if (el.detachEvent) {\n el.detachEvent('on' + event, handler);\n } else {\n // $FlowIgnore: Doesn't think elements are indexable\n el['on' + event] = null;\n }\n}\n\nfunction outerHeight(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n // This is deliberately excluding margin for our calculations, since we are using\n // offsetTop which is including margin. See getBoundPosition\n var height = node.clientHeight;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height += (0, _shims.int)(computedStyle.borderTopWidth);\n height += (0, _shims.int)(computedStyle.borderBottomWidth);\n return height;\n}\n\nfunction outerWidth(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n // This is deliberately excluding margin for our calculations, since we are using\n // offsetLeft which is including margin. See getBoundPosition\n var width = node.clientWidth;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width += (0, _shims.int)(computedStyle.borderLeftWidth);\n width += (0, _shims.int)(computedStyle.borderRightWidth);\n return width;\n}\n\nfunction innerHeight(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n var height = node.clientHeight;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height -= (0, _shims.int)(computedStyle.paddingTop);\n height -= (0, _shims.int)(computedStyle.paddingBottom);\n return height;\n}\n\nfunction innerWidth(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n var width = node.clientWidth;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width -= (0, _shims.int)(computedStyle.paddingLeft);\n width -= (0, _shims.int)(computedStyle.paddingRight);\n return width;\n}\n/*:: interface EventWithOffset {\n clientX: number, clientY: number\n}*/\n\n\n// Get from offsetParent\nfunction offsetXYFromParent(evt\n/*: EventWithOffset*/\n, offsetParent\n/*: HTMLElement*/\n, scale\n/*: number*/\n)\n/*: ControlPosition*/\n{\n var isBody = offsetParent === offsetParent.ownerDocument.body;\n var offsetParentRect = isBody ? {\n left: 0,\n top: 0\n } : offsetParent.getBoundingClientRect();\n var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;\n var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;\n return {\n x: x,\n y: y\n };\n}\n\nfunction createCSSTransform(controlPos\n/*: ControlPosition*/\n, positionOffset\n/*: PositionOffsetControlPosition*/\n)\n/*: Object*/\n{\n var translation = getTranslation(controlPos, positionOffset, 'px');\n return _defineProperty({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default), translation);\n}\n\nfunction createSVGTransform(controlPos\n/*: ControlPosition*/\n, positionOffset\n/*: PositionOffsetControlPosition*/\n)\n/*: string*/\n{\n var translation = getTranslation(controlPos, positionOffset, '');\n return translation;\n}\n\nfunction getTranslation(_ref2, positionOffset\n/*: PositionOffsetControlPosition*/\n, unitSuffix\n/*: string*/\n)\n/*: string*/\n{\n var x = _ref2.x,\n y = _ref2.y;\n var translation = \"translate(\".concat(x).concat(unitSuffix, \",\").concat(y).concat(unitSuffix, \")\");\n\n if (positionOffset) {\n var defaultX = \"\".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);\n var defaultY = \"\".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);\n translation = \"translate(\".concat(defaultX, \", \").concat(defaultY, \")\") + translation;\n }\n\n return translation;\n}\n\nfunction getTouch(e\n/*: MouseTouchEvent*/\n, identifier\n/*: number*/\n)\n/*: ?{clientX: number, clientY: number}*/\n{\n return e.targetTouches && (0, _shims.findInArray)(e.targetTouches, function (t) {\n return identifier === t.identifier;\n }) || e.changedTouches && (0, _shims.findInArray)(e.changedTouches, function (t) {\n return identifier === t.identifier;\n });\n}\n\nfunction getTouchIdentifier(e\n/*: MouseTouchEvent*/\n)\n/*: ?number*/\n{\n if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;\n if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;\n} // User-select Hacks:\n//\n// Useful for preventing blue highlights all over everything when dragging.\n// Note we're passing `document` b/c we could be iframed\n\n\nfunction addUserSelectStyles(doc\n/*: ?Document*/\n) {\n if (!doc) return;\n var styleEl = doc.getElementById('react-draggable-style-el');\n\n if (!styleEl) {\n styleEl = doc.createElement('style');\n styleEl.type = 'text/css';\n styleEl.id = 'react-draggable-style-el';\n styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\\n';\n styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\\n';\n doc.getElementsByTagName('head')[0].appendChild(styleEl);\n }\n\n if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');\n}\n\nfunction removeUserSelectStyles(doc\n/*: ?Document*/\n) {\n if (!doc) return;\n\n try {\n if (doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); // $FlowIgnore: IE\n\n if (doc.selection) {\n // $FlowIgnore: IE\n doc.selection.empty();\n } else {\n // Remove selection caused by scroll, unless it's a focused input\n // (we use doc.defaultView in case we're in an iframe)\n var selection = (doc.defaultView || window).getSelection();\n\n if (selection && selection.type !== 'Caret') {\n selection.removeAllRanges();\n }\n }\n } catch (e) {// probably IE\n }\n}\n\nfunction addClassName(el\n/*: HTMLElement*/\n, className\n/*: string*/\n) {\n if (el.classList) {\n el.classList.add(className);\n } else {\n if (!el.className.match(new RegExp(\"(?:^|\\\\s)\".concat(className, \"(?!\\\\S)\")))) {\n el.className += \" \".concat(className);\n }\n }\n}\n\nfunction removeClassName(el\n/*: HTMLElement*/\n, className\n/*: string*/\n) {\n if (el.classList) {\n el.classList.remove(className);\n } else {\n el.className = el.className.replace(new RegExp(\"(?:^|\\\\s)\".concat(className, \"(?!\\\\S)\"), 'g'), '');\n }\n}\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/utils/domFns.js?");
|
|
8182
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.addClassName = addClassName;\nexports.addEvent = addEvent;\nexports.addUserSelectStyles = addUserSelectStyles;\nexports.createCSSTransform = createCSSTransform;\nexports.createSVGTransform = createSVGTransform;\nexports.getTouch = getTouch;\nexports.getTouchIdentifier = getTouchIdentifier;\nexports.getTranslation = getTranslation;\nexports.innerHeight = innerHeight;\nexports.innerWidth = innerWidth;\nexports.matchesSelector = matchesSelector;\nexports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;\nexports.offsetXYFromParent = offsetXYFromParent;\nexports.outerHeight = outerHeight;\nexports.outerWidth = outerWidth;\nexports.removeClassName = removeClassName;\nexports.removeEvent = removeEvent;\nexports.removeUserSelectStyles = removeUserSelectStyles;\nvar _shims = __webpack_require__(/*! ./shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\nvar _getPrefix = _interopRequireWildcard(__webpack_require__(/*! ./getPrefix */ \"./node_modules/react-draggable/build/cjs/utils/getPrefix.js\"));\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n/*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/\nlet matchesSelectorFunc = '';\nfunction matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/{\n if (!matchesSelectorFunc) {\n matchesSelectorFunc = (0, _shims.findInArray)(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) {\n // $FlowIgnore: Doesn't think elements are indexable\n return (0, _shims.isFunction)(el[method]);\n });\n }\n\n // Might not be found entirely (not an Element?) - in that case, bail\n // $FlowIgnore: Doesn't think elements are indexable\n if (!(0, _shims.isFunction)(el[matchesSelectorFunc])) return false;\n\n // $FlowIgnore: Doesn't think elements are indexable\n return el[matchesSelectorFunc](selector);\n}\n\n// Works up the tree to the draggable itself attempting to match selector.\nfunction matchesSelectorAndParentsTo(el /*: Node*/, selector /*: string*/, baseNode /*: Node*/) /*: boolean*/{\n let node = el;\n do {\n if (matchesSelector(node, selector)) return true;\n if (node === baseNode) return false;\n // $FlowIgnore[incompatible-type]\n node = node.parentNode;\n } while (node);\n return false;\n}\nfunction addEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/, inputOptions /*: Object*/) /*: void*/{\n if (!el) return;\n const options = {\n capture: true,\n ...inputOptions\n };\n // $FlowIgnore[method-unbinding]\n if (el.addEventListener) {\n el.addEventListener(event, handler, options);\n } else if (el.attachEvent) {\n el.attachEvent('on' + event, handler);\n } else {\n // $FlowIgnore: Doesn't think elements are indexable\n el['on' + event] = handler;\n }\n}\nfunction removeEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/, inputOptions /*: Object*/) /*: void*/{\n if (!el) return;\n const options = {\n capture: true,\n ...inputOptions\n };\n // $FlowIgnore[method-unbinding]\n if (el.removeEventListener) {\n el.removeEventListener(event, handler, options);\n } else if (el.detachEvent) {\n el.detachEvent('on' + event, handler);\n } else {\n // $FlowIgnore: Doesn't think elements are indexable\n el['on' + event] = null;\n }\n}\nfunction outerHeight(node /*: HTMLElement*/) /*: number*/{\n // This is deliberately excluding margin for our calculations, since we are using\n // offsetTop which is including margin. See getBoundPosition\n let height = node.clientHeight;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height += (0, _shims.int)(computedStyle.borderTopWidth);\n height += (0, _shims.int)(computedStyle.borderBottomWidth);\n return height;\n}\nfunction outerWidth(node /*: HTMLElement*/) /*: number*/{\n // This is deliberately excluding margin for our calculations, since we are using\n // offsetLeft which is including margin. See getBoundPosition\n let width = node.clientWidth;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width += (0, _shims.int)(computedStyle.borderLeftWidth);\n width += (0, _shims.int)(computedStyle.borderRightWidth);\n return width;\n}\nfunction innerHeight(node /*: HTMLElement*/) /*: number*/{\n let height = node.clientHeight;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height -= (0, _shims.int)(computedStyle.paddingTop);\n height -= (0, _shims.int)(computedStyle.paddingBottom);\n return height;\n}\nfunction innerWidth(node /*: HTMLElement*/) /*: number*/{\n let width = node.clientWidth;\n const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width -= (0, _shims.int)(computedStyle.paddingLeft);\n width -= (0, _shims.int)(computedStyle.paddingRight);\n return width;\n}\n/*:: interface EventWithOffset {\n clientX: number, clientY: number\n}*/\n// Get from offsetParent\nfunction offsetXYFromParent(evt /*: EventWithOffset*/, offsetParent /*: HTMLElement*/, scale /*: number*/) /*: ControlPosition*/{\n const isBody = offsetParent === offsetParent.ownerDocument.body;\n const offsetParentRect = isBody ? {\n left: 0,\n top: 0\n } : offsetParent.getBoundingClientRect();\n const x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;\n const y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;\n return {\n x,\n y\n };\n}\nfunction createCSSTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: Object*/{\n const translation = getTranslation(controlPos, positionOffset, 'px');\n return {\n [(0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default)]: translation\n };\n}\nfunction createSVGTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: string*/{\n const translation = getTranslation(controlPos, positionOffset, '');\n return translation;\n}\nfunction getTranslation(_ref /*:: */, positionOffset /*: PositionOffsetControlPosition*/, unitSuffix /*: string*/) /*: string*/{\n let {\n x,\n y\n } /*: ControlPosition*/ = _ref /*: ControlPosition*/;\n let translation = \"translate(\".concat(x).concat(unitSuffix, \",\").concat(y).concat(unitSuffix, \")\");\n if (positionOffset) {\n const defaultX = \"\".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);\n const defaultY = \"\".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);\n translation = \"translate(\".concat(defaultX, \", \").concat(defaultY, \")\") + translation;\n }\n return translation;\n}\nfunction getTouch(e /*: MouseTouchEvent*/, identifier /*: number*/) /*: ?{clientX: number, clientY: number}*/{\n return e.targetTouches && (0, _shims.findInArray)(e.targetTouches, t => identifier === t.identifier) || e.changedTouches && (0, _shims.findInArray)(e.changedTouches, t => identifier === t.identifier);\n}\nfunction getTouchIdentifier(e /*: MouseTouchEvent*/) /*: ?number*/{\n if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;\n if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;\n}\n\n// User-select Hacks:\n//\n// Useful for preventing blue highlights all over everything when dragging.\n\n// Note we're passing `document` b/c we could be iframed\nfunction addUserSelectStyles(doc /*: ?Document*/) {\n if (!doc) return;\n let styleEl = doc.getElementById('react-draggable-style-el');\n if (!styleEl) {\n styleEl = doc.createElement('style');\n styleEl.type = 'text/css';\n styleEl.id = 'react-draggable-style-el';\n styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\\n';\n styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\\n';\n doc.getElementsByTagName('head')[0].appendChild(styleEl);\n }\n if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');\n}\nfunction removeUserSelectStyles(doc /*: ?Document*/) {\n if (!doc) return;\n try {\n if (doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection');\n // $FlowIgnore: IE\n if (doc.selection) {\n // $FlowIgnore: IE\n doc.selection.empty();\n } else {\n // Remove selection caused by scroll, unless it's a focused input\n // (we use doc.defaultView in case we're in an iframe)\n const selection = (doc.defaultView || window).getSelection();\n if (selection && selection.type !== 'Caret') {\n selection.removeAllRanges();\n }\n }\n } catch (e) {\n // probably IE\n }\n}\nfunction addClassName(el /*: HTMLElement*/, className /*: string*/) {\n if (el.classList) {\n el.classList.add(className);\n } else {\n if (!el.className.match(new RegExp(\"(?:^|\\\\s)\".concat(className, \"(?!\\\\S)\")))) {\n el.className += \" \".concat(className);\n }\n }\n}\nfunction removeClassName(el /*: HTMLElement*/, className /*: string*/) {\n if (el.classList) {\n el.classList.remove(className);\n } else {\n el.className = el.className.replace(new RegExp(\"(?:^|\\\\s)\".concat(className, \"(?!\\\\S)\"), 'g'), '');\n }\n}\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/utils/domFns.js?");
|
|
8171
8183
|
|
|
8172
8184
|
/***/ }),
|
|
8173
8185
|
|
|
@@ -8179,7 +8191,7 @@ eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol
|
|
|
8179
8191
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8180
8192
|
|
|
8181
8193
|
"use strict";
|
|
8182
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.
|
|
8194
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.browserPrefixToKey = browserPrefixToKey;\nexports.browserPrefixToStyle = browserPrefixToStyle;\nexports.default = void 0;\nexports.getPrefix = getPrefix;\nconst prefixes = ['Moz', 'Webkit', 'O', 'ms'];\nfunction getPrefix() /*: string*/{\n var _window$document;\n let prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';\n // Ensure we're running in an environment where there is actually a global\n // `window` obj\n if (typeof window === 'undefined') return '';\n\n // If we're in a pseudo-browser server-side environment, this access\n // path may not exist, so bail out if it doesn't.\n const style = (_window$document = window.document) === null || _window$document === void 0 || (_window$document = _window$document.documentElement) === null || _window$document === void 0 ? void 0 : _window$document.style;\n if (!style) return '';\n if (prop in style) return '';\n for (let i = 0; i < prefixes.length; i++) {\n if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];\n }\n return '';\n}\nfunction browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/{\n return prefix ? \"\".concat(prefix).concat(kebabToTitleCase(prop)) : prop;\n}\nfunction browserPrefixToStyle(prop /*: string*/, prefix /*: string*/) /*: string*/{\n return prefix ? \"-\".concat(prefix.toLowerCase(), \"-\").concat(prop) : prop;\n}\nfunction kebabToTitleCase(str /*: string*/) /*: string*/{\n let out = '';\n let shouldCapitalize = true;\n for (let i = 0; i < str.length; i++) {\n if (shouldCapitalize) {\n out += str[i].toUpperCase();\n shouldCapitalize = false;\n } else if (str[i] === '-') {\n shouldCapitalize = true;\n } else {\n out += str[i];\n }\n }\n return out;\n}\n\n// Default export is the prefix itself, like 'Moz', 'Webkit', etc\n// Note that you may have to re-test for certain things; for instance, Chrome 50\n// can handle unprefixed `transform`, but not unprefixed `user-select`\nvar _default = exports.default = (getPrefix() /*: string*/);\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/utils/getPrefix.js?");
|
|
8183
8195
|
|
|
8184
8196
|
/***/ }),
|
|
8185
8197
|
|
|
@@ -8191,7 +8203,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n
|
|
|
8191
8203
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8192
8204
|
|
|
8193
8205
|
"use strict";
|
|
8194
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = log;\n
|
|
8206
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = log;\n/*eslint no-console:0*/\nfunction log() {\n if (undefined) console.log(...arguments);\n}\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/utils/log.js?");
|
|
8195
8207
|
|
|
8196
8208
|
/***/ }),
|
|
8197
8209
|
|
|
@@ -8203,7 +8215,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n
|
|
|
8203
8215
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8204
8216
|
|
|
8205
8217
|
"use strict";
|
|
8206
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.
|
|
8218
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canDragX = canDragX;\nexports.canDragY = canDragY;\nexports.createCoreData = createCoreData;\nexports.createDraggableData = createDraggableData;\nexports.getBoundPosition = getBoundPosition;\nexports.getControlPosition = getControlPosition;\nexports.snapToGrid = snapToGrid;\nvar _shims = __webpack_require__(/*! ./shims */ \"./node_modules/react-draggable/build/cjs/utils/shims.js\");\nvar _domFns = __webpack_require__(/*! ./domFns */ \"./node_modules/react-draggable/build/cjs/utils/domFns.js\");\n/*:: import type Draggable from '../Draggable';*/\n/*:: import type {Bounds, ControlPosition, DraggableData, MouseTouchEvent} from './types';*/\n/*:: import type DraggableCore from '../DraggableCore';*/\nfunction getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: number*/) /*: [number, number]*/{\n // If no bounds, short-circuit and move on\n if (!draggable.props.bounds) return [x, y];\n\n // Clone new bounds\n let {\n bounds\n } = draggable.props;\n bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);\n const node = findDOMNode(draggable);\n if (typeof bounds === 'string') {\n const {\n ownerDocument\n } = node;\n const ownerWindow = ownerDocument.defaultView;\n let boundNode;\n if (bounds === 'parent') {\n boundNode = node.parentNode;\n } else {\n boundNode = ownerDocument.querySelector(bounds);\n }\n if (!(boundNode instanceof ownerWindow.HTMLElement)) {\n throw new Error('Bounds selector \"' + bounds + '\" could not find an element.');\n }\n const boundNodeEl /*: HTMLElement*/ = boundNode; // for Flow, can't seem to refine correctly\n const nodeStyle = ownerWindow.getComputedStyle(node);\n const boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl);\n // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.\n bounds = {\n left: -node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingLeft) + (0, _shims.int)(nodeStyle.marginLeft),\n top: -node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingTop) + (0, _shims.int)(nodeStyle.marginTop),\n right: (0, _domFns.innerWidth)(boundNodeEl) - (0, _domFns.outerWidth)(node) - node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingRight) - (0, _shims.int)(nodeStyle.marginRight),\n bottom: (0, _domFns.innerHeight)(boundNodeEl) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom)\n };\n }\n\n // Keep x and y below right and bottom limits...\n if ((0, _shims.isNum)(bounds.right)) x = Math.min(x, bounds.right);\n if ((0, _shims.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom);\n\n // But above left and top limits.\n if ((0, _shims.isNum)(bounds.left)) x = Math.max(x, bounds.left);\n if ((0, _shims.isNum)(bounds.top)) y = Math.max(y, bounds.top);\n return [x, y];\n}\nfunction snapToGrid(grid /*: [number, number]*/, pendingX /*: number*/, pendingY /*: number*/) /*: [number, number]*/{\n const x = Math.round(pendingX / grid[0]) * grid[0];\n const y = Math.round(pendingY / grid[1]) * grid[1];\n return [x, y];\n}\nfunction canDragX(draggable /*: Draggable*/) /*: boolean*/{\n return draggable.props.axis === 'both' || draggable.props.axis === 'x';\n}\nfunction canDragY(draggable /*: Draggable*/) /*: boolean*/{\n return draggable.props.axis === 'both' || draggable.props.axis === 'y';\n}\n\n// Get {x, y} positions from event.\nfunction getControlPosition(e /*: MouseTouchEvent*/, touchIdentifier /*: ?number*/, draggableCore /*: DraggableCore*/) /*: ?ControlPosition*/{\n const touchObj = typeof touchIdentifier === 'number' ? (0, _domFns.getTouch)(e, touchIdentifier) : null;\n if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch\n const node = findDOMNode(draggableCore);\n // User can provide an offsetParent if desired.\n const offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;\n return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);\n}\n\n// Create an data object exposed by <DraggableCore>'s events\nfunction createCoreData(draggable /*: DraggableCore*/, x /*: number*/, y /*: number*/) /*: DraggableData*/{\n const isStart = !(0, _shims.isNum)(draggable.lastX);\n const node = findDOMNode(draggable);\n if (isStart) {\n // If this is our first move, use the x and y as last coords.\n return {\n node,\n deltaX: 0,\n deltaY: 0,\n lastX: x,\n lastY: y,\n x,\n y\n };\n } else {\n // Otherwise calculate proper values.\n return {\n node,\n deltaX: x - draggable.lastX,\n deltaY: y - draggable.lastY,\n lastX: draggable.lastX,\n lastY: draggable.lastY,\n x,\n y\n };\n }\n}\n\n// Create an data exposed by <Draggable>'s events\nfunction createDraggableData(draggable /*: Draggable*/, coreData /*: DraggableData*/) /*: DraggableData*/{\n const scale = draggable.props.scale;\n return {\n node: coreData.node,\n x: draggable.state.x + coreData.deltaX / scale,\n y: draggable.state.y + coreData.deltaY / scale,\n deltaX: coreData.deltaX / scale,\n deltaY: coreData.deltaY / scale,\n lastX: draggable.state.x,\n lastY: draggable.state.y\n };\n}\n\n// A lot faster than stringify/parse\nfunction cloneBounds(bounds /*: Bounds*/) /*: Bounds*/{\n return {\n left: bounds.left,\n top: bounds.top,\n right: bounds.right,\n bottom: bounds.bottom\n };\n}\nfunction findDOMNode(draggable /*: Draggable | DraggableCore*/) /*: HTMLElement*/{\n const node = draggable.findDOMNode();\n if (!node) {\n throw new Error('<DraggableCore>: Unmounted during event!');\n }\n // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME\n return node;\n}\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/utils/positionFns.js?");
|
|
8207
8219
|
|
|
8208
8220
|
/***/ }),
|
|
8209
8221
|
|
|
@@ -8215,7 +8227,89 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n
|
|
|
8215
8227
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8216
8228
|
|
|
8217
8229
|
"use strict";
|
|
8218
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.
|
|
8230
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dontSetMe = dontSetMe;\nexports.findInArray = findInArray;\nexports.int = int;\nexports.isFunction = isFunction;\nexports.isNum = isNum;\n// @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc\nfunction findInArray(array /*: Array<any> | TouchList*/, callback /*: Function*/) /*: any*/{\n for (let i = 0, length = array.length; i < length; i++) {\n if (callback.apply(callback, [array[i], i, array])) return array[i];\n }\n}\nfunction isFunction(func /*: any*/) /*: boolean %checks*/{\n // $FlowIgnore[method-unbinding]\n return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]';\n}\nfunction isNum(num /*: any*/) /*: boolean %checks*/{\n return typeof num === 'number' && !isNaN(num);\n}\nfunction int(a /*: string*/) /*: number*/{\n return parseInt(a, 10);\n}\nfunction dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) /*: ?Error*/{\n if (props[propName]) {\n return new Error(\"Invalid prop \".concat(propName, \" passed to \").concat(componentName, \" - do not set this, set it on the child.\"));\n }\n}\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/build/cjs/utils/shims.js?");
|
|
8231
|
+
|
|
8232
|
+
/***/ }),
|
|
8233
|
+
|
|
8234
|
+
/***/ "./node_modules/react-draggable/node_modules/prop-types/checkPropTypes.js":
|
|
8235
|
+
/*!********************************************************************************!*\
|
|
8236
|
+
!*** ./node_modules/react-draggable/node_modules/prop-types/checkPropTypes.js ***!
|
|
8237
|
+
\********************************************************************************/
|
|
8238
|
+
/*! no static exports found */
|
|
8239
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8240
|
+
|
|
8241
|
+
"use strict";
|
|
8242
|
+
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar printWarning = function() {};\n\nif (true) {\n var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"./node_modules/react-draggable/node_modules/prop-types/lib/ReactPropTypesSecret.js\");\n var loggedTypeFailures = {};\n var has = __webpack_require__(/*! ./lib/has */ \"./node_modules/react-draggable/node_modules/prop-types/lib/has.js\");\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (true) {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (true) {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/prop-types/checkPropTypes.js?");
|
|
8243
|
+
|
|
8244
|
+
/***/ }),
|
|
8245
|
+
|
|
8246
|
+
/***/ "./node_modules/react-draggable/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
8247
|
+
/*!*****************************************************************************************!*\
|
|
8248
|
+
!*** ./node_modules/react-draggable/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
8249
|
+
\*****************************************************************************************/
|
|
8250
|
+
/*! no static exports found */
|
|
8251
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8252
|
+
|
|
8253
|
+
"use strict";
|
|
8254
|
+
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactIs = __webpack_require__(/*! react-is */ \"./node_modules/react-draggable/node_modules/react-is/index.js\");\nvar assign = __webpack_require__(/*! object-assign */ \"./node_modules/object-assign/index.js\");\n\nvar ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"./node_modules/react-draggable/node_modules/prop-types/lib/ReactPropTypesSecret.js\");\nvar has = __webpack_require__(/*! ./lib/has */ \"./node_modules/react-draggable/node_modules/prop-types/lib/has.js\");\nvar checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ \"./node_modules/react-draggable/node_modules/prop-types/checkPropTypes.js\");\n\nvar printWarning = function() {};\n\nif (true) {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (true) {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if ( true && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (true) {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/prop-types/factoryWithTypeCheckers.js?");
|
|
8255
|
+
|
|
8256
|
+
/***/ }),
|
|
8257
|
+
|
|
8258
|
+
/***/ "./node_modules/react-draggable/node_modules/prop-types/index.js":
|
|
8259
|
+
/*!***********************************************************************!*\
|
|
8260
|
+
!*** ./node_modules/react-draggable/node_modules/prop-types/index.js ***!
|
|
8261
|
+
\***********************************************************************/
|
|
8262
|
+
/*! no static exports found */
|
|
8263
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8264
|
+
|
|
8265
|
+
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (true) {\n var ReactIs = __webpack_require__(/*! react-is */ \"./node_modules/react-draggable/node_modules/react-is/index.js\");\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ \"./node_modules/react-draggable/node_modules/prop-types/factoryWithTypeCheckers.js\")(ReactIs.isElement, throwOnDirectAccess);\n} else {}\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/prop-types/index.js?");
|
|
8266
|
+
|
|
8267
|
+
/***/ }),
|
|
8268
|
+
|
|
8269
|
+
/***/ "./node_modules/react-draggable/node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
8270
|
+
/*!******************************************************************************************!*\
|
|
8271
|
+
!*** ./node_modules/react-draggable/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
8272
|
+
\******************************************************************************************/
|
|
8273
|
+
/*! no static exports found */
|
|
8274
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8275
|
+
|
|
8276
|
+
"use strict";
|
|
8277
|
+
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/prop-types/lib/ReactPropTypesSecret.js?");
|
|
8278
|
+
|
|
8279
|
+
/***/ }),
|
|
8280
|
+
|
|
8281
|
+
/***/ "./node_modules/react-draggable/node_modules/prop-types/lib/has.js":
|
|
8282
|
+
/*!*************************************************************************!*\
|
|
8283
|
+
!*** ./node_modules/react-draggable/node_modules/prop-types/lib/has.js ***!
|
|
8284
|
+
\*************************************************************************/
|
|
8285
|
+
/*! no static exports found */
|
|
8286
|
+
/***/ (function(module, exports) {
|
|
8287
|
+
|
|
8288
|
+
eval("module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/prop-types/lib/has.js?");
|
|
8289
|
+
|
|
8290
|
+
/***/ }),
|
|
8291
|
+
|
|
8292
|
+
/***/ "./node_modules/react-draggable/node_modules/react-is/cjs/react-is.development.js":
|
|
8293
|
+
/*!****************************************************************************************!*\
|
|
8294
|
+
!*** ./node_modules/react-draggable/node_modules/react-is/cjs/react-is.development.js ***!
|
|
8295
|
+
\****************************************************************************************/
|
|
8296
|
+
/*! no static exports found */
|
|
8297
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8298
|
+
|
|
8299
|
+
"use strict";
|
|
8300
|
+
eval("/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n\n\nif (true) {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/react-is/cjs/react-is.development.js?");
|
|
8301
|
+
|
|
8302
|
+
/***/ }),
|
|
8303
|
+
|
|
8304
|
+
/***/ "./node_modules/react-draggable/node_modules/react-is/index.js":
|
|
8305
|
+
/*!*********************************************************************!*\
|
|
8306
|
+
!*** ./node_modules/react-draggable/node_modules/react-is/index.js ***!
|
|
8307
|
+
\*********************************************************************/
|
|
8308
|
+
/*! no static exports found */
|
|
8309
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8310
|
+
|
|
8311
|
+
"use strict";
|
|
8312
|
+
eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ \"./node_modules/react-draggable/node_modules/react-is/cjs/react-is.development.js\");\n}\n\n\n//# sourceURL=webpack://%5Bname%5D/./node_modules/react-draggable/node_modules/react-is/index.js?");
|
|
8219
8313
|
|
|
8220
8314
|
/***/ }),
|
|
8221
8315
|
|