chop-logic-components 1.3.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -36
- package/dist/components/containers/form/Form.d.ts +0 -1
- package/dist/components/containers/form/Form.styled.d.ts +0 -1
- package/dist/components/containers/form/__docs__/Form.example.d.ts +0 -1
- package/dist/components/containers/form/__docs__/Form.stories.d.ts +0 -1
- package/dist/components/containers/form/controller.d.ts +0 -1
- package/dist/components/containers/form/helpers.d.ts +0 -1
- package/dist/components/containers/grid/Grid.d.ts +0 -1
- package/dist/components/containers/grid/Grid.styled.d.ts +0 -1
- package/dist/components/containers/grid/__docs__/Grid.example.d.ts +0 -1
- package/dist/components/containers/grid/__docs__/Grid.stories.d.ts +0 -1
- package/dist/components/containers/grid/controller.d.ts +0 -1
- package/dist/components/containers/grid/elements/Body.d.ts +0 -1
- package/dist/components/containers/grid/elements/Checkbox.d.ts +0 -1
- package/dist/components/containers/grid/elements/ColumnGroup.d.ts +0 -1
- package/dist/components/containers/grid/elements/DataCell.d.ts +0 -1
- package/dist/components/containers/grid/elements/Head.d.ts +0 -1
- package/dist/components/containers/grid/elements/HeaderCell.d.ts +0 -1
- package/dist/components/containers/grid/elements/Row.d.ts +0 -1
- package/dist/components/containers/grid/elements/SelectAllRowsCell.d.ts +0 -1
- package/dist/components/containers/grid/elements/SelectRowCell.d.ts +0 -1
- package/dist/components/containers/grid/helpers.d.ts +0 -1
- package/dist/components/containers/menu/Menu.d.ts +0 -1
- package/dist/components/containers/menu/Meny.styled.d.ts +1 -4
- package/dist/components/containers/menu/__docs__/Menu.example.d.ts +0 -1
- package/dist/components/containers/menu/__docs__/Menu.stories.d.ts +0 -1
- package/dist/components/containers/menu/elements/MenuItem.d.ts +0 -1
- package/dist/components/containers/menu/elements/MenuLeaf.d.ts +0 -1
- package/dist/components/containers/menu/elements/SubMenu.d.ts +0 -1
- package/dist/components/containers/portal/Portal.d.ts +0 -1
- package/dist/components/containers/portal/__docs__/Portal.example.d.ts +0 -1
- package/dist/components/containers/portal/__docs__/Portal.stories.d.ts +0 -1
- package/dist/components/containers/tabs/Tabs.d.ts +0 -1
- package/dist/components/containers/tabs/Tabs.styled.d.ts +0 -1
- package/dist/components/containers/tabs/__docs__/Tabs.example.d.ts +0 -1
- package/dist/components/containers/tabs/__docs__/Tabs.stories.d.ts +0 -1
- package/dist/components/containers/tabs/elements/TabButton.d.ts +0 -1
- package/dist/components/containers/tabs/elements/TabContent.d.ts +0 -1
- package/dist/components/containers/tabs/elements/TabList.d.ts +0 -1
- package/dist/components/inputs/button/Button.d.ts +0 -1
- package/dist/components/inputs/button/Button.styled.d.ts +0 -1
- package/dist/components/inputs/button/__docs__/Button.example.d.ts +0 -1
- package/dist/components/inputs/button/__docs__/Button.stories.d.ts +0 -1
- package/dist/components/inputs/checkbox/Checkbox.d.ts +0 -1
- package/dist/components/inputs/checkbox/Checkbox.styled.d.ts +0 -1
- package/dist/components/inputs/checkbox/__docs__/Checkbox.example.d.ts +0 -1
- package/dist/components/inputs/checkbox/__docs__/Checkbox.stories.d.ts +0 -1
- package/dist/components/inputs/checkbox/controller.d.ts +0 -1
- package/dist/components/inputs/checkbox/helpers.d.ts +0 -1
- package/dist/components/inputs/multi-select/MultiSelect.d.ts +0 -1
- package/dist/components/inputs/multi-select/__docs__/MultiSelect.example.d.ts +0 -1
- package/dist/components/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +0 -1
- package/dist/components/inputs/multi-select/controller.d.ts +0 -1
- package/dist/components/inputs/multi-select/elements/Combobox.d.ts +0 -1
- package/dist/components/inputs/multi-select/elements/Dropdown.d.ts +0 -1
- package/dist/components/inputs/multi-select/elements/Option.d.ts +0 -1
- package/dist/components/inputs/multi-select/helpers.d.ts +0 -1
- package/dist/components/inputs/numeric/NumericInput.d.ts +0 -1
- package/dist/components/inputs/numeric/NumericInput.styled.d.ts +0 -1
- package/dist/components/inputs/numeric/__docs__/NumericInput.example.d.ts +0 -1
- package/dist/components/inputs/numeric/__docs__/NumericInput.stories.d.ts +0 -1
- package/dist/components/inputs/numeric/controller.d.ts +0 -1
- package/dist/components/inputs/numeric/helpers.d.ts +0 -1
- package/dist/components/inputs/select/Select.d.ts +0 -1
- package/dist/components/inputs/select/__docs__/Select.example.d.ts +0 -1
- package/dist/components/inputs/select/__docs__/Select.stories.d.ts +0 -1
- package/dist/components/inputs/select/controller.d.ts +0 -1
- package/dist/components/inputs/select/elements/Combobox.d.ts +0 -1
- package/dist/components/inputs/select/elements/Dropdown.d.ts +0 -1
- package/dist/components/inputs/select/elements/Option.d.ts +0 -1
- package/dist/components/inputs/select/helpers.d.ts +0 -1
- package/dist/components/inputs/text/TextInput.d.ts +0 -1
- package/dist/components/inputs/text/TextInput.styled.d.ts +0 -1
- package/dist/components/inputs/text/__docs__/TextInput.example.d.ts +0 -1
- package/dist/components/inputs/text/__docs__/TextInput.stories.d.ts +0 -1
- package/dist/components/inputs/text/controller.d.ts +0 -1
- package/dist/components/inputs/text/helpers.d.ts +0 -1
- package/dist/components/modals/alert/Alert.d.ts +0 -1
- package/dist/components/modals/alert/Alert.styled.d.ts +0 -1
- package/dist/components/modals/alert/__docs__/Alert.example.d.ts +0 -1
- package/dist/components/modals/alert/__docs__/Alert.stories.d.ts +0 -1
- package/dist/components/modals/alert/elements/Header.d.ts +0 -1
- package/dist/components/modals/alert/helpers.d.ts +0 -1
- package/dist/components/modals/dialog/Dialog.d.ts +0 -1
- package/dist/components/modals/dialog/Dialog.styled.d.ts +0 -1
- package/dist/components/modals/dialog/__docs__/Dialog.example.d.ts +0 -1
- package/dist/components/modals/dialog/__docs__/Dialog.stories.d.ts +0 -1
- package/dist/components/modals/dialog/elements/Header.d.ts +0 -1
- package/dist/components/modals/dialog/elements/Layout.d.ts +0 -1
- package/dist/components/modals/tooltip/Tooltip.d.ts +0 -1
- package/dist/components/modals/tooltip/Tooltip.styled.d.ts +0 -1
- package/dist/components/modals/tooltip/__docs__/Tooltip.example.d.ts +0 -1
- package/dist/components/modals/tooltip/__docs__/Tooltip.stories.d.ts +0 -1
- package/dist/components/modals/tooltip/controller.d.ts +2 -3
- package/dist/contexts/chop-logic-form-context.d.ts +0 -1
- package/dist/contexts/chop-logic-theme-context.d.ts +0 -1
- package/dist/css/__docs__/ExampleDivContainer.styled.d.ts +0 -1
- package/dist/css/__docs__/ExampleGridContainer.styled.d.ts +0 -1
- package/dist/css/__docs__/story-wrapper-styles.d.ts +0 -1
- package/dist/css/common/Select.styled.d.ts +1 -4
- package/dist/css/themes.d.ts +0 -1
- package/dist/elements/error-message/ErrorMessage.d.ts +0 -1
- package/dist/elements/error-message/ErrorMessage.styled.d.ts +0 -1
- package/dist/elements/icon/Icon.d.ts +0 -1
- package/dist/elements/icon/__docs__/Icon.example.d.ts +0 -1
- package/dist/elements/icon/__docs__/Icon.stories.d.ts +0 -1
- package/dist/elements/input-inner-button/InputInnerButton.d.ts +0 -1
- package/dist/elements/input-inner-button/InputInnerButton.styled.d.ts +0 -1
- package/dist/elements/label/Label.d.ts +0 -1
- package/dist/elements/label/Label.styled.d.ts +0 -1
- package/dist/elements/loader/Loader.d.ts +0 -1
- package/dist/elements/loader/__docs__/Loader.example.d.ts +0 -1
- package/dist/elements/loader/__docs__/Loader.stories.d.ts +0 -1
- package/dist/elements/loader/views/Arrow.styled.d.ts +0 -1
- package/dist/elements/loader/views/Brackets.styled.d.ts +0 -1
- package/dist/elements/loader/views/Circle.styled.d.ts +0 -1
- package/dist/elements/loader/views/Dots.styled.d.ts +0 -1
- package/dist/elements/loader/views/Filler.styled.d.ts +0 -1
- package/dist/elements/loader/views/Linear.styled.d.ts +0 -1
- package/dist/elements/loader/views/Pulse.styled.d.ts +0 -1
- package/dist/elements/loader/views/Rotation.styled.d.ts +0 -1
- package/dist/elements/loader/views/Square.styled.d.ts +0 -1
- package/dist/hocs/with-tooltip/index.d.ts +0 -1
- package/dist/hooks/use-click-outside/__docs__/useClickOutside.stories.d.ts +0 -1
- package/dist/hooks/use-click-outside/index.d.ts +2 -3
- package/dist/hooks/use-container-dimensions/__docs__/useContainerDimensions.stories.d.ts +0 -1
- package/dist/hooks/use-container-dimensions/index.d.ts +1 -2
- package/dist/hooks/use-key-press/__docs__/useKeyPress.stories.d.ts +0 -1
- package/dist/hooks/use-key-press/index.d.ts +1 -2
- package/dist/hooks/use-modal-focus-trap/__docs__/useModalFocusTrap.stories.d.ts +0 -1
- package/dist/hooks/use-modal-focus-trap/index.d.ts +1 -2
- package/dist/hooks/use-mount/__docs__/useMount.stories.d.ts +0 -1
- package/dist/hooks/use-tooltip-position/__docs__/useTooltipPosition.stories.d.ts +0 -1
- package/dist/hooks/use-tooltip-position/index.d.ts +2 -3
- package/dist/hooks/use-window-dimensions/__docs__/useWindowDimensions.stories.d.ts +0 -1
- package/dist/icons/index.d.ts +5 -6
- package/dist/icons/svg/ArrowDownIcon.d.ts +2 -3
- package/dist/icons/svg/ArrowUpIcon.d.ts +2 -3
- package/dist/icons/svg/BackIcon.d.ts +2 -3
- package/dist/icons/svg/CancelIcon.d.ts +2 -3
- package/dist/icons/svg/CheckMarkIcon.d.ts +2 -3
- package/dist/icons/svg/CheckboxCheckedIcon.d.ts +2 -3
- package/dist/icons/svg/CheckboxUncheckedIcon.d.ts +2 -3
- package/dist/icons/svg/ChevronDownIcon.d.ts +2 -3
- package/dist/icons/svg/ChevronLeftIcon.d.ts +2 -3
- package/dist/icons/svg/ChevronRightIcon.d.ts +2 -3
- package/dist/icons/svg/ChevronUpIcon.d.ts +2 -3
- package/dist/icons/svg/ClearIcon.d.ts +2 -3
- package/dist/icons/svg/CopyIcon.d.ts +2 -3
- package/dist/icons/svg/CutIcon.d.ts +2 -3
- package/dist/icons/svg/DeleteIcon.d.ts +2 -3
- package/dist/icons/svg/DownloadIcon.d.ts +2 -3
- package/dist/icons/svg/ErrorIcon.d.ts +2 -3
- package/dist/icons/svg/ForwardIcon.d.ts +2 -3
- package/dist/icons/svg/GraduateIcon.d.ts +2 -2
- package/dist/icons/svg/HelpIcon.d.ts +2 -3
- package/dist/icons/svg/HideIcon.d.ts +2 -3
- package/dist/icons/svg/HomeIcon.d.ts +2 -3
- package/dist/icons/svg/InfoIcon.d.ts +2 -3
- package/dist/icons/svg/LoginIcon.d.ts +2 -2
- package/dist/icons/svg/PasteIcon.d.ts +2 -3
- package/dist/icons/svg/QuestionIcon.d.ts +2 -3
- package/dist/icons/svg/RemoveIcon.d.ts +2 -3
- package/dist/icons/svg/SaveIcon.d.ts +2 -3
- package/dist/icons/svg/ShowIcon.d.ts +2 -3
- package/dist/icons/svg/UploadIcon.d.ts +2 -3
- package/dist/icons/svg/WarningIcon.d.ts +2 -3
- package/dist/index.cjs.js +992 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4375 -38
- package/dist/index.es.js.map +1 -1
- package/dist/logo.jpeg +0 -0
- package/dist/models/chop-logic-theme.d.ts +0 -1
- package/dist/models/common.d.ts +0 -1
- package/dist/models/components/alert.d.ts +0 -1
- package/dist/models/components/button.d.ts +0 -1
- package/dist/models/components/checkbox.d.ts +0 -1
- package/dist/models/components/dialog.d.ts +0 -1
- package/dist/models/components/form.d.ts +0 -1
- package/dist/models/components/grid.d.ts +0 -1
- package/dist/models/components/icon.d.ts +5 -1
- package/dist/models/components/loader.d.ts +0 -1
- package/dist/models/components/menu.d.ts +0 -1
- package/dist/models/components/multi-select.d.ts +0 -1
- package/dist/models/components/numeric.d.ts +0 -1
- package/dist/models/components/select.d.ts +0 -1
- package/dist/models/components/tabs.d.ts +0 -1
- package/dist/models/components/text.d.ts +0 -1
- package/dist/models/components/tooltip.d.ts +0 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/utils/get-chop-logic-theme.d.ts +0 -1
- package/dist/utils/handle-dropdown-list-key-press.d.ts +0 -1
- package/package.json +46 -50
- package/dist/BackIcon-6kCLtmiI.cjs +0 -2
- package/dist/BackIcon-6kCLtmiI.cjs.map +0 -1
- package/dist/BackIcon-B5Gqa4ZM.js +0 -11
- package/dist/BackIcon-B5Gqa4ZM.js.map +0 -1
- package/dist/CancelIcon-CSYMYQ4z.cjs +0 -2
- package/dist/CancelIcon-CSYMYQ4z.cjs.map +0 -1
- package/dist/CancelIcon-Dd_V0Dau.js +0 -11
- package/dist/CancelIcon-Dd_V0Dau.js.map +0 -1
- package/dist/ChevronDownIcon-BAP_RxAA.js +0 -17
- package/dist/ChevronDownIcon-BAP_RxAA.js.map +0 -1
- package/dist/ChevronDownIcon-CqL27BVM.cjs +0 -2
- package/dist/ChevronDownIcon-CqL27BVM.cjs.map +0 -1
- package/dist/ChevronLeftIcon-CwQpbaR1.cjs +0 -2
- package/dist/ChevronLeftIcon-CwQpbaR1.cjs.map +0 -1
- package/dist/ChevronLeftIcon-DI7EhtBk.js +0 -17
- package/dist/ChevronLeftIcon-DI7EhtBk.js.map +0 -1
- package/dist/ChevronRightIcon-BZIUbBPo.cjs +0 -2
- package/dist/ChevronRightIcon-BZIUbBPo.cjs.map +0 -1
- package/dist/ChevronRightIcon-DuLbG3su.js +0 -17
- package/dist/ChevronRightIcon-DuLbG3su.js.map +0 -1
- package/dist/ChevronUpIcon-BM-ME1n1.js +0 -11
- package/dist/ChevronUpIcon-BM-ME1n1.js.map +0 -1
- package/dist/ChevronUpIcon-CdGgBXuQ.cjs +0 -2
- package/dist/ChevronUpIcon-CdGgBXuQ.cjs.map +0 -1
- package/dist/ClearIcon-CqoSUm3Z.js +0 -12
- package/dist/ClearIcon-CqoSUm3Z.js.map +0 -1
- package/dist/ClearIcon-aO0tljyZ.cjs +0 -2
- package/dist/ClearIcon-aO0tljyZ.cjs.map +0 -1
- package/dist/CopyIcon-BWhAxikj.cjs +0 -2
- package/dist/CopyIcon-BWhAxikj.cjs.map +0 -1
- package/dist/CopyIcon-Oejhoi_O.js +0 -27
- package/dist/CopyIcon-Oejhoi_O.js.map +0 -1
- package/dist/CutIcon-DfSB_bG8.cjs +0 -2
- package/dist/CutIcon-DfSB_bG8.cjs.map +0 -1
- package/dist/CutIcon-tF4nvJEe.js +0 -29
- package/dist/CutIcon-tF4nvJEe.js.map +0 -1
- package/dist/DeleteIcon-Wu8Bb0yj.js +0 -11
- package/dist/DeleteIcon-Wu8Bb0yj.js.map +0 -1
- package/dist/DeleteIcon-clA_vG4P.cjs +0 -2
- package/dist/DeleteIcon-clA_vG4P.cjs.map +0 -1
- package/dist/DownloadIcon-88UVXrmf.js +0 -11
- package/dist/DownloadIcon-88UVXrmf.js.map +0 -1
- package/dist/DownloadIcon-iX8-O-Os.cjs +0 -2
- package/dist/DownloadIcon-iX8-O-Os.cjs.map +0 -1
- package/dist/ForwardIcon-GwEZl1zz.js +0 -11
- package/dist/ForwardIcon-GwEZl1zz.js.map +0 -1
- package/dist/ForwardIcon-HuqcInC_.cjs +0 -2
- package/dist/ForwardIcon-HuqcInC_.cjs.map +0 -1
- package/dist/GraduateIcon-B-QrUIM6.cjs +0 -2
- package/dist/GraduateIcon-B-QrUIM6.cjs.map +0 -1
- package/dist/GraduateIcon-vBMEiTF4.js +0 -9
- package/dist/GraduateIcon-vBMEiTF4.js.map +0 -1
- package/dist/HideIcon-CIBvv4gO.cjs +0 -2
- package/dist/HideIcon-CIBvv4gO.cjs.map +0 -1
- package/dist/HideIcon-D60cTu6E.js +0 -11
- package/dist/HideIcon-D60cTu6E.js.map +0 -1
- package/dist/HomeIcon-BLt4IjqM.js +0 -9
- package/dist/HomeIcon-BLt4IjqM.js.map +0 -1
- package/dist/HomeIcon-BsW_jabJ.cjs +0 -2
- package/dist/HomeIcon-BsW_jabJ.cjs.map +0 -1
- package/dist/LoginIcon-CL39X1YU.js +0 -9
- package/dist/LoginIcon-CL39X1YU.js.map +0 -1
- package/dist/LoginIcon-CcHIc8j9.cjs +0 -2
- package/dist/LoginIcon-CcHIc8j9.cjs.map +0 -1
- package/dist/PasteIcon-Bq7_QzoN.cjs +0 -2
- package/dist/PasteIcon-Bq7_QzoN.cjs.map +0 -1
- package/dist/PasteIcon-CZjp6nkb.js +0 -11
- package/dist/PasteIcon-CZjp6nkb.js.map +0 -1
- package/dist/QuestionIcon-CPcLvEor.js +0 -23
- package/dist/QuestionIcon-CPcLvEor.js.map +0 -1
- package/dist/QuestionIcon-DU4aPXkV.cjs +0 -2
- package/dist/QuestionIcon-DU4aPXkV.cjs.map +0 -1
- package/dist/RemoveIcon-BuRToMfF.js +0 -31
- package/dist/RemoveIcon-BuRToMfF.js.map +0 -1
- package/dist/RemoveIcon-C1CAo905.cjs +0 -2
- package/dist/RemoveIcon-C1CAo905.cjs.map +0 -1
- package/dist/SaveIcon-BmGtZ_2_.cjs +0 -2
- package/dist/SaveIcon-BmGtZ_2_.cjs.map +0 -1
- package/dist/SaveIcon-oSVVhgZK.js +0 -11
- package/dist/SaveIcon-oSVVhgZK.js.map +0 -1
- package/dist/ShowIcon-C9IDP54e.cjs +0 -2
- package/dist/ShowIcon-C9IDP54e.cjs.map +0 -1
- package/dist/ShowIcon-DL2TN936.js +0 -12
- package/dist/ShowIcon-DL2TN936.js.map +0 -1
- package/dist/UploadIcon-DQb19kiB.cjs +0 -2
- package/dist/UploadIcon-DQb19kiB.cjs.map +0 -1
- package/dist/UploadIcon-DcqjxXG_.js +0 -12
- package/dist/UploadIcon-DcqjxXG_.js.map +0 -1
- package/dist/index-CL5Yr-gF.js +0 -4322
- package/dist/index-CL5Yr-gF.js.map +0 -1
- package/dist/index-D1sJ8YFM.cjs +0 -992
- package/dist/index-D1sJ8YFM.cjs.map +0 -1
package/dist/index-CL5Yr-gF.js
DELETED
|
@@ -1,4322 +0,0 @@
|
|
|
1
|
-
import fe, { useRef as Se, useDebugValue as wr, createElement as so, useContext as ke, lazy as O, Suspense as ao, useEffect as he, useState as L, useId as co, useCallback as st } from "react";
|
|
2
|
-
import lo from "react-dom";
|
|
3
|
-
var Ut = { exports: {} }, tt = {};
|
|
4
|
-
/**
|
|
5
|
-
* @license React
|
|
6
|
-
* react-jsx-runtime.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
var Sr;
|
|
14
|
-
function uo() {
|
|
15
|
-
if (Sr) return tt;
|
|
16
|
-
Sr = 1;
|
|
17
|
-
var e = fe, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function a(d, l, f) {
|
|
19
|
-
var u, h = {}, g = null, m = null;
|
|
20
|
-
f !== void 0 && (g = "" + f), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (m = l.ref);
|
|
21
|
-
for (u in l) n.call(l, u) && !i.hasOwnProperty(u) && (h[u] = l[u]);
|
|
22
|
-
if (d && d.defaultProps) for (u in l = d.defaultProps, l) h[u] === void 0 && (h[u] = l[u]);
|
|
23
|
-
return { $$typeof: t, type: d, key: g, ref: m, props: h, _owner: o.current };
|
|
24
|
-
}
|
|
25
|
-
return tt.Fragment = r, tt.jsx = a, tt.jsxs = a, tt;
|
|
26
|
-
}
|
|
27
|
-
var rt = {};
|
|
28
|
-
/**
|
|
29
|
-
* @license React
|
|
30
|
-
* react-jsx-runtime.development.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
var kr;
|
|
38
|
-
function fo() {
|
|
39
|
-
return kr || (kr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var e = fe, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, $ = "@@iterator";
|
|
41
|
-
function C(s) {
|
|
42
|
-
if (s === null || typeof s != "object")
|
|
43
|
-
return null;
|
|
44
|
-
var p = y && s[y] || s[$];
|
|
45
|
-
return typeof p == "function" ? p : null;
|
|
46
|
-
}
|
|
47
|
-
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
-
function v(s) {
|
|
49
|
-
{
|
|
50
|
-
for (var p = arguments.length, b = new Array(p > 1 ? p - 1 : 0), S = 1; S < p; S++)
|
|
51
|
-
b[S - 1] = arguments[S];
|
|
52
|
-
E("error", s, b);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function E(s, p, b) {
|
|
56
|
-
{
|
|
57
|
-
var S = w.ReactDebugCurrentFrame, z = S.getStackAddendum();
|
|
58
|
-
z !== "" && (p += "%s", b = b.concat([z]));
|
|
59
|
-
var M = b.map(function(T) {
|
|
60
|
-
return String(T);
|
|
61
|
-
});
|
|
62
|
-
M.unshift("Warning: " + p), Function.prototype.apply.call(console[s], console, M);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
var A = !1, _ = !1, I = !1, x = !1, W = !1, J;
|
|
66
|
-
J = Symbol.for("react.module.reference");
|
|
67
|
-
function pe(s) {
|
|
68
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || W || s === o || s === f || s === u || x || s === m || A || _ || I || typeof s == "object" && s !== null && (s.$$typeof === g || s.$$typeof === h || s.$$typeof === a || s.$$typeof === d || s.$$typeof === l || // This needs to include all possible module reference object
|
|
69
|
-
// types supported by any Flight configuration anywhere since
|
|
70
|
-
// we don't know which Flight build this will end up being used
|
|
71
|
-
// with.
|
|
72
|
-
s.$$typeof === J || s.getModuleId !== void 0));
|
|
73
|
-
}
|
|
74
|
-
function me(s, p, b) {
|
|
75
|
-
var S = s.displayName;
|
|
76
|
-
if (S)
|
|
77
|
-
return S;
|
|
78
|
-
var z = p.displayName || p.name || "";
|
|
79
|
-
return z !== "" ? b + "(" + z + ")" : b;
|
|
80
|
-
}
|
|
81
|
-
function ge(s) {
|
|
82
|
-
return s.displayName || "Context";
|
|
83
|
-
}
|
|
84
|
-
function G(s) {
|
|
85
|
-
if (s == null)
|
|
86
|
-
return null;
|
|
87
|
-
if (typeof s.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
88
|
-
return s.displayName || s.name || null;
|
|
89
|
-
if (typeof s == "string")
|
|
90
|
-
return s;
|
|
91
|
-
switch (s) {
|
|
92
|
-
case n:
|
|
93
|
-
return "Fragment";
|
|
94
|
-
case r:
|
|
95
|
-
return "Portal";
|
|
96
|
-
case i:
|
|
97
|
-
return "Profiler";
|
|
98
|
-
case o:
|
|
99
|
-
return "StrictMode";
|
|
100
|
-
case f:
|
|
101
|
-
return "Suspense";
|
|
102
|
-
case u:
|
|
103
|
-
return "SuspenseList";
|
|
104
|
-
}
|
|
105
|
-
if (typeof s == "object")
|
|
106
|
-
switch (s.$$typeof) {
|
|
107
|
-
case d:
|
|
108
|
-
var p = s;
|
|
109
|
-
return ge(p) + ".Consumer";
|
|
110
|
-
case a:
|
|
111
|
-
var b = s;
|
|
112
|
-
return ge(b._context) + ".Provider";
|
|
113
|
-
case l:
|
|
114
|
-
return me(s, s.render, "ForwardRef");
|
|
115
|
-
case h:
|
|
116
|
-
var S = s.displayName || null;
|
|
117
|
-
return S !== null ? S : G(s.type) || "Memo";
|
|
118
|
-
case g: {
|
|
119
|
-
var z = s, M = z._payload, T = z._init;
|
|
120
|
-
try {
|
|
121
|
-
return G(T(M));
|
|
122
|
-
} catch {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
var ce = Object.assign, je = 0, ct, Oe, Je, Q, ye, be, Y;
|
|
130
|
-
function ze() {
|
|
131
|
-
}
|
|
132
|
-
ze.__reactDisabledLog = !0;
|
|
133
|
-
function Ze() {
|
|
134
|
-
{
|
|
135
|
-
if (je === 0) {
|
|
136
|
-
ct = console.log, Oe = console.info, Je = console.warn, Q = console.error, ye = console.group, be = console.groupCollapsed, Y = console.groupEnd;
|
|
137
|
-
var s = {
|
|
138
|
-
configurable: !0,
|
|
139
|
-
enumerable: !0,
|
|
140
|
-
value: ze,
|
|
141
|
-
writable: !0
|
|
142
|
-
};
|
|
143
|
-
Object.defineProperties(console, {
|
|
144
|
-
info: s,
|
|
145
|
-
log: s,
|
|
146
|
-
warn: s,
|
|
147
|
-
error: s,
|
|
148
|
-
group: s,
|
|
149
|
-
groupCollapsed: s,
|
|
150
|
-
groupEnd: s
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
je++;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function De() {
|
|
157
|
-
{
|
|
158
|
-
if (je--, je === 0) {
|
|
159
|
-
var s = {
|
|
160
|
-
configurable: !0,
|
|
161
|
-
enumerable: !0,
|
|
162
|
-
writable: !0
|
|
163
|
-
};
|
|
164
|
-
Object.defineProperties(console, {
|
|
165
|
-
log: ce({}, s, {
|
|
166
|
-
value: ct
|
|
167
|
-
}),
|
|
168
|
-
info: ce({}, s, {
|
|
169
|
-
value: Oe
|
|
170
|
-
}),
|
|
171
|
-
warn: ce({}, s, {
|
|
172
|
-
value: Je
|
|
173
|
-
}),
|
|
174
|
-
error: ce({}, s, {
|
|
175
|
-
value: Q
|
|
176
|
-
}),
|
|
177
|
-
group: ce({}, s, {
|
|
178
|
-
value: ye
|
|
179
|
-
}),
|
|
180
|
-
groupCollapsed: ce({}, s, {
|
|
181
|
-
value: be
|
|
182
|
-
}),
|
|
183
|
-
groupEnd: ce({}, s, {
|
|
184
|
-
value: Y
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
je < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
var le = w.ReactCurrentDispatcher, ve;
|
|
192
|
-
function ne(s, p, b) {
|
|
193
|
-
{
|
|
194
|
-
if (ve === void 0)
|
|
195
|
-
try {
|
|
196
|
-
throw Error();
|
|
197
|
-
} catch (z) {
|
|
198
|
-
var S = z.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
-
ve = S && S[1] || "";
|
|
200
|
-
}
|
|
201
|
-
return `
|
|
202
|
-
` + ve + s;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
var oe = !1, $e;
|
|
206
|
-
{
|
|
207
|
-
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
$e = new Me();
|
|
209
|
-
}
|
|
210
|
-
function ie(s, p) {
|
|
211
|
-
if (!s || oe)
|
|
212
|
-
return "";
|
|
213
|
-
{
|
|
214
|
-
var b = $e.get(s);
|
|
215
|
-
if (b !== void 0)
|
|
216
|
-
return b;
|
|
217
|
-
}
|
|
218
|
-
var S;
|
|
219
|
-
oe = !0;
|
|
220
|
-
var z = Error.prepareStackTrace;
|
|
221
|
-
Error.prepareStackTrace = void 0;
|
|
222
|
-
var M;
|
|
223
|
-
M = le.current, le.current = null, Ze();
|
|
224
|
-
try {
|
|
225
|
-
if (p) {
|
|
226
|
-
var T = function() {
|
|
227
|
-
throw Error();
|
|
228
|
-
};
|
|
229
|
-
if (Object.defineProperty(T.prototype, "props", {
|
|
230
|
-
set: function() {
|
|
231
|
-
throw Error();
|
|
232
|
-
}
|
|
233
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
-
try {
|
|
235
|
-
Reflect.construct(T, []);
|
|
236
|
-
} catch (K) {
|
|
237
|
-
S = K;
|
|
238
|
-
}
|
|
239
|
-
Reflect.construct(s, [], T);
|
|
240
|
-
} else {
|
|
241
|
-
try {
|
|
242
|
-
T.call();
|
|
243
|
-
} catch (K) {
|
|
244
|
-
S = K;
|
|
245
|
-
}
|
|
246
|
-
s.call(T.prototype);
|
|
247
|
-
}
|
|
248
|
-
} else {
|
|
249
|
-
try {
|
|
250
|
-
throw Error();
|
|
251
|
-
} catch (K) {
|
|
252
|
-
S = K;
|
|
253
|
-
}
|
|
254
|
-
s();
|
|
255
|
-
}
|
|
256
|
-
} catch (K) {
|
|
257
|
-
if (K && S && typeof K.stack == "string") {
|
|
258
|
-
for (var P = K.stack.split(`
|
|
259
|
-
`), V = S.stack.split(`
|
|
260
|
-
`), F = P.length - 1, N = V.length - 1; F >= 1 && N >= 0 && P[F] !== V[N]; )
|
|
261
|
-
N--;
|
|
262
|
-
for (; F >= 1 && N >= 0; F--, N--)
|
|
263
|
-
if (P[F] !== V[N]) {
|
|
264
|
-
if (F !== 1 || N !== 1)
|
|
265
|
-
do
|
|
266
|
-
if (F--, N--, N < 0 || P[F] !== V[N]) {
|
|
267
|
-
var ee = `
|
|
268
|
-
` + P[F].replace(" at new ", " at ");
|
|
269
|
-
return s.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", s.displayName)), typeof s == "function" && $e.set(s, ee), ee;
|
|
270
|
-
}
|
|
271
|
-
while (F >= 1 && N >= 0);
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
} finally {
|
|
276
|
-
oe = !1, le.current = M, De(), Error.prepareStackTrace = z;
|
|
277
|
-
}
|
|
278
|
-
var Le = s ? s.displayName || s.name : "", Ee = Le ? ne(Le) : "";
|
|
279
|
-
return typeof s == "function" && $e.set(s, Ee), Ee;
|
|
280
|
-
}
|
|
281
|
-
function Dn(s, p, b) {
|
|
282
|
-
return ie(s, !1);
|
|
283
|
-
}
|
|
284
|
-
function Mn(s) {
|
|
285
|
-
var p = s.prototype;
|
|
286
|
-
return !!(p && p.isReactComponent);
|
|
287
|
-
}
|
|
288
|
-
function lt(s, p, b) {
|
|
289
|
-
if (s == null)
|
|
290
|
-
return "";
|
|
291
|
-
if (typeof s == "function")
|
|
292
|
-
return ie(s, Mn(s));
|
|
293
|
-
if (typeof s == "string")
|
|
294
|
-
return ne(s);
|
|
295
|
-
switch (s) {
|
|
296
|
-
case f:
|
|
297
|
-
return ne("Suspense");
|
|
298
|
-
case u:
|
|
299
|
-
return ne("SuspenseList");
|
|
300
|
-
}
|
|
301
|
-
if (typeof s == "object")
|
|
302
|
-
switch (s.$$typeof) {
|
|
303
|
-
case l:
|
|
304
|
-
return Dn(s.render);
|
|
305
|
-
case h:
|
|
306
|
-
return lt(s.type, p, b);
|
|
307
|
-
case g: {
|
|
308
|
-
var S = s, z = S._payload, M = S._init;
|
|
309
|
-
try {
|
|
310
|
-
return lt(M(z), p, b);
|
|
311
|
-
} catch {
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return "";
|
|
316
|
-
}
|
|
317
|
-
var Qe = Object.prototype.hasOwnProperty, lr = {}, dr = w.ReactDebugCurrentFrame;
|
|
318
|
-
function dt(s) {
|
|
319
|
-
if (s) {
|
|
320
|
-
var p = s._owner, b = lt(s.type, s._source, p ? p.type : null);
|
|
321
|
-
dr.setExtraStackFrame(b);
|
|
322
|
-
} else
|
|
323
|
-
dr.setExtraStackFrame(null);
|
|
324
|
-
}
|
|
325
|
-
function Bn(s, p, b, S, z) {
|
|
326
|
-
{
|
|
327
|
-
var M = Function.call.bind(Qe);
|
|
328
|
-
for (var T in s)
|
|
329
|
-
if (M(s, T)) {
|
|
330
|
-
var P = void 0;
|
|
331
|
-
try {
|
|
332
|
-
if (typeof s[T] != "function") {
|
|
333
|
-
var V = Error((S || "React class") + ": " + b + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
-
throw V.name = "Invariant Violation", V;
|
|
335
|
-
}
|
|
336
|
-
P = s[T](p, T, S, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
-
} catch (F) {
|
|
338
|
-
P = F;
|
|
339
|
-
}
|
|
340
|
-
P && !(P instanceof Error) && (dt(z), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", b, T, typeof P), dt(null)), P instanceof Error && !(P.message in lr) && (lr[P.message] = !0, dt(z), v("Failed %s type: %s", b, P.message), dt(null));
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
var Ln = Array.isArray;
|
|
345
|
-
function zt(s) {
|
|
346
|
-
return Ln(s);
|
|
347
|
-
}
|
|
348
|
-
function Fn(s) {
|
|
349
|
-
{
|
|
350
|
-
var p = typeof Symbol == "function" && Symbol.toStringTag, b = p && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
351
|
-
return b;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
function Nn(s) {
|
|
355
|
-
try {
|
|
356
|
-
return ur(s), !1;
|
|
357
|
-
} catch {
|
|
358
|
-
return !0;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
function ur(s) {
|
|
362
|
-
return "" + s;
|
|
363
|
-
}
|
|
364
|
-
function fr(s) {
|
|
365
|
-
if (Nn(s))
|
|
366
|
-
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fn(s)), ur(s);
|
|
367
|
-
}
|
|
368
|
-
var et = w.ReactCurrentOwner, Hn = {
|
|
369
|
-
key: !0,
|
|
370
|
-
ref: !0,
|
|
371
|
-
__self: !0,
|
|
372
|
-
__source: !0
|
|
373
|
-
}, hr, pr, Dt;
|
|
374
|
-
Dt = {};
|
|
375
|
-
function Wn(s) {
|
|
376
|
-
if (Qe.call(s, "ref")) {
|
|
377
|
-
var p = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
378
|
-
if (p && p.isReactWarning)
|
|
379
|
-
return !1;
|
|
380
|
-
}
|
|
381
|
-
return s.ref !== void 0;
|
|
382
|
-
}
|
|
383
|
-
function Gn(s) {
|
|
384
|
-
if (Qe.call(s, "key")) {
|
|
385
|
-
var p = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
386
|
-
if (p && p.isReactWarning)
|
|
387
|
-
return !1;
|
|
388
|
-
}
|
|
389
|
-
return s.key !== void 0;
|
|
390
|
-
}
|
|
391
|
-
function Un(s, p) {
|
|
392
|
-
if (typeof s.ref == "string" && et.current && p && et.current.stateNode !== p) {
|
|
393
|
-
var b = G(et.current.type);
|
|
394
|
-
Dt[b] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(et.current.type), s.ref), Dt[b] = !0);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
function Yn(s, p) {
|
|
398
|
-
{
|
|
399
|
-
var b = function() {
|
|
400
|
-
hr || (hr = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
401
|
-
};
|
|
402
|
-
b.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
403
|
-
get: b,
|
|
404
|
-
configurable: !0
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function Vn(s, p) {
|
|
409
|
-
{
|
|
410
|
-
var b = function() {
|
|
411
|
-
pr || (pr = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
412
|
-
};
|
|
413
|
-
b.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
414
|
-
get: b,
|
|
415
|
-
configurable: !0
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
var Kn = function(s, p, b, S, z, M, T) {
|
|
420
|
-
var P = {
|
|
421
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof: t,
|
|
423
|
-
// Built-in properties that belong on the element
|
|
424
|
-
type: s,
|
|
425
|
-
key: p,
|
|
426
|
-
ref: b,
|
|
427
|
-
props: T,
|
|
428
|
-
// Record the component responsible for creating this element.
|
|
429
|
-
_owner: M
|
|
430
|
-
};
|
|
431
|
-
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !0,
|
|
435
|
-
value: !1
|
|
436
|
-
}), Object.defineProperty(P, "_self", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: S
|
|
441
|
-
}), Object.defineProperty(P, "_source", {
|
|
442
|
-
configurable: !1,
|
|
443
|
-
enumerable: !1,
|
|
444
|
-
writable: !1,
|
|
445
|
-
value: z
|
|
446
|
-
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
447
|
-
};
|
|
448
|
-
function qn(s, p, b, S, z) {
|
|
449
|
-
{
|
|
450
|
-
var M, T = {}, P = null, V = null;
|
|
451
|
-
b !== void 0 && (fr(b), P = "" + b), Gn(p) && (fr(p.key), P = "" + p.key), Wn(p) && (V = p.ref, Un(p, z));
|
|
452
|
-
for (M in p)
|
|
453
|
-
Qe.call(p, M) && !Hn.hasOwnProperty(M) && (T[M] = p[M]);
|
|
454
|
-
if (s && s.defaultProps) {
|
|
455
|
-
var F = s.defaultProps;
|
|
456
|
-
for (M in F)
|
|
457
|
-
T[M] === void 0 && (T[M] = F[M]);
|
|
458
|
-
}
|
|
459
|
-
if (P || V) {
|
|
460
|
-
var N = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
461
|
-
P && Yn(T, N), V && Vn(T, N);
|
|
462
|
-
}
|
|
463
|
-
return Kn(s, P, V, z, S, et.current, T);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
var Mt = w.ReactCurrentOwner, mr = w.ReactDebugCurrentFrame;
|
|
467
|
-
function Be(s) {
|
|
468
|
-
if (s) {
|
|
469
|
-
var p = s._owner, b = lt(s.type, s._source, p ? p.type : null);
|
|
470
|
-
mr.setExtraStackFrame(b);
|
|
471
|
-
} else
|
|
472
|
-
mr.setExtraStackFrame(null);
|
|
473
|
-
}
|
|
474
|
-
var Bt;
|
|
475
|
-
Bt = !1;
|
|
476
|
-
function Lt(s) {
|
|
477
|
-
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
478
|
-
}
|
|
479
|
-
function gr() {
|
|
480
|
-
{
|
|
481
|
-
if (Mt.current) {
|
|
482
|
-
var s = G(Mt.current.type);
|
|
483
|
-
if (s)
|
|
484
|
-
return `
|
|
485
|
-
|
|
486
|
-
Check the render method of \`` + s + "`.";
|
|
487
|
-
}
|
|
488
|
-
return "";
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
function Xn(s) {
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
var yr = {};
|
|
495
|
-
function Jn(s) {
|
|
496
|
-
{
|
|
497
|
-
var p = gr();
|
|
498
|
-
if (!p) {
|
|
499
|
-
var b = typeof s == "string" ? s : s.displayName || s.name;
|
|
500
|
-
b && (p = `
|
|
501
|
-
|
|
502
|
-
Check the top-level render call using <` + b + ">.");
|
|
503
|
-
}
|
|
504
|
-
return p;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
function br(s, p) {
|
|
508
|
-
{
|
|
509
|
-
if (!s._store || s._store.validated || s.key != null)
|
|
510
|
-
return;
|
|
511
|
-
s._store.validated = !0;
|
|
512
|
-
var b = Jn(p);
|
|
513
|
-
if (yr[b])
|
|
514
|
-
return;
|
|
515
|
-
yr[b] = !0;
|
|
516
|
-
var S = "";
|
|
517
|
-
s && s._owner && s._owner !== Mt.current && (S = " It was passed a child from " + G(s._owner.type) + "."), Be(s), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, S), Be(null);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
function vr(s, p) {
|
|
521
|
-
{
|
|
522
|
-
if (typeof s != "object")
|
|
523
|
-
return;
|
|
524
|
-
if (zt(s))
|
|
525
|
-
for (var b = 0; b < s.length; b++) {
|
|
526
|
-
var S = s[b];
|
|
527
|
-
Lt(S) && br(S, p);
|
|
528
|
-
}
|
|
529
|
-
else if (Lt(s))
|
|
530
|
-
s._store && (s._store.validated = !0);
|
|
531
|
-
else if (s) {
|
|
532
|
-
var z = C(s);
|
|
533
|
-
if (typeof z == "function" && z !== s.entries)
|
|
534
|
-
for (var M = z.call(s), T; !(T = M.next()).done; )
|
|
535
|
-
Lt(T.value) && br(T.value, p);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
function Zn(s) {
|
|
540
|
-
{
|
|
541
|
-
var p = s.type;
|
|
542
|
-
if (p == null || typeof p == "string")
|
|
543
|
-
return;
|
|
544
|
-
var b;
|
|
545
|
-
if (typeof p == "function")
|
|
546
|
-
b = p.propTypes;
|
|
547
|
-
else if (typeof p == "object" && (p.$$typeof === l || // Note: Memo only checks outer props here.
|
|
548
|
-
// Inner props are checked in the reconciler.
|
|
549
|
-
p.$$typeof === h))
|
|
550
|
-
b = p.propTypes;
|
|
551
|
-
else
|
|
552
|
-
return;
|
|
553
|
-
if (b) {
|
|
554
|
-
var S = G(p);
|
|
555
|
-
Bn(b, s.props, "prop", S, s);
|
|
556
|
-
} else if (p.PropTypes !== void 0 && !Bt) {
|
|
557
|
-
Bt = !0;
|
|
558
|
-
var z = G(p);
|
|
559
|
-
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
560
|
-
}
|
|
561
|
-
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function Qn(s) {
|
|
565
|
-
{
|
|
566
|
-
for (var p = Object.keys(s.props), b = 0; b < p.length; b++) {
|
|
567
|
-
var S = p[b];
|
|
568
|
-
if (S !== "children" && S !== "key") {
|
|
569
|
-
Be(s), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Be(null);
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
s.ref !== null && (Be(s), v("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
var $r = {};
|
|
577
|
-
function xr(s, p, b, S, z, M) {
|
|
578
|
-
{
|
|
579
|
-
var T = pe(s);
|
|
580
|
-
if (!T) {
|
|
581
|
-
var P = "";
|
|
582
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
-
var V = Xn();
|
|
584
|
-
V ? P += V : P += gr();
|
|
585
|
-
var F;
|
|
586
|
-
s === null ? F = "null" : zt(s) ? F = "array" : s !== void 0 && s.$$typeof === t ? (F = "<" + (G(s.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : F = typeof s, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, P);
|
|
587
|
-
}
|
|
588
|
-
var N = qn(s, p, b, z, M);
|
|
589
|
-
if (N == null)
|
|
590
|
-
return N;
|
|
591
|
-
if (T) {
|
|
592
|
-
var ee = p.children;
|
|
593
|
-
if (ee !== void 0)
|
|
594
|
-
if (S)
|
|
595
|
-
if (zt(ee)) {
|
|
596
|
-
for (var Le = 0; Le < ee.length; Le++)
|
|
597
|
-
vr(ee[Le], s);
|
|
598
|
-
Object.freeze && Object.freeze(ee);
|
|
599
|
-
} else
|
|
600
|
-
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
|
-
else
|
|
602
|
-
vr(ee, s);
|
|
603
|
-
}
|
|
604
|
-
if (Qe.call(p, "key")) {
|
|
605
|
-
var Ee = G(s), K = Object.keys(p).filter(function(io) {
|
|
606
|
-
return io !== "key";
|
|
607
|
-
}), Ft = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
-
if (!$r[Ee + Ft]) {
|
|
609
|
-
var oo = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
v(`A props object containing a "key" prop is being spread into JSX:
|
|
611
|
-
let props = %s;
|
|
612
|
-
<%s {...props} />
|
|
613
|
-
React keys must be passed directly to JSX without using spread:
|
|
614
|
-
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`, Ft, Ee, oo, Ee), $r[Ee + Ft] = !0;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return s === n ? Qn(N) : Zn(N), N;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
function eo(s, p, b) {
|
|
622
|
-
return xr(s, p, b, !0);
|
|
623
|
-
}
|
|
624
|
-
function to(s, p, b) {
|
|
625
|
-
return xr(s, p, b, !1);
|
|
626
|
-
}
|
|
627
|
-
var ro = to, no = eo;
|
|
628
|
-
rt.Fragment = n, rt.jsx = ro, rt.jsxs = no;
|
|
629
|
-
}()), rt;
|
|
630
|
-
}
|
|
631
|
-
process.env.NODE_ENV === "production" ? Ut.exports = uo() : Ut.exports = fo();
|
|
632
|
-
var c = Ut.exports, q = function() {
|
|
633
|
-
return q = Object.assign || function(t) {
|
|
634
|
-
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
635
|
-
r = arguments[n];
|
|
636
|
-
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
637
|
-
}
|
|
638
|
-
return t;
|
|
639
|
-
}, q.apply(this, arguments);
|
|
640
|
-
};
|
|
641
|
-
function Ne(e, t, r) {
|
|
642
|
-
if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
|
|
643
|
-
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
644
|
-
return e.concat(i || Array.prototype.slice.call(t));
|
|
645
|
-
}
|
|
646
|
-
function ho(e) {
|
|
647
|
-
var t = /* @__PURE__ */ Object.create(null);
|
|
648
|
-
return function(r) {
|
|
649
|
-
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
650
|
-
};
|
|
651
|
-
}
|
|
652
|
-
var po = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, mo = /* @__PURE__ */ ho(
|
|
653
|
-
function(e) {
|
|
654
|
-
return po.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
655
|
-
}
|
|
656
|
-
/* Z+1 */
|
|
657
|
-
), B = "-ms-", ot = "-moz-", D = "-webkit-", Yr = "comm", Ct = "rule", er = "decl", go = "@import", Vr = "@keyframes", yo = "@layer", Kr = Math.abs, tr = String.fromCharCode, Yt = Object.assign;
|
|
658
|
-
function bo(e, t) {
|
|
659
|
-
return U(e, 0) ^ 45 ? (((t << 2 ^ U(e, 0)) << 2 ^ U(e, 1)) << 2 ^ U(e, 2)) << 2 ^ U(e, 3) : 0;
|
|
660
|
-
}
|
|
661
|
-
function qr(e) {
|
|
662
|
-
return e.trim();
|
|
663
|
-
}
|
|
664
|
-
function de(e, t) {
|
|
665
|
-
return (e = t.exec(e)) ? e[0] : e;
|
|
666
|
-
}
|
|
667
|
-
function R(e, t, r) {
|
|
668
|
-
return e.replace(t, r);
|
|
669
|
-
}
|
|
670
|
-
function mt(e, t, r) {
|
|
671
|
-
return e.indexOf(t, r);
|
|
672
|
-
}
|
|
673
|
-
function U(e, t) {
|
|
674
|
-
return e.charCodeAt(t) | 0;
|
|
675
|
-
}
|
|
676
|
-
function He(e, t, r) {
|
|
677
|
-
return e.slice(t, r);
|
|
678
|
-
}
|
|
679
|
-
function ae(e) {
|
|
680
|
-
return e.length;
|
|
681
|
-
}
|
|
682
|
-
function Xr(e) {
|
|
683
|
-
return e.length;
|
|
684
|
-
}
|
|
685
|
-
function nt(e, t) {
|
|
686
|
-
return t.push(e), e;
|
|
687
|
-
}
|
|
688
|
-
function vo(e, t) {
|
|
689
|
-
return e.map(t).join("");
|
|
690
|
-
}
|
|
691
|
-
function Cr(e, t) {
|
|
692
|
-
return e.filter(function(r) {
|
|
693
|
-
return !de(r, t);
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
var jt = 1, We = 1, Jr = 0, re = 0, H = 0, Ve = "";
|
|
697
|
-
function Et(e, t, r, n, o, i, a, d) {
|
|
698
|
-
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: jt, column: We, length: a, return: "", siblings: d };
|
|
699
|
-
}
|
|
700
|
-
function xe(e, t) {
|
|
701
|
-
return Yt(Et("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
702
|
-
}
|
|
703
|
-
function Fe(e) {
|
|
704
|
-
for (; e.root; )
|
|
705
|
-
e = xe(e.root, { children: [e] });
|
|
706
|
-
nt(e, e.siblings);
|
|
707
|
-
}
|
|
708
|
-
function $o() {
|
|
709
|
-
return H;
|
|
710
|
-
}
|
|
711
|
-
function xo() {
|
|
712
|
-
return H = re > 0 ? U(Ve, --re) : 0, We--, H === 10 && (We = 1, jt--), H;
|
|
713
|
-
}
|
|
714
|
-
function se() {
|
|
715
|
-
return H = re < Jr ? U(Ve, re++) : 0, We++, H === 10 && (We = 1, jt++), H;
|
|
716
|
-
}
|
|
717
|
-
function _e() {
|
|
718
|
-
return U(Ve, re);
|
|
719
|
-
}
|
|
720
|
-
function gt() {
|
|
721
|
-
return re;
|
|
722
|
-
}
|
|
723
|
-
function It(e, t) {
|
|
724
|
-
return He(Ve, e, t);
|
|
725
|
-
}
|
|
726
|
-
function Vt(e) {
|
|
727
|
-
switch (e) {
|
|
728
|
-
case 0:
|
|
729
|
-
case 9:
|
|
730
|
-
case 10:
|
|
731
|
-
case 13:
|
|
732
|
-
case 32:
|
|
733
|
-
return 5;
|
|
734
|
-
case 33:
|
|
735
|
-
case 43:
|
|
736
|
-
case 44:
|
|
737
|
-
case 47:
|
|
738
|
-
case 62:
|
|
739
|
-
case 64:
|
|
740
|
-
case 126:
|
|
741
|
-
case 59:
|
|
742
|
-
case 123:
|
|
743
|
-
case 125:
|
|
744
|
-
return 4;
|
|
745
|
-
case 58:
|
|
746
|
-
return 3;
|
|
747
|
-
case 34:
|
|
748
|
-
case 39:
|
|
749
|
-
case 40:
|
|
750
|
-
case 91:
|
|
751
|
-
return 2;
|
|
752
|
-
case 41:
|
|
753
|
-
case 93:
|
|
754
|
-
return 1;
|
|
755
|
-
}
|
|
756
|
-
return 0;
|
|
757
|
-
}
|
|
758
|
-
function wo(e) {
|
|
759
|
-
return jt = We = 1, Jr = ae(Ve = e), re = 0, [];
|
|
760
|
-
}
|
|
761
|
-
function So(e) {
|
|
762
|
-
return Ve = "", e;
|
|
763
|
-
}
|
|
764
|
-
function Nt(e) {
|
|
765
|
-
return qr(It(re - 1, Kt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
766
|
-
}
|
|
767
|
-
function ko(e) {
|
|
768
|
-
for (; (H = _e()) && H < 33; )
|
|
769
|
-
se();
|
|
770
|
-
return Vt(e) > 2 || Vt(H) > 3 ? "" : " ";
|
|
771
|
-
}
|
|
772
|
-
function Co(e, t) {
|
|
773
|
-
for (; --t && se() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
774
|
-
;
|
|
775
|
-
return It(e, gt() + (t < 6 && _e() == 32 && se() == 32));
|
|
776
|
-
}
|
|
777
|
-
function Kt(e) {
|
|
778
|
-
for (; se(); )
|
|
779
|
-
switch (H) {
|
|
780
|
-
case e:
|
|
781
|
-
return re;
|
|
782
|
-
case 34:
|
|
783
|
-
case 39:
|
|
784
|
-
e !== 34 && e !== 39 && Kt(H);
|
|
785
|
-
break;
|
|
786
|
-
case 40:
|
|
787
|
-
e === 41 && Kt(e);
|
|
788
|
-
break;
|
|
789
|
-
case 92:
|
|
790
|
-
se();
|
|
791
|
-
break;
|
|
792
|
-
}
|
|
793
|
-
return re;
|
|
794
|
-
}
|
|
795
|
-
function jo(e, t) {
|
|
796
|
-
for (; se() && e + H !== 57; )
|
|
797
|
-
if (e + H === 84 && _e() === 47)
|
|
798
|
-
break;
|
|
799
|
-
return "/*" + It(t, re - 1) + "*" + tr(e === 47 ? e : se());
|
|
800
|
-
}
|
|
801
|
-
function Eo(e) {
|
|
802
|
-
for (; !Vt(_e()); )
|
|
803
|
-
se();
|
|
804
|
-
return It(e, re);
|
|
805
|
-
}
|
|
806
|
-
function Io(e) {
|
|
807
|
-
return So(yt("", null, null, null, [""], e = wo(e), 0, [0], e));
|
|
808
|
-
}
|
|
809
|
-
function yt(e, t, r, n, o, i, a, d, l) {
|
|
810
|
-
for (var f = 0, u = 0, h = a, g = 0, m = 0, y = 0, $ = 1, C = 1, w = 1, v = 0, E = "", A = o, _ = i, I = n, x = E; C; )
|
|
811
|
-
switch (y = v, v = se()) {
|
|
812
|
-
case 40:
|
|
813
|
-
if (y != 108 && U(x, h - 1) == 58) {
|
|
814
|
-
mt(x += R(Nt(v), "&", "&\f"), "&\f", Kr(f ? d[f - 1] : 0)) != -1 && (w = -1);
|
|
815
|
-
break;
|
|
816
|
-
}
|
|
817
|
-
case 34:
|
|
818
|
-
case 39:
|
|
819
|
-
case 91:
|
|
820
|
-
x += Nt(v);
|
|
821
|
-
break;
|
|
822
|
-
case 9:
|
|
823
|
-
case 10:
|
|
824
|
-
case 13:
|
|
825
|
-
case 32:
|
|
826
|
-
x += ko(y);
|
|
827
|
-
break;
|
|
828
|
-
case 92:
|
|
829
|
-
x += Co(gt() - 1, 7);
|
|
830
|
-
continue;
|
|
831
|
-
case 47:
|
|
832
|
-
switch (_e()) {
|
|
833
|
-
case 42:
|
|
834
|
-
case 47:
|
|
835
|
-
nt(Ro(jo(se(), gt()), t, r, l), l);
|
|
836
|
-
break;
|
|
837
|
-
default:
|
|
838
|
-
x += "/";
|
|
839
|
-
}
|
|
840
|
-
break;
|
|
841
|
-
case 123 * $:
|
|
842
|
-
d[f++] = ae(x) * w;
|
|
843
|
-
case 125 * $:
|
|
844
|
-
case 59:
|
|
845
|
-
case 0:
|
|
846
|
-
switch (v) {
|
|
847
|
-
case 0:
|
|
848
|
-
case 125:
|
|
849
|
-
C = 0;
|
|
850
|
-
case 59 + u:
|
|
851
|
-
w == -1 && (x = R(x, /\f/g, "")), m > 0 && ae(x) - h && nt(m > 32 ? Er(x + ";", n, r, h - 1, l) : Er(R(x, " ", "") + ";", n, r, h - 2, l), l);
|
|
852
|
-
break;
|
|
853
|
-
case 59:
|
|
854
|
-
x += ";";
|
|
855
|
-
default:
|
|
856
|
-
if (nt(I = jr(x, t, r, f, u, o, d, E, A = [], _ = [], h, i), i), v === 123)
|
|
857
|
-
if (u === 0)
|
|
858
|
-
yt(x, t, I, I, A, i, h, d, _);
|
|
859
|
-
else
|
|
860
|
-
switch (g === 99 && U(x, 3) === 110 ? 100 : g) {
|
|
861
|
-
case 100:
|
|
862
|
-
case 108:
|
|
863
|
-
case 109:
|
|
864
|
-
case 115:
|
|
865
|
-
yt(e, I, I, n && nt(jr(e, I, I, 0, 0, o, d, E, o, A = [], h, _), _), o, _, h, d, n ? A : _);
|
|
866
|
-
break;
|
|
867
|
-
default:
|
|
868
|
-
yt(x, I, I, I, [""], _, 0, d, _);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
f = u = m = 0, $ = w = 1, E = x = "", h = a;
|
|
872
|
-
break;
|
|
873
|
-
case 58:
|
|
874
|
-
h = 1 + ae(x), m = y;
|
|
875
|
-
default:
|
|
876
|
-
if ($ < 1) {
|
|
877
|
-
if (v == 123)
|
|
878
|
-
--$;
|
|
879
|
-
else if (v == 125 && $++ == 0 && xo() == 125)
|
|
880
|
-
continue;
|
|
881
|
-
}
|
|
882
|
-
switch (x += tr(v), v * $) {
|
|
883
|
-
case 38:
|
|
884
|
-
w = u > 0 ? 1 : (x += "\f", -1);
|
|
885
|
-
break;
|
|
886
|
-
case 44:
|
|
887
|
-
d[f++] = (ae(x) - 1) * w, w = 1;
|
|
888
|
-
break;
|
|
889
|
-
case 64:
|
|
890
|
-
_e() === 45 && (x += Nt(se())), g = _e(), u = h = ae(E = x += Eo(gt())), v++;
|
|
891
|
-
break;
|
|
892
|
-
case 45:
|
|
893
|
-
y === 45 && ae(x) == 2 && ($ = 0);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
return i;
|
|
897
|
-
}
|
|
898
|
-
function jr(e, t, r, n, o, i, a, d, l, f, u, h) {
|
|
899
|
-
for (var g = o - 1, m = o === 0 ? i : [""], y = Xr(m), $ = 0, C = 0, w = 0; $ < n; ++$)
|
|
900
|
-
for (var v = 0, E = He(e, g + 1, g = Kr(C = a[$])), A = e; v < y; ++v)
|
|
901
|
-
(A = qr(C > 0 ? m[v] + " " + E : R(E, /&\f/g, m[v]))) && (l[w++] = A);
|
|
902
|
-
return Et(e, t, r, o === 0 ? Ct : d, l, f, u, h);
|
|
903
|
-
}
|
|
904
|
-
function Ro(e, t, r, n) {
|
|
905
|
-
return Et(e, t, r, Yr, tr($o()), He(e, 2, -2), 0, n);
|
|
906
|
-
}
|
|
907
|
-
function Er(e, t, r, n, o) {
|
|
908
|
-
return Et(e, t, r, er, He(e, 0, n), He(e, n + 1, -1), n, o);
|
|
909
|
-
}
|
|
910
|
-
function Zr(e, t, r) {
|
|
911
|
-
switch (bo(e, t)) {
|
|
912
|
-
case 5103:
|
|
913
|
-
return D + "print-" + e + e;
|
|
914
|
-
case 5737:
|
|
915
|
-
case 4201:
|
|
916
|
-
case 3177:
|
|
917
|
-
case 3433:
|
|
918
|
-
case 1641:
|
|
919
|
-
case 4457:
|
|
920
|
-
case 2921:
|
|
921
|
-
case 5572:
|
|
922
|
-
case 6356:
|
|
923
|
-
case 5844:
|
|
924
|
-
case 3191:
|
|
925
|
-
case 6645:
|
|
926
|
-
case 3005:
|
|
927
|
-
case 6391:
|
|
928
|
-
case 5879:
|
|
929
|
-
case 5623:
|
|
930
|
-
case 6135:
|
|
931
|
-
case 4599:
|
|
932
|
-
case 4855:
|
|
933
|
-
case 4215:
|
|
934
|
-
case 6389:
|
|
935
|
-
case 5109:
|
|
936
|
-
case 5365:
|
|
937
|
-
case 5621:
|
|
938
|
-
case 3829:
|
|
939
|
-
return D + e + e;
|
|
940
|
-
case 4789:
|
|
941
|
-
return ot + e + e;
|
|
942
|
-
case 5349:
|
|
943
|
-
case 4246:
|
|
944
|
-
case 4810:
|
|
945
|
-
case 6968:
|
|
946
|
-
case 2756:
|
|
947
|
-
return D + e + ot + e + B + e + e;
|
|
948
|
-
case 5936:
|
|
949
|
-
switch (U(e, t + 11)) {
|
|
950
|
-
case 114:
|
|
951
|
-
return D + e + B + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
952
|
-
case 108:
|
|
953
|
-
return D + e + B + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
954
|
-
case 45:
|
|
955
|
-
return D + e + B + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
956
|
-
}
|
|
957
|
-
case 6828:
|
|
958
|
-
case 4268:
|
|
959
|
-
case 2903:
|
|
960
|
-
return D + e + B + e + e;
|
|
961
|
-
case 6165:
|
|
962
|
-
return D + e + B + "flex-" + e + e;
|
|
963
|
-
case 5187:
|
|
964
|
-
return D + e + R(e, /(\w+).+(:[^]+)/, D + "box-$1$2" + B + "flex-$1$2") + e;
|
|
965
|
-
case 5443:
|
|
966
|
-
return D + e + B + "flex-item-" + R(e, /flex-|-self/g, "") + (de(e, /flex-|baseline/) ? "" : B + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
967
|
-
case 4675:
|
|
968
|
-
return D + e + B + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
969
|
-
case 5548:
|
|
970
|
-
return D + e + B + R(e, "shrink", "negative") + e;
|
|
971
|
-
case 5292:
|
|
972
|
-
return D + e + B + R(e, "basis", "preferred-size") + e;
|
|
973
|
-
case 6060:
|
|
974
|
-
return D + "box-" + R(e, "-grow", "") + D + e + B + R(e, "grow", "positive") + e;
|
|
975
|
-
case 4554:
|
|
976
|
-
return D + R(e, /([^-])(transform)/g, "$1" + D + "$2") + e;
|
|
977
|
-
case 6187:
|
|
978
|
-
return R(R(R(e, /(zoom-|grab)/, D + "$1"), /(image-set)/, D + "$1"), e, "") + e;
|
|
979
|
-
case 5495:
|
|
980
|
-
case 3959:
|
|
981
|
-
return R(e, /(image-set\([^]*)/, D + "$1$`$1");
|
|
982
|
-
case 4968:
|
|
983
|
-
return R(R(e, /(.+:)(flex-)?(.*)/, D + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + D + e + e;
|
|
984
|
-
case 4200:
|
|
985
|
-
if (!de(e, /flex-|baseline/)) return B + "grid-column-align" + He(e, t) + e;
|
|
986
|
-
break;
|
|
987
|
-
case 2592:
|
|
988
|
-
case 3360:
|
|
989
|
-
return B + R(e, "template-", "") + e;
|
|
990
|
-
case 4384:
|
|
991
|
-
case 3616:
|
|
992
|
-
return r && r.some(function(n, o) {
|
|
993
|
-
return t = o, de(n.props, /grid-\w+-end/);
|
|
994
|
-
}) ? ~mt(e + (r = r[t].value), "span", 0) ? e : B + R(e, "-start", "") + e + B + "grid-row-span:" + (~mt(r, "span", 0) ? de(r, /\d+/) : +de(r, /\d+/) - +de(e, /\d+/)) + ";" : B + R(e, "-start", "") + e;
|
|
995
|
-
case 4896:
|
|
996
|
-
case 4128:
|
|
997
|
-
return r && r.some(function(n) {
|
|
998
|
-
return de(n.props, /grid-\w+-start/);
|
|
999
|
-
}) ? e : B + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
1000
|
-
case 4095:
|
|
1001
|
-
case 3583:
|
|
1002
|
-
case 4068:
|
|
1003
|
-
case 2532:
|
|
1004
|
-
return R(e, /(.+)-inline(.+)/, D + "$1$2") + e;
|
|
1005
|
-
case 8116:
|
|
1006
|
-
case 7059:
|
|
1007
|
-
case 5753:
|
|
1008
|
-
case 5535:
|
|
1009
|
-
case 5445:
|
|
1010
|
-
case 5701:
|
|
1011
|
-
case 4933:
|
|
1012
|
-
case 4677:
|
|
1013
|
-
case 5533:
|
|
1014
|
-
case 5789:
|
|
1015
|
-
case 5021:
|
|
1016
|
-
case 4765:
|
|
1017
|
-
if (ae(e) - 1 - t > 6)
|
|
1018
|
-
switch (U(e, t + 1)) {
|
|
1019
|
-
case 109:
|
|
1020
|
-
if (U(e, t + 4) !== 45)
|
|
1021
|
-
break;
|
|
1022
|
-
case 102:
|
|
1023
|
-
return R(e, /(.+:)(.+)-([^]+)/, "$1" + D + "$2-$3$1" + ot + (U(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1024
|
-
case 115:
|
|
1025
|
-
return ~mt(e, "stretch", 0) ? Zr(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1026
|
-
}
|
|
1027
|
-
break;
|
|
1028
|
-
case 5152:
|
|
1029
|
-
case 5920:
|
|
1030
|
-
return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, a, d, l, f) {
|
|
1031
|
-
return B + o + ":" + i + f + (a ? B + o + "-span:" + (d ? l : +l - +i) + f : "") + e;
|
|
1032
|
-
});
|
|
1033
|
-
case 4949:
|
|
1034
|
-
if (U(e, t + 6) === 121)
|
|
1035
|
-
return R(e, ":", ":" + D) + e;
|
|
1036
|
-
break;
|
|
1037
|
-
case 6444:
|
|
1038
|
-
switch (U(e, U(e, 14) === 45 ? 18 : 11)) {
|
|
1039
|
-
case 120:
|
|
1040
|
-
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + D + (U(e, 14) === 45 ? "inline-" : "") + "box$3$1" + D + "$2$3$1" + B + "$2box$3") + e;
|
|
1041
|
-
case 100:
|
|
1042
|
-
return R(e, ":", ":" + B) + e;
|
|
1043
|
-
}
|
|
1044
|
-
break;
|
|
1045
|
-
case 5719:
|
|
1046
|
-
case 2647:
|
|
1047
|
-
case 2135:
|
|
1048
|
-
case 3927:
|
|
1049
|
-
case 2391:
|
|
1050
|
-
return R(e, "scroll-", "scroll-snap-") + e;
|
|
1051
|
-
}
|
|
1052
|
-
return e;
|
|
1053
|
-
}
|
|
1054
|
-
function $t(e, t) {
|
|
1055
|
-
for (var r = "", n = 0; n < e.length; n++)
|
|
1056
|
-
r += t(e[n], n, e, t) || "";
|
|
1057
|
-
return r;
|
|
1058
|
-
}
|
|
1059
|
-
function _o(e, t, r, n) {
|
|
1060
|
-
switch (e.type) {
|
|
1061
|
-
case yo:
|
|
1062
|
-
if (e.children.length) break;
|
|
1063
|
-
case go:
|
|
1064
|
-
case er:
|
|
1065
|
-
return e.return = e.return || e.value;
|
|
1066
|
-
case Yr:
|
|
1067
|
-
return "";
|
|
1068
|
-
case Vr:
|
|
1069
|
-
return e.return = e.value + "{" + $t(e.children, n) + "}";
|
|
1070
|
-
case Ct:
|
|
1071
|
-
if (!ae(e.value = e.props.join(","))) return "";
|
|
1072
|
-
}
|
|
1073
|
-
return ae(r = $t(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1074
|
-
}
|
|
1075
|
-
function Ao(e) {
|
|
1076
|
-
var t = Xr(e);
|
|
1077
|
-
return function(r, n, o, i) {
|
|
1078
|
-
for (var a = "", d = 0; d < t; d++)
|
|
1079
|
-
a += e[d](r, n, o, i) || "";
|
|
1080
|
-
return a;
|
|
1081
|
-
};
|
|
1082
|
-
}
|
|
1083
|
-
function Po(e) {
|
|
1084
|
-
return function(t) {
|
|
1085
|
-
t.root || (t = t.return) && e(t);
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
function To(e, t, r, n) {
|
|
1089
|
-
if (e.length > -1 && !e.return)
|
|
1090
|
-
switch (e.type) {
|
|
1091
|
-
case er:
|
|
1092
|
-
e.return = Zr(e.value, e.length, r);
|
|
1093
|
-
return;
|
|
1094
|
-
case Vr:
|
|
1095
|
-
return $t([xe(e, { value: R(e.value, "@", "@" + D) })], n);
|
|
1096
|
-
case Ct:
|
|
1097
|
-
if (e.length)
|
|
1098
|
-
return vo(r = e.props, function(o) {
|
|
1099
|
-
switch (de(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
1100
|
-
case ":read-only":
|
|
1101
|
-
case ":read-write":
|
|
1102
|
-
Fe(xe(e, { props: [R(o, /:(read-\w+)/, ":" + ot + "$1")] })), Fe(xe(e, { props: [o] })), Yt(e, { props: Cr(r, n) });
|
|
1103
|
-
break;
|
|
1104
|
-
case "::placeholder":
|
|
1105
|
-
Fe(xe(e, { props: [R(o, /:(plac\w+)/, ":" + D + "input-$1")] })), Fe(xe(e, { props: [R(o, /:(plac\w+)/, ":" + ot + "$1")] })), Fe(xe(e, { props: [R(o, /:(plac\w+)/, B + "input-$1")] })), Fe(xe(e, { props: [o] })), Yt(e, { props: Cr(r, n) });
|
|
1106
|
-
break;
|
|
1107
|
-
}
|
|
1108
|
-
return "";
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
var Oo = {
|
|
1113
|
-
animationIterationCount: 1,
|
|
1114
|
-
aspectRatio: 1,
|
|
1115
|
-
borderImageOutset: 1,
|
|
1116
|
-
borderImageSlice: 1,
|
|
1117
|
-
borderImageWidth: 1,
|
|
1118
|
-
boxFlex: 1,
|
|
1119
|
-
boxFlexGroup: 1,
|
|
1120
|
-
boxOrdinalGroup: 1,
|
|
1121
|
-
columnCount: 1,
|
|
1122
|
-
columns: 1,
|
|
1123
|
-
flex: 1,
|
|
1124
|
-
flexGrow: 1,
|
|
1125
|
-
flexPositive: 1,
|
|
1126
|
-
flexShrink: 1,
|
|
1127
|
-
flexNegative: 1,
|
|
1128
|
-
flexOrder: 1,
|
|
1129
|
-
gridRow: 1,
|
|
1130
|
-
gridRowEnd: 1,
|
|
1131
|
-
gridRowSpan: 1,
|
|
1132
|
-
gridRowStart: 1,
|
|
1133
|
-
gridColumn: 1,
|
|
1134
|
-
gridColumnEnd: 1,
|
|
1135
|
-
gridColumnSpan: 1,
|
|
1136
|
-
gridColumnStart: 1,
|
|
1137
|
-
msGridRow: 1,
|
|
1138
|
-
msGridRowSpan: 1,
|
|
1139
|
-
msGridColumn: 1,
|
|
1140
|
-
msGridColumnSpan: 1,
|
|
1141
|
-
fontWeight: 1,
|
|
1142
|
-
lineHeight: 1,
|
|
1143
|
-
opacity: 1,
|
|
1144
|
-
order: 1,
|
|
1145
|
-
orphans: 1,
|
|
1146
|
-
tabSize: 1,
|
|
1147
|
-
widows: 1,
|
|
1148
|
-
zIndex: 1,
|
|
1149
|
-
zoom: 1,
|
|
1150
|
-
WebkitLineClamp: 1,
|
|
1151
|
-
// SVG-related properties
|
|
1152
|
-
fillOpacity: 1,
|
|
1153
|
-
floodOpacity: 1,
|
|
1154
|
-
stopOpacity: 1,
|
|
1155
|
-
strokeDasharray: 1,
|
|
1156
|
-
strokeDashoffset: 1,
|
|
1157
|
-
strokeMiterlimit: 1,
|
|
1158
|
-
strokeOpacity: 1,
|
|
1159
|
-
strokeWidth: 1
|
|
1160
|
-
}, Pe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Qr = "active", en = "data-styled-version", Rt = "6.1.13", rr = `/*!sc*/
|
|
1161
|
-
`, xt = typeof window < "u" && "HTMLElement" in window, zo = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Ir = /invalid hook call/i, ut = /* @__PURE__ */ new Set(), Do = function(e, t) {
|
|
1162
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1163
|
-
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1164
|
-
`) + `You may see this warning because you've called styled inside another component.
|
|
1165
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
|
|
1166
|
-
try {
|
|
1167
|
-
var i = !0;
|
|
1168
|
-
console.error = function(a) {
|
|
1169
|
-
for (var d = [], l = 1; l < arguments.length; l++) d[l - 1] = arguments[l];
|
|
1170
|
-
Ir.test(a) ? (i = !1, ut.delete(n)) : o.apply(void 0, Ne([a], d, !1));
|
|
1171
|
-
}, Se(), i && !ut.has(n) && (console.warn(n), ut.add(n));
|
|
1172
|
-
} catch (a) {
|
|
1173
|
-
Ir.test(a.message) && ut.delete(n);
|
|
1174
|
-
} finally {
|
|
1175
|
-
console.error = o;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}, _t = Object.freeze([]), Ge = Object.freeze({});
|
|
1179
|
-
function Mo(e, t, r) {
|
|
1180
|
-
return r === void 0 && (r = Ge), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1181
|
-
}
|
|
1182
|
-
var qt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Bo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Lo = /(^-|-$)/g;
|
|
1183
|
-
function Rr(e) {
|
|
1184
|
-
return e.replace(Bo, "-").replace(Lo, "");
|
|
1185
|
-
}
|
|
1186
|
-
var Fo = /(a)(d)/gi, ft = 52, _r = function(e) {
|
|
1187
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1188
|
-
};
|
|
1189
|
-
function Xt(e) {
|
|
1190
|
-
var t, r = "";
|
|
1191
|
-
for (t = Math.abs(e); t > ft; t = t / ft | 0) r = _r(t % ft) + r;
|
|
1192
|
-
return (_r(t % ft) + r).replace(Fo, "$1-$2");
|
|
1193
|
-
}
|
|
1194
|
-
var Ht, tn = 5381, Ie = function(e, t) {
|
|
1195
|
-
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1196
|
-
return e;
|
|
1197
|
-
}, rn = function(e) {
|
|
1198
|
-
return Ie(tn, e);
|
|
1199
|
-
};
|
|
1200
|
-
function No(e) {
|
|
1201
|
-
return Xt(rn(e) >>> 0);
|
|
1202
|
-
}
|
|
1203
|
-
function nn(e) {
|
|
1204
|
-
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1205
|
-
}
|
|
1206
|
-
function Wt(e) {
|
|
1207
|
-
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1208
|
-
}
|
|
1209
|
-
var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.memo") : 60115, Ho = on ? Symbol.for("react.forward_ref") : 60112, Wo = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Go = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, an = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Uo = ((Ht = {})[Ho] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Ht[sn] = an, Ht);
|
|
1210
|
-
function Ar(e) {
|
|
1211
|
-
return ("type" in (t = e) && t.type.$$typeof) === sn ? an : "$$typeof" in e ? Uo[e.$$typeof] : Wo;
|
|
1212
|
-
var t;
|
|
1213
|
-
}
|
|
1214
|
-
var Yo = Object.defineProperty, Vo = Object.getOwnPropertyNames, Pr = Object.getOwnPropertySymbols, Ko = Object.getOwnPropertyDescriptor, qo = Object.getPrototypeOf, Tr = Object.prototype;
|
|
1215
|
-
function cn(e, t, r) {
|
|
1216
|
-
if (typeof t != "string") {
|
|
1217
|
-
if (Tr) {
|
|
1218
|
-
var n = qo(t);
|
|
1219
|
-
n && n !== Tr && cn(e, n, r);
|
|
1220
|
-
}
|
|
1221
|
-
var o = Vo(t);
|
|
1222
|
-
Pr && (o = o.concat(Pr(t)));
|
|
1223
|
-
for (var i = Ar(e), a = Ar(t), d = 0; d < o.length; ++d) {
|
|
1224
|
-
var l = o[d];
|
|
1225
|
-
if (!(l in Go || r && r[l] || a && l in a || i && l in i)) {
|
|
1226
|
-
var f = Ko(t, l);
|
|
1227
|
-
try {
|
|
1228
|
-
Yo(e, l, f);
|
|
1229
|
-
} catch {
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
return e;
|
|
1235
|
-
}
|
|
1236
|
-
function Ue(e) {
|
|
1237
|
-
return typeof e == "function";
|
|
1238
|
-
}
|
|
1239
|
-
function nr(e) {
|
|
1240
|
-
return typeof e == "object" && "styledComponentId" in e;
|
|
1241
|
-
}
|
|
1242
|
-
function Re(e, t) {
|
|
1243
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1244
|
-
}
|
|
1245
|
-
function Or(e, t) {
|
|
1246
|
-
if (e.length === 0) return "";
|
|
1247
|
-
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
1248
|
-
return r;
|
|
1249
|
-
}
|
|
1250
|
-
function Ye(e) {
|
|
1251
|
-
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1252
|
-
}
|
|
1253
|
-
function Jt(e, t, r) {
|
|
1254
|
-
if (r === void 0 && (r = !1), !r && !Ye(e) && !Array.isArray(e)) return t;
|
|
1255
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Jt(e[n], t[n]);
|
|
1256
|
-
else if (Ye(t)) for (var n in t) e[n] = Jt(e[n], t[n]);
|
|
1257
|
-
return e;
|
|
1258
|
-
}
|
|
1259
|
-
function or(e, t) {
|
|
1260
|
-
Object.defineProperty(e, "toString", { value: t });
|
|
1261
|
-
}
|
|
1262
|
-
var Xo = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1263
|
-
|
|
1264
|
-
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1265
|
-
|
|
1266
|
-
- Are you trying to reuse it across renders?
|
|
1267
|
-
- Are you accidentally calling collectStyles twice?
|
|
1268
|
-
|
|
1269
|
-
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1270
|
-
|
|
1271
|
-
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1272
|
-
|
|
1273
|
-
- Does this error occur on the client and is your target falsy?
|
|
1274
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
1275
|
-
|
|
1276
|
-
`, 5: `The clone method cannot be used on the client!
|
|
1277
|
-
|
|
1278
|
-
- Are you running in a client-like environment on the server?
|
|
1279
|
-
- Are you trying to run SSR on the client?
|
|
1280
|
-
|
|
1281
|
-
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1282
|
-
|
|
1283
|
-
- Are you using a custom target that isn't mounted?
|
|
1284
|
-
- Does your document not have a valid head element?
|
|
1285
|
-
- Have you accidentally removed a style tag manually?
|
|
1286
|
-
|
|
1287
|
-
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1288
|
-
|
|
1289
|
-
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1290
|
-
|
|
1291
|
-
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1292
|
-
|
|
1293
|
-
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1294
|
-
|
|
1295
|
-
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1296
|
-
|
|
1297
|
-
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1298
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1299
|
-
as for instance in your render method then you may be running into this limitation.
|
|
1300
|
-
|
|
1301
|
-
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1302
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
1303
|
-
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1304
|
-
function Jo() {
|
|
1305
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1306
|
-
for (var r = e[0], n = [], o = 1, i = e.length; o < i; o += 1) n.push(e[o]);
|
|
1307
|
-
return n.forEach(function(a) {
|
|
1308
|
-
r = r.replace(/%[a-z]/, a);
|
|
1309
|
-
}), r;
|
|
1310
|
-
}
|
|
1311
|
-
function Ke(e) {
|
|
1312
|
-
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1313
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Jo.apply(void 0, Ne([Xo[e]], t, !1)).trim());
|
|
1314
|
-
}
|
|
1315
|
-
var Zo = function() {
|
|
1316
|
-
function e(t) {
|
|
1317
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1318
|
-
}
|
|
1319
|
-
return e.prototype.indexOfGroup = function(t) {
|
|
1320
|
-
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
1321
|
-
return r;
|
|
1322
|
-
}, e.prototype.insertRules = function(t, r) {
|
|
1323
|
-
if (t >= this.groupSizes.length) {
|
|
1324
|
-
for (var n = this.groupSizes, o = n.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw Ke(16, "".concat(t));
|
|
1325
|
-
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1326
|
-
for (var a = o; a < i; a++) this.groupSizes[a] = 0;
|
|
1327
|
-
}
|
|
1328
|
-
for (var d = this.indexOfGroup(t + 1), l = (a = 0, r.length); a < l; a++) this.tag.insertRule(d, r[a]) && (this.groupSizes[t]++, d++);
|
|
1329
|
-
}, e.prototype.clearGroup = function(t) {
|
|
1330
|
-
if (t < this.length) {
|
|
1331
|
-
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
1332
|
-
this.groupSizes[t] = 0;
|
|
1333
|
-
for (var i = n; i < o; i++) this.tag.deleteRule(n);
|
|
1334
|
-
}
|
|
1335
|
-
}, e.prototype.getGroup = function(t) {
|
|
1336
|
-
var r = "";
|
|
1337
|
-
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1338
|
-
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), i = o + n, a = o; a < i; a++) r += "".concat(this.tag.getRule(a)).concat(rr);
|
|
1339
|
-
return r;
|
|
1340
|
-
}, e;
|
|
1341
|
-
}(), Qo = 1 << 30, bt = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map(), vt = 1, ht = function(e) {
|
|
1342
|
-
if (bt.has(e)) return bt.get(e);
|
|
1343
|
-
for (; wt.has(vt); ) vt++;
|
|
1344
|
-
var t = vt++;
|
|
1345
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Qo)) throw Ke(16, "".concat(t));
|
|
1346
|
-
return bt.set(e, t), wt.set(t, e), t;
|
|
1347
|
-
}, ei = function(e, t) {
|
|
1348
|
-
vt = t + 1, bt.set(e, t), wt.set(t, e);
|
|
1349
|
-
}, ti = "style[".concat(Pe, "][").concat(en, '="').concat(Rt, '"]'), ri = new RegExp("^".concat(Pe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ni = function(e, t, r) {
|
|
1350
|
-
for (var n, o = r.split(","), i = 0, a = o.length; i < a; i++) (n = o[i]) && e.registerName(t, n);
|
|
1351
|
-
}, oi = function(e, t) {
|
|
1352
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(rr), o = [], i = 0, a = n.length; i < a; i++) {
|
|
1353
|
-
var d = n[i].trim();
|
|
1354
|
-
if (d) {
|
|
1355
|
-
var l = d.match(ri);
|
|
1356
|
-
if (l) {
|
|
1357
|
-
var f = 0 | parseInt(l[1], 10), u = l[2];
|
|
1358
|
-
f !== 0 && (ei(u, f), ni(e, u, l[3]), e.getTag().insertRules(f, o)), o.length = 0;
|
|
1359
|
-
} else o.push(d);
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}, zr = function(e) {
|
|
1363
|
-
for (var t = document.querySelectorAll(ti), r = 0, n = t.length; r < n; r++) {
|
|
1364
|
-
var o = t[r];
|
|
1365
|
-
o && o.getAttribute(Pe) !== Qr && (oi(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1366
|
-
}
|
|
1367
|
-
};
|
|
1368
|
-
function ii() {
|
|
1369
|
-
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1370
|
-
}
|
|
1371
|
-
var ln = function(e) {
|
|
1372
|
-
var t = document.head, r = e || t, n = document.createElement("style"), o = function(d) {
|
|
1373
|
-
var l = Array.from(d.querySelectorAll("style[".concat(Pe, "]")));
|
|
1374
|
-
return l[l.length - 1];
|
|
1375
|
-
}(r), i = o !== void 0 ? o.nextSibling : null;
|
|
1376
|
-
n.setAttribute(Pe, Qr), n.setAttribute(en, Rt);
|
|
1377
|
-
var a = ii();
|
|
1378
|
-
return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
|
|
1379
|
-
}, si = function() {
|
|
1380
|
-
function e(t) {
|
|
1381
|
-
this.element = ln(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1382
|
-
if (r.sheet) return r.sheet;
|
|
1383
|
-
for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
|
|
1384
|
-
var a = n[o];
|
|
1385
|
-
if (a.ownerNode === r) return a;
|
|
1386
|
-
}
|
|
1387
|
-
throw Ke(17);
|
|
1388
|
-
}(this.element), this.length = 0;
|
|
1389
|
-
}
|
|
1390
|
-
return e.prototype.insertRule = function(t, r) {
|
|
1391
|
-
try {
|
|
1392
|
-
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1393
|
-
} catch {
|
|
1394
|
-
return !1;
|
|
1395
|
-
}
|
|
1396
|
-
}, e.prototype.deleteRule = function(t) {
|
|
1397
|
-
this.sheet.deleteRule(t), this.length--;
|
|
1398
|
-
}, e.prototype.getRule = function(t) {
|
|
1399
|
-
var r = this.sheet.cssRules[t];
|
|
1400
|
-
return r && r.cssText ? r.cssText : "";
|
|
1401
|
-
}, e;
|
|
1402
|
-
}(), ai = function() {
|
|
1403
|
-
function e(t) {
|
|
1404
|
-
this.element = ln(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1405
|
-
}
|
|
1406
|
-
return e.prototype.insertRule = function(t, r) {
|
|
1407
|
-
if (t <= this.length && t >= 0) {
|
|
1408
|
-
var n = document.createTextNode(r);
|
|
1409
|
-
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
1410
|
-
}
|
|
1411
|
-
return !1;
|
|
1412
|
-
}, e.prototype.deleteRule = function(t) {
|
|
1413
|
-
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1414
|
-
}, e.prototype.getRule = function(t) {
|
|
1415
|
-
return t < this.length ? this.nodes[t].textContent : "";
|
|
1416
|
-
}, e;
|
|
1417
|
-
}(), ci = function() {
|
|
1418
|
-
function e(t) {
|
|
1419
|
-
this.rules = [], this.length = 0;
|
|
1420
|
-
}
|
|
1421
|
-
return e.prototype.insertRule = function(t, r) {
|
|
1422
|
-
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1423
|
-
}, e.prototype.deleteRule = function(t) {
|
|
1424
|
-
this.rules.splice(t, 1), this.length--;
|
|
1425
|
-
}, e.prototype.getRule = function(t) {
|
|
1426
|
-
return t < this.length ? this.rules[t] : "";
|
|
1427
|
-
}, e;
|
|
1428
|
-
}(), Dr = xt, li = { isServer: !xt, useCSSOMInjection: !zo }, dn = function() {
|
|
1429
|
-
function e(t, r, n) {
|
|
1430
|
-
t === void 0 && (t = Ge), r === void 0 && (r = {});
|
|
1431
|
-
var o = this;
|
|
1432
|
-
this.options = q(q({}, li), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && xt && Dr && (Dr = !1, zr(this)), or(this, function() {
|
|
1433
|
-
return function(i) {
|
|
1434
|
-
for (var a = i.getTag(), d = a.length, l = "", f = function(h) {
|
|
1435
|
-
var g = function(w) {
|
|
1436
|
-
return wt.get(w);
|
|
1437
|
-
}(h);
|
|
1438
|
-
if (g === void 0) return "continue";
|
|
1439
|
-
var m = i.names.get(g), y = a.getGroup(h);
|
|
1440
|
-
if (m === void 0 || !m.size || y.length === 0) return "continue";
|
|
1441
|
-
var $ = "".concat(Pe, ".g").concat(h, '[id="').concat(g, '"]'), C = "";
|
|
1442
|
-
m !== void 0 && m.forEach(function(w) {
|
|
1443
|
-
w.length > 0 && (C += "".concat(w, ","));
|
|
1444
|
-
}), l += "".concat(y).concat($, '{content:"').concat(C, '"}').concat(rr);
|
|
1445
|
-
}, u = 0; u < d; u++) f(u);
|
|
1446
|
-
return l;
|
|
1447
|
-
}(o);
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
return e.registerId = function(t) {
|
|
1451
|
-
return ht(t);
|
|
1452
|
-
}, e.prototype.rehydrate = function() {
|
|
1453
|
-
!this.server && xt && zr(this);
|
|
1454
|
-
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1455
|
-
return r === void 0 && (r = !0), new e(q(q({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1456
|
-
}, e.prototype.allocateGSInstance = function(t) {
|
|
1457
|
-
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1458
|
-
}, e.prototype.getTag = function() {
|
|
1459
|
-
return this.tag || (this.tag = (t = function(r) {
|
|
1460
|
-
var n = r.useCSSOMInjection, o = r.target;
|
|
1461
|
-
return r.isServer ? new ci(o) : n ? new si(o) : new ai(o);
|
|
1462
|
-
}(this.options), new Zo(t)));
|
|
1463
|
-
var t;
|
|
1464
|
-
}, e.prototype.hasNameForId = function(t, r) {
|
|
1465
|
-
return this.names.has(t) && this.names.get(t).has(r);
|
|
1466
|
-
}, e.prototype.registerName = function(t, r) {
|
|
1467
|
-
if (ht(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1468
|
-
else {
|
|
1469
|
-
var n = /* @__PURE__ */ new Set();
|
|
1470
|
-
n.add(r), this.names.set(t, n);
|
|
1471
|
-
}
|
|
1472
|
-
}, e.prototype.insertRules = function(t, r, n) {
|
|
1473
|
-
this.registerName(t, r), this.getTag().insertRules(ht(t), n);
|
|
1474
|
-
}, e.prototype.clearNames = function(t) {
|
|
1475
|
-
this.names.has(t) && this.names.get(t).clear();
|
|
1476
|
-
}, e.prototype.clearRules = function(t) {
|
|
1477
|
-
this.getTag().clearGroup(ht(t)), this.clearNames(t);
|
|
1478
|
-
}, e.prototype.clearTag = function() {
|
|
1479
|
-
this.tag = void 0;
|
|
1480
|
-
}, e;
|
|
1481
|
-
}(), di = /&/g, ui = /^\s*\/\/.*$/gm;
|
|
1482
|
-
function un(e, t) {
|
|
1483
|
-
return e.map(function(r) {
|
|
1484
|
-
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
1485
|
-
return "".concat(t, " ").concat(n);
|
|
1486
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = un(r.children, t)), r;
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
function fi(e) {
|
|
1490
|
-
var t, r, n, o = Ge, i = o.options, a = i === void 0 ? Ge : i, d = o.plugins, l = d === void 0 ? _t : d, f = function(g, m, y) {
|
|
1491
|
-
return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1492
|
-
}, u = l.slice();
|
|
1493
|
-
u.push(function(g) {
|
|
1494
|
-
g.type === Ct && g.value.includes("&") && (g.props[0] = g.props[0].replace(di, r).replace(n, f));
|
|
1495
|
-
}), a.prefix && u.push(To), u.push(_o);
|
|
1496
|
-
var h = function(g, m, y, $) {
|
|
1497
|
-
m === void 0 && (m = ""), y === void 0 && (y = ""), $ === void 0 && ($ = "&"), t = $, r = m, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1498
|
-
var C = g.replace(ui, ""), w = Io(y || m ? "".concat(y, " ").concat(m, " { ").concat(C, " }") : C);
|
|
1499
|
-
a.namespace && (w = un(w, a.namespace));
|
|
1500
|
-
var v = [];
|
|
1501
|
-
return $t(w, Ao(u.concat(Po(function(E) {
|
|
1502
|
-
return v.push(E);
|
|
1503
|
-
})))), v;
|
|
1504
|
-
};
|
|
1505
|
-
return h.hash = l.length ? l.reduce(function(g, m) {
|
|
1506
|
-
return m.name || Ke(15), Ie(g, m.name);
|
|
1507
|
-
}, tn).toString() : "", h;
|
|
1508
|
-
}
|
|
1509
|
-
var hi = new dn(), Zt = fi(), fn = fe.createContext({ shouldForwardProp: void 0, styleSheet: hi, stylis: Zt });
|
|
1510
|
-
fn.Consumer;
|
|
1511
|
-
fe.createContext(void 0);
|
|
1512
|
-
function Mr() {
|
|
1513
|
-
return ke(fn);
|
|
1514
|
-
}
|
|
1515
|
-
var Br = function() {
|
|
1516
|
-
function e(t, r) {
|
|
1517
|
-
var n = this;
|
|
1518
|
-
this.inject = function(o, i) {
|
|
1519
|
-
i === void 0 && (i = Zt);
|
|
1520
|
-
var a = n.name + i.hash;
|
|
1521
|
-
o.hasNameForId(n.id, a) || o.insertRules(n.id, a, i(n.rules, a, "@keyframes"));
|
|
1522
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, or(this, function() {
|
|
1523
|
-
throw Ke(12, String(n.name));
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
return e.prototype.getName = function(t) {
|
|
1527
|
-
return t === void 0 && (t = Zt), this.name + t.hash;
|
|
1528
|
-
}, e;
|
|
1529
|
-
}(), pi = function(e) {
|
|
1530
|
-
return e >= "A" && e <= "Z";
|
|
1531
|
-
};
|
|
1532
|
-
function Lr(e) {
|
|
1533
|
-
for (var t = "", r = 0; r < e.length; r++) {
|
|
1534
|
-
var n = e[r];
|
|
1535
|
-
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
1536
|
-
pi(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
1537
|
-
}
|
|
1538
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
1539
|
-
}
|
|
1540
|
-
var hn = function(e) {
|
|
1541
|
-
return e == null || e === !1 || e === "";
|
|
1542
|
-
}, pn = function(e) {
|
|
1543
|
-
var t, r, n = [];
|
|
1544
|
-
for (var o in e) {
|
|
1545
|
-
var i = e[o];
|
|
1546
|
-
e.hasOwnProperty(o) && !hn(i) && (Array.isArray(i) && i.isCss || Ue(i) ? n.push("".concat(Lr(o), ":"), i, ";") : Ye(i) ? n.push.apply(n, Ne(Ne(["".concat(o, " {")], pn(i), !1), ["}"], !1)) : n.push("".concat(Lr(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Oo || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1547
|
-
}
|
|
1548
|
-
return n;
|
|
1549
|
-
};
|
|
1550
|
-
function Ae(e, t, r, n) {
|
|
1551
|
-
if (hn(e)) return [];
|
|
1552
|
-
if (nr(e)) return [".".concat(e.styledComponentId)];
|
|
1553
|
-
if (Ue(e)) {
|
|
1554
|
-
if (!Ue(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1555
|
-
var o = e(t);
|
|
1556
|
-
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Br || Ye(o) || o === null || console.error("".concat(nn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ae(o, t, r, n);
|
|
1557
|
-
}
|
|
1558
|
-
var i;
|
|
1559
|
-
return e instanceof Br ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Ye(e) ? pn(e) : Array.isArray(e) ? Array.prototype.concat.apply(_t, e.map(function(a) {
|
|
1560
|
-
return Ae(a, t, r, n);
|
|
1561
|
-
})) : [e.toString()];
|
|
1562
|
-
}
|
|
1563
|
-
function mi(e) {
|
|
1564
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
1565
|
-
var r = e[t];
|
|
1566
|
-
if (Ue(r) && !nr(r)) return !1;
|
|
1567
|
-
}
|
|
1568
|
-
return !0;
|
|
1569
|
-
}
|
|
1570
|
-
var gi = rn(Rt), yi = function() {
|
|
1571
|
-
function e(t, r, n) {
|
|
1572
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && mi(t), this.componentId = r, this.baseHash = Ie(gi, r), this.baseStyle = n, dn.registerId(r);
|
|
1573
|
-
}
|
|
1574
|
-
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1575
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1576
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = Re(o, this.staticRulesId);
|
|
1577
|
-
else {
|
|
1578
|
-
var i = Or(Ae(this.rules, t, r, n)), a = Xt(Ie(this.baseHash, i) >>> 0);
|
|
1579
|
-
if (!r.hasNameForId(this.componentId, a)) {
|
|
1580
|
-
var d = n(i, ".".concat(a), void 0, this.componentId);
|
|
1581
|
-
r.insertRules(this.componentId, a, d);
|
|
1582
|
-
}
|
|
1583
|
-
o = Re(o, a), this.staticRulesId = a;
|
|
1584
|
-
}
|
|
1585
|
-
else {
|
|
1586
|
-
for (var l = Ie(this.baseHash, n.hash), f = "", u = 0; u < this.rules.length; u++) {
|
|
1587
|
-
var h = this.rules[u];
|
|
1588
|
-
if (typeof h == "string") f += h, process.env.NODE_ENV !== "production" && (l = Ie(l, h));
|
|
1589
|
-
else if (h) {
|
|
1590
|
-
var g = Or(Ae(h, t, r, n));
|
|
1591
|
-
l = Ie(l, g + u), f += g;
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
if (f) {
|
|
1595
|
-
var m = Xt(l >>> 0);
|
|
1596
|
-
r.hasNameForId(this.componentId, m) || r.insertRules(this.componentId, m, n(f, ".".concat(m), void 0, this.componentId)), o = Re(o, m);
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
return o;
|
|
1600
|
-
}, e;
|
|
1601
|
-
}(), mn = fe.createContext(void 0);
|
|
1602
|
-
mn.Consumer;
|
|
1603
|
-
var Gt = {}, Fr = /* @__PURE__ */ new Set();
|
|
1604
|
-
function bi(e, t, r) {
|
|
1605
|
-
var n = nr(e), o = e, i = !Wt(e), a = t.attrs, d = a === void 0 ? _t : a, l = t.componentId, f = l === void 0 ? function(A, _) {
|
|
1606
|
-
var I = typeof A != "string" ? "sc" : Rr(A);
|
|
1607
|
-
Gt[I] = (Gt[I] || 0) + 1;
|
|
1608
|
-
var x = "".concat(I, "-").concat(No(Rt + I + Gt[I]));
|
|
1609
|
-
return _ ? "".concat(_, "-").concat(x) : x;
|
|
1610
|
-
}(t.displayName, t.parentComponentId) : l, u = t.displayName, h = u === void 0 ? function(A) {
|
|
1611
|
-
return Wt(A) ? "styled.".concat(A) : "Styled(".concat(nn(A), ")");
|
|
1612
|
-
}(e) : u, g = t.displayName && t.componentId ? "".concat(Rr(t.displayName), "-").concat(t.componentId) : t.componentId || f, m = n && o.attrs ? o.attrs.concat(d).filter(Boolean) : d, y = t.shouldForwardProp;
|
|
1613
|
-
if (n && o.shouldForwardProp) {
|
|
1614
|
-
var $ = o.shouldForwardProp;
|
|
1615
|
-
if (t.shouldForwardProp) {
|
|
1616
|
-
var C = t.shouldForwardProp;
|
|
1617
|
-
y = function(A, _) {
|
|
1618
|
-
return $(A, _) && C(A, _);
|
|
1619
|
-
};
|
|
1620
|
-
} else y = $;
|
|
1621
|
-
}
|
|
1622
|
-
var w = new yi(r, g, n ? o.componentStyle : void 0);
|
|
1623
|
-
function v(A, _) {
|
|
1624
|
-
return function(I, x, W) {
|
|
1625
|
-
var J = I.attrs, pe = I.componentStyle, me = I.defaultProps, ge = I.foldedComponentIds, G = I.styledComponentId, ce = I.target, je = fe.useContext(mn), ct = Mr(), Oe = I.shouldForwardProp || ct.shouldForwardProp;
|
|
1626
|
-
process.env.NODE_ENV !== "production" && wr(G);
|
|
1627
|
-
var Je = Mo(x, je, me) || Ge, Q = function(De, le, ve) {
|
|
1628
|
-
for (var ne, oe = q(q({}, le), { className: void 0, theme: ve }), $e = 0; $e < De.length; $e += 1) {
|
|
1629
|
-
var Me = Ue(ne = De[$e]) ? ne(oe) : ne;
|
|
1630
|
-
for (var ie in Me) oe[ie] = ie === "className" ? Re(oe[ie], Me[ie]) : ie === "style" ? q(q({}, oe[ie]), Me[ie]) : Me[ie];
|
|
1631
|
-
}
|
|
1632
|
-
return le.className && (oe.className = Re(oe.className, le.className)), oe;
|
|
1633
|
-
}(J, x, Je), ye = Q.as || ce, be = {};
|
|
1634
|
-
for (var Y in Q) Q[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && Q.theme === Je || (Y === "forwardedAs" ? be.as = Q.forwardedAs : Oe && !Oe(Y, ye) || (be[Y] = Q[Y], Oe || process.env.NODE_ENV !== "development" || mo(Y) || Fr.has(Y) || !qt.has(ye) || (Fr.add(Y), console.warn('styled-components: it looks like an unknown prop "'.concat(Y, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1635
|
-
var ze = function(De, le) {
|
|
1636
|
-
var ve = Mr(), ne = De.generateAndInjectStyles(le, ve.styleSheet, ve.stylis);
|
|
1637
|
-
return process.env.NODE_ENV !== "production" && wr(ne), ne;
|
|
1638
|
-
}(pe, Q);
|
|
1639
|
-
process.env.NODE_ENV !== "production" && I.warnTooManyClasses && I.warnTooManyClasses(ze);
|
|
1640
|
-
var Ze = Re(ge, G);
|
|
1641
|
-
return ze && (Ze += " " + ze), Q.className && (Ze += " " + Q.className), be[Wt(ye) && !qt.has(ye) ? "class" : "className"] = Ze, be.ref = W, so(ye, be);
|
|
1642
|
-
}(E, A, _);
|
|
1643
|
-
}
|
|
1644
|
-
v.displayName = h;
|
|
1645
|
-
var E = fe.forwardRef(v);
|
|
1646
|
-
return E.attrs = m, E.componentStyle = w, E.displayName = h, E.shouldForwardProp = y, E.foldedComponentIds = n ? Re(o.foldedComponentIds, o.styledComponentId) : "", E.styledComponentId = g, E.target = n ? o.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
1647
|
-
return this._foldedDefaultProps;
|
|
1648
|
-
}, set: function(A) {
|
|
1649
|
-
this._foldedDefaultProps = n ? function(_) {
|
|
1650
|
-
for (var I = [], x = 1; x < arguments.length; x++) I[x - 1] = arguments[x];
|
|
1651
|
-
for (var W = 0, J = I; W < J.length; W++) Jt(_, J[W], !0);
|
|
1652
|
-
return _;
|
|
1653
|
-
}({}, o.defaultProps, A) : A;
|
|
1654
|
-
} }), process.env.NODE_ENV !== "production" && (Do(h, g), E.warnTooManyClasses = /* @__PURE__ */ function(A, _) {
|
|
1655
|
-
var I = {}, x = !1;
|
|
1656
|
-
return function(W) {
|
|
1657
|
-
if (!x && (I[W] = !0, Object.keys(I).length >= 200)) {
|
|
1658
|
-
var J = _ ? ' with the id of "'.concat(_, '"') : "";
|
|
1659
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(A).concat(J, `.
|
|
1660
|
-
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1661
|
-
Example:
|
|
1662
|
-
const Component = styled.div.attrs(props => ({
|
|
1663
|
-
style: {
|
|
1664
|
-
background: props.background,
|
|
1665
|
-
},
|
|
1666
|
-
}))\`width: 100%;\`
|
|
1667
|
-
|
|
1668
|
-
<Component />`), x = !0, I = {};
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
|
-
}(h, g)), or(E, function() {
|
|
1672
|
-
return ".".concat(E.styledComponentId);
|
|
1673
|
-
}), i && cn(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), E;
|
|
1674
|
-
}
|
|
1675
|
-
function Nr(e, t) {
|
|
1676
|
-
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1677
|
-
return r;
|
|
1678
|
-
}
|
|
1679
|
-
var Hr = function(e) {
|
|
1680
|
-
return Object.assign(e, { isCss: !0 });
|
|
1681
|
-
};
|
|
1682
|
-
function vi(e) {
|
|
1683
|
-
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1684
|
-
if (Ue(e) || Ye(e)) return Hr(Ae(Nr(_t, Ne([e], t, !0))));
|
|
1685
|
-
var n = e;
|
|
1686
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ae(n) : Hr(Ae(Nr(n, t)));
|
|
1687
|
-
}
|
|
1688
|
-
function Qt(e, t, r) {
|
|
1689
|
-
if (r === void 0 && (r = Ge), !t) throw Ke(1, t);
|
|
1690
|
-
var n = function(o) {
|
|
1691
|
-
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
1692
|
-
return e(t, r, vi.apply(void 0, Ne([o], i, !1)));
|
|
1693
|
-
};
|
|
1694
|
-
return n.attrs = function(o) {
|
|
1695
|
-
return Qt(e, t, q(q({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1696
|
-
}, n.withConfig = function(o) {
|
|
1697
|
-
return Qt(e, t, q(q({}, r), o));
|
|
1698
|
-
}, n;
|
|
1699
|
-
}
|
|
1700
|
-
var gn = function(e) {
|
|
1701
|
-
return Qt(bi, e);
|
|
1702
|
-
}, k = gn;
|
|
1703
|
-
qt.forEach(function(e) {
|
|
1704
|
-
k[e] = gn(e);
|
|
1705
|
-
});
|
|
1706
|
-
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1707
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
1708
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1709
|
-
var pt = "__sc-".concat(Pe, "__");
|
|
1710
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[pt] || (window[pt] = 0), window[pt] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1711
|
-
|
|
1712
|
-
See https://s-c.sh/2BAXzed for more info.`), window[pt] += 1);
|
|
1713
|
-
const qe = `
|
|
1714
|
-
animation: fadeIn ease 400ms;
|
|
1715
|
-
-webkit-animation: fadeIn ease 400ms;
|
|
1716
|
-
-moz-animation: fadeIn ease 400ms;
|
|
1717
|
-
|
|
1718
|
-
@keyframes fadeIn {
|
|
1719
|
-
0% {
|
|
1720
|
-
opacity: 0;
|
|
1721
|
-
}
|
|
1722
|
-
100% {
|
|
1723
|
-
opacity: 1;
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
@-moz-keyframes fadeIn {
|
|
1728
|
-
0% {
|
|
1729
|
-
opacity: 0;
|
|
1730
|
-
}
|
|
1731
|
-
100% {
|
|
1732
|
-
opacity: 1;
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
@-webkit-keyframes fadeIn {
|
|
1737
|
-
0% {
|
|
1738
|
-
opacity: 0;
|
|
1739
|
-
}
|
|
1740
|
-
100% {
|
|
1741
|
-
opacity: 1;
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
`, yn = `
|
|
1745
|
-
animation: fadeOut ease 400ms;
|
|
1746
|
-
-webkit-animation: fadeOut ease 400ms;
|
|
1747
|
-
-moz-animation: fadeOut ease 400ms;
|
|
1748
|
-
|
|
1749
|
-
@keyframes fadeOut {
|
|
1750
|
-
0% {
|
|
1751
|
-
opacity: 1;
|
|
1752
|
-
}
|
|
1753
|
-
100% {
|
|
1754
|
-
opacity: 0;
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
@-moz-keyframes fadeOut {
|
|
1759
|
-
0% {
|
|
1760
|
-
opacity: 1;
|
|
1761
|
-
}
|
|
1762
|
-
100% {
|
|
1763
|
-
opacity: 0;
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
@-webkit-keyframes fadeOut {
|
|
1768
|
-
0% {
|
|
1769
|
-
opacity: 1;
|
|
1770
|
-
}
|
|
1771
|
-
100% {
|
|
1772
|
-
opacity: 0;
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
`, $i = Object.freeze({
|
|
1776
|
-
/* Very small devices (phones, 600px and down) */
|
|
1777
|
-
/* @media only screen and (max-width: 600px) {...} */
|
|
1778
|
-
phones: "only screen and (max-width: 600px)",
|
|
1779
|
-
/* Small devices (portrait tablets and large phones, 600px and up) */
|
|
1780
|
-
/* @media only screen and (min-width: 600px) {...} */
|
|
1781
|
-
portraitTablets: "only screen and (min-width: 600px)",
|
|
1782
|
-
/* Medium devices (landscape tablets, 768px and up) */
|
|
1783
|
-
/* @media only screen and (min-width: 768px) {...} */
|
|
1784
|
-
landscapeTablets: "only screen and (min-width: 768px)",
|
|
1785
|
-
/* Large devices (laptops/desktops, 992px and up) */
|
|
1786
|
-
/* @media only screen and (min-width: 992px) {...} */
|
|
1787
|
-
laptops: "only screen and (min-width: 992px)",
|
|
1788
|
-
/* Extra large devices (large laptops and desktops, 1200px and up) */
|
|
1789
|
-
/* @media only screen and (min-width: 1200px) {...} */
|
|
1790
|
-
desktops: "only screen and (min-width: 1200px)"
|
|
1791
|
-
}), xi = {
|
|
1792
|
-
// Colors
|
|
1793
|
-
fontColorBase: "hsl(0, 0%, 24%)",
|
|
1794
|
-
fontColorLight: "hsl(0, 0%, 62%)",
|
|
1795
|
-
fontColorAccent: "hsl(345, 100%, 47%)",
|
|
1796
|
-
backgroundColorBase: "hsl(0, 0%, 100%)",
|
|
1797
|
-
backgroundColorLight: "hsl(0, 0%, 95%)",
|
|
1798
|
-
backgroundColorTransparent: "hsla(0, 0%, 0%, 0.3)",
|
|
1799
|
-
// Gradients
|
|
1800
|
-
gradientShadow: "linear-gradient(to left, hsl(340deg 100% 16%) 0%, hsl(340deg 100% 32%) 8%, hsl(340deg 100% 32%) 92%, hsl(340deg 100% 16%) 100%)",
|
|
1801
|
-
// Fonts
|
|
1802
|
-
fontFamilyCore: "Arial, Helvetica, sans-serif",
|
|
1803
|
-
fontFamilyMonospace: "'Courier New', Courier, monospace",
|
|
1804
|
-
fontSizeBase: "1.2rem",
|
|
1805
|
-
fontSizeSmall: "0.8rem",
|
|
1806
|
-
fontSizeHeader: "2rem",
|
|
1807
|
-
// Units
|
|
1808
|
-
gapSmall: "0.25rem",
|
|
1809
|
-
gapMedium: "0.6rem",
|
|
1810
|
-
gapBig: "1rem",
|
|
1811
|
-
iconSize: "1.2rem",
|
|
1812
|
-
blockBorderRadius: "0.25rem",
|
|
1813
|
-
// Shadows
|
|
1814
|
-
boxShadow: "hsla(0, 0%, 0%, 0.15) 2.4px 2.4px 3.2px",
|
|
1815
|
-
textShadow: "2.4px 2.4px 3.2px hsla(0, 0%, 0%, 0.3)",
|
|
1816
|
-
// Borders
|
|
1817
|
-
borderBase: "1px solid hsl(0, 0%, 84%)",
|
|
1818
|
-
borderLight: "1px solid hsl(0, 0%, 89%)",
|
|
1819
|
-
borderAccent: "1px solid hsl(345, 100%, 47%)",
|
|
1820
|
-
borderOutline: "1px solid hsl(0, 0%, 24%)",
|
|
1821
|
-
// Z-indexes
|
|
1822
|
-
zIndexBase: "1",
|
|
1823
|
-
zIndexPopup: "100",
|
|
1824
|
-
zIndexModal: "200"
|
|
1825
|
-
}, wi = {
|
|
1826
|
-
// Colors
|
|
1827
|
-
fontColorBase: "hsl(0, 0%, 100%)",
|
|
1828
|
-
fontColorLight: "hsl(0, 0%, 92%)",
|
|
1829
|
-
fontColorAccent: "hsl(16, 82%, 52%)",
|
|
1830
|
-
backgroundColorBase: "hsl(0, 0%, 17%)",
|
|
1831
|
-
backgroundColorLight: "hsl(0, 0%, 24%)",
|
|
1832
|
-
backgroundColorTransparent: "hsla(0, 0%, 92%, 0.3)",
|
|
1833
|
-
// Gradients
|
|
1834
|
-
gradientShadow: "linear-gradient(to left, hsl(16, 86%, 26%) 0%, hsl(16, 86%, 30%) 8%, hsl(16, 86%, 30%) 92%, hsl(16, 86%, 26%) 100%)",
|
|
1835
|
-
// Fonts
|
|
1836
|
-
fontFamilyCore: "Arial, Helvetica, sans-serif",
|
|
1837
|
-
fontFamilyMonospace: "'Courier New', Courier, monospace",
|
|
1838
|
-
fontSizeBase: "1.2rem",
|
|
1839
|
-
fontSizeSmall: "0.8rem",
|
|
1840
|
-
fontSizeHeader: "2rem",
|
|
1841
|
-
// Units
|
|
1842
|
-
gapSmall: "0.25rem",
|
|
1843
|
-
gapMedium: "0.6rem",
|
|
1844
|
-
gapBig: "1rem",
|
|
1845
|
-
iconSize: "1.2rem",
|
|
1846
|
-
blockBorderRadius: "0.25rem",
|
|
1847
|
-
// Shadows
|
|
1848
|
-
boxShadow: "hsla(0, 0%, 92%, 0.15) 2.4px 2.4px 3.2px",
|
|
1849
|
-
textShadow: "2.4px 2.4px 3.2px hsla(0, 0%, 92%, 0.3)",
|
|
1850
|
-
// Borders
|
|
1851
|
-
borderBase: "1px solid hsl(0, 0%, 11%)",
|
|
1852
|
-
borderLight: "1px solid hsl(0, 0%, 29%)",
|
|
1853
|
-
borderAccent: "1px solid hsl(16, 82%, 52%)",
|
|
1854
|
-
borderOutline: "1px solid hsl(0, 0%, 100%)",
|
|
1855
|
-
// Z-indexes
|
|
1856
|
-
zIndexBase: "1",
|
|
1857
|
-
zIndexPopup: "100",
|
|
1858
|
-
zIndexModal: "200"
|
|
1859
|
-
}, Si = k.span`
|
|
1860
|
-
display: ${({ $visible: e }) => e ? "block" : "none"};
|
|
1861
|
-
position: absolute;
|
|
1862
|
-
max-width: 100%;
|
|
1863
|
-
right: 0;
|
|
1864
|
-
top: 72px;
|
|
1865
|
-
opacity: 0.8;
|
|
1866
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
1867
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
1868
|
-
border: ${(e) => e.$theme.borderAccent};
|
|
1869
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
1870
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
1871
|
-
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
1872
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
1873
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
1874
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
1875
|
-
pointer-events: none;
|
|
1876
|
-
|
|
1877
|
-
${qe}
|
|
1878
|
-
`, bn = ({
|
|
1879
|
-
errorId: e,
|
|
1880
|
-
testId: t,
|
|
1881
|
-
message: r = "Invalid input",
|
|
1882
|
-
visible: n = !1,
|
|
1883
|
-
style: o,
|
|
1884
|
-
theme: i
|
|
1885
|
-
}) => /* @__PURE__ */ c.jsx(Si, { id: e, $visible: n, "data-testid": t, style: o, $theme: i, "aria-hidden": !n, children: r });
|
|
1886
|
-
var te = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(te || {}), we = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Flat = "flat", e.Icon = "icon", e))(we || {}), j = /* @__PURE__ */ ((e) => (e.ArrowDown = "arrow-down", e.ArrowUp = "arrow-up", e.Back = "back", e.Cancel = "cancel", e.CheckboxChecked = "checkbox-checked", e.CheckboxUnchecked = "checkbox-unchecked", e.CheckMark = "check-mark", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Clear = "clear", e.Copy = "copy", e.Cut = "cut", e.Delete = "delete", e.Download = "download", e.Error = "error", e.Forward = "forward", e.Graduate = "graduate", e.Help = "help", e.Hide = "hide", e.Home = "home", e.Info = "info", e.Login = "login", e.Paste = "paste", e.Question = "question", e.Save = "save", e.Show = "show", e.Upload = "upload", e.Warning = "warning", e.Remove = "remove", e))(j || {}), ki = /* @__PURE__ */ ((e) => (e.Dots = "dots", e.Brackets = "brackets", e.Linear = "linear", e.Square = "square", e.Circle = "circle", e.Pulse = "pulse", e.Arrow = "arrow", e.Filler = "filler", e.Rotation = "rotation", e))(ki || {}), X = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(X || {}), vn = /* @__PURE__ */ ((e) => (e.Light = "light", e.Dark = "dark", e))(vn || {}), $n = /* @__PURE__ */ ((e) => (e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e))($n || {});
|
|
1887
|
-
const Ci = O(() => Promise.resolve().then(() => ws)), ji = O(() => Promise.resolve().then(() => Ss)), Ei = O(() => import("./BackIcon-B5Gqa4ZM.js")), Ii = O(() => import("./CancelIcon-Dd_V0Dau.js")), Ri = O(() => Promise.resolve().then(() => gs)), _i = O(() => Promise.resolve().then(() => ys)), Ai = O(() => Promise.resolve().then(() => zs)), Pi = O(() => import("./ChevronDownIcon-BAP_RxAA.js")), Ti = O(() => import("./ChevronLeftIcon-DI7EhtBk.js")), Oi = O(() => import("./ChevronRightIcon-DuLbG3su.js")), zi = O(() => import("./ChevronUpIcon-BM-ME1n1.js")), Di = O(() => import("./ClearIcon-CqoSUm3Z.js")), Mi = O(() => import("./CopyIcon-Oejhoi_O.js")), Bi = O(() => import("./CutIcon-tF4nvJEe.js")), Li = O(() => import("./DeleteIcon-Wu8Bb0yj.js")), Fi = O(() => import("./DownloadIcon-88UVXrmf.js")), Ni = O(() => Promise.resolve().then(() => La)), Hi = O(() => import("./ForwardIcon-GwEZl1zz.js")), Wi = O(() => import("./GraduateIcon-vBMEiTF4.js")), Gi = O(() => Promise.resolve().then(() => Fa)), Ui = O(() => import("./HideIcon-D60cTu6E.js")), Yi = O(() => import("./HomeIcon-BLt4IjqM.js")), Vi = O(() => Promise.resolve().then(() => Na)), Ki = O(() => import("./LoginIcon-CL39X1YU.js")), qi = O(() => import("./PasteIcon-CZjp6nkb.js")), Xi = O(() => import("./QuestionIcon-CPcLvEor.js")), Ji = O(() => import("./RemoveIcon-BuRToMfF.js")), Zi = O(() => import("./SaveIcon-oSVVhgZK.js")), Qi = O(() => import("./ShowIcon-DL2TN936.js")), es = O(() => import("./UploadIcon-DcqjxXG_.js")), ts = O(() => Promise.resolve().then(() => Ha)), rs = {
|
|
1888
|
-
[j.ArrowDown]: Ci,
|
|
1889
|
-
[j.ArrowUp]: ji,
|
|
1890
|
-
[j.Back]: Ei,
|
|
1891
|
-
[j.Cancel]: Ii,
|
|
1892
|
-
[j.CheckboxChecked]: Ri,
|
|
1893
|
-
[j.CheckboxUnchecked]: _i,
|
|
1894
|
-
[j.CheckMark]: Ai,
|
|
1895
|
-
[j.ChevronDown]: Pi,
|
|
1896
|
-
[j.ChevronUp]: zi,
|
|
1897
|
-
[j.ChevronLeft]: Ti,
|
|
1898
|
-
[j.ChevronRight]: Oi,
|
|
1899
|
-
[j.Clear]: Di,
|
|
1900
|
-
[j.Copy]: Mi,
|
|
1901
|
-
[j.Cut]: Bi,
|
|
1902
|
-
[j.Delete]: Li,
|
|
1903
|
-
[j.Download]: Fi,
|
|
1904
|
-
[j.Error]: Ni,
|
|
1905
|
-
[j.Forward]: Hi,
|
|
1906
|
-
[j.Graduate]: Wi,
|
|
1907
|
-
[j.Help]: Gi,
|
|
1908
|
-
[j.Hide]: Ui,
|
|
1909
|
-
[j.Home]: Yi,
|
|
1910
|
-
[j.Info]: Vi,
|
|
1911
|
-
[j.Login]: Ki,
|
|
1912
|
-
[j.Paste]: qi,
|
|
1913
|
-
[j.Question]: Xi,
|
|
1914
|
-
[j.Save]: Zi,
|
|
1915
|
-
[j.Show]: Qi,
|
|
1916
|
-
[j.Upload]: es,
|
|
1917
|
-
[j.Warning]: ts,
|
|
1918
|
-
[j.Remove]: Ji
|
|
1919
|
-
}, ue = ({ name: e, testId: t, ...r }) => {
|
|
1920
|
-
if (!e) return null;
|
|
1921
|
-
const n = /* @__PURE__ */ c.jsx("span", { style: { fontSize: "1rem" }, "aria-label": "SVG Icon Fallback", children: "⬜" }), o = rs[e];
|
|
1922
|
-
return /* @__PURE__ */ c.jsx(ao, { fallback: n, children: /* @__PURE__ */ c.jsx(o, { "data-testid": t, ...r }) });
|
|
1923
|
-
}, ns = k.button`
|
|
1924
|
-
background: transparent;
|
|
1925
|
-
border: none;
|
|
1926
|
-
display: flex;
|
|
1927
|
-
align-items: center;
|
|
1928
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
1929
|
-
color: ${(e) => e.$theme.fontColorLight};
|
|
1930
|
-
padding: 0;
|
|
1931
|
-
|
|
1932
|
-
&:focus-visible {
|
|
1933
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
1934
|
-
outline-offset: -1px;
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
&:hover {
|
|
1938
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
svg {
|
|
1942
|
-
cursor: pointer;
|
|
1943
|
-
height: ${(e) => e.$theme.iconSize};
|
|
1944
|
-
width: ${(e) => e.$theme.iconSize};
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
&[disabled] {
|
|
1948
|
-
pointer-events: none;
|
|
1949
|
-
opacity: 0.5;
|
|
1950
|
-
}
|
|
1951
|
-
`, St = ({ onClick: e, label: t, icon: r, disabled: n, theme: o }) => /* @__PURE__ */ c.jsx(ns, { onClick: e, "aria-label": t, type: "button", disabled: n, $theme: o, children: /* @__PURE__ */ c.jsx(ue, { name: r }) }), os = k.label`
|
|
1952
|
-
display: flex;
|
|
1953
|
-
align-items: center;
|
|
1954
|
-
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
1955
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
1956
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
1957
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
1958
|
-
|
|
1959
|
-
&:hover {
|
|
1960
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
& + span {
|
|
1964
|
-
text-wrap: nowrap;
|
|
1965
|
-
overflow: hidden;
|
|
1966
|
-
text-overflow: ellipsis;
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
& abbr {
|
|
1970
|
-
text-decoration: none;
|
|
1971
|
-
cursor: pointer;
|
|
1972
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
1973
|
-
margin-left: ${(e) => e.$theme.gapSmall};
|
|
1974
|
-
}
|
|
1975
|
-
`, Xe = ({
|
|
1976
|
-
label: e,
|
|
1977
|
-
required: t,
|
|
1978
|
-
inputId: r,
|
|
1979
|
-
theme: n,
|
|
1980
|
-
icon: o,
|
|
1981
|
-
iconPosition: i,
|
|
1982
|
-
isTextHidden: a = !1,
|
|
1983
|
-
style: d
|
|
1984
|
-
}) => {
|
|
1985
|
-
const l = !!o && i === "left", f = !!o && i === "right";
|
|
1986
|
-
return /* @__PURE__ */ c.jsxs(os, { htmlFor: r, style: d, $theme: n, children: [
|
|
1987
|
-
l && o,
|
|
1988
|
-
!a && /* @__PURE__ */ c.jsxs("span", { children: [
|
|
1989
|
-
e,
|
|
1990
|
-
t && /* @__PURE__ */ c.jsx("abbr", { title: "required", children: "*" })
|
|
1991
|
-
] }),
|
|
1992
|
-
f && o
|
|
1993
|
-
] });
|
|
1994
|
-
};
|
|
1995
|
-
function is(e) {
|
|
1996
|
-
return ({ tooltip: t, visibleOn: r, ...n }) => t != null && t.length ? /* @__PURE__ */ c.jsx(Zs, { tooltipContent: t, visibleOn: r, children: /* @__PURE__ */ c.jsx(e, { ...n }) }) : /* @__PURE__ */ c.jsx(e, { ...n });
|
|
1997
|
-
}
|
|
1998
|
-
const Te = fe.createContext({}), ss = fe.createContext({
|
|
1999
|
-
mode: vn.Light
|
|
2000
|
-
});
|
|
2001
|
-
function as(e, t) {
|
|
2002
|
-
const r = e === "dark" ? wi : xi;
|
|
2003
|
-
if (t)
|
|
2004
|
-
for (const n in t) {
|
|
2005
|
-
const o = n;
|
|
2006
|
-
Object.prototype.hasOwnProperty.call(r, o) && (r[o] = t[o].toString());
|
|
2007
|
-
}
|
|
2008
|
-
return r;
|
|
2009
|
-
}
|
|
2010
|
-
function it(e) {
|
|
2011
|
-
const t = document.getElementById(e);
|
|
2012
|
-
t && t.focus();
|
|
2013
|
-
}
|
|
2014
|
-
function xn({
|
|
2015
|
-
e,
|
|
2016
|
-
options: t,
|
|
2017
|
-
onClose: r
|
|
2018
|
-
}) {
|
|
2019
|
-
let n = "";
|
|
2020
|
-
t.forEach((i) => {
|
|
2021
|
-
document.getElementById(i.id) === document.activeElement && (n = i.id);
|
|
2022
|
-
});
|
|
2023
|
-
const o = t.findIndex((i) => i.id === n);
|
|
2024
|
-
switch (e.key) {
|
|
2025
|
-
case "Escape":
|
|
2026
|
-
e.preventDefault(), r();
|
|
2027
|
-
break;
|
|
2028
|
-
case "ArrowUp": {
|
|
2029
|
-
e.preventDefault();
|
|
2030
|
-
const i = o - 1 >= 0 ? o - 1 : t.length - 1, a = t[i];
|
|
2031
|
-
a && it(a.id);
|
|
2032
|
-
break;
|
|
2033
|
-
}
|
|
2034
|
-
case "ArrowDown":
|
|
2035
|
-
case "Tab": {
|
|
2036
|
-
e.preventDefault();
|
|
2037
|
-
const i = o === t.length - 1 ? 0 : o + 1, a = t[i];
|
|
2038
|
-
a && it(a.id);
|
|
2039
|
-
break;
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
const Z = () => {
|
|
2044
|
-
const { customTheme: e, mode: t } = ke(ss);
|
|
2045
|
-
return as(t, e);
|
|
2046
|
-
}, At = ({ ref: e, onClickOutsideHandler: t, dependentRef: r }) => {
|
|
2047
|
-
he(() => {
|
|
2048
|
-
const n = (o) => {
|
|
2049
|
-
const i = (e == null ? void 0 : e.current) && !e.current.contains(o.target), a = r != null && r.current ? !r.current.contains(o.target) : !0;
|
|
2050
|
-
i && a && t();
|
|
2051
|
-
};
|
|
2052
|
-
return document.addEventListener("mousedown", n), () => {
|
|
2053
|
-
document.removeEventListener("mousedown", n);
|
|
2054
|
-
};
|
|
2055
|
-
}, [e, r, t]);
|
|
2056
|
-
}, cs = ({ ref: e, isVisible: t }) => {
|
|
2057
|
-
const [r, n] = L({ width: 0, height: 0 });
|
|
2058
|
-
return he(() => {
|
|
2059
|
-
e.current && t && n({
|
|
2060
|
-
width: e.current.offsetWidth,
|
|
2061
|
-
height: e.current.offsetHeight
|
|
2062
|
-
});
|
|
2063
|
-
}, [e, t]), r;
|
|
2064
|
-
};
|
|
2065
|
-
function Ce(e) {
|
|
2066
|
-
const t = co(), r = e ?? t, n = `${r}_error`, o = `${r}_dropdown`;
|
|
2067
|
-
return {
|
|
2068
|
-
elementId: r,
|
|
2069
|
-
errorId: n,
|
|
2070
|
-
dropdownId: o
|
|
2071
|
-
};
|
|
2072
|
-
}
|
|
2073
|
-
const Pt = ({ ref: e, keyCode: t, onKeyPress: r }) => {
|
|
2074
|
-
he(() => {
|
|
2075
|
-
const n = (o) => {
|
|
2076
|
-
(o == null ? void 0 : o.code) === t && (e != null && e.current) && r();
|
|
2077
|
-
};
|
|
2078
|
-
return document.addEventListener("keydown", n, !1), () => {
|
|
2079
|
-
document.removeEventListener("keydown", n, !1);
|
|
2080
|
-
};
|
|
2081
|
-
}, [e, t, r]);
|
|
2082
|
-
}, ls = ({ modalRef: e, isOpened: t }) => {
|
|
2083
|
-
he(() => {
|
|
2084
|
-
const r = e.current;
|
|
2085
|
-
if (!t || !r) return;
|
|
2086
|
-
const n = r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = n[0], i = n[n.length - 1], a = (d) => {
|
|
2087
|
-
d.key === "Tab" && (d.shiftKey && document.activeElement === o ? (d.preventDefault(), i.focus()) : !d.shiftKey && document.activeElement === i && (d.preventDefault(), o.focus()));
|
|
2088
|
-
};
|
|
2089
|
-
return r.addEventListener("keydown", a), () => {
|
|
2090
|
-
r.removeEventListener("keydown", a);
|
|
2091
|
-
};
|
|
2092
|
-
}, [e, t]);
|
|
2093
|
-
}, wn = (e, t = 300) => {
|
|
2094
|
-
const [r, n] = L(!1);
|
|
2095
|
-
return he(() => {
|
|
2096
|
-
e && !r ? n(!0) : !e && r && setTimeout(() => {
|
|
2097
|
-
n(!1);
|
|
2098
|
-
}, t);
|
|
2099
|
-
}, [e]), r;
|
|
2100
|
-
}, at = (e) => {
|
|
2101
|
-
const { resetSignal: t } = ke(Te);
|
|
2102
|
-
he(() => {
|
|
2103
|
-
t && e();
|
|
2104
|
-
}, [t, e]);
|
|
2105
|
-
};
|
|
2106
|
-
function Wr() {
|
|
2107
|
-
const { innerWidth: e, innerHeight: t } = window;
|
|
2108
|
-
return { width: e, height: t };
|
|
2109
|
-
}
|
|
2110
|
-
function ds() {
|
|
2111
|
-
const [e, t] = L(Wr());
|
|
2112
|
-
return he(() => {
|
|
2113
|
-
function r() {
|
|
2114
|
-
t(Wr());
|
|
2115
|
-
}
|
|
2116
|
-
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
2117
|
-
}, []), e;
|
|
2118
|
-
}
|
|
2119
|
-
const us = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
2120
|
-
const [o, i] = L({ top: 0, left: 0 }), { width: a, height: d } = cs({ ref: t, isVisible: r }), { width: l, height: f } = ds();
|
|
2121
|
-
return he(() => {
|
|
2122
|
-
if (r && e.current) {
|
|
2123
|
-
const u = e.current.getBoundingClientRect();
|
|
2124
|
-
let h = Math.round(u.bottom + n), g = Math.round(u.left);
|
|
2125
|
-
h + d > window.innerHeight && (h = Math.round(u.top - d - n)), g + a > window.innerWidth && (g = Math.round(window.innerWidth - a - n)), g < 0 && (g = n), i({ top: h, left: g });
|
|
2126
|
-
}
|
|
2127
|
-
}, [r, e, d, a, n, l, f]), o;
|
|
2128
|
-
}, fs = k.button`
|
|
2129
|
-
position: relative;
|
|
2130
|
-
border: none;
|
|
2131
|
-
background: transparent;
|
|
2132
|
-
padding: 0;
|
|
2133
|
-
cursor: pointer;
|
|
2134
|
-
outline: none;
|
|
2135
|
-
transition: filter 250ms;
|
|
2136
|
-
width: ${(e) => e.$extended ? "100%" : "inherit"};
|
|
2137
|
-
|
|
2138
|
-
&[disabled] {
|
|
2139
|
-
pointer-events: none;
|
|
2140
|
-
opacity: 0.5;
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
.chop-logic-button_shadow {
|
|
2144
|
-
position: absolute;
|
|
2145
|
-
top: 0;
|
|
2146
|
-
left: 0;
|
|
2147
|
-
width: 100%;
|
|
2148
|
-
height: 100%;
|
|
2149
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2150
|
-
background: hsl(0deg 0% 0% / 0.25);
|
|
2151
|
-
will-change: transform;
|
|
2152
|
-
transform: translateY(2px);
|
|
2153
|
-
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
.chop-logic-button_edge {
|
|
2157
|
-
position: absolute;
|
|
2158
|
-
top: 0;
|
|
2159
|
-
left: 0;
|
|
2160
|
-
width: 100%;
|
|
2161
|
-
height: 100%;
|
|
2162
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2163
|
-
background: ${(e) => e.$theme.gradientShadow};
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
.chop-logic-button_front {
|
|
2167
|
-
display: flex;
|
|
2168
|
-
align-items: center;
|
|
2169
|
-
justify-content: center;
|
|
2170
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
2171
|
-
position: relative;
|
|
2172
|
-
padding: ${(e) => `${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
2173
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2174
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2175
|
-
color: #ffffff;
|
|
2176
|
-
background: ${(e) => e.$theme.fontColorAccent};
|
|
2177
|
-
will-change: transform;
|
|
2178
|
-
transform: translateY(-4px);
|
|
2179
|
-
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
&:hover {
|
|
2183
|
-
filter: brightness(110%);
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
&:hover .chop-logic-button_front {
|
|
2187
|
-
transform: translateY(-6px);
|
|
2188
|
-
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
&:active .chop-logic-button_front {
|
|
2192
|
-
transform: translateY(-2px);
|
|
2193
|
-
transition: transform 34ms;
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
&:hover .chop-logic-button_shadow {
|
|
2197
|
-
transform: translateY(4px);
|
|
2198
|
-
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
&:active .chop-logic-button_shadow {
|
|
2202
|
-
transform: translateY(1px);
|
|
2203
|
-
transition: transform 34ms;
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
&:focus-visible {
|
|
2207
|
-
outline: revert;
|
|
2208
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2209
|
-
outline-offset: 4px;
|
|
2210
|
-
}
|
|
2211
|
-
`, hs = k.button`
|
|
2212
|
-
border: none;
|
|
2213
|
-
cursor: pointer;
|
|
2214
|
-
display: flex;
|
|
2215
|
-
align-items: center;
|
|
2216
|
-
justify-content: center;
|
|
2217
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
2218
|
-
padding: ${(e) => `${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
2219
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2220
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2221
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2222
|
-
background: transparent;
|
|
2223
|
-
width: ${(e) => e.$extended ? "100%" : "inherit"};
|
|
2224
|
-
|
|
2225
|
-
&:hover,
|
|
2226
|
-
&:active {
|
|
2227
|
-
background: ${(e) => e.$theme.backgroundColorLight};
|
|
2228
|
-
transition: all 0.3s ease 0s;
|
|
2229
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
&:focus-visible {
|
|
2233
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
|
-
&[disabled] {
|
|
2237
|
-
pointer-events: none;
|
|
2238
|
-
opacity: 0.5;
|
|
2239
|
-
}
|
|
2240
|
-
`, ps = k.button`
|
|
2241
|
-
border: none;
|
|
2242
|
-
cursor: pointer;
|
|
2243
|
-
display: flex;
|
|
2244
|
-
align-items: center;
|
|
2245
|
-
justify-content: center;
|
|
2246
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2247
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2248
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2249
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2250
|
-
background: transparent;
|
|
2251
|
-
|
|
2252
|
-
&:hover {
|
|
2253
|
-
background-color: ${(e) => e.$theme.backgroundColorLight};
|
|
2254
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2255
|
-
transition: all 0.3s ease 0s;
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
&:focus-visible {
|
|
2259
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
&[disabled] {
|
|
2263
|
-
pointer-events: none;
|
|
2264
|
-
opacity: 0.5;
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
svg {
|
|
2268
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2269
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2270
|
-
}
|
|
2271
|
-
`, ms = ({
|
|
2272
|
-
onClick: e,
|
|
2273
|
-
text: t,
|
|
2274
|
-
icon: r,
|
|
2275
|
-
label: n,
|
|
2276
|
-
disabled: o = !1,
|
|
2277
|
-
extended: i = !1,
|
|
2278
|
-
type: a = "button",
|
|
2279
|
-
view: d = we.Primary,
|
|
2280
|
-
...l
|
|
2281
|
-
}) => {
|
|
2282
|
-
const f = Z();
|
|
2283
|
-
switch (d) {
|
|
2284
|
-
case we.Primary:
|
|
2285
|
-
return /* @__PURE__ */ c.jsxs(
|
|
2286
|
-
fs,
|
|
2287
|
-
{
|
|
2288
|
-
$extended: i,
|
|
2289
|
-
"aria-label": n,
|
|
2290
|
-
type: a,
|
|
2291
|
-
onClick: e,
|
|
2292
|
-
disabled: o,
|
|
2293
|
-
$theme: f,
|
|
2294
|
-
...l,
|
|
2295
|
-
children: [
|
|
2296
|
-
/* @__PURE__ */ c.jsx("span", { className: "chop-logic-button_shadow" }),
|
|
2297
|
-
/* @__PURE__ */ c.jsx("span", { className: "chop-logic-button_edge" }),
|
|
2298
|
-
/* @__PURE__ */ c.jsxs("span", { className: "chop-logic-button_front", children: [
|
|
2299
|
-
/* @__PURE__ */ c.jsx(ue, { name: r }),
|
|
2300
|
-
t
|
|
2301
|
-
] })
|
|
2302
|
-
]
|
|
2303
|
-
}
|
|
2304
|
-
);
|
|
2305
|
-
case we.Flat:
|
|
2306
|
-
return /* @__PURE__ */ c.jsxs(
|
|
2307
|
-
hs,
|
|
2308
|
-
{
|
|
2309
|
-
$extended: i,
|
|
2310
|
-
"aria-label": n,
|
|
2311
|
-
type: a,
|
|
2312
|
-
onClick: e,
|
|
2313
|
-
disabled: o,
|
|
2314
|
-
$theme: f,
|
|
2315
|
-
...l,
|
|
2316
|
-
children: [
|
|
2317
|
-
/* @__PURE__ */ c.jsx(ue, { name: r }),
|
|
2318
|
-
t
|
|
2319
|
-
]
|
|
2320
|
-
}
|
|
2321
|
-
);
|
|
2322
|
-
case we.Icon:
|
|
2323
|
-
return /* @__PURE__ */ c.jsx(ps, { "aria-label": n, type: a, onClick: e, disabled: o, $theme: f, ...l, children: /* @__PURE__ */ c.jsx(ue, { name: r }) });
|
|
2324
|
-
default:
|
|
2325
|
-
return null;
|
|
2326
|
-
}
|
|
2327
|
-
}, kt = is(ms);
|
|
2328
|
-
function Tt(e) {
|
|
2329
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
2330
|
-
/* @__PURE__ */ c.jsx("title", { children: "Checkbox Checked" }),
|
|
2331
|
-
/* @__PURE__ */ c.jsx(
|
|
2332
|
-
"path",
|
|
2333
|
-
{
|
|
2334
|
-
fill: "currentColor",
|
|
2335
|
-
d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z"
|
|
2336
|
-
}
|
|
2337
|
-
)
|
|
2338
|
-
] });
|
|
2339
|
-
}
|
|
2340
|
-
const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2341
|
-
__proto__: null,
|
|
2342
|
-
default: Tt
|
|
2343
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2344
|
-
function Ot(e) {
|
|
2345
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
2346
|
-
/* @__PURE__ */ c.jsx("title", { children: "Checkbox Unchecked" }),
|
|
2347
|
-
/* @__PURE__ */ c.jsx("path", { fill: "currentColor", d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z" })
|
|
2348
|
-
] });
|
|
2349
|
-
}
|
|
2350
|
-
const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2351
|
-
__proto__: null,
|
|
2352
|
-
default: Ot
|
|
2353
|
-
}, Symbol.toStringTag, { value: "Module" })), bs = k.div`
|
|
2354
|
-
display: flex;
|
|
2355
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2356
|
-
padding: ${(e) => e.$theme.gapMedium} 0;
|
|
2357
|
-
position: relative;
|
|
2358
|
-
overflow: hidden;
|
|
2359
|
-
|
|
2360
|
-
& svg {
|
|
2361
|
-
color: ${(e) => e.$checked ? e.$theme.fontColorAccent : e.$theme.fontColorLight};
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
& label {
|
|
2365
|
-
cursor: pointer;
|
|
2366
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2367
|
-
font-size: ${(e) => e.$theme.fontSizeBase} !important;
|
|
2368
|
-
&:hover,
|
|
2369
|
-
&:active {
|
|
2370
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
2371
|
-
}
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
${(e) => e.$disabled && `
|
|
2375
|
-
pointer-events: none;
|
|
2376
|
-
opacity: 0.5;
|
|
2377
|
-
`}
|
|
2378
|
-
|
|
2379
|
-
& input {
|
|
2380
|
-
position: absolute;
|
|
2381
|
-
z-index: -1;
|
|
2382
|
-
opacity: 0;
|
|
2383
|
-
top: 4px;
|
|
2384
|
-
left: 0;
|
|
2385
|
-
margin: 0;
|
|
2386
|
-
|
|
2387
|
-
&:focus-visible + label {
|
|
2388
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2389
|
-
outline-offset: 2px;
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
`;
|
|
2393
|
-
function vs({
|
|
2394
|
-
defaultChecked: e,
|
|
2395
|
-
initialValues: t,
|
|
2396
|
-
name: r
|
|
2397
|
-
}) {
|
|
2398
|
-
return t && (t == null ? void 0 : t[r]) !== void 0 ? !!(t != null && t[r]) : !!e;
|
|
2399
|
-
}
|
|
2400
|
-
function $s({
|
|
2401
|
-
name: e,
|
|
2402
|
-
defaultChecked: t,
|
|
2403
|
-
onChange: r
|
|
2404
|
-
}) {
|
|
2405
|
-
const { onChangeFormInput: n, initialValues: o } = ke(Te), i = vs({ initialValues: o, name: e, defaultChecked: t }), [a, d] = L(i), l = (u) => {
|
|
2406
|
-
const h = u.target.checked;
|
|
2407
|
-
d(h), r == null || r(u), n == null || n({ name: e, value: h });
|
|
2408
|
-
}, f = st(() => {
|
|
2409
|
-
d(i), n == null || n({ name: e, value: i });
|
|
2410
|
-
}, [e]);
|
|
2411
|
-
return at(f), {
|
|
2412
|
-
handleChange: l,
|
|
2413
|
-
checked: a
|
|
2414
|
-
};
|
|
2415
|
-
}
|
|
2416
|
-
const Ka = ({
|
|
2417
|
-
name: e,
|
|
2418
|
-
label: t,
|
|
2419
|
-
disabled: r,
|
|
2420
|
-
noLabel: n,
|
|
2421
|
-
required: o = !1,
|
|
2422
|
-
iconPosition: i = "left",
|
|
2423
|
-
defaultChecked: a,
|
|
2424
|
-
onChange: d,
|
|
2425
|
-
id: l,
|
|
2426
|
-
...f
|
|
2427
|
-
}) => {
|
|
2428
|
-
const { handleChange: u, checked: h } = $s({ name: e, defaultChecked: a, onChange: d }), { elementId: g } = Ce(l), m = Z();
|
|
2429
|
-
return /* @__PURE__ */ c.jsxs(bs, { $disabled: !!r, $theme: m, $checked: h, ...f, children: [
|
|
2430
|
-
/* @__PURE__ */ c.jsx(
|
|
2431
|
-
"input",
|
|
2432
|
-
{
|
|
2433
|
-
id: g,
|
|
2434
|
-
name: e,
|
|
2435
|
-
type: "checkbox",
|
|
2436
|
-
disabled: r,
|
|
2437
|
-
required: o,
|
|
2438
|
-
checked: h,
|
|
2439
|
-
onChange: u,
|
|
2440
|
-
"aria-label": n ? t : void 0
|
|
2441
|
-
}
|
|
2442
|
-
),
|
|
2443
|
-
/* @__PURE__ */ c.jsx(
|
|
2444
|
-
Xe,
|
|
2445
|
-
{
|
|
2446
|
-
label: t,
|
|
2447
|
-
required: o,
|
|
2448
|
-
inputId: g,
|
|
2449
|
-
isTextHidden: n,
|
|
2450
|
-
icon: h ? /* @__PURE__ */ c.jsx(Tt, {}) : /* @__PURE__ */ c.jsx(Ot, {}),
|
|
2451
|
-
iconPosition: i,
|
|
2452
|
-
theme: m
|
|
2453
|
-
}
|
|
2454
|
-
)
|
|
2455
|
-
] });
|
|
2456
|
-
}, Sn = k.div`
|
|
2457
|
-
position: relative;
|
|
2458
|
-
display: flex;
|
|
2459
|
-
justify-content: space-between;
|
|
2460
|
-
flex-direction: column;
|
|
2461
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2462
|
-
background: transparent;
|
|
2463
|
-
`, kn = k.button`
|
|
2464
|
-
text-align: left;
|
|
2465
|
-
cursor: pointer;
|
|
2466
|
-
display: flex;
|
|
2467
|
-
justify-content: space-between;
|
|
2468
|
-
align-items: center;
|
|
2469
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2470
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2471
|
-
border: ${(e) => e.$theme.borderLight};
|
|
2472
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2473
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
2474
|
-
white-space: nowrap;
|
|
2475
|
-
text-overflow: ellipsis;
|
|
2476
|
-
overflow: hidden;
|
|
2477
|
-
|
|
2478
|
-
& > span:nth-child(1) {
|
|
2479
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2480
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2481
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2482
|
-
overflow: hidden;
|
|
2483
|
-
text-overflow: ellipsis;
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
svg {
|
|
2487
|
-
cursor: pointer;
|
|
2488
|
-
color: ${(e) => e.$theme.fontColorLight};
|
|
2489
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2490
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2491
|
-
|
|
2492
|
-
&:hover {
|
|
2493
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
&:focus-visible {
|
|
2498
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2499
|
-
outline-offset: 2px;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
&[disabled] {
|
|
2503
|
-
pointer-events: none;
|
|
2504
|
-
opacity: 0.5;
|
|
2505
|
-
}
|
|
2506
|
-
`, Cn = k.ul`
|
|
2507
|
-
visibility: hidden;
|
|
2508
|
-
opacity: 0;
|
|
2509
|
-
transition:
|
|
2510
|
-
visibility 0s,
|
|
2511
|
-
opacity 0.3s linear;
|
|
2512
|
-
position: absolute;
|
|
2513
|
-
background: ${(e) => e.$theme.backgroundColorBase};
|
|
2514
|
-
margin: 0;
|
|
2515
|
-
padding: 0;
|
|
2516
|
-
list-style: none;
|
|
2517
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
2518
|
-
width: 100%;
|
|
2519
|
-
top: 72px;
|
|
2520
|
-
left: -1px;
|
|
2521
|
-
border: ${(e) => e.$theme.borderLight};
|
|
2522
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2523
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
2524
|
-
overflow-y: auto;
|
|
2525
|
-
max-height: 180px;
|
|
2526
|
-
|
|
2527
|
-
${(e) => e.$opened && "visibility: visible; opacity: 1;"}
|
|
2528
|
-
`, jn = k.li`
|
|
2529
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2530
|
-
cursor: pointer;
|
|
2531
|
-
display: flex;
|
|
2532
|
-
justify-content: space-between;
|
|
2533
|
-
align-items: center;
|
|
2534
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2535
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2536
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2537
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2538
|
-
|
|
2539
|
-
&:hover,
|
|
2540
|
-
&:active {
|
|
2541
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
&:focus-visible {
|
|
2545
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2546
|
-
outline-offset: -4px;
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
svg {
|
|
2550
|
-
color: ${(e) => e.$selected ? e.$theme.fontColorAccent : e.$theme.fontColorLight};
|
|
2551
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2552
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2553
|
-
}
|
|
2554
|
-
`, xs = k(jn)`
|
|
2555
|
-
justify-content: flex-start;
|
|
2556
|
-
`;
|
|
2557
|
-
function ir(e) {
|
|
2558
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
2559
|
-
/* @__PURE__ */ c.jsx("title", { children: "Arrow Down" }),
|
|
2560
|
-
/* @__PURE__ */ c.jsx("path", { d: "M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z" })
|
|
2561
|
-
] });
|
|
2562
|
-
}
|
|
2563
|
-
const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2564
|
-
__proto__: null,
|
|
2565
|
-
default: ir
|
|
2566
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2567
|
-
function sr(e) {
|
|
2568
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
2569
|
-
/* @__PURE__ */ c.jsx("title", { children: "Arrow Up" }),
|
|
2570
|
-
/* @__PURE__ */ c.jsx("path", { d: "M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z" })
|
|
2571
|
-
] });
|
|
2572
|
-
}
|
|
2573
|
-
const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2574
|
-
__proto__: null,
|
|
2575
|
-
default: sr
|
|
2576
|
-
}, Symbol.toStringTag, { value: "Module" })), ks = ({
|
|
2577
|
-
opened: e,
|
|
2578
|
-
onClick: t,
|
|
2579
|
-
comboboxId: r,
|
|
2580
|
-
dropdownId: n,
|
|
2581
|
-
name: o,
|
|
2582
|
-
placeholder: i,
|
|
2583
|
-
disabled: a,
|
|
2584
|
-
required: d,
|
|
2585
|
-
values: l,
|
|
2586
|
-
theme: f
|
|
2587
|
-
}) => {
|
|
2588
|
-
const u = l == null ? void 0 : l.filter((m) => m.selected).map((m) => m.label), h = l == null ? void 0 : l.filter((m) => m.selected).map((m) => m.id);
|
|
2589
|
-
let g = /* @__PURE__ */ c.jsx("span", { children: i });
|
|
2590
|
-
return u && u.length > 1 ? g = /* @__PURE__ */ c.jsx("span", { children: `${u.length} items selected` }) : u && u.length === 1 && (g = /* @__PURE__ */ c.jsx("span", { children: u[0] })), /* @__PURE__ */ c.jsxs(
|
|
2591
|
-
kn,
|
|
2592
|
-
{
|
|
2593
|
-
type: "button",
|
|
2594
|
-
name: o,
|
|
2595
|
-
value: h,
|
|
2596
|
-
role: "combobox",
|
|
2597
|
-
"aria-haspopup": "listbox",
|
|
2598
|
-
"aria-expanded": e,
|
|
2599
|
-
"aria-controls": n,
|
|
2600
|
-
id: r,
|
|
2601
|
-
onClick: t,
|
|
2602
|
-
disabled: a,
|
|
2603
|
-
"aria-required": d,
|
|
2604
|
-
$theme: f,
|
|
2605
|
-
children: [
|
|
2606
|
-
g,
|
|
2607
|
-
e ? /* @__PURE__ */ c.jsx(sr, {}) : /* @__PURE__ */ c.jsx(ir, {})
|
|
2608
|
-
]
|
|
2609
|
-
}
|
|
2610
|
-
);
|
|
2611
|
-
}, Cs = ({ value: e, onSelect: t, theme: r }) => {
|
|
2612
|
-
const { id: n, label: o, selected: i } = e, a = (d) => (l) => {
|
|
2613
|
-
switch (l.key) {
|
|
2614
|
-
case " ":
|
|
2615
|
-
case "SpaceBar":
|
|
2616
|
-
case "Enter":
|
|
2617
|
-
l.preventDefault(), t(d);
|
|
2618
|
-
break;
|
|
2619
|
-
}
|
|
2620
|
-
};
|
|
2621
|
-
return /* @__PURE__ */ c.jsxs(
|
|
2622
|
-
xs,
|
|
2623
|
-
{
|
|
2624
|
-
id: n,
|
|
2625
|
-
role: "option",
|
|
2626
|
-
"aria-selected": i,
|
|
2627
|
-
tabIndex: 0,
|
|
2628
|
-
onKeyDown: a(n),
|
|
2629
|
-
onClick: () => t(n),
|
|
2630
|
-
$theme: r,
|
|
2631
|
-
$selected: i,
|
|
2632
|
-
children: [
|
|
2633
|
-
i ? /* @__PURE__ */ c.jsx(Tt, {}) : /* @__PURE__ */ c.jsx(Ot, {}),
|
|
2634
|
-
/* @__PURE__ */ c.jsx("span", { children: o })
|
|
2635
|
-
]
|
|
2636
|
-
}
|
|
2637
|
-
);
|
|
2638
|
-
}, js = ({ options: e, opened: t, onClose: r, onSelect: n, dropdownId: o, theme: i }) => /* @__PURE__ */ c.jsx(
|
|
2639
|
-
Cn,
|
|
2640
|
-
{
|
|
2641
|
-
$opened: t,
|
|
2642
|
-
role: "listbox",
|
|
2643
|
-
id: o,
|
|
2644
|
-
tabIndex: -1,
|
|
2645
|
-
onKeyDown: (a) => xn({ e: a, options: e, onClose: r }),
|
|
2646
|
-
$theme: i,
|
|
2647
|
-
children: e.map((a) => /* @__PURE__ */ c.jsx(Cs, { value: a, onSelect: () => n(a.id), theme: i }, a.id))
|
|
2648
|
-
}
|
|
2649
|
-
);
|
|
2650
|
-
function Es({
|
|
2651
|
-
name: e,
|
|
2652
|
-
options: t,
|
|
2653
|
-
initialValues: r,
|
|
2654
|
-
defaultValue: n
|
|
2655
|
-
}) {
|
|
2656
|
-
return t.map((o) => {
|
|
2657
|
-
let i = !1;
|
|
2658
|
-
return r && (r != null && r[e]) && Array.isArray(r[e]) && r[e].find((d) => d === o.id || (d == null ? void 0 : d.id) === o.id) && (i = !0), !(r != null && r[e]) && Array.isArray(n) && n.find((d) => d === o.id) && (i = !0), { ...o, selected: i };
|
|
2659
|
-
});
|
|
2660
|
-
}
|
|
2661
|
-
const Gr = (e) => e.filter((t) => t.selected).map((t) => t.id), Is = (e, t) => {
|
|
2662
|
-
const r = e.find((n) => n.id === t);
|
|
2663
|
-
return e.map((n) => n.id === t ? { ...n, selected: !(r != null && r.selected) } : n);
|
|
2664
|
-
};
|
|
2665
|
-
function Rs({
|
|
2666
|
-
name: e,
|
|
2667
|
-
defaultValue: t,
|
|
2668
|
-
onChange: r,
|
|
2669
|
-
options: n
|
|
2670
|
-
}) {
|
|
2671
|
-
const [o, i] = L(!1), { onChangeFormInput: a, initialValues: d } = ke(Te), l = Es({ name: e, options: n, initialValues: d, defaultValue: t }), [f, u] = L(l), h = () => i(!1), g = () => i(!o), m = ($) => {
|
|
2672
|
-
const C = Is(f, $);
|
|
2673
|
-
u(C), r == null || r(C), a == null || a({ name: e, value: Gr(C) });
|
|
2674
|
-
}, y = st(() => {
|
|
2675
|
-
i(!1), u(l), a == null || a({ name: e, value: Gr(l) });
|
|
2676
|
-
}, [e]);
|
|
2677
|
-
return at(y), {
|
|
2678
|
-
handleClose: h,
|
|
2679
|
-
handleToggle: g,
|
|
2680
|
-
handleSelect: m,
|
|
2681
|
-
opened: o,
|
|
2682
|
-
values: f
|
|
2683
|
-
};
|
|
2684
|
-
}
|
|
2685
|
-
const qa = ({
|
|
2686
|
-
options: e,
|
|
2687
|
-
name: t,
|
|
2688
|
-
label: r,
|
|
2689
|
-
required: n = !1,
|
|
2690
|
-
placeholder: o = "Not selected",
|
|
2691
|
-
disabled: i = !1,
|
|
2692
|
-
onChange: a,
|
|
2693
|
-
defaultValue: d,
|
|
2694
|
-
id: l,
|
|
2695
|
-
...f
|
|
2696
|
-
}) => {
|
|
2697
|
-
const u = Se(null), { elementId: h, dropdownId: g } = Ce(l), m = Z(), { handleClose: y, handleSelect: $, handleToggle: C, opened: w, values: v } = Rs({
|
|
2698
|
-
name: t,
|
|
2699
|
-
options: e,
|
|
2700
|
-
defaultValue: d,
|
|
2701
|
-
onChange: a
|
|
2702
|
-
});
|
|
2703
|
-
return At({ ref: u, onClickOutsideHandler: y }), Pt({ keyCode: "Escape", ref: u, onKeyPress: y }), /* @__PURE__ */ c.jsxs(Sn, { ref: u, $theme: m, ...f, children: [
|
|
2704
|
-
/* @__PURE__ */ c.jsx(Xe, { label: r, required: n, inputId: h, theme: m }),
|
|
2705
|
-
/* @__PURE__ */ c.jsx(
|
|
2706
|
-
ks,
|
|
2707
|
-
{
|
|
2708
|
-
name: t,
|
|
2709
|
-
opened: w,
|
|
2710
|
-
comboboxId: h,
|
|
2711
|
-
dropdownId: g,
|
|
2712
|
-
onClick: C,
|
|
2713
|
-
values: v,
|
|
2714
|
-
placeholder: o,
|
|
2715
|
-
disabled: i,
|
|
2716
|
-
required: n,
|
|
2717
|
-
theme: m
|
|
2718
|
-
}
|
|
2719
|
-
),
|
|
2720
|
-
/* @__PURE__ */ c.jsx(
|
|
2721
|
-
js,
|
|
2722
|
-
{
|
|
2723
|
-
theme: m,
|
|
2724
|
-
options: v,
|
|
2725
|
-
opened: w,
|
|
2726
|
-
onClose: y,
|
|
2727
|
-
dropdownId: g,
|
|
2728
|
-
onSelect: $
|
|
2729
|
-
}
|
|
2730
|
-
)
|
|
2731
|
-
] });
|
|
2732
|
-
};
|
|
2733
|
-
function _s({
|
|
2734
|
-
name: e,
|
|
2735
|
-
initialValues: t,
|
|
2736
|
-
defaultValue: r
|
|
2737
|
-
}) {
|
|
2738
|
-
return t && t[e] ? Number(t[e]) : r && typeof r == "number" ? r : 0;
|
|
2739
|
-
}
|
|
2740
|
-
function As({
|
|
2741
|
-
value: e,
|
|
2742
|
-
required: t,
|
|
2743
|
-
validator: r,
|
|
2744
|
-
maxValue: n,
|
|
2745
|
-
minValue: o
|
|
2746
|
-
}) {
|
|
2747
|
-
return t && !r && e === void 0 ? !1 : r && typeof r == "function" ? r(e) : n && o && e && !r ? e <= n && e >= o : !0;
|
|
2748
|
-
}
|
|
2749
|
-
function Ps({
|
|
2750
|
-
name: e,
|
|
2751
|
-
defaultValue: t,
|
|
2752
|
-
onChange: r,
|
|
2753
|
-
onSpinButtonClick: n,
|
|
2754
|
-
min: o,
|
|
2755
|
-
max: i,
|
|
2756
|
-
step: a,
|
|
2757
|
-
required: d,
|
|
2758
|
-
validator: l
|
|
2759
|
-
}) {
|
|
2760
|
-
const { onChangeFormInput: f, initialValues: u } = ke(Te), h = _s({ initialValues: u, defaultValue: t, name: e }), g = i ? Number(i) : Number.MAX_SAFE_INTEGER, m = o ? Number(o) : Number.MIN_SAFE_INTEGER, [y, $] = L(h), [C, w] = L(!0), v = (x) => {
|
|
2761
|
-
$(x);
|
|
2762
|
-
const W = As({ value: x, required: d, validator: l, maxValue: g, minValue: m });
|
|
2763
|
-
w(W), f == null || f({ name: e, value: x, valid: W });
|
|
2764
|
-
}, E = (x) => {
|
|
2765
|
-
const W = Number(x.target.value);
|
|
2766
|
-
v(W), r == null || r(x);
|
|
2767
|
-
}, A = () => {
|
|
2768
|
-
v(y + a), n == null || n(y + a);
|
|
2769
|
-
}, _ = () => {
|
|
2770
|
-
v(y - a), n == null || n(y - a);
|
|
2771
|
-
}, I = st(() => {
|
|
2772
|
-
$(h), w(!0), f == null || f({ name: e, value: h, valid: !0 });
|
|
2773
|
-
}, [e]);
|
|
2774
|
-
return at(I), {
|
|
2775
|
-
handleChange: E,
|
|
2776
|
-
value: y,
|
|
2777
|
-
valid: C,
|
|
2778
|
-
minValue: m,
|
|
2779
|
-
maxValue: g,
|
|
2780
|
-
increment: A,
|
|
2781
|
-
decrement: _
|
|
2782
|
-
};
|
|
2783
|
-
}
|
|
2784
|
-
const Ts = k.div`
|
|
2785
|
-
display: flex;
|
|
2786
|
-
flex-direction: column;
|
|
2787
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2788
|
-
position: relative;
|
|
2789
|
-
|
|
2790
|
-
& > div:nth-child(2) {
|
|
2791
|
-
display: flex;
|
|
2792
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2793
|
-
align-items: center;
|
|
2794
|
-
border: ${(e) => e.$theme.borderLight};
|
|
2795
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2796
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2797
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
2798
|
-
|
|
2799
|
-
&:has(input:focus) {
|
|
2800
|
-
border: ${(e) => e.$theme.borderOutline};
|
|
2801
|
-
}
|
|
2802
|
-
|
|
2803
|
-
&:has(input[aria-invalid='true']) {
|
|
2804
|
-
border: ${(e) => e.$theme.borderAccent};
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2807
|
-
&:has(input[disabled]) {
|
|
2808
|
-
pointer-events: none;
|
|
2809
|
-
opacity: 0.5;
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
& > span:nth-child(2) {
|
|
2813
|
-
display: flex;
|
|
2814
|
-
align-items: center;
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
|
|
2818
|
-
& input {
|
|
2819
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2820
|
-
padding: 0;
|
|
2821
|
-
border: none;
|
|
2822
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2823
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2824
|
-
display: inline-block;
|
|
2825
|
-
background: transparent;
|
|
2826
|
-
white-space: nowrap;
|
|
2827
|
-
text-overflow: ellipsis;
|
|
2828
|
-
overflow: hidden;
|
|
2829
|
-
flex-grow: 1;
|
|
2830
|
-
min-width: 0;
|
|
2831
|
-
|
|
2832
|
-
&:focus-visible {
|
|
2833
|
-
outline: none;
|
|
2834
|
-
}
|
|
2835
|
-
|
|
2836
|
-
&::-webkit-outer-spin-button,
|
|
2837
|
-
&::-webkit-inner-spin-button {
|
|
2838
|
-
-webkit-appearance: none;
|
|
2839
|
-
margin: 0;
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
&[type='number'] {
|
|
2843
|
-
-moz-appearance: textfield;
|
|
2844
|
-
}
|
|
2845
|
-
}
|
|
2846
|
-
`, Xa = ({
|
|
2847
|
-
name: e,
|
|
2848
|
-
label: t,
|
|
2849
|
-
errorMessage: r,
|
|
2850
|
-
onChange: n,
|
|
2851
|
-
onBlur: o,
|
|
2852
|
-
onFocus: i,
|
|
2853
|
-
onSpinButtonClick: a,
|
|
2854
|
-
validator: d,
|
|
2855
|
-
min: l,
|
|
2856
|
-
max: f,
|
|
2857
|
-
id: u,
|
|
2858
|
-
tabIndex: h,
|
|
2859
|
-
disabled: g = !1,
|
|
2860
|
-
required: m = !1,
|
|
2861
|
-
readOnly: y = !1,
|
|
2862
|
-
hasSpinButtons: $ = !0,
|
|
2863
|
-
defaultValue: C = 0,
|
|
2864
|
-
step: w = 1,
|
|
2865
|
-
...v
|
|
2866
|
-
}) => {
|
|
2867
|
-
const { elementId: E, errorId: A } = Ce(u), _ = Z(), { value: I, valid: x, handleChange: W, increment: J, decrement: pe, minValue: me, maxValue: ge } = Ps({
|
|
2868
|
-
name: e,
|
|
2869
|
-
defaultValue: C,
|
|
2870
|
-
min: l,
|
|
2871
|
-
max: f,
|
|
2872
|
-
onChange: n,
|
|
2873
|
-
required: m,
|
|
2874
|
-
validator: d,
|
|
2875
|
-
step: w,
|
|
2876
|
-
onSpinButtonClick: a
|
|
2877
|
-
});
|
|
2878
|
-
return /* @__PURE__ */ c.jsxs(Ts, { $theme: _, ...v, children: [
|
|
2879
|
-
/* @__PURE__ */ c.jsx(Xe, { label: t, required: m, inputId: E, theme: _ }),
|
|
2880
|
-
/* @__PURE__ */ c.jsxs("div", { children: [
|
|
2881
|
-
/* @__PURE__ */ c.jsx(
|
|
2882
|
-
"input",
|
|
2883
|
-
{
|
|
2884
|
-
id: E,
|
|
2885
|
-
name: e,
|
|
2886
|
-
type: "number",
|
|
2887
|
-
disabled: g,
|
|
2888
|
-
required: m,
|
|
2889
|
-
readOnly: y,
|
|
2890
|
-
placeholder: "0",
|
|
2891
|
-
"aria-invalid": !x,
|
|
2892
|
-
"aria-errormessage": A,
|
|
2893
|
-
value: I.toString(),
|
|
2894
|
-
onChange: W,
|
|
2895
|
-
min: me,
|
|
2896
|
-
max: ge,
|
|
2897
|
-
step: w,
|
|
2898
|
-
onBlur: o,
|
|
2899
|
-
onFocus: i,
|
|
2900
|
-
tabIndex: h
|
|
2901
|
-
}
|
|
2902
|
-
),
|
|
2903
|
-
$ && /* @__PURE__ */ c.jsxs("span", { children: [
|
|
2904
|
-
/* @__PURE__ */ c.jsx(
|
|
2905
|
-
St,
|
|
2906
|
-
{
|
|
2907
|
-
onClick: pe,
|
|
2908
|
-
label: `Decrement value for ${t}`,
|
|
2909
|
-
icon: j.ChevronLeft,
|
|
2910
|
-
disabled: g,
|
|
2911
|
-
theme: _
|
|
2912
|
-
}
|
|
2913
|
-
),
|
|
2914
|
-
/* @__PURE__ */ c.jsx(
|
|
2915
|
-
St,
|
|
2916
|
-
{
|
|
2917
|
-
onClick: J,
|
|
2918
|
-
label: `Increment value for ${t}`,
|
|
2919
|
-
icon: j.ChevronRight,
|
|
2920
|
-
disabled: g,
|
|
2921
|
-
theme: _
|
|
2922
|
-
}
|
|
2923
|
-
)
|
|
2924
|
-
] })
|
|
2925
|
-
] }),
|
|
2926
|
-
/* @__PURE__ */ c.jsx(bn, { errorId: A, message: r, visible: !x, theme: _ })
|
|
2927
|
-
] });
|
|
2928
|
-
}, Os = ({
|
|
2929
|
-
opened: e,
|
|
2930
|
-
onClick: t,
|
|
2931
|
-
comboboxId: r,
|
|
2932
|
-
dropdownId: n,
|
|
2933
|
-
selected: o,
|
|
2934
|
-
name: i,
|
|
2935
|
-
placeholder: a,
|
|
2936
|
-
disabled: d,
|
|
2937
|
-
required: l,
|
|
2938
|
-
theme: f
|
|
2939
|
-
}) => /* @__PURE__ */ c.jsxs(
|
|
2940
|
-
kn,
|
|
2941
|
-
{
|
|
2942
|
-
type: "button",
|
|
2943
|
-
name: i,
|
|
2944
|
-
value: o == null ? void 0 : o.id,
|
|
2945
|
-
role: "combobox",
|
|
2946
|
-
"aria-haspopup": "listbox",
|
|
2947
|
-
"aria-expanded": e,
|
|
2948
|
-
"aria-controls": n,
|
|
2949
|
-
id: r,
|
|
2950
|
-
onClick: t,
|
|
2951
|
-
disabled: d,
|
|
2952
|
-
"aria-required": l,
|
|
2953
|
-
$theme: f,
|
|
2954
|
-
children: [
|
|
2955
|
-
o != null && o.label ? /* @__PURE__ */ c.jsx("span", { children: o == null ? void 0 : o.label }) : /* @__PURE__ */ c.jsx("span", { children: a }),
|
|
2956
|
-
e ? /* @__PURE__ */ c.jsx(sr, {}) : /* @__PURE__ */ c.jsx(ir, {})
|
|
2957
|
-
]
|
|
2958
|
-
}
|
|
2959
|
-
);
|
|
2960
|
-
function ar(e) {
|
|
2961
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
2962
|
-
/* @__PURE__ */ c.jsx("title", { children: "Check Mark" }),
|
|
2963
|
-
/* @__PURE__ */ c.jsx("path", { d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z" })
|
|
2964
|
-
] });
|
|
2965
|
-
}
|
|
2966
|
-
const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2967
|
-
__proto__: null,
|
|
2968
|
-
default: ar
|
|
2969
|
-
}, Symbol.toStringTag, { value: "Module" })), Ds = ({ value: e, selected: t, onSelect: r, onClear: n, theme: o }) => {
|
|
2970
|
-
const { id: i, label: a } = e, d = (f) => {
|
|
2971
|
-
t ? n() : r(f);
|
|
2972
|
-
}, l = (f) => (u) => {
|
|
2973
|
-
switch (u.key) {
|
|
2974
|
-
case " ":
|
|
2975
|
-
case "SpaceBar":
|
|
2976
|
-
case "Enter":
|
|
2977
|
-
u.preventDefault(), d(f);
|
|
2978
|
-
break;
|
|
2979
|
-
}
|
|
2980
|
-
};
|
|
2981
|
-
return /* @__PURE__ */ c.jsxs(
|
|
2982
|
-
jn,
|
|
2983
|
-
{
|
|
2984
|
-
id: i,
|
|
2985
|
-
role: "option",
|
|
2986
|
-
"aria-selected": t,
|
|
2987
|
-
tabIndex: 0,
|
|
2988
|
-
onKeyDown: l(i),
|
|
2989
|
-
onClick: () => d(i),
|
|
2990
|
-
$theme: o,
|
|
2991
|
-
$selected: t,
|
|
2992
|
-
children: [
|
|
2993
|
-
/* @__PURE__ */ c.jsx("span", { children: a }),
|
|
2994
|
-
t && /* @__PURE__ */ c.jsx(ar, {})
|
|
2995
|
-
]
|
|
2996
|
-
}
|
|
2997
|
-
);
|
|
2998
|
-
}, Ms = ({
|
|
2999
|
-
options: e,
|
|
3000
|
-
opened: t,
|
|
3001
|
-
onClose: r,
|
|
3002
|
-
onSelect: n,
|
|
3003
|
-
dropdownId: o,
|
|
3004
|
-
comboboxId: i,
|
|
3005
|
-
selected: a,
|
|
3006
|
-
onClear: d,
|
|
3007
|
-
theme: l
|
|
3008
|
-
}) => {
|
|
3009
|
-
const f = (u) => {
|
|
3010
|
-
n(u), r(), it(i);
|
|
3011
|
-
};
|
|
3012
|
-
return /* @__PURE__ */ c.jsx(
|
|
3013
|
-
Cn,
|
|
3014
|
-
{
|
|
3015
|
-
role: "listbox",
|
|
3016
|
-
id: o,
|
|
3017
|
-
tabIndex: -1,
|
|
3018
|
-
onKeyDown: (u) => xn({ e: u, options: e, onClose: r }),
|
|
3019
|
-
$opened: t,
|
|
3020
|
-
$theme: l,
|
|
3021
|
-
children: e.map((u) => /* @__PURE__ */ c.jsx(
|
|
3022
|
-
Ds,
|
|
3023
|
-
{
|
|
3024
|
-
value: u,
|
|
3025
|
-
onSelect: () => f(u.id),
|
|
3026
|
-
onClear: d,
|
|
3027
|
-
selected: u.id === (a == null ? void 0 : a.id),
|
|
3028
|
-
theme: l
|
|
3029
|
-
},
|
|
3030
|
-
u.id
|
|
3031
|
-
))
|
|
3032
|
-
}
|
|
3033
|
-
);
|
|
3034
|
-
};
|
|
3035
|
-
function Bs({
|
|
3036
|
-
name: e,
|
|
3037
|
-
options: t,
|
|
3038
|
-
initialValues: r,
|
|
3039
|
-
defaultValue: n
|
|
3040
|
-
}) {
|
|
3041
|
-
var i;
|
|
3042
|
-
let o;
|
|
3043
|
-
return r && r[e] && (o = ((i = r[e]) == null ? void 0 : i.id) ?? r[e]), !(r != null && r[e]) && n && typeof n == "string" && (o = n), t.find((a) => a.id === o);
|
|
3044
|
-
}
|
|
3045
|
-
function Ls({
|
|
3046
|
-
name: e,
|
|
3047
|
-
defaultValue: t,
|
|
3048
|
-
onChange: r,
|
|
3049
|
-
options: n
|
|
3050
|
-
}) {
|
|
3051
|
-
const { onChangeFormInput: o, initialValues: i } = ke(Te), a = Bs({ name: e, options: n, defaultValue: t, initialValues: i }), [d, l] = L(!1), [f, u] = L(a), h = () => l(!1), g = () => l(!d), m = (C) => {
|
|
3052
|
-
const w = n.find((v) => v.id === C);
|
|
3053
|
-
u(w), r == null || r(w), o == null || o({ name: e, value: w == null ? void 0 : w.id });
|
|
3054
|
-
}, y = () => {
|
|
3055
|
-
u(void 0), r == null || r(void 0);
|
|
3056
|
-
}, $ = st(() => {
|
|
3057
|
-
l(!1), u(a), o == null || o({ name: e, value: a == null ? void 0 : a.id });
|
|
3058
|
-
}, [e]);
|
|
3059
|
-
return at($), {
|
|
3060
|
-
selected: f,
|
|
3061
|
-
opened: d,
|
|
3062
|
-
handleClear: y,
|
|
3063
|
-
handleClose: h,
|
|
3064
|
-
handleToggle: g,
|
|
3065
|
-
handleSelect: m
|
|
3066
|
-
};
|
|
3067
|
-
}
|
|
3068
|
-
const Ja = ({
|
|
3069
|
-
options: e,
|
|
3070
|
-
onChange: t,
|
|
3071
|
-
name: r,
|
|
3072
|
-
label: n,
|
|
3073
|
-
defaultValue: o,
|
|
3074
|
-
id: i,
|
|
3075
|
-
placeholder: a = "Not selected",
|
|
3076
|
-
required: d = !1,
|
|
3077
|
-
disabled: l = !1,
|
|
3078
|
-
...f
|
|
3079
|
-
}) => {
|
|
3080
|
-
const u = Se(null), h = Z(), { elementId: g, dropdownId: m } = Ce(i), { handleClear: y, handleClose: $, handleSelect: C, handleToggle: w, selected: v, opened: E } = Ls({
|
|
3081
|
-
options: e,
|
|
3082
|
-
onChange: t,
|
|
3083
|
-
defaultValue: o,
|
|
3084
|
-
name: r
|
|
3085
|
-
});
|
|
3086
|
-
return At({ ref: u, onClickOutsideHandler: $ }), Pt({ keyCode: "Escape", ref: u, onKeyPress: $ }), /* @__PURE__ */ c.jsxs(Sn, { ref: u, $theme: h, ...f, children: [
|
|
3087
|
-
/* @__PURE__ */ c.jsx(Xe, { label: n, required: d, inputId: g, theme: h }),
|
|
3088
|
-
/* @__PURE__ */ c.jsx(
|
|
3089
|
-
Os,
|
|
3090
|
-
{
|
|
3091
|
-
name: r,
|
|
3092
|
-
opened: E,
|
|
3093
|
-
comboboxId: g,
|
|
3094
|
-
dropdownId: m,
|
|
3095
|
-
onClick: w,
|
|
3096
|
-
selected: v,
|
|
3097
|
-
placeholder: a,
|
|
3098
|
-
disabled: l,
|
|
3099
|
-
required: d,
|
|
3100
|
-
theme: h
|
|
3101
|
-
}
|
|
3102
|
-
),
|
|
3103
|
-
/* @__PURE__ */ c.jsx(
|
|
3104
|
-
Ms,
|
|
3105
|
-
{
|
|
3106
|
-
options: e,
|
|
3107
|
-
selected: v,
|
|
3108
|
-
opened: E,
|
|
3109
|
-
onClose: $,
|
|
3110
|
-
dropdownId: m,
|
|
3111
|
-
comboboxId: g,
|
|
3112
|
-
onSelect: C,
|
|
3113
|
-
onClear: y,
|
|
3114
|
-
theme: h
|
|
3115
|
-
}
|
|
3116
|
-
)
|
|
3117
|
-
] });
|
|
3118
|
-
};
|
|
3119
|
-
function Fs({
|
|
3120
|
-
value: e,
|
|
3121
|
-
required: t,
|
|
3122
|
-
validator: r
|
|
3123
|
-
}) {
|
|
3124
|
-
return t && !r && !e.length ? !1 : r && typeof r == "function" ? r(e) : r && typeof r == "object" ? new RegExp(r.regexp, r == null ? void 0 : r.flags).test(e) : !0;
|
|
3125
|
-
}
|
|
3126
|
-
function Ns({
|
|
3127
|
-
name: e,
|
|
3128
|
-
initialValues: t,
|
|
3129
|
-
defaultValue: r
|
|
3130
|
-
}) {
|
|
3131
|
-
return t && (t != null && t[e]) ? t[e].toString() : r && typeof r == "string" ? r : "";
|
|
3132
|
-
}
|
|
3133
|
-
function Hs({
|
|
3134
|
-
name: e,
|
|
3135
|
-
defaultValue: t,
|
|
3136
|
-
onChange: r,
|
|
3137
|
-
onClear: n,
|
|
3138
|
-
required: o,
|
|
3139
|
-
validator: i
|
|
3140
|
-
}) {
|
|
3141
|
-
const { onChangeFormInput: a, initialValues: d } = ke(Te), l = Ns({ initialValues: d, defaultValue: t, name: e }), [f, u] = L(l), [h, g] = L(!0), [m, y] = L(!1), $ = (E) => {
|
|
3142
|
-
const A = E.target.value, _ = Fs({ value: A, required: o, validator: i });
|
|
3143
|
-
u(A), g(_), a == null || a({ name: e, value: A, valid: _ }), r == null || r(E);
|
|
3144
|
-
}, C = () => {
|
|
3145
|
-
u(""), g(!0), a == null || a({ name: e, value: "", valid: !0 }), n == null || n();
|
|
3146
|
-
}, w = st(() => {
|
|
3147
|
-
u(l), g(!0), a == null || a({ name: e, value: l, valid: !0 });
|
|
3148
|
-
}, [e]), v = () => {
|
|
3149
|
-
y(!m);
|
|
3150
|
-
};
|
|
3151
|
-
return at(w), {
|
|
3152
|
-
value: f,
|
|
3153
|
-
valid: h,
|
|
3154
|
-
passwordShown: m,
|
|
3155
|
-
handleChange: $,
|
|
3156
|
-
handleClear: C,
|
|
3157
|
-
togglePassword: v
|
|
3158
|
-
};
|
|
3159
|
-
}
|
|
3160
|
-
const Ws = k.div`
|
|
3161
|
-
display: flex;
|
|
3162
|
-
flex-direction: column;
|
|
3163
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3164
|
-
position: relative;
|
|
3165
|
-
|
|
3166
|
-
& > div:nth-child(2) {
|
|
3167
|
-
display: flex;
|
|
3168
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3169
|
-
align-items: center;
|
|
3170
|
-
border: ${(e) => e.$theme.borderLight};
|
|
3171
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3172
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3173
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3174
|
-
|
|
3175
|
-
&:has(input:focus) {
|
|
3176
|
-
border: ${(e) => e.$theme.borderOutline};
|
|
3177
|
-
}
|
|
3178
|
-
|
|
3179
|
-
&:has(input[aria-invalid='true']) {
|
|
3180
|
-
border: ${(e) => e.$theme.borderAccent};
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
|
-
&:has(input[disabled]) {
|
|
3184
|
-
pointer-events: none;
|
|
3185
|
-
opacity: 0.5;
|
|
3186
|
-
}
|
|
3187
|
-
|
|
3188
|
-
& > span:nth-child(2) {
|
|
3189
|
-
display: flex;
|
|
3190
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3191
|
-
align-items: center;
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
& input {
|
|
3196
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3197
|
-
padding: 0;
|
|
3198
|
-
border: none;
|
|
3199
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3200
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3201
|
-
display: inline-block;
|
|
3202
|
-
background: transparent;
|
|
3203
|
-
white-space: nowrap;
|
|
3204
|
-
text-overflow: ellipsis;
|
|
3205
|
-
overflow: hidden;
|
|
3206
|
-
flex-grow: 1;
|
|
3207
|
-
min-width: 0;
|
|
3208
|
-
|
|
3209
|
-
&:focus-visible {
|
|
3210
|
-
outline: none;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
&:placeholder-shown + span {
|
|
3214
|
-
display: none !important;
|
|
3215
|
-
}
|
|
3216
|
-
}
|
|
3217
|
-
`, Za = ({
|
|
3218
|
-
name: e,
|
|
3219
|
-
label: t,
|
|
3220
|
-
errorMessage: r,
|
|
3221
|
-
defaultValue: n,
|
|
3222
|
-
onChange: o,
|
|
3223
|
-
onBlur: i,
|
|
3224
|
-
onFocus: a,
|
|
3225
|
-
onClear: d,
|
|
3226
|
-
validator: l,
|
|
3227
|
-
maxLength: f,
|
|
3228
|
-
id: u,
|
|
3229
|
-
tabIndex: h,
|
|
3230
|
-
placeholder: g = "Type here...",
|
|
3231
|
-
disabled: m = !1,
|
|
3232
|
-
required: y = !1,
|
|
3233
|
-
clearable: $ = !0,
|
|
3234
|
-
readOnly: C = !1,
|
|
3235
|
-
autoComplete: w = "off",
|
|
3236
|
-
type: v = "text",
|
|
3237
|
-
...E
|
|
3238
|
-
}) => {
|
|
3239
|
-
const { value: A, valid: _, handleChange: I, handleClear: x, passwordShown: W, togglePassword: J } = Hs({
|
|
3240
|
-
defaultValue: n,
|
|
3241
|
-
name: e,
|
|
3242
|
-
onChange: o,
|
|
3243
|
-
onClear: d,
|
|
3244
|
-
required: y,
|
|
3245
|
-
validator: l
|
|
3246
|
-
}), { elementId: pe, errorId: me } = Ce(u), ge = v === "password", G = Z();
|
|
3247
|
-
return /* @__PURE__ */ c.jsxs(Ws, { $theme: G, ...E, children: [
|
|
3248
|
-
/* @__PURE__ */ c.jsx(Xe, { label: t, required: y, inputId: pe, theme: G }),
|
|
3249
|
-
/* @__PURE__ */ c.jsxs("div", { children: [
|
|
3250
|
-
/* @__PURE__ */ c.jsx(
|
|
3251
|
-
"input",
|
|
3252
|
-
{
|
|
3253
|
-
id: pe,
|
|
3254
|
-
name: e,
|
|
3255
|
-
type: W ? "text" : v,
|
|
3256
|
-
disabled: m,
|
|
3257
|
-
placeholder: g,
|
|
3258
|
-
required: y,
|
|
3259
|
-
readOnly: C,
|
|
3260
|
-
autoComplete: w,
|
|
3261
|
-
"aria-invalid": !_,
|
|
3262
|
-
"aria-errormessage": me,
|
|
3263
|
-
"aria-readonly": C,
|
|
3264
|
-
value: A,
|
|
3265
|
-
onChange: I,
|
|
3266
|
-
maxLength: f,
|
|
3267
|
-
onBlur: i,
|
|
3268
|
-
onFocus: a,
|
|
3269
|
-
tabIndex: h
|
|
3270
|
-
}
|
|
3271
|
-
),
|
|
3272
|
-
/* @__PURE__ */ c.jsxs("span", { children: [
|
|
3273
|
-
$ && /* @__PURE__ */ c.jsx(
|
|
3274
|
-
St,
|
|
3275
|
-
{
|
|
3276
|
-
onClick: x,
|
|
3277
|
-
label: `Clear input for ${t}`,
|
|
3278
|
-
icon: j.Remove,
|
|
3279
|
-
disabled: m,
|
|
3280
|
-
theme: G
|
|
3281
|
-
}
|
|
3282
|
-
),
|
|
3283
|
-
ge && /* @__PURE__ */ c.jsx(
|
|
3284
|
-
St,
|
|
3285
|
-
{
|
|
3286
|
-
onClick: J,
|
|
3287
|
-
label: "Toggle password visibility",
|
|
3288
|
-
icon: W ? j.Hide : j.Show,
|
|
3289
|
-
disabled: m,
|
|
3290
|
-
theme: G
|
|
3291
|
-
}
|
|
3292
|
-
)
|
|
3293
|
-
] })
|
|
3294
|
-
] }),
|
|
3295
|
-
/* @__PURE__ */ c.jsx(bn, { errorId: me, message: r, visible: !_, theme: G })
|
|
3296
|
-
] });
|
|
3297
|
-
}, Gs = k.div`
|
|
3298
|
-
z-index: ${(e) => e.$theme.zIndexModal};
|
|
3299
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3300
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3301
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3302
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3303
|
-
width: 100%;
|
|
3304
|
-
height: 90%;
|
|
3305
|
-
position: absolute;
|
|
3306
|
-
bottom: 0;
|
|
3307
|
-
left: 0;
|
|
3308
|
-
border-top-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3309
|
-
border-top-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3310
|
-
${qe}
|
|
3311
|
-
|
|
3312
|
-
@media ${$i.landscapeTablets} {
|
|
3313
|
-
width: fit-content;
|
|
3314
|
-
height: fit-content;
|
|
3315
|
-
position: relative;
|
|
3316
|
-
min-width: 40%;
|
|
3317
|
-
max-width: 90%;
|
|
3318
|
-
max-height: 90%;
|
|
3319
|
-
border-bottom-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3320
|
-
border-bottom-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3321
|
-
|
|
3322
|
-
header {
|
|
3323
|
-
font-size: ${(e) => e.$theme.fontSizeHeader};
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
`, Us = k.div`
|
|
3327
|
-
position: fixed;
|
|
3328
|
-
top: 0;
|
|
3329
|
-
left: 0;
|
|
3330
|
-
width: 100%;
|
|
3331
|
-
height: 100%;
|
|
3332
|
-
z-index: inherit;
|
|
3333
|
-
display: flex;
|
|
3334
|
-
justify-content: center;
|
|
3335
|
-
align-items: center;
|
|
3336
|
-
background-color: ${(e) => e.$theme.backgroundColorTransparent};
|
|
3337
|
-
${qe}
|
|
3338
|
-
|
|
3339
|
-
${(e) => e.$isClosing && yn}
|
|
3340
|
-
`, Ys = k.header`
|
|
3341
|
-
font-size: 1.6rem;
|
|
3342
|
-
font-weight: bold;
|
|
3343
|
-
display: flex;
|
|
3344
|
-
justify-content: space-between;
|
|
3345
|
-
align-items: center;
|
|
3346
|
-
gap: ${(e) => e.$theme.gapBig};
|
|
3347
|
-
padding: ${(e) => e.$theme.gapBig};
|
|
3348
|
-
border-bottom: ${(e) => e.$theme.borderBase};
|
|
3349
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3350
|
-
`, Vs = k.div`
|
|
3351
|
-
padding: ${(e) => e.$theme.gapBig};
|
|
3352
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3353
|
-
`, Ks = ({ title: e, onClose: t, theme: r }) => /* @__PURE__ */ c.jsxs(Ys, { $theme: r, children: [
|
|
3354
|
-
e,
|
|
3355
|
-
/* @__PURE__ */ c.jsx(kt, { icon: j.Cancel, view: we.Icon, label: "Close modal window", onClick: t })
|
|
3356
|
-
] }), qs = ({ title: e, onClose: t, isOpened: r, children: n, theme: o, ...i }) => {
|
|
3357
|
-
const a = Se(null);
|
|
3358
|
-
return ls({ modalRef: a, isOpened: r }), Pt({ keyCode: "Escape", ref: a, onKeyPress: t }), /* @__PURE__ */ c.jsxs(Gs, { ref: a, role: "dialog", "aria-modal": "true", $theme: o, ...i, children: [
|
|
3359
|
-
/* @__PURE__ */ c.jsx(Ks, { title: e, onClose: t, theme: o }),
|
|
3360
|
-
/* @__PURE__ */ c.jsx(Vs, { $theme: o, children: n })
|
|
3361
|
-
] });
|
|
3362
|
-
}, Qa = ({ isOpened: e, onClose: t, title: r, children: n, ...o }) => {
|
|
3363
|
-
const i = wn(e), a = i && !e, d = Z();
|
|
3364
|
-
return i ? /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(Us, { $isClosing: a, $theme: d, children: /* @__PURE__ */ c.jsx(qs, { title: r, onClose: t, isOpened: e, ...o, theme: d, children: n }) }) }) : null;
|
|
3365
|
-
}, Xs = ({ id: e }) => {
|
|
3366
|
-
const [t, r] = L(!1), n = Se(null), o = Se(null), { top: i, left: a } = us({ wrapperRef: n, tooltipRef: o, isOpened: t }), { elementId: d } = Ce(e), l = () => r(!1), f = () => r(!0), u = () => r(!t), h = (g) => {
|
|
3367
|
-
g.preventDefault(), u();
|
|
3368
|
-
};
|
|
3369
|
-
return Pt({ keyCode: "Escape", ref: o, onKeyPress: l }), At({ ref: o, onClickOutsideHandler: l, dependentRef: n }), {
|
|
3370
|
-
elementId: d,
|
|
3371
|
-
openTooltip: f,
|
|
3372
|
-
closeTooltip: l,
|
|
3373
|
-
toggleTooltip: u,
|
|
3374
|
-
handleContextMenu: h,
|
|
3375
|
-
top: i,
|
|
3376
|
-
left: a,
|
|
3377
|
-
isOpened: t,
|
|
3378
|
-
wrapperRef: n,
|
|
3379
|
-
tooltipRef: o
|
|
3380
|
-
};
|
|
3381
|
-
}, Js = k.div`
|
|
3382
|
-
position: absolute;
|
|
3383
|
-
left: 0;
|
|
3384
|
-
top: 0;
|
|
3385
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
3386
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3387
|
-
border: ${(e) => e.$theme.borderLight};
|
|
3388
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3389
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3390
|
-
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
3391
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3392
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3393
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3394
|
-
pointer-events: none;
|
|
3395
|
-
white-space: nowrap;
|
|
3396
|
-
|
|
3397
|
-
${qe}
|
|
3398
|
-
`, Zs = ({
|
|
3399
|
-
children: e,
|
|
3400
|
-
tooltipContent: t,
|
|
3401
|
-
containerTag: r = $n.Span,
|
|
3402
|
-
visibleOn: n = "hover",
|
|
3403
|
-
id: o,
|
|
3404
|
-
style: i,
|
|
3405
|
-
...a
|
|
3406
|
-
}) => {
|
|
3407
|
-
const d = r, l = Z(), { openTooltip: f, closeTooltip: u, toggleTooltip: h, handleContextMenu: g, elementId: m, top: y, left: $, isOpened: C, wrapperRef: w, tooltipRef: v } = Xs({ id: o });
|
|
3408
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3409
|
-
d,
|
|
3410
|
-
{
|
|
3411
|
-
style: { position: "relative", cursor: "pointer" },
|
|
3412
|
-
onClick: n === "click" ? h : void 0,
|
|
3413
|
-
onMouseOver: n === "hover" ? f : void 0,
|
|
3414
|
-
onMouseLeave: n === "hover" ? u : void 0,
|
|
3415
|
-
onFocus: n === "focus" ? f : void 0,
|
|
3416
|
-
onBlur: n === "focus" ? u : void 0,
|
|
3417
|
-
onContextMenu: n === "contextmenu" ? (E) => g(E) : void 0,
|
|
3418
|
-
tabIndex: 0,
|
|
3419
|
-
ref: w,
|
|
3420
|
-
"aria-describedby": m,
|
|
3421
|
-
children: [
|
|
3422
|
-
e,
|
|
3423
|
-
C && /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(Js, { style: { ...i, top: y, left: $ }, ref: v, role: "tooltip", id: m, $theme: l, ...a, children: t }) })
|
|
3424
|
-
]
|
|
3425
|
-
}
|
|
3426
|
-
);
|
|
3427
|
-
};
|
|
3428
|
-
function Qs(e) {
|
|
3429
|
-
return e ? Object.keys(e).map((t) => [t, !0]) : [];
|
|
3430
|
-
}
|
|
3431
|
-
function ea(e, t) {
|
|
3432
|
-
return (t == null ? void 0 : t.valid) === void 0 ? e : e.map((r) => r[0] !== t.name ? r : [r[0], !!(t != null && t.valid)]);
|
|
3433
|
-
}
|
|
3434
|
-
function ta(e) {
|
|
3435
|
-
return e.every((t) => t[1]);
|
|
3436
|
-
}
|
|
3437
|
-
function ra({
|
|
3438
|
-
initialValues: e,
|
|
3439
|
-
onReset: t,
|
|
3440
|
-
onSubmit: r,
|
|
3441
|
-
onClickSubmit: n
|
|
3442
|
-
}) {
|
|
3443
|
-
const [o, i] = L(e), [a, d] = L(Qs(e)), [l, f] = L(0);
|
|
3444
|
-
return {
|
|
3445
|
-
handleInputChange: (m) => {
|
|
3446
|
-
const y = { ...o, [m.name]: m.value };
|
|
3447
|
-
i(y), d(ea(a, m));
|
|
3448
|
-
},
|
|
3449
|
-
handleSubmit: (m) => {
|
|
3450
|
-
m.preventDefault();
|
|
3451
|
-
const $ = { ...Object.fromEntries(new FormData(m.target)), ...o };
|
|
3452
|
-
r == null || r(m), n == null || n($);
|
|
3453
|
-
},
|
|
3454
|
-
handleReset: (m) => {
|
|
3455
|
-
t == null || t(m), i(e), f(l + 1);
|
|
3456
|
-
},
|
|
3457
|
-
resetSignal: l,
|
|
3458
|
-
valid: ta(a)
|
|
3459
|
-
};
|
|
3460
|
-
}
|
|
3461
|
-
const na = k.form`
|
|
3462
|
-
display: grid;
|
|
3463
|
-
align-items: end;
|
|
3464
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3465
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3466
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3467
|
-
|
|
3468
|
-
${({ $columns: e }) => `
|
|
3469
|
-
grid-template-columns: repeat(${e}, 1fr);
|
|
3470
|
-
grid-template-rows: auto;
|
|
3471
|
-
`}
|
|
3472
|
-
`, oa = k.div`
|
|
3473
|
-
display: flex;
|
|
3474
|
-
align-items: center;
|
|
3475
|
-
justify-content: space-between;
|
|
3476
|
-
padding-top: 1rem;
|
|
3477
|
-
|
|
3478
|
-
${({ $columns: e }) => `
|
|
3479
|
-
grid-column: 1 / ${e + 1};
|
|
3480
|
-
`}
|
|
3481
|
-
`, ec = ({
|
|
3482
|
-
children: e,
|
|
3483
|
-
initialValues: t,
|
|
3484
|
-
onReset: r,
|
|
3485
|
-
onSubmit: n,
|
|
3486
|
-
onClickSubmit: o,
|
|
3487
|
-
columns: i = 1,
|
|
3488
|
-
hasReset: a = !0,
|
|
3489
|
-
...d
|
|
3490
|
-
}) => {
|
|
3491
|
-
const { handleInputChange: l, handleSubmit: f, handleReset: u, resetSignal: h, valid: g } = ra({
|
|
3492
|
-
initialValues: t,
|
|
3493
|
-
onReset: r,
|
|
3494
|
-
onSubmit: n,
|
|
3495
|
-
onClickSubmit: o
|
|
3496
|
-
}), m = Z();
|
|
3497
|
-
return /* @__PURE__ */ c.jsx(na, { onSubmit: f, onReset: u, $columns: i, $theme: m, ...d, children: /* @__PURE__ */ c.jsxs(Te.Provider, { value: { onChangeFormInput: l, initialValues: t, resetSignal: h }, children: [
|
|
3498
|
-
e,
|
|
3499
|
-
/* @__PURE__ */ c.jsxs(oa, { $columns: i, children: [
|
|
3500
|
-
a && /* @__PURE__ */ c.jsx(kt, { type: "reset", text: "Reset", icon: j.Clear, view: we.Flat }),
|
|
3501
|
-
/* @__PURE__ */ c.jsx(kt, { type: "submit", text: "Submit", icon: j.Forward, extended: !a, disabled: !g })
|
|
3502
|
-
] })
|
|
3503
|
-
] }) });
|
|
3504
|
-
}, ia = k.table`
|
|
3505
|
-
border-collapse: collapse;
|
|
3506
|
-
`, sa = k.thead`
|
|
3507
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3508
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3509
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3510
|
-
`, aa = k.tbody`
|
|
3511
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3512
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3513
|
-
`, En = k.th`
|
|
3514
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3515
|
-
text-align: left;
|
|
3516
|
-
`, ca = k.tr`
|
|
3517
|
-
font-weight: bold;
|
|
3518
|
-
border-top: ${(e) => e.$theme.borderLight};
|
|
3519
|
-
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3520
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3521
|
-
`, In = k.td`
|
|
3522
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3523
|
-
`, la = k.caption`
|
|
3524
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3525
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3526
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3527
|
-
font-weight: bold;
|
|
3528
|
-
`, da = k.tr`
|
|
3529
|
-
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3530
|
-
|
|
3531
|
-
${(e) => e.$selected && `
|
|
3532
|
-
background-color: ${e.$theme.backgroundColorLight};
|
|
3533
|
-
`}
|
|
3534
|
-
`, Ur = k.col`
|
|
3535
|
-
border-right: ${(e) => e.$theme.borderLight};
|
|
3536
|
-
|
|
3537
|
-
${(e) => e.$isFirst && `border-left: ${e.$theme.borderLight};`}
|
|
3538
|
-
${(e) => e.$highlighted && `background-color: ${e.$theme.backgroundColorLight};`}
|
|
3539
|
-
`, ua = k.div`
|
|
3540
|
-
display: flex;
|
|
3541
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3542
|
-
padding: ${(e) => e.$theme.gapSmall} 0;
|
|
3543
|
-
position: relative;
|
|
3544
|
-
overflow: hidden;
|
|
3545
|
-
|
|
3546
|
-
svg {
|
|
3547
|
-
color: ${(e) => e.$checked ? e.$theme.fontColorBase : e.$theme.fontColorLight};
|
|
3548
|
-
}
|
|
3549
|
-
|
|
3550
|
-
label {
|
|
3551
|
-
cursor: pointer;
|
|
3552
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3553
|
-
font-size: ${(e) => e.$theme.fontSizeBase} !important;
|
|
3554
|
-
&:hover,
|
|
3555
|
-
&:active {
|
|
3556
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
3557
|
-
}
|
|
3558
|
-
}
|
|
3559
|
-
|
|
3560
|
-
${(e) => e.$disabled && `
|
|
3561
|
-
pointer-events: none;
|
|
3562
|
-
opacity: 0.5;
|
|
3563
|
-
`}
|
|
3564
|
-
`, fa = k.input`
|
|
3565
|
-
position: absolute;
|
|
3566
|
-
z-index: -1;
|
|
3567
|
-
opacity: 0;
|
|
3568
|
-
top: 4px;
|
|
3569
|
-
left: 0;
|
|
3570
|
-
margin: 0;
|
|
3571
|
-
|
|
3572
|
-
&:focus-visible + label {
|
|
3573
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
3574
|
-
outline-offset: 2px;
|
|
3575
|
-
}
|
|
3576
|
-
`;
|
|
3577
|
-
function ha({
|
|
3578
|
-
item: e,
|
|
3579
|
-
columns: t,
|
|
3580
|
-
renderDataItem: r
|
|
3581
|
-
}) {
|
|
3582
|
-
const n = [];
|
|
3583
|
-
for (const o of t) {
|
|
3584
|
-
let i;
|
|
3585
|
-
r && e[o.field] ? i = r(e, o.field) : e[o.field] ? i = e[o.field].toString() : i = "", n.push(i);
|
|
3586
|
-
}
|
|
3587
|
-
return n;
|
|
3588
|
-
}
|
|
3589
|
-
const pa = ({ value: e, theme: t }) => /* @__PURE__ */ c.jsx(In, { $theme: t, children: e }), Rn = ({
|
|
3590
|
-
name: e,
|
|
3591
|
-
label: t,
|
|
3592
|
-
disabled: r,
|
|
3593
|
-
required: n = !1,
|
|
3594
|
-
onChange: o,
|
|
3595
|
-
checked: i = !1,
|
|
3596
|
-
theme: a,
|
|
3597
|
-
...d
|
|
3598
|
-
}) => {
|
|
3599
|
-
const { elementId: l } = Ce(d == null ? void 0 : d.id);
|
|
3600
|
-
return /* @__PURE__ */ c.jsxs(ua, { $disabled: !!r, $checked: i, $theme: a, children: [
|
|
3601
|
-
/* @__PURE__ */ c.jsx(
|
|
3602
|
-
fa,
|
|
3603
|
-
{
|
|
3604
|
-
id: l,
|
|
3605
|
-
name: e,
|
|
3606
|
-
type: "checkbox",
|
|
3607
|
-
disabled: r,
|
|
3608
|
-
required: n,
|
|
3609
|
-
checked: i,
|
|
3610
|
-
onChange: o,
|
|
3611
|
-
$theme: a
|
|
3612
|
-
}
|
|
3613
|
-
),
|
|
3614
|
-
/* @__PURE__ */ c.jsx(
|
|
3615
|
-
Xe,
|
|
3616
|
-
{
|
|
3617
|
-
label: t,
|
|
3618
|
-
required: n,
|
|
3619
|
-
inputId: l,
|
|
3620
|
-
isTextHidden: !0,
|
|
3621
|
-
iconPosition: "left",
|
|
3622
|
-
theme: a,
|
|
3623
|
-
icon: i ? /* @__PURE__ */ c.jsx(Tt, {}) : /* @__PURE__ */ c.jsx(Ot, {})
|
|
3624
|
-
}
|
|
3625
|
-
)
|
|
3626
|
-
] });
|
|
3627
|
-
}, ma = ({
|
|
3628
|
-
rowId: e,
|
|
3629
|
-
isRowSelected: t,
|
|
3630
|
-
selectRowById: r,
|
|
3631
|
-
deselectRowById: n,
|
|
3632
|
-
disabled: o,
|
|
3633
|
-
theme: i
|
|
3634
|
-
}) => {
|
|
3635
|
-
const a = (d) => {
|
|
3636
|
-
const { checked: l } = d.target;
|
|
3637
|
-
l ? r(e) : n(e);
|
|
3638
|
-
};
|
|
3639
|
-
return /* @__PURE__ */ c.jsx(In, { $theme: i, children: /* @__PURE__ */ c.jsx(
|
|
3640
|
-
Rn,
|
|
3641
|
-
{
|
|
3642
|
-
theme: i,
|
|
3643
|
-
label: "Select row",
|
|
3644
|
-
onChange: a,
|
|
3645
|
-
id: `select_row_${e}`,
|
|
3646
|
-
checked: t,
|
|
3647
|
-
disabled: o
|
|
3648
|
-
}
|
|
3649
|
-
) });
|
|
3650
|
-
}, ga = ({ rowId: e, selectRowById: t, deselectRowById: r, selectable: n, values: o, selectedIds: i, disabled: a, theme: d }) => {
|
|
3651
|
-
const l = i.includes(e);
|
|
3652
|
-
return /* @__PURE__ */ c.jsxs(da, { $selected: l, $theme: d, children: [
|
|
3653
|
-
n && /* @__PURE__ */ c.jsx(
|
|
3654
|
-
ma,
|
|
3655
|
-
{
|
|
3656
|
-
rowId: e,
|
|
3657
|
-
selectRowById: t,
|
|
3658
|
-
deselectRowById: r,
|
|
3659
|
-
isRowSelected: l,
|
|
3660
|
-
disabled: a,
|
|
3661
|
-
theme: d
|
|
3662
|
-
}
|
|
3663
|
-
),
|
|
3664
|
-
o.map((f, u) => /* @__PURE__ */ c.jsx(pa, { value: f, theme: d }, `row_${u}`))
|
|
3665
|
-
] });
|
|
3666
|
-
}, ya = ({
|
|
3667
|
-
selectRowById: e,
|
|
3668
|
-
deselectRowById: t,
|
|
3669
|
-
renderDataItem: r,
|
|
3670
|
-
selectedIds: n,
|
|
3671
|
-
selectable: o,
|
|
3672
|
-
data: i,
|
|
3673
|
-
columns: a,
|
|
3674
|
-
theme: d
|
|
3675
|
-
}) => /* @__PURE__ */ c.jsx(aa, { $theme: d, children: i.map((l) => {
|
|
3676
|
-
const f = ha({ item: l, columns: a, renderDataItem: r });
|
|
3677
|
-
return /* @__PURE__ */ c.jsx(
|
|
3678
|
-
ga,
|
|
3679
|
-
{
|
|
3680
|
-
rowId: l.id,
|
|
3681
|
-
disabled: l == null ? void 0 : l.disabled,
|
|
3682
|
-
selectRowById: e,
|
|
3683
|
-
deselectRowById: t,
|
|
3684
|
-
selectable: o,
|
|
3685
|
-
values: f,
|
|
3686
|
-
selectedIds: n,
|
|
3687
|
-
theme: d
|
|
3688
|
-
},
|
|
3689
|
-
l.id
|
|
3690
|
-
);
|
|
3691
|
-
}) }), ba = ({
|
|
3692
|
-
columns: e,
|
|
3693
|
-
selectable: t,
|
|
3694
|
-
theme: r
|
|
3695
|
-
}) => /* @__PURE__ */ c.jsxs("colgroup", { children: [
|
|
3696
|
-
t && /* @__PURE__ */ c.jsx(Ur, { $isFirst: !0, $highlighted: !1, $theme: r }),
|
|
3697
|
-
e.map((n, o) => /* @__PURE__ */ c.jsx(
|
|
3698
|
-
Ur,
|
|
3699
|
-
{
|
|
3700
|
-
$isFirst: o === 0 && !t,
|
|
3701
|
-
$highlighted: !!(n != null && n.highlighted),
|
|
3702
|
-
className: n == null ? void 0 : n.className,
|
|
3703
|
-
$theme: r
|
|
3704
|
-
},
|
|
3705
|
-
n == null ? void 0 : n.title
|
|
3706
|
-
))
|
|
3707
|
-
] }), va = ({
|
|
3708
|
-
title: e,
|
|
3709
|
-
component: t,
|
|
3710
|
-
theme: r
|
|
3711
|
-
}) => /* @__PURE__ */ c.jsx(En, { $theme: r, children: t ?? e ?? "" }), $a = ({ gridId: e, isAllSelected: t, selectAll: r, deselectAll: n, disabled: o, theme: i }) => {
|
|
3712
|
-
const a = (d) => {
|
|
3713
|
-
const { checked: l } = d.target;
|
|
3714
|
-
l ? r() : n();
|
|
3715
|
-
};
|
|
3716
|
-
return /* @__PURE__ */ c.jsx(En, { $theme: i, children: /* @__PURE__ */ c.jsx(
|
|
3717
|
-
Rn,
|
|
3718
|
-
{
|
|
3719
|
-
label: "Select all rows",
|
|
3720
|
-
onChange: a,
|
|
3721
|
-
id: `select_all_${e}`,
|
|
3722
|
-
checked: t,
|
|
3723
|
-
disabled: o,
|
|
3724
|
-
theme: i
|
|
3725
|
-
}
|
|
3726
|
-
) });
|
|
3727
|
-
}, xa = ({
|
|
3728
|
-
columns: e,
|
|
3729
|
-
gridId: t,
|
|
3730
|
-
selectAll: r,
|
|
3731
|
-
deselectAll: n,
|
|
3732
|
-
selectable: o,
|
|
3733
|
-
isAllSelected: i,
|
|
3734
|
-
isAllCheckboxDisabled: a = !1,
|
|
3735
|
-
theme: d
|
|
3736
|
-
}) => /* @__PURE__ */ c.jsx(sa, { $theme: d, children: /* @__PURE__ */ c.jsxs(ca, { $theme: d, children: [
|
|
3737
|
-
o && /* @__PURE__ */ c.jsx(
|
|
3738
|
-
$a,
|
|
3739
|
-
{
|
|
3740
|
-
isAllSelected: i,
|
|
3741
|
-
disabled: a,
|
|
3742
|
-
gridId: t,
|
|
3743
|
-
selectAll: r,
|
|
3744
|
-
deselectAll: n,
|
|
3745
|
-
theme: d
|
|
3746
|
-
}
|
|
3747
|
-
),
|
|
3748
|
-
e.map((l) => /* @__PURE__ */ c.jsx(va, { title: l.title, component: l.component, theme: d }, `${l.title}_${t}`))
|
|
3749
|
-
] }) }), wa = ({
|
|
3750
|
-
data: e,
|
|
3751
|
-
id: t,
|
|
3752
|
-
onSelect: r
|
|
3753
|
-
}) => {
|
|
3754
|
-
const { elementId: n } = Ce(t), [o, i] = L([]), a = e.map((y) => y.id), d = a.length === o.length, l = e.some((y) => y == null ? void 0 : y.disabled), f = (y) => {
|
|
3755
|
-
i(y), r == null || r(y);
|
|
3756
|
-
};
|
|
3757
|
-
return {
|
|
3758
|
-
elementId: n,
|
|
3759
|
-
isAllSelected: d,
|
|
3760
|
-
isAllCheckboxDisabled: l,
|
|
3761
|
-
selectedIds: o,
|
|
3762
|
-
handleSelectAll: () => {
|
|
3763
|
-
f(a);
|
|
3764
|
-
},
|
|
3765
|
-
handleDeselectAll: () => {
|
|
3766
|
-
f([]);
|
|
3767
|
-
},
|
|
3768
|
-
handleSelectRowById: (y) => {
|
|
3769
|
-
const $ = [...o, y];
|
|
3770
|
-
f($);
|
|
3771
|
-
},
|
|
3772
|
-
handleDeselectRowById: (y) => {
|
|
3773
|
-
const $ = o.filter((C) => C !== y);
|
|
3774
|
-
f($);
|
|
3775
|
-
}
|
|
3776
|
-
};
|
|
3777
|
-
}, tc = ({
|
|
3778
|
-
columns: e,
|
|
3779
|
-
data: t,
|
|
3780
|
-
id: r,
|
|
3781
|
-
onSelect: n,
|
|
3782
|
-
renderDataItem: o,
|
|
3783
|
-
caption: i,
|
|
3784
|
-
selectable: a = !1,
|
|
3785
|
-
...d
|
|
3786
|
-
}) => {
|
|
3787
|
-
const {
|
|
3788
|
-
elementId: l,
|
|
3789
|
-
handleSelectAll: f,
|
|
3790
|
-
handleDeselectAll: u,
|
|
3791
|
-
isAllCheckboxDisabled: h,
|
|
3792
|
-
isAllSelected: g,
|
|
3793
|
-
handleDeselectRowById: m,
|
|
3794
|
-
handleSelectRowById: y,
|
|
3795
|
-
selectedIds: $
|
|
3796
|
-
} = wa({ id: r, data: t, onSelect: n }), C = Z();
|
|
3797
|
-
return /* @__PURE__ */ c.jsxs(ia, { ...d, children: [
|
|
3798
|
-
i && /* @__PURE__ */ c.jsx(la, { $theme: C, children: i }),
|
|
3799
|
-
/* @__PURE__ */ c.jsx(ba, { columns: e, selectable: a, theme: C }),
|
|
3800
|
-
/* @__PURE__ */ c.jsx(
|
|
3801
|
-
xa,
|
|
3802
|
-
{
|
|
3803
|
-
gridId: l,
|
|
3804
|
-
columns: e,
|
|
3805
|
-
selectable: a,
|
|
3806
|
-
selectAll: f,
|
|
3807
|
-
deselectAll: u,
|
|
3808
|
-
isAllSelected: g,
|
|
3809
|
-
isAllCheckboxDisabled: h,
|
|
3810
|
-
theme: C
|
|
3811
|
-
}
|
|
3812
|
-
),
|
|
3813
|
-
/* @__PURE__ */ c.jsx(
|
|
3814
|
-
ya,
|
|
3815
|
-
{
|
|
3816
|
-
columns: e,
|
|
3817
|
-
data: t,
|
|
3818
|
-
selectable: a,
|
|
3819
|
-
selectRowById: y,
|
|
3820
|
-
deselectRowById: m,
|
|
3821
|
-
selectedIds: $,
|
|
3822
|
-
renderDataItem: o,
|
|
3823
|
-
theme: C
|
|
3824
|
-
}
|
|
3825
|
-
)
|
|
3826
|
-
] });
|
|
3827
|
-
}, _n = k.ul`
|
|
3828
|
-
list-style: none;
|
|
3829
|
-
margin: 0;
|
|
3830
|
-
padding: 0;
|
|
3831
|
-
padding-inline-start: 0;
|
|
3832
|
-
display: flex;
|
|
3833
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3834
|
-
flex-direction: ${(e) => e.$mode === X.Vertical ? "column" : "row"};
|
|
3835
|
-
justify-content: flex-start;
|
|
3836
|
-
width: 100%;
|
|
3837
|
-
`, Sa = k(_n)`
|
|
3838
|
-
flex-direction: column;
|
|
3839
|
-
padding-left: ${(e) => e.$theme.gapBig};
|
|
3840
|
-
margin-left: ${(e) => e.$theme.gapBig};
|
|
3841
|
-
margin-top: ${(e) => e.$theme.gapSmall};
|
|
3842
|
-
box-sizing: border-box;
|
|
3843
|
-
border-left: ${(e) => e.$theme.borderLight};
|
|
3844
|
-
${qe}
|
|
3845
|
-
|
|
3846
|
-
${({ $theme: e, $mode: t }) => t === X.Horizontal && `
|
|
3847
|
-
position: absolute;
|
|
3848
|
-
top: 100%;
|
|
3849
|
-
left: 40%;
|
|
3850
|
-
width: max-content;
|
|
3851
|
-
border-radius: ${e.blockBorderRadius};
|
|
3852
|
-
border: ${e.borderLight};
|
|
3853
|
-
box-shadow: ${e.boxShadow};
|
|
3854
|
-
background-color: ${e.backgroundColorBase};
|
|
3855
|
-
padding: ${e.gapMedium};
|
|
3856
|
-
margin: 0;
|
|
3857
|
-
z-index: ${e.zIndexPopup};
|
|
3858
|
-
`}
|
|
3859
|
-
`, ka = k.li`
|
|
3860
|
-
display: flex;
|
|
3861
|
-
justify-content: flex-start;
|
|
3862
|
-
align-items: center;
|
|
3863
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3864
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3865
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3866
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3867
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3868
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3869
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3870
|
-
cursor: pointer;
|
|
3871
|
-
|
|
3872
|
-
&:hover {
|
|
3873
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
3874
|
-
}
|
|
3875
|
-
|
|
3876
|
-
&:focus-visible {
|
|
3877
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
3878
|
-
}
|
|
3879
|
-
`, Ca = k.li`
|
|
3880
|
-
display: flex;
|
|
3881
|
-
justify-content: flex-start;
|
|
3882
|
-
align-items: center;
|
|
3883
|
-
flex-direction: column;
|
|
3884
|
-
gap: 0;
|
|
3885
|
-
padding: 0;
|
|
3886
|
-
position: relative;
|
|
3887
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3888
|
-
|
|
3889
|
-
&:focus-visible {
|
|
3890
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
3891
|
-
}
|
|
3892
|
-
`, ja = k.span`
|
|
3893
|
-
position: relative;
|
|
3894
|
-
display: flex;
|
|
3895
|
-
box-sizing: border-box;
|
|
3896
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3897
|
-
align-items: center;
|
|
3898
|
-
width: 100%;
|
|
3899
|
-
justify-content: space-between;
|
|
3900
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3901
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3902
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3903
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3904
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3905
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3906
|
-
cursor: pointer;
|
|
3907
|
-
|
|
3908
|
-
span {
|
|
3909
|
-
display: flex;
|
|
3910
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3911
|
-
align-items: center;
|
|
3912
|
-
}
|
|
3913
|
-
|
|
3914
|
-
&:hover {
|
|
3915
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
3916
|
-
}
|
|
3917
|
-
`, Ea = ({ theme: e, item: t }) => {
|
|
3918
|
-
const { icon: r, link: n, label: o, onFocus: i, onClick: a, onHover: d } = t, l = n ? /* @__PURE__ */ c.jsx("a", { href: n, target: "_blank", rel: "noreferrer", children: o }) : /* @__PURE__ */ c.jsx("span", { children: o });
|
|
3919
|
-
return /* @__PURE__ */ c.jsxs(ka, { tabIndex: 0, role: "menuitem", $theme: e, onFocus: i, onClick: a, onMouseOver: d, children: [
|
|
3920
|
-
/* @__PURE__ */ c.jsx(ue, { name: r }),
|
|
3921
|
-
l
|
|
3922
|
-
] });
|
|
3923
|
-
}, Ia = ({ item: e, theme: t, isSubMenuOpened: r, toggleSubMenu: n, closeSubMenu: o, mode: i, children: a }) => {
|
|
3924
|
-
const { icon: d, link: l, label: f } = e, u = Se(null), h = Se(null), g = l ? /* @__PURE__ */ c.jsxs("a", { href: l, target: "_blank", rel: "noreferrer", children: [
|
|
3925
|
-
/* @__PURE__ */ c.jsx(ue, { name: d }),
|
|
3926
|
-
f
|
|
3927
|
-
] }) : /* @__PURE__ */ c.jsxs("span", { children: [
|
|
3928
|
-
/* @__PURE__ */ c.jsx(ue, { name: d }),
|
|
3929
|
-
f
|
|
3930
|
-
] }), m = ($) => {
|
|
3931
|
-
$.stopPropagation(), $.key === " " && n();
|
|
3932
|
-
};
|
|
3933
|
-
return At({ ref: u, dependentRef: h, onClickOutsideHandler: () => {
|
|
3934
|
-
i !== X.Vertical && o();
|
|
3935
|
-
} }), /* @__PURE__ */ c.jsxs(
|
|
3936
|
-
Ca,
|
|
3937
|
-
{
|
|
3938
|
-
tabIndex: 0,
|
|
3939
|
-
role: "menuitem",
|
|
3940
|
-
"aria-haspopup": "true",
|
|
3941
|
-
"aria-expanded": r,
|
|
3942
|
-
$theme: t,
|
|
3943
|
-
onKeyDown: m,
|
|
3944
|
-
ref: u,
|
|
3945
|
-
children: [
|
|
3946
|
-
/* @__PURE__ */ c.jsxs(ja, { ref: h, $theme: t, onClick: n, $mode: i, children: [
|
|
3947
|
-
g,
|
|
3948
|
-
/* @__PURE__ */ c.jsx(ue, { name: r ? j.ArrowUp : j.ArrowDown })
|
|
3949
|
-
] }),
|
|
3950
|
-
r && a
|
|
3951
|
-
]
|
|
3952
|
-
}
|
|
3953
|
-
);
|
|
3954
|
-
}, An = ({ item: e, theme: t, mode: r }) => {
|
|
3955
|
-
var l, f;
|
|
3956
|
-
const n = !((l = e == null ? void 0 : e.nestedItems) != null && l.length), [o, i] = L(!1);
|
|
3957
|
-
if (n)
|
|
3958
|
-
return /* @__PURE__ */ c.jsx(Ea, { item: e, theme: t });
|
|
3959
|
-
const a = () => {
|
|
3960
|
-
i(!o);
|
|
3961
|
-
}, d = () => {
|
|
3962
|
-
i(!1);
|
|
3963
|
-
};
|
|
3964
|
-
return /* @__PURE__ */ c.jsx(
|
|
3965
|
-
Ia,
|
|
3966
|
-
{
|
|
3967
|
-
item: e,
|
|
3968
|
-
theme: t,
|
|
3969
|
-
isSubMenuOpened: o,
|
|
3970
|
-
toggleSubMenu: a,
|
|
3971
|
-
closeSubMenu: d,
|
|
3972
|
-
mode: r,
|
|
3973
|
-
children: /* @__PURE__ */ c.jsx(Sa, { role: "menu", "aria-label": e.label, $theme: t, $mode: r, children: (f = e == null ? void 0 : e.nestedItems) == null ? void 0 : f.map((u) => /* @__PURE__ */ c.jsx(An, { item: u, theme: t, mode: r }, u.id)) })
|
|
3974
|
-
}
|
|
3975
|
-
);
|
|
3976
|
-
}, rc = ({ items: e, mode: t = X.Vertical, ...r }) => {
|
|
3977
|
-
const n = Z();
|
|
3978
|
-
return /* @__PURE__ */ c.jsx(_n, { role: "menubar", $theme: n, $mode: t, ...r, children: e.map((o) => /* @__PURE__ */ c.jsx(An, { item: o, theme: n, mode: t }, o.id)) });
|
|
3979
|
-
}, cr = ({ children: e }) => {
|
|
3980
|
-
const [t] = L(() => document.createElement("div"));
|
|
3981
|
-
return he(() => (document.body.appendChild(t), () => {
|
|
3982
|
-
document.body.removeChild(t);
|
|
3983
|
-
}), [t]), lo.createPortal(e, t);
|
|
3984
|
-
}, Ra = k.button`
|
|
3985
|
-
background: transparent;
|
|
3986
|
-
position: relative;
|
|
3987
|
-
outline: none;
|
|
3988
|
-
border: none;
|
|
3989
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3990
|
-
cursor: pointer;
|
|
3991
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3992
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3993
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3994
|
-
overflow: hidden;
|
|
3995
|
-
border-top-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3996
|
-
border-top-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3997
|
-
|
|
3998
|
-
&:focus-visible {
|
|
3999
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
4000
|
-
outline-offset: -4px;
|
|
4001
|
-
}
|
|
4002
|
-
|
|
4003
|
-
&:hover,
|
|
4004
|
-
&:active {
|
|
4005
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
4006
|
-
}
|
|
4007
|
-
|
|
4008
|
-
${(e) => e.$disabled && `
|
|
4009
|
-
pointer-events: none;
|
|
4010
|
-
filter: grayscale(80%);
|
|
4011
|
-
opacity: 0.6;
|
|
4012
|
-
`}
|
|
4013
|
-
|
|
4014
|
-
${(e) => e.$selected && `
|
|
4015
|
-
border-top: ${e.$theme.borderLight};
|
|
4016
|
-
border-right: ${e.$theme.borderLight};
|
|
4017
|
-
border-left: ${e.$theme.borderLight};
|
|
4018
|
-
background-color: ${e.$theme.backgroundColorBase};
|
|
4019
|
-
top: 1px;
|
|
4020
|
-
`}
|
|
4021
|
-
|
|
4022
|
-
${(e) => e.$mode === X.Vertical && `
|
|
4023
|
-
border-bottom-left-radius: ${e.$theme.blockBorderRadius};
|
|
4024
|
-
border-top-right-radius: 0;
|
|
4025
|
-
`}
|
|
4026
|
-
|
|
4027
|
-
${(e) => e.$mode === X.Vertical && e.$selected && `
|
|
4028
|
-
border-top: ${e.$theme.borderLight};
|
|
4029
|
-
border-right: none;
|
|
4030
|
-
border-left: ${e.$theme.borderLight};
|
|
4031
|
-
border-bottom: ${e.$theme.borderLight};
|
|
4032
|
-
top: 0px;
|
|
4033
|
-
left: 1px;
|
|
4034
|
-
`}
|
|
4035
|
-
`, _a = k.div`
|
|
4036
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
4037
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
4038
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4039
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4040
|
-
padding: ${(e) => e.$theme.gapBig};
|
|
4041
|
-
flex-grow: 1;
|
|
4042
|
-
`, Aa = k.div`
|
|
4043
|
-
border-bottom: ${(e) => e.$theme.borderLight};
|
|
4044
|
-
padding: 0 ${(e) => e.$theme.gapMedium};
|
|
4045
|
-
display: flex;
|
|
4046
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
4047
|
-
|
|
4048
|
-
${(e) => e.$mode === X.Vertical && `
|
|
4049
|
-
flex-direction: column;
|
|
4050
|
-
border-bottom: none;
|
|
4051
|
-
border-right: ${e.$theme.borderLight};
|
|
4052
|
-
padding: ${e.$theme.gapMedium} 0;
|
|
4053
|
-
`}
|
|
4054
|
-
`, Pa = k.div`
|
|
4055
|
-
display: flex;
|
|
4056
|
-
flex-direction: column;
|
|
4057
|
-
width: 100%;
|
|
4058
|
-
|
|
4059
|
-
${({ $mode: e }) => e === X.Vertical && `
|
|
4060
|
-
flex-direction: row;
|
|
4061
|
-
`}
|
|
4062
|
-
`, Ta = ({ tabs: e, selectedTabId: t, theme: r }) => {
|
|
4063
|
-
var i;
|
|
4064
|
-
const n = (i = e.find((a) => a.id === t)) == null ? void 0 : i.content, o = `tabpanel_${t}`;
|
|
4065
|
-
return /* @__PURE__ */ c.jsx(_a, { role: "tabpanel", "aria-labelledby": t, id: o, $theme: r, children: n });
|
|
4066
|
-
}, Oa = ({
|
|
4067
|
-
title: e,
|
|
4068
|
-
onTabSelect: t,
|
|
4069
|
-
tabId: r,
|
|
4070
|
-
isSelected: n,
|
|
4071
|
-
isDisabled: o = !1,
|
|
4072
|
-
tabPanelId: i,
|
|
4073
|
-
mode: a,
|
|
4074
|
-
theme: d
|
|
4075
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
4076
|
-
Ra,
|
|
4077
|
-
{
|
|
4078
|
-
role: "tab",
|
|
4079
|
-
id: r,
|
|
4080
|
-
onClick: () => t(r),
|
|
4081
|
-
"aria-selected": n,
|
|
4082
|
-
"aria-controls": i,
|
|
4083
|
-
$selected: n,
|
|
4084
|
-
$disabled: o,
|
|
4085
|
-
$mode: a,
|
|
4086
|
-
$theme: d,
|
|
4087
|
-
children: e
|
|
4088
|
-
}
|
|
4089
|
-
), za = ({ tabs: e, onTabSelect: t, selectedTabId: r, tabPanelIds: n, mode: o, tabIds: i, theme: a }) => {
|
|
4090
|
-
const d = (l) => {
|
|
4091
|
-
const f = i.findIndex((u) => u === r);
|
|
4092
|
-
switch (l.key) {
|
|
4093
|
-
case "ArrowLeft":
|
|
4094
|
-
case "ArrowUp": {
|
|
4095
|
-
if (l.preventDefault(), l.key === "ArrowUp" && o === X.Horizontal || l.key === "ArrowLeft" && o === X.Vertical) break;
|
|
4096
|
-
const u = f - 1 >= 0 ? f - 1 : i.length - 1, h = i[u];
|
|
4097
|
-
h && (it(h), t(h));
|
|
4098
|
-
break;
|
|
4099
|
-
}
|
|
4100
|
-
case "ArrowRight":
|
|
4101
|
-
case "ArrowDown": {
|
|
4102
|
-
if (l.preventDefault(), l.key === "ArrowDown" && o === X.Horizontal || l.key === "ArrowRight" && o === X.Vertical) break;
|
|
4103
|
-
const u = f === i.length - 1 ? 0 : f + 1, h = i[u];
|
|
4104
|
-
h && (it(h), t(h));
|
|
4105
|
-
break;
|
|
4106
|
-
}
|
|
4107
|
-
}
|
|
4108
|
-
};
|
|
4109
|
-
return /* @__PURE__ */ c.jsx(Aa, { role: "tablist", $mode: o, onKeyDown: d, $theme: a, children: e.map(({ id: l, title: f, disabled: u }, h) => /* @__PURE__ */ c.jsx(
|
|
4110
|
-
Oa,
|
|
4111
|
-
{
|
|
4112
|
-
title: f,
|
|
4113
|
-
onTabSelect: t,
|
|
4114
|
-
tabId: l,
|
|
4115
|
-
isSelected: l === r,
|
|
4116
|
-
isDisabled: u,
|
|
4117
|
-
tabPanelId: n[h],
|
|
4118
|
-
mode: o,
|
|
4119
|
-
theme: a
|
|
4120
|
-
},
|
|
4121
|
-
l
|
|
4122
|
-
)) });
|
|
4123
|
-
}, nc = ({ tabs: e, defaultTabId: t, mode: r = X.Horizontal, ...n }) => {
|
|
4124
|
-
const o = e.map((h) => h.id), i = o.map((h) => `tabpanel_${h}`), a = t && o.includes(t) ? t : o[0], [d, l] = L(a), f = Z(), u = (h) => {
|
|
4125
|
-
l(h);
|
|
4126
|
-
};
|
|
4127
|
-
return /* @__PURE__ */ c.jsxs(Pa, { $mode: r, ...n, children: [
|
|
4128
|
-
/* @__PURE__ */ c.jsx(
|
|
4129
|
-
za,
|
|
4130
|
-
{
|
|
4131
|
-
tabs: e,
|
|
4132
|
-
selectedTabId: d,
|
|
4133
|
-
tabPanelIds: i,
|
|
4134
|
-
onTabSelect: u,
|
|
4135
|
-
mode: r,
|
|
4136
|
-
tabIds: o,
|
|
4137
|
-
theme: f
|
|
4138
|
-
}
|
|
4139
|
-
),
|
|
4140
|
-
/* @__PURE__ */ c.jsx(Ta, { tabs: e, selectedTabId: d, theme: f })
|
|
4141
|
-
] });
|
|
4142
|
-
}, Da = k.header`
|
|
4143
|
-
display: flex;
|
|
4144
|
-
justify-content: space-between;
|
|
4145
|
-
align-items: center;
|
|
4146
|
-
|
|
4147
|
-
h3 {
|
|
4148
|
-
display: flex;
|
|
4149
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
4150
|
-
align-items: center;
|
|
4151
|
-
margin: 0;
|
|
4152
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
4153
|
-
|
|
4154
|
-
svg {
|
|
4155
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
4156
|
-
}
|
|
4157
|
-
}
|
|
4158
|
-
`, Ma = k.div`
|
|
4159
|
-
position: fixed;
|
|
4160
|
-
bottom: ${(e) => e.$theme.gapBig};
|
|
4161
|
-
left: 50%;
|
|
4162
|
-
transform: translateX(-50%);
|
|
4163
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
4164
|
-
${qe}
|
|
4165
|
-
|
|
4166
|
-
${(e) => e.$isClosing && yn}
|
|
4167
|
-
`, Ba = k.div`
|
|
4168
|
-
display: flex;
|
|
4169
|
-
flex-direction: column;
|
|
4170
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
4171
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4172
|
-
background: ${(e) => e.$theme.backgroundColorBase};
|
|
4173
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
4174
|
-
width: 90vw;
|
|
4175
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
4176
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
4177
|
-
border: ${(e) => e.$theme.borderLight};
|
|
4178
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4179
|
-
`;
|
|
4180
|
-
function Pn(e) {
|
|
4181
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
4182
|
-
/* @__PURE__ */ c.jsx("title", { children: "Error" }),
|
|
4183
|
-
/* @__PURE__ */ c.jsx("path", { d: "M11 7h2v7h-2zm0 8h2v2h-2z" }),
|
|
4184
|
-
/* @__PURE__ */ c.jsx("path", { d: "M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z" })
|
|
4185
|
-
] });
|
|
4186
|
-
}
|
|
4187
|
-
const La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4188
|
-
__proto__: null,
|
|
4189
|
-
default: Pn
|
|
4190
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
4191
|
-
function Tn(e) {
|
|
4192
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
4193
|
-
/* @__PURE__ */ c.jsx("title", { children: "Help" }),
|
|
4194
|
-
/* @__PURE__ */ c.jsx("path", { d: "M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z" })
|
|
4195
|
-
] });
|
|
4196
|
-
}
|
|
4197
|
-
const Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4198
|
-
__proto__: null,
|
|
4199
|
-
default: Tn
|
|
4200
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
4201
|
-
function On(e) {
|
|
4202
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
4203
|
-
/* @__PURE__ */ c.jsx("title", { children: "Info" }),
|
|
4204
|
-
/* @__PURE__ */ c.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }),
|
|
4205
|
-
/* @__PURE__ */ c.jsx("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" })
|
|
4206
|
-
] });
|
|
4207
|
-
}
|
|
4208
|
-
const Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4209
|
-
__proto__: null,
|
|
4210
|
-
default: On
|
|
4211
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
4212
|
-
function zn(e) {
|
|
4213
|
-
return /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...e, children: [
|
|
4214
|
-
/* @__PURE__ */ c.jsx("title", { children: "Warning" }),
|
|
4215
|
-
/* @__PURE__ */ c.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
|
|
4216
|
-
/* @__PURE__ */ c.jsx("path", { d: "M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z" })
|
|
4217
|
-
] });
|
|
4218
|
-
}
|
|
4219
|
-
const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4220
|
-
__proto__: null,
|
|
4221
|
-
default: zn
|
|
4222
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
4223
|
-
function Wa(e, t) {
|
|
4224
|
-
if (t) return t;
|
|
4225
|
-
switch (e) {
|
|
4226
|
-
case te.Info:
|
|
4227
|
-
return "For your information";
|
|
4228
|
-
case te.Warning:
|
|
4229
|
-
return "Please pay attention";
|
|
4230
|
-
case te.Error:
|
|
4231
|
-
return "Something went wrong";
|
|
4232
|
-
case te.Success:
|
|
4233
|
-
return "Everything is okay";
|
|
4234
|
-
case te.Help:
|
|
4235
|
-
return "Useful tip";
|
|
4236
|
-
default:
|
|
4237
|
-
return "Alert";
|
|
4238
|
-
}
|
|
4239
|
-
}
|
|
4240
|
-
function Ga(e, t) {
|
|
4241
|
-
if (t)
|
|
4242
|
-
return /* @__PURE__ */ c.jsx(ue, { name: t });
|
|
4243
|
-
switch (e) {
|
|
4244
|
-
case te.Info:
|
|
4245
|
-
return /* @__PURE__ */ c.jsx(On, {});
|
|
4246
|
-
case te.Warning:
|
|
4247
|
-
return /* @__PURE__ */ c.jsx(zn, {});
|
|
4248
|
-
case te.Error:
|
|
4249
|
-
return /* @__PURE__ */ c.jsx(Pn, {});
|
|
4250
|
-
case te.Success:
|
|
4251
|
-
return /* @__PURE__ */ c.jsx(ar, {});
|
|
4252
|
-
case te.Help:
|
|
4253
|
-
return /* @__PURE__ */ c.jsx(Tn, {});
|
|
4254
|
-
default:
|
|
4255
|
-
return null;
|
|
4256
|
-
}
|
|
4257
|
-
}
|
|
4258
|
-
const Ua = ({ title: e, onClose: t, mode: r, icon: n, theme: o }) => {
|
|
4259
|
-
const i = Wa(r, e), a = Ga(r, n);
|
|
4260
|
-
return /* @__PURE__ */ c.jsxs(Da, { $theme: o, children: [
|
|
4261
|
-
/* @__PURE__ */ c.jsxs("h3", { children: [
|
|
4262
|
-
a,
|
|
4263
|
-
i
|
|
4264
|
-
] }),
|
|
4265
|
-
/* @__PURE__ */ c.jsx(kt, { icon: j.Cancel, view: we.Icon, label: "Close alert popup", onClick: t })
|
|
4266
|
-
] });
|
|
4267
|
-
}, oc = ({
|
|
4268
|
-
isOpened: e,
|
|
4269
|
-
onClose: t,
|
|
4270
|
-
title: r,
|
|
4271
|
-
message: n,
|
|
4272
|
-
mode: o = te.Info,
|
|
4273
|
-
icon: i,
|
|
4274
|
-
...a
|
|
4275
|
-
}) => {
|
|
4276
|
-
const d = wn(e), l = d && !e, f = Z();
|
|
4277
|
-
return d ? /* @__PURE__ */ c.jsx(cr, { children: /* @__PURE__ */ c.jsx(Ma, { $isClosing: l, $theme: f, children: /* @__PURE__ */ c.jsxs(Ba, { ...a, $theme: f, children: [
|
|
4278
|
-
/* @__PURE__ */ c.jsx(Ua, { title: r, onClose: t, mode: o, icon: i, theme: f }),
|
|
4279
|
-
/* @__PURE__ */ c.jsx("p", { children: n })
|
|
4280
|
-
] }) }) }) : null;
|
|
4281
|
-
};
|
|
4282
|
-
export {
|
|
4283
|
-
Z as A,
|
|
4284
|
-
At as B,
|
|
4285
|
-
kt as C,
|
|
4286
|
-
cs as D,
|
|
4287
|
-
Ce as E,
|
|
4288
|
-
Pt as F,
|
|
4289
|
-
ls as G,
|
|
4290
|
-
wn as H,
|
|
4291
|
-
St as I,
|
|
4292
|
-
at as J,
|
|
4293
|
-
us as K,
|
|
4294
|
-
ds as L,
|
|
4295
|
-
Ka as a,
|
|
4296
|
-
qa as b,
|
|
4297
|
-
Xa as c,
|
|
4298
|
-
Ja as d,
|
|
4299
|
-
Za as e,
|
|
4300
|
-
Qa as f,
|
|
4301
|
-
Zs as g,
|
|
4302
|
-
ec as h,
|
|
4303
|
-
tc as i,
|
|
4304
|
-
c as j,
|
|
4305
|
-
rc as k,
|
|
4306
|
-
cr as l,
|
|
4307
|
-
nc as m,
|
|
4308
|
-
oc as n,
|
|
4309
|
-
Te as o,
|
|
4310
|
-
ss as p,
|
|
4311
|
-
bn as q,
|
|
4312
|
-
ue as r,
|
|
4313
|
-
Xe as s,
|
|
4314
|
-
te as t,
|
|
4315
|
-
we as u,
|
|
4316
|
-
j as v,
|
|
4317
|
-
ki as w,
|
|
4318
|
-
X as x,
|
|
4319
|
-
vn as y,
|
|
4320
|
-
$n as z
|
|
4321
|
-
};
|
|
4322
|
-
//# sourceMappingURL=index-CL5Yr-gF.js.map
|