@openfin/ui-library 0.31.3-alpha.20251106171135 → 0.31.3
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 +2 -2
- package/dist/assets/fonts/Inter-Italic.woff2 +0 -0
- package/dist/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/dist/assets/fonts/index.d.ts +2 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/components/controls/Button/button.d.ts +35 -0
- package/dist/components/controls/Button/button.variants.d.ts +64 -0
- package/dist/components/controls/Button/index.d.ts +2 -0
- package/dist/components/controls/ClickableNavigation/clickableNavigation.d.ts +11 -0
- package/dist/components/controls/ClickableNavigation/index.d.ts +1 -0
- package/dist/components/controls/CollapsibleCard/cardContainer.d.ts +6 -0
- package/dist/components/controls/CollapsibleCard/collapsibleCard.d.ts +19 -0
- package/dist/components/controls/CollapsibleCard/index.d.ts +1 -0
- package/dist/components/controls/ExpandableButton/expandDirection.d.ts +4 -0
- package/dist/components/controls/ExpandableButton/expandableButton.d.ts +16 -0
- package/dist/components/controls/ExpandableButton/expandablePanel.d.ts +14 -0
- package/dist/components/controls/ExpandableButton/expandablePanel.setup.d.ts +2 -0
- package/dist/components/controls/ExpandableButton/index.d.ts +2 -0
- package/dist/components/controls/Menus/ContentMenu/ContentMenu.d.ts +52 -0
- package/dist/components/controls/Menus/ContentMenu/ContentMenuColumn/ContentMenuColumn.d.ts +17 -0
- package/dist/components/controls/Menus/ContentMenu/ContentMenuContext.d.ts +5 -0
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/ContentMenuItem.d.ts +56 -0
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/IconWithFallback.d.ts +7 -0
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/useImageLoader.d.ts +8 -0
- package/dist/components/controls/Menus/ContentMenu/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/controls/Menus/ContentMenu/index.d.ts +1 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenu.d.ts +96 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/ColorLinkingContextMenuWidget.d.ts +10 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/CustomContextMenuItem.d.ts +11 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/NormalCustomContextMenuItem.d.ts +6 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/RootMenuHeader.d.ts +5 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/SeparatorCustomContextMenuItem.d.ts +2 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/SubmenuHeaderCustomContextMenuItem.d.ts +8 -0
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/WidgetCustomContextMenuItem.d.ts +5 -0
- package/dist/components/controls/Menus/CustomContextMenu/index.d.ts +1 -0
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.d.ts +17 -0
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.test.d.ts +1 -0
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.d.ts +25 -0
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.test.d.ts +1 -0
- package/dist/components/controls/Menus/CustomContextMenu/useResizeContextMenu.d.ts +10 -0
- package/dist/components/controls/Menus/CustomContextMenu/useResizeContextMenu.test.d.ts +1 -0
- package/dist/components/controls/Menus/CustomContextMenu/utils.d.ts +3 -0
- package/dist/components/controls/Menus/common.d.ts +80 -0
- package/dist/components/controls/Toggle/index.d.ts +1 -0
- package/dist/components/controls/Toggle/toggle.d.ts +10 -0
- package/dist/components/elements/Badge/badge.d.ts +18 -0
- package/dist/components/elements/Badge/index.d.ts +1 -0
- package/dist/components/elements/Calendar/calendar.d.ts +8 -0
- package/dist/components/elements/Calendar/index.d.ts +1 -0
- package/dist/components/elements/DropdownMenu/dropdownButton.d.ts +15 -0
- package/dist/components/elements/DropdownMenu/dropdownMenu.d.ts +16 -0
- package/dist/components/elements/DropdownMenu/index.d.ts +3 -0
- package/dist/components/elements/DropdownMenu/menu.d.ts +67 -0
- package/dist/components/elements/DropdownMenu/optionTitle.d.ts +15 -0
- package/dist/components/elements/Icon/icon.d.ts +19 -0
- package/dist/components/elements/Icon/icon.variants.d.ts +28 -0
- package/dist/components/elements/Icon/index.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/BellFilledIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/BellIcon.d.ts +6 -0
- package/dist/components/elements/Icon/openfin/BlockedIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/BookmarkFilled.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/BookmarkOutlined.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/BrokenLinkIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/ChevronDownIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/ChevronLeftIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/ChevronRightIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/ChevronUpIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/CollectionIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/ContentAppIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/EnterpriseGlobeIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/ExclamationCircledFilledIcon.d.ts +4 -0
- package/dist/components/elements/Icon/openfin/FallbackGlobeIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/FilledCircleIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/FilterIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/FloppyDiskIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/FragmentsIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/LightBulbFilledIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/LightBulbOutlinedIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/LockedClosedFilledIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/MinimizeIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/OpenFinIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/PageIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/RedDotIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/StackIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/StorefrontIcon.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/SupertabIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/WorkspaceIcon.d.ts +5 -0
- package/dist/components/elements/Icon/openfin/index.d.ts +30 -0
- package/dist/components/elements/IconWithBadge/iconWithBadge.d.ts +5 -0
- package/dist/components/elements/IconWithBadge/index.d.ts +1 -0
- package/dist/components/elements/Label/label.d.ts +11 -0
- package/dist/components/elements/Loader/index.d.ts +2 -0
- package/dist/components/elements/Loader/loader.d.ts +4 -0
- package/dist/components/elements/Loader/openfinLoader.d.ts +4 -0
- package/dist/components/helper/ValidationError.d.ts +6 -0
- package/dist/components/input/BaseInput/baseInput.d.ts +29 -0
- package/dist/components/input/BaseInput/index.d.ts +1 -0
- package/dist/components/input/Checkbox/checkbox.d.ts +12 -0
- package/dist/components/input/Checkbox/checkbox.variants.d.ts +21 -0
- package/dist/components/input/Checkbox/index.d.ts +1 -0
- package/dist/components/input/CheckboxGroup/checkboxGroup.d.ts +15 -0
- package/dist/components/input/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/input/DateInput/dateInput.d.ts +14 -0
- package/dist/components/input/DateInput/index.d.ts +1 -0
- package/dist/components/input/NumberInput/index.d.ts +1 -0
- package/dist/components/input/NumberInput/numberInput.d.ts +27 -0
- package/dist/components/input/RadioGroup/index.d.ts +1 -0
- package/dist/components/input/RadioGroup/radioGroup.d.ts +15 -0
- package/dist/components/input/RadioInput/index.d.ts +1 -0
- package/dist/components/input/RadioInput/radioInput.d.ts +14 -0
- package/dist/components/input/RawInput/index.d.ts +1 -0
- package/dist/components/input/RawInput/rawInput.d.ts +4 -0
- package/dist/components/input/TextArea/index.d.ts +1 -0
- package/dist/components/input/TextArea/textArea.d.ts +12 -0
- package/dist/components/input/TextInput/index.d.ts +1 -0
- package/dist/components/input/TextInput/textInput.d.ts +14 -0
- package/dist/components/layout/Box/box.d.ts +41 -0
- package/dist/components/layout/Box/index.d.ts +1 -0
- package/dist/components/layout/Box/types.d.ts +7 -0
- package/dist/components/layout/DefinitionList/definitionList.d.ts +10 -0
- package/dist/components/layout/DefinitionList/index.d.ts +1 -0
- package/dist/components/layout/HamburgerNavigation/hamburgerNavigation.d.ts +13 -0
- package/dist/components/layout/HamburgerNavigation/index.d.ts +2 -0
- package/dist/components/layout/HamburgerNavigation/sidebarMenu.d.ts +12 -0
- package/dist/components/layout/TabList/index.d.ts +1 -0
- package/dist/components/layout/TabList/tab.d.ts +8 -0
- package/dist/components/layout/TabList/tabList.d.ts +13 -0
- package/dist/components/system/GlobalStyles/globalStyles.d.ts +5 -0
- package/dist/components/system/GlobalStyles/globalStyles.spec.d.ts +1 -0
- package/dist/components/system/GlobalStyles/index.d.ts +1 -0
- package/dist/components/system/HOC/index.d.ts +4 -0
- package/dist/components/system/ThemeProvider/index.d.ts +2 -0
- package/dist/components/system/ThemeProvider/lib/colors.d.ts +4 -0
- package/dist/components/system/ThemeProvider/lib/constants.d.ts +214 -0
- package/dist/components/system/ThemeProvider/lib/createFontFaceCss.d.ts +11 -0
- package/dist/components/system/ThemeProvider/lib/createTheme.d.ts +9 -0
- package/dist/components/system/ThemeProvider/lib/helpers.d.ts +35 -0
- package/dist/components/system/ThemeProvider/lib/iconSet.d.ts +355 -0
- package/dist/components/system/ThemeProvider/lib/index.d.ts +10 -0
- package/dist/components/system/ThemeProvider/lib/interface.d.ts +23 -0
- package/dist/components/system/ThemeProvider/lib/mixins.d.ts +16 -0
- package/dist/components/system/ThemeProvider/lib/palette.d.ts +42 -0
- package/dist/components/system/ThemeProvider/lib/types.d.ts +42 -0
- package/dist/components/system/ThemeProvider/theme/index.d.ts +1 -0
- package/dist/components/system/ThemeProvider/theme/openfin.d.ts +9 -0
- package/dist/components/system/ThemeProvider/themeProvider.d.ts +20 -0
- package/dist/components/system/ThemeProvider/themeProvider.spec.d.ts +1 -0
- package/dist/components/system/index.d.ts +3 -0
- package/dist/components/templates/CascadingDropdownMenu/cascadingDropdownMenu.d.ts +1 -0
- package/dist/components/templates/ContactCard/ContactStatusIcon.d.ts +7 -0
- package/dist/components/templates/ContactCard/PresenceIcons.d.ts +4 -0
- package/dist/components/templates/ContactCard/contactCard.d.ts +30 -0
- package/dist/components/templates/ContactCard/index.d.ts +1 -0
- package/dist/components/templates/utils/name.d.ts +1 -0
- package/dist/components/typography/Heading/heading.d.ts +1668 -0
- package/dist/components/typography/Heading/index.d.ts +1 -0
- package/dist/components/typography/Text/index.d.ts +1 -0
- package/dist/components/typography/Text/text.d.ts +21 -0
- package/dist/hooks/useColorScheme.d.ts +19 -0
- package/dist/hooks/useDropdownKeyboardNavigation.d.ts +16 -0
- package/dist/hooks/useMediaQuery.d.ts +12 -0
- package/dist/hooks/usePrevious.d.ts +1 -0
- package/dist/hooks/useTheme.d.ts +8 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +1565 -0
- package/dist/index.js.LICENSE.txt +19 -0
- package/dist/lib/color-generator.d.ts +7 -0
- package/dist/lib/color-generator.spec.d.ts +1 -0
- package/dist/lib/math.d.ts +13 -0
- package/dist/lib/whenFin.d.ts +6 -0
- package/dist/lib/whenFin.spec.d.ts +1 -0
- package/dist/storybookHelpers.d.ts +78 -0
- package/dist/theme.d.ts +3 -0
- package/dist/theme.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +46 -12
package/dist/index.js
ADDED
|
@@ -0,0 +1,1565 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
var e={1193:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,".react-calendar {\n width: 350px;\n max-width: 100%;\n background: white;\n border: 1px solid #a0a096;\n font-family: 'Arial', 'Helvetica', sans-serif;\n line-height: 1.125em;\n}\n\n.react-calendar--doubleView {\n width: 700px;\n}\n\n.react-calendar--doubleView .react-calendar__viewContainer {\n display: flex;\n margin: -0.5em;\n}\n\n.react-calendar--doubleView .react-calendar__viewContainer > * {\n width: 50%;\n margin: 0.5em;\n}\n\n.react-calendar,\n.react-calendar *,\n.react-calendar *:before,\n.react-calendar *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.react-calendar button {\n margin: 0;\n border: 0;\n outline: none;\n}\n\n.react-calendar button:enabled:hover {\n cursor: pointer;\n}\n\n.react-calendar__navigation {\n display: flex;\n height: 44px;\n margin-bottom: 1em;\n}\n\n.react-calendar__navigation button {\n min-width: 44px;\n background: none;\n}\n\n.react-calendar__navigation button:disabled {\n background-color: #f0f0f0;\n}\n\n.react-calendar__navigation button:enabled:hover,\n.react-calendar__navigation button:enabled:focus {\n background-color: #e6e6e6;\n}\n\n.react-calendar__month-view__weekdays {\n text-align: center;\n text-transform: uppercase;\n font: inherit;\n font-size: 0.75em;\n font-weight: bold;\n}\n\n.react-calendar__month-view__weekdays__weekday {\n padding: 0.5em;\n}\n\n.react-calendar__month-view__weekNumbers .react-calendar__tile {\n display: flex;\n align-items: center;\n justify-content: center;\n font: inherit;\n font-size: 0.75em;\n font-weight: bold;\n}\n\n.react-calendar__month-view__days__day--weekend {\n color: #d10000;\n}\n\n.react-calendar__month-view__days__day--neighboringMonth,\n.react-calendar__decade-view__years__year--neighboringDecade,\n.react-calendar__century-view__decades__decade--neighboringCentury {\n color: #757575;\n}\n\n.react-calendar__year-view .react-calendar__tile,\n.react-calendar__decade-view .react-calendar__tile,\n.react-calendar__century-view .react-calendar__tile {\n padding: 2em 0.5em;\n}\n\n.react-calendar__tile {\n max-width: 100%;\n padding: 10px 6.6667px;\n background: none;\n text-align: center;\n font: inherit;\n font-size: 0.833em;\n}\n\n.react-calendar__tile:disabled {\n background-color: #f0f0f0;\n color: #ababab;\n}\n\n.react-calendar__month-view__days__day--neighboringMonth:disabled,\n.react-calendar__decade-view__years__year--neighboringDecade:disabled,\n.react-calendar__century-view__decades__decade--neighboringCentury:disabled {\n color: #cdcdcd;\n}\n\n.react-calendar__tile:enabled:hover,\n.react-calendar__tile:enabled:focus {\n background-color: #e6e6e6;\n}\n\n.react-calendar__tile--now {\n background: #ffff76;\n}\n\n.react-calendar__tile--now:enabled:hover,\n.react-calendar__tile--now:enabled:focus {\n background: #ffffa9;\n}\n\n.react-calendar__tile--hasActive {\n background: #76baff;\n}\n\n.react-calendar__tile--hasActive:enabled:hover,\n.react-calendar__tile--hasActive:enabled:focus {\n background: #a9d4ff;\n}\n\n.react-calendar__tile--active {\n background: #006edc;\n color: white;\n}\n\n.react-calendar__tile--active:enabled:hover,\n.react-calendar__tile--active:enabled:focus {\n background: #1087ff;\n}\n\n.react-calendar--selectRange .react-calendar__tile--hover {\n background-color: #e6e6e6;\n}\n",""]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1601:e=>{e.exports=function(e){return e[1]}},4708:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var s=n(2015),c=n(5556),u=n(2697).createFocusTrap,d=n(9054).isFocusable,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,c,u,p=(c=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(c);if(u){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,e)});function f(e){var t,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o=function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];n=n.apply(void 0,o)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var i,l=n;if("string"==typeof n&&!(l=null===(i=this.getDocument())||void 0===i?void 0:i.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},(r="getNodeForOption")in(n=i(t=p.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t.handleDeactivate=t.handleDeactivate.bind(i(t)),t.handlePostDeactivate=t.handlePostDeactivate.bind(i(t)),t.handleClickOutsideDeactivates=t.handleClickOutsideDeactivates.bind(i(t)),t.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:t.handleDeactivate,onPostDeactivate:t.handlePostDeactivate,clickOutsideDeactivates:t.handleClickOutsideDeactivates},t.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var a=e.focusTrapOptions;for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&("returnFocusOnDeactivate"!==l&&"onDeactivate"!==l&&"onPostDeactivate"!==l&&"checkCanReturnFocus"!==l&&"clickOutsideDeactivates"!==l?t.internalOptions[l]=a[l]:t.originalOptions[l]=a[l]);return t.outsideClick=null,t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=f,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||d(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll,o=void 0!==r&&r;n&&t.focus({preventScroll:o}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,o=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),o&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?s.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===s.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return s.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(s.Component),f="undefined"==typeof Element?Function:Element;p.propTypes={active:c.bool,paused:c.bool,focusTrapOptions:c.shape({document:c.object,onActivate:c.func,onPostActivate:c.func,checkCanFocusTrap:c.func,onDeactivate:c.func,onPostDeactivate:c.func,checkCanReturnFocus:c.func,initialFocus:c.oneOfType([c.instanceOf(f),c.string,c.bool,c.func]),fallbackFocus:c.oneOfType([c.instanceOf(f),c.string,c.func]),escapeDeactivates:c.oneOfType([c.bool,c.func]),clickOutsideDeactivates:c.oneOfType([c.bool,c.func]),returnFocusOnDeactivate:c.bool,setReturnFocus:c.oneOfType([c.instanceOf(f),c.string,c.bool,c.func]),allowOutsideClick:c.oneOfType([c.bool,c.func]),preventScroll:c.bool,tabbableOptions:c.shape({displayCheck:c.oneOf(["full","non-zero-area","none"]),getShadowRoot:c.oneOfType([c.bool,c.func])})}),containerElements:c.arrayOf(c.instanceOf(f)),children:c.oneOfType([c.element,c.instanceOf(f)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:u},e.exports=p},2697:(e,t,n)=>{n.r(t),n.d(t,{createFocusTrap:()=>f});var r=n(9054);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l,s=(l=[],{activateTrap:function(e){if(l.length>0){var t=l[l.length-1];t!==e&&t.pause()}var n=l.indexOf(e);-1===n||l.splice(n,1),l.push(e)},deactivateTrap:function(e){var t=l.indexOf(e);-1!==t&&l.splice(t,1),l.length>0&&l[l.length-1].unpause()}}),c=function(e){return setTimeout(e,0)},u=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},p=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},f=function(e,t){var n,o=(null==t?void 0:t.document)||document,i=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},f=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},h=function(e){return l.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},b=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=o.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},g=function(){var e=b("initialFocus");if(!1===e)return!1;if(void 0===e)if(h(o.activeElement)>=0)e=o.activeElement;else{var t=l.tabbableGroups[0];e=t&&t.firstTabbableNode||b("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},m=function(){if(l.containerGroups=l.containers.map((function(e){var t=(0,r.tabbable)(e,i.tabbableOptions),n=(0,r.focusable)(e,i.tabbableOptions);return{container:e,tabbableNodes:t,focusableNodes:n,firstTabbableNode:t.length>0?t[0]:null,lastTabbableNode:t.length>0?t[t.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=n.findIndex((function(t){return t===e}));if(!(o<0))return t?n.slice(o+1).find((function(e){return(0,r.isTabbable)(e,i.tabbableOptions)})):n.slice(0,o).reverse().find((function(e){return(0,r.isTabbable)(e,i.tabbableOptions)}))}}})),l.tabbableGroups=l.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),l.tabbableGroups.length<=0&&!b("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function e(t){!1!==t&&t!==o.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(g()))},x=function(e){var t=b("setReturnFocus",e);return t||!1!==t&&e},y=function(e){var t=p(e);h(t)>=0||(d(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!(0,r.isFocusable)(t,i.tabbableOptions)}):d(i.allowOutsideClick,e)||e.preventDefault())},C=function(e){var t=p(e),n=h(t)>=0;n||t instanceof Document?n&&(l.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),v(l.mostRecentlyFocusedNode||g()))},_=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==d(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=p(e);m();var n=null;if(l.tabbableGroups.length>0){var o=h(t),a=o>=0?l.containerGroups[o]:void 0;if(o<0)n=e.shiftKey?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var s=u(l.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(s<0&&(a.container===t||(0,r.isFocusable)(t,i.tabbableOptions)&&!(0,r.isTabbable)(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(s=o),s>=0){var c=0===s?l.tabbableGroups.length-1:s-1;n=l.tabbableGroups[c].lastTabbableNode}}else{var d=u(l.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(d<0&&(a.container===t||(0,r.isFocusable)(t,i.tabbableOptions)&&!(0,r.isTabbable)(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(d=o),d>=0){var f=d===l.tabbableGroups.length-1?0:d+1;n=l.tabbableGroups[f].firstTabbableNode}}}else n=b("fallbackFocus");n&&(e.preventDefault(),v(n))}(e)},O=function(e){var t=p(e);h(t)>=0||d(i.clickOutsideDeactivates,e)||d(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(l.active)return s.activateTrap(n),l.delayInitialFocusTimer=i.delayInitialFocus?c((function(){v(g())})):v(g()),o.addEventListener("focusin",C,!0),o.addEventListener("mousedown",y,{capture:!0,passive:!1}),o.addEventListener("touchstart",y,{capture:!0,passive:!1}),o.addEventListener("click",O,{capture:!0,passive:!1}),o.addEventListener("keydown",_,{capture:!0,passive:!1}),n},j=function(){if(l.active)return o.removeEventListener("focusin",C,!0),o.removeEventListener("mousedown",y,!0),o.removeEventListener("touchstart",y,!0),o.removeEventListener("click",O,!0),o.removeEventListener("keydown",_,!0),n};return(n={get active(){return l.active},get paused(){return l.paused},activate:function(e){if(l.active)return this;var t=f(e,"onActivate"),n=f(e,"onPostActivate"),r=f(e,"checkCanFocusTrap");r||m(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=o.activeElement,t&&t();var a=function(){r&&m(),w(),n&&n()};return r?(r(l.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!l.active)return this;var t=a({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,j(),l.active=!1,l.paused=!1,s.deactivateTrap(n);var r=f(t,"onDeactivate"),o=f(t,"onPostDeactivate"),u=f(t,"checkCanReturnFocus"),d=f(t,"returnFocus","returnFocusOnDeactivate");r&&r();var p=function(){c((function(){d&&v(x(l.nodeFocusedBeforeActivation)),o&&o()}))};return d&&u?(u(x(l.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(){return l.paused||!l.active||(l.paused=!0,j()),this},unpause:function(){return l.paused&&l.active?(l.paused=!1,m(),w(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return l.containers=t.map((function(e){return"string"==typeof e?o.querySelector(e):e})),l.active&&m(),this}}).updateContainerElements(e),n}},313:(e,t,n)=>{var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(313)()},6925:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1020:(e,t,n)=>{var r=n(2015),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4848:(e,t,n)=>{e.exports=n(1020)},9054:(e,t,n)=>{n.r(t),n.d(t,{focusable:()=>x,isFocusable:()=>_,isTabbable:()=>y,tabbable:()=>v});var r=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=r.join(","),a="undefined"==typeof Element,i=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!a&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},s=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&i.call(e,o)&&r.unshift(e),r.filter(n)},c=function e(t,n,r){for(var a=[],l=Array.from(t);l.length;){var s=l.shift();if("SLOT"===s.tagName){var c=s.assignedElements(),u=e(c.length?c:s.children,!0,r);r.flatten?a.push.apply(a,u):a.push({scope:s,candidates:u})}else{i.call(s,o)&&r.filter(s)&&(n||!t.includes(s))&&a.push(s);var d=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),p=!r.shadowRootFilter||r.shadowRootFilter(s);if(d&&p){var f=e(!0===d?s.children:d.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scope:s,candidates:f})}else l.unshift.apply(l,s.children)}}return a},u=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},d=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},p=function(e){return"INPUT"===e.tagName},f=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},h=function(e,t){return!(t.disabled||function(e){return p(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;var a=l(e).host,s=(null==a?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return f(e)}else{if("function"==typeof r){for(var c=e;e;){var u=e.parentElement,d=l(e);if(u&&!u.shadowRoot&&!0===r(u))return f(e);e=e.assignedSlot?e.assignedSlot:u||d===e.ownerDocument?u:d.host}e=c}if(s)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(function(e){return function(e){return p(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||l(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||u(t)<0||!h(e,t))},g=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},m=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scope,i=a?t.scope:t,l=u(i,a),s=a?e(t.candidates):i;0===l?a?n.push.apply(n,s):n.push(i):r.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:s})})),r.sort(d).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},v=function(e,t){var n;return n=(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:g}):s(e,t.includeContainer,b.bind(null,t)),m(n)},x=function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:h.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s(e,t.includeContainer,h.bind(null,t))},y=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,o)&&b(t,e)},C=r.concat("iframe").join(","),_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,C)&&h(t,e)}},8869:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Fonts=void 0;const o=r(n(9294)),a=r(n(9802)),i=r(n(3325)),l=r(n(2773));t.Fonts={regular:o.default,italic:a.default,semiBold:i.default,semiBoldItalic:l.default}},3092:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8869),t)},5415:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonTextOnly=t.ButtonSecondary=t.ButtonPrimary=t.Button=void 0;const a=n(4848),i=o(n(2770)),l=n(2094),s=n(532),c=n(549);t.Button=e=>{var{label:t,children:n,size:o="base",shape:i="square",kind:l="primary",layout:s="fit",href:c}=e,p=r(e,["label","children","size","shape","kind","layout","href"]);return(0,a.jsx)(u,Object.assign({as:c?"a":"button",size:o,shape:i,kind:l,layout:s},p,{children:t?(0,a.jsx)(d,{alignItems:"center",justifyContent:"center",children:t}):n}))};const u=i.default.button`
|
|
3
|
+
/* Default values that get overridden by variants */
|
|
4
|
+
background: ${({theme:e})=>e.palette.inputBackground};
|
|
5
|
+
border: 1px solid ${({theme:e})=>e.palette.inputBackground};
|
|
6
|
+
color: ${({theme:e})=>e.palette.brandPrimaryText};
|
|
7
|
+
|
|
8
|
+
/* Inject variants */
|
|
9
|
+
${(0,s.getVariantCSS)(c.variants,c.Variant.size)}
|
|
10
|
+
${(0,s.getVariantCSS)(c.variants,c.Variant.shape)}
|
|
11
|
+
${(0,s.getVariantCSS)(c.variants,c.Variant.kind)}
|
|
12
|
+
${(0,s.getVariantCSS)(c.variants,c.Variant.layout)}
|
|
13
|
+
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: ${({theme:e})=>e.px.small};
|
|
17
|
+
outline: none;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
line-height: ${({theme:e})=>e.lineHeight.ui};
|
|
21
|
+
font-weight: ${({theme:e})=>e.fontWeight.bold};
|
|
22
|
+
transition: border-color var(--openfin-ui-globalTransition);
|
|
23
|
+
|
|
24
|
+
&:not(:disabled) {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:disabled,
|
|
29
|
+
&:active:disabled {
|
|
30
|
+
background: ${({theme:e})=>e.palette.inputDisabled};
|
|
31
|
+
border-color: ${({theme:e})=>e.palette.inputDisabled};
|
|
32
|
+
color: ${({theme:e})=>e.palette.inputPlaceholder};
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
}
|
|
35
|
+
`,d=(0,i.default)(l.Box)`
|
|
36
|
+
padding: ${({theme:e})=>`0 ${e.px.xsmall}`};
|
|
37
|
+
`;t.ButtonPrimary=e=>(0,a.jsx)(t.Button,Object.assign({},e,{kind:"primary"})),t.ButtonSecondary=e=>(0,a.jsx)(t.Button,Object.assign({},e,{kind:"secondary"})),t.ButtonTextOnly=e=>(0,a.jsx)(t.Button,Object.assign({},e,{kind:"textOnly"}))},549:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.variants=t.ButtonShape=t.ButtonLayout=t.ButtonSize=t.ButtonKind=t.Variant=void 0;const r=n(2770);t.Variant={shape:"shape",size:"size",kind:"kind",layout:"layout"},t.ButtonKind={primary:"primary",secondary:"secondary",textOnly:"textOnly"},t.ButtonSize={small:"small",base:"base",large:"large"},t.ButtonLayout={fit:"fit",full:"full"},t.ButtonShape={square:"square",pill:"pill"},t.variants={[t.Variant.size]:{[t.ButtonSize.base]:r.css`
|
|
38
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.large}`};
|
|
39
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
40
|
+
`,[t.ButtonSize.small]:r.css`
|
|
41
|
+
padding: ${({theme:e})=>`${e.px.xsmall} ${e.px.base}`};
|
|
42
|
+
font-size: ${({theme:e})=>e.fontSize.small};
|
|
43
|
+
`,[t.ButtonSize.large]:r.css`
|
|
44
|
+
padding: ${({theme:e})=>`${e.px.base} ${e.px.xlarge}`};
|
|
45
|
+
font-size: ${({theme:e})=>e.fontSize.large};
|
|
46
|
+
`},[t.Variant.shape]:{[t.ButtonShape.square]:r.css`
|
|
47
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
48
|
+
`,[t.ButtonShape.pill]:r.css`
|
|
49
|
+
border-radius: ${({theme:e})=>e.radius.pill};
|
|
50
|
+
`},[t.Variant.layout]:{[t.ButtonLayout.fit]:r.css`
|
|
51
|
+
width: fit-content;
|
|
52
|
+
`,[t.ButtonLayout.full]:r.css`
|
|
53
|
+
width: 100%;
|
|
54
|
+
`},[t.Variant.kind]:{[t.ButtonKind.primary]:r.css`
|
|
55
|
+
background: ${({theme:e})=>e.palette.brandPrimary};
|
|
56
|
+
border-color: ${({theme:e})=>e.palette.brandPrimary};
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
background: ${({theme:e})=>e.palette.brandPrimaryHover};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:active {
|
|
63
|
+
background: ${({theme:e})=>e.palette.brandPrimaryActive};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:focus {
|
|
67
|
+
border-color: ${({theme:e})=>e.palette.brandPrimaryFocused};
|
|
68
|
+
}
|
|
69
|
+
`,[t.ButtonKind.secondary]:r.css`
|
|
70
|
+
background: ${({theme:e})=>e.palette.brandSecondary};
|
|
71
|
+
border-color: ${({theme:e})=>e.palette.brandSecondary};
|
|
72
|
+
color: ${({theme:e})=>e.palette.brandSecondaryText};
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
background: ${({theme:e})=>e.palette.brandSecondaryHover};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:active {
|
|
79
|
+
background: ${({theme:e})=>e.palette.brandSecondaryActive};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:focus {
|
|
83
|
+
border-color: ${({theme:e})=>e.palette.brandSecondaryFocused};
|
|
84
|
+
}
|
|
85
|
+
`,[t.ButtonKind.textOnly]:r.css`
|
|
86
|
+
background: transparent;
|
|
87
|
+
border-color: transparent;
|
|
88
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
89
|
+
|
|
90
|
+
&:active {
|
|
91
|
+
opacity: 0.8;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:focus {
|
|
95
|
+
border-color: ${({theme:e})=>e.palette.inputFocused};
|
|
96
|
+
}
|
|
97
|
+
`}}},2367:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5415),t),o(n(549),t)},7544:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CardContainer=void 0;const o=n(4848),a=r(n(2770)),i=n(532),l=n(2094);t.CardContainer=e=>(0,o.jsx)(s,{style:{maxHeight:e.maxHeight,overflowY:"auto"},id:"card-container","data-testid":"card-container",children:(0,o.jsx)(c,{children:e.children})});const s=(0,a.default)(l.Box)`
|
|
98
|
+
display: block;
|
|
99
|
+
background: ${({theme:e})=>e.palette.background3};
|
|
100
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.background5};
|
|
101
|
+
padding: ${({theme:e})=>e.px.xsmall} ${({theme:e})=>e.px.xsmall}
|
|
102
|
+
${({theme:e})=>e.px.large} 0px;
|
|
103
|
+
width: 100%;
|
|
104
|
+
${i.Mixins.scrollbar.base};
|
|
105
|
+
gap: ${({theme:e})=>e.px.base};
|
|
106
|
+
`,c=a.default.div`
|
|
107
|
+
padding: ${({theme:e})=>e.px.small} ${({theme:e})=>e.px.small} 0px
|
|
108
|
+
${({theme:e})=>e.px.base};
|
|
109
|
+
width: 100%;
|
|
110
|
+
`},2361:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollapsibleCardStateless=t.CollapsibleCard=void 0;const o=n(4848),a=n(2015),i=r(n(2770)),l=n(3189),s=n(5917),c=n(2094),u=n(7544),d=n(5963),p=n(532);t.CollapsibleCard=(0,a.forwardRef)(((e,n)=>{const[r,i]=(0,a.useState)(e.expanded||!1);return(0,o.jsx)(t.CollapsibleCardStateless,Object.assign({},e,{ref:n,expanded:r,onExpand:e=>i(!e)}))})),t.CollapsibleCard.displayName="CollapsibleCard",t.CollapsibleCardStateless=(0,a.forwardRef)(((e,t)=>{var n,r;return(0,o.jsxs)(f,{"data-testid":"collapsible-card",children:[(0,o.jsxs)(b,{"aria-expanded":e.expanded,"data-testid":"heading-container",ref:t,zIndex:null===(n=e.headerSettings)||void 0===n?void 0:n.zIndex,fixedHeader:null===(r=e.headerSettings)||void 0===r?void 0:r.fixedHeader,onClick:()=>e.onExpand(e.expanded),tabIndex:0,onKeyDown:t=>{switch(t.code){case"Enter":case"Space":t.preventDefault(),e.onExpand(e.expanded)}},children:[(0,o.jsx)(h,{children:e.title}),(0,o.jsxs)("div",{id:"icon-container",children:[void 0!==e.badgeText&&(0,o.jsx)(l.Badge,{count:e.badgeText,id:"collapsible-card-heading-badge","data-testid":"collapsible-card-heading-badge"}),(0,o.jsx)(s.Icon,{icon:e.expanded?"ChevronUpIcon":"ChevronDownIcon"})]})]}),e.expanded&&(0,o.jsx)(u.CardContainer,{maxHeight:e.maxHeight||"none",children:(0,o.jsx)("div",{children:e.children})})]})})),t.CollapsibleCardStateless.displayName="CollapsibleCardStateless";const f=i.default.div`
|
|
111
|
+
position: relative;
|
|
112
|
+
display: inline-block;
|
|
113
|
+
width: 100%;
|
|
114
|
+
`,h=(0,i.default)(d.Text)`
|
|
115
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
116
|
+
${p.Mixins.textOverflow};
|
|
117
|
+
text-decoration: none;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
`,b=(0,i.default)(c.Box)`
|
|
120
|
+
position: ${({fixedHeader:e})=>e?"sticky":"relative"};
|
|
121
|
+
top: ${({fixedHeader:e})=>e?0:void 0};
|
|
122
|
+
z-index: ${({zIndex:e})=>e};
|
|
123
|
+
align-items: center;
|
|
124
|
+
background: ${({theme:e})=>e.palette.background3};
|
|
125
|
+
border-top: 1px solid ${({theme:e})=>e.palette.background5};
|
|
126
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.background5};
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
gap: ${({theme:e})=>e.px.small};
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
line-height: ${({theme:e})=>e.lineHeight.heading};
|
|
132
|
+
outline: none;
|
|
133
|
+
padding: ${({theme:e})=>e.px.base};
|
|
134
|
+
transition: border-color var(--openfin-ui-globalTransition);
|
|
135
|
+
width: 100%;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
|
|
138
|
+
#icon-container {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
margin-left: 10px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
#collapsible-card-heading-badge {
|
|
145
|
+
background-color: ${({theme:e})=>e.palette.brandPrimary};
|
|
146
|
+
margin-right: 10px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:hover {
|
|
150
|
+
background-color: ${({theme:e})=>e.palette.background2};
|
|
151
|
+
border-top: 1px solid ${({theme:e})=>e.palette.background5};
|
|
152
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.background5};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:focus {
|
|
156
|
+
border-top: 1px solid ${({theme:e})=>e.palette.borderNeutral};
|
|
157
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.borderNeutral};
|
|
158
|
+
}
|
|
159
|
+
`},7787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2361),t)},6588:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandDirection=void 0,function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(n||(t.ExpandDirection=n={}))},4947:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandableButton=void 0;const o=n(4848),a=n(2015),i=n(2367),l=r(n(2770)),s=n(5917),c=n(5322),u=n(1953),d=n(2094),p=n(6588);t.ExpandableButton=e=>{var t,n,r,l,s,f;const[y,C]=(0,a.useState)({show:!1,requestedByCollapse:!1}),_={size:e.size,kind:e.kind,disabled:e.disabled,tabIndex:e.tabIndex},O=Object.assign(Object.assign({},e),{shape:i.ButtonShape.square,"aria-label":null!==(t=e["aria-label"])&&void 0!==t?t:`Primary Button ${e.title}`}),w=null!==(n=e.expandDirection)&&void 0!==n?n:p.ExpandDirection.Down;return(0,a.useEffect)((()=>{if(!y.requestedByCollapse)return;const e=setTimeout((()=>C({requestedByCollapse:!1,show:!1})),200);return()=>clearTimeout(e)}),[y.requestedByCollapse]),(0,o.jsxs)(x,{children:[(0,o.jsxs)(v,{children:[(0,o.jsx)(b,Object.assign({},O,{children:(0,o.jsx)(g,{children:null!==(r=e.children)&&void 0!==r?r:O.title})})),e.secondaryButtons&&e.secondaryButtons.length>0&&(0,o.jsx)(d.Box,{id:"dropdown-container",children:(0,o.jsxs)(m,Object.assign({},_,{role:"combobox",onClick:()=>{y.requestedByCollapse||C({requestedByCollapse:!1,show:!y.show})},"aria-label":"Expand Secondary Buttons Panel","aria-expanded":y.show,children:[w===p.ExpandDirection.Down&&(0,o.jsx)(h,{kind:null!==(l=e.kind)&&void 0!==l?l:i.ButtonKind.primary,icon:"CaretDownIcon"}),w===p.ExpandDirection.Up&&(0,o.jsx)(h,{kind:null!==(s=e.kind)&&void 0!==s?s:i.ButtonKind.primary,icon:"CaretUpIcon"})]}))})]}),e.secondaryButtons&&e.secondaryButtons.length>0&&(0,o.jsx)(c.AnimatePresence,{children:y.show&&(0,o.jsx)(u.ExpandablePanel,{expandDirection:w,secondaryButtons:null!==(f=e.secondaryButtons)&&void 0!==f?f:[],stretch:e.stretchExpandablePanel,closePanelOnSecondaryButtonClick:e.closePanelOnSecondaryButtonClick,onCollapseRequest:()=>C({show:!1,requestedByCollapse:!0}),buttonSize:e.size,document:e.document})})]})};const f={[i.ButtonKind.primary]:e=>e.palette.brandPrimaryText,[i.ButtonKind.secondary]:e=>e.palette.brandSecondaryText,[i.ButtonKind.textOnly]:e=>e.palette.textDefault},h=(0,l.default)(s.Icon)`
|
|
160
|
+
svg path {
|
|
161
|
+
color: ${({theme:e,kind:t})=>f[t](e)};
|
|
162
|
+
}
|
|
163
|
+
line-height: ${({theme:e})=>e.lineHeight.ui};
|
|
164
|
+
font-weight: ${({theme:e})=>e.fontWeight.bold};
|
|
165
|
+
`,b=(0,l.default)(i.Button)`
|
|
166
|
+
margin-right: ${({theme:e})=>e.px.xsmall};
|
|
167
|
+
`,g=(0,l.default)(d.Box)`
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
text-overflow: ellipsis;
|
|
170
|
+
display: block;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
`,m=(0,l.default)(i.Button)`
|
|
173
|
+
width: ${e=>e.theme.px.xxlarge};
|
|
174
|
+
padding: 0;
|
|
175
|
+
display: flex;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
align-items: center;
|
|
178
|
+
`,v=l.default.div`
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
flex-direction: row;
|
|
181
|
+
position: relative;
|
|
182
|
+
`,x=l.default.div`
|
|
183
|
+
position: relative;
|
|
184
|
+
display: inline-block;
|
|
185
|
+
`},4032:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setupExpandablePanel=void 0;const r=n(6588);t.setupExpandablePanel=(e,t,n=!1)=>{if(!e||0===e.childNodes.length)return;const o=e.parentElement,a=null==o?void 0:o.getBoundingClientRect(),i=e.getBoundingClientRect();if(!a)return;const l=i.height,s=i.width<=a.width||n?i.width:a.width,c=a.x+s>document.body.clientWidth||s<a.width;e.style.width=`${s}px`,e.style.opacity="1",c?e.style.right="0px":e.style.left="0px",t===r.ExpandDirection.Down&&(e.style.top=`${a.height}px`),t===r.ExpandDirection.Up&&(e.style.top=-1*l+"px")}},1953:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandablePanel=void 0;const o=n(4848),a=r(n(2770)),i=n(5322),l=n(2367),s=n(2094),c=n(4032),u=r(n(4708)),d={type:"spring",duration:.2,bounce:.25};t.ExpandablePanel=e=>{var t;const n=`${e.panelId}-expandable-panel`;return(0,o.jsx)(u.default,{focusTrapOptions:{fallbackFocus:`#${n}`,clickOutsideDeactivates:!0,onDeactivate:e.onCollapseRequest,initialFocus:!1,document:e.document,returnFocusOnDeactivate:!1},children:(0,o.jsx)(h,{ref:t=>(0,c.setupExpandablePanel)(t,e.expandDirection,e.stretch),tabIndex:0,id:n,initial:"initial",exit:"hidden",buttonSize:null!==(t=e.buttonSize)&&void 0!==t?t:l.ButtonSize.base,animate:"visible",role:"menu",transition:d,onMouseOver:()=>{var e;return null===(e=document.activeElement)||void 0===e?void 0:e.blur()},children:e.secondaryButtons.map(((t,n)=>(0,o.jsx)(l.Button,{className:"menu-item",tabIndex:n+1,title:t.title,role:"menuitem",size:e.buttonSize,disabled:t.disabled,kind:"textOnly",onClick:n=>((t,n)=>{e.closePanelOnSecondaryButtonClick?(n.onClick(t),e.onCollapseRequest()):n.onClick(t,(()=>e.onCollapseRequest()))})(n,t),"aria-label":t.title,children:(0,o.jsx)(p,{"aria-label":t.title,children:t.title})},n)))},"expandablePanel")})};const p=(0,a.default)(s.Box)`
|
|
186
|
+
padding-bottom: 1px;
|
|
187
|
+
padding-top: 1px;
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
text-overflow: ellipsis;
|
|
190
|
+
display: block;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
`,f={[l.ButtonSize.small]:e=>e.px.small,[l.ButtonSize.base]:e=>e.px.base,[l.ButtonSize.large]:e=>e.px.large},h=(0,a.default)(i.motion.div)`
|
|
193
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
194
|
+
opacity: 0;
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
position: absolute;
|
|
198
|
+
bottom: ${e=>e.theme.px.xxxlarge};
|
|
199
|
+
max-width: max-content;
|
|
200
|
+
min-width: 80px;
|
|
201
|
+
background: ${e=>e.theme.palette.background4};
|
|
202
|
+
box-shadow: ${e=>e.theme.shadow.base};
|
|
203
|
+
height: max-content;
|
|
204
|
+
z-index: 100;
|
|
205
|
+
|
|
206
|
+
.menu-item {
|
|
207
|
+
border-radius: unset;
|
|
208
|
+
background: none;
|
|
209
|
+
border: transparent;
|
|
210
|
+
text-overflow: ellipsis;
|
|
211
|
+
width: 100%;
|
|
212
|
+
display: block;
|
|
213
|
+
overflow: clip;
|
|
214
|
+
& > * {
|
|
215
|
+
text-align: left;
|
|
216
|
+
}
|
|
217
|
+
font-weight: ${({theme:e})=>e.fontWeight.normal};
|
|
218
|
+
padding-top: ${({theme:e,buttonSize:t})=>f[t](e)};
|
|
219
|
+
padding-bottom: ${({theme:e,buttonSize:t})=>f[t](e)};
|
|
220
|
+
padding-left: ${({theme:e})=>e.px.small};
|
|
221
|
+
padding-right: ${({theme:e})=>e.px.small};
|
|
222
|
+
|
|
223
|
+
:first-child {
|
|
224
|
+
border-top-left-radius: ${({theme:e})=>e.radius.small};
|
|
225
|
+
border-top-right-radius: ${({theme:e})=>e.radius.small};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:last-child {
|
|
229
|
+
border-bottom-left-radius: ${({theme:e})=>e.radius.small};
|
|
230
|
+
border-bottom-right-radius: ${({theme:e})=>e.radius.small};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&:focus,
|
|
234
|
+
&:hover {
|
|
235
|
+
outline: none;
|
|
236
|
+
border-color: transparent;
|
|
237
|
+
background: ${e=>e.theme.palette.background2};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&:disabled,
|
|
241
|
+
&:active:disabled {
|
|
242
|
+
color: ${({theme:e})=>e.palette.textInactive};
|
|
243
|
+
background: ${e=>e.theme.palette.background4};
|
|
244
|
+
opacity: unset;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
`},5825:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4947),t),o(n(6588),t)},6368:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentMenu=t.findPathToItemWithId=void 0;const o=n(4848),a=n(2015),i=n(1255),l=r(n(2770)),s=n(2094),c=n(467),u=r(n(5823));t.findPathToItemWithId=(e,n,r)=>{if(e.id===r)return n;if(e.children)for(let o=0;o<e.children.length;++o){const a=e.children[o];n.push(a.id);const i=(0,t.findPathToItemWithId)(a,n,r);if(i)return i;n.pop()}},t.ContentMenu=({structure:e,handleClickItem:n,handleBookmarkItem:r,targetId:l,disableBookmarking:s,selectedScheme:p})=>{const[f,h]=(0,a.useState)([]),[b,g]=(0,a.useState)(),m=(0,a.useRef)(null),[v,x]=(0,a.useState)({}),y=(0,a.useCallback)((()=>{m.current&&m.current.scrollTo({left:m.current.scrollWidth,behavior:"smooth"})}),[]),C=(0,a.useCallback)(((e,t)=>{x(e&&t?{label:e,element:t}:{})}),[]);(0,a.useEffect)((()=>{if(l){const n=(0,t.findPathToItemWithId)({id:"",children:e},[],l);if(n)return h(n),void g(`content-menu-item-${l}`)}g(void 0)}),[l]),(0,a.useEffect)((()=>{y()}),[f]);const[_,O]=(0,a.useState)(null);return(0,a.useEffect)((()=>{var t,n;O(null!==(n=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.id)&&void 0!==n?n:null)}),e),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.default,{label:v.label,element:v.element}),(0,o.jsx)(d,{ref:m,role:"tree",onScroll:()=>C(),children:(0,o.jsx)(c.ContentMenuContext.Provider,{value:{focusedContentItemId:_,setFocusedContentItemId:e=>O(e)},children:(0,o.jsx)(i.ContentMenuColumn,{entries:e,depth:0,path:f,targetItemId:b,setCurrentlySelectedPath:h,handleClickItem:n,handleBookmarkItem:r,parentEntry:null,toggleTooltip:C,disableBookmarking:s,selectedScheme:p})})})]})};const d=(0,l.default)(s.Box)`
|
|
248
|
+
height: 100%;
|
|
249
|
+
width: 100%;
|
|
250
|
+
|
|
251
|
+
display: flex;
|
|
252
|
+
|
|
253
|
+
overflow-x: auto;
|
|
254
|
+
overflow-y: hidden;
|
|
255
|
+
`},1255:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentMenuColumn=void 0;const o=n(4848),a=r(n(2770)),i=n(6418),l=n(2015),s=n(8307),c=n(467);t.ContentMenuColumn=({entries:e,depth:n,path:r,targetItemId:a,setCurrentlySelectedPath:i,handleClickItem:p,handleBookmarkItem:f,parentEntry:h,toggleTooltip:b,disableBookmarking:g,selectedScheme:m})=>{const v=(0,l.useRef)(null),x=r[n],y=x?e.find((e=>e.id===x)):void 0,{setFocusedContentItemId:C}=(0,l.useContext)(c.ContentMenuContext);(0,l.useEffect)((()=>{if(a&&y){const e=document.getElementById(`content-menu-item-${y.id}`);if(e&&v.current){const t=e.getBoundingClientRect().top-v.current.children[0].getBoundingClientRect().top;v.current.scrollTo({top:t,behavior:"smooth"})}}}),[a]);const _=(0,l.useCallback)((e=>{i((t=>e.id?(t[n]=e.id,t.slice(0,n+1)):t.slice(0,n))),e.children.length&&C(e.children[0].id)}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u,{ref:v,role:"group",children:e.length>0?(0,o.jsx)("div",{children:e.map((t=>(0,o.jsx)(s.ContentMenuItem,{entry:t,role:"treeitem","aria-level":n+1,active:"folder"===t.type&&t.id===x,"aria-expanded":"folder"===t.type?!(!y||y.id!==t.id):void 0,handleClick:(e,t)=>{"folder"===e.type?_(e):p(e,t)},handleBookmark:f,onKeyDown:n=>((t,n)=>{const r=e.indexOf(n);switch(t.key){case"ArrowUp":{t.preventDefault();const n=e[r-1];n&&C(n.id);break}case"ArrowDown":{t.preventDefault();const n=e[r+1];n&&C(n.id);break}case"ArrowLeft":h&&(t.preventDefault(),C(h.id));break;case"Enter":case" ":case"ArrowRight":if(t.currentTarget!==t.target)return;if(t.preventDefault(),"folder"===n.type)_(n),n.children.length&&C(n.children[0].id);else if("ArrowRight"!==t.key){const e={ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey};p(n,e)}}})(n,t),toggleTooltip:b,disableBookmarking:g,selectedScheme:m},t.id)))}):(0,o.jsx)(d,{children:"No content available."})}),y&&"folder"===y.type&&(0,o.jsx)(t.ContentMenuColumn,{entries:y.children,depth:n+1,path:r,targetItemId:a,setCurrentlySelectedPath:i,handleClickItem:p,handleBookmarkItem:f,parentEntry:y,toggleTooltip:b,disableBookmarking:g,selectedScheme:m})]})};const u=(0,a.default)(i.MenuFrame).attrs({className:"content-menu-column-frame"})`
|
|
256
|
+
height: 100%;
|
|
257
|
+
width: 241px;
|
|
258
|
+
padding: ${({theme:e})=>e.px.xsmall};
|
|
259
|
+
overflow-y: auto;
|
|
260
|
+
|
|
261
|
+
position: unset;
|
|
262
|
+
flex-shrink: 0;
|
|
263
|
+
|
|
264
|
+
border-right: 1px solid ${({theme:e})=>e.palette.background5};
|
|
265
|
+
background-color: transparent;
|
|
266
|
+
`,d=a.default.div`
|
|
267
|
+
height: 100%;
|
|
268
|
+
|
|
269
|
+
display: flex;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
align-items: center;
|
|
272
|
+
|
|
273
|
+
user-select: none;
|
|
274
|
+
`},467:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentMenuContext=void 0;const o=r(n(2015));t.ContentMenuContext=o.default.createContext({focusedContentItemId:null,setFocusedContentItemId:()=>{}})},8307:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentMenuItemContainer=t.ContentMenuItem=void 0;const l=n(4848),s=a(n(2770)),c=n(6418),u=n(5917),d=n(2015),p=n(5699),f=n(467),h=n(2094);t.ContentMenuItem=e=>{var n,{entry:r,active:o,handleClick:a,handleBookmark:s,toggleTooltip:h,disableBookmarking:v,selectedScheme:x}=e,y=i(e,["entry","active","handleClick","handleBookmark","toggleTooltip","disableBookmarking","selectedScheme"]);const{label:C,type:_}=r,O=(0,d.useRef)(null),{focusedContentItemId:w}=(0,d.useContext)(f.ContentMenuContext),j=(0,d.useCallback)((()=>{"item"===r.type&&"desktop"===r.itemData.appType&&O.current&&h("Launch Desktop App",O.current)}),[r]);(0,d.useEffect)((()=>{var e;r.id===w&&(null===(e=O.current)||void 0===e||e.focus())}),[w]);const k="item"===r.type&&r.icon?"string"==typeof r.icon?r.icon:r.icon[null!=x?x:"light"]:void 0;return(0,l.jsxs)(t.ContentMenuItemContainer,Object.assign({id:`content-menu-item-${r.id}`,onClick:e=>a(r,e),onMouseEnter:j,onMouseLeave:()=>h(),active:o,tabIndex:w===r.id?0:-1,ref:O,"aria-label":r.label},y,{children:["item"===_&&(0,l.jsx)(p.IconWithFallback,{iconUrl:k}),(0,l.jsx)(b,{size:"base",weight:"normal",children:C}),(0,l.jsxs)(g,{children:[!v&&(0,l.jsx)(m,{bookmarked:r.bookmarked,role:"button",onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||(null==e||e.stopPropagation(),s&&s(r))},onClick:e=>{var t;null==e||e.stopPropagation(),s&&s(r),null===(t=O.current)||void 0===t||t.focus()},"data-testid":`content-menu-item-${r.id}-bookmark-icon`,tabIndex:w===r.id?0:-1,"aria-label":r.bookmarked?`Remove ${r.label} from favorites`:`Add ${r.label} to favorites`,children:r.bookmarked?(0,l.jsx)(u.Icon,{icon:"StarFilledIcon"}):(0,l.jsx)(u.Icon,{icon:"StarIcon"})}),"item"===r.type&&"desktop"===(null===(n=r.itemData)||void 0===n?void 0:n.appType)&&(0,l.jsx)(c.MenuItemRightIcon,{icon:"ArrowTopRightIcon"}),"folder"===_&&(0,l.jsx)(c.MenuItemRightIcon,{icon:"ChevronRightIcon","data-testid":`content-menu-item-${r.id}-chevron-icon`})]})]}))};const b=(0,s.default)(c.MenuItemText)`
|
|
275
|
+
padding-right: ${({theme:e})=>e.px.large};
|
|
276
|
+
`,g=(0,s.default)(h.Box)`
|
|
277
|
+
margin-left: auto;
|
|
278
|
+
justify-self: end;
|
|
279
|
+
gap: ${({theme:e})=>e.px.small};
|
|
280
|
+
padding-right: ${({theme:e})=>e.px.small};
|
|
281
|
+
|
|
282
|
+
svg {
|
|
283
|
+
height: ${({theme:e})=>e.px.large};
|
|
284
|
+
width: ${({theme:e})=>e.px.large};
|
|
285
|
+
}
|
|
286
|
+
`,m=(0,s.default)(h.Box)`
|
|
287
|
+
${({bookmarked:e})=>e?s.css`
|
|
288
|
+
& + ${c.MenuItemIconContainer} {
|
|
289
|
+
margin-left: unset;
|
|
290
|
+
}
|
|
291
|
+
`:s.css`
|
|
292
|
+
opacity: 0;
|
|
293
|
+
`};
|
|
294
|
+
|
|
295
|
+
&:focus {
|
|
296
|
+
outline: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&:focus-visible {
|
|
300
|
+
opacity: 1;
|
|
301
|
+
outline: solid 1px ${({theme:e})=>e.palette.statusActive};
|
|
302
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
303
|
+
}
|
|
304
|
+
`;t.ContentMenuItemContainer=(0,s.default)(c.MenuItemInnerContainer).attrs((({active:e})=>({className:["content-menu-item-container",e?"content-menu-item-container-active":""].filter(Boolean).join(" ")})))`
|
|
305
|
+
&:focus {
|
|
306
|
+
outline: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&:focus-visible {
|
|
310
|
+
outline: solid 1px ${({theme:e})=>e.palette.statusActive};
|
|
311
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
312
|
+
|
|
313
|
+
${m} {
|
|
314
|
+
opacity: 1;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
${({theme:e,active:t})=>t&&s.css`
|
|
319
|
+
background-color: ${e.palette.background3};
|
|
320
|
+
`}
|
|
321
|
+
&:hover {
|
|
322
|
+
background-color: ${({theme:e})=>e.palette.background2};
|
|
323
|
+
|
|
324
|
+
${m} {
|
|
325
|
+
opacity: 1;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
${m} + ${c.MenuItemIconContainer} {
|
|
329
|
+
margin-left: unset;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
`},5699:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IconWithFallback=void 0;const o=n(4848),a=r(n(2770)),i=n(1491),l=n(5917);t.IconWithFallback=({iconUrl:e,alt:t})=>{const n=(0,i.useImageLoader)(e);return"error"===n?(0,o.jsx)(s,{children:(0,o.jsx)(l.Icon,{icon:"FallbackGlobeIcon"})}):"loading"===n?(0,o.jsx)(c,{}):(0,o.jsx)(u,{src:e,alt:t})};const s=a.default.div`
|
|
333
|
+
height: ${({theme:e})=>e.px.large};
|
|
334
|
+
width: ${({theme:e})=>e.px.large};
|
|
335
|
+
margin-left: ${({theme:e})=>e.px.small};
|
|
336
|
+
|
|
337
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
338
|
+
`,c=a.default.div`
|
|
339
|
+
height: ${({theme:e})=>e.px.large};
|
|
340
|
+
width: ${({theme:e})=>e.px.large};
|
|
341
|
+
margin-left: ${({theme:e})=>e.px.small};
|
|
342
|
+
`,u=a.default.img`
|
|
343
|
+
height: ${({theme:e})=>e.px.large};
|
|
344
|
+
width: ${({theme:e})=>e.px.large};
|
|
345
|
+
margin-left: ${({theme:e})=>e.px.small};
|
|
346
|
+
|
|
347
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
348
|
+
|
|
349
|
+
user-select: none;
|
|
350
|
+
`},1491:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useImageLoader=void 0;const r=n(2015);t.useImageLoader=e=>{const[t,n]=(0,r.useState)("loading");return(0,r.useEffect)((()=>{if(!e)return void n("error");n("loading");const t=new Image,r=()=>{n("success")},o=()=>{n("error")};return t.addEventListener("load",r),t.addEventListener("error",o),t.src=e,()=>{t.removeEventListener("load",r),t.removeEventListener("error",o)}}),[e]),t}},5823:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(4848),l=n(2015),s=a(n(2770)),c=n(5963);t.default=({label:e,element:t})=>{const n=(0,l.useRef)(null),[r,o]=(0,l.useState)({}),[a,s]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{if(t&&n.current){const{top:e,left:r,height:a,width:i}=t.getBoundingClientRect(),l=r+i/2,{height:c,width:u}=n.current.getBoundingClientRect(),d=e-c-12,p=d>0?d:e+a+12;o({top:p,left:l-u/2,arrowUp:d!==p}),s(!0)}else o({}),s(!1)}),[a,t]),(0,i.jsx)(u,{ref:n,left:r.left,top:r.top,arrowUp:r.arrowUp,children:(0,i.jsx)(c.Text,{children:e})})};const u=s.default.div`
|
|
351
|
+
pointer-events: none;
|
|
352
|
+
position: fixed;
|
|
353
|
+
z-index: 1;
|
|
354
|
+
top: ${({top:e})=>`${null!=e?e:-99999}px`};
|
|
355
|
+
left: ${({left:e})=>`${null!=e?e:-99999}px`};
|
|
356
|
+
|
|
357
|
+
padding: ${({theme:e})=>e.px.small};
|
|
358
|
+
border: 1px solid ${({theme:e})=>e.palette.background4};
|
|
359
|
+
border-radius: ${({theme:e})=>e.px.xsmall};
|
|
360
|
+
|
|
361
|
+
background: ${({theme:e})=>e.palette.background1};
|
|
362
|
+
box-shadow: 0px 0px 10px ${({theme:e})=>`rgb(from ${e.palette.textDefault} r g b / 10%)`};
|
|
363
|
+
|
|
364
|
+
&:before {
|
|
365
|
+
pointer-events: none;
|
|
366
|
+
content: '';
|
|
367
|
+
display: block;
|
|
368
|
+
position: absolute;
|
|
369
|
+
left: calc(50% - 10px);
|
|
370
|
+
width: 0;
|
|
371
|
+
height: 0;
|
|
372
|
+
border: 10px solid transparent;
|
|
373
|
+
|
|
374
|
+
${({arrowUp:e})=>e?s.css`
|
|
375
|
+
bottom: 100%;
|
|
376
|
+
border-bottom-color: ${({theme:e})=>e.palette.background4};
|
|
377
|
+
`:s.css`
|
|
378
|
+
top: 100%;
|
|
379
|
+
border-top-color: ${({theme:e})=>e.palette.background4};
|
|
380
|
+
`}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&:after {
|
|
384
|
+
pointer-events: none;
|
|
385
|
+
content: '';
|
|
386
|
+
display: block;
|
|
387
|
+
position: absolute;
|
|
388
|
+
left: calc(50% - 9px);
|
|
389
|
+
width: 0;
|
|
390
|
+
height: 0;
|
|
391
|
+
border: 9px solid transparent;
|
|
392
|
+
|
|
393
|
+
${({arrowUp:e})=>e?s.css`
|
|
394
|
+
bottom: 100%;
|
|
395
|
+
border-bottom-color: ${({theme:e})=>e.palette.background1};
|
|
396
|
+
`:s.css`
|
|
397
|
+
top: 100%;
|
|
398
|
+
border-top-color: ${({theme:e})=>e.palette.background1};
|
|
399
|
+
`}
|
|
400
|
+
}
|
|
401
|
+
`},4810:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6368),t)},244:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContextMenu=t.CONTEXT_MENU_ANIMATION_DURATION=t.PRIOR_CONTEXT_MENU_CLASS=t.BASE_CONTEXT_MENU=t.ACTIVE_CONTEXT_MENU_CLASS=t.CONTEXT_MENU_FRAME_ID=void 0;const o=n(4848),a=n(2015),i=r(n(2770)),l=n(9005),s=n(68),c=n(6972),u=n(8666),d=n(3247),p=n(8429),f=n(6418);t.CONTEXT_MENU_FRAME_ID="context_menu_frame",t.ACTIVE_CONTEXT_MENU_CLASS="active_context_menu",t.BASE_CONTEXT_MENU="base_context_menu",t.PRIOR_CONTEXT_MENU_CLASS="previous_context_menu",t.CONTEXT_MENU_ANIMATION_DURATION=200,t.CustomContextMenu=({menuTemplate:e,onClick:n,icon:r,onMenuResize:i,onContextMenuReady:f,isWindows:g=!0})=>{var m;const v=(0,a.useRef)(null),[x,y]=(0,a.useState)(!1),[C,_]=(0,a.useState)({width:160,height:160}),[O,w]=(0,a.useState)(0),[j,k]=(0,a.useState)([]),[P,S]=(0,a.useState)(),[M,$]=(0,a.useState)([]),[I,D]=(0,a.useState)(e.map((e=>e.label||""))),[B,E]=(0,a.useState)(-1);(0,a.useEffect)((()=>{D(e.map((e=>e.label||""))),E(I.findIndex((e=>e===P)))}),[e]);const{width:T,height:F}=(0,s.useResizeContextMenu)(P),{handleNavigateToSubmenu:L,handleNavigateBackToParent:H,handleNavigateToBase:z}=(0,u.useContextMenuNavigation)(O,w,M,$,P,S,_,E,j,i);return(0,a.useEffect)((()=>{k((0,c.getMenuNavigationOrder)(e)),S(t.BASE_CONTEXT_MENU),$([]),_({width:T,height:F})}),[e]),(0,d.useContextMenuKeyboardNavigation)(null===(m=j.find((e=>e.parentLabel===P)))||void 0===m?void 0:m.menuTemplate,M,P,B,E,n,L,H,z),(0,a.useEffect)((()=>{v.current&&(x||(f&&f(),y(!0)))}),[v.current]),(0,o.jsx)(h,{id:t.CONTEXT_MENU_FRAME_ID,transitionSpeed:O,isWindows:g,children:j.map((({parentLabel:e,menuTemplate:a})=>(0,o.jsx)("div",{ref:e===P?v:void 0,children:(0,o.jsxs)(b,{className:(0,c.getClassName)(e,P,M),activeMenuWidth:C.width,transitionSpeed:O,id:e,children:[e!==t.BASE_CONTEXT_MENU?(0,o.jsx)(l.CustomContextMenuItem,{type:"submenuHeader",label:e,onBack:()=>H(e,"click"),onClose:z,showShouldHomeButton:M.slice(2).includes(e)||M.length>=2&&P===e,selected:-1===B},`${e}-submenu-header`):r&&(0,o.jsx)(p.RootMenuHeader,{icon:r}),a.map(((t,r)=>(0,o.jsx)(l.CustomContextMenuItem,Object.assign({onClick:e=>{t.hasSubMenu?L(t.label||""):n(e),E(-2)}},t,{selected:B===r}),`${e}-${t.label}-${r}`)))]})},e)))})};const h=i.default.div`
|
|
402
|
+
position: relative;
|
|
403
|
+
min-width: fit-content;
|
|
404
|
+
min-height: fit-content;
|
|
405
|
+
overflow: hidden;
|
|
406
|
+
|
|
407
|
+
background-color: ${({theme:e})=>e.palette.background1};
|
|
408
|
+
transition: ${({transitionSpeed:e})=>`all ${e}ms linear`};
|
|
409
|
+
border-radius: ${({isWindows:e})=>!e&&"10px"};
|
|
410
|
+
`,b=(0,i.default)(f.MenuFrame)`
|
|
411
|
+
transform: translateX(${({activeMenuWidth:e})=>`${e}px`});
|
|
412
|
+
transition: ${({transitionSpeed:e})=>`all ${e}ms cubic-bezier(0, 0, 0.58, 1)`};
|
|
413
|
+
opacity: 0%;
|
|
414
|
+
|
|
415
|
+
&.active_context_menu {
|
|
416
|
+
transform: unset;
|
|
417
|
+
opacity: 100%;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
&.previous_context_menu {
|
|
421
|
+
transform: translateX(-100%);
|
|
422
|
+
opacity: 0%;
|
|
423
|
+
}
|
|
424
|
+
`},6374:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorLinkingContextMenuWidget=void 0;const o=n(4848),a=r(n(2770)),i=n(2094),l=n(5917);t.ColorLinkingContextMenuWidget=({config:e,onClick:t})=>(0,o.jsx)(u,{children:e.channels.map((e=>"color"in e?(0,o.jsx)(c,{title:e.label,color:e.color,onClick:()=>null==t?void 0:t(e.data),children:e.checked&&(0,o.jsx)(l.Icon,{icon:"CheckIcon",title:e.label,size:"base",color:"white"})},e.label):(0,o.jsx)(s,{onClick:()=>null==t?void 0:t(e.data),children:(0,o.jsx)(l.Icon,{icon:"LinkBreak1Icon",title:e.label,size:"base"})},e.label)))});const s=(0,a.default)(i.Box)`
|
|
425
|
+
cursor: pointer;
|
|
426
|
+
width: ${({theme:e})=>e.px.large};
|
|
427
|
+
height: ${({theme:e})=>e.px.large};
|
|
428
|
+
justify-content: center;
|
|
429
|
+
`,c=(0,a.default)(i.Box)`
|
|
430
|
+
background-color: ${({color:e})=>e};
|
|
431
|
+
width: ${({theme:e})=>e.px.large};
|
|
432
|
+
height: ${({theme:e})=>e.px.large};
|
|
433
|
+
border-radius: 3px;
|
|
434
|
+
cursor: pointer;
|
|
435
|
+
justify-content: center;
|
|
436
|
+
align-items: center;
|
|
437
|
+
`,u=(0,a.default)(i.Box)`
|
|
438
|
+
flex-direction: row;
|
|
439
|
+
gap: ${({theme:e})=>e.px.small};
|
|
440
|
+
/*
|
|
441
|
+
* Container width is colorbox width * columnCount + # of gaps * gap width + side padding
|
|
442
|
+
*/
|
|
443
|
+
width: calc(
|
|
444
|
+
${({theme:e})=>e.px.large} * 5 + 4 * ${({theme:e})=>e.px.small} + 2 *
|
|
445
|
+
${({theme:e})=>e.px.small}
|
|
446
|
+
);
|
|
447
|
+
flex-wrap: wrap;
|
|
448
|
+
padding: ${({theme:e})=>e.px.small} ${({theme:e})=>e.px.small};
|
|
449
|
+
`},9005:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContextMenuItem=void 0;const o=n(4848),a=n(2015),i=n(6554),l=n(2294),s=n(3741),c=n(4953),u={normal:l.NormalCustomContextMenuItem,checkbox:l.NormalCustomContextMenuItem,submenu:l.NormalCustomContextMenuItem,separator:i.SeparatorCustomContextMenuItem,submenuHeader:s.SubmenuHeaderCustomContextMenuItem,widget:c.WidgetCustomContextMenuItem};t.CustomContextMenuItem=e=>{var{type:t="normal",icon:n,label:i,enabled:l=!0,checked:s,hasSubMenu:c,showShouldHomeButton:d,onClick:p,onClose:f,onBack:h,selected:b}=e,g=r(e,["type","icon","label","enabled","checked","hasSubMenu","showShouldHomeButton","onClick","onClose","onBack","selected"]);let m;switch(t){case"normal":case"checkbox":{m=Object.assign(Object.assign({},g),{type:t,label:i,icon:n,enabled:l,checked:s,selected:b,onClick:p});const e=u[t];return(0,a.createElement)(e,Object.assign({},m,{key:i}))}case"submenu":{m=Object.assign(Object.assign({},g),{label:i,enabled:l,checked:s,submenu:c,selected:b,onClick:p});const e=u[t];return(0,a.createElement)(e,Object.assign({},m,{key:i}))}case"submenuHeader":{m={label:i,showShouldHomeButton:d,onClose:f,onBack:h,selected:b,onClick:p};const e=u[t];return(0,a.createElement)(e,Object.assign({},m,{key:i}))}case"separator":{const e=u[t];return(0,o.jsx)(e,{})}case"widget":{const e=Object.assign(Object.assign({},g),{onClick:p,label:i,enabled:l}),n=u[t];return(0,a.createElement)(n,Object.assign({},e,{key:i,onClick:p}))}default:return(0,o.jsx)(o.Fragment,{})}}},2294:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NormalCustomContextMenuItem=void 0;const o=n(4848),a=r(n(2770)),i=n(5917),l=n(6418);t.NormalCustomContextMenuItem=({type:e,label:t,enabled:n=!0,checked:r,submenu:a,onClick:i,selected:c,data:u})=>(0,o.jsx)(l.MenuItemContainer,{children:(0,o.jsxs)(l.MenuItemInnerContainer,{onClick:n?()=>null==i?void 0:i(u):void 0,enabled:n.toString(),selected:c,children:["checkbox"===e&&(0,o.jsx)(l.MenuItemIconContainer,{side:"left",children:(0,o.jsx)(s,{icon:"CheckIcon",enabled:n,checked:r})}),(0,o.jsx)(l.MenuItemText,{size:"base",weight:"normal",enabled:n,children:t}),a&&(0,o.jsx)(l.MenuItemIconContainer,{side:"right",children:(0,o.jsx)(l.MenuItemRightIcon,{icon:"ChevronRightIcon",enabled:n})})]})});const s=(0,a.default)(i.Icon)`
|
|
450
|
+
svg path {
|
|
451
|
+
fill: ${({theme:e,enabled:t,checked:n})=>t?n?e.palette.textDefault:"transparent":e.palette.textInactive};
|
|
452
|
+
stroke-width: 1.25;
|
|
453
|
+
}
|
|
454
|
+
`},8429:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootMenuHeader=void 0;const o=n(4848),a=r(n(2770)),i=n(2094),l=n(6554);t.RootMenuHeader=({icon:e})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{children:e}),(0,o.jsx)(l.SeparatorCustomContextMenuItem,{})]});const s=(0,a.default)(i.Box)`
|
|
455
|
+
width: 100%;
|
|
456
|
+
height: 28px;
|
|
457
|
+
display: flex;
|
|
458
|
+
align-items: center;
|
|
459
|
+
justify-content: flex-start;
|
|
460
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
461
|
+
padding: ${({theme:e})=>`0 0 0 ${e.px.large}`};
|
|
462
|
+
`},6554:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorCustomContextMenuItem=void 0;const o=n(4848),a=n(2094),i=r(n(2770));t.SeparatorCustomContextMenuItem=()=>(0,o.jsx)(l,{"data-testid":"custom-context-menu-separator",children:(0,o.jsx)(s,{})});const l=(0,i.default)(a.Box)`
|
|
463
|
+
width: 100%;
|
|
464
|
+
padding: ${({theme:e})=>e.px.small} 0;
|
|
465
|
+
`,s=i.default.hr`
|
|
466
|
+
width: 100%;
|
|
467
|
+
height: 1px;
|
|
468
|
+
border: none;
|
|
469
|
+
background-color: ${({theme:e})=>e.palette.background3};
|
|
470
|
+
`},3741:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubmenuHeaderCustomContextMenuItem=void 0;const o=n(4848),a=n(2015),i=r(n(2770)),l=n(5917),s=n(5963),c=n(2094),u=n(6554);t.SubmenuHeaderCustomContextMenuItem=({label:e,showShouldHomeButton:t,onClose:n,onBack:r,selected:i})=>{const l=(0,a.useCallback)((e=>{e.stopPropagation(),null==r||r()}),[r]),s=(0,a.useCallback)((e=>{e.stopPropagation(),null==n||n()}),[n]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d,{children:[(0,o.jsx)(p,{side:"left",selected:i,children:(0,o.jsx)(f,{icon:"ArrowLeftIcon",onClick:l,id:"back-icon",selected:i})}),(0,o.jsx)(h,{size:"base",weight:"normal",children:e}),t&&(0,o.jsx)(p,{side:"right",children:(0,o.jsx)(b,{icon:"Cross2Icon",onClick:s,id:"close-icon"})})]}),(0,o.jsx)(u.SeparatorCustomContextMenuItem,{})]})};const d=(0,i.default)(c.Box)`
|
|
471
|
+
width: 100%;
|
|
472
|
+
height: 28px;
|
|
473
|
+
display: flex;
|
|
474
|
+
align-items: center;
|
|
475
|
+
justify-content: flex-start;
|
|
476
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
477
|
+
padding: ${({theme:e})=>`0 ${e.px.small} 0 ${e.px.small}`};
|
|
478
|
+
`,p=(0,i.default)(c.Box)`
|
|
479
|
+
padding: ${({theme:e,side:t})=>"right"===t?`0 ${e.px.small} 0 0`:`0 0 0 ${e.px.small}`};
|
|
480
|
+
margin-left: ${({side:e})=>"right"===e?"auto":0};
|
|
481
|
+
`,f=(0,i.default)(l.Icon)`
|
|
482
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
483
|
+
background-color: ${({selected:e,theme:t})=>e?t.palette.background3:"transparent"};
|
|
484
|
+
color: ${({theme:e,selected:t})=>t?e.palette.textDefault:e.palette.textHelp};
|
|
485
|
+
stroke: ${({theme:e,selected:t})=>t?e.palette.textDefault:e.palette.textHelp};
|
|
486
|
+
stroke-width: 0.25;
|
|
487
|
+
|
|
488
|
+
&:hover {
|
|
489
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
490
|
+
stroke: ${({theme:e})=>e.palette.textDefault};
|
|
491
|
+
}
|
|
492
|
+
`,h=(0,i.default)(s.Text)`
|
|
493
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
494
|
+
padding: ${({theme:e})=>`0 ${e.px.xxxlarge} 0 ${e.px.small}`};
|
|
495
|
+
cursor: default;
|
|
496
|
+
`,b=(0,i.default)(l.Icon)`
|
|
497
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
498
|
+
stroke: ${({theme:e})=>e.palette.textHelp};
|
|
499
|
+
stroke-width: 0.25;
|
|
500
|
+
margin-left: auto;
|
|
501
|
+
|
|
502
|
+
&:hover {
|
|
503
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
504
|
+
stroke: ${({theme:e})=>e.palette.textDefault};
|
|
505
|
+
}
|
|
506
|
+
`},4953:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetCustomContextMenuItem=void 0;const o=n(4848),a=n(6418),i=r(n(2770)),l=n(2094),s=n(6374);t.WidgetCustomContextMenuItem=({label:e,enabled:t,onClick:n,config:r})=>(0,o.jsx)(a.MenuItemContainer,{children:(0,o.jsxs)(c,{enabled:(null!=t?t:"true").toString(),children:[(0,o.jsx)(a.MenuItemText,{size:"base",weight:"normal",enabled:t,children:e}),(0,o.jsx)(s.ColorLinkingContextMenuWidget,{config:r,onClick:n})]})});const c=(0,i.default)(l.Box)`
|
|
507
|
+
display: flex;
|
|
508
|
+
flex-direction: column;
|
|
509
|
+
align-items: start;
|
|
510
|
+
width: 100%;
|
|
511
|
+
min-height: 28px;
|
|
512
|
+
justify-content: flex-start;
|
|
513
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
514
|
+
background-color: ${({theme:e,selected:t,enabled:n})=>"false"!==n&&t?e.palette.background3:"transparent"};
|
|
515
|
+
`},759:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(244),t)},3247:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useContextMenuKeyboardNavigation=void 0;const r=n(2015),o=n(244);t.useContextMenuKeyboardNavigation=(e,t,n,a,i,l,s,c,u)=>{const d=t=>{var n,r,o;return"separator"===(null===(n=e[t])||void 0===n?void 0:n.type)||!1===(null===(r=e[t])||void 0===r?void 0:r.enabled)||!1===(null===(o=e[t])||void 0===o?void 0:o.visible)},p=(0,r.useCallback)((()=>{i((t=>{let n=t;do{if(n===(null==e?void 0:e.length)-1)break;n+=1}while(d(n));return d(n)?t:n}))}),[i,e]),f=(0,r.useCallback)((()=>{i((e=>{let t=e;do{if(n===o.BASE_CONTEXT_MENU&&0===t||-1===t)break;t-=1}while(d(t));return t}))}),[i,e]),h=(0,r.useCallback)((()=>{i(n===o.BASE_CONTEXT_MENU?0:-1)}),[i,n]),b=(0,r.useCallback)((()=>{i((t=>{for(let n=e.length-1;n>=t;n--)if(!d(n))return n;return t}))}),[null==e?void 0:e.length,i]),g=(0,r.useCallback)((()=>{var t,r;if(null===(t=e[a])||void 0===t?void 0:t.hasSubMenu)s((null===(r=e[a])||void 0===r?void 0:r.label)||"");else{if(-1===a)return void c(n,"keyboard");l(e[a].data)}i(-1)}),[i,l,s,e,a,c,n]),m=(0,r.useCallback)((()=>{var t,n;(null===(t=e[a])||void 0===t?void 0:t.hasSubMenu)&&(s((null===(n=e[a])||void 0===n?void 0:n.label)||""),i(-1))}),[i,s,e,a]),v=(0,r.useCallback)((()=>{(t.slice(1).includes(n)||(null==t?void 0:t.length)>=1)&&c(n,"keyboard")}),[c,t,n]),x=(0,r.useCallback)((()=>{t.slice(2).includes(n)||(null==t?void 0:t.length)>=2?u():l({type:"close"})}),[u,t,n]);(0,r.useEffect)((()=>{const e=e=>{switch(e.key){case"ArrowDown":p();break;case"ArrowUp":f();break;case"Home":case"PageUp":h();break;case"End":case"PageDown":b();break;case"Enter":g();break;case"ArrowRight":m();break;case"ArrowLeft":v();break;case"Escape":x()}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[p,f,h,b,g,m,v,x])}},8666:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useContextMenuNavigation=void 0;const r=n(2015),o=n(244);t.useContextMenuNavigation=(e,t,n,a,i,l,s,c,u,d)=>{const p=(0,r.useCallback)((e=>{const t=document.getElementById(e),n=null==t?void 0:t.getBoundingClientRect();return{height:(null==n?void 0:n.height)||0,width:(null==n?void 0:n.width)||0}}),[]);return{handleNavigateToSubmenu:(0,r.useCallback)((r=>{const{height:c,width:u}=p(r);d&&d(c,u),e||t(o.CONTEXT_MENU_ANIMATION_DURATION),s({width:u,height:c}),l(r),a([...n,i])}),[i,n,a,d,t,p]),handleNavigateBackToParent:(0,r.useCallback)(((e,t="click")=>{if(d){const e=1===n.length?o.BASE_CONTEXT_MENU:n[n.length-1],{height:t,width:r}=p(e);d(t,r)}const r=n,i=r.pop(),s=u.find((e=>e.parentLabel===i));l(i),a(r),c("keyboard"===t?(null==s?void 0:s.menuTemplate.findIndex((t=>t.label===e)))||0:-1)}),[n,a,c,p,d,u]),handleNavigateToBase:(0,r.useCallback)((()=>{if(d){const{height:e,width:t}=p(o.BASE_CONTEXT_MENU);d(e,t)}l(o.BASE_CONTEXT_MENU),a([]),c(-1)}),[l,a,c,p,d])}}},68:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useResizeContextMenu=void 0;const r=n(2015),o=n(244);t.useResizeContextMenu=e=>{const[t,n]=(0,r.useState)({height:160,width:160});return(0,r.useEffect)((()=>{const t=document.getElementById(e),r=document.getElementById(o.CONTEXT_MENU_FRAME_ID);if(!t)return;const a=new ResizeObserver((e=>{for(const t of e){const{width:e,height:o}=t.target.getBoundingClientRect();r&&(r.style.height=`${o}px`,r.style.width=`${e}px`,n({width:e,height:o}))}}));return a.observe(t),()=>{a.unobserve(t)}}),[e]),t}},6972:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMenuNavigationOrder=t.getClassName=void 0;const r=n(244);t.getClassName=(e,t,n)=>t===e?r.ACTIVE_CONTEXT_MENU_CLASS:n.includes(e)?r.PRIOR_CONTEXT_MENU_CLASS:"",t.getMenuNavigationOrder=e=>{if(!e)return[];const t=[{parentLabel:r.BASE_CONTEXT_MENU,template:e}],n=[];for(;t.length;){const{template:e,parentLabel:r}=t.pop();e.forEach((({submenu:n,label:r},o)=>{n&&(t.push({parentLabel:r||"",template:n}),delete e[o].submenu,e[o].hasSubMenu=!0)})),n.push({parentLabel:r,menuTemplate:e})}return n}},6418:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemText=t.MenuItemRightIcon=t.MenuItemIconButton=t.MenuItemIconContainer=t.MenuItemInnerContainer=t.MenuItemContainer=t.MenuFrame=void 0;const o=r(n(2770)),a=n(2094),i=n(5917),l=n(5963);t.MenuFrame=(0,o.default)(a.Box)`
|
|
516
|
+
display: flex;
|
|
517
|
+
flex-direction: column;
|
|
518
|
+
position: absolute;
|
|
519
|
+
width: max-content;
|
|
520
|
+
background-color: ${({theme:e})=>e.palette.background1};
|
|
521
|
+
padding: ${({theme:e})=>`${e.px.small} 0 ${e.px.small} 0`};
|
|
522
|
+
`,t.MenuItemContainer=(0,o.default)(a.Box)`
|
|
523
|
+
width: 100%;
|
|
524
|
+
padding: ${({theme:e})=>`0 ${e.px.small} 0 ${e.px.small}`};
|
|
525
|
+
`,t.MenuItemInnerContainer=(0,o.default)(a.Box)`
|
|
526
|
+
width: 100%;
|
|
527
|
+
min-height: 28px;
|
|
528
|
+
display: flex;
|
|
529
|
+
align-items: center;
|
|
530
|
+
justify-content: flex-start;
|
|
531
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
532
|
+
background-color: ${({theme:e,selected:t,enabled:n})=>"false"!==n&&t?e.palette.background3:"transparent"};
|
|
533
|
+
|
|
534
|
+
&:hover {
|
|
535
|
+
background-color: ${({theme:e,enabled:t})=>"false"!==t?e.palette.background3:"transparent"};
|
|
536
|
+
}
|
|
537
|
+
`,t.MenuItemIconContainer=(0,o.default)(a.Box)`
|
|
538
|
+
margin-left: ${({side:e,theme:t})=>"right"===e?"auto":t.px.small};
|
|
539
|
+
margin-right: ${({side:e,theme:t})=>"right"===e?t.px.small:0};
|
|
540
|
+
`,t.MenuItemIconButton=o.default.button`
|
|
541
|
+
margin-left: ${({side:e,theme:t})=>"right"===e?"auto":t.px.small};
|
|
542
|
+
margin-right: ${({side:e,theme:t})=>"right"===e?t.px.small:0};
|
|
543
|
+
|
|
544
|
+
border: none;
|
|
545
|
+
background: none;
|
|
546
|
+
color: inherit;
|
|
547
|
+
`,t.MenuItemRightIcon=(0,o.default)(i.Icon)`
|
|
548
|
+
margin-left: auto;
|
|
549
|
+
|
|
550
|
+
svg path {
|
|
551
|
+
fill: ${({theme:e,enabled:t})=>null==t||t?e.palette.textDefault:e.palette.textInactive};
|
|
552
|
+
stroke: ${({theme:e,enabled:t})=>null==t||t?e.palette.textDefault:e.palette.textInactive};
|
|
553
|
+
stroke-width: 0.5;
|
|
554
|
+
}
|
|
555
|
+
`,t.MenuItemText=(0,o.default)(l.Text)`
|
|
556
|
+
color: ${({theme:e,enabled:t})=>null==t||t?e.palette.textDefault:e.palette.textInactive};
|
|
557
|
+
cursor: default;
|
|
558
|
+
|
|
559
|
+
overflow: hidden;
|
|
560
|
+
text-overflow: ellipsis;
|
|
561
|
+
white-space: nowrap;
|
|
562
|
+
|
|
563
|
+
user-select: none;
|
|
564
|
+
padding: ${({theme:e})=>`0 ${e.px.xxxlarge} 0 ${e.px.small}`};
|
|
565
|
+
`},8577:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3803),t)},3803:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toggle=void 0;const a=n(4848),i=n(2015),l=o(n(2770)),s=n(2649),c=n(2094),u=n(8820);t.Toggle=e=>{var{id:t,label:n,onChange:o,labelSide:l="right",type:s="checkbox",helperText:c}=e,b=r(e,["id","label","onChange","labelSide","type","helperText"]);const[g,m]=(0,i.useState)(b.checked);return(0,i.useEffect)((()=>{m(b.checked)}),[b.checked]),(0,a.jsxs)(d,{labelSide:l,children:[(n||c)&&(0,a.jsx)(u.Label,{htmlFor:t,text:n,helperText:c}),(0,a.jsxs)(p,{isChecked:g,children:[(0,a.jsx)(h,Object.assign({},b,{id:t,type:s,onChange:e=>{m(e.target.checked),null==o||o(e)}})),(0,a.jsx)(f,{tabIndex:-1,"aria-hidden":"true",isChecked:g})]})]})};const d=l.default.div`
|
|
566
|
+
display: flex;
|
|
567
|
+
gap: ${({theme:e})=>e.px.xlarge};
|
|
568
|
+
flex-direction: ${({labelSide:e})=>"left"===e?"row":"row-reverse"};
|
|
569
|
+
line-height: ${({theme:e})=>e.px.xlarge};
|
|
570
|
+
`,p=(0,l.default)(c.Box)`
|
|
571
|
+
--px-toggle: ${({theme:e})=>e.px.xlarge};
|
|
572
|
+
--px-knob: ${({theme:e})=>e.px.base};
|
|
573
|
+
|
|
574
|
+
position: relative;
|
|
575
|
+
height: var(--px-toggle);
|
|
576
|
+
width: calc(2 * var(--px-toggle));
|
|
577
|
+
border: 1px solid
|
|
578
|
+
${({isChecked:e,theme:t})=>e?t.palette.brandPrimary:t.palette.background6};
|
|
579
|
+
border-radius: calc(0.5 * var(--px-toggle));
|
|
580
|
+
|
|
581
|
+
background: ${({isChecked:e,theme:t})=>e?t.palette.brandPrimary:t.palette.background6};
|
|
582
|
+
transition: background var(--openfin-ui-globalTransition),
|
|
583
|
+
border-color var(---openfin-ui-globalTransition);
|
|
584
|
+
|
|
585
|
+
&:focus-within {
|
|
586
|
+
border-color: ${({theme:e})=>e.palette.inputFocused};
|
|
587
|
+
}
|
|
588
|
+
`,f=l.default.button`
|
|
589
|
+
position: absolute;
|
|
590
|
+
width: var(--px-knob);
|
|
591
|
+
height: var(--px-knob);
|
|
592
|
+
top: 50%;
|
|
593
|
+
left: ${({theme:e})=>e.px.xsmall};
|
|
594
|
+
transform: translateY(-50%);
|
|
595
|
+
border-radius: 50%;
|
|
596
|
+
background: ${({isChecked:e,theme:t})=>e?t.palette.brandPrimaryText:t.palette.inputColor};
|
|
597
|
+
border: none;
|
|
598
|
+
outline: none;
|
|
599
|
+
transition: left var(--openfin-ui-globalTransition), background var(--openfin-ui-globalTransition);
|
|
600
|
+
pointer-events: none; /* Allow pass-thru for native input */
|
|
601
|
+
`,h=(0,l.default)(s.RawInput)`
|
|
602
|
+
position: absolute;
|
|
603
|
+
top: 0;
|
|
604
|
+
left: 0;
|
|
605
|
+
width: 100%;
|
|
606
|
+
height: 100%;
|
|
607
|
+
opacity: 0;
|
|
608
|
+
border: none;
|
|
609
|
+
outline: none;
|
|
610
|
+
appearance: none;
|
|
611
|
+
display: block;
|
|
612
|
+
|
|
613
|
+
&:checked + ${f} {
|
|
614
|
+
left: calc(100% - ${({theme:e})=>e.px.large});
|
|
615
|
+
}
|
|
616
|
+
&:disabled + ${f} {
|
|
617
|
+
background: ${({theme:e})=>e.palette.inputDisabled};
|
|
618
|
+
}
|
|
619
|
+
&:not(:disabled) {
|
|
620
|
+
cursor: pointer;
|
|
621
|
+
}
|
|
622
|
+
`},9992:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Badge=void 0;const a=n(4848),i=o(n(2770)),l=n(2094),s=n(8543);t.Badge=e=>{var{count:t=0,max:n}=e,o=r(e,["count","max"]);let i=t.toString();return n&&t>n&&(i=`${n}+`),(0,a.jsx)(c,Object.assign({},o,{children:i}))};const c=(0,i.default)(l.Box)`
|
|
623
|
+
background: ${({theme:e})=>e.palette.statusCritical};
|
|
624
|
+
border-radius: ${({theme:e})=>e.radius.pill};
|
|
625
|
+
color: ${s.Color.white};
|
|
626
|
+
font-size: ${({theme:e})=>e.fontSize.small};
|
|
627
|
+
min-width: ${({theme:e})=>e.px.xlarge};
|
|
628
|
+
padding: 2px 6px;
|
|
629
|
+
display: inline-flex;
|
|
630
|
+
align-items: center;
|
|
631
|
+
justify-content: center;
|
|
632
|
+
box-shadow: ${({theme:e})=>e.shadow.base};
|
|
633
|
+
`},3189:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9992),t)},2942:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0;const s=n(4848),c=n(2015),u=l(n(2770)),d=n(9500),p=n(2367),f=n(2094),h=a(n(1193));t.Calendar=e=>{var{value:t,onChange:n,onDismiss:r}=e,o=i(e,["value","onChange","onDismiss"]);const[a]=(0,c.useState)(t),[l,u]=(0,c.useState)(t),p=(0,c.useCallback)((e=>{if(e instanceof Array){const t=e;u(t[0]),null==n||n(t[0])}else u(e),null==n||n(e)}),[]),f=(0,c.useCallback)((()=>{p(a||null),null==r||r()}),[]);return(0,s.jsxs)(m,{"data-testid":"react-calendar",children:[(0,s.jsx)(d.Calendar,Object.assign({value:l,onChange:p,calendarType:"gregory",defaultView:"month",minDetail:"year",next2Label:null,prev2Label:null,showFixedNumberOfWeeks:!0,selectRange:!1,allowPartialRange:!1},o)),(0,s.jsxs)(b,{children:[(0,s.jsx)(g,{"data-testid":"calendar-cancel-button","aria-label":"cancel-button",label:"Cancel",size:"base",kind:"textOnly",onClick:f}),(0,s.jsx)(g,{"data-testid":"calendar-apply-button","aria-label":"apply-button",label:"Apply",size:"base",kind:"primary",onClick:r})]})]})};const b=(0,u.default)(f.Box)`
|
|
634
|
+
width: 100%;
|
|
635
|
+
padding: ${({theme:e})=>`${e.px.small} 0px`};
|
|
636
|
+
display: flex;
|
|
637
|
+
align-items: center;
|
|
638
|
+
justify-content: flex-end;
|
|
639
|
+
margin-right: ${({theme:e})=>`${e.px.small}`};
|
|
640
|
+
background-color: ${({theme:e})=>e.palette.background4};
|
|
641
|
+
border: 1px solid ${({theme:e})=>e.palette.background6};
|
|
642
|
+
border-top: none;
|
|
643
|
+
`,g=(0,u.default)(p.Button)`
|
|
644
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.small}`};
|
|
645
|
+
margin-right: ${({theme:e})=>`${e.px.small}`};
|
|
646
|
+
`,m=(0,u.default)(f.Box)`
|
|
647
|
+
${h};
|
|
648
|
+
flex-direction: column;
|
|
649
|
+
font-style: normal;
|
|
650
|
+
font-weight: 400;
|
|
651
|
+
font-size: 12px;
|
|
652
|
+
user-select: none;
|
|
653
|
+
|
|
654
|
+
.react-calendar {
|
|
655
|
+
min-width: 230px;
|
|
656
|
+
width: 100%;
|
|
657
|
+
background-color: ${({theme:e})=>e.palette.background4};
|
|
658
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
659
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
660
|
+
border: 1px solid ${({theme:e})=>e.palette.background6};
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.react-calendar__navigation {
|
|
664
|
+
background-color: ${({theme:e})=>e.palette.background4} !important;
|
|
665
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
666
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
667
|
+
margin: 0;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.react-calendar__navigation__arrow {
|
|
671
|
+
background-color: ${({theme:e})=>e.palette.background4} !important;
|
|
672
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
673
|
+
font-size: ${({theme:e})=>e.fontSize.large};
|
|
674
|
+
|
|
675
|
+
:disabled {
|
|
676
|
+
color: ${({theme:e})=>e.palette.inputDisabled};
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.react-calendar__navigation__label {
|
|
681
|
+
background-color: ${({theme:e})=>e.palette.background4} !important;
|
|
682
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
683
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.react-calendar__viewContainer {
|
|
687
|
+
background-color: ${({theme:e})=>e.palette.background4} !important;
|
|
688
|
+
color: ${({theme:e})=>e.palette.inputColor};
|
|
689
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.react-calendar__month-view__weekdays {
|
|
693
|
+
text-decoration: none;
|
|
694
|
+
text-transform: none;
|
|
695
|
+
font-weight: normal;
|
|
696
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
697
|
+
|
|
698
|
+
abbr {
|
|
699
|
+
text-decoration: none;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.react-calendar__tile {
|
|
704
|
+
display: flex;
|
|
705
|
+
align-items: center;
|
|
706
|
+
justify-content: center;
|
|
707
|
+
background-color: ${({theme:e})=>e.palette.background4} !important;
|
|
708
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
709
|
+
border-radius: 100px;
|
|
710
|
+
aspect-ratio: 1/1;
|
|
711
|
+
cursor: pointer;
|
|
712
|
+
|
|
713
|
+
:disabled {
|
|
714
|
+
color: ${({theme:e})=>e.palette.textInactive};
|
|
715
|
+
cursor: not-allowed;
|
|
716
|
+
|
|
717
|
+
:hover {
|
|
718
|
+
border: none;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
:hover {
|
|
723
|
+
border: 2px solid ${({theme:e})=>e.palette.brandPrimary};
|
|
724
|
+
border-radius: 100px;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
:focus {
|
|
728
|
+
border: 2px solid ${({theme:e})=>e.palette.brandPrimary};
|
|
729
|
+
border-radius: 100px;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.react-calendar__tile--now {
|
|
734
|
+
border: 2px solid ${({theme:e})=>e.palette.brandPrimary} !important;
|
|
735
|
+
border-radius: 100px;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.react-calendar__tile--active {
|
|
739
|
+
background-color: ${({theme:e})=>e.palette.brandPrimary} !important;
|
|
740
|
+
color: ${({theme:e})=>e.palette.brandPrimaryText};
|
|
741
|
+
border-radius: 100px;
|
|
742
|
+
|
|
743
|
+
:focus {
|
|
744
|
+
border: 2px solid ${({theme:e})=>e.palette.brandPrimary};
|
|
745
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
746
|
+
border-radius: 100px;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
`},4706:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2942),t)},2587:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownButton=void 0;const o=n(4848),a=n(2501),i=n(2821),l=n(5917),s=n(2015),c=r(n(2770)),u=n(2094),d=n(532),p=n(8820);t.DropdownButton=(0,s.forwardRef)(((e,t)=>{var n,r,l,s,c;return(0,o.jsx)(h,{children:(0,o.jsxs)(f,{children:[(e.label||e.helperText)&&(0,o.jsx)(p.Label,{text:e.label,helperText:e.helperText,htmlFor:e.name}),(0,o.jsxs)(g,{role:"comboxbox",ref:t,name:e.name,tabIndex:e.tabIndex,"aria-activedescendant":e.activeDescendant,status:e.status,"aria-expanded":e.expanded,"aria-haspopup":"listbox","aria-controls":"dropdown-listbox",onClick:()=>e.handleClick(),as:"button","data-testid":"dropdown-button",title:null!==(r=null===(n=e.selected)||void 0===n?void 0:n.title)&&void 0!==r?r:e.placeholder,children:[(null===(l=e.selected)||void 0===l?void 0:l.iconUrl)&&(0,o.jsx)(a.ButtonImage,{src:e.selected.iconUrl}),(0,o.jsx)(i.OptionTitle,{"aria-live":"polite","data-testid":"selected-option",children:null!==(c=null===(s=e.selected)||void 0===s?void 0:s.title)&&void 0!==c?c:e.placeholder}),(0,o.jsx)(b,{status:e.status,icon:e.expanded?"ChevronUpIcon":"ChevronDownIcon"})]})]})})})),t.DropdownButton.displayName="DropdownButton";const f=(0,c.default)(u.Box)`
|
|
750
|
+
align-items: flex-start;
|
|
751
|
+
flex-direction: column;
|
|
752
|
+
justify-content: flex-start;
|
|
753
|
+
width: 100%;
|
|
754
|
+
`,h=(0,c.default)(u.Box)`
|
|
755
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
756
|
+
width: 100%;
|
|
757
|
+
user-select: none;
|
|
758
|
+
`,b=(0,c.default)(l.Icon)`
|
|
759
|
+
color: ${({theme:e,status:t})=>(0,d.getStatusColor)(e,t,"textDefault")};
|
|
760
|
+
`,g=(0,c.default)(u.Box)`
|
|
761
|
+
align-items: center;
|
|
762
|
+
background: ${({theme:e})=>e.palette.background4};
|
|
763
|
+
border: 1px solid ${({theme:e})=>e.palette.inputBackground};
|
|
764
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
765
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
766
|
+
cursor: pointer;
|
|
767
|
+
border-color: ${({theme:e,status:t})=>(0,d.getStatusColor)(e,t,"inputBorder")};
|
|
768
|
+
display: inline-flex;
|
|
769
|
+
font-weight: ${({theme:e})=>e.fontWeight.bold};
|
|
770
|
+
gap: ${({theme:e})=>e.px.small};
|
|
771
|
+
justify-content: flex-start;
|
|
772
|
+
line-height: ${({theme:e})=>e.lineHeight.ui};
|
|
773
|
+
outline: none;
|
|
774
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.small}`};
|
|
775
|
+
position: relative;
|
|
776
|
+
text-decoration: none;
|
|
777
|
+
transition: border-color var(--openfin-ui-globalTransition);
|
|
778
|
+
width: 100%;
|
|
779
|
+
white-space: nowrap;
|
|
780
|
+
|
|
781
|
+
${l.Icon} {
|
|
782
|
+
margin-left: auto;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
&:focus-within {
|
|
786
|
+
border-color: ${({theme:e})=>e.palette.inputFocused};
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
&:focus {
|
|
790
|
+
outline: 0;
|
|
791
|
+
border-color: ${({theme:e,status:t})=>(0,d.getStatusColor)(e,t,"inputFocused")};
|
|
792
|
+
}
|
|
793
|
+
`},926:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenu=void 0;const o=n(4848),a=n(2015),i=n(2094),l=r(n(2770)),s=n(2821),c=n(2501),u=n(6110),d=n(2587);t.DropdownMenu=(0,a.forwardRef)((({label:e,options:t=[[]],placeholder:n="Select an option",selected:r,onOptionHover:i,onChange:l,renderLabel:b,fitContent:g,menuPosition:m="below",maxHeight:v},x)=>{if(r&&!((e,t)=>e.some((e=>e.some((e=>e.value===t.value)))))(t,r))throw new Error(`The selected option ${r.value} is not present in the options array`);const[y,C]=(0,a.useState)(!1);(0,a.useEffect)((()=>{1===t[0].length&&_(!1)}),[t]);const _=e=>{C(null!=e?e:!y)},{focusedOption:O,handleKeyDown:w}=(0,u.useDropdownKeyboardNavigation)(t,r,y,_,l);return(0,o.jsxs)(p,{ref:x,flexDirection:"column",onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||C(!1)},onKeyDown:w,gap:"small",children:[e&&(0,o.jsx)("label",{htmlFor:"dropdown-button",children:(0,o.jsx)(s.OptionTitle,{children:e})}),(0,o.jsxs)(f,{menuPosition:m,children:[b?(0,o.jsx)(a.Fragment,{children:b(r||{title:n,value:null},y,_,O)},`render-label-${r}`):(0,o.jsx)(d.DropdownButton,{tabIndex:0,activeDescendant:`menu-option-${null==O?void 0:O.value}`,expanded:y&&t[0].length>1,handleClick:()=>_(),selected:r,placeholder:n}),t.length&&t[0].length>1&&y&&(0,o.jsx)(h,{children:(0,o.jsx)(c.Menu,{menuId:"dropdown-listbox",options:t,selected:r,handleExpandMenu:_,onOptionHover:i,onChange:l,fitContent:g,focusedOption:O,absolutePosition:!0,menuPosition:m,height:v})})]})]})})),t.DropdownMenu.displayName="DropdownMenu";const p=(0,l.default)(i.Box)`
|
|
794
|
+
user-select: none;
|
|
795
|
+
position: relative;
|
|
796
|
+
width: 100%;
|
|
797
|
+
`,f=(0,l.default)(i.Box)`
|
|
798
|
+
position: relative;
|
|
799
|
+
display: flex;
|
|
800
|
+
flex-direction: ${({menuPosition:e})=>"above"===e?"column-reverse":"column"};
|
|
801
|
+
`,h=(0,l.default)(i.Box)`
|
|
802
|
+
position: relative;
|
|
803
|
+
`},5918:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(926),t),o(n(2501),t),o(n(2587),t)},2501:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonImage=t.Menu=void 0;const o=n(4848),a=r(n(2015)),i=r(n(2770)),l=n(5917),s=n(2094),c=n(2821);t.Menu=({options:e,selected:n,menuId:r,handleExpandMenu:i,onOptionHover:l,onChange:s,width:b,height:g,header:m,focusedOption:v,absolutePosition:x,fitContent:y,menuPosition:C="below"})=>{const _=e=>{null==l||l(e)};return(0,o.jsxs)(u,{role:"listbox",flexDirection:"column",onMouseLeave:()=>{_(null)},"data-testid":"menu",id:r,width:b,height:g,absolutePosition:x,fitContent:y,menuPosition:C,children:[m&&(0,o.jsxs)(a.default.Fragment,{children:[(0,o.jsx)(p,{children:(0,o.jsx)(c.OptionTitle,{children:m})}),(0,o.jsx)(h,{})]}),e.map(((e,r)=>(0,o.jsxs)(a.default.Fragment,{children:[0!==r&&(0,o.jsx)(h,{}),e.map(((e,r)=>(0,o.jsxs)(d,{role:"option",isFocused:(null==v?void 0:v.value)===e.value,"aria-selected":(null==n?void 0:n.value)===e.value,alignItems:"center",as:"button","data-testid":`menu-option-${r}`,id:`menu-option-${e.value}`,title:e.title,onClick:()=>{e.overrideOnClick?e.overrideOnClick(e):s(e),null==i||i()},onMouseOver:()=>_(e.value),children:[(null==e?void 0:e.iconUrl)&&(0,o.jsx)(t.ButtonImage,{src:e.iconUrl,style:{marginRight:"8px"}}),(0,o.jsx)(c.OptionTitle,{children:e.title}),(null==n?void 0:n.value)===e.value?(0,o.jsx)(f,{icon:"CheckIcon"}):(0,o.jsx)(f,{children:(0,o.jsx)(o.Fragment,{})})]},r)))]},r)))]})};const u=(0,i.default)(s.Box)`
|
|
804
|
+
width: ${({width:e,fitContent:t})=>e||(t?"fit-content":"100%")};
|
|
805
|
+
max-height: ${({height:e})=>null!=e?e:"fit-content"};
|
|
806
|
+
top: ${({theme:e,menuPosition:t})=>"above"===t?"auto":`calc(100% + ${e.px.xsmall})`};
|
|
807
|
+
bottom: ${({theme:e,menuPosition:t})=>"above"===t?`calc(100% + ${e.px.xsmall})`:"auto"};
|
|
808
|
+
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
809
|
+
background: ${({theme:e})=>e.palette.background4};
|
|
810
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
811
|
+
z-index: 10;
|
|
812
|
+
overflow-y: auto;
|
|
813
|
+
border: 1px solid ${({theme:e})=>e.palette.inputBackground};
|
|
814
|
+
position: ${({absolutePosition:e})=>e?"absolute":"initial"};
|
|
815
|
+
`,d=(0,i.default)(s.Box)`
|
|
816
|
+
display: inline-flex;
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: flex-start;
|
|
819
|
+
border: ${({isFocused:e,theme:t})=>e?`1px solid ${t.palette.borderNeutral}`:"1px solid transparent"};
|
|
820
|
+
background: transparent;
|
|
821
|
+
outline: none;
|
|
822
|
+
cursor: pointer;
|
|
823
|
+
user-select: none;
|
|
824
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
825
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.small}`};
|
|
826
|
+
&:hover {
|
|
827
|
+
background: ${({theme:e})=>e.palette.background2};
|
|
828
|
+
}
|
|
829
|
+
`,p=(0,i.default)(s.Box)`
|
|
830
|
+
display: inline-flex;
|
|
831
|
+
align-items: center;
|
|
832
|
+
justify-content: flex-start;
|
|
833
|
+
background: transparent;
|
|
834
|
+
border: transparent;
|
|
835
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
836
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.small}`};
|
|
837
|
+
`,f=(0,i.default)(l.Icon)`
|
|
838
|
+
margin-left: auto;
|
|
839
|
+
`,h=(0,i.default)(s.Box)`
|
|
840
|
+
border-top: 1px solid ${({theme:e})=>e.palette.inputBackground};
|
|
841
|
+
`;t.ButtonImage=i.default.img`
|
|
842
|
+
height: ${({theme:e})=>e.iconSize.xlarge};
|
|
843
|
+
width: ${({theme:e})=>e.iconSize.xlarge};
|
|
844
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
845
|
+
`},2821:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltip=t.isElementOverflown=t.OptionTitle=void 0;const a=n(4848),i=n(2015),l=n(5963),s=n(532),c=o(n(2770));t.OptionTitle=e=>{var{children:n}=e,o=r(e,["children"]);return(0,a.jsx)(u,Object.assign({ref:(0,t.useTooltip)(n)},o,{children:n}))};const u=(0,c.default)(l.Text)`
|
|
846
|
+
${s.Mixins.textOverflow};
|
|
847
|
+
`;function d(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}t.isElementOverflown=d,t.useTooltip=e=>(0,i.useCallback)((t=>{t&&e&&d(t)&&(t.title=e)}),[])},3136:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;const a=n(4848),i=n(2015),l=o(n(2770)),s=n(2094),c=n(532),u=n(9438),d=(0,i.forwardRef)(((e,t)=>{var{tabIndex:n,icon:o,children:i,size:l="base",containerSize:s,"data-testid":c,enabled:u}=e,d=r(e,["tabIndex","icon","children","size","containerSize","data-testid","enabled"]);return(0,a.jsx)(f,Object.assign({},d,{iconSize:l,containerSize:s||l,justifyContent:"center",alignItems:"center","data-testid":c,tabIndex:n,ref:t,children:o?(0,a.jsx)(p,Object.assign({ariaLabel:d["aria-label"],icon:o},d)):i}))}));d.displayName="Icon",t.Icon=(0,l.default)(d)``;const p=(0,l.default)((e=>{var{icon:t,ariaLabel:n,enabled:o}=e,i=r(e,["icon","ariaLabel","enabled"]);const l=c.IconSet[t];return(0,a.jsx)(l,Object.assign({role:"img","aria-label":n},i))}))``,f=(0,l.default)(s.Box)`
|
|
848
|
+
/**
|
|
849
|
+
* 1. Initialize local variables with reasonable defaults
|
|
850
|
+
*/
|
|
851
|
+
--px-default: ${({theme:e})=>e.iconSize.base};
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* 2. Inject variants -- ? What are Variants
|
|
855
|
+
*/
|
|
856
|
+
${(0,c.getVariantCSS)(u.variants,u.Variant.containerSize)}
|
|
857
|
+
${(0,c.getVariantCSS)(u.variants,u.Variant.iconSize)}
|
|
858
|
+
|
|
859
|
+
width: var(--px-container, var(--px-default));
|
|
860
|
+
height: var(--px-container, var(--px-default));
|
|
861
|
+
|
|
862
|
+
/* SVG Asset */
|
|
863
|
+
|
|
864
|
+
& > *,
|
|
865
|
+
${p} {
|
|
866
|
+
display: block;
|
|
867
|
+
width: var(--px-icon, var(--px-default));
|
|
868
|
+
height: var(--px-icon, var(--px-default));
|
|
869
|
+
border-radius: inherit;
|
|
870
|
+
}
|
|
871
|
+
`},9438:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.variants=t.Variant=void 0;const r=n(2770);t.Variant={iconSize:"iconSize",containerSize:"containerSize"},t.variants={[t.Variant.iconSize]:{xsmall:r.css`
|
|
872
|
+
--px-icon: ${({theme:e})=>e.iconSize.xsmall};
|
|
873
|
+
`,small:r.css`
|
|
874
|
+
--px-icon: ${({theme:e})=>e.iconSize.small};
|
|
875
|
+
`,base:r.css`
|
|
876
|
+
--px-icon: ${({theme:e})=>e.iconSize.base};
|
|
877
|
+
`,large:r.css`
|
|
878
|
+
--px-icon: ${({theme:e})=>e.iconSize.large};
|
|
879
|
+
`,xlarge:r.css`
|
|
880
|
+
--px-icon: ${({theme:e})=>e.iconSize.xlarge};
|
|
881
|
+
`,xxlarge:r.css`
|
|
882
|
+
--px-icon: ${({theme:e})=>e.iconSize.xxlarge};
|
|
883
|
+
`,xxxlarge:r.css`
|
|
884
|
+
--px-icon: ${({theme:e})=>e.iconSize.xxxlarge};
|
|
885
|
+
`},[t.Variant.containerSize]:{xsmall:r.css`
|
|
886
|
+
--px-container: ${({theme:e})=>e.iconSize.xsmall};
|
|
887
|
+
`,small:r.css`
|
|
888
|
+
--px-container: ${({theme:e})=>e.iconSize.small};
|
|
889
|
+
`,base:r.css`
|
|
890
|
+
--px-container: ${({theme:e})=>e.iconSize.base};
|
|
891
|
+
`,large:r.css`
|
|
892
|
+
--px-container: ${({theme:e})=>e.iconSize.large};
|
|
893
|
+
`,xlarge:r.css`
|
|
894
|
+
--px-container: ${({theme:e})=>e.iconSize.xlarge};
|
|
895
|
+
`,xxlarge:r.css`
|
|
896
|
+
--px-container: ${({theme:e})=>e.iconSize.xxlarge};
|
|
897
|
+
`,xxxlarge:r.css`
|
|
898
|
+
--px-container: ${({theme:e})=>e.iconSize.xxxlarge};
|
|
899
|
+
`}}},5917:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3136),t)},2953:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BellFilledIcon=void 0;const o=n(4848);t.BellFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C11.2296 2 10.5845 2.58379 10.5078 3.35041C10.4952 3.47677 10.4057 3.58157 10.2846 3.61971C8.06554 4.31851 6.42238 6.33796 6.30033 8.77893L6.12382 12.3091C6.09936 12.7982 5.81331 13.2362 5.3753 13.4552L4.60739 13.8392C4.14761 14.0691 3.85718 14.539 3.85718 15.0531V16.25C3.85718 16.6248 4.16098 16.9286 4.53575 16.9286H19.4643C19.8391 16.9286 20.1429 16.6248 20.1429 16.25V15.0531C20.1429 14.539 19.8525 14.0691 19.3927 13.8392L18.6247 13.4552C18.1867 13.2362 17.9006 12.7982 17.8762 12.3091L17.6997 8.77893C17.5776 6.33796 15.9344 4.31851 13.7154 3.61972C13.5942 3.58157 13.5048 3.47678 13.4922 3.35041C13.4155 2.5838 12.7704 2 12 2Z",fill:t}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.28571 18.2857C9.28571 19.7848 10.5009 21 12 21C13.4991 21 14.7143 19.7848 14.7143 18.2857L9.28571 18.2857Z",fill:t})]}))}},2665:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BellIcon=void 0;const o=n(4848);t.BellIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.47306 1.22943C6.5193 1.22943 5.87291 1.98399 5.65371 2.72697C5.65207 2.72932 5.64921 2.73303 5.64485 2.73756C5.6392 2.74342 5.63264 2.74896 5.62599 2.75355C5.61926 2.75819 5.61452 2.7604 5.613 2.76102L5.61265 2.76117C5.05088 2.99251 4.39193 3.36022 3.87697 4.03357C3.35815 4.71196 3.01949 5.65571 3.01945 6.97749L5.65371 2.72697L3.01945 6.97776C3.01866 8.30165 2.87871 9.0313 2.67091 9.53439C2.48879 9.97531 2.24889 10.2658 1.912 10.6738L1.91185 10.674C1.86263 10.7336 1.81135 10.7957 1.75787 10.8612C1.14923 11.606 1.72729 12.6419 2.65986 12.6419H5.09019C5.21191 12.98 5.40726 13.2906 5.66618 13.5495C6.12827 14.0116 6.75499 14.2712 7.40848 14.2712C8.06197 14.2712 8.6887 14.0116 9.15078 13.5495C9.40971 13.2906 9.60505 12.98 9.72678 12.6419H12.2894C13.2234 12.6419 13.792 11.6008 13.1884 10.8613L13.1883 10.8612C13.1348 10.7957 13.0835 10.7336 13.0342 10.674C12.6973 10.2659 12.4574 9.9754 12.2755 9.53451C12.0678 9.03147 11.9282 8.30182 11.9282 6.97776C11.9282 5.65688 11.5891 4.71299 11.0703 4.03433C10.5553 3.36075 9.89652 2.99234 9.33499 2.76115L9.33467 2.76102C9.33409 2.76079 9.32982 2.75888 9.32313 2.75424C9.31655 2.74967 9.30981 2.74394 9.30382 2.7377C9.29875 2.73241 9.29545 2.72803 9.29363 2.72531C9.07264 1.98378 8.42691 1.22943 7.47306 1.22943ZM8.68654 12.6419H6.13042C6.1876 12.7295 6.25403 12.8115 6.3291 12.8866C6.61537 13.1729 7.00363 13.3337 7.40848 13.3337C7.81333 13.3337 8.2016 13.1729 8.48787 12.8866C8.56293 12.8115 8.62937 12.7295 8.68654 12.6419ZM6.55145 2.99716C6.69571 2.50085 7.07121 2.16693 7.47306 2.16693C7.87492 2.16693 8.2505 2.50061 8.3966 2.99785L8.39695 2.99904C8.48499 3.29575 8.72843 3.52538 8.97809 3.62806C9.45625 3.82492 9.94894 4.11119 10.3255 4.60373C10.6982 5.09119 10.9907 5.82486 10.9907 6.97776C10.9907 8.35506 11.1337 9.2255 11.4089 9.89217C11.6483 10.4723 11.9823 10.8749 12.3167 11.278C12.3653 11.3366 12.4139 11.3951 12.4622 11.4542C12.5016 11.5025 12.5046 11.5552 12.4793 11.605C12.4553 11.6524 12.3996 11.7044 12.2894 11.7044H2.65986C2.54604 11.7044 2.48955 11.6509 2.46588 11.6045C2.44119 11.5562 2.44325 11.504 2.4838 11.4544L2.48383 11.4544C2.53215 11.3952 2.58075 11.3366 2.62934 11.2781L2.62946 11.2779C2.96389 10.8748 3.29785 10.4723 3.5374 9.89229C3.81273 9.22571 3.95615 8.35533 3.95695 6.97803V6.97776C3.95695 5.82341 4.24928 5.08999 4.62165 4.60309C4.99792 4.1111 5.49044 3.82537 5.96963 3.62805C6.21661 3.52645 6.46257 3.30002 6.55111 2.99833L6.55145 2.99716Z",fill:t,role:"img"})}))}},5090:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockedIcon=void 0;const o=n(4848);t.BlockedIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99985 1.6665C5.3972 1.6665 1.66602 5.39769 1.66602 10.0003C1.66602 14.6029 5.3972 18.3342 9.99985 18.3342C14.6025 18.3342 18.3337 14.603 18.3337 10.0003C18.3337 5.39769 14.6025 1.6665 9.99985 1.6665ZM3.94666 10.0003C3.94666 6.65725 6.65677 3.94714 9.99985 3.94714C11.1976 3.94714 12.314 4.295 13.2537 4.89519L4.89471 13.2542C4.29451 12.3145 3.94666 11.198 3.94666 10.0003ZM6.40896 14.8739C7.41352 15.6153 8.65551 16.0535 9.99985 16.0535C13.3429 16.0535 16.053 13.3434 16.053 10.0003C16.053 8.656 15.6148 7.41401 14.8734 6.40945L6.40896 14.8739Z",role:"img",fill:t})}))}},6049:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BookmarkFilled=void 0;const o=n(4848);t.BookmarkFilled=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.80005 1.17578C2.52391 1.17578 2.30005 1.39964 2.30005 1.67578V10.4758C2.30005 10.6669 2.40904 10.8414 2.58086 10.9252C2.75267 11.009 2.95723 10.9875 3.10787 10.8698L5.84614 8.73052C5.93658 8.65986 6.06352 8.65986 6.15396 8.73052L8.89223 10.8698C9.04287 10.9875 9.24742 11.009 9.41924 10.9252C9.59105 10.8414 9.70005 10.6669 9.70005 10.4758V1.67578C9.70005 1.39964 9.47619 1.17578 9.20005 1.17578H2.80005Z",fill:t})}))}},7463:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BookmarkOutlined=void 0;const o=n(4848);t.BookmarkOutlined=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.29999 1.67578C2.29999 1.39964 2.52385 1.17578 2.79999 1.17578H9.19999C9.47613 1.17578 9.69999 1.39964 9.69999 1.67578V10.4758C9.69999 10.6669 9.59099 10.8414 9.41918 10.9252C9.24736 11.009 9.04281 10.9875 8.89217 10.8698L6.1539 8.73052C6.06346 8.65986 5.93652 8.65986 5.84608 8.73052L3.10781 10.8698C2.95717 10.9875 2.75261 11.009 2.5808 10.9252C2.40898 10.8414 2.29999 10.6669 2.29999 10.4758V1.67578ZM3.29999 2.17578V9.45066L5.23043 7.9425C5.68265 7.58921 6.31733 7.5892 6.76954 7.9425L8.69999 9.45066V2.17578H3.29999Z",fill:t})}))}},2353:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BrokenLinkIcon=void 0;const o=n(4848);t.BrokenLinkIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3335 3.7002C6.05735 3.7002 5.8335 3.92405 5.8335 4.2002V27.8002C5.8335 28.0763 6.05735 28.3002 6.3335 28.3002H25.6668C25.943 28.3002 26.1668 28.0763 26.1668 27.8002V12.2335H18.1335C17.8574 12.2335 17.6335 12.0097 17.6335 11.7335V3.7002H6.3335ZM18.6335 4.4073L25.4597 11.2335H18.6335V4.4073ZM4.8335 4.2002C4.8335 3.37177 5.50507 2.7002 6.3335 2.7002H18.1335C18.2661 2.7002 18.3933 2.75287 18.487 2.84664L27.0204 11.38C27.1141 11.4737 27.1668 11.6009 27.1668 11.7335V27.8002C27.1668 28.6286 26.4953 29.3002 25.6668 29.3002H6.3335C5.50507 29.3002 4.8335 28.6286 4.8335 27.8002V4.2002Z",fill:t}),(0,o.jsx)("path",{d:"M14.248 21.9084V21.8409C14.2528 21.4006 14.2966 21.0502 14.3794 20.7898C14.4647 20.5294 14.5854 20.3187 14.7417 20.1577C14.8979 19.9967 15.0861 19.8499 15.3063 19.7173C15.4483 19.6274 15.5762 19.5268 15.6898 19.4155C15.8034 19.3042 15.8934 19.1764 15.9597 19.032C16.026 18.8875 16.0591 18.7277 16.0591 18.5526C16.0591 18.3419 16.0094 18.1596 15.91 18.0057C15.8105 17.8518 15.678 17.7334 15.5123 17.6506C15.3489 17.5653 15.1666 17.5227 14.9654 17.5227C14.7831 17.5227 14.6091 17.5606 14.4434 17.6364C14.2776 17.7121 14.1403 17.8305 14.0314 17.9915C13.9225 18.1501 13.8598 18.3549 13.8432 18.6058H12.7637C12.7802 18.1797 12.888 17.8198 13.0868 17.5263C13.2857 17.2304 13.5485 17.0066 13.8752 16.8551C14.2042 16.7036 14.5676 16.6278 14.9654 16.6278C15.401 16.6278 15.7821 16.7095 16.1088 16.8729C16.4355 17.0339 16.6889 17.2599 16.8688 17.5511C17.0511 17.84 17.1422 18.1773 17.1422 18.5632C17.1422 18.8284 17.1008 19.0675 17.0179 19.2805C16.9351 19.4912 16.8167 19.6795 16.6628 19.8452C16.5113 20.0109 16.329 20.1577 16.1159 20.2855C15.9147 20.411 15.7514 20.5412 15.6259 20.6761C15.5028 20.8111 15.4128 20.9709 15.356 21.1555C15.2992 21.3402 15.2684 21.5687 15.2637 21.8409V21.9084H14.248ZM14.7843 24.0675C14.5901 24.0675 14.4232 23.9988 14.2836 23.8615C14.1439 23.7218 14.074 23.5537 14.074 23.3572C14.074 23.1631 14.1439 22.9974 14.2836 22.8601C14.4232 22.7204 14.5901 22.6506 14.7843 22.6506C14.976 22.6506 15.1417 22.7204 15.2814 22.8601C15.4235 22.9974 15.4945 23.1631 15.4945 23.3572C15.4945 23.4875 15.4614 23.607 15.3951 23.7159C15.3311 23.8224 15.2459 23.9077 15.1394 23.9716C15.0328 24.0355 14.9145 24.0675 14.7843 24.0675Z",fill:t})]}))}},3551:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronDownIcon=void 0;const o=n(4848);t.ChevronDownIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M5.05282 9.88707C5.33612 9.58489 5.81075 9.56958 6.11293 9.85287L12 15.372L17.887 9.85287C18.1892 9.56958 18.6638 9.58489 18.9471 9.88707C19.2304 10.1893 19.2151 10.6639 18.9129 10.9472L12.5129 16.9472C12.2244 17.2176 11.7755 17.2176 11.487 16.9472L5.08702 10.9472C4.78484 10.6639 4.76952 10.1893 5.05282 9.88707Z",fill:t},n))})}},1364:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronLeftIcon=void 0;const o=n(4848);t.ChevronLeftIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M14.1127 5.05272C14.4149 5.33601 14.4302 5.81064 14.1469 6.11282L8.62784 11.9999L14.1469 17.8869C14.4302 18.1891 14.4149 18.6637 14.1127 18.947C13.8106 19.2303 13.3359 19.215 13.0526 18.9128L7.05264 12.5128C6.78218 12.2243 6.78218 11.7754 7.05264 11.4869L13.0526 5.08691C13.3359 4.78473 13.8106 4.76942 14.1127 5.05272Z",fill:t},n))})}},9431:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronRightIcon=void 0;const o=n(4848);t.ChevronRightIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M9.88762 5.05256C10.1898 4.76926 10.6644 4.78457 10.9477 5.08676L16.9477 11.4868C17.2182 11.7753 17.2182 12.2242 16.9477 12.5127L10.9477 18.9127C10.6644 19.2149 10.1898 19.2302 9.88762 18.9469C9.58543 18.6636 9.57012 18.1889 9.85342 17.8868L15.3725 11.9997L9.85342 6.11267C9.57012 5.81049 9.58544 5.33586 9.88762 5.05256Z",fill:t},n))})}},8044:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronUpIcon=void 0;const o=n(4848);t.ChevronUpIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M5.05285 14.1129C5.33615 14.4151 5.81078 14.4304 6.11296 14.1471L12 8.62802L17.887 14.1471C18.1892 14.4304 18.6639 14.4151 18.9472 14.1129C19.2305 13.8107 19.2151 13.3361 18.913 13.0528L12.513 7.05282C12.2245 6.78236 11.7755 6.78236 11.4871 7.05282L5.08705 13.0528C4.78487 13.3361 4.76956 13.8107 5.05285 14.1129Z",fill:t},n))})}},2694:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionIcon=void 0;const o=n(4848);t.CollectionIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{d:"M7.77793 8.85878C7.77793 8.21485 8.29801 7.69284 8.93957 7.69284H16.8387C17.4803 7.69284 18.0004 8.21485 18.0004 8.85878V16.7872C18.0004 17.4311 17.4803 17.9531 16.8387 17.9531H8.93957C8.29801 17.9531 7.77793 17.4311 7.77793 16.7872V8.85878Z",fill:t}),(0,o.jsx)("path",{d:"M10.4912 1.99315C11.1109 1.82649 11.7481 2.19552 11.9142 2.81751L12.7573 5.97375H8.57356C7.16219 5.97381 6.01795 7.12221 6.01795 8.53882V13.8174L5.50701 13.955C4.88732 14.1216 4.25005 13.7526 4.084 13.1306L2.04024 5.47276C1.8742 4.85077 2.24186 4.21114 2.86156 4.04448L10.4912 1.99315Z",fill:t})]}))}},8626:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentAppIcon=void 0;const o=n(4848);t.ContentAppIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 14 14",fill:t,xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M10.9395 0.332031C12.4452 0.332253 13.666 1.55381 13.666 3.05957V10.9375C13.666 12.4433 12.4452 13.6648 10.9395 13.665H3.06055C1.55465 13.665 0.333008 12.4434 0.333008 10.9375V3.05957C0.333008 1.55367 1.55465 0.332031 3.06055 0.332031H10.9395ZM4.09082 4.33203C3.48843 4.33214 3 4.82141 3 5.42383V8.5752C3 9.17762 3.48843 9.66591 4.09082 9.66602H9.91016C10.5125 9.66581 11.001 9.17756 11.001 8.5752V5.42383C11.001 4.82147 10.5125 4.33224 9.91016 4.33203H4.09082Z",fill:t})}))}},5482:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.EnterpriseGlobeIcon=void 0;const o=n(4848);t.EnterpriseGlobeIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M21.6211 7.80002C20.3905 4.99598 17.9682 2.82878 14.9983 1.94153C15.9266 3.39315 16.5775 5.49525 16.9329 7.80002H21.6211ZM22.1656 14.625C22.383 13.7855 22.5 12.9067 22.5 12C22.5 11.0933 22.383 10.2145 22.1656 9.37502H17.1256C17.2069 10.2439 17.25 11.1254 17.25 12C17.25 12.8747 17.2069 13.7561 17.1256 14.625H22.1656ZM6.75002 12C6.75002 11.1254 6.79307 10.2439 6.87444 9.37502H1.83442C1.61707 10.2145 1.5 11.0933 1.5 12C1.5 12.9067 1.61707 13.7855 1.83442 14.625H6.87444C6.79307 13.7561 6.75002 12.8747 6.75002 12ZM15.675 12C15.675 11.0844 15.6252 10.2098 15.5427 9.37502H8.45731C8.37489 10.2098 8.32502 11.0844 8.32502 12C8.32502 12.9156 8.37489 13.7903 8.45731 14.625H15.5427C15.6252 13.7903 15.675 12.9156 15.675 12ZM15.34 7.80002C14.7111 4.0158 13.2983 1.5 12 1.5C10.7017 1.5 9.28892 4.0158 8.65997 7.80002H15.34ZM8.65997 16.2C9.28892 19.9842 10.7022 22.5 12 22.5C13.2978 22.5 14.7111 19.9842 15.34 16.2H8.65997ZM7.06712 7.80002C7.42254 5.49525 8.07354 3.39315 9.00174 1.94153C6.0318 2.82878 3.60945 4.99598 2.37885 7.80002H7.06712ZM16.9329 16.2C16.5775 18.5048 15.9266 20.6069 14.9983 22.0584C17.9682 21.1712 20.3905 19.0046 21.6211 16.2H16.9329ZM2.37885 16.2C3.60945 19.004 6.0318 21.1712 9.00174 22.0584C8.07354 20.6069 7.42254 18.5048 7.06712 16.2H2.37885Z",fill:t})}))}},5931:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExclamationCircledFilledIcon=void 0;const r=n(4848);t.ExclamationCircledFilledIcon=e=>(0,r.jsxs)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,r.jsx)("path",{d:"M7.99988 15.3317C11.7729 15.3317 14.8316 12.2731 14.8316 8.50007C14.8316 4.72704 11.7729 1.6684 7.99988 1.6684C4.22686 1.6684 1.16821 4.72704 1.16821 8.50007C1.16821 12.2731 4.22686 15.3317 7.99988 15.3317Z",fill:"red"}),(0,r.jsx)("mask",{id:"path-2-inside-1_6_262033",fill:"white",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99993 4.37384C7.57525 4.37384 7.23564 4.72676 7.25196 5.15113L7.42296 9.59706C7.43489 9.90708 7.68968 10.1523 7.99993 10.1523C8.31019 10.1523 8.56498 9.90708 8.5769 9.59706L8.7479 5.15113C8.76422 4.72676 8.42461 4.37384 7.99993 4.37384ZM7.99993 12.6406C8.46022 12.6406 8.83335 12.2675 8.83335 11.8072C8.83335 11.3469 8.46022 10.9738 7.99993 10.9738C7.53964 10.9738 7.1665 11.3469 7.1665 11.8072C7.1665 12.2675 7.53964 12.6406 7.99993 12.6406Z"})}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99993 4.37384C7.57525 4.37384 7.23564 4.72676 7.25196 5.15113L7.42296 9.59706C7.43489 9.90708 7.68968 10.1523 7.99993 10.1523C8.31019 10.1523 8.56498 9.90708 8.5769 9.59706L8.7479 5.15113C8.76422 4.72676 8.42461 4.37384 7.99993 4.37384ZM7.99993 12.6406C8.46022 12.6406 8.83335 12.2675 8.83335 11.8072C8.83335 11.3469 8.46022 10.9738 7.99993 10.9738C7.53964 10.9738 7.1665 11.3469 7.1665 11.8072C7.1665 12.2675 7.53964 12.6406 7.99993 12.6406Z",fill:"white"}),(0,r.jsx)("path",{d:"M7.25196 5.15113L5.64874 5.21279L5.64874 5.21279L7.25196 5.15113ZM7.42296 9.59706L9.02618 9.5354L9.02618 9.5354L7.42296 9.59706ZM8.5769 9.59706L10.1801 9.65872L8.5769 9.59706ZM8.7479 5.15113L10.3511 5.21279L10.3511 5.21279L8.7479 5.15113ZM8.85519 5.08947C8.87385 5.5747 8.48553 5.97825 7.99993 5.97825V2.76943C6.66498 2.76943 5.59744 3.87882 5.64874 5.21279L8.85519 5.08947ZM9.02618 9.5354L8.85519 5.08947L5.64874 5.21279L5.81974 9.65872L9.02618 9.5354ZM7.99993 8.54786C8.55177 8.54786 9.00498 8.98396 9.02618 9.5354L5.81974 9.65872C5.8648 10.8302 6.82758 11.7567 7.99993 11.7567V8.54786ZM6.97368 9.5354C6.99489 8.98396 7.44809 8.54786 7.99993 8.54786V11.7567C9.17228 11.7567 10.1351 10.8302 10.1801 9.65872L6.97368 9.5354ZM7.14468 5.08947L6.97368 9.5354L10.1801 9.65872L10.3511 5.21279L7.14468 5.08947ZM7.99993 5.97825C7.51434 5.97825 7.12602 5.5747 7.14468 5.08947L10.3511 5.21279C10.4024 3.87882 9.33489 2.76943 7.99993 2.76943V5.97825ZM7.22895 11.8072C7.22895 11.3814 7.57413 11.0362 7.99993 11.0362V14.245C9.34631 14.245 10.4378 13.1536 10.4378 11.8072H7.22895ZM7.99993 12.5782C7.57413 12.5782 7.22895 12.233 7.22895 11.8072H10.4378C10.4378 10.4608 9.34631 9.36937 7.99993 9.36937V12.5782ZM8.77091 11.8072C8.77091 12.233 8.42573 12.5782 7.99993 12.5782V9.36937C6.65355 9.36937 5.5621 10.4608 5.5621 11.8072H8.77091ZM7.99993 11.0362C8.42573 11.0362 8.77091 11.3814 8.77091 11.8072H5.5621C5.5621 13.1536 6.65355 14.245 7.99993 14.245V11.0362Z",fill:"white",mask:"url(#path-2-inside-1_6_262033)"})]}))},9687:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackGlobeIcon=void 0;const o=n(4848);t.FallbackGlobeIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.4141 5.19998C13.5937 3.33062 11.9788 1.88582 9.99886 1.29432C10.6177 2.26207 11.0517 3.66347 11.2886 5.19998H14.4141ZM14.7771 9.74998C14.922 9.19033 15 8.60443 15 7.99998C15 7.39553 14.922 6.80963 14.7771 6.24998H11.4171C11.4713 6.82923 11.5 7.41688 11.5 7.99998C11.5 8.58308 11.4713 9.17073 11.4171 9.74998H14.7771ZM4.50001 7.99998C4.50001 7.41688 4.52871 6.82923 4.58296 6.24998H1.22295C1.07805 6.80963 1 7.39553 1 7.99998C1 8.60443 1.07805 9.19033 1.22295 9.74998H4.58296C4.52871 9.17073 4.50001 8.58308 4.50001 7.99998ZM10.45 7.99998C10.45 7.38958 10.4168 6.80648 10.3618 6.24998H5.63821C5.58326 6.80648 5.55001 7.38958 5.55001 7.99998C5.55001 8.61038 5.58326 9.19348 5.63821 9.74998H10.3618C10.4168 9.19348 10.45 8.61038 10.45 7.99998ZM10.2267 5.19998C9.80741 2.67717 8.86556 0.999969 8.00001 0.999969C7.13446 0.999969 6.19261 2.67717 5.77331 5.19998H10.2267ZM5.77331 10.8C6.19261 13.3228 7.13481 15 8.00001 15C8.86521 15 9.80741 13.3228 10.2267 10.8H5.77331ZM4.71141 5.19998C4.94836 3.66347 5.38236 2.26207 6.00116 1.29432C4.0212 1.88582 2.4063 3.33062 1.5859 5.19998H4.71141ZM11.2886 10.8C11.0517 12.3365 10.6177 13.7379 9.99886 14.7056C11.9788 14.1141 13.5937 12.6697 14.4141 10.8H11.2886ZM1.5859 10.8C2.4063 12.6693 4.0212 14.1141 6.00116 14.7056C5.38236 13.7379 4.94836 12.3365 4.71141 10.8H1.5859Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})}))}},7474:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilledCircleIcon=void 0;const o=n(4848);t.FilledCircleIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("g",{id:".Slot",children:(0,o.jsx)("circle",{id:"Ellipse 1",cx:"8",cy:"8",r:"8",fill:t})})}))}},8424:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIcon=void 0;const o=n(4848);t.FilterIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M4 6.5C4 6.36739 4.05268 6.24021 4.14645 6.14645C4.24021 6.05268 4.36739 6 4.5 6H7.5C7.63261 6 7.75979 6.05268 7.85355 6.14645C7.94732 6.24021 8 6.36739 8 6.5C8 6.63261 7.94732 6.75979 7.85355 6.85355C7.75979 6.94732 7.63261 7 7.5 7H4.5C4.36739 7 4.24021 6.94732 4.14645 6.85355C4.05268 6.75979 4 6.63261 4 6.5ZM2 3.5C2 3.36739 2.05268 3.24021 2.14645 3.14645C2.24021 3.05268 2.36739 3 2.5 3H9.5C9.63261 3 9.75979 3.05268 9.85355 3.14645C9.94732 3.24021 10 3.36739 10 3.5C10 3.63261 9.94732 3.75979 9.85355 3.85355C9.75979 3.94732 9.63261 4 9.5 4H2.5C2.36739 4 2.24021 3.94732 2.14645 3.85355C2.05268 3.75979 2 3.63261 2 3.5ZM0 0.5C0 0.367392 0.0526785 0.240215 0.146447 0.146447C0.240215 0.0526785 0.367392 0 0.5 0H11.5C11.6326 0 11.7598 0.0526785 11.8536 0.146447C11.9473 0.240215 12 0.367392 12 0.5C12 0.632608 11.9473 0.759785 11.8536 0.853553C11.7598 0.947321 11.6326 1 11.5 1H0.5C0.367392 1 0.240215 0.947321 0.146447 0.853553C0.0526785 0.759785 0 0.632608 0 0.5Z",fill:t})}))}},1387:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FloppyDiskIcon=void 0;const o=n(4848);t.FloppyDiskIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M1.875 2.1875C1.875 2.15298 1.90298 2.125 1.9375 2.125H8.23039C8.24697 2.125 8.26287 2.13158 8.27459 2.14331L9.98169 3.85041C9.99341 3.86213 10 3.87803 10 3.89461V10.1875C10 10.222 9.97202 10.25 9.9375 10.25H1.9375C1.90298 10.25 1.875 10.222 1.875 10.1875V2.1875ZM1.9375 1.25C1.41973 1.25 1 1.66973 1 2.1875V10.1875C1 10.7053 1.41973 11.125 1.9375 11.125H9.9375C10.4553 11.125 10.875 10.7053 10.875 10.1875V3.89461C10.875 3.64597 10.7762 3.40751 10.6004 3.23169L8.89331 1.52459C8.71749 1.34877 8.47903 1.25 8.23039 1.25H1.9375ZM2.84924 3.4081C2.84924 3.23754 2.98751 3.09927 3.15807 3.09927H7.4816C7.65215 3.09927 7.79042 3.23754 7.79042 3.4081V4.64339C7.79042 4.81395 7.65215 4.95221 7.4816 4.95221H3.15807C2.98751 4.95221 2.84924 4.81395 2.84924 4.64339V3.4081ZM4.5368 6.63977C4.82638 6.35019 5.21913 6.18751 5.62865 6.18751C6.03818 6.18751 6.43093 6.35019 6.72051 6.63977C7.01009 6.92935 7.17277 7.3221 7.17277 7.73163C7.17277 8.14115 7.01009 8.5339 6.72051 8.82348C6.43093 9.11306 6.03818 9.27574 5.62865 9.27574C5.21913 9.27574 4.82638 9.11306 4.5368 8.82348C4.24722 8.5339 4.08454 8.14115 4.08454 7.73163C4.08454 7.3221 4.24722 6.92935 4.5368 6.63977Z",fill:t,role:"img"})}))}},9173:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsIcon=void 0;const o=n(4848);t.FragmentsIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M8.80001 4.80002H4.80001C3.91761 4.80002 3.20001 5.51762 3.20001 6.40002V10.4C3.20001 11.2824 3.91761 12 4.80001 12H8.80001C9.68241 12 10.4 11.2824 10.4 10.4V6.40002C10.4 5.51762 9.68241 4.80002 8.80001 4.80002ZM20.3592 6.46882L17.5312 3.64002C16.908 3.01602 15.892 3.01602 15.2688 3.64002L12.4408 6.46882C11.8168 7.09282 11.8168 8.10722 12.4408 8.73122L15.2688 11.56C15.5808 11.872 15.9904 12.028 16.4 12.028C16.8096 12.028 17.2192 11.872 17.5312 11.56L20.3592 8.73122C20.9832 8.10722 20.9832 7.09282 20.3592 6.46882ZM8.80001 13.6H4.80001C3.91761 13.6 3.20001 14.3176 3.20001 15.2V19.2C3.20001 20.0824 3.91761 20.8 4.80001 20.8H8.80001C9.68241 20.8 10.4 20.0824 10.4 19.2V15.2C10.4 14.3176 9.68241 13.6 8.80001 13.6ZM17.6 13.6H13.6C12.7176 13.6 12 14.3176 12 15.2V19.2C12 20.0824 12.7176 20.8 13.6 20.8H17.6C18.4824 20.8 19.2 20.0824 19.2 19.2V15.2C19.2 14.3176 18.4824 13.6 17.6 13.6Z",fill:t})}))}},8387:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LightBulbFilledIcon=void 0;const o=n(4848);t.LightBulbFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{d:"M1.83 1.31008C2.24409 0.891667 2.73768 0.560307 3.28174 0.335504C3.82581 0.110701 4.40934 -0.00300333 4.998 0.00108291C6.18628 -0.00310785 7.32905 0.457733 8.182 1.28508C8.59881 1.68719 8.93046 2.16903 9.15723 2.70194C9.384 3.23485 9.50125 3.80793 9.502 4.38708C9.502 5.68008 8.917 6.83008 7.883 7.82508L7.577 9.00008H2.466L2.236 8.03708C1.154 6.90708 0.556 5.81908 0.5 4.58208V4.54408C0.54 3.24808 1.033 2.12108 1.831 1.31108L1.83 1.31008Z",fill:t}),(0,o.jsx)("path",{d:"M2.7041 10L2.9371 10.978L2.9451 11C3.0451 11.297 3.2371 11.544 3.4791 11.717C3.7301 11.897 4.0371 11.999 4.3611 11.999H4.3631L5.7461 11.995L5.7671 11.993C6.07587 11.9669 6.36913 11.8465 6.6071 11.648C6.8381 11.454 7.0131 11.188 7.0871 10.874L7.3161 10H2.7041V10Z",fill:t})]}))}},7901:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LightBulbOutlinedIcon=void 0;const o=n(4848);t.LightBulbOutlinedIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M4.99766 0.00100149C3.76866 0.00100149 2.64766 0.482002 1.82966 1.311C1.03166 2.121 0.539657 3.248 0.499657 4.544L0.498657 4.563V4.583C0.555657 5.819 1.15366 6.907 2.23566 8.037L2.93766 10.978L2.94466 11C3.04466 11.297 3.23666 11.544 3.47866 11.717C3.72966 11.897 4.03666 11.999 4.36166 11.999L5.74566 11.995L5.76666 11.993C6.07542 11.9669 6.36869 11.8465 6.60666 11.648C6.83766 11.454 7.01266 11.188 7.08666 10.874L7.88266 7.824C8.91666 6.83 9.50066 5.68 9.50066 4.387C9.49991 3.80785 9.38266 3.23477 9.15589 2.70186C8.92912 2.16895 8.59746 1.68711 8.18066 1.285C7.32796 0.457894 6.18559 -0.00292788 4.99766 0.00100149ZM2.54266 2.013C2.86344 1.68871 3.24596 1.43198 3.66762 1.258C4.08928 1.08401 4.54153 0.996283 4.99766 1C5.92514 0.995784 6.81744 1.35471 7.48366 2C7.80471 2.30904 8.06023 2.67957 8.23496 3.08951C8.40969 3.49945 8.50005 3.94038 8.50066 4.386C8.50066 5.377 8.04766 6.312 7.09666 7.191L6.98866 7.291L6.54266 9H3.49366L3.14466 7.536L3.04766 7.436C1.99966 6.372 1.54766 5.48 1.49866 4.557C1.53666 3.509 1.93266 2.632 2.54266 2.014V2.013ZM3.73266 10H6.28266L6.11766 10.627L6.11466 10.64C6.09211 10.7342 6.03944 10.8185 5.96466 10.88C5.88873 10.9435 5.79595 10.9834 5.69766 10.995L4.36066 11C4.25321 11.0003 4.14833 10.9671 4.06066 10.905C3.9877 10.8536 3.93139 10.782 3.89866 10.699L3.73166 10H3.73266Z",fill:t})}))}},264:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LockedClosedFilledIcon=void 0;const o=n(4848);t.LockedClosedFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M5.00003 4.63623C5.00003 3.76052 5.24222 3.10561 5.64327 2.67378C6.03938 2.24727 6.64585 1.97852 7.50143 1.97852C8.35748 1.97852 8.96309 2.24673 9.35827 2.6723C9.75841 3.10321 10 3.75729 10 4.63346V6.50021H11V4.63346C11 3.57917 10.7076 2.65578 10.0911 1.99183C9.46955 1.32254 8.57586 0.978516 7.50143 0.978516C6.42678 0.978516 5.53255 1.3235 4.91052 1.99328C4.29342 2.65775 4.00003 3.58169 4.00003 4.63623V6.50021H5.00003V4.63623ZM3 6.50021C2.72386 6.50021 2.5 6.72407 2.5 7.00021V13.0002C2.5 13.2764 2.72386 13.5002 3 13.5002H12C12.2761 13.5002 12.5 13.2764 12.5 13.0002V7.00021C12.5 6.72407 12.2761 6.50021 12 6.50021H3Z",fill:t,role:"img"})}))}},686:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.MinimizeIcon=void 0;const o=n(4848);t.MinimizeIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.16602 12C2.16602 11.7239 2.38987 11.5 2.66602 11.5H13.3327C13.6088 11.5 13.8327 11.7239 13.8327 12C13.8327 12.2761 13.6088 12.5 13.3327 12.5H2.66602C2.38987 12.5 2.16602 12.2761 2.16602 12Z",fill:t,role:"img"})}))}},245:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OpenFinIcon=void 0;const o=n(4848);t.OpenFinIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.2685 5.73916C14.1785 5.64906 14.0817 5.56592 13.979 5.49047L13.9412 5.46429C13.9196 5.44919 13.8984 5.43358 13.8763 5.41898C13.8541 5.40438 13.8284 5.38878 13.8048 5.37418L13.7715 5.35354C13.7418 5.33592 13.7116 5.3193 13.6814 5.30319L13.6638 5.29363C13.3065 5.10618 12.9091 5.00807 12.5057 5.00768C11.8417 5.00715 11.2052 4.74291 10.7362 4.2731C10.2671 3.8033 10.004 3.16642 10.0046 2.50262C10.0065 1.49222 9.39933 0.580219 8.46634 0.191911C7.53335 -0.196397 6.45826 0.015466 5.74244 0.728701C5.02661 1.44194 4.81103 2.51607 5.19621 3.4502C5.5814 4.38433 6.4915 4.99447 7.5021 4.9961C8.16603 4.99664 8.80256 5.26088 9.27161 5.73068C9.74066 6.20049 10.0038 6.83736 10.0031 7.50117C10.0026 8.16497 9.7383 8.80137 9.2684 9.27032C8.7985 9.73928 8.1615 10.0024 7.49756 10.0017C6.83413 10.0022 6.19772 9.73894 5.72865 9.26987C5.25958 8.8008 4.99636 8.16447 4.99703 7.50117C4.99703 6.12155 3.87841 5.00315 2.49852 5.00315C1.11862 5.00315 0 6.12155 0 7.50117C0 8.88078 1.11862 9.99918 2.49852 9.99918C3.87841 9.99918 4.99703 11.1176 4.99703 12.4972C4.99703 13.8795 6.1178 15 7.50033 15C8.88287 15 10.0036 13.8795 10.0036 12.4972C10.0036 11.1176 11.1223 9.99918 12.5021 9.99918C12.9482 9.99948 13.3862 9.88022 13.7705 9.65383C13.8038 9.6342 13.8365 9.61356 13.8712 9.59241L13.8783 9.58788C13.9085 9.56775 13.9387 9.5466 13.9679 9.52546L13.981 9.5164C14.0072 9.49727 14.0314 9.47662 14.0591 9.45598L14.0812 9.43887C14.1054 9.41923 14.1286 9.39859 14.1522 9.37795L14.1779 9.3558C14.2081 9.32862 14.2378 9.30042 14.267 9.27123L14.2716 9.2672C14.3794 9.15887 14.4772 9.04091 14.5636 8.9148C14.5824 8.88761 14.6005 8.86009 14.618 8.83223C15.237 7.84584 15.092 6.56267 14.2685 5.73916Z",fill:t,role:"img"})}))}},7867:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PageIcon=void 0;const o=n(4848);t.PageIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M11.9997 0.666992H1.99967C1.08051 0.666992 0.333008 1.41449 0.333008 2.33366V15.667C0.333008 16.5862 1.08051 17.3337 1.99967 17.3337H11.9997C12.9188 17.3337 13.6663 16.5862 13.6663 15.667V2.33366C13.6663 1.41449 12.9188 0.666992 11.9997 0.666992ZM7.41634 8.16699H3.24967C3.01967 8.16699 2.83301 7.98033 2.83301 7.75033V6.91699C2.83301 6.68699 3.01967 6.50033 3.24967 6.50033H7.41634C7.64634 6.50033 7.83301 6.68699 7.83301 6.91699V7.75033C7.83301 7.98033 7.64634 8.16699 7.41634 8.16699ZM10.7497 4.83366H3.24967C3.01967 4.83366 2.83301 4.64699 2.83301 4.41699V3.58366C2.83301 3.35366 3.01967 3.16699 3.24967 3.16699H10.7497C10.9797 3.16699 11.1663 3.35366 11.1663 3.58366V4.41699C11.1663 4.64699 10.9797 4.83366 10.7497 4.83366Z",fill:t})}))}},6224:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.RedDotIcon=void 0;const o=n(4848);t.RedDotIcon=e=>{var t=r(e,[]);return(0,o.jsx)("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:(0,o.jsx)("rect",{x:"0.5",y:"0.5",width:"7",height:"7",rx:"3.5",fill:"#C21313"})}))}},5598:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StackIcon=void 0;const o=n(4848);t.StackIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.2178 3.00092C14.1504 3.00514 14.0839 3.01844 14.02 3.04047L3.51986 6.4287C3.36864 6.47743 3.23681 6.57291 3.14335 6.70138C3.04989 6.82986 2.99964 6.98469 2.99983 7.14356V15.754C2.99843 15.8534 3.01679 15.9521 3.05385 16.0443C3.09091 16.1366 3.14593 16.2205 3.21571 16.2913C3.2855 16.3621 3.36865 16.4183 3.46035 16.4566C3.55204 16.495 3.65045 16.5147 3.74984 16.5147C3.84924 16.5147 3.94764 16.495 4.03934 16.4566C4.13103 16.4183 4.21419 16.3621 4.28397 16.2913C4.35375 16.2205 4.40878 16.1366 4.44584 16.0443C4.4829 15.9521 4.50126 15.8534 4.49985 15.754V7.68849L14.48 4.46725C14.649 4.41529 14.7942 4.30532 14.89 4.15674C14.9858 4.00815 15.026 3.8305 15.0036 3.65514C14.9812 3.47977 14.8975 3.31797 14.7674 3.19827C14.6373 3.07857 14.4691 3.00868 14.2925 3.00092C14.2676 2.99967 14.2427 2.99967 14.2178 3.00092ZM17.2178 5.25095C17.1504 5.25517 17.0839 5.26848 17.0201 5.2905L6.5199 8.67874C6.36869 8.72746 6.23685 8.82294 6.14339 8.95142C6.04993 9.07989 5.99968 9.23472 5.99988 9.39359V18.0041C5.99847 18.1035 6.01683 18.2021 6.05389 18.2944C6.09095 18.3866 6.14597 18.4705 6.21576 18.5413C6.28554 18.6121 6.3687 18.6683 6.46039 18.7066C6.55209 18.745 6.65049 18.7648 6.74989 18.7648C6.84928 18.7648 6.94769 18.745 7.03938 18.7066C7.13108 18.6683 7.21423 18.6121 7.28402 18.5413C7.3538 18.4705 7.40882 18.3866 7.44588 18.2944C7.48294 18.2021 7.5013 18.1035 7.4999 18.0041V9.93852L17.48 6.71728C17.649 6.66533 17.7942 6.55535 17.89 6.40677C17.9858 6.25818 18.0261 6.08054 18.0036 5.90517C17.9812 5.72981 17.8976 5.568 17.7675 5.4483C17.6374 5.32861 17.4691 5.25871 17.2925 5.25095C17.2676 5.24971 17.2427 5.24971 17.2178 5.25095ZM20.193 7.50538C20.1344 7.50982 20.0758 7.52197 20.0186 7.54053L9.51848 10.9288C9.20948 11.0293 8.99992 11.3181 8.99992 11.6436V20.2541C8.99992 20.4979 9.11829 20.7262 9.3178 20.8664C9.44605 20.9572 9.59693 21.0041 9.74993 21.0041C9.83468 21.0041 9.92014 20.9894 10.0019 20.9602L20.502 17.2101C20.8006 17.1044 21.0001 16.8213 21.0001 16.504V8.25392C21.0001 8.01467 20.8853 7.78922 20.691 7.64747C20.5459 7.54172 20.3688 7.49205 20.193 7.50538Z",fill:t})}))}},1686:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StorefrontIcon=void 0;const o=n(4848);t.StorefrontIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M5 3C4.448 3 4 3.448 4 4C4 4.552 4.448 5 5 5H19C19.552 5 20 4.552 20 4C20 3.448 19.552 3 19 3H5ZM4.61719 7C4.23819 7 3.89361 7.21373 3.72461 7.55273L2.10547 10.7891C2.03547 10.9281 2 11.0813 2 11.2363V12C2 12.552 2.448 13 3 13V19C3 20.105 3.895 21 5 21H19C20.105 21 21 20.105 21 19V13C21.552 13 22 12.552 22 12V11.2363C22 11.0813 21.9645 10.9281 21.8945 10.7891L20.2754 7.55273C20.1064 7.21373 19.7618 7 19.3828 7H4.61719ZM6 13H18C18.552 13 19 13.448 19 14V18C19 18.552 18.552 19 18 19H6C5.448 19 5 18.552 5 18V14C5 13.448 5.448 13 6 13Z",fill:t})}))}},3332:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SupertabIcon=void 0;const o=n(4848);t.SupertabIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{d:"M7.25684 14.6641H2.81152C1.99307 14.664 1.33014 14.0011 1.33008 13.1826V10.2197H7.25684V14.6641Z",fill:t}),(0,o.jsx)("path",{d:"M14.665 13.1826C14.665 14.0011 14.0012 14.6641 13.1826 14.6641H8.73828V7.25586H14.665V13.1826Z",fill:t}),(0,o.jsx)("path",{d:"M7.25684 8.73828H1.33008V2.81152C1.33033 1.99324 1.99319 1.33019 2.81152 1.33008H7.25684V8.73828Z",fill:t}),(0,o.jsx)("path",{d:"M13.1826 1.33105C14.0012 1.33105 14.665 1.99393 14.665 2.8125V5.77539H8.73828V1.33105H13.1826Z",fill:t})]}))}},6253:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceIcon=void 0;const o=n(4848);t.WorkspaceIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},n,{children:[(0,o.jsx)("path",{d:"M6.73811 2.8125H3.53137C3.13442 2.8125 2.81262 3.1343 2.81262 3.53125V7.51204C2.81262 7.909 3.13442 8.23079 3.53137 8.23079H6.73811C7.13506 8.23079 7.45686 7.909 7.45686 7.51204V3.53125C7.45686 3.1343 7.13506 2.8125 6.73811 2.8125Z",fill:t}),(0,o.jsx)("path",{d:"M12.1565 6.26758H8.94971C8.75123 6.26758 8.59033 6.42848 8.59033 6.62696V11.3818C8.59033 11.5803 8.75123 11.7412 8.94971 11.7412H12.1565C12.3549 11.7412 12.5158 11.5803 12.5158 11.3818V6.62696C12.5158 6.42848 12.3549 6.26758 12.1565 6.26758Z",stroke:t,strokeWidth:"0.718753"}),(0,o.jsx)("path",{d:"M12.1564 2.8125H8.94971C8.55275 2.8125 8.23096 3.1343 8.23096 3.53125V4.41587C8.23096 4.81283 8.55275 5.13463 8.94971 5.13463H12.1564C12.5534 5.13463 12.8752 4.81283 12.8752 4.41587V3.53125C12.8752 3.1343 12.5534 2.8125 12.1564 2.8125Z",fill:t}),(0,o.jsx)("path",{d:"M6.73798 9.00488H3.53125C3.1343 9.00488 2.8125 9.32668 2.8125 9.72364V11.3823C2.8125 11.7793 3.1343 12.1011 3.53125 12.1011H6.73798C7.13494 12.1011 7.45674 11.7793 7.45674 11.3823V9.72364C7.45674 9.32668 7.13494 9.00488 6.73798 9.00488Z",fill:t})]}))}},6283:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8626),t),o(n(245),t),o(n(2665),t),o(n(6253),t),o(n(264),t),o(n(686),t),o(n(8387),t),o(n(7901),t),o(n(8424),t),o(n(2353),t),o(n(1387),t),o(n(5598),t),o(n(2953),t),o(n(1686),t),o(n(9173),t),o(n(9431),t),o(n(1364),t),o(n(8044),t),o(n(3551),t),o(n(5931),t),o(n(7474),t),o(n(7867),t),o(n(6224),t),o(n(6049),t),o(n(7463),t),o(n(9687),t),o(n(5090),t),o(n(5482),t),o(n(3332),t),o(n(2694),t)},228:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IconWithBadge=void 0;const a=n(4848),i=o(n(2770)),l=n(3136),s=n(3189),c=n(2094);t.IconWithBadge=e=>{var{count:t=0,max:n}=e,o=r(e,["count","max"]);return(0,a.jsxs)(u,{children:[(0,a.jsx)(l.Icon,Object.assign({},o)),t>0&&(0,a.jsx)(d,{count:t,max:n})]})};const u=(0,i.default)(c.Box)`
|
|
900
|
+
position: relative;
|
|
901
|
+
`,d=(0,i.default)(s.Badge)`
|
|
902
|
+
position: absolute;
|
|
903
|
+
transform: scale(70%);
|
|
904
|
+
right: -${({theme:e})=>e.px.base};
|
|
905
|
+
top: -${({theme:e})=>e.px.small};
|
|
906
|
+
`},4416:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(228),t)},8820:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Label=void 0;const o=n(4848),a=r(n(2770)),i=n(2094),l=n(5963),s=n(5917);t.Label=({icon:e,text:t,helperText:n,htmlFor:r,inline:a})=>(0,o.jsxs)(p,{inline:a,children:[(0,o.jsxs)("div",{style:{display:"flex"},children:["function"==typeof e?e():e?(0,o.jsx)(d,{icon:e}):null,(0,o.jsx)(u,{as:"label",htmlFor:r,weight:"bold",children:t})]}),n&&(0,o.jsx)(c,{children:n})]});const c=(0,a.default)(l.Text)`
|
|
907
|
+
size: ${({theme:e})=>e.fontSize.base};
|
|
908
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
909
|
+
`,u=(0,a.default)(l.Text)`
|
|
910
|
+
text-transform: capitalize;
|
|
911
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
912
|
+
`,d=(0,a.default)(s.Icon)`
|
|
913
|
+
margin-right: ${({theme:e})=>e.px.xsmall};
|
|
914
|
+
min-width: ${({theme:e})=>e.iconSize.small};
|
|
915
|
+
min-height: ${({theme:e})=>e.iconSize.small};
|
|
916
|
+
align-self: center;
|
|
917
|
+
`,p=(0,a.default)(i.Box)`
|
|
918
|
+
display: flex;
|
|
919
|
+
flex-direction: column;
|
|
920
|
+
margin-bottom: ${({theme:e})=>e.px.small};
|
|
921
|
+
|
|
922
|
+
${({inline:e,theme:t})=>e&&`cursor: pointer;\n margin-bottom: 0;\n margin-left: ${t.px.small};\n font-weight: ${t.fontWeight.normal};\n `}
|
|
923
|
+
`},2387:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5136),t),o(n(2799),t)},5136:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Loader=void 0;const a=n(4848),i=o(n(2770)),l=n(5917);t.Loader=(0,i.default)((e=>{var t=r(e,[]);return(0,a.jsx)(l.Icon,Object.assign({},t,{children:(0,a.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:(0,a.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,a.jsxs)("g",{transform:"translate(1 1)",strokeWidth:"2",children:[(0,a.jsx)("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),(0,a.jsx)("path",{d:"M36 18c0-9.94-8.06-18-18-18",children:(0,a.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})})]})})})}))}))``},2799:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OpenfinLoader=void 0;const l=n(4848),s=a(n(2770)),c=n(5917);t.OpenfinLoader=(0,s.default)((e=>{var t=i(e,[]);return(0,l.jsx)(c.Icon,Object.assign({},t,{children:(0,l.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)(u,{d:"\n M 17.1222 6.887\n C 17.0141 6.77887 16.898 6.67911 16.7748 6.58856\n L 16.7295 6.55715\n C 16.7035 6.53903 16.6781 6.5203 16.6515 6.50278\n C 16.625 6.48526 16.5941 6.46653 16.5657 6.44901\n L 16.5259 6.42424\n C 16.4902 6.4031 16.454 6.38316 16.4177 6.36383\n L 16.3966 6.35236\n C 15.9678 6.12742 15.491 6.00968 15.0068 6.00922\n C 14.2101 6.00858 13.4463 5.69149 12.8834 5.12772\n C 12.3205 4.56395 12.0048 3.79971 12.0056 3.00314\n C 12.0078 1.79066 11.2792 0.696263 10.1596 0.230293\n C 9.04002 -0.235676 7.74992 0.0185592 6.89093 0.874441\n C 6.03194 1.73032 5.77323 3.01928 6.23546 4.14024\n C 6.69768 5.26119 7.7898 5.99337 9.00251 5.99532\n C 9.79924 5.99596 10.5631 6.31305 11.1259 6.87682\n C 11.6888 7.44059 12.0046 8.20484 12.0038 9.0014\n C 12.0031 9.79797 11.686 10.5616 11.1221 11.1244\n C 10.5582 11.6871 9.7938 12.0028 8.99708 12.002\n C 8.20096 12.0027 7.43727 11.6867 6.87438 11.1238\n C 6.3115 10.561 5.99564 9.79736 5.99644 9.0014\n C 5.99644 7.34586 4.65409 6.00378 2.99822 6.00378\n C 1.34235 6.00378 0 7.34586 0 9.0014\n C 0 10.6569 1.34235 11.999 2.99822 11.999\n C 4.65409 11.999 5.99644 13.3411 5.99644 14.9966\n C 5.99644 16.6553 7.34136 18 9.0004 18\n C 10.6594 18 12.0044 16.6553 12.0044 14.9966\n C 12.0044 13.3411 13.3467 11.999 15.0026 11.999\n C 15.5379 11.9994 16.0635 11.8563 16.5247 11.5846\n C 16.5645 11.561 16.6038 11.5363 16.6455 11.5109\n L 16.654 11.5055\n C 16.6902 11.4813 16.7265 11.4559 16.7615 11.4305\n L 16.7772 11.4197\n C 16.8086 11.3967 16.8376 11.372 16.8709 11.3472\n L 16.8975 11.3266\n C 16.9265 11.3031 16.9543 11.2783 16.9827 11.2535\n L 17.0135 11.227\n C 17.0497 11.1943 17.0854 11.1605 17.1204 11.1255\n L 17.1259 11.1206\n C 17.2553 10.9906 17.3726 10.8491 17.4763 10.6978\n C 17.4989 10.6651 17.5206 10.6321 17.5416 10.5987\n C 18.2843 9.415 18.1104 7.8752 17.1222 6.887Z\n ",fill:"currentColor"}),(0,l.jsx)(d,{cx:"9",cy:"3",r:"2.9",fill:"currentColor",angle:0}),(0,l.jsx)(d,{cx:"15",cy:"9",r:"2.75",fill:"currentColor",angle:-90}),(0,l.jsx)(d,{cx:"9",cy:"15",r:"2.5",fill:"currentColor",angle:-180}),(0,l.jsx)(d,{cx:"3",cy:"9",r:"2.25",fill:"currentColor",angle:-270})]})}))}))``;const u=s.default.path`
|
|
924
|
+
@keyframes logoAnimation {
|
|
925
|
+
0% {
|
|
926
|
+
opacity: 1;
|
|
927
|
+
}
|
|
928
|
+
25% {
|
|
929
|
+
opacity: 1;
|
|
930
|
+
}
|
|
931
|
+
35% {
|
|
932
|
+
opacity: 0;
|
|
933
|
+
}
|
|
934
|
+
60% {
|
|
935
|
+
opacity: 0;
|
|
936
|
+
}
|
|
937
|
+
75% {
|
|
938
|
+
opacity: 1;
|
|
939
|
+
}
|
|
940
|
+
100% {
|
|
941
|
+
opacity: 1;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
animation: logoAnimation 2s ease-in-out infinite;
|
|
946
|
+
`,d=s.default.circle`
|
|
947
|
+
transform-origin: center;
|
|
948
|
+
animation: ${({angle:e})=>(e=>s.keyframes`
|
|
949
|
+
0% {
|
|
950
|
+
transform: rotate(0deg);
|
|
951
|
+
opacity: 0;
|
|
952
|
+
}
|
|
953
|
+
25% {
|
|
954
|
+
transform: rotate(0deg);
|
|
955
|
+
opacity: 1;
|
|
956
|
+
}
|
|
957
|
+
30% {
|
|
958
|
+
transform: rotate(0deg);
|
|
959
|
+
opacity: 1;
|
|
960
|
+
}
|
|
961
|
+
50% {
|
|
962
|
+
transform: rotate(${e}deg);
|
|
963
|
+
opacity: 1;
|
|
964
|
+
}
|
|
965
|
+
70% {
|
|
966
|
+
transform: rotate(-360deg);
|
|
967
|
+
opacity: 1;
|
|
968
|
+
}
|
|
969
|
+
75% {
|
|
970
|
+
transform: rotate(-360deg);
|
|
971
|
+
opacity: 0;
|
|
972
|
+
}
|
|
973
|
+
100% {
|
|
974
|
+
transform: rotate(-360deg);
|
|
975
|
+
opacity: 0;
|
|
976
|
+
}
|
|
977
|
+
`)(e)} 2s ease-in-out infinite;
|
|
978
|
+
`},3679:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationError=void 0;const o=n(4848),a=r(n(2770)),i=n(5963),l=n(5917);t.ValidationError=({children:e})=>(0,o.jsxs)(s,{children:[(0,o.jsx)(l.Icon,{icon:"ExclamationCircledFilledIcon"}),(0,o.jsx)(c,{children:e})]});const s=a.default.div`
|
|
979
|
+
display: flex;
|
|
980
|
+
gap: ${({theme:e})=>e.px.xsmall};
|
|
981
|
+
align-items: center;
|
|
982
|
+
text-align: center;
|
|
983
|
+
margin-top: ${({theme:e})=>e.px.small};
|
|
984
|
+
`,c=(0,a.default)(i.Text)`
|
|
985
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
986
|
+
`},1167:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StyledInputField=t.BaseInput=void 0;const a=n(4848),i=n(2015),l=o(n(2770)),s=n(2094),c=n(532),u=n(5963),d=n(3679),p=n(8820);t.BaseInput=(0,i.forwardRef)(((e,n)=>{var{className:o,renderInput:i,message:l,label:s,status:c,name:u,icon:g,type:m="text",helperText:v,placeholder:x}=e,y=r(e,["className","renderInput","message","label","status","name","icon","type","helperText","placeholder"]);const C="checkbox"===m||"radio"===m;return(0,a.jsxs)(b,{flexDirection:"column",alignItems:"flex-start",children:[(0,a.jsxs)(f,{inline:C,children:[!!s&&(0,a.jsx)(p.Label,{inline:C,icon:g,text:s,helperText:v,htmlFor:u}),!!i&&i(Object.assign({name:u,status:c,type:m},y)),!i&&(0,a.jsx)(t.StyledInputField,Object.assign({className:o,name:u,placeholder:x,status:c,type:m},y,{ref:n}))]}),l&&("critical"===c?(0,a.jsx)(d.ValidationError,{children:l}):(0,a.jsx)(h,{status:c,children:l}))]})})),t.BaseInput.displayName="BaseInput";const f=(0,l.default)(s.Box)`
|
|
987
|
+
align-items: ${({inline:e})=>e?"center":"flex-start"};
|
|
988
|
+
flex-direction: ${({inline:e})=>e?"row-reverse":"column"};
|
|
989
|
+
justify-content: ${({inline:e})=>e?"flex-end":"flex-start"};
|
|
990
|
+
width: 100%;
|
|
991
|
+
`,h=(0,l.default)(u.Text)`
|
|
992
|
+
color: ${({theme:e,status:t})=>(0,c.getStatusColor)(e,t,"textHelp")};
|
|
993
|
+
`,b=(0,l.default)(s.Box)`
|
|
994
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
995
|
+
user-select: none;
|
|
996
|
+
`;t.StyledInputField=l.default.input`
|
|
997
|
+
background: ${({theme:e})=>e.palette.background4};
|
|
998
|
+
border: 1px solid ${({theme:e})=>e.palette.background6};
|
|
999
|
+
border-color: ${({theme:e,status:t})=>(0,c.getStatusColor)(e,t,c.Palette.inputBorder)};
|
|
1000
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
1001
|
+
box-shadow: ${({theme:e})=>e.shadow.base};
|
|
1002
|
+
color: ${({theme:e})=>e.palette.inputColor};
|
|
1003
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
1004
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.base}`};
|
|
1005
|
+
transition: border-color var(--openfin-ui-globalTransition);
|
|
1006
|
+
width: 100%;
|
|
1007
|
+
|
|
1008
|
+
&:focus {
|
|
1009
|
+
outline: 0;
|
|
1010
|
+
border-color: ${({theme:e,status:t})=>(0,c.getStatusColor)(e,t,c.Palette.inputFocused)};
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
&:disabled {
|
|
1014
|
+
cursor: not-allowed;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
&:disabled::placeholder {
|
|
1018
|
+
color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* This is a hack to invert the calendar icon. This only works in dark mode.
|
|
1023
|
+
* Until either light mode is a thing or we get a datetime picker design, this will do.
|
|
1024
|
+
*/
|
|
1025
|
+
|
|
1026
|
+
::-webkit-calendar-picker-indicator {
|
|
1027
|
+
filter: invert(1);
|
|
1028
|
+
}
|
|
1029
|
+
`},114:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1167),t)},5567:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Checkbox=void 0;const s=n(4848),c=a(n(2015)),u=l(n(2770)),d=n(114),p=n(5917),f=n(532),h=n(8589);t.Checkbox=c.forwardRef(((e,t)=>{var{status:n,variant:r="default"}=e,o=i(e,["status","variant"]);return(0,s.jsx)(d.BaseInput,Object.assign({},o,{type:"checkbox",status:n,renderInput:e=>{var{status:o}=e,a=i(e,["status"]);return(0,s.jsxs)(b,{children:[(0,s.jsx)(v,Object.assign({ref:t,id:a.name,type:"checkbox",variant:r,status:n},a)),(0,s.jsx)(g,{status:n,children:(0,s.jsx)(m,{})})]})}}))})),t.Checkbox.displayName="Checkbox";const b=u.default.div`
|
|
1030
|
+
display: inline-block;
|
|
1031
|
+
position: relative;
|
|
1032
|
+
`,g=u.default.div`
|
|
1033
|
+
display: flex;
|
|
1034
|
+
align-items: center;
|
|
1035
|
+
justify-content: center;
|
|
1036
|
+
height: ${({theme:e})=>e.px.base};
|
|
1037
|
+
width: ${({theme:e})=>e.px.base};
|
|
1038
|
+
border: 1px solid ${({theme:e})=>e.palette.textDefault};
|
|
1039
|
+
border-color: ${({theme:e,status:t})=>(0,f.getStatusColor)(e,t,"textDefault")};
|
|
1040
|
+
border-radius: 2px;
|
|
1041
|
+
pointer-events: none;
|
|
1042
|
+
`,m=(0,u.default)(p.Icon).attrs({icon:"CheckIcon",size:"small"})`
|
|
1043
|
+
opacity: 0;
|
|
1044
|
+
`,v=u.default.input`
|
|
1045
|
+
opacity: 0;
|
|
1046
|
+
position: absolute;
|
|
1047
|
+
width: 100%;
|
|
1048
|
+
height: 100%;
|
|
1049
|
+
cursor: pointer;
|
|
1050
|
+
|
|
1051
|
+
/* Inject variants */
|
|
1052
|
+
${(0,f.getVariantCSS)(h.variants,h.Variant.variant)}
|
|
1053
|
+
|
|
1054
|
+
&:checked + ${g+" "+m} {
|
|
1055
|
+
opacity: 1;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
&:hover + ${g} {
|
|
1059
|
+
box-shadow: 0 0 1px 1px ${({theme:e})=>e.palette.inputFocused};
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
&:focus + ${g} {
|
|
1063
|
+
box-shadow: 0 0 1px 1px ${({theme:e})=>e.palette.inputFocused};
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
&:disabled {
|
|
1067
|
+
cursor: not-allowed;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
&:disabled + ${g} {
|
|
1071
|
+
opacity: 0.5;
|
|
1072
|
+
}
|
|
1073
|
+
`},8589:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.variants=t.CheckboxVariant=t.Variant=void 0;const r=n(2770);t.Variant={variant:"variant"},t.CheckboxVariant={default:"default",primary:"primary"},t.variants={[t.Variant.variant]:{[t.CheckboxVariant.default]:r.css`
|
|
1074
|
+
/* Default styling - uses existing theme colors */
|
|
1075
|
+
`,[t.CheckboxVariant.primary]:r.css`
|
|
1076
|
+
/* Primary styling - uses brand colors when checked */
|
|
1077
|
+
&:checked + div {
|
|
1078
|
+
background: ${({theme:e})=>e.palette.brandPrimary};
|
|
1079
|
+
border-color: ${({theme:e})=>e.palette.brandPrimary};
|
|
1080
|
+
|
|
1081
|
+
svg {
|
|
1082
|
+
color: ${({theme:e})=>e.palette.brandPrimaryText};
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
&:checked:hover + div {
|
|
1087
|
+
background: ${({theme:e})=>e.palette.brandPrimaryHover};
|
|
1088
|
+
border-color: ${({theme:e})=>e.palette.brandPrimaryHover};
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
&:checked:active + div {
|
|
1092
|
+
background: ${({theme:e})=>e.palette.brandPrimaryActive};
|
|
1093
|
+
border-color: ${({theme:e})=>e.palette.brandPrimaryActive};
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
&:checked:focus + div {
|
|
1097
|
+
border-color: ${({theme:e})=>e.palette.brandPrimaryFocused};
|
|
1098
|
+
box-shadow: 0 0 1px 1px ${({theme:e})=>e.palette.brandPrimaryFocused};
|
|
1099
|
+
}
|
|
1100
|
+
`}}},9990:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5567),t)},9555:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=void 0;const i=n(4848),l=a(n(2015)),s=a(n(2770)),c=n(2094),u=n(5963),d=n(9990),p=n(3679);t.CheckboxGroup=({disabled:e,gap:t="small",helperText:n,label:r,message:o,children:a,validationErrorMessage:s,values:c,onChange:u})=>{const[x,y]=l.useState(null!=c?c:[]),C=e=>{const t=e.target.value,n=x.includes(t)?x.filter((e=>e!==t)):[...x,t];y(n),u&&u(n)};return(0,i.jsxs)(g,{children:[r&&(0,i.jsxs)(f,{children:[(0,i.jsx)(h,{weight:"bold",children:r}),n&&(0,i.jsx)(b,{children:n})]}),(0,i.jsx)(m,{gap:t,children:l.Children.map(a,(t=>{const n=t;return n.type===d.Checkbox?l.cloneElement(n,{disabled:e,onChange:C,checked:x.includes(n.props.value)}):n}))}),!x.length&&s&&(0,i.jsx)(p.ValidationError,{children:s}),o?(0,i.jsx)(v,{disabled:e,children:o}):null]})};const f=(0,s.default)(c.Box)`
|
|
1101
|
+
display: flex;
|
|
1102
|
+
flex-direction: column;
|
|
1103
|
+
margin-bottom: ${({theme:e})=>e.px.small};
|
|
1104
|
+
`,h=(0,s.default)(u.Text)`
|
|
1105
|
+
text-transform: capitalize;
|
|
1106
|
+
`,b=(0,s.default)(u.Text)`
|
|
1107
|
+
size: ${({theme:e})=>e.fontSize.base};
|
|
1108
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
1109
|
+
`,g=(0,s.default)(c.Box)`
|
|
1110
|
+
display: flex;
|
|
1111
|
+
flex-direction: column;
|
|
1112
|
+
width: max-content;
|
|
1113
|
+
`,m=(0,s.default)(c.Box)`
|
|
1114
|
+
display: flex;
|
|
1115
|
+
flex-direction: column;
|
|
1116
|
+
align-items: start;
|
|
1117
|
+
width: fit-content;
|
|
1118
|
+
`,v=(0,s.default)(u.Text)`
|
|
1119
|
+
color: ${({theme:e})=>e.palette.inputPlaceholder};
|
|
1120
|
+
margin-top: ${({theme:e})=>e.px.base};
|
|
1121
|
+
|
|
1122
|
+
${({disabled:e})=>e&&s.css`
|
|
1123
|
+
color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1124
|
+
`}
|
|
1125
|
+
`},8045:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9555),t)},5887:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DateInput=void 0;const a=n(4848),i=n(2015),l=o(n(2770)),s=n(5917),c=n(2094),u=n(114);t.DateInput=(0,i.forwardRef)(((e,t)=>{var{value:n="",type:o="date",expanded:l=!1,onChange:s,status:c}=e,p=r(e,["value","type","expanded","onChange","status"]);const[f,h]=(0,i.useState)(n);return(0,i.useEffect)((()=>h(n)),[]),(0,a.jsx)(u.BaseInput,Object.assign({type:o,status:c},p,{renderInput:e=>{var{status:n,type:i}=e,u=r(e,["status","type"]);return(0,a.jsx)(d,Object.assign({ref:t,type:o,status:c,onChange:e=>{const{value:t}=e.target;t&&h(t),null==s||s(e)},value:f,expanded:l},u))}}))})),t.DateInput.displayName="DateInput";const d=(0,i.forwardRef)(((e,t)=>{var{type:n,expanded:o,onExpand:i}=e,l=r(e,["type","expanded","onExpand"]);return(0,a.jsxs)(p,{children:[(0,a.jsx)(h,{children:(0,a.jsx)(s.Icon,{icon:"time"===n?"ClockIcon":"CalendarIcon"})}),(0,a.jsx)(g,Object.assign({ref:t,type:n,onKeyDown:e=>{" "===e.key&&e.preventDefault()}},l)),(0,a.jsx)(b,{flexDirection:"column",disabled:l.disabled,onClick:i,children:(0,a.jsx)(s.Icon,{icon:o?"ChevronUpIcon":"ChevronDownIcon"})})]})}));d.displayName="StyledDateInput";const p=l.default.div`
|
|
1126
|
+
position: relative;
|
|
1127
|
+
overflow: hidden;
|
|
1128
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
1129
|
+
width: 100%;
|
|
1130
|
+
`,f=(0,l.default)(c.Box)`
|
|
1131
|
+
flex-direction: column;
|
|
1132
|
+
justify-content: center;
|
|
1133
|
+
align-items: center;
|
|
1134
|
+
position: absolute;
|
|
1135
|
+
top: 1px;
|
|
1136
|
+
overflow: hidden;
|
|
1137
|
+
height: calc(100% - 2px);
|
|
1138
|
+
`,h=(0,l.default)(f)`
|
|
1139
|
+
left: ${({theme:e})=>e.px.small};
|
|
1140
|
+
pointer-events: none;
|
|
1141
|
+
`,b=(0,l.default)(f)`
|
|
1142
|
+
right: ${({theme:e})=>e.px.small};
|
|
1143
|
+
pointer-events: ${({disabled:e})=>e?"none":void 0};
|
|
1144
|
+
border-left: 1px solid ${({theme:e})=>e.palette.background6};
|
|
1145
|
+
padding-left: ${({theme:e})=>e.px.small};
|
|
1146
|
+
`,g=(0,l.default)(u.StyledInputField)`
|
|
1147
|
+
appearance: textfield;
|
|
1148
|
+
padding-right: ${({theme:e})=>e.px.xxxlarge};
|
|
1149
|
+
padding-left: ${({theme:e})=>e.px.xxxlarge};
|
|
1150
|
+
::-webkit-inner-spin-button,
|
|
1151
|
+
::-webkit-calendar-picker-indicator {
|
|
1152
|
+
display: none;
|
|
1153
|
+
appearance: none;
|
|
1154
|
+
}
|
|
1155
|
+
`},6841:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5887),t)},3842:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1511),t)},1511:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberInput=t.Direction=void 0;const a=n(4848),i=n(2015),l=o(n(2770)),s=n(5917),c=n(2094),u=n(114);var d;!function(e){e[e.Up=1]="Up",e[e.Down=-1]="Down"}(d||(t.Direction=d={})),t.NumberInput=(0,i.forwardRef)(((e,t)=>{var{min:n,max:o,step:i=1,onTakeStep:l,value:s}=e,c=r(e,["min","max","step","onTakeStep","value"]);return(0,a.jsx)(u.BaseInput,Object.assign({type:"number"},c,{renderInput:e=>{var{status:u}=e,f=r(e,["status"]);return(0,a.jsx)(p,Object.assign({prependIcon:c.prependIcon,prependString:c.prependString,ref:t,status:c.status,onIncrement:()=>l&&l(d.Up,i),onDecrement:()=>l&&l(d.Down,i),min:n,max:o,step:i},f,{placeholder:c.placeholder,value:s,"aria-valuenow":s,"aria-valuemin":n,"aria-valuemax":o}))}}))})),t.NumberInput.displayName="NumberInput";const p=(0,i.forwardRef)(((e,t)=>{var{onIncrement:n,onDecrement:o,prependIcon:l,prependString:c}=e,u=r(e,["onIncrement","onDecrement","prependIcon","prependString"]);const d=(e,t)=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t?n():o())},p=(0,i.useRef)(null),[v,x]=(0,i.useState)(0);return(0,i.useEffect)((()=>{p.current?x(p.current.offsetWidth):x(0)}),[p.current,l,c]),(0,a.jsxs)(f,{children:[(!!l||!!c)&&(0,a.jsxs)(h,{hasIcon:!!l,ref:p,alignItems:"center",justifyContent:"center",children:[l&&(0,a.jsx)(s.Icon,{icon:l,size:"base"}),c&&!l&&c]}),(0,a.jsx)(m,Object.assign({prependContainerWidth:v,ref:t},u)),(0,a.jsxs)(b,{flexDirection:"column",disabled:u.disabled,children:[(0,a.jsx)(g,{onClick:n,onKeyDown:e=>d(e,!0),disabled:u.disabled,"aria-label":"Increment value",tabIndex:0,children:(0,a.jsx)(s.Icon,{icon:"TriangleUpIcon"})}),(0,a.jsx)(g,{onKeyDown:e=>d(e),onClick:o,"aria-label":"Decrement value",disabled:u.disabled,tabIndex:0,children:(0,a.jsx)(s.Icon,{icon:"TriangleDownIcon"})})]})]})}));p.displayName="StyledNumberInput";const f=l.default.div`
|
|
1156
|
+
position: relative;
|
|
1157
|
+
overflow: hidden;
|
|
1158
|
+
border-radius: ${({theme:e})=>e.radius.small};
|
|
1159
|
+
width: 100%;
|
|
1160
|
+
`,h=(0,l.default)(c.Box)`
|
|
1161
|
+
background-color: ${({theme:e})=>e.palette.background6};
|
|
1162
|
+
position: absolute;
|
|
1163
|
+
left: 1px;
|
|
1164
|
+
top: 1px;
|
|
1165
|
+
width: ${({theme:e,hasIcon:t})=>t?e.px.xxlarge:"fit-content"};
|
|
1166
|
+
padding: 0 ${({theme:e})=>e.px.small};
|
|
1167
|
+
height: calc(100% - 2px);
|
|
1168
|
+
border-radius: ${({theme:e})=>`${e.radius.small} 0 0 ${e.radius.small}`};
|
|
1169
|
+
`,b=(0,l.default)(c.Box)`
|
|
1170
|
+
align-items: center;
|
|
1171
|
+
position: absolute;
|
|
1172
|
+
right: 1px;
|
|
1173
|
+
top: 1px;
|
|
1174
|
+
gap: 1px;
|
|
1175
|
+
height: calc(100% - 2px);
|
|
1176
|
+
border-radius: ${({theme:e})=>`0 ${e.radius.small} ${e.radius.small} 0`};
|
|
1177
|
+
overflow: hidden;
|
|
1178
|
+
|
|
1179
|
+
pointer-events: ${({disabled:e})=>e?"none":void 0};
|
|
1180
|
+
`,g=(0,l.default)(c.Box)`
|
|
1181
|
+
cursor: pointer;
|
|
1182
|
+
background: ${({theme:e})=>e.palette.background6};
|
|
1183
|
+
padding: 0 ${({theme:e})=>e.px.xsmall};
|
|
1184
|
+
user-select: none;
|
|
1185
|
+
height: 50%;
|
|
1186
|
+
align-items: center;
|
|
1187
|
+
justify-content: center;
|
|
1188
|
+
|
|
1189
|
+
color: ${({disabled:e,theme:t})=>e?t.palette.textHelp:t.palette.textDefault};
|
|
1190
|
+
|
|
1191
|
+
&:hover {
|
|
1192
|
+
background: ${({theme:e})=>e.palette.inputFocused};
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
&:active {
|
|
1196
|
+
background: ${({theme:e})=>e.palette.inputColor};
|
|
1197
|
+
}
|
|
1198
|
+
`,m=(0,l.default)(u.StyledInputField)`
|
|
1199
|
+
appearance: textfield;
|
|
1200
|
+
padding-left: ${({prependContainerWidth:e})=>`${e+10}px`};
|
|
1201
|
+
|
|
1202
|
+
::-webkit-inner-spin-button,
|
|
1203
|
+
::-webkit-outer-spin-button {
|
|
1204
|
+
appearance: none;
|
|
1205
|
+
margin: 0;
|
|
1206
|
+
}
|
|
1207
|
+
`},3982:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8373),t)},8373:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroup=void 0;const l=n(4848),s=a(n(2015)),c=a(n(2770)),u=n(2094),d=n(5963),p=n(5311),f=n(3679);t.RadioGroup=e=>{var t,n,r,{direction:o="column",label:a,disabled:c,labelSide:u="right",gap:d="small",message:y,helperText:C,name:_,children:O,validationErrorMessage:w,onChange:j,value:k}=e,P=i(e,["direction","label","disabled","labelSide","gap","message","helperText","name","children","validationErrorMessage","onChange","value"]);const[S,M]=s.useState(k),$=e=>{M(e.target.value),j&&j(e)};return s.useEffect((()=>{M(k)}),[k]),(0,l.jsxs)(b,{children:[(0,l.jsxs)(h,{children:[(0,l.jsx)(x,{weight:"bold",id:`${_}-label`,children:a}),C&&(0,l.jsx)(g,{id:`${_}-desc`,children:C})]}),(0,l.jsx)(m,{direction:o,labelSide:u,gap:d,role:"radiogroup","aria-label":null!==(t=P["aria-label"])&&void 0!==t?t:a,"aria-labelledby":(null!==(n=P["aria-labelledby"])&&void 0!==n?n:!P["aria-label"])?`${_}-label`:void 0,"aria-describedby":null!==(r=P["aria-describedby"])&&void 0!==r?r:`${_}-desc`,children:s.Children.map(O,(e=>{const t=e;return t.type===p.RadioInput?s.cloneElement(t,{name:_,labelSide:u,disabled:c,onChange:$,checked:t.props.value===S}):t}))}),!S&&w&&(0,l.jsx)(f.ValidationError,{children:w}),y?(0,l.jsx)(v,{disabled:c,children:y}):null]})};const h=(0,c.default)(u.Box)`
|
|
1208
|
+
display: flex;
|
|
1209
|
+
flex-direction: column;
|
|
1210
|
+
margin-bottom: ${({theme:e})=>e.px.small};
|
|
1211
|
+
`,b=(0,c.default)(u.Box)`
|
|
1212
|
+
display: flex;
|
|
1213
|
+
flex-direction: column;
|
|
1214
|
+
`,g=(0,c.default)(d.Text)`
|
|
1215
|
+
size: ${({theme:e})=>e.fontSize.base};
|
|
1216
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
1217
|
+
`,m=(0,c.default)(u.Box)`
|
|
1218
|
+
display: flex;
|
|
1219
|
+
flex-direction: ${e=>e.direction};
|
|
1220
|
+
align-items: ${e=>{switch(e.labelSide){case"left":return"end";case"right":return"start";default:return"center"}}};
|
|
1221
|
+
width: fit-content;
|
|
1222
|
+
`,v=(0,c.default)(d.Text)`
|
|
1223
|
+
color: ${({theme:e})=>e.palette.inputPlaceholder};
|
|
1224
|
+
margin-top: ${({theme:e})=>e.px.base};
|
|
1225
|
+
|
|
1226
|
+
${({disabled:e})=>e&&c.css`
|
|
1227
|
+
color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1228
|
+
`}
|
|
1229
|
+
`,x=(0,c.default)(d.Text)`
|
|
1230
|
+
text-transform: capitalize;
|
|
1231
|
+
`},6942:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5311),t)},5311:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.RadioInput=void 0;const l=n(4848),s=n(5963),c=a(n(2015)),u=a(n(2770)),d=n(2094),p=n(5917);t.RadioInput=c.forwardRef(((e,t)=>{var n,r,{disabled:o,id:a,label:s,labelSide:c,icon:u}=e,d=i(e,["disabled","id","label","labelSide","icon"]);return(0,l.jsx)(f,{children:(0,l.jsxs)(g,{as:"label",htmlFor:a,labelSide:c,disabled:o,children:[(0,l.jsx)(b,Object.assign({ref:t,type:"radio",disabled:o,"aria-label":null!==(r=null!==(n=d["aria-label"])&&void 0!==n?n:s)&&void 0!==r?r:`${d.value}`},d)),(0,l.jsx)(h,{}),!!u&&(0,l.jsx)(p.Icon,{icon:u}),s||""]})})})),t.RadioInput.displayName="RadioInput";const f=(0,u.default)(d.Box)`
|
|
1232
|
+
display: flex;
|
|
1233
|
+
flex-direction: column;
|
|
1234
|
+
`,h=u.default.div`
|
|
1235
|
+
width: ${({theme:e})=>e.px.base};
|
|
1236
|
+
height: ${({theme:e})=>e.px.base};
|
|
1237
|
+
border-radius: 50%;
|
|
1238
|
+
border-style: solid;
|
|
1239
|
+
border-width: 1px;
|
|
1240
|
+
border-color: ${({theme:e})=>e.palette.textDefault};
|
|
1241
|
+
box-sizing: content-box;
|
|
1242
|
+
flex-shrink: 0;
|
|
1243
|
+
|
|
1244
|
+
input:checked ~ &:after {
|
|
1245
|
+
content: '';
|
|
1246
|
+
display: block;
|
|
1247
|
+
margin: 2px 1px 0px 2px;
|
|
1248
|
+
width: ${({theme:e})=>e.px.small};
|
|
1249
|
+
height: ${({theme:e})=>e.px.small};
|
|
1250
|
+
border-radius: 50%;
|
|
1251
|
+
background-color: ${({theme:e})=>e.palette.textDefault};
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
input:disabled ~ & {
|
|
1255
|
+
border-color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
input:disabled ~ &:after {
|
|
1259
|
+
background-color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1260
|
+
}
|
|
1261
|
+
`,b=u.default.input`
|
|
1262
|
+
opacity: 0;
|
|
1263
|
+
position: absolute;
|
|
1264
|
+
cursor: pointer;
|
|
1265
|
+
|
|
1266
|
+
&:disabled {
|
|
1267
|
+
cursor: default;
|
|
1268
|
+
}
|
|
1269
|
+
`,g=(0,u.default)(s.Text)`
|
|
1270
|
+
width: fit-content;
|
|
1271
|
+
display: flex;
|
|
1272
|
+
align-items: center;
|
|
1273
|
+
flex-direction: ${({labelSide:e})=>{switch(e||"right"){case"left":return"row-reverse";case"right":return"row";case"top":return"column-reverse";case"bottom":return"column"}}};
|
|
1274
|
+
gap: ${({theme:e})=>e.px.small};
|
|
1275
|
+
cursor: pointer;
|
|
1276
|
+
|
|
1277
|
+
${({disabled:e})=>e?u.css`
|
|
1278
|
+
& {
|
|
1279
|
+
cursor: default;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1283
|
+
`:null}
|
|
1284
|
+
`},2649:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5),t)},5:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RawInput=void 0;const o=r(n(2770));t.RawInput=o.default.input``,t.RawInput.displayName="RawInput"},2685:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(113),t)},113:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;const o=n(4848),a=n(2015),i=r(n(2770)),l=n(532),s=n(532),c=n(2094),u=n(8820);t.TextArea=(0,a.forwardRef)(((e,t)=>(0,o.jsx)(p,{flexDirection:"column",alignItems:"flex-start",children:(0,o.jsxs)(d,{children:[!!e.label&&(0,o.jsx)(u.Label,{text:e.label,htmlFor:e.name,helperText:e.helperText}),(0,o.jsx)(f,Object.assign({ref:t},e,{onChange:e.onChange}))]})}))),t.TextArea.displayName="TextArea";const d=(0,i.default)(c.Box)`
|
|
1285
|
+
align-items: flex-start;
|
|
1286
|
+
flex-direction: column;
|
|
1287
|
+
justify-content: flex-start;
|
|
1288
|
+
width: 100%;
|
|
1289
|
+
`,p=(0,i.default)(c.Box)`
|
|
1290
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
1291
|
+
user-select: none;
|
|
1292
|
+
`,f=i.default.textarea`
|
|
1293
|
+
background: ${({theme:e})=>e.palette.background4};
|
|
1294
|
+
border: 1px solid ${({theme:e})=>e.palette.inputBorder};
|
|
1295
|
+
border-color: ${({theme:e,status:t})=>(0,s.getStatusColor)(e,t,"inputBorder")};
|
|
1296
|
+
border-radius: 4px;
|
|
1297
|
+
width: 100%;
|
|
1298
|
+
resize: none;
|
|
1299
|
+
overflow-y: auto;
|
|
1300
|
+
${l.Mixins.scrollbar.small};
|
|
1301
|
+
color: ${({theme:e})=>e.palette.inputColor};
|
|
1302
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
1303
|
+
line-height: ${({theme:e})=>e.lineHeight.text};
|
|
1304
|
+
font-weight: ${({theme:e})=>e.fontWeight.normal};
|
|
1305
|
+
padding: ${({theme:e})=>e.px.small} ${({theme:e})=>e.px.small} 0px ${({theme:e})=>e.px.small};
|
|
1306
|
+
|
|
1307
|
+
&:focus {
|
|
1308
|
+
outline: 0;
|
|
1309
|
+
border-color: ${({theme:e,status:t})=>(0,s.getStatusColor)(e,t,"inputFocused")};
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
&:disabled::placeholder {
|
|
1313
|
+
color: ${({theme:e})=>e.palette.inputDisabled};
|
|
1314
|
+
}
|
|
1315
|
+
`},4864:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7043),t)},7043:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextInput=void 0;const r=n(4848),o=n(2015),a=n(114);t.TextInput=(0,o.forwardRef)(((e,t)=>(0,r.jsx)(a.BaseInput,Object.assign({ref:t,type:"text"},e)))),t.TextInput.displayName="TextInput"},2989:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Box=void 0;const o=r(n(2770)),a=n(8816),i=n(5939),l={1:i.Palette.background1,2:i.Palette.background2,3:i.Palette.background3,4:i.Palette.background4,5:i.Palette.background5,6:i.Palette.background6};t.Box=o.default.div`
|
|
1316
|
+
/**
|
|
1317
|
+
* Style Scrollbar for Boxes with overflow
|
|
1318
|
+
*/
|
|
1319
|
+
${a.Mixins.scrollbar.base}
|
|
1320
|
+
|
|
1321
|
+
display: ${({display:e="flex"})=>e};
|
|
1322
|
+
flex-direction: ${({flexDirection:e="row"})=>e};
|
|
1323
|
+
flex-wrap: ${({flexWrap:e="nowrap"})=>e};
|
|
1324
|
+
align-items: ${({alignItems:e})=>e};
|
|
1325
|
+
justify-content: ${({justifyContent:e})=>e};
|
|
1326
|
+
gap: ${({theme:e,gap:t})=>t&&e.px[t]};
|
|
1327
|
+
align-self: ${({alignSelf:e})=>e};
|
|
1328
|
+
flex-basis: ${({flexBasis:e})=>e};
|
|
1329
|
+
flex-grow: ${({flexGrow:e})=>e};
|
|
1330
|
+
flex-shrink: ${({flexShrink:e})=>e};
|
|
1331
|
+
order: ${({order:e})=>e};
|
|
1332
|
+
padding: ${({theme:e,padding:t})=>t&&e.px[t]};
|
|
1333
|
+
background: ${({theme:e,background:t})=>t&&e.palette[l[t]]};
|
|
1334
|
+
`,t.Box.displayName="Box"},2094:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2989),t)},9341:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionList=void 0;const a=n(4848),i=o(n(2770));t.DefinitionList=e=>{var{definitions:t}=e,n=r(e,["definitions"]);return(0,a.jsx)(s,Object.assign({},n,{role:"list",children:(Array.isArray(t)?t:Array.from(t)).map((([e,t],n)=>(0,a.jsxs)(l,{role:"listitem",children:[(0,a.jsx)(c,{id:`term${n}`,children:e}),(0,a.jsx)(u,{"aria-labelledby":`term${n}`,children:t})]},`${e}-${n}`)))}))};const l=i.default.div`
|
|
1335
|
+
display: grid;
|
|
1336
|
+
grid-template-columns: 1fr 3fr;
|
|
1337
|
+
`,s=i.default.dl`
|
|
1338
|
+
gap: ${({theme:e})=>`0 ${e.px.large}`};
|
|
1339
|
+
overflow-y: auto;
|
|
1340
|
+
padding: ${({theme:e})=>`${e.px.small} ${e.px.base}`};
|
|
1341
|
+
word-break: break-word;
|
|
1342
|
+
`,c=i.default.dt`
|
|
1343
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
1344
|
+
font-size: ${({theme:e})=>e.fontSize.small};
|
|
1345
|
+
font-weight: ${({theme:e})=>e.fontWeight.normal};
|
|
1346
|
+
line-height: ${({theme:e})=>e.px.base};
|
|
1347
|
+
padding-bottom: ${({theme:e})=>e.px.small};
|
|
1348
|
+
white-space: nowrap;
|
|
1349
|
+
`,u=i.default.dd`
|
|
1350
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
1351
|
+
font-size: ${({theme:e})=>e.fontSize.small};
|
|
1352
|
+
line-height: ${({theme:e})=>e.px.base};
|
|
1353
|
+
padding-bottom: ${({theme:e})=>e.px.small};
|
|
1354
|
+
`},9916:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9341),t)},9960:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalFonts=t.GlobalStyles=void 0;const r=n(2770),o=n(9853),a=n(6151);t.GlobalStyles=r.createGlobalStyle`
|
|
1355
|
+
/** -> Define Global CSS Vars */
|
|
1356
|
+
:root {
|
|
1357
|
+
--openfin-ui-globalTransition: ${({theme:e})=>e.transition.base};
|
|
1358
|
+
|
|
1359
|
+
font-family: ${({theme:e})=>e.fontFamily};
|
|
1360
|
+
/* Map over the palette keys and create variables out of them */
|
|
1361
|
+
${o.getRootCssVars}
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/** -> @font-face Declaration */
|
|
1365
|
+
|
|
1366
|
+
/** -> Micro Reset */
|
|
1367
|
+
* {
|
|
1368
|
+
box-sizing: border-box;
|
|
1369
|
+
margin: 0;
|
|
1370
|
+
padding: 0;
|
|
1371
|
+
/**
|
|
1372
|
+
* Prevent browser auto-weighting
|
|
1373
|
+
* @link https://css-tricks.com/almanac/properties/f/font-synthesis/
|
|
1374
|
+
*/
|
|
1375
|
+
font-synthesis: none;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/** -> Apply Global Styles */
|
|
1379
|
+
|
|
1380
|
+
body,
|
|
1381
|
+
:root {
|
|
1382
|
+
background: ${({theme:e})=>e.palette.background1};
|
|
1383
|
+
color: ${({theme:e})=>e.palette.textDefault};
|
|
1384
|
+
font-family: ${({theme:e})=>e.fontFamily};
|
|
1385
|
+
font-weight: ${({theme:e})=>e.fontWeight.normal};
|
|
1386
|
+
font-size: ${({theme:e})=>e.fontSize.base};
|
|
1387
|
+
line-height: ${({theme:e})=>e.lineHeight.text};
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
::placeholder {
|
|
1391
|
+
color: ${({theme:e})=>e.palette.inputPlaceholder};
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/** -> Reduced Motion (Accessibility) */
|
|
1395
|
+
@media (prefers-reduced-motion) {
|
|
1396
|
+
:root {
|
|
1397
|
+
--openfin-ui-globalTransition: ${({theme:e})=>e.transition.none};
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
`,t.GlobalFonts=r.createGlobalStyle`${({fonts:e})=>(0,a.createFontFaceCss)(e)}`},4901:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9960),t)},5014:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},532:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1696),t),o(n(2268),t)},2346:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=r(n(6535));t.lightenColor=(e,t)=>a(e,"lighten",t),t.darkenColor=(e,t)=>a(e,"darken",t);const a=(e,t,n)=>{if(n&&(n<0||n>100))throw new Error(`${n} must be a number between 0 and 100`);return(0,o.default)(e)[t](n).toString()};t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString()},2317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},6151:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createFontFaceCss=void 0;const r=n(2770),o=n(2317);t.createFontFaceCss=function(e){return r.css`
|
|
1401
|
+
${e.regular&&r.css`
|
|
1402
|
+
@font-face {
|
|
1403
|
+
font-family: 'Inter';
|
|
1404
|
+
src: url(${e.regular}) format('woff2');
|
|
1405
|
+
font-weight: ${o.FontWeight.normal};
|
|
1406
|
+
font-style: normal;
|
|
1407
|
+
font-display: fallback;
|
|
1408
|
+
}
|
|
1409
|
+
`}
|
|
1410
|
+
${e.italic&&r.css`
|
|
1411
|
+
@font-face {
|
|
1412
|
+
font-family: 'Inter';
|
|
1413
|
+
src: url(${e.italic}) format('woff2');
|
|
1414
|
+
font-weight: ${o.FontWeight.normal};
|
|
1415
|
+
font-style: italic;
|
|
1416
|
+
font-display: fallback;
|
|
1417
|
+
}
|
|
1418
|
+
`}
|
|
1419
|
+
${e.semiBold&&r.css`
|
|
1420
|
+
@font-face {
|
|
1421
|
+
font-family: 'Inter';
|
|
1422
|
+
src: url(${e.semiBold}) format('woff2');
|
|
1423
|
+
font-weight: ${o.FontWeight.bold};
|
|
1424
|
+
font-style: normal;
|
|
1425
|
+
font-display: fallback;
|
|
1426
|
+
}
|
|
1427
|
+
`}
|
|
1428
|
+
${e.semiBoldItalic&&r.css`
|
|
1429
|
+
@font-face {
|
|
1430
|
+
font-family: 'Inter';
|
|
1431
|
+
src: url(${e.semiBoldItalic}) format('woff2');
|
|
1432
|
+
font-weight: ${o.FontWeight.bold};
|
|
1433
|
+
font-style: italic;
|
|
1434
|
+
font-display: fallback;
|
|
1435
|
+
}
|
|
1436
|
+
`}
|
|
1437
|
+
`}},6893:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const r=n(2317),o=n(2346),a=n(5939),i={fontFamily:r.FontFamily,fontSize:r.FontSize,fontWeight:r.FontWeight,lineHeight:r.LineHeight,iconSize:r.IconSize,radius:r.Radius,shadow:r.Shadow,transition:r.Transition,unit:r.Unit,px:r.UnitPx},l=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[r.Color.white,r.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[r.Color.white,r.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},l(a.Palette.brandPrimary,e.brandPrimary)),l(a.Palette.brandSecondary,e.brandSecondary)),e)})},9853:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_LANGUAGES=t.getStatusColor=t.getRootCssVars=t.getVariantCSS=void 0;const r=n(5939);t.getVariantCSS=(e,t)=>n=>e[t][n[t]],t.getRootCssVars=({theme:e})=>Object.keys(r.Palette).map((t=>`--openfin-ui-${t}: ${e.palette[t]};`)).join("\n"),t.getStatusColor=(e,t,n)=>{switch(t){case"active":return e.palette.statusActive;case"critical":return e.palette.statusCritical;case"warning":return e.palette.statusWarning;case"success":return e.palette.statusSuccess;default:return n?e.palette[n]:"inherit"}},t.SUPPORTED_LANGUAGES=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"]},5947:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IconSet=void 0;const i=a(n(824)),l=a(n(6283));t.IconSet=Object.assign(Object.assign({},i),l)},1696:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2346),t),o(n(2317),t),o(n(5947),t),o(n(6151),t),o(n(6893),t),o(n(9853),t),o(n(2091),t),o(n(8816),t),o(n(5939),t),o(n(5241),t)},2091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8816:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Mixins=void 0;const r=n(2317),o=n(2770),a=o.css`
|
|
1438
|
+
user-select: none;
|
|
1439
|
+
`,i=o.css`
|
|
1440
|
+
white-space: nowrap;
|
|
1441
|
+
overflow: hidden;
|
|
1442
|
+
text-overflow: ellipsis;
|
|
1443
|
+
display: block;
|
|
1444
|
+
`,l=o.css`
|
|
1445
|
+
&::-webkit-scrollbar {
|
|
1446
|
+
width: var(--scrollbarSize, ${r.UnitPx.xsmall});
|
|
1447
|
+
height: var(--scrollbarSize, ${r.UnitPx.xsmall});
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
&::-webkit-scrollbar-track {
|
|
1451
|
+
background: ${r.Color.neutralGray80};
|
|
1452
|
+
border-radius: var(--scrollbarSize, ${r.UnitPx.xsmall});
|
|
1453
|
+
opacity: 0.8;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
&::-webkit-scrollbar-thumb {
|
|
1457
|
+
background: ${r.Color.white80};
|
|
1458
|
+
width: var(--scrollbarSize, ${r.UnitPx.xsmall});
|
|
1459
|
+
height: var(--scrollbarSize, ${r.UnitPx.xsmall});
|
|
1460
|
+
border-radius: var(--scrollbarSize, ${r.UnitPx.xsmall});
|
|
1461
|
+
opacity: 0.8;
|
|
1462
|
+
}
|
|
1463
|
+
`,s=o.css`
|
|
1464
|
+
--scrollbarSize: 2px;
|
|
1465
|
+
${l};
|
|
1466
|
+
`,c=o.css`
|
|
1467
|
+
-webkit-app-region: drag;
|
|
1468
|
+
`,u=o.css`
|
|
1469
|
+
-webkit-app-region: no-drag;
|
|
1470
|
+
`;t.Mixins={noSelect:a,textOverflow:i,scrollbar:{[r.Size.base]:l,[r.Size.small]:s},appRegion:{drag:c,noDrag:u}}},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},5241:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4322:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4207),t)},4207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenFinDarkTheme=t.OpenFinLightTheme=void 0;const r=n(5939),o=n(2317),a=n(6893),i={[r.Palette.brandPrimary]:o.Color.openFin,[r.Palette.brandPrimaryActive]:o.Color.openFinActive,[r.Palette.brandPrimaryHover]:o.Color.openFinHover,[r.Palette.brandPrimaryFocused]:o.Color.white,[r.Palette.brandPrimaryText]:o.Color.white,[r.Palette.statusSuccess]:o.Color.functional1,[r.Palette.statusWarning]:o.Color.functional10,[r.Palette.statusCritical]:o.Color.functional7,[r.Palette.statusActive]:o.Color.functional3,[r.Palette.borderNeutral]:o.Color.silverGray,[r.Palette.contentBackground1]:o.Color.openFin,[r.Palette.contentBackground2]:"#000000",[r.Palette.contentBackground3]:"#000000",[r.Palette.contentBackground4]:"#000000",[r.Palette.contentBackground5]:"#000000",[r.Palette.linkDefault]:o.Color.functional4,[r.Palette.linkHover]:o.Color.functional5};t.OpenFinLightTheme=(0,a.createTheme)(Object.assign(Object.assign({},i),{[r.Palette.background1]:o.Color.white,[r.Palette.background2]:o.Color.lightGray1,[r.Palette.background3]:o.Color.lightGray2,[r.Palette.background4]:o.Color.lightGray3,[r.Palette.background5]:o.Color.lightGray3,[r.Palette.background6]:o.Color.lightGray5,[r.Palette.brandSecondary]:o.Color.lightGray4,[r.Palette.brandSecondaryActive]:o.Color.lightGray4Active,[r.Palette.brandSecondaryHover]:o.Color.lightGray4Hover,[r.Palette.brandSecondaryFocused]:o.Color.darkGray5,[r.Palette.brandSecondaryText]:o.Color.darkGray5,[r.Palette.inputBackground]:o.Color.lightGray3,[r.Palette.inputColor]:o.Color.darkGray5,[r.Palette.inputPlaceholder]:o.Color.darkGray2,[r.Palette.inputDisabled]:o.Color.neutralGray,[r.Palette.inputFocused]:o.Color.lightGray5,[r.Palette.inputBorder]:o.Color.neutralGray,[r.Palette.textDefault]:o.Color.darkGray5,[r.Palette.textHelp]:o.Color.neutralGray,[r.Palette.textInactive]:o.Color.neutralGray})),t.OpenFinDarkTheme=(0,a.createTheme)(Object.assign(Object.assign({},i),{[r.Palette.background1]:o.Color.darkGray6,[r.Palette.background2]:o.Color.darkGray5,[r.Palette.background3]:o.Color.darkGray4,[r.Palette.background4]:o.Color.darkGray3,[r.Palette.background5]:o.Color.darkGray2,[r.Palette.background6]:o.Color.darkGray1,[r.Palette.brandSecondary]:o.Color.darkGray2,[r.Palette.brandSecondaryActive]:o.Color.darkGray2Active,[r.Palette.brandSecondaryHover]:o.Color.darkGray2Hover,[r.Palette.brandSecondaryFocused]:o.Color.white,[r.Palette.brandSecondaryText]:o.Color.white,[r.Palette.inputBackground]:o.Color.darkGray1,[r.Palette.inputColor]:o.Color.white,[r.Palette.inputPlaceholder]:o.Color.lightGray5,[r.Palette.inputDisabled]:o.Color.neutralGray,[r.Palette.inputFocused]:o.Color.lightGray5,[r.Palette.inputBorder]:o.Color.neutralGray,[r.Palette.textDefault]:o.Color.white,[r.Palette.textHelp]:o.Color.lightGray5,[r.Palette.textInactive]:o.Color.neutralGray}))},2268:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeProvider=void 0;const r=n(4848),o=n(2015),a=n(2770),i=n(2762),l=n(5007),s=n(4901),c=n(3092);t.ThemeProvider=({children:e,themes:t,scheme:n=i.ColorScheme.system,fonts:u=c.Fonts})=>{const d=(0,l.useTheme)({themes:t,scheme:n}),p=(0,o.useMemo)((()=>(0,r.jsx)(s.GlobalFonts,{fonts:u})),[u]);return(0,r.jsxs)(r.Fragment,{children:[p,(0,r.jsx)(a.ThemeProvider,{theme:d,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.GlobalStyles,{}),e]})})]})}},8543:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4901),t),o(n(5014),t),o(n(532),t)},357:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContactStatusIcon=void 0;const o=n(4848),a=r(n(2770)),i=n(8204),l={available:(0,o.jsx)(i.CheckSVG,{}),away:(0,o.jsx)(i.BusySVG,{}),"do-not-disturb":(0,o.jsx)(i.DoNotDisturbSVG,{}),offline:(0,o.jsx)(i.OfflineSVG,{}),busy:null};t.ContactStatusIcon=({onlineStatus:e})=>e?(0,o.jsx)(s,{onlineStatus:e,children:l[e]||null}):null;const s=a.default.div`
|
|
1471
|
+
border: 1.6px solid ${({theme:e})=>e.palette.background1};
|
|
1472
|
+
|
|
1473
|
+
background: ${({onlineStatus:e})=>"busy"===e?"#C21313":"white"};
|
|
1474
|
+
border-radius: 50%;
|
|
1475
|
+
|
|
1476
|
+
height: ${({theme:e})=>e.px.large};
|
|
1477
|
+
width: ${({theme:e})=>e.px.large};
|
|
1478
|
+
|
|
1479
|
+
display: flex;
|
|
1480
|
+
align-items: center;
|
|
1481
|
+
justify-content: center;
|
|
1482
|
+
|
|
1483
|
+
position: absolute;
|
|
1484
|
+
left: 78.95%;
|
|
1485
|
+
right: -7.02%;
|
|
1486
|
+
top: 77.12%;
|
|
1487
|
+
bottom: -4.24%;
|
|
1488
|
+
`},8204:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineSVG=t.DoNotDisturbSVG=t.BusySVG=t.CheckSVG=void 0;const r=n(4848);t.CheckSVG=()=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8 0C8.73438 0 9.4401 0.0963542 10.1172 0.289063C10.7943 0.481771 11.4297 0.752604 12.0234 1.10156C12.6172 1.45052 13.1563 1.86979 13.6406 2.35938C14.1302 2.84375 14.5495 3.38281 14.8984 3.97656C15.2474 4.57031 15.5182 5.20573 15.7109 5.88281C15.9036 6.5599 16 7.26563 16 8C16 8.72917 15.9036 9.4349 15.7109 10.1172C15.5182 10.7943 15.2474 11.4297 14.8984 12.0234C14.5495 12.6172 14.1302 13.1589 13.6406 13.6484C13.1563 14.1328 12.6172 14.5495 12.0234 14.8984C11.4297 15.2474 10.7917 15.5182 10.1094 15.7109C9.43229 15.9036 8.72917 16 8 16C7.27083 16 6.5651 15.9036 5.88281 15.7109C5.20573 15.5182 4.57031 15.2474 3.97656 14.8984C3.38281 14.5495 2.84115 14.1328 2.35156 13.6484C1.86719 13.1589 1.45052 12.6172 1.10156 12.0234C0.752604 11.4297 0.481771 10.7943 0.289063 10.1172C0.0963542 9.4349 0 8.72917 0 8C0 7.27083 0.0963542 6.56771 0.289063 5.89063C0.481771 5.20833 0.752604 4.57031 1.10156 3.97656C1.45052 3.38281 1.86719 2.84375 2.35156 2.35938C2.84115 1.86979 3.38281 1.45052 3.97656 1.10156C4.57031 0.752604 5.20573 0.481771 5.88281 0.289063C6.5651 0.0963542 7.27083 0 8 0ZM10.6328 5.6875C10.4245 5.6875 10.2474 5.76042 10.1016 5.90625L7.27344 8.75L6.26563 7.75C6.11979 7.60417 5.94531 7.53125 5.74219 7.53125C5.64323 7.53125 5.54948 7.55208 5.46094 7.59375C5.3724 7.63542 5.29167 7.69271 5.21875 7.76563C5.15104 7.83333 5.09635 7.91146 5.05469 8C5.01302 8.08854 4.99219 8.18229 4.99219 8.28125C4.99219 8.48958 5.0651 8.66667 5.21094 8.8125L6.74219 10.3438C6.88802 10.4896 7.0651 10.5625 7.27344 10.5625C7.48177 10.5625 7.65885 10.4896 7.80469 10.3438L11.1641 6.96875C11.3099 6.82292 11.3828 6.64583 11.3828 6.4375C11.3828 6.33854 11.362 6.24479 11.3203 6.15625C11.2786 6.06771 11.2214 5.98958 11.1484 5.92188C11.0807 5.84896 11.0026 5.79167 10.9141 5.75C10.8255 5.70833 10.7318 5.6875 10.6328 5.6875Z",fill:"#207735"})}),t.BusySVG=()=>(0,r.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8 0.790237C8.73438 0.790237 9.4401 0.886592 10.1172 1.0793C10.7943 1.27201 11.4297 1.54284 12.0234 1.8918C12.6172 2.24076 13.1563 2.66003 13.6406 3.14961C14.1302 3.63399 14.5495 4.17305 14.8984 4.7668C15.2474 5.36055 15.5182 5.99597 15.7109 6.67305C15.9036 7.35013 16 8.05586 16 8.79024C16 9.5194 15.9036 10.2251 15.7109 10.9074C15.5182 11.5845 15.2474 12.2199 14.8984 12.8137C14.5495 13.4074 14.1302 13.9491 13.6406 14.4387C13.1563 14.9231 12.6172 15.3397 12.0234 15.6887C11.4297 16.0376 10.7917 16.3085 10.1094 16.5012C9.43229 16.6939 8.72917 16.7902 8 16.7902C7.27083 16.7902 6.5651 16.6939 5.88281 16.5012C5.20573 16.3085 4.57031 16.0376 3.97656 15.6887C3.38281 15.3397 2.84115 14.9231 2.35156 14.4387C1.86719 13.9491 1.45052 13.4074 1.10156 12.8137C0.752604 12.2199 0.481771 11.5845 0.289063 10.9074C0.0963542 10.2251 0 9.5194 0 8.79024C0 8.06107 0.0963542 7.35795 0.289063 6.68086C0.481771 5.99857 0.752604 5.36055 1.10156 4.7668C1.45052 4.17305 1.86719 3.63399 2.35156 3.14961C2.84115 2.66003 3.38281 2.24076 3.97656 1.8918C4.57031 1.54284 5.20573 1.27201 5.88281 1.0793C6.5651 0.886592 7.27083 0.790237 8 0.790237ZM7.32031 4.04805C7.21094 4.04805 7.10677 4.07149 7.00781 4.11836C6.91406 4.16003 6.82813 4.21992 6.75 4.29805C6.67708 4.37097 6.61719 4.4569 6.57031 4.55586C6.52865 4.64961 6.50781 4.75117 6.50781 4.86055V9.19649C6.50781 9.30586 6.52865 9.41263 6.57031 9.5168C6.61198 9.62097 6.67188 9.71211 6.75 9.79024L9.1875 12.2121C9.34896 12.3736 9.54167 12.4543 9.76563 12.4543C9.875 12.4543 9.97917 12.4335 10.0781 12.3918C10.1771 12.3449 10.263 12.285 10.3359 12.2121C10.4089 12.134 10.4661 12.0454 10.5078 11.9465C10.5547 11.8475 10.5781 11.7434 10.5781 11.634C10.5781 11.5298 10.5547 11.4283 10.5078 11.3293C10.4661 11.2251 10.4089 11.1366 10.3359 11.0637L8.13281 8.87618V4.86055C8.13281 4.75117 8.10938 4.64701 8.0625 4.54805C8.02083 4.44909 7.96354 4.36315 7.89063 4.29024C7.81771 4.21732 7.73177 4.16003 7.63281 4.11836C7.53385 4.07149 7.42969 4.04805 7.32031 4.04805Z",fill:"#FE9F4D"})}),t.DoNotDisturbSVG=()=>(0,r.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8 0.590256C8.73438 0.590256 9.4401 0.68661 10.1172 0.879318C10.7943 1.07203 11.4297 1.34286 12.0234 1.69182C12.6172 2.04078 13.1562 2.46005 13.6406 2.94963C14.1302 3.43401 14.5495 3.97307 14.8984 4.56682C15.2474 5.16057 15.5182 5.79598 15.7109 6.47307C15.9036 7.15015 16 7.85588 16 8.59026C16 9.31942 15.9036 10.0252 15.7109 10.7074C15.5182 11.3845 15.2474 12.0199 14.8984 12.6137C14.5495 13.2074 14.1302 13.7491 13.6406 14.2387C13.1562 14.7231 12.6172 15.1397 12.0234 15.4887C11.4297 15.8377 10.7917 16.1085 10.1094 16.3012C9.43229 16.4939 8.72917 16.5903 8 16.5903C7.27083 16.5903 6.5651 16.4939 5.88281 16.3012C5.20573 16.1085 4.57031 15.8377 3.97656 15.4887C3.38281 15.1397 2.84115 14.7231 2.35156 14.2387C1.86719 13.7491 1.45052 13.2074 1.10156 12.6137C0.752604 12.0199 0.481771 11.3845 0.289062 10.7074C0.0963542 10.0252 0 9.31942 0 8.59026C0 7.86109 0.0963542 7.15796 0.289062 6.48088C0.481771 5.79859 0.752604 5.16057 1.10156 4.56682C1.45052 3.97307 1.86719 3.43401 2.35156 2.94963C2.84115 2.46005 3.38281 2.04078 3.97656 1.69182C4.57031 1.34286 5.20573 1.07203 5.88281 0.879318C6.5651 0.68661 7.27083 0.590256 8 0.590256ZM5.47656 7.74651C5.36719 7.74651 5.26042 7.76994 5.15625 7.81682C5.05729 7.86369 4.96875 7.92619 4.89062 8.00432C4.8125 8.08244 4.75 8.17359 4.70312 8.27776C4.65625 8.37671 4.63281 8.48088 4.63281 8.59026C4.63281 8.69963 4.65625 8.8064 4.70312 8.91057C4.75 9.00953 4.8125 9.09807 4.89062 9.17619C4.96875 9.25432 5.05729 9.31682 5.15625 9.36369C5.26042 9.41057 5.36719 9.43401 5.47656 9.43401H10.5234C10.6328 9.43401 10.737 9.41057 10.8359 9.36369C10.9401 9.31682 11.0312 9.25432 11.1094 9.17619C11.1875 9.09807 11.25 9.00953 11.2969 8.91057C11.3438 8.8064 11.3672 8.69963 11.3672 8.59026C11.3672 8.48088 11.3438 8.37671 11.2969 8.27776C11.25 8.17359 11.1875 8.08244 11.1094 8.00432C11.0312 7.92619 10.9401 7.86369 10.8359 7.81682C10.737 7.76994 10.6328 7.74651 10.5234 7.74651H5.47656Z",fill:"#C21313"})}),t.OfflineSVG=()=>(0,r.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8 0.990252C8.73438 0.990252 9.4401 1.08661 10.1172 1.27931C10.7943 1.47202 11.4297 1.74286 12.0234 2.09181C12.6172 2.44077 13.1562 2.86004 13.6406 3.34963C14.1302 3.834 14.5495 4.37306 14.8984 4.96681C15.2474 5.56056 15.5182 6.19598 15.7109 6.87306C15.9036 7.55015 16 8.25588 16 8.99025C16 9.71942 15.9036 10.4251 15.7109 11.1074C15.5182 11.7845 15.2474 12.4199 14.8984 13.0137C14.5495 13.6074 14.1302 14.1491 13.6406 14.6387C13.1562 15.1231 12.6172 15.5397 12.0234 15.8887C11.4297 16.2376 10.7917 16.5085 10.1094 16.7012C9.43229 16.8939 8.72917 16.9903 8 16.9903C7.27083 16.9903 6.5651 16.8939 5.88281 16.7012C5.20573 16.5085 4.57031 16.2376 3.97656 15.8887C3.38281 15.5397 2.84115 15.1231 2.35156 14.6387C1.86719 14.1491 1.45052 13.6074 1.10156 13.0137C0.752604 12.4199 0.481771 11.7845 0.289062 11.1074C0.0963542 10.4251 0 9.71942 0 8.99025C0 8.26109 0.0963542 7.55796 0.289062 6.88088C0.481771 6.19859 0.752604 5.56056 1.10156 4.96681C1.45052 4.37306 1.86719 3.834 2.35156 3.34963C2.84115 2.86004 3.38281 2.44077 3.97656 2.09181C4.57031 1.74286 5.20573 1.47202 5.88281 1.27931C6.5651 1.08661 7.27083 0.990252 8 0.990252ZM8 2.67775C7.42188 2.67775 6.86458 2.75327 6.32812 2.90431C5.79167 3.05536 5.28906 3.2689 4.82031 3.54494C4.35156 3.82098 3.92448 4.15171 3.53906 4.53713C3.15885 4.91734 2.83073 5.34181 2.55469 5.81056C2.27865 6.27931 2.0651 6.78192 1.91406 7.31838C1.76302 7.85484 1.6875 8.41213 1.6875 8.99025C1.6875 9.56838 1.76302 10.1257 1.91406 10.6621C2.0651 11.1986 2.27865 11.7012 2.55469 12.1699C2.83073 12.6387 3.15885 13.0658 3.53906 13.4512C3.92448 13.8314 4.35156 14.1595 4.82031 14.4356C5.28906 14.7116 5.79167 14.9251 6.32812 15.0762C6.86458 15.2272 7.42188 15.3028 8 15.3028C8.57812 15.3028 9.13542 15.2272 9.67188 15.0762C10.2083 14.9251 10.7109 14.7116 11.1797 14.4356C11.6484 14.1595 12.0729 13.8314 12.4531 13.4512C12.8385 13.0658 13.1693 12.6387 13.4453 12.1699C13.7214 11.7012 13.9349 11.1986 14.0859 10.6621C14.237 10.1257 14.3125 9.56838 14.3125 8.99025C14.3125 8.41213 14.237 7.85484 14.0859 7.31838C13.9349 6.78192 13.7214 6.27931 13.4453 5.81056C13.1693 5.34181 12.8385 4.91734 12.4531 4.53713C12.0729 4.15171 11.6484 3.82098 11.1797 3.54494C10.7109 3.2689 10.2083 3.05536 9.67188 2.90431C9.13542 2.75327 8.57812 2.67775 8 2.67775Z",fill:"#979797"})})},818:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContactCard=void 0;const s=n(4848),c=a(n(2015)),u=l(n(2770)),d=n(9916),p=n(904),f=n(357),h=n(9543);t.ContactCard=e=>{var{name:t,title:n,photoUrl:r,useInitials:o=!1,details:a,onlineStatus:l}=e,u=i(e,["name","title","photoUrl","useInitials","details","onlineStatus"]);const d=r||o,k=(0,c.useMemo)((()=>(0,p.getInitials)(t)),[t]),P=(0,c.useMemo)((()=>(0,h.generateColorFromString)(t)),[t]),S=(0,c.createRef)();return(0,c.useEffect)((()=>{var e;null===(e=S.current)||void 0===e||e.scrollTo(0,0)})),(0,s.jsxs)(b,Object.assign({},u,{children:[(0,s.jsxs)(g,{children:[d&&(0,s.jsxs)(m,{iconColor:P,children:[r?(0,s.jsx)(x,{alt:n,src:r}):(0,s.jsx)(v,{children:k}),(0,s.jsx)(f.ContactStatusIcon,{onlineStatus:l})]}),(0,s.jsxs)(y,{children:[(0,s.jsxs)(C,{children:[" ",t," "]}),n&&(0,s.jsxs)(_,{children:[" ",n," "]})]})]}),(0,s.jsx)(w,{}),(0,s.jsx)(O,{ref:S,children:(null==a?void 0:a.length)>0?a.map(((e,n)=>(0,s.jsxs)(c.default.Fragment,{children:[(0,s.jsx)(j,{definitions:e}),n<a.length-1&&(0,s.jsx)(w,{padding:!0})]},`${t}-details-${n}`))):(0,s.jsx)("p",{children:"No information available."})})]}))};const b=u.default.div`
|
|
1489
|
+
display: flex;
|
|
1490
|
+
flex-direction: column;
|
|
1491
|
+
height: 100%;
|
|
1492
|
+
`,g=u.default.div`
|
|
1493
|
+
display: flex;
|
|
1494
|
+
padding-bottom: ${({theme:e})=>e.px.large};
|
|
1495
|
+
`,m=u.default.div`
|
|
1496
|
+
align-items: center;
|
|
1497
|
+
background-color: ${e=>e.iconColor};
|
|
1498
|
+
border-radius: ${({theme:e})=>e.px.xsmall};
|
|
1499
|
+
display: flex;
|
|
1500
|
+
justify-content: center;
|
|
1501
|
+
|
|
1502
|
+
height: 60px;
|
|
1503
|
+
width: 60px;
|
|
1504
|
+
|
|
1505
|
+
position: relative;
|
|
1506
|
+
`,v=u.default.span`
|
|
1507
|
+
font-size: 24px;
|
|
1508
|
+
text-transform: uppercase;
|
|
1509
|
+
`,x=u.default.img`
|
|
1510
|
+
border-radius: ${({theme:e})=>e.px.xsmall};
|
|
1511
|
+
object-fit: cover;
|
|
1512
|
+
user-select: none;
|
|
1513
|
+
height: 100%;
|
|
1514
|
+
width: 100%;
|
|
1515
|
+
`,y=u.default.div`
|
|
1516
|
+
display: flex;
|
|
1517
|
+
flex-direction: column;
|
|
1518
|
+
justify-content: flex-start;
|
|
1519
|
+
min-width: 0;
|
|
1520
|
+
margin-left: ${({theme:e})=>e.px.base};
|
|
1521
|
+
`,C=u.default.span`
|
|
1522
|
+
font-size: ${({theme:e})=>e.fontSize.large};
|
|
1523
|
+
line-height: ${({theme:e})=>e.px.large};
|
|
1524
|
+
overflow: hidden;
|
|
1525
|
+
padding-bottom: ${({theme:e})=>e.px.xsmall};
|
|
1526
|
+
font-weight: ${({theme:e})=>e.fontWeight.bold};
|
|
1527
|
+
text-overflow: ellipsis;
|
|
1528
|
+
white-space: nowrap;
|
|
1529
|
+
`,_=u.default.span`
|
|
1530
|
+
color: ${({theme:e})=>e.palette.textHelp};
|
|
1531
|
+
line-height: ${({theme:e})=>e.px.base};
|
|
1532
|
+
overflow: hidden;
|
|
1533
|
+
padding-bottom: 2px;
|
|
1534
|
+
text-overflow: ellipsis;
|
|
1535
|
+
white-space: nowrap;
|
|
1536
|
+
`,O=u.default.div`
|
|
1537
|
+
border-radius: 2px;
|
|
1538
|
+
flex: 1;
|
|
1539
|
+
margin-top: ${({theme:e})=>e.px.large};
|
|
1540
|
+
margin-bottom: ${({theme:e})=>e.px.base};
|
|
1541
|
+
padding-right: ${({theme:e})=>e.px.base};
|
|
1542
|
+
overflow-y: auto;
|
|
1543
|
+
`,w=u.default.div`
|
|
1544
|
+
border-bottom: solid 1px ${({theme:e})=>e.palette.background6};
|
|
1545
|
+
margin-bottom: ${({theme:e,padding:t})=>t&&e.px.base};
|
|
1546
|
+
`,j=(0,u.default)(d.DefinitionList)`
|
|
1547
|
+
dt {
|
|
1548
|
+
text-align: left;
|
|
1549
|
+
text-transform: capitalize;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
dd {
|
|
1553
|
+
overflow: hidden;
|
|
1554
|
+
text-align: right;
|
|
1555
|
+
text-overflow: ellipsis;
|
|
1556
|
+
white-space: nowrap;
|
|
1557
|
+
}
|
|
1558
|
+
`},5168:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(818),t)},904:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0,t.getInitials=e=>{const t=e.trim(),n=t.lastIndexOf(" ");return n>-1?[t.charAt(0),t.charAt(n+1)].join(""):t.slice(0,2)}},4492:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.H6=t.H5=t.H4=t.H3=t.H2=t.H1=t.Heading=t.defaultSize=void 0;const a=n(4848),i=o(n(2770)),l=n(2317),s=n(5963);t.defaultSize={h1:l.Size.xxxlarge,h2:l.Size.xxlarge,h3:l.Size.xlarge,h4:l.Size.large,h5:l.Size.base,h6:l.Size.small},t.Heading=e=>{var{level:n=1,className:o}=e,i=r(e,["level","className"]);const l=`h${n}`;return(0,a.jsx)(c,Object.assign({className:o,as:l,size:t.defaultSize[l],weight:"bold"},i))};const c=(0,i.default)(s.Text)`
|
|
1559
|
+
line-height: ${({theme:e})=>e.lineHeight.heading};
|
|
1560
|
+
`;t.H1=(0,i.default)(t.Heading).attrs((e=>Object.assign(Object.assign({},e),{level:1})))``,t.H2=(0,i.default)(t.Heading).attrs((e=>Object.assign(Object.assign({},e),{level:2})))``,t.H3=(0,i.default)(t.Heading).attrs((e=>Object.assign(Object.assign({},e),{level:3})))``,t.H4=(0,i.default)(t.Heading).attrs((e=>Object.assign(Object.assign({},e),{level:4})))``,t.H5=(0,i.default)(t.Heading).attrs((e=>Object.assign(Object.assign({},e),{level:5})))``,t.H6=(0,i.default)(t.Heading).attrs((e=>Object.assign(Object.assign({},e),{level:6})))``},5058:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4492),t)},5963:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1316),t)},1316:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;const o=r(n(2770));t.Text=o.default.span`
|
|
1561
|
+
color: ${({theme:e,color:t="textDefault"})=>e.palette[t]};
|
|
1562
|
+
font-size: ${({theme:e,size:t="base"})=>e.fontSize[t]};
|
|
1563
|
+
font-weight: ${({theme:e,weight:t="normal"})=>e.fontWeight[t]};
|
|
1564
|
+
line-height: ${({theme:e})=>e.lineHeight.text};
|
|
1565
|
+
`,t.Text.displayName="Text"},2762:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useColorScheme=t.ColorScheme=void 0;const r=n(2015);t.ColorScheme={dark:"dark",light:"light",system:"system"},t.useColorScheme=({colorScheme:e,fallbackScheme:n=t.ColorScheme.light})=>{const[a,i]=(0,r.useState)(e&&e!==t.ColorScheme.system?e:n),l=t=>{i(o(t,e||n))};return(0,r.useEffect)((()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");return i(o(t,e||n)),t.addEventListener("change",l),()=>t.removeEventListener("change",l)}),[e,a]),a};const o=(e,n)=>n===t.ColorScheme.system?e.matches?t.ColorScheme.dark:t.ColorScheme.light:n},6110:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDropdownKeyboardNavigation=void 0;const r=n(2015);t.useDropdownKeyboardNavigation=(e,t,n,o,a)=>{const[i,l]=(0,r.useState)(0),[s,c]=(0,r.useState)("");let u;if((0,r.useEffect)((()=>{if(t&&!n){const n=e.flat().findIndex((e=>e.value===t.value));n>=0&&l(n)}}),[e,t,n]),(0,r.useEffect)((()=>{n||c("")}),[n]),(0,r.useEffect)((()=>{if(s){const t=e.flat().findIndex((e=>e.title.toLowerCase().startsWith(s.toLowerCase())));t>=0&&l(t)}}),[e,s]),e[0].length>0&&e.flat().length>i){const[t,n]=[Math.floor(i/e[0].length),i%e[0].length];u=e[t][n]}return(0,r.useEffect)((()=>{const e=setTimeout((()=>{c("")}),500);return()=>clearTimeout(e)}),[s]),{focusedOption:u,handleKeyDown:t=>{switch(t.code){case"ArrowUp":t.preventDefault(),i>0&&l(i-1);break;case"ArrowDown":t.preventDefault(),i<e.flat().length-1&&l(i+1);break;case"Enter":case"Space":t.preventDefault(),n?((null==u?void 0:u.overrideOnClick)?u.overrideOnClick():a(null!=u?u:e[0][0]),o()):o();break;case"Escape":t.preventDefault(),o(!1);break;default:/^[a-z0-9]$/i.test(t.key)&&c((e=>e+t.key))}}}}},7980:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useLayoutMediaQuery=t.useMediaQuery=void 0;const r=n(2015),o=e=>t=>{const[n,o]=(0,r.useState)(!1);return e((()=>{const e=window.matchMedia(t);if(e){e.matches!==n&&o(e.matches);const t=()=>o(e.matches),r=()=>e.removeEventListener("change",t);return e.addEventListener("change",t),r}}),[n,t]),n};t.useMediaQuery=o(r.useEffect),t.useLayoutMediaQuery=o(r.useLayoutEffect)},421:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.usePrevious=void 0;const r=n(2015);t.usePrevious=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}},5007:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useTheme=void 0;const r=n(2015),o=n(4322),a=n(2762),i=n(532),l=n(7825),s={[a.ColorScheme.dark]:o.OpenFinDarkTheme,[a.ColorScheme.light]:o.OpenFinLightTheme};t.useTheme=({themes:e,scheme:t})=>{let n={};const o=(0,a.useColorScheme)({colorScheme:t});try{n=(0,r.useMemo)((()=>((e,t)=>{const n=null==t?void 0:t[e];let r=Object.assign({},s[e]);return n&&n.palette&&(r=(0,l.merge)(r,n,(0,i.createTheme)(n.palette))),r})(o,e)),[e,o])}catch(e){console.error(e)}return n}},1440:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2367),t),o(n(7787),t),o(n(759),t),o(n(4810),t),o(n(5825),t),o(n(8577),t),o(n(3189),t),o(n(4706),t),o(n(5918),t),o(n(5917),t),o(n(4416),t),o(n(2387),t),o(n(114),t),o(n(2649),t),o(n(4864),t),o(n(3842),t),o(n(9990),t),o(n(8045),t),o(n(6942),t),o(n(3982),t),o(n(6841),t),o(n(2685),t),o(n(2094),t),o(n(9916),t),o(n(8543),t),o(n(5168),t),o(n(5058),t),o(n(5963),t),o(n(2762),t),o(n(7980),t),o(n(421),t),o(n(6110),t),o(n(7013),t),o(n(9543),t),o(n(3679),t),o(n(3092),t)},9543:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.generateColorFromString=void 0,t.generateColorFromString=function(e="",t=70,n=50){let r=0;for(let t=0;t<e.length;t++)r=e.charCodeAt(t)+((r<<5)-r),r|=0;return`hsl(${r%360}, ${t}%, ${n}%)`}},7013:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.whenFin=void 0,t.whenFin=function(e,t){const n="undefined"!=typeof fin?e:t;return"function"==typeof n?n():n}},9802:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-Italic.woff2"},9294:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-Regular.woff2"},3325:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-SemiBold.woff2"},2773:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-SemiBoldItalic.woff2"},824:e=>{e.exports=require("@radix-ui/react-icons")},5322:e=>{e.exports=require("framer-motion")},7825:e=>{e.exports=require("lodash")},2015:e=>{e.exports=require("react")},9500:e=>{e.exports=require("react-calendar")},2770:e=>{e.exports=require("styled-components")},6535:function(e){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=/^\s+/,n=/\s+$/;function r(o,a){if(a=a||{},(o=o||"")instanceof r)return o;if(!(this instanceof r))return new r(o,a);var i=function(r){var o={r:0,g:0,b:0},a=1,i=null,l=null,s=null,c=!1,u=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,o=!1;if(y[e])e=y[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=B.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=B.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=B.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=B.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=B.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=B.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=B.hex8.exec(e))?{r:j(r[1]),g:j(r[2]),b:j(r[3]),a:M(r[4]),format:o?"name":"hex8"}:(r=B.hex6.exec(e))?{r:j(r[1]),g:j(r[2]),b:j(r[3]),format:o?"name":"hex"}:(r=B.hex4.exec(e))?{r:j(r[1]+""+r[1]),g:j(r[2]+""+r[2]),b:j(r[3]+""+r[3]),a:M(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=B.hex3.exec(e))&&{r:j(r[1]+""+r[1]),g:j(r[2]+""+r[2]),b:j(r[3]+""+r[3]),format:o?"name":"hex"}}(r)),"object"==e(r)&&(E(r.r)&&E(r.g)&&E(r.b)?(d=r.r,p=r.g,f=r.b,o={r:255*O(d,255),g:255*O(p,255),b:255*O(f,255)},c=!0,u="%"===String(r.r).substr(-1)?"prgb":"rgb"):E(r.h)&&E(r.s)&&E(r.v)?(i=P(r.s),l=P(r.v),o=function(e,t,n){e=6*O(e,360),t=O(t,100),n=O(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,i,a,a,l,n][s],g:255*[l,n,n,i,a,a][s],b:255*[a,a,l,n,n,i][s]}}(r.h,i,l),c=!0,u="hsv"):E(r.h)&&E(r.s)&&E(r.l)&&(i=P(r.s),s=P(r.l),o=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=O(e,360),t=O(t,100),n=O(n,100),0===t)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(r.h,i,s),c=!0,u="hsl"),r.hasOwnProperty("a")&&(a=r.a)),a=_(a),{ok:c,format:r.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a};var d,p,f}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||i.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=l>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l}}function a(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=a,s=a-i;if(o=0===a?0:s/a,a==i)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function i(e,t,n,r){var o=[k(Math.round(e).toString(16)),k(Math.round(t).toString(16)),k(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function l(e,t,n,r){return[k(S(r)),k(Math.round(e).toString(16)),k(Math.round(t).toString(16)),k(Math.round(n).toString(16))].join("")}function s(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=w(n.s),r(n)}function c(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=w(n.s),r(n)}function u(e){return r(e).desaturate(100)}function d(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=w(n.l),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=w(n.l),r(n)}function h(e,t){var n=r(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,r(n)}function b(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),o=[r(e)],a=360/t,i=1;i<t;i++)o.push(r({h:(n.h+i*a)%360,s:n.s,l:n.l}));return o}function m(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function v(e,t,n){t=t||6,n=n||30;var o=r(e).toHsl(),a=360/n,i=[r(e)];for(o.h=(o.h-(a*t>>1)+720)%360;--t;)o.h=(o.h+a)%360,i.push(r(o));return i}function x(e,t){t=t||6;for(var n=r(e).toHsv(),o=n.h,a=n.s,i=n.v,l=[],s=1/t;t--;)l.push(r({h:o,s:a,v:i})),i=(i+s)%1;return l}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=_(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=a(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[k(Math.round(e).toString(16)),k(Math.round(t).toString(16)),k(Math.round(n).toString(16)),k(S(r))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*O(this._r,255))+"%",g:Math.round(100*O(this._g,255))+"%",b:Math.round(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%)":"rgba("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(C[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+l(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var a=r(e);n="#"+l(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(f,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var o={};for(var a in t)t.hasOwnProperty(a)&&(o[a]="a"===a?t[a]:P(t[a]));t=o}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var o=r(e).toRgb(),a=r(t).toRgb(),i=n/100;return r({r:(a.r-o.r)*i+o.r,g:(a.g-o.g)*i+o.g,b:(a.b-o.b)*i+o.b,a:(a.a-o.a)*i+o.a})},r.readability=function(e,t){var n=r(e),o=r(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(e,t,n){var o,a,i,l,s,c=r.readability(e,t);switch(a=!1,(i=n,"AA"!==(l=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==l&&(l="AA"),"small"!==(s=(i.size||"small").toLowerCase())&&"large"!==s&&(s="small"),o={level:l,size:s}).level+o.size){case"AAsmall":case"AAAlarge":a=c>=4.5;break;case"AAlarge":a=c>=3;break;case"AAAsmall":a=c>=7}return a},r.mostReadable=function(e,t,n){var o,a,i,l,s=null,c=0;a=(n=n||{}).includeFallbackColors,i=n.level,l=n.size;for(var u=0;u<t.length;u++)(o=r.readability(e,t[u]))>c&&(c=o,s=r(t[u]));return r.isReadable(e,s,{level:i,size:l})||!a?s:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var y=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(y);function _(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function O(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function w(e){return Math.min(1,Math.max(0,e))}function j(e){return parseInt(e,16)}function k(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function S(e){return Math.round(255*parseFloat(e)).toString(16)}function M(e){return j(e)/255}var $,I,D,B=(I="[\\s|\\(]+("+($="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",D="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!B.CSS_UNIT.exec(e)}return r}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=n(1440),o=exports;for(var a in r)o[a]=r[a];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0});
|