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.es.js
CHANGED
|
@@ -1,41 +1,4378 @@
|
|
|
1
|
-
import
|
|
1
|
+
import be, { useDebugValue as or, createElement as yn, useRef as ve, useContext as xe, useEffect as ue, useState as O, useId as $n, useCallback as et } from "react";
|
|
2
|
+
import wn from "react-dom";
|
|
3
|
+
var ot = { exports: {} }, qe = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Sn() {
|
|
15
|
+
if (sr) return qe;
|
|
16
|
+
sr = 1;
|
|
17
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
|
+
function r(n, o, i) {
|
|
19
|
+
var a = null;
|
|
20
|
+
if (i !== void 0 && (a = "" + i), o.key !== void 0 && (a = "" + o.key), "key" in o) {
|
|
21
|
+
i = {};
|
|
22
|
+
for (var d in o)
|
|
23
|
+
d !== "key" && (i[d] = o[d]);
|
|
24
|
+
} else i = o;
|
|
25
|
+
return o = i.ref, {
|
|
26
|
+
$$typeof: e,
|
|
27
|
+
type: n,
|
|
28
|
+
key: a,
|
|
29
|
+
ref: o !== void 0 ? o : null,
|
|
30
|
+
props: i
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return qe.Fragment = t, qe.jsx = r, qe.jsxs = r, qe;
|
|
34
|
+
}
|
|
35
|
+
var Xe = {};
|
|
36
|
+
/**
|
|
37
|
+
* @license React
|
|
38
|
+
* react-jsx-runtime.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
|
45
|
+
var ir;
|
|
46
|
+
function kn() {
|
|
47
|
+
return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function e(c) {
|
|
49
|
+
if (c == null) return null;
|
|
50
|
+
if (typeof c == "function")
|
|
51
|
+
return c.$$typeof === rt ? null : c.displayName || c.name || null;
|
|
52
|
+
if (typeof c == "string") return c;
|
|
53
|
+
switch (c) {
|
|
54
|
+
case j:
|
|
55
|
+
return "Fragment";
|
|
56
|
+
case M:
|
|
57
|
+
return "Portal";
|
|
58
|
+
case P:
|
|
59
|
+
return "Profiler";
|
|
60
|
+
case y:
|
|
61
|
+
return "StrictMode";
|
|
62
|
+
case oe:
|
|
63
|
+
return "Suspense";
|
|
64
|
+
case q:
|
|
65
|
+
return "SuspenseList";
|
|
66
|
+
}
|
|
67
|
+
if (typeof c == "object")
|
|
68
|
+
switch (typeof c.tag == "number" && console.error(
|
|
69
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
+
), c.$$typeof) {
|
|
71
|
+
case ne:
|
|
72
|
+
return (c.displayName || "Context") + ".Provider";
|
|
73
|
+
case Y:
|
|
74
|
+
return (c._context.displayName || "Context") + ".Consumer";
|
|
75
|
+
case ee:
|
|
76
|
+
var b = c.render;
|
|
77
|
+
return c = c.displayName, c || (c = b.displayName || b.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
78
|
+
case Ye:
|
|
79
|
+
return b = c.displayName || null, b !== null ? b : e(c.type) || "Memo";
|
|
80
|
+
case Ue:
|
|
81
|
+
b = c._payload, c = c._init;
|
|
82
|
+
try {
|
|
83
|
+
return e(c(b));
|
|
84
|
+
} catch {
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
function t(c) {
|
|
90
|
+
return "" + c;
|
|
91
|
+
}
|
|
92
|
+
function r(c) {
|
|
93
|
+
try {
|
|
94
|
+
t(c);
|
|
95
|
+
var b = !1;
|
|
96
|
+
} catch {
|
|
97
|
+
b = !0;
|
|
98
|
+
}
|
|
99
|
+
if (b) {
|
|
100
|
+
b = console;
|
|
101
|
+
var v = b.error, R = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
102
|
+
return v.call(
|
|
103
|
+
b,
|
|
104
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
105
|
+
R
|
|
106
|
+
), t(c);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function n() {
|
|
110
|
+
}
|
|
111
|
+
function o() {
|
|
112
|
+
if (se === 0) {
|
|
113
|
+
we = console.log, fe = console.info, Se = console.warn, ie = console.error, te = console.group, Be = console.groupCollapsed, ke = console.groupEnd;
|
|
114
|
+
var c = {
|
|
115
|
+
configurable: !0,
|
|
116
|
+
enumerable: !0,
|
|
117
|
+
value: n,
|
|
118
|
+
writable: !0
|
|
119
|
+
};
|
|
120
|
+
Object.defineProperties(console, {
|
|
121
|
+
info: c,
|
|
122
|
+
log: c,
|
|
123
|
+
warn: c,
|
|
124
|
+
error: c,
|
|
125
|
+
group: c,
|
|
126
|
+
groupCollapsed: c,
|
|
127
|
+
groupEnd: c
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
se++;
|
|
131
|
+
}
|
|
132
|
+
function i() {
|
|
133
|
+
if (se--, se === 0) {
|
|
134
|
+
var c = { configurable: !0, enumerable: !0, writable: !0 };
|
|
135
|
+
Object.defineProperties(console, {
|
|
136
|
+
log: U({}, c, { value: we }),
|
|
137
|
+
info: U({}, c, { value: fe }),
|
|
138
|
+
warn: U({}, c, { value: Se }),
|
|
139
|
+
error: U({}, c, { value: ie }),
|
|
140
|
+
group: U({}, c, { value: te }),
|
|
141
|
+
groupCollapsed: U({}, c, { value: Be }),
|
|
142
|
+
groupEnd: U({}, c, { value: ke })
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
0 > se && console.error(
|
|
146
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
function a(c) {
|
|
150
|
+
if (X === void 0)
|
|
151
|
+
try {
|
|
152
|
+
throw Error();
|
|
153
|
+
} catch (v) {
|
|
154
|
+
var b = v.stack.trim().match(/\n( *(at )?)/);
|
|
155
|
+
X = b && b[1] || "", Qt = -1 < v.stack.indexOf(`
|
|
156
|
+
at`) ? " (<anonymous>)" : -1 < v.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
157
|
+
}
|
|
158
|
+
return `
|
|
159
|
+
` + X + c + Qt;
|
|
160
|
+
}
|
|
161
|
+
function d(c, b) {
|
|
162
|
+
if (!c || It) return "";
|
|
163
|
+
var v = Mt.get(c);
|
|
164
|
+
if (v !== void 0) return v;
|
|
165
|
+
It = !0, v = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
166
|
+
var R = null;
|
|
167
|
+
R = N.H, N.H = null, o();
|
|
168
|
+
try {
|
|
169
|
+
var H = {
|
|
170
|
+
DetermineComponentFrameRoot: function() {
|
|
171
|
+
try {
|
|
172
|
+
if (b) {
|
|
173
|
+
var pe = function() {
|
|
174
|
+
throw Error();
|
|
175
|
+
};
|
|
176
|
+
if (Object.defineProperty(pe.prototype, "props", {
|
|
177
|
+
set: function() {
|
|
178
|
+
throw Error();
|
|
179
|
+
}
|
|
180
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
181
|
+
try {
|
|
182
|
+
Reflect.construct(pe, []);
|
|
183
|
+
} catch (ce) {
|
|
184
|
+
var nt = ce;
|
|
185
|
+
}
|
|
186
|
+
Reflect.construct(c, [], pe);
|
|
187
|
+
} else {
|
|
188
|
+
try {
|
|
189
|
+
pe.call();
|
|
190
|
+
} catch (ce) {
|
|
191
|
+
nt = ce;
|
|
192
|
+
}
|
|
193
|
+
c.call(pe.prototype);
|
|
194
|
+
}
|
|
195
|
+
} else {
|
|
196
|
+
try {
|
|
197
|
+
throw Error();
|
|
198
|
+
} catch (ce) {
|
|
199
|
+
nt = ce;
|
|
200
|
+
}
|
|
201
|
+
(pe = c()) && typeof pe.catch == "function" && pe.catch(function() {
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
} catch (ce) {
|
|
205
|
+
if (ce && nt && typeof ce.stack == "string")
|
|
206
|
+
return [ce.stack, nt.stack];
|
|
207
|
+
}
|
|
208
|
+
return [null, null];
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
H.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
212
|
+
var _ = Object.getOwnPropertyDescriptor(
|
|
213
|
+
H.DetermineComponentFrameRoot,
|
|
214
|
+
"name"
|
|
215
|
+
);
|
|
216
|
+
_ && _.configurable && Object.defineProperty(
|
|
217
|
+
H.DetermineComponentFrameRoot,
|
|
218
|
+
"name",
|
|
219
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
220
|
+
);
|
|
221
|
+
var A = H.DetermineComponentFrameRoot(), ae = A[0], Te = A[1];
|
|
222
|
+
if (ae && Te) {
|
|
223
|
+
var F = ae.split(`
|
|
224
|
+
`), je = Te.split(`
|
|
225
|
+
`);
|
|
226
|
+
for (A = _ = 0; _ < F.length && !F[_].includes(
|
|
227
|
+
"DetermineComponentFrameRoot"
|
|
228
|
+
); )
|
|
229
|
+
_++;
|
|
230
|
+
for (; A < je.length && !je[A].includes(
|
|
231
|
+
"DetermineComponentFrameRoot"
|
|
232
|
+
); )
|
|
233
|
+
A++;
|
|
234
|
+
if (_ === F.length || A === je.length)
|
|
235
|
+
for (_ = F.length - 1, A = je.length - 1; 1 <= _ && 0 <= A && F[_] !== je[A]; )
|
|
236
|
+
A--;
|
|
237
|
+
for (; 1 <= _ && 0 <= A; _--, A--)
|
|
238
|
+
if (F[_] !== je[A]) {
|
|
239
|
+
if (_ !== 1 || A !== 1)
|
|
240
|
+
do
|
|
241
|
+
if (_--, A--, 0 > A || F[_] !== je[A]) {
|
|
242
|
+
var Ke = `
|
|
243
|
+
` + F[_].replace(
|
|
244
|
+
" at new ",
|
|
245
|
+
" at "
|
|
246
|
+
);
|
|
247
|
+
return c.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", c.displayName)), typeof c == "function" && Mt.set(c, Ke), Ke;
|
|
248
|
+
}
|
|
249
|
+
while (1 <= _ && 0 <= A);
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
} finally {
|
|
254
|
+
It = !1, N.H = R, i(), Error.prepareStackTrace = v;
|
|
255
|
+
}
|
|
256
|
+
return F = (F = c ? c.displayName || c.name : "") ? a(F) : "", typeof c == "function" && Mt.set(c, F), F;
|
|
257
|
+
}
|
|
258
|
+
function l(c) {
|
|
259
|
+
if (c == null) return "";
|
|
260
|
+
if (typeof c == "function") {
|
|
261
|
+
var b = c.prototype;
|
|
262
|
+
return d(
|
|
263
|
+
c,
|
|
264
|
+
!(!b || !b.isReactComponent)
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
if (typeof c == "string") return a(c);
|
|
268
|
+
switch (c) {
|
|
269
|
+
case oe:
|
|
270
|
+
return a("Suspense");
|
|
271
|
+
case q:
|
|
272
|
+
return a("SuspenseList");
|
|
273
|
+
}
|
|
274
|
+
if (typeof c == "object")
|
|
275
|
+
switch (c.$$typeof) {
|
|
276
|
+
case ee:
|
|
277
|
+
return c = d(c.render, !1), c;
|
|
278
|
+
case Ye:
|
|
279
|
+
return l(c.type);
|
|
280
|
+
case Ue:
|
|
281
|
+
b = c._payload, c = c._init;
|
|
282
|
+
try {
|
|
283
|
+
return l(c(b));
|
|
284
|
+
} catch {
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return "";
|
|
288
|
+
}
|
|
289
|
+
function u() {
|
|
290
|
+
var c = N.A;
|
|
291
|
+
return c === null ? null : c.getOwner();
|
|
292
|
+
}
|
|
293
|
+
function h(c) {
|
|
294
|
+
if (he.call(c, "key")) {
|
|
295
|
+
var b = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
296
|
+
if (b && b.isReactWarning) return !1;
|
|
297
|
+
}
|
|
298
|
+
return c.key !== void 0;
|
|
299
|
+
}
|
|
300
|
+
function f(c, b) {
|
|
301
|
+
function v() {
|
|
302
|
+
er || (er = !0, console.error(
|
|
303
|
+
"%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://react.dev/link/special-props)",
|
|
304
|
+
b
|
|
305
|
+
));
|
|
306
|
+
}
|
|
307
|
+
v.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
308
|
+
get: v,
|
|
309
|
+
configurable: !0
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
function m() {
|
|
313
|
+
var c = e(this.type);
|
|
314
|
+
return tr[c] || (tr[c] = !0, console.error(
|
|
315
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
316
|
+
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
317
|
+
}
|
|
318
|
+
function p(c, b, v, R, H, _) {
|
|
319
|
+
return v = _.ref, c = {
|
|
320
|
+
$$typeof: I,
|
|
321
|
+
type: c,
|
|
322
|
+
key: b,
|
|
323
|
+
props: _,
|
|
324
|
+
_owner: H
|
|
325
|
+
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(c, "ref", {
|
|
326
|
+
enumerable: !1,
|
|
327
|
+
get: m
|
|
328
|
+
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
329
|
+
configurable: !1,
|
|
330
|
+
enumerable: !1,
|
|
331
|
+
writable: !0,
|
|
332
|
+
value: 0
|
|
333
|
+
}), Object.defineProperty(c, "_debugInfo", {
|
|
334
|
+
configurable: !1,
|
|
335
|
+
enumerable: !1,
|
|
336
|
+
writable: !0,
|
|
337
|
+
value: null
|
|
338
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
339
|
+
}
|
|
340
|
+
function g(c, b, v, R, H, _) {
|
|
341
|
+
if (typeof c == "string" || typeof c == "function" || c === j || c === P || c === y || c === oe || c === q || c === zt || typeof c == "object" && c !== null && (c.$$typeof === Ue || c.$$typeof === Ye || c.$$typeof === ne || c.$$typeof === Y || c.$$typeof === ee || c.$$typeof === V || c.getModuleId !== void 0)) {
|
|
342
|
+
var A = b.children;
|
|
343
|
+
if (A !== void 0)
|
|
344
|
+
if (R)
|
|
345
|
+
if ($e(A)) {
|
|
346
|
+
for (R = 0; R < A.length; R++)
|
|
347
|
+
x(A[R], c);
|
|
348
|
+
Object.freeze && Object.freeze(A);
|
|
349
|
+
} else
|
|
350
|
+
console.error(
|
|
351
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
352
|
+
);
|
|
353
|
+
else x(A, c);
|
|
354
|
+
} else
|
|
355
|
+
A = "", (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), c === null ? R = "null" : $e(c) ? R = "array" : c !== void 0 && c.$$typeof === I ? (R = "<" + (e(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : R = typeof c, console.error(
|
|
356
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
357
|
+
R,
|
|
358
|
+
A
|
|
359
|
+
);
|
|
360
|
+
if (he.call(b, "key")) {
|
|
361
|
+
A = e(c);
|
|
362
|
+
var ae = Object.keys(b).filter(function(F) {
|
|
363
|
+
return F !== "key";
|
|
364
|
+
});
|
|
365
|
+
R = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", rr[A + R] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
366
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
367
|
+
let props = %s;
|
|
368
|
+
<%s {...props} />
|
|
369
|
+
React keys must be passed directly to JSX without using spread:
|
|
370
|
+
let props = %s;
|
|
371
|
+
<%s key={someKey} {...props} />`,
|
|
372
|
+
R,
|
|
373
|
+
A,
|
|
374
|
+
ae,
|
|
375
|
+
A
|
|
376
|
+
), rr[A + R] = !0);
|
|
377
|
+
}
|
|
378
|
+
if (A = null, v !== void 0 && (r(v), A = "" + v), h(b) && (r(b.key), A = "" + b.key), "key" in b) {
|
|
379
|
+
v = {};
|
|
380
|
+
for (var Te in b)
|
|
381
|
+
Te !== "key" && (v[Te] = b[Te]);
|
|
382
|
+
} else v = b;
|
|
383
|
+
return A && f(
|
|
384
|
+
v,
|
|
385
|
+
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
386
|
+
), p(c, A, _, H, u(), v);
|
|
387
|
+
}
|
|
388
|
+
function x(c, b) {
|
|
389
|
+
if (typeof c == "object" && c && c.$$typeof !== xn) {
|
|
390
|
+
if ($e(c))
|
|
391
|
+
for (var v = 0; v < c.length; v++) {
|
|
392
|
+
var R = c[v];
|
|
393
|
+
w(R) && $(R, b);
|
|
394
|
+
}
|
|
395
|
+
else if (w(c))
|
|
396
|
+
c._store && (c._store.validated = 1);
|
|
397
|
+
else if (c === null || typeof c != "object" ? v = null : (v = Re && c[Re] || c["@@iterator"], v = typeof v == "function" ? v : null), typeof v == "function" && v !== c.entries && (v = v.call(c), v !== c))
|
|
398
|
+
for (; !(c = v.next()).done; )
|
|
399
|
+
w(c.value) && $(c.value, b);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
function w(c) {
|
|
403
|
+
return typeof c == "object" && c !== null && c.$$typeof === I;
|
|
404
|
+
}
|
|
405
|
+
function $(c, b) {
|
|
406
|
+
if (c._store && !c._store.validated && c.key == null && (c._store.validated = 1, b = S(b), !nr[b])) {
|
|
407
|
+
nr[b] = !0;
|
|
408
|
+
var v = "";
|
|
409
|
+
c && c._owner != null && c._owner !== u() && (v = null, typeof c._owner.tag == "number" ? v = e(c._owner.type) : typeof c._owner.name == "string" && (v = c._owner.name), v = " It was passed a child from " + v + ".");
|
|
410
|
+
var R = N.getCurrentStack;
|
|
411
|
+
N.getCurrentStack = function() {
|
|
412
|
+
var H = l(c.type);
|
|
413
|
+
return R && (H += R() || ""), H;
|
|
414
|
+
}, console.error(
|
|
415
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
416
|
+
b,
|
|
417
|
+
v
|
|
418
|
+
), N.getCurrentStack = R;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function S(c) {
|
|
422
|
+
var b = "", v = u();
|
|
423
|
+
return v && (v = e(v.type)) && (b = `
|
|
424
|
+
|
|
425
|
+
Check the render method of \`` + v + "`."), b || (c = e(c)) && (b = `
|
|
426
|
+
|
|
427
|
+
Check the top-level render call using <` + c + ">."), b;
|
|
428
|
+
}
|
|
429
|
+
var E = be, I = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), Ye = Symbol.for("react.memo"), Ue = Symbol.for("react.lazy"), zt = Symbol.for("react.offscreen"), Re = Symbol.iterator, rt = Symbol.for("react.client.reference"), N = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = Object.prototype.hasOwnProperty, U = Object.assign, V = Symbol.for("react.client.reference"), $e = Array.isArray, se = 0, we, fe, Se, ie, te, Be, ke;
|
|
430
|
+
n.__reactDisabledLog = !0;
|
|
431
|
+
var X, Qt, It = !1, Mt = new (typeof WeakMap == "function" ? WeakMap : Map)(), xn = Symbol.for("react.client.reference"), er, tr = {}, rr = {}, nr = {};
|
|
432
|
+
Xe.Fragment = j, Xe.jsx = function(c, b, v, R, H) {
|
|
433
|
+
return g(c, b, v, !1, R, H);
|
|
434
|
+
}, Xe.jsxs = function(c, b, v, R, H) {
|
|
435
|
+
return g(c, b, v, !0, R, H);
|
|
436
|
+
};
|
|
437
|
+
}()), Xe;
|
|
438
|
+
}
|
|
439
|
+
var ar;
|
|
440
|
+
function jn() {
|
|
441
|
+
return ar || (ar = 1, process.env.NODE_ENV === "production" ? ot.exports = Sn() : ot.exports = kn()), ot.exports;
|
|
442
|
+
}
|
|
443
|
+
var s = jn(), G = function() {
|
|
444
|
+
return G = Object.assign || function(t) {
|
|
445
|
+
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
446
|
+
r = arguments[n];
|
|
447
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
448
|
+
}
|
|
449
|
+
return t;
|
|
450
|
+
}, G.apply(this, arguments);
|
|
451
|
+
};
|
|
452
|
+
function Oe(e, t, r) {
|
|
453
|
+
if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
|
|
454
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
455
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
456
|
+
}
|
|
457
|
+
function Cn(e) {
|
|
458
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
459
|
+
return function(r) {
|
|
460
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
var En = /^((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)-.*))$/, An = /* @__PURE__ */ Cn(
|
|
464
|
+
function(e) {
|
|
465
|
+
return En.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
466
|
+
}
|
|
467
|
+
/* Z+1 */
|
|
468
|
+
), T = "-ms-", Ze = "-moz-", B = "-webkit-", zr = "comm", xt = "rule", Gt = "decl", zn = "@import", Ir = "@keyframes", In = "@layer", Mr = Math.abs, Wt = String.fromCharCode, Ot = Object.assign;
|
|
469
|
+
function Mn(e, t) {
|
|
470
|
+
return D(e, 0) ^ 45 ? (((t << 2 ^ D(e, 0)) << 2 ^ D(e, 1)) << 2 ^ D(e, 2)) << 2 ^ D(e, 3) : 0;
|
|
471
|
+
}
|
|
472
|
+
function Rr(e) {
|
|
473
|
+
return e.trim();
|
|
474
|
+
}
|
|
475
|
+
function le(e, t) {
|
|
476
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
477
|
+
}
|
|
478
|
+
function z(e, t, r) {
|
|
479
|
+
return e.replace(t, r);
|
|
480
|
+
}
|
|
481
|
+
function lt(e, t, r) {
|
|
482
|
+
return e.indexOf(t, r);
|
|
483
|
+
}
|
|
484
|
+
function D(e, t) {
|
|
485
|
+
return e.charCodeAt(t) | 0;
|
|
486
|
+
}
|
|
487
|
+
function Pe(e, t, r) {
|
|
488
|
+
return e.slice(t, r);
|
|
489
|
+
}
|
|
490
|
+
function re(e) {
|
|
491
|
+
return e.length;
|
|
492
|
+
}
|
|
493
|
+
function Br(e) {
|
|
494
|
+
return e.length;
|
|
495
|
+
}
|
|
496
|
+
function Je(e, t) {
|
|
497
|
+
return t.push(e), e;
|
|
498
|
+
}
|
|
499
|
+
function Rn(e, t) {
|
|
500
|
+
return e.map(t).join("");
|
|
501
|
+
}
|
|
502
|
+
function cr(e, t) {
|
|
503
|
+
return e.filter(function(r) {
|
|
504
|
+
return !le(r, t);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
var yt = 1, Le = 1, Tr = 0, Z = 0, L = 0, Fe = "";
|
|
508
|
+
function $t(e, t, r, n, o, i, a, d) {
|
|
509
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: yt, column: Le, length: a, return: "", siblings: d };
|
|
510
|
+
}
|
|
511
|
+
function me(e, t) {
|
|
512
|
+
return Ot($t("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
513
|
+
}
|
|
514
|
+
function _e(e) {
|
|
515
|
+
for (; e.root; )
|
|
516
|
+
e = me(e.root, { children: [e] });
|
|
517
|
+
Je(e, e.siblings);
|
|
518
|
+
}
|
|
519
|
+
function Bn() {
|
|
520
|
+
return L;
|
|
521
|
+
}
|
|
522
|
+
function Tn() {
|
|
523
|
+
return L = Z > 0 ? D(Fe, --Z) : 0, Le--, L === 10 && (Le = 1, yt--), L;
|
|
524
|
+
}
|
|
525
|
+
function Q() {
|
|
526
|
+
return L = Z < Tr ? D(Fe, Z++) : 0, Le++, L === 10 && (Le = 1, yt++), L;
|
|
527
|
+
}
|
|
528
|
+
function Ae() {
|
|
529
|
+
return D(Fe, Z);
|
|
530
|
+
}
|
|
531
|
+
function dt() {
|
|
532
|
+
return Z;
|
|
533
|
+
}
|
|
534
|
+
function wt(e, t) {
|
|
535
|
+
return Pe(Fe, e, t);
|
|
536
|
+
}
|
|
537
|
+
function Pt(e) {
|
|
538
|
+
switch (e) {
|
|
539
|
+
// \0 \t \n \r \s whitespace token
|
|
540
|
+
case 0:
|
|
541
|
+
case 9:
|
|
542
|
+
case 10:
|
|
543
|
+
case 13:
|
|
544
|
+
case 32:
|
|
545
|
+
return 5;
|
|
546
|
+
// ! + , / > @ ~ isolate token
|
|
547
|
+
case 33:
|
|
548
|
+
case 43:
|
|
549
|
+
case 44:
|
|
550
|
+
case 47:
|
|
551
|
+
case 62:
|
|
552
|
+
case 64:
|
|
553
|
+
case 126:
|
|
554
|
+
// ; { } breakpoint token
|
|
555
|
+
case 59:
|
|
556
|
+
case 123:
|
|
557
|
+
case 125:
|
|
558
|
+
return 4;
|
|
559
|
+
// : accompanied token
|
|
560
|
+
case 58:
|
|
561
|
+
return 3;
|
|
562
|
+
// " ' ( [ opening delimit token
|
|
563
|
+
case 34:
|
|
564
|
+
case 39:
|
|
565
|
+
case 40:
|
|
566
|
+
case 91:
|
|
567
|
+
return 2;
|
|
568
|
+
// ) ] closing delimit token
|
|
569
|
+
case 41:
|
|
570
|
+
case 93:
|
|
571
|
+
return 1;
|
|
572
|
+
}
|
|
573
|
+
return 0;
|
|
574
|
+
}
|
|
575
|
+
function _n(e) {
|
|
576
|
+
return yt = Le = 1, Tr = re(Fe = e), Z = 0, [];
|
|
577
|
+
}
|
|
578
|
+
function On(e) {
|
|
579
|
+
return Fe = "", e;
|
|
580
|
+
}
|
|
581
|
+
function Rt(e) {
|
|
582
|
+
return Rr(wt(Z - 1, Lt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
583
|
+
}
|
|
584
|
+
function Pn(e) {
|
|
585
|
+
for (; (L = Ae()) && L < 33; )
|
|
586
|
+
Q();
|
|
587
|
+
return Pt(e) > 2 || Pt(L) > 3 ? "" : " ";
|
|
588
|
+
}
|
|
589
|
+
function Ln(e, t) {
|
|
590
|
+
for (; --t && Q() && !(L < 48 || L > 102 || L > 57 && L < 65 || L > 70 && L < 97); )
|
|
591
|
+
;
|
|
592
|
+
return wt(e, dt() + (t < 6 && Ae() == 32 && Q() == 32));
|
|
593
|
+
}
|
|
594
|
+
function Lt(e) {
|
|
595
|
+
for (; Q(); )
|
|
596
|
+
switch (L) {
|
|
597
|
+
// ] ) " '
|
|
598
|
+
case e:
|
|
599
|
+
return Z;
|
|
600
|
+
// " '
|
|
601
|
+
case 34:
|
|
602
|
+
case 39:
|
|
603
|
+
e !== 34 && e !== 39 && Lt(L);
|
|
604
|
+
break;
|
|
605
|
+
// (
|
|
606
|
+
case 40:
|
|
607
|
+
e === 41 && Lt(e);
|
|
608
|
+
break;
|
|
609
|
+
// \
|
|
610
|
+
case 92:
|
|
611
|
+
Q();
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
return Z;
|
|
615
|
+
}
|
|
616
|
+
function Dn(e, t) {
|
|
617
|
+
for (; Q() && e + L !== 57; )
|
|
618
|
+
if (e + L === 84 && Ae() === 47)
|
|
619
|
+
break;
|
|
620
|
+
return "/*" + wt(t, Z - 1) + "*" + Wt(e === 47 ? e : Q());
|
|
621
|
+
}
|
|
622
|
+
function Nn(e) {
|
|
623
|
+
for (; !Pt(Ae()); )
|
|
624
|
+
Q();
|
|
625
|
+
return wt(e, Z);
|
|
626
|
+
}
|
|
627
|
+
function Hn(e) {
|
|
628
|
+
return On(ut("", null, null, null, [""], e = _n(e), 0, [0], e));
|
|
629
|
+
}
|
|
630
|
+
function ut(e, t, r, n, o, i, a, d, l) {
|
|
631
|
+
for (var u = 0, h = 0, f = a, m = 0, p = 0, g = 0, x = 1, w = 1, $ = 1, S = 0, E = "", I = o, M = i, j = n, y = E; w; )
|
|
632
|
+
switch (g = S, S = Q()) {
|
|
633
|
+
// (
|
|
634
|
+
case 40:
|
|
635
|
+
if (g != 108 && D(y, f - 1) == 58) {
|
|
636
|
+
lt(y += z(Rt(S), "&", "&\f"), "&\f", Mr(u ? d[u - 1] : 0)) != -1 && ($ = -1);
|
|
637
|
+
break;
|
|
638
|
+
}
|
|
639
|
+
// " ' [
|
|
640
|
+
case 34:
|
|
641
|
+
case 39:
|
|
642
|
+
case 91:
|
|
643
|
+
y += Rt(S);
|
|
644
|
+
break;
|
|
645
|
+
// \t \n \r \s
|
|
646
|
+
case 9:
|
|
647
|
+
case 10:
|
|
648
|
+
case 13:
|
|
649
|
+
case 32:
|
|
650
|
+
y += Pn(g);
|
|
651
|
+
break;
|
|
652
|
+
// \
|
|
653
|
+
case 92:
|
|
654
|
+
y += Ln(dt() - 1, 7);
|
|
655
|
+
continue;
|
|
656
|
+
// /
|
|
657
|
+
case 47:
|
|
658
|
+
switch (Ae()) {
|
|
659
|
+
case 42:
|
|
660
|
+
case 47:
|
|
661
|
+
Je(Fn(Dn(Q(), dt()), t, r, l), l);
|
|
662
|
+
break;
|
|
663
|
+
default:
|
|
664
|
+
y += "/";
|
|
665
|
+
}
|
|
666
|
+
break;
|
|
667
|
+
// {
|
|
668
|
+
case 123 * x:
|
|
669
|
+
d[u++] = re(y) * $;
|
|
670
|
+
// } ; \0
|
|
671
|
+
case 125 * x:
|
|
672
|
+
case 59:
|
|
673
|
+
case 0:
|
|
674
|
+
switch (S) {
|
|
675
|
+
// \0 }
|
|
676
|
+
case 0:
|
|
677
|
+
case 125:
|
|
678
|
+
w = 0;
|
|
679
|
+
// ;
|
|
680
|
+
case 59 + h:
|
|
681
|
+
$ == -1 && (y = z(y, /\f/g, "")), p > 0 && re(y) - f && Je(p > 32 ? dr(y + ";", n, r, f - 1, l) : dr(z(y, " ", "") + ";", n, r, f - 2, l), l);
|
|
682
|
+
break;
|
|
683
|
+
// @ ;
|
|
684
|
+
case 59:
|
|
685
|
+
y += ";";
|
|
686
|
+
// { rule/at-rule
|
|
687
|
+
default:
|
|
688
|
+
if (Je(j = lr(y, t, r, u, h, o, d, E, I = [], M = [], f, i), i), S === 123)
|
|
689
|
+
if (h === 0)
|
|
690
|
+
ut(y, t, j, j, I, i, f, d, M);
|
|
691
|
+
else
|
|
692
|
+
switch (m === 99 && D(y, 3) === 110 ? 100 : m) {
|
|
693
|
+
// d l m s
|
|
694
|
+
case 100:
|
|
695
|
+
case 108:
|
|
696
|
+
case 109:
|
|
697
|
+
case 115:
|
|
698
|
+
ut(e, j, j, n && Je(lr(e, j, j, 0, 0, o, d, E, o, I = [], f, M), M), o, M, f, d, n ? I : M);
|
|
699
|
+
break;
|
|
700
|
+
default:
|
|
701
|
+
ut(y, j, j, j, [""], M, 0, d, M);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
u = h = p = 0, x = $ = 1, E = y = "", f = a;
|
|
705
|
+
break;
|
|
706
|
+
// :
|
|
707
|
+
case 58:
|
|
708
|
+
f = 1 + re(y), p = g;
|
|
709
|
+
default:
|
|
710
|
+
if (x < 1) {
|
|
711
|
+
if (S == 123)
|
|
712
|
+
--x;
|
|
713
|
+
else if (S == 125 && x++ == 0 && Tn() == 125)
|
|
714
|
+
continue;
|
|
715
|
+
}
|
|
716
|
+
switch (y += Wt(S), S * x) {
|
|
717
|
+
// &
|
|
718
|
+
case 38:
|
|
719
|
+
$ = h > 0 ? 1 : (y += "\f", -1);
|
|
720
|
+
break;
|
|
721
|
+
// ,
|
|
722
|
+
case 44:
|
|
723
|
+
d[u++] = (re(y) - 1) * $, $ = 1;
|
|
724
|
+
break;
|
|
725
|
+
// @
|
|
726
|
+
case 64:
|
|
727
|
+
Ae() === 45 && (y += Rt(Q())), m = Ae(), h = f = re(E = y += Nn(dt())), S++;
|
|
728
|
+
break;
|
|
729
|
+
// -
|
|
730
|
+
case 45:
|
|
731
|
+
g === 45 && re(y) == 2 && (x = 0);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return i;
|
|
735
|
+
}
|
|
736
|
+
function lr(e, t, r, n, o, i, a, d, l, u, h, f) {
|
|
737
|
+
for (var m = o - 1, p = o === 0 ? i : [""], g = Br(p), x = 0, w = 0, $ = 0; x < n; ++x)
|
|
738
|
+
for (var S = 0, E = Pe(e, m + 1, m = Mr(w = a[x])), I = e; S < g; ++S)
|
|
739
|
+
(I = Rr(w > 0 ? p[S] + " " + E : z(E, /&\f/g, p[S]))) && (l[$++] = I);
|
|
740
|
+
return $t(e, t, r, o === 0 ? xt : d, l, u, h, f);
|
|
741
|
+
}
|
|
742
|
+
function Fn(e, t, r, n) {
|
|
743
|
+
return $t(e, t, r, zr, Wt(Bn()), Pe(e, 2, -2), 0, n);
|
|
744
|
+
}
|
|
745
|
+
function dr(e, t, r, n, o) {
|
|
746
|
+
return $t(e, t, r, Gt, Pe(e, 0, n), Pe(e, n + 1, -1), n, o);
|
|
747
|
+
}
|
|
748
|
+
function _r(e, t, r) {
|
|
749
|
+
switch (Mn(e, t)) {
|
|
750
|
+
// color-adjust
|
|
751
|
+
case 5103:
|
|
752
|
+
return B + "print-" + e + e;
|
|
753
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
754
|
+
case 5737:
|
|
755
|
+
case 4201:
|
|
756
|
+
case 3177:
|
|
757
|
+
case 3433:
|
|
758
|
+
case 1641:
|
|
759
|
+
case 4457:
|
|
760
|
+
case 2921:
|
|
761
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
762
|
+
case 5572:
|
|
763
|
+
case 6356:
|
|
764
|
+
case 5844:
|
|
765
|
+
case 3191:
|
|
766
|
+
case 6645:
|
|
767
|
+
case 3005:
|
|
768
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
769
|
+
case 6391:
|
|
770
|
+
case 5879:
|
|
771
|
+
case 5623:
|
|
772
|
+
case 6135:
|
|
773
|
+
case 4599:
|
|
774
|
+
case 4855:
|
|
775
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
776
|
+
case 4215:
|
|
777
|
+
case 6389:
|
|
778
|
+
case 5109:
|
|
779
|
+
case 5365:
|
|
780
|
+
case 5621:
|
|
781
|
+
case 3829:
|
|
782
|
+
return B + e + e;
|
|
783
|
+
// tab-size
|
|
784
|
+
case 4789:
|
|
785
|
+
return Ze + e + e;
|
|
786
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
787
|
+
case 5349:
|
|
788
|
+
case 4246:
|
|
789
|
+
case 4810:
|
|
790
|
+
case 6968:
|
|
791
|
+
case 2756:
|
|
792
|
+
return B + e + Ze + e + T + e + e;
|
|
793
|
+
// writing-mode
|
|
794
|
+
case 5936:
|
|
795
|
+
switch (D(e, t + 11)) {
|
|
796
|
+
// vertical-l(r)
|
|
797
|
+
case 114:
|
|
798
|
+
return B + e + T + z(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
799
|
+
// vertical-r(l)
|
|
800
|
+
case 108:
|
|
801
|
+
return B + e + T + z(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
802
|
+
// horizontal(-)tb
|
|
803
|
+
case 45:
|
|
804
|
+
return B + e + T + z(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
805
|
+
}
|
|
806
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
807
|
+
case 6828:
|
|
808
|
+
case 4268:
|
|
809
|
+
case 2903:
|
|
810
|
+
return B + e + T + e + e;
|
|
811
|
+
// order
|
|
812
|
+
case 6165:
|
|
813
|
+
return B + e + T + "flex-" + e + e;
|
|
814
|
+
// align-items
|
|
815
|
+
case 5187:
|
|
816
|
+
return B + e + z(e, /(\w+).+(:[^]+)/, B + "box-$1$2" + T + "flex-$1$2") + e;
|
|
817
|
+
// align-self
|
|
818
|
+
case 5443:
|
|
819
|
+
return B + e + T + "flex-item-" + z(e, /flex-|-self/g, "") + (le(e, /flex-|baseline/) ? "" : T + "grid-row-" + z(e, /flex-|-self/g, "")) + e;
|
|
820
|
+
// align-content
|
|
821
|
+
case 4675:
|
|
822
|
+
return B + e + T + "flex-line-pack" + z(e, /align-content|flex-|-self/g, "") + e;
|
|
823
|
+
// flex-shrink
|
|
824
|
+
case 5548:
|
|
825
|
+
return B + e + T + z(e, "shrink", "negative") + e;
|
|
826
|
+
// flex-basis
|
|
827
|
+
case 5292:
|
|
828
|
+
return B + e + T + z(e, "basis", "preferred-size") + e;
|
|
829
|
+
// flex-grow
|
|
830
|
+
case 6060:
|
|
831
|
+
return B + "box-" + z(e, "-grow", "") + B + e + T + z(e, "grow", "positive") + e;
|
|
832
|
+
// transition
|
|
833
|
+
case 4554:
|
|
834
|
+
return B + z(e, /([^-])(transform)/g, "$1" + B + "$2") + e;
|
|
835
|
+
// cursor
|
|
836
|
+
case 6187:
|
|
837
|
+
return z(z(z(e, /(zoom-|grab)/, B + "$1"), /(image-set)/, B + "$1"), e, "") + e;
|
|
838
|
+
// background, background-image
|
|
839
|
+
case 5495:
|
|
840
|
+
case 3959:
|
|
841
|
+
return z(e, /(image-set\([^]*)/, B + "$1$`$1");
|
|
842
|
+
// justify-content
|
|
843
|
+
case 4968:
|
|
844
|
+
return z(z(e, /(.+:)(flex-)?(.*)/, B + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + B + e + e;
|
|
845
|
+
// justify-self
|
|
846
|
+
case 4200:
|
|
847
|
+
if (!le(e, /flex-|baseline/)) return T + "grid-column-align" + Pe(e, t) + e;
|
|
848
|
+
break;
|
|
849
|
+
// grid-template-(columns|rows)
|
|
850
|
+
case 2592:
|
|
851
|
+
case 3360:
|
|
852
|
+
return T + z(e, "template-", "") + e;
|
|
853
|
+
// grid-(row|column)-start
|
|
854
|
+
case 4384:
|
|
855
|
+
case 3616:
|
|
856
|
+
return r && r.some(function(n, o) {
|
|
857
|
+
return t = o, le(n.props, /grid-\w+-end/);
|
|
858
|
+
}) ? ~lt(e + (r = r[t].value), "span", 0) ? e : T + z(e, "-start", "") + e + T + "grid-row-span:" + (~lt(r, "span", 0) ? le(r, /\d+/) : +le(r, /\d+/) - +le(e, /\d+/)) + ";" : T + z(e, "-start", "") + e;
|
|
859
|
+
// grid-(row|column)-end
|
|
860
|
+
case 4896:
|
|
861
|
+
case 4128:
|
|
862
|
+
return r && r.some(function(n) {
|
|
863
|
+
return le(n.props, /grid-\w+-start/);
|
|
864
|
+
}) ? e : T + z(z(e, "-end", "-span"), "span ", "") + e;
|
|
865
|
+
// (margin|padding)-inline-(start|end)
|
|
866
|
+
case 4095:
|
|
867
|
+
case 3583:
|
|
868
|
+
case 4068:
|
|
869
|
+
case 2532:
|
|
870
|
+
return z(e, /(.+)-inline(.+)/, B + "$1$2") + e;
|
|
871
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
872
|
+
case 8116:
|
|
873
|
+
case 7059:
|
|
874
|
+
case 5753:
|
|
875
|
+
case 5535:
|
|
876
|
+
case 5445:
|
|
877
|
+
case 5701:
|
|
878
|
+
case 4933:
|
|
879
|
+
case 4677:
|
|
880
|
+
case 5533:
|
|
881
|
+
case 5789:
|
|
882
|
+
case 5021:
|
|
883
|
+
case 4765:
|
|
884
|
+
if (re(e) - 1 - t > 6)
|
|
885
|
+
switch (D(e, t + 1)) {
|
|
886
|
+
// (m)ax-content, (m)in-content
|
|
887
|
+
case 109:
|
|
888
|
+
if (D(e, t + 4) !== 45)
|
|
889
|
+
break;
|
|
890
|
+
// (f)ill-available, (f)it-content
|
|
891
|
+
case 102:
|
|
892
|
+
return z(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Ze + (D(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
893
|
+
// (s)tretch
|
|
894
|
+
case 115:
|
|
895
|
+
return ~lt(e, "stretch", 0) ? _r(z(e, "stretch", "fill-available"), t, r) + e : e;
|
|
896
|
+
}
|
|
897
|
+
break;
|
|
898
|
+
// grid-(column|row)
|
|
899
|
+
case 5152:
|
|
900
|
+
case 5920:
|
|
901
|
+
return z(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, a, d, l, u) {
|
|
902
|
+
return T + o + ":" + i + u + (a ? T + o + "-span:" + (d ? l : +l - +i) + u : "") + e;
|
|
903
|
+
});
|
|
904
|
+
// position: sticky
|
|
905
|
+
case 4949:
|
|
906
|
+
if (D(e, t + 6) === 121)
|
|
907
|
+
return z(e, ":", ":" + B) + e;
|
|
908
|
+
break;
|
|
909
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
910
|
+
case 6444:
|
|
911
|
+
switch (D(e, D(e, 14) === 45 ? 18 : 11)) {
|
|
912
|
+
// (inline-)?fle(x)
|
|
913
|
+
case 120:
|
|
914
|
+
return z(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + B + (D(e, 14) === 45 ? "inline-" : "") + "box$3$1" + B + "$2$3$1" + T + "$2box$3") + e;
|
|
915
|
+
// (inline-)?gri(d)
|
|
916
|
+
case 100:
|
|
917
|
+
return z(e, ":", ":" + T) + e;
|
|
918
|
+
}
|
|
919
|
+
break;
|
|
920
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
921
|
+
case 5719:
|
|
922
|
+
case 2647:
|
|
923
|
+
case 2135:
|
|
924
|
+
case 3927:
|
|
925
|
+
case 2391:
|
|
926
|
+
return z(e, "scroll-", "scroll-snap-") + e;
|
|
927
|
+
}
|
|
928
|
+
return e;
|
|
929
|
+
}
|
|
930
|
+
function pt(e, t) {
|
|
931
|
+
for (var r = "", n = 0; n < e.length; n++)
|
|
932
|
+
r += t(e[n], n, e, t) || "";
|
|
933
|
+
return r;
|
|
934
|
+
}
|
|
935
|
+
function Vn(e, t, r, n) {
|
|
936
|
+
switch (e.type) {
|
|
937
|
+
case In:
|
|
938
|
+
if (e.children.length) break;
|
|
939
|
+
case zn:
|
|
940
|
+
case Gt:
|
|
941
|
+
return e.return = e.return || e.value;
|
|
942
|
+
case zr:
|
|
943
|
+
return "";
|
|
944
|
+
case Ir:
|
|
945
|
+
return e.return = e.value + "{" + pt(e.children, n) + "}";
|
|
946
|
+
case xt:
|
|
947
|
+
if (!re(e.value = e.props.join(","))) return "";
|
|
948
|
+
}
|
|
949
|
+
return re(r = pt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
950
|
+
}
|
|
951
|
+
function Gn(e) {
|
|
952
|
+
var t = Br(e);
|
|
953
|
+
return function(r, n, o, i) {
|
|
954
|
+
for (var a = "", d = 0; d < t; d++)
|
|
955
|
+
a += e[d](r, n, o, i) || "";
|
|
956
|
+
return a;
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
function Wn(e) {
|
|
960
|
+
return function(t) {
|
|
961
|
+
t.root || (t = t.return) && e(t);
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
function Yn(e, t, r, n) {
|
|
965
|
+
if (e.length > -1 && !e.return)
|
|
966
|
+
switch (e.type) {
|
|
967
|
+
case Gt:
|
|
968
|
+
e.return = _r(e.value, e.length, r);
|
|
969
|
+
return;
|
|
970
|
+
case Ir:
|
|
971
|
+
return pt([me(e, { value: z(e.value, "@", "@" + B) })], n);
|
|
972
|
+
case xt:
|
|
973
|
+
if (e.length)
|
|
974
|
+
return Rn(r = e.props, function(o) {
|
|
975
|
+
switch (le(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
976
|
+
// :read-(only|write)
|
|
977
|
+
case ":read-only":
|
|
978
|
+
case ":read-write":
|
|
979
|
+
_e(me(e, { props: [z(o, /:(read-\w+)/, ":" + Ze + "$1")] })), _e(me(e, { props: [o] })), Ot(e, { props: cr(r, n) });
|
|
980
|
+
break;
|
|
981
|
+
// :placeholder
|
|
982
|
+
case "::placeholder":
|
|
983
|
+
_e(me(e, { props: [z(o, /:(plac\w+)/, ":" + B + "input-$1")] })), _e(me(e, { props: [z(o, /:(plac\w+)/, ":" + Ze + "$1")] })), _e(me(e, { props: [z(o, /:(plac\w+)/, T + "input-$1")] })), _e(me(e, { props: [o] })), Ot(e, { props: cr(r, n) });
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
return "";
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
var Un = {
|
|
991
|
+
animationIterationCount: 1,
|
|
992
|
+
aspectRatio: 1,
|
|
993
|
+
borderImageOutset: 1,
|
|
994
|
+
borderImageSlice: 1,
|
|
995
|
+
borderImageWidth: 1,
|
|
996
|
+
boxFlex: 1,
|
|
997
|
+
boxFlexGroup: 1,
|
|
998
|
+
boxOrdinalGroup: 1,
|
|
999
|
+
columnCount: 1,
|
|
1000
|
+
columns: 1,
|
|
1001
|
+
flex: 1,
|
|
1002
|
+
flexGrow: 1,
|
|
1003
|
+
flexPositive: 1,
|
|
1004
|
+
flexShrink: 1,
|
|
1005
|
+
flexNegative: 1,
|
|
1006
|
+
flexOrder: 1,
|
|
1007
|
+
gridRow: 1,
|
|
1008
|
+
gridRowEnd: 1,
|
|
1009
|
+
gridRowSpan: 1,
|
|
1010
|
+
gridRowStart: 1,
|
|
1011
|
+
gridColumn: 1,
|
|
1012
|
+
gridColumnEnd: 1,
|
|
1013
|
+
gridColumnSpan: 1,
|
|
1014
|
+
gridColumnStart: 1,
|
|
1015
|
+
msGridRow: 1,
|
|
1016
|
+
msGridRowSpan: 1,
|
|
1017
|
+
msGridColumn: 1,
|
|
1018
|
+
msGridColumnSpan: 1,
|
|
1019
|
+
fontWeight: 1,
|
|
1020
|
+
lineHeight: 1,
|
|
1021
|
+
opacity: 1,
|
|
1022
|
+
order: 1,
|
|
1023
|
+
orphans: 1,
|
|
1024
|
+
tabSize: 1,
|
|
1025
|
+
widows: 1,
|
|
1026
|
+
zIndex: 1,
|
|
1027
|
+
zoom: 1,
|
|
1028
|
+
WebkitLineClamp: 1,
|
|
1029
|
+
// SVG-related properties
|
|
1030
|
+
fillOpacity: 1,
|
|
1031
|
+
floodOpacity: 1,
|
|
1032
|
+
stopOpacity: 1,
|
|
1033
|
+
strokeDasharray: 1,
|
|
1034
|
+
strokeDashoffset: 1,
|
|
1035
|
+
strokeMiterlimit: 1,
|
|
1036
|
+
strokeOpacity: 1,
|
|
1037
|
+
strokeWidth: 1
|
|
1038
|
+
}, Ie = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Or = "active", Pr = "data-styled-version", St = "6.1.15", Yt = `/*!sc*/
|
|
1039
|
+
`, mt = typeof window < "u" && "HTMLElement" in window, Kn = !!(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"), ur = /invalid hook call/i, st = /* @__PURE__ */ new Set(), qn = function(e, t) {
|
|
1040
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1041
|
+
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1042
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1043
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
|
|
1044
|
+
try {
|
|
1045
|
+
var i = !0;
|
|
1046
|
+
console.error = function(a) {
|
|
1047
|
+
for (var d = [], l = 1; l < arguments.length; l++) d[l - 1] = arguments[l];
|
|
1048
|
+
ur.test(a) ? (i = !1, st.delete(n)) : o.apply(void 0, Oe([a], d, !1));
|
|
1049
|
+
}, ve(), i && !st.has(n) && (console.warn(n), st.add(n));
|
|
1050
|
+
} catch (a) {
|
|
1051
|
+
ur.test(a.message) && st.delete(n);
|
|
1052
|
+
} finally {
|
|
1053
|
+
console.error = o;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}, kt = Object.freeze([]), De = Object.freeze({});
|
|
1057
|
+
function Xn(e, t, r) {
|
|
1058
|
+
return r === void 0 && (r = De), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1059
|
+
}
|
|
1060
|
+
var Dt = /* @__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"]), Jn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Zn = /(^-|-$)/g;
|
|
1061
|
+
function hr(e) {
|
|
1062
|
+
return e.replace(Jn, "-").replace(Zn, "");
|
|
1063
|
+
}
|
|
1064
|
+
var Qn = /(a)(d)/gi, it = 52, fr = function(e) {
|
|
1065
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1066
|
+
};
|
|
1067
|
+
function Nt(e) {
|
|
1068
|
+
var t, r = "";
|
|
1069
|
+
for (t = Math.abs(e); t > it; t = t / it | 0) r = fr(t % it) + r;
|
|
1070
|
+
return (fr(t % it) + r).replace(Qn, "$1-$2");
|
|
1071
|
+
}
|
|
1072
|
+
var Bt, Lr = 5381, Ce = function(e, t) {
|
|
1073
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1074
|
+
return e;
|
|
1075
|
+
}, Dr = function(e) {
|
|
1076
|
+
return Ce(Lr, e);
|
|
1077
|
+
};
|
|
1078
|
+
function eo(e) {
|
|
1079
|
+
return Nt(Dr(e) >>> 0);
|
|
1080
|
+
}
|
|
1081
|
+
function Nr(e) {
|
|
1082
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1083
|
+
}
|
|
1084
|
+
function Tt(e) {
|
|
1085
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1086
|
+
}
|
|
1087
|
+
var Hr = typeof Symbol == "function" && Symbol.for, Fr = Hr ? Symbol.for("react.memo") : 60115, to = Hr ? Symbol.for("react.forward_ref") : 60112, ro = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, no = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Vr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, oo = ((Bt = {})[to] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Bt[Fr] = Vr, Bt);
|
|
1088
|
+
function pr(e) {
|
|
1089
|
+
return ("type" in (t = e) && t.type.$$typeof) === Fr ? Vr : "$$typeof" in e ? oo[e.$$typeof] : ro;
|
|
1090
|
+
var t;
|
|
1091
|
+
}
|
|
1092
|
+
var so = Object.defineProperty, io = Object.getOwnPropertyNames, mr = Object.getOwnPropertySymbols, ao = Object.getOwnPropertyDescriptor, co = Object.getPrototypeOf, gr = Object.prototype;
|
|
1093
|
+
function Gr(e, t, r) {
|
|
1094
|
+
if (typeof t != "string") {
|
|
1095
|
+
if (gr) {
|
|
1096
|
+
var n = co(t);
|
|
1097
|
+
n && n !== gr && Gr(e, n, r);
|
|
1098
|
+
}
|
|
1099
|
+
var o = io(t);
|
|
1100
|
+
mr && (o = o.concat(mr(t)));
|
|
1101
|
+
for (var i = pr(e), a = pr(t), d = 0; d < o.length; ++d) {
|
|
1102
|
+
var l = o[d];
|
|
1103
|
+
if (!(l in no || r && r[l] || a && l in a || i && l in i)) {
|
|
1104
|
+
var u = ao(t, l);
|
|
1105
|
+
try {
|
|
1106
|
+
so(e, l, u);
|
|
1107
|
+
} catch {
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
return e;
|
|
1113
|
+
}
|
|
1114
|
+
function Ne(e) {
|
|
1115
|
+
return typeof e == "function";
|
|
1116
|
+
}
|
|
1117
|
+
function Ut(e) {
|
|
1118
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1119
|
+
}
|
|
1120
|
+
function Ee(e, t) {
|
|
1121
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1122
|
+
}
|
|
1123
|
+
function br(e, t) {
|
|
1124
|
+
if (e.length === 0) return "";
|
|
1125
|
+
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
1126
|
+
return r;
|
|
1127
|
+
}
|
|
1128
|
+
function He(e) {
|
|
1129
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1130
|
+
}
|
|
1131
|
+
function Ht(e, t, r) {
|
|
1132
|
+
if (r === void 0 && (r = !1), !r && !He(e) && !Array.isArray(e)) return t;
|
|
1133
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Ht(e[n], t[n]);
|
|
1134
|
+
else if (He(t)) for (var n in t) e[n] = Ht(e[n], t[n]);
|
|
1135
|
+
return e;
|
|
1136
|
+
}
|
|
1137
|
+
function Kt(e, t) {
|
|
1138
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1139
|
+
}
|
|
1140
|
+
var lo = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1141
|
+
|
|
1142
|
+
`, 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.
|
|
1143
|
+
|
|
1144
|
+
- Are you trying to reuse it across renders?
|
|
1145
|
+
- Are you accidentally calling collectStyles twice?
|
|
1146
|
+
|
|
1147
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1148
|
+
|
|
1149
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1150
|
+
|
|
1151
|
+
- Does this error occur on the client and is your target falsy?
|
|
1152
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1153
|
+
|
|
1154
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1155
|
+
|
|
1156
|
+
- Are you running in a client-like environment on the server?
|
|
1157
|
+
- Are you trying to run SSR on the client?
|
|
1158
|
+
|
|
1159
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1160
|
+
|
|
1161
|
+
- Are you using a custom target that isn't mounted?
|
|
1162
|
+
- Does your document not have a valid head element?
|
|
1163
|
+
- Have you accidentally removed a style tag manually?
|
|
1164
|
+
|
|
1165
|
+
`, 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.
|
|
1166
|
+
|
|
1167
|
+
`, 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
|
|
1168
|
+
|
|
1169
|
+
`, 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.
|
|
1170
|
+
|
|
1171
|
+
`, 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.
|
|
1172
|
+
|
|
1173
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1174
|
+
|
|
1175
|
+
`, 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.
|
|
1176
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1177
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1178
|
+
|
|
1179
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1180
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1181
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1182
|
+
function uo() {
|
|
1183
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1184
|
+
for (var r = e[0], n = [], o = 1, i = e.length; o < i; o += 1) n.push(e[o]);
|
|
1185
|
+
return n.forEach(function(a) {
|
|
1186
|
+
r = r.replace(/%[a-z]/, a);
|
|
1187
|
+
}), r;
|
|
1188
|
+
}
|
|
1189
|
+
function Ve(e) {
|
|
1190
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1191
|
+
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(uo.apply(void 0, Oe([lo[e]], t, !1)).trim());
|
|
1192
|
+
}
|
|
1193
|
+
var ho = function() {
|
|
1194
|
+
function e(t) {
|
|
1195
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1196
|
+
}
|
|
1197
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1198
|
+
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
1199
|
+
return r;
|
|
1200
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
1201
|
+
if (t >= this.groupSizes.length) {
|
|
1202
|
+
for (var n = this.groupSizes, o = n.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw Ve(16, "".concat(t));
|
|
1203
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1204
|
+
for (var a = o; a < i; a++) this.groupSizes[a] = 0;
|
|
1205
|
+
}
|
|
1206
|
+
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++);
|
|
1207
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1208
|
+
if (t < this.length) {
|
|
1209
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
1210
|
+
this.groupSizes[t] = 0;
|
|
1211
|
+
for (var i = n; i < o; i++) this.tag.deleteRule(n);
|
|
1212
|
+
}
|
|
1213
|
+
}, e.prototype.getGroup = function(t) {
|
|
1214
|
+
var r = "";
|
|
1215
|
+
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1216
|
+
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(Yt);
|
|
1217
|
+
return r;
|
|
1218
|
+
}, e;
|
|
1219
|
+
}(), fo = 1 << 30, ht = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), ft = 1, at = function(e) {
|
|
1220
|
+
if (ht.has(e)) return ht.get(e);
|
|
1221
|
+
for (; gt.has(ft); ) ft++;
|
|
1222
|
+
var t = ft++;
|
|
1223
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > fo)) throw Ve(16, "".concat(t));
|
|
1224
|
+
return ht.set(e, t), gt.set(t, e), t;
|
|
1225
|
+
}, po = function(e, t) {
|
|
1226
|
+
ft = t + 1, ht.set(e, t), gt.set(t, e);
|
|
1227
|
+
}, mo = "style[".concat(Ie, "][").concat(Pr, '="').concat(St, '"]'), go = new RegExp("^".concat(Ie, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), bo = function(e, t, r) {
|
|
1228
|
+
for (var n, o = r.split(","), i = 0, a = o.length; i < a; i++) (n = o[i]) && e.registerName(t, n);
|
|
1229
|
+
}, vo = function(e, t) {
|
|
1230
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Yt), o = [], i = 0, a = n.length; i < a; i++) {
|
|
1231
|
+
var d = n[i].trim();
|
|
1232
|
+
if (d) {
|
|
1233
|
+
var l = d.match(go);
|
|
1234
|
+
if (l) {
|
|
1235
|
+
var u = 0 | parseInt(l[1], 10), h = l[2];
|
|
1236
|
+
u !== 0 && (po(h, u), bo(e, h, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
|
|
1237
|
+
} else o.push(d);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
}, vr = function(e) {
|
|
1241
|
+
for (var t = document.querySelectorAll(mo), r = 0, n = t.length; r < n; r++) {
|
|
1242
|
+
var o = t[r];
|
|
1243
|
+
o && o.getAttribute(Ie) !== Or && (vo(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1246
|
+
function xo() {
|
|
1247
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1248
|
+
}
|
|
1249
|
+
var Wr = function(e) {
|
|
1250
|
+
var t = document.head, r = e || t, n = document.createElement("style"), o = function(d) {
|
|
1251
|
+
var l = Array.from(d.querySelectorAll("style[".concat(Ie, "]")));
|
|
1252
|
+
return l[l.length - 1];
|
|
1253
|
+
}(r), i = o !== void 0 ? o.nextSibling : null;
|
|
1254
|
+
n.setAttribute(Ie, Or), n.setAttribute(Pr, St);
|
|
1255
|
+
var a = xo();
|
|
1256
|
+
return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
|
|
1257
|
+
}, yo = function() {
|
|
1258
|
+
function e(t) {
|
|
1259
|
+
this.element = Wr(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1260
|
+
if (r.sheet) return r.sheet;
|
|
1261
|
+
for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
|
|
1262
|
+
var a = n[o];
|
|
1263
|
+
if (a.ownerNode === r) return a;
|
|
1264
|
+
}
|
|
1265
|
+
throw Ve(17);
|
|
1266
|
+
}(this.element), this.length = 0;
|
|
1267
|
+
}
|
|
1268
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1269
|
+
try {
|
|
1270
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1271
|
+
} catch {
|
|
1272
|
+
return !1;
|
|
1273
|
+
}
|
|
1274
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1275
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1276
|
+
}, e.prototype.getRule = function(t) {
|
|
1277
|
+
var r = this.sheet.cssRules[t];
|
|
1278
|
+
return r && r.cssText ? r.cssText : "";
|
|
1279
|
+
}, e;
|
|
1280
|
+
}(), $o = function() {
|
|
1281
|
+
function e(t) {
|
|
1282
|
+
this.element = Wr(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1283
|
+
}
|
|
1284
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1285
|
+
if (t <= this.length && t >= 0) {
|
|
1286
|
+
var n = document.createTextNode(r);
|
|
1287
|
+
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
1288
|
+
}
|
|
1289
|
+
return !1;
|
|
1290
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1291
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1292
|
+
}, e.prototype.getRule = function(t) {
|
|
1293
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1294
|
+
}, e;
|
|
1295
|
+
}(), wo = function() {
|
|
1296
|
+
function e(t) {
|
|
1297
|
+
this.rules = [], this.length = 0;
|
|
1298
|
+
}
|
|
1299
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1300
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1301
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1302
|
+
this.rules.splice(t, 1), this.length--;
|
|
1303
|
+
}, e.prototype.getRule = function(t) {
|
|
1304
|
+
return t < this.length ? this.rules[t] : "";
|
|
1305
|
+
}, e;
|
|
1306
|
+
}(), xr = mt, So = { isServer: !mt, useCSSOMInjection: !Kn }, Yr = function() {
|
|
1307
|
+
function e(t, r, n) {
|
|
1308
|
+
t === void 0 && (t = De), r === void 0 && (r = {});
|
|
1309
|
+
var o = this;
|
|
1310
|
+
this.options = G(G({}, So), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && mt && xr && (xr = !1, vr(this)), Kt(this, function() {
|
|
1311
|
+
return function(i) {
|
|
1312
|
+
for (var a = i.getTag(), d = a.length, l = "", u = function(f) {
|
|
1313
|
+
var m = function($) {
|
|
1314
|
+
return gt.get($);
|
|
1315
|
+
}(f);
|
|
1316
|
+
if (m === void 0) return "continue";
|
|
1317
|
+
var p = i.names.get(m), g = a.getGroup(f);
|
|
1318
|
+
if (p === void 0 || !p.size || g.length === 0) return "continue";
|
|
1319
|
+
var x = "".concat(Ie, ".g").concat(f, '[id="').concat(m, '"]'), w = "";
|
|
1320
|
+
p !== void 0 && p.forEach(function($) {
|
|
1321
|
+
$.length > 0 && (w += "".concat($, ","));
|
|
1322
|
+
}), l += "".concat(g).concat(x, '{content:"').concat(w, '"}').concat(Yt);
|
|
1323
|
+
}, h = 0; h < d; h++) u(h);
|
|
1324
|
+
return l;
|
|
1325
|
+
}(o);
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
return e.registerId = function(t) {
|
|
1329
|
+
return at(t);
|
|
1330
|
+
}, e.prototype.rehydrate = function() {
|
|
1331
|
+
!this.server && mt && vr(this);
|
|
1332
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1333
|
+
return r === void 0 && (r = !0), new e(G(G({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1334
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1335
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1336
|
+
}, e.prototype.getTag = function() {
|
|
1337
|
+
return this.tag || (this.tag = (t = function(r) {
|
|
1338
|
+
var n = r.useCSSOMInjection, o = r.target;
|
|
1339
|
+
return r.isServer ? new wo(o) : n ? new yo(o) : new $o(o);
|
|
1340
|
+
}(this.options), new ho(t)));
|
|
1341
|
+
var t;
|
|
1342
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
1343
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
1344
|
+
}, e.prototype.registerName = function(t, r) {
|
|
1345
|
+
if (at(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1346
|
+
else {
|
|
1347
|
+
var n = /* @__PURE__ */ new Set();
|
|
1348
|
+
n.add(r), this.names.set(t, n);
|
|
1349
|
+
}
|
|
1350
|
+
}, e.prototype.insertRules = function(t, r, n) {
|
|
1351
|
+
this.registerName(t, r), this.getTag().insertRules(at(t), n);
|
|
1352
|
+
}, e.prototype.clearNames = function(t) {
|
|
1353
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1354
|
+
}, e.prototype.clearRules = function(t) {
|
|
1355
|
+
this.getTag().clearGroup(at(t)), this.clearNames(t);
|
|
1356
|
+
}, e.prototype.clearTag = function() {
|
|
1357
|
+
this.tag = void 0;
|
|
1358
|
+
}, e;
|
|
1359
|
+
}(), ko = /&/g, jo = /^\s*\/\/.*$/gm;
|
|
1360
|
+
function Ur(e, t) {
|
|
1361
|
+
return e.map(function(r) {
|
|
1362
|
+
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) {
|
|
1363
|
+
return "".concat(t, " ").concat(n);
|
|
1364
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ur(r.children, t)), r;
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
function Co(e) {
|
|
1368
|
+
var t, r, n, o = De, i = o.options, a = i === void 0 ? De : i, d = o.plugins, l = d === void 0 ? kt : d, u = function(m, p, g) {
|
|
1369
|
+
return g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(t) : m;
|
|
1370
|
+
}, h = l.slice();
|
|
1371
|
+
h.push(function(m) {
|
|
1372
|
+
m.type === xt && m.value.includes("&") && (m.props[0] = m.props[0].replace(ko, r).replace(n, u));
|
|
1373
|
+
}), a.prefix && h.push(Yn), h.push(Vn);
|
|
1374
|
+
var f = function(m, p, g, x) {
|
|
1375
|
+
p === void 0 && (p = ""), g === void 0 && (g = ""), x === void 0 && (x = "&"), t = x, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1376
|
+
var w = m.replace(jo, ""), $ = Hn(g || p ? "".concat(g, " ").concat(p, " { ").concat(w, " }") : w);
|
|
1377
|
+
a.namespace && ($ = Ur($, a.namespace));
|
|
1378
|
+
var S = [];
|
|
1379
|
+
return pt($, Gn(h.concat(Wn(function(E) {
|
|
1380
|
+
return S.push(E);
|
|
1381
|
+
})))), S;
|
|
1382
|
+
};
|
|
1383
|
+
return f.hash = l.length ? l.reduce(function(m, p) {
|
|
1384
|
+
return p.name || Ve(15), Ce(m, p.name);
|
|
1385
|
+
}, Lr).toString() : "", f;
|
|
1386
|
+
}
|
|
1387
|
+
var Eo = new Yr(), Ft = Co(), Kr = be.createContext({ shouldForwardProp: void 0, styleSheet: Eo, stylis: Ft });
|
|
1388
|
+
Kr.Consumer;
|
|
1389
|
+
be.createContext(void 0);
|
|
1390
|
+
function yr() {
|
|
1391
|
+
return xe(Kr);
|
|
1392
|
+
}
|
|
1393
|
+
var $r = function() {
|
|
1394
|
+
function e(t, r) {
|
|
1395
|
+
var n = this;
|
|
1396
|
+
this.inject = function(o, i) {
|
|
1397
|
+
i === void 0 && (i = Ft);
|
|
1398
|
+
var a = n.name + i.hash;
|
|
1399
|
+
o.hasNameForId(n.id, a) || o.insertRules(n.id, a, i(n.rules, a, "@keyframes"));
|
|
1400
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Kt(this, function() {
|
|
1401
|
+
throw Ve(12, String(n.name));
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
return e.prototype.getName = function(t) {
|
|
1405
|
+
return t === void 0 && (t = Ft), this.name + t.hash;
|
|
1406
|
+
}, e;
|
|
1407
|
+
}(), Ao = function(e) {
|
|
1408
|
+
return e >= "A" && e <= "Z";
|
|
1409
|
+
};
|
|
1410
|
+
function wr(e) {
|
|
1411
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
1412
|
+
var n = e[r];
|
|
1413
|
+
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
1414
|
+
Ao(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
1415
|
+
}
|
|
1416
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1417
|
+
}
|
|
1418
|
+
var qr = function(e) {
|
|
1419
|
+
return e == null || e === !1 || e === "";
|
|
1420
|
+
}, Xr = function(e) {
|
|
1421
|
+
var t, r, n = [];
|
|
1422
|
+
for (var o in e) {
|
|
1423
|
+
var i = e[o];
|
|
1424
|
+
e.hasOwnProperty(o) && !qr(i) && (Array.isArray(i) && i.isCss || Ne(i) ? n.push("".concat(wr(o), ":"), i, ";") : He(i) ? n.push.apply(n, Oe(Oe(["".concat(o, " {")], Xr(i), !1), ["}"], !1)) : n.push("".concat(wr(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Un || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1425
|
+
}
|
|
1426
|
+
return n;
|
|
1427
|
+
};
|
|
1428
|
+
function ze(e, t, r, n) {
|
|
1429
|
+
if (qr(e)) return [];
|
|
1430
|
+
if (Ut(e)) return [".".concat(e.styledComponentId)];
|
|
1431
|
+
if (Ne(e)) {
|
|
1432
|
+
if (!Ne(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1433
|
+
var o = e(t);
|
|
1434
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof $r || He(o) || o === null || console.error("".concat(Nr(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.")), ze(o, t, r, n);
|
|
1435
|
+
}
|
|
1436
|
+
var i;
|
|
1437
|
+
return e instanceof $r ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : He(e) ? Xr(e) : Array.isArray(e) ? Array.prototype.concat.apply(kt, e.map(function(a) {
|
|
1438
|
+
return ze(a, t, r, n);
|
|
1439
|
+
})) : [e.toString()];
|
|
1440
|
+
}
|
|
1441
|
+
function zo(e) {
|
|
1442
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1443
|
+
var r = e[t];
|
|
1444
|
+
if (Ne(r) && !Ut(r)) return !1;
|
|
1445
|
+
}
|
|
1446
|
+
return !0;
|
|
1447
|
+
}
|
|
1448
|
+
var Io = Dr(St), Mo = function() {
|
|
1449
|
+
function e(t, r, n) {
|
|
1450
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && zo(t), this.componentId = r, this.baseHash = Ce(Io, r), this.baseStyle = n, Yr.registerId(r);
|
|
1451
|
+
}
|
|
1452
|
+
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1453
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1454
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = Ee(o, this.staticRulesId);
|
|
1455
|
+
else {
|
|
1456
|
+
var i = br(ze(this.rules, t, r, n)), a = Nt(Ce(this.baseHash, i) >>> 0);
|
|
1457
|
+
if (!r.hasNameForId(this.componentId, a)) {
|
|
1458
|
+
var d = n(i, ".".concat(a), void 0, this.componentId);
|
|
1459
|
+
r.insertRules(this.componentId, a, d);
|
|
1460
|
+
}
|
|
1461
|
+
o = Ee(o, a), this.staticRulesId = a;
|
|
1462
|
+
}
|
|
1463
|
+
else {
|
|
1464
|
+
for (var l = Ce(this.baseHash, n.hash), u = "", h = 0; h < this.rules.length; h++) {
|
|
1465
|
+
var f = this.rules[h];
|
|
1466
|
+
if (typeof f == "string") u += f, process.env.NODE_ENV !== "production" && (l = Ce(l, f));
|
|
1467
|
+
else if (f) {
|
|
1468
|
+
var m = br(ze(f, t, r, n));
|
|
1469
|
+
l = Ce(l, m + h), u += m;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
if (u) {
|
|
1473
|
+
var p = Nt(l >>> 0);
|
|
1474
|
+
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(u, ".".concat(p), void 0, this.componentId)), o = Ee(o, p);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
return o;
|
|
1478
|
+
}, e;
|
|
1479
|
+
}(), Jr = be.createContext(void 0);
|
|
1480
|
+
Jr.Consumer;
|
|
1481
|
+
var _t = {}, Sr = /* @__PURE__ */ new Set();
|
|
1482
|
+
function Ro(e, t, r) {
|
|
1483
|
+
var n = Ut(e), o = e, i = !Tt(e), a = t.attrs, d = a === void 0 ? kt : a, l = t.componentId, u = l === void 0 ? function(I, M) {
|
|
1484
|
+
var j = typeof I != "string" ? "sc" : hr(I);
|
|
1485
|
+
_t[j] = (_t[j] || 0) + 1;
|
|
1486
|
+
var y = "".concat(j, "-").concat(eo(St + j + _t[j]));
|
|
1487
|
+
return M ? "".concat(M, "-").concat(y) : y;
|
|
1488
|
+
}(t.displayName, t.parentComponentId) : l, h = t.displayName, f = h === void 0 ? function(I) {
|
|
1489
|
+
return Tt(I) ? "styled.".concat(I) : "Styled(".concat(Nr(I), ")");
|
|
1490
|
+
}(e) : h, m = t.displayName && t.componentId ? "".concat(hr(t.displayName), "-").concat(t.componentId) : t.componentId || u, p = n && o.attrs ? o.attrs.concat(d).filter(Boolean) : d, g = t.shouldForwardProp;
|
|
1491
|
+
if (n && o.shouldForwardProp) {
|
|
1492
|
+
var x = o.shouldForwardProp;
|
|
1493
|
+
if (t.shouldForwardProp) {
|
|
1494
|
+
var w = t.shouldForwardProp;
|
|
1495
|
+
g = function(I, M) {
|
|
1496
|
+
return x(I, M) && w(I, M);
|
|
1497
|
+
};
|
|
1498
|
+
} else g = x;
|
|
1499
|
+
}
|
|
1500
|
+
var $ = new Mo(r, m, n ? o.componentStyle : void 0);
|
|
1501
|
+
function S(I, M) {
|
|
1502
|
+
return function(j, y, P) {
|
|
1503
|
+
var Y = j.attrs, ne = j.componentStyle, ee = j.defaultProps, oe = j.foldedComponentIds, q = j.styledComponentId, Ye = j.target, Ue = be.useContext(Jr), zt = yr(), Re = j.shouldForwardProp || zt.shouldForwardProp;
|
|
1504
|
+
process.env.NODE_ENV !== "production" && or(q);
|
|
1505
|
+
var rt = Xn(y, Ue, ee) || De, N = function(we, fe, Se) {
|
|
1506
|
+
for (var ie, te = G(G({}, fe), { className: void 0, theme: Se }), Be = 0; Be < we.length; Be += 1) {
|
|
1507
|
+
var ke = Ne(ie = we[Be]) ? ie(te) : ie;
|
|
1508
|
+
for (var X in ke) te[X] = X === "className" ? Ee(te[X], ke[X]) : X === "style" ? G(G({}, te[X]), ke[X]) : ke[X];
|
|
1509
|
+
}
|
|
1510
|
+
return fe.className && (te.className = Ee(te.className, fe.className)), te;
|
|
1511
|
+
}(Y, y, rt), he = N.as || Ye, U = {};
|
|
1512
|
+
for (var V in N) N[V] === void 0 || V[0] === "$" || V === "as" || V === "theme" && N.theme === rt || (V === "forwardedAs" ? U.as = N.forwardedAs : Re && !Re(V, he) || (U[V] = N[V], Re || process.env.NODE_ENV !== "development" || An(V) || Sr.has(V) || !Dt.has(he) || (Sr.add(V), console.warn('styled-components: it looks like an unknown prop "'.concat(V, '" 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.)')))));
|
|
1513
|
+
var $e = function(we, fe) {
|
|
1514
|
+
var Se = yr(), ie = we.generateAndInjectStyles(fe, Se.styleSheet, Se.stylis);
|
|
1515
|
+
return process.env.NODE_ENV !== "production" && or(ie), ie;
|
|
1516
|
+
}(ne, N);
|
|
1517
|
+
process.env.NODE_ENV !== "production" && j.warnTooManyClasses && j.warnTooManyClasses($e);
|
|
1518
|
+
var se = Ee(oe, q);
|
|
1519
|
+
return $e && (se += " " + $e), N.className && (se += " " + N.className), U[Tt(he) && !Dt.has(he) ? "class" : "className"] = se, P && (U.ref = P), yn(he, U);
|
|
1520
|
+
}(E, I, M);
|
|
1521
|
+
}
|
|
1522
|
+
S.displayName = f;
|
|
1523
|
+
var E = be.forwardRef(S);
|
|
1524
|
+
return E.attrs = p, E.componentStyle = $, E.displayName = f, E.shouldForwardProp = g, E.foldedComponentIds = n ? Ee(o.foldedComponentIds, o.styledComponentId) : "", E.styledComponentId = m, E.target = n ? o.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
1525
|
+
return this._foldedDefaultProps;
|
|
1526
|
+
}, set: function(I) {
|
|
1527
|
+
this._foldedDefaultProps = n ? function(M) {
|
|
1528
|
+
for (var j = [], y = 1; y < arguments.length; y++) j[y - 1] = arguments[y];
|
|
1529
|
+
for (var P = 0, Y = j; P < Y.length; P++) Ht(M, Y[P], !0);
|
|
1530
|
+
return M;
|
|
1531
|
+
}({}, o.defaultProps, I) : I;
|
|
1532
|
+
} }), process.env.NODE_ENV !== "production" && (qn(f, m), E.warnTooManyClasses = /* @__PURE__ */ function(I, M) {
|
|
1533
|
+
var j = {}, y = !1;
|
|
1534
|
+
return function(P) {
|
|
1535
|
+
if (!y && (j[P] = !0, Object.keys(j).length >= 200)) {
|
|
1536
|
+
var Y = M ? ' with the id of "'.concat(M, '"') : "";
|
|
1537
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(I).concat(Y, `.
|
|
1538
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1539
|
+
Example:
|
|
1540
|
+
const Component = styled.div.attrs(props => ({
|
|
1541
|
+
style: {
|
|
1542
|
+
background: props.background,
|
|
1543
|
+
},
|
|
1544
|
+
}))\`width: 100%;\`
|
|
1545
|
+
|
|
1546
|
+
<Component />`), y = !0, j = {};
|
|
1547
|
+
}
|
|
1548
|
+
};
|
|
1549
|
+
}(f, m)), Kt(E, function() {
|
|
1550
|
+
return ".".concat(E.styledComponentId);
|
|
1551
|
+
}), i && Gr(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), E;
|
|
1552
|
+
}
|
|
1553
|
+
function kr(e, t) {
|
|
1554
|
+
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1555
|
+
return r;
|
|
1556
|
+
}
|
|
1557
|
+
var jr = function(e) {
|
|
1558
|
+
return Object.assign(e, { isCss: !0 });
|
|
1559
|
+
};
|
|
1560
|
+
function Bo(e) {
|
|
1561
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1562
|
+
if (Ne(e) || He(e)) return jr(ze(kr(kt, Oe([e], t, !0))));
|
|
1563
|
+
var n = e;
|
|
1564
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ze(n) : jr(ze(kr(n, t)));
|
|
1565
|
+
}
|
|
1566
|
+
function Vt(e, t, r) {
|
|
1567
|
+
if (r === void 0 && (r = De), !t) throw Ve(1, t);
|
|
1568
|
+
var n = function(o) {
|
|
1569
|
+
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
1570
|
+
return e(t, r, Bo.apply(void 0, Oe([o], i, !1)));
|
|
1571
|
+
};
|
|
1572
|
+
return n.attrs = function(o) {
|
|
1573
|
+
return Vt(e, t, G(G({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1574
|
+
}, n.withConfig = function(o) {
|
|
1575
|
+
return Vt(e, t, G(G({}, r), o));
|
|
1576
|
+
}, n;
|
|
1577
|
+
}
|
|
1578
|
+
var Zr = function(e) {
|
|
1579
|
+
return Vt(Ro, e);
|
|
1580
|
+
}, k = Zr;
|
|
1581
|
+
Dt.forEach(function(e) {
|
|
1582
|
+
k[e] = Zr(e);
|
|
1583
|
+
});
|
|
1584
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1585
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1586
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1587
|
+
var ct = "__sc-".concat(Ie, "__");
|
|
1588
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ct] || (window[ct] = 0), window[ct] === 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.
|
|
1589
|
+
|
|
1590
|
+
See https://s-c.sh/2BAXzed for more info.`), window[ct] += 1);
|
|
1591
|
+
const Ge = `
|
|
1592
|
+
animation: fadeIn ease 400ms;
|
|
1593
|
+
-webkit-animation: fadeIn ease 400ms;
|
|
1594
|
+
-moz-animation: fadeIn ease 400ms;
|
|
1595
|
+
|
|
1596
|
+
@keyframes fadeIn {
|
|
1597
|
+
0% {
|
|
1598
|
+
opacity: 0;
|
|
1599
|
+
}
|
|
1600
|
+
100% {
|
|
1601
|
+
opacity: 1;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
@-moz-keyframes fadeIn {
|
|
1606
|
+
0% {
|
|
1607
|
+
opacity: 0;
|
|
1608
|
+
}
|
|
1609
|
+
100% {
|
|
1610
|
+
opacity: 1;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
@-webkit-keyframes fadeIn {
|
|
1615
|
+
0% {
|
|
1616
|
+
opacity: 0;
|
|
1617
|
+
}
|
|
1618
|
+
100% {
|
|
1619
|
+
opacity: 1;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
`, Qr = `
|
|
1623
|
+
animation: fadeOut ease 400ms;
|
|
1624
|
+
-webkit-animation: fadeOut ease 400ms;
|
|
1625
|
+
-moz-animation: fadeOut ease 400ms;
|
|
1626
|
+
|
|
1627
|
+
@keyframes fadeOut {
|
|
1628
|
+
0% {
|
|
1629
|
+
opacity: 1;
|
|
1630
|
+
}
|
|
1631
|
+
100% {
|
|
1632
|
+
opacity: 0;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
@-moz-keyframes fadeOut {
|
|
1637
|
+
0% {
|
|
1638
|
+
opacity: 1;
|
|
1639
|
+
}
|
|
1640
|
+
100% {
|
|
1641
|
+
opacity: 0;
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
@-webkit-keyframes fadeOut {
|
|
1646
|
+
0% {
|
|
1647
|
+
opacity: 1;
|
|
1648
|
+
}
|
|
1649
|
+
100% {
|
|
1650
|
+
opacity: 0;
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
`, To = Object.freeze({
|
|
1654
|
+
/* Very small devices (phones, 600px and down) */
|
|
1655
|
+
/* @media only screen and (max-width: 600px) {...} */
|
|
1656
|
+
phones: "only screen and (max-width: 600px)",
|
|
1657
|
+
/* Small devices (portrait tablets and large phones, 600px and up) */
|
|
1658
|
+
/* @media only screen and (min-width: 600px) {...} */
|
|
1659
|
+
portraitTablets: "only screen and (min-width: 600px)",
|
|
1660
|
+
/* Medium devices (landscape tablets, 768px and up) */
|
|
1661
|
+
/* @media only screen and (min-width: 768px) {...} */
|
|
1662
|
+
landscapeTablets: "only screen and (min-width: 768px)",
|
|
1663
|
+
/* Large devices (laptops/desktops, 992px and up) */
|
|
1664
|
+
/* @media only screen and (min-width: 992px) {...} */
|
|
1665
|
+
laptops: "only screen and (min-width: 992px)",
|
|
1666
|
+
/* Extra large devices (large laptops and desktops, 1200px and up) */
|
|
1667
|
+
/* @media only screen and (min-width: 1200px) {...} */
|
|
1668
|
+
desktops: "only screen and (min-width: 1200px)"
|
|
1669
|
+
}), _o = {
|
|
1670
|
+
// Colors
|
|
1671
|
+
fontColorBase: "hsl(0, 0%, 24%)",
|
|
1672
|
+
fontColorLight: "hsl(0, 0%, 62%)",
|
|
1673
|
+
fontColorAccent: "hsl(345, 100%, 47%)",
|
|
1674
|
+
backgroundColorBase: "hsl(0, 0%, 100%)",
|
|
1675
|
+
backgroundColorLight: "hsl(0, 0%, 95%)",
|
|
1676
|
+
backgroundColorTransparent: "hsla(0, 0%, 0%, 0.3)",
|
|
1677
|
+
// Gradients
|
|
1678
|
+
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%)",
|
|
1679
|
+
// Fonts
|
|
1680
|
+
fontFamilyCore: "Arial, Helvetica, sans-serif",
|
|
1681
|
+
fontFamilyMonospace: "'Courier New', Courier, monospace",
|
|
1682
|
+
fontSizeBase: "1.2rem",
|
|
1683
|
+
fontSizeSmall: "0.8rem",
|
|
1684
|
+
fontSizeHeader: "2rem",
|
|
1685
|
+
// Units
|
|
1686
|
+
gapSmall: "0.25rem",
|
|
1687
|
+
gapMedium: "0.6rem",
|
|
1688
|
+
gapBig: "1rem",
|
|
1689
|
+
iconSize: "1.2rem",
|
|
1690
|
+
blockBorderRadius: "0.25rem",
|
|
1691
|
+
// Shadows
|
|
1692
|
+
boxShadow: "hsla(0, 0%, 0%, 0.15) 2.4px 2.4px 3.2px",
|
|
1693
|
+
textShadow: "2.4px 2.4px 3.2px hsla(0, 0%, 0%, 0.3)",
|
|
1694
|
+
// Borders
|
|
1695
|
+
borderBase: "1px solid hsl(0, 0%, 84%)",
|
|
1696
|
+
borderLight: "1px solid hsl(0, 0%, 89%)",
|
|
1697
|
+
borderAccent: "1px solid hsl(345, 100%, 47%)",
|
|
1698
|
+
borderOutline: "1px solid hsl(0, 0%, 24%)",
|
|
1699
|
+
// Z-indexes
|
|
1700
|
+
zIndexBase: "1",
|
|
1701
|
+
zIndexPopup: "100",
|
|
1702
|
+
zIndexModal: "200"
|
|
1703
|
+
}, Oo = {
|
|
1704
|
+
// Colors
|
|
1705
|
+
fontColorBase: "hsl(0, 0%, 100%)",
|
|
1706
|
+
fontColorLight: "hsl(0, 0%, 92%)",
|
|
1707
|
+
fontColorAccent: "hsl(16, 82%, 52%)",
|
|
1708
|
+
backgroundColorBase: "hsl(0, 0%, 17%)",
|
|
1709
|
+
backgroundColorLight: "hsl(0, 0%, 24%)",
|
|
1710
|
+
backgroundColorTransparent: "hsla(0, 0%, 92%, 0.3)",
|
|
1711
|
+
// Gradients
|
|
1712
|
+
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%)",
|
|
1713
|
+
// Fonts
|
|
1714
|
+
fontFamilyCore: "Arial, Helvetica, sans-serif",
|
|
1715
|
+
fontFamilyMonospace: "'Courier New', Courier, monospace",
|
|
1716
|
+
fontSizeBase: "1.2rem",
|
|
1717
|
+
fontSizeSmall: "0.8rem",
|
|
1718
|
+
fontSizeHeader: "2rem",
|
|
1719
|
+
// Units
|
|
1720
|
+
gapSmall: "0.25rem",
|
|
1721
|
+
gapMedium: "0.6rem",
|
|
1722
|
+
gapBig: "1rem",
|
|
1723
|
+
iconSize: "1.2rem",
|
|
1724
|
+
blockBorderRadius: "0.25rem",
|
|
1725
|
+
// Shadows
|
|
1726
|
+
boxShadow: "hsla(0, 0%, 92%, 0.15) 2.4px 2.4px 3.2px",
|
|
1727
|
+
textShadow: "2.4px 2.4px 3.2px hsla(0, 0%, 92%, 0.3)",
|
|
1728
|
+
// Borders
|
|
1729
|
+
borderBase: "1px solid hsl(0, 0%, 11%)",
|
|
1730
|
+
borderLight: "1px solid hsl(0, 0%, 29%)",
|
|
1731
|
+
borderAccent: "1px solid hsl(16, 82%, 52%)",
|
|
1732
|
+
borderOutline: "1px solid hsl(0, 0%, 100%)",
|
|
1733
|
+
// Z-indexes
|
|
1734
|
+
zIndexBase: "1",
|
|
1735
|
+
zIndexPopup: "100",
|
|
1736
|
+
zIndexModal: "200"
|
|
1737
|
+
}, Po = k.span`
|
|
1738
|
+
display: ${({ $visible: e }) => e ? "block" : "none"};
|
|
1739
|
+
position: absolute;
|
|
1740
|
+
max-width: 100%;
|
|
1741
|
+
right: 0;
|
|
1742
|
+
top: 72px;
|
|
1743
|
+
opacity: 0.8;
|
|
1744
|
+
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
1745
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
1746
|
+
border: ${(e) => e.$theme.borderAccent};
|
|
1747
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
1748
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
1749
|
+
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
1750
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
1751
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
1752
|
+
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
1753
|
+
pointer-events: none;
|
|
1754
|
+
|
|
1755
|
+
${Ge}
|
|
1756
|
+
`, en = ({
|
|
1757
|
+
errorId: e,
|
|
1758
|
+
testId: t,
|
|
1759
|
+
message: r = "Invalid input",
|
|
1760
|
+
visible: n = !1,
|
|
1761
|
+
style: o,
|
|
1762
|
+
theme: i
|
|
1763
|
+
}) => /* @__PURE__ */ s.jsx(Po, { id: e, $visible: n, "data-testid": t, style: o, $theme: i, "aria-hidden": !n, children: r });
|
|
1764
|
+
function qt({ title: e, ...t }) {
|
|
1765
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1766
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1767
|
+
/* @__PURE__ */ s.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" })
|
|
1768
|
+
] });
|
|
1769
|
+
}
|
|
1770
|
+
function Xt({ title: e, ...t }) {
|
|
1771
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1772
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1773
|
+
/* @__PURE__ */ s.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" })
|
|
1774
|
+
] });
|
|
1775
|
+
}
|
|
1776
|
+
function Lo({ title: e, ...t }) {
|
|
1777
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1778
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1779
|
+
/* @__PURE__ */ s.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M328 112L184 256l144 144" })
|
|
1780
|
+
] });
|
|
1781
|
+
}
|
|
1782
|
+
function Do({ title: e, ...t }) {
|
|
1783
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 470 1000", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1784
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1785
|
+
/* @__PURE__ */ s.jsx("path", { d: "M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156" })
|
|
1786
|
+
] });
|
|
1787
|
+
}
|
|
1788
|
+
function jt({ title: e, ...t }) {
|
|
1789
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1790
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1791
|
+
/* @__PURE__ */ s.jsx(
|
|
1792
|
+
"path",
|
|
1793
|
+
{
|
|
1794
|
+
fill: "currentColor",
|
|
1795
|
+
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"
|
|
1796
|
+
}
|
|
1797
|
+
)
|
|
1798
|
+
] });
|
|
1799
|
+
}
|
|
1800
|
+
function Ct({ title: e, ...t }) {
|
|
1801
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1802
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1803
|
+
/* @__PURE__ */ s.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" })
|
|
1804
|
+
] });
|
|
1805
|
+
}
|
|
1806
|
+
function Jt({ title: e, ...t }) {
|
|
1807
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1808
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1809
|
+
/* @__PURE__ */ s.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" })
|
|
1810
|
+
] });
|
|
1811
|
+
}
|
|
1812
|
+
function No({ title: e, ...t }) {
|
|
1813
|
+
return /* @__PURE__ */ s.jsxs("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1814
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1815
|
+
/* @__PURE__ */ s.jsx(
|
|
1816
|
+
"path",
|
|
1817
|
+
{
|
|
1818
|
+
fillRule: "evenodd",
|
|
1819
|
+
d: "M1.553 6.776a.5.5 0 01.67-.223L8 9.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z"
|
|
1820
|
+
}
|
|
1821
|
+
)
|
|
1822
|
+
] });
|
|
1823
|
+
}
|
|
1824
|
+
function Ho({ title: e, ...t }) {
|
|
1825
|
+
return /* @__PURE__ */ s.jsxs("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1826
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1827
|
+
/* @__PURE__ */ s.jsx(
|
|
1828
|
+
"path",
|
|
1829
|
+
{
|
|
1830
|
+
fillRule: "evenodd",
|
|
1831
|
+
d: "M9.224 1.553a.5.5 0 01.223.67L6.56 8l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z"
|
|
1832
|
+
}
|
|
1833
|
+
)
|
|
1834
|
+
] });
|
|
1835
|
+
}
|
|
1836
|
+
function Fo({ title: e, ...t }) {
|
|
1837
|
+
return /* @__PURE__ */ s.jsxs("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1838
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1839
|
+
/* @__PURE__ */ s.jsx(
|
|
1840
|
+
"path",
|
|
1841
|
+
{
|
|
1842
|
+
fillRule: "evenodd",
|
|
1843
|
+
d: "M6.776 1.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L9.44 8 6.553 2.224a.5.5 0 01.223-.671z"
|
|
1844
|
+
}
|
|
1845
|
+
)
|
|
1846
|
+
] });
|
|
1847
|
+
}
|
|
1848
|
+
function Vo({ title: e, ...t }) {
|
|
1849
|
+
return /* @__PURE__ */ s.jsxs("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1850
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1851
|
+
/* @__PURE__ */ s.jsx("path", { fillRule: "evenodd", d: "M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z" })
|
|
1852
|
+
] });
|
|
1853
|
+
}
|
|
1854
|
+
function Go({ title: e, ...t }) {
|
|
1855
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1856
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1857
|
+
/* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx("style", {}) }),
|
|
1858
|
+
/* @__PURE__ */ s.jsx("path", { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" })
|
|
1859
|
+
] });
|
|
1860
|
+
}
|
|
1861
|
+
function Wo({ title: e, ...t }) {
|
|
1862
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1863
|
+
"svg",
|
|
1864
|
+
{
|
|
1865
|
+
fill: "none",
|
|
1866
|
+
stroke: "currentColor",
|
|
1867
|
+
strokeLinecap: "round",
|
|
1868
|
+
strokeLinejoin: "round",
|
|
1869
|
+
strokeWidth: 2,
|
|
1870
|
+
viewBox: "0 0 24 24",
|
|
1871
|
+
height: "1em",
|
|
1872
|
+
width: "1em",
|
|
1873
|
+
...t,
|
|
1874
|
+
children: [
|
|
1875
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1876
|
+
/* @__PURE__ */ s.jsx("path", { d: "M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z" }),
|
|
1877
|
+
/* @__PURE__ */ s.jsx("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
|
|
1878
|
+
]
|
|
1879
|
+
}
|
|
1880
|
+
);
|
|
1881
|
+
}
|
|
1882
|
+
function Yo({ title: e, ...t }) {
|
|
1883
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1884
|
+
"svg",
|
|
1885
|
+
{
|
|
1886
|
+
fill: "none",
|
|
1887
|
+
stroke: "currentColor",
|
|
1888
|
+
strokeLinecap: "round",
|
|
1889
|
+
strokeLinejoin: "round",
|
|
1890
|
+
strokeWidth: 2,
|
|
1891
|
+
viewBox: "0 0 24 24",
|
|
1892
|
+
height: "1em",
|
|
1893
|
+
width: "1em",
|
|
1894
|
+
role: "img",
|
|
1895
|
+
...t,
|
|
1896
|
+
children: [
|
|
1897
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1898
|
+
/* @__PURE__ */ s.jsx("path", { stroke: "none", d: "M0 0h24v24H0z" }),
|
|
1899
|
+
/* @__PURE__ */ s.jsx("path", { d: "M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z" }),
|
|
1900
|
+
/* @__PURE__ */ s.jsx("path", { d: "M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z" }),
|
|
1901
|
+
/* @__PURE__ */ s.jsx("path", { d: "M9.15 14.85L18 4M6 4l8.85 10.85" })
|
|
1902
|
+
]
|
|
1903
|
+
}
|
|
1904
|
+
);
|
|
1905
|
+
}
|
|
1906
|
+
function Uo({ title: e, ...t }) {
|
|
1907
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1908
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1909
|
+
/* @__PURE__ */ s.jsx("path", { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" })
|
|
1910
|
+
] });
|
|
1911
|
+
}
|
|
1912
|
+
function Ko({ title: e, ...t }) {
|
|
1913
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1914
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1915
|
+
/* @__PURE__ */ s.jsx("path", { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" })
|
|
1916
|
+
] });
|
|
1917
|
+
}
|
|
1918
|
+
function tn({ title: e, ...t }) {
|
|
1919
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1920
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1921
|
+
/* @__PURE__ */ s.jsx("path", { d: "M11 7h2v7h-2zm0 8h2v2h-2z" }),
|
|
1922
|
+
/* @__PURE__ */ s.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" })
|
|
1923
|
+
] });
|
|
1924
|
+
}
|
|
1925
|
+
function qo({ title: e, ...t }) {
|
|
1926
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1927
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1928
|
+
/* @__PURE__ */ s.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M184 112l144 144-144 144" })
|
|
1929
|
+
] });
|
|
1930
|
+
}
|
|
1931
|
+
const Xo = ({ title: e, ...t }) => /* @__PURE__ */ s.jsxs("svg", { width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 448 512", role: "img", ...t, children: [
|
|
1932
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1933
|
+
/* @__PURE__ */ s.jsx("path", { d: "M219.3.5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128S96 230.7 96 160v-57.1l-48-9.6v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3S52.8 256 48 256H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64c0-11.4 8.1-21.3 19.3-23.5l200-40zM111.9 327.7c10.5-3.4 21.8.4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5 65 20.9 112 81.7 112 153.6 0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z" })
|
|
1934
|
+
] });
|
|
1935
|
+
function rn({ title: e, ...t }) {
|
|
1936
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1937
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1938
|
+
/* @__PURE__ */ s.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" })
|
|
1939
|
+
] });
|
|
1940
|
+
}
|
|
1941
|
+
function Jo({ title: e, ...t }) {
|
|
1942
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1943
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1944
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z" })
|
|
1945
|
+
] });
|
|
1946
|
+
}
|
|
1947
|
+
const Zo = ({ title: e, ...t }) => /* @__PURE__ */ s.jsxs("svg", { width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 1024 1024", role: "img", ...t, children: [
|
|
1948
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1949
|
+
/* @__PURE__ */ s.jsx("path", { d: "M946.5 505 560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z" })
|
|
1950
|
+
] });
|
|
1951
|
+
function nn({ title: e, ...t }) {
|
|
1952
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1953
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1954
|
+
/* @__PURE__ */ s.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" }),
|
|
1955
|
+
/* @__PURE__ */ s.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" })
|
|
1956
|
+
] });
|
|
1957
|
+
}
|
|
1958
|
+
const Qo = ({ title: e, ...t }) => /* @__PURE__ */ s.jsxs("svg", { width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 1024 1024", role: "img", ...t, children: [
|
|
1959
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1960
|
+
/* @__PURE__ */ s.jsx("path", { d: "M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z" })
|
|
1961
|
+
] });
|
|
1962
|
+
function es({ title: e, ...t }) {
|
|
1963
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1964
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1965
|
+
/* @__PURE__ */ s.jsx("path", { d: "M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z" })
|
|
1966
|
+
] });
|
|
1967
|
+
}
|
|
1968
|
+
function ts({ title: e, ...t }) {
|
|
1969
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1970
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1971
|
+
/* @__PURE__ */ s.jsx("path", { fill: "none", stroke: "currentColor", strokeMiterlimit: 10, strokeWidth: 32, d: "M256 80a176 176 0 10176 176A176 176 0 00256 80z" }),
|
|
1972
|
+
/* @__PURE__ */ s.jsx(
|
|
1973
|
+
"path",
|
|
1974
|
+
{
|
|
1975
|
+
fill: "none",
|
|
1976
|
+
stroke: "currentColor",
|
|
1977
|
+
strokeLinecap: "round",
|
|
1978
|
+
strokeMiterlimit: 10,
|
|
1979
|
+
strokeWidth: 28,
|
|
1980
|
+
d: "M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296"
|
|
1981
|
+
}
|
|
1982
|
+
),
|
|
1983
|
+
/* @__PURE__ */ s.jsx("path", { d: "M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z" })
|
|
1984
|
+
] });
|
|
1985
|
+
}
|
|
1986
|
+
function rs({ title: e, ...t }) {
|
|
1987
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
1988
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
1989
|
+
/* @__PURE__ */ s.jsx(
|
|
1990
|
+
"path",
|
|
1991
|
+
{
|
|
1992
|
+
fill: "none",
|
|
1993
|
+
stroke: "currentColor",
|
|
1994
|
+
strokeLinejoin: "round",
|
|
1995
|
+
strokeWidth: 32,
|
|
1996
|
+
d: "M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z"
|
|
1997
|
+
}
|
|
1998
|
+
),
|
|
1999
|
+
/* @__PURE__ */ s.jsx(
|
|
2000
|
+
"path",
|
|
2001
|
+
{
|
|
2002
|
+
fill: "none",
|
|
2003
|
+
stroke: "currentColor",
|
|
2004
|
+
strokeLinecap: "round",
|
|
2005
|
+
strokeLinejoin: "round",
|
|
2006
|
+
strokeWidth: 32,
|
|
2007
|
+
d: "M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"
|
|
2008
|
+
}
|
|
2009
|
+
)
|
|
2010
|
+
] });
|
|
2011
|
+
}
|
|
2012
|
+
function ns({ title: e, ...t }) {
|
|
2013
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
2014
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
2015
|
+
/* @__PURE__ */ s.jsx("path", { d: "M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" })
|
|
2016
|
+
] });
|
|
2017
|
+
}
|
|
2018
|
+
function os({ title: e, ...t }) {
|
|
2019
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
2020
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
2021
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z" }),
|
|
2022
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z" })
|
|
2023
|
+
] });
|
|
2024
|
+
}
|
|
2025
|
+
function ss({ title: e, ...t }) {
|
|
2026
|
+
return /* @__PURE__ */ s.jsxs("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
2027
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
2028
|
+
/* @__PURE__ */ s.jsx("path", { d: "M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z" }),
|
|
2029
|
+
/* @__PURE__ */ s.jsx("path", { d: "M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z" })
|
|
2030
|
+
] });
|
|
2031
|
+
}
|
|
2032
|
+
function on({ title: e, ...t }) {
|
|
2033
|
+
return /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img", ...t, children: [
|
|
2034
|
+
e && /* @__PURE__ */ s.jsx("title", { children: e }),
|
|
2035
|
+
/* @__PURE__ */ s.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
|
|
2036
|
+
/* @__PURE__ */ s.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" })
|
|
2037
|
+
] });
|
|
2038
|
+
}
|
|
2039
|
+
var J = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(J || {}), ge = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Flat = "flat", e.Icon = "icon", e))(ge || {}), C = /* @__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))(C || {}), is = /* @__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))(is || {}), W = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(W || {}), sn = /* @__PURE__ */ ((e) => (e.Light = "light", e.Dark = "dark", e))(sn || {}), an = /* @__PURE__ */ ((e) => (e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e))(an || {});
|
|
2040
|
+
const as = {
|
|
2041
|
+
[C.ArrowDown]: qt,
|
|
2042
|
+
[C.ArrowUp]: Xt,
|
|
2043
|
+
[C.Back]: Lo,
|
|
2044
|
+
[C.Cancel]: Do,
|
|
2045
|
+
[C.CheckboxChecked]: jt,
|
|
2046
|
+
[C.CheckboxUnchecked]: Ct,
|
|
2047
|
+
[C.CheckMark]: Jt,
|
|
2048
|
+
[C.ChevronDown]: No,
|
|
2049
|
+
[C.ChevronUp]: Vo,
|
|
2050
|
+
[C.ChevronLeft]: Ho,
|
|
2051
|
+
[C.ChevronRight]: Fo,
|
|
2052
|
+
[C.Clear]: Go,
|
|
2053
|
+
[C.Copy]: Wo,
|
|
2054
|
+
[C.Cut]: Yo,
|
|
2055
|
+
[C.Delete]: Uo,
|
|
2056
|
+
[C.Download]: Ko,
|
|
2057
|
+
[C.Error]: tn,
|
|
2058
|
+
[C.Forward]: qo,
|
|
2059
|
+
[C.Graduate]: Xo,
|
|
2060
|
+
[C.Help]: rn,
|
|
2061
|
+
[C.Hide]: Jo,
|
|
2062
|
+
[C.Home]: Zo,
|
|
2063
|
+
[C.Info]: nn,
|
|
2064
|
+
[C.Login]: Qo,
|
|
2065
|
+
[C.Paste]: es,
|
|
2066
|
+
[C.Question]: ts,
|
|
2067
|
+
[C.Save]: ns,
|
|
2068
|
+
[C.Show]: os,
|
|
2069
|
+
[C.Upload]: ss,
|
|
2070
|
+
[C.Warning]: on,
|
|
2071
|
+
[C.Remove]: rs
|
|
2072
|
+
}, de = ({ name: e, testId: t, ...r }) => {
|
|
2073
|
+
if (!e) return null;
|
|
2074
|
+
const n = as[e];
|
|
2075
|
+
return /* @__PURE__ */ s.jsx(n, { "data-testid": t, ...r });
|
|
2076
|
+
}, cs = k.button`
|
|
2077
|
+
background: transparent;
|
|
2078
|
+
border: none;
|
|
2079
|
+
display: flex;
|
|
2080
|
+
align-items: center;
|
|
2081
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2082
|
+
color: ${(e) => e.$theme.fontColorLight};
|
|
2083
|
+
padding: 0;
|
|
2084
|
+
|
|
2085
|
+
&:focus-visible {
|
|
2086
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2087
|
+
outline-offset: -1px;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
&:hover {
|
|
2091
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
svg {
|
|
2095
|
+
cursor: pointer;
|
|
2096
|
+
height: ${(e) => e.$theme.iconSize};
|
|
2097
|
+
width: ${(e) => e.$theme.iconSize};
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
&[disabled] {
|
|
2101
|
+
pointer-events: none;
|
|
2102
|
+
opacity: 0.5;
|
|
2103
|
+
}
|
|
2104
|
+
`, bt = ({ onClick: e, label: t, icon: r, disabled: n, theme: o }) => /* @__PURE__ */ s.jsx(cs, { onClick: e, "aria-label": t, type: "button", disabled: n, $theme: o, children: /* @__PURE__ */ s.jsx(de, { name: r }) }), ls = k.label`
|
|
2105
|
+
display: flex;
|
|
2106
|
+
align-items: center;
|
|
2107
|
+
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
2108
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2109
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
2110
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
2111
|
+
|
|
2112
|
+
&:hover {
|
|
2113
|
+
text-shadow: ${(e) => e.$theme.textShadow};
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
& + span {
|
|
2117
|
+
text-wrap: nowrap;
|
|
2118
|
+
overflow: hidden;
|
|
2119
|
+
text-overflow: ellipsis;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
& abbr {
|
|
2123
|
+
text-decoration: none;
|
|
2124
|
+
cursor: pointer;
|
|
2125
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
2126
|
+
margin-left: ${(e) => e.$theme.gapSmall};
|
|
2127
|
+
}
|
|
2128
|
+
`, We = ({
|
|
2129
|
+
label: e,
|
|
2130
|
+
required: t,
|
|
2131
|
+
inputId: r,
|
|
2132
|
+
theme: n,
|
|
2133
|
+
icon: o,
|
|
2134
|
+
iconPosition: i,
|
|
2135
|
+
isTextHidden: a = !1,
|
|
2136
|
+
style: d
|
|
2137
|
+
}) => {
|
|
2138
|
+
const l = !!o && i === "left", u = !!o && i === "right";
|
|
2139
|
+
return /* @__PURE__ */ s.jsxs(ls, { htmlFor: r, style: d, $theme: n, children: [
|
|
2140
|
+
l && o,
|
|
2141
|
+
!a && /* @__PURE__ */ s.jsxs("span", { children: [
|
|
2142
|
+
e,
|
|
2143
|
+
t && /* @__PURE__ */ s.jsx("abbr", { title: "required", children: "*" })
|
|
2144
|
+
] }),
|
|
2145
|
+
u && o
|
|
2146
|
+
] });
|
|
2147
|
+
};
|
|
2148
|
+
function ds(e) {
|
|
2149
|
+
return ({ tooltip: t, visibleOn: r, ...n }) => t != null && t.length ? /* @__PURE__ */ s.jsx(Zs, { tooltipContent: t, visibleOn: r, children: /* @__PURE__ */ s.jsx(e, { ...n }) }) : /* @__PURE__ */ s.jsx(e, { ...n });
|
|
2150
|
+
}
|
|
2151
|
+
const Me = be.createContext({}), us = be.createContext({
|
|
2152
|
+
mode: sn.Light
|
|
2153
|
+
});
|
|
2154
|
+
function hs(e, t) {
|
|
2155
|
+
const r = e === "dark" ? Oo : _o;
|
|
2156
|
+
if (t)
|
|
2157
|
+
for (const n in t) {
|
|
2158
|
+
const o = n;
|
|
2159
|
+
Object.prototype.hasOwnProperty.call(r, o) && (r[o] = t[o].toString());
|
|
2160
|
+
}
|
|
2161
|
+
return r;
|
|
2162
|
+
}
|
|
2163
|
+
function Qe(e) {
|
|
2164
|
+
const t = document.getElementById(e);
|
|
2165
|
+
t && t.focus();
|
|
2166
|
+
}
|
|
2167
|
+
function cn({
|
|
2168
|
+
e,
|
|
2169
|
+
options: t,
|
|
2170
|
+
onClose: r
|
|
2171
|
+
}) {
|
|
2172
|
+
let n = "";
|
|
2173
|
+
t.forEach((i) => {
|
|
2174
|
+
document.getElementById(i.id) === document.activeElement && (n = i.id);
|
|
2175
|
+
});
|
|
2176
|
+
const o = t.findIndex((i) => i.id === n);
|
|
2177
|
+
switch (e.key) {
|
|
2178
|
+
case "Escape":
|
|
2179
|
+
e.preventDefault(), r();
|
|
2180
|
+
break;
|
|
2181
|
+
case "ArrowUp": {
|
|
2182
|
+
e.preventDefault();
|
|
2183
|
+
const i = o - 1 >= 0 ? o - 1 : t.length - 1, a = t[i];
|
|
2184
|
+
a && Qe(a.id);
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
case "ArrowDown":
|
|
2188
|
+
case "Tab": {
|
|
2189
|
+
e.preventDefault();
|
|
2190
|
+
const i = o === t.length - 1 ? 0 : o + 1, a = t[i];
|
|
2191
|
+
a && Qe(a.id);
|
|
2192
|
+
break;
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
const K = () => {
|
|
2197
|
+
const { customTheme: e, mode: t } = xe(us);
|
|
2198
|
+
return hs(t, e);
|
|
2199
|
+
}, Et = ({ ref: e, onClickOutsideHandler: t, dependentRef: r }) => {
|
|
2200
|
+
ue(() => {
|
|
2201
|
+
const n = (o) => {
|
|
2202
|
+
const i = (e == null ? void 0 : e.current) && !e.current.contains(o.target), a = r != null && r.current ? !r.current.contains(o.target) : !0;
|
|
2203
|
+
i && a && t();
|
|
2204
|
+
};
|
|
2205
|
+
return document.addEventListener("mousedown", n), () => {
|
|
2206
|
+
document.removeEventListener("mousedown", n);
|
|
2207
|
+
};
|
|
2208
|
+
}, [e, r, t]);
|
|
2209
|
+
}, fs = ({ ref: e, isVisible: t }) => {
|
|
2210
|
+
const [r, n] = O({ width: 0, height: 0 });
|
|
2211
|
+
return ue(() => {
|
|
2212
|
+
e != null && e.current && t && n({
|
|
2213
|
+
width: e.current.offsetWidth,
|
|
2214
|
+
height: e.current.offsetHeight
|
|
2215
|
+
});
|
|
2216
|
+
}, [e, t]), r;
|
|
2217
|
+
};
|
|
2218
|
+
function ye(e) {
|
|
2219
|
+
const t = $n(), r = e ?? t, n = `${r}_error`, o = `${r}_dropdown`;
|
|
2220
|
+
return {
|
|
2221
|
+
elementId: r,
|
|
2222
|
+
errorId: n,
|
|
2223
|
+
dropdownId: o
|
|
2224
|
+
};
|
|
2225
|
+
}
|
|
2226
|
+
const At = ({ ref: e, keyCode: t, onKeyPress: r }) => {
|
|
2227
|
+
ue(() => {
|
|
2228
|
+
const n = (o) => {
|
|
2229
|
+
(o == null ? void 0 : o.code) === t && (e != null && e.current) && r();
|
|
2230
|
+
};
|
|
2231
|
+
return document.addEventListener("keydown", n, !1), () => {
|
|
2232
|
+
document.removeEventListener("keydown", n, !1);
|
|
2233
|
+
};
|
|
2234
|
+
}, [e, t, r]);
|
|
2235
|
+
}, ps = ({ modalRef: e, isOpened: t }) => {
|
|
2236
|
+
ue(() => {
|
|
2237
|
+
const r = e.current;
|
|
2238
|
+
if (!t || !r) return;
|
|
2239
|
+
const n = r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = n[0], i = n[n.length - 1], a = (d) => {
|
|
2240
|
+
d.key === "Tab" && (d.shiftKey && document.activeElement === o ? (d.preventDefault(), i.focus()) : !d.shiftKey && document.activeElement === i && (d.preventDefault(), o.focus()));
|
|
2241
|
+
};
|
|
2242
|
+
return r.addEventListener("keydown", a), () => {
|
|
2243
|
+
r.removeEventListener("keydown", a);
|
|
2244
|
+
};
|
|
2245
|
+
}, [e, t]);
|
|
2246
|
+
}, ln = (e, t = 300) => {
|
|
2247
|
+
const [r, n] = O(!1);
|
|
2248
|
+
return ue(() => {
|
|
2249
|
+
e && !r ? n(!0) : !e && r && setTimeout(() => {
|
|
2250
|
+
n(!1);
|
|
2251
|
+
}, t);
|
|
2252
|
+
}, [e]), r;
|
|
2253
|
+
}, tt = (e) => {
|
|
2254
|
+
const { resetSignal: t } = xe(Me);
|
|
2255
|
+
ue(() => {
|
|
2256
|
+
t && e();
|
|
2257
|
+
}, [t, e]);
|
|
2258
|
+
};
|
|
2259
|
+
function Cr() {
|
|
2260
|
+
const { innerWidth: e, innerHeight: t } = window;
|
|
2261
|
+
return { width: e, height: t };
|
|
2262
|
+
}
|
|
2263
|
+
function ms() {
|
|
2264
|
+
const [e, t] = O(Cr());
|
|
2265
|
+
return ue(() => {
|
|
2266
|
+
function r() {
|
|
2267
|
+
t(Cr());
|
|
2268
|
+
}
|
|
2269
|
+
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
2270
|
+
}, []), e;
|
|
2271
|
+
}
|
|
2272
|
+
const gs = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
2273
|
+
const [o, i] = O({ top: 0, left: 0 }), { width: a, height: d } = fs({
|
|
2274
|
+
ref: t,
|
|
2275
|
+
isVisible: r
|
|
2276
|
+
}), { width: l, height: u } = ms();
|
|
2277
|
+
return ue(() => {
|
|
2278
|
+
if (r && (e != null && e.current)) {
|
|
2279
|
+
const h = e == null ? void 0 : e.current.getBoundingClientRect();
|
|
2280
|
+
let f = Math.round(h.bottom + n), m = Math.round(h.left);
|
|
2281
|
+
f + d > window.innerHeight && (f = Math.round(h.top - d - n)), m + a > window.innerWidth && (m = Math.round(window.innerWidth - a - n)), m < 0 && (m = n), i({ top: f, left: m });
|
|
2282
|
+
}
|
|
2283
|
+
}, [r, e, d, a, n, l, u]), o;
|
|
2284
|
+
}, bs = k.button`
|
|
2285
|
+
position: relative;
|
|
2286
|
+
border: none;
|
|
2287
|
+
background: transparent;
|
|
2288
|
+
padding: 0;
|
|
2289
|
+
cursor: pointer;
|
|
2290
|
+
outline: none;
|
|
2291
|
+
transition: filter 250ms;
|
|
2292
|
+
width: ${(e) => e.$extended ? "100%" : "inherit"};
|
|
2293
|
+
|
|
2294
|
+
&[disabled] {
|
|
2295
|
+
pointer-events: none;
|
|
2296
|
+
opacity: 0.5;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
.chop-logic-button_shadow {
|
|
2300
|
+
position: absolute;
|
|
2301
|
+
top: 0;
|
|
2302
|
+
left: 0;
|
|
2303
|
+
width: 100%;
|
|
2304
|
+
height: 100%;
|
|
2305
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2306
|
+
background: hsl(0deg 0% 0% / 0.25);
|
|
2307
|
+
will-change: transform;
|
|
2308
|
+
transform: translateY(2px);
|
|
2309
|
+
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
.chop-logic-button_edge {
|
|
2313
|
+
position: absolute;
|
|
2314
|
+
top: 0;
|
|
2315
|
+
left: 0;
|
|
2316
|
+
width: 100%;
|
|
2317
|
+
height: 100%;
|
|
2318
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2319
|
+
background: ${(e) => e.$theme.gradientShadow};
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
.chop-logic-button_front {
|
|
2323
|
+
display: flex;
|
|
2324
|
+
align-items: center;
|
|
2325
|
+
justify-content: center;
|
|
2326
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
2327
|
+
position: relative;
|
|
2328
|
+
padding: ${(e) => `${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
2329
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2330
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2331
|
+
color: #ffffff;
|
|
2332
|
+
background: ${(e) => e.$theme.fontColorAccent};
|
|
2333
|
+
will-change: transform;
|
|
2334
|
+
transform: translateY(-4px);
|
|
2335
|
+
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
&:hover {
|
|
2339
|
+
filter: brightness(110%);
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
&:hover .chop-logic-button_front {
|
|
2343
|
+
transform: translateY(-6px);
|
|
2344
|
+
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
&:active .chop-logic-button_front {
|
|
2348
|
+
transform: translateY(-2px);
|
|
2349
|
+
transition: transform 34ms;
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
&:hover .chop-logic-button_shadow {
|
|
2353
|
+
transform: translateY(4px);
|
|
2354
|
+
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
&:active .chop-logic-button_shadow {
|
|
2358
|
+
transform: translateY(1px);
|
|
2359
|
+
transition: transform 34ms;
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
&:focus-visible {
|
|
2363
|
+
outline: revert;
|
|
2364
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2365
|
+
outline-offset: 4px;
|
|
2366
|
+
}
|
|
2367
|
+
`, vs = k.button`
|
|
2368
|
+
border: none;
|
|
2369
|
+
cursor: pointer;
|
|
2370
|
+
display: flex;
|
|
2371
|
+
align-items: center;
|
|
2372
|
+
justify-content: center;
|
|
2373
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
2374
|
+
padding: ${(e) => `${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
2375
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2376
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2377
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
2378
|
+
background: transparent;
|
|
2379
|
+
width: ${(e) => e.$extended ? "100%" : "inherit"};
|
|
2380
|
+
|
|
2381
|
+
&:hover,
|
|
2382
|
+
&:active {
|
|
2383
|
+
background: ${(e) => e.$theme.backgroundColorLight};
|
|
2384
|
+
transition: all 0.3s ease 0s;
|
|
2385
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
&:focus-visible {
|
|
2389
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
&[disabled] {
|
|
2393
|
+
pointer-events: none;
|
|
2394
|
+
opacity: 0.5;
|
|
2395
|
+
}
|
|
2396
|
+
`, xs = k.button`
|
|
2397
|
+
border: none;
|
|
2398
|
+
cursor: pointer;
|
|
2399
|
+
display: flex;
|
|
2400
|
+
align-items: center;
|
|
2401
|
+
justify-content: center;
|
|
2402
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
2403
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2404
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2405
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
2406
|
+
background: transparent;
|
|
2407
|
+
|
|
2408
|
+
&:hover {
|
|
2409
|
+
background-color: ${(e) => e.$theme.backgroundColorLight};
|
|
2410
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
2411
|
+
transition: all 0.3s ease 0s;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
&:focus-visible {
|
|
2415
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
&[disabled] {
|
|
2419
|
+
pointer-events: none;
|
|
2420
|
+
opacity: 0.5;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
svg {
|
|
2424
|
+
height: ${(e) => e.$theme.iconSize};
|
|
2425
|
+
width: ${(e) => e.$theme.iconSize};
|
|
2426
|
+
}
|
|
2427
|
+
`, ys = ({
|
|
2428
|
+
onClick: e,
|
|
2429
|
+
text: t,
|
|
2430
|
+
icon: r,
|
|
2431
|
+
label: n,
|
|
2432
|
+
disabled: o = !1,
|
|
2433
|
+
extended: i = !1,
|
|
2434
|
+
type: a = "button",
|
|
2435
|
+
view: d = ge.Primary,
|
|
2436
|
+
...l
|
|
2437
|
+
}) => {
|
|
2438
|
+
const u = K();
|
|
2439
|
+
switch (d) {
|
|
2440
|
+
case ge.Primary:
|
|
2441
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2442
|
+
bs,
|
|
2443
|
+
{
|
|
2444
|
+
$extended: i,
|
|
2445
|
+
"aria-label": n,
|
|
2446
|
+
type: a,
|
|
2447
|
+
onClick: e,
|
|
2448
|
+
disabled: o,
|
|
2449
|
+
$theme: u,
|
|
2450
|
+
...l,
|
|
2451
|
+
children: [
|
|
2452
|
+
/* @__PURE__ */ s.jsx("span", { className: "chop-logic-button_shadow" }),
|
|
2453
|
+
/* @__PURE__ */ s.jsx("span", { className: "chop-logic-button_edge" }),
|
|
2454
|
+
/* @__PURE__ */ s.jsxs("span", { className: "chop-logic-button_front", children: [
|
|
2455
|
+
/* @__PURE__ */ s.jsx(de, { name: r }),
|
|
2456
|
+
t
|
|
2457
|
+
] })
|
|
2458
|
+
]
|
|
2459
|
+
}
|
|
2460
|
+
);
|
|
2461
|
+
case ge.Flat:
|
|
2462
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2463
|
+
vs,
|
|
2464
|
+
{
|
|
2465
|
+
$extended: i,
|
|
2466
|
+
"aria-label": n,
|
|
2467
|
+
type: a,
|
|
2468
|
+
onClick: e,
|
|
2469
|
+
disabled: o,
|
|
2470
|
+
$theme: u,
|
|
2471
|
+
...l,
|
|
2472
|
+
children: [
|
|
2473
|
+
/* @__PURE__ */ s.jsx(de, { name: r }),
|
|
2474
|
+
t
|
|
2475
|
+
]
|
|
2476
|
+
}
|
|
2477
|
+
);
|
|
2478
|
+
case ge.Icon:
|
|
2479
|
+
return /* @__PURE__ */ s.jsx(xs, { "aria-label": n, type: a, onClick: e, disabled: o, $theme: u, ...l, children: /* @__PURE__ */ s.jsx(de, { name: r }) });
|
|
2480
|
+
default:
|
|
2481
|
+
return null;
|
|
2482
|
+
}
|
|
2483
|
+
}, vt = ds(ys), $s = k.div`
|
|
2484
|
+
display: flex;
|
|
2485
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2486
|
+
padding: ${(e) => e.$theme.gapMedium} 0;
|
|
2487
|
+
position: relative;
|
|
2488
|
+
overflow: hidden;
|
|
2489
|
+
|
|
2490
|
+
& svg {
|
|
2491
|
+
color: ${(e) => e.$checked ? e.$theme.fontColorAccent : e.$theme.fontColorLight};
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
& label {
|
|
2495
|
+
cursor: pointer;
|
|
2496
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2497
|
+
font-size: ${(e) => e.$theme.fontSizeBase} !important;
|
|
2498
|
+
&:hover,
|
|
2499
|
+
&:active {
|
|
2500
|
+
text-shadow: ${(e) => e.$theme.textShadow};
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
${(e) => e.$disabled && `
|
|
2505
|
+
pointer-events: none;
|
|
2506
|
+
opacity: 0.5;
|
|
2507
|
+
`}
|
|
2508
|
+
|
|
2509
|
+
& input {
|
|
2510
|
+
position: absolute;
|
|
2511
|
+
z-index: -1;
|
|
2512
|
+
opacity: 0;
|
|
2513
|
+
top: 4px;
|
|
2514
|
+
left: 0;
|
|
2515
|
+
margin: 0;
|
|
2516
|
+
|
|
2517
|
+
&:focus-visible + label {
|
|
2518
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2519
|
+
outline-offset: 2px;
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
`;
|
|
2523
|
+
function ws({
|
|
2524
|
+
defaultChecked: e,
|
|
2525
|
+
initialValues: t,
|
|
2526
|
+
name: r
|
|
2527
|
+
}) {
|
|
2528
|
+
return t && (t == null ? void 0 : t[r]) !== void 0 ? !!(t != null && t[r]) : !!e;
|
|
2529
|
+
}
|
|
2530
|
+
function Ss({
|
|
2531
|
+
name: e,
|
|
2532
|
+
defaultChecked: t,
|
|
2533
|
+
onChange: r
|
|
2534
|
+
}) {
|
|
2535
|
+
const { onChangeFormInput: n, initialValues: o } = xe(Me), i = ws({ initialValues: o, name: e, defaultChecked: t }), [a, d] = O(i), l = (h) => {
|
|
2536
|
+
const f = h.target.checked;
|
|
2537
|
+
d(f), r == null || r(h), n == null || n({ name: e, value: f });
|
|
2538
|
+
}, u = et(() => {
|
|
2539
|
+
d(i), n == null || n({ name: e, value: i });
|
|
2540
|
+
}, [e]);
|
|
2541
|
+
return tt(u), {
|
|
2542
|
+
handleChange: l,
|
|
2543
|
+
checked: a
|
|
2544
|
+
};
|
|
2545
|
+
}
|
|
2546
|
+
const Gi = ({
|
|
2547
|
+
name: e,
|
|
2548
|
+
label: t,
|
|
2549
|
+
disabled: r,
|
|
2550
|
+
noLabel: n,
|
|
2551
|
+
required: o = !1,
|
|
2552
|
+
iconPosition: i = "left",
|
|
2553
|
+
defaultChecked: a,
|
|
2554
|
+
onChange: d,
|
|
2555
|
+
id: l,
|
|
2556
|
+
...u
|
|
2557
|
+
}) => {
|
|
2558
|
+
const { handleChange: h, checked: f } = Ss({ name: e, defaultChecked: a, onChange: d }), { elementId: m } = ye(l), p = K();
|
|
2559
|
+
return /* @__PURE__ */ s.jsxs($s, { $disabled: !!r, $theme: p, $checked: f, ...u, children: [
|
|
2560
|
+
/* @__PURE__ */ s.jsx(
|
|
2561
|
+
"input",
|
|
2562
|
+
{
|
|
2563
|
+
id: m,
|
|
2564
|
+
name: e,
|
|
2565
|
+
type: "checkbox",
|
|
2566
|
+
disabled: r,
|
|
2567
|
+
required: o,
|
|
2568
|
+
checked: f,
|
|
2569
|
+
onChange: h,
|
|
2570
|
+
"aria-label": n ? t : void 0
|
|
2571
|
+
}
|
|
2572
|
+
),
|
|
2573
|
+
/* @__PURE__ */ s.jsx(
|
|
2574
|
+
We,
|
|
2575
|
+
{
|
|
2576
|
+
label: t,
|
|
2577
|
+
required: o,
|
|
2578
|
+
inputId: m,
|
|
2579
|
+
isTextHidden: n,
|
|
2580
|
+
icon: f ? /* @__PURE__ */ s.jsx(jt, {}) : /* @__PURE__ */ s.jsx(Ct, {}),
|
|
2581
|
+
iconPosition: i,
|
|
2582
|
+
theme: p
|
|
2583
|
+
}
|
|
2584
|
+
)
|
|
2585
|
+
] });
|
|
2586
|
+
}, dn = k.div`
|
|
2587
|
+
position: relative;
|
|
2588
|
+
display: flex;
|
|
2589
|
+
justify-content: space-between;
|
|
2590
|
+
flex-direction: column;
|
|
2591
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2592
|
+
background: transparent;
|
|
2593
|
+
`, un = k.button`
|
|
2594
|
+
text-align: left;
|
|
2595
|
+
cursor: pointer;
|
|
2596
|
+
display: flex;
|
|
2597
|
+
justify-content: space-between;
|
|
2598
|
+
align-items: center;
|
|
2599
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2600
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
2601
|
+
border: ${(e) => e.$theme.borderLight};
|
|
2602
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2603
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
2604
|
+
white-space: nowrap;
|
|
2605
|
+
text-overflow: ellipsis;
|
|
2606
|
+
overflow: hidden;
|
|
2607
|
+
|
|
2608
|
+
& > span:nth-child(1) {
|
|
2609
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2610
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
2611
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2612
|
+
overflow: hidden;
|
|
2613
|
+
text-overflow: ellipsis;
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
svg {
|
|
2617
|
+
cursor: pointer;
|
|
2618
|
+
color: ${(e) => e.$theme.fontColorLight};
|
|
2619
|
+
height: ${(e) => e.$theme.iconSize};
|
|
2620
|
+
width: ${(e) => e.$theme.iconSize};
|
|
2621
|
+
|
|
2622
|
+
&:hover {
|
|
2623
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
&:focus-visible {
|
|
2628
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2629
|
+
outline-offset: 2px;
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
&[disabled] {
|
|
2633
|
+
pointer-events: none;
|
|
2634
|
+
opacity: 0.5;
|
|
2635
|
+
}
|
|
2636
|
+
`, hn = k.ul`
|
|
2637
|
+
visibility: hidden;
|
|
2638
|
+
opacity: 0;
|
|
2639
|
+
transition:
|
|
2640
|
+
visibility 0s,
|
|
2641
|
+
opacity 0.3s linear;
|
|
2642
|
+
position: absolute;
|
|
2643
|
+
background: ${(e) => e.$theme.backgroundColorBase};
|
|
2644
|
+
margin: 0;
|
|
2645
|
+
padding: 0;
|
|
2646
|
+
list-style: none;
|
|
2647
|
+
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
2648
|
+
width: 100%;
|
|
2649
|
+
top: 72px;
|
|
2650
|
+
left: -1px;
|
|
2651
|
+
border: ${(e) => e.$theme.borderLight};
|
|
2652
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2653
|
+
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
2654
|
+
overflow-y: auto;
|
|
2655
|
+
max-height: 180px;
|
|
2656
|
+
|
|
2657
|
+
${(e) => e.$opened && "visibility: visible; opacity: 1;"}
|
|
2658
|
+
`, fn = k.li`
|
|
2659
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
2660
|
+
cursor: pointer;
|
|
2661
|
+
display: flex;
|
|
2662
|
+
justify-content: space-between;
|
|
2663
|
+
align-items: center;
|
|
2664
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2665
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2666
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
2667
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2668
|
+
|
|
2669
|
+
&:hover,
|
|
2670
|
+
&:active {
|
|
2671
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
&:focus-visible {
|
|
2675
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
2676
|
+
outline-offset: -4px;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
svg {
|
|
2680
|
+
color: ${(e) => e.$selected ? e.$theme.fontColorAccent : e.$theme.fontColorLight};
|
|
2681
|
+
width: ${(e) => e.$theme.iconSize};
|
|
2682
|
+
height: ${(e) => e.$theme.iconSize};
|
|
2683
|
+
}
|
|
2684
|
+
`, ks = k(fn)`
|
|
2685
|
+
justify-content: flex-start;
|
|
2686
|
+
`, js = ({
|
|
2687
|
+
opened: e,
|
|
2688
|
+
onClick: t,
|
|
2689
|
+
comboboxId: r,
|
|
2690
|
+
dropdownId: n,
|
|
2691
|
+
name: o,
|
|
2692
|
+
placeholder: i,
|
|
2693
|
+
disabled: a,
|
|
2694
|
+
required: d,
|
|
2695
|
+
values: l,
|
|
2696
|
+
theme: u
|
|
2697
|
+
}) => {
|
|
2698
|
+
const h = l == null ? void 0 : l.filter((p) => p.selected).map((p) => p.label), f = l == null ? void 0 : l.filter((p) => p.selected).map((p) => p.id);
|
|
2699
|
+
let m = /* @__PURE__ */ s.jsx("span", { children: i });
|
|
2700
|
+
return h && h.length > 1 ? m = /* @__PURE__ */ s.jsx("span", { children: `${h.length} items selected` }) : h && h.length === 1 && (m = /* @__PURE__ */ s.jsx("span", { children: h[0] })), /* @__PURE__ */ s.jsxs(
|
|
2701
|
+
un,
|
|
2702
|
+
{
|
|
2703
|
+
type: "button",
|
|
2704
|
+
name: o,
|
|
2705
|
+
value: f,
|
|
2706
|
+
role: "combobox",
|
|
2707
|
+
"aria-haspopup": "listbox",
|
|
2708
|
+
"aria-expanded": e,
|
|
2709
|
+
"aria-controls": n,
|
|
2710
|
+
id: r,
|
|
2711
|
+
onClick: t,
|
|
2712
|
+
disabled: a,
|
|
2713
|
+
"aria-required": d,
|
|
2714
|
+
$theme: u,
|
|
2715
|
+
children: [
|
|
2716
|
+
m,
|
|
2717
|
+
e ? /* @__PURE__ */ s.jsx(Xt, {}) : /* @__PURE__ */ s.jsx(qt, {})
|
|
2718
|
+
]
|
|
2719
|
+
}
|
|
2720
|
+
);
|
|
2721
|
+
}, Cs = ({ value: e, onSelect: t, theme: r }) => {
|
|
2722
|
+
const { id: n, label: o, selected: i } = e, a = (d) => (l) => {
|
|
2723
|
+
switch (l.key) {
|
|
2724
|
+
case " ":
|
|
2725
|
+
case "SpaceBar":
|
|
2726
|
+
case "Enter":
|
|
2727
|
+
l.preventDefault(), t(d);
|
|
2728
|
+
break;
|
|
2729
|
+
}
|
|
2730
|
+
};
|
|
2731
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2732
|
+
ks,
|
|
2733
|
+
{
|
|
2734
|
+
id: n,
|
|
2735
|
+
role: "option",
|
|
2736
|
+
"aria-selected": i,
|
|
2737
|
+
tabIndex: 0,
|
|
2738
|
+
onKeyDown: a(n),
|
|
2739
|
+
onClick: () => t(n),
|
|
2740
|
+
$theme: r,
|
|
2741
|
+
$selected: i,
|
|
2742
|
+
children: [
|
|
2743
|
+
i ? /* @__PURE__ */ s.jsx(jt, {}) : /* @__PURE__ */ s.jsx(Ct, {}),
|
|
2744
|
+
/* @__PURE__ */ s.jsx("span", { children: o })
|
|
2745
|
+
]
|
|
2746
|
+
}
|
|
2747
|
+
);
|
|
2748
|
+
}, Es = ({ options: e, opened: t, onClose: r, onSelect: n, dropdownId: o, theme: i }) => /* @__PURE__ */ s.jsx(
|
|
2749
|
+
hn,
|
|
2750
|
+
{
|
|
2751
|
+
$opened: t,
|
|
2752
|
+
role: "listbox",
|
|
2753
|
+
id: o,
|
|
2754
|
+
tabIndex: -1,
|
|
2755
|
+
onKeyDown: (a) => cn({ e: a, options: e, onClose: r }),
|
|
2756
|
+
$theme: i,
|
|
2757
|
+
children: e.map((a) => /* @__PURE__ */ s.jsx(Cs, { value: a, onSelect: () => n(a.id), theme: i }, a.id))
|
|
2758
|
+
}
|
|
2759
|
+
);
|
|
2760
|
+
function As({
|
|
2761
|
+
name: e,
|
|
2762
|
+
options: t,
|
|
2763
|
+
initialValues: r,
|
|
2764
|
+
defaultValue: n
|
|
2765
|
+
}) {
|
|
2766
|
+
return t.map((o) => {
|
|
2767
|
+
let i = !1;
|
|
2768
|
+
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 };
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
const Er = (e) => e.filter((t) => t.selected).map((t) => t.id), zs = (e, t) => {
|
|
2772
|
+
const r = e.find((n) => n.id === t);
|
|
2773
|
+
return e.map((n) => n.id === t ? { ...n, selected: !(r != null && r.selected) } : n);
|
|
2774
|
+
};
|
|
2775
|
+
function Is({
|
|
2776
|
+
name: e,
|
|
2777
|
+
defaultValue: t,
|
|
2778
|
+
onChange: r,
|
|
2779
|
+
options: n
|
|
2780
|
+
}) {
|
|
2781
|
+
const [o, i] = O(!1), { onChangeFormInput: a, initialValues: d } = xe(Me), l = As({ name: e, options: n, initialValues: d, defaultValue: t }), [u, h] = O(l), f = () => i(!1), m = () => i(!o), p = (x) => {
|
|
2782
|
+
const w = zs(u, x);
|
|
2783
|
+
h(w), r == null || r(w), a == null || a({ name: e, value: Er(w) });
|
|
2784
|
+
}, g = et(() => {
|
|
2785
|
+
i(!1), h(l), a == null || a({ name: e, value: Er(l) });
|
|
2786
|
+
}, [e]);
|
|
2787
|
+
return tt(g), {
|
|
2788
|
+
handleClose: f,
|
|
2789
|
+
handleToggle: m,
|
|
2790
|
+
handleSelect: p,
|
|
2791
|
+
opened: o,
|
|
2792
|
+
values: u
|
|
2793
|
+
};
|
|
2794
|
+
}
|
|
2795
|
+
const Wi = ({
|
|
2796
|
+
options: e,
|
|
2797
|
+
name: t,
|
|
2798
|
+
label: r,
|
|
2799
|
+
required: n = !1,
|
|
2800
|
+
placeholder: o = "Not selected",
|
|
2801
|
+
disabled: i = !1,
|
|
2802
|
+
onChange: a,
|
|
2803
|
+
defaultValue: d,
|
|
2804
|
+
id: l,
|
|
2805
|
+
...u
|
|
2806
|
+
}) => {
|
|
2807
|
+
const h = ve(null), { elementId: f, dropdownId: m } = ye(l), p = K(), { handleClose: g, handleSelect: x, handleToggle: w, opened: $, values: S } = Is({
|
|
2808
|
+
name: t,
|
|
2809
|
+
options: e,
|
|
2810
|
+
defaultValue: d,
|
|
2811
|
+
onChange: a
|
|
2812
|
+
});
|
|
2813
|
+
return Et({ ref: h, onClickOutsideHandler: g }), At({ keyCode: "Escape", ref: h, onKeyPress: g }), /* @__PURE__ */ s.jsxs(dn, { ref: h, $theme: p, ...u, children: [
|
|
2814
|
+
/* @__PURE__ */ s.jsx(We, { label: r, required: n, inputId: f, theme: p }),
|
|
2815
|
+
/* @__PURE__ */ s.jsx(
|
|
2816
|
+
js,
|
|
2817
|
+
{
|
|
2818
|
+
name: t,
|
|
2819
|
+
opened: $,
|
|
2820
|
+
comboboxId: f,
|
|
2821
|
+
dropdownId: m,
|
|
2822
|
+
onClick: w,
|
|
2823
|
+
values: S,
|
|
2824
|
+
placeholder: o,
|
|
2825
|
+
disabled: i,
|
|
2826
|
+
required: n,
|
|
2827
|
+
theme: p
|
|
2828
|
+
}
|
|
2829
|
+
),
|
|
2830
|
+
/* @__PURE__ */ s.jsx(
|
|
2831
|
+
Es,
|
|
2832
|
+
{
|
|
2833
|
+
theme: p,
|
|
2834
|
+
options: S,
|
|
2835
|
+
opened: $,
|
|
2836
|
+
onClose: g,
|
|
2837
|
+
dropdownId: m,
|
|
2838
|
+
onSelect: x
|
|
2839
|
+
}
|
|
2840
|
+
)
|
|
2841
|
+
] });
|
|
2842
|
+
};
|
|
2843
|
+
function Ms({
|
|
2844
|
+
name: e,
|
|
2845
|
+
initialValues: t,
|
|
2846
|
+
defaultValue: r
|
|
2847
|
+
}) {
|
|
2848
|
+
return t && t[e] ? Number(t[e]) : r && typeof r == "number" ? r : 0;
|
|
2849
|
+
}
|
|
2850
|
+
function Rs({
|
|
2851
|
+
value: e,
|
|
2852
|
+
required: t,
|
|
2853
|
+
validator: r,
|
|
2854
|
+
maxValue: n,
|
|
2855
|
+
minValue: o
|
|
2856
|
+
}) {
|
|
2857
|
+
return t && !r && e === void 0 ? !1 : r && typeof r == "function" ? r(e) : n && o && e && !r ? e <= n && e >= o : !0;
|
|
2858
|
+
}
|
|
2859
|
+
function Bs({
|
|
2860
|
+
name: e,
|
|
2861
|
+
defaultValue: t,
|
|
2862
|
+
onChange: r,
|
|
2863
|
+
onSpinButtonClick: n,
|
|
2864
|
+
min: o,
|
|
2865
|
+
max: i,
|
|
2866
|
+
step: a,
|
|
2867
|
+
required: d,
|
|
2868
|
+
validator: l
|
|
2869
|
+
}) {
|
|
2870
|
+
const { onChangeFormInput: u, initialValues: h } = xe(Me), f = Ms({ initialValues: h, defaultValue: t, name: e }), m = i ? Number(i) : Number.MAX_SAFE_INTEGER, p = o ? Number(o) : Number.MIN_SAFE_INTEGER, [g, x] = O(f), [w, $] = O(!0), S = (y) => {
|
|
2871
|
+
x(y);
|
|
2872
|
+
const P = Rs({ value: y, required: d, validator: l, maxValue: m, minValue: p });
|
|
2873
|
+
$(P), u == null || u({ name: e, value: y, valid: P });
|
|
2874
|
+
}, E = (y) => {
|
|
2875
|
+
const P = Number(y.target.value);
|
|
2876
|
+
S(P), r == null || r(y);
|
|
2877
|
+
}, I = () => {
|
|
2878
|
+
S(g + a), n == null || n(g + a);
|
|
2879
|
+
}, M = () => {
|
|
2880
|
+
S(g - a), n == null || n(g - a);
|
|
2881
|
+
}, j = et(() => {
|
|
2882
|
+
x(f), $(!0), u == null || u({ name: e, value: f, valid: !0 });
|
|
2883
|
+
}, [e]);
|
|
2884
|
+
return tt(j), {
|
|
2885
|
+
handleChange: E,
|
|
2886
|
+
value: g,
|
|
2887
|
+
valid: w,
|
|
2888
|
+
minValue: p,
|
|
2889
|
+
maxValue: m,
|
|
2890
|
+
increment: I,
|
|
2891
|
+
decrement: M
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
const Ts = k.div`
|
|
2895
|
+
display: flex;
|
|
2896
|
+
flex-direction: column;
|
|
2897
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2898
|
+
position: relative;
|
|
2899
|
+
|
|
2900
|
+
& > div:nth-child(2) {
|
|
2901
|
+
display: flex;
|
|
2902
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
2903
|
+
align-items: center;
|
|
2904
|
+
border: ${(e) => e.$theme.borderLight};
|
|
2905
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2906
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
2907
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
2908
|
+
|
|
2909
|
+
&:has(input:focus) {
|
|
2910
|
+
border: ${(e) => e.$theme.borderOutline};
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
&:has(input[aria-invalid='true']) {
|
|
2914
|
+
border: ${(e) => e.$theme.borderAccent};
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
&:has(input[disabled]) {
|
|
2918
|
+
pointer-events: none;
|
|
2919
|
+
opacity: 0.5;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
& > span:nth-child(2) {
|
|
2923
|
+
display: flex;
|
|
2924
|
+
align-items: center;
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
& input {
|
|
2929
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2930
|
+
padding: 0;
|
|
2931
|
+
border: none;
|
|
2932
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2933
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
2934
|
+
display: inline-block;
|
|
2935
|
+
background: transparent;
|
|
2936
|
+
white-space: nowrap;
|
|
2937
|
+
text-overflow: ellipsis;
|
|
2938
|
+
overflow: hidden;
|
|
2939
|
+
flex-grow: 1;
|
|
2940
|
+
min-width: 0;
|
|
2941
|
+
|
|
2942
|
+
&:focus-visible {
|
|
2943
|
+
outline: none;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
&::-webkit-outer-spin-button,
|
|
2947
|
+
&::-webkit-inner-spin-button {
|
|
2948
|
+
-webkit-appearance: none;
|
|
2949
|
+
margin: 0;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
&[type='number'] {
|
|
2953
|
+
-moz-appearance: textfield;
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
`, Yi = ({
|
|
2957
|
+
name: e,
|
|
2958
|
+
label: t,
|
|
2959
|
+
errorMessage: r,
|
|
2960
|
+
onChange: n,
|
|
2961
|
+
onBlur: o,
|
|
2962
|
+
onFocus: i,
|
|
2963
|
+
onSpinButtonClick: a,
|
|
2964
|
+
validator: d,
|
|
2965
|
+
min: l,
|
|
2966
|
+
max: u,
|
|
2967
|
+
id: h,
|
|
2968
|
+
tabIndex: f,
|
|
2969
|
+
disabled: m = !1,
|
|
2970
|
+
required: p = !1,
|
|
2971
|
+
readOnly: g = !1,
|
|
2972
|
+
hasSpinButtons: x = !0,
|
|
2973
|
+
defaultValue: w = 0,
|
|
2974
|
+
step: $ = 1,
|
|
2975
|
+
...S
|
|
2976
|
+
}) => {
|
|
2977
|
+
const { elementId: E, errorId: I } = ye(h), M = K(), { value: j, valid: y, handleChange: P, increment: Y, decrement: ne, minValue: ee, maxValue: oe } = Bs({
|
|
2978
|
+
name: e,
|
|
2979
|
+
defaultValue: w,
|
|
2980
|
+
min: l,
|
|
2981
|
+
max: u,
|
|
2982
|
+
onChange: n,
|
|
2983
|
+
required: p,
|
|
2984
|
+
validator: d,
|
|
2985
|
+
step: $,
|
|
2986
|
+
onSpinButtonClick: a
|
|
2987
|
+
});
|
|
2988
|
+
return /* @__PURE__ */ s.jsxs(Ts, { $theme: M, ...S, children: [
|
|
2989
|
+
/* @__PURE__ */ s.jsx(We, { label: t, required: p, inputId: E, theme: M }),
|
|
2990
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
2991
|
+
/* @__PURE__ */ s.jsx(
|
|
2992
|
+
"input",
|
|
2993
|
+
{
|
|
2994
|
+
id: E,
|
|
2995
|
+
name: e,
|
|
2996
|
+
type: "number",
|
|
2997
|
+
disabled: m,
|
|
2998
|
+
required: p,
|
|
2999
|
+
readOnly: g,
|
|
3000
|
+
placeholder: "0",
|
|
3001
|
+
"aria-invalid": !y,
|
|
3002
|
+
"aria-errormessage": I,
|
|
3003
|
+
value: j.toString(),
|
|
3004
|
+
onChange: P,
|
|
3005
|
+
min: ee,
|
|
3006
|
+
max: oe,
|
|
3007
|
+
step: $,
|
|
3008
|
+
onBlur: o,
|
|
3009
|
+
onFocus: i,
|
|
3010
|
+
tabIndex: f
|
|
3011
|
+
}
|
|
3012
|
+
),
|
|
3013
|
+
x && /* @__PURE__ */ s.jsxs("span", { children: [
|
|
3014
|
+
/* @__PURE__ */ s.jsx(
|
|
3015
|
+
bt,
|
|
3016
|
+
{
|
|
3017
|
+
onClick: ne,
|
|
3018
|
+
label: `Decrement value for ${t}`,
|
|
3019
|
+
icon: C.ChevronLeft,
|
|
3020
|
+
disabled: m,
|
|
3021
|
+
theme: M
|
|
3022
|
+
}
|
|
3023
|
+
),
|
|
3024
|
+
/* @__PURE__ */ s.jsx(
|
|
3025
|
+
bt,
|
|
3026
|
+
{
|
|
3027
|
+
onClick: Y,
|
|
3028
|
+
label: `Increment value for ${t}`,
|
|
3029
|
+
icon: C.ChevronRight,
|
|
3030
|
+
disabled: m,
|
|
3031
|
+
theme: M
|
|
3032
|
+
}
|
|
3033
|
+
)
|
|
3034
|
+
] })
|
|
3035
|
+
] }),
|
|
3036
|
+
/* @__PURE__ */ s.jsx(en, { errorId: I, message: r, visible: !y, theme: M })
|
|
3037
|
+
] });
|
|
3038
|
+
}, _s = ({
|
|
3039
|
+
opened: e,
|
|
3040
|
+
onClick: t,
|
|
3041
|
+
comboboxId: r,
|
|
3042
|
+
dropdownId: n,
|
|
3043
|
+
selected: o,
|
|
3044
|
+
name: i,
|
|
3045
|
+
placeholder: a,
|
|
3046
|
+
disabled: d,
|
|
3047
|
+
required: l,
|
|
3048
|
+
theme: u
|
|
3049
|
+
}) => /* @__PURE__ */ s.jsxs(
|
|
3050
|
+
un,
|
|
3051
|
+
{
|
|
3052
|
+
type: "button",
|
|
3053
|
+
name: i,
|
|
3054
|
+
value: o == null ? void 0 : o.id,
|
|
3055
|
+
role: "combobox",
|
|
3056
|
+
"aria-haspopup": "listbox",
|
|
3057
|
+
"aria-expanded": e,
|
|
3058
|
+
"aria-controls": n,
|
|
3059
|
+
id: r,
|
|
3060
|
+
onClick: t,
|
|
3061
|
+
disabled: d,
|
|
3062
|
+
"aria-required": l,
|
|
3063
|
+
$theme: u,
|
|
3064
|
+
children: [
|
|
3065
|
+
o != null && o.label ? /* @__PURE__ */ s.jsx("span", { children: o == null ? void 0 : o.label }) : /* @__PURE__ */ s.jsx("span", { children: a }),
|
|
3066
|
+
e ? /* @__PURE__ */ s.jsx(Xt, {}) : /* @__PURE__ */ s.jsx(qt, {})
|
|
3067
|
+
]
|
|
3068
|
+
}
|
|
3069
|
+
), Os = ({ value: e, selected: t, onSelect: r, onClear: n, theme: o }) => {
|
|
3070
|
+
const { id: i, label: a } = e, d = (u) => {
|
|
3071
|
+
t ? n() : r(u);
|
|
3072
|
+
}, l = (u) => (h) => {
|
|
3073
|
+
switch (h.key) {
|
|
3074
|
+
case " ":
|
|
3075
|
+
case "SpaceBar":
|
|
3076
|
+
case "Enter":
|
|
3077
|
+
h.preventDefault(), d(u);
|
|
3078
|
+
break;
|
|
3079
|
+
}
|
|
3080
|
+
};
|
|
3081
|
+
return /* @__PURE__ */ s.jsxs(
|
|
3082
|
+
fn,
|
|
3083
|
+
{
|
|
3084
|
+
id: i,
|
|
3085
|
+
role: "option",
|
|
3086
|
+
"aria-selected": t,
|
|
3087
|
+
tabIndex: 0,
|
|
3088
|
+
onKeyDown: l(i),
|
|
3089
|
+
onClick: () => d(i),
|
|
3090
|
+
$theme: o,
|
|
3091
|
+
$selected: t,
|
|
3092
|
+
children: [
|
|
3093
|
+
/* @__PURE__ */ s.jsx("span", { children: a }),
|
|
3094
|
+
t && /* @__PURE__ */ s.jsx(Jt, {})
|
|
3095
|
+
]
|
|
3096
|
+
}
|
|
3097
|
+
);
|
|
3098
|
+
}, Ps = ({
|
|
3099
|
+
options: e,
|
|
3100
|
+
opened: t,
|
|
3101
|
+
onClose: r,
|
|
3102
|
+
onSelect: n,
|
|
3103
|
+
dropdownId: o,
|
|
3104
|
+
comboboxId: i,
|
|
3105
|
+
selected: a,
|
|
3106
|
+
onClear: d,
|
|
3107
|
+
theme: l
|
|
3108
|
+
}) => {
|
|
3109
|
+
const u = (h) => {
|
|
3110
|
+
n(h), r(), Qe(i);
|
|
3111
|
+
};
|
|
3112
|
+
return /* @__PURE__ */ s.jsx(
|
|
3113
|
+
hn,
|
|
3114
|
+
{
|
|
3115
|
+
role: "listbox",
|
|
3116
|
+
id: o,
|
|
3117
|
+
tabIndex: -1,
|
|
3118
|
+
onKeyDown: (h) => cn({ e: h, options: e, onClose: r }),
|
|
3119
|
+
$opened: t,
|
|
3120
|
+
$theme: l,
|
|
3121
|
+
children: e.map((h) => /* @__PURE__ */ s.jsx(
|
|
3122
|
+
Os,
|
|
3123
|
+
{
|
|
3124
|
+
value: h,
|
|
3125
|
+
onSelect: () => u(h.id),
|
|
3126
|
+
onClear: d,
|
|
3127
|
+
selected: h.id === (a == null ? void 0 : a.id),
|
|
3128
|
+
theme: l
|
|
3129
|
+
},
|
|
3130
|
+
h.id
|
|
3131
|
+
))
|
|
3132
|
+
}
|
|
3133
|
+
);
|
|
3134
|
+
};
|
|
3135
|
+
function Ls({
|
|
3136
|
+
name: e,
|
|
3137
|
+
options: t,
|
|
3138
|
+
initialValues: r,
|
|
3139
|
+
defaultValue: n
|
|
3140
|
+
}) {
|
|
3141
|
+
var i;
|
|
3142
|
+
let o;
|
|
3143
|
+
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);
|
|
3144
|
+
}
|
|
3145
|
+
function Ds({
|
|
3146
|
+
name: e,
|
|
3147
|
+
defaultValue: t,
|
|
3148
|
+
onChange: r,
|
|
3149
|
+
options: n
|
|
3150
|
+
}) {
|
|
3151
|
+
const { onChangeFormInput: o, initialValues: i } = xe(Me), a = Ls({ name: e, options: n, defaultValue: t, initialValues: i }), [d, l] = O(!1), [u, h] = O(a), f = () => l(!1), m = () => l(!d), p = (w) => {
|
|
3152
|
+
const $ = n.find((S) => S.id === w);
|
|
3153
|
+
h($), r == null || r($), o == null || o({ name: e, value: $ == null ? void 0 : $.id });
|
|
3154
|
+
}, g = () => {
|
|
3155
|
+
h(void 0), r == null || r(void 0);
|
|
3156
|
+
}, x = et(() => {
|
|
3157
|
+
l(!1), h(a), o == null || o({ name: e, value: a == null ? void 0 : a.id });
|
|
3158
|
+
}, [e]);
|
|
3159
|
+
return tt(x), {
|
|
3160
|
+
selected: u,
|
|
3161
|
+
opened: d,
|
|
3162
|
+
handleClear: g,
|
|
3163
|
+
handleClose: f,
|
|
3164
|
+
handleToggle: m,
|
|
3165
|
+
handleSelect: p
|
|
3166
|
+
};
|
|
3167
|
+
}
|
|
3168
|
+
const Ui = ({
|
|
3169
|
+
options: e,
|
|
3170
|
+
onChange: t,
|
|
3171
|
+
name: r,
|
|
3172
|
+
label: n,
|
|
3173
|
+
defaultValue: o,
|
|
3174
|
+
id: i,
|
|
3175
|
+
placeholder: a = "Not selected",
|
|
3176
|
+
required: d = !1,
|
|
3177
|
+
disabled: l = !1,
|
|
3178
|
+
...u
|
|
3179
|
+
}) => {
|
|
3180
|
+
const h = ve(null), f = K(), { elementId: m, dropdownId: p } = ye(i), { handleClear: g, handleClose: x, handleSelect: w, handleToggle: $, selected: S, opened: E } = Ds({
|
|
3181
|
+
options: e,
|
|
3182
|
+
onChange: t,
|
|
3183
|
+
defaultValue: o,
|
|
3184
|
+
name: r
|
|
3185
|
+
});
|
|
3186
|
+
return Et({ ref: h, onClickOutsideHandler: x }), At({ keyCode: "Escape", ref: h, onKeyPress: x }), /* @__PURE__ */ s.jsxs(dn, { ref: h, $theme: f, ...u, children: [
|
|
3187
|
+
/* @__PURE__ */ s.jsx(We, { label: n, required: d, inputId: m, theme: f }),
|
|
3188
|
+
/* @__PURE__ */ s.jsx(
|
|
3189
|
+
_s,
|
|
3190
|
+
{
|
|
3191
|
+
name: r,
|
|
3192
|
+
opened: E,
|
|
3193
|
+
comboboxId: m,
|
|
3194
|
+
dropdownId: p,
|
|
3195
|
+
onClick: $,
|
|
3196
|
+
selected: S,
|
|
3197
|
+
placeholder: a,
|
|
3198
|
+
disabled: l,
|
|
3199
|
+
required: d,
|
|
3200
|
+
theme: f
|
|
3201
|
+
}
|
|
3202
|
+
),
|
|
3203
|
+
/* @__PURE__ */ s.jsx(
|
|
3204
|
+
Ps,
|
|
3205
|
+
{
|
|
3206
|
+
options: e,
|
|
3207
|
+
selected: S,
|
|
3208
|
+
opened: E,
|
|
3209
|
+
onClose: x,
|
|
3210
|
+
dropdownId: p,
|
|
3211
|
+
comboboxId: m,
|
|
3212
|
+
onSelect: w,
|
|
3213
|
+
onClear: g,
|
|
3214
|
+
theme: f
|
|
3215
|
+
}
|
|
3216
|
+
)
|
|
3217
|
+
] });
|
|
3218
|
+
};
|
|
3219
|
+
function Ns({
|
|
3220
|
+
value: e,
|
|
3221
|
+
required: t,
|
|
3222
|
+
validator: r
|
|
3223
|
+
}) {
|
|
3224
|
+
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;
|
|
3225
|
+
}
|
|
3226
|
+
function Hs({
|
|
3227
|
+
name: e,
|
|
3228
|
+
initialValues: t,
|
|
3229
|
+
defaultValue: r
|
|
3230
|
+
}) {
|
|
3231
|
+
return t && (t != null && t[e]) ? t[e].toString() : r && typeof r == "string" ? r : "";
|
|
3232
|
+
}
|
|
3233
|
+
function Fs({
|
|
3234
|
+
name: e,
|
|
3235
|
+
defaultValue: t,
|
|
3236
|
+
onChange: r,
|
|
3237
|
+
onClear: n,
|
|
3238
|
+
required: o,
|
|
3239
|
+
validator: i
|
|
3240
|
+
}) {
|
|
3241
|
+
const { onChangeFormInput: a, initialValues: d } = xe(Me), l = Hs({ initialValues: d, defaultValue: t, name: e }), [u, h] = O(l), [f, m] = O(!0), [p, g] = O(!1), x = (E) => {
|
|
3242
|
+
const I = E.target.value, M = Ns({ value: I, required: o, validator: i });
|
|
3243
|
+
h(I), m(M), a == null || a({ name: e, value: I, valid: M }), r == null || r(E);
|
|
3244
|
+
}, w = () => {
|
|
3245
|
+
h(""), m(!0), a == null || a({ name: e, value: "", valid: !0 }), n == null || n();
|
|
3246
|
+
}, $ = et(() => {
|
|
3247
|
+
h(l), m(!0), a == null || a({ name: e, value: l, valid: !0 });
|
|
3248
|
+
}, [e]), S = () => {
|
|
3249
|
+
g(!p);
|
|
3250
|
+
};
|
|
3251
|
+
return tt($), {
|
|
3252
|
+
value: u,
|
|
3253
|
+
valid: f,
|
|
3254
|
+
passwordShown: p,
|
|
3255
|
+
handleChange: x,
|
|
3256
|
+
handleClear: w,
|
|
3257
|
+
togglePassword: S
|
|
3258
|
+
};
|
|
3259
|
+
}
|
|
3260
|
+
const Vs = k.div`
|
|
3261
|
+
display: flex;
|
|
3262
|
+
flex-direction: column;
|
|
3263
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
3264
|
+
position: relative;
|
|
3265
|
+
|
|
3266
|
+
& > div:nth-child(2) {
|
|
3267
|
+
display: flex;
|
|
3268
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
3269
|
+
align-items: center;
|
|
3270
|
+
border: ${(e) => e.$theme.borderLight};
|
|
3271
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3272
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
3273
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3274
|
+
|
|
3275
|
+
&:has(input:focus) {
|
|
3276
|
+
border: ${(e) => e.$theme.borderOutline};
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
&:has(input[aria-invalid='true']) {
|
|
3280
|
+
border: ${(e) => e.$theme.borderAccent};
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
&:has(input[disabled]) {
|
|
3284
|
+
pointer-events: none;
|
|
3285
|
+
opacity: 0.5;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
& > span:nth-child(2) {
|
|
3289
|
+
display: flex;
|
|
3290
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
3291
|
+
align-items: center;
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
& input {
|
|
3296
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3297
|
+
padding: 0;
|
|
3298
|
+
border: none;
|
|
3299
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3300
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3301
|
+
display: inline-block;
|
|
3302
|
+
background: transparent;
|
|
3303
|
+
white-space: nowrap;
|
|
3304
|
+
text-overflow: ellipsis;
|
|
3305
|
+
overflow: hidden;
|
|
3306
|
+
flex-grow: 1;
|
|
3307
|
+
min-width: 0;
|
|
3308
|
+
|
|
3309
|
+
&:focus-visible {
|
|
3310
|
+
outline: none;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
&:placeholder-shown + span {
|
|
3314
|
+
display: none !important;
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
`, Ki = ({
|
|
3318
|
+
name: e,
|
|
3319
|
+
label: t,
|
|
3320
|
+
errorMessage: r,
|
|
3321
|
+
defaultValue: n,
|
|
3322
|
+
onChange: o,
|
|
3323
|
+
onBlur: i,
|
|
3324
|
+
onFocus: a,
|
|
3325
|
+
onClear: d,
|
|
3326
|
+
validator: l,
|
|
3327
|
+
maxLength: u,
|
|
3328
|
+
id: h,
|
|
3329
|
+
tabIndex: f,
|
|
3330
|
+
placeholder: m = "Type here...",
|
|
3331
|
+
disabled: p = !1,
|
|
3332
|
+
required: g = !1,
|
|
3333
|
+
clearable: x = !0,
|
|
3334
|
+
readOnly: w = !1,
|
|
3335
|
+
autoComplete: $ = "off",
|
|
3336
|
+
type: S = "text",
|
|
3337
|
+
...E
|
|
3338
|
+
}) => {
|
|
3339
|
+
const { value: I, valid: M, handleChange: j, handleClear: y, passwordShown: P, togglePassword: Y } = Fs({
|
|
3340
|
+
defaultValue: n,
|
|
3341
|
+
name: e,
|
|
3342
|
+
onChange: o,
|
|
3343
|
+
onClear: d,
|
|
3344
|
+
required: g,
|
|
3345
|
+
validator: l
|
|
3346
|
+
}), { elementId: ne, errorId: ee } = ye(h), oe = S === "password", q = K();
|
|
3347
|
+
return /* @__PURE__ */ s.jsxs(Vs, { $theme: q, ...E, children: [
|
|
3348
|
+
/* @__PURE__ */ s.jsx(We, { label: t, required: g, inputId: ne, theme: q }),
|
|
3349
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
3350
|
+
/* @__PURE__ */ s.jsx(
|
|
3351
|
+
"input",
|
|
3352
|
+
{
|
|
3353
|
+
id: ne,
|
|
3354
|
+
name: e,
|
|
3355
|
+
type: P ? "text" : S,
|
|
3356
|
+
disabled: p,
|
|
3357
|
+
placeholder: m,
|
|
3358
|
+
required: g,
|
|
3359
|
+
readOnly: w,
|
|
3360
|
+
autoComplete: $,
|
|
3361
|
+
"aria-invalid": !M,
|
|
3362
|
+
"aria-errormessage": ee,
|
|
3363
|
+
"aria-readonly": w,
|
|
3364
|
+
value: I,
|
|
3365
|
+
onChange: j,
|
|
3366
|
+
maxLength: u,
|
|
3367
|
+
onBlur: i,
|
|
3368
|
+
onFocus: a,
|
|
3369
|
+
tabIndex: f
|
|
3370
|
+
}
|
|
3371
|
+
),
|
|
3372
|
+
/* @__PURE__ */ s.jsxs("span", { children: [
|
|
3373
|
+
x && /* @__PURE__ */ s.jsx(
|
|
3374
|
+
bt,
|
|
3375
|
+
{
|
|
3376
|
+
onClick: y,
|
|
3377
|
+
label: `Clear input for ${t}`,
|
|
3378
|
+
icon: C.Remove,
|
|
3379
|
+
disabled: p,
|
|
3380
|
+
theme: q
|
|
3381
|
+
}
|
|
3382
|
+
),
|
|
3383
|
+
oe && /* @__PURE__ */ s.jsx(
|
|
3384
|
+
bt,
|
|
3385
|
+
{
|
|
3386
|
+
onClick: Y,
|
|
3387
|
+
label: "Toggle password visibility",
|
|
3388
|
+
icon: P ? C.Hide : C.Show,
|
|
3389
|
+
disabled: p,
|
|
3390
|
+
theme: q
|
|
3391
|
+
}
|
|
3392
|
+
)
|
|
3393
|
+
] })
|
|
3394
|
+
] }),
|
|
3395
|
+
/* @__PURE__ */ s.jsx(en, { errorId: ee, message: r, visible: !M, theme: q })
|
|
3396
|
+
] });
|
|
3397
|
+
}, Gs = k.div`
|
|
3398
|
+
z-index: ${(e) => e.$theme.zIndexModal};
|
|
3399
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3400
|
+
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3401
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3402
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3403
|
+
width: 100%;
|
|
3404
|
+
height: 90%;
|
|
3405
|
+
position: absolute;
|
|
3406
|
+
bottom: 0;
|
|
3407
|
+
left: 0;
|
|
3408
|
+
border-top-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3409
|
+
border-top-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3410
|
+
${Ge}
|
|
3411
|
+
|
|
3412
|
+
@media ${To.landscapeTablets} {
|
|
3413
|
+
width: fit-content;
|
|
3414
|
+
height: fit-content;
|
|
3415
|
+
position: relative;
|
|
3416
|
+
min-width: 40%;
|
|
3417
|
+
max-width: 90%;
|
|
3418
|
+
max-height: 90%;
|
|
3419
|
+
border-bottom-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3420
|
+
border-bottom-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3421
|
+
|
|
3422
|
+
header {
|
|
3423
|
+
font-size: ${(e) => e.$theme.fontSizeHeader};
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
`, Ws = k.div`
|
|
3427
|
+
position: fixed;
|
|
3428
|
+
top: 0;
|
|
3429
|
+
left: 0;
|
|
3430
|
+
width: 100%;
|
|
3431
|
+
height: 100%;
|
|
3432
|
+
z-index: inherit;
|
|
3433
|
+
display: flex;
|
|
3434
|
+
justify-content: center;
|
|
3435
|
+
align-items: center;
|
|
3436
|
+
background-color: ${(e) => e.$theme.backgroundColorTransparent};
|
|
3437
|
+
${Ge}
|
|
3438
|
+
|
|
3439
|
+
${(e) => e.$isClosing && Qr}
|
|
3440
|
+
`, Ys = k.header`
|
|
3441
|
+
font-size: 1.6rem;
|
|
3442
|
+
font-weight: bold;
|
|
3443
|
+
display: flex;
|
|
3444
|
+
justify-content: space-between;
|
|
3445
|
+
align-items: center;
|
|
3446
|
+
gap: ${(e) => e.$theme.gapBig};
|
|
3447
|
+
padding: ${(e) => e.$theme.gapBig};
|
|
3448
|
+
border-bottom: ${(e) => e.$theme.borderBase};
|
|
3449
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3450
|
+
`, Us = k.div`
|
|
3451
|
+
padding: ${(e) => e.$theme.gapBig};
|
|
3452
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3453
|
+
`, Ks = ({ title: e, onClose: t, theme: r }) => /* @__PURE__ */ s.jsxs(Ys, { $theme: r, children: [
|
|
3454
|
+
e,
|
|
3455
|
+
/* @__PURE__ */ s.jsx(vt, { icon: C.Cancel, view: ge.Icon, label: "Close modal window", onClick: t })
|
|
3456
|
+
] }), qs = ({ title: e, onClose: t, isOpened: r, children: n, theme: o, ...i }) => {
|
|
3457
|
+
const a = ve(null);
|
|
3458
|
+
return ps({ modalRef: a, isOpened: r }), At({ keyCode: "Escape", ref: a, onKeyPress: t }), /* @__PURE__ */ s.jsxs(Gs, { ref: a, role: "dialog", "aria-modal": "true", $theme: o, ...i, children: [
|
|
3459
|
+
/* @__PURE__ */ s.jsx(Ks, { title: e, onClose: t, theme: o }),
|
|
3460
|
+
/* @__PURE__ */ s.jsx(Us, { $theme: o, children: n })
|
|
3461
|
+
] });
|
|
3462
|
+
}, qi = ({ isOpened: e, onClose: t, title: r, children: n, ...o }) => {
|
|
3463
|
+
const i = ln(e), a = i && !e, d = K();
|
|
3464
|
+
return i ? /* @__PURE__ */ s.jsx(Zt, { children: /* @__PURE__ */ s.jsx(Ws, { $isClosing: a, $theme: d, children: /* @__PURE__ */ s.jsx(qs, { title: r, onClose: t, isOpened: e, ...o, theme: d, children: n }) }) }) : null;
|
|
3465
|
+
}, Xs = ({ id: e }) => {
|
|
3466
|
+
const [t, r] = O(!1), n = ve(null), o = ve(null), { top: i, left: a } = gs({ wrapperRef: n, tooltipRef: o, isOpened: t }), { elementId: d } = ye(e), l = () => r(!1), u = () => r(!0), h = () => r(!t), f = (m) => {
|
|
3467
|
+
m.preventDefault(), h();
|
|
3468
|
+
};
|
|
3469
|
+
return At({ keyCode: "Escape", ref: o, onKeyPress: l }), Et({ ref: o, onClickOutsideHandler: l, dependentRef: n }), {
|
|
3470
|
+
elementId: d,
|
|
3471
|
+
openTooltip: u,
|
|
3472
|
+
closeTooltip: l,
|
|
3473
|
+
toggleTooltip: h,
|
|
3474
|
+
handleContextMenu: f,
|
|
3475
|
+
top: i,
|
|
3476
|
+
left: a,
|
|
3477
|
+
isOpened: t,
|
|
3478
|
+
wrapperRef: n,
|
|
3479
|
+
tooltipRef: o
|
|
3480
|
+
};
|
|
3481
|
+
}, Js = k.div`
|
|
3482
|
+
position: absolute;
|
|
3483
|
+
left: 0;
|
|
3484
|
+
top: 0;
|
|
3485
|
+
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
3486
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3487
|
+
border: ${(e) => e.$theme.borderLight};
|
|
3488
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3489
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
3490
|
+
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
3491
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3492
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3493
|
+
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3494
|
+
pointer-events: none;
|
|
3495
|
+
white-space: nowrap;
|
|
3496
|
+
|
|
3497
|
+
${Ge}
|
|
3498
|
+
`, Zs = ({
|
|
3499
|
+
children: e,
|
|
3500
|
+
tooltipContent: t,
|
|
3501
|
+
containerTag: r = an.Span,
|
|
3502
|
+
visibleOn: n = "hover",
|
|
3503
|
+
id: o,
|
|
3504
|
+
style: i,
|
|
3505
|
+
...a
|
|
3506
|
+
}) => {
|
|
3507
|
+
const d = r, l = K(), { openTooltip: u, closeTooltip: h, toggleTooltip: f, handleContextMenu: m, elementId: p, top: g, left: x, isOpened: w, wrapperRef: $, tooltipRef: S } = Xs({ id: o });
|
|
3508
|
+
return /* @__PURE__ */ s.jsxs(
|
|
3509
|
+
d,
|
|
3510
|
+
{
|
|
3511
|
+
style: { position: "relative", cursor: "pointer" },
|
|
3512
|
+
onClick: n === "click" ? f : void 0,
|
|
3513
|
+
onMouseOver: n === "hover" ? u : void 0,
|
|
3514
|
+
onMouseLeave: n === "hover" ? h : void 0,
|
|
3515
|
+
onFocus: n === "focus" ? u : void 0,
|
|
3516
|
+
onBlur: n === "focus" ? h : void 0,
|
|
3517
|
+
onContextMenu: n === "contextmenu" ? (E) => m(E) : void 0,
|
|
3518
|
+
tabIndex: 0,
|
|
3519
|
+
ref: $,
|
|
3520
|
+
"aria-describedby": p,
|
|
3521
|
+
children: [
|
|
3522
|
+
e,
|
|
3523
|
+
w && /* @__PURE__ */ s.jsx(Zt, { children: /* @__PURE__ */ s.jsx(Js, { style: { ...i, top: g, left: x }, ref: S, role: "tooltip", id: p, $theme: l, ...a, children: t }) })
|
|
3524
|
+
]
|
|
3525
|
+
}
|
|
3526
|
+
);
|
|
3527
|
+
};
|
|
3528
|
+
function Qs(e) {
|
|
3529
|
+
return e ? Object.keys(e).map((t) => [t, !0]) : [];
|
|
3530
|
+
}
|
|
3531
|
+
function ei(e, t) {
|
|
3532
|
+
return (t == null ? void 0 : t.valid) === void 0 ? e : e.map((r) => r[0] !== t.name ? r : [r[0], !!(t != null && t.valid)]);
|
|
3533
|
+
}
|
|
3534
|
+
function ti(e) {
|
|
3535
|
+
return e.every((t) => t[1]);
|
|
3536
|
+
}
|
|
3537
|
+
function ri({
|
|
3538
|
+
initialValues: e,
|
|
3539
|
+
onReset: t,
|
|
3540
|
+
onSubmit: r,
|
|
3541
|
+
onClickSubmit: n
|
|
3542
|
+
}) {
|
|
3543
|
+
const [o, i] = O(e), [a, d] = O(Qs(e)), [l, u] = O(0);
|
|
3544
|
+
return {
|
|
3545
|
+
handleInputChange: (p) => {
|
|
3546
|
+
const g = { ...o, [p.name]: p.value };
|
|
3547
|
+
i(g), d(ei(a, p));
|
|
3548
|
+
},
|
|
3549
|
+
handleSubmit: (p) => {
|
|
3550
|
+
p.preventDefault();
|
|
3551
|
+
const x = { ...Object.fromEntries(new FormData(p.target)), ...o };
|
|
3552
|
+
r == null || r(p), n == null || n(x);
|
|
3553
|
+
},
|
|
3554
|
+
handleReset: (p) => {
|
|
3555
|
+
t == null || t(p), i(e), u(l + 1);
|
|
3556
|
+
},
|
|
3557
|
+
resetSignal: l,
|
|
3558
|
+
valid: ti(a)
|
|
3559
|
+
};
|
|
3560
|
+
}
|
|
3561
|
+
const ni = k.form`
|
|
3562
|
+
display: grid;
|
|
3563
|
+
align-items: end;
|
|
3564
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
3565
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3566
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3567
|
+
|
|
3568
|
+
${({ $columns: e }) => `
|
|
3569
|
+
grid-template-columns: repeat(${e}, 1fr);
|
|
3570
|
+
grid-template-rows: auto;
|
|
3571
|
+
`}
|
|
3572
|
+
`, oi = k.div`
|
|
3573
|
+
display: flex;
|
|
3574
|
+
align-items: center;
|
|
3575
|
+
justify-content: space-between;
|
|
3576
|
+
padding-top: 1rem;
|
|
3577
|
+
|
|
3578
|
+
${({ $columns: e }) => `
|
|
3579
|
+
grid-column: 1 / ${e + 1};
|
|
3580
|
+
`}
|
|
3581
|
+
`, Xi = ({
|
|
3582
|
+
children: e,
|
|
3583
|
+
initialValues: t,
|
|
3584
|
+
onReset: r,
|
|
3585
|
+
onSubmit: n,
|
|
3586
|
+
onClickSubmit: o,
|
|
3587
|
+
columns: i = 1,
|
|
3588
|
+
hasReset: a = !0,
|
|
3589
|
+
...d
|
|
3590
|
+
}) => {
|
|
3591
|
+
const { handleInputChange: l, handleSubmit: u, handleReset: h, resetSignal: f, valid: m } = ri({
|
|
3592
|
+
initialValues: t,
|
|
3593
|
+
onReset: r,
|
|
3594
|
+
onSubmit: n,
|
|
3595
|
+
onClickSubmit: o
|
|
3596
|
+
}), p = K();
|
|
3597
|
+
return /* @__PURE__ */ s.jsx(ni, { onSubmit: u, onReset: h, $columns: i, $theme: p, ...d, children: /* @__PURE__ */ s.jsxs(Me.Provider, { value: { onChangeFormInput: l, initialValues: t, resetSignal: f }, children: [
|
|
3598
|
+
e,
|
|
3599
|
+
/* @__PURE__ */ s.jsxs(oi, { $columns: i, children: [
|
|
3600
|
+
a && /* @__PURE__ */ s.jsx(vt, { type: "reset", text: "Reset", icon: C.Clear, view: ge.Flat }),
|
|
3601
|
+
/* @__PURE__ */ s.jsx(vt, { type: "submit", text: "Submit", icon: C.Forward, extended: !a, disabled: !m })
|
|
3602
|
+
] })
|
|
3603
|
+
] }) });
|
|
3604
|
+
}, si = k.table`
|
|
3605
|
+
border-collapse: collapse;
|
|
3606
|
+
`, ii = k.thead`
|
|
3607
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3608
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3609
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3610
|
+
`, ai = k.tbody`
|
|
3611
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3612
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3613
|
+
`, pn = k.th`
|
|
3614
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
3615
|
+
text-align: left;
|
|
3616
|
+
`, ci = k.tr`
|
|
3617
|
+
font-weight: bold;
|
|
3618
|
+
border-top: ${(e) => e.$theme.borderLight};
|
|
3619
|
+
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3620
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3621
|
+
`, mn = k.td`
|
|
3622
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
3623
|
+
`, li = k.caption`
|
|
3624
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3625
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3626
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
3627
|
+
font-weight: bold;
|
|
3628
|
+
`, di = k.tr`
|
|
3629
|
+
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3630
|
+
|
|
3631
|
+
${(e) => e.$selected && `
|
|
3632
|
+
background-color: ${e.$theme.backgroundColorLight};
|
|
3633
|
+
`}
|
|
3634
|
+
`, Ar = k.col`
|
|
3635
|
+
border-right: ${(e) => e.$theme.borderLight};
|
|
3636
|
+
|
|
3637
|
+
${(e) => e.$isFirst && `border-left: ${e.$theme.borderLight};`}
|
|
3638
|
+
${(e) => e.$highlighted && `background-color: ${e.$theme.backgroundColorLight};`}
|
|
3639
|
+
`, ui = k.div`
|
|
3640
|
+
display: flex;
|
|
3641
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
3642
|
+
padding: ${(e) => e.$theme.gapSmall} 0;
|
|
3643
|
+
position: relative;
|
|
3644
|
+
overflow: hidden;
|
|
3645
|
+
|
|
3646
|
+
svg {
|
|
3647
|
+
color: ${(e) => e.$checked ? e.$theme.fontColorBase : e.$theme.fontColorLight};
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
label {
|
|
3651
|
+
cursor: pointer;
|
|
3652
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
3653
|
+
font-size: ${(e) => e.$theme.fontSizeBase} !important;
|
|
3654
|
+
&:hover,
|
|
3655
|
+
&:active {
|
|
3656
|
+
text-shadow: ${(e) => e.$theme.textShadow};
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
${(e) => e.$disabled && `
|
|
3661
|
+
pointer-events: none;
|
|
3662
|
+
opacity: 0.5;
|
|
3663
|
+
`}
|
|
3664
|
+
`, hi = k.input`
|
|
3665
|
+
position: absolute;
|
|
3666
|
+
z-index: -1;
|
|
3667
|
+
opacity: 0;
|
|
3668
|
+
top: 4px;
|
|
3669
|
+
left: 0;
|
|
3670
|
+
margin: 0;
|
|
3671
|
+
|
|
3672
|
+
&:focus-visible + label {
|
|
3673
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
3674
|
+
outline-offset: 2px;
|
|
3675
|
+
}
|
|
3676
|
+
`;
|
|
3677
|
+
function fi({
|
|
3678
|
+
item: e,
|
|
3679
|
+
columns: t,
|
|
3680
|
+
renderDataItem: r
|
|
3681
|
+
}) {
|
|
3682
|
+
const n = [];
|
|
3683
|
+
for (const o of t) {
|
|
3684
|
+
let i;
|
|
3685
|
+
r && e[o.field] ? i = r(e, o.field) : e[o.field] ? i = e[o.field].toString() : i = "", n.push(i);
|
|
3686
|
+
}
|
|
3687
|
+
return n;
|
|
3688
|
+
}
|
|
3689
|
+
const pi = ({ value: e, theme: t }) => /* @__PURE__ */ s.jsx(mn, { $theme: t, children: e }), gn = ({
|
|
3690
|
+
name: e,
|
|
3691
|
+
label: t,
|
|
3692
|
+
disabled: r,
|
|
3693
|
+
required: n = !1,
|
|
3694
|
+
onChange: o,
|
|
3695
|
+
checked: i = !1,
|
|
3696
|
+
theme: a,
|
|
3697
|
+
...d
|
|
3698
|
+
}) => {
|
|
3699
|
+
const { elementId: l } = ye(d == null ? void 0 : d.id);
|
|
3700
|
+
return /* @__PURE__ */ s.jsxs(ui, { $disabled: !!r, $checked: i, $theme: a, children: [
|
|
3701
|
+
/* @__PURE__ */ s.jsx(
|
|
3702
|
+
hi,
|
|
3703
|
+
{
|
|
3704
|
+
id: l,
|
|
3705
|
+
name: e,
|
|
3706
|
+
type: "checkbox",
|
|
3707
|
+
disabled: r,
|
|
3708
|
+
required: n,
|
|
3709
|
+
checked: i,
|
|
3710
|
+
onChange: o,
|
|
3711
|
+
$theme: a
|
|
3712
|
+
}
|
|
3713
|
+
),
|
|
3714
|
+
/* @__PURE__ */ s.jsx(
|
|
3715
|
+
We,
|
|
3716
|
+
{
|
|
3717
|
+
label: t,
|
|
3718
|
+
required: n,
|
|
3719
|
+
inputId: l,
|
|
3720
|
+
isTextHidden: !0,
|
|
3721
|
+
iconPosition: "left",
|
|
3722
|
+
theme: a,
|
|
3723
|
+
icon: i ? /* @__PURE__ */ s.jsx(jt, {}) : /* @__PURE__ */ s.jsx(Ct, {})
|
|
3724
|
+
}
|
|
3725
|
+
)
|
|
3726
|
+
] });
|
|
3727
|
+
}, mi = ({
|
|
3728
|
+
rowId: e,
|
|
3729
|
+
isRowSelected: t,
|
|
3730
|
+
selectRowById: r,
|
|
3731
|
+
deselectRowById: n,
|
|
3732
|
+
disabled: o,
|
|
3733
|
+
theme: i
|
|
3734
|
+
}) => {
|
|
3735
|
+
const a = (d) => {
|
|
3736
|
+
const { checked: l } = d.target;
|
|
3737
|
+
l ? r(e) : n(e);
|
|
3738
|
+
};
|
|
3739
|
+
return /* @__PURE__ */ s.jsx(mn, { $theme: i, children: /* @__PURE__ */ s.jsx(
|
|
3740
|
+
gn,
|
|
3741
|
+
{
|
|
3742
|
+
theme: i,
|
|
3743
|
+
label: "Select row",
|
|
3744
|
+
onChange: a,
|
|
3745
|
+
id: `select_row_${e}`,
|
|
3746
|
+
checked: t,
|
|
3747
|
+
disabled: o
|
|
3748
|
+
}
|
|
3749
|
+
) });
|
|
3750
|
+
}, gi = ({ rowId: e, selectRowById: t, deselectRowById: r, selectable: n, values: o, selectedIds: i, disabled: a, theme: d }) => {
|
|
3751
|
+
const l = i.includes(e);
|
|
3752
|
+
return /* @__PURE__ */ s.jsxs(di, { $selected: l, $theme: d, children: [
|
|
3753
|
+
n && /* @__PURE__ */ s.jsx(
|
|
3754
|
+
mi,
|
|
3755
|
+
{
|
|
3756
|
+
rowId: e,
|
|
3757
|
+
selectRowById: t,
|
|
3758
|
+
deselectRowById: r,
|
|
3759
|
+
isRowSelected: l,
|
|
3760
|
+
disabled: a,
|
|
3761
|
+
theme: d
|
|
3762
|
+
}
|
|
3763
|
+
),
|
|
3764
|
+
o.map((u, h) => /* @__PURE__ */ s.jsx(pi, { value: u, theme: d }, `row_${h}`))
|
|
3765
|
+
] });
|
|
3766
|
+
}, bi = ({
|
|
3767
|
+
selectRowById: e,
|
|
3768
|
+
deselectRowById: t,
|
|
3769
|
+
renderDataItem: r,
|
|
3770
|
+
selectedIds: n,
|
|
3771
|
+
selectable: o,
|
|
3772
|
+
data: i,
|
|
3773
|
+
columns: a,
|
|
3774
|
+
theme: d
|
|
3775
|
+
}) => /* @__PURE__ */ s.jsx(ai, { $theme: d, children: i.map((l) => {
|
|
3776
|
+
const u = fi({ item: l, columns: a, renderDataItem: r });
|
|
3777
|
+
return /* @__PURE__ */ s.jsx(
|
|
3778
|
+
gi,
|
|
3779
|
+
{
|
|
3780
|
+
rowId: l.id,
|
|
3781
|
+
disabled: l == null ? void 0 : l.disabled,
|
|
3782
|
+
selectRowById: e,
|
|
3783
|
+
deselectRowById: t,
|
|
3784
|
+
selectable: o,
|
|
3785
|
+
values: u,
|
|
3786
|
+
selectedIds: n,
|
|
3787
|
+
theme: d
|
|
3788
|
+
},
|
|
3789
|
+
l.id
|
|
3790
|
+
);
|
|
3791
|
+
}) }), vi = ({
|
|
3792
|
+
columns: e,
|
|
3793
|
+
selectable: t,
|
|
3794
|
+
theme: r
|
|
3795
|
+
}) => /* @__PURE__ */ s.jsxs("colgroup", { children: [
|
|
3796
|
+
t && /* @__PURE__ */ s.jsx(Ar, { $isFirst: !0, $highlighted: !1, $theme: r }),
|
|
3797
|
+
e.map((n, o) => /* @__PURE__ */ s.jsx(
|
|
3798
|
+
Ar,
|
|
3799
|
+
{
|
|
3800
|
+
$isFirst: o === 0 && !t,
|
|
3801
|
+
$highlighted: !!(n != null && n.highlighted),
|
|
3802
|
+
className: n == null ? void 0 : n.className,
|
|
3803
|
+
$theme: r
|
|
3804
|
+
},
|
|
3805
|
+
n == null ? void 0 : n.title
|
|
3806
|
+
))
|
|
3807
|
+
] }), xi = ({
|
|
3808
|
+
title: e,
|
|
3809
|
+
component: t,
|
|
3810
|
+
theme: r
|
|
3811
|
+
}) => /* @__PURE__ */ s.jsx(pn, { $theme: r, children: t ?? e ?? "" }), yi = ({ gridId: e, isAllSelected: t, selectAll: r, deselectAll: n, disabled: o, theme: i }) => {
|
|
3812
|
+
const a = (d) => {
|
|
3813
|
+
const { checked: l } = d.target;
|
|
3814
|
+
l ? r() : n();
|
|
3815
|
+
};
|
|
3816
|
+
return /* @__PURE__ */ s.jsx(pn, { $theme: i, children: /* @__PURE__ */ s.jsx(
|
|
3817
|
+
gn,
|
|
3818
|
+
{
|
|
3819
|
+
label: "Select all rows",
|
|
3820
|
+
onChange: a,
|
|
3821
|
+
id: `select_all_${e}`,
|
|
3822
|
+
checked: t,
|
|
3823
|
+
disabled: o,
|
|
3824
|
+
theme: i
|
|
3825
|
+
}
|
|
3826
|
+
) });
|
|
3827
|
+
}, $i = ({
|
|
3828
|
+
columns: e,
|
|
3829
|
+
gridId: t,
|
|
3830
|
+
selectAll: r,
|
|
3831
|
+
deselectAll: n,
|
|
3832
|
+
selectable: o,
|
|
3833
|
+
isAllSelected: i,
|
|
3834
|
+
isAllCheckboxDisabled: a = !1,
|
|
3835
|
+
theme: d
|
|
3836
|
+
}) => /* @__PURE__ */ s.jsx(ii, { $theme: d, children: /* @__PURE__ */ s.jsxs(ci, { $theme: d, children: [
|
|
3837
|
+
o && /* @__PURE__ */ s.jsx(
|
|
3838
|
+
yi,
|
|
3839
|
+
{
|
|
3840
|
+
isAllSelected: i,
|
|
3841
|
+
disabled: a,
|
|
3842
|
+
gridId: t,
|
|
3843
|
+
selectAll: r,
|
|
3844
|
+
deselectAll: n,
|
|
3845
|
+
theme: d
|
|
3846
|
+
}
|
|
3847
|
+
),
|
|
3848
|
+
e.map((l) => /* @__PURE__ */ s.jsx(xi, { title: l.title, component: l.component, theme: d }, `${l.title}_${t}`))
|
|
3849
|
+
] }) }), wi = ({
|
|
3850
|
+
data: e,
|
|
3851
|
+
id: t,
|
|
3852
|
+
onSelect: r
|
|
3853
|
+
}) => {
|
|
3854
|
+
const { elementId: n } = ye(t), [o, i] = O([]), a = e.map((g) => g.id), d = a.length === o.length, l = e.some((g) => g == null ? void 0 : g.disabled), u = (g) => {
|
|
3855
|
+
i(g), r == null || r(g);
|
|
3856
|
+
};
|
|
3857
|
+
return {
|
|
3858
|
+
elementId: n,
|
|
3859
|
+
isAllSelected: d,
|
|
3860
|
+
isAllCheckboxDisabled: l,
|
|
3861
|
+
selectedIds: o,
|
|
3862
|
+
handleSelectAll: () => {
|
|
3863
|
+
u(a);
|
|
3864
|
+
},
|
|
3865
|
+
handleDeselectAll: () => {
|
|
3866
|
+
u([]);
|
|
3867
|
+
},
|
|
3868
|
+
handleSelectRowById: (g) => {
|
|
3869
|
+
const x = [...o, g];
|
|
3870
|
+
u(x);
|
|
3871
|
+
},
|
|
3872
|
+
handleDeselectRowById: (g) => {
|
|
3873
|
+
const x = o.filter((w) => w !== g);
|
|
3874
|
+
u(x);
|
|
3875
|
+
}
|
|
3876
|
+
};
|
|
3877
|
+
}, Ji = ({
|
|
3878
|
+
columns: e,
|
|
3879
|
+
data: t,
|
|
3880
|
+
id: r,
|
|
3881
|
+
onSelect: n,
|
|
3882
|
+
renderDataItem: o,
|
|
3883
|
+
caption: i,
|
|
3884
|
+
selectable: a = !1,
|
|
3885
|
+
...d
|
|
3886
|
+
}) => {
|
|
3887
|
+
const {
|
|
3888
|
+
elementId: l,
|
|
3889
|
+
handleSelectAll: u,
|
|
3890
|
+
handleDeselectAll: h,
|
|
3891
|
+
isAllCheckboxDisabled: f,
|
|
3892
|
+
isAllSelected: m,
|
|
3893
|
+
handleDeselectRowById: p,
|
|
3894
|
+
handleSelectRowById: g,
|
|
3895
|
+
selectedIds: x
|
|
3896
|
+
} = wi({ id: r, data: t, onSelect: n }), w = K();
|
|
3897
|
+
return /* @__PURE__ */ s.jsxs(si, { ...d, children: [
|
|
3898
|
+
i && /* @__PURE__ */ s.jsx(li, { $theme: w, children: i }),
|
|
3899
|
+
/* @__PURE__ */ s.jsx(vi, { columns: e, selectable: a, theme: w }),
|
|
3900
|
+
/* @__PURE__ */ s.jsx(
|
|
3901
|
+
$i,
|
|
3902
|
+
{
|
|
3903
|
+
gridId: l,
|
|
3904
|
+
columns: e,
|
|
3905
|
+
selectable: a,
|
|
3906
|
+
selectAll: u,
|
|
3907
|
+
deselectAll: h,
|
|
3908
|
+
isAllSelected: m,
|
|
3909
|
+
isAllCheckboxDisabled: f,
|
|
3910
|
+
theme: w
|
|
3911
|
+
}
|
|
3912
|
+
),
|
|
3913
|
+
/* @__PURE__ */ s.jsx(
|
|
3914
|
+
bi,
|
|
3915
|
+
{
|
|
3916
|
+
columns: e,
|
|
3917
|
+
data: t,
|
|
3918
|
+
selectable: a,
|
|
3919
|
+
selectRowById: g,
|
|
3920
|
+
deselectRowById: p,
|
|
3921
|
+
selectedIds: x,
|
|
3922
|
+
renderDataItem: o,
|
|
3923
|
+
theme: w
|
|
3924
|
+
}
|
|
3925
|
+
)
|
|
3926
|
+
] });
|
|
3927
|
+
}, bn = k.ul`
|
|
3928
|
+
list-style: none;
|
|
3929
|
+
margin: 0;
|
|
3930
|
+
padding: 0;
|
|
3931
|
+
padding-inline-start: 0;
|
|
3932
|
+
display: flex;
|
|
3933
|
+
gap: ${(e) => e.$theme.gapSmall};
|
|
3934
|
+
flex-direction: ${(e) => e.$mode === W.Vertical ? "column" : "row"};
|
|
3935
|
+
justify-content: flex-start;
|
|
3936
|
+
width: 100%;
|
|
3937
|
+
`, Si = k(bn)`
|
|
3938
|
+
flex-direction: column;
|
|
3939
|
+
padding-left: ${(e) => e.$theme.gapBig};
|
|
3940
|
+
margin-left: ${(e) => e.$theme.gapBig};
|
|
3941
|
+
margin-top: ${(e) => e.$theme.gapSmall};
|
|
3942
|
+
box-sizing: border-box;
|
|
3943
|
+
border-left: ${(e) => e.$theme.borderLight};
|
|
3944
|
+
${Ge}
|
|
3945
|
+
|
|
3946
|
+
${({ $theme: e, $mode: t }) => t === W.Horizontal && `
|
|
3947
|
+
position: absolute;
|
|
3948
|
+
top: 100%;
|
|
3949
|
+
left: 40%;
|
|
3950
|
+
width: max-content;
|
|
3951
|
+
border-radius: ${e.blockBorderRadius};
|
|
3952
|
+
border: ${e.borderLight};
|
|
3953
|
+
box-shadow: ${e.boxShadow};
|
|
3954
|
+
background-color: ${e.backgroundColorBase};
|
|
3955
|
+
padding: ${e.gapMedium};
|
|
3956
|
+
margin: 0;
|
|
3957
|
+
z-index: ${e.zIndexPopup};
|
|
3958
|
+
`}
|
|
3959
|
+
`, ki = k.li`
|
|
3960
|
+
display: flex;
|
|
3961
|
+
justify-content: flex-start;
|
|
3962
|
+
align-items: center;
|
|
3963
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
3964
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3965
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
3966
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3967
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3968
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
3969
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3970
|
+
cursor: pointer;
|
|
3971
|
+
|
|
3972
|
+
&:hover {
|
|
3973
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
&:focus-visible {
|
|
3977
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
3978
|
+
}
|
|
3979
|
+
`, ji = k.li`
|
|
3980
|
+
display: flex;
|
|
3981
|
+
justify-content: flex-start;
|
|
3982
|
+
align-items: center;
|
|
3983
|
+
flex-direction: column;
|
|
3984
|
+
gap: 0;
|
|
3985
|
+
padding: 0;
|
|
3986
|
+
position: relative;
|
|
3987
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3988
|
+
|
|
3989
|
+
&:focus-visible {
|
|
3990
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
3991
|
+
}
|
|
3992
|
+
`, Ci = k.span`
|
|
3993
|
+
position: relative;
|
|
3994
|
+
display: flex;
|
|
3995
|
+
box-sizing: border-box;
|
|
3996
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
3997
|
+
align-items: center;
|
|
3998
|
+
width: 100%;
|
|
3999
|
+
justify-content: space-between;
|
|
4000
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4001
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
4002
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4003
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
4004
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
4005
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4006
|
+
cursor: pointer;
|
|
4007
|
+
|
|
4008
|
+
span {
|
|
4009
|
+
display: flex;
|
|
4010
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
4011
|
+
align-items: center;
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
&:hover {
|
|
4015
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
4016
|
+
}
|
|
4017
|
+
`, Ei = ({ theme: e, item: t }) => {
|
|
4018
|
+
const { icon: r, link: n, label: o, onFocus: i, onClick: a, onHover: d } = t, l = n ? /* @__PURE__ */ s.jsx("a", { href: n, target: "_blank", rel: "noreferrer", children: o }) : /* @__PURE__ */ s.jsx("span", { children: o });
|
|
4019
|
+
return /* @__PURE__ */ s.jsxs(ki, { tabIndex: 0, role: "menuitem", $theme: e, onFocus: i, onClick: a, onMouseOver: d, children: [
|
|
4020
|
+
/* @__PURE__ */ s.jsx(de, { name: r }),
|
|
4021
|
+
l
|
|
4022
|
+
] });
|
|
4023
|
+
}, Ai = ({ item: e, theme: t, isSubMenuOpened: r, toggleSubMenu: n, closeSubMenu: o, mode: i, children: a }) => {
|
|
4024
|
+
const { icon: d, link: l, label: u } = e, h = ve(null), f = ve(null), m = l ? /* @__PURE__ */ s.jsxs("a", { href: l, target: "_blank", rel: "noreferrer", children: [
|
|
4025
|
+
/* @__PURE__ */ s.jsx(de, { name: d }),
|
|
4026
|
+
u
|
|
4027
|
+
] }) : /* @__PURE__ */ s.jsxs("span", { children: [
|
|
4028
|
+
/* @__PURE__ */ s.jsx(de, { name: d }),
|
|
4029
|
+
u
|
|
4030
|
+
] }), p = (x) => {
|
|
4031
|
+
x.stopPropagation(), x.key === " " && n();
|
|
4032
|
+
};
|
|
4033
|
+
return Et({ ref: h, dependentRef: f, onClickOutsideHandler: () => {
|
|
4034
|
+
i !== W.Vertical && o();
|
|
4035
|
+
} }), /* @__PURE__ */ s.jsxs(
|
|
4036
|
+
ji,
|
|
4037
|
+
{
|
|
4038
|
+
tabIndex: 0,
|
|
4039
|
+
role: "menuitem",
|
|
4040
|
+
"aria-haspopup": "true",
|
|
4041
|
+
"aria-expanded": r,
|
|
4042
|
+
$theme: t,
|
|
4043
|
+
onKeyDown: p,
|
|
4044
|
+
ref: h,
|
|
4045
|
+
children: [
|
|
4046
|
+
/* @__PURE__ */ s.jsxs(Ci, { ref: f, $theme: t, onClick: n, $mode: i, children: [
|
|
4047
|
+
m,
|
|
4048
|
+
/* @__PURE__ */ s.jsx(de, { name: r ? C.ArrowUp : C.ArrowDown })
|
|
4049
|
+
] }),
|
|
4050
|
+
r && a
|
|
4051
|
+
]
|
|
4052
|
+
}
|
|
4053
|
+
);
|
|
4054
|
+
}, vn = ({ item: e, theme: t, mode: r }) => {
|
|
4055
|
+
var l, u;
|
|
4056
|
+
const n = !((l = e == null ? void 0 : e.nestedItems) != null && l.length), [o, i] = O(!1);
|
|
4057
|
+
if (n)
|
|
4058
|
+
return /* @__PURE__ */ s.jsx(Ei, { item: e, theme: t });
|
|
4059
|
+
const a = () => {
|
|
4060
|
+
i(!o);
|
|
4061
|
+
}, d = () => {
|
|
4062
|
+
i(!1);
|
|
4063
|
+
};
|
|
4064
|
+
return /* @__PURE__ */ s.jsx(
|
|
4065
|
+
Ai,
|
|
4066
|
+
{
|
|
4067
|
+
item: e,
|
|
4068
|
+
theme: t,
|
|
4069
|
+
isSubMenuOpened: o,
|
|
4070
|
+
toggleSubMenu: a,
|
|
4071
|
+
closeSubMenu: d,
|
|
4072
|
+
mode: r,
|
|
4073
|
+
children: /* @__PURE__ */ s.jsx(Si, { role: "menu", "aria-label": e.label, $theme: t, $mode: r, children: (u = e == null ? void 0 : e.nestedItems) == null ? void 0 : u.map((h) => /* @__PURE__ */ s.jsx(vn, { item: h, theme: t, mode: r }, h.id)) })
|
|
4074
|
+
}
|
|
4075
|
+
);
|
|
4076
|
+
}, Zi = ({ items: e, mode: t = W.Vertical, ...r }) => {
|
|
4077
|
+
const n = K();
|
|
4078
|
+
return /* @__PURE__ */ s.jsx(bn, { role: "menubar", $theme: n, $mode: t, ...r, children: e.map((o) => /* @__PURE__ */ s.jsx(vn, { item: o, theme: n, mode: t }, o.id)) });
|
|
4079
|
+
}, Zt = ({ children: e }) => {
|
|
4080
|
+
const [t] = O(() => document.createElement("div"));
|
|
4081
|
+
return ue(() => (document.body.appendChild(t), () => {
|
|
4082
|
+
document.body.removeChild(t);
|
|
4083
|
+
}), [t]), wn.createPortal(e, t);
|
|
4084
|
+
}, zi = k.button`
|
|
4085
|
+
background: transparent;
|
|
4086
|
+
position: relative;
|
|
4087
|
+
outline: none;
|
|
4088
|
+
border: none;
|
|
4089
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
4090
|
+
cursor: pointer;
|
|
4091
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4092
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4093
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
4094
|
+
overflow: hidden;
|
|
4095
|
+
border-top-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4096
|
+
border-top-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4097
|
+
|
|
4098
|
+
&:focus-visible {
|
|
4099
|
+
outline: ${(e) => e.$theme.borderOutline};
|
|
4100
|
+
outline-offset: -4px;
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
&:hover,
|
|
4104
|
+
&:active {
|
|
4105
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
4106
|
+
}
|
|
4107
|
+
|
|
4108
|
+
${(e) => e.$disabled && `
|
|
4109
|
+
pointer-events: none;
|
|
4110
|
+
filter: grayscale(80%);
|
|
4111
|
+
opacity: 0.6;
|
|
4112
|
+
`}
|
|
4113
|
+
|
|
4114
|
+
${(e) => e.$selected && `
|
|
4115
|
+
border-top: ${e.$theme.borderLight};
|
|
4116
|
+
border-right: ${e.$theme.borderLight};
|
|
4117
|
+
border-left: ${e.$theme.borderLight};
|
|
4118
|
+
background-color: ${e.$theme.backgroundColorBase};
|
|
4119
|
+
top: 1px;
|
|
4120
|
+
`}
|
|
4121
|
+
|
|
4122
|
+
${(e) => e.$mode === W.Vertical && `
|
|
4123
|
+
border-bottom-left-radius: ${e.$theme.blockBorderRadius};
|
|
4124
|
+
border-top-right-radius: 0;
|
|
4125
|
+
`}
|
|
4126
|
+
|
|
4127
|
+
${(e) => e.$mode === W.Vertical && e.$selected && `
|
|
4128
|
+
border-top: ${e.$theme.borderLight};
|
|
4129
|
+
border-right: none;
|
|
4130
|
+
border-left: ${e.$theme.borderLight};
|
|
4131
|
+
border-bottom: ${e.$theme.borderLight};
|
|
4132
|
+
top: 0px;
|
|
4133
|
+
left: 1px;
|
|
4134
|
+
`}
|
|
4135
|
+
`, Ii = k.div`
|
|
4136
|
+
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
4137
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
4138
|
+
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4139
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4140
|
+
padding: ${(e) => e.$theme.gapBig};
|
|
4141
|
+
flex-grow: 1;
|
|
4142
|
+
`, Mi = k.div`
|
|
4143
|
+
border-bottom: ${(e) => e.$theme.borderLight};
|
|
4144
|
+
padding: 0 ${(e) => e.$theme.gapMedium};
|
|
4145
|
+
display: flex;
|
|
4146
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
4147
|
+
|
|
4148
|
+
${(e) => e.$mode === W.Vertical && `
|
|
4149
|
+
flex-direction: column;
|
|
4150
|
+
border-bottom: none;
|
|
4151
|
+
border-right: ${e.$theme.borderLight};
|
|
4152
|
+
padding: ${e.$theme.gapMedium} 0;
|
|
4153
|
+
`}
|
|
4154
|
+
`, Ri = k.div`
|
|
4155
|
+
display: flex;
|
|
4156
|
+
flex-direction: column;
|
|
4157
|
+
width: 100%;
|
|
4158
|
+
|
|
4159
|
+
${({ $mode: e }) => e === W.Vertical && `
|
|
4160
|
+
flex-direction: row;
|
|
4161
|
+
`}
|
|
4162
|
+
`, Bi = ({ tabs: e, selectedTabId: t, theme: r }) => {
|
|
4163
|
+
var i;
|
|
4164
|
+
const n = (i = e.find((a) => a.id === t)) == null ? void 0 : i.content, o = `tabpanel_${t}`;
|
|
4165
|
+
return /* @__PURE__ */ s.jsx(Ii, { role: "tabpanel", "aria-labelledby": t, id: o, $theme: r, children: n });
|
|
4166
|
+
}, Ti = ({
|
|
4167
|
+
title: e,
|
|
4168
|
+
onTabSelect: t,
|
|
4169
|
+
tabId: r,
|
|
4170
|
+
isSelected: n,
|
|
4171
|
+
isDisabled: o = !1,
|
|
4172
|
+
tabPanelId: i,
|
|
4173
|
+
mode: a,
|
|
4174
|
+
theme: d
|
|
4175
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
4176
|
+
zi,
|
|
4177
|
+
{
|
|
4178
|
+
role: "tab",
|
|
4179
|
+
id: r,
|
|
4180
|
+
onClick: () => t(r),
|
|
4181
|
+
"aria-selected": n,
|
|
4182
|
+
"aria-controls": i,
|
|
4183
|
+
$selected: n,
|
|
4184
|
+
$disabled: o,
|
|
4185
|
+
$mode: a,
|
|
4186
|
+
$theme: d,
|
|
4187
|
+
children: e
|
|
4188
|
+
}
|
|
4189
|
+
), _i = ({ tabs: e, onTabSelect: t, selectedTabId: r, tabPanelIds: n, mode: o, tabIds: i, theme: a }) => {
|
|
4190
|
+
const d = (l) => {
|
|
4191
|
+
const u = i.findIndex((h) => h === r);
|
|
4192
|
+
switch (l.key) {
|
|
4193
|
+
case "ArrowLeft":
|
|
4194
|
+
case "ArrowUp": {
|
|
4195
|
+
if (l.preventDefault(), l.key === "ArrowUp" && o === W.Horizontal || l.key === "ArrowLeft" && o === W.Vertical) break;
|
|
4196
|
+
const h = u - 1 >= 0 ? u - 1 : i.length - 1, f = i[h];
|
|
4197
|
+
f && (Qe(f), t(f));
|
|
4198
|
+
break;
|
|
4199
|
+
}
|
|
4200
|
+
case "ArrowRight":
|
|
4201
|
+
case "ArrowDown": {
|
|
4202
|
+
if (l.preventDefault(), l.key === "ArrowDown" && o === W.Horizontal || l.key === "ArrowRight" && o === W.Vertical) break;
|
|
4203
|
+
const h = u === i.length - 1 ? 0 : u + 1, f = i[h];
|
|
4204
|
+
f && (Qe(f), t(f));
|
|
4205
|
+
break;
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
};
|
|
4209
|
+
return /* @__PURE__ */ s.jsx(Mi, { role: "tablist", $mode: o, onKeyDown: d, $theme: a, children: e.map(({ id: l, title: u, disabled: h }, f) => /* @__PURE__ */ s.jsx(
|
|
4210
|
+
Ti,
|
|
4211
|
+
{
|
|
4212
|
+
title: u,
|
|
4213
|
+
onTabSelect: t,
|
|
4214
|
+
tabId: l,
|
|
4215
|
+
isSelected: l === r,
|
|
4216
|
+
isDisabled: h,
|
|
4217
|
+
tabPanelId: n[f],
|
|
4218
|
+
mode: o,
|
|
4219
|
+
theme: a
|
|
4220
|
+
},
|
|
4221
|
+
l
|
|
4222
|
+
)) });
|
|
4223
|
+
}, Qi = ({ tabs: e, defaultTabId: t, mode: r = W.Horizontal, ...n }) => {
|
|
4224
|
+
const o = e.map((f) => f.id), i = o.map((f) => `tabpanel_${f}`), a = t && o.includes(t) ? t : o[0], [d, l] = O(a), u = K(), h = (f) => {
|
|
4225
|
+
l(f);
|
|
4226
|
+
};
|
|
4227
|
+
return /* @__PURE__ */ s.jsxs(Ri, { $mode: r, ...n, children: [
|
|
4228
|
+
/* @__PURE__ */ s.jsx(
|
|
4229
|
+
_i,
|
|
4230
|
+
{
|
|
4231
|
+
tabs: e,
|
|
4232
|
+
selectedTabId: d,
|
|
4233
|
+
tabPanelIds: i,
|
|
4234
|
+
onTabSelect: h,
|
|
4235
|
+
mode: r,
|
|
4236
|
+
tabIds: o,
|
|
4237
|
+
theme: u
|
|
4238
|
+
}
|
|
4239
|
+
),
|
|
4240
|
+
/* @__PURE__ */ s.jsx(Bi, { tabs: e, selectedTabId: d, theme: u })
|
|
4241
|
+
] });
|
|
4242
|
+
}, Oi = k.header`
|
|
4243
|
+
display: flex;
|
|
4244
|
+
justify-content: space-between;
|
|
4245
|
+
align-items: center;
|
|
4246
|
+
|
|
4247
|
+
h3 {
|
|
4248
|
+
display: flex;
|
|
4249
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
4250
|
+
align-items: center;
|
|
4251
|
+
margin: 0;
|
|
4252
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
4253
|
+
|
|
4254
|
+
svg {
|
|
4255
|
+
color: ${(e) => e.$theme.fontColorAccent};
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
`, Pi = k.div`
|
|
4259
|
+
position: fixed;
|
|
4260
|
+
bottom: ${(e) => e.$theme.gapBig};
|
|
4261
|
+
left: 50%;
|
|
4262
|
+
transform: translateX(-50%);
|
|
4263
|
+
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
4264
|
+
${Ge}
|
|
4265
|
+
|
|
4266
|
+
${(e) => e.$isClosing && Qr}
|
|
4267
|
+
`, Li = k.div`
|
|
4268
|
+
display: flex;
|
|
4269
|
+
flex-direction: column;
|
|
4270
|
+
gap: ${(e) => e.$theme.gapMedium};
|
|
4271
|
+
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4272
|
+
background: ${(e) => e.$theme.backgroundColorBase};
|
|
4273
|
+
color: ${(e) => e.$theme.fontColorBase};
|
|
4274
|
+
width: 90vw;
|
|
4275
|
+
padding: ${(e) => e.$theme.gapMedium};
|
|
4276
|
+
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
4277
|
+
border: ${(e) => e.$theme.borderLight};
|
|
4278
|
+
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4279
|
+
`;
|
|
4280
|
+
function Di(e, t) {
|
|
4281
|
+
if (t) return t;
|
|
4282
|
+
switch (e) {
|
|
4283
|
+
case J.Info:
|
|
4284
|
+
return "For your information";
|
|
4285
|
+
case J.Warning:
|
|
4286
|
+
return "Please pay attention";
|
|
4287
|
+
case J.Error:
|
|
4288
|
+
return "Something went wrong";
|
|
4289
|
+
case J.Success:
|
|
4290
|
+
return "Everything is okay";
|
|
4291
|
+
case J.Help:
|
|
4292
|
+
return "Useful tip";
|
|
4293
|
+
default:
|
|
4294
|
+
return "Alert";
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
function Ni(e, t) {
|
|
4298
|
+
if (t)
|
|
4299
|
+
return /* @__PURE__ */ s.jsx(de, { name: t });
|
|
4300
|
+
switch (e) {
|
|
4301
|
+
case J.Info:
|
|
4302
|
+
return /* @__PURE__ */ s.jsx(nn, {});
|
|
4303
|
+
case J.Warning:
|
|
4304
|
+
return /* @__PURE__ */ s.jsx(on, {});
|
|
4305
|
+
case J.Error:
|
|
4306
|
+
return /* @__PURE__ */ s.jsx(tn, {});
|
|
4307
|
+
case J.Success:
|
|
4308
|
+
return /* @__PURE__ */ s.jsx(Jt, {});
|
|
4309
|
+
case J.Help:
|
|
4310
|
+
return /* @__PURE__ */ s.jsx(rn, {});
|
|
4311
|
+
default:
|
|
4312
|
+
return null;
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
const Hi = ({ title: e, onClose: t, mode: r, icon: n, theme: o }) => {
|
|
4316
|
+
const i = Di(r, e), a = Ni(r, n);
|
|
4317
|
+
return /* @__PURE__ */ s.jsxs(Oi, { $theme: o, children: [
|
|
4318
|
+
/* @__PURE__ */ s.jsxs("h3", { children: [
|
|
4319
|
+
a,
|
|
4320
|
+
i
|
|
4321
|
+
] }),
|
|
4322
|
+
/* @__PURE__ */ s.jsx(vt, { icon: C.Cancel, view: ge.Icon, label: "Close alert popup", onClick: t })
|
|
4323
|
+
] });
|
|
4324
|
+
}, ea = ({
|
|
4325
|
+
isOpened: e,
|
|
4326
|
+
onClose: t,
|
|
4327
|
+
title: r,
|
|
4328
|
+
message: n,
|
|
4329
|
+
mode: o = J.Info,
|
|
4330
|
+
icon: i,
|
|
4331
|
+
...a
|
|
4332
|
+
}) => {
|
|
4333
|
+
const d = ln(e), l = d && !e, u = K();
|
|
4334
|
+
return d ? /* @__PURE__ */ s.jsx(Zt, { children: /* @__PURE__ */ s.jsx(Pi, { $isClosing: l, $theme: u, children: /* @__PURE__ */ s.jsxs(Li, { ...a, $theme: u, children: [
|
|
4335
|
+
/* @__PURE__ */ s.jsx(Hi, { title: r, onClose: t, mode: o, icon: i, theme: u }),
|
|
4336
|
+
/* @__PURE__ */ s.jsx("p", { children: n })
|
|
4337
|
+
] }) }) }) : null;
|
|
4338
|
+
};
|
|
2
4339
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
4340
|
+
ea as ChopLogicAlert,
|
|
4341
|
+
J as ChopLogicAlertMode,
|
|
4342
|
+
vt as ChopLogicButton,
|
|
4343
|
+
ge as ChopLogicButtonView,
|
|
4344
|
+
Gi as ChopLogicCheckbox,
|
|
4345
|
+
qi as ChopLogicDialog,
|
|
4346
|
+
en as ChopLogicErrorMessage,
|
|
4347
|
+
Xi as ChopLogicForm,
|
|
4348
|
+
Me as ChopLogicFormContext,
|
|
4349
|
+
Ji as ChopLogicGrid,
|
|
4350
|
+
de as ChopLogicIcon,
|
|
4351
|
+
C as ChopLogicIconName,
|
|
4352
|
+
bt as ChopLogicInputInnerButton,
|
|
4353
|
+
We as ChopLogicLabel,
|
|
4354
|
+
is as ChopLogicLoaderView,
|
|
4355
|
+
Zi as ChopLogicMenu,
|
|
4356
|
+
Wi as ChopLogicMultiSelect,
|
|
4357
|
+
Yi as ChopLogicNumericInput,
|
|
4358
|
+
W as ChopLogicOrientationMode,
|
|
4359
|
+
Zt as ChopLogicPortal,
|
|
4360
|
+
Ui as ChopLogicSelect,
|
|
4361
|
+
Qi as ChopLogicTabs,
|
|
4362
|
+
Ki as ChopLogicTextInput,
|
|
4363
|
+
us as ChopLogicThemeContext,
|
|
4364
|
+
sn as ChopLogicThemeMode,
|
|
4365
|
+
Zs as ChopLogicTooltip,
|
|
4366
|
+
an as ChopLogicTooltipContainer,
|
|
4367
|
+
K as useChopLogicTheme,
|
|
4368
|
+
Et as useClickOutside,
|
|
4369
|
+
fs as useContainerDimensions,
|
|
4370
|
+
ye as useElementIds,
|
|
4371
|
+
At as useKeyPress,
|
|
4372
|
+
ps as useModalFocusTrap,
|
|
4373
|
+
ln as useMount,
|
|
4374
|
+
tt as useResetFormInput,
|
|
4375
|
+
gs as useTooltipPosition,
|
|
4376
|
+
ms as useWindowDimensions
|
|
40
4377
|
};
|
|
41
4378
|
//# sourceMappingURL=index.es.js.map
|