@stenajs-webui/panels 22.3.0 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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: B = !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, w, _, j] = fe(!1), F = Q(null), P = g ?? F, O = U(() => ({ open: w, close: _ }), [w, _]), 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: !B,
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 }), wt = ({
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
+ }, Bt = 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
+ }, wn = ({ children: n }) => /* @__PURE__ */ r("div", { className: se.unreadDot, children: [
283
+ n,
284
+ /* @__PURE__ */ e("div", { className: se.dot })
285
+ ] }), we = ({
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 || Bn(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(wn, { 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
+ }, Bn = (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(we, { ...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(we, { ...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,529 @@ 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
+ shadow: l,
725
+ ...a
726
+ }) => /* @__PURE__ */ r(
727
+ p,
728
+ {
729
+ "data-comp": "ProductCard",
730
+ className: Jn.productCard,
731
+ shadow: l ? "box" : void 0,
732
+ background: m("--moln"),
733
+ borderRadius: "24px",
734
+ overflow: "hidden",
735
+ position: o ? "relative" : void 0,
736
+ ...ne(a),
737
+ children: [
738
+ n == null ? void 0 : n(),
739
+ /* @__PURE__ */ e(p, { gap: 2, children: i }),
740
+ t && /* @__PURE__ */ r(p, { children: [
741
+ /* @__PURE__ */ e(c, { indent: 2, justifyContent: "flex-end", children: t() }),
742
+ /* @__PURE__ */ e(Ke, {})
743
+ ] }),
744
+ o && /* @__PURE__ */ e(
745
+ d,
746
+ {
747
+ top: 0,
748
+ bottom: 0,
749
+ left: 0,
750
+ right: 0,
751
+ position: "absolute",
752
+ justifyContent: "center",
753
+ alignItems: "center",
754
+ background: "rgba(255, 255, 255, 0.7)",
755
+ children: /* @__PURE__ */ e(J, {})
756
+ }
757
+ )
758
+ ]
759
+ }
760
+ ), Yn = ({ children: n }) => /* @__PURE__ */ e(f, { variant: "bold", style: { fontSize: "2.0rem" }, children: n }), Kt = ({
761
+ description: n,
762
+ subDescription: t,
763
+ descriptionTags: i,
764
+ capacityTag: o,
765
+ offerCodeTag: l,
766
+ priceText: a,
767
+ title: s,
768
+ subTitle: u,
769
+ renderImage: g,
770
+ children: b,
771
+ headingLevel: C
772
+ }) => {
773
+ const B = i == null ? !1 : Array.isArray(i) ? i.length > 0 : !Ze(i);
774
+ return /* @__PURE__ */ r(p, { children: [
775
+ g == null ? void 0 : g(),
776
+ /* @__PURE__ */ r(d, { gap: 2, spacing: 4, indent: 4, background: m("--moln"), children: [
777
+ /* @__PURE__ */ r(d, { gap: 0.5, children: [
778
+ /* @__PURE__ */ r(
779
+ c,
780
+ {
781
+ justifyContent: "space-between",
782
+ alignItems: "flex-start",
783
+ gap: 2,
784
+ children: [
785
+ /* @__PURE__ */ e(z, { variant: "h3", as: C, children: s }),
786
+ /* @__PURE__ */ r(c, { gap: 2, children: [
787
+ l && /* @__PURE__ */ e(p, { justifyContent: "center", children: l }),
788
+ /* @__PURE__ */ e(Yn, { children: a })
789
+ ] })
790
+ ]
791
+ }
792
+ ),
793
+ u && /* @__PURE__ */ e(f, { variant: "bold", color: m("--silver-dark"), children: u })
794
+ ] }),
795
+ (B || o) && /* @__PURE__ */ r(p, { children: [
796
+ /* @__PURE__ */ r(c, { gap: 1, flexWrap: "wrap", children: [
797
+ i,
798
+ o && /* @__PURE__ */ e(We, { label: o, variant: "passive" })
799
+ ] }),
800
+ /* @__PURE__ */ e(x, {})
801
+ ] }),
802
+ n && /* @__PURE__ */ r(p, { children: [
803
+ /* @__PURE__ */ e(f, { children: n }),
804
+ /* @__PURE__ */ e(x, {})
805
+ ] }),
806
+ t && /* @__PURE__ */ r(p, { children: [
807
+ /* @__PURE__ */ e(f, { children: t }),
808
+ /* @__PURE__ */ e(x, {})
809
+ ] }),
810
+ b
811
+ ] })
812
+ ] });
813
+ }, Zt = ({ renderImage: n }) => /* @__PURE__ */ r(p, { children: [
814
+ n == null ? void 0 : n(),
815
+ /* @__PURE__ */ r(d, { gap: 3, spacing: 4, indent: 4, background: m("--moln"), children: [
816
+ /* @__PURE__ */ e(d, { gap: 0.5, children: /* @__PURE__ */ e(
817
+ c,
818
+ {
819
+ justifyContent: "space-between",
820
+ alignItems: "flex-start",
821
+ gap: 2,
822
+ children: /* @__PURE__ */ e(
823
+ R,
824
+ {
825
+ width: "50px",
826
+ height: "2.8rem",
827
+ borderRadius: "8px"
828
+ }
829
+ )
830
+ }
831
+ ) }),
832
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(R, { width: "180px", height: "2.0rem", borderRadius: "8px" }) }),
833
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(R, { width: "150px", height: "1.4rem", borderRadius: "8px" }) }),
834
+ /* @__PURE__ */ e(x, {})
835
+ ] })
836
+ ] }), Qt = ({
837
+ label: n,
838
+ children: t
839
+ }) => /* @__PURE__ */ r(d, { background: m("--mussla"), indent: 2, spacing: 2, gap: 2, children: [
840
+ /* @__PURE__ */ e(z, { variant: "h3", as: "h2", color: "white", children: n }),
841
+ t
842
+ ] }), Tt = ({
843
+ title: n,
844
+ variant: t = "normal",
845
+ loading: i,
846
+ iconLeft: o,
847
+ compactIconLeft: l,
848
+ renderButton: a,
849
+ renderOfferCodeTag: s,
850
+ renderMandatoryTag: u,
851
+ renderContentLeftOfButton: g,
852
+ children: b,
853
+ ...C
854
+ }) => {
855
+ const { fontSizeRatio: B } = Qe(), k = N({
856
+ query: "(max-width: 460px)"
857
+ }), w = N({
858
+ query: "(max-width: 360px)"
859
+ }) || k && B > 1.2, _ = i ? "normal" : t, j = nt(_), F = m("--moln"), P = et(_);
860
+ return /* @__PURE__ */ r(
861
+ d,
862
+ {
863
+ "data-comp": "ProductSummaryCard",
864
+ borderRadius: "16px",
865
+ shadow: "box",
866
+ overflow: "hidden",
867
+ position: i ? "relative" : void 0,
868
+ ...ne(C),
869
+ children: [
870
+ /* @__PURE__ */ r(c, { flex: 1, children: [
871
+ !w && /* @__PURE__ */ e(d, { flex: 2, justifyContent: "center", background: j, children: o && /* @__PURE__ */ e(X, { color: P, icon: o, size: 73 }) }),
872
+ /* @__PURE__ */ e(d, { flex: 4, indent: 2, spacing: 2, background: F, children: /* @__PURE__ */ r(p, { gap: 2, children: [
873
+ n && /* @__PURE__ */ r(c, { justifyContent: "space-between", children: [
874
+ /* @__PURE__ */ r(c, { gap: 2, alignItems: "center", children: [
875
+ w && l && /* @__PURE__ */ e(G, { icon: l, size: "medium" }),
876
+ /* @__PURE__ */ e(f, { variant: "bold", size: "large", children: n })
877
+ ] }),
878
+ _ == "normal" && (s == null ? void 0 : s())
879
+ ] }),
880
+ /* @__PURE__ */ e(p, { style: { opacity: i ? 0 : void 0 }, children: b }),
881
+ u && /* @__PURE__ */ e(c, { style: { opacity: i ? 0 : void 0 }, children: u() }),
882
+ /* @__PURE__ */ e("div", {}),
883
+ /* @__PURE__ */ r(
884
+ c,
885
+ {
886
+ justifyContent: "space-between",
887
+ alignItems: "center",
888
+ gap: 2,
889
+ flexWrap: "wrap",
890
+ children: [
891
+ (g == null ? void 0 : g()) ?? /* @__PURE__ */ e("div", {}),
892
+ a == null ? void 0 : a()
893
+ ]
894
+ }
895
+ )
896
+ ] }) })
897
+ ] }),
898
+ i && /* @__PURE__ */ e(
899
+ d,
900
+ {
901
+ top: 0,
902
+ bottom: 0,
903
+ left: 0,
904
+ right: 0,
905
+ position: "absolute",
906
+ justifyContent: "center",
907
+ alignItems: "center",
908
+ background: "rgba(255, 255, 255, 0.7)",
909
+ children: /* @__PURE__ */ e(J, {})
910
+ }
911
+ )
912
+ ]
913
+ }
914
+ );
915
+ }, et = (n) => {
916
+ switch (n) {
917
+ case "edit":
918
+ return m("--moln");
919
+ case "upgrade":
920
+ return m("--moln");
921
+ case "normal":
922
+ return m("--mussla");
923
+ default:
924
+ xe(n);
925
+ }
926
+ }, nt = (n) => {
927
+ switch (n) {
928
+ case "edit":
929
+ return m("--mussla");
930
+ case "upgrade":
931
+ return m("--mussla");
932
+ case "normal":
933
+ return m("--silver-lighter");
934
+ default:
935
+ xe(n);
936
+ }
937
+ }, Xt = ({ iconLeft: n, ...t }) => /* @__PURE__ */ e(
938
+ d,
939
+ {
940
+ borderRadius: "16px",
941
+ shadow: "box",
942
+ overflow: "hidden",
943
+ ...ne(t),
944
+ children: /* @__PURE__ */ r(c, { flex: 1, children: [
945
+ /* @__PURE__ */ e(
946
+ d,
947
+ {
948
+ flex: 2,
949
+ justifyContent: "center",
950
+ background: m("--silver-lighter"),
951
+ children: n && /* @__PURE__ */ e(X, { color: m("--mussla"), icon: n, size: 73 })
952
+ }
953
+ ),
954
+ /* @__PURE__ */ e(d, { flex: 4, indent: 2, spacing: 2, background: m("--moln"), children: /* @__PURE__ */ r(p, { gap: 2, children: [
955
+ /* @__PURE__ */ e(
956
+ R,
957
+ {
958
+ width: "180px",
959
+ height: "2.8rem",
960
+ borderRadius: "8px"
961
+ }
962
+ ),
963
+ /* @__PURE__ */ e(R, { width: "50px", height: "2.0rem", borderRadius: "8px" }),
964
+ /* @__PURE__ */ e(
965
+ R,
966
+ {
967
+ width: "150px",
968
+ height: "1.4rem",
969
+ borderRadius: "8px"
970
+ }
971
+ )
972
+ ] }) })
973
+ ] })
974
+ }
975
+ ), de = [
976
+ "small-mobile",
977
+ "mobile",
978
+ "tablet",
979
+ "tablet-wide",
980
+ "desktop"
981
+ ], Be = () => {
982
+ const n = N({
983
+ query: "(max-width: 768px)"
984
+ }), t = N({
985
+ query: "(max-width: 395px)"
986
+ }), i = N({
987
+ query: "(max-width: 1024px)"
988
+ }), o = N({
989
+ query: "(max-width: 1160px)"
990
+ });
991
+ return { deviceSize: t ? "small-mobile" : n ? "mobile" : i ? "tablet" : o ? "tablet-wide" : "desktop" };
992
+ }, tt = (n, t) => n === t || de.indexOf(n) > de.indexOf(t), Jt = (n) => {
993
+ const { deviceSize: t } = Be();
994
+ return {
995
+ visible: U(
996
+ () => tt(t, n),
997
+ [t, n]
998
+ )
999
+ };
1000
+ }, Yt = ({
1001
+ images: n,
1002
+ altLabelPrevious: t,
1003
+ altLabelZoomIn: i,
1004
+ altLabelZoomOut: o,
1005
+ altLabelNext: l,
1006
+ altLabelClose: a
1007
+ }) => {
1008
+ const s = Q(null), u = Q(null), { deviceSize: g } = Be(), b = g !== "mobile", [C, B] = H(!1), [k, S] = H(0), [w, _] = H(0), j = le(() => {
1009
+ _(k), B(!0);
1010
+ }, [k]), F = le(() => {
1011
+ S(w), B(!1);
1012
+ }, [w]), P = ({ index: h }) => S(h), O = ({ index: h }) => _(h), L = U(() => n.map(Z), [n]), A = U(
1013
+ () => n.map(
1014
+ (h) => h.fullscreenImage ? Z({
1015
+ ...h.fullscreenImage,
1016
+ description: h.description,
1017
+ title: h.title
1018
+ }) : Z(h)
1019
+ ),
1020
+ [n]
1021
+ );
1022
+ return /* @__PURE__ */ r(Te, { blockedKeys: "Escape", children: [
1023
+ /* @__PURE__ */ e(
1024
+ ae,
1025
+ {
1026
+ controller: { ref: s },
1027
+ index: k,
1028
+ slides: L,
1029
+ plugins: [Je],
1030
+ on: {
1031
+ view: P,
1032
+ click: j
1033
+ },
1034
+ carousel: {
1035
+ padding: 0,
1036
+ spacing: 0,
1037
+ imageFit: "cover"
1038
+ },
1039
+ render: {
1040
+ buttonPrev: () => n.length > 1 && /* @__PURE__ */ e(y, { className: "yarl__navigation_prev", children: /* @__PURE__ */ e(
1041
+ I,
1042
+ {
1043
+ "aria-label": t,
1044
+ leftIcon: re,
1045
+ onClick: () => {
1046
+ var h;
1047
+ return (h = s.current) == null ? void 0 : h.prev();
1048
+ }
1049
+ }
1050
+ ) }),
1051
+ buttonNext: () => n.length > 1 && /* @__PURE__ */ e(y, { className: "yarl__navigation_next", children: /* @__PURE__ */ e(
1052
+ I,
1053
+ {
1054
+ "aria-label": l,
1055
+ leftIcon: oe,
1056
+ onClick: () => {
1057
+ var h;
1058
+ return (h = s.current) == null ? void 0 : h.next();
1059
+ }
1060
+ }
1061
+ ) })
1062
+ },
1063
+ styles: {
1064
+ button: {
1065
+ filter: "none"
1066
+ }
1067
+ },
1068
+ inline: {
1069
+ style: {
1070
+ width: "100%",
1071
+ maxWidth: "900px",
1072
+ aspectRatio: "3 / 2",
1073
+ margin: "0 auto"
1074
+ }
1075
+ }
1076
+ }
1077
+ ),
1078
+ /* @__PURE__ */ e(
1079
+ ae,
1080
+ {
1081
+ open: C,
1082
+ close: F,
1083
+ index: w,
1084
+ plugins: [nn, en, Ye],
1085
+ slides: A ?? L,
1086
+ on: { view: O },
1087
+ animation: { fade: 0 },
1088
+ controller: {
1089
+ closeOnPullDown: !0,
1090
+ closeOnBackdropClick: !0,
1091
+ ref: u
1092
+ },
1093
+ counter: {
1094
+ container: {
1095
+ style: {
1096
+ filter: "none",
1097
+ color: "white",
1098
+ fontSize: "2.0rem",
1099
+ fontFamily: "Stena Sans"
1100
+ }
1101
+ }
1102
+ },
1103
+ render: {
1104
+ buttonZoom: (h) => b && /* @__PURE__ */ r(c, { gap: 1, indent: 2, children: [
1105
+ /* @__PURE__ */ e(
1106
+ I,
1107
+ {
1108
+ "aria-label": i,
1109
+ leftIcon: He,
1110
+ size: "large",
1111
+ onClick: () => h.zoomIn()
1112
+ }
1113
+ ),
1114
+ /* @__PURE__ */ e(
1115
+ I,
1116
+ {
1117
+ "aria-label": o,
1118
+ leftIcon: Ue,
1119
+ size: "large",
1120
+ onClick: () => h.zoomOut()
1121
+ }
1122
+ )
1123
+ ] }),
1124
+ buttonPrev: () => n.length > 1 && b && /* @__PURE__ */ e(y, { num: 4, className: "yarl__navigation_prev", children: /* @__PURE__ */ e(
1125
+ I,
1126
+ {
1127
+ "aria-label": t,
1128
+ leftIcon: re,
1129
+ size: "large",
1130
+ onClick: () => {
1131
+ var h;
1132
+ return (h = u.current) == null ? void 0 : h.prev();
1133
+ }
1134
+ }
1135
+ ) }),
1136
+ buttonNext: () => n.length > 1 && b && /* @__PURE__ */ e(y, { num: 4, className: "yarl__navigation_next", children: /* @__PURE__ */ e(
1137
+ I,
1138
+ {
1139
+ "aria-label": l,
1140
+ leftIcon: oe,
1141
+ size: "large",
1142
+ onClick: () => {
1143
+ var h;
1144
+ return (h = u.current) == null ? void 0 : h.next();
1145
+ }
1146
+ }
1147
+ ) }),
1148
+ buttonClose: () => /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
1149
+ pe,
1150
+ {
1151
+ variant: "danger",
1152
+ "aria-label": a,
1153
+ leftIcon: qe,
1154
+ size: "large",
1155
+ onClick: () => {
1156
+ var h;
1157
+ return (h = u.current) == null ? void 0 : h.close();
1158
+ }
1159
+ }
1160
+ ) })
1161
+ }
1162
+ }
1163
+ )
1164
+ ] });
1165
+ }, Z = (n) => ({
1166
+ src: n.url,
1167
+ width: n.width,
1168
+ height: n.height,
1169
+ alt: n.description,
1170
+ title: n.title,
1171
+ description: n.description
1172
+ });
711
1173
  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
1174
+ tn as ActionMenuFlatButton,
1175
+ xt as ActionMenuPrimaryButton,
1176
+ vt as ActionMenuSecondaryButton,
1177
+ Ct as CheckboxMenu,
1178
+ Pn as Collapsible,
1179
+ Ft as CollapsibleEmptyContent,
1180
+ jt as CollapsibleGroupHeading,
1181
+ Rt as CollapsibleList,
1182
+ zt as CollapsibleWithCheckbox,
1183
+ Dn as ErrorPanel,
1184
+ Pt as ErrorScreen,
1185
+ Yt as ImageCarousel,
1186
+ Wn as LoadingPanel,
1187
+ At as LoadingScreen,
1188
+ _t as NavBar,
1189
+ dn as NavBarButton,
1190
+ yt as NavBarHeading,
1191
+ Bt as NavBarNotificationButton,
1192
+ wt as NavBarPopoverButton,
1193
+ kt as NavBarSearchField,
1194
+ It as NavBarUserButton,
1195
+ St as Notification,
1196
+ we as NotificationHeader,
1197
+ Nt as NotificationList,
1198
+ $t as PageHeader,
1199
+ Lt as PageHeaderRow,
1200
+ Dt as PageHeading,
1201
+ Vt as ProductCard,
1202
+ Kt as ProductCardContentItem,
1203
+ Zt as ProductCardContentItemSkeletor,
1204
+ Tt as ProductSummaryCard,
1205
+ Xt as ProductSummaryCardSkeletor,
1206
+ Ot as SelectedItemsActionsPadding,
1207
+ Gt as SelectedItemsActionsPanel,
1208
+ Qt as SelectedProductCard,
1209
+ Wt as SidebarMenu,
1210
+ qt as SidebarMenuCollapsible,
1211
+ Ln as SidebarMenuCollapsibleGroupBox,
1212
+ Zn as SidebarMenuHeading,
1213
+ Ut as SidebarMenuLink,
1214
+ Et as SidebarMenuSeparator,
1215
+ Ht as SidebarRailMenu,
1216
+ Mt as Toast,
1217
+ wn as UnreadDot,
1218
+ Bn as getIconBgColorFromVariant,
1219
+ tt as isDeviceSameOrLarger,
1220
+ Be as useDeviceSize,
1221
+ Jt as useLayoutVisibility
750
1222
  };
751
1223
  //# sourceMappingURL=index.es.js.map