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.cjs.js
CHANGED
|
@@ -1,2 +1,993 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),$n=require("react-dom");var nt={exports:{}},Ye={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var nr;function wn(){if(nr)return Ye;nr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var d in o)d!=="key"&&(i[d]=o[d])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return Ye.Fragment=t,Ye.jsx=r,Ye.jsxs=r,Ye}var Ue={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var or;function Sn(){return or||(or=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===tt?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case E:return"Fragment";case R:return"Portal";case _:return"Profiler";case $:return"StrictMode";case se:return"Suspense";case X:return"SuspenseList"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case oe:return(c.displayName||"Context")+".Provider";case U:return(c._context.displayName||"Context")+".Consumer";case ee:var x=c.render;return c=c.displayName,c||(c=x.displayName||x.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Ve:return x=c.displayName||null,x!==null?x:e(c.type)||"Memo";case Ge:x=c._payload,c=c._init;try{return e(c(x))}catch{}}return null}function t(c){return""+c}function r(c){try{t(c);var x=!1}catch{x=!0}if(x){x=console;var v=x.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return v.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),t(c)}}function n(){}function o(){if(ie===0){ve=console.log,pe=console.info,ye=console.warn,ae=console.error,te=console.group,Ie=console.groupCollapsed,$e=console.groupEnd;var c={configurable:!0,enumerable:!0,value:n,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}ie++}function i(){if(ie--,ie===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:K({},c,{value:ve}),info:K({},c,{value:pe}),warn:K({},c,{value:ye}),error:K({},c,{value:ae}),group:K({},c,{value:te}),groupCollapsed:K({},c,{value:Ie}),groupEnd:K({},c,{value:$e})})}0>ie&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(c){if(J===void 0)try{throw Error()}catch(v){var x=v.stack.trim().match(/\n( *(at )?)/);J=x&&x[1]||"",Zt=-1<v.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+J+c+Zt}function d(c,x){if(!c||jt)return"";var v=Et.get(c);if(v!==void 0)return v;jt=!0,v=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var B=null;B=N.H,N.H=null,o();try{var H={DetermineComponentFrameRoot:function(){try{if(x){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(le){var rt=le}Reflect.construct(c,[],me)}else{try{me.call()}catch(le){rt=le}c.call(me.prototype)}}else{try{throw Error()}catch(le){rt=le}(me=c())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(le){if(le&&rt&&typeof le.stack=="string")return[le.stack,rt.stack]}return[null,null]}};H.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(H.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(H.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=H.DetermineComponentFrameRoot(),ce=z[0],Me=z[1];if(ce&&Me){var F=ce.split(`
|
|
20
|
+
`),we=Me.split(`
|
|
21
|
+
`);for(z=O=0;O<F.length&&!F[O].includes("DetermineComponentFrameRoot");)O++;for(;z<we.length&&!we[z].includes("DetermineComponentFrameRoot");)z++;if(O===F.length||z===we.length)for(O=F.length-1,z=we.length-1;1<=O&&0<=z&&F[O]!==we[z];)z--;for(;1<=O&&0<=z;O--,z--)if(F[O]!==we[z]){if(O!==1||z!==1)do if(O--,z--,0>z||F[O]!==we[z]){var We=`
|
|
22
|
+
`+F[O].replace(" at new "," at ");return c.displayName&&We.includes("<anonymous>")&&(We=We.replace("<anonymous>",c.displayName)),typeof c=="function"&&Et.set(c,We),We}while(1<=O&&0<=z);break}}}finally{jt=!1,N.H=B,i(),Error.prepareStackTrace=v}return F=(F=c?c.displayName||c.name:"")?a(F):"",typeof c=="function"&&Et.set(c,F),F}function l(c){if(c==null)return"";if(typeof c=="function"){var x=c.prototype;return d(c,!(!x||!x.isReactComponent))}if(typeof c=="string")return a(c);switch(c){case se:return a("Suspense");case X:return a("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case ee:return c=d(c.render,!1),c;case Ve:return l(c.type);case Ge:x=c._payload,c=c._init;try{return l(c(x))}catch{}}return""}function u(){var c=N.A;return c===null?null:c.getOwner()}function h(c){if(fe.call(c,"key")){var x=Object.getOwnPropertyDescriptor(c,"key").get;if(x&&x.isReactWarning)return!1}return c.key!==void 0}function f(c,x){function v(){Qt||(Qt=!0,console.error("%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)",x))}v.isReactWarning=!0,Object.defineProperty(c,"key",{get:v,configurable:!0})}function m(){var c=e(this.type);return er[c]||(er[c]=!0,console.error("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.")),c=this.props.ref,c!==void 0?c:null}function p(c,x,v,B,H,O){return v=O.ref,c={$$typeof:M,type:c,key:x,props:O,_owner:H},(v!==void 0?v:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:m}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function g(c,x,v,B,H,O){if(typeof c=="string"||typeof c=="function"||c===E||c===_||c===$||c===se||c===X||c===kt||typeof c=="object"&&c!==null&&(c.$$typeof===Ge||c.$$typeof===Ve||c.$$typeof===oe||c.$$typeof===U||c.$$typeof===ee||c.$$typeof===G||c.getModuleId!==void 0)){var z=x.children;if(z!==void 0)if(B)if(xe(z)){for(B=0;B<z.length;B++)y(z[B],c);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(z,c)}else z="",(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(z+=" 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?B="null":xe(c)?B="array":c!==void 0&&c.$$typeof===M?(B="<"+(e(c.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):B=typeof c,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,z);if(fe.call(x,"key")){z=e(c);var ce=Object.keys(x).filter(function(F){return F!=="key"});B=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",tr[z+B]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
|
+
let props = %s;
|
|
24
|
+
<%s {...props} />
|
|
25
|
+
React keys must be passed directly to JSX without using spread:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s key={someKey} {...props} />`,B,z,ce,z),tr[z+B]=!0)}if(z=null,v!==void 0&&(r(v),z=""+v),h(x)&&(r(x.key),z=""+x.key),"key"in x){v={};for(var Me in x)Me!=="key"&&(v[Me]=x[Me])}else v=x;return z&&f(v,typeof c=="function"?c.displayName||c.name||"Unknown":c),p(c,z,O,H,u(),v)}function y(c,x){if(typeof c=="object"&&c&&c.$$typeof!==yn){if(xe(c))for(var v=0;v<c.length;v++){var B=c[v];S(B)&&w(B,x)}else if(S(c))c._store&&(c._store.validated=1);else if(c===null||typeof c!="object"?v=null:(v=ze&&c[ze]||c["@@iterator"],v=typeof v=="function"?v:null),typeof v=="function"&&v!==c.entries&&(v=v.call(c),v!==c))for(;!(c=v.next()).done;)S(c.value)&&w(c.value,x)}}function S(c){return typeof c=="object"&&c!==null&&c.$$typeof===M}function w(c,x){if(c._store&&!c._store.validated&&c.key==null&&(c._store.validated=1,x=C(x),!rr[x])){rr[x]=!0;var v="";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+".");var B=N.getCurrentStack;N.getCurrentStack=function(){var H=l(c.type);return B&&(H+=B()||""),H},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',x,v),N.getCurrentStack=B}}function C(c){var x="",v=u();return v&&(v=e(v.type))&&(x=`
|
|
28
|
+
|
|
29
|
+
Check the render method of \``+v+"`."),x||(c=e(c))&&(x=`
|
|
30
|
+
|
|
31
|
+
Check the top-level render call using <`+c+">."),x}var A=b,M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Ve=Symbol.for("react.memo"),Ge=Symbol.for("react.lazy"),kt=Symbol.for("react.offscreen"),ze=Symbol.iterator,tt=Symbol.for("react.client.reference"),N=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Object.prototype.hasOwnProperty,K=Object.assign,G=Symbol.for("react.client.reference"),xe=Array.isArray,ie=0,ve,pe,ye,ae,te,Ie,$e;n.__reactDisabledLog=!0;var J,Zt,jt=!1,Et=new(typeof WeakMap=="function"?WeakMap:Map),yn=Symbol.for("react.client.reference"),Qt,er={},tr={},rr={};Ue.Fragment=E,Ue.jsx=function(c,x,v,B,H){return g(c,x,v,!1,B,H)},Ue.jsxs=function(c,x,v,B,H){return g(c,x,v,!0,B,H)}}()),Ue}var sr;function Cn(){return sr||(sr=1,process.env.NODE_ENV==="production"?nt.exports=wn():nt.exports=Sn()),nt.exports}var s=Cn(),W=function(){return W=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},W.apply(this,arguments)};function Be(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function kn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jn=/^((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)-.*))$/,En=kn(function(e){return jn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L="-ms-",qe="-moz-",T="-webkit-",Er="comm",gt="rule",Nt="decl",An="@import",Ar="@keyframes",zn="@layer",zr=Math.abs,Ht=String.fromCharCode,Rt=Object.assign;function In(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Ir(e){return e.trim()}function de(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,r){return e.replace(t,r)}function ct(e,t,r){return e.indexOf(t,r)}function D(e,t){return e.charCodeAt(t)|0}function Te(e,t,r){return e.slice(t,r)}function re(e){return e.length}function Mr(e){return e.length}function Ke(e,t){return t.push(e),e}function Mn(e,t){return e.map(t).join("")}function ir(e,t){return e.filter(function(r){return!de(r,t)})}var bt=1,Le=1,Rr=0,Z=0,P=0,De="";function xt(e,t,r,n,o,i,a,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:bt,column:Le,length:a,return:"",siblings:d}}function ge(e,t){return Rt(xt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Re(e){for(;e.root;)e=ge(e.root,{children:[e]});Ke(e,e.siblings)}function Rn(){return P}function Bn(){return P=Z>0?D(De,--Z):0,Le--,P===10&&(Le=1,bt--),P}function Q(){return P=Z<Rr?D(De,Z++):0,Le++,P===10&&(Le=1,bt++),P}function ke(){return D(De,Z)}function lt(){return Z}function vt(e,t){return Te(De,e,t)}function Bt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Tn(e){return bt=Le=1,Rr=re(De=e),Z=0,[]}function Ln(e){return De="",e}function At(e){return Ir(vt(Z-1,Tt(e===91?e+2:e===40?e+1:e)))}function On(e){for(;(P=ke())&&P<33;)Q();return Bt(e)>2||Bt(P)>3?"":" "}function _n(e,t){for(;--t&&Q()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return vt(e,lt()+(t<6&&ke()==32&&Q()==32))}function Tt(e){for(;Q();)switch(P){case e:return Z;case 34:case 39:e!==34&&e!==39&&Tt(P);break;case 40:e===41&&Tt(e);break;case 92:Q();break}return Z}function Pn(e,t){for(;Q()&&e+P!==57;)if(e+P===84&&ke()===47)break;return"/*"+vt(t,Z-1)+"*"+Ht(e===47?e:Q())}function Dn(e){for(;!Bt(ke());)Q();return vt(e,Z)}function Nn(e){return Ln(dt("",null,null,null,[""],e=Tn(e),0,[0],e))}function dt(e,t,r,n,o,i,a,d,l){for(var u=0,h=0,f=a,m=0,p=0,g=0,y=1,S=1,w=1,C=0,A="",M=o,R=i,E=n,$=A;S;)switch(g=C,C=Q()){case 40:if(g!=108&&D($,f-1)==58){ct($+=I(At(C),"&","&\f"),"&\f",zr(u?d[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:$+=At(C);break;case 9:case 10:case 13:case 32:$+=On(g);break;case 92:$+=_n(lt()-1,7);continue;case 47:switch(ke()){case 42:case 47:Ke(Hn(Pn(Q(),lt()),t,r,l),l);break;default:$+="/"}break;case 123*y:d[u++]=re($)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+h:w==-1&&($=I($,/\f/g,"")),p>0&&re($)-f&&Ke(p>32?cr($+";",n,r,f-1,l):cr(I($," ","")+";",n,r,f-2,l),l);break;case 59:$+=";";default:if(Ke(E=ar($,t,r,u,h,o,d,A,M=[],R=[],f,i),i),C===123)if(h===0)dt($,t,E,E,M,i,f,d,R);else switch(m===99&&D($,3)===110?100:m){case 100:case 108:case 109:case 115:dt(e,E,E,n&&Ke(ar(e,E,E,0,0,o,d,A,o,M=[],f,R),R),o,R,f,d,n?M:R);break;default:dt($,E,E,E,[""],R,0,d,R)}}u=h=p=0,y=w=1,A=$="",f=a;break;case 58:f=1+re($),p=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&Bn()==125)continue}switch($+=Ht(C),C*y){case 38:w=h>0?1:($+="\f",-1);break;case 44:d[u++]=(re($)-1)*w,w=1;break;case 64:ke()===45&&($+=At(Q())),m=ke(),h=f=re(A=$+=Dn(lt())),C++;break;case 45:g===45&&re($)==2&&(y=0)}}return i}function ar(e,t,r,n,o,i,a,d,l,u,h,f){for(var m=o-1,p=o===0?i:[""],g=Mr(p),y=0,S=0,w=0;y<n;++y)for(var C=0,A=Te(e,m+1,m=zr(S=a[y])),M=e;C<g;++C)(M=Ir(S>0?p[C]+" "+A:I(A,/&\f/g,p[C])))&&(l[w++]=M);return xt(e,t,r,o===0?gt:d,l,u,h,f)}function Hn(e,t,r,n){return xt(e,t,r,Er,Ht(Rn()),Te(e,2,-2),0,n)}function cr(e,t,r,n,o){return xt(e,t,r,Nt,Te(e,0,n),Te(e,n+1,-1),n,o)}function Br(e,t,r){switch(In(e,t)){case 5103:return T+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 4789:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+qe+e+L+e+e;case 5936:switch(D(e,t+11)){case 114:return T+e+L+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+L+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+L+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return T+e+L+e+e;case 6165:return T+e+L+"flex-"+e+e;case 5187:return T+e+I(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return T+e+L+"flex-item-"+I(e,/flex-|-self/g,"")+(de(e,/flex-|baseline/)?"":L+"grid-row-"+I(e,/flex-|-self/g,""))+e;case 4675:return T+e+L+"flex-line-pack"+I(e,/align-content|flex-|-self/g,"")+e;case 5548:return T+e+L+I(e,"shrink","negative")+e;case 5292:return T+e+L+I(e,"basis","preferred-size")+e;case 6060:return T+"box-"+I(e,"-grow","")+T+e+L+I(e,"grow","positive")+e;case 4554:return T+I(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4200:if(!de(e,/flex-|baseline/))return L+"grid-column-align"+Te(e,t)+e;break;case 2592:case 3360:return L+I(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,de(n.props,/grid-\w+-end/)})?~ct(e+(r=r[t].value),"span",0)?e:L+I(e,"-start","")+e+L+"grid-row-span:"+(~ct(r,"span",0)?de(r,/\d+/):+de(r,/\d+/)-+de(e,/\d+/))+";":L+I(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return de(n.props,/grid-\w+-start/)})?e:L+I(I(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,T+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(re(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+qe+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?Br(I(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return I(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,d,l,u){return L+o+":"+i+u+(a?L+o+"-span:"+(d?l:+l-+i)+u:"")+e});case 4949:if(D(e,t+6)===121)return I(e,":",":"+T)+e;break;case 6444:switch(D(e,D(e,14)===45?18:11)){case 120:return I(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+T+(D(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+L+"$2box$3")+e;case 100:return I(e,":",":"+L)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case zn:if(e.children.length)break;case An:case Nt:return e.return=e.return||e.value;case Er:return"";case Ar:return e.return=e.value+"{"+ft(e.children,n)+"}";case gt:if(!re(e.value=e.props.join(",")))return""}return re(r=ft(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vn(e){var t=Mr(e);return function(r,n,o,i){for(var a="",d=0;d<t;d++)a+=e[d](r,n,o,i)||"";return a}}function Gn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Nt:e.return=Br(e.value,e.length,r);return;case Ar:return ft([ge(e,{value:I(e.value,"@","@"+T)})],n);case gt:if(e.length)return Mn(r=e.props,function(o){switch(de(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Re(ge(e,{props:[I(o,/:(read-\w+)/,":"+qe+"$1")]})),Re(ge(e,{props:[o]})),Rt(e,{props:ir(r,n)});break;case"::placeholder":Re(ge(e,{props:[I(o,/:(plac\w+)/,":"+T+"input-$1")]})),Re(ge(e,{props:[I(o,/:(plac\w+)/,":"+qe+"$1")]})),Re(ge(e,{props:[I(o,/:(plac\w+)/,L+"input-$1")]})),Re(ge(e,{props:[o]})),Rt(e,{props:ir(r,n)});break}return""})}}var Yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ee=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tr="active",Lr="data-styled-version",yt="6.1.15",Ft=`/*!sc*/
|
|
32
|
+
`,pt=typeof window<"u"&&"HTMLElement"in window,Un=!!(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"),lr=/invalid hook call/i,ot=new Set,Kn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
33
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
34
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var d=[],l=1;l<arguments.length;l++)d[l-1]=arguments[l];lr.test(a)?(i=!1,ot.delete(n)):o.apply(void 0,Be([a],d,!1))},b.useRef(),i&&!ot.has(n)&&(console.warn(n),ot.add(n))}catch(a){lr.test(a.message)&&ot.delete(n)}finally{console.error=o}}},$t=Object.freeze([]),Oe=Object.freeze({});function qn(e,t,r){return r===void 0&&(r=Oe),e.theme!==r.theme&&e.theme||t||r.theme}var Lt=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"]),Xn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Jn=/(^-|-$)/g;function dr(e){return e.replace(Xn,"-").replace(Jn,"")}var Zn=/(a)(d)/gi,st=52,ur=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ot(e){var t,r="";for(t=Math.abs(e);t>st;t=t/st|0)r=ur(t%st)+r;return(ur(t%st)+r).replace(Zn,"$1-$2")}var zt,Or=5381,Se=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},_r=function(e){return Se(Or,e)};function Qn(e){return Ot(_r(e)>>>0)}function Pr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function It(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Dr=typeof Symbol=="function"&&Symbol.for,Nr=Dr?Symbol.for("react.memo"):60115,eo=Dr?Symbol.for("react.forward_ref"):60112,to={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ro={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},no=((zt={})[eo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zt[Nr]=Hr,zt);function hr(e){return("type"in(t=e)&&t.type.$$typeof)===Nr?Hr:"$$typeof"in e?no[e.$$typeof]:to;var t}var oo=Object.defineProperty,so=Object.getOwnPropertyNames,fr=Object.getOwnPropertySymbols,io=Object.getOwnPropertyDescriptor,ao=Object.getPrototypeOf,pr=Object.prototype;function Fr(e,t,r){if(typeof t!="string"){if(pr){var n=ao(t);n&&n!==pr&&Fr(e,n,r)}var o=so(t);fr&&(o=o.concat(fr(t)));for(var i=hr(e),a=hr(t),d=0;d<o.length;++d){var l=o[d];if(!(l in ro||r&&r[l]||a&&l in a||i&&l in i)){var u=io(t,l);try{oo(e,l,u)}catch{}}}}return e}function _e(e){return typeof e=="function"}function Vt(e){return typeof e=="object"&&"styledComponentId"in e}function Ce(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function mr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Pe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function _t(e,t,r){if(r===void 0&&(r=!1),!r&&!Pe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=_t(e[n],t[n]);else if(Pe(t))for(var n in t)e[n]=_t(e[n],t[n]);return e}function Gt(e,t){Object.defineProperty(e,"toString",{value:t})}var co=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
35
|
+
|
|
36
|
+
`,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.
|
|
37
|
+
|
|
38
|
+
- Are you trying to reuse it across renders?
|
|
39
|
+
- Are you accidentally calling collectStyles twice?
|
|
40
|
+
|
|
41
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
42
|
+
|
|
43
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
44
|
+
|
|
45
|
+
- Does this error occur on the client and is your target falsy?
|
|
46
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
47
|
+
|
|
48
|
+
`,5:`The clone method cannot be used on the client!
|
|
49
|
+
|
|
50
|
+
- Are you running in a client-like environment on the server?
|
|
51
|
+
- Are you trying to run SSR on the client?
|
|
52
|
+
|
|
53
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
54
|
+
|
|
55
|
+
- Are you using a custom target that isn't mounted?
|
|
56
|
+
- Does your document not have a valid head element?
|
|
57
|
+
- Have you accidentally removed a style tag manually?
|
|
58
|
+
|
|
59
|
+
`,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.
|
|
60
|
+
|
|
61
|
+
`,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
|
|
62
|
+
|
|
63
|
+
`,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.
|
|
64
|
+
|
|
65
|
+
`,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.
|
|
66
|
+
|
|
67
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
68
|
+
|
|
69
|
+
`,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.
|
|
70
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
71
|
+
as for instance in your render method then you may be running into this limitation.
|
|
72
|
+
|
|
73
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
74
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
75
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function lo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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(lo.apply(void 0,Be([co[e]],t,!1)).trim())}var uo=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw Ne(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}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++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;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(Ft);return r},e}(),ho=1<<30,ut=new Map,mt=new Map,ht=1,it=function(e){if(ut.has(e))return ut.get(e);for(;mt.has(ht);)ht++;var t=ht++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ho))throw Ne(16,"".concat(t));return ut.set(e,t),mt.set(t,e),t},fo=function(e,t){ht=t+1,ut.set(e,t),mt.set(t,e)},po="style[".concat(Ee,"][").concat(Lr,'="').concat(yt,'"]'),mo=new RegExp("^".concat(Ee,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),go=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},bo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ft),o=[],i=0,a=n.length;i<a;i++){var d=n[i].trim();if(d){var l=d.match(mo);if(l){var u=0|parseInt(l[1],10),h=l[2];u!==0&&(fo(h,u),go(e,h,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(d)}}},gr=function(e){for(var t=document.querySelectorAll(po),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ee)!==Tr&&(bo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function xo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Vr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(d){var l=Array.from(d.querySelectorAll("style[".concat(Ee,"]")));return l[l.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ee,Tr),n.setAttribute(Lr,yt);var a=xo();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},vo=function(){function e(t){this.element=Vr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw Ne(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),yo=function(){function e(t){this.element=Vr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),$o=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),br=pt,wo={isServer:!pt,useCSSOMInjection:!Un},Gr=function(){function e(t,r,n){t===void 0&&(t=Oe),r===void 0&&(r={});var o=this;this.options=W(W({},wo),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&pt&&br&&(br=!1,gr(this)),Gt(this,function(){return function(i){for(var a=i.getTag(),d=a.length,l="",u=function(f){var m=function(w){return mt.get(w)}(f);if(m===void 0)return"continue";var p=i.names.get(m),g=a.getGroup(f);if(p===void 0||!p.size||g.length===0)return"continue";var y="".concat(Ee,".g").concat(f,'[id="').concat(m,'"]'),S="";p!==void 0&&p.forEach(function(w){w.length>0&&(S+="".concat(w,","))}),l+="".concat(g).concat(y,'{content:"').concat(S,'"}').concat(Ft)},h=0;h<d;h++)u(h);return l}(o)})}return e.registerId=function(t){return it(t)},e.prototype.rehydrate=function(){!this.server&&pt&&gr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(W(W({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new $o(o):n?new vo(o):new yo(o)}(this.options),new uo(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(it(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(it(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(it(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),So=/&/g,Co=/^\s*\/\/.*$/gm;function Wr(e,t){return e.map(function(r){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){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Wr(r.children,t)),r})}function ko(e){var t,r,n,o=Oe,i=o.options,a=i===void 0?Oe:i,d=o.plugins,l=d===void 0?$t:d,u=function(m,p,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):m},h=l.slice();h.push(function(m){m.type===gt&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(So,r).replace(n,u))}),a.prefix&&h.push(Wn),h.push(Fn);var f=function(m,p,g,y){p===void 0&&(p=""),g===void 0&&(g=""),y===void 0&&(y="&"),t=y,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var S=m.replace(Co,""),w=Nn(g||p?"".concat(g," ").concat(p," { ").concat(S," }"):S);a.namespace&&(w=Wr(w,a.namespace));var C=[];return ft(w,Vn(h.concat(Gn(function(A){return C.push(A)})))),C};return f.hash=l.length?l.reduce(function(m,p){return p.name||Ne(15),Se(m,p.name)},Or).toString():"",f}var jo=new Gr,Pt=ko(),Yr=b.createContext({shouldForwardProp:void 0,styleSheet:jo,stylis:Pt});Yr.Consumer;b.createContext(void 0);function xr(){return b.useContext(Yr)}var vr=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=Pt);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Gt(this,function(){throw Ne(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pt),this.name+t.hash},e}(),Eo=function(e){return e>="A"&&e<="Z"};function yr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Eo(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ur=function(e){return e==null||e===!1||e===""},Kr=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ur(i)&&(Array.isArray(i)&&i.isCss||_e(i)?n.push("".concat(yr(o),":"),i,";"):Pe(i)?n.push.apply(n,Be(Be(["".concat(o," {")],Kr(i),!1),["}"],!1)):n.push("".concat(yr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Yn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function je(e,t,r,n){if(Ur(e))return[];if(Vt(e))return[".".concat(e.styledComponentId)];if(_e(e)){if(!_e(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof vr||Pe(o)||o===null||console.error("".concat(Pr(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.")),je(o,t,r,n)}var i;return e instanceof vr?r?(e.inject(r,n),[e.getName(n)]):[e]:Pe(e)?Kr(e):Array.isArray(e)?Array.prototype.concat.apply($t,e.map(function(a){return je(a,t,r,n)})):[e.toString()]}function Ao(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_e(r)&&!Vt(r))return!1}return!0}var zo=_r(yt),Io=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Ao(t),this.componentId=r,this.baseHash=Se(zo,r),this.baseStyle=n,Gr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Ce(o,this.staticRulesId);else{var i=mr(je(this.rules,t,r,n)),a=Ot(Se(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var d=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,d)}o=Ce(o,a),this.staticRulesId=a}else{for(var l=Se(this.baseHash,n.hash),u="",h=0;h<this.rules.length;h++){var f=this.rules[h];if(typeof f=="string")u+=f,process.env.NODE_ENV!=="production"&&(l=Se(l,f));else if(f){var m=mr(je(f,t,r,n));l=Se(l,m+h),u+=m}}if(u){var p=Ot(l>>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(u,".".concat(p),void 0,this.componentId)),o=Ce(o,p)}}return o},e}(),qr=b.createContext(void 0);qr.Consumer;var Mt={},$r=new Set;function Mo(e,t,r){var n=Vt(e),o=e,i=!It(e),a=t.attrs,d=a===void 0?$t:a,l=t.componentId,u=l===void 0?function(M,R){var E=typeof M!="string"?"sc":dr(M);Mt[E]=(Mt[E]||0)+1;var $="".concat(E,"-").concat(Qn(yt+E+Mt[E]));return R?"".concat(R,"-").concat($):$}(t.displayName,t.parentComponentId):l,h=t.displayName,f=h===void 0?function(M){return It(M)?"styled.".concat(M):"Styled(".concat(Pr(M),")")}(e):h,m=t.displayName&&t.componentId?"".concat(dr(t.displayName),"-").concat(t.componentId):t.componentId||u,p=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;g=function(M,R){return y(M,R)&&S(M,R)}}else g=y}var w=new Io(r,m,n?o.componentStyle:void 0);function C(M,R){return function(E,$,_){var U=E.attrs,oe=E.componentStyle,ee=E.defaultProps,se=E.foldedComponentIds,X=E.styledComponentId,Ve=E.target,Ge=b.useContext(qr),kt=xr(),ze=E.shouldForwardProp||kt.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(X);var tt=qn($,Ge,ee)||Oe,N=function(ve,pe,ye){for(var ae,te=W(W({},pe),{className:void 0,theme:ye}),Ie=0;Ie<ve.length;Ie+=1){var $e=_e(ae=ve[Ie])?ae(te):ae;for(var J in $e)te[J]=J==="className"?Ce(te[J],$e[J]):J==="style"?W(W({},te[J]),$e[J]):$e[J]}return pe.className&&(te.className=Ce(te.className,pe.className)),te}(U,$,tt),fe=N.as||Ve,K={};for(var G in N)N[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&N.theme===tt||(G==="forwardedAs"?K.as=N.forwardedAs:ze&&!ze(G,fe)||(K[G]=N[G],ze||process.env.NODE_ENV!=="development"||En(G)||$r.has(G)||!Lt.has(fe)||($r.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" 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.)')))));var xe=function(ve,pe){var ye=xr(),ae=ve.generateAndInjectStyles(pe,ye.styleSheet,ye.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(ae),ae}(oe,N);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(xe);var ie=Ce(se,X);return xe&&(ie+=" "+xe),N.className&&(ie+=" "+N.className),K[It(fe)&&!Lt.has(fe)?"class":"className"]=ie,_&&(K.ref=_),b.createElement(fe,K)}(A,M,R)}C.displayName=f;var A=b.forwardRef(C);return A.attrs=p,A.componentStyle=w,A.displayName=f,A.shouldForwardProp=g,A.foldedComponentIds=n?Ce(o.foldedComponentIds,o.styledComponentId):"",A.styledComponentId=m,A.target=n?o.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function(R){for(var E=[],$=1;$<arguments.length;$++)E[$-1]=arguments[$];for(var _=0,U=E;_<U.length;_++)_t(R,U[_],!0);return R}({},o.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(Kn(f,m),A.warnTooManyClasses=function(M,R){var E={},$=!1;return function(_){if(!$&&(E[_]=!0,Object.keys(E).length>=200)){var U=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(U,`.
|
|
76
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
77
|
+
Example:
|
|
78
|
+
const Component = styled.div.attrs(props => ({
|
|
79
|
+
style: {
|
|
80
|
+
background: props.background,
|
|
81
|
+
},
|
|
82
|
+
}))\`width: 100%;\`
|
|
83
|
+
|
|
84
|
+
<Component />`),$=!0,E={}}}}(f,m)),Gt(A,function(){return".".concat(A.styledComponentId)}),i&&Fr(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function wr(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Sr=function(e){return Object.assign(e,{isCss:!0})};function Ro(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(_e(e)||Pe(e))return Sr(je(wr($t,Be([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?je(n):Sr(je(wr(n,t)))}function Dt(e,t,r){if(r===void 0&&(r=Oe),!t)throw Ne(1,t);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,Ro.apply(void 0,Be([o],i,!1)))};return n.attrs=function(o){return Dt(e,t,W(W({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return Dt(e,t,W(W({},r),o))},n}var Xr=function(e){return Dt(Mo,e)},k=Xr;Lt.forEach(function(e){k[e]=Xr(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
85
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
86
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var at="__sc-".concat(Ee,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[at]||(window[at]=0),window[at]===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.
|
|
87
|
+
|
|
88
|
+
See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
89
|
+
animation: fadeIn ease 400ms;
|
|
90
|
+
-webkit-animation: fadeIn ease 400ms;
|
|
91
|
+
-moz-animation: fadeIn ease 400ms;
|
|
92
|
+
|
|
93
|
+
@keyframes fadeIn {
|
|
94
|
+
0% {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
100% {
|
|
98
|
+
opacity: 1;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@-moz-keyframes fadeIn {
|
|
103
|
+
0% {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
100% {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@-webkit-keyframes fadeIn {
|
|
112
|
+
0% {
|
|
113
|
+
opacity: 0;
|
|
114
|
+
}
|
|
115
|
+
100% {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`,Jr=`
|
|
120
|
+
animation: fadeOut ease 400ms;
|
|
121
|
+
-webkit-animation: fadeOut ease 400ms;
|
|
122
|
+
-moz-animation: fadeOut ease 400ms;
|
|
123
|
+
|
|
124
|
+
@keyframes fadeOut {
|
|
125
|
+
0% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
}
|
|
128
|
+
100% {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@-moz-keyframes fadeOut {
|
|
134
|
+
0% {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
}
|
|
137
|
+
100% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@-webkit-keyframes fadeOut {
|
|
143
|
+
0% {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
}
|
|
146
|
+
100% {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
`,Bo=Object.freeze({phones:"only screen and (max-width: 600px)",portraitTablets:"only screen and (min-width: 600px)",landscapeTablets:"only screen and (min-width: 768px)",laptops:"only screen and (min-width: 992px)",desktops:"only screen and (min-width: 1200px)"}),To={fontColorBase:"hsl(0, 0%, 24%)",fontColorLight:"hsl(0, 0%, 62%)",fontColorAccent:"hsl(345, 100%, 47%)",backgroundColorBase:"hsl(0, 0%, 100%)",backgroundColorLight:"hsl(0, 0%, 95%)",backgroundColorTransparent:"hsla(0, 0%, 0%, 0.3)",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%)",fontFamilyCore:"Arial, Helvetica, sans-serif",fontFamilyMonospace:"'Courier New', Courier, monospace",fontSizeBase:"1.2rem",fontSizeSmall:"0.8rem",fontSizeHeader:"2rem",gapSmall:"0.25rem",gapMedium:"0.6rem",gapBig:"1rem",iconSize:"1.2rem",blockBorderRadius:"0.25rem",boxShadow:"hsla(0, 0%, 0%, 0.15) 2.4px 2.4px 3.2px",textShadow:"2.4px 2.4px 3.2px hsla(0, 0%, 0%, 0.3)",borderBase:"1px solid hsl(0, 0%, 84%)",borderLight:"1px solid hsl(0, 0%, 89%)",borderAccent:"1px solid hsl(345, 100%, 47%)",borderOutline:"1px solid hsl(0, 0%, 24%)",zIndexBase:"1",zIndexPopup:"100",zIndexModal:"200"},Lo={fontColorBase:"hsl(0, 0%, 100%)",fontColorLight:"hsl(0, 0%, 92%)",fontColorAccent:"hsl(16, 82%, 52%)",backgroundColorBase:"hsl(0, 0%, 17%)",backgroundColorLight:"hsl(0, 0%, 24%)",backgroundColorTransparent:"hsla(0, 0%, 92%, 0.3)",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%)",fontFamilyCore:"Arial, Helvetica, sans-serif",fontFamilyMonospace:"'Courier New', Courier, monospace",fontSizeBase:"1.2rem",fontSizeSmall:"0.8rem",fontSizeHeader:"2rem",gapSmall:"0.25rem",gapMedium:"0.6rem",gapBig:"1rem",iconSize:"1.2rem",blockBorderRadius:"0.25rem",boxShadow:"hsla(0, 0%, 92%, 0.15) 2.4px 2.4px 3.2px",textShadow:"2.4px 2.4px 3.2px hsla(0, 0%, 92%, 0.3)",borderBase:"1px solid hsl(0, 0%, 11%)",borderLight:"1px solid hsl(0, 0%, 29%)",borderAccent:"1px solid hsl(16, 82%, 52%)",borderOutline:"1px solid hsl(0, 0%, 100%)",zIndexBase:"1",zIndexPopup:"100",zIndexModal:"200"},Oo=k.span`
|
|
151
|
+
display: ${({$visible:e})=>e?"block":"none"};
|
|
152
|
+
position: absolute;
|
|
153
|
+
max-width: 100%;
|
|
154
|
+
right: 0;
|
|
155
|
+
top: 72px;
|
|
156
|
+
opacity: 0.8;
|
|
157
|
+
z-index: ${e=>e.$theme.zIndexPopup};
|
|
158
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
159
|
+
border: ${e=>e.$theme.borderAccent};
|
|
160
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
161
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
162
|
+
font-size: ${e=>e.$theme.fontSizeSmall};
|
|
163
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
164
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
165
|
+
box-shadow: ${e=>e.$theme.boxShadow};
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
|
|
168
|
+
${He}
|
|
169
|
+
`,Wt=({errorId:e,testId:t,message:r="Invalid input",visible:n=!1,style:o,theme:i})=>s.jsx(Oo,{id:e,$visible:n,"data-testid":t,style:o,$theme:i,"aria-hidden":!n,children:r});function Yt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Ut({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function _o({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M328 112L184 256l144 144"})]})}function Po({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 470 1000",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function wt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z"})]})}function St({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Kt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Do({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",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"})]})}function No({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",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"})]})}function Ho({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",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"})]})}function Fo({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Vo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("defs",{children:s.jsx("style",{})}),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"})]})}function Go({title:e,...t}){return s.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[e&&s.jsx("title",{children:e}),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"}),s.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}function Wo({title:e,...t}){return s.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),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"}),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"}),s.jsx("path",{d:"M9.15 14.85L18 4M6 4l8.85 10.85"})]})}function Yo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Uo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Zr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),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"})]})}function Ko({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})]})}const qo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]});function Qr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function Xo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}const Jo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]});function en({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"}),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"})]})}const Zo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]});function Qo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function es({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 80a176 176 0 10176 176A176 176 0 00256 80z"}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:28,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"}),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"})]})}function ts({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,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"}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,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"})]})}function rs({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"})]})}function ns({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"}),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"})]})}function os({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),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"}),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"})]})}function tn({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),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"})]})}var q=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(q||{}),ue=(e=>(e.Primary="primary",e.Flat="flat",e.Icon="icon",e))(ue||{}),j=(e=>(e.ArrowDown="arrow-down",e.ArrowUp="arrow-up",e.Back="back",e.Cancel="cancel",e.CheckboxChecked="checkbox-checked",e.CheckboxUnchecked="checkbox-unchecked",e.CheckMark="check-mark",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.ChevronUp="chevron-up",e.Clear="clear",e.Copy="copy",e.Cut="cut",e.Delete="delete",e.Download="download",e.Error="error",e.Forward="forward",e.Graduate="graduate",e.Help="help",e.Hide="hide",e.Home="home",e.Info="info",e.Login="login",e.Paste="paste",e.Question="question",e.Save="save",e.Show="show",e.Upload="upload",e.Warning="warning",e.Remove="remove",e))(j||{}),rn=(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))(rn||{}),V=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(V||{}),qt=(e=>(e.Light="light",e.Dark="dark",e))(qt||{}),Xt=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(Xt||{});const ss={[j.ArrowDown]:Yt,[j.ArrowUp]:Ut,[j.Back]:_o,[j.Cancel]:Po,[j.CheckboxChecked]:wt,[j.CheckboxUnchecked]:St,[j.CheckMark]:Kt,[j.ChevronDown]:Do,[j.ChevronUp]:Fo,[j.ChevronLeft]:No,[j.ChevronRight]:Ho,[j.Clear]:Vo,[j.Copy]:Go,[j.Cut]:Wo,[j.Delete]:Yo,[j.Download]:Uo,[j.Error]:Zr,[j.Forward]:Ko,[j.Graduate]:qo,[j.Help]:Qr,[j.Hide]:Xo,[j.Home]:Jo,[j.Info]:en,[j.Login]:Zo,[j.Paste]:Qo,[j.Question]:es,[j.Save]:rs,[j.Show]:ns,[j.Upload]:os,[j.Warning]:tn,[j.Remove]:ts},ne=({name:e,testId:t,...r})=>{if(!e)return null;const n=ss[e];return s.jsx(n,{"data-testid":t,...r})},is=k.button`
|
|
170
|
+
background: transparent;
|
|
171
|
+
border: none;
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
175
|
+
color: ${e=>e.$theme.fontColorLight};
|
|
176
|
+
padding: 0;
|
|
177
|
+
|
|
178
|
+
&:focus-visible {
|
|
179
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
180
|
+
outline-offset: -1px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&:hover {
|
|
184
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
svg {
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
height: ${e=>e.$theme.iconSize};
|
|
190
|
+
width: ${e=>e.$theme.iconSize};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&[disabled] {
|
|
194
|
+
pointer-events: none;
|
|
195
|
+
opacity: 0.5;
|
|
196
|
+
}
|
|
197
|
+
`,Xe=({onClick:e,label:t,icon:r,disabled:n,theme:o})=>s.jsx(is,{onClick:e,"aria-label":t,type:"button",disabled:n,$theme:o,children:s.jsx(ne,{name:r})}),as=k.label`
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
font-size: ${e=>e.$theme.fontSizeSmall};
|
|
201
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
202
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
203
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
204
|
+
|
|
205
|
+
&:hover {
|
|
206
|
+
text-shadow: ${e=>e.$theme.textShadow};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
& + span {
|
|
210
|
+
text-wrap: nowrap;
|
|
211
|
+
overflow: hidden;
|
|
212
|
+
text-overflow: ellipsis;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
& abbr {
|
|
216
|
+
text-decoration: none;
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
219
|
+
margin-left: ${e=>e.$theme.gapSmall};
|
|
220
|
+
}
|
|
221
|
+
`,Ae=({label:e,required:t,inputId:r,theme:n,icon:o,iconPosition:i,isTextHidden:a=!1,style:d})=>{const l=!!o&&i==="left",u=!!o&&i==="right";return s.jsxs(as,{htmlFor:r,style:d,$theme:n,children:[l&&o,!a&&s.jsxs("span",{children:[e,t&&s.jsx("abbr",{title:"required",children:"*"})]}),u&&o]})};function cs(e){return({tooltip:t,visibleOn:r,...n})=>t!=null&&t.length?s.jsx(pn,{tooltipContent:t,visibleOn:r,children:s.jsx(e,{...n})}):s.jsx(e,{...n})}const be=b.createContext({}),nn=b.createContext({mode:qt.Light});function ls(e,t){const r=e==="dark"?Lo:To;if(t)for(const n in t){const o=n;Object.prototype.hasOwnProperty.call(r,o)&&(r[o]=t[o].toString())}return r}function Je(e){const t=document.getElementById(e);t&&t.focus()}function on({e,options:t,onClose:r}){let n="";t.forEach(i=>{document.getElementById(i.id)===document.activeElement&&(n=i.id)});const o=t.findIndex(i=>i.id===n);switch(e.key){case"Escape":e.preventDefault(),r();break;case"ArrowUp":{e.preventDefault();const i=o-1>=0?o-1:t.length-1,a=t[i];a&&Je(a.id);break}case"ArrowDown":case"Tab":{e.preventDefault();const i=o===t.length-1?0:o+1,a=t[i];a&&Je(a.id);break}}}const Y=()=>{const{customTheme:e,mode:t}=b.useContext(nn);return ls(t,e)},Qe=({ref:e,onClickOutsideHandler:t,dependentRef:r})=>{b.useEffect(()=>{const n=o=>{const i=(e==null?void 0:e.current)&&!e.current.contains(o.target),a=r!=null&&r.current?!r.current.contains(o.target):!0;i&&a&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,r,t])},sn=({ref:e,isVisible:t})=>{const[r,n]=b.useState({width:0,height:0});return b.useEffect(()=>{e!=null&&e.current&&t&&n({width:e.current.offsetWidth,height:e.current.offsetHeight})},[e,t]),r};function he(e){const t=b.useId(),r=e??t,n=`${r}_error`,o=`${r}_dropdown`;return{elementId:r,errorId:n,dropdownId:o}}const et=({ref:e,keyCode:t,onKeyPress:r})=>{b.useEffect(()=>{const n=o=>{(o==null?void 0:o.code)===t&&(e!=null&&e.current)&&r()};return document.addEventListener("keydown",n,!1),()=>{document.removeEventListener("keydown",n,!1)}},[e,t,r])},an=({modalRef:e,isOpened:t})=>{b.useEffect(()=>{const r=e.current;if(!t||!r)return;const n=r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=n[0],i=n[n.length-1],a=d=>{d.key==="Tab"&&(d.shiftKey&&document.activeElement===o?(d.preventDefault(),i.focus()):!d.shiftKey&&document.activeElement===i&&(d.preventDefault(),o.focus()))};return r.addEventListener("keydown",a),()=>{r.removeEventListener("keydown",a)}},[e,t])},Jt=(e,t=300)=>{const[r,n]=b.useState(!1);return b.useEffect(()=>{e&&!r?n(!0):!e&&r&&setTimeout(()=>{n(!1)},t)},[e]),r},Fe=e=>{const{resetSignal:t}=b.useContext(be);b.useEffect(()=>{t&&e()},[t,e])};function Cr(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function cn(){const[e,t]=b.useState(Cr());return b.useEffect(()=>{function r(){t(Cr())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e}const ln=({wrapperRef:e,tooltipRef:t,isOpened:r,spacing:n=4})=>{const[o,i]=b.useState({top:0,left:0}),{width:a,height:d}=sn({ref:t,isVisible:r}),{width:l,height:u}=cn();return b.useEffect(()=>{if(r&&(e!=null&&e.current)){const h=e==null?void 0:e.current.getBoundingClientRect();let f=Math.round(h.bottom+n),m=Math.round(h.left);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})}},[r,e,d,a,n,l,u]),o},ds=k.button`
|
|
222
|
+
position: relative;
|
|
223
|
+
border: none;
|
|
224
|
+
background: transparent;
|
|
225
|
+
padding: 0;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
outline: none;
|
|
228
|
+
transition: filter 250ms;
|
|
229
|
+
width: ${e=>e.$extended?"100%":"inherit"};
|
|
230
|
+
|
|
231
|
+
&[disabled] {
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
opacity: 0.5;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.chop-logic-button_shadow {
|
|
237
|
+
position: absolute;
|
|
238
|
+
top: 0;
|
|
239
|
+
left: 0;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 100%;
|
|
242
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
243
|
+
background: hsl(0deg 0% 0% / 0.25);
|
|
244
|
+
will-change: transform;
|
|
245
|
+
transform: translateY(2px);
|
|
246
|
+
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.chop-logic-button_edge {
|
|
250
|
+
position: absolute;
|
|
251
|
+
top: 0;
|
|
252
|
+
left: 0;
|
|
253
|
+
width: 100%;
|
|
254
|
+
height: 100%;
|
|
255
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
256
|
+
background: ${e=>e.$theme.gradientShadow};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.chop-logic-button_front {
|
|
260
|
+
display: flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
justify-content: center;
|
|
263
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
264
|
+
position: relative;
|
|
265
|
+
padding: ${e=>`${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
266
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
267
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
268
|
+
color: #ffffff;
|
|
269
|
+
background: ${e=>e.$theme.fontColorAccent};
|
|
270
|
+
will-change: transform;
|
|
271
|
+
transform: translateY(-4px);
|
|
272
|
+
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&:hover {
|
|
276
|
+
filter: brightness(110%);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&:hover .chop-logic-button_front {
|
|
280
|
+
transform: translateY(-6px);
|
|
281
|
+
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
&:active .chop-logic-button_front {
|
|
285
|
+
transform: translateY(-2px);
|
|
286
|
+
transition: transform 34ms;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&:hover .chop-logic-button_shadow {
|
|
290
|
+
transform: translateY(4px);
|
|
291
|
+
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&:active .chop-logic-button_shadow {
|
|
295
|
+
transform: translateY(1px);
|
|
296
|
+
transition: transform 34ms;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&:focus-visible {
|
|
300
|
+
outline: revert;
|
|
301
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
302
|
+
outline-offset: 4px;
|
|
303
|
+
}
|
|
304
|
+
`,us=k.button`
|
|
305
|
+
border: none;
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
justify-content: center;
|
|
310
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
311
|
+
padding: ${e=>`${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
312
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
313
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
314
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
315
|
+
background: transparent;
|
|
316
|
+
width: ${e=>e.$extended?"100%":"inherit"};
|
|
317
|
+
|
|
318
|
+
&:hover,
|
|
319
|
+
&:active {
|
|
320
|
+
background: ${e=>e.$theme.backgroundColorLight};
|
|
321
|
+
transition: all 0.3s ease 0s;
|
|
322
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&:focus-visible {
|
|
326
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&[disabled] {
|
|
330
|
+
pointer-events: none;
|
|
331
|
+
opacity: 0.5;
|
|
332
|
+
}
|
|
333
|
+
`,hs=k.button`
|
|
334
|
+
border: none;
|
|
335
|
+
cursor: pointer;
|
|
336
|
+
display: flex;
|
|
337
|
+
align-items: center;
|
|
338
|
+
justify-content: center;
|
|
339
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
340
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
341
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
342
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
343
|
+
background: transparent;
|
|
344
|
+
|
|
345
|
+
&:hover {
|
|
346
|
+
background-color: ${e=>e.$theme.backgroundColorLight};
|
|
347
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
348
|
+
transition: all 0.3s ease 0s;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&:focus-visible {
|
|
352
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&[disabled] {
|
|
356
|
+
pointer-events: none;
|
|
357
|
+
opacity: 0.5;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
svg {
|
|
361
|
+
height: ${e=>e.$theme.iconSize};
|
|
362
|
+
width: ${e=>e.$theme.iconSize};
|
|
363
|
+
}
|
|
364
|
+
`,fs=({onClick:e,text:t,icon:r,label:n,disabled:o=!1,extended:i=!1,type:a="button",view:d=ue.Primary,...l})=>{const u=Y();switch(d){case ue.Primary:return s.jsxs(ds,{$extended:i,"aria-label":n,type:a,onClick:e,disabled:o,$theme:u,...l,children:[s.jsx("span",{className:"chop-logic-button_shadow"}),s.jsx("span",{className:"chop-logic-button_edge"}),s.jsxs("span",{className:"chop-logic-button_front",children:[s.jsx(ne,{name:r}),t]})]});case ue.Flat:return s.jsxs(us,{$extended:i,"aria-label":n,type:a,onClick:e,disabled:o,$theme:u,...l,children:[s.jsx(ne,{name:r}),t]});case ue.Icon:return s.jsx(hs,{"aria-label":n,type:a,onClick:e,disabled:o,$theme:u,...l,children:s.jsx(ne,{name:r})});default:return null}},Ze=cs(fs),ps=k.div`
|
|
365
|
+
display: flex;
|
|
366
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
367
|
+
padding: ${e=>e.$theme.gapMedium} 0;
|
|
368
|
+
position: relative;
|
|
369
|
+
overflow: hidden;
|
|
370
|
+
|
|
371
|
+
& svg {
|
|
372
|
+
color: ${e=>e.$checked?e.$theme.fontColorAccent:e.$theme.fontColorLight};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
& label {
|
|
376
|
+
cursor: pointer;
|
|
377
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
378
|
+
font-size: ${e=>e.$theme.fontSizeBase} !important;
|
|
379
|
+
&:hover,
|
|
380
|
+
&:active {
|
|
381
|
+
text-shadow: ${e=>e.$theme.textShadow};
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
${e=>e.$disabled&&`
|
|
386
|
+
pointer-events: none;
|
|
387
|
+
opacity: 0.5;
|
|
388
|
+
`}
|
|
389
|
+
|
|
390
|
+
& input {
|
|
391
|
+
position: absolute;
|
|
392
|
+
z-index: -1;
|
|
393
|
+
opacity: 0;
|
|
394
|
+
top: 4px;
|
|
395
|
+
left: 0;
|
|
396
|
+
margin: 0;
|
|
397
|
+
|
|
398
|
+
&:focus-visible + label {
|
|
399
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
400
|
+
outline-offset: 2px;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
`;function ms({defaultChecked:e,initialValues:t,name:r}){return t&&(t==null?void 0:t[r])!==void 0?!!(t!=null&&t[r]):!!e}function gs({name:e,defaultChecked:t,onChange:r}){const{onChangeFormInput:n,initialValues:o}=b.useContext(be),i=ms({initialValues:o,name:e,defaultChecked:t}),[a,d]=b.useState(i),l=h=>{const f=h.target.checked;d(f),r==null||r(h),n==null||n({name:e,value:f})},u=b.useCallback(()=>{d(i),n==null||n({name:e,value:i})},[e]);return Fe(u),{handleChange:l,checked:a}}const bs=({name:e,label:t,disabled:r,noLabel:n,required:o=!1,iconPosition:i="left",defaultChecked:a,onChange:d,id:l,...u})=>{const{handleChange:h,checked:f}=gs({name:e,defaultChecked:a,onChange:d}),{elementId:m}=he(l),p=Y();return s.jsxs(ps,{$disabled:!!r,$theme:p,$checked:f,...u,children:[s.jsx("input",{id:m,name:e,type:"checkbox",disabled:r,required:o,checked:f,onChange:h,"aria-label":n?t:void 0}),s.jsx(Ae,{label:t,required:o,inputId:m,isTextHidden:n,icon:f?s.jsx(wt,{}):s.jsx(St,{}),iconPosition:i,theme:p})]})},dn=k.div`
|
|
404
|
+
position: relative;
|
|
405
|
+
display: flex;
|
|
406
|
+
justify-content: space-between;
|
|
407
|
+
flex-direction: column;
|
|
408
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
409
|
+
background: transparent;
|
|
410
|
+
`,un=k.button`
|
|
411
|
+
text-align: left;
|
|
412
|
+
cursor: pointer;
|
|
413
|
+
display: flex;
|
|
414
|
+
justify-content: space-between;
|
|
415
|
+
align-items: center;
|
|
416
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
417
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
418
|
+
border: ${e=>e.$theme.borderLight};
|
|
419
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
420
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
421
|
+
white-space: nowrap;
|
|
422
|
+
text-overflow: ellipsis;
|
|
423
|
+
overflow: hidden;
|
|
424
|
+
|
|
425
|
+
& > span:nth-child(1) {
|
|
426
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
427
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
428
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
429
|
+
overflow: hidden;
|
|
430
|
+
text-overflow: ellipsis;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
svg {
|
|
434
|
+
cursor: pointer;
|
|
435
|
+
color: ${e=>e.$theme.fontColorLight};
|
|
436
|
+
height: ${e=>e.$theme.iconSize};
|
|
437
|
+
width: ${e=>e.$theme.iconSize};
|
|
438
|
+
|
|
439
|
+
&:hover {
|
|
440
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&:focus-visible {
|
|
445
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
446
|
+
outline-offset: 2px;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
&[disabled] {
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
opacity: 0.5;
|
|
452
|
+
}
|
|
453
|
+
`,hn=k.ul`
|
|
454
|
+
visibility: hidden;
|
|
455
|
+
opacity: 0;
|
|
456
|
+
transition:
|
|
457
|
+
visibility 0s,
|
|
458
|
+
opacity 0.3s linear;
|
|
459
|
+
position: absolute;
|
|
460
|
+
background: ${e=>e.$theme.backgroundColorBase};
|
|
461
|
+
margin: 0;
|
|
462
|
+
padding: 0;
|
|
463
|
+
list-style: none;
|
|
464
|
+
z-index: ${e=>e.$theme.zIndexPopup};
|
|
465
|
+
width: 100%;
|
|
466
|
+
top: 72px;
|
|
467
|
+
left: -1px;
|
|
468
|
+
border: ${e=>e.$theme.borderLight};
|
|
469
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
470
|
+
box-shadow: ${e=>e.$theme.boxShadow};
|
|
471
|
+
overflow-y: auto;
|
|
472
|
+
max-height: 180px;
|
|
473
|
+
|
|
474
|
+
${e=>e.$opened&&"visibility: visible; opacity: 1;"}
|
|
475
|
+
`,fn=k.li`
|
|
476
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
477
|
+
cursor: pointer;
|
|
478
|
+
display: flex;
|
|
479
|
+
justify-content: space-between;
|
|
480
|
+
align-items: center;
|
|
481
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
482
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
483
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
484
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
485
|
+
|
|
486
|
+
&:hover,
|
|
487
|
+
&:active {
|
|
488
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
&:focus-visible {
|
|
492
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
493
|
+
outline-offset: -4px;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
svg {
|
|
497
|
+
color: ${e=>e.$selected?e.$theme.fontColorAccent:e.$theme.fontColorLight};
|
|
498
|
+
width: ${e=>e.$theme.iconSize};
|
|
499
|
+
height: ${e=>e.$theme.iconSize};
|
|
500
|
+
}
|
|
501
|
+
`,xs=k(fn)`
|
|
502
|
+
justify-content: flex-start;
|
|
503
|
+
`,vs=({opened:e,onClick:t,comboboxId:r,dropdownId:n,name:o,placeholder:i,disabled:a,required:d,values:l,theme:u})=>{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);let m=s.jsx("span",{children:i});return h&&h.length>1?m=s.jsx("span",{children:`${h.length} items selected`}):h&&h.length===1&&(m=s.jsx("span",{children:h[0]})),s.jsxs(un,{type:"button",name:o,value:f,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:r,onClick:t,disabled:a,"aria-required":d,$theme:u,children:[m,e?s.jsx(Ut,{}):s.jsx(Yt,{})]})},ys=({value:e,onSelect:t,theme:r})=>{const{id:n,label:o,selected:i}=e,a=d=>l=>{switch(l.key){case" ":case"SpaceBar":case"Enter":l.preventDefault(),t(d);break}};return s.jsxs(xs,{id:n,role:"option","aria-selected":i,tabIndex:0,onKeyDown:a(n),onClick:()=>t(n),$theme:r,$selected:i,children:[i?s.jsx(wt,{}):s.jsx(St,{}),s.jsx("span",{children:o})]})},$s=({options:e,opened:t,onClose:r,onSelect:n,dropdownId:o,theme:i})=>s.jsx(hn,{$opened:t,role:"listbox",id:o,tabIndex:-1,onKeyDown:a=>on({e:a,options:e,onClose:r}),$theme:i,children:e.map(a=>s.jsx(ys,{value:a,onSelect:()=>n(a.id),theme:i},a.id))});function ws({name:e,options:t,initialValues:r,defaultValue:n}){return t.map(o=>{let i=!1;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}})}const kr=e=>e.filter(t=>t.selected).map(t=>t.id),Ss=(e,t)=>{const r=e.find(n=>n.id===t);return e.map(n=>n.id===t?{...n,selected:!(r!=null&&r.selected)}:n)};function Cs({name:e,defaultValue:t,onChange:r,options:n}){const[o,i]=b.useState(!1),{onChangeFormInput:a,initialValues:d}=b.useContext(be),l=ws({name:e,options:n,initialValues:d,defaultValue:t}),[u,h]=b.useState(l),f=()=>i(!1),m=()=>i(!o),p=y=>{const S=Ss(u,y);h(S),r==null||r(S),a==null||a({name:e,value:kr(S)})},g=b.useCallback(()=>{i(!1),h(l),a==null||a({name:e,value:kr(l)})},[e]);return Fe(g),{handleClose:f,handleToggle:m,handleSelect:p,opened:o,values:u}}const ks=({options:e,name:t,label:r,required:n=!1,placeholder:o="Not selected",disabled:i=!1,onChange:a,defaultValue:d,id:l,...u})=>{const h=b.useRef(null),{elementId:f,dropdownId:m}=he(l),p=Y(),{handleClose:g,handleSelect:y,handleToggle:S,opened:w,values:C}=Cs({name:t,options:e,defaultValue:d,onChange:a});return Qe({ref:h,onClickOutsideHandler:g}),et({keyCode:"Escape",ref:h,onKeyPress:g}),s.jsxs(dn,{ref:h,$theme:p,...u,children:[s.jsx(Ae,{label:r,required:n,inputId:f,theme:p}),s.jsx(vs,{name:t,opened:w,comboboxId:f,dropdownId:m,onClick:S,values:C,placeholder:o,disabled:i,required:n,theme:p}),s.jsx($s,{theme:p,options:C,opened:w,onClose:g,dropdownId:m,onSelect:y})]})};function js({name:e,initialValues:t,defaultValue:r}){return t&&t[e]?Number(t[e]):r&&typeof r=="number"?r:0}function Es({value:e,required:t,validator:r,maxValue:n,minValue:o}){return t&&!r&&e===void 0?!1:r&&typeof r=="function"?r(e):n&&o&&e&&!r?e<=n&&e>=o:!0}function As({name:e,defaultValue:t,onChange:r,onSpinButtonClick:n,min:o,max:i,step:a,required:d,validator:l}){const{onChangeFormInput:u,initialValues:h}=b.useContext(be),f=js({initialValues:h,defaultValue:t,name:e}),m=i?Number(i):Number.MAX_SAFE_INTEGER,p=o?Number(o):Number.MIN_SAFE_INTEGER,[g,y]=b.useState(f),[S,w]=b.useState(!0),C=$=>{y($);const _=Es({value:$,required:d,validator:l,maxValue:m,minValue:p});w(_),u==null||u({name:e,value:$,valid:_})},A=$=>{const _=Number($.target.value);C(_),r==null||r($)},M=()=>{C(g+a),n==null||n(g+a)},R=()=>{C(g-a),n==null||n(g-a)},E=b.useCallback(()=>{y(f),w(!0),u==null||u({name:e,value:f,valid:!0})},[e]);return Fe(E),{handleChange:A,value:g,valid:S,minValue:p,maxValue:m,increment:M,decrement:R}}const zs=k.div`
|
|
504
|
+
display: flex;
|
|
505
|
+
flex-direction: column;
|
|
506
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
507
|
+
position: relative;
|
|
508
|
+
|
|
509
|
+
& > div:nth-child(2) {
|
|
510
|
+
display: flex;
|
|
511
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
512
|
+
align-items: center;
|
|
513
|
+
border: ${e=>e.$theme.borderLight};
|
|
514
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
515
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
516
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
517
|
+
|
|
518
|
+
&:has(input:focus) {
|
|
519
|
+
border: ${e=>e.$theme.borderOutline};
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
&:has(input[aria-invalid='true']) {
|
|
523
|
+
border: ${e=>e.$theme.borderAccent};
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
&:has(input[disabled]) {
|
|
527
|
+
pointer-events: none;
|
|
528
|
+
opacity: 0.5;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
& > span:nth-child(2) {
|
|
532
|
+
display: flex;
|
|
533
|
+
align-items: center;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
& input {
|
|
538
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
539
|
+
padding: 0;
|
|
540
|
+
border: none;
|
|
541
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
542
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
543
|
+
display: inline-block;
|
|
544
|
+
background: transparent;
|
|
545
|
+
white-space: nowrap;
|
|
546
|
+
text-overflow: ellipsis;
|
|
547
|
+
overflow: hidden;
|
|
548
|
+
flex-grow: 1;
|
|
549
|
+
min-width: 0;
|
|
550
|
+
|
|
551
|
+
&:focus-visible {
|
|
552
|
+
outline: none;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
&::-webkit-outer-spin-button,
|
|
556
|
+
&::-webkit-inner-spin-button {
|
|
557
|
+
-webkit-appearance: none;
|
|
558
|
+
margin: 0;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
&[type='number'] {
|
|
562
|
+
-moz-appearance: textfield;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
`,Is=({name:e,label:t,errorMessage:r,onChange:n,onBlur:o,onFocus:i,onSpinButtonClick:a,validator:d,min:l,max:u,id:h,tabIndex:f,disabled:m=!1,required:p=!1,readOnly:g=!1,hasSpinButtons:y=!0,defaultValue:S=0,step:w=1,...C})=>{const{elementId:A,errorId:M}=he(h),R=Y(),{value:E,valid:$,handleChange:_,increment:U,decrement:oe,minValue:ee,maxValue:se}=As({name:e,defaultValue:S,min:l,max:u,onChange:n,required:p,validator:d,step:w,onSpinButtonClick:a});return s.jsxs(zs,{$theme:R,...C,children:[s.jsx(Ae,{label:t,required:p,inputId:A,theme:R}),s.jsxs("div",{children:[s.jsx("input",{id:A,name:e,type:"number",disabled:m,required:p,readOnly:g,placeholder:"0","aria-invalid":!$,"aria-errormessage":M,value:E.toString(),onChange:_,min:ee,max:se,step:w,onBlur:o,onFocus:i,tabIndex:f}),y&&s.jsxs("span",{children:[s.jsx(Xe,{onClick:oe,label:`Decrement value for ${t}`,icon:j.ChevronLeft,disabled:m,theme:R}),s.jsx(Xe,{onClick:U,label:`Increment value for ${t}`,icon:j.ChevronRight,disabled:m,theme:R})]})]}),s.jsx(Wt,{errorId:M,message:r,visible:!$,theme:R})]})},Ms=({opened:e,onClick:t,comboboxId:r,dropdownId:n,selected:o,name:i,placeholder:a,disabled:d,required:l,theme:u})=>s.jsxs(un,{type:"button",name:i,value:o==null?void 0:o.id,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:r,onClick:t,disabled:d,"aria-required":l,$theme:u,children:[o!=null&&o.label?s.jsx("span",{children:o==null?void 0:o.label}):s.jsx("span",{children:a}),e?s.jsx(Ut,{}):s.jsx(Yt,{})]}),Rs=({value:e,selected:t,onSelect:r,onClear:n,theme:o})=>{const{id:i,label:a}=e,d=u=>{t?n():r(u)},l=u=>h=>{switch(h.key){case" ":case"SpaceBar":case"Enter":h.preventDefault(),d(u);break}};return s.jsxs(fn,{id:i,role:"option","aria-selected":t,tabIndex:0,onKeyDown:l(i),onClick:()=>d(i),$theme:o,$selected:t,children:[s.jsx("span",{children:a}),t&&s.jsx(Kt,{})]})},Bs=({options:e,opened:t,onClose:r,onSelect:n,dropdownId:o,comboboxId:i,selected:a,onClear:d,theme:l})=>{const u=h=>{n(h),r(),Je(i)};return s.jsx(hn,{role:"listbox",id:o,tabIndex:-1,onKeyDown:h=>on({e:h,options:e,onClose:r}),$opened:t,$theme:l,children:e.map(h=>s.jsx(Rs,{value:h,onSelect:()=>u(h.id),onClear:d,selected:h.id===(a==null?void 0:a.id),theme:l},h.id))})};function Ts({name:e,options:t,initialValues:r,defaultValue:n}){var i;let o;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)}function Ls({name:e,defaultValue:t,onChange:r,options:n}){const{onChangeFormInput:o,initialValues:i}=b.useContext(be),a=Ts({name:e,options:n,defaultValue:t,initialValues:i}),[d,l]=b.useState(!1),[u,h]=b.useState(a),f=()=>l(!1),m=()=>l(!d),p=S=>{const w=n.find(C=>C.id===S);h(w),r==null||r(w),o==null||o({name:e,value:w==null?void 0:w.id})},g=()=>{h(void 0),r==null||r(void 0)},y=b.useCallback(()=>{l(!1),h(a),o==null||o({name:e,value:a==null?void 0:a.id})},[e]);return Fe(y),{selected:u,opened:d,handleClear:g,handleClose:f,handleToggle:m,handleSelect:p}}const Os=({options:e,onChange:t,name:r,label:n,defaultValue:o,id:i,placeholder:a="Not selected",required:d=!1,disabled:l=!1,...u})=>{const h=b.useRef(null),f=Y(),{elementId:m,dropdownId:p}=he(i),{handleClear:g,handleClose:y,handleSelect:S,handleToggle:w,selected:C,opened:A}=Ls({options:e,onChange:t,defaultValue:o,name:r});return Qe({ref:h,onClickOutsideHandler:y}),et({keyCode:"Escape",ref:h,onKeyPress:y}),s.jsxs(dn,{ref:h,$theme:f,...u,children:[s.jsx(Ae,{label:n,required:d,inputId:m,theme:f}),s.jsx(Ms,{name:r,opened:A,comboboxId:m,dropdownId:p,onClick:w,selected:C,placeholder:a,disabled:l,required:d,theme:f}),s.jsx(Bs,{options:e,selected:C,opened:A,onClose:y,dropdownId:p,comboboxId:m,onSelect:S,onClear:g,theme:f})]})};function _s({value:e,required:t,validator:r}){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}function Ps({name:e,initialValues:t,defaultValue:r}){return t&&(t!=null&&t[e])?t[e].toString():r&&typeof r=="string"?r:""}function Ds({name:e,defaultValue:t,onChange:r,onClear:n,required:o,validator:i}){const{onChangeFormInput:a,initialValues:d}=b.useContext(be),l=Ps({initialValues:d,defaultValue:t,name:e}),[u,h]=b.useState(l),[f,m]=b.useState(!0),[p,g]=b.useState(!1),y=A=>{const M=A.target.value,R=_s({value:M,required:o,validator:i});h(M),m(R),a==null||a({name:e,value:M,valid:R}),r==null||r(A)},S=()=>{h(""),m(!0),a==null||a({name:e,value:"",valid:!0}),n==null||n()},w=b.useCallback(()=>{h(l),m(!0),a==null||a({name:e,value:l,valid:!0})},[e]),C=()=>{g(!p)};return Fe(w),{value:u,valid:f,passwordShown:p,handleChange:y,handleClear:S,togglePassword:C}}const Ns=k.div`
|
|
566
|
+
display: flex;
|
|
567
|
+
flex-direction: column;
|
|
568
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
569
|
+
position: relative;
|
|
570
|
+
|
|
571
|
+
& > div:nth-child(2) {
|
|
572
|
+
display: flex;
|
|
573
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
574
|
+
align-items: center;
|
|
575
|
+
border: ${e=>e.$theme.borderLight};
|
|
576
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
577
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
578
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
579
|
+
|
|
580
|
+
&:has(input:focus) {
|
|
581
|
+
border: ${e=>e.$theme.borderOutline};
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
&:has(input[aria-invalid='true']) {
|
|
585
|
+
border: ${e=>e.$theme.borderAccent};
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
&:has(input[disabled]) {
|
|
589
|
+
pointer-events: none;
|
|
590
|
+
opacity: 0.5;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
& > span:nth-child(2) {
|
|
594
|
+
display: flex;
|
|
595
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
596
|
+
align-items: center;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
& input {
|
|
601
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
602
|
+
padding: 0;
|
|
603
|
+
border: none;
|
|
604
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
605
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
606
|
+
display: inline-block;
|
|
607
|
+
background: transparent;
|
|
608
|
+
white-space: nowrap;
|
|
609
|
+
text-overflow: ellipsis;
|
|
610
|
+
overflow: hidden;
|
|
611
|
+
flex-grow: 1;
|
|
612
|
+
min-width: 0;
|
|
613
|
+
|
|
614
|
+
&:focus-visible {
|
|
615
|
+
outline: none;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
&:placeholder-shown + span {
|
|
619
|
+
display: none !important;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
`,Hs=({name:e,label:t,errorMessage:r,defaultValue:n,onChange:o,onBlur:i,onFocus:a,onClear:d,validator:l,maxLength:u,id:h,tabIndex:f,placeholder:m="Type here...",disabled:p=!1,required:g=!1,clearable:y=!0,readOnly:S=!1,autoComplete:w="off",type:C="text",...A})=>{const{value:M,valid:R,handleChange:E,handleClear:$,passwordShown:_,togglePassword:U}=Ds({defaultValue:n,name:e,onChange:o,onClear:d,required:g,validator:l}),{elementId:oe,errorId:ee}=he(h),se=C==="password",X=Y();return s.jsxs(Ns,{$theme:X,...A,children:[s.jsx(Ae,{label:t,required:g,inputId:oe,theme:X}),s.jsxs("div",{children:[s.jsx("input",{id:oe,name:e,type:_?"text":C,disabled:p,placeholder:m,required:g,readOnly:S,autoComplete:w,"aria-invalid":!R,"aria-errormessage":ee,"aria-readonly":S,value:M,onChange:E,maxLength:u,onBlur:i,onFocus:a,tabIndex:f}),s.jsxs("span",{children:[y&&s.jsx(Xe,{onClick:$,label:`Clear input for ${t}`,icon:j.Remove,disabled:p,theme:X}),se&&s.jsx(Xe,{onClick:U,label:"Toggle password visibility",icon:_?j.Hide:j.Show,disabled:p,theme:X})]})]}),s.jsx(Wt,{errorId:ee,message:r,visible:!R,theme:X})]})},Fs=k.div`
|
|
623
|
+
z-index: ${e=>e.$theme.zIndexModal};
|
|
624
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
625
|
+
box-shadow: ${e=>e.$theme.boxShadow};
|
|
626
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
627
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
628
|
+
width: 100%;
|
|
629
|
+
height: 90%;
|
|
630
|
+
position: absolute;
|
|
631
|
+
bottom: 0;
|
|
632
|
+
left: 0;
|
|
633
|
+
border-top-left-radius: ${e=>e.$theme.blockBorderRadius};
|
|
634
|
+
border-top-right-radius: ${e=>e.$theme.blockBorderRadius};
|
|
635
|
+
${He}
|
|
636
|
+
|
|
637
|
+
@media ${Bo.landscapeTablets} {
|
|
638
|
+
width: fit-content;
|
|
639
|
+
height: fit-content;
|
|
640
|
+
position: relative;
|
|
641
|
+
min-width: 40%;
|
|
642
|
+
max-width: 90%;
|
|
643
|
+
max-height: 90%;
|
|
644
|
+
border-bottom-left-radius: ${e=>e.$theme.blockBorderRadius};
|
|
645
|
+
border-bottom-right-radius: ${e=>e.$theme.blockBorderRadius};
|
|
646
|
+
|
|
647
|
+
header {
|
|
648
|
+
font-size: ${e=>e.$theme.fontSizeHeader};
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
`,Vs=k.div`
|
|
652
|
+
position: fixed;
|
|
653
|
+
top: 0;
|
|
654
|
+
left: 0;
|
|
655
|
+
width: 100%;
|
|
656
|
+
height: 100%;
|
|
657
|
+
z-index: inherit;
|
|
658
|
+
display: flex;
|
|
659
|
+
justify-content: center;
|
|
660
|
+
align-items: center;
|
|
661
|
+
background-color: ${e=>e.$theme.backgroundColorTransparent};
|
|
662
|
+
${He}
|
|
663
|
+
|
|
664
|
+
${e=>e.$isClosing&&Jr}
|
|
665
|
+
`,Gs=k.header`
|
|
666
|
+
font-size: 1.6rem;
|
|
667
|
+
font-weight: bold;
|
|
668
|
+
display: flex;
|
|
669
|
+
justify-content: space-between;
|
|
670
|
+
align-items: center;
|
|
671
|
+
gap: ${e=>e.$theme.gapBig};
|
|
672
|
+
padding: ${e=>e.$theme.gapBig};
|
|
673
|
+
border-bottom: ${e=>e.$theme.borderBase};
|
|
674
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
675
|
+
`,Ws=k.div`
|
|
676
|
+
padding: ${e=>e.$theme.gapBig};
|
|
677
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
678
|
+
`,Ys=({title:e,onClose:t,theme:r})=>s.jsxs(Gs,{$theme:r,children:[e,s.jsx(Ze,{icon:j.Cancel,view:ue.Icon,label:"Close modal window",onClick:t})]}),Us=({title:e,onClose:t,isOpened:r,children:n,theme:o,...i})=>{const a=b.useRef(null);return an({modalRef:a,isOpened:r}),et({keyCode:"Escape",ref:a,onKeyPress:t}),s.jsxs(Fs,{ref:a,role:"dialog","aria-modal":"true",$theme:o,...i,children:[s.jsx(Ys,{title:e,onClose:t,theme:o}),s.jsx(Ws,{$theme:o,children:n})]})},Ks=({isOpened:e,onClose:t,title:r,children:n,...o})=>{const i=Jt(e),a=i&&!e,d=Y();return i?s.jsx(Ct,{children:s.jsx(Vs,{$isClosing:a,$theme:d,children:s.jsx(Us,{title:r,onClose:t,isOpened:e,...o,theme:d,children:n})})}):null},qs=({id:e})=>{const[t,r]=b.useState(!1),n=b.useRef(null),o=b.useRef(null),{top:i,left:a}=ln({wrapperRef:n,tooltipRef:o,isOpened:t}),{elementId:d}=he(e),l=()=>r(!1),u=()=>r(!0),h=()=>r(!t),f=m=>{m.preventDefault(),h()};return et({keyCode:"Escape",ref:o,onKeyPress:l}),Qe({ref:o,onClickOutsideHandler:l,dependentRef:n}),{elementId:d,openTooltip:u,closeTooltip:l,toggleTooltip:h,handleContextMenu:f,top:i,left:a,isOpened:t,wrapperRef:n,tooltipRef:o}},Xs=k.div`
|
|
679
|
+
position: absolute;
|
|
680
|
+
left: 0;
|
|
681
|
+
top: 0;
|
|
682
|
+
z-index: ${e=>e.$theme.zIndexPopup};
|
|
683
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
684
|
+
border: ${e=>e.$theme.borderLight};
|
|
685
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
686
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
687
|
+
font-size: ${e=>e.$theme.fontSizeSmall};
|
|
688
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
689
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
690
|
+
box-shadow: ${e=>e.$theme.boxShadow};
|
|
691
|
+
pointer-events: none;
|
|
692
|
+
white-space: nowrap;
|
|
693
|
+
|
|
694
|
+
${He}
|
|
695
|
+
`,pn=({children:e,tooltipContent:t,containerTag:r=Xt.Span,visibleOn:n="hover",id:o,style:i,...a})=>{const d=r,l=Y(),{openTooltip:u,closeTooltip:h,toggleTooltip:f,handleContextMenu:m,elementId:p,top:g,left:y,isOpened:S,wrapperRef:w,tooltipRef:C}=qs({id:o});return s.jsxs(d,{style:{position:"relative",cursor:"pointer"},onClick:n==="click"?f:void 0,onMouseOver:n==="hover"?u:void 0,onMouseLeave:n==="hover"?h:void 0,onFocus:n==="focus"?u:void 0,onBlur:n==="focus"?h:void 0,onContextMenu:n==="contextmenu"?A=>m(A):void 0,tabIndex:0,ref:w,"aria-describedby":p,children:[e,S&&s.jsx(Ct,{children:s.jsx(Xs,{style:{...i,top:g,left:y},ref:C,role:"tooltip",id:p,$theme:l,...a,children:t})})]})};function Js(e){return e?Object.keys(e).map(t=>[t,!0]):[]}function Zs(e,t){return(t==null?void 0:t.valid)===void 0?e:e.map(r=>r[0]!==t.name?r:[r[0],!!(t!=null&&t.valid)])}function Qs(e){return e.every(t=>t[1])}function ei({initialValues:e,onReset:t,onSubmit:r,onClickSubmit:n}){const[o,i]=b.useState(e),[a,d]=b.useState(Js(e)),[l,u]=b.useState(0);return{handleInputChange:p=>{const g={...o,[p.name]:p.value};i(g),d(Zs(a,p))},handleSubmit:p=>{p.preventDefault();const y={...Object.fromEntries(new FormData(p.target)),...o};r==null||r(p),n==null||n(y)},handleReset:p=>{t==null||t(p),i(e),u(l+1)},resetSignal:l,valid:Qs(a)}}const ti=k.form`
|
|
696
|
+
display: grid;
|
|
697
|
+
align-items: end;
|
|
698
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
699
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
700
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
701
|
+
|
|
702
|
+
${({$columns:e})=>`
|
|
703
|
+
grid-template-columns: repeat(${e}, 1fr);
|
|
704
|
+
grid-template-rows: auto;
|
|
705
|
+
`}
|
|
706
|
+
`,ri=k.div`
|
|
707
|
+
display: flex;
|
|
708
|
+
align-items: center;
|
|
709
|
+
justify-content: space-between;
|
|
710
|
+
padding-top: 1rem;
|
|
711
|
+
|
|
712
|
+
${({$columns:e})=>`
|
|
713
|
+
grid-column: 1 / ${e+1};
|
|
714
|
+
`}
|
|
715
|
+
`,ni=({children:e,initialValues:t,onReset:r,onSubmit:n,onClickSubmit:o,columns:i=1,hasReset:a=!0,...d})=>{const{handleInputChange:l,handleSubmit:u,handleReset:h,resetSignal:f,valid:m}=ei({initialValues:t,onReset:r,onSubmit:n,onClickSubmit:o}),p=Y();return s.jsx(ti,{onSubmit:u,onReset:h,$columns:i,$theme:p,...d,children:s.jsxs(be.Provider,{value:{onChangeFormInput:l,initialValues:t,resetSignal:f},children:[e,s.jsxs(ri,{$columns:i,children:[a&&s.jsx(Ze,{type:"reset",text:"Reset",icon:j.Clear,view:ue.Flat}),s.jsx(Ze,{type:"submit",text:"Submit",icon:j.Forward,extended:!a,disabled:!m})]})]})})},oi=k.table`
|
|
716
|
+
border-collapse: collapse;
|
|
717
|
+
`,si=k.thead`
|
|
718
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
719
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
720
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
721
|
+
`,ii=k.tbody`
|
|
722
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
723
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
724
|
+
`,mn=k.th`
|
|
725
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
726
|
+
text-align: left;
|
|
727
|
+
`,ai=k.tr`
|
|
728
|
+
font-weight: bold;
|
|
729
|
+
border-top: ${e=>e.$theme.borderLight};
|
|
730
|
+
border-bottom: ${e=>e.$theme.borderLight};
|
|
731
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
732
|
+
`,gn=k.td`
|
|
733
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
734
|
+
`,ci=k.caption`
|
|
735
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
736
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
737
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
738
|
+
font-weight: bold;
|
|
739
|
+
`,li=k.tr`
|
|
740
|
+
border-bottom: ${e=>e.$theme.borderLight};
|
|
741
|
+
|
|
742
|
+
${e=>e.$selected&&`
|
|
743
|
+
background-color: ${e.$theme.backgroundColorLight};
|
|
744
|
+
`}
|
|
745
|
+
`,jr=k.col`
|
|
746
|
+
border-right: ${e=>e.$theme.borderLight};
|
|
747
|
+
|
|
748
|
+
${e=>e.$isFirst&&`border-left: ${e.$theme.borderLight};`}
|
|
749
|
+
${e=>e.$highlighted&&`background-color: ${e.$theme.backgroundColorLight};`}
|
|
750
|
+
`,di=k.div`
|
|
751
|
+
display: flex;
|
|
752
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
753
|
+
padding: ${e=>e.$theme.gapSmall} 0;
|
|
754
|
+
position: relative;
|
|
755
|
+
overflow: hidden;
|
|
756
|
+
|
|
757
|
+
svg {
|
|
758
|
+
color: ${e=>e.$checked?e.$theme.fontColorBase:e.$theme.fontColorLight};
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
label {
|
|
762
|
+
cursor: pointer;
|
|
763
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
764
|
+
font-size: ${e=>e.$theme.fontSizeBase} !important;
|
|
765
|
+
&:hover,
|
|
766
|
+
&:active {
|
|
767
|
+
text-shadow: ${e=>e.$theme.textShadow};
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
${e=>e.$disabled&&`
|
|
772
|
+
pointer-events: none;
|
|
773
|
+
opacity: 0.5;
|
|
774
|
+
`}
|
|
775
|
+
`,ui=k.input`
|
|
776
|
+
position: absolute;
|
|
777
|
+
z-index: -1;
|
|
778
|
+
opacity: 0;
|
|
779
|
+
top: 4px;
|
|
780
|
+
left: 0;
|
|
781
|
+
margin: 0;
|
|
782
|
+
|
|
783
|
+
&:focus-visible + label {
|
|
784
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
785
|
+
outline-offset: 2px;
|
|
786
|
+
}
|
|
787
|
+
`;function hi({item:e,columns:t,renderDataItem:r}){const n=[];for(const o of t){let i;r&&e[o.field]?i=r(e,o.field):e[o.field]?i=e[o.field].toString():i="",n.push(i)}return n}const fi=({value:e,theme:t})=>s.jsx(gn,{$theme:t,children:e}),bn=({name:e,label:t,disabled:r,required:n=!1,onChange:o,checked:i=!1,theme:a,...d})=>{const{elementId:l}=he(d==null?void 0:d.id);return s.jsxs(di,{$disabled:!!r,$checked:i,$theme:a,children:[s.jsx(ui,{id:l,name:e,type:"checkbox",disabled:r,required:n,checked:i,onChange:o,$theme:a}),s.jsx(Ae,{label:t,required:n,inputId:l,isTextHidden:!0,iconPosition:"left",theme:a,icon:i?s.jsx(wt,{}):s.jsx(St,{})})]})},pi=({rowId:e,isRowSelected:t,selectRowById:r,deselectRowById:n,disabled:o,theme:i})=>{const a=d=>{const{checked:l}=d.target;l?r(e):n(e)};return s.jsx(gn,{$theme:i,children:s.jsx(bn,{theme:i,label:"Select row",onChange:a,id:`select_row_${e}`,checked:t,disabled:o})})},mi=({rowId:e,selectRowById:t,deselectRowById:r,selectable:n,values:o,selectedIds:i,disabled:a,theme:d})=>{const l=i.includes(e);return s.jsxs(li,{$selected:l,$theme:d,children:[n&&s.jsx(pi,{rowId:e,selectRowById:t,deselectRowById:r,isRowSelected:l,disabled:a,theme:d}),o.map((u,h)=>s.jsx(fi,{value:u,theme:d},`row_${h}`))]})},gi=({selectRowById:e,deselectRowById:t,renderDataItem:r,selectedIds:n,selectable:o,data:i,columns:a,theme:d})=>s.jsx(ii,{$theme:d,children:i.map(l=>{const u=hi({item:l,columns:a,renderDataItem:r});return s.jsx(mi,{rowId:l.id,disabled:l==null?void 0:l.disabled,selectRowById:e,deselectRowById:t,selectable:o,values:u,selectedIds:n,theme:d},l.id)})}),bi=({columns:e,selectable:t,theme:r})=>s.jsxs("colgroup",{children:[t&&s.jsx(jr,{$isFirst:!0,$highlighted:!1,$theme:r}),e.map((n,o)=>s.jsx(jr,{$isFirst:o===0&&!t,$highlighted:!!(n!=null&&n.highlighted),className:n==null?void 0:n.className,$theme:r},n==null?void 0:n.title))]}),xi=({title:e,component:t,theme:r})=>s.jsx(mn,{$theme:r,children:t??e??""}),vi=({gridId:e,isAllSelected:t,selectAll:r,deselectAll:n,disabled:o,theme:i})=>{const a=d=>{const{checked:l}=d.target;l?r():n()};return s.jsx(mn,{$theme:i,children:s.jsx(bn,{label:"Select all rows",onChange:a,id:`select_all_${e}`,checked:t,disabled:o,theme:i})})},yi=({columns:e,gridId:t,selectAll:r,deselectAll:n,selectable:o,isAllSelected:i,isAllCheckboxDisabled:a=!1,theme:d})=>s.jsx(si,{$theme:d,children:s.jsxs(ai,{$theme:d,children:[o&&s.jsx(vi,{isAllSelected:i,disabled:a,gridId:t,selectAll:r,deselectAll:n,theme:d}),e.map(l=>s.jsx(xi,{title:l.title,component:l.component,theme:d},`${l.title}_${t}`))]})}),$i=({data:e,id:t,onSelect:r})=>{const{elementId:n}=he(t),[o,i]=b.useState([]),a=e.map(g=>g.id),d=a.length===o.length,l=e.some(g=>g==null?void 0:g.disabled),u=g=>{i(g),r==null||r(g)};return{elementId:n,isAllSelected:d,isAllCheckboxDisabled:l,selectedIds:o,handleSelectAll:()=>{u(a)},handleDeselectAll:()=>{u([])},handleSelectRowById:g=>{const y=[...o,g];u(y)},handleDeselectRowById:g=>{const y=o.filter(S=>S!==g);u(y)}}},wi=({columns:e,data:t,id:r,onSelect:n,renderDataItem:o,caption:i,selectable:a=!1,...d})=>{const{elementId:l,handleSelectAll:u,handleDeselectAll:h,isAllCheckboxDisabled:f,isAllSelected:m,handleDeselectRowById:p,handleSelectRowById:g,selectedIds:y}=$i({id:r,data:t,onSelect:n}),S=Y();return s.jsxs(oi,{...d,children:[i&&s.jsx(ci,{$theme:S,children:i}),s.jsx(bi,{columns:e,selectable:a,theme:S}),s.jsx(yi,{gridId:l,columns:e,selectable:a,selectAll:u,deselectAll:h,isAllSelected:m,isAllCheckboxDisabled:f,theme:S}),s.jsx(gi,{columns:e,data:t,selectable:a,selectRowById:g,deselectRowById:p,selectedIds:y,renderDataItem:o,theme:S})]})},xn=k.ul`
|
|
788
|
+
list-style: none;
|
|
789
|
+
margin: 0;
|
|
790
|
+
padding: 0;
|
|
791
|
+
padding-inline-start: 0;
|
|
792
|
+
display: flex;
|
|
793
|
+
gap: ${e=>e.$theme.gapSmall};
|
|
794
|
+
flex-direction: ${e=>e.$mode===V.Vertical?"column":"row"};
|
|
795
|
+
justify-content: flex-start;
|
|
796
|
+
width: 100%;
|
|
797
|
+
`,Si=k(xn)`
|
|
798
|
+
flex-direction: column;
|
|
799
|
+
padding-left: ${e=>e.$theme.gapBig};
|
|
800
|
+
margin-left: ${e=>e.$theme.gapBig};
|
|
801
|
+
margin-top: ${e=>e.$theme.gapSmall};
|
|
802
|
+
box-sizing: border-box;
|
|
803
|
+
border-left: ${e=>e.$theme.borderLight};
|
|
804
|
+
${He}
|
|
805
|
+
|
|
806
|
+
${({$theme:e,$mode:t})=>t===V.Horizontal&&`
|
|
807
|
+
position: absolute;
|
|
808
|
+
top: 100%;
|
|
809
|
+
left: 40%;
|
|
810
|
+
width: max-content;
|
|
811
|
+
border-radius: ${e.blockBorderRadius};
|
|
812
|
+
border: ${e.borderLight};
|
|
813
|
+
box-shadow: ${e.boxShadow};
|
|
814
|
+
background-color: ${e.backgroundColorBase};
|
|
815
|
+
padding: ${e.gapMedium};
|
|
816
|
+
margin: 0;
|
|
817
|
+
z-index: ${e.zIndexPopup};
|
|
818
|
+
`}
|
|
819
|
+
`,Ci=k.li`
|
|
820
|
+
display: flex;
|
|
821
|
+
justify-content: flex-start;
|
|
822
|
+
align-items: center;
|
|
823
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
824
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
825
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
826
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
827
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
828
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
829
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
830
|
+
cursor: pointer;
|
|
831
|
+
|
|
832
|
+
&:hover {
|
|
833
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
&:focus-visible {
|
|
837
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
838
|
+
}
|
|
839
|
+
`,ki=k.li`
|
|
840
|
+
display: flex;
|
|
841
|
+
justify-content: flex-start;
|
|
842
|
+
align-items: center;
|
|
843
|
+
flex-direction: column;
|
|
844
|
+
gap: 0;
|
|
845
|
+
padding: 0;
|
|
846
|
+
position: relative;
|
|
847
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
848
|
+
|
|
849
|
+
&:focus-visible {
|
|
850
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
851
|
+
}
|
|
852
|
+
`,ji=k.span`
|
|
853
|
+
position: relative;
|
|
854
|
+
display: flex;
|
|
855
|
+
box-sizing: border-box;
|
|
856
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
857
|
+
align-items: center;
|
|
858
|
+
width: 100%;
|
|
859
|
+
justify-content: space-between;
|
|
860
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
861
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
862
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
863
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
864
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
865
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
866
|
+
cursor: pointer;
|
|
867
|
+
|
|
868
|
+
span {
|
|
869
|
+
display: flex;
|
|
870
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
871
|
+
align-items: center;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
&:hover {
|
|
875
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
876
|
+
}
|
|
877
|
+
`,Ei=({theme:e,item:t})=>{const{icon:r,link:n,label:o,onFocus:i,onClick:a,onHover:d}=t,l=n?s.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:o}):s.jsx("span",{children:o});return s.jsxs(Ci,{tabIndex:0,role:"menuitem",$theme:e,onFocus:i,onClick:a,onMouseOver:d,children:[s.jsx(ne,{name:r}),l]})},Ai=({item:e,theme:t,isSubMenuOpened:r,toggleSubMenu:n,closeSubMenu:o,mode:i,children:a})=>{const{icon:d,link:l,label:u}=e,h=b.useRef(null),f=b.useRef(null),m=l?s.jsxs("a",{href:l,target:"_blank",rel:"noreferrer",children:[s.jsx(ne,{name:d}),u]}):s.jsxs("span",{children:[s.jsx(ne,{name:d}),u]}),p=y=>{y.stopPropagation(),y.key===" "&&n()};return Qe({ref:h,dependentRef:f,onClickOutsideHandler:()=>{i!==V.Vertical&&o()}}),s.jsxs(ki,{tabIndex:0,role:"menuitem","aria-haspopup":"true","aria-expanded":r,$theme:t,onKeyDown:p,ref:h,children:[s.jsxs(ji,{ref:f,$theme:t,onClick:n,$mode:i,children:[m,s.jsx(ne,{name:r?j.ArrowUp:j.ArrowDown})]}),r&&a]})},vn=({item:e,theme:t,mode:r})=>{var l,u;const n=!((l=e==null?void 0:e.nestedItems)!=null&&l.length),[o,i]=b.useState(!1);if(n)return s.jsx(Ei,{item:e,theme:t});const a=()=>{i(!o)},d=()=>{i(!1)};return s.jsx(Ai,{item:e,theme:t,isSubMenuOpened:o,toggleSubMenu:a,closeSubMenu:d,mode:r,children: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=>s.jsx(vn,{item:h,theme:t,mode:r},h.id))})})},zi=({items:e,mode:t=V.Vertical,...r})=>{const n=Y();return s.jsx(xn,{role:"menubar",$theme:n,$mode:t,...r,children:e.map(o=>s.jsx(vn,{item:o,theme:n,mode:t},o.id))})},Ct=({children:e})=>{const[t]=b.useState(()=>document.createElement("div"));return b.useEffect(()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}),[t]),$n.createPortal(e,t)},Ii=k.button`
|
|
878
|
+
background: transparent;
|
|
879
|
+
position: relative;
|
|
880
|
+
outline: none;
|
|
881
|
+
border: none;
|
|
882
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
883
|
+
cursor: pointer;
|
|
884
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
885
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
886
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
887
|
+
overflow: hidden;
|
|
888
|
+
border-top-left-radius: ${e=>e.$theme.blockBorderRadius};
|
|
889
|
+
border-top-right-radius: ${e=>e.$theme.blockBorderRadius};
|
|
890
|
+
|
|
891
|
+
&:focus-visible {
|
|
892
|
+
outline: ${e=>e.$theme.borderOutline};
|
|
893
|
+
outline-offset: -4px;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
&:hover,
|
|
897
|
+
&:active {
|
|
898
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
${e=>e.$disabled&&`
|
|
902
|
+
pointer-events: none;
|
|
903
|
+
filter: grayscale(80%);
|
|
904
|
+
opacity: 0.6;
|
|
905
|
+
`}
|
|
906
|
+
|
|
907
|
+
${e=>e.$selected&&`
|
|
908
|
+
border-top: ${e.$theme.borderLight};
|
|
909
|
+
border-right: ${e.$theme.borderLight};
|
|
910
|
+
border-left: ${e.$theme.borderLight};
|
|
911
|
+
background-color: ${e.$theme.backgroundColorBase};
|
|
912
|
+
top: 1px;
|
|
913
|
+
`}
|
|
914
|
+
|
|
915
|
+
${e=>e.$mode===V.Vertical&&`
|
|
916
|
+
border-bottom-left-radius: ${e.$theme.blockBorderRadius};
|
|
917
|
+
border-top-right-radius: 0;
|
|
918
|
+
`}
|
|
919
|
+
|
|
920
|
+
${e=>e.$mode===V.Vertical&&e.$selected&&`
|
|
921
|
+
border-top: ${e.$theme.borderLight};
|
|
922
|
+
border-right: none;
|
|
923
|
+
border-left: ${e.$theme.borderLight};
|
|
924
|
+
border-bottom: ${e.$theme.borderLight};
|
|
925
|
+
top: 0px;
|
|
926
|
+
left: 1px;
|
|
927
|
+
`}
|
|
928
|
+
`,Mi=k.div`
|
|
929
|
+
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
930
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
931
|
+
font-size: ${e=>e.$theme.fontSizeBase};
|
|
932
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
933
|
+
padding: ${e=>e.$theme.gapBig};
|
|
934
|
+
flex-grow: 1;
|
|
935
|
+
`,Ri=k.div`
|
|
936
|
+
border-bottom: ${e=>e.$theme.borderLight};
|
|
937
|
+
padding: 0 ${e=>e.$theme.gapMedium};
|
|
938
|
+
display: flex;
|
|
939
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
940
|
+
|
|
941
|
+
${e=>e.$mode===V.Vertical&&`
|
|
942
|
+
flex-direction: column;
|
|
943
|
+
border-bottom: none;
|
|
944
|
+
border-right: ${e.$theme.borderLight};
|
|
945
|
+
padding: ${e.$theme.gapMedium} 0;
|
|
946
|
+
`}
|
|
947
|
+
`,Bi=k.div`
|
|
948
|
+
display: flex;
|
|
949
|
+
flex-direction: column;
|
|
950
|
+
width: 100%;
|
|
951
|
+
|
|
952
|
+
${({$mode:e})=>e===V.Vertical&&`
|
|
953
|
+
flex-direction: row;
|
|
954
|
+
`}
|
|
955
|
+
`,Ti=({tabs:e,selectedTabId:t,theme:r})=>{var i;const n=(i=e.find(a=>a.id===t))==null?void 0:i.content,o=`tabpanel_${t}`;return s.jsx(Mi,{role:"tabpanel","aria-labelledby":t,id:o,$theme:r,children:n})},Li=({title:e,onTabSelect:t,tabId:r,isSelected:n,isDisabled:o=!1,tabPanelId:i,mode:a,theme:d})=>s.jsx(Ii,{role:"tab",id:r,onClick:()=>t(r),"aria-selected":n,"aria-controls":i,$selected:n,$disabled:o,$mode:a,$theme:d,children:e}),Oi=({tabs:e,onTabSelect:t,selectedTabId:r,tabPanelIds:n,mode:o,tabIds:i,theme:a})=>{const d=l=>{const u=i.findIndex(h=>h===r);switch(l.key){case"ArrowLeft":case"ArrowUp":{if(l.preventDefault(),l.key==="ArrowUp"&&o===V.Horizontal||l.key==="ArrowLeft"&&o===V.Vertical)break;const h=u-1>=0?u-1:i.length-1,f=i[h];f&&(Je(f),t(f));break}case"ArrowRight":case"ArrowDown":{if(l.preventDefault(),l.key==="ArrowDown"&&o===V.Horizontal||l.key==="ArrowRight"&&o===V.Vertical)break;const h=u===i.length-1?0:u+1,f=i[h];f&&(Je(f),t(f));break}}};return s.jsx(Ri,{role:"tablist",$mode:o,onKeyDown:d,$theme:a,children:e.map(({id:l,title:u,disabled:h},f)=>s.jsx(Li,{title:u,onTabSelect:t,tabId:l,isSelected:l===r,isDisabled:h,tabPanelId:n[f],mode:o,theme:a},l))})},_i=({tabs:e,defaultTabId:t,mode:r=V.Horizontal,...n})=>{const o=e.map(f=>f.id),i=o.map(f=>`tabpanel_${f}`),a=t&&o.includes(t)?t:o[0],[d,l]=b.useState(a),u=Y(),h=f=>{l(f)};return s.jsxs(Bi,{$mode:r,...n,children:[s.jsx(Oi,{tabs:e,selectedTabId:d,tabPanelIds:i,onTabSelect:h,mode:r,tabIds:o,theme:u}),s.jsx(Ti,{tabs:e,selectedTabId:d,theme:u})]})},Pi=k.header`
|
|
956
|
+
display: flex;
|
|
957
|
+
justify-content: space-between;
|
|
958
|
+
align-items: center;
|
|
959
|
+
|
|
960
|
+
h3 {
|
|
961
|
+
display: flex;
|
|
962
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
963
|
+
align-items: center;
|
|
964
|
+
margin: 0;
|
|
965
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
966
|
+
|
|
967
|
+
svg {
|
|
968
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
`,Di=k.div`
|
|
972
|
+
position: fixed;
|
|
973
|
+
bottom: ${e=>e.$theme.gapBig};
|
|
974
|
+
left: 50%;
|
|
975
|
+
transform: translateX(-50%);
|
|
976
|
+
z-index: ${e=>e.$theme.zIndexPopup};
|
|
977
|
+
${He}
|
|
978
|
+
|
|
979
|
+
${e=>e.$isClosing&&Jr}
|
|
980
|
+
`,Ni=k.div`
|
|
981
|
+
display: flex;
|
|
982
|
+
flex-direction: column;
|
|
983
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
984
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
985
|
+
background: ${e=>e.$theme.backgroundColorBase};
|
|
986
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
987
|
+
width: 90vw;
|
|
988
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
989
|
+
box-shadow: ${e=>e.$theme.boxShadow};
|
|
990
|
+
border: ${e=>e.$theme.borderLight};
|
|
991
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
992
|
+
`;function Hi(e,t){if(t)return t;switch(e){case q.Info:return"For your information";case q.Warning:return"Please pay attention";case q.Error:return"Something went wrong";case q.Success:return"Everything is okay";case q.Help:return"Useful tip";default:return"Alert"}}function Fi(e,t){if(t)return s.jsx(ne,{name:t});switch(e){case q.Info:return s.jsx(en,{});case q.Warning:return s.jsx(tn,{});case q.Error:return s.jsx(Zr,{});case q.Success:return s.jsx(Kt,{});case q.Help:return s.jsx(Qr,{});default:return null}}const Vi=({title:e,onClose:t,mode:r,icon:n,theme:o})=>{const i=Hi(r,e),a=Fi(r,n);return s.jsxs(Pi,{$theme:o,children:[s.jsxs("h3",{children:[a,i]}),s.jsx(Ze,{icon:j.Cancel,view:ue.Icon,label:"Close alert popup",onClick:t})]})},Gi=({isOpened:e,onClose:t,title:r,message:n,mode:o=q.Info,icon:i,...a})=>{const d=Jt(e),l=d&&!e,u=Y();return d?s.jsx(Ct,{children:s.jsx(Di,{$isClosing:l,$theme:u,children:s.jsxs(Ni,{...a,$theme:u,children:[s.jsx(Vi,{title:r,onClose:t,mode:o,icon:i,theme:u}),s.jsx("p",{children:n})]})})}):null};exports.ChopLogicAlert=Gi;exports.ChopLogicAlertMode=q;exports.ChopLogicButton=Ze;exports.ChopLogicButtonView=ue;exports.ChopLogicCheckbox=bs;exports.ChopLogicDialog=Ks;exports.ChopLogicErrorMessage=Wt;exports.ChopLogicForm=ni;exports.ChopLogicFormContext=be;exports.ChopLogicGrid=wi;exports.ChopLogicIcon=ne;exports.ChopLogicIconName=j;exports.ChopLogicInputInnerButton=Xe;exports.ChopLogicLabel=Ae;exports.ChopLogicLoaderView=rn;exports.ChopLogicMenu=zi;exports.ChopLogicMultiSelect=ks;exports.ChopLogicNumericInput=Is;exports.ChopLogicOrientationMode=V;exports.ChopLogicPortal=Ct;exports.ChopLogicSelect=Os;exports.ChopLogicTabs=_i;exports.ChopLogicTextInput=Hs;exports.ChopLogicThemeContext=nn;exports.ChopLogicThemeMode=qt;exports.ChopLogicTooltip=pn;exports.ChopLogicTooltipContainer=Xt;exports.useChopLogicTheme=Y;exports.useClickOutside=Qe;exports.useContainerDimensions=sn;exports.useElementIds=he;exports.useKeyPress=et;exports.useModalFocusTrap=an;exports.useMount=Jt;exports.useResetFormInput=Fe;exports.useTooltipPosition=ln;exports.useWindowDimensions=cn;
|
|
2
993
|
//# sourceMappingURL=index.cjs.js.map
|