(self["webpackChunk"] = self["webpackChunk"] || []).push([[45339,72032],{ /***/ 20570: /*!*************************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***! \*************************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_CloseCircleOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(36384); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js // This icon file is generated automatically. var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" }; /* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(15436); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/CloseCircleOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_CloseCircleOutlined })); }; if (false) {} /* harmony default export */ var icons_CloseCircleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined)); /***/ }), /***/ 23350: /*!**********************************************************!*\ !*** ./node_modules/_swiper@5.4.5@swiper/css/swiper.css ***! \**********************************************************/ /***/ (function() { "use strict"; // extracted by mini-css-extract-plugin /***/ }), /***/ 18889: /*!********************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/card/index.js + 4 modules ***! \********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ card; } }); // 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.38.2@rc-util/es/omit.js var omit = __webpack_require__(41123); // 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 context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js var useSize = __webpack_require__(19716); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(2518); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules var es_tabs = __webpack_require__(99313); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/Grid.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 Grid = _a => { var { prefixCls, className, hoverable = true } = _a, props = __rest(_a, ["prefixCls", "className", "hoverable"]); const { getPrefixCls } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const prefix = getPrefixCls('card', prefixCls); const classString = _classnames_2_5_1_classnames_default()(`${prefix}-grid`, className, { [`${prefix}-grid-hoverable`]: hoverable }); return /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, props, { className: classString })); }; /* harmony default export */ var card_Grid = (Grid); // 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/genComponentStyleHook.js var genComponentStyleHook = __webpack_require__(83116); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js var statistic = __webpack_require__(37613); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/style/index.js // ============================== Styles ============================== // ============================== Head ============================== const genCardHeadStyle = token => { const { antCls, componentCls, headerHeight, cardPaddingBase, tabsMarginBottom } = token; return Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', flexDirection: 'column', minHeight: headerHeight, marginBottom: -1, padding: `0 ${cardPaddingBase}px`, color: token.colorTextHeading, fontWeight: token.fontWeightStrong, fontSize: token.headerFontSize, background: token.headerBg, borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`, borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0` }, (0,style/* clearFix */.dF)()), { '&-wrapper': { width: '100%', display: 'flex', alignItems: 'center' }, '&-title': Object.assign(Object.assign({ display: 'inline-block', flex: 1 }, style/* textEllipsis */.vS), { [` > ${componentCls}-typography, > ${componentCls}-typography-edit-content `]: { insetInlineStart: 0, marginTop: 0, marginBottom: 0 } }), [`${antCls}-tabs-top`]: { clear: 'both', marginBottom: tabsMarginBottom, color: token.colorText, fontWeight: 'normal', fontSize: token.fontSize, '&-bar': { borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}` } } }); }; // ============================== Grid ============================== const genCardGridStyle = token => { const { cardPaddingBase, colorBorderSecondary, cardShadow, lineWidth } = token; return { width: '33.33%', padding: cardPaddingBase, border: 0, borderRadius: 0, boxShadow: ` ${lineWidth}px 0 0 0 ${colorBorderSecondary}, 0 ${lineWidth}px 0 0 ${colorBorderSecondary}, ${lineWidth}px ${lineWidth}px 0 0 ${colorBorderSecondary}, ${lineWidth}px 0 0 0 ${colorBorderSecondary} inset, 0 ${lineWidth}px 0 0 ${colorBorderSecondary} inset; `, transition: `all ${token.motionDurationMid}`, '&-hoverable:hover': { position: 'relative', zIndex: 1, boxShadow: cardShadow } }; }; // ============================== Actions ============================== const genCardActionsStyle = token => { const { componentCls, iconCls, actionsLiMargin, cardActionsIconSize, colorBorderSecondary, actionsBg } = token; return Object.assign(Object.assign({ margin: 0, padding: 0, listStyle: 'none', background: actionsBg, borderTop: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`, display: 'flex', borderRadius: `0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px ` }, (0,style/* clearFix */.dF)()), { '& > li': { margin: actionsLiMargin, color: token.colorTextDescription, textAlign: 'center', '> span': { position: 'relative', display: 'block', minWidth: token.cardActionsIconSize * 2, fontSize: token.fontSize, lineHeight: token.lineHeight, cursor: 'pointer', '&:hover': { color: token.colorPrimary, transition: `color ${token.motionDurationMid}` }, [`a:not(${componentCls}-btn), > ${iconCls}`]: { display: 'inline-block', width: '100%', color: token.colorTextDescription, lineHeight: `${token.fontSize * token.lineHeight}px`, transition: `color ${token.motionDurationMid}`, '&:hover': { color: token.colorPrimary } }, [`> ${iconCls}`]: { fontSize: cardActionsIconSize, lineHeight: `${cardActionsIconSize * token.lineHeight}px` } }, '&:not(:last-child)': { borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}` } } }); }; // ============================== Meta ============================== const genCardMetaStyle = token => Object.assign(Object.assign({ margin: `-${token.marginXXS}px 0`, display: 'flex' }, (0,style/* clearFix */.dF)()), { '&-avatar': { paddingInlineEnd: token.padding }, '&-detail': { overflow: 'hidden', flex: 1, '> div:not(:last-child)': { marginBottom: token.marginXS } }, '&-title': Object.assign({ color: token.colorTextHeading, fontWeight: token.fontWeightStrong, fontSize: token.fontSizeLG }, style/* textEllipsis */.vS), '&-description': { color: token.colorTextDescription } }); // ============================== Inner ============================== const genCardTypeInnerStyle = token => { const { componentCls, cardPaddingBase, colorFillAlter } = token; return { [`${componentCls}-head`]: { padding: `0 ${cardPaddingBase}px`, background: colorFillAlter, '&-title': { fontSize: token.fontSize } }, [`${componentCls}-body`]: { padding: `${token.padding}px ${cardPaddingBase}px` } }; }; // ============================== Loading ============================== const genCardLoadingStyle = token => { const { componentCls } = token; return { overflow: 'hidden', [`${componentCls}-body`]: { userSelect: 'none' } }; }; // ============================== Basic ============================== const genCardStyle = token => { const { antCls, componentCls, cardShadow, cardHeadPadding, colorBorderSecondary, boxShadowTertiary, cardPaddingBase, extraColor } = token; return { [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { position: 'relative', background: token.colorBgContainer, borderRadius: token.borderRadiusLG, [`&:not(${componentCls}-bordered)`]: { boxShadow: boxShadowTertiary }, [`${componentCls}-head`]: genCardHeadStyle(token), [`${componentCls}-extra`]: { // https://stackoverflow.com/a/22429853/3040605 marginInlineStart: 'auto', color: extraColor, fontWeight: 'normal', fontSize: token.fontSize }, [`${componentCls}-body`]: Object.assign({ padding: cardPaddingBase, borderRadius: ` 0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px` }, (0,style/* clearFix */.dF)()), [`${componentCls}-grid`]: genCardGridStyle(token), [`${componentCls}-cover`]: { '> *': { display: 'block', width: '100%' }, [`img, img + ${antCls}-image-mask`]: { borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0` } }, [`${componentCls}-actions`]: genCardActionsStyle(token), [`${componentCls}-meta`]: genCardMetaStyle(token) }), [`${componentCls}-bordered`]: { border: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`, [`${componentCls}-cover`]: { marginTop: -1, marginInlineStart: -1, marginInlineEnd: -1 } }, [`${componentCls}-hoverable`]: { cursor: 'pointer', transition: `box-shadow ${token.motionDurationMid}, border-color ${token.motionDurationMid}`, '&:hover': { borderColor: 'transparent', boxShadow: cardShadow } }, [`${componentCls}-contain-grid`]: { [`${componentCls}-body`]: { display: 'flex', flexWrap: 'wrap' }, [`&:not(${componentCls}-loading) ${componentCls}-body`]: { marginBlockStart: -token.lineWidth, marginInlineStart: -token.lineWidth, padding: 0 } }, [`${componentCls}-contain-tabs`]: { [`> ${componentCls}-head`]: { [`${componentCls}-head-title, ${componentCls}-extra`]: { paddingTop: cardHeadPadding } } }, [`${componentCls}-type-inner`]: genCardTypeInnerStyle(token), [`${componentCls}-loading`]: genCardLoadingStyle(token), [`${componentCls}-rtl`]: { direction: 'rtl' } }; }; // ============================== Size ============================== const genCardSizeStyle = token => { const { componentCls, cardPaddingSM, headerHeightSM, headerFontSizeSM } = token; return { [`${componentCls}-small`]: { [`> ${componentCls}-head`]: { minHeight: headerHeightSM, padding: `0 ${cardPaddingSM}px`, fontSize: headerFontSizeSM, [`> ${componentCls}-head-wrapper`]: { [`> ${componentCls}-extra`]: { fontSize: token.fontSize } } }, [`> ${componentCls}-body`]: { padding: cardPaddingSM } }, [`${componentCls}-small${componentCls}-contain-tabs`]: { [`> ${componentCls}-head`]: { [`${componentCls}-head-title, ${componentCls}-extra`]: { minHeight: headerHeightSM, paddingTop: 0, display: 'flex', alignItems: 'center' } } } }; }; // ============================== Export ============================== /* harmony default export */ var card_style = ((0,genComponentStyleHook/* default */.Z)('Card', token => { const cardToken = (0,statistic/* merge */.TS)(token, { cardShadow: token.boxShadowCard, cardHeadPadding: token.padding, cardPaddingBase: token.paddingLG, cardActionsIconSize: token.fontSize, cardPaddingSM: 12 // Fixed padding. }); return [ // Style genCardStyle(cardToken), // Size genCardSizeStyle(cardToken)]; }, token => ({ headerBg: 'transparent', headerFontSize: token.fontSizeLG, headerFontSizeSM: token.fontSize, headerHeight: token.fontSizeLG * token.lineHeightLG + token.padding * 2, headerHeightSM: token.fontSize * token.lineHeight + token.paddingXS * 2, actionsBg: token.colorBgContainer, actionsLiMargin: `${token.paddingSM}px 0`, tabsMarginBottom: -token.padding - token.lineWidth, extraColor: token.colorText }))); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/Card.js "use client"; var Card_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; }; function getAction(actions) { return actions.map((action, index) => /*#__PURE__*/ // eslint-disable-next-line react/no-array-index-key _react_17_0_2_react.createElement("li", { style: { width: `${100 / actions.length}%` }, key: `action-${index}` }, /*#__PURE__*/_react_17_0_2_react.createElement("span", null, action))); } const Card = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { const { prefixCls: customizePrefixCls, className, rootClassName, style, extra, headStyle = {}, bodyStyle = {}, title, loading, bordered = true, size: customizeSize, type, cover, actions, tabList, children, activeTabKey, defaultActiveTabKey, tabBarExtraContent, hoverable, tabProps = {} } = props, others = Card_rest(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps"]); const { getPrefixCls, direction, card } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const onTabChange = key => { var _a; (_a = props.onTabChange) === null || _a === void 0 ? void 0 : _a.call(props, key); }; const isContainGrid = _react_17_0_2_react.useMemo(() => { let containGrid = false; _react_17_0_2_react.Children.forEach(children, element => { if (element && element.type && element.type === card_Grid) { containGrid = true; } }); return containGrid; }, [children]); const prefixCls = getPrefixCls('card', customizePrefixCls); const [wrapSSR, hashId] = card_style(prefixCls); const loadingBlock = /*#__PURE__*/_react_17_0_2_react.createElement(skeleton/* default */.Z, { loading: true, active: true, paragraph: { rows: 4 }, title: false }, children); const hasActiveTabKey = activeTabKey !== undefined; const extraProps = Object.assign(Object.assign({}, tabProps), { [hasActiveTabKey ? 'activeKey' : 'defaultActiveKey']: hasActiveTabKey ? activeTabKey : defaultActiveTabKey, tabBarExtraContent }); let head; const mergedSize = (0,useSize/* default */.Z)(customizeSize); const tabSize = !mergedSize || mergedSize === 'default' ? 'large' : mergedSize; const tabs = tabList ? /*#__PURE__*/_react_17_0_2_react.createElement(es_tabs/* default */.Z, Object.assign({ size: tabSize }, extraProps, { className: `${prefixCls}-head-tabs`, onChange: onTabChange, items: tabList.map(_a => { var { tab } = _a, item = Card_rest(_a, ["tab"]); return Object.assign({ label: tab }, item); }) })) : null; if (title || extra || tabs) { head = /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-head`, style: headStyle }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-head-wrapper` }, title && /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-head-title` }, title), extra && /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-extra` }, extra)), tabs); } const coverDom = cover ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-cover` }, cover) : null; const body = /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-body`, style: bodyStyle }, loading ? loadingBlock : children); const actionDom = actions && actions.length ? /*#__PURE__*/_react_17_0_2_react.createElement("ul", { className: `${prefixCls}-actions` }, getAction(actions)) : null; const divProps = (0,omit/* default */.Z)(others, ['onTabChange']); const classString = _classnames_2_5_1_classnames_default()(prefixCls, card === null || card === void 0 ? void 0 : card.className, { [`${prefixCls}-loading`]: loading, [`${prefixCls}-bordered`]: bordered, [`${prefixCls}-hoverable`]: hoverable, [`${prefixCls}-contain-grid`]: isContainGrid, [`${prefixCls}-contain-tabs`]: tabList && tabList.length, [`${prefixCls}-${mergedSize}`]: mergedSize, [`${prefixCls}-type-${type}`]: !!type, [`${prefixCls}-rtl`]: direction === 'rtl' }, className, rootClassName, hashId); const mergedStyle = Object.assign(Object.assign({}, card === null || card === void 0 ? void 0 : card.style), style); return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ ref: ref }, divProps, { className: classString, style: mergedStyle }), head, coverDom, body, actionDom)); }); /* harmony default export */ var card_Card = (Card); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/Meta.js "use client"; var Meta_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 Meta = props => { const { prefixCls: customizePrefixCls, className, avatar, title, description } = props, others = Meta_rest(props, ["prefixCls", "className", "avatar", "title", "description"]); const { getPrefixCls } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const prefixCls = getPrefixCls('card', customizePrefixCls); const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-meta`, className); const avatarDom = avatar ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-meta-avatar` }, avatar) : null; const titleDom = title ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-meta-title` }, title) : null; const descriptionDom = description ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-meta-description` }, description) : null; const MetaDetail = titleDom || descriptionDom ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: `${prefixCls}-meta-detail` }, titleDom, descriptionDom) : null; return /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, others, { className: classString }), avatarDom, MetaDetail); }; /* harmony default export */ var card_Meta = (Meta); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/index.js "use client"; const es_card_Card = card_Card; es_card_Card.Grid = card_Grid; es_card_Card.Meta = card_Meta; if (false) {} /* harmony default export */ var card = (es_card_Card); /***/ }), /***/ 9204: /*!********************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/rate/index.js + 8 modules ***! \********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ rate; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(36384); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/StarFilled.js // This icon file is generated automatically. var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" }; /* harmony default export */ var asn_StarFilled = (StarFilled); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(15436); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/StarFilled.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var StarFilled_StarFilled = function StarFilled(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_StarFilled })); }; if (false) {} /* harmony default export */ var icons_StarFilled = (/*#__PURE__*/_react_17_0_2_react.forwardRef(StarFilled_StarFilled)); // 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/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(25607); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(3229); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/objectWithoutProperties.js var objectWithoutProperties = __webpack_require__(35870); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.2@rc-util/es/hooks/useMergedState.js var useMergedState = __webpack_require__(89308); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.2@rc-util/es/KeyCode.js var KeyCode = __webpack_require__(39193); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.2@rc-util/es/pickAttrs.js var pickAttrs = __webpack_require__(64834); ;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/Star.js function Star(props, ref) { var disabled = props.disabled, prefixCls = props.prefixCls, character = props.character, characterRender = props.characterRender, index = props.index, count = props.count, value = props.value, allowHalf = props.allowHalf, focused = props.focused, onHover = props.onHover, onClick = props.onClick; // =========================== Events =========================== var onInternalHover = function onInternalHover(e) { onHover(e, index); }; var onInternalClick = function onInternalClick(e) { onClick(e, index); }; var onInternalKeyDown = function onInternalKeyDown(e) { if (e.keyCode === KeyCode/* default */.Z.ENTER) { onClick(e, index); } }; // =========================== Render =========================== // >>>>> ClassName var starValue = index + 1; var classNameList = new Set([prefixCls]); // TODO: Current we just refactor from CC to FC. This logic seems can be optimized. if (value === 0 && index === 0 && focused) { classNameList.add("".concat(prefixCls, "-focused")); } else if (allowHalf && value + 0.5 >= starValue && value < starValue) { classNameList.add("".concat(prefixCls, "-half")); classNameList.add("".concat(prefixCls, "-active")); if (focused) { classNameList.add("".concat(prefixCls, "-focused")); } } else { if (starValue <= value) { classNameList.add("".concat(prefixCls, "-full")); } else { classNameList.add("".concat(prefixCls, "-zero")); } if (starValue === value && focused) { classNameList.add("".concat(prefixCls, "-focused")); } } // >>>>> Node var characterNode = typeof character === 'function' ? character(props) : character; var start = /*#__PURE__*/_react_17_0_2_react.createElement("li", { className: _classnames_2_5_1_classnames_default()(Array.from(classNameList)), ref: ref }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { onClick: disabled ? null : onInternalClick, onKeyDown: disabled ? null : onInternalKeyDown, onMouseMove: disabled ? null : onInternalHover, role: "radio", "aria-checked": value > index ? 'true' : 'false', "aria-posinset": index + 1, "aria-setsize": count, tabIndex: disabled ? -1 : 0 }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: "".concat(prefixCls, "-first") }, characterNode), /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: "".concat(prefixCls, "-second") }, characterNode))); if (characterRender) { start = characterRender(start, props); } return start; } /* harmony default export */ var es_Star = (/*#__PURE__*/_react_17_0_2_react.forwardRef(Star)); ;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/useRefs.js function useRefs() { var nodeRef = _react_17_0_2_react.useRef({}); function getRef(index) { return nodeRef.current[index]; } function setRef(index) { return function (node) { nodeRef.current[index] = node; }; } return [getRef, setRef]; } ;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/util.js function getScroll(w) { var ret = w.pageXOffset; var method = 'scrollLeft'; if (typeof ret !== 'number') { var d = w.document; // ie6,7,8 standard mode ret = d.documentElement[method]; if (typeof ret !== 'number') { // quirks mode ret = d.body[method]; } } return ret; } function getClientPosition(elem) { var x; var y; var doc = elem.ownerDocument; var body = doc.body; var docElem = doc && doc.documentElement; var box = elem.getBoundingClientRect(); x = box.left; y = box.top; x -= docElem.clientLeft || body.clientLeft || 0; y -= docElem.clientTop || body.clientTop || 0; return { left: x, top: y }; } function getOffsetLeft(el) { var pos = getClientPosition(el); var doc = el.ownerDocument; // Only IE use `parentWindow` var w = doc.defaultView || doc.parentWindow; pos.left += getScroll(w); return pos.left; } ;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/Rate.js var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"]; function Rate(props, ref) { var _classNames; var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls, className = props.className, defaultValue = props.defaultValue, propValue = props.value, _props$count = props.count, count = _props$count === void 0 ? 5 : _props$count, _props$allowHalf = props.allowHalf, allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf, _props$allowClear = props.allowClear, allowClear = _props$allowClear === void 0 ? true : _props$allowClear, _props$character = props.character, character = _props$character === void 0 ? '★' : _props$character, characterRender = props.characterRender, disabled = props.disabled, _props$direction = props.direction, direction = _props$direction === void 0 ? 'ltr' : _props$direction, _props$tabIndex = props.tabIndex, tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, autoFocus = props.autoFocus, onHoverChange = props.onHoverChange, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onKeyDown = props.onKeyDown, onMouseLeave = props.onMouseLeave, restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded); var _useRefs = useRefs(), _useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2), getStarRef = _useRefs2[0], setStarRef = _useRefs2[1]; var rateRef = _react_17_0_2_react.useRef(null); // ============================ Ref ============================= var triggerFocus = function triggerFocus() { if (!disabled) { var _rateRef$current; (_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus(); } }; _react_17_0_2_react.useImperativeHandle(ref, function () { return { focus: triggerFocus, blur: function blur() { if (!disabled) { var _rateRef$current2; (_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur(); } } }; }); // =========================== Value ============================ var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, { value: propValue }), _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2), value = _useMergedState2[0], setValue = _useMergedState2[1]; var _useMergedState3 = (0,useMergedState/* default */.Z)(null), _useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2), cleanedValue = _useMergedState4[0], setCleanedValue = _useMergedState4[1]; var getStarValue = function getStarValue(index, x) { var reverse = direction === 'rtl'; var starValue = index + 1; if (allowHalf) { var starEle = getStarRef(index); var leftDis = getOffsetLeft(starEle); var width = starEle.clientWidth; if (reverse && x - leftDis > width / 2) { starValue -= 0.5; } else if (!reverse && x - leftDis < width / 2) { starValue -= 0.5; } } return starValue; }; // >>>>> Change var changeValue = function changeValue(nextValue) { setValue(nextValue); onChange === null || onChange === void 0 ? void 0 : onChange(nextValue); }; // =========================== Focus ============================ var _React$useState = _react_17_0_2_react.useState(false), _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2), focused = _React$useState2[0], setFocused = _React$useState2[1]; var onInternalFocus = function onInternalFocus() { setFocused(true); onFocus === null || onFocus === void 0 ? void 0 : onFocus(); }; var onInternalBlur = function onInternalBlur() { setFocused(false); onBlur === null || onBlur === void 0 ? void 0 : onBlur(); }; // =========================== Hover ============================ var _React$useState3 = _react_17_0_2_react.useState(null), _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2), hoverValue = _React$useState4[0], setHoverValue = _React$useState4[1]; var onHover = function onHover(event, index) { var nextHoverValue = getStarValue(index, event.pageX); if (nextHoverValue !== cleanedValue) { setHoverValue(nextHoverValue); setCleanedValue(null); } onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue); }; var onMouseLeaveCallback = function onMouseLeaveCallback(event) { if (!disabled) { setHoverValue(null); setCleanedValue(null); onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined); } if (event) { onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event); } }; // =========================== Click ============================ var onClick = function onClick(event, index) { var newValue = getStarValue(index, event.pageX); var isReset = false; if (allowClear) { isReset = newValue === value; } onMouseLeaveCallback(); changeValue(isReset ? 0 : newValue); setCleanedValue(isReset ? newValue : null); }; var onInternalKeyDown = function onInternalKeyDown(event) { var keyCode = event.keyCode; var reverse = direction === 'rtl'; var nextValue = value; if (keyCode === KeyCode/* default */.Z.RIGHT && nextValue < count && !reverse) { if (allowHalf) { nextValue += 0.5; } else { nextValue += 1; } changeValue(nextValue); event.preventDefault(); } else if (keyCode === KeyCode/* default */.Z.LEFT && nextValue > 0 && !reverse) { if (allowHalf) { nextValue -= 0.5; } else { nextValue -= 1; } changeValue(nextValue); event.preventDefault(); } else if (keyCode === KeyCode/* default */.Z.RIGHT && nextValue > 0 && reverse) { if (allowHalf) { nextValue -= 0.5; } else { nextValue -= 1; } changeValue(nextValue); event.preventDefault(); } else if (keyCode === KeyCode/* default */.Z.LEFT && nextValue < count && reverse) { if (allowHalf) { nextValue += 0.5; } else { nextValue += 1; } changeValue(nextValue); event.preventDefault(); } onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event); }; // =========================== Effect =========================== _react_17_0_2_react.useEffect(function () { if (autoFocus && !disabled) { triggerFocus(); } }, []); // =========================== Render =========================== // >>> Star var starNodes = new Array(count).fill(0).map(function (item, index) { return /*#__PURE__*/_react_17_0_2_react.createElement(es_Star, { ref: setStarRef(index), index: index, count: count, disabled: disabled, prefixCls: "".concat(prefixCls, "-star"), allowHalf: allowHalf, value: hoverValue === null ? value : hoverValue, onClick: onClick, onHover: onHover, key: item || index, character: character, characterRender: characterRender, focused: focused }); }); var classString = _classnames_2_5_1_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames)); // >>> Node return /*#__PURE__*/_react_17_0_2_react.createElement("ul", (0,esm_extends/* default */.Z)({ className: classString, onMouseLeave: onMouseLeaveCallback, tabIndex: disabled ? -1 : tabIndex, onFocus: disabled ? null : onInternalFocus, onBlur: disabled ? null : onInternalBlur, onKeyDown: disabled ? null : onInternalKeyDown, ref: rateRef, role: "radiogroup" }, (0,pickAttrs/* default */.Z)(restProps, { aria: true, data: true, attr: true })), starNodes); } /* harmony default export */ var es_Rate = (/*#__PURE__*/_react_17_0_2_react.forwardRef(Rate)); ;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/index.js /* harmony default export */ var es = (es_Rate); // 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/tooltip/index.js + 3 modules var tooltip = __webpack_require__(6848); // 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/genComponentStyleHook.js var genComponentStyleHook = __webpack_require__(83116); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js var statistic = __webpack_require__(37613); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/rate/style/index.js "use client"; const genRateStarStyle = token => { const { componentCls } = token; return { [`${componentCls}-star`]: { position: 'relative', display: 'inline-block', color: 'inherit', cursor: 'pointer', '&:not(:last-child)': { marginInlineEnd: token.marginXS }, '> div': { transition: `all ${token.motionDurationMid}, outline 0s`, '&:hover': { transform: token.starHoverScale }, '&:focus': { outline: 0 }, '&:focus-visible': { outline: `${token.lineWidth}px dashed ${token.starColor}`, transform: token.starHoverScale } }, '&-first, &-second': { color: token.starBg, transition: `all ${token.motionDurationMid}`, userSelect: 'none', [token.iconCls]: { verticalAlign: 'middle' } }, '&-first': { position: 'absolute', top: 0, insetInlineStart: 0, width: '50%', height: '100%', overflow: 'hidden', opacity: 0 }, [`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: { opacity: 1 }, [`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: { color: 'inherit' } } }; }; const genRateRtlStyle = token => ({ [`&-rtl${token.componentCls}`]: { direction: 'rtl' } }); const genRateStyle = token => { const { componentCls } = token; return { [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { display: 'inline-block', margin: 0, padding: 0, color: token.starColor, fontSize: token.starSize, lineHeight: 'unset', listStyle: 'none', outline: 'none', // disable styles [`&-disabled${componentCls} ${componentCls}-star`]: { cursor: 'default', '> div:hover': { transform: 'scale(1)' } } }), genRateStarStyle(token)), { // text styles [`+ ${componentCls}-text`]: { display: 'inline-block', marginInlineStart: token.marginXS, fontSize: token.fontSize } }), genRateRtlStyle(token)) }; }; // ============================== Export ============================== /* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => { const rateToken = (0,statistic/* merge */.TS)(token, {}); return [genRateStyle(rateToken)]; }, token => ({ starColor: token.yellow6, starSize: token.controlHeightLG * 0.5, starHoverScale: 'scale(1.1)', starBg: token.colorFillContent }))); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/rate/index.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 rate_Rate = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { const { prefixCls, className, rootClassName, style, tooltips, character = /*#__PURE__*/_react_17_0_2_react.createElement(icons_StarFilled, null) } = props, rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]); const characterRender = (node, _ref) => { let { index } = _ref; if (!tooltips) { return node; } return /*#__PURE__*/_react_17_0_2_react.createElement(tooltip/* default */.Z, { title: tooltips[index] }, node); }; const { getPrefixCls, direction, rate } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const ratePrefixCls = getPrefixCls('rate', prefixCls); // Style const [wrapSSR, hashId] = rate_style(ratePrefixCls); const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style); return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({ ref: ref, character: character, characterRender: characterRender }, rest, { className: _classnames_2_5_1_classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className), style: mergedStyle, prefixCls: ratePrefixCls, direction: direction }))); }); if (false) {} /* harmony default export */ var rate = (rate_Rate); /***/ }), /***/ 12563: /*!*******************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // 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.1@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules var CloseOutlined = __webpack_require__(3680); // 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); /***/ }), /***/ 25769: /*!**************************************************************************!*\ !*** ./node_modules/_copy-to-clipboard@3.3.3@copy-to-clipboard/index.js ***! \**************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var deselectCurrent = __webpack_require__(/*! toggle-selection */ 98040); var clipboardToIE11Formatting = { "text/plain": "Text", "text/html": "Url", "default": "Text" } var defaultMessage = "Copy to clipboard: #{key}, Enter"; function format(message) { var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; return message.replace(/#{\s*key\s*}/g, copyKey); } function copy(text, options) { var debug, message, reselectPrevious, range, selection, mark, success = false; if (!options) { options = {}; } debug = options.debug || false; try { reselectPrevious = deselectCurrent(); range = document.createRange(); selection = document.getSelection(); mark = document.createElement("span"); mark.textContent = text; // avoid screen readers from reading out loud the text mark.ariaHidden = "true" // reset user styles for span element mark.style.all = "unset"; // prevents scrolling to the end of the page mark.style.position = "fixed"; mark.style.top = 0; mark.style.clip = "rect(0, 0, 0, 0)"; // used to preserve spaces and line breaks mark.style.whiteSpace = "pre"; // do not inherit user-select (it may be `none`) mark.style.webkitUserSelect = "text"; mark.style.MozUserSelect = "text"; mark.style.msUserSelect = "text"; mark.style.userSelect = "text"; mark.addEventListener("copy", function(e) { e.stopPropagation(); if (options.format) { e.preventDefault(); if (typeof e.clipboardData === "undefined") { // IE 11 debug && console.warn("unable to use e.clipboardData"); debug && console.warn("trying IE specific stuff"); window.clipboardData.clearData(); var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"] window.clipboardData.setData(format, text); } else { // all other browsers e.clipboardData.clearData(); e.clipboardData.setData(options.format, text); } } if (options.onCopy) { e.preventDefault(); options.onCopy(e.clipboardData); } }); document.body.appendChild(mark); range.selectNodeContents(mark); selection.addRange(range); var successful = document.execCommand("copy"); if (!successful) { throw new Error("copy command was unsuccessful"); } success = true; } catch (err) { debug && console.error("unable to copy using execCommand: ", err); debug && console.warn("trying IE specific stuff"); try { window.clipboardData.setData(options.format || "text", text); options.onCopy && options.onCopy(window.clipboardData); success = true; } catch (err) { debug && console.error("unable to copy using clipboardData: ", err); debug && console.error("falling back to prompt"); message = format("message" in options ? options.message : defaultMessage); window.prompt(message, text); } } finally { if (selection) { if (typeof selection.removeRange == "function") { selection.removeRange(range); } else { selection.removeAllRanges(); } } if (mark) { document.body.removeChild(mark); } reselectPrevious(); } return success; } module.exports = copy; /***/ }), /***/ 24334: /*!***********************************************************!*\ !*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***! \***********************************************************/ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* * base64.js * * Licensed under the BSD 3-Clause License. * http://opensource.org/licenses/BSD-3-Clause * * References: * http://en.wikipedia.org/wiki/Base64 */ ;(function (global, factory) { true ? module.exports = factory(global) : 0 }(( typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : this ), function(global) { 'use strict'; // existing version for noConflict() global = global || {}; var _Base64 = global.Base64; var version = "2.6.4"; // constants var b64chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; var b64tab = function(bin) { var t = {}; for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i; return t; }(b64chars); var fromCharCode = String.fromCharCode; // encoder stuff var cb_utob = function(c) { if (c.length < 2) { var cc = c.charCodeAt(0); return cc < 0x80 ? c : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6)) + fromCharCode(0x80 | (cc & 0x3f))) : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f)) + fromCharCode(0x80 | ((cc >>> 6) & 0x3f)) + fromCharCode(0x80 | ( cc & 0x3f))); } else { var cc = 0x10000 + (c.charCodeAt(0) - 0xD800) * 0x400 + (c.charCodeAt(1) - 0xDC00); return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07)) + fromCharCode(0x80 | ((cc >>> 12) & 0x3f)) + fromCharCode(0x80 | ((cc >>> 6) & 0x3f)) + fromCharCode(0x80 | ( cc & 0x3f))); } }; var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g; var utob = function(u) { return u.replace(re_utob, cb_utob); }; var cb_encode = function(ccc) { var padlen = [0, 2, 1][ccc.length % 3], ord = ccc.charCodeAt(0) << 16 | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8) | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)), chars = [ b64chars.charAt( ord >>> 18), b64chars.charAt((ord >>> 12) & 63), padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63), padlen >= 1 ? '=' : b64chars.charAt(ord & 63) ]; return chars.join(''); }; var btoa = global.btoa && typeof global.btoa == 'function' ? function(b){ return global.btoa(b) } : function(b) { if (b.match(/[^\x00-\xFF]/)) throw new RangeError( 'The string contains invalid characters.' ); return b.replace(/[\s\S]{1,3}/g, cb_encode); }; var _encode = function(u) { return btoa(utob(String(u))); }; var mkUriSafe = function (b64) { return b64.replace(/[+\/]/g, function(m0) { return m0 == '+' ? '-' : '_'; }).replace(/=/g, ''); }; var encode = function(u, urisafe) { return urisafe ? mkUriSafe(_encode(u)) : _encode(u); }; var encodeURI = function(u) { return encode(u, true) }; var fromUint8Array; if (global.Uint8Array) fromUint8Array = function(a, urisafe) { // return btoa(fromCharCode.apply(null, a)); var b64 = ''; for (var i = 0, l = a.length; i < l; i += 3) { var a0 = a[i], a1 = a[i+1], a2 = a[i+2]; var ord = a0 << 16 | a1 << 8 | a2; b64 += b64chars.charAt( ord >>> 18) + b64chars.charAt((ord >>> 12) & 63) + ( typeof a1 != 'undefined' ? b64chars.charAt((ord >>> 6) & 63) : '=') + ( typeof a2 != 'undefined' ? b64chars.charAt( ord & 63) : '='); } return urisafe ? mkUriSafe(b64) : b64; }; // decoder stuff var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g; var cb_btou = function(cccc) { switch(cccc.length) { case 4: var cp = ((0x07 & cccc.charCodeAt(0)) << 18) | ((0x3f & cccc.charCodeAt(1)) << 12) | ((0x3f & cccc.charCodeAt(2)) << 6) | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000; return (fromCharCode((offset >>> 10) + 0xD800) + fromCharCode((offset & 0x3FF) + 0xDC00)); case 3: return fromCharCode( ((0x0f & cccc.charCodeAt(0)) << 12) | ((0x3f & cccc.charCodeAt(1)) << 6) | (0x3f & cccc.charCodeAt(2)) ); default: return fromCharCode( ((0x1f & cccc.charCodeAt(0)) << 6) | (0x3f & cccc.charCodeAt(1)) ); } }; var btou = function(b) { return b.replace(re_btou, cb_btou); }; var cb_decode = function(cccc) { var len = cccc.length, padlen = len % 4, n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0) | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0) | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0) | (len > 3 ? b64tab[cccc.charAt(3)] : 0), chars = [ fromCharCode( n >>> 16), fromCharCode((n >>> 8) & 0xff), fromCharCode( n & 0xff) ]; chars.length -= [0, 0, 2, 1][padlen]; return chars.join(''); }; var _atob = global.atob && typeof global.atob == 'function' ? function(a){ return global.atob(a) } : function(a){ return a.replace(/\S{1,4}/g, cb_decode); }; var atob = function(a) { return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, '')); }; var _decode = function(a) { return btou(_atob(a)) }; var _fromURI = function(a) { return String(a).replace(/[-_]/g, function(m0) { return m0 == '-' ? '+' : '/' }).replace(/[^A-Za-z0-9\+\/]/g, ''); }; var decode = function(a){ return _decode(_fromURI(a)); }; var toUint8Array; if (global.Uint8Array) toUint8Array = function(a) { return Uint8Array.from(atob(_fromURI(a)), function(c) { return c.charCodeAt(0); }); }; var noConflict = function() { var Base64 = global.Base64; global.Base64 = _Base64; return Base64; }; // export Base64 global.Base64 = { VERSION: version, atob: atob, btoa: btoa, fromBase64: decode, toBase64: encode, utob: utob, encode: encode, encodeURI: encodeURI, btou: btou, decode: decode, noConflict: noConflict, fromUint8Array: fromUint8Array, toUint8Array: toUint8Array }; // if ES5 is available, make Base64.extendString() available if (typeof Object.defineProperty === 'function') { var noEnum = function(v){ return {value:v,enumerable:false,writable:true,configurable:true}; }; global.Base64.extendString = function () { Object.defineProperty( String.prototype, 'fromBase64', noEnum(function () { return decode(this) })); Object.defineProperty( String.prototype, 'toBase64', noEnum(function (urisafe) { return encode(this, urisafe) })); Object.defineProperty( String.prototype, 'toBase64URI', noEnum(function () { return encode(this, true) })); }; } // // export Base64 to the namespace // if (global['Meteor']) { // Meteor.js Base64 = global.Base64; } // module.exports and AMD are mutually exclusive. // module.exports has precedence. if ( true && module.exports) { module.exports.Base64 = global.Base64; } else if (true) { // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } // that's it! return {Base64: global.Base64} })); /***/ }), /***/ 83145: /*!**********************************************************************************************!*\ !*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/Component.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CopyToClipboard = void 0; var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301)); var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ 25769)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var CopyToClipboard = /*#__PURE__*/ function (_React$PureComponent) { _inherits(CopyToClipboard, _React$PureComponent); function CopyToClipboard() { var _getPrototypeOf2; var _this; _classCallCheck(this, CopyToClipboard); for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CopyToClipboard)).call.apply(_getPrototypeOf2, [this].concat(args))); _defineProperty(_assertThisInitialized(_this), "onClick", function (event) { var _this$props = _this.props, text = _this$props.text, onCopy = _this$props.onCopy, children = _this$props.children, options = _this$props.options; var elem = _react["default"].Children.only(children); var result = (0, _copyToClipboard["default"])(text, options); if (onCopy) { onCopy(text, result); } // Bypass onClick if it was present if (elem && elem.props && typeof elem.props.onClick === 'function') { elem.props.onClick(event); } }); return _this; } _createClass(CopyToClipboard, [{ key: "render", value: function render() { var _this$props2 = this.props, _text = _this$props2.text, _onCopy = _this$props2.onCopy, _options = _this$props2.options, children = _this$props2.children, props = _objectWithoutProperties(_this$props2, ["text", "onCopy", "options", "children"]); var elem = _react["default"].Children.only(children); return _react["default"].cloneElement(elem, _objectSpread({}, props, { onClick: this.onClick })); } }]); return CopyToClipboard; }(_react["default"].PureComponent); exports.CopyToClipboard = CopyToClipboard; _defineProperty(CopyToClipboard, "defaultProps", { onCopy: undefined, options: undefined }); /***/ }), /***/ 56102: /*!******************************************************************************************!*\ !*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js ***! \******************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var _require = __webpack_require__(/*! ./Component */ 83145), CopyToClipboard = _require.CopyToClipboard; CopyToClipboard.CopyToClipboard = CopyToClipboard; module.exports = CopyToClipboard; /***/ }), /***/ 98040: /*!************************************************************************!*\ !*** ./node_modules/_toggle-selection@1.0.6@toggle-selection/index.js ***! \************************************************************************/ /***/ (function(module) { module.exports = function () { var selection = document.getSelection(); if (!selection.rangeCount) { return function () {}; } var active = document.activeElement; var ranges = []; for (var i = 0; i < selection.rangeCount; i++) { ranges.push(selection.getRangeAt(i)); } switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML case 'INPUT': case 'TEXTAREA': active.blur(); break; default: active = null; break; } selection.removeAllRanges(); return function () { selection.type === 'Caret' && selection.removeAllRanges(); if (!selection.rangeCount) { ranges.forEach(function(range) { selection.addRange(range); }); } active && active.focus(); }; }; /***/ }) }]);