"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[7295,74324],{ /***/ 24905: /*!************************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***! \************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ es_checkbox; } }); // EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js var _classnames_2_5_1_classnames = __webpack_require__(92310); var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames); // EXTERNAL MODULE: ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js var es = __webpack_require__(5630); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var config_provider_context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js var DisabledContext = __webpack_require__(1684); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js var context = __webpack_require__(32441); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null); /* harmony default export */ var checkbox_GroupContext = (GroupContext); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js var checkbox_style = __webpack_require__(98447); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules var wave = __webpack_require__(14088); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js var wave_interface = __webpack_require__(4572); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.js "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const InternalCheckbox = (props, ref) => { var _a; const { prefixCls: customizePrefixCls, className, rootClassName, children, indeterminate = false, style, onMouseEnter, onMouseLeave, skipGroup = false, disabled } = props, restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]); const { getPrefixCls, direction, checkbox } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext); const { isFormItemInput } = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM); const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z); const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled; const prevValue = _react_17_0_2_react.useRef(restProps.value); _react_17_0_2_react.useEffect(() => { checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); false ? 0 : void 0; }, []); _react_17_0_2_react.useEffect(() => { if (skipGroup) { return; } if (restProps.value !== prevValue.current) { checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current); checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); prevValue.current = restProps.value; } return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value); }, [restProps.value]); const prefixCls = getPrefixCls('checkbox', customizePrefixCls); const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); const checkboxProps = Object.assign({}, restProps); if (checkboxGroup && !skipGroup) { checkboxProps.onChange = function () { if (restProps.onChange) { restProps.onChange.apply(restProps, arguments); } if (checkboxGroup.toggleOption) { checkboxGroup.toggleOption({ label: children, value: restProps.value }); } }; checkboxProps.name = checkboxGroup.name; checkboxProps.checked = checkboxGroup.value.includes(restProps.value); } const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-wrapper`, { [`${prefixCls}-rtl`]: direction === 'rtl', [`${prefixCls}-wrapper-checked`]: checkboxProps.checked, [`${prefixCls}-wrapper-disabled`]: mergedDisabled, [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput }, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId); const checkboxClass = _classnames_2_5_1_classnames_default()({ [`${prefixCls}-indeterminate`]: indeterminate }, wave_interface/* TARGET_CLS */.A, hashId); const ariaChecked = indeterminate ? 'mixed' : undefined; return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { component: "Checkbox", disabled: mergedDisabled }, /*#__PURE__*/_react_17_0_2_react.createElement("label", { className: classString, style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style), onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({ "aria-checked": ariaChecked }, checkboxProps, { prefixCls: prefixCls, className: checkboxClass, disabled: mergedDisabled, ref: ref })), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)))); }; const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox); if (false) {} /* harmony default export */ var checkbox_Checkbox = (Checkbox); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(12101); // EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/omit.js var omit = __webpack_require__(62805); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js "use client"; var Group_rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const InternalGroup = (props, ref) => { const { defaultValue, children, options = [], prefixCls: customizePrefixCls, className, rootClassName, style, onChange } = props, restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]); const { getPrefixCls, direction } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []); const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]); _react_17_0_2_react.useEffect(() => { if ('value' in restProps) { setValue(restProps.value || []); } }, [restProps.value]); const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => { if (typeof option === 'string' || typeof option === 'number') { return { label: option, value: option }; } return option; }), [options]); const cancelValue = val => { setRegisteredValues(prevValues => prevValues.filter(v => v !== val)); }; const registerValue = val => { setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val])); }; const toggleOption = option => { const optionIndex = value.indexOf(option.value); const newValue = (0,toConsumableArray/* default */.Z)(value); if (optionIndex === -1) { newValue.push(option.value); } else { newValue.splice(optionIndex, 1); } if (!('value' in restProps)) { setValue(newValue); } onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => { const indexA = memoOptions.findIndex(opt => opt.value === a); const indexB = memoOptions.findIndex(opt => opt.value === b); return indexA - indexB; })); }; const prefixCls = getPrefixCls('checkbox', customizePrefixCls); const groupPrefixCls = `${prefixCls}-group`; const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']); const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, { prefixCls: prefixCls, key: option.value.toString(), disabled: 'disabled' in option ? option.disabled : restProps.disabled, value: option.value, checked: value.includes(option.value), onChange: option.onChange, className: `${groupPrefixCls}-item`, style: option.style, title: option.title }, option.label)) : children; // eslint-disable-next-line react/jsx-no-constructed-context-values const context = { toggleOption, value, disabled: restProps.disabled, name: restProps.name, // https://github.com/ant-design/ant-design/issues/16376 registerValue, cancelValue }; const classString = _classnames_2_5_1_classnames_default()(groupPrefixCls, { [`${groupPrefixCls}-rtl`]: direction === 'rtl' }, className, rootClassName, hashId); return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ className: classString, style: style }, domProps, { ref: ref }), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, { value: context }, childrenNode))); }; const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup); /* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup)); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js "use client"; const es_checkbox_Checkbox = checkbox_Checkbox; es_checkbox_Checkbox.Group = Group; es_checkbox_Checkbox.__ANT_CHECKBOX = true; if (false) {} /* harmony default export */ var es_checkbox = (es_checkbox_Checkbox); /***/ }), /***/ 98447: /*!******************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ C2: function() { return /* binding */ getStyle; } /* harmony export */ }); /* unused harmony export genCheckboxStyle */ /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313); /* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613); /* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116); // ============================== Styles ============================== const genCheckboxStyle = token => { const { checkboxCls } = token; const wrapperCls = `${checkboxCls}-wrapper`; return [ // ===================== Basic ===================== { // Group [`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { display: 'inline-flex', flexWrap: 'wrap', columnGap: token.marginXS, // Group > Grid [`> ${token.antCls}-row`]: { flex: 1 } }), // Wrapper [wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { display: 'inline-flex', alignItems: 'baseline', cursor: 'pointer', // Fix checkbox & radio in flex align #30260 '&:after': { display: 'inline-block', width: 0, overflow: 'hidden', content: "'\\a0'" }, // Checkbox near checkbox [`& + ${wrapperCls}`]: { marginInlineStart: 0 }, [`&${wrapperCls}-in-form-item`]: { 'input[type="checkbox"]': { width: 14, height: 14 // FIXME: magic } } }), // Wrapper > Checkbox [checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { position: 'relative', whiteSpace: 'nowrap', lineHeight: 1, cursor: 'pointer', borderRadius: token.borderRadiusSM, // To make alignment right when `controlHeight` is changed // Ref: https://github.com/ant-design/ant-design/issues/41564 alignSelf: 'center', // Wrapper > Checkbox > input [`${checkboxCls}-input`]: { position: 'absolute', // Since baseline align will get additional space offset, // we need to move input to top to make it align with text. // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799 inset: 0, zIndex: 1, cursor: 'pointer', opacity: 0, margin: 0, [`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token)) }, // Wrapper > Checkbox > inner [`${checkboxCls}-inner`]: { boxSizing: 'border-box', position: 'relative', top: 0, insetInlineStart: 0, display: 'block', width: token.checkboxSize, height: token.checkboxSize, direction: 'ltr', backgroundColor: token.colorBgContainer, border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, borderRadius: token.borderRadiusSM, borderCollapse: 'separate', transition: `all ${token.motionDurationSlow}`, '&:after': { boxSizing: 'border-box', position: 'absolute', top: '50%', insetInlineStart: '21.5%', display: 'table', width: token.checkboxSize / 14 * 5, height: token.checkboxSize / 14 * 8, border: `${token.lineWidthBold}px solid ${token.colorWhite}`, borderTop: 0, borderInlineStart: 0, transform: 'rotate(45deg) scale(0) translate(-50%,-50%)', opacity: 0, content: '""', transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}` } }, // Wrapper > Checkbox + Text '& + span': { paddingInlineStart: token.paddingXS, paddingInlineEnd: token.paddingXS } }) }, // ===================== Hover ===================== { // Wrapper & Wrapper > Checkbox [` ${wrapperCls}:not(${wrapperCls}-disabled), ${checkboxCls}:not(${checkboxCls}-disabled) `]: { [`&:hover ${checkboxCls}-inner`]: { borderColor: token.colorPrimary } }, [`${wrapperCls}:not(${wrapperCls}-disabled)`]: { [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: { backgroundColor: token.colorPrimaryHover, borderColor: 'transparent' }, [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: { borderColor: token.colorPrimaryHover } } }, // ==================== Checked ==================== { // Wrapper > Checkbox [`${checkboxCls}-checked`]: { [`${checkboxCls}-inner`]: { backgroundColor: token.colorPrimary, borderColor: token.colorPrimary, '&:after': { opacity: 1, transform: 'rotate(45deg) scale(1) translate(-50%,-50%)', transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}` } } }, [` ${wrapperCls}-checked:not(${wrapperCls}-disabled), ${checkboxCls}-checked:not(${checkboxCls}-disabled) `]: { [`&:hover ${checkboxCls}-inner`]: { backgroundColor: token.colorPrimaryHover, borderColor: 'transparent' } } }, // ================= Indeterminate ================= { [checkboxCls]: { '&-indeterminate': { // Wrapper > Checkbox > inner [`${checkboxCls}-inner`]: { backgroundColor: token.colorBgContainer, borderColor: token.colorBorder, '&:after': { top: '50%', insetInlineStart: '50%', width: token.fontSizeLG / 2, height: token.fontSizeLG / 2, backgroundColor: token.colorPrimary, border: 0, transform: 'translate(-50%, -50%) scale(1)', opacity: 1, content: '""' } } } } }, // ==================== Disable ==================== { // Wrapper [`${wrapperCls}-disabled`]: { cursor: 'not-allowed' }, // Wrapper > Checkbox [`${checkboxCls}-disabled`]: { // Wrapper > Checkbox > input [`&, ${checkboxCls}-input`]: { cursor: 'not-allowed', // Disabled for native input to enable Tooltip event handler // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901 pointerEvents: 'none' }, // Wrapper > Checkbox > inner [`${checkboxCls}-inner`]: { background: token.colorBgContainerDisabled, borderColor: token.colorBorder, '&:after': { borderColor: token.colorTextDisabled } }, '&:after': { display: 'none' }, '& + span': { color: token.colorTextDisabled }, [`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: { background: token.colorTextDisabled } } }]; }; // ============================== Export ============================== function getStyle(prefixCls, token) { const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, { checkboxCls: `.${prefixCls}`, checkboxSize: token.controlInteractiveSize }); return [genCheckboxStyle(checkboxToken)]; } /* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => { let { prefixCls } = _ref; return [getStyle(prefixCls, token)]; })); /***/ }), /***/ 57809: /*!**********************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***! \**********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861); /* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 62805); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301); /* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487); /* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892); /* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080); /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355); /* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684); /* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891); /* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716); /* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441); /* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154); /* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582); /* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443); /* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339); "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // TODO: 4.0 - codemod should help to change `filterOption` to support node props. const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'; const InternalSelect = (_a, ref) => { var _b; var { prefixCls: customizePrefixCls, bordered = true, className, rootClassName, getPopupContainer, popupClassName, dropdownClassName, listHeight = 256, placement, listItemHeight = 24, size: customizeSize, disabled: customDisabled, notFoundContent, status: customStatus, builtinPlacements, dropdownMatchSelectWidth, popupMatchSelectWidth, direction: propDirection, style, allowClear } = _a, props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]); const { getPopupContainer: getContextPopupContainer, getPrefixCls, renderEmpty, direction: contextDirection, virtual, popupMatchSelectWidth: contextPopupMatchSelectWidth, popupOverflow, select } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_); const prefixCls = getPrefixCls('select', customizePrefixCls); const rootPrefixCls = getPrefixCls(); const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection; const { compactSize, compactItemClassnames } = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction); const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls); const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => { const { mode: m } = props; if (m === 'combobox') { return undefined; } if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) { return 'combobox'; } return m; }, [props.mode]); const isMultiple = mode === 'multiple' || mode === 'tags'; const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow); const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth; // ===================== Form Status ===================== const { status: contextStatus, hasFeedback, isFormItemInput, feedbackIcon } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM); const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus); // ===================== Empty ===================== let mergedNotFound; if (notFoundContent !== undefined) { mergedNotFound = notFoundContent; } else if (mode === 'combobox') { mergedNotFound = null; } else { mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, { componentName: "Select" }); } // ===================== Icons ===================== const { suffixIcon, itemIcon, removeIcon, clearIcon } = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), { multiple: isMultiple, hasFeedback, feedbackIcon, showSuffixIcon, prefixCls, showArrow: props.showArrow, componentName: 'Select' })); const mergedAllowClear = allowClear === true ? { clearIcon } : allowClear; const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']); const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, { [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl' }, rootClassName, hashId); const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => { var _a; return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; }); // ===================== Disabled ===================== const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z); const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled; const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({ [`${prefixCls}-lg`]: mergedSize === 'large', [`${prefixCls}-sm`]: mergedSize === 'small', [`${prefixCls}-rtl`]: direction === 'rtl', [`${prefixCls}-borderless`]: !bordered, [`${prefixCls}-in-form-item`]: isFormItemInput }, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId); // ===================== Placement ===================== const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => { if (placement !== undefined) { return placement; } return direction === 'rtl' ? 'bottomRight' : 'bottomLeft'; }, [placement, direction]); const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow); // ====================== Warning ====================== if (false) {} // ====================== Render ======================= return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({ ref: ref, virtual: virtual, showSearch: select === null || select === void 0 ? void 0 : select.showSearch }, selectProps, { style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style), dropdownMatchSelectWidth: mergedPopupMatchSelectWidth, builtinPlacements: mergedBuiltinPlacements, transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName), listHeight: listHeight, listItemHeight: listItemHeight, mode: mode, prefixCls: prefixCls, placement: memoPlacement, direction: direction, suffixIcon: suffixIcon, menuItemSelectedIcon: itemIcon, removeIcon: removeIcon, allowClear: mergedAllowClear, notFoundContent: mergedNotFound, className: mergedClassName, getPopupContainer: getPopupContainer || getContextPopupContainer, dropdownClassName: rcSelectRtlDropdownClassName, disabled: mergedDisabled }))); }; if (false) {} const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect); // We don't care debug panel /* istanbul ignore next */ const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select); Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE; Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx; Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo; Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel; if (false) {} /* harmony default export */ __webpack_exports__["default"] = (Select); /***/ }), /***/ 8378: /*!*******************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__) { const genCollapseMotion = token => ({ [token.componentCls]: { // For common/openAnimation [`${token.antCls}-motion-collapse-legacy`]: { overflow: 'hidden', '&-active': { transition: `height ${token.motionDurationMid} ${token.motionEaseInOut}, opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important` } }, [`${token.antCls}-motion-collapse`]: { overflow: 'hidden', transition: `height ${token.motionDurationMid} ${token.motionEaseInOut}, opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important` } } }); /* harmony default export */ __webpack_exports__.Z = (genCollapseMotion); /***/ }), /***/ 12563: /*!*******************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ tag; } }); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules var CloseOutlined = __webpack_require__(79419); // EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js var _classnames_2_5_1_classnames = __webpack_require__(92310); var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/colors.js var colors = __webpack_require__(36785); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useClosable.js var useClosable = __webpack_require__(47729); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules var wave = __webpack_require__(14088); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js var statistic = __webpack_require__(37613); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js var genComponentStyleHook = __webpack_require__(83116); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/index.js // ============================== Styles ============================== const genBaseStyle = token => { const { paddingXXS, lineWidth, tagPaddingHorizontal, componentCls } = token; const paddingInline = tagPaddingHorizontal - lineWidth; const iconMarginInline = paddingXXS - lineWidth; return { // Result [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { display: 'inline-block', height: 'auto', marginInlineEnd: token.marginXS, paddingInline, fontSize: token.tagFontSize, lineHeight: token.tagLineHeight, whiteSpace: 'nowrap', background: token.defaultBg, border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, borderRadius: token.borderRadiusSM, opacity: 1, transition: `all ${token.motionDurationMid}`, textAlign: 'start', position: 'relative', // RTL [`&${componentCls}-rtl`]: { direction: 'rtl' }, '&, a, a:hover': { color: token.defaultColor }, [`${componentCls}-close-icon`]: { marginInlineStart: iconMarginInline, color: token.colorTextDescription, fontSize: token.tagIconSize, cursor: 'pointer', transition: `all ${token.motionDurationMid}`, '&:hover': { color: token.colorTextHeading } }, [`&${componentCls}-has-color`]: { borderColor: 'transparent', [`&, a, a:hover, ${token.iconCls}-close, ${token.iconCls}-close:hover`]: { color: token.colorTextLightSolid } }, [`&-checkable`]: { backgroundColor: 'transparent', borderColor: 'transparent', cursor: 'pointer', [`&:not(${componentCls}-checkable-checked):hover`]: { color: token.colorPrimary, backgroundColor: token.colorFillSecondary }, '&:active, &-checked': { color: token.colorTextLightSolid }, '&-checked': { backgroundColor: token.colorPrimary, '&:hover': { backgroundColor: token.colorPrimaryHover } }, '&:active': { backgroundColor: token.colorPrimaryActive } }, [`&-hidden`]: { display: 'none' }, // To ensure that a space will be placed between character and `Icon`. [`> ${token.iconCls} + span, > span + ${token.iconCls}`]: { marginInlineStart: paddingInline } }), [`${componentCls}-borderless`]: { borderColor: 'transparent', background: token.tagBorderlessBg } }; }; // ============================== Export ============================== const prepareToken = token => { const { lineWidth, fontSizeIcon } = token; const tagFontSize = token.fontSizeSM; const tagLineHeight = `${token.lineHeightSM * tagFontSize}px`; const tagToken = (0,statistic/* merge */.TS)(token, { tagFontSize, tagLineHeight, tagIconSize: fontSizeIcon - 2 * lineWidth, tagPaddingHorizontal: 8, tagBorderlessBg: token.colorFillTertiary }); return tagToken; }; const prepareCommonToken = token => ({ defaultBg: token.colorFillQuaternary, defaultColor: token.colorText }); /* harmony default export */ var tag_style = ((0,genComponentStyleHook/* default */.Z)('Tag', token => { const tagToken = prepareToken(token); return genBaseStyle(tagToken); }, prepareCommonToken)); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/CheckableTag.js "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const CheckableTag = props => { const { prefixCls: customizePrefixCls, style, className, checked, onChange, onClick } = props, restProps = __rest(props, ["prefixCls", "style", "className", "checked", "onChange", "onClick"]); const { getPrefixCls, tag } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const handleClick = e => { onChange === null || onChange === void 0 ? void 0 : onChange(!checked); onClick === null || onClick === void 0 ? void 0 : onClick(e); }; const prefixCls = getPrefixCls('tag', customizePrefixCls); // Style const [wrapSSR, hashId] = tag_style(prefixCls); const cls = _classnames_2_5_1_classnames_default()(prefixCls, `${prefixCls}-checkable`, { [`${prefixCls}-checkable-checked`]: checked }, tag === null || tag === void 0 ? void 0 : tag.className, className, hashId); return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, restProps, { style: Object.assign(Object.assign({}, style), tag === null || tag === void 0 ? void 0 : tag.style), className: cls, onClick: handleClick }))); }; /* harmony default export */ var tag_CheckableTag = (CheckableTag); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genPresetColor.js var genPresetColor = __webpack_require__(45157); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/presetCmp.js // Style as status component // ============================== Preset ============================== const genPresetStyle = token => (0,genPresetColor/* default */.Z)(token, (colorKey, _ref) => { let { textColor, lightBorderColor, lightColor, darkColor } = _ref; return { [`${token.componentCls}-${colorKey}`]: { color: textColor, background: lightColor, borderColor: lightBorderColor, // Inverse color '&-inverse': { color: token.colorTextLightSolid, background: darkColor, borderColor: darkColor }, [`&${token.componentCls}-borderless`]: { borderColor: 'transparent' } } }; }); // ============================== Export ============================== /* harmony default export */ var presetCmp = ((0,genComponentStyleHook/* genSubStyleComponent */.b)(['Tag', 'preset'], token => { const tagToken = prepareToken(token); return genPresetStyle(tagToken); }, prepareCommonToken)); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/capitalize.js function capitalize(str) { if (typeof str !== 'string') { return str; } const ret = str.charAt(0).toUpperCase() + str.slice(1); return ret; } ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/statusCmp.js const genTagStatusStyle = (token, status, cssVariableType) => { const capitalizedCssVariableType = capitalize(cssVariableType); return { [`${token.componentCls}-${status}`]: { color: token[`color${cssVariableType}`], background: token[`color${capitalizedCssVariableType}Bg`], borderColor: token[`color${capitalizedCssVariableType}Border`], [`&${token.componentCls}-borderless`]: { borderColor: 'transparent' } } }; }; // ============================== Export ============================== /* harmony default export */ var statusCmp = ((0,genComponentStyleHook/* genSubStyleComponent */.b)(['Tag', 'status'], token => { const tagToken = prepareToken(token); return [genTagStatusStyle(tagToken, 'success', 'Success'), genTagStatusStyle(tagToken, 'processing', 'Info'), genTagStatusStyle(tagToken, 'error', 'Error'), genTagStatusStyle(tagToken, 'warning', 'Warning')]; }, prepareCommonToken)); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/index.js "use client"; var tag_rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const InternalTag = (tagProps, ref) => { const { prefixCls: customizePrefixCls, className, rootClassName, style, children, icon, color, onClose, closeIcon, closable, bordered = true } = tagProps, props = tag_rest(tagProps, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "closeIcon", "closable", "bordered"]); const { getPrefixCls, direction, tag } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const [visible, setVisible] = _react_17_0_2_react.useState(true); // Warning for deprecated usage if (false) {} _react_17_0_2_react.useEffect(() => { if ('visible' in props) { setVisible(props.visible); } }, [props.visible]); const isPreset = (0,colors/* isPresetColor */.o2)(color); const isStatus = (0,colors/* isPresetStatusColor */.yT)(color); const isInternalColor = isPreset || isStatus; const tagStyle = Object.assign(Object.assign({ backgroundColor: color && !isInternalColor ? color : undefined }, tag === null || tag === void 0 ? void 0 : tag.style), style); const prefixCls = getPrefixCls('tag', customizePrefixCls); // Style const [wrapSSR, hashId] = tag_style(prefixCls); const tagClassName = _classnames_2_5_1_classnames_default()(prefixCls, tag === null || tag === void 0 ? void 0 : tag.className, { [`${prefixCls}-${color}`]: isInternalColor, [`${prefixCls}-has-color`]: color && !isInternalColor, [`${prefixCls}-hidden`]: !visible, [`${prefixCls}-rtl`]: direction === 'rtl', [`${prefixCls}-borderless`]: !bordered }, className, rootClassName, hashId); const handleCloseClick = e => { e.stopPropagation(); onClose === null || onClose === void 0 ? void 0 : onClose(e); if (e.defaultPrevented) { return; } setVisible(false); }; const [, mergedCloseIcon] = (0,useClosable/* default */.Z)(closable, closeIcon, iconNode => iconNode === null ? /*#__PURE__*/_react_17_0_2_react.createElement(CloseOutlined/* default */.Z, { className: `${prefixCls}-close-icon`, onClick: handleCloseClick }) : /*#__PURE__*/_react_17_0_2_react.createElement("span", { className: `${prefixCls}-close-icon`, onClick: handleCloseClick }, iconNode), null, false); const isNeedWave = typeof props.onClick === 'function' || children && children.type === 'a'; const iconNode = icon || null; const kids = iconNode ? /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, iconNode, children && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)) : children; const tagNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, props, { ref: ref, className: tagClassName, style: tagStyle }), kids, mergedCloseIcon, isPreset && /*#__PURE__*/_react_17_0_2_react.createElement(presetCmp, { key: "preset", prefixCls: prefixCls }), isStatus && /*#__PURE__*/_react_17_0_2_react.createElement(statusCmp, { key: "status", prefixCls: prefixCls })); return wrapSSR(isNeedWave ? /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { component: "Tag" }, tagNode) : tagNode); }; const Tag = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalTag); if (false) {} Tag.CheckableTag = tag_CheckableTag; /* harmony default export */ var tag = (Tag); /***/ }), /***/ 31561: /*!*****************************************************************************!*\ !*** ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/index.js + 4 modules ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ _rc_dropdown_4_1_0_rc_dropdown_es; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(24931); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(84957); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(69553); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/objectWithoutProperties.js var objectWithoutProperties = __webpack_require__(46012); // EXTERNAL MODULE: ./node_modules/_@rc-component_trigger@1.18.3@@rc-component/trigger/es/index.js + 11 modules var es = __webpack_require__(35593); // EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js var _classnames_2_5_1_classnames = __webpack_require__(92310); var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames); // EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/ref.js var es_ref = __webpack_require__(76466); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/KeyCode.js var KeyCode = __webpack_require__(81331); // EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/raf.js var raf = __webpack_require__(91659); ;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/hooks/useAccessibility.js var ESC = KeyCode/* default */.Z.ESC, TAB = KeyCode/* default */.Z.TAB; function useAccessibility(_ref) { var visible = _ref.visible, triggerRef = _ref.triggerRef, onVisibleChange = _ref.onVisibleChange, autoFocus = _ref.autoFocus, overlayRef = _ref.overlayRef; var focusMenuRef = _react_17_0_2_react.useRef(false); var handleCloseMenuAndReturnFocus = function handleCloseMenuAndReturnFocus() { if (visible) { var _triggerRef$current, _triggerRef$current$f; (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : (_triggerRef$current$f = _triggerRef$current.focus) === null || _triggerRef$current$f === void 0 ? void 0 : _triggerRef$current$f.call(_triggerRef$current); onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(false); } }; var focusMenu = function focusMenu() { var _overlayRef$current; if ((_overlayRef$current = overlayRef.current) !== null && _overlayRef$current !== void 0 && _overlayRef$current.focus) { overlayRef.current.focus(); focusMenuRef.current = true; return true; } return false; }; var handleKeyDown = function handleKeyDown(event) { switch (event.keyCode) { case ESC: handleCloseMenuAndReturnFocus(); break; case TAB: { var focusResult = false; if (!focusMenuRef.current) { focusResult = focusMenu(); } if (focusResult) { event.preventDefault(); } else { handleCloseMenuAndReturnFocus(); } break; } } }; _react_17_0_2_react.useEffect(function () { if (visible) { window.addEventListener("keydown", handleKeyDown); if (autoFocus) { // FIXME: hack with raf (0,raf/* default */.Z)(focusMenu, 3); } return function () { window.removeEventListener("keydown", handleKeyDown); focusMenuRef.current = false; }; } return function () { focusMenuRef.current = false; }; }, [visible]); // eslint-disable-line react-hooks/exhaustive-deps } ;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/Overlay.js var Overlay = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (props, ref) { var overlay = props.overlay, arrow = props.arrow, prefixCls = props.prefixCls; var overlayNode = (0,_react_17_0_2_react.useMemo)(function () { var overlayElement; if (typeof overlay === 'function') { overlayElement = overlay(); } else { overlayElement = overlay; } return overlayElement; }, [overlay]); var composedRef = (0,es_ref/* composeRef */.sQ)(ref, overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.ref); return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, arrow && /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: "".concat(prefixCls, "-arrow") }), /*#__PURE__*/_react_17_0_2_react.cloneElement(overlayNode, { ref: (0,es_ref/* supportRef */.Yr)(overlayNode) ? composedRef : undefined })); }); /* harmony default export */ var es_Overlay = (Overlay); ;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/placements.js var autoAdjustOverflow = { adjustX: 1, adjustY: 1 }; var targetOffset = [0, 0]; var placements = { topLeft: { points: ['bl', 'tl'], overflow: autoAdjustOverflow, offset: [0, -4], targetOffset: targetOffset }, top: { points: ['bc', 'tc'], overflow: autoAdjustOverflow, offset: [0, -4], targetOffset: targetOffset }, topRight: { points: ['br', 'tr'], overflow: autoAdjustOverflow, offset: [0, -4], targetOffset: targetOffset }, bottomLeft: { points: ['tl', 'bl'], overflow: autoAdjustOverflow, offset: [0, 4], targetOffset: targetOffset }, bottom: { points: ['tc', 'bc'], overflow: autoAdjustOverflow, offset: [0, 4], targetOffset: targetOffset }, bottomRight: { points: ['tr', 'br'], overflow: autoAdjustOverflow, offset: [0, 4], targetOffset: targetOffset } }; /* harmony default export */ var es_placements = (placements); ;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/Dropdown.js var _excluded = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"]; function Dropdown(props, ref) { var _children$props; var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? 'rc-dropdown' : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement, _props$placements = props.placements, placements = _props$placements === void 0 ? es_placements : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children = props.children, onVisibleChange = props.onVisibleChange, otherProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded); var _React$useState = _react_17_0_2_react.useState(), _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2), triggerVisible = _React$useState2[0], setTriggerVisible = _React$useState2[1]; var mergedVisible = 'visible' in props ? visible : triggerVisible; var triggerRef = _react_17_0_2_react.useRef(null); var overlayRef = _react_17_0_2_react.useRef(null); var childRef = _react_17_0_2_react.useRef(null); _react_17_0_2_react.useImperativeHandle(ref, function () { return triggerRef.current; }); var handleVisibleChange = function handleVisibleChange(newVisible) { setTriggerVisible(newVisible); onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(newVisible); }; useAccessibility({ visible: mergedVisible, triggerRef: childRef, onVisibleChange: handleVisibleChange, autoFocus: autoFocus, overlayRef: overlayRef }); var onClick = function onClick(e) { var onOverlayClick = props.onOverlayClick; setTriggerVisible(false); if (onOverlayClick) { onOverlayClick(e); } }; var getMenuElement = function getMenuElement() { return /*#__PURE__*/_react_17_0_2_react.createElement(es_Overlay, { ref: overlayRef, overlay: overlay, prefixCls: prefixCls, arrow: arrow }); }; var getMenuElementOrLambda = function getMenuElementOrLambda() { if (typeof overlay === 'function') { return getMenuElement; } return getMenuElement(); }; var getMinOverlayWidthMatchTrigger = function getMinOverlayWidthMatchTrigger() { var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger, alignPoint = props.alignPoint; if ('minOverlayWidthMatchTrigger' in props) { return minOverlayWidthMatchTrigger; } return !alignPoint; }; var getOpenClassName = function getOpenClassName() { var openClassName = props.openClassName; if (openClassName !== undefined) { return openClassName; } return "".concat(prefixCls, "-open"); }; var childrenNode = /*#__PURE__*/_react_17_0_2_react.cloneElement(children, { className: _classnames_2_5_1_classnames_default()((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.className, mergedVisible && getOpenClassName()), ref: (0,es_ref/* supportRef */.Yr)(children) ? (0,es_ref/* composeRef */.sQ)(childRef, children.ref) : undefined }); var triggerHideAction = hideAction; if (!triggerHideAction && trigger.indexOf('contextMenu') !== -1) { triggerHideAction = ['click']; } return /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({ builtinPlacements: placements }, otherProps, { prefixCls: prefixCls, ref: triggerRef, popupClassName: _classnames_2_5_1_classnames_default()(overlayClassName, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-show-arrow"), arrow)), popupStyle: overlayStyle, action: trigger, showAction: showAction, hideAction: triggerHideAction, popupPlacement: placement, popupAlign: align, popupTransitionName: transitionName, popupAnimation: animation, popupVisible: mergedVisible, stretch: getMinOverlayWidthMatchTrigger() ? 'minWidth' : '', popup: getMenuElementOrLambda(), onPopupVisibleChange: handleVisibleChange, onPopupClick: onClick, getPopupContainer: getPopupContainer }), childrenNode); } /* harmony default export */ var es_Dropdown = (/*#__PURE__*/_react_17_0_2_react.forwardRef(Dropdown)); ;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/index.js /* harmony default export */ var _rc_dropdown_4_1_0_rc_dropdown_es = (es_Dropdown); /***/ }) }]);