(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[140],{ /***/ "+/wB": /*!**********************************************************************************!*\ !*** ./src/pages/Engineering/components/Navigation/StyleWrap/index.less?modules ***! \**********************************************************************************/ /*! no static exports found */ /*! exports used: default */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin module.exports = {"styleWrapContainer":"styleWrapContainer___2TCoi","default":"default___25gE1","header":"header___2j2v7","tabBarContainer":"tabBarContainer___XznTb","large":"large___yYcpX","middle":"middle___2Dgvf","title":"title___360EH","tabBarText":"tabBarText___36TDu","small":"small___3ziGY"}; /***/ }), /***/ "+t3w": /*!******************************************************************!*\ !*** ./src/pages/Engineering/Navigation/Home/index.less?modules ***! \******************************************************************/ /*! no static exports found */ /*! exports used: default */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin module.exports = {"navigationHomeContainer":"navigationHomeContainer___2iubA"}; /***/ }), /***/ "BU3w": /*!***************************************************!*\ !*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***! \***************************************************/ /*! exports provided: injectCSS, updateCSS */ /*! exports used: updateCSS */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export injectCSS */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateCSS; }); /* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDom */ "MNnm"); var MARK_KEY = "rc-util-key"; function getContainer(option) { if (option.attachTo) { return option.attachTo; } var head = document.querySelector('head'); return head || document.body; } function injectCSS(css) { var _option$csp; var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (!Object(_canUseDom__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])()) { return null; } var styleNode = document.createElement('style'); if ((_option$csp = option.csp) === null || _option$csp === void 0 ? void 0 : _option$csp.nonce) { var _option$csp2; styleNode.nonce = (_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce; } styleNode.innerHTML = css; var container = getContainer(option); var firstChild = container.firstChild; if (option.prepend && container.prepend) { // Use `prepend` first container.prepend(styleNode); } else if (option.prepend && firstChild) { // Fallback to `insertBefore` like IE not support `prepend` container.insertBefore(styleNode, firstChild); } else { container.appendChild(styleNode); } return styleNode; } var containerCache = new Map(); function updateCSS(css, key) { var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var container = getContainer(option); // Get real parent if (!containerCache.has(container)) { var placeholderStyle = injectCSS('', option); var parentNode = placeholderStyle.parentNode; containerCache.set(container, parentNode); parentNode.removeChild(placeholderStyle); } var existNode = Array.from(containerCache.get(container).children).find(function (node) { return node.tagName === 'STYLE' && node[MARK_KEY] === key; }); if (existNode) { var _option$csp3, _option$csp4; if (((_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce) && existNode.nonce !== ((_option$csp4 = option.csp) === null || _option$csp4 === void 0 ? void 0 : _option$csp4.nonce)) { var _option$csp5; existNode.nonce = (_option$csp5 = option.csp) === null || _option$csp5 === void 0 ? void 0 : _option$csp5.nonce; } if (existNode.innerHTML !== css) { existNode.innerHTML = css; } return existNode; } var newNode = injectCSS(css, option); newNode[MARK_KEY] = key; return newNode; } /***/ }), /***/ "Gytx": /*!********************************************!*\ !*** ./node_modules/shallowequal/index.js ***! \********************************************/ /*! no static exports found */ /*! exports used: default */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports) { // module.exports = function shallowEqual(objA, objB, compare, compareContext) { var ret = compare ? compare.call(compareContext, objA, objB) : void 0; if (ret !== void 0) { return !!ret; } if (objA === objB) { return true; } if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { return false; } var keysA = Object.keys(objA); var keysB = Object.keys(objB); if (keysA.length !== keysB.length) { return false; } var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); // Test for A's keys different from B. for (var idx = 0; idx < keysA.length; idx++) { var key = keysA[idx]; if (!bHasOwnProperty(key)) { return false; } var valueA = objA[key]; var valueB = objB[key]; ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; if (ret === false || (ret === void 0 && valueA !== valueB)) { return false; } } return true; }; /***/ }), /***/ "LdHM": /*!********************************************************!*\ !*** ./node_modules/rc-select/es/index.js + 6 modules ***! \********************************************************/ /*! exports provided: Option, OptGroup, default */ /*! exports used: OptGroup, Option, default */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */ /*! ModuleConcatenation bailout: Cannot concat with external "window.React" (<- Module is not an ECMAScript module) */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ es_Option; }); __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ es_OptGroup; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js var classCallCheck = __webpack_require__("1OyB"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js var createClass = __webpack_require__("vuIU"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js var inherits = __webpack_require__("Ji7U"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules var createSuper = __webpack_require__("LK+K"); // EXTERNAL MODULE: external "window.React" var external_window_React_ = __webpack_require__("cDcd"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__("rePB"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js var objectWithoutProperties = __webpack_require__("Ff2n"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__("ODXe"); // EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js var KeyCode = __webpack_require__("4IlW"); // EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js var pickAttrs = __webpack_require__("bX4T"); // EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMemo.js var useMemo = __webpack_require__("YrtM"); // EXTERNAL MODULE: ./node_modules/classnames/index.js var classnames = __webpack_require__("TSYQ"); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // EXTERNAL MODULE: ./node_modules/rc-virtual-list/es/index.js + 19 modules var es = __webpack_require__("+nKL"); // EXTERNAL MODULE: ./node_modules/rc-select/es/TransBtn.js var TransBtn = __webpack_require__("8OUc"); // CONCATENATED MODULE: ./node_modules/rc-select/es/OptionList.js /** * Using virtual list of option display. * Will fallback to dom if use customize render. */ var OptionList_OptionList = function OptionList(_ref, ref) { var prefixCls = _ref.prefixCls, id = _ref.id, flattenOptions = _ref.flattenOptions, childrenAsData = _ref.childrenAsData, values = _ref.values, searchValue = _ref.searchValue, multiple = _ref.multiple, defaultActiveFirstOption = _ref.defaultActiveFirstOption, height = _ref.height, itemHeight = _ref.itemHeight, notFoundContent = _ref.notFoundContent, open = _ref.open, menuItemSelectedIcon = _ref.menuItemSelectedIcon, virtual = _ref.virtual, onSelect = _ref.onSelect, onToggleOpen = _ref.onToggleOpen, onActiveValue = _ref.onActiveValue, onScroll = _ref.onScroll, onMouseEnter = _ref.onMouseEnter; var itemPrefixCls = "".concat(prefixCls, "-item"); var memoFlattenOptions = Object(useMemo["a" /* default */])(function () { return flattenOptions; }, [open, flattenOptions], function (prev, next) { return next[0] && prev[1] !== next[1]; }); // =========================== List =========================== var listRef = external_window_React_["useRef"](null); var onListMouseDown = function onListMouseDown(event) { event.preventDefault(); }; var scrollIntoView = function scrollIntoView(index) { if (listRef.current) { listRef.current.scrollTo({ index: index }); } }; // ========================== Active ========================== var getEnabledActiveIndex = function getEnabledActiveIndex(index) { var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; var len = memoFlattenOptions.length; for (var i = 0; i < len; i += 1) { var current = (index + i * offset + len) % len; var _memoFlattenOptions$c = memoFlattenOptions[current], group = _memoFlattenOptions$c.group, data = _memoFlattenOptions$c.data; if (!group && !data.disabled) { return current; } } return -1; }; var _React$useState = external_window_React_["useState"](function () { return getEnabledActiveIndex(0); }), _React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2), activeIndex = _React$useState2[0], setActiveIndex = _React$useState2[1]; var setActive = function setActive(index) { setActiveIndex(index); // Trigger active event var flattenItem = memoFlattenOptions[index]; if (!flattenItem) { onActiveValue(null, -1); return; } onActiveValue(flattenItem.data.value, index); }; // Auto active first item when list length or searchValue changed external_window_React_["useEffect"](function () { setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1); }, [memoFlattenOptions.length, searchValue]); // Auto scroll to item position in single mode external_window_React_["useEffect"](function () { /** * React will skip `onChange` when component update. * `setActive` function will call root accessibility state update which makes re-render. * So we need to delay to let Input component trigger onChange first. */ var timeoutId = setTimeout(function () { if (!multiple && open && values.size === 1) { var value = Array.from(values)[0]; var index = memoFlattenOptions.findIndex(function (_ref2) { var data = _ref2.data; return data.value === value; }); setActive(index); scrollIntoView(index); } }); return function () { return clearTimeout(timeoutId); }; }, [open]); // ========================== Values ========================== var onSelectValue = function onSelectValue(value) { if (value !== undefined) { onSelect(value, { selected: !values.has(value) }); } // Single mode should always close by select if (!multiple) { onToggleOpen(false); } }; // ========================= Keyboard ========================= external_window_React_["useImperativeHandle"](ref, function () { return { onKeyDown: function onKeyDown(event) { var which = event.which; switch (which) { // >>> Arrow keys case KeyCode["a" /* default */].UP: case KeyCode["a" /* default */].DOWN: { var offset = 0; if (which === KeyCode["a" /* default */].UP) { offset = -1; } else if (which === KeyCode["a" /* default */].DOWN) { offset = 1; } if (offset !== 0) { var nextActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset); scrollIntoView(nextActiveIndex); setActive(nextActiveIndex); } break; } // >>> Select case KeyCode["a" /* default */].ENTER: { // value var item = memoFlattenOptions[activeIndex]; if (item && !item.data.disabled) { onSelectValue(item.data.value); } else { onSelectValue(undefined); } if (open) { event.preventDefault(); } break; } // >>> Close case KeyCode["a" /* default */].ESC: { onToggleOpen(false); } } }, onKeyUp: function onKeyUp() {}, scrollTo: function scrollTo(index) { scrollIntoView(index); } }; }); // ========================== Render ========================== if (memoFlattenOptions.length === 0) { return external_window_React_["createElement"]("div", { role: "listbox", id: "".concat(id, "_list"), className: "".concat(itemPrefixCls, "-empty"), onMouseDown: onListMouseDown }, notFoundContent); } function renderItem(index) { var item = memoFlattenOptions[index]; if (!item) return null; var itemData = item.data || {}; var value = itemData.value, label = itemData.label, children = itemData.children; var attrs = Object(pickAttrs["a" /* default */])(itemData, true); var mergedLabel = childrenAsData ? children : label; return item ? external_window_React_["createElement"]("div", Object.assign({ "aria-label": typeof mergedLabel === 'string' ? mergedLabel : null }, attrs, { key: index, role: "option", id: "".concat(id, "_list_").concat(index), "aria-selected": values.has(value) }), value) : null; } return external_window_React_["createElement"](external_window_React_["Fragment"], null, external_window_React_["createElement"]("div", { role: "listbox", id: "".concat(id, "_list"), style: { height: 0, width: 0, overflow: 'hidden' } }, renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), external_window_React_["createElement"](es["a" /* default */], { itemKey: "key", ref: listRef, data: memoFlattenOptions, height: height, itemHeight: itemHeight, fullHeight: false, onMouseDown: onListMouseDown, onScroll: onScroll, virtual: virtual, onMouseEnter: onMouseEnter }, function (_ref3, itemIndex) { var _classNames; var group = _ref3.group, groupOption = _ref3.groupOption, data = _ref3.data; var label = data.label, key = data.key; // Group if (group) { return external_window_React_["createElement"]("div", { className: classnames_default()(itemPrefixCls, "".concat(itemPrefixCls, "-group")) }, label !== undefined ? label : key); } var disabled = data.disabled, value = data.value, title = data.title, children = data.children, style = data.style, className = data.className, otherProps = Object(objectWithoutProperties["a" /* default */])(data, ["disabled", "value", "title", "children", "style", "className"]); // Option var selected = values.has(value); var optionPrefixCls = "".concat(itemPrefixCls, "-option"); var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, Object(defineProperty["a" /* default */])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), Object(defineProperty["a" /* default */])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), Object(defineProperty["a" /* default */])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), Object(defineProperty["a" /* default */])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames)); var mergedLabel = childrenAsData ? children : label; var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected; return external_window_React_["createElement"]("div", Object.assign({}, otherProps, { "aria-selected": selected, className: optionClassName, title: title, onMouseMove: function onMouseMove() { if (activeIndex === itemIndex || disabled) { return; } setActive(itemIndex); }, onClick: function onClick() { if (!disabled) { onSelectValue(value); } }, style: style }), external_window_React_["createElement"]("div", { className: "".concat(optionPrefixCls, "-content") }, mergedLabel || value), external_window_React_["isValidElement"](menuItemSelectedIcon) || selected, iconVisible && external_window_React_["createElement"](TransBtn["a" /* default */], { className: "".concat(itemPrefixCls, "-option-state"), customizeIcon: menuItemSelectedIcon, customizeIconProps: { isSelected: selected } }, selected ? '✓' : null)); })); }; var RefOptionList = external_window_React_["forwardRef"](OptionList_OptionList); RefOptionList.displayName = 'OptionList'; /* harmony default export */ var es_OptionList = (RefOptionList); // CONCATENATED MODULE: ./node_modules/rc-select/es/Option.js /** This is a placeholder, not real render in dom */ var Option = function Option() { return null; }; Option.isSelectOption = true; /* harmony default export */ var es_Option = (Option); // CONCATENATED MODULE: ./node_modules/rc-select/es/OptGroup.js /** This is a placeholder, not real render in dom */ var OptGroup = function OptGroup() { return null; }; OptGroup.isSelectOptGroup = true; /* harmony default export */ var es_OptGroup = (OptGroup); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js var objectSpread2 = __webpack_require__("VTBJ"); // EXTERNAL MODULE: ./node_modules/rc-util/es/Children/toArray.js var toArray = __webpack_require__("Zm9Q"); // CONCATENATED MODULE: ./node_modules/rc-select/es/utils/legacyUtil.js function convertNodeToOption(node) { var key = node.key, _node$props = node.props, children = _node$props.children, value = _node$props.value, restProps = Object(objectWithoutProperties["a" /* default */])(_node$props, ["children", "value"]); return Object(objectSpread2["a" /* default */])({ key: key, value: value !== undefined ? value : key, children: children }, restProps); } function convertChildrenToData(nodes) { var optionOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; return Object(toArray["a" /* default */])(nodes).map(function (node, index) { if (!external_window_React_["isValidElement"](node) || !node.type) { return null; } var isSelectOptGroup = node.type.isSelectOptGroup, key = node.key, _node$props2 = node.props, children = _node$props2.children, restProps = Object(objectWithoutProperties["a" /* default */])(_node$props2, ["children"]); if (optionOnly || !isSelectOptGroup) { return convertNodeToOption(node); } return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({ key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"), label: key }, restProps), {}, { options: convertChildrenToData(children) }); }).filter(function (data) { return data; }); } // EXTERNAL MODULE: ./node_modules/rc-select/es/utils/valueUtil.js var valueUtil = __webpack_require__("2Qr1"); // EXTERNAL MODULE: ./node_modules/rc-select/es/generate.js + 11 modules var generate = __webpack_require__("qNPg"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js var esm_typeof = __webpack_require__("U8pU"); // EXTERNAL MODULE: ./node_modules/rc-util/es/warning.js var warning = __webpack_require__("Kwbf"); // EXTERNAL MODULE: ./node_modules/rc-select/es/utils/commonUtil.js var commonUtil = __webpack_require__("WKfj"); // CONCATENATED MODULE: ./node_modules/rc-select/es/utils/warningPropsUtil.js function warningProps(props) { var mode = props.mode, options = props.options, children = props.children, backfill = props.backfill, allowClear = props.allowClear, placeholder = props.placeholder, getInputElement = props.getInputElement, showSearch = props.showSearch, onSearch = props.onSearch, defaultOpen = props.defaultOpen, autoFocus = props.autoFocus, labelInValue = props.labelInValue, value = props.value, inputValue = props.inputValue, optionLabelProp = props.optionLabelProp; var multiple = mode === 'multiple' || mode === 'tags'; var mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox'; var mergedOptions = options || convertChildrenToData(children); // `tags` should not set option as disabled Object(warning["a" /* default */])(mode !== 'tags' || mergedOptions.every(function (opt) { return !opt.disabled; }), 'Please avoid setting option to disabled in tags mode since user can always type text as tag.'); // `combobox` & `tags` should option be `string` type if (mode === 'tags' || mode === 'combobox') { var hasNumberValue = mergedOptions.some(function (item) { if (item.options) { return item.options.some(function (opt) { return typeof ('value' in opt ? opt.value : opt.key) === 'number'; }); } return typeof ('value' in item ? item.value : item.key) === 'number'; }); Object(warning["a" /* default */])(!hasNumberValue, '`value` of Option should not use number type when `mode` is `tags` or `combobox`.'); } // `combobox` should not use `optionLabelProp` Object(warning["a" /* default */])(mode !== 'combobox' || !optionLabelProp, '`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.'); // Only `combobox` support `backfill` Object(warning["a" /* default */])(mode === 'combobox' || !backfill, '`backfill` only works with `combobox` mode.'); // Only `combobox` support `getInputElement` Object(warning["a" /* default */])(mode === 'combobox' || !getInputElement, '`getInputElement` only work with `combobox` mode.'); // Customize `getInputElement` should not use `allowClear` & `placeholder` Object(warning["b" /* noteOnce */])(mode !== 'combobox' || !getInputElement || !allowClear || !placeholder, 'Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.'); // `onSearch` should use in `combobox` or `showSearch` if (onSearch && !mergedShowSearch && mode !== 'combobox' && mode !== 'tags') { Object(warning["a" /* default */])(false, '`onSearch` should work with `showSearch` instead of use alone.'); } Object(warning["b" /* noteOnce */])(!defaultOpen || autoFocus, '`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed.'); if (value !== undefined && value !== null) { var values = Object(commonUtil["d" /* toArray */])(value); Object(warning["a" /* default */])(!labelInValue || values.every(function (val) { return Object(esm_typeof["a" /* default */])(val) === 'object' && ('key' in val || 'value' in val); }), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`'); Object(warning["a" /* default */])(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`'); } // Syntactic sugar should use correct children type if (children) { var invalidateChildType = null; Object(toArray["a" /* default */])(children).some(function (node) { if (!external_window_React_["isValidElement"](node) || !node.type) { return false; } var type = node.type; if (type.isSelectOption) { return false; } if (type.isSelectOptGroup) { var allChildrenValid = Object(toArray["a" /* default */])(node.props.children).every(function (subNode) { if (!external_window_React_["isValidElement"](subNode) || !node.type || subNode.type.isSelectOption) { return true; } invalidateChildType = subNode.type; return false; }); if (allChildrenValid) { return false; } return true; } invalidateChildType = type; return true; }); if (invalidateChildType) { Object(warning["a" /* default */])(false, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(invalidateChildType.displayName || invalidateChildType.name || invalidateChildType, "`.")); } Object(warning["a" /* default */])(inputValue === undefined, '`inputValue` is deprecated, please use `searchValue` instead.'); } } /* harmony default export */ var warningPropsUtil = (warningProps); // CONCATENATED MODULE: ./node_modules/rc-select/es/Select.js /** * To match accessibility requirement, we always provide an input in the component. * Other element will not set `tabIndex` to avoid `onBlur` sequence problem. * For focused select, we set `aria-live="polite"` to update the accessibility content. * * ref: * - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions * * New api: * - listHeight * - listItemHeight * - component * * Remove deprecated api: * - multiple * - tags * - combobox * - firstActiveValue * - dropdownMenuStyle * - openClassName (Not list in api) * * Update: * - `backfill` only support `combobox` mode * - `combobox` mode not support `labelInValue` since it's meaningless * - `getInputElement` only support `combobox` mode * - `onChange` return OptionData instead of ReactNode * - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode * - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option * - `combobox` mode not support `optionLabelProp` */ var RefSelect = Object(generate["a" /* default */])({ prefixCls: 'rc-select', components: { optionList: es_OptionList }, convertChildrenToData: convertChildrenToData, flattenOptions: valueUtil["d" /* flattenOptions */], getLabeledValue: valueUtil["e" /* getLabeledValue */], filterOptions: valueUtil["b" /* filterOptions */], isValueDisabled: valueUtil["g" /* isValueDisabled */], findValueOption: valueUtil["c" /* findValueOption */], warningProps: warningPropsUtil, fillOptionsWithMissingValue: valueUtil["a" /* fillOptionsWithMissingValue */] }); /** * Typescript not support generic with function component, * we have to wrap an class component to handle this. */ var Select_Select = /*#__PURE__*/function (_React$Component) { Object(inherits["a" /* default */])(Select, _React$Component); var _super = Object(createSuper["a" /* default */])(Select); function Select() { var _this; Object(classCallCheck["a" /* default */])(this, Select); _this = _super.apply(this, arguments); _this.selectRef = external_window_React_["createRef"](); _this.focus = function () { _this.selectRef.current.focus(); }; _this.blur = function () { _this.selectRef.current.blur(); }; return _this; } Object(createClass["a" /* default */])(Select, [{ key: "render", value: function render() { return external_window_React_["createElement"](RefSelect, Object.assign({ ref: this.selectRef }, this.props)); } }]); return Select; }(external_window_React_["Component"]); Select_Select.Option = es_Option; Select_Select.OptGroup = es_OptGroup; /* harmony default export */ var es_Select = (Select_Select); // CONCATENATED MODULE: ./node_modules/rc-select/es/index.js /* harmony default export */ var rc_select_es = __webpack_exports__["c"] = (es_Select); /***/ }), /***/ "Y1PL": /*!**********************************************************!*\ !*** ./node_modules/rc-textarea/es/index.js + 7 modules ***! \**********************************************************/ /*! exports provided: ResizableTextArea, default */ /*! all exports used */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with external "window.React" (<- Module is not an ECMAScript module) */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "ResizableTextArea", function() { return /* reexport */ es_ResizableTextArea; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__("wx14"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js var classCallCheck = __webpack_require__("1OyB"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js var createClass = __webpack_require__("vuIU"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js var inherits = __webpack_require__("Ji7U"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules var createSuper = __webpack_require__("LK+K"); // EXTERNAL MODULE: external "window.React" var external_window_React_ = __webpack_require__("cDcd"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js var objectSpread2 = __webpack_require__("VTBJ"); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__("rePB"); // EXTERNAL MODULE: ./node_modules/rc-util/es/Children/toArray.js var toArray = __webpack_require__("Zm9Q"); // EXTERNAL MODULE: ./node_modules/rc-util/es/warning.js var warning = __webpack_require__("Kwbf"); // EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js var ref = __webpack_require__("c+Xe"); // EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/findDOMNode.js var findDOMNode = __webpack_require__("m+aA"); // EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js var ResizeObserver_es = __webpack_require__("bdgK"); // CONCATENATED MODULE: ./node_modules/rc-textarea/node_modules/rc-resize-observer/es/utils/observerUtil.js // =============================== Const =============================== var elementListeners = new Map(); function observerUtil_onResize(entities) { entities.forEach(function (entity) { var _elementListeners$get; var target = entity.target; (_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) { return listener(target); }); }); } // Note: ResizeObserver polyfill not support option to measure border-box resize var resizeObserver = new ResizeObserver_es["default"](observerUtil_onResize); // Dev env only var _el = false ? undefined : null; // eslint-disable-line var _rs = false ? undefined : null; // eslint-disable-line // ============================== Observe ============================== function observe(element, callback) { if (!elementListeners.has(element)) { elementListeners.set(element, new Set()); resizeObserver.observe(element); } elementListeners.get(element).add(callback); } function unobserve(element, callback) { if (elementListeners.has(element)) { elementListeners.get(element).delete(callback); if (!elementListeners.get(element).size) { resizeObserver.unobserve(element); elementListeners.delete(element); } } } // CONCATENATED MODULE: ./node_modules/rc-textarea/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js /** * Fallback to findDOMNode if origin ref do not provide any dom element */ var DomWrapper_DomWrapper = /*#__PURE__*/function (_React$Component) { Object(inherits["a" /* default */])(DomWrapper, _React$Component); var _super = Object(createSuper["a" /* default */])(DomWrapper); function DomWrapper() { Object(classCallCheck["a" /* default */])(this, DomWrapper); return _super.apply(this, arguments); } Object(createClass["a" /* default */])(DomWrapper, [{ key: "render", value: function render() { return this.props.children; } }]); return DomWrapper; }(external_window_React_["Component"]); // CONCATENATED MODULE: ./node_modules/rc-textarea/node_modules/rc-resize-observer/es/Collection.js var CollectionContext = /*#__PURE__*/external_window_React_["createContext"](null); /** * Collect all the resize event from children ResizeObserver */ function Collection(_ref) { var children = _ref.children, onBatchResize = _ref.onBatchResize; var resizeIdRef = external_window_React_["useRef"](0); var resizeInfosRef = external_window_React_["useRef"]([]); var onCollectionResize = external_window_React_["useContext"](CollectionContext); var onResize = external_window_React_["useCallback"](function (size, element, data) { resizeIdRef.current += 1; var currentId = resizeIdRef.current; resizeInfosRef.current.push({ size: size, element: element, data: data }); Promise.resolve().then(function () { if (currentId === resizeIdRef.current) { onBatchResize === null || onBatchResize === void 0 ? void 0 : onBatchResize(resizeInfosRef.current); resizeInfosRef.current = []; } }); // Continue bubbling if parent exist onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(size, element, data); }, [onBatchResize, onCollectionResize]); return /*#__PURE__*/external_window_React_["createElement"](CollectionContext.Provider, { value: onResize }, children); } // CONCATENATED MODULE: ./node_modules/rc-textarea/node_modules/rc-resize-observer/es/SingleObserver/index.js function SingleObserver(props) { var children = props.children, disabled = props.disabled; var elementRef = external_window_React_["useRef"](null); var wrapperRef = external_window_React_["useRef"](null); var onCollectionResize = external_window_React_["useContext"](CollectionContext); // ============================= Size ============================= var sizeRef = external_window_React_["useRef"]({ width: -1, height: -1, offsetWidth: -1, offsetHeight: -1 }); // ============================= Ref ============================== var canRef = /*#__PURE__*/external_window_React_["isValidElement"](children) && Object(ref["c" /* supportRef */])(children); var originRef = canRef ? children.ref : null; var mergedRef = external_window_React_["useMemo"](function () { return Object(ref["a" /* composeRef */])(originRef, elementRef); }, [originRef, elementRef]); // =========================== Observe ============================ var propsRef = external_window_React_["useRef"](props); propsRef.current = props; // Handler var onInternalResize = external_window_React_["useCallback"](function (target) { var _propsRef$current = propsRef.current, onResize = _propsRef$current.onResize, data = _propsRef$current.data; var _target$getBoundingCl = target.getBoundingClientRect(), width = _target$getBoundingCl.width, height = _target$getBoundingCl.height; var offsetWidth = target.offsetWidth, offsetHeight = target.offsetHeight; /** * Resize observer trigger when content size changed. * In most case we just care about element size, * let's use `boundary` instead of `contentRect` here to avoid shaking. */ var fixedWidth = Math.floor(width); var fixedHeight = Math.floor(height); if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) { var size = { width: fixedWidth, height: fixedHeight, offsetWidth: offsetWidth, offsetHeight: offsetHeight }; sizeRef.current = size; // IE is strange, right? var mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth; var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; var sizeInfo = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, size), {}, { offsetWidth: mergedOffsetWidth, offsetHeight: mergedOffsetHeight }); // Let collection know what happened onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(sizeInfo, target, data); if (onResize) { // defer the callback but not defer to next frame Promise.resolve().then(function () { onResize(sizeInfo, target); }); } } }, []); // Dynamic observe external_window_React_["useEffect"](function () { var currentElement = Object(findDOMNode["a" /* default */])(elementRef.current) || Object(findDOMNode["a" /* default */])(wrapperRef.current); if (currentElement && !disabled) { observe(currentElement, onInternalResize); } return function () { return unobserve(currentElement, onInternalResize); }; }, [elementRef.current, disabled]); // ============================ Render ============================ return /*#__PURE__*/external_window_React_["createElement"](DomWrapper_DomWrapper, { ref: wrapperRef }, canRef ? /*#__PURE__*/external_window_React_["cloneElement"](children, { ref: mergedRef }) : children); } // CONCATENATED MODULE: ./node_modules/rc-textarea/node_modules/rc-resize-observer/es/index.js var INTERNAL_PREFIX_KEY = 'rc-observer-key'; function ResizeObserver(props) { var children = props.children; var childNodes = Object(toArray["a" /* default */])(children); if (false) {} return childNodes.map(function (child, index) { var key = (child === null || child === void 0 ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index); return /*#__PURE__*/external_window_React_["createElement"](SingleObserver, Object(esm_extends["a" /* default */])({}, props, { key: key }), child); }); } ResizeObserver.Collection = Collection; /* harmony default export */ var es = (ResizeObserver); // EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js var omit = __webpack_require__("bT9E"); // EXTERNAL MODULE: ./node_modules/classnames/index.js var classnames = __webpack_require__("TSYQ"); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // CONCATENATED MODULE: ./node_modules/rc-textarea/es/calculateNodeHeight.js // Thanks to https://github.com/andreypopp/react-textarea-autosize/ /** * calculateNodeHeight(uiTextNode, useCache = false) */ var HIDDEN_TEXTAREA_STYLE = "\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"; var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing', 'word-break']; var computedStyleCache = {}; var hiddenTextarea; function calculateNodeStyling(node) { var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name'); if (useCache && computedStyleCache[nodeRef]) { return computedStyleCache[nodeRef]; } var style = window.getComputedStyle(node); var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing'); var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top')); var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width')); var sizingStyle = SIZING_STYLE.map(function (name) { return "".concat(name, ":").concat(style.getPropertyValue(name)); }).join(';'); var nodeInfo = { sizingStyle: sizingStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing }; if (useCache && nodeRef) { computedStyleCache[nodeRef] = nodeInfo; } return nodeInfo; } function calculateNodeHeight(uiTextNode) { var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; if (!hiddenTextarea) { hiddenTextarea = document.createElement('textarea'); hiddenTextarea.setAttribute('tab-index', '-1'); hiddenTextarea.setAttribute('aria-hidden', 'true'); document.body.appendChild(hiddenTextarea); } // Fix wrap="off" issue // https://github.com/ant-design/ant-design/issues/6577 if (uiTextNode.getAttribute('wrap')) { hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap')); } else { hiddenTextarea.removeAttribute('wrap'); } // Copy all CSS properties that have an impact on the height of the content in // the textbox var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache), paddingSize = _calculateNodeStyling.paddingSize, borderSize = _calculateNodeStyling.borderSize, boxSizing = _calculateNodeStyling.boxSizing, sizingStyle = _calculateNodeStyling.sizingStyle; // Need to have the overflow attribute to hide the scrollbar otherwise // text-lines will not calculated properly as the shadow will technically be // narrower for content hiddenTextarea.setAttribute('style', "".concat(sizingStyle, ";").concat(HIDDEN_TEXTAREA_STYLE)); hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || ''; var minHeight = Number.MIN_SAFE_INTEGER; var maxHeight = Number.MAX_SAFE_INTEGER; var height = hiddenTextarea.scrollHeight; var overflowY; if (boxSizing === 'border-box') { // border-box: add border, since height = content + padding + border height += borderSize; } else if (boxSizing === 'content-box') { // remove padding, since height = content height -= paddingSize; } if (minRows !== null || maxRows !== null) { // measure height of a textarea with a single row hiddenTextarea.value = ' '; var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; if (minRows !== null) { minHeight = singleRowHeight * minRows; if (boxSizing === 'border-box') { minHeight = minHeight + paddingSize + borderSize; } height = Math.max(minHeight, height); } if (maxRows !== null) { maxHeight = singleRowHeight * maxRows; if (boxSizing === 'border-box') { maxHeight = maxHeight + paddingSize + borderSize; } overflowY = height > maxHeight ? '' : 'hidden'; height = Math.min(maxHeight, height); } } return { height: height, minHeight: minHeight, maxHeight: maxHeight, overflowY: overflowY, resize: 'none' }; } // EXTERNAL MODULE: ./node_modules/shallowequal/index.js var shallowequal = __webpack_require__("Gytx"); var shallowequal_default = /*#__PURE__*/__webpack_require__.n(shallowequal); // CONCATENATED MODULE: ./node_modules/rc-textarea/es/ResizableTextArea.js // eslint-disable-next-line @typescript-eslint/naming-convention var RESIZE_STATUS; (function (RESIZE_STATUS) { RESIZE_STATUS[RESIZE_STATUS["NONE"] = 0] = "NONE"; RESIZE_STATUS[RESIZE_STATUS["RESIZING"] = 1] = "RESIZING"; RESIZE_STATUS[RESIZE_STATUS["RESIZED"] = 2] = "RESIZED"; })(RESIZE_STATUS || (RESIZE_STATUS = {})); var ResizableTextArea_ResizableTextArea = /*#__PURE__*/function (_React$Component) { Object(inherits["a" /* default */])(ResizableTextArea, _React$Component); var _super = Object(createSuper["a" /* default */])(ResizableTextArea); function ResizableTextArea(props) { var _this; Object(classCallCheck["a" /* default */])(this, ResizableTextArea); _this = _super.call(this, props); _this.nextFrameActionId = void 0; _this.resizeFrameId = void 0; _this.textArea = void 0; _this.saveTextArea = function (textArea) { _this.textArea = textArea; }; _this.handleResize = function (size) { var resizeStatus = _this.state.resizeStatus; var _this$props = _this.props, autoSize = _this$props.autoSize, onResize = _this$props.onResize; if (resizeStatus !== RESIZE_STATUS.NONE) { return; } if (typeof onResize === 'function') { onResize(size); } if (autoSize) { _this.resizeOnNextFrame(); } }; _this.resizeOnNextFrame = function () { cancelAnimationFrame(_this.nextFrameActionId); _this.nextFrameActionId = requestAnimationFrame(_this.resizeTextarea); }; _this.resizeTextarea = function () { var autoSize = _this.props.autoSize; if (!autoSize || !_this.textArea) { return; } var minRows = autoSize.minRows, maxRows = autoSize.maxRows; var textareaStyles = calculateNodeHeight(_this.textArea, false, minRows, maxRows); _this.setState({ textareaStyles: textareaStyles, resizeStatus: RESIZE_STATUS.RESIZING }, function () { cancelAnimationFrame(_this.resizeFrameId); _this.resizeFrameId = requestAnimationFrame(function () { _this.setState({ resizeStatus: RESIZE_STATUS.RESIZED }, function () { _this.resizeFrameId = requestAnimationFrame(function () { _this.setState({ resizeStatus: RESIZE_STATUS.NONE }); _this.fixFirefoxAutoScroll(); }); }); }); }); }; _this.renderTextArea = function () { var _this$props2 = _this.props, _this$props2$prefixCl = _this$props2.prefixCls, prefixCls = _this$props2$prefixCl === void 0 ? 'rc-textarea' : _this$props2$prefixCl, autoSize = _this$props2.autoSize, onResize = _this$props2.onResize, className = _this$props2.className, disabled = _this$props2.disabled; var _this$state = _this.state, textareaStyles = _this$state.textareaStyles, resizeStatus = _this$state.resizeStatus; var otherProps = Object(omit["a" /* default */])(_this.props, ['prefixCls', 'onPressEnter', 'autoSize', 'defaultValue', 'onResize']); var cls = classnames_default()(prefixCls, className, Object(defineProperty["a" /* default */])({}, "".concat(prefixCls, "-disabled"), disabled)); // Fix https://github.com/ant-design/ant-design/issues/6776 // Make sure it could be reset when using form.getFieldDecorator if ('value' in otherProps) { otherProps.value = otherProps.value || ''; } var style = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this.props.style), textareaStyles), resizeStatus === RESIZE_STATUS.RESIZING ? // React will warning when mix `overflow` & `overflowY`. // We need to define this separately. { overflowX: 'hidden', overflowY: 'hidden' } : null); return /*#__PURE__*/external_window_React_["createElement"](es, { onResize: _this.handleResize, disabled: !(autoSize || onResize) }, /*#__PURE__*/external_window_React_["createElement"]("textarea", Object(esm_extends["a" /* default */])({}, otherProps, { className: cls, style: style, ref: _this.saveTextArea }))); }; _this.state = { textareaStyles: {}, resizeStatus: RESIZE_STATUS.NONE }; return _this; } Object(createClass["a" /* default */])(ResizableTextArea, [{ key: "componentDidUpdate", value: function componentDidUpdate(prevProps) { // Re-render with the new content or new autoSize property then recalculate the height as required. if (prevProps.value !== this.props.value || !shallowequal_default()(prevProps.autoSize, this.props.autoSize)) { this.resizeTextarea(); } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { cancelAnimationFrame(this.nextFrameActionId); cancelAnimationFrame(this.resizeFrameId); } // https://github.com/ant-design/ant-design/issues/21870 }, { key: "fixFirefoxAutoScroll", value: function fixFirefoxAutoScroll() { try { if (document.activeElement === this.textArea) { var currentStart = this.textArea.selectionStart; var currentEnd = this.textArea.selectionEnd; this.textArea.setSelectionRange(currentStart, currentEnd); } } catch (e) {// Fix error in Chrome: // Failed to read the 'selectionStart' property from 'HTMLInputElement' // http://stackoverflow.com/q/21177489/3040605 } } }, { key: "render", value: function render() { return this.renderTextArea(); } }]); return ResizableTextArea; }(external_window_React_["Component"]); /* harmony default export */ var es_ResizableTextArea = (ResizableTextArea_ResizableTextArea); // CONCATENATED MODULE: ./node_modules/rc-textarea/es/index.js var es_TextArea = /*#__PURE__*/function (_React$Component) { Object(inherits["a" /* default */])(TextArea, _React$Component); var _super = Object(createSuper["a" /* default */])(TextArea); function TextArea(props) { var _this; Object(classCallCheck["a" /* default */])(this, TextArea); _this = _super.call(this, props); _this.resizableTextArea = void 0; _this.focus = function () { _this.resizableTextArea.textArea.focus(); }; _this.saveTextArea = function (resizableTextArea) { _this.resizableTextArea = resizableTextArea; }; _this.handleChange = function (e) { var onChange = _this.props.onChange; _this.setValue(e.target.value, function () { _this.resizableTextArea.resizeTextarea(); }); if (onChange) { onChange(e); } }; _this.handleKeyDown = function (e) { var _this$props = _this.props, onPressEnter = _this$props.onPressEnter, onKeyDown = _this$props.onKeyDown; if (e.keyCode === 13 && onPressEnter) { onPressEnter(e); } if (onKeyDown) { onKeyDown(e); } }; var value = typeof props.value === 'undefined' || props.value === null ? props.defaultValue : props.value; _this.state = { value: value }; return _this; } Object(createClass["a" /* default */])(TextArea, [{ key: "setValue", value: function setValue(value, callback) { if (!('value' in this.props)) { this.setState({ value: value }, callback); } } }, { key: "blur", value: function blur() { this.resizableTextArea.textArea.blur(); } }, { key: "render", value: function render() { return /*#__PURE__*/external_window_React_["createElement"](es_ResizableTextArea, Object(esm_extends["a" /* default */])({}, this.props, { value: this.state.value, onKeyDown: this.handleKeyDown, onChange: this.handleChange, ref: this.saveTextArea })); } }], [{ key: "getDerivedStateFromProps", value: function getDerivedStateFromProps(nextProps) { if ('value' in nextProps) { return { value: nextProps.value }; } return null; } }]); return TextArea; }(external_window_React_["Component"]); /* harmony default export */ var rc_textarea_es = __webpack_exports__["default"] = (es_TextArea); /***/ }), /***/ "bT9E": /*!*****************************************!*\ !*** ./node_modules/rc-util/es/omit.js ***! \*****************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return omit; }); /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "VTBJ"); function omit(obj, fields) { var clone = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, obj); if (Array.isArray(fields)) { fields.forEach(function (key) { delete clone[key]; }); } return clone; } /***/ }), /***/ "bajL": /*!*************************************************************************!*\ !*** ./src/pages/Engineering/Navigation/Home/Header/index.less?modules ***! \*************************************************************************/ /*! no static exports found */ /*! exports used: default */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin module.exports = {"headerTabBarContainer":"headerTabBarContainer___2U7nU","userInfo":"userInfo___199ej","img":"img___1hKgU","detail":"detail___2CfBB","space":"space___1sVzq","school":"school___1tfPs","headerContainer":"headerContainer___aYAII","listItemWrap":"listItemWrap___2F2mW","listItem":"listItem___3eBKK","nameContainer":"nameContainer___1yI8X","iconWrap":"iconWrap___l19YP"}; /***/ }), /***/ "f7Sd": /*!***************************************************************************!*\ !*** ./src/pages/Engineering/Navigation/Home/CardList/index.less?modules ***! \***************************************************************************/ /*! no static exports found */ /*! exports used: default */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin module.exports = {"cardListContainer":"cardListContainer___1wb6u","left":"left___3-TPe","leftList":"leftList___1_AzL","resultWrap":"resultWrap___V-aBL","reusltContainer":"reusltContainer___3jOsw","success":"success___1Nxww","spheric":"spheric___20NHi","listItemWrap":"listItemWrap___2LTlk","listItem":"listItem___2gsq-","content":"content___4ewRW","label":"label___1svZ3","total":"total___jjjwl","right":"right___35dEh","rightList":"rightList___cDNYA","emptyContaioner":"emptyContaioner___27b2p"}; /***/ }), /***/ "sgOU": /*!****************************************************************************!*\ !*** ./src/pages/Engineering/Navigation/Home/TotalList/index.less?modules ***! \****************************************************************************/ /*! no static exports found */ /*! exports used: default */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin module.exports = {"totalListContainer":"totalListContainer___2H6DH","listItem":"listItem___t7kZy","total":"total___3R1sa","icon":"icon___1j0iT"}; /***/ }), /***/ "zOaB": /*!*********************************************************************!*\ !*** ./src/pages/Engineering/Navigation/Home/index.tsx + 5 modules ***! \*********************************************************************/ /*! exports provided: default */ /*! all exports used */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/UserOutlined.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ /*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Engineering/Navigation/Home/CardList/index.less?modules (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Engineering/Navigation/Home/Header/index.less?modules (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Engineering/Navigation/Home/TotalList/index.less?modules (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Engineering/Navigation/Home/index.less?modules (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Engineering/components/Navigation/StyleWrap/index.less?modules (<- Module is not an ECMAScript module) */ /*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */ /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/style/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/select/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/select/style/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/style/index.js */ /*! ModuleConcatenation bailout: Cannot concat with external "window.React" (<- Module is not an ECMAScript module) */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js var objectSpread2 = __webpack_require__("k1fw"); // EXTERNAL MODULE: ./node_modules/antd/es/spin/style/index.js var spin_style = __webpack_require__("T2oS"); // EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js var spin = __webpack_require__("W9HT"); // EXTERNAL MODULE: external "window.React" var external_window_React_ = __webpack_require__("cDcd"); var external_window_React_default = /*#__PURE__*/__webpack_require__.n(external_window_React_); // EXTERNAL MODULE: ./src/.umi-production/core/umiExports.ts + 17 modules var umiExports = __webpack_require__("9kvl"); // EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js var input_style = __webpack_require__("5NDa"); // EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 3 modules var input = __webpack_require__("5rEg"); // EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js var message_style = __webpack_require__("miYZ"); // EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules var message = __webpack_require__("tsqr"); // EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__("tJVT"); // EXTERNAL MODULE: ./node_modules/antd/es/select/style/index.js var select_style = __webpack_require__("OaEy"); // EXTERNAL MODULE: ./node_modules/antd/es/select/index.js var es_select = __webpack_require__("2fM7"); // EXTERNAL MODULE: ./src/pages/Engineering/Navigation/Home/Header/index.less?modules var Headermodules = __webpack_require__("bajL"); var Headermodules_default = /*#__PURE__*/__webpack_require__.n(Headermodules); // EXTERNAL MODULE: ./src/pages/Engineering/components/Navigation/StyleWrap/index.less?modules var StyleWrapmodules = __webpack_require__("+/wB"); var StyleWrapmodules_default = /*#__PURE__*/__webpack_require__.n(StyleWrapmodules); // CONCATENATED MODULE: ./src/pages/Engineering/components/Navigation/StyleWrap/index.tsx /* * @Author: dengcheng * @Date: 2022-03-28 16:15:58 * @Last Modified by: dengcheng * @Last Modified time: 2022-03-31 15:41:11 * @description: 认证导航的边框包裹组件 */ /** * @param title 标题名称 * @param titleSmall 标题小字号显示 * @param type 样式类型 default-默认 large-顶部的大样式 middle-右侧的中等样式 small-底部的小样式 * @param style 自定义样式 * @param tabBarContent 右侧状态栏的显示数据 * @param onTabBarClick 右侧状态栏点击事件 */ var StyleWrap_StyleWrap = function StyleWrap(_ref) { var children = _ref.children, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, title = _ref.title, _ref$type = _ref.type, type = _ref$type === void 0 ? 'default' : _ref$type, tabBarContent = _ref.tabBarContent, onTabBarClick = _ref.onTabBarClick; return /*#__PURE__*/external_window_React_default.a.createElement("div", { className: "".concat(StyleWrapmodules_default.a.styleWrapContainer, " ").concat(StyleWrapmodules_default.a[type]), style: style }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: StyleWrapmodules_default.a.header }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: StyleWrapmodules_default.a.title }, title), type === 'large' && tabBarContent, type === 'default' && /*#__PURE__*/external_window_React_default.a.createElement("div", { className: StyleWrapmodules_default.a.tabBarContainer }, tabBarContent.map(function (item, index) { return /*#__PURE__*/external_window_React_default.a.createElement("div", { key: index, onClick: function onClick() { return onTabBarClick ? onTabBarClick(item.value) : {}; } }, /*#__PURE__*/external_window_React_default.a.createElement("span", null, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont ".concat(item.icon) })), /*#__PURE__*/external_window_React_default.a.createElement("span", null, item.label)); })), type === 'middle' && /*#__PURE__*/external_window_React_default.a.createElement("div", { className: StyleWrapmodules_default.a.tabBarText }, tabBarContent)), children); }; /* harmony default export */ var Navigation_StyleWrap = (StyleWrap_StyleWrap); // CONCATENATED MODULE: ./src/pages/Engineering/components/Navigation/index.ts // 边框样式 // EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/UserOutlined.js + 1 modules var UserOutlined = __webpack_require__("cJ7L"); // EXTERNAL MODULE: ./src/utils/env.ts + 1 modules var env = __webpack_require__("m3rI"); // CONCATENATED MODULE: ./src/pages/Engineering/Navigation/Home/Header/index.tsx var Option = es_select["a" /* default */].Option; var inputRef = /*#__PURE__*/external_window_React_default.a.createRef(); var Header_Header = function Header(_ref) { var _user$userInfo2; var loading = _ref.loading, headerData = _ref.headerData, user = _ref.user, dispatch = _ref.dispatch; var _useState = Object(external_window_React_["useState"])({ status: false, oldValue: '', newValue: '' }), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), editData = _useState2[0], setEditData = _useState2[1]; // 头像加载失败 var _useState3 = Object(external_window_React_["useState"])(false), _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), imgError = _useState4[0], setImgError = _useState4[1]; var firstEnter = Object(external_window_React_["useRef"])(true); Object(external_window_React_["useEffect"])(function () { var _user$userInfo; if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.school_id) { onEditClose(); setImgError(false); dispatch({ type: 'engineeringNavigtion/getMajorList' }); } return function () { dispatch({ type: 'engineeringNavigtion/setMajorOrYearActive', payload: { key: umiExports["b" /* evaluateListHeaderKey */][0], value: '' } }); dispatch({ type: 'engineeringNavigtion/setMajorOrYearActive', payload: { key: umiExports["b" /* evaluateListHeaderKey */][1], value: '' } }); }; }, [user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.school_id]); // 监听认证专业的值 Object(external_window_React_["useEffect"])(function () { if (headerData.active[umiExports["b" /* evaluateListHeaderKey */][0]]) { dispatch({ type: 'engineeringNavigtion/getYearList', payload: { id: headerData.active[umiExports["b" /* evaluateListHeaderKey */][0]], firstEnter: firstEnter.current } }); firstEnter.current = false; } // 清除届别的值与数据源 dispatch({ type: 'engineeringNavigtion/setMajorOrYearDataSource', payload: { key: umiExports["b" /* evaluateListHeaderKey */][1], value: [] } }); dispatch({ type: 'engineeringNavigtion/setMajorOrYearActive', payload: { key: umiExports["b" /* evaluateListHeaderKey */][1], value: '' } }); }, [headerData.active[umiExports["b" /* evaluateListHeaderKey */][0]]]); //监听认证届别的值 Object(external_window_React_["useEffect"])(function () { dispatch({ type: 'engineeringNavigtion/getTopPage' }); onEditClose(); }, [headerData.active[umiExports["b" /* evaluateListHeaderKey */][1]]]); /** * 筛选器的change事件 * @param key 目标键 * @param value 改变后的值 */ var onSelectChange = function onSelectChange(key, value) { dispatch({ type: 'engineeringNavigtion/setMajorOrYearActive', payload: { key: key, value: value } }); }; /** * 编辑点击修改事件 */ var onEditClick = function onEditClick() { setEditData({ status: true, oldValue: headerData.name, newValue: headerData.name }); setTimeout(function () { if (inputRef && inputRef.current) { inputRef.current.focus(); } }, 100); }; /** * 编辑change事件 * @param value 编辑后的值 */ var onEditChange = function onEditChange(value) { setEditData(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, editData), {}, { newValue: value })); }; /** * 编辑保存事件 */ var onEditSave = function onEditSave() { var newValue = editData.newValue.trim(); var oldValue = editData.oldValue.trim(); if (!newValue) { message["b" /* default */].warn('请填写名称'); return false; } if (newValue !== oldValue) { dispatch({ type: 'engineeringNavigtion/putTopPageName', payload: { id: headerData.active[umiExports["b" /* evaluateListHeaderKey */][1]], name: newValue }, callback: function callback(_ref2) { var status = _ref2.status, msg = _ref2.message; if (status === 0) { message["b" /* default */].success('保存成功'); dispatch({ type: 'engineeringNavigtion/getTopPage' }); } else { message["b" /* default */].error(msg); } onEditClose(); } }); } else { onEditClose(); } }; /** * 编辑关闭事件 */ var onEditClose = function onEditClose() { setEditData({ status: false, oldValue: '', newValue: '' }); }; /** * 渲染右侧导航视图 * @returns */ var renderTabBar = function renderTabBar() { var _user$userInfo3, _user$userInfo4, _user$userInfo4$ec_us, _user$userInfo5, _user$userInfo5$ec_us, _user$userInfo6, _user$userInfo6$ec_us, _user$userInfo7, _user$userInfo7$ec_us; return /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.headerTabBarContainer }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.userInfo }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.img }, imgError && /*#__PURE__*/external_window_React_default.a.createElement(UserOutlined["a" /* default */], null), !imgError && /*#__PURE__*/external_window_React_default.a.createElement("img", { src: "".concat(env["a" /* default */] === null || env["a" /* default */] === void 0 ? void 0 : env["a" /* default */].IMG_SERVER, "/images/").concat((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.image_url), onError: function onError() { return setImgError(true); } })), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.detail }, /*#__PURE__*/external_window_React_default.a.createElement("div", null, (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : (_user$userInfo4$ec_us = _user$userInfo4.ec_user_info) === null || _user$userInfo4$ec_us === void 0 ? void 0 : _user$userInfo4$ec_us.user_name), /*#__PURE__*/external_window_React_default.a.createElement("div", null, (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : (_user$userInfo5$ec_us = _user$userInfo5.ec_user_info) === null || _user$userInfo5$ec_us === void 0 ? void 0 : _user$userInfo5$ec_us.user_type))), ((_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : (_user$userInfo6$ec_us = _user$userInfo6.ec_user_info) === null || _user$userInfo6$ec_us === void 0 ? void 0 : _user$userInfo6$ec_us.user_school) && /*#__PURE__*/external_window_React_default.a.createElement(external_window_React_default.a.Fragment, null, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.space }), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.school }, /*#__PURE__*/external_window_React_default.a.createElement("div", null, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont icon-daxue" })), /*#__PURE__*/external_window_React_default.a.createElement("div", null, (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : (_user$userInfo7$ec_us = _user$userInfo7.ec_user_info) === null || _user$userInfo7$ec_us === void 0 ? void 0 : _user$userInfo7$ec_us.user_school)))); }; return /*#__PURE__*/external_window_React_default.a.createElement(Navigation_StyleWrap, { title: headerData.title, type: "large", tabBarContent: renderTabBar() }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.headerContainer }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.listItemWrap }, Object.entries(headerData.dataSource).map(function (_ref3) { var _ref4 = Object(slicedToArray["a" /* default */])(_ref3, 2), key = _ref4[0], list = _ref4[1]; return /*#__PURE__*/external_window_React_default.a.createElement("div", { key: key, className: Headermodules_default.a.listItem }, /*#__PURE__*/external_window_React_default.a.createElement("span", null, key), /*#__PURE__*/external_window_React_default.a.createElement(es_select["a" /* default */], { style: { width: list.width }, value: headerData.active[key] || undefined, bordered: false, placeholder: list.placeholder, loading: loading.effects[list.loading], onChange: function onChange(value) { return onSelectChange(key, value); } }, list.dataList.map(function (item) { return /*#__PURE__*/external_window_React_default.a.createElement(Option, { key: item.value, value: item.value }, item.label); }))); })), headerData.name && /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.nameContainer }, !editData.status && /*#__PURE__*/external_window_React_default.a.createElement(external_window_React_default.a.Fragment, null, /*#__PURE__*/external_window_React_default.a.createElement("span", null, headerData.name), /*#__PURE__*/external_window_React_default.a.createElement("span", { onClick: onEditClick }, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont icon-bianji7" }))), editData.status && /*#__PURE__*/external_window_React_default.a.createElement(external_window_React_default.a.Fragment, null, /*#__PURE__*/external_window_React_default.a.createElement(input["a" /* default */], { ref: inputRef, value: editData.newValue, style: { width: 280, marginRight: 15, height: 38 }, onChange: function onChange(event) { return onEditChange(event.target.value); } }), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Headermodules_default.a.iconWrap }, /*#__PURE__*/external_window_React_default.a.createElement("span", { onClick: onEditSave }, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont icon-baocun1" })), /*#__PURE__*/external_window_React_default.a.createElement("span", { onClick: onEditClose }, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont icon-quxiao" }))))))); }; /* harmony default export */ var Home_Header = (Object(umiExports["a" /* connect */])(function (_ref5) { var user = _ref5.user, loading = _ref5.loading, engineeringNavigtion = _ref5.engineeringNavigtion; return Object(objectSpread2["a" /* default */])({ user: user, loading: loading }, engineeringNavigtion); })(Header_Header)); // EXTERNAL MODULE: ./node_modules/antd/es/empty/style/index.js var empty_style = __webpack_require__("R9oj"); // EXTERNAL MODULE: ./node_modules/antd/es/empty/index.js + 2 modules var empty = __webpack_require__("ECub"); // EXTERNAL MODULE: ./src/pages/Engineering/Navigation/Home/CardList/index.less?modules var CardListmodules = __webpack_require__("f7Sd"); var CardListmodules_default = /*#__PURE__*/__webpack_require__.n(CardListmodules); // CONCATENATED MODULE: ./src/pages/Engineering/Navigation/Home/CardList/index.tsx var CardList_CardList = function CardList(_ref) { var appraiseData = _ref.appraiseData, teamData = _ref.teamData, active = _ref.active; return /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.cardListContainer }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.left }, Object.entries(appraiseData).map(function (_ref2, index) { var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 2), key = _ref3[0], list = _ref3[1]; return /*#__PURE__*/external_window_React_default.a.createElement(Navigation_StyleWrap, { key: key, title: list.title, tabBarContent: list.tabBarContent, style: { marginBottom: index === 1 ? 0 : 20, height: 350 }, onTabBarClick: function onTabBarClick(k) { var url = active['认证届别'] ? "".concat(k, "?ec_major_school_id=").concat(active['认证专业'], "&ec_year_id=").concat(active['认证届别']) : k; umiExports["d" /* history */].push(url); } }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.leftList }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.resultWrap }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: "".concat(CardListmodules_default.a.reusltContainer, " ").concat(list.result === '达成' ? CardListmodules_default.a.success : '') }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.spheric }, /*#__PURE__*/external_window_React_default.a.createElement("div", null, list.result), /*#__PURE__*/external_window_React_default.a.createElement("div", null, "\u8BC4\u4EF7\u7ED3\u679C")))), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.listItemWrap }, list.listData.map(function (item, index) { return /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.listItem, key: index }, /*#__PURE__*/external_window_React_default.a.createElement("span", { style: { background: item.backgroundColor, color: item.textColor } }, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont ".concat(item.icon) })), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.content }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.label }, item.label), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.total }, /*#__PURE__*/external_window_React_default.a.createElement("span", null, item.value), /*#__PURE__*/external_window_React_default.a.createElement("span", null, item.unit)))); })))); })), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.right }, Object.entries(teamData).map(function (_ref4, index) { var _ref5 = Object(slicedToArray["a" /* default */])(_ref4, 2), key = _ref5[0], list = _ref5[1]; return /*#__PURE__*/external_window_React_default.a.createElement(Navigation_StyleWrap, { type: "middle", key: key, title: list.title, tabBarContent: list.tabBarContent, style: { marginBottom: index === 1 ? 0 : 20, height: 350 } }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.rightList }, list.listData.length === 0 && /*#__PURE__*/external_window_React_default.a.createElement("div", { className: CardListmodules_default.a.emptyContaioner }, /*#__PURE__*/external_window_React_default.a.createElement(empty["a" /* default */], { image: empty["a" /* default */].PRESENTED_IMAGE_SIMPLE })), list.listData.length > 0 && list.listData.map(function (item, index) { return /*#__PURE__*/external_window_React_default.a.createElement("div", { key: index, className: CardListmodules_default.a.listItem }, item); }))); }))); }; /* harmony default export */ var Home_CardList = (Object(umiExports["a" /* connect */])(function (_ref6) { var user = _ref6.user, engineeringNavigtion = _ref6.engineeringNavigtion; return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({ user: user }, engineeringNavigtion.headerData), engineeringNavigtion.cardListData); })(CardList_CardList)); // EXTERNAL MODULE: ./src/pages/Engineering/Navigation/Home/TotalList/index.less?modules var TotalListmodules = __webpack_require__("sgOU"); var TotalListmodules_default = /*#__PURE__*/__webpack_require__.n(TotalListmodules); // CONCATENATED MODULE: ./src/pages/Engineering/Navigation/Home/TotalList/index.tsx var TotalList_TotalList = function TotalList(_ref) { var totalListData = _ref.totalListData; return /*#__PURE__*/external_window_React_default.a.createElement("div", { className: TotalListmodules_default.a.totalListContainer }, totalListData.map(function (list) { return /*#__PURE__*/external_window_React_default.a.createElement(Navigation_StyleWrap, { key: list.title, title: list.title, tabBarContent: null, type: "small", style: { width: 'calc((100% - 40px) / 3)', height: 160 } }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: TotalListmodules_default.a.listItem }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: TotalListmodules_default.a.total }, /*#__PURE__*/external_window_React_default.a.createElement("span", null, list.value), "\u4EBA"), /*#__PURE__*/external_window_React_default.a.createElement("div", { className: TotalListmodules_default.a.icon, style: { backgroundColor: list.backgroundColor } }, /*#__PURE__*/external_window_React_default.a.createElement("i", { className: "iconfont ".concat(list.icon), style: { color: list.textColor } })))); })); }; /* harmony default export */ var Home_TotalList = (Object(umiExports["a" /* connect */])(function (_ref2) { var engineeringNavigtion = _ref2.engineeringNavigtion; return Object(objectSpread2["a" /* default */])({}, engineeringNavigtion); })(TotalList_TotalList)); // EXTERNAL MODULE: ./src/pages/Engineering/Navigation/Home/index.less?modules var Homemodules = __webpack_require__("+t3w"); var Homemodules_default = /*#__PURE__*/__webpack_require__.n(Homemodules); // CONCATENATED MODULE: ./src/pages/Engineering/Navigation/Home/index.tsx var Home_Navigation = function Navigation(_ref) { var loading = _ref.loading; return /*#__PURE__*/external_window_React_default.a.createElement(spin["a" /* default */], { spinning: loading.effects['engineeringNavigtion/getTopPage'] }, /*#__PURE__*/external_window_React_default.a.createElement("div", { className: Homemodules_default.a.navigationHomeContainer }, /*#__PURE__*/external_window_React_default.a.createElement(Home_Header, null), /*#__PURE__*/external_window_React_default.a.createElement(Home_CardList, null), /*#__PURE__*/external_window_React_default.a.createElement(Home_TotalList, null))); }; /* harmony default export */ var Home = __webpack_exports__["default"] = (Object(umiExports["a" /* connect */])(function (_ref2) { var loading = _ref2.loading, engineeringNavigtion = _ref2.engineeringNavigtion; return Object(objectSpread2["a" /* default */])({ loading: loading }, engineeringNavigtion); })(Home_Navigation)); /***/ }) }]);