@stenajs-webui/panels 17.13.0 → 17.13.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/dist/index.es.js +793 -918
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
|
@@ -1,1106 +1,981 @@
|
|
|
1
|
-
(function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("._navBar_1qp30_1{--swui-navbar-background-color: var(--lhds-color-blue-500);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );background-color:var(--swui-navbar-background-color)}._sidebarMenuButton_1x4z8_1{--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);--swui-nav-bar-side-menu-button-background-color-hover: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-focus: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-active: var( --lhds-color-blue-700 );--current-background-color: var( --swui-nav-bar-side-menu-button-background-color );display:flex;align-items:center;justify-content:center;line-height:10px;background-color:var(--current-background-color);color:var(--swui-nav-bar-side-menu-button-text-color);cursor:pointer;height:var(--swui-nav-bar-height);width:var(--swui-nav-bar-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuButton_1x4z8_1:hover{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-hover )}._sidebarMenuButton_1x4z8_1:focus-visible{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-focus )}._sidebarMenuButton_1x4z8_1:active{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-active )}._sidebarMenuButton_1x4z8_1 ._icon_1x4z8_55{color:var(--swui-nav-bar-side-menu-button-text-color)}._navBarButton_1xy53_1{--swui-nav-bar-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-800 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_1xy53_1._selected_1xy53_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_1wchp_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-hover: var( --lhds-color-blue-900 );--swui-nav-bar-notification-button-background-color-focus: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-active: var( --lhds-color-blue-800 );--swui-nav-bar-notification-button-background-color-unread: var( --lhds-color-red-500 );--swui-nav-bar-notification-button-background-color-unread-hover: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-focus: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-active: var( --lhds-color-red-800 );--swui-flat-button-text-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-icon-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-text-color-active: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px;--swui-nav-bar-notification-shake-count: 3;transition:.5s width;width:32px}._navBarNotificationButton_1wchp_1._hasCount_1wchp_60{width:56px}._navBarNotificationButton_1wchp_1._unread_1wchp_64{--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color-unread );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-unread-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-unread-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-unread-active )}._navBarNotificationButton_1wchp_1._unread_1wchp_64._hasCount_1wchp_60 ._icon_1wchp_79{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_1wchp_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_1wchp_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_4knxd_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_4knxd_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_4knxd_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-blue-600);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_4knxd_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1gxfr_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-active: var( --lhds-color-blue-800 );--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1gxfr_1._initials_1gxfr_33{width:32px}._collapsible_1nroa_1{--swui-collapsible-animation-time: var(--swui-animation-time-fast);--swui-collapsible-expanded-line-background-color: var( --swui-primary-action-color );--swui-collapsible-header-text-color: var(--lhds-color-ui-900);--swui-collapsible-header-background-color: var(--swui-white);--swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);--swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);--swui-collapsible-header-border-color: var(--lhds-color-ui-300);--swui-collapsible-header-border-color-focus: var( --swui-primary-action-color );--swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);--swui-collapsible-header-content-margin: calc( var(--swui-metrics-indent) * 2 );--swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);--swui-collapsible-header-indicator-color: var(--swui-primary-action-color);--swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);--swui-collapsible-header-indicator-color-hover: var( --swui-primary-action-color );--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;--swui-collapsible-content-background-color: var(--lhds-color-ui-100);--swui-collapsible-content-border-color: var(--lhds-color-ui-300);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2);--swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);--swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);--swui-collapsible-min-height: 40px}._collapsible_1nroa_1 ._header_1nroa_46{background-color:var(--swui-collapsible-header-background-color);width:100%;text-align:left;min-height:var(--swui-collapsible-min-height);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--swui-collapsible-header-border-color);padding:var(--swui-collapsible-header-padding)}._collapsible_1nroa_1 ._header_1nroa_46 ._indicator_1nroa_59{transition:all var(--swui-collapsible-animation-time) ease-in-out;margin-left:var(--swui-collapsible-header-content-margin);color:var(--swui-collapsible-header-indicator-color)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active){background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active) ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 ._header_1nroa_46:active{background:var(--swui-collapsible-header-background-color-active)}._collapsible_1nroa_1 ._header_1nroa_46:disabled{cursor:not-allowed}._collapsible_1nroa_1{position:relative}._collapsible_1nroa_1:before{content:\"\";position:absolute;width:2px;background:var(--swui-collapsible-expanded-line-background-color);top:0;bottom:0;left:0;z-index:1}._collapsible_1nroa_1 ._headerText_1nroa_103{font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1[aria-expanded=false]{--swui-collapsible-expanded-line-background-color: transparent}._collapsible_1nroa_1[aria-expanded=false] ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-collapsed)}._collapsible_1nroa_1 ._label_1nroa_114{margin-right:auto}._collapsible_1nroa_1 ._label_1nroa_114 span{--current-line-height: 1;font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1 ._contentLeft_1nroa_123,._collapsible_1nroa_1 ._contentRight_1nroa_124{display:flex}._collapsible_1nroa_1 ._contentLeft_1nroa_123 button,._collapsible_1nroa_1 ._contentRight_1nroa_124 button{cursor:pointer}._collapsible_1nroa_1 ._contentLeft_1nroa_123{margin-right:var(--swui-collapsible-header-content-margin)}._collapsible_1nroa_1 ._contentRight_1nroa_124{margin-left:auto}._collapsible_1nroa_1 ._content_1nroa_123{display:flex;align-items:center;justify-content:stretch;background:var(--swui-collapsible-content-background-color);padding:var(--swui-collapsible-content-padding);min-height:var(--swui-collapsible-min-height);box-sizing:border-box}._collapsible_1nroa_1 ._content_1nroa_123:last-child{border-bottom:1px solid var(--swui-collapsible-content-border-color)}._collapsible_1nroa_1 ._content_1nroa_123._groupHeading_1nroa_155{border:none;font-size:var(--swui-collapsible-groupheading-font-size);font-family:var(--swui-font-primary);color:var(--swui-collapsible-groupheading-text-color);text-transform:uppercase;font-weight:var(--swui-font-weight-text-bold);letter-spacing:.1rem}._collapsible_1nroa_1 ._content_1nroa_123 [data-hidden=true]{display:none}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hover=true]{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._contentEnter_1nroa_180{opacity:0}._collapsible_1nroa_1 ._contentEnterActive_1nroa_184{opacity:1;transition:opacity var(--swui-collapsible-animation-time) ease-in-out}._collapsible_1nroa_1 ._contentExitDone_1nroa_189{display:none}._collapsible_1nroa_1 button._content_1nroa_123{font-family:var(--swui-font-primary);font-size:inherit;width:100%;text-align:left}._collapsible_1nroa_1 button._content_1nroa_123:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 button._content_1nroa_123:not(:disabled):hover{background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 button._content_1nroa_123:disabled{cursor:not-allowed}._collapsible_1nroa_1 button._content_1nroa_123:focus-within [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-background-color: var( --swui-collapsible-content-background-color );--swui-collapsible-header-font-weight: normal}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 4);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 6)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 6);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 8)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 8);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 10)}._sidebarMenu_hch18_1{--swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);--swui-sidebar-menu-text-color: var(--swui-white);--swui-sidebar-menu-icon-color: var(--swui-white);--swui-sidebar-menu-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-focus: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-active: var(--lhds-color-blue-600);--swui-sidebar-menu-item-selected: var(--lhds-color-blue-800);--swui-sidebar-menu-content-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) 0;--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-item-selected: var(--swui-sidebar-menu-item-selected);--current-content-padding: var(--swui-sidebar-menu-content-padding);background-color:var(--current-background-color);height:100vh}._sidebarMenu_hch18_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_hch18_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._sidebarMenuCloseButton_1j21u_1{--swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);--swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-close-button-background-color-hover: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-focus: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-active: var( --lhds-color-blue-500 );--current-background-color: var( --swui-sidebar-menu-close-button-background-color );display:flex;align-items:center;justify-content:flex-start;line-height:10px;background-color:var(--current-background-color);color:var(--swui-sidebar-menu-close-button-text-color);cursor:pointer;height:var(--swui-sidebar-menu-item-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuCloseButton_1j21u_1:hover{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-hover )}._sidebarMenuCloseButton_1j21u_1:focus{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-focus )}._sidebarMenuCloseButton_1j21u_1:active{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-active )}._sidebarMenuCloseButton_1j21u_1 ._iconWrapper_1j21u_55{justify-content:center;align-items:center;width:var(--swui-sidebar-menu-item-height);height:var(--swui-sidebar-menu-item-height)}._sidebarMenuCloseButton_1j21u_1 ._icon_1j21u_55{color:var(--swui-sidebar-menu-close-button-text-color)}._label_mnp0f_1{font-size:var(--current-text-size, var(--swui-font-size-medium));line-height:var(--current-line-height, var(--swui-line-height-medium));font-weight:var(--swui-button-font-weight);font-family:var(--swui-font-buttons);color:var(--current-text-color)}._icon_mnp0f_9{color:var(--current-text-color);font-size:1.6rem}._spinner_mnp0f_14{color:var(--current-text-color)}._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18{width:var(--swui-sidebar-menu-item-height);margin-right:0}._button_mnp0f_23{border:0;padding:0;background:var(--current-background-color)}[data-collapsed] [aria-expanded=true] ._button_mnp0f_23,._button_mnp0f_23:hover{background:var(--current-background-color-hover)}._button_mnp0f_23:focus{outline:none}._button_mnp0f_23:focus-visible{background:var(--current-background-color-active)}._button_mnp0f_23:active{background:var(--current-background-color-active)}._button_mnp0f_23._selected_mnp0f_45{background:var(--current-item-selected)}._sidebarMenuHeading_kvpq5_1{--swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);text-transform:uppercase}._sidebarMenuCollapsible_1jwhs_1{--swui-collapsible-header-text-color: var(--current-text-color);--swui-collapsible-header-background-color: var(--current-background-color);--swui-collapsible-header-background-color-hover: var( --current-background-color-hover );--swui-collapsible-header-background-color-active: var( --current-background-color-active );--swui-collapsible-header-indicator-color: var(--current-text-color);--swui-collapsible-header-indicator-color-collapsed: var( --current-text-color );--swui-collapsible-header-indicator-color-hover: var(--current-text-color);--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;--swui-collapsible-header-content-margin: 0;--swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4);--swui-collapsible-header-border-color: transparent;--swui-collapsible-min-height: var(--swui-sidebar-menu-item-height)}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();import { ActionMenu, ActionMenuContext, stenaAngleDown, PrimaryButton, SecondaryButton, FlatButton, stenaBell, Icon, stenaSearch, stenaUser, Banner, Spinner, ButtonContent } from "@stenajs-webui/elements";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
(function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode('._navBar_1qp30_1{--swui-navbar-background-color: var(--lhds-color-blue-500);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );background-color:var(--swui-navbar-background-color)}._sidebarMenuButton_1x4z8_1{--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);--swui-nav-bar-side-menu-button-background-color-hover: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-focus: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-active: var( --lhds-color-blue-700 );--current-background-color: var( --swui-nav-bar-side-menu-button-background-color );display:flex;align-items:center;justify-content:center;line-height:10px;background-color:var(--current-background-color);color:var(--swui-nav-bar-side-menu-button-text-color);cursor:pointer;height:var(--swui-nav-bar-height);width:var(--swui-nav-bar-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuButton_1x4z8_1:hover{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-hover )}._sidebarMenuButton_1x4z8_1:focus-visible{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-focus )}._sidebarMenuButton_1x4z8_1:active{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-active )}._sidebarMenuButton_1x4z8_1 ._icon_1x4z8_55{color:var(--swui-nav-bar-side-menu-button-text-color)}._navBarButton_1xy53_1{--swui-nav-bar-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-800 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_1xy53_1._selected_1xy53_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_1wchp_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-hover: var( --lhds-color-blue-900 );--swui-nav-bar-notification-button-background-color-focus: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-active: var( --lhds-color-blue-800 );--swui-nav-bar-notification-button-background-color-unread: var( --lhds-color-red-500 );--swui-nav-bar-notification-button-background-color-unread-hover: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-focus: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-active: var( --lhds-color-red-800 );--swui-flat-button-text-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-icon-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-text-color-active: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px;--swui-nav-bar-notification-shake-count: 3;transition:.5s width;width:32px}._navBarNotificationButton_1wchp_1._hasCount_1wchp_60{width:56px}._navBarNotificationButton_1wchp_1._unread_1wchp_64{--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color-unread );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-unread-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-unread-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-unread-active )}._navBarNotificationButton_1wchp_1._unread_1wchp_64._hasCount_1wchp_60 ._icon_1wchp_79{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_1wchp_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_1wchp_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_4knxd_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_4knxd_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_4knxd_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-blue-600);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_4knxd_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1gxfr_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-active: var( --lhds-color-blue-800 );--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1gxfr_1._initials_1gxfr_33{width:32px}._collapsible_1nroa_1{--swui-collapsible-animation-time: var(--swui-animation-time-fast);--swui-collapsible-expanded-line-background-color: var( --swui-primary-action-color );--swui-collapsible-header-text-color: var(--lhds-color-ui-900);--swui-collapsible-header-background-color: var(--swui-white);--swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);--swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);--swui-collapsible-header-border-color: var(--lhds-color-ui-300);--swui-collapsible-header-border-color-focus: var( --swui-primary-action-color );--swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);--swui-collapsible-header-content-margin: calc( var(--swui-metrics-indent) * 2 );--swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);--swui-collapsible-header-indicator-color: var(--swui-primary-action-color);--swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);--swui-collapsible-header-indicator-color-hover: var( --swui-primary-action-color );--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;--swui-collapsible-content-background-color: var(--lhds-color-ui-100);--swui-collapsible-content-border-color: var(--lhds-color-ui-300);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2);--swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);--swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);--swui-collapsible-min-height: 40px}._collapsible_1nroa_1 ._header_1nroa_46{background-color:var(--swui-collapsible-header-background-color);width:100%;text-align:left;min-height:var(--swui-collapsible-min-height);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--swui-collapsible-header-border-color);padding:var(--swui-collapsible-header-padding)}._collapsible_1nroa_1 ._header_1nroa_46 ._indicator_1nroa_59{transition:all var(--swui-collapsible-animation-time) ease-in-out;margin-left:var(--swui-collapsible-header-content-margin);color:var(--swui-collapsible-header-indicator-color)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active){background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active) ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 ._header_1nroa_46:active{background:var(--swui-collapsible-header-background-color-active)}._collapsible_1nroa_1 ._header_1nroa_46:disabled{cursor:not-allowed}._collapsible_1nroa_1{position:relative}._collapsible_1nroa_1:before{content:"";position:absolute;width:2px;background:var(--swui-collapsible-expanded-line-background-color);top:0;bottom:0;left:0;z-index:1}._collapsible_1nroa_1 ._headerText_1nroa_103{font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1[aria-expanded=false]{--swui-collapsible-expanded-line-background-color: transparent}._collapsible_1nroa_1[aria-expanded=false] ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-collapsed)}._collapsible_1nroa_1 ._label_1nroa_114{margin-right:auto}._collapsible_1nroa_1 ._label_1nroa_114 span{--current-line-height: 1;font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1 ._contentLeft_1nroa_123,._collapsible_1nroa_1 ._contentRight_1nroa_124{display:flex}._collapsible_1nroa_1 ._contentLeft_1nroa_123 button,._collapsible_1nroa_1 ._contentRight_1nroa_124 button{cursor:pointer}._collapsible_1nroa_1 ._contentLeft_1nroa_123{margin-right:var(--swui-collapsible-header-content-margin)}._collapsible_1nroa_1 ._contentRight_1nroa_124{margin-left:auto}._collapsible_1nroa_1 ._content_1nroa_123{display:flex;align-items:center;justify-content:stretch;background:var(--swui-collapsible-content-background-color);padding:var(--swui-collapsible-content-padding);min-height:var(--swui-collapsible-min-height);box-sizing:border-box}._collapsible_1nroa_1 ._content_1nroa_123:last-child{border-bottom:1px solid var(--swui-collapsible-content-border-color)}._collapsible_1nroa_1 ._content_1nroa_123._groupHeading_1nroa_155{border:none;font-size:var(--swui-collapsible-groupheading-font-size);font-family:var(--swui-font-primary);color:var(--swui-collapsible-groupheading-text-color);text-transform:uppercase;font-weight:var(--swui-font-weight-text-bold);letter-spacing:.1rem}._collapsible_1nroa_1 ._content_1nroa_123 [data-hidden=true]{display:none}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hover=true]{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._contentEnter_1nroa_180{opacity:0}._collapsible_1nroa_1 ._contentEnterActive_1nroa_184{opacity:1;transition:opacity var(--swui-collapsible-animation-time) ease-in-out}._collapsible_1nroa_1 ._contentExitDone_1nroa_189{display:none}._collapsible_1nroa_1 button._content_1nroa_123{font-family:var(--swui-font-primary);font-size:inherit;width:100%;text-align:left}._collapsible_1nroa_1 button._content_1nroa_123:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 button._content_1nroa_123:not(:disabled):hover{background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 button._content_1nroa_123:disabled{cursor:not-allowed}._collapsible_1nroa_1 button._content_1nroa_123:focus-within [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-background-color: var( --swui-collapsible-content-background-color );--swui-collapsible-header-font-weight: normal}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 4);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 6)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 6);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 8)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 8);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 10)}._sidebarMenu_hch18_1{--swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);--swui-sidebar-menu-text-color: var(--swui-white);--swui-sidebar-menu-icon-color: var(--swui-white);--swui-sidebar-menu-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-focus: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-active: var(--lhds-color-blue-600);--swui-sidebar-menu-item-selected: var(--lhds-color-blue-800);--swui-sidebar-menu-content-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) 0;--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-item-selected: var(--swui-sidebar-menu-item-selected);--current-content-padding: var(--swui-sidebar-menu-content-padding);background-color:var(--current-background-color);height:100vh}._sidebarMenu_hch18_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_hch18_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._sidebarMenuCloseButton_1j21u_1{--swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);--swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-close-button-background-color-hover: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-focus: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-active: var( --lhds-color-blue-500 );--current-background-color: var( --swui-sidebar-menu-close-button-background-color );display:flex;align-items:center;justify-content:flex-start;line-height:10px;background-color:var(--current-background-color);color:var(--swui-sidebar-menu-close-button-text-color);cursor:pointer;height:var(--swui-sidebar-menu-item-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuCloseButton_1j21u_1:hover{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-hover )}._sidebarMenuCloseButton_1j21u_1:focus{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-focus )}._sidebarMenuCloseButton_1j21u_1:active{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-active )}._sidebarMenuCloseButton_1j21u_1 ._iconWrapper_1j21u_55{justify-content:center;align-items:center;width:var(--swui-sidebar-menu-item-height);height:var(--swui-sidebar-menu-item-height)}._sidebarMenuCloseButton_1j21u_1 ._icon_1j21u_55{color:var(--swui-sidebar-menu-close-button-text-color)}._label_mnp0f_1{font-size:var(--current-text-size, var(--swui-font-size-medium));line-height:var(--current-line-height, var(--swui-line-height-medium));font-weight:var(--swui-button-font-weight);font-family:var(--swui-font-buttons);color:var(--current-text-color)}._icon_mnp0f_9{color:var(--current-text-color);font-size:1.6rem}._spinner_mnp0f_14{color:var(--current-text-color)}._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18{width:var(--swui-sidebar-menu-item-height);margin-right:0}._button_mnp0f_23{border:0;padding:0;background:var(--current-background-color)}[data-collapsed] [aria-expanded=true] ._button_mnp0f_23,._button_mnp0f_23:hover{background:var(--current-background-color-hover)}._button_mnp0f_23:focus{outline:none}._button_mnp0f_23:focus-visible{background:var(--current-background-color-active)}._button_mnp0f_23:active{background:var(--current-background-color-active)}._button_mnp0f_23._selected_mnp0f_45{background:var(--current-item-selected)}._sidebarMenuHeading_kvpq5_1{--swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);text-transform:uppercase}._sidebarMenuCollapsible_1jwhs_1{--swui-collapsible-header-text-color: var(--current-text-color);--swui-collapsible-header-background-color: var(--current-background-color);--swui-collapsible-header-background-color-hover: var( --current-background-color-hover );--swui-collapsible-header-background-color-active: var( --current-background-color-active );--swui-collapsible-header-indicator-color: var(--current-text-color);--swui-collapsible-header-indicator-color-collapsed: var( --current-text-color );--swui-collapsible-header-indicator-color-hover: var(--current-text-color);--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;--swui-collapsible-header-content-margin: 0;--swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4);--swui-collapsible-header-border-color: transparent;--swui-collapsible-min-height: var(--swui-sidebar-menu-item-height)}')),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
import { ActionMenu as ne, ActionMenuContext as he, stenaAngleDown as te, PrimaryButton as pe, SecondaryButton as me, FlatButton as D, stenaBell as fe, Icon as R, stenaSearch as ge, stenaUser as be, Banner as ve, Spinner as _e, ButtonContent as Ce } from "@stenajs-webui/elements";
|
|
3
|
+
import * as L from "react";
|
|
4
|
+
import { useRef as Be, useMemo as oe, forwardRef as xe, useState as we } from "react";
|
|
5
|
+
import { useBoolean as U, Column as $, Box as d, Row as p, Indent as b, Heading as Z, Clickable as P, Text as C, Space as w, SeparatorLine as re, exhaustSwitchCaseElseThrow as ae } from "@stenajs-webui/core";
|
|
6
|
+
import { Popover as O } from "@stenajs-webui/tooltip";
|
|
7
|
+
import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
|
8
|
+
import { Checkbox as ie, TextInput as Ne } from "@stenajs-webui/forms";
|
|
9
|
+
import h from "classnames";
|
|
10
|
+
import { cssColor as M } from "@stenajs-webui/theme";
|
|
11
|
+
import { formatDistance as ye } from "date-fns";
|
|
12
|
+
import { faChevronDown as ke } from "@fortawesome/free-solid-svg-icons";
|
|
13
|
+
import { faChevronUp as Me } from "@fortawesome/free-solid-svg-icons/faChevronUp";
|
|
14
|
+
import { CSSTransition as Se } from "react-transition-group";
|
|
15
|
+
import { faInbox as Le } from "@fortawesome/free-solid-svg-icons/faInbox";
|
|
16
|
+
const q = ({
|
|
17
|
+
renderItems: n,
|
|
18
|
+
placement: o = "bottom",
|
|
19
|
+
buttonComponent: t,
|
|
20
|
+
rightIcon: r = te,
|
|
21
|
+
portalTarget: a = "parent",
|
|
22
|
+
zIndex: s,
|
|
23
|
+
menuWidth: c,
|
|
24
|
+
menuTop: u,
|
|
25
|
+
onClick: f,
|
|
26
|
+
disableArrow: v = !1,
|
|
27
|
+
..._
|
|
27
28
|
}) => {
|
|
28
|
-
const [
|
|
29
|
-
const buttonRef = useRef(null);
|
|
30
|
-
const focusManager = {
|
|
29
|
+
const [B, x, g, I] = U(!1), N = Be(null), E = {
|
|
31
30
|
name: "focusManager",
|
|
32
|
-
defaultValue:
|
|
31
|
+
defaultValue: !0,
|
|
33
32
|
fn({
|
|
34
|
-
popper
|
|
33
|
+
popper: H
|
|
35
34
|
}) {
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
restoreFocus = true;
|
|
40
|
-
close();
|
|
41
|
-
}
|
|
42
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
43
|
-
restoreFocus = true;
|
|
44
|
-
}
|
|
35
|
+
let j = !1;
|
|
36
|
+
const K = (S) => {
|
|
37
|
+
S.key === "Escape" && (j = !0, g()), (S.key === "Enter" || S.key === " ") && (j = !0);
|
|
45
38
|
};
|
|
46
39
|
return {
|
|
47
40
|
onCreate() {
|
|
48
|
-
|
|
41
|
+
H.addEventListener("keydown", K);
|
|
49
42
|
},
|
|
50
43
|
onDestroy() {
|
|
51
|
-
|
|
44
|
+
H.removeEventListener("keydown", K);
|
|
52
45
|
},
|
|
53
46
|
onMount() {
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
(_a = popper.querySelector("button:not([disabled]), a[href]")) == null ? void 0 : _a.focus();
|
|
47
|
+
var S;
|
|
48
|
+
j = !1, (S = H.querySelector("button:not([disabled]), a[href]")) == null || S.focus();
|
|
57
49
|
},
|
|
58
50
|
onHide() {
|
|
59
|
-
|
|
60
|
-
buttonRef.current.focus();
|
|
61
|
-
}
|
|
51
|
+
N.current && j && N.current.focus();
|
|
62
52
|
}
|
|
63
53
|
};
|
|
64
54
|
}
|
|
55
|
+
}, y = oe(() => ({
|
|
56
|
+
open: x,
|
|
57
|
+
close: g
|
|
58
|
+
}), [x, g]), F = (H) => {
|
|
59
|
+
f == null || f(H), I();
|
|
65
60
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
toggle();
|
|
73
|
-
};
|
|
74
|
-
return /* @__PURE__ */ jsx(Popover, {
|
|
75
|
-
disablePadding: true,
|
|
76
|
-
visible: isOpen,
|
|
77
|
-
onClickOutside: close,
|
|
78
|
-
placement,
|
|
79
|
-
content: isOpen && /* @__PURE__ */ jsx(ActionMenu, {
|
|
61
|
+
return /* @__PURE__ */ e(O, {
|
|
62
|
+
disablePadding: !0,
|
|
63
|
+
visible: B,
|
|
64
|
+
onClickOutside: g,
|
|
65
|
+
placement: o,
|
|
66
|
+
content: B && /* @__PURE__ */ e(ne, {
|
|
80
67
|
variant: "outlined",
|
|
81
|
-
width:
|
|
82
|
-
top:
|
|
83
|
-
trapFocus:
|
|
84
|
-
children: /* @__PURE__ */
|
|
85
|
-
value:
|
|
86
|
-
children:
|
|
68
|
+
width: c,
|
|
69
|
+
top: u,
|
|
70
|
+
trapFocus: !0,
|
|
71
|
+
children: /* @__PURE__ */ e(he.Provider, {
|
|
72
|
+
value: y,
|
|
73
|
+
children: n(g)
|
|
87
74
|
})
|
|
88
75
|
}),
|
|
89
|
-
arrow:
|
|
90
|
-
appendTo:
|
|
91
|
-
zIndex,
|
|
92
|
-
plugins: [
|
|
93
|
-
lazy:
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
-
rightIcon:
|
|
96
|
-
...
|
|
97
|
-
ref:
|
|
98
|
-
onClick:
|
|
76
|
+
arrow: !1,
|
|
77
|
+
appendTo: a,
|
|
78
|
+
zIndex: s,
|
|
79
|
+
plugins: [E],
|
|
80
|
+
lazy: !0,
|
|
81
|
+
children: /* @__PURE__ */ e(t, {
|
|
82
|
+
rightIcon: v ? void 0 : r,
|
|
83
|
+
..._,
|
|
84
|
+
ref: N,
|
|
85
|
+
onClick: F
|
|
99
86
|
})
|
|
100
87
|
});
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
};
|
|
114
|
-
const ActionMenuFlatButton = (props) => {
|
|
115
|
-
return /* @__PURE__ */ jsx(ActionMenuButton, {
|
|
116
|
-
buttonComponent: FlatButton,
|
|
117
|
-
...props
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
const border = `1px solid var(--lhds-color-ui-300)`;
|
|
121
|
-
const CheckboxMenu = ({
|
|
122
|
-
renderMenu,
|
|
123
|
-
...checkboxProps
|
|
88
|
+
}, Vn = (n) => /* @__PURE__ */ e(q, {
|
|
89
|
+
buttonComponent: pe,
|
|
90
|
+
...n
|
|
91
|
+
}), Gn = (n) => /* @__PURE__ */ e(q, {
|
|
92
|
+
buttonComponent: me,
|
|
93
|
+
...n
|
|
94
|
+
}), Ie = (n) => /* @__PURE__ */ e(q, {
|
|
95
|
+
buttonComponent: D,
|
|
96
|
+
...n
|
|
97
|
+
}), Ee = "1px solid var(--lhds-color-ui-300)", Jn = ({
|
|
98
|
+
renderMenu: n,
|
|
99
|
+
...o
|
|
124
100
|
}) => {
|
|
125
|
-
const [
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
onClickOutside:
|
|
128
|
-
arrow:
|
|
129
|
-
visible:
|
|
130
|
-
disablePadding:
|
|
131
|
-
content:
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
children:
|
|
101
|
+
const [t, r, a] = U(!1);
|
|
102
|
+
return /* @__PURE__ */ e(O, {
|
|
103
|
+
onClickOutside: a,
|
|
104
|
+
arrow: !1,
|
|
105
|
+
visible: t,
|
|
106
|
+
disablePadding: !0,
|
|
107
|
+
content: n ? /* @__PURE__ */ e($, {
|
|
108
|
+
children: /* @__PURE__ */ e(ne, {
|
|
109
|
+
children: n(a)
|
|
134
110
|
})
|
|
135
111
|
}) : void 0,
|
|
136
112
|
placement: "bottom-start",
|
|
137
113
|
variant: "outlined",
|
|
138
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ e(d, {
|
|
139
115
|
display: "inline-block",
|
|
140
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ i(p, {
|
|
141
117
|
spacing: 0.5,
|
|
142
|
-
indent:
|
|
118
|
+
indent: !0,
|
|
143
119
|
alignItems: "center",
|
|
144
|
-
border,
|
|
120
|
+
border: Ee,
|
|
145
121
|
borderRadius: "4px",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
147
|
-
...
|
|
148
|
-
}), /* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ e(ie, {
|
|
123
|
+
...o
|
|
124
|
+
}), /* @__PURE__ */ e(b, {
|
|
149
125
|
num: 0.5
|
|
150
|
-
}), /* @__PURE__ */
|
|
126
|
+
}), /* @__PURE__ */ e(D, {
|
|
151
127
|
size: "small",
|
|
152
|
-
onClick:
|
|
153
|
-
leftIcon:
|
|
128
|
+
onClick: r,
|
|
129
|
+
leftIcon: te
|
|
154
130
|
})]
|
|
155
131
|
})
|
|
156
132
|
})
|
|
157
133
|
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const icon$3 = "_icon_1x4z8_55";
|
|
165
|
-
var styles$9 = {
|
|
166
|
-
sidebarMenuButton,
|
|
167
|
-
icon: icon$3
|
|
168
|
-
};
|
|
169
|
-
const SvgBars = (props) => /* @__PURE__ */ React.createElement("svg", {
|
|
134
|
+
}, Fe = "_navBar_1qp30_1", He = {
|
|
135
|
+
navBar: Fe
|
|
136
|
+
}, Ae = "_sidebarMenuButton_1x4z8_1", Re = "_icon_1x4z8_55", Q = {
|
|
137
|
+
sidebarMenuButton: Ae,
|
|
138
|
+
icon: Re
|
|
139
|
+
}, $e = (n) => /* @__PURE__ */ L.createElement("svg", {
|
|
170
140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
171
141
|
width: 16,
|
|
172
142
|
height: 16,
|
|
173
143
|
viewBox: "0 0 24 24",
|
|
174
|
-
...
|
|
175
|
-
}, /* @__PURE__ */
|
|
144
|
+
...n
|
|
145
|
+
}, /* @__PURE__ */ L.createElement("path", {
|
|
176
146
|
fill: "#FFF",
|
|
177
147
|
fillRule: "evenodd",
|
|
178
148
|
d: "M22,5 L2,5 C2.11992373,5 2,4.85076158 2,5 L2,3 C2,3.14923842 2.11992373,3 2,3 L22,3 C21.8800763,3 22,3.14923842 22,3 L22,5 C22,4.85076158 21.8800763,5 22,5 Z M22,13 L2,13 C2.11992373,13 2,12.8507616 2,13 L2,11 C2,11.1492384 2.11992373,11 2,11 L22,11 C21.8800763,11 22,11.1492384 22,11 L22,13 C22,12.8507616 21.8800763,13 22,13 Z M22,21 L2,21 C2.11992373,21 2,20.8507616 2,21 L2,19 C2,19.1492384 2.11992373,19 2,19 L22,19 C21.8800763,19 22,19.1492384 22,19 L22,21 C22,20.8507616 21.8800763,21 22,21 Z"
|
|
179
|
-
}))
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
className:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
const variantToHeight = {
|
|
149
|
+
})), se = ({
|
|
150
|
+
className: n,
|
|
151
|
+
onClick: o
|
|
152
|
+
}) => /* @__PURE__ */ e("button", {
|
|
153
|
+
onClick: o,
|
|
154
|
+
className: h(Q.sidebarMenuButton, n),
|
|
155
|
+
children: /* @__PURE__ */ e($e, {
|
|
156
|
+
className: Q.icon
|
|
157
|
+
})
|
|
158
|
+
}), je = {
|
|
193
159
|
compact: 40,
|
|
194
160
|
standard: 48,
|
|
195
161
|
relaxed: 64
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
variant = "standard",
|
|
207
|
-
onClickMenuButton
|
|
162
|
+
}, ce = (n) => je[n] + "px", Kn = ({
|
|
163
|
+
left: n,
|
|
164
|
+
className: o,
|
|
165
|
+
showMenuButton: t = !1,
|
|
166
|
+
menuButtonVisibility: r = "visible",
|
|
167
|
+
children: a,
|
|
168
|
+
right: s,
|
|
169
|
+
center: c,
|
|
170
|
+
variant: u = "standard",
|
|
171
|
+
onClickMenuButton: f
|
|
208
172
|
}) => {
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
minHeight: height,
|
|
173
|
+
const v = c ? 1 : void 0, _ = ce(u);
|
|
174
|
+
return /* @__PURE__ */ i(p, {
|
|
175
|
+
height: _,
|
|
176
|
+
minHeight: _,
|
|
214
177
|
justifyContent: "space-between",
|
|
215
178
|
style: {
|
|
216
|
-
["--swui-nav-bar-height"]:
|
|
179
|
+
["--swui-nav-bar-height"]: _
|
|
217
180
|
},
|
|
218
|
-
className:
|
|
219
|
-
children: [/* @__PURE__ */
|
|
220
|
-
flex:
|
|
181
|
+
className: h(He.navBar, o),
|
|
182
|
+
children: [/* @__PURE__ */ i(p, {
|
|
183
|
+
flex: v,
|
|
221
184
|
justifyContent: "flex-start",
|
|
222
185
|
alignItems: "center",
|
|
223
|
-
children: [
|
|
224
|
-
children: [
|
|
186
|
+
children: [t ? /* @__PURE__ */ i(m, {
|
|
187
|
+
children: [r === "hidden" ? /* @__PURE__ */ e(d, {
|
|
225
188
|
width: "var(--swui-nav-bar-height)"
|
|
226
|
-
}) : /* @__PURE__ */
|
|
227
|
-
onClick:
|
|
228
|
-
}), /* @__PURE__ */
|
|
229
|
-
}) : /* @__PURE__ */
|
|
189
|
+
}) : /* @__PURE__ */ e(se, {
|
|
190
|
+
onClick: f
|
|
191
|
+
}), /* @__PURE__ */ e(b, {})]
|
|
192
|
+
}) : /* @__PURE__ */ e(b, {
|
|
230
193
|
num: 2
|
|
231
|
-
}),
|
|
232
|
-
children: [
|
|
194
|
+
}), n ? /* @__PURE__ */ i(m, {
|
|
195
|
+
children: [n, /* @__PURE__ */ e(b, {
|
|
233
196
|
num: 2
|
|
234
197
|
})]
|
|
235
|
-
}) : /* @__PURE__ */
|
|
198
|
+
}) : /* @__PURE__ */ e(b, {
|
|
236
199
|
num: 2
|
|
237
|
-
}),
|
|
238
|
-
children: /* @__PURE__ */
|
|
200
|
+
}), a && /* @__PURE__ */ e(m, {
|
|
201
|
+
children: /* @__PURE__ */ e(p, {
|
|
239
202
|
justifyContent: "center",
|
|
240
203
|
alignItems: "center",
|
|
241
|
-
children:
|
|
242
|
-
children: [
|
|
204
|
+
children: L.Children.map(a, (B, x) => /* @__PURE__ */ i(m, {
|
|
205
|
+
children: [x > 0 && /* @__PURE__ */ e(b, {}), B]
|
|
243
206
|
}))
|
|
244
207
|
})
|
|
245
208
|
})]
|
|
246
|
-
}),
|
|
209
|
+
}), c && /* @__PURE__ */ e(p, {
|
|
247
210
|
justifyContent: "center",
|
|
248
211
|
alignItems: "center",
|
|
249
|
-
children:
|
|
250
|
-
}), /* @__PURE__ */
|
|
212
|
+
children: c
|
|
213
|
+
}), /* @__PURE__ */ i(p, {
|
|
251
214
|
justifyContent: "flex-end",
|
|
252
215
|
alignItems: "center",
|
|
253
|
-
flex:
|
|
254
|
-
children: [
|
|
216
|
+
flex: v,
|
|
217
|
+
children: [s, /* @__PURE__ */ e(b, {
|
|
255
218
|
num: 2
|
|
256
219
|
})]
|
|
257
220
|
})]
|
|
258
221
|
});
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
className,
|
|
269
|
-
|
|
222
|
+
}, De = "_navBarButton_1xy53_1", Pe = "_selected_1xy53_36", X = {
|
|
223
|
+
navBarButton: De,
|
|
224
|
+
selected: Pe
|
|
225
|
+
}, Oe = ({
|
|
226
|
+
selected: n,
|
|
227
|
+
className: o,
|
|
228
|
+
...t
|
|
229
|
+
}) => /* @__PURE__ */ e(D, {
|
|
230
|
+
...t,
|
|
231
|
+
className: h(X.navBarButton, n && X.selected, o)
|
|
232
|
+
}), Qn = (n) => /* @__PURE__ */ e(Z, {
|
|
233
|
+
whiteSpace: "nowrap",
|
|
234
|
+
color: "#fff",
|
|
235
|
+
...n
|
|
236
|
+
}), Xn = ({
|
|
237
|
+
content: n,
|
|
238
|
+
children: o,
|
|
239
|
+
...t
|
|
270
240
|
}) => {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
});
|
|
275
|
-
};
|
|
276
|
-
const NavBarHeading = (headingProps) => {
|
|
277
|
-
return /* @__PURE__ */ jsx(Heading, {
|
|
278
|
-
whiteSpace: "nowrap",
|
|
279
|
-
color: "#fff",
|
|
280
|
-
...headingProps
|
|
281
|
-
});
|
|
282
|
-
};
|
|
283
|
-
const NavBarPopoverButton = ({
|
|
284
|
-
content: content2,
|
|
285
|
-
children,
|
|
286
|
-
...navBarButtonProps
|
|
287
|
-
}) => {
|
|
288
|
-
const [isOpen, open, close] = useBoolean(false);
|
|
289
|
-
return /* @__PURE__ */ jsx(Popover, {
|
|
290
|
-
onClickOutside: close,
|
|
241
|
+
const [r, a, s] = U(!1);
|
|
242
|
+
return /* @__PURE__ */ e(O, {
|
|
243
|
+
onClickOutside: s,
|
|
291
244
|
triggerTarget: document.body,
|
|
292
|
-
visible:
|
|
293
|
-
content: /* @__PURE__ */
|
|
294
|
-
children: [
|
|
295
|
-
close
|
|
296
|
-
}),
|
|
245
|
+
visible: r,
|
|
246
|
+
content: /* @__PURE__ */ i(m, {
|
|
247
|
+
children: [n && n({
|
|
248
|
+
close: s
|
|
249
|
+
}), o]
|
|
297
250
|
}),
|
|
298
|
-
children: /* @__PURE__ */
|
|
299
|
-
...
|
|
300
|
-
onClick:
|
|
251
|
+
children: /* @__PURE__ */ e(Oe, {
|
|
252
|
+
...t,
|
|
253
|
+
onClick: a
|
|
301
254
|
})
|
|
302
255
|
});
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
count,
|
|
318
|
-
unread: unread2 = false,
|
|
319
|
-
className,
|
|
320
|
-
labelClassName,
|
|
321
|
-
iconClassName,
|
|
322
|
-
icon: icon2 = stenaBell,
|
|
323
|
-
...buttonProps
|
|
256
|
+
}, Te = "_navBarNotificationButton_1wchp_1", We = "_hasCount_1wchp_60", ze = "_unread_1wchp_64", Ue = "_icon_1wchp_79", Ze = "_shake_1wchp_1", A = {
|
|
257
|
+
navBarNotificationButton: Te,
|
|
258
|
+
hasCount: We,
|
|
259
|
+
unread: ze,
|
|
260
|
+
icon: Ue,
|
|
261
|
+
shake: Ze
|
|
262
|
+
}, Yn = ({
|
|
263
|
+
count: n,
|
|
264
|
+
unread: o = !1,
|
|
265
|
+
className: t,
|
|
266
|
+
labelClassName: r,
|
|
267
|
+
iconClassName: a,
|
|
268
|
+
icon: s = fe,
|
|
269
|
+
...c
|
|
324
270
|
}) => {
|
|
325
|
-
const
|
|
326
|
-
return /* @__PURE__ */
|
|
327
|
-
...
|
|
328
|
-
leftIcon:
|
|
329
|
-
className:
|
|
330
|
-
[
|
|
271
|
+
const u = n > 0;
|
|
272
|
+
return /* @__PURE__ */ e(D, {
|
|
273
|
+
...c,
|
|
274
|
+
leftIcon: s,
|
|
275
|
+
className: h({
|
|
276
|
+
[A.unread]: o
|
|
331
277
|
}, {
|
|
332
|
-
[
|
|
333
|
-
},
|
|
334
|
-
label:
|
|
335
|
-
labelClassName:
|
|
336
|
-
iconClassName:
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
...buttonProps
|
|
376
|
-
}) => {
|
|
377
|
-
return /* @__PURE__ */ jsx(ActionMenuFlatButton, {
|
|
378
|
-
...buttonProps,
|
|
379
|
-
className: cx({
|
|
380
|
-
[styles$5.initials]: initials2 != null
|
|
381
|
-
}, styles$5.navBarUserButton, className),
|
|
382
|
-
leftIcon: username != null ? icon2 : void 0,
|
|
383
|
-
label: initials2 != null ? initials2 : username,
|
|
384
|
-
disableArrow: true
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
const defaultNotificationTheme = {
|
|
278
|
+
[A.hasCount]: u
|
|
279
|
+
}, A.navBarNotificationButton, t),
|
|
280
|
+
label: u ? String(n) : void 0,
|
|
281
|
+
labelClassName: h(r, A.label),
|
|
282
|
+
iconClassName: h(a, A.icon)
|
|
283
|
+
});
|
|
284
|
+
}, qe = "_navBarSearchFieldInput_4knxd_1", Ve = "_navBarSearchField_4knxd_1", Y = {
|
|
285
|
+
navBarSearchFieldInput: qe,
|
|
286
|
+
navBarSearchField: Ve
|
|
287
|
+
}, et = ({
|
|
288
|
+
placeholder: n = "Search...",
|
|
289
|
+
className: o,
|
|
290
|
+
wrapperClassName: t,
|
|
291
|
+
...r
|
|
292
|
+
}) => /* @__PURE__ */ e(Ne, {
|
|
293
|
+
wrapperClassName: h(Y.navBarSearchField, t),
|
|
294
|
+
className: h(Y.navBarSearchFieldInput, o),
|
|
295
|
+
placeholder: n,
|
|
296
|
+
contentRight: /* @__PURE__ */ e(P, {
|
|
297
|
+
children: /* @__PURE__ */ e(R, {
|
|
298
|
+
icon: ge
|
|
299
|
+
})
|
|
300
|
+
}),
|
|
301
|
+
...r
|
|
302
|
+
}), Ge = "_navBarUserButton_1gxfr_1", Je = "_initials_1gxfr_33", ee = {
|
|
303
|
+
navBarUserButton: Ge,
|
|
304
|
+
initials: Je
|
|
305
|
+
}, nt = ({
|
|
306
|
+
className: n,
|
|
307
|
+
username: o,
|
|
308
|
+
initials: t,
|
|
309
|
+
icon: r = be,
|
|
310
|
+
iconClassName: a,
|
|
311
|
+
...s
|
|
312
|
+
}) => /* @__PURE__ */ e(Ie, {
|
|
313
|
+
...s,
|
|
314
|
+
className: h({
|
|
315
|
+
[ee.initials]: t != null
|
|
316
|
+
}, ee.navBarUserButton, n),
|
|
317
|
+
leftIcon: o != null ? r : void 0,
|
|
318
|
+
label: t != null ? t : o,
|
|
319
|
+
disableArrow: !0
|
|
320
|
+
}), Ke = {
|
|
388
321
|
notificationBg: "#eaeaea",
|
|
389
322
|
notificationHoverBg: "#eeeeee",
|
|
390
323
|
notificationDismissedBg: "#ffffff",
|
|
391
324
|
notificationDismissedHoverBg: "#f4f4f4"
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
theme = defaultNotificationTheme
|
|
325
|
+
}, tt = ({
|
|
326
|
+
onClick: n,
|
|
327
|
+
icon: o,
|
|
328
|
+
iconColor: t,
|
|
329
|
+
title: r,
|
|
330
|
+
text: a,
|
|
331
|
+
content: s,
|
|
332
|
+
date: c,
|
|
333
|
+
dismissed: u,
|
|
334
|
+
theme: f = Ke
|
|
403
335
|
}) => {
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
406
|
-
return `${
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
return /* @__PURE__ */ jsx(Clickable, {
|
|
411
|
-
onClick,
|
|
336
|
+
const v = oe(() => {
|
|
337
|
+
if (c)
|
|
338
|
+
return `${ye(c, new Date())} ago`;
|
|
339
|
+
}, [c]);
|
|
340
|
+
return /* @__PURE__ */ e(P, {
|
|
341
|
+
onClick: n,
|
|
412
342
|
style: {
|
|
413
343
|
textAlign: "left"
|
|
414
344
|
},
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
-
background:
|
|
417
|
-
hoverBackground:
|
|
418
|
-
spacing:
|
|
419
|
-
indent:
|
|
420
|
-
children: /* @__PURE__ */
|
|
345
|
+
children: /* @__PURE__ */ e(d, {
|
|
346
|
+
background: u ? f.notificationDismissedBg : f.notificationBg,
|
|
347
|
+
hoverBackground: u ? f.notificationDismissedHoverBg : f.notificationHoverBg,
|
|
348
|
+
spacing: !0,
|
|
349
|
+
indent: !0,
|
|
350
|
+
children: /* @__PURE__ */ i(p, {
|
|
421
351
|
width: "250px",
|
|
422
|
-
children: [
|
|
352
|
+
children: [o && /* @__PURE__ */ e(p, {
|
|
423
353
|
width: "34px",
|
|
424
354
|
alignItems: "center",
|
|
425
|
-
children: /* @__PURE__ */
|
|
426
|
-
icon:
|
|
427
|
-
color:
|
|
355
|
+
children: /* @__PURE__ */ e(R, {
|
|
356
|
+
icon: o,
|
|
357
|
+
color: t
|
|
428
358
|
})
|
|
429
|
-
}), /* @__PURE__ */
|
|
359
|
+
}), /* @__PURE__ */ i($, {
|
|
430
360
|
flex: 1,
|
|
431
|
-
children: [
|
|
432
|
-
children: [/* @__PURE__ */
|
|
433
|
-
children:
|
|
434
|
-
}), /* @__PURE__ */
|
|
435
|
-
half:
|
|
361
|
+
children: [r && /* @__PURE__ */ i(m, {
|
|
362
|
+
children: [/* @__PURE__ */ e(C, {
|
|
363
|
+
children: r
|
|
364
|
+
}), /* @__PURE__ */ e(w, {
|
|
365
|
+
half: !0
|
|
436
366
|
})]
|
|
437
|
-
}),
|
|
438
|
-
children: [/* @__PURE__ */
|
|
367
|
+
}), a && /* @__PURE__ */ i(m, {
|
|
368
|
+
children: [/* @__PURE__ */ e(C, {
|
|
439
369
|
size: "small",
|
|
440
|
-
children:
|
|
441
|
-
}), /* @__PURE__ */
|
|
442
|
-
half:
|
|
370
|
+
children: a
|
|
371
|
+
}), /* @__PURE__ */ e(w, {
|
|
372
|
+
half: !0
|
|
443
373
|
})]
|
|
444
|
-
}),
|
|
445
|
-
children: [
|
|
446
|
-
half:
|
|
374
|
+
}), s && /* @__PURE__ */ i(m, {
|
|
375
|
+
children: [s, /* @__PURE__ */ e(w, {
|
|
376
|
+
half: !0
|
|
447
377
|
})]
|
|
448
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ e(C, {
|
|
449
379
|
size: "small",
|
|
450
|
-
color:
|
|
451
|
-
children:
|
|
380
|
+
color: M("--swui-text-disabled-color"),
|
|
381
|
+
children: v
|
|
452
382
|
})]
|
|
453
383
|
})]
|
|
454
384
|
})
|
|
455
385
|
})
|
|
456
386
|
});
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
})
|
|
499
|
-
}
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
contentRight: contentRight2,
|
|
503
|
-
className,
|
|
504
|
-
children,
|
|
505
|
-
...props
|
|
506
|
-
}) => {
|
|
507
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
508
|
-
className: cx(styles$4.content, className),
|
|
509
|
-
...props,
|
|
510
|
-
children: [contentLeft2 && /* @__PURE__ */ jsx("div", {
|
|
511
|
-
className: styles$4.contentLeft,
|
|
512
|
-
children: contentLeft2
|
|
513
|
-
}), children != null ? children : /* @__PURE__ */ jsx(CollapsibleEmptyContent, {}), contentRight2 && /* @__PURE__ */ jsx("div", {
|
|
514
|
-
className: styles$4.contentRight,
|
|
515
|
-
children: contentRight2
|
|
516
|
-
})]
|
|
517
|
-
});
|
|
518
|
-
};
|
|
519
|
-
const mapCSSTime = (value) => {
|
|
520
|
-
const num = parseFloat(value);
|
|
521
|
-
const match = value.match(/m?s/);
|
|
522
|
-
switch (match == null ? void 0 : match[0]) {
|
|
387
|
+
}, Qe = "_collapsible_1nroa_1", Xe = "_header_1nroa_46", Ye = "_indicator_1nroa_59", en = "_headerText_1nroa_103", nn = "_label_1nroa_114", tn = "_contentLeft_1nroa_123", on = "_contentRight_1nroa_124", rn = "_content_1nroa_123", an = "_groupHeading_1nroa_155", sn = "_contentEnter_1nroa_180", cn = "_contentEnterActive_1nroa_184", ln = "_contentExitDone_1nroa_189", l = {
|
|
388
|
+
collapsible: Qe,
|
|
389
|
+
header: Xe,
|
|
390
|
+
indicator: Ye,
|
|
391
|
+
headerText: en,
|
|
392
|
+
label: nn,
|
|
393
|
+
contentLeft: tn,
|
|
394
|
+
contentRight: on,
|
|
395
|
+
content: rn,
|
|
396
|
+
groupHeading: an,
|
|
397
|
+
contentEnter: sn,
|
|
398
|
+
contentEnterActive: cn,
|
|
399
|
+
contentExitDone: ln
|
|
400
|
+
}, V = () => /* @__PURE__ */ i($, {
|
|
401
|
+
indent: !0,
|
|
402
|
+
spacing: !0,
|
|
403
|
+
flex: 1,
|
|
404
|
+
alignItems: "center",
|
|
405
|
+
children: [/* @__PURE__ */ e(R, {
|
|
406
|
+
icon: Le,
|
|
407
|
+
color: M("--lhds-color-ui-500")
|
|
408
|
+
}), /* @__PURE__ */ e(w, {}), /* @__PURE__ */ e(C, {
|
|
409
|
+
size: "small",
|
|
410
|
+
color: M("--lhds-color-ui-500"),
|
|
411
|
+
children: "No content"
|
|
412
|
+
})]
|
|
413
|
+
}), G = ({
|
|
414
|
+
contentLeft: n,
|
|
415
|
+
contentRight: o,
|
|
416
|
+
className: t,
|
|
417
|
+
children: r,
|
|
418
|
+
...a
|
|
419
|
+
}) => /* @__PURE__ */ i("div", {
|
|
420
|
+
className: h(l.content, t),
|
|
421
|
+
...a,
|
|
422
|
+
children: [n && /* @__PURE__ */ e("div", {
|
|
423
|
+
className: l.contentLeft,
|
|
424
|
+
children: n
|
|
425
|
+
}), r != null ? r : /* @__PURE__ */ e(V, {}), o && /* @__PURE__ */ e("div", {
|
|
426
|
+
className: l.contentRight,
|
|
427
|
+
children: o
|
|
428
|
+
})]
|
|
429
|
+
}), dn = (n) => {
|
|
430
|
+
const o = parseFloat(n), t = n.match(/m?s/);
|
|
431
|
+
switch (t == null ? void 0 : t[0]) {
|
|
523
432
|
case "s":
|
|
524
|
-
return
|
|
433
|
+
return o * 1e3;
|
|
525
434
|
case "ms":
|
|
526
|
-
return
|
|
435
|
+
return o;
|
|
527
436
|
default:
|
|
528
437
|
return 0;
|
|
529
438
|
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
className: styles$4.label,
|
|
568
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
439
|
+
}, le = xe(function({
|
|
440
|
+
label: o,
|
|
441
|
+
contentLeft: t,
|
|
442
|
+
contentRight: r,
|
|
443
|
+
collapsed: a = !1,
|
|
444
|
+
onClick: s,
|
|
445
|
+
className: c,
|
|
446
|
+
disabled: u = !1,
|
|
447
|
+
unmountOnCollapse: f = !1,
|
|
448
|
+
mountOnEnter: v = !0,
|
|
449
|
+
icon: _ = Me,
|
|
450
|
+
iconCollapsed: B = ke,
|
|
451
|
+
iconSize: x = 8,
|
|
452
|
+
children: g,
|
|
453
|
+
autoFocus: I = !1,
|
|
454
|
+
...N
|
|
455
|
+
}, E) {
|
|
456
|
+
const y = L.useRef(null), F = y.current ? dn(getComputedStyle(y.current).getPropertyValue("--swui-collapsible-animation-time")) : void 0;
|
|
457
|
+
return /* @__PURE__ */ i("div", {
|
|
458
|
+
className: h(l.collapsible, c),
|
|
459
|
+
"aria-expanded": !a,
|
|
460
|
+
ref: y,
|
|
461
|
+
...N,
|
|
462
|
+
children: [/* @__PURE__ */ i(P, {
|
|
463
|
+
disableFocusHighlight: !0,
|
|
464
|
+
disableOpacityOnClick: !0,
|
|
465
|
+
className: l.header,
|
|
466
|
+
onClick: s,
|
|
467
|
+
disabled: u,
|
|
468
|
+
autoFocus: I,
|
|
469
|
+
ref: E,
|
|
470
|
+
children: [t && /* @__PURE__ */ e("div", {
|
|
471
|
+
className: l.contentLeft,
|
|
472
|
+
children: t
|
|
473
|
+
}), /* @__PURE__ */ e("div", {
|
|
474
|
+
className: l.label,
|
|
475
|
+
children: /* @__PURE__ */ e(C, {
|
|
569
476
|
color: "var(--swui-collapsible-header-text-color)",
|
|
570
|
-
className:
|
|
571
|
-
children:
|
|
477
|
+
className: l.headerText,
|
|
478
|
+
children: o
|
|
572
479
|
})
|
|
573
|
-
}),
|
|
574
|
-
className:
|
|
575
|
-
children:
|
|
576
|
-
}), /* @__PURE__ */
|
|
577
|
-
icon:
|
|
578
|
-
className:
|
|
579
|
-
size:
|
|
580
|
-
fixedWidth:
|
|
480
|
+
}), r && /* @__PURE__ */ e("div", {
|
|
481
|
+
className: l.contentRight,
|
|
482
|
+
children: r
|
|
483
|
+
}), /* @__PURE__ */ e(R, {
|
|
484
|
+
icon: a ? B : _,
|
|
485
|
+
className: l.indicator,
|
|
486
|
+
size: x,
|
|
487
|
+
fixedWidth: !0
|
|
581
488
|
})]
|
|
582
|
-
}), /* @__PURE__ */
|
|
583
|
-
in: !
|
|
489
|
+
}), /* @__PURE__ */ e(Se, {
|
|
490
|
+
in: !a,
|
|
584
491
|
timeout: {
|
|
585
|
-
enter:
|
|
492
|
+
enter: F
|
|
586
493
|
},
|
|
587
494
|
classNames: {
|
|
588
|
-
enter:
|
|
589
|
-
enterActive:
|
|
590
|
-
exit:
|
|
591
|
-
exitActive:
|
|
592
|
-
exitDone:
|
|
495
|
+
enter: l.contentEnter,
|
|
496
|
+
enterActive: l.contentEnterActive,
|
|
497
|
+
exit: l.contentExit,
|
|
498
|
+
exitActive: l.contentExitActive,
|
|
499
|
+
exitDone: l.contentExitDone
|
|
593
500
|
},
|
|
594
|
-
mountOnEnter,
|
|
595
|
-
unmountOnExit:
|
|
596
|
-
children: /* @__PURE__ */
|
|
501
|
+
mountOnEnter: v,
|
|
502
|
+
unmountOnExit: f,
|
|
503
|
+
children: /* @__PURE__ */ e("div", {
|
|
597
504
|
role: "region",
|
|
598
|
-
children:
|
|
599
|
-
children: /* @__PURE__ */
|
|
505
|
+
children: g != null ? g : /* @__PURE__ */ e(G, {
|
|
506
|
+
children: /* @__PURE__ */ e(V, {})
|
|
600
507
|
})
|
|
601
508
|
})
|
|
602
509
|
})]
|
|
603
510
|
});
|
|
604
|
-
})
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
children:
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
children: /* @__PURE__ */
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
const PageHeader = ({
|
|
703
|
-
renderBreadCrumbs,
|
|
704
|
-
renderPageHeading,
|
|
705
|
-
renderTabs,
|
|
706
|
-
children
|
|
707
|
-
}) => {
|
|
708
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
709
|
-
shadow: "box",
|
|
710
|
-
background: cssColor("--lhds-color-ui-50"),
|
|
711
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
712
|
-
indent: 3,
|
|
713
|
-
children: [renderBreadCrumbs && /* @__PURE__ */ jsx(Row, {
|
|
714
|
-
spacing: 1.25,
|
|
715
|
-
children: renderBreadCrumbs()
|
|
716
|
-
}), renderPageHeading == null ? void 0 : renderPageHeading(), renderTabs == null ? void 0 : renderTabs()]
|
|
717
|
-
}), children && /* @__PURE__ */ jsxs(Fragment, {
|
|
718
|
-
children: [!renderTabs && renderBreadCrumbs && /* @__PURE__ */ jsx(Space, {}), /* @__PURE__ */ jsx(SeparatorLine, {}), children]
|
|
719
|
-
})]
|
|
720
|
-
});
|
|
721
|
-
};
|
|
722
|
-
const PageHeaderRow = (props) => /* @__PURE__ */ jsx(Row, {
|
|
511
|
+
}), ot = ({
|
|
512
|
+
value: n,
|
|
513
|
+
onValueChange: o,
|
|
514
|
+
onChange: t,
|
|
515
|
+
indeterminate: r,
|
|
516
|
+
...a
|
|
517
|
+
}) => /* @__PURE__ */ e(le, {
|
|
518
|
+
contentLeft: /* @__PURE__ */ e(ie, {
|
|
519
|
+
value: n,
|
|
520
|
+
indeterminate: r,
|
|
521
|
+
onValueChange: o,
|
|
522
|
+
onChange: t,
|
|
523
|
+
onClick: (s) => s.stopPropagation()
|
|
524
|
+
}),
|
|
525
|
+
...a
|
|
526
|
+
}), rt = ({
|
|
527
|
+
contentLeft: n,
|
|
528
|
+
contentRight: o,
|
|
529
|
+
className: t,
|
|
530
|
+
onClick: r,
|
|
531
|
+
children: a,
|
|
532
|
+
...s
|
|
533
|
+
}) => /* @__PURE__ */ i(P, {
|
|
534
|
+
disableFocusHighlight: !0,
|
|
535
|
+
disableOpacityOnClick: !0,
|
|
536
|
+
className: h(l.content, t),
|
|
537
|
+
onClick: r,
|
|
538
|
+
...s,
|
|
539
|
+
children: [n && /* @__PURE__ */ e("div", {
|
|
540
|
+
className: l.contentLeft,
|
|
541
|
+
children: n
|
|
542
|
+
}), a != null ? a : /* @__PURE__ */ e(V, {}), o && /* @__PURE__ */ e("div", {
|
|
543
|
+
className: l.contentRight,
|
|
544
|
+
children: o
|
|
545
|
+
})]
|
|
546
|
+
}), at = ({
|
|
547
|
+
className: n,
|
|
548
|
+
...o
|
|
549
|
+
}) => /* @__PURE__ */ e(G, {
|
|
550
|
+
className: h(l.groupHeading, n),
|
|
551
|
+
...o
|
|
552
|
+
}), un = ({
|
|
553
|
+
text: n = "Something unexpected happened."
|
|
554
|
+
}) => /* @__PURE__ */ e(d, {
|
|
555
|
+
justifyContent: "center",
|
|
556
|
+
alignItems: "center",
|
|
557
|
+
children: /* @__PURE__ */ e(ve, {
|
|
558
|
+
variant: "error",
|
|
559
|
+
headerText: n
|
|
560
|
+
})
|
|
561
|
+
}), it = (n) => /* @__PURE__ */ e(d, {
|
|
562
|
+
width: "100%",
|
|
563
|
+
height: "100%",
|
|
564
|
+
justifyContent: "center",
|
|
565
|
+
alignItems: "center",
|
|
566
|
+
children: /* @__PURE__ */ e(un, {
|
|
567
|
+
...n
|
|
568
|
+
})
|
|
569
|
+
}), hn = ({
|
|
570
|
+
text: n = "Loading..."
|
|
571
|
+
}) => /* @__PURE__ */ i(d, {
|
|
572
|
+
alignItems: "center",
|
|
573
|
+
children: [/* @__PURE__ */ e(_e, {
|
|
574
|
+
size: "small"
|
|
575
|
+
}), /* @__PURE__ */ e(w, {
|
|
576
|
+
num: 4
|
|
577
|
+
}), /* @__PURE__ */ e(Z, {
|
|
578
|
+
variant: "h4",
|
|
579
|
+
children: n
|
|
580
|
+
})]
|
|
581
|
+
}), st = (n) => /* @__PURE__ */ e(d, {
|
|
582
|
+
width: "100%",
|
|
583
|
+
height: "100%",
|
|
584
|
+
justifyContent: "center",
|
|
585
|
+
alignItems: "center",
|
|
586
|
+
children: /* @__PURE__ */ e(hn, {
|
|
587
|
+
...n
|
|
588
|
+
})
|
|
589
|
+
}), ct = ({
|
|
590
|
+
renderBreadCrumbs: n,
|
|
591
|
+
renderPageHeading: o,
|
|
592
|
+
renderTabs: t,
|
|
593
|
+
children: r
|
|
594
|
+
}) => /* @__PURE__ */ i(d, {
|
|
595
|
+
shadow: "box",
|
|
596
|
+
background: M("--lhds-color-ui-50"),
|
|
597
|
+
children: [/* @__PURE__ */ i(d, {
|
|
598
|
+
indent: 3,
|
|
599
|
+
children: [n && /* @__PURE__ */ e(p, {
|
|
600
|
+
spacing: 1.25,
|
|
601
|
+
children: n()
|
|
602
|
+
}), o == null ? void 0 : o(), t == null ? void 0 : t()]
|
|
603
|
+
}), r && /* @__PURE__ */ i(m, {
|
|
604
|
+
children: [!t && n && /* @__PURE__ */ e(w, {}), /* @__PURE__ */ e(re, {}), r]
|
|
605
|
+
})]
|
|
606
|
+
}), lt = (n) => /* @__PURE__ */ e(p, {
|
|
723
607
|
indent: 3,
|
|
724
|
-
spacing:
|
|
725
|
-
...
|
|
726
|
-
})
|
|
727
|
-
const variantToSpacing = {
|
|
608
|
+
spacing: !0,
|
|
609
|
+
...n
|
|
610
|
+
}), pn = {
|
|
728
611
|
compact: 1,
|
|
729
612
|
standard: 1.5,
|
|
730
613
|
relaxed: 2
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
spacing: variantToSpacing[variant],
|
|
614
|
+
}, dt = ({
|
|
615
|
+
heading: n,
|
|
616
|
+
variant: o = "standard",
|
|
617
|
+
contentLeft: t,
|
|
618
|
+
contentRight: r
|
|
619
|
+
}) => /* @__PURE__ */ i(p, {
|
|
620
|
+
spacing: pn[o],
|
|
739
621
|
alignItems: "center",
|
|
740
622
|
gap: 2,
|
|
741
|
-
children: [/* @__PURE__ */
|
|
623
|
+
children: [/* @__PURE__ */ e(Z, {
|
|
742
624
|
variant: "h3",
|
|
743
|
-
children:
|
|
744
|
-
}), /* @__PURE__ */
|
|
625
|
+
children: n
|
|
626
|
+
}), /* @__PURE__ */ e(p, {
|
|
745
627
|
alignItems: "center",
|
|
746
|
-
children:
|
|
747
|
-
}), /* @__PURE__ */
|
|
628
|
+
children: t
|
|
629
|
+
}), /* @__PURE__ */ e(p, {
|
|
748
630
|
style: {
|
|
749
631
|
marginLeft: "auto"
|
|
750
632
|
},
|
|
751
633
|
alignItems: "center",
|
|
752
|
-
children:
|
|
634
|
+
children: r
|
|
753
635
|
})]
|
|
754
|
-
})
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
const icon$1 = "_icon_1j21u_55";
|
|
762
|
-
var styles$2 = {
|
|
763
|
-
sidebarMenuCloseButton,
|
|
764
|
-
iconWrapper,
|
|
765
|
-
icon: icon$1
|
|
766
|
-
};
|
|
767
|
-
const SvgClose = (props) => /* @__PURE__ */ React.createElement("svg", {
|
|
636
|
+
}), mn = "_sidebarMenu_hch18_1", T = {
|
|
637
|
+
sidebarMenu: mn
|
|
638
|
+
}, fn = "_sidebarMenuCloseButton_1j21u_1", gn = "_iconWrapper_1j21u_55", bn = "_icon_1j21u_55", W = {
|
|
639
|
+
sidebarMenuCloseButton: fn,
|
|
640
|
+
iconWrapper: gn,
|
|
641
|
+
icon: bn
|
|
642
|
+
}, vn = (n) => /* @__PURE__ */ L.createElement("svg", {
|
|
768
643
|
width: "16px",
|
|
769
644
|
height: "16px",
|
|
770
645
|
viewBox: "0 0 16 16",
|
|
771
646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
772
|
-
...
|
|
773
|
-
}, /* @__PURE__ */
|
|
647
|
+
...n
|
|
648
|
+
}, /* @__PURE__ */ L.createElement("path", {
|
|
774
649
|
d: "M0.928932188,0.928932188 C1.31945648,0.538407896 1.95262146,0.538407896 2.34314575,0.928932188 L2.34314575,0.928932188 L8.00003897,6.58503897 L13.6568542,0.928932188 C14.0473785,0.538407896 14.6805435,0.538407896 15.0710678,0.928932188 C15.4615921,1.31945648 15.4615921,1.95262146 15.0710678,2.34314575 L9.41503897,8.00003897 L15.0710678,13.6568542 C15.4315518,14.0173382 15.4592813,14.5845693 15.1542564,14.9768605 L15.0710678,15.0710678 C14.6805435,15.4615921 14.0473785,15.4615921 13.6568542,15.0710678 L13.6568542,15.0710678 L8.00003897,9.41503897 L2.34314575,15.0710678 C1.95262146,15.4615921 1.31945648,15.4615921 0.928932188,15.0710678 C0.538407896,14.6805435 0.538407896,14.0473785 0.928932188,13.6568542 L6.58503897,8.00003897 L0.928932188,2.34314575 C0.568448227,1.98266179 0.540718691,1.41543073 0.845743582,1.02313953 Z",
|
|
775
650
|
id: "Combined-Shape",
|
|
776
651
|
fill: "#FFFFFF"
|
|
777
|
-
}))
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
className:
|
|
785
|
-
children: /* @__PURE__ */
|
|
786
|
-
className:
|
|
787
|
-
children: /* @__PURE__ */ jsx(SvgClose, {
|
|
788
|
-
className: styles$2.icon
|
|
789
|
-
})
|
|
652
|
+
})), _n = ({
|
|
653
|
+
className: n,
|
|
654
|
+
onClick: o
|
|
655
|
+
}) => /* @__PURE__ */ e("button", {
|
|
656
|
+
onClick: o,
|
|
657
|
+
className: h(W.sidebarMenuCloseButton, n),
|
|
658
|
+
children: /* @__PURE__ */ e(d, {
|
|
659
|
+
className: W.iconWrapper,
|
|
660
|
+
children: /* @__PURE__ */ e(vn, {
|
|
661
|
+
className: W.icon
|
|
790
662
|
})
|
|
791
|
-
})
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
variant = "standard",
|
|
804
|
-
...boxProps
|
|
663
|
+
})
|
|
664
|
+
}), J = (n) => /* @__PURE__ */ e(re, {
|
|
665
|
+
color: M("--lhds-color-blue-600"),
|
|
666
|
+
...n
|
|
667
|
+
}), Cn = ({
|
|
668
|
+
className: n,
|
|
669
|
+
children: o,
|
|
670
|
+
onCloseClick: t,
|
|
671
|
+
collapsed: r = !1,
|
|
672
|
+
hideCloseButton: a = !1,
|
|
673
|
+
variant: s = "standard",
|
|
674
|
+
...c
|
|
805
675
|
}) => {
|
|
806
|
-
const
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
-
className:
|
|
676
|
+
const u = ce(s);
|
|
677
|
+
return /* @__PURE__ */ i(d, {
|
|
678
|
+
className: h(T.sidebarMenu, r ? T.collapsed : null, n),
|
|
809
679
|
style: {
|
|
810
|
-
["--swui-sidebar-menu-item-height"]:
|
|
811
|
-
["--swui-nav-bar-height"]:
|
|
680
|
+
["--swui-sidebar-menu-item-height"]: u,
|
|
681
|
+
["--swui-nav-bar-height"]: u
|
|
812
682
|
},
|
|
813
|
-
"data-collapsed":
|
|
814
|
-
...
|
|
815
|
-
children: [!
|
|
816
|
-
children: [/* @__PURE__ */
|
|
817
|
-
onClick:
|
|
818
|
-
}), /* @__PURE__ */
|
|
819
|
-
}), /* @__PURE__ */
|
|
820
|
-
className:
|
|
683
|
+
"data-collapsed": r || void 0,
|
|
684
|
+
...c,
|
|
685
|
+
children: [!a && /* @__PURE__ */ i(m, {
|
|
686
|
+
children: [/* @__PURE__ */ e(_n, {
|
|
687
|
+
onClick: t
|
|
688
|
+
}), /* @__PURE__ */ e(J, {}), /* @__PURE__ */ e(w, {})]
|
|
689
|
+
}), /* @__PURE__ */ e(d, {
|
|
690
|
+
className: T.sidebarMenuContent,
|
|
821
691
|
height: "100%",
|
|
822
692
|
background: "var(--current-background-color)",
|
|
823
|
-
children: /* @__PURE__ */
|
|
693
|
+
children: /* @__PURE__ */ e($, {
|
|
824
694
|
flex: 1,
|
|
825
|
-
children
|
|
695
|
+
children: o
|
|
826
696
|
})
|
|
827
697
|
})]
|
|
828
698
|
});
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
699
|
+
}, ut = ({
|
|
700
|
+
variant: n,
|
|
701
|
+
onClickMenuButton: o,
|
|
702
|
+
children: t
|
|
703
|
+
}) => /* @__PURE__ */ i(Cn, {
|
|
704
|
+
collapsed: !0,
|
|
705
|
+
position: "fixed",
|
|
706
|
+
left: 0,
|
|
707
|
+
top: 0,
|
|
708
|
+
hideCloseButton: !0,
|
|
709
|
+
variant: n,
|
|
710
|
+
children: [/* @__PURE__ */ e(se, {
|
|
711
|
+
onClick: o
|
|
712
|
+
}), t]
|
|
713
|
+
}), Bn = "_label_mnp0f_1", xn = "_icon_mnp0f_9", wn = "_spinner_mnp0f_14", Nn = "_leftWrapper_mnp0f_18", yn = "_button_mnp0f_23", kn = "_selected_mnp0f_45", k = {
|
|
714
|
+
label: Bn,
|
|
715
|
+
icon: xn,
|
|
716
|
+
spinner: wn,
|
|
717
|
+
leftWrapper: Nn,
|
|
718
|
+
button: yn,
|
|
719
|
+
selected: kn
|
|
720
|
+
}, Mn = ({
|
|
721
|
+
activeClassName: n,
|
|
722
|
+
...o
|
|
723
|
+
}) => /* @__PURE__ */ e("button", {
|
|
724
|
+
...o
|
|
725
|
+
}), z = ({
|
|
726
|
+
className: n,
|
|
727
|
+
children: o,
|
|
728
|
+
selected: t,
|
|
729
|
+
indent: r,
|
|
730
|
+
label: a,
|
|
731
|
+
loading: s,
|
|
732
|
+
left: c,
|
|
733
|
+
leftIcon: u,
|
|
734
|
+
right: f,
|
|
735
|
+
rightIcon: v,
|
|
736
|
+
success: _,
|
|
737
|
+
width: B,
|
|
738
|
+
renderLink: x = Mn,
|
|
739
|
+
style: g,
|
|
740
|
+
...I
|
|
834
741
|
}) => {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
left: 0,
|
|
839
|
-
top: 0,
|
|
840
|
-
hideCloseButton: true,
|
|
841
|
-
variant,
|
|
842
|
-
children: [/* @__PURE__ */ jsx(NavBarSideMenuButton, {
|
|
843
|
-
onClick: onClickMenuButton
|
|
844
|
-
}), children]
|
|
845
|
-
});
|
|
846
|
-
};
|
|
847
|
-
const label = "_label_mnp0f_1";
|
|
848
|
-
const icon = "_icon_mnp0f_9";
|
|
849
|
-
const spinner = "_spinner_mnp0f_14";
|
|
850
|
-
const leftWrapper = "_leftWrapper_mnp0f_18";
|
|
851
|
-
const button = "_button_mnp0f_23";
|
|
852
|
-
const selected = "_selected_mnp0f_45";
|
|
853
|
-
var contentStyles = {
|
|
854
|
-
label,
|
|
855
|
-
icon,
|
|
856
|
-
spinner,
|
|
857
|
-
leftWrapper,
|
|
858
|
-
button,
|
|
859
|
-
selected
|
|
860
|
-
};
|
|
861
|
-
const defaultRenderLink = ({
|
|
862
|
-
activeClassName,
|
|
863
|
-
...props
|
|
864
|
-
}) => {
|
|
865
|
-
return /* @__PURE__ */ jsx("button", {
|
|
866
|
-
...props
|
|
867
|
-
});
|
|
868
|
-
};
|
|
869
|
-
const SidebarMenuLink = ({
|
|
870
|
-
className,
|
|
871
|
-
children,
|
|
872
|
-
selected: selected2,
|
|
873
|
-
indent,
|
|
874
|
-
label: label2,
|
|
875
|
-
loading,
|
|
876
|
-
left,
|
|
877
|
-
leftIcon,
|
|
878
|
-
right,
|
|
879
|
-
rightIcon,
|
|
880
|
-
success,
|
|
881
|
-
width,
|
|
882
|
-
renderLink = defaultRenderLink,
|
|
883
|
-
style,
|
|
884
|
-
...buttonProps
|
|
885
|
-
}) => {
|
|
886
|
-
const hasContentLeft = left || leftIcon || loading || success;
|
|
887
|
-
const innerClassName = cx(contentStyles.button, selected2 ? contentStyles.selected : void 0, className);
|
|
888
|
-
const innerStyle = {
|
|
889
|
-
...style,
|
|
890
|
-
width,
|
|
742
|
+
const N = c || u || s || _, E = h(k.button, t ? k.selected : void 0, n), y = {
|
|
743
|
+
...g,
|
|
744
|
+
width: B,
|
|
891
745
|
height: "var(--swui-sidebar-menu-item-height)"
|
|
892
|
-
}
|
|
893
|
-
const innerChildren = /* @__PURE__ */ jsxs(Row, {
|
|
746
|
+
}, F = /* @__PURE__ */ i(p, {
|
|
894
747
|
spacing: 1,
|
|
895
748
|
flex: 1,
|
|
896
749
|
alignItems: "center",
|
|
897
|
-
children: [!
|
|
750
|
+
children: [!N && /* @__PURE__ */ e(b, {}), r && /* @__PURE__ */ e(b, {
|
|
898
751
|
num: 3.5
|
|
899
|
-
}), /* @__PURE__ */
|
|
900
|
-
label:
|
|
901
|
-
loading,
|
|
902
|
-
left,
|
|
903
|
-
leftIcon,
|
|
904
|
-
right,
|
|
905
|
-
rightIcon,
|
|
906
|
-
success,
|
|
907
|
-
labelClassName:
|
|
908
|
-
spinnerClassName:
|
|
909
|
-
iconClassName:
|
|
910
|
-
leftWrapperClassName:
|
|
752
|
+
}), /* @__PURE__ */ e(Ce, {
|
|
753
|
+
label: a,
|
|
754
|
+
loading: s,
|
|
755
|
+
left: c,
|
|
756
|
+
leftIcon: u,
|
|
757
|
+
right: f,
|
|
758
|
+
rightIcon: v,
|
|
759
|
+
success: _,
|
|
760
|
+
labelClassName: k.label,
|
|
761
|
+
spinnerClassName: k.spinner,
|
|
762
|
+
iconClassName: h(k.icon),
|
|
763
|
+
leftWrapperClassName: k.leftWrapper
|
|
911
764
|
})]
|
|
912
765
|
});
|
|
913
|
-
return /* @__PURE__ */
|
|
914
|
-
children:
|
|
915
|
-
...
|
|
916
|
-
activeClassName:
|
|
917
|
-
className:
|
|
918
|
-
children:
|
|
919
|
-
style:
|
|
766
|
+
return /* @__PURE__ */ e(m, {
|
|
767
|
+
children: x({
|
|
768
|
+
...I,
|
|
769
|
+
activeClassName: k.selected,
|
|
770
|
+
className: E,
|
|
771
|
+
children: F,
|
|
772
|
+
style: y
|
|
920
773
|
})
|
|
921
774
|
});
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
children: /* @__PURE__ */
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
children:
|
|
942
|
-
variant: "overline",
|
|
943
|
-
color: "var(--swui-sidebar-menu-heading-text-color)",
|
|
944
|
-
...textProps,
|
|
945
|
-
children: label2
|
|
946
|
-
})
|
|
775
|
+
}, Sn = "_sidebarMenuHeading_kvpq5_1", Ln = {
|
|
776
|
+
sidebarMenuHeading: Sn
|
|
777
|
+
}, de = ({
|
|
778
|
+
className: n,
|
|
779
|
+
label: o,
|
|
780
|
+
contentLeft: t,
|
|
781
|
+
contentRight: r,
|
|
782
|
+
...a
|
|
783
|
+
}) => /* @__PURE__ */ e(d, {
|
|
784
|
+
spacing: 2,
|
|
785
|
+
indent: 2,
|
|
786
|
+
children: /* @__PURE__ */ e(G, {
|
|
787
|
+
className: Ln.sidebarMenuHeading,
|
|
788
|
+
contentLeft: t,
|
|
789
|
+
contentRight: r,
|
|
790
|
+
children: /* @__PURE__ */ e(C, {
|
|
791
|
+
variant: "overline",
|
|
792
|
+
color: "var(--swui-sidebar-menu-heading-text-color)",
|
|
793
|
+
...a,
|
|
794
|
+
children: o
|
|
947
795
|
})
|
|
948
|
-
})
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
children,
|
|
956
|
-
label: label2,
|
|
957
|
-
leftIcon
|
|
796
|
+
})
|
|
797
|
+
}), In = "_sidebarMenuCollapsible_1jwhs_1", En = {
|
|
798
|
+
sidebarMenuCollapsible: In
|
|
799
|
+
}, Fn = ({
|
|
800
|
+
children: n,
|
|
801
|
+
label: o,
|
|
802
|
+
leftIcon: t
|
|
958
803
|
}) => {
|
|
959
|
-
const [
|
|
960
|
-
return /* @__PURE__ */
|
|
804
|
+
const [r, a] = we(!1);
|
|
805
|
+
return /* @__PURE__ */ e(d, {
|
|
961
806
|
background: "var(--current-background-color)",
|
|
962
|
-
children: /* @__PURE__ */
|
|
963
|
-
className:
|
|
964
|
-
label:
|
|
965
|
-
collapsed,
|
|
966
|
-
onClick: () =>
|
|
967
|
-
contentLeft:
|
|
807
|
+
children: /* @__PURE__ */ e(le, {
|
|
808
|
+
className: En.sidebarMenuCollapsible,
|
|
809
|
+
label: o,
|
|
810
|
+
collapsed: r,
|
|
811
|
+
onClick: () => a(!r),
|
|
812
|
+
contentLeft: t ? /* @__PURE__ */ e(d, {
|
|
968
813
|
width: "var(--swui-sidebar-menu-item-height)",
|
|
969
814
|
alignItems: "center",
|
|
970
815
|
justifyContent: "center",
|
|
971
|
-
children: /* @__PURE__ */
|
|
972
|
-
icon:
|
|
816
|
+
children: /* @__PURE__ */ e(R, {
|
|
817
|
+
icon: t,
|
|
973
818
|
size: 16,
|
|
974
819
|
color: "var(--current-text-color)",
|
|
975
|
-
"data-hover":
|
|
820
|
+
"data-hover": !0
|
|
976
821
|
})
|
|
977
|
-
}) : /* @__PURE__ */
|
|
822
|
+
}) : /* @__PURE__ */ e(b, {
|
|
978
823
|
num: 1
|
|
979
824
|
}),
|
|
980
|
-
children: /* @__PURE__ */
|
|
825
|
+
children: /* @__PURE__ */ e($, {
|
|
981
826
|
flex: 1,
|
|
982
|
-
children
|
|
827
|
+
children: n
|
|
983
828
|
})
|
|
984
829
|
})
|
|
985
830
|
});
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
...linkProps
|
|
1004
|
-
}, index);
|
|
1005
|
-
}
|
|
1006
|
-
case "grouped":
|
|
1007
|
-
return /* @__PURE__ */ jsx(SidebarMenuCollapsible, {
|
|
1008
|
-
leftIcon: item.leftIcon,
|
|
1009
|
-
label: item.label,
|
|
1010
|
-
children: renderItemsExpanded(item.items, true)
|
|
1011
|
-
}, index);
|
|
1012
|
-
default:
|
|
1013
|
-
return exhaustSwitchCaseElseThrow(item);
|
|
831
|
+
}, ue = (n, o = !1) => n.map((t, r) => {
|
|
832
|
+
switch (t.type) {
|
|
833
|
+
case "heading":
|
|
834
|
+
return /* @__PURE__ */ e(de, {
|
|
835
|
+
label: t.label
|
|
836
|
+
}, r);
|
|
837
|
+
case "separator":
|
|
838
|
+
return /* @__PURE__ */ e(J, {}, r);
|
|
839
|
+
case "link": {
|
|
840
|
+
const {
|
|
841
|
+
type: a,
|
|
842
|
+
...s
|
|
843
|
+
} = t;
|
|
844
|
+
return /* @__PURE__ */ e(z, {
|
|
845
|
+
indent: o,
|
|
846
|
+
...s
|
|
847
|
+
}, r);
|
|
1014
848
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
offset: [0, 0],
|
|
1044
|
-
placement: "right-start",
|
|
1045
|
-
trigger: "focusin mouseenter click",
|
|
1046
|
-
disablePadding: true,
|
|
1047
|
-
lazy: true,
|
|
1048
|
-
content: /* @__PURE__ */ jsxs(Box, {
|
|
1049
|
-
minWidth: popupMinWidth,
|
|
1050
|
-
background: "var(--lhds-color-blue-500)",
|
|
1051
|
-
children: [/* @__PURE__ */ jsx(SidebarMenuHeading, {
|
|
1052
|
-
label: item.label
|
|
1053
|
-
}), renderItemsExpanded(item.items)]
|
|
1054
|
-
}),
|
|
1055
|
-
children: /* @__PURE__ */ jsx(SidebarMenuLink, {
|
|
1056
|
-
title: item.label,
|
|
1057
|
-
width: "var(--swui-sidebar-menu-item-height)",
|
|
1058
|
-
leftIcon: item.leftIcon
|
|
1059
|
-
})
|
|
1060
|
-
})
|
|
1061
|
-
}, index);
|
|
1062
|
-
default:
|
|
1063
|
-
return exhaustSwitchCaseElseThrow(item);
|
|
849
|
+
case "grouped":
|
|
850
|
+
return /* @__PURE__ */ e(Fn, {
|
|
851
|
+
leftIcon: t.leftIcon,
|
|
852
|
+
label: t.label,
|
|
853
|
+
children: ue(t.items, !0)
|
|
854
|
+
}, r);
|
|
855
|
+
default:
|
|
856
|
+
return ae(t);
|
|
857
|
+
}
|
|
858
|
+
}), ht = (n, {
|
|
859
|
+
popupMinWidth: o
|
|
860
|
+
}) => n.map((t, r) => {
|
|
861
|
+
switch (t.type) {
|
|
862
|
+
case "heading":
|
|
863
|
+
return null;
|
|
864
|
+
case "separator":
|
|
865
|
+
return /* @__PURE__ */ e(J, {}, r);
|
|
866
|
+
case "link": {
|
|
867
|
+
const {
|
|
868
|
+
type: a,
|
|
869
|
+
label: s,
|
|
870
|
+
...c
|
|
871
|
+
} = t;
|
|
872
|
+
return /* @__PURE__ */ e(z, {
|
|
873
|
+
title: s,
|
|
874
|
+
width: "var(--swui-sidebar-menu-item-height)",
|
|
875
|
+
...c
|
|
876
|
+
}, r);
|
|
1064
877
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
878
|
+
case "grouped":
|
|
879
|
+
return /* @__PURE__ */ e("div", {
|
|
880
|
+
children: /* @__PURE__ */ e(O, {
|
|
881
|
+
appendTo: "parent",
|
|
882
|
+
arrow: !1,
|
|
883
|
+
offset: [0, 0],
|
|
884
|
+
placement: "right-start",
|
|
885
|
+
trigger: "focusin mouseenter click",
|
|
886
|
+
disablePadding: !0,
|
|
887
|
+
lazy: !0,
|
|
888
|
+
content: /* @__PURE__ */ i(d, {
|
|
889
|
+
minWidth: o,
|
|
890
|
+
background: "var(--lhds-color-blue-500)",
|
|
891
|
+
children: [/* @__PURE__ */ e(de, {
|
|
892
|
+
label: t.label
|
|
893
|
+
}), ue(t.items)]
|
|
894
|
+
}),
|
|
895
|
+
children: /* @__PURE__ */ e(z, {
|
|
896
|
+
title: t.label,
|
|
897
|
+
width: "var(--swui-sidebar-menu-item-height)",
|
|
898
|
+
leftIcon: t.leftIcon
|
|
899
|
+
})
|
|
900
|
+
})
|
|
901
|
+
}, r);
|
|
902
|
+
default:
|
|
903
|
+
return ae(t);
|
|
904
|
+
}
|
|
905
|
+
}), Hn = `1px solid ${M("--lhds-color-orange-400")}`, pt = ({
|
|
906
|
+
numItemsSelected: n,
|
|
907
|
+
label: o,
|
|
908
|
+
afterLabelContent: t,
|
|
909
|
+
rightContent: r
|
|
910
|
+
}) => /* @__PURE__ */ i(p, {
|
|
1074
911
|
indent: 3,
|
|
1075
|
-
spacing:
|
|
912
|
+
spacing: !0,
|
|
1076
913
|
minHeight: "56px",
|
|
1077
914
|
justifyContent: "space-between",
|
|
1078
915
|
alignItems: "center",
|
|
1079
|
-
borderTop,
|
|
1080
|
-
background:
|
|
1081
|
-
children: [/* @__PURE__ */
|
|
916
|
+
borderTop: Hn,
|
|
917
|
+
background: M("--lhds-color-orange-50"),
|
|
918
|
+
children: [/* @__PURE__ */ i(p, {
|
|
1082
919
|
alignItems: "center",
|
|
1083
|
-
children: [
|
|
1084
|
-
children:
|
|
1085
|
-
children: [/* @__PURE__ */
|
|
920
|
+
children: [n != null || o != null ? /* @__PURE__ */ e(m, {
|
|
921
|
+
children: n != null ? /* @__PURE__ */ i(m, {
|
|
922
|
+
children: [/* @__PURE__ */ e(C, {
|
|
1086
923
|
variant: "bold",
|
|
1087
|
-
children:
|
|
1088
|
-
}), /* @__PURE__ */
|
|
1089
|
-
children: ["item",
|
|
924
|
+
children: n
|
|
925
|
+
}), /* @__PURE__ */ e(w, {}), /* @__PURE__ */ i(C, {
|
|
926
|
+
children: ["item", n === 1 ? "" : "s", " selected"]
|
|
1090
927
|
})]
|
|
1091
|
-
}) :
|
|
1092
|
-
children: typeof
|
|
1093
|
-
children:
|
|
1094
|
-
}) :
|
|
928
|
+
}) : o != null ? /* @__PURE__ */ e(m, {
|
|
929
|
+
children: typeof o == "string" ? /* @__PURE__ */ e(C, {
|
|
930
|
+
children: o
|
|
931
|
+
}) : o
|
|
1095
932
|
}) : null
|
|
1096
|
-
}) : null,
|
|
1097
|
-
children: [/* @__PURE__ */
|
|
1098
|
-
children:
|
|
933
|
+
}) : null, t ? /* @__PURE__ */ i(m, {
|
|
934
|
+
children: [/* @__PURE__ */ e(b, {}), /* @__PURE__ */ e(d, {
|
|
935
|
+
children: t
|
|
1099
936
|
})]
|
|
1100
937
|
}) : null]
|
|
1101
|
-
}), /* @__PURE__ */
|
|
1102
|
-
children:
|
|
938
|
+
}), /* @__PURE__ */ e(d, {
|
|
939
|
+
children: r
|
|
1103
940
|
})]
|
|
1104
941
|
});
|
|
1105
|
-
export {
|
|
942
|
+
export {
|
|
943
|
+
Ie as ActionMenuFlatButton,
|
|
944
|
+
Vn as ActionMenuPrimaryButton,
|
|
945
|
+
Gn as ActionMenuSecondaryButton,
|
|
946
|
+
Jn as CheckboxMenu,
|
|
947
|
+
le as Collapsible,
|
|
948
|
+
rt as CollapsibleClickableContent,
|
|
949
|
+
G as CollapsibleContent,
|
|
950
|
+
V as CollapsibleEmptyContent,
|
|
951
|
+
at as CollapsibleGroupHeading,
|
|
952
|
+
ot as CollapsibleWithCheckbox,
|
|
953
|
+
un as ErrorPanel,
|
|
954
|
+
it as ErrorScreen,
|
|
955
|
+
hn as LoadingPanel,
|
|
956
|
+
st as LoadingScreen,
|
|
957
|
+
Kn as NavBar,
|
|
958
|
+
Oe as NavBarButton,
|
|
959
|
+
Qn as NavBarHeading,
|
|
960
|
+
Yn as NavBarNotificationButton,
|
|
961
|
+
Xn as NavBarPopoverButton,
|
|
962
|
+
et as NavBarSearchField,
|
|
963
|
+
nt as NavBarUserButton,
|
|
964
|
+
tt as Notification,
|
|
965
|
+
ct as PageHeader,
|
|
966
|
+
lt as PageHeaderRow,
|
|
967
|
+
dt as PageHeading,
|
|
968
|
+
pt as SelectedItemsActionsPanel,
|
|
969
|
+
Cn as SidebarMenu,
|
|
970
|
+
Fn as SidebarMenuCollapsible,
|
|
971
|
+
de as SidebarMenuHeading,
|
|
972
|
+
z as SidebarMenuLink,
|
|
973
|
+
J as SidebarMenuSeparator,
|
|
974
|
+
ut as SidebarRailMenu,
|
|
975
|
+
Ke as defaultNotificationTheme,
|
|
976
|
+
Mn as defaultRenderLink,
|
|
977
|
+
dn as mapCSSTime,
|
|
978
|
+
ue as renderItemsExpanded,
|
|
979
|
+
ht as renderItemsInRail
|
|
980
|
+
};
|
|
1106
981
|
//# sourceMappingURL=index.es.js.map
|