@stenajs-webui/panels 22.2.2 → 22.4.0

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 CHANGED
@@ -1,520 +1,536 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--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 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_b3x3w_1:hover{background:var(--lhds-color-ui-100)}._navBarButton_b3x3w_1:focus-visible{background:var(--lhds-color-ui-200)}._navBarButton_b3x3w_1:active{background:var(--lhds-color-ui-200)}._navBarButton_b3x3w_1._selected_b3x3w_14{background:var(--lhds-color-blue-200)}._navBarButton_b3x3w_1._selected_b3x3w_14:hover{background:var(--lhds-color-blue-100)}._navBarButton_b3x3w_1._selected_b3x3w_14:focus-visible{background:var(--lhds-color-blue-300)}._navBarButton_b3x3w_1._selected_b3x3w_14:active{background:var(--lhds-color-blue-200)}._navBarNotificationButton_1wt3y_1{--current-background-color: var(--lhds-color-ui-400);--current-outline-color: var(--modern-blue);background-color:var(--current-background-color);border-color:transparent;color:var(--lhds-color-ui-50);--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_1wt3y_1:hover{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_1wt3y_1:active{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23 ._icon_1wt3y_23{transform-origin:top center;animation:_shake_1wt3y_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23:hover{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23:active{--current-background-color: var(--lhds-color-red-700);--current-outline-color: var(--lhds-color-red-700)}._navBarNotificationButton_1wt3y_1:focus-visible{outline:var(--swui-focus-outline);outline-color:var(--current-outline-color);outline-offset:var(--swui-focus-outline-width)}@keyframes _shake_1wt3y_1{0%{transform:rotate(0)}7%{transform:rotate(20deg)}15%{transform:rotate(-20deg)}22%{transform:rotate(16deg)}30%{transform:rotate(-16deg)}38%{transform:rotate(6deg)}42%{transform:rotate(-6deg)}46%{transform:rotate(2deg)}to{transform:rotate(0)}}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1{line-height:2.7rem;color:var(--lhds-color-ui-800)}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1::placeholder{color:var(--lhds-color-blue-600)}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1{padding:0 var(--swui-metrics-indent)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12{background:var(--lhds-color-ui-200);border-color:transparent}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12:hover{border-color:transparent}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12{padding:0 var(--swui-metrics-indent);border-radius:var(--swui-max-border-radius)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12._withButton_1rp8g_24{padding-right:1px}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12:focus-within{color:var(--lhds-color-ui-800);background:var(--lhds-color-ui-50)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12 ._clearButton_1rp8g_33{border-radius:var(--swui-max-border-radius)}._navBarUserButton_10f9z_1:hover{background:var(--lhds-color-ui-100)}._navBarUserButton_10f9z_1:focus-visible{background:var(--lhds-color-ui-200)}._navBarUserButton_10f9z_1:active{background:var(--lhds-color-ui-200)}._unreadDot_l8bni_1{position:relative}._unreadDot_l8bni_1 ._dot_l8bni_4{top:1px;right:1px;position:absolute;width:8px;height:8px;border-radius:var(--swui-max-border-radius);background:var(--lhds-color-blue-500)}._notification_1hao0_1{display:flex;flex-direction:column;width:100%;background:var(--lhds-color-ui-50)}._notification_1hao0_1 ._body_1hao0_7{padding-left:64px;padding-right:24px;padding-bottom:16px}._notification_1hao0_1._standard_1hao0_13._unread_1hao0_14{background:var(--lhds-color-blue-50)}._notification_1hao0_1._danger_1hao0_19{background:var(--lhds-color-red-100)}._notificationList_1rkvu_1{display:flex;flex-direction:column;gap:2px;background:var(--lhds-color-ui-200)}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._sidebarMenuCollapsibleGroupBox_ikek9_1{background:var(--lhds-color-ui-200);border-radius:var(--swui-border-radius);gap:var(--swui-metrics-space);display:flex;flex-direction:column;padding:var(--swui-metrics-space);--current-text-size: var(--swui-font-size-small)}._sidebarMenu_1bx5w_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--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-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active )}._sidebarMenu_1bx5w_1 ._sidebarItems_1bx5w_38{--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)}._sidebarMenu_1bx5w_1{background-color:var(--current-background-color);height:100dvh}._sidebarMenu_1bx5w_1 ._scrollContainer_1bx5w_48{background:var(--current-background-color);height:100%;overflow:auto}._stenaFlag_108h7_1{height:32px}")),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as n, Fragment as B, jsxs as o } from "react/jsx-runtime";
3
- import { ActionMenu as G, ActionMenuContext as an, stenaAngleDown as W, PrimaryButton as ln, SecondaryButton as cn, FlatButton as k, stenaHamburger as E, BaseButton as sn, stenaBellFilled as dn, TextInputButton as un, stenaTimes as hn, stenaUserCircle as pn, CircledIcon as j, CloseButton as q, MenuButton as L, Icon as gn, stenaMail as mn, Card as fn, CardBody as bn, stenaTripFerryXl as _n, Spinner as Bn, StenaFlag as vn, stenaAngleLeftDouble as O, stenaPin as Cn, IconMenuButton as P, IconMenuButtonLink as xn, MenuButtonLink as yn } from "@stenajs-webui/elements";
4
- import * as In from "react";
5
- import { useRef as wn, useMemo as Nn, forwardRef as A, createContext as kn, useContext as Mn, useState as Sn } from "react";
6
- import { useBoolean as X, Row as c, Indent as x, Column as h, Heading as M, Box as d, Text as f, Space as m, SeparatorLine as Rn } from "@stenajs-webui/core";
7
- import { ControlledPopover as J, Popover as K, Tooltip as Q } from "@stenajs-webui/tooltip";
8
- import { Checkbox as V, TextInput as Fn } from "@stenajs-webui/forms";
9
- import p from "classnames";
10
- import { cssColor as b } from "@stenajs-webui/theme";
11
- const $ = ({
12
- renderItems: e,
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--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 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_b3x3w_1:hover{background:var(--lhds-color-ui-100)}._navBarButton_b3x3w_1:focus-visible{background:var(--lhds-color-ui-200)}._navBarButton_b3x3w_1:active{background:var(--lhds-color-ui-200)}._navBarButton_b3x3w_1._selected_b3x3w_14{background:var(--lhds-color-blue-200)}._navBarButton_b3x3w_1._selected_b3x3w_14:hover{background:var(--lhds-color-blue-100)}._navBarButton_b3x3w_1._selected_b3x3w_14:focus-visible{background:var(--lhds-color-blue-300)}._navBarButton_b3x3w_1._selected_b3x3w_14:active{background:var(--lhds-color-blue-200)}._navBarNotificationButton_1wt3y_1{--current-background-color: var(--lhds-color-ui-400);--current-outline-color: var(--modern-blue);background-color:var(--current-background-color);border-color:transparent;color:var(--lhds-color-ui-50);--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_1wt3y_1:hover{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_1wt3y_1:active{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23 ._icon_1wt3y_23{transform-origin:top center;animation:_shake_1wt3y_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23:hover{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23:active{--current-background-color: var(--lhds-color-red-700);--current-outline-color: var(--lhds-color-red-700)}._navBarNotificationButton_1wt3y_1:focus-visible{outline:var(--swui-focus-outline);outline-color:var(--current-outline-color);outline-offset:var(--swui-focus-outline-width)}@keyframes _shake_1wt3y_1{0%{transform:rotate(0)}7%{transform:rotate(20deg)}15%{transform:rotate(-20deg)}22%{transform:rotate(16deg)}30%{transform:rotate(-16deg)}38%{transform:rotate(6deg)}42%{transform:rotate(-6deg)}46%{transform:rotate(2deg)}to{transform:rotate(0)}}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1{line-height:2.7rem;color:var(--lhds-color-ui-800)}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1::placeholder{color:var(--lhds-color-blue-600)}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1{padding:0 var(--swui-metrics-indent)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12{background:var(--lhds-color-ui-200);border-color:transparent}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12:hover{border-color:transparent}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12{padding:0 var(--swui-metrics-indent);border-radius:var(--swui-max-border-radius)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12._withButton_1rp8g_24{padding-right:1px}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12:focus-within{color:var(--lhds-color-ui-800);background:var(--lhds-color-ui-50)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12 ._clearButton_1rp8g_33{border-radius:var(--swui-max-border-radius)}._navBarUserButton_10f9z_1:hover{background:var(--lhds-color-ui-100)}._navBarUserButton_10f9z_1:focus-visible{background:var(--lhds-color-ui-200)}._navBarUserButton_10f9z_1:active{background:var(--lhds-color-ui-200)}._unreadDot_l8bni_1{position:relative}._unreadDot_l8bni_1 ._dot_l8bni_4{top:1px;right:1px;position:absolute;width:8px;height:8px;border-radius:var(--swui-max-border-radius);background:var(--lhds-color-blue-500)}._notification_1hao0_1{display:flex;flex-direction:column;width:100%;background:var(--lhds-color-ui-50)}._notification_1hao0_1 ._body_1hao0_7{padding-left:64px;padding-right:24px;padding-bottom:16px}._notification_1hao0_1._standard_1hao0_13._unread_1hao0_14{background:var(--lhds-color-blue-50)}._notification_1hao0_1._danger_1hao0_19{background:var(--lhds-color-red-100)}._notificationList_1rkvu_1{display:flex;flex-direction:column;gap:2px;background:var(--lhds-color-ui-200)}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._sidebarMenuCollapsibleGroupBox_ikek9_1{background:var(--lhds-color-ui-200);border-radius:var(--swui-border-radius);gap:var(--swui-metrics-space);display:flex;flex-direction:column;padding:var(--swui-metrics-space);--current-text-size: var(--swui-font-size-small)}._sidebarMenu_1bx5w_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--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-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active )}._sidebarMenu_1bx5w_1 ._sidebarItems_1bx5w_38{--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)}._sidebarMenu_1bx5w_1{background-color:var(--current-background-color);height:100dvh}._sidebarMenu_1bx5w_1 ._scrollContainer_1bx5w_48{background:var(--current-background-color);height:100%;overflow:auto}._stenaFlag_108h7_1{height:32px}._productCard_19x6b_1{max-width:560px}@media (max-width: 768px){._productCard_19x6b_1{max-width:unset}}")),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as e, Fragment as M, jsxs as r } from "react/jsx-runtime";
3
+ import { ActionMenu as ue, ActionMenuContext as ke, stenaAngleDown as he, PrimaryButton as pe, SecondaryButton as I, FlatButton as E, stenaHamburger as me, BaseButton as Ie, stenaBellFilled as Se, TextInputButton as Ne, stenaTimes as Me, stenaUserCircle as Re, CircledIcon as G, CloseButton as ge, MenuButton as T, Icon as X, stenaMail as ze, Card as je, CardBody as Fe, stenaTripFerryXl as Pe, Spinner as J, StenaFlag as Ae, stenaAngleLeftDouble as be, stenaPin as $e, IconMenuButton as Y, IconMenuButtonLink as Le, MenuButtonLink as De, Tag as We, ShimmerBox as R, stenaAngleLeft as re, stenaAngleRight as oe, stenaSearchPlus as He, stenaSearchMinus as Ue, stenaTimesThick as qe } from "@stenajs-webui/elements";
4
+ import * as Ee from "react";
5
+ import { useRef as Q, useMemo as U, forwardRef as ee, createContext as Ge, useContext as Oe, useState as H, useCallback as le } from "react";
6
+ import { useBoolean as fe, Row as c, Indent as y, Column as p, Heading as z, Box as d, Text as f, Space as x, SeparatorLine as Ve, getDataProps as ne, Spacing as Ke, isEmptyFragment as Ze, useAccessibleFontSizeContext as Qe, exhaustSwitchCaseElseThrow as xe, BlockKeyboardEvents as Te } from "@stenajs-webui/core";
7
+ import { ControlledPopover as ve, Popover as Ce, Tooltip as _e } from "@stenajs-webui/tooltip";
8
+ import { Checkbox as ye, TextInput as Xe } from "@stenajs-webui/forms";
9
+ import v from "classnames";
10
+ import { cssColor as m } from "@stenajs-webui/theme";
11
+ import { useMediaQuery as N } from "react-responsive";
12
+ import ae from "yet-another-react-lightbox";
13
+ import Je from "yet-another-react-lightbox/plugins/inline";
14
+ import Ye from "yet-another-react-lightbox/plugins/captions";
15
+ import en from "yet-another-react-lightbox/plugins/counter";
16
+ import nn from "yet-another-react-lightbox/plugins/zoom";
17
+ import "yet-another-react-lightbox/styles.css";
18
+ const te = ({
19
+ renderItems: n,
13
20
  placement: t = "bottom",
14
- buttonComponent: r,
15
- rightIcon: i = W,
16
- menuWidth: a,
17
- menuTop: l,
21
+ buttonComponent: i,
22
+ rightIcon: o = he,
23
+ menuWidth: l,
24
+ menuTop: a,
18
25
  onClick: s,
19
26
  disableArrow: u = !1,
20
27
  buttonRef: g,
21
- appendTo: _,
22
- zIndex: v,
23
- ...Z
28
+ appendTo: b,
29
+ zIndex: C,
30
+ disableTrapFocus: w = !1,
31
+ ...k
24
32
  }) => {
25
- const [H, U, y, nn] = X(!1), en = wn(null), tn = g ?? en, rn = Nn(() => ({ open: U, close: y }), [U, y]), on = (S) => {
26
- s == null || s(S), nn();
33
+ const [S, B, _, j] = fe(!1), F = Q(null), P = g ?? F, O = U(() => ({ open: B, close: _ }), [B, _]), L = (A) => {
34
+ s == null || s(A), j();
27
35
  };
28
- return /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(
29
- J,
36
+ return /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
37
+ ve,
30
38
  {
31
- renderTrigger: (S) => /* @__PURE__ */ n(
32
- r,
39
+ renderTrigger: (A) => /* @__PURE__ */ e(
40
+ i,
33
41
  {
34
- rightIcon: u ? void 0 : i,
35
- ...Z,
36
- ref: tn,
37
- onClick: on,
38
- ...S
42
+ rightIcon: u ? void 0 : o,
43
+ ...k,
44
+ ref: P,
45
+ onClick: L,
46
+ ...A
39
47
  }
40
48
  ),
41
49
  hideArrow: !0,
42
50
  disablePadding: !0,
43
- open: H,
44
- onRequestClose: y,
51
+ open: S,
52
+ onRequestClose: _,
45
53
  placement: t,
46
- appendTo: _,
47
- zIndex: v,
48
- children: H && /* @__PURE__ */ n(G, { width: a, top: l, trapFocus: !0, children: /* @__PURE__ */ n(an.Provider, { value: rn, children: e(y) }) })
54
+ appendTo: b,
55
+ zIndex: C,
56
+ children: S && /* @__PURE__ */ e(
57
+ ue,
58
+ {
59
+ width: l,
60
+ top: a,
61
+ trapFocus: !w,
62
+ children: /* @__PURE__ */ e(ke.Provider, { value: O, children: n(_) })
63
+ }
64
+ )
49
65
  }
50
66
  ) });
51
- }, Pe = (e) => /* @__PURE__ */ n($, { buttonComponent: ln, ...e }), Ae = (e) => /* @__PURE__ */ n($, { buttonComponent: cn, ...e }), jn = (e) => /* @__PURE__ */ n($, { buttonComponent: k, ...e }), Ln = "1px solid var(--lhds-color-ui-300)", $e = ({
52
- renderMenu: e,
67
+ }, xt = (n) => /* @__PURE__ */ e(te, { buttonComponent: pe, ...n }), vt = (n) => /* @__PURE__ */ e(te, { buttonComponent: I, ...n }), tn = (n) => /* @__PURE__ */ e(te, { buttonComponent: E, ...n }), rn = "1px solid var(--lhds-color-ui-300)", Ct = ({
68
+ renderMenu: n,
53
69
  ...t
54
- }) => /* @__PURE__ */ n(
55
- K,
70
+ }) => /* @__PURE__ */ e(
71
+ Ce,
56
72
  {
57
73
  trigger: "click",
58
- renderTrigger: (r) => /* @__PURE__ */ n(c, { children: /* @__PURE__ */ o(
74
+ renderTrigger: (i) => /* @__PURE__ */ e(c, { children: /* @__PURE__ */ r(
59
75
  c,
60
76
  {
61
77
  spacing: 0.5,
62
78
  indent: !0,
63
79
  alignItems: "center",
64
- border: Ln,
80
+ border: rn,
65
81
  borderRadius: "4px",
66
82
  children: [
67
- /* @__PURE__ */ n(V, { ...t }),
68
- /* @__PURE__ */ n(x, { num: 0.5 }),
69
- /* @__PURE__ */ n(k, { size: "small", leftIcon: W, ...r })
83
+ /* @__PURE__ */ e(ye, { ...t }),
84
+ /* @__PURE__ */ e(y, { num: 0.5 }),
85
+ /* @__PURE__ */ e(E, { size: "small", leftIcon: he, ...i })
70
86
  ]
71
87
  }
72
88
  ) }),
73
89
  hideArrow: !0,
74
90
  disablePadding: !0,
75
91
  placement: "bottom-start",
76
- children: ({ onRequestClose: r }) => /* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(G, { children: e(r) }) })
92
+ children: ({ onRequestClose: i }) => /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(ue, { children: n(i) }) })
77
93
  }
78
- ), Pn = "_navBar_kzibd_1", An = {
79
- navBar: Pn
80
- }, $n = ({
81
- className: e,
94
+ ), on = "_navBar_kzibd_1", ln = {
95
+ navBar: on
96
+ }, an = ({
97
+ className: n,
82
98
  onClick: t
83
- }) => /* @__PURE__ */ n(
84
- k,
99
+ }) => /* @__PURE__ */ e(
100
+ E,
85
101
  {
86
- leftIcon: E,
87
- className: e,
102
+ leftIcon: me,
103
+ className: n,
88
104
  onClick: t
89
105
  }
90
- ), ze = ({
91
- left: e,
106
+ ), _t = ({
107
+ left: n,
92
108
  className: t,
93
- showMenuButton: r = !1,
94
- children: i,
95
- right: a,
96
- center: l,
109
+ showMenuButton: i = !1,
110
+ children: o,
111
+ right: l,
112
+ center: a,
97
113
  onClickMenuButton: s
98
114
  }) => {
99
- const u = l ? 1 : void 0;
100
- return /* @__PURE__ */ o(
115
+ const u = a ? 1 : void 0;
116
+ return /* @__PURE__ */ r(
101
117
  c,
102
118
  {
103
119
  justifyContent: "space-between",
104
- className: p(An.navBar, t),
120
+ className: v(ln.navBar, t),
105
121
  children: [
106
- /* @__PURE__ */ o(
122
+ /* @__PURE__ */ r(
107
123
  c,
108
124
  {
109
125
  flex: u,
110
126
  justifyContent: "flex-start",
111
127
  alignItems: "center",
112
128
  children: [
113
- /* @__PURE__ */ o(c, { width: "86px", alignItems: "center", children: [
114
- /* @__PURE__ */ n(x, {}),
115
- r && /* @__PURE__ */ n($n, { onClick: s })
129
+ /* @__PURE__ */ r(c, { width: "86px", alignItems: "center", children: [
130
+ /* @__PURE__ */ e(y, {}),
131
+ i && /* @__PURE__ */ e(an, { onClick: s })
116
132
  ] }),
117
- e && /* @__PURE__ */ o(B, { children: [
118
- e,
119
- /* @__PURE__ */ n(x, { num: 2 })
133
+ n && /* @__PURE__ */ r(M, { children: [
134
+ n,
135
+ /* @__PURE__ */ e(y, { num: 2 })
120
136
  ] }),
121
- i && /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(c, { justifyContent: "center", alignItems: "center", children: In.Children.map(i, (g, _) => /* @__PURE__ */ o(B, { children: [
122
- _ > 0 && /* @__PURE__ */ n(x, {}),
137
+ o && /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(c, { justifyContent: "center", alignItems: "center", children: Ee.Children.map(o, (g, b) => /* @__PURE__ */ r(M, { children: [
138
+ b > 0 && /* @__PURE__ */ e(y, {}),
123
139
  g
124
140
  ] })) }) })
125
141
  ]
126
142
  }
127
143
  ),
128
- l && /* @__PURE__ */ n(c, { justifyContent: "center", alignItems: "center", children: l }),
129
- /* @__PURE__ */ o(c, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
130
- a,
131
- /* @__PURE__ */ n(x, { num: 2 })
144
+ a && /* @__PURE__ */ e(c, { justifyContent: "center", alignItems: "center", children: a }),
145
+ /* @__PURE__ */ r(c, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
146
+ l,
147
+ /* @__PURE__ */ e(y, { num: 2 })
132
148
  ] })
133
149
  ]
134
150
  }
135
151
  );
136
- }, zn = "_navBarButton_b3x3w_1", Hn = "_selected_b3x3w_14", T = {
137
- navBarButton: zn,
138
- selected: Hn
139
- }, Un = A(
140
- function({ selected: e, className: t, ...r }, i) {
141
- return /* @__PURE__ */ n(
142
- k,
152
+ }, cn = "_navBarButton_b3x3w_1", sn = "_selected_b3x3w_14", ce = {
153
+ navBarButton: cn,
154
+ selected: sn
155
+ }, dn = ee(
156
+ function({ selected: n, className: t, ...i }, o) {
157
+ return /* @__PURE__ */ e(
158
+ E,
143
159
  {
144
- ...r,
145
- ref: i,
146
- className: p(
147
- T.navBarButton,
148
- e && T.selected,
160
+ ...i,
161
+ ref: o,
162
+ className: v(
163
+ ce.navBarButton,
164
+ n && ce.selected,
149
165
  t
150
166
  )
151
167
  }
152
168
  );
153
169
  }
154
- ), He = (e) => /* @__PURE__ */ n(M, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...e }), Ue = ({
155
- content: e,
170
+ ), yt = (n) => /* @__PURE__ */ e(z, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...n }), Bt = ({
171
+ content: n,
156
172
  children: t,
157
- appendTo: r,
158
- zIndex: i,
159
- ...a
173
+ appendTo: i,
174
+ zIndex: o,
175
+ ...l
160
176
  }) => {
161
- const [l, , s, u] = X(!1);
162
- return /* @__PURE__ */ n(
163
- J,
177
+ const [a, , s, u] = fe(!1);
178
+ return /* @__PURE__ */ e(
179
+ ve,
164
180
  {
165
- renderTrigger: (g) => /* @__PURE__ */ n(Un, { ...a, ...g, onClick: u }),
166
- open: l,
181
+ renderTrigger: (g) => /* @__PURE__ */ e(dn, { ...l, ...g, onClick: u }),
182
+ open: a,
167
183
  onRequestClose: s,
168
- zIndex: i,
169
- appendTo: r,
170
- children: /* @__PURE__ */ o(d, { children: [
171
- e && e({ close: s }),
184
+ zIndex: o,
185
+ appendTo: i,
186
+ children: /* @__PURE__ */ r(d, { children: [
187
+ n && n({ close: s }),
172
188
  t
173
189
  ] })
174
190
  }
175
191
  );
176
- }, Tn = "_navBarNotificationButton_1wt3y_1", Dn = "_unread_1wt3y_23", Gn = "_icon_1wt3y_23", Wn = "_shake_1wt3y_1", C = {
177
- navBarNotificationButton: Tn,
178
- unread: Dn,
179
- icon: Gn,
180
- shake: Wn
181
- }, Te = A(function({
182
- count: e,
192
+ }, un = "_navBarNotificationButton_1wt3y_1", hn = "_unread_1wt3y_23", pn = "_icon_1wt3y_23", mn = "_shake_1wt3y_1", $ = {
193
+ navBarNotificationButton: un,
194
+ unread: hn,
195
+ icon: pn,
196
+ shake: mn
197
+ }, wt = ee(function({
198
+ count: n,
183
199
  unread: t = !1,
184
- className: r,
185
- labelClassName: i,
186
- iconClassName: a,
187
- icon: l = dn,
200
+ className: i,
201
+ labelClassName: o,
202
+ iconClassName: l,
203
+ icon: a = Se,
188
204
  ...s
189
205
  }, u) {
190
- const g = e > 1;
191
- return /* @__PURE__ */ n(
192
- sn,
206
+ const g = n > 1;
207
+ return /* @__PURE__ */ e(
208
+ Ie,
193
209
  {
194
210
  ...s,
195
211
  ref: u,
196
- leftIcon: l,
197
- className: p(
198
- C.navBarNotificationButton,
199
- t && C.unread,
200
- g && C.hasCount,
201
- r
212
+ leftIcon: a,
213
+ className: v(
214
+ $.navBarNotificationButton,
215
+ t && $.unread,
216
+ g && $.hasCount,
217
+ i
202
218
  ),
203
- label: g ? String(e) : void 0,
204
- labelClassName: p(i, C.label),
205
- iconClassName: p(a, C.icon)
219
+ label: g ? String(n) : void 0,
220
+ labelClassName: v(o, $.label),
221
+ iconClassName: v(l, $.icon)
206
222
  }
207
223
  );
208
- }), En = "_navBarSearchFieldInput_1rp8g_1", qn = "_navBarSearchFieldWrapper_1rp8g_12", On = "_withButton_1rp8g_24", Xn = "_clearButton_1rp8g_33", I = {
209
- navBarSearchFieldInput: En,
210
- navBarSearchFieldWrapper: qn,
211
- withButton: On,
212
- clearButton: Xn
213
- }, De = ({
214
- placeholder: e = "Search",
224
+ }), gn = "_navBarSearchFieldInput_1rp8g_1", bn = "_navBarSearchFieldWrapper_1rp8g_12", fn = "_withButton_1rp8g_24", xn = "_clearButton_1rp8g_33", D = {
225
+ navBarSearchFieldInput: gn,
226
+ navBarSearchFieldWrapper: bn,
227
+ withButton: fn,
228
+ clearButton: xn
229
+ }, kt = ({
230
+ placeholder: n = "Search",
215
231
  className: t,
216
- wrapperClassName: r,
217
- showClearButton: i,
218
- onClickClearButton: a,
219
- value: l,
232
+ wrapperClassName: i,
233
+ showClearButton: o,
234
+ onClickClearButton: l,
235
+ value: a,
220
236
  ...s
221
- }) => /* @__PURE__ */ n(
222
- Fn,
237
+ }) => /* @__PURE__ */ e(
238
+ Xe,
223
239
  {
224
- wrapperClassName: p(
225
- I.navBarSearchFieldWrapper,
226
- i ? I.withButton : void 0,
227
- r
240
+ wrapperClassName: v(
241
+ D.navBarSearchFieldWrapper,
242
+ o ? D.withButton : void 0,
243
+ i
228
244
  ),
229
- className: p(I.navBarSearchFieldInput, t),
230
- placeholder: e,
231
- value: l,
232
- buttonRight: l && i ? /* @__PURE__ */ n(
233
- un,
245
+ className: v(D.navBarSearchFieldInput, t),
246
+ placeholder: n,
247
+ value: a,
248
+ buttonRight: a && o ? /* @__PURE__ */ e(
249
+ Ne,
234
250
  {
235
- className: I.clearButton,
236
- icon: hn,
251
+ className: D.clearButton,
252
+ icon: Me,
237
253
  variant: "error",
238
- onClick: a
254
+ onClick: l
239
255
  }
240
256
  ) : void 0,
241
257
  ...s
242
258
  }
243
- ), Jn = "_navBarUserButton_10f9z_1", Kn = {
244
- navBarUserButton: Jn
245
- }, Ge = ({
246
- className: e,
259
+ ), vn = "_navBarUserButton_10f9z_1", Cn = {
260
+ navBarUserButton: vn
261
+ }, It = ({
262
+ className: n,
247
263
  username: t,
248
- initials: r,
249
- icon: i = pn,
250
- responsiveIconOnly: a = r == null,
251
- ...l
252
- }) => /* @__PURE__ */ n(
253
- jn,
264
+ initials: i,
265
+ icon: o = Re,
266
+ responsiveIconOnly: l = i == null,
267
+ ...a
268
+ }) => /* @__PURE__ */ e(
269
+ tn,
254
270
  {
255
- ...l,
256
- className: p(Kn.navBarUserButton, e),
257
- leftIcon: t != null ? i : void 0,
258
- label: r ?? t,
259
- forceRound: r != null,
260
- responsiveIconOnly: a,
271
+ ...a,
272
+ className: v(Cn.navBarUserButton, n),
273
+ leftIcon: t != null ? o : void 0,
274
+ label: i ?? t,
275
+ forceRound: i != null,
276
+ responsiveIconOnly: l,
261
277
  disableArrow: !0
262
278
  }
263
- ), Qn = "_unreadDot_l8bni_1", Vn = "_dot_l8bni_4", D = {
264
- unreadDot: Qn,
265
- dot: Vn
266
- }, Yn = ({ children: e }) => /* @__PURE__ */ o("div", { className: D.unreadDot, children: [
267
- e,
268
- /* @__PURE__ */ n("div", { className: D.dot })
269
- ] }), Y = ({
270
- text: e,
279
+ ), _n = "_unreadDot_l8bni_1", yn = "_dot_l8bni_4", se = {
280
+ unreadDot: _n,
281
+ dot: yn
282
+ }, Bn = ({ children: n }) => /* @__PURE__ */ r("div", { className: se.unreadDot, children: [
283
+ n,
284
+ /* @__PURE__ */ e("div", { className: se.dot })
285
+ ] }), Be = ({
286
+ text: n,
271
287
  timestamp: t,
272
- icon: r,
273
- iconAriaLabel: i,
274
- contentLeft: a,
275
- contentRight: l,
288
+ icon: i,
289
+ iconAriaLabel: o,
290
+ contentLeft: l,
291
+ contentRight: a,
276
292
  onClose: s,
277
293
  unread: u = !1,
278
294
  variant: g,
279
- iconBackgroundColor: _
295
+ iconBackgroundColor: b
280
296
  }) => {
281
- const v = r ? /* @__PURE__ */ n(
282
- j,
297
+ const C = i ? /* @__PURE__ */ e(
298
+ G,
283
299
  {
284
300
  size: "small",
285
- icon: r,
286
- "aria-label": i,
287
- backgroundColor: _ || Zn(u, g)
301
+ icon: i,
302
+ "aria-label": o,
303
+ backgroundColor: b || wn(u, g)
288
304
  }
289
305
  ) : void 0;
290
- return /* @__PURE__ */ o(c, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
291
- /* @__PURE__ */ o(c, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
292
- a && /* @__PURE__ */ n(d, { minHeight: 20, justifyContent: "center", children: a }),
293
- !a && v && (u ? /* @__PURE__ */ n(Yn, { children: v }) : v),
294
- /* @__PURE__ */ o(d, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
295
- /* @__PURE__ */ n(f, { variant: "bold", children: e }),
296
- t && /* @__PURE__ */ n(
306
+ return /* @__PURE__ */ r(c, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
307
+ /* @__PURE__ */ r(c, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
308
+ l && /* @__PURE__ */ e(d, { minHeight: 20, justifyContent: "center", children: l }),
309
+ !l && C && (u ? /* @__PURE__ */ e(Bn, { children: C }) : C),
310
+ /* @__PURE__ */ r(d, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
311
+ /* @__PURE__ */ e(f, { variant: "bold", children: n }),
312
+ t && /* @__PURE__ */ e(
297
313
  f,
298
314
  {
299
315
  size: "small",
300
- color: b(
316
+ color: m(
301
317
  u ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
302
318
  ),
303
319
  children: t
304
320
  }
305
321
  )
306
322
  ] }),
307
- l
323
+ a
308
324
  ] }),
309
- s && /* @__PURE__ */ n(
325
+ s && /* @__PURE__ */ e(
310
326
  d,
311
327
  {
312
328
  flex: "none",
313
329
  justifyContent: "center",
314
330
  height: "calc(20px + 2 * var(--swui-metrics-spacing))",
315
- children: /* @__PURE__ */ n(q, { onClick: s })
331
+ children: /* @__PURE__ */ e(ge, { onClick: s })
316
332
  }
317
333
  )
318
334
  ] });
319
- }, Zn = (e, t) => {
320
- if (!(!e && t === "standard"))
335
+ }, wn = (n, t) => {
336
+ if (!(!n && t === "standard"))
321
337
  return "--lhds-color-ui-50";
322
- }, ne = "_notification_1hao0_1", ee = "_body_1hao0_7", te = "_standard_1hao0_13", re = "_unread_1hao0_14", ie = "_danger_1hao0_19", w = {
323
- notification: ne,
324
- body: ee,
325
- standard: te,
326
- unread: re,
327
- danger: ie
328
- }, We = ({
329
- variant: e = "standard",
338
+ }, kn = "_notification_1hao0_1", In = "_body_1hao0_7", Sn = "_standard_1hao0_13", Nn = "_unread_1hao0_14", Mn = "_danger_1hao0_19", W = {
339
+ notification: kn,
340
+ body: In,
341
+ standard: Sn,
342
+ unread: Nn,
343
+ danger: Mn
344
+ }, St = ({
345
+ variant: n = "standard",
330
346
  children: t,
331
- unread: r,
332
- ...i
333
- }) => /* @__PURE__ */ o(
347
+ unread: i,
348
+ ...o
349
+ }) => /* @__PURE__ */ r(
334
350
  "div",
335
351
  {
336
- className: p(
337
- w.notification,
338
- w[e],
339
- r && w.unread
352
+ className: v(
353
+ W.notification,
354
+ W[n],
355
+ i && W.unread
340
356
  ),
341
357
  children: [
342
- /* @__PURE__ */ n(Y, { ...i, unread: r, variant: e }),
343
- t && /* @__PURE__ */ n(h, { className: w.body, children: t })
358
+ /* @__PURE__ */ e(Be, { ...o, unread: i, variant: n }),
359
+ t && /* @__PURE__ */ e(p, { className: W.body, children: t })
344
360
  ]
345
361
  }
346
- ), oe = "_notificationList_1rkvu_1", ae = {
347
- notificationList: oe
348
- }, Ee = ({
349
- children: e
350
- }) => /* @__PURE__ */ o("div", { className: ae.notificationList, children: [
351
- e,
352
- /* @__PURE__ */ n("div", {})
353
- ] }), le = "_clickable_1ijxc_1", ce = "_nonClickable_1ijxc_27", R = {
354
- clickable: le,
355
- nonClickable: ce
356
- }, qe = ({
357
- onClick: e,
362
+ ), Rn = "_notificationList_1rkvu_1", zn = {
363
+ notificationList: Rn
364
+ }, Nt = ({
365
+ children: n
366
+ }) => /* @__PURE__ */ r("div", { className: zn.notificationList, children: [
367
+ n,
368
+ /* @__PURE__ */ e("div", {})
369
+ ] }), jn = "_clickable_1ijxc_1", Fn = "_nonClickable_1ijxc_27", V = {
370
+ clickable: jn,
371
+ nonClickable: Fn
372
+ }, Mt = ({
373
+ onClick: n,
358
374
  onClickAriaLabel: t,
359
- children: r,
360
- width: i = 264,
361
- maxWidth: a,
362
- ...l
363
- }) => /* @__PURE__ */ o(
375
+ children: i,
376
+ width: o = 264,
377
+ maxWidth: l,
378
+ ...a
379
+ }) => /* @__PURE__ */ r(
364
380
  d,
365
381
  {
366
382
  borderRadius: 8,
367
- background: b("--lhds-color-ui-50"),
383
+ background: m("--lhds-color-ui-50"),
368
384
  shadow: "popover",
369
- width: i,
370
- maxWidth: a,
385
+ width: o,
386
+ maxWidth: l,
371
387
  role: "alert",
372
388
  position: "relative",
373
389
  children: [
374
- /* @__PURE__ */ n(d, { className: p({ [R.nonClickable]: e }), children: /* @__PURE__ */ n(Y, { ...l }) }),
375
- r && /* @__PURE__ */ o(d, { indent: 3, className: p({ [R.nonClickable]: e }), children: [
376
- r,
377
- /* @__PURE__ */ n(m, { num: 2 })
390
+ /* @__PURE__ */ e(d, { className: v({ [V.nonClickable]: n }), children: /* @__PURE__ */ e(Be, { ...a }) }),
391
+ i && /* @__PURE__ */ r(d, { indent: 3, className: v({ [V.nonClickable]: n }), children: [
392
+ i,
393
+ /* @__PURE__ */ e(x, { num: 2 })
378
394
  ] }),
379
- e && /* @__PURE__ */ n(
395
+ n && /* @__PURE__ */ e(
380
396
  "button",
381
397
  {
382
- onClick: e,
383
- className: R.clickable,
398
+ onClick: n,
399
+ className: V.clickable,
384
400
  "aria-label": t
385
401
  }
386
402
  )
387
403
  ]
388
404
  }
389
- ), se = A(
390
- ({ contentLeft: e, contentRight: t, collapsed: r = !1, ...i }, a) => /* @__PURE__ */ n(
391
- L,
405
+ ), Pn = ee(
406
+ ({ contentLeft: n, contentRight: t, collapsed: i = !1, ...o }, l) => /* @__PURE__ */ e(
407
+ T,
392
408
  {
393
- ref: a,
409
+ ref: l,
394
410
  expandable: !0,
395
- expanded: !r,
396
- selected: !r,
397
- left: e,
411
+ expanded: !i,
412
+ selected: !i,
413
+ left: n,
398
414
  right: t,
399
- ...i
415
+ ...o
400
416
  }
401
417
  )
402
- ), Oe = ({
403
- children: e
404
- }) => /* @__PURE__ */ n(h, { gap: 1, children: e }), Xe = ({
405
- value: e,
418
+ ), Rt = ({
419
+ children: n
420
+ }) => /* @__PURE__ */ e(p, { gap: 1, children: n }), zt = ({
421
+ value: n,
406
422
  onValueChange: t,
407
- onChange: r,
408
- indeterminate: i,
409
- checkboxDisabled: a,
410
- ...l
411
- }) => /* @__PURE__ */ n(
412
- se,
423
+ onChange: i,
424
+ indeterminate: o,
425
+ checkboxDisabled: l,
426
+ ...a
427
+ }) => /* @__PURE__ */ e(
428
+ Pn,
413
429
  {
414
- contentLeft: /* @__PURE__ */ n(
415
- V,
430
+ contentLeft: /* @__PURE__ */ e(
431
+ ye,
416
432
  {
417
- value: e,
418
- indeterminate: i,
433
+ value: n,
434
+ indeterminate: o,
419
435
  onValueChange: t,
420
- onChange: r,
421
- disabled: a,
436
+ onChange: i,
437
+ disabled: l,
422
438
  onClick: (s) => s.stopPropagation()
423
439
  }
424
440
  ),
425
- ...l
441
+ ...a
426
442
  }
427
- ), de = "_sidebarMenuCollapsibleGroupBox_ikek9_1", ue = {
428
- sidebarMenuCollapsibleGroupBox: de
429
- }, he = ({ children: e }) => /* @__PURE__ */ n("div", { className: ue.sidebarMenuCollapsibleGroupBox, children: e }), Je = ({ children: e }) => /* @__PURE__ */ n(d, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(f, { variant: "overline", size: "smaller", children: e }) }), Ke = ({ text: e = "No content" }) => /* @__PURE__ */ o(h, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
430
- /* @__PURE__ */ n(gn, { icon: mn, color: b("--lhds-color-ui-500") }),
431
- /* @__PURE__ */ n(m, {}),
432
- /* @__PURE__ */ n(f, { size: "small", color: b("--lhds-color-ui-500"), children: e })
433
- ] }), pe = ({
434
- text: e,
443
+ ), An = "_sidebarMenuCollapsibleGroupBox_ikek9_1", $n = {
444
+ sidebarMenuCollapsibleGroupBox: An
445
+ }, Ln = ({ children: n }) => /* @__PURE__ */ e("div", { className: $n.sidebarMenuCollapsibleGroupBox, children: n }), jt = ({ children: n }) => /* @__PURE__ */ e(d, { spacing: !0, indent: !0, children: /* @__PURE__ */ e(f, { variant: "overline", size: "smaller", children: n }) }), Ft = ({ text: n = "No content" }) => /* @__PURE__ */ r(p, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
446
+ /* @__PURE__ */ e(X, { icon: ze, color: m("--lhds-color-ui-500") }),
447
+ /* @__PURE__ */ e(x, {}),
448
+ /* @__PURE__ */ e(f, { size: "small", color: m("--lhds-color-ui-500"), children: n })
449
+ ] }), Dn = ({
450
+ text: n,
435
451
  heading: t,
436
- children: r,
437
- buttons: i,
438
- icon: a = _n,
439
- headingLevel: l = "h3",
452
+ children: i,
453
+ buttons: o,
454
+ icon: l = Pe,
455
+ headingLevel: a = "h3",
440
456
  ...s
441
457
  }) => {
442
- const u = !e && !t ? "Something unexpected happened." : e;
443
- return /* @__PURE__ */ n(fn, { ...s, children: /* @__PURE__ */ n(bn, { children: /* @__PURE__ */ o(h, { spacing: 1, gap: 3, alignItems: "center", children: [
444
- /* @__PURE__ */ o(h, { alignItems: "center", children: [
445
- /* @__PURE__ */ n(m, { num: 1 }),
446
- /* @__PURE__ */ n(j, { icon: a, size: "xl" })
458
+ const u = !n && !t ? "Something unexpected happened." : n;
459
+ return /* @__PURE__ */ e(je, { ...s, children: /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ r(p, { spacing: 1, gap: 3, alignItems: "center", children: [
460
+ /* @__PURE__ */ r(p, { alignItems: "center", children: [
461
+ /* @__PURE__ */ e(x, { num: 1 }),
462
+ /* @__PURE__ */ e(G, { icon: l, size: "xl" })
447
463
  ] }),
448
- t && /* @__PURE__ */ n(M, { as: l, children: t }),
449
- u && /* @__PURE__ */ n(f, { children: u }),
450
- r,
451
- i && /* @__PURE__ */ o(d, { children: [
452
- /* @__PURE__ */ n(m, { num: 2 }),
453
- i
464
+ t && /* @__PURE__ */ e(z, { as: a, children: t }),
465
+ u && /* @__PURE__ */ e(f, { children: u }),
466
+ i,
467
+ o && /* @__PURE__ */ r(d, { children: [
468
+ /* @__PURE__ */ e(x, { num: 2 }),
469
+ o
454
470
  ] })
455
471
  ] }) }) });
456
- }, Qe = (e) => /* @__PURE__ */ n(
472
+ }, Pt = (n) => /* @__PURE__ */ e(
457
473
  d,
458
474
  {
459
475
  width: "100%",
460
476
  height: "100%",
461
477
  justifyContent: "center",
462
478
  alignItems: "center",
463
- children: /* @__PURE__ */ n(pe, { ...e })
479
+ children: /* @__PURE__ */ e(Dn, { ...n })
464
480
  }
465
- ), ge = ({
466
- text: e = "Loading..."
467
- }) => /* @__PURE__ */ o(d, { alignItems: "center", children: [
468
- /* @__PURE__ */ n(Bn, { size: "small" }),
469
- /* @__PURE__ */ n(m, { num: 4 }),
470
- /* @__PURE__ */ n(M, { variant: "h4", children: e })
471
- ] }), Ve = (e) => /* @__PURE__ */ n(
481
+ ), Wn = ({
482
+ text: n = "Loading..."
483
+ }) => /* @__PURE__ */ r(d, { alignItems: "center", children: [
484
+ /* @__PURE__ */ e(J, { size: "small" }),
485
+ /* @__PURE__ */ e(x, { num: 4 }),
486
+ /* @__PURE__ */ e(z, { variant: "h4", children: n })
487
+ ] }), At = (n) => /* @__PURE__ */ e(
472
488
  d,
473
489
  {
474
490
  width: "100%",
475
491
  height: "100%",
476
492
  justifyContent: "center",
477
493
  alignItems: "center",
478
- children: /* @__PURE__ */ n(ge, { ...e })
494
+ children: /* @__PURE__ */ e(Wn, { ...n })
479
495
  }
480
- ), Ye = ({
481
- renderBreadCrumbs: e,
496
+ ), $t = ({
497
+ renderBreadCrumbs: n,
482
498
  renderPageHeading: t,
483
- renderTabs: r,
484
- children: i
485
- }) => /* @__PURE__ */ o(d, { shadow: "bottom", background: b("--lhds-color-ui-50"), gap: 2, children: [
486
- /* @__PURE__ */ o(d, { indent: 3, children: [
487
- e && /* @__PURE__ */ o(c, { spacing: 1, alignItems: "center", children: [
488
- /* @__PURE__ */ n(c, { width: "64px", height: "16px" }),
489
- e()
499
+ renderTabs: i,
500
+ children: o
501
+ }) => /* @__PURE__ */ r(d, { shadow: "bottom", background: m("--lhds-color-ui-50"), gap: 2, children: [
502
+ /* @__PURE__ */ r(d, { indent: 3, children: [
503
+ n && /* @__PURE__ */ r(c, { spacing: 1, alignItems: "center", children: [
504
+ /* @__PURE__ */ e(c, { width: "64px", height: "16px" }),
505
+ n()
490
506
  ] }),
491
507
  t == null ? void 0 : t(),
492
- r && /* @__PURE__ */ n(m, {}),
493
- r == null ? void 0 : r()
508
+ i && /* @__PURE__ */ e(x, {}),
509
+ i == null ? void 0 : i()
494
510
  ] }),
495
- i
496
- ] }), Ze = (e) => /* @__PURE__ */ n(c, { indent: 3, spacing: !0, ...e }), nt = ({
497
- icon: e,
511
+ o
512
+ ] }), Lt = (n) => /* @__PURE__ */ e(c, { indent: 3, spacing: !0, ...n }), Dt = ({
513
+ icon: n,
498
514
  heading: t,
499
- headingLevel: r = "h2",
500
- contentLeft: i,
501
- contentRight: a
502
- }) => /* @__PURE__ */ o(c, { alignItems: "center", gap: 2, height: "64px", children: [
503
- /* @__PURE__ */ o(c, { alignItems: "center", children: [
504
- /* @__PURE__ */ n(c, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(j, { icon: e }) }),
505
- /* @__PURE__ */ n(M, { variant: "h3", as: r, children: t })
515
+ headingLevel: i = "h2",
516
+ contentLeft: o,
517
+ contentRight: l
518
+ }) => /* @__PURE__ */ r(c, { alignItems: "center", gap: 2, height: "64px", children: [
519
+ /* @__PURE__ */ r(c, { alignItems: "center", children: [
520
+ /* @__PURE__ */ e(c, { width: "64px", alignItems: "center", children: n && /* @__PURE__ */ e(G, { icon: n }) }),
521
+ /* @__PURE__ */ e(z, { variant: "h3", as: i, children: t })
506
522
  ] }),
507
- /* @__PURE__ */ n(c, { alignItems: "center", children: i }),
508
- /* @__PURE__ */ n(c, { style: { marginLeft: "auto" }, alignItems: "center", children: a })
509
- ] }), me = "_sidebarMenu_1bx5w_1", fe = "_sidebarItems_1bx5w_38", be = "_scrollContainer_1bx5w_48", F = {
510
- sidebarMenu: me,
511
- sidebarItems: fe,
512
- scrollContainer: be
513
- }, _e = "_stenaFlag_108h7_1", Be = {
514
- stenaFlag: _e
515
- }, ve = ({ onClick: e }) => /* @__PURE__ */ o(h, { background: b("--lhds-color-ui-50"), children: [
516
- /* @__PURE__ */ n(m, {}),
517
- /* @__PURE__ */ o(
523
+ /* @__PURE__ */ e(c, { alignItems: "center", children: o }),
524
+ /* @__PURE__ */ e(c, { style: { marginLeft: "auto" }, alignItems: "center", children: l })
525
+ ] }), Hn = "_sidebarMenu_1bx5w_1", Un = "_sidebarItems_1bx5w_38", qn = "_scrollContainer_1bx5w_48", K = {
526
+ sidebarMenu: Hn,
527
+ sidebarItems: Un,
528
+ scrollContainer: qn
529
+ }, En = "_stenaFlag_108h7_1", Gn = {
530
+ stenaFlag: En
531
+ }, On = ({ onClick: n }) => /* @__PURE__ */ r(p, { background: m("--lhds-color-ui-50"), children: [
532
+ /* @__PURE__ */ e(x, {}),
533
+ /* @__PURE__ */ r(
518
534
  c,
519
535
  {
520
536
  justifyContent: "space-between",
@@ -523,61 +539,61 @@ const $ = ({
523
539
  indent: 1,
524
540
  minHeight: "48px",
525
541
  children: [
526
- /* @__PURE__ */ n(q, { onClick: e }),
527
- /* @__PURE__ */ n(vn, { className: Be.stenaFlag })
542
+ /* @__PURE__ */ e(ge, { onClick: n }),
543
+ /* @__PURE__ */ e(Ae, { className: Gn.stenaFlag })
528
544
  ]
529
545
  }
530
546
  )
531
- ] }), Ce = ({
532
- isPinned: e,
547
+ ] }), Vn = ({
548
+ isPinned: n,
533
549
  onClick: t,
534
- label: r
535
- }) => /* @__PURE__ */ n(L, { onClick: t, label: r ?? (e ? "Unpin menu" : "Pin menu"), leftIcon: e ? O : Cn }), et = ({
536
- className: e,
550
+ label: i
551
+ }) => /* @__PURE__ */ e(T, { onClick: t, label: i ?? (n ? "Unpin menu" : "Pin menu"), leftIcon: n ? be : $e }), Wt = ({
552
+ className: n,
537
553
  children: t,
538
- onCloseClick: r,
539
- pinButtonVisible: i,
540
- onClickPinButton: a,
541
- bottomItems: l,
554
+ onCloseClick: i,
555
+ pinButtonVisible: o,
556
+ onClickPinButton: l,
557
+ bottomItems: a,
542
558
  isPinned: s,
543
559
  ...u
544
- }) => /* @__PURE__ */ o(d, { ...u, className: p(F.sidebarMenu, e), children: [
545
- /* @__PURE__ */ n(ve, { onClick: r }),
546
- /* @__PURE__ */ n(d, { className: F.scrollContainer, children: /* @__PURE__ */ o(
547
- h,
560
+ }) => /* @__PURE__ */ r(d, { ...u, className: v(K.sidebarMenu, n), children: [
561
+ /* @__PURE__ */ e(On, { onClick: i }),
562
+ /* @__PURE__ */ e(d, { className: K.scrollContainer, children: /* @__PURE__ */ r(
563
+ p,
548
564
  {
549
- className: F.sidebarItems,
565
+ className: K.sidebarItems,
550
566
  justifyContent: "space-between",
551
567
  flex: 1,
552
568
  gap: 1,
553
569
  indent: 1,
554
570
  children: [
555
- /* @__PURE__ */ n(h, { gap: 1, children: t }),
556
- (l || i) && /* @__PURE__ */ o(h, { gap: 1, children: [
557
- l,
558
- i && /* @__PURE__ */ n(
559
- Ce,
571
+ /* @__PURE__ */ e(p, { gap: 1, children: t }),
572
+ (a || o) && /* @__PURE__ */ r(p, { gap: 1, children: [
573
+ a,
574
+ o && /* @__PURE__ */ e(
575
+ Vn,
560
576
  {
561
577
  isPinned: s,
562
- onClick: a
578
+ onClick: l
563
579
  }
564
580
  ),
565
- /* @__PURE__ */ n(m, {})
581
+ /* @__PURE__ */ e(x, {})
566
582
  ] })
567
583
  ]
568
584
  }
569
585
  ) })
570
- ] }), N = kn(!1), z = () => Mn(N), xe = ({
571
- label: e,
586
+ ] }), q = Ge(!1), ie = () => Oe(q), Kn = ({
587
+ label: n,
572
588
  ...t
573
- }) => /* @__PURE__ */ n(Q, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n(P, { ...t }) }), tt = ({
574
- closeButtonVisible: e,
589
+ }) => /* @__PURE__ */ e(_e, { label: n, placement: "right", appendTo: document.body, children: /* @__PURE__ */ e(Y, { ...t }) }), Ht = ({
590
+ closeButtonVisible: n,
575
591
  onClickCloseButton: t,
576
- onClickMenuButton: r,
577
- children: i,
578
- bottomItems: a,
579
- closeButtonTitle: l = "Unpin menu"
580
- }) => /* @__PURE__ */ o(
592
+ onClickMenuButton: i,
593
+ children: o,
594
+ bottomItems: l,
595
+ closeButtonTitle: a = "Unpin menu"
596
+ }) => /* @__PURE__ */ r(
581
597
  d,
582
598
  {
583
599
  position: "fixed",
@@ -588,18 +604,18 @@ const $ = ({
588
604
  spacing: 1,
589
605
  gap: 1,
590
606
  shadow: "popover",
591
- background: b("--lhds-color-ui-50"),
607
+ background: m("--lhds-color-ui-50"),
592
608
  children: [
593
- /* @__PURE__ */ n(P, { onClick: r, icon: E }),
594
- /* @__PURE__ */ o(h, { justifyContent: "space-between", flex: 1, gap: 1, children: [
595
- /* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(N.Provider, { value: !0, children: i }) }),
596
- /* @__PURE__ */ n(h, { gap: 1, children: (a || e) && /* @__PURE__ */ o(N.Provider, { value: !0, children: [
597
- a,
598
- e && /* @__PURE__ */ n(
599
- xe,
609
+ /* @__PURE__ */ e(Y, { onClick: i, icon: me }),
610
+ /* @__PURE__ */ r(p, { justifyContent: "space-between", flex: 1, gap: 1, children: [
611
+ /* @__PURE__ */ e(p, { gap: 1, children: /* @__PURE__ */ e(q.Provider, { value: !0, children: o }) }),
612
+ /* @__PURE__ */ e(p, { gap: 1, children: (l || n) && /* @__PURE__ */ r(q.Provider, { value: !0, children: [
613
+ l,
614
+ n && /* @__PURE__ */ e(
615
+ Kn,
600
616
  {
601
- icon: O,
602
- label: l,
617
+ icon: be,
618
+ label: a,
603
619
  onClick: t
604
620
  }
605
621
  )
@@ -607,70 +623,70 @@ const $ = ({
607
623
  ] })
608
624
  ]
609
625
  }
610
- ), ye = ({
611
- label: e
612
- }) => z() ? null : /* @__PURE__ */ o(d, { height: "32px", justifyContent: "center", indent: 1, children: [
613
- /* @__PURE__ */ n(m, {}),
614
- /* @__PURE__ */ n(f, { variant: "overline", size: "smaller", children: e })
615
- ] }), Ie = ({
616
- label: e,
626
+ ), Zn = ({
627
+ label: n
628
+ }) => ie() ? null : /* @__PURE__ */ r(d, { height: "32px", justifyContent: "center", indent: 1, children: [
629
+ /* @__PURE__ */ e(x, {}),
630
+ /* @__PURE__ */ e(f, { variant: "overline", size: "smaller", children: n })
631
+ ] }), Qn = ({
632
+ label: n,
617
633
  leftIcon: t,
618
- ...r
619
- }) => t == null ? null : /* @__PURE__ */ n(Q, { label: e, placement: "right", children: /* @__PURE__ */ n(xn, { icon: t, ...r }) }), rt = (e) => z() ? /* @__PURE__ */ n(Ie, { ...e }) : /* @__PURE__ */ n(yn, { ...e }), we = ({
620
- children: e,
634
+ ...i
635
+ }) => t == null ? null : /* @__PURE__ */ e(_e, { label: n, placement: "right", children: /* @__PURE__ */ e(Le, { icon: t, ...i }) }), Ut = (n) => ie() ? /* @__PURE__ */ e(Qn, { ...n }) : /* @__PURE__ */ e(De, { ...n }), Tn = ({
636
+ children: n,
621
637
  label: t,
622
- icon: r,
623
- popupMinWidth: i = "200px"
624
- }) => /* @__PURE__ */ n(
625
- K,
638
+ icon: i,
639
+ popupMinWidth: o = "200px"
640
+ }) => /* @__PURE__ */ e(
641
+ Ce,
626
642
  {
627
- renderTrigger: (a) => /* @__PURE__ */ n(P, { icon: r, ...a }),
643
+ renderTrigger: (l) => /* @__PURE__ */ e(Y, { icon: i, ...l }),
628
644
  placement: "right-start",
629
645
  trigger: ["hover", "focus"],
630
646
  disablePadding: !0,
631
- children: /* @__PURE__ */ n(
647
+ children: /* @__PURE__ */ e(
632
648
  d,
633
649
  {
634
- minWidth: i,
650
+ minWidth: o,
635
651
  shadow: "popover",
636
652
  spacing: 1,
637
653
  indent: 1,
638
654
  gap: 2,
639
- children: /* @__PURE__ */ o(N.Provider, { value: !1, children: [
640
- /* @__PURE__ */ n(ye, { label: t }),
641
- e
655
+ children: /* @__PURE__ */ r(q.Provider, { value: !1, children: [
656
+ /* @__PURE__ */ e(Zn, { label: t }),
657
+ n
642
658
  ] })
643
659
  }
644
660
  )
645
661
  }
646
- ), it = ({
647
- children: e,
662
+ ), qt = ({
663
+ children: n,
648
664
  label: t,
649
- leftIcon: r,
650
- className: i,
651
- initialExpand: a = !1
665
+ leftIcon: i,
666
+ className: o,
667
+ initialExpand: l = !1
652
668
  }) => {
653
- const [l, s] = Sn(a);
654
- return z() ? r == null ? null : /* @__PURE__ */ n(we, { label: t, icon: r, children: e }) : /* @__PURE__ */ n(
655
- L,
669
+ const [a, s] = H(l);
670
+ return ie() ? i == null ? null : /* @__PURE__ */ e(Tn, { label: t, icon: i, children: n }) : /* @__PURE__ */ e(
671
+ T,
656
672
  {
657
673
  label: t,
658
- onClick: () => s(!l),
659
- leftIcon: r,
660
- className: i,
674
+ onClick: () => s(!a),
675
+ leftIcon: i,
676
+ className: o,
661
677
  expandable: !0,
662
- expanded: l,
663
- selected: l,
664
- children: /* @__PURE__ */ n(he, { children: e })
678
+ expanded: a,
679
+ selected: a,
680
+ children: /* @__PURE__ */ e(Ln, { children: n })
665
681
  }
666
682
  );
667
- }, ot = (e) => /* @__PURE__ */ n(
668
- Rn,
683
+ }, Et = (n) => /* @__PURE__ */ e(
684
+ Ve,
669
685
  {
670
- color: b("--lhds-color-ui-400"),
671
- ...e
686
+ color: m("--lhds-color-ui-400"),
687
+ ...n
672
688
  }
673
- ), at = ({ numItemsSelected: e, label: t, afterLabelContent: r, rightContent: i }) => /* @__PURE__ */ o(
689
+ ), Gt = ({ numItemsSelected: n, label: t, afterLabelContent: i, rightContent: o }) => /* @__PURE__ */ r(
674
690
  c,
675
691
  {
676
692
  indent: 3,
@@ -679,64 +695,531 @@ const $ = ({
679
695
  minHeight: "56px",
680
696
  justifyContent: "space-between",
681
697
  alignItems: "center",
682
- background: b("--silver-lighter"),
698
+ background: m("--silver-lighter"),
683
699
  flex: 1,
684
700
  borderRadius: "var(--swui-border-radius)",
685
701
  children: [
686
- /* @__PURE__ */ o(c, { alignItems: "center", gap: 2, children: [
687
- e != null || t != null ? /* @__PURE__ */ n(c, { alignItems: "center", children: e != null ? /* @__PURE__ */ o(B, { children: [
688
- /* @__PURE__ */ n(f, { children: e }),
689
- /* @__PURE__ */ n(m, {}),
690
- /* @__PURE__ */ o(f, { children: [
702
+ /* @__PURE__ */ r(c, { alignItems: "center", gap: 2, children: [
703
+ n != null || t != null ? /* @__PURE__ */ e(c, { alignItems: "center", children: n != null ? /* @__PURE__ */ r(M, { children: [
704
+ /* @__PURE__ */ e(f, { children: n }),
705
+ /* @__PURE__ */ e(x, {}),
706
+ /* @__PURE__ */ r(f, { children: [
691
707
  "item",
692
- e === 1 ? "" : "s",
708
+ n === 1 ? "" : "s",
693
709
  " selected"
694
710
  ] })
695
- ] }) : t != null ? /* @__PURE__ */ n(B, { children: typeof t == "string" ? /* @__PURE__ */ n(f, { children: t }) : t }) : null }) : null,
696
- r && /* @__PURE__ */ n(c, { children: r })
711
+ ] }) : t != null ? /* @__PURE__ */ e(M, { children: typeof t == "string" ? /* @__PURE__ */ e(f, { children: t }) : t }) : null }) : null,
712
+ i && /* @__PURE__ */ e(c, { children: i })
697
713
  ] }),
698
- /* @__PURE__ */ n(c, { gap: 2, children: i })
714
+ /* @__PURE__ */ e(c, { gap: 2, children: o })
699
715
  ]
700
716
  }
701
- ), lt = ({ children: e }) => /* @__PURE__ */ n(c, { spacing: 0.5, indent: 0.5, flex: 1, children: e });
717
+ ), Ot = ({ children: n }) => /* @__PURE__ */ e(c, { spacing: 0.5, indent: 0.5, flex: 1, children: n }), Xn = "_productCard_19x6b_1", Jn = {
718
+ productCard: Xn
719
+ }, Vt = ({
720
+ renderSelectedProductCard: n,
721
+ renderEditButton: t,
722
+ children: i,
723
+ loading: o,
724
+ border: l,
725
+ ...a
726
+ }) => /* @__PURE__ */ r(
727
+ p,
728
+ {
729
+ "data-comp": "ProductCard",
730
+ className: Jn.productCard,
731
+ borderWidth: 1,
732
+ borderColor: l ? m("--silver-light") : void 0,
733
+ borderStyle: l ? "solid" : void 0,
734
+ background: m("--moln"),
735
+ borderRadius: "24px",
736
+ overflow: "hidden",
737
+ position: o ? "relative" : void 0,
738
+ ...ne(a),
739
+ children: [
740
+ n == null ? void 0 : n(),
741
+ /* @__PURE__ */ e(p, { gap: 2, children: i }),
742
+ t && /* @__PURE__ */ r(p, { children: [
743
+ /* @__PURE__ */ e(c, { indent: 2, justifyContent: "flex-end", children: t() }),
744
+ /* @__PURE__ */ e(Ke, {})
745
+ ] }),
746
+ o && /* @__PURE__ */ e(
747
+ d,
748
+ {
749
+ top: 0,
750
+ bottom: 0,
751
+ left: 0,
752
+ right: 0,
753
+ position: "absolute",
754
+ justifyContent: "center",
755
+ alignItems: "center",
756
+ background: "rgba(255, 255, 255, 0.7)",
757
+ children: /* @__PURE__ */ e(J, {})
758
+ }
759
+ )
760
+ ]
761
+ }
762
+ ), Yn = ({ children: n }) => /* @__PURE__ */ e(f, { variant: "bold", style: { fontSize: "2.0rem" }, children: n }), Kt = ({
763
+ description: n,
764
+ subDescription: t,
765
+ descriptionTags: i,
766
+ capacityTag: o,
767
+ offerCodeTag: l,
768
+ priceText: a,
769
+ title: s,
770
+ subTitle: u,
771
+ renderImage: g,
772
+ children: b,
773
+ headingLevel: C
774
+ }) => {
775
+ const w = i == null ? !1 : Array.isArray(i) ? i.length > 0 : !Ze(i);
776
+ return /* @__PURE__ */ r(p, { children: [
777
+ g == null ? void 0 : g(),
778
+ /* @__PURE__ */ r(d, { gap: 2, spacing: 4, indent: 4, background: m("--moln"), children: [
779
+ /* @__PURE__ */ r(d, { gap: 0.5, children: [
780
+ /* @__PURE__ */ r(
781
+ c,
782
+ {
783
+ justifyContent: "space-between",
784
+ alignItems: "flex-start",
785
+ gap: 2,
786
+ children: [
787
+ /* @__PURE__ */ e(z, { variant: "h3", as: C, children: s }),
788
+ /* @__PURE__ */ r(c, { gap: 2, children: [
789
+ l && /* @__PURE__ */ e(p, { justifyContent: "center", children: l }),
790
+ /* @__PURE__ */ e(Yn, { children: a })
791
+ ] })
792
+ ]
793
+ }
794
+ ),
795
+ u && /* @__PURE__ */ e(f, { variant: "bold", color: m("--silver-dark"), children: u })
796
+ ] }),
797
+ (w || o) && /* @__PURE__ */ r(p, { children: [
798
+ /* @__PURE__ */ r(c, { gap: 1, flexWrap: "wrap", children: [
799
+ i,
800
+ o && /* @__PURE__ */ e(We, { label: o, variant: "passive" })
801
+ ] }),
802
+ /* @__PURE__ */ e(x, {})
803
+ ] }),
804
+ n && /* @__PURE__ */ r(p, { children: [
805
+ /* @__PURE__ */ e(f, { children: n }),
806
+ /* @__PURE__ */ e(x, {})
807
+ ] }),
808
+ t && /* @__PURE__ */ r(p, { children: [
809
+ /* @__PURE__ */ e(f, { children: t }),
810
+ /* @__PURE__ */ e(x, {})
811
+ ] }),
812
+ b
813
+ ] })
814
+ ] });
815
+ }, Zt = ({ renderImage: n }) => /* @__PURE__ */ r(p, { children: [
816
+ n == null ? void 0 : n(),
817
+ /* @__PURE__ */ r(d, { gap: 3, spacing: 4, indent: 4, background: m("--moln"), children: [
818
+ /* @__PURE__ */ e(d, { gap: 0.5, children: /* @__PURE__ */ e(
819
+ c,
820
+ {
821
+ justifyContent: "space-between",
822
+ alignItems: "flex-start",
823
+ gap: 2,
824
+ children: /* @__PURE__ */ e(
825
+ R,
826
+ {
827
+ width: "50px",
828
+ height: "2.8rem",
829
+ borderRadius: "8px"
830
+ }
831
+ )
832
+ }
833
+ ) }),
834
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(R, { width: "180px", height: "2.0rem", borderRadius: "8px" }) }),
835
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(R, { width: "150px", height: "1.4rem", borderRadius: "8px" }) }),
836
+ /* @__PURE__ */ e(x, {})
837
+ ] })
838
+ ] }), Qt = ({
839
+ label: n,
840
+ children: t
841
+ }) => /* @__PURE__ */ r(d, { background: m("--mussla"), indent: 2, spacing: 2, gap: 2, children: [
842
+ /* @__PURE__ */ e(z, { variant: "h3", as: "h2", color: "white", children: n }),
843
+ t
844
+ ] }), Tt = ({
845
+ title: n,
846
+ variant: t = "normal",
847
+ loading: i,
848
+ iconLeft: o,
849
+ compactIconLeft: l,
850
+ renderButton: a,
851
+ renderOfferCodeTag: s,
852
+ renderMandatoryTag: u,
853
+ renderContentLeftOfButton: g,
854
+ children: b,
855
+ ...C
856
+ }) => {
857
+ const { fontSizeRatio: w } = Qe(), k = N({
858
+ query: "(max-width: 460px)"
859
+ }), B = N({
860
+ query: "(max-width: 360px)"
861
+ }) || k && w > 1.2, _ = i ? "normal" : t, j = nt(_), F = m("--moln"), P = et(_);
862
+ return /* @__PURE__ */ r(
863
+ d,
864
+ {
865
+ "data-comp": "ProductSummaryCard",
866
+ borderRadius: "16px",
867
+ shadow: "box",
868
+ overflow: "hidden",
869
+ position: i ? "relative" : void 0,
870
+ ...ne(C),
871
+ children: [
872
+ /* @__PURE__ */ r(c, { flex: 1, children: [
873
+ !B && /* @__PURE__ */ e(d, { flex: 2, justifyContent: "center", background: j, children: o && /* @__PURE__ */ e(X, { color: P, icon: o, size: 73 }) }),
874
+ /* @__PURE__ */ e(d, { flex: 4, indent: 2, spacing: 2, background: F, children: /* @__PURE__ */ r(p, { gap: 2, children: [
875
+ n && /* @__PURE__ */ r(c, { justifyContent: "space-between", children: [
876
+ /* @__PURE__ */ r(c, { gap: 2, alignItems: "center", children: [
877
+ B && l && /* @__PURE__ */ e(G, { icon: l, size: "medium" }),
878
+ /* @__PURE__ */ e(f, { variant: "bold", size: "large", children: n })
879
+ ] }),
880
+ _ == "normal" && (s == null ? void 0 : s())
881
+ ] }),
882
+ /* @__PURE__ */ e(p, { style: { opacity: i ? 0 : void 0 }, children: b }),
883
+ u && /* @__PURE__ */ e(c, { style: { opacity: i ? 0 : void 0 }, children: u() }),
884
+ /* @__PURE__ */ e("div", {}),
885
+ /* @__PURE__ */ r(
886
+ c,
887
+ {
888
+ justifyContent: "space-between",
889
+ alignItems: "center",
890
+ gap: 2,
891
+ flexWrap: "wrap",
892
+ children: [
893
+ (g == null ? void 0 : g()) ?? /* @__PURE__ */ e("div", {}),
894
+ a == null ? void 0 : a()
895
+ ]
896
+ }
897
+ )
898
+ ] }) })
899
+ ] }),
900
+ i && /* @__PURE__ */ e(
901
+ d,
902
+ {
903
+ top: 0,
904
+ bottom: 0,
905
+ left: 0,
906
+ right: 0,
907
+ position: "absolute",
908
+ justifyContent: "center",
909
+ alignItems: "center",
910
+ background: "rgba(255, 255, 255, 0.7)",
911
+ children: /* @__PURE__ */ e(J, {})
912
+ }
913
+ )
914
+ ]
915
+ }
916
+ );
917
+ }, et = (n) => {
918
+ switch (n) {
919
+ case "edit":
920
+ return m("--moln");
921
+ case "upgrade":
922
+ return m("--moln");
923
+ case "normal":
924
+ return m("--mussla");
925
+ default:
926
+ xe(n);
927
+ }
928
+ }, nt = (n) => {
929
+ switch (n) {
930
+ case "edit":
931
+ return m("--mussla");
932
+ case "upgrade":
933
+ return m("--mussla");
934
+ case "normal":
935
+ return m("--silver-lighter");
936
+ default:
937
+ xe(n);
938
+ }
939
+ }, Xt = ({ iconLeft: n, ...t }) => /* @__PURE__ */ e(
940
+ d,
941
+ {
942
+ borderRadius: "16px",
943
+ shadow: "box",
944
+ overflow: "hidden",
945
+ ...ne(t),
946
+ children: /* @__PURE__ */ r(c, { flex: 1, children: [
947
+ /* @__PURE__ */ e(
948
+ d,
949
+ {
950
+ flex: 2,
951
+ justifyContent: "center",
952
+ background: m("--silver-lighter"),
953
+ children: n && /* @__PURE__ */ e(X, { color: m("--mussla"), icon: n, size: 73 })
954
+ }
955
+ ),
956
+ /* @__PURE__ */ e(d, { flex: 4, indent: 2, spacing: 2, background: m("--moln"), children: /* @__PURE__ */ r(p, { gap: 2, children: [
957
+ /* @__PURE__ */ e(
958
+ R,
959
+ {
960
+ width: "180px",
961
+ height: "2.8rem",
962
+ borderRadius: "8px"
963
+ }
964
+ ),
965
+ /* @__PURE__ */ e(R, { width: "50px", height: "2.0rem", borderRadius: "8px" }),
966
+ /* @__PURE__ */ e(
967
+ R,
968
+ {
969
+ width: "150px",
970
+ height: "1.4rem",
971
+ borderRadius: "8px"
972
+ }
973
+ )
974
+ ] }) })
975
+ ] })
976
+ }
977
+ ), de = [
978
+ "small-mobile",
979
+ "mobile",
980
+ "tablet",
981
+ "tablet-wide",
982
+ "desktop"
983
+ ], we = () => {
984
+ const n = N({
985
+ query: "(max-width: 768px)"
986
+ }), t = N({
987
+ query: "(max-width: 395px)"
988
+ }), i = N({
989
+ query: "(max-width: 1024px)"
990
+ }), o = N({
991
+ query: "(max-width: 1160px)"
992
+ });
993
+ return { deviceSize: t ? "small-mobile" : n ? "mobile" : i ? "tablet" : o ? "tablet-wide" : "desktop" };
994
+ }, tt = (n, t) => n === t || de.indexOf(n) > de.indexOf(t), Jt = (n) => {
995
+ const { deviceSize: t } = we();
996
+ return {
997
+ visible: U(
998
+ () => tt(t, n),
999
+ [t, n]
1000
+ )
1001
+ };
1002
+ }, Yt = ({
1003
+ images: n,
1004
+ altLabelPrevious: t,
1005
+ altLabelZoomIn: i,
1006
+ altLabelZoomOut: o,
1007
+ altLabelNext: l,
1008
+ altLabelClose: a
1009
+ }) => {
1010
+ const s = Q(null), u = Q(null), { deviceSize: g } = we(), b = g !== "mobile", [C, w] = H(!1), [k, S] = H(0), [B, _] = H(0), j = le(() => {
1011
+ _(k), w(!0);
1012
+ }, [k]), F = le(() => {
1013
+ S(B), w(!1);
1014
+ }, [B]), P = ({ index: h }) => S(h), O = ({ index: h }) => _(h), L = U(() => n.map(Z), [n]), A = U(
1015
+ () => n.map(
1016
+ (h) => h.fullscreenImage ? Z({
1017
+ ...h.fullscreenImage,
1018
+ description: h.description,
1019
+ title: h.title
1020
+ }) : Z(h)
1021
+ ),
1022
+ [n]
1023
+ );
1024
+ return /* @__PURE__ */ r(Te, { blockedKeys: "Escape", children: [
1025
+ /* @__PURE__ */ e(
1026
+ ae,
1027
+ {
1028
+ controller: { ref: s },
1029
+ index: k,
1030
+ slides: L,
1031
+ plugins: [Je],
1032
+ on: {
1033
+ view: P,
1034
+ click: j
1035
+ },
1036
+ carousel: {
1037
+ padding: 0,
1038
+ spacing: 0,
1039
+ imageFit: "cover"
1040
+ },
1041
+ render: {
1042
+ buttonPrev: () => n.length > 1 && /* @__PURE__ */ e(y, { className: "yarl__navigation_prev", children: /* @__PURE__ */ e(
1043
+ I,
1044
+ {
1045
+ "aria-label": t,
1046
+ leftIcon: re,
1047
+ onClick: () => {
1048
+ var h;
1049
+ return (h = s.current) == null ? void 0 : h.prev();
1050
+ }
1051
+ }
1052
+ ) }),
1053
+ buttonNext: () => n.length > 1 && /* @__PURE__ */ e(y, { className: "yarl__navigation_next", children: /* @__PURE__ */ e(
1054
+ I,
1055
+ {
1056
+ "aria-label": l,
1057
+ leftIcon: oe,
1058
+ onClick: () => {
1059
+ var h;
1060
+ return (h = s.current) == null ? void 0 : h.next();
1061
+ }
1062
+ }
1063
+ ) })
1064
+ },
1065
+ styles: {
1066
+ button: {
1067
+ filter: "none"
1068
+ }
1069
+ },
1070
+ inline: {
1071
+ style: {
1072
+ width: "100%",
1073
+ maxWidth: "900px",
1074
+ aspectRatio: "3 / 2",
1075
+ margin: "0 auto"
1076
+ }
1077
+ }
1078
+ }
1079
+ ),
1080
+ /* @__PURE__ */ e(
1081
+ ae,
1082
+ {
1083
+ open: C,
1084
+ close: F,
1085
+ index: B,
1086
+ plugins: [nn, en, Ye],
1087
+ slides: A ?? L,
1088
+ on: { view: O },
1089
+ animation: { fade: 0 },
1090
+ controller: {
1091
+ closeOnPullDown: !0,
1092
+ closeOnBackdropClick: !0,
1093
+ ref: u
1094
+ },
1095
+ counter: {
1096
+ container: {
1097
+ style: {
1098
+ filter: "none",
1099
+ color: "white",
1100
+ fontSize: "2.0rem",
1101
+ fontFamily: "Stena Sans"
1102
+ }
1103
+ }
1104
+ },
1105
+ render: {
1106
+ buttonZoom: (h) => b && /* @__PURE__ */ r(c, { gap: 1, indent: 2, children: [
1107
+ /* @__PURE__ */ e(
1108
+ I,
1109
+ {
1110
+ "aria-label": i,
1111
+ leftIcon: He,
1112
+ size: "large",
1113
+ onClick: () => h.zoomIn()
1114
+ }
1115
+ ),
1116
+ /* @__PURE__ */ e(
1117
+ I,
1118
+ {
1119
+ "aria-label": o,
1120
+ leftIcon: Ue,
1121
+ size: "large",
1122
+ onClick: () => h.zoomOut()
1123
+ }
1124
+ )
1125
+ ] }),
1126
+ buttonPrev: () => n.length > 1 && b && /* @__PURE__ */ e(y, { num: 4, className: "yarl__navigation_prev", children: /* @__PURE__ */ e(
1127
+ I,
1128
+ {
1129
+ "aria-label": t,
1130
+ leftIcon: re,
1131
+ size: "large",
1132
+ onClick: () => {
1133
+ var h;
1134
+ return (h = u.current) == null ? void 0 : h.prev();
1135
+ }
1136
+ }
1137
+ ) }),
1138
+ buttonNext: () => n.length > 1 && b && /* @__PURE__ */ e(y, { num: 4, className: "yarl__navigation_next", children: /* @__PURE__ */ e(
1139
+ I,
1140
+ {
1141
+ "aria-label": l,
1142
+ leftIcon: oe,
1143
+ size: "large",
1144
+ onClick: () => {
1145
+ var h;
1146
+ return (h = u.current) == null ? void 0 : h.next();
1147
+ }
1148
+ }
1149
+ ) }),
1150
+ buttonClose: () => /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
1151
+ pe,
1152
+ {
1153
+ variant: "danger",
1154
+ "aria-label": a,
1155
+ leftIcon: qe,
1156
+ size: "large",
1157
+ onClick: () => {
1158
+ var h;
1159
+ return (h = u.current) == null ? void 0 : h.close();
1160
+ }
1161
+ }
1162
+ ) })
1163
+ }
1164
+ }
1165
+ )
1166
+ ] });
1167
+ }, Z = (n) => ({
1168
+ src: n.url,
1169
+ width: n.width,
1170
+ height: n.height,
1171
+ alt: n.description,
1172
+ title: n.title,
1173
+ description: n.description
1174
+ });
702
1175
  export {
703
- jn as ActionMenuFlatButton,
704
- Pe as ActionMenuPrimaryButton,
705
- Ae as ActionMenuSecondaryButton,
706
- $e as CheckboxMenu,
707
- se as Collapsible,
708
- Ke as CollapsibleEmptyContent,
709
- Je as CollapsibleGroupHeading,
710
- Oe as CollapsibleList,
711
- Xe as CollapsibleWithCheckbox,
712
- pe as ErrorPanel,
713
- Qe as ErrorScreen,
714
- ge as LoadingPanel,
715
- Ve as LoadingScreen,
716
- ze as NavBar,
717
- Un as NavBarButton,
718
- He as NavBarHeading,
719
- Te as NavBarNotificationButton,
720
- Ue as NavBarPopoverButton,
721
- De as NavBarSearchField,
722
- Ge as NavBarUserButton,
723
- We as Notification,
724
- Y as NotificationHeader,
725
- Ee as NotificationList,
726
- Ye as PageHeader,
727
- Ze as PageHeaderRow,
728
- nt as PageHeading,
729
- lt as SelectedItemsActionsPadding,
730
- at as SelectedItemsActionsPanel,
731
- et as SidebarMenu,
732
- it as SidebarMenuCollapsible,
733
- he as SidebarMenuCollapsibleGroupBox,
734
- ye as SidebarMenuHeading,
735
- rt as SidebarMenuLink,
736
- ot as SidebarMenuSeparator,
737
- tt as SidebarRailMenu,
738
- qe as Toast,
739
- Yn as UnreadDot,
740
- Zn as getIconBgColorFromVariant
1176
+ tn as ActionMenuFlatButton,
1177
+ xt as ActionMenuPrimaryButton,
1178
+ vt as ActionMenuSecondaryButton,
1179
+ Ct as CheckboxMenu,
1180
+ Pn as Collapsible,
1181
+ Ft as CollapsibleEmptyContent,
1182
+ jt as CollapsibleGroupHeading,
1183
+ Rt as CollapsibleList,
1184
+ zt as CollapsibleWithCheckbox,
1185
+ Dn as ErrorPanel,
1186
+ Pt as ErrorScreen,
1187
+ Yt as ImageCarousel,
1188
+ Wn as LoadingPanel,
1189
+ At as LoadingScreen,
1190
+ _t as NavBar,
1191
+ dn as NavBarButton,
1192
+ yt as NavBarHeading,
1193
+ wt as NavBarNotificationButton,
1194
+ Bt as NavBarPopoverButton,
1195
+ kt as NavBarSearchField,
1196
+ It as NavBarUserButton,
1197
+ St as Notification,
1198
+ Be as NotificationHeader,
1199
+ Nt as NotificationList,
1200
+ $t as PageHeader,
1201
+ Lt as PageHeaderRow,
1202
+ Dt as PageHeading,
1203
+ Vt as ProductCard,
1204
+ Kt as ProductCardContentItem,
1205
+ Zt as ProductCardContentItemSkeletor,
1206
+ Tt as ProductSummaryCard,
1207
+ Xt as ProductSummaryCardSkeletor,
1208
+ Ot as SelectedItemsActionsPadding,
1209
+ Gt as SelectedItemsActionsPanel,
1210
+ Qt as SelectedProductCard,
1211
+ Wt as SidebarMenu,
1212
+ qt as SidebarMenuCollapsible,
1213
+ Ln as SidebarMenuCollapsibleGroupBox,
1214
+ Zn as SidebarMenuHeading,
1215
+ Ut as SidebarMenuLink,
1216
+ Et as SidebarMenuSeparator,
1217
+ Ht as SidebarRailMenu,
1218
+ Mt as Toast,
1219
+ Bn as UnreadDot,
1220
+ wn as getIconBgColorFromVariant,
1221
+ tt as isDeviceSameOrLarger,
1222
+ we as useDeviceSize,
1223
+ Jt as useLayoutVisibility
741
1224
  };
742
1225
  //# sourceMappingURL=index.es.js.map