@stenajs-webui/panels 22.3.0 → 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,529 +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 ln, stenaAngleDown as W, PrimaryButton as cn, SecondaryButton as sn, FlatButton as k, stenaHamburger as E, BaseButton as dn, stenaBellFilled as un, TextInputButton as hn, stenaTimes as pn, stenaUserCircle as gn, CircledIcon as j, CloseButton as q, MenuButton as L, Icon as mn, stenaMail as fn, Card as bn, CardBody as _n, stenaTripFerryXl as Bn, Spinner as vn, StenaFlag as Cn, stenaAngleLeftDouble as O, stenaPin as xn, IconMenuButton as P, IconMenuButtonLink as yn, MenuButtonLink as In } from "@stenajs-webui/elements";
4
- import * as wn from "react";
5
- import { useRef as Nn, useMemo as kn, forwardRef as A, createContext as Mn, useContext as Sn, useState as Rn } 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 Fn } 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 jn } 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
- disableTrapFocus: Z = !1,
24
- ...nn
28
+ appendTo: b,
29
+ zIndex: C,
30
+ disableTrapFocus: w = !1,
31
+ ...k
25
32
  }) => {
26
- const [H, U, y, en] = X(!1), tn = Nn(null), rn = g ?? tn, on = kn(() => ({ open: U, close: y }), [U, y]), an = (S) => {
27
- s == null || s(S), en();
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();
28
35
  };
29
- return /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(
30
- J,
36
+ return /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
37
+ ve,
31
38
  {
32
- renderTrigger: (S) => /* @__PURE__ */ n(
33
- r,
39
+ renderTrigger: (A) => /* @__PURE__ */ e(
40
+ i,
34
41
  {
35
- rightIcon: u ? void 0 : i,
36
- ...nn,
37
- ref: rn,
38
- onClick: an,
39
- ...S
42
+ rightIcon: u ? void 0 : o,
43
+ ...k,
44
+ ref: P,
45
+ onClick: L,
46
+ ...A
40
47
  }
41
48
  ),
42
49
  hideArrow: !0,
43
50
  disablePadding: !0,
44
- open: H,
45
- onRequestClose: y,
51
+ open: S,
52
+ onRequestClose: _,
46
53
  placement: t,
47
- appendTo: _,
48
- zIndex: v,
49
- children: H && /* @__PURE__ */ n(
50
- G,
54
+ appendTo: b,
55
+ zIndex: C,
56
+ children: S && /* @__PURE__ */ e(
57
+ ue,
51
58
  {
52
- width: a,
53
- top: l,
54
- trapFocus: !Z,
55
- children: /* @__PURE__ */ n(ln.Provider, { value: on, children: e(y) })
59
+ width: l,
60
+ top: a,
61
+ trapFocus: !w,
62
+ children: /* @__PURE__ */ e(ke.Provider, { value: O, children: n(_) })
56
63
  }
57
64
  )
58
65
  }
59
66
  ) });
60
- }, Ae = (e) => /* @__PURE__ */ n($, { buttonComponent: cn, ...e }), $e = (e) => /* @__PURE__ */ n($, { buttonComponent: sn, ...e }), Ln = (e) => /* @__PURE__ */ n($, { buttonComponent: k, ...e }), Pn = "1px solid var(--lhds-color-ui-300)", ze = ({
61
- 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,
62
69
  ...t
63
- }) => /* @__PURE__ */ n(
64
- K,
70
+ }) => /* @__PURE__ */ e(
71
+ Ce,
65
72
  {
66
73
  trigger: "click",
67
- renderTrigger: (r) => /* @__PURE__ */ n(c, { children: /* @__PURE__ */ o(
74
+ renderTrigger: (i) => /* @__PURE__ */ e(c, { children: /* @__PURE__ */ r(
68
75
  c,
69
76
  {
70
77
  spacing: 0.5,
71
78
  indent: !0,
72
79
  alignItems: "center",
73
- border: Pn,
80
+ border: rn,
74
81
  borderRadius: "4px",
75
82
  children: [
76
- /* @__PURE__ */ n(V, { ...t }),
77
- /* @__PURE__ */ n(x, { num: 0.5 }),
78
- /* @__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 })
79
86
  ]
80
87
  }
81
88
  ) }),
82
89
  hideArrow: !0,
83
90
  disablePadding: !0,
84
91
  placement: "bottom-start",
85
- 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) }) })
86
93
  }
87
- ), An = "_navBar_kzibd_1", $n = {
88
- navBar: An
89
- }, zn = ({
90
- className: e,
94
+ ), on = "_navBar_kzibd_1", ln = {
95
+ navBar: on
96
+ }, an = ({
97
+ className: n,
91
98
  onClick: t
92
- }) => /* @__PURE__ */ n(
93
- k,
99
+ }) => /* @__PURE__ */ e(
100
+ E,
94
101
  {
95
- leftIcon: E,
96
- className: e,
102
+ leftIcon: me,
103
+ className: n,
97
104
  onClick: t
98
105
  }
99
- ), He = ({
100
- left: e,
106
+ ), _t = ({
107
+ left: n,
101
108
  className: t,
102
- showMenuButton: r = !1,
103
- children: i,
104
- right: a,
105
- center: l,
109
+ showMenuButton: i = !1,
110
+ children: o,
111
+ right: l,
112
+ center: a,
106
113
  onClickMenuButton: s
107
114
  }) => {
108
- const u = l ? 1 : void 0;
109
- return /* @__PURE__ */ o(
115
+ const u = a ? 1 : void 0;
116
+ return /* @__PURE__ */ r(
110
117
  c,
111
118
  {
112
119
  justifyContent: "space-between",
113
- className: p($n.navBar, t),
120
+ className: v(ln.navBar, t),
114
121
  children: [
115
- /* @__PURE__ */ o(
122
+ /* @__PURE__ */ r(
116
123
  c,
117
124
  {
118
125
  flex: u,
119
126
  justifyContent: "flex-start",
120
127
  alignItems: "center",
121
128
  children: [
122
- /* @__PURE__ */ o(c, { width: "86px", alignItems: "center", children: [
123
- /* @__PURE__ */ n(x, {}),
124
- r && /* @__PURE__ */ n(zn, { onClick: s })
129
+ /* @__PURE__ */ r(c, { width: "86px", alignItems: "center", children: [
130
+ /* @__PURE__ */ e(y, {}),
131
+ i && /* @__PURE__ */ e(an, { onClick: s })
125
132
  ] }),
126
- e && /* @__PURE__ */ o(B, { children: [
127
- e,
128
- /* @__PURE__ */ n(x, { num: 2 })
133
+ n && /* @__PURE__ */ r(M, { children: [
134
+ n,
135
+ /* @__PURE__ */ e(y, { num: 2 })
129
136
  ] }),
130
- i && /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(c, { justifyContent: "center", alignItems: "center", children: wn.Children.map(i, (g, _) => /* @__PURE__ */ o(B, { children: [
131
- _ > 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, {}),
132
139
  g
133
140
  ] })) }) })
134
141
  ]
135
142
  }
136
143
  ),
137
- l && /* @__PURE__ */ n(c, { justifyContent: "center", alignItems: "center", children: l }),
138
- /* @__PURE__ */ o(c, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
139
- a,
140
- /* @__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 })
141
148
  ] })
142
149
  ]
143
150
  }
144
151
  );
145
- }, Hn = "_navBarButton_b3x3w_1", Un = "_selected_b3x3w_14", T = {
146
- navBarButton: Hn,
147
- selected: Un
148
- }, Tn = A(
149
- function({ selected: e, className: t, ...r }, i) {
150
- return /* @__PURE__ */ n(
151
- 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,
152
159
  {
153
- ...r,
154
- ref: i,
155
- className: p(
156
- T.navBarButton,
157
- e && T.selected,
160
+ ...i,
161
+ ref: o,
162
+ className: v(
163
+ ce.navBarButton,
164
+ n && ce.selected,
158
165
  t
159
166
  )
160
167
  }
161
168
  );
162
169
  }
163
- ), Ue = (e) => /* @__PURE__ */ n(M, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...e }), Te = ({
164
- content: e,
170
+ ), yt = (n) => /* @__PURE__ */ e(z, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...n }), Bt = ({
171
+ content: n,
165
172
  children: t,
166
- appendTo: r,
167
- zIndex: i,
168
- ...a
173
+ appendTo: i,
174
+ zIndex: o,
175
+ ...l
169
176
  }) => {
170
- const [l, , s, u] = X(!1);
171
- return /* @__PURE__ */ n(
172
- J,
177
+ const [a, , s, u] = fe(!1);
178
+ return /* @__PURE__ */ e(
179
+ ve,
173
180
  {
174
- renderTrigger: (g) => /* @__PURE__ */ n(Tn, { ...a, ...g, onClick: u }),
175
- open: l,
181
+ renderTrigger: (g) => /* @__PURE__ */ e(dn, { ...l, ...g, onClick: u }),
182
+ open: a,
176
183
  onRequestClose: s,
177
- zIndex: i,
178
- appendTo: r,
179
- children: /* @__PURE__ */ o(d, { children: [
180
- e && e({ close: s }),
184
+ zIndex: o,
185
+ appendTo: i,
186
+ children: /* @__PURE__ */ r(d, { children: [
187
+ n && n({ close: s }),
181
188
  t
182
189
  ] })
183
190
  }
184
191
  );
185
- }, Dn = "_navBarNotificationButton_1wt3y_1", Gn = "_unread_1wt3y_23", Wn = "_icon_1wt3y_23", En = "_shake_1wt3y_1", C = {
186
- navBarNotificationButton: Dn,
187
- unread: Gn,
188
- icon: Wn,
189
- shake: En
190
- }, De = A(function({
191
- 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,
192
199
  unread: t = !1,
193
- className: r,
194
- labelClassName: i,
195
- iconClassName: a,
196
- icon: l = un,
200
+ className: i,
201
+ labelClassName: o,
202
+ iconClassName: l,
203
+ icon: a = Se,
197
204
  ...s
198
205
  }, u) {
199
- const g = e > 1;
200
- return /* @__PURE__ */ n(
201
- dn,
206
+ const g = n > 1;
207
+ return /* @__PURE__ */ e(
208
+ Ie,
202
209
  {
203
210
  ...s,
204
211
  ref: u,
205
- leftIcon: l,
206
- className: p(
207
- C.navBarNotificationButton,
208
- t && C.unread,
209
- g && C.hasCount,
210
- r
212
+ leftIcon: a,
213
+ className: v(
214
+ $.navBarNotificationButton,
215
+ t && $.unread,
216
+ g && $.hasCount,
217
+ i
211
218
  ),
212
- label: g ? String(e) : void 0,
213
- labelClassName: p(i, C.label),
214
- iconClassName: p(a, C.icon)
219
+ label: g ? String(n) : void 0,
220
+ labelClassName: v(o, $.label),
221
+ iconClassName: v(l, $.icon)
215
222
  }
216
223
  );
217
- }), qn = "_navBarSearchFieldInput_1rp8g_1", On = "_navBarSearchFieldWrapper_1rp8g_12", Xn = "_withButton_1rp8g_24", Jn = "_clearButton_1rp8g_33", I = {
218
- navBarSearchFieldInput: qn,
219
- navBarSearchFieldWrapper: On,
220
- withButton: Xn,
221
- clearButton: Jn
222
- }, Ge = ({
223
- 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",
224
231
  className: t,
225
- wrapperClassName: r,
226
- showClearButton: i,
227
- onClickClearButton: a,
228
- value: l,
232
+ wrapperClassName: i,
233
+ showClearButton: o,
234
+ onClickClearButton: l,
235
+ value: a,
229
236
  ...s
230
- }) => /* @__PURE__ */ n(
231
- jn,
237
+ }) => /* @__PURE__ */ e(
238
+ Xe,
232
239
  {
233
- wrapperClassName: p(
234
- I.navBarSearchFieldWrapper,
235
- i ? I.withButton : void 0,
236
- r
240
+ wrapperClassName: v(
241
+ D.navBarSearchFieldWrapper,
242
+ o ? D.withButton : void 0,
243
+ i
237
244
  ),
238
- className: p(I.navBarSearchFieldInput, t),
239
- placeholder: e,
240
- value: l,
241
- buttonRight: l && i ? /* @__PURE__ */ n(
242
- hn,
245
+ className: v(D.navBarSearchFieldInput, t),
246
+ placeholder: n,
247
+ value: a,
248
+ buttonRight: a && o ? /* @__PURE__ */ e(
249
+ Ne,
243
250
  {
244
- className: I.clearButton,
245
- icon: pn,
251
+ className: D.clearButton,
252
+ icon: Me,
246
253
  variant: "error",
247
- onClick: a
254
+ onClick: l
248
255
  }
249
256
  ) : void 0,
250
257
  ...s
251
258
  }
252
- ), Kn = "_navBarUserButton_10f9z_1", Qn = {
253
- navBarUserButton: Kn
254
- }, We = ({
255
- className: e,
259
+ ), vn = "_navBarUserButton_10f9z_1", Cn = {
260
+ navBarUserButton: vn
261
+ }, It = ({
262
+ className: n,
256
263
  username: t,
257
- initials: r,
258
- icon: i = gn,
259
- responsiveIconOnly: a = r == null,
260
- ...l
261
- }) => /* @__PURE__ */ n(
262
- Ln,
264
+ initials: i,
265
+ icon: o = Re,
266
+ responsiveIconOnly: l = i == null,
267
+ ...a
268
+ }) => /* @__PURE__ */ e(
269
+ tn,
263
270
  {
264
- ...l,
265
- className: p(Qn.navBarUserButton, e),
266
- leftIcon: t != null ? i : void 0,
267
- label: r ?? t,
268
- forceRound: r != null,
269
- 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,
270
277
  disableArrow: !0
271
278
  }
272
- ), Vn = "_unreadDot_l8bni_1", Yn = "_dot_l8bni_4", D = {
273
- unreadDot: Vn,
274
- dot: Yn
275
- }, Zn = ({ children: e }) => /* @__PURE__ */ o("div", { className: D.unreadDot, children: [
276
- e,
277
- /* @__PURE__ */ n("div", { className: D.dot })
278
- ] }), Y = ({
279
- 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,
280
287
  timestamp: t,
281
- icon: r,
282
- iconAriaLabel: i,
283
- contentLeft: a,
284
- contentRight: l,
288
+ icon: i,
289
+ iconAriaLabel: o,
290
+ contentLeft: l,
291
+ contentRight: a,
285
292
  onClose: s,
286
293
  unread: u = !1,
287
294
  variant: g,
288
- iconBackgroundColor: _
295
+ iconBackgroundColor: b
289
296
  }) => {
290
- const v = r ? /* @__PURE__ */ n(
291
- j,
297
+ const C = i ? /* @__PURE__ */ e(
298
+ G,
292
299
  {
293
300
  size: "small",
294
- icon: r,
295
- "aria-label": i,
296
- backgroundColor: _ || ne(u, g)
301
+ icon: i,
302
+ "aria-label": o,
303
+ backgroundColor: b || wn(u, g)
297
304
  }
298
305
  ) : void 0;
299
- return /* @__PURE__ */ o(c, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
300
- /* @__PURE__ */ o(c, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
301
- a && /* @__PURE__ */ n(d, { minHeight: 20, justifyContent: "center", children: a }),
302
- !a && v && (u ? /* @__PURE__ */ n(Zn, { children: v }) : v),
303
- /* @__PURE__ */ o(d, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
304
- /* @__PURE__ */ n(f, { variant: "bold", children: e }),
305
- 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(
306
313
  f,
307
314
  {
308
315
  size: "small",
309
- color: b(
316
+ color: m(
310
317
  u ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
311
318
  ),
312
319
  children: t
313
320
  }
314
321
  )
315
322
  ] }),
316
- l
323
+ a
317
324
  ] }),
318
- s && /* @__PURE__ */ n(
325
+ s && /* @__PURE__ */ e(
319
326
  d,
320
327
  {
321
328
  flex: "none",
322
329
  justifyContent: "center",
323
330
  height: "calc(20px + 2 * var(--swui-metrics-spacing))",
324
- children: /* @__PURE__ */ n(q, { onClick: s })
331
+ children: /* @__PURE__ */ e(ge, { onClick: s })
325
332
  }
326
333
  )
327
334
  ] });
328
- }, ne = (e, t) => {
329
- if (!(!e && t === "standard"))
335
+ }, wn = (n, t) => {
336
+ if (!(!n && t === "standard"))
330
337
  return "--lhds-color-ui-50";
331
- }, ee = "_notification_1hao0_1", te = "_body_1hao0_7", re = "_standard_1hao0_13", ie = "_unread_1hao0_14", oe = "_danger_1hao0_19", w = {
332
- notification: ee,
333
- body: te,
334
- standard: re,
335
- unread: ie,
336
- danger: oe
337
- }, Ee = ({
338
- 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",
339
346
  children: t,
340
- unread: r,
341
- ...i
342
- }) => /* @__PURE__ */ o(
347
+ unread: i,
348
+ ...o
349
+ }) => /* @__PURE__ */ r(
343
350
  "div",
344
351
  {
345
- className: p(
346
- w.notification,
347
- w[e],
348
- r && w.unread
352
+ className: v(
353
+ W.notification,
354
+ W[n],
355
+ i && W.unread
349
356
  ),
350
357
  children: [
351
- /* @__PURE__ */ n(Y, { ...i, unread: r, variant: e }),
352
- 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 })
353
360
  ]
354
361
  }
355
- ), ae = "_notificationList_1rkvu_1", le = {
356
- notificationList: ae
357
- }, qe = ({
358
- children: e
359
- }) => /* @__PURE__ */ o("div", { className: le.notificationList, children: [
360
- e,
361
- /* @__PURE__ */ n("div", {})
362
- ] }), ce = "_clickable_1ijxc_1", se = "_nonClickable_1ijxc_27", R = {
363
- clickable: ce,
364
- nonClickable: se
365
- }, Oe = ({
366
- 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,
367
374
  onClickAriaLabel: t,
368
- children: r,
369
- width: i = 264,
370
- maxWidth: a,
371
- ...l
372
- }) => /* @__PURE__ */ o(
375
+ children: i,
376
+ width: o = 264,
377
+ maxWidth: l,
378
+ ...a
379
+ }) => /* @__PURE__ */ r(
373
380
  d,
374
381
  {
375
382
  borderRadius: 8,
376
- background: b("--lhds-color-ui-50"),
383
+ background: m("--lhds-color-ui-50"),
377
384
  shadow: "popover",
378
- width: i,
379
- maxWidth: a,
385
+ width: o,
386
+ maxWidth: l,
380
387
  role: "alert",
381
388
  position: "relative",
382
389
  children: [
383
- /* @__PURE__ */ n(d, { className: p({ [R.nonClickable]: e }), children: /* @__PURE__ */ n(Y, { ...l }) }),
384
- r && /* @__PURE__ */ o(d, { indent: 3, className: p({ [R.nonClickable]: e }), children: [
385
- r,
386
- /* @__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 })
387
394
  ] }),
388
- e && /* @__PURE__ */ n(
395
+ n && /* @__PURE__ */ e(
389
396
  "button",
390
397
  {
391
- onClick: e,
392
- className: R.clickable,
398
+ onClick: n,
399
+ className: V.clickable,
393
400
  "aria-label": t
394
401
  }
395
402
  )
396
403
  ]
397
404
  }
398
- ), de = A(
399
- ({ contentLeft: e, contentRight: t, collapsed: r = !1, ...i }, a) => /* @__PURE__ */ n(
400
- L,
405
+ ), Pn = ee(
406
+ ({ contentLeft: n, contentRight: t, collapsed: i = !1, ...o }, l) => /* @__PURE__ */ e(
407
+ T,
401
408
  {
402
- ref: a,
409
+ ref: l,
403
410
  expandable: !0,
404
- expanded: !r,
405
- selected: !r,
406
- left: e,
411
+ expanded: !i,
412
+ selected: !i,
413
+ left: n,
407
414
  right: t,
408
- ...i
415
+ ...o
409
416
  }
410
417
  )
411
- ), Xe = ({
412
- children: e
413
- }) => /* @__PURE__ */ n(h, { gap: 1, children: e }), Je = ({
414
- value: e,
418
+ ), Rt = ({
419
+ children: n
420
+ }) => /* @__PURE__ */ e(p, { gap: 1, children: n }), zt = ({
421
+ value: n,
415
422
  onValueChange: t,
416
- onChange: r,
417
- indeterminate: i,
418
- checkboxDisabled: a,
419
- ...l
420
- }) => /* @__PURE__ */ n(
421
- de,
423
+ onChange: i,
424
+ indeterminate: o,
425
+ checkboxDisabled: l,
426
+ ...a
427
+ }) => /* @__PURE__ */ e(
428
+ Pn,
422
429
  {
423
- contentLeft: /* @__PURE__ */ n(
424
- V,
430
+ contentLeft: /* @__PURE__ */ e(
431
+ ye,
425
432
  {
426
- value: e,
427
- indeterminate: i,
433
+ value: n,
434
+ indeterminate: o,
428
435
  onValueChange: t,
429
- onChange: r,
430
- disabled: a,
436
+ onChange: i,
437
+ disabled: l,
431
438
  onClick: (s) => s.stopPropagation()
432
439
  }
433
440
  ),
434
- ...l
441
+ ...a
435
442
  }
436
- ), ue = "_sidebarMenuCollapsibleGroupBox_ikek9_1", he = {
437
- sidebarMenuCollapsibleGroupBox: ue
438
- }, pe = ({ children: e }) => /* @__PURE__ */ n("div", { className: he.sidebarMenuCollapsibleGroupBox, children: e }), Ke = ({ children: e }) => /* @__PURE__ */ n(d, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(f, { variant: "overline", size: "smaller", children: e }) }), Qe = ({ text: e = "No content" }) => /* @__PURE__ */ o(h, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
439
- /* @__PURE__ */ n(mn, { icon: fn, color: b("--lhds-color-ui-500") }),
440
- /* @__PURE__ */ n(m, {}),
441
- /* @__PURE__ */ n(f, { size: "small", color: b("--lhds-color-ui-500"), children: e })
442
- ] }), ge = ({
443
- 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,
444
451
  heading: t,
445
- children: r,
446
- buttons: i,
447
- icon: a = Bn,
448
- headingLevel: l = "h3",
452
+ children: i,
453
+ buttons: o,
454
+ icon: l = Pe,
455
+ headingLevel: a = "h3",
449
456
  ...s
450
457
  }) => {
451
- const u = !e && !t ? "Something unexpected happened." : e;
452
- return /* @__PURE__ */ n(bn, { ...s, children: /* @__PURE__ */ n(_n, { children: /* @__PURE__ */ o(h, { spacing: 1, gap: 3, alignItems: "center", children: [
453
- /* @__PURE__ */ o(h, { alignItems: "center", children: [
454
- /* @__PURE__ */ n(m, { num: 1 }),
455
- /* @__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" })
456
463
  ] }),
457
- t && /* @__PURE__ */ n(M, { as: l, children: t }),
458
- u && /* @__PURE__ */ n(f, { children: u }),
459
- r,
460
- i && /* @__PURE__ */ o(d, { children: [
461
- /* @__PURE__ */ n(m, { num: 2 }),
462
- 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
463
470
  ] })
464
471
  ] }) }) });
465
- }, Ve = (e) => /* @__PURE__ */ n(
472
+ }, Pt = (n) => /* @__PURE__ */ e(
466
473
  d,
467
474
  {
468
475
  width: "100%",
469
476
  height: "100%",
470
477
  justifyContent: "center",
471
478
  alignItems: "center",
472
- children: /* @__PURE__ */ n(ge, { ...e })
479
+ children: /* @__PURE__ */ e(Dn, { ...n })
473
480
  }
474
- ), me = ({
475
- text: e = "Loading..."
476
- }) => /* @__PURE__ */ o(d, { alignItems: "center", children: [
477
- /* @__PURE__ */ n(vn, { size: "small" }),
478
- /* @__PURE__ */ n(m, { num: 4 }),
479
- /* @__PURE__ */ n(M, { variant: "h4", children: e })
480
- ] }), Ye = (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(
481
488
  d,
482
489
  {
483
490
  width: "100%",
484
491
  height: "100%",
485
492
  justifyContent: "center",
486
493
  alignItems: "center",
487
- children: /* @__PURE__ */ n(me, { ...e })
494
+ children: /* @__PURE__ */ e(Wn, { ...n })
488
495
  }
489
- ), Ze = ({
490
- renderBreadCrumbs: e,
496
+ ), $t = ({
497
+ renderBreadCrumbs: n,
491
498
  renderPageHeading: t,
492
- renderTabs: r,
493
- children: i
494
- }) => /* @__PURE__ */ o(d, { shadow: "bottom", background: b("--lhds-color-ui-50"), gap: 2, children: [
495
- /* @__PURE__ */ o(d, { indent: 3, children: [
496
- e && /* @__PURE__ */ o(c, { spacing: 1, alignItems: "center", children: [
497
- /* @__PURE__ */ n(c, { width: "64px", height: "16px" }),
498
- 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()
499
506
  ] }),
500
507
  t == null ? void 0 : t(),
501
- r && /* @__PURE__ */ n(m, {}),
502
- r == null ? void 0 : r()
508
+ i && /* @__PURE__ */ e(x, {}),
509
+ i == null ? void 0 : i()
503
510
  ] }),
504
- i
505
- ] }), nt = (e) => /* @__PURE__ */ n(c, { indent: 3, spacing: !0, ...e }), et = ({
506
- icon: e,
511
+ o
512
+ ] }), Lt = (n) => /* @__PURE__ */ e(c, { indent: 3, spacing: !0, ...n }), Dt = ({
513
+ icon: n,
507
514
  heading: t,
508
- headingLevel: r = "h2",
509
- contentLeft: i,
510
- contentRight: a
511
- }) => /* @__PURE__ */ o(c, { alignItems: "center", gap: 2, height: "64px", children: [
512
- /* @__PURE__ */ o(c, { alignItems: "center", children: [
513
- /* @__PURE__ */ n(c, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(j, { icon: e }) }),
514
- /* @__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 })
515
522
  ] }),
516
- /* @__PURE__ */ n(c, { alignItems: "center", children: i }),
517
- /* @__PURE__ */ n(c, { style: { marginLeft: "auto" }, alignItems: "center", children: a })
518
- ] }), fe = "_sidebarMenu_1bx5w_1", be = "_sidebarItems_1bx5w_38", _e = "_scrollContainer_1bx5w_48", F = {
519
- sidebarMenu: fe,
520
- sidebarItems: be,
521
- scrollContainer: _e
522
- }, Be = "_stenaFlag_108h7_1", ve = {
523
- stenaFlag: Be
524
- }, Ce = ({ onClick: e }) => /* @__PURE__ */ o(h, { background: b("--lhds-color-ui-50"), children: [
525
- /* @__PURE__ */ n(m, {}),
526
- /* @__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(
527
534
  c,
528
535
  {
529
536
  justifyContent: "space-between",
@@ -532,61 +539,61 @@ const $ = ({
532
539
  indent: 1,
533
540
  minHeight: "48px",
534
541
  children: [
535
- /* @__PURE__ */ n(q, { onClick: e }),
536
- /* @__PURE__ */ n(Cn, { className: ve.stenaFlag })
542
+ /* @__PURE__ */ e(ge, { onClick: n }),
543
+ /* @__PURE__ */ e(Ae, { className: Gn.stenaFlag })
537
544
  ]
538
545
  }
539
546
  )
540
- ] }), xe = ({
541
- isPinned: e,
547
+ ] }), Vn = ({
548
+ isPinned: n,
542
549
  onClick: t,
543
- label: r
544
- }) => /* @__PURE__ */ n(L, { onClick: t, label: r ?? (e ? "Unpin menu" : "Pin menu"), leftIcon: e ? O : xn }), tt = ({
545
- 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,
546
553
  children: t,
547
- onCloseClick: r,
548
- pinButtonVisible: i,
549
- onClickPinButton: a,
550
- bottomItems: l,
554
+ onCloseClick: i,
555
+ pinButtonVisible: o,
556
+ onClickPinButton: l,
557
+ bottomItems: a,
551
558
  isPinned: s,
552
559
  ...u
553
- }) => /* @__PURE__ */ o(d, { ...u, className: p(F.sidebarMenu, e), children: [
554
- /* @__PURE__ */ n(Ce, { onClick: r }),
555
- /* @__PURE__ */ n(d, { className: F.scrollContainer, children: /* @__PURE__ */ o(
556
- 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,
557
564
  {
558
- className: F.sidebarItems,
565
+ className: K.sidebarItems,
559
566
  justifyContent: "space-between",
560
567
  flex: 1,
561
568
  gap: 1,
562
569
  indent: 1,
563
570
  children: [
564
- /* @__PURE__ */ n(h, { gap: 1, children: t }),
565
- (l || i) && /* @__PURE__ */ o(h, { gap: 1, children: [
566
- l,
567
- i && /* @__PURE__ */ n(
568
- xe,
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,
569
576
  {
570
577
  isPinned: s,
571
- onClick: a
578
+ onClick: l
572
579
  }
573
580
  ),
574
- /* @__PURE__ */ n(m, {})
581
+ /* @__PURE__ */ e(x, {})
575
582
  ] })
576
583
  ]
577
584
  }
578
585
  ) })
579
- ] }), N = Mn(!1), z = () => Sn(N), ye = ({
580
- label: e,
586
+ ] }), q = Ge(!1), ie = () => Oe(q), Kn = ({
587
+ label: n,
581
588
  ...t
582
- }) => /* @__PURE__ */ n(Q, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n(P, { ...t }) }), rt = ({
583
- closeButtonVisible: e,
589
+ }) => /* @__PURE__ */ e(_e, { label: n, placement: "right", appendTo: document.body, children: /* @__PURE__ */ e(Y, { ...t }) }), Ht = ({
590
+ closeButtonVisible: n,
584
591
  onClickCloseButton: t,
585
- onClickMenuButton: r,
586
- children: i,
587
- bottomItems: a,
588
- closeButtonTitle: l = "Unpin menu"
589
- }) => /* @__PURE__ */ o(
592
+ onClickMenuButton: i,
593
+ children: o,
594
+ bottomItems: l,
595
+ closeButtonTitle: a = "Unpin menu"
596
+ }) => /* @__PURE__ */ r(
590
597
  d,
591
598
  {
592
599
  position: "fixed",
@@ -597,18 +604,18 @@ const $ = ({
597
604
  spacing: 1,
598
605
  gap: 1,
599
606
  shadow: "popover",
600
- background: b("--lhds-color-ui-50"),
607
+ background: m("--lhds-color-ui-50"),
601
608
  children: [
602
- /* @__PURE__ */ n(P, { onClick: r, icon: E }),
603
- /* @__PURE__ */ o(h, { justifyContent: "space-between", flex: 1, gap: 1, children: [
604
- /* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(N.Provider, { value: !0, children: i }) }),
605
- /* @__PURE__ */ n(h, { gap: 1, children: (a || e) && /* @__PURE__ */ o(N.Provider, { value: !0, children: [
606
- a,
607
- e && /* @__PURE__ */ n(
608
- ye,
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,
609
616
  {
610
- icon: O,
611
- label: l,
617
+ icon: be,
618
+ label: a,
612
619
  onClick: t
613
620
  }
614
621
  )
@@ -616,70 +623,70 @@ const $ = ({
616
623
  ] })
617
624
  ]
618
625
  }
619
- ), Ie = ({
620
- label: e
621
- }) => z() ? null : /* @__PURE__ */ o(d, { height: "32px", justifyContent: "center", indent: 1, children: [
622
- /* @__PURE__ */ n(m, {}),
623
- /* @__PURE__ */ n(f, { variant: "overline", size: "smaller", children: e })
624
- ] }), we = ({
625
- 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,
626
633
  leftIcon: t,
627
- ...r
628
- }) => t == null ? null : /* @__PURE__ */ n(Q, { label: e, placement: "right", children: /* @__PURE__ */ n(yn, { icon: t, ...r }) }), it = (e) => z() ? /* @__PURE__ */ n(we, { ...e }) : /* @__PURE__ */ n(In, { ...e }), Ne = ({
629
- 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,
630
637
  label: t,
631
- icon: r,
632
- popupMinWidth: i = "200px"
633
- }) => /* @__PURE__ */ n(
634
- K,
638
+ icon: i,
639
+ popupMinWidth: o = "200px"
640
+ }) => /* @__PURE__ */ e(
641
+ Ce,
635
642
  {
636
- renderTrigger: (a) => /* @__PURE__ */ n(P, { icon: r, ...a }),
643
+ renderTrigger: (l) => /* @__PURE__ */ e(Y, { icon: i, ...l }),
637
644
  placement: "right-start",
638
645
  trigger: ["hover", "focus"],
639
646
  disablePadding: !0,
640
- children: /* @__PURE__ */ n(
647
+ children: /* @__PURE__ */ e(
641
648
  d,
642
649
  {
643
- minWidth: i,
650
+ minWidth: o,
644
651
  shadow: "popover",
645
652
  spacing: 1,
646
653
  indent: 1,
647
654
  gap: 2,
648
- children: /* @__PURE__ */ o(N.Provider, { value: !1, children: [
649
- /* @__PURE__ */ n(Ie, { label: t }),
650
- e
655
+ children: /* @__PURE__ */ r(q.Provider, { value: !1, children: [
656
+ /* @__PURE__ */ e(Zn, { label: t }),
657
+ n
651
658
  ] })
652
659
  }
653
660
  )
654
661
  }
655
- ), ot = ({
656
- children: e,
662
+ ), qt = ({
663
+ children: n,
657
664
  label: t,
658
- leftIcon: r,
659
- className: i,
660
- initialExpand: a = !1
665
+ leftIcon: i,
666
+ className: o,
667
+ initialExpand: l = !1
661
668
  }) => {
662
- const [l, s] = Rn(a);
663
- return z() ? r == null ? null : /* @__PURE__ */ n(Ne, { label: t, icon: r, children: e }) : /* @__PURE__ */ n(
664
- 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,
665
672
  {
666
673
  label: t,
667
- onClick: () => s(!l),
668
- leftIcon: r,
669
- className: i,
674
+ onClick: () => s(!a),
675
+ leftIcon: i,
676
+ className: o,
670
677
  expandable: !0,
671
- expanded: l,
672
- selected: l,
673
- children: /* @__PURE__ */ n(pe, { children: e })
678
+ expanded: a,
679
+ selected: a,
680
+ children: /* @__PURE__ */ e(Ln, { children: n })
674
681
  }
675
682
  );
676
- }, at = (e) => /* @__PURE__ */ n(
677
- Fn,
683
+ }, Et = (n) => /* @__PURE__ */ e(
684
+ Ve,
678
685
  {
679
- color: b("--lhds-color-ui-400"),
680
- ...e
686
+ color: m("--lhds-color-ui-400"),
687
+ ...n
681
688
  }
682
- ), lt = ({ numItemsSelected: e, label: t, afterLabelContent: r, rightContent: i }) => /* @__PURE__ */ o(
689
+ ), Gt = ({ numItemsSelected: n, label: t, afterLabelContent: i, rightContent: o }) => /* @__PURE__ */ r(
683
690
  c,
684
691
  {
685
692
  indent: 3,
@@ -688,64 +695,531 @@ const $ = ({
688
695
  minHeight: "56px",
689
696
  justifyContent: "space-between",
690
697
  alignItems: "center",
691
- background: b("--silver-lighter"),
698
+ background: m("--silver-lighter"),
692
699
  flex: 1,
693
700
  borderRadius: "var(--swui-border-radius)",
694
701
  children: [
695
- /* @__PURE__ */ o(c, { alignItems: "center", gap: 2, children: [
696
- e != null || t != null ? /* @__PURE__ */ n(c, { alignItems: "center", children: e != null ? /* @__PURE__ */ o(B, { children: [
697
- /* @__PURE__ */ n(f, { children: e }),
698
- /* @__PURE__ */ n(m, {}),
699
- /* @__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: [
700
707
  "item",
701
- e === 1 ? "" : "s",
708
+ n === 1 ? "" : "s",
702
709
  " selected"
703
710
  ] })
704
- ] }) : t != null ? /* @__PURE__ */ n(B, { children: typeof t == "string" ? /* @__PURE__ */ n(f, { children: t }) : t }) : null }) : null,
705
- 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 })
706
713
  ] }),
707
- /* @__PURE__ */ n(c, { gap: 2, children: i })
714
+ /* @__PURE__ */ e(c, { gap: 2, children: o })
708
715
  ]
709
716
  }
710
- ), ct = ({ 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
+ });
711
1175
  export {
712
- Ln as ActionMenuFlatButton,
713
- Ae as ActionMenuPrimaryButton,
714
- $e as ActionMenuSecondaryButton,
715
- ze as CheckboxMenu,
716
- de as Collapsible,
717
- Qe as CollapsibleEmptyContent,
718
- Ke as CollapsibleGroupHeading,
719
- Xe as CollapsibleList,
720
- Je as CollapsibleWithCheckbox,
721
- ge as ErrorPanel,
722
- Ve as ErrorScreen,
723
- me as LoadingPanel,
724
- Ye as LoadingScreen,
725
- He as NavBar,
726
- Tn as NavBarButton,
727
- Ue as NavBarHeading,
728
- De as NavBarNotificationButton,
729
- Te as NavBarPopoverButton,
730
- Ge as NavBarSearchField,
731
- We as NavBarUserButton,
732
- Ee as Notification,
733
- Y as NotificationHeader,
734
- qe as NotificationList,
735
- Ze as PageHeader,
736
- nt as PageHeaderRow,
737
- et as PageHeading,
738
- ct as SelectedItemsActionsPadding,
739
- lt as SelectedItemsActionsPanel,
740
- tt as SidebarMenu,
741
- ot as SidebarMenuCollapsible,
742
- pe as SidebarMenuCollapsibleGroupBox,
743
- Ie as SidebarMenuHeading,
744
- it as SidebarMenuLink,
745
- at as SidebarMenuSeparator,
746
- rt as SidebarRailMenu,
747
- Oe as Toast,
748
- Zn as UnreadDot,
749
- ne 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
750
1224
  };
751
1225
  //# sourceMappingURL=index.es.js.map