@stenajs-webui/modal 22.7.2 → 23.0.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,40 +1,41 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._overlay_quvmp_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;inset:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_quvmp_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_quvmp_1{background-color:#fff}}._overlay_quvmp_1 ._modal_quvmp_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_quvmp_1 ._modal_quvmp_31{width:100%}}._overlay_quvmp_1 ._content_quvmp_41{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);pointer-events:all;top:calc(var(--swui-metrics-space) * 2);width:var(--swui-modal-width);max-width:var(--swui-modal-max-width)}@media (max-width: 768px){._overlay_quvmp_1 ._content_quvmp_41{top:0;width:100%;max-width:100%}}._overlay_quvmp_1 ._content_quvmp_41{animation:_appear_quvmp_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_quvmp_1 ._content_quvmp_41{box-shadow:none;top:0}}._overlay_quvmp_1 ._content_quvmp_41:focus{outline:0}._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle{cursor:move}._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle .draggable-modal-cancel,._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_quvmp_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_quvmp_1{0%{opacity:0}to{opacity:1}}._footer_quvmp_101{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_quvmp_105{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_quvmp_105{position:static;box-shadow:none}}._portal_17ze5_1{--drawer-width: 370px}._portal_17ze5_1 ._overlay_17ze5_4{position:fixed;inset:0}._portal_17ze5_1 ._content_17ze5_9{box-shadow:var(--swui-shadow-modal);background:#fff;position:absolute;transition:transform var(--swui-animation-time-medium) ease-in-out}._portal_17ze5_1 ._content_17ze5_9._floating_17ze5_15{margin:var(--swui-metrics-space);border-radius:var(--swui-border-radius)}@media (max-width: 768px){._portal_17ze5_1 ._content_17ze5_9._floating_17ze5_15{margin:0;border-radius:0}}._portal_17ze5_1 ._content_17ze5_9:focus-visible{outline:unset}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30{transform:translate(var(--translate-x-outside-screen, 0));overflow-y:auto;top:0;bottom:0}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29._afterOpen_17ze5_36,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30._afterOpen_17ze5_36{transform:translate(0)}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29._beforeClose_17ze5_40,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30._beforeClose_17ze5_40{transform:translate(var(--translate-x-outside-screen))}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46{transform:translateY(var(--translate-y-outside-screen, 0));overflow-x:auto;left:0;right:0}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45._afterOpen_17ze5_36,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46._afterOpen_17ze5_36{transform:translateY(0)}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45._beforeClose_17ze5_40,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46._beforeClose_17ze5_40{transform:translateY(var(--translate-y-outside-screen))}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29{--translate-x-outside-screen: -100%;width:var(--drawer-width);left:0}._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30{--translate-x-outside-screen: 100%;width:var(--drawer-width);right:0}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45{--translate-y-outside-screen: -100%;height:var(--drawer-width);top:0}._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46{--translate-y-outside-screen: 100%;height:var(--drawer-width);bottom:0}._overlay_1gix5_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;inset:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_1gix5_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1gix5_1{background-color:#fff}}._overlay_1gix5_1 ._modal_1gix5_31{max-width:100%;outline:none;pointer-events:none;padding:var(--swui-metrics-space)}._overlay_1gix5_1 ._content_1gix5_38{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);border-radius:var(--swui-border-radius-large);pointer-events:all;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);animation:_appear_1gix5_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1gix5_1 ._content_1gix5_38{box-shadow:none;top:0}}._overlay_1gix5_1 ._content_1gix5_38:focus{outline:0}._overlay_1gix5_1 ._content_1gix5_38._isDraggable_1gix5_61 .draggable-modal-handle{cursor:move}._overlay_1gix5_1 ._content_1gix5_38._isDraggable_1gix5_61 .draggable-modal-handle .draggable-modal-cancel,._overlay_1gix5_1 ._content_1gix5_38._isDraggable_1gix5_61 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_1gix5_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_1gix5_1{0%{opacity:0}to{opacity:1}}._footer_1gix5_92{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_1gix5_96{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_1gix5_96{position:static;box-shadow:none}}._overlay_nbrrn_1{--swui-modal-animation-time: var(--swui-animation-time-medium);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;inset:0;background-color:var(--swui-modal-overlay-bg-color);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;opacity:0}._overlay_nbrrn_1._afterOpen_nbrrn_24:not(._beforeClose_nbrrn_24){animation:_fadeIn_nbrrn_1 var(--swui-modal-animation-time) forwards}._overlay_nbrrn_1._beforeClose_nbrrn_24{animation:_fadeOut_nbrrn_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_nbrrn_1{background-color:#fff}}._overlay_nbrrn_1 ._modal_nbrrn_36{max-width:100%;outline:none;pointer-events:none;padding:calc(var(--swui-metrics-space) * 2);box-sizing:border-box;max-height:100%;transform:translateY(-100%)}@media (max-width: 768px){._overlay_nbrrn_1 ._modal_nbrrn_36{padding:0;width:100%}}._overlay_nbrrn_1 ._modal_nbrrn_36._afterOpen_nbrrn_24:not(._beforeClose_nbrrn_24){animation:_slideIn_nbrrn_1 var(--swui-modal-animation-time) forwards}._overlay_nbrrn_1 ._modal_nbrrn_36._beforeClose_nbrrn_24{animation:_slideOut_nbrrn_1 var(--swui-modal-animation-time) forwards}._overlay_nbrrn_1 ._content_nbrrn_59{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);border-radius:var(--swui-border-radius-large);pointer-events:all;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);height:100%;overflow:hidden;overflow-y:auto}@media (max-width: 768px){._overlay_nbrrn_1 ._content_nbrrn_59{border-radius:0;width:100%;max-width:100%;min-height:100dvh}}@media (min-width: 769px){._overlay_nbrrn_1 ._content_nbrrn_59{border-radius:var(--swui-border-radius-large)}._overlay_nbrrn_1 ._content_nbrrn_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box;min-height:40px}._overlay_nbrrn_1 ._content_nbrrn_59::-webkit-scrollbar{width:16px}}@media print{._overlay_nbrrn_1 ._content_nbrrn_59{box-shadow:none;top:0}}._overlay_nbrrn_1 ._content_nbrrn_59:focus{outline:0}@keyframes _fadeIn_nbrrn_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_nbrrn_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_nbrrn_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_nbrrn_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_nbrrn_149{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_nbrrn_153{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_nbrrn_153{position:static;box-shadow:none}}._modal_4fwgb_1{display:flex;justify-content:center;align-items:center;position:fixed;inset:0;background-color:transparent}._overlay_4fwgb_13{position:fixed;inset:0;background-color:var(--swui-overlay-bg-color)}._alertDialog_14t8t_1{border:0;outline:0;border-radius:var(--swui-border-radius-large);margin:auto;padding:0;overscroll-behavior:contain;opacity:0;pointer-events:none;box-shadow:#0003 0 0 10px 4px}._alertDialog_14t8t_1:not([open]){display:none}._alertDialog_14t8t_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_14t8t_1 .25s forwards}._alertDialog_14t8t_1._closing_14t8t_22[open]{animation:_slideOut_14t8t_1 .25s forwards}._alertDialog_14t8t_1::backdrop{position:fixed;inset:0;background-color:#0d0e1080;animation:_fadeIn_14t8t_1 .25s forwards}._alertDialog_14t8t_1._closing_14t8t_22::backdrop{animation:_fadeOut_14t8t_1 .25s forwards}@keyframes _fadeIn_14t8t_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_14t8t_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_14t8t_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_14t8t_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._drawerDialog_11g6r_1{max-height:100%;max-width:100%;border:0;outline:0;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain;box-shadow:#0003 0 0 10px 4px;position:fixed}._drawerDialog_11g6r_1._left_11g6r_13,._drawerDialog_11g6r_1._right_11g6r_14{height:100%;top:0;bottom:0}._drawerDialog_11g6r_1._left_11g6r_13 ._contentWrapper_11g6r_19,._drawerDialog_11g6r_1._right_11g6r_14 ._contentWrapper_11g6r_19{height:100%}@media (max-width: 768px){._drawerDialog_11g6r_1._left_11g6r_13,._drawerDialog_11g6r_1._right_11g6r_14{width:-webkit-fit-content;width:fit-content}}._drawerDialog_11g6r_1._left_11g6r_13{left:0;right:unset}._drawerDialog_11g6r_1._left_11g6r_13[open]{animation:_slideInLeft_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._left_11g6r_13._closing_11g6r_36[open]{animation:_slideOutLeft_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._right_11g6r_14{left:unset;right:0}._drawerDialog_11g6r_1._right_11g6r_14[open]{animation:_slideInRight_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._right_11g6r_14._closing_11g6r_36[open]{animation:_slideOutRight_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._top_11g6r_54,._drawerDialog_11g6r_1._bottom_11g6r_55{width:100%;left:0;right:0}@media (max-width: 768px){._drawerDialog_11g6r_1._top_11g6r_54,._drawerDialog_11g6r_1._bottom_11g6r_55{height:-webkit-fit-content;height:fit-content}}._drawerDialog_11g6r_1._top_11g6r_54{top:0;bottom:unset}._drawerDialog_11g6r_1._top_11g6r_54[open]{animation:_slideInTop_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._top_11g6r_54._closing_11g6r_36[open]{animation:_slideOutTop_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._bottom_11g6r_55{top:unset;bottom:0}._drawerDialog_11g6r_1._bottom_11g6r_55[open]{animation:_slideInBottom_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._bottom_11g6r_55._closing_11g6r_36[open]{animation:_slideOutBottom_11g6r_1 .25s forwards}._drawerDialog_11g6r_1[open]{opacity:1;pointer-events:auto}@keyframes _slideInLeft_11g6r_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutLeft_11g6r_1{0%{transform:translate(0);opacity:0}to{transform:translate(-100%);opacity:1}}@keyframes _slideInTop_11g6r_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutTop_11g6r_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(-100%);opacity:1}}@keyframes _slideInRight_11g6r_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutRight_11g6r_1{0%{transform:translate(0);opacity:0}to{transform:translate(100%);opacity:1}}@keyframes _slideInBottom_11g6r_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutBottom_11g6r_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(100%);opacity:1}}._modalDialog_iw29e_1{border:0;outline:0;margin:auto;padding:0;overscroll-behavior:contain;opacity:0;pointer-events:none;box-shadow:#0003 0 0 10px 4px}@media (min-width: 769px){._modalDialog_iw29e_1{border-radius:var(--swui-border-radius-large)}._modalDialog_iw29e_1::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box;min-height:40px}._modalDialog_iw29e_1::-webkit-scrollbar{width:16px}}._modalDialog_iw29e_1:not([open]){display:none}._modalDialog_iw29e_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_iw29e_1 .25s forwards}._modalDialog_iw29e_1._closing_iw29e_37[open]{animation:_slideOut_iw29e_1 .25s forwards}@media (max-width: 768px){._modalDialog_iw29e_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_iw29e_1::backdrop{position:fixed;inset:0;background-color:#0d0e1080;animation:_fadeIn_iw29e_1 .25s forwards}._modalDialog_iw29e_1._closing_iw29e_37::backdrop{animation:_fadeOut_iw29e_1 .25s forwards}@keyframes _fadeIn_iw29e_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_iw29e_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_iw29e_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_iw29e_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@media (max-width: 768px){._contentWrapper_iw29e_101{width:100%;height:100%}}._modalActionButtons_s27nj_1{display:flex;flex-direction:row;gap:16px;justify-content:center}@media (max-width: 768px){._modalActionButtons_s27nj_1{flex-direction:column;justify-content:stretch}}@media (max-width: 768px){._modalBody_ozynq_1._modalBody_ozynq_1{padding:calc(var(--swui-metrics-space) * 2)}}._modalFooter_1ypno_1._modalFooter_1ypno_1{align-items:center;overflow:hidden;background:var(--silver-lighter);border-radius:24px 24px 0 0;padding:calc((var(--swui-metrics-spacing) * 2)) calc((var(--swui-metrics-indent) * 5));flex-shrink:0}._modalFooter_1ypno_1._modalFooter_1ypno_1._sticky_1ypno_10{position:-webkit-sticky;position:sticky;bottom:0}")),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import O from "react-modal";
3
- import { jsx as t, jsxs as m, Fragment as le } from "react/jsx-runtime";
4
- import { useRef as C, useState as k, useEffect as be, createContext as Ne, useReducer as De, useCallback as $, useMemo as ae, createElement as ce, useContext as Be } from "react";
5
- import Fe from "react-draggable";
6
- import a from "classnames";
7
- import { exhaustSwitchCase as Oe, Spacing as K, Row as w, Space as ie, Heading as Q, useEventCallback as $e, Column as L, Box as x, Indent as xe, Txt as Le, Text as Ae } from "@stenajs-webui/core";
8
- import { Icon as fe, FlatButton as ge, stenaTimes as Ie, Spinner as ze, CloseButton as Re, CircledIcon as ke, stenaTimesThick as Me } from "@stenajs-webui/elements";
9
- import { cssColor as Ee } from "@stenajs-webui/theme";
10
- const Zt = (e) => {
11
- O.setAppElement(e);
12
- }, We = "_overlay_quvmp_1", Se = "_modal_quvmp_31", Te = "_content_quvmp_41", Pe = "_isDraggable_quvmp_70", He = "_footer_quvmp_101", je = "_stickyFooter_quvmp_105", F = {
13
- overlay: We,
14
- modal: Se,
15
- content: Te,
16
- isDraggable: Pe,
17
- footer: He,
18
- stickyFooter: je
19
- }, pe = "draggable-modal-handle", he = "draggable-modal-cancel", qe = ({
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._overlay_quvmp_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;inset:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_quvmp_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_quvmp_1{background-color:#fff}}._overlay_quvmp_1 ._modal_quvmp_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_quvmp_1 ._modal_quvmp_31{width:100%}}._overlay_quvmp_1 ._content_quvmp_41{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);pointer-events:all;top:calc(var(--swui-metrics-space) * 2);width:var(--swui-modal-width);max-width:var(--swui-modal-max-width)}@media (max-width: 768px){._overlay_quvmp_1 ._content_quvmp_41{top:0;width:100%;max-width:100%}}._overlay_quvmp_1 ._content_quvmp_41{animation:_appear_quvmp_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_quvmp_1 ._content_quvmp_41{box-shadow:none;top:0}}._overlay_quvmp_1 ._content_quvmp_41:focus{outline:0}._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle{cursor:move}._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle .draggable-modal-cancel,._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_quvmp_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_quvmp_1{0%{opacity:0}to{opacity:1}}._footer_quvmp_101{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_quvmp_105{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_quvmp_105{position:static;box-shadow:none}}._portal_17ze5_1{--drawer-width: 370px}._portal_17ze5_1 ._overlay_17ze5_4{position:fixed;inset:0}._portal_17ze5_1 ._content_17ze5_9{box-shadow:var(--swui-shadow-modal);background:#fff;position:absolute;transition:transform var(--swui-animation-time-medium) ease-in-out}._portal_17ze5_1 ._content_17ze5_9._floating_17ze5_15{margin:var(--swui-metrics-space);border-radius:var(--swui-border-radius)}@media (max-width: 768px){._portal_17ze5_1 ._content_17ze5_9._floating_17ze5_15{margin:0;border-radius:0}}._portal_17ze5_1 ._content_17ze5_9:focus-visible{outline:unset}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30{transform:translate(var(--translate-x-outside-screen, 0));overflow-y:auto;top:0;bottom:0}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29._afterOpen_17ze5_36,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30._afterOpen_17ze5_36{transform:translate(0)}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29._beforeClose_17ze5_40,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30._beforeClose_17ze5_40{transform:translate(var(--translate-x-outside-screen))}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46{transform:translateY(var(--translate-y-outside-screen, 0));overflow-x:auto;left:0;right:0}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45._afterOpen_17ze5_36,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46._afterOpen_17ze5_36{transform:translateY(0)}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45._beforeClose_17ze5_40,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46._beforeClose_17ze5_40{transform:translateY(var(--translate-y-outside-screen))}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29{--translate-x-outside-screen: -100%;width:var(--drawer-width);left:0}._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30{--translate-x-outside-screen: 100%;width:var(--drawer-width);right:0}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45{--translate-y-outside-screen: -100%;height:var(--drawer-width);top:0}._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46{--translate-y-outside-screen: 100%;height:var(--drawer-width);bottom:0}._overlay_1gix5_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;inset:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_1gix5_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1gix5_1{background-color:#fff}}._overlay_1gix5_1 ._modal_1gix5_31{max-width:100%;outline:none;pointer-events:none;padding:var(--swui-metrics-space)}._overlay_1gix5_1 ._content_1gix5_38{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);border-radius:var(--swui-border-radius-large);pointer-events:all;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);animation:_appear_1gix5_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1gix5_1 ._content_1gix5_38{box-shadow:none;top:0}}._overlay_1gix5_1 ._content_1gix5_38:focus{outline:0}._overlay_1gix5_1 ._content_1gix5_38._isDraggable_1gix5_61 .draggable-modal-handle{cursor:move}._overlay_1gix5_1 ._content_1gix5_38._isDraggable_1gix5_61 .draggable-modal-handle .draggable-modal-cancel,._overlay_1gix5_1 ._content_1gix5_38._isDraggable_1gix5_61 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_1gix5_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_1gix5_1{0%{opacity:0}to{opacity:1}}._footer_1gix5_92{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_1gix5_96{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_1gix5_96{position:static;box-shadow:none}}._overlay_nbrrn_1{--swui-modal-animation-time: var(--swui-animation-time-medium);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;inset:0;background-color:var(--swui-modal-overlay-bg-color);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;opacity:0}._overlay_nbrrn_1._afterOpen_nbrrn_24:not(._beforeClose_nbrrn_24){animation:_fadeIn_nbrrn_1 var(--swui-modal-animation-time) forwards}._overlay_nbrrn_1._beforeClose_nbrrn_24{animation:_fadeOut_nbrrn_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_nbrrn_1{background-color:#fff}}._overlay_nbrrn_1 ._modal_nbrrn_36{max-width:100%;outline:none;pointer-events:none;padding:calc(var(--swui-metrics-space) * 2);box-sizing:border-box;max-height:100%;transform:translateY(-100%)}@media (max-width: 768px){._overlay_nbrrn_1 ._modal_nbrrn_36{padding:0;width:100%}}._overlay_nbrrn_1 ._modal_nbrrn_36._afterOpen_nbrrn_24:not(._beforeClose_nbrrn_24){animation:_slideIn_nbrrn_1 var(--swui-modal-animation-time) forwards}._overlay_nbrrn_1 ._modal_nbrrn_36._beforeClose_nbrrn_24{animation:_slideOut_nbrrn_1 var(--swui-modal-animation-time) forwards}._overlay_nbrrn_1 ._content_nbrrn_59{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);border-radius:var(--swui-border-radius-large);pointer-events:all;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);height:100%;overflow:hidden;overflow-y:auto}@media (max-width: 768px){._overlay_nbrrn_1 ._content_nbrrn_59{border-radius:0;width:100%;max-width:100%;min-height:100dvh}}@media (min-width: 769px){._overlay_nbrrn_1 ._content_nbrrn_59{border-radius:var(--swui-border-radius-large)}._overlay_nbrrn_1 ._content_nbrrn_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box;min-height:40px}._overlay_nbrrn_1 ._content_nbrrn_59::-webkit-scrollbar{width:16px}}@media print{._overlay_nbrrn_1 ._content_nbrrn_59{box-shadow:none;top:0}}._overlay_nbrrn_1 ._content_nbrrn_59:focus{outline:0}@keyframes _fadeIn_nbrrn_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_nbrrn_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_nbrrn_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_nbrrn_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_nbrrn_149{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_nbrrn_153{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_nbrrn_153{position:static;box-shadow:none}}._modal_4fwgb_1{display:flex;justify-content:center;align-items:center;position:fixed;inset:0;background-color:transparent}._overlay_4fwgb_13{position:fixed;inset:0;background-color:var(--swui-overlay-bg-color)}._alertDialog_14t8t_1{border:0;outline:0;border-radius:var(--swui-border-radius-large);margin:auto;padding:0;overscroll-behavior:contain;opacity:0;pointer-events:none;box-shadow:#0003 0 0 10px 4px}._alertDialog_14t8t_1:not([open]){display:none}._alertDialog_14t8t_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_14t8t_1 .25s forwards}._alertDialog_14t8t_1._closing_14t8t_22[open]{animation:_slideOut_14t8t_1 .25s forwards}._alertDialog_14t8t_1::backdrop{position:fixed;inset:0;background-color:#0d0e1080;animation:_fadeIn_14t8t_1 .25s forwards}._alertDialog_14t8t_1._closing_14t8t_22::backdrop{animation:_fadeOut_14t8t_1 .25s forwards}@keyframes _fadeIn_14t8t_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_14t8t_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_14t8t_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_14t8t_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._drawerDialog_11g6r_1{max-height:100%;max-width:100%;border:0;outline:0;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain;box-shadow:#0003 0 0 10px 4px;position:fixed}._drawerDialog_11g6r_1._left_11g6r_13,._drawerDialog_11g6r_1._right_11g6r_14{height:100%;top:0;bottom:0}._drawerDialog_11g6r_1._left_11g6r_13 ._contentWrapper_11g6r_19,._drawerDialog_11g6r_1._right_11g6r_14 ._contentWrapper_11g6r_19{height:100%}@media (max-width: 768px){._drawerDialog_11g6r_1._left_11g6r_13,._drawerDialog_11g6r_1._right_11g6r_14{width:-webkit-fit-content;width:fit-content}}._drawerDialog_11g6r_1._left_11g6r_13{left:0;right:unset}._drawerDialog_11g6r_1._left_11g6r_13[open]{animation:_slideInLeft_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._left_11g6r_13._closing_11g6r_36[open]{animation:_slideOutLeft_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._right_11g6r_14{left:unset;right:0}._drawerDialog_11g6r_1._right_11g6r_14[open]{animation:_slideInRight_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._right_11g6r_14._closing_11g6r_36[open]{animation:_slideOutRight_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._top_11g6r_54,._drawerDialog_11g6r_1._bottom_11g6r_55{width:100%;left:0;right:0}@media (max-width: 768px){._drawerDialog_11g6r_1._top_11g6r_54,._drawerDialog_11g6r_1._bottom_11g6r_55{height:-webkit-fit-content;height:fit-content}}._drawerDialog_11g6r_1._top_11g6r_54{top:0;bottom:unset}._drawerDialog_11g6r_1._top_11g6r_54[open]{animation:_slideInTop_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._top_11g6r_54._closing_11g6r_36[open]{animation:_slideOutTop_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._bottom_11g6r_55{top:unset;bottom:0}._drawerDialog_11g6r_1._bottom_11g6r_55[open]{animation:_slideInBottom_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._bottom_11g6r_55._closing_11g6r_36[open]{animation:_slideOutBottom_11g6r_1 .25s forwards}._drawerDialog_11g6r_1[open]{opacity:1;pointer-events:auto}@keyframes _slideInLeft_11g6r_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutLeft_11g6r_1{0%{transform:translate(0);opacity:0}to{transform:translate(-100%);opacity:1}}@keyframes _slideInTop_11g6r_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutTop_11g6r_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(-100%);opacity:1}}@keyframes _slideInRight_11g6r_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutRight_11g6r_1{0%{transform:translate(0);opacity:0}to{transform:translate(100%);opacity:1}}@keyframes _slideInBottom_11g6r_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutBottom_11g6r_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(100%);opacity:1}}._modalDialog_iw29e_1{border:0;outline:0;margin:auto;padding:0;overscroll-behavior:contain;opacity:0;pointer-events:none;box-shadow:#0003 0 0 10px 4px}@media (min-width: 769px){._modalDialog_iw29e_1{border-radius:var(--swui-border-radius-large)}._modalDialog_iw29e_1::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box;min-height:40px}._modalDialog_iw29e_1::-webkit-scrollbar{width:16px}}._modalDialog_iw29e_1:not([open]){display:none}._modalDialog_iw29e_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_iw29e_1 .25s forwards}._modalDialog_iw29e_1._closing_iw29e_37[open]{animation:_slideOut_iw29e_1 .25s forwards}@media (max-width: 768px){._modalDialog_iw29e_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_iw29e_1::backdrop{position:fixed;inset:0;background-color:#0d0e1080;animation:_fadeIn_iw29e_1 .25s forwards}._modalDialog_iw29e_1._closing_iw29e_37::backdrop{animation:_fadeOut_iw29e_1 .25s forwards}@keyframes _fadeIn_iw29e_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_iw29e_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_iw29e_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_iw29e_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@media (max-width: 768px){._contentWrapper_iw29e_101{width:100%;height:100%}}._modalActionButtons_s27nj_1{display:flex;flex-direction:row;gap:16px;justify-content:center}@media (max-width: 768px){._modalActionButtons_s27nj_1{flex-direction:column;justify-content:stretch}}@media (max-width: 768px){._modalBody_ozynq_1._modalBody_ozynq_1{padding:calc(var(--swui-metrics-space) * 2)}}._modalFooter_1ypno_1._modalFooter_1ypno_1{align-items:center;overflow:hidden;background:var(--silver-lighter);border-radius:24px 24px 0 0;padding:calc((var(--swui-metrics-spacing) * 2)) calc((var(--swui-metrics-indent) * 5));flex-shrink:0}._modalFooter_1ypno_1._modalFooter_1ypno_1._sticky_1ypno_10{position:-webkit-sticky;position:sticky;bottom:0}._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)}._notificationHeader_1rl25_1 ._timestamp_1rl25_2{padding-bottom:8px}._notification_tpz0j_1{display:flex;flex-direction:column;width:100%;background:var(--lhds-color-ui-50);padding:calc(var(--swui-metrics-spacing) * 2) calc(var(--swui-metrics-indent) * 2);gap:calc(var(--swui-metrics-space) * 1)}._notification_tpz0j_1 ._body_tpz0j_10{padding-left:48px;padding-right:24px}._notification_tpz0j_1._standard_tpz0j_15._unread_tpz0j_16{background:var(--lhds-color-blue-50)}._notification_tpz0j_1._danger_tpz0j_21{background:var(--lhds-color-red-100)}._notificationList_1rkvu_1{display:flex;flex-direction:column;gap:2px;background:var(--lhds-color-ui-200)}._toast_1ifzt_1 ._body_1ifzt_2{display:flex;padding-left:48px;padding-bottom:8px}._toastBox_1lvsy_1._toastBox_1lvsy_1{display:inline-block;padding:var(--swui-metrics-spacing) calc(var(--swui-metrics-indent) * 2);border-radius:var(--swui-border-radius);background:var(--lhds-color-ui-50);box-shadow:var(--swui-shadow-popover)}._toastBox_1lvsy_1._toastBox_1lvsy_1._clickable_1lvsy_8{border:1px solid transparent;cursor:pointer}._toastBox_1lvsy_1._toastBox_1lvsy_1._clickable_1lvsy_8:hover{border-color:var(--lhds-color-blue-300)}._toastContainer_1rek2_1 .Toastify__toast{align-items:flex-start}")),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import z from "react-modal";
3
+ import { jsx as t, jsxs as a, Fragment as de } from "react/jsx-runtime";
4
+ import { useRef as N, useState as M, useEffect as ke, createContext as Ie, useReducer as Ae, useCallback as L, useMemo as me, createElement as ue, useContext as Te } from "react";
5
+ import Me from "react-draggable";
6
+ import l from "classnames";
7
+ import { exhaustSwitchCase as Re, Spacing as Z, Row as p, Space as J, Heading as ee, useEventCallback as Ee, Column as w, Box as B, Indent as We, Txt as je, Text as K } from "@stenajs-webui/core";
8
+ import { Icon as be, FlatButton as Ne, stenaTimes as He, Spinner as Se, CloseButton as te, CircledIcon as we, stenaTimesThick as Pe } from "@stenajs-webui/elements";
9
+ import { cssColor as Be } from "@stenajs-webui/theme";
10
+ import { ToastContainer as qe, toast as Ge } from "react-toastify";
11
+ const Fo = (e) => {
12
+ z.setAppElement(e);
13
+ }, Ve = "_overlay_quvmp_1", Xe = "_modal_quvmp_31", Ye = "_content_quvmp_41", Ue = "_isDraggable_quvmp_70", Je = "_footer_quvmp_101", Ke = "_stickyFooter_quvmp_105", F = {
14
+ overlay: Ve,
15
+ modal: Xe,
16
+ content: Ye,
17
+ isDraggable: Ue,
18
+ footer: Je,
19
+ stickyFooter: Ke
20
+ }, $e = "draggable-modal-handle", xe = "draggable-modal-cancel", Qe = ({
20
21
  width: e,
21
22
  maxWidth: o,
22
23
  draggable: n = !1,
23
- children: r,
24
- ...s
24
+ children: s,
25
+ ...r
25
26
  }) => {
26
- const c = C(null);
27
+ const c = N(null);
27
28
  return /* @__PURE__ */ t(
28
- O,
29
+ z,
29
30
  {
30
31
  overlayClassName: F.overlay,
31
32
  className: F.modal,
32
- ...s,
33
+ ...r,
33
34
  children: /* @__PURE__ */ t(
34
- Fe,
35
+ Me,
35
36
  {
36
- handle: `.${pe}`,
37
- cancel: `.${he}, button, [role="tooltip"]`,
37
+ handle: `.${$e}`,
38
+ cancel: `.${xe}, button, [role="tooltip"]`,
38
39
  bounds: ".ReactModal__Overlay",
39
40
  disabled: !n,
40
41
  nodeRef: c,
@@ -45,191 +46,191 @@ const Zt = (e) => {
45
46
  "--swui-modal-width": e,
46
47
  "--swui-modal-max-width": o
47
48
  },
48
- className: a(F.content, {
49
+ className: l(F.content, {
49
50
  [F.isDraggable]: n
50
51
  }),
51
52
  ref: c,
52
- children: r
53
+ children: s
53
54
  }
54
55
  )
55
56
  }
56
57
  )
57
58
  }
58
59
  );
59
- }, Ge = "_portal_17ze5_1", Ve = "_overlay_17ze5_4", Xe = "_content_17ze5_9", Ye = "_floating_17ze5_15", Je = "_slideFromLeft_17ze5_29", Ke = "_slideFromRight_17ze5_30", Qe = "_afterOpen_17ze5_36", Ue = "_beforeClose_17ze5_40", Ze = "_slideFromTop_17ze5_45", et = "_slideFromBottom_17ze5_46", d = {
60
- portal: Ge,
61
- overlay: Ve,
62
- content: Xe,
63
- floating: Ye,
64
- slideFromLeft: Je,
65
- slideFromRight: Ke,
66
- afterOpen: Qe,
67
- beforeClose: Ue,
68
- slideFromTop: Ze,
69
- slideFromBottom: et
70
- }, eo = ({
60
+ }, Ze = "_portal_17ze5_1", et = "_overlay_17ze5_4", tt = "_content_17ze5_9", ot = "_floating_17ze5_15", nt = "_slideFromLeft_17ze5_29", st = "_slideFromRight_17ze5_30", rt = "_afterOpen_17ze5_36", at = "_beforeClose_17ze5_40", lt = "_slideFromTop_17ze5_45", ct = "_slideFromBottom_17ze5_46", f = {
61
+ portal: Ze,
62
+ overlay: et,
63
+ content: tt,
64
+ floating: ot,
65
+ slideFromLeft: nt,
66
+ slideFromRight: st,
67
+ afterOpen: rt,
68
+ beforeClose: at,
69
+ slideFromTop: lt,
70
+ slideFromBottom: ct
71
+ }, zo = ({
71
72
  background: e,
72
73
  zIndex: o,
73
74
  children: n,
74
- slideFrom: r = "left",
75
- portalTarget: s,
75
+ slideFrom: s = "left",
76
+ portalTarget: r,
76
77
  floating: c,
77
- ...u
78
+ ...d
78
79
  }) => {
79
- const { height: _, width: p } = u;
80
+ const { height: m, width: h } = d;
80
81
  return /* @__PURE__ */ t(
81
- O,
82
+ z,
82
83
  {
83
84
  closeTimeoutMS: 250,
84
- portalClassName: d.portal,
85
+ portalClassName: f.portal,
85
86
  overlayClassName: {
86
- base: d.overlay,
87
- afterOpen: d.afterOpen,
88
- beforeClose: d.beforeClose
87
+ base: f.overlay,
88
+ afterOpen: f.afterOpen,
89
+ beforeClose: f.beforeClose
89
90
  },
90
91
  className: {
91
- base: a(
92
- d.content,
93
- tt(r),
94
- c && d.floating
92
+ base: l(
93
+ f.content,
94
+ it(s),
95
+ c && f.floating
95
96
  ),
96
- afterOpen: d.afterOpen,
97
- beforeClose: d.beforeClose
97
+ afterOpen: f.afterOpen,
98
+ beforeClose: f.beforeClose
98
99
  },
99
- style: { content: { width: p, height: _, background: e }, overlay: { zIndex: o } },
100
- parentSelector: s ? () => s : void 0,
101
- ...u,
100
+ style: { content: { width: h, height: m, background: e }, overlay: { zIndex: o } },
101
+ parentSelector: r ? () => r : void 0,
102
+ ...d,
102
103
  children: n
103
104
  }
104
105
  );
105
- }, tt = (e) => {
106
+ }, it = (e) => {
106
107
  switch (e) {
107
108
  case "left":
108
- return d.slideFromLeft;
109
+ return f.slideFromLeft;
109
110
  case "right":
110
- return d.slideFromRight;
111
+ return f.slideFromRight;
111
112
  case "top":
112
- return d.slideFromTop;
113
+ return f.slideFromTop;
113
114
  case "bottom":
114
- return d.slideFromBottom;
115
+ return f.slideFromBottom;
115
116
  default:
116
- return Oe(e, d.slideFromLeft);
117
+ return Re(e, f.slideFromLeft);
117
118
  }
118
- }, to = ({
119
+ }, Lo = ({
119
120
  header: e,
120
121
  contentRight: o,
121
122
  onRequestClose: n,
122
- icon: r
123
+ icon: s
123
124
  }) => /* @__PURE__ */ t(
124
- K,
125
+ Z,
125
126
  {
126
127
  position: "sticky",
127
128
  top: 0,
128
129
  zIndex: 100,
129
- background: Ee("--lhds-color-ui-50"),
130
- children: /* @__PURE__ */ m(
131
- w,
130
+ background: Be("--lhds-color-ui-50"),
131
+ children: /* @__PURE__ */ a(
132
+ p,
132
133
  {
133
134
  justifyContent: "space-between",
134
135
  alignItems: "center",
135
136
  height: "48px",
136
137
  children: [
137
- /* @__PURE__ */ m(w, { alignItems: "center", gap: 2, children: [
138
- /* @__PURE__ */ t(ie, { num: 1 }),
139
- r && /* @__PURE__ */ t(fe, { icon: r, size: 24 }),
140
- /* @__PURE__ */ t(Q, { variant: "h4", children: e })
138
+ /* @__PURE__ */ a(p, { alignItems: "center", gap: 2, children: [
139
+ /* @__PURE__ */ t(J, { num: 1 }),
140
+ s && /* @__PURE__ */ t(be, { icon: s, size: 24 }),
141
+ /* @__PURE__ */ t(ee, { variant: "h4", children: e })
141
142
  ] }),
142
- /* @__PURE__ */ m(w, { gap: 1, children: [
143
+ /* @__PURE__ */ a(p, { gap: 1, children: [
143
144
  o,
144
145
  /* @__PURE__ */ t(
145
- ge,
146
+ Ne,
146
147
  {
147
- leftIcon: Ie,
148
+ leftIcon: He,
148
149
  onClick: n,
149
150
  variant: "danger"
150
151
  }
151
152
  ),
152
- /* @__PURE__ */ t(ie, { num: 0.5 })
153
+ /* @__PURE__ */ t(J, { num: 0.5 })
153
154
  ] })
154
155
  ]
155
156
  }
156
157
  )
157
158
  }
158
- ), ot = "_overlay_1gix5_1", nt = "_modal_1gix5_31", rt = "_content_1gix5_38", V = {
159
- overlay: ot,
160
- modal: nt,
161
- content: rt
162
- }, st = { overlay: { justifyContent: "center" } }, oo = ({
159
+ ), dt = "_overlay_1gix5_1", mt = "_modal_1gix5_31", ut = "_content_1gix5_38", X = {
160
+ overlay: dt,
161
+ modal: mt,
162
+ content: ut
163
+ }, _t = { overlay: { justifyContent: "center" } }, Oo = ({
163
164
  children: e,
164
165
  ...o
165
166
  }) => /* @__PURE__ */ t(
166
- O,
167
+ z,
167
168
  {
168
- overlayClassName: V.overlay,
169
- className: V.modal,
170
- style: st,
169
+ overlayClassName: X.overlay,
170
+ className: X.modal,
171
+ style: _t,
171
172
  ...o,
172
173
  children: /* @__PURE__ */ t(
173
174
  "div",
174
175
  {
175
- className: V.content,
176
+ className: X.content,
176
177
  style: { "--swui-modal-width": "fit-content" },
177
178
  children: e
178
179
  }
179
180
  )
180
181
  }
181
- ), lt = "_overlay_nbrrn_1", at = "_afterOpen_nbrrn_24", ct = "_beforeClose_nbrrn_24", it = "_modal_nbrrn_36", dt = "_content_nbrrn_59", N = {
182
- overlay: lt,
183
- afterOpen: at,
184
- beforeClose: ct,
185
- modal: it,
186
- content: dt
187
- }, de = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), mt = ({
182
+ ), ft = "_overlay_nbrrn_1", gt = "_afterOpen_nbrrn_24", pt = "_beforeClose_nbrrn_24", ht = "_modal_nbrrn_36", yt = "_content_nbrrn_59", x = {
183
+ overlay: ft,
184
+ afterOpen: gt,
185
+ beforeClose: pt,
186
+ modal: ht,
187
+ content: yt
188
+ }, _e = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), vt = ({
188
189
  children: e,
189
190
  background: o,
190
191
  className: n,
191
- overlayClassName: r,
192
- ...s
192
+ overlayClassName: s,
193
+ ...r
193
194
  }) => {
194
- const c = C(null), [u, _] = k(de ? "auto" : void 0), p = {
195
+ const c = N(null), [d, m] = M(_e ? "auto" : void 0), h = {
195
196
  overlay: { justifyContent: "center" },
196
197
  content: {
197
198
  "--swui-modal-content-bg-color": o
198
199
  }
199
- }, f = $e(() => {
200
- if (!de)
200
+ }, u = Ee(() => {
201
+ if (!_e)
201
202
  return;
202
- const h = c.current;
203
- h && _(
204
- h.scrollHeight > h.clientHeight ? "stable" : "auto"
203
+ const y = c.current;
204
+ y && m(
205
+ y.scrollHeight > y.clientHeight ? "stable" : "auto"
205
206
  );
206
207
  });
207
- return be(() => (window.addEventListener("resize", f), document.addEventListener("DOMContentLoaded", f), () => {
208
- window.removeEventListener("resize", f), document.removeEventListener("DOMContentLoaded", f);
209
- }), [f]), /* @__PURE__ */ t(
210
- O,
208
+ return ke(() => (window.addEventListener("resize", u), document.addEventListener("DOMContentLoaded", u), () => {
209
+ window.removeEventListener("resize", u), document.removeEventListener("DOMContentLoaded", u);
210
+ }), [u]), /* @__PURE__ */ t(
211
+ z,
211
212
  {
212
213
  overlayClassName: {
213
- base: a(r, N.overlay),
214
- beforeClose: N.beforeClose,
215
- afterOpen: N.afterOpen
214
+ base: l(s, x.overlay),
215
+ beforeClose: x.beforeClose,
216
+ afterOpen: x.afterOpen
216
217
  },
217
218
  className: {
218
- base: a(n, N.modal),
219
- beforeClose: N.beforeClose,
220
- afterOpen: N.afterOpen
219
+ base: l(n, x.modal),
220
+ beforeClose: x.beforeClose,
221
+ afterOpen: x.afterOpen
221
222
  },
222
- style: p,
223
+ style: h,
223
224
  closeTimeoutMS: 250,
224
- onAfterOpen: f,
225
- ...s,
225
+ onAfterOpen: u,
226
+ ...r,
226
227
  children: /* @__PURE__ */ t(
227
228
  "div",
228
229
  {
229
- className: N.content,
230
+ className: x.content,
230
231
  style: {
231
232
  "--swui-modal-width": "fit-content",
232
- scrollbarGutter: u
233
+ scrollbarGutter: d
233
234
  },
234
235
  ref: c,
235
236
  children: e
@@ -237,27 +238,27 @@ const Zt = (e) => {
237
238
  )
238
239
  }
239
240
  );
240
- }, ut = "_modal_4fwgb_1", _t = "_overlay_4fwgb_13", me = {
241
- modal: ut,
242
- overlay: _t
243
- }, no = ({
241
+ }, Ct = "_modal_4fwgb_1", bt = "_overlay_4fwgb_13", fe = {
242
+ modal: Ct,
243
+ overlay: bt
244
+ }, ko = ({
244
245
  headerIconLeft: e,
245
246
  headerText: o,
246
247
  shouldCloseOnOverlayClick: n = !1,
247
- shouldCloseOnEsc: r = !1,
248
- ...s
248
+ shouldCloseOnEsc: s = !1,
249
+ ...r
249
250
  }) => /* @__PURE__ */ t(
250
- O,
251
+ z,
251
252
  {
252
- ...s,
253
+ ...r,
253
254
  isOpen: !0,
254
255
  shouldCloseOnOverlayClick: n,
255
- shouldCloseOnEsc: r,
256
- className: me.modal,
257
- overlayClassName: me.overlay,
258
- children: /* @__PURE__ */ m(L, { spacing: 2, alignItems: "center", children: [
256
+ shouldCloseOnEsc: s,
257
+ className: fe.modal,
258
+ overlayClassName: fe.overlay,
259
+ children: /* @__PURE__ */ a(w, { spacing: 2, alignItems: "center", children: [
259
260
  /* @__PURE__ */ t(
260
- x,
261
+ B,
261
262
  {
262
263
  alignItems: "center",
263
264
  justifyContent: "center",
@@ -266,311 +267,311 @@ const Zt = (e) => {
266
267
  borderRadius: "50%",
267
268
  background: "white",
268
269
  shadow: "modal",
269
- children: /* @__PURE__ */ t(ze, { size: "small" })
270
+ children: /* @__PURE__ */ t(Se, { size: "small" })
270
271
  }
271
272
  ),
272
- (e || o) && /* @__PURE__ */ m(le, { children: [
273
- /* @__PURE__ */ t(K, {}),
274
- /* @__PURE__ */ m(w, { indent: 2, children: [
275
- e && /* @__PURE__ */ m(le, { children: [
276
- /* @__PURE__ */ t(fe, { size: 14, icon: e, color: "white" }),
277
- /* @__PURE__ */ t(xe, {})
273
+ (e || o) && /* @__PURE__ */ a(de, { children: [
274
+ /* @__PURE__ */ t(Z, {}),
275
+ /* @__PURE__ */ a(p, { indent: 2, children: [
276
+ e && /* @__PURE__ */ a(de, { children: [
277
+ /* @__PURE__ */ t(be, { size: 14, icon: e, color: "white" }),
278
+ /* @__PURE__ */ t(We, {})
278
279
  ] }),
279
- o && /* @__PURE__ */ t(Q, { variant: "h4", color: "white", children: o })
280
+ o && /* @__PURE__ */ t(ee, { variant: "h4", color: "white", children: o })
280
281
  ] })
281
282
  ] })
282
283
  ] })
283
284
  }
284
- ), ft = ({
285
+ ), Nt = ({
285
286
  onRequestClose: e,
286
287
  header: o,
287
288
  headerText: n,
288
- closeButtonClassName: r
289
- }) => /* @__PURE__ */ m(
290
- w,
289
+ closeButtonClassName: s
290
+ }) => /* @__PURE__ */ a(
291
+ p,
291
292
  {
292
293
  spacing: 2,
293
294
  indent: 2,
294
295
  borderBottom: "1px solid var(--lhds-color-ui-300)",
295
- className: pe,
296
+ className: $e,
296
297
  children: [
297
- /* @__PURE__ */ m(w, { flex: 1, indent: !0, alignItems: "center", children: [
298
- n && /* @__PURE__ */ t(Le, { className: he, size: "large", children: n }),
298
+ /* @__PURE__ */ a(p, { flex: 1, indent: !0, alignItems: "center", children: [
299
+ n && /* @__PURE__ */ t(je, { className: xe, size: "large", children: n }),
299
300
  o
300
301
  ] }),
301
- /* @__PURE__ */ t(x, { alignSelf: "flex-start", children: /* @__PURE__ */ t(
302
- Re,
302
+ /* @__PURE__ */ t(B, { alignSelf: "flex-start", children: /* @__PURE__ */ t(
303
+ te,
303
304
  {
304
- className: r,
305
+ className: s,
305
306
  onClick: e
306
307
  }
307
308
  ) })
308
309
  ]
309
310
  }
310
- ), ro = ({
311
+ ), Io = ({
311
312
  header: e,
312
313
  headerText: o,
313
314
  children: n,
314
- spacing: r,
315
- indent: s,
315
+ spacing: s,
316
+ indent: r,
316
317
  draggable: c = !1,
317
- onRequestClose: u,
318
- closeButtonClassName: _,
319
- footer: p,
320
- disableStickyFooter: f = !1,
321
- ...h
322
- }) => /* @__PURE__ */ m(
323
- qe,
318
+ onRequestClose: d,
319
+ closeButtonClassName: m,
320
+ footer: h,
321
+ disableStickyFooter: u = !1,
322
+ ...y
323
+ }) => /* @__PURE__ */ a(
324
+ Qe,
324
325
  {
325
- ...h,
326
- onRequestClose: u,
326
+ ...y,
327
+ onRequestClose: d,
327
328
  draggable: c,
328
329
  children: [
329
330
  /* @__PURE__ */ t(
330
- ft,
331
+ Nt,
331
332
  {
332
- onRequestClose: u,
333
+ onRequestClose: d,
333
334
  header: e,
334
335
  headerText: o,
335
- closeButtonClassName: _
336
+ closeButtonClassName: m
336
337
  }
337
338
  ),
338
- /* @__PURE__ */ t(x, { spacing: typeof r == "number" ? r : 1, indent: typeof s == "number" ? s : 1, children: n }),
339
- p && /* @__PURE__ */ t(
340
- x,
339
+ /* @__PURE__ */ t(B, { spacing: typeof s == "number" ? s : 1, indent: typeof r == "number" ? r : 1, children: n }),
340
+ h && /* @__PURE__ */ t(
341
+ B,
341
342
  {
342
- className: a(F.footer, {
343
- [F.stickyFooter]: !f
343
+ className: l(F.footer, {
344
+ [F.stickyFooter]: !u
344
345
  }),
345
- children: p
346
+ children: h
346
347
  }
347
348
  )
348
349
  ]
349
350
  }
350
- ), so = ({ children: e }) => /* @__PURE__ */ t(L, { indent: 2, spacing: 2, children: e }), J = Ne(
351
+ ), Ao = ({ children: e }) => /* @__PURE__ */ t(w, { indent: 2, spacing: 2, children: e }), Q = Ie(
351
352
  void 0
352
353
  );
353
- function U(e, {
354
+ function oe(e, {
354
355
  ref: o,
355
356
  modal: n,
356
- contentWrapperClassName: r,
357
- closingClassName: s,
357
+ contentWrapperClassName: s,
358
+ closingClassName: r,
358
359
  contentWrapperStyle: c,
359
- dialogStyle: u,
360
- divInsteadOfDialog: _,
361
- disableCloseOnClickOutside: p,
362
- elementId: f,
363
- onResolve: h,
364
- onReject: D,
365
- className: M,
360
+ dialogStyle: d,
361
+ divInsteadOfDialog: m,
362
+ disableCloseOnClickOutside: h,
363
+ elementId: u,
364
+ onResolve: y,
365
+ onReject: v,
366
+ className: R,
366
367
  background: E,
367
368
  label: W,
368
- labelledby: S,
369
- describedby: T
369
+ labelledby: j,
370
+ describedby: H
370
371
  }) {
371
- const ve = C(null), i = o ?? ve, [P, Ce] = De((l) => l + 1, 0), Z = C(null), H = C(null), y = C(void 0), A = C(!1), I = C(null), [ee, z] = k(!1), [j, B] = k(!1), [te, v] = k(!1), q = e, we = $(
372
- (l) => (Z.current = new Promise(
373
- (g, se) => {
374
- H.current = g, I.current = se;
372
+ const ze = N(null), _ = o ?? ze, [S, Le] = Ae((i) => i + 1, 0), ne = N(null), P = N(null), C = N(void 0), O = N(!1), k = N(null), [se, I] = M(!1), [q, D] = M(!1), [re, b] = M(!1), G = e, Oe = L(
373
+ (i) => (ne.current = new Promise(
374
+ (g, ie) => {
375
+ P.current = g, k.current = ie;
375
376
  }
376
- ), v(!1), z(!0), B(!0), Ce(), A.current = !1, y.current = l, n ? i.current?.showModal() : i.current?.show(), Z.current),
377
- [i, n]
378
- ), oe = $(
379
- (l) => {
380
- A.current = !0, v(!0), z(!1), _ ? setTimeout(() => {
381
- v(!1), B(!1), H.current?.(l), y.current = void 0, h?.();
382
- }, 300) : i.current?.addEventListener(
377
+ ), b(!1), I(!0), D(!0), Le(), O.current = !1, C.current = i, n ? _.current?.showModal() : _.current?.show(), ne.current),
378
+ [_, n]
379
+ ), ae = L(
380
+ (i) => {
381
+ O.current = !0, b(!0), I(!1), m ? setTimeout(() => {
382
+ b(!1), D(!1), P.current?.(i), C.current = void 0, y?.();
383
+ }, 300) : _.current?.addEventListener(
383
384
  "animationend",
384
385
  (g) => {
385
- g.stopPropagation(), v(!1), B(!1), i.current?.close(), H.current?.(l), y.current = void 0, h?.();
386
+ g.stopPropagation(), b(!1), D(!1), _.current?.close(), P.current?.(i), C.current = void 0, y?.();
386
387
  },
387
388
  { once: !0 }
388
389
  );
389
390
  },
390
- [i, h, _]
391
- ), b = $(
392
- (l) => {
393
- A.current = !0, v(!0), z(!1), _ ? setTimeout(() => {
394
- v(!1), B(!1), I.current?.(l), D?.(), y.current = void 0;
395
- }, 300) : i.current?.addEventListener(
391
+ [_, y, m]
392
+ ), $ = L(
393
+ (i) => {
394
+ O.current = !0, b(!0), I(!1), m ? setTimeout(() => {
395
+ b(!1), D(!1), k.current?.(i), v?.(), C.current = void 0;
396
+ }, 300) : _.current?.addEventListener(
396
397
  "animationend",
397
398
  (g) => {
398
- g.stopPropagation(), v(!1), B(!1), i.current?.close(), I.current?.(l), D?.(), y.current = void 0;
399
+ g.stopPropagation(), b(!1), D(!1), _.current?.close(), k.current?.(i), v?.(), C.current = void 0;
399
400
  },
400
401
  { once: !0 }
401
402
  );
402
403
  },
403
- [i, _, D]
404
- ), ne = $(
405
- (l) => {
406
- l.stopPropagation(), A.current || (v(!1), z(!1), B(!1), I.current?.(), D?.(), y.current = void 0);
404
+ [_, m, v]
405
+ ), le = L(
406
+ (i) => {
407
+ i.stopPropagation(), O.current || (b(!1), I(!1), D(!1), k.current?.(), v?.(), C.current = void 0);
407
408
  },
408
- [D]
409
- ), re = $(
410
- (l) => {
411
- if (l.target !== i.current)
409
+ [v]
410
+ ), ce = L(
411
+ (i) => {
412
+ if (i.target !== _.current)
412
413
  return;
413
- const g = i.current.getBoundingClientRect();
414
- g.top <= l.clientY && l.clientY <= g.top + g.height && g.left <= l.clientX && l.clientX <= g.left + g.width || b();
414
+ const g = _.current.getBoundingClientRect();
415
+ g.top <= i.clientY && i.clientY <= g.top + g.height && g.left <= i.clientX && i.clientX <= g.left + g.width || $();
415
416
  },
416
- [i, b]
417
- ), G = ae(
418
- () => ({ resolve: oe, reject: b }),
419
- [b, oe]
417
+ [_, $]
418
+ ), V = me(
419
+ () => ({ resolve: ae, reject: $ }),
420
+ [$, ae]
420
421
  );
421
- return [ae(
422
- () => _ ? /* @__PURE__ */ t(
423
- mt,
422
+ return [me(
423
+ () => m ? /* @__PURE__ */ t(
424
+ vt,
424
425
  {
425
- isOpen: ee,
426
- onRequestClose: b,
426
+ isOpen: se,
427
+ onRequestClose: $,
427
428
  background: E,
428
429
  contentLabel: W,
429
- id: f,
430
- aria: { modal: !0, labelledby: S, describedby: T },
431
- children: /* @__PURE__ */ t(J.Provider, { value: G, children: j && /* @__PURE__ */ ce(q, { ...y.current, key: P }) })
430
+ id: u,
431
+ aria: { modal: !0, labelledby: j, describedby: H },
432
+ children: /* @__PURE__ */ t(Q.Provider, { value: V, children: q && /* @__PURE__ */ ue(G, { ...C.current, key: S }) })
432
433
  }
433
434
  ) : /* @__PURE__ */ t(
434
435
  "dialog",
435
436
  {
436
- onClick: p ? void 0 : re,
437
- onClose: ne,
438
- ref: i,
439
- id: f,
440
- className: a(M, te && s),
437
+ onClick: h ? void 0 : ce,
438
+ onClose: le,
439
+ ref: _,
440
+ id: u,
441
+ className: l(R, re && r),
441
442
  "aria-label": W,
442
- "aria-labelledby": S,
443
- "aria-describedby": T,
444
- style: { background: E, ...u },
445
- children: /* @__PURE__ */ t("div", { style: c, className: r, children: j && /* @__PURE__ */ t(J.Provider, { value: G, children: /* @__PURE__ */ ce(q, { ...y.current, key: P }) }) })
443
+ "aria-labelledby": j,
444
+ "aria-describedby": H,
445
+ style: { background: E, ...d },
446
+ children: /* @__PURE__ */ t("div", { style: c, className: s, children: q && /* @__PURE__ */ t(Q.Provider, { value: V, children: /* @__PURE__ */ ue(G, { ...C.current, key: S }) }) })
446
447
  }
447
448
  ),
448
449
  [
449
- _,
450
- ee,
451
- b,
450
+ m,
451
+ se,
452
+ $,
452
453
  E,
453
454
  W,
454
- f,
455
- S,
456
- T,
457
- G,
455
+ u,
458
456
  j,
457
+ H,
458
+ V,
459
459
  q,
460
- P,
461
- p,
460
+ G,
461
+ S,
462
+ h,
463
+ ce,
464
+ le,
465
+ _,
466
+ R,
462
467
  re,
463
- ne,
464
- i,
465
- M,
466
- te,
467
- s,
468
- u,
468
+ r,
469
+ d,
469
470
  c,
470
- r
471
+ s
471
472
  ]
472
- ), { show: we, reject: b }];
473
+ ), { show: Oe, reject: $ }];
473
474
  }
474
- const lo = () => {
475
- const e = Be(J);
475
+ const To = () => {
476
+ const e = Te(Q);
476
477
  if (e == null)
477
478
  throw new Error("useDialogPromise is being used outside of dialog.");
478
479
  return e;
479
- }, gt = "_alertDialog_14t8t_1", pt = "_closing_14t8t_22", X = {
480
- alertDialog: gt,
481
- closing: pt
480
+ }, wt = "_alertDialog_14t8t_1", Bt = "_closing_14t8t_22", Y = {
481
+ alertDialog: wt,
482
+ closing: Bt
482
483
  };
483
- function ao(e, o) {
484
- return U(e, {
484
+ function Mo(e, o) {
485
+ return oe(e, {
485
486
  ...o,
486
487
  modal: !0,
487
- closingClassName: a(o?.closingClassName, X.closing),
488
- contentWrapperClassName: a(
488
+ closingClassName: l(o?.closingClassName, Y.closing),
489
+ contentWrapperClassName: l(
489
490
  o?.contentWrapperClassName,
490
- X.contentWrapper
491
+ Y.contentWrapper
491
492
  ),
492
- className: a(o?.className, X.alertDialog)
493
+ className: l(o?.className, Y.alertDialog)
493
494
  });
494
495
  }
495
- const ht = "_drawerDialog_11g6r_1", yt = "_left_11g6r_13", vt = "_right_11g6r_14", Ct = "_contentWrapper_11g6r_19", wt = "_slideInLeft_11g6r_1", bt = "_closing_11g6r_36", Nt = "_slideOutLeft_11g6r_1", Dt = "_slideInRight_11g6r_1", Bt = "_slideOutRight_11g6r_1", Ft = "_top_11g6r_54", Ot = "_bottom_11g6r_55", $t = "_slideInTop_11g6r_1", xt = "_slideOutTop_11g6r_1", Lt = "_slideInBottom_11g6r_1", At = "_slideOutBottom_11g6r_1", R = {
496
- drawerDialog: ht,
497
- left: yt,
498
- right: vt,
499
- contentWrapper: Ct,
500
- slideInLeft: wt,
501
- closing: bt,
502
- slideOutLeft: Nt,
503
- slideInRight: Dt,
504
- slideOutRight: Bt,
505
- top: Ft,
506
- bottom: Ot,
507
- slideInTop: $t,
508
- slideOutTop: xt,
509
- slideInBottom: Lt,
510
- slideOutBottom: At
496
+ const $t = "_drawerDialog_11g6r_1", xt = "_left_11g6r_13", Dt = "_right_11g6r_14", Ft = "_contentWrapper_11g6r_19", zt = "_slideInLeft_11g6r_1", Lt = "_closing_11g6r_36", Ot = "_slideOutLeft_11g6r_1", kt = "_slideInRight_11g6r_1", It = "_slideOutRight_11g6r_1", At = "_top_11g6r_54", Tt = "_bottom_11g6r_55", Mt = "_slideInTop_11g6r_1", Rt = "_slideOutTop_11g6r_1", Et = "_slideInBottom_11g6r_1", Wt = "_slideOutBottom_11g6r_1", A = {
497
+ drawerDialog: $t,
498
+ left: xt,
499
+ right: Dt,
500
+ contentWrapper: Ft,
501
+ slideInLeft: zt,
502
+ closing: Lt,
503
+ slideOutLeft: Ot,
504
+ slideInRight: kt,
505
+ slideOutRight: It,
506
+ top: At,
507
+ bottom: Tt,
508
+ slideInTop: Mt,
509
+ slideOutTop: Rt,
510
+ slideInBottom: Et,
511
+ slideOutBottom: Wt
511
512
  };
512
- function co(e, o = "left", n) {
513
- return U(e, {
513
+ function Ro(e, o = "left", n) {
514
+ return oe(e, {
514
515
  ...n,
515
516
  disableCloseOnClickOutside: !0,
516
517
  modal: !1,
517
- closingClassName: a(n?.closingClassName, R.closing),
518
- contentWrapperClassName: a(
518
+ closingClassName: l(n?.closingClassName, A.closing),
519
+ contentWrapperClassName: l(
519
520
  n?.contentWrapperClassName,
520
- R.contentWrapper
521
+ A.contentWrapper
521
522
  ),
522
- className: a(n?.className, R.drawerDialog, R[o])
523
+ className: l(n?.className, A.drawerDialog, A[o])
523
524
  });
524
525
  }
525
- const It = "_modalDialog_iw29e_1", zt = "_closing_iw29e_37", Rt = "_contentWrapper_iw29e_101", Y = {
526
- modalDialog: It,
527
- closing: zt,
528
- contentWrapper: Rt
526
+ const jt = "_modalDialog_iw29e_1", Ht = "_closing_iw29e_37", St = "_contentWrapper_iw29e_101", U = {
527
+ modalDialog: jt,
528
+ closing: Ht,
529
+ contentWrapper: St
529
530
  };
530
- function io(e, o) {
531
- return U(e, {
531
+ function Eo(e, o) {
532
+ return oe(e, {
532
533
  ...o,
533
534
  modal: !0,
534
- closingClassName: a(o?.closingClassName, Y.closing),
535
- contentWrapperClassName: a(
535
+ closingClassName: l(o?.closingClassName, U.closing),
536
+ contentWrapperClassName: l(
536
537
  o?.contentWrapperClassName,
537
- Y.contentWrapper
538
+ U.contentWrapper
538
539
  ),
539
- className: a(o?.className, Y.modalDialog)
540
+ className: l(o?.className, U.modalDialog)
540
541
  });
541
542
  }
542
- const ye = ({
543
+ const De = ({
543
544
  headingLevel: e = "h2",
544
545
  size: o = "medium",
545
546
  children: n
546
- }) => /* @__PURE__ */ t(Q, { variant: o === "medium" ? "h3" : "h1", as: e, children: n }), kt = "_modalActionButtons_s27nj_1", Mt = {
547
- modalActionButtons: kt
548
- }, Et = ({
547
+ }) => /* @__PURE__ */ t(ee, { variant: o === "medium" ? "h3" : "h1", as: e, children: n }), Pt = "_modalActionButtons_s27nj_1", qt = {
548
+ modalActionButtons: Pt
549
+ }, Gt = ({
549
550
  children: e
550
- }) => /* @__PURE__ */ m(x, { width: "100%", children: [
551
- /* @__PURE__ */ t(K, {}),
552
- /* @__PURE__ */ t("div", { className: Mt.modalActionButtons, children: e })
553
- ] }), Wt = "_modalBody_ozynq_1", ue = {
554
- modalBody: Wt
555
- }, St = ({
551
+ }) => /* @__PURE__ */ a(B, { width: "100%", children: [
552
+ /* @__PURE__ */ t(Z, {}),
553
+ /* @__PURE__ */ t("div", { className: qt.modalActionButtons, children: e })
554
+ ] }), Vt = "_modalBody_ozynq_1", ge = {
555
+ modalBody: Vt
556
+ }, Xt = ({
556
557
  gap: e = 3,
557
558
  variant: o = "normal",
558
559
  className: n,
559
- ...r
560
+ ...s
560
561
  }) => /* @__PURE__ */ t(
561
- L,
562
+ w,
562
563
  {
563
- className: a(ue.modalBody, ue[o], n),
564
+ className: l(ge.modalBody, ge[o], n),
564
565
  indent: o === "relaxed" ? 5 : 3,
565
566
  spacing: o === "relaxed" ? 5 : 3,
566
567
  gap: e,
567
- ...r
568
+ ...s
568
569
  }
569
- ), Tt = ({
570
+ ), Yt = ({
570
571
  children: e,
571
572
  maxWidth: o
572
573
  }) => /* @__PURE__ */ t(
573
- L,
574
+ w,
574
575
  {
575
576
  flex: 1,
576
577
  height: "100%",
@@ -578,98 +579,251 @@ const ye = ({
578
579
  maxWidth: o,
579
580
  children: e
580
581
  }
581
- ), mo = ({
582
+ ), Wo = ({
582
583
  icon: e,
583
584
  buttons: o,
584
585
  heading: n,
585
- text: r,
586
- children: s,
586
+ text: s,
587
+ children: r,
587
588
  maxWidth: c,
588
- minWidth: u
589
- }) => /* @__PURE__ */ t(Tt, { children: /* @__PURE__ */ m(
590
- St,
589
+ minWidth: d
590
+ }) => /* @__PURE__ */ t(Yt, { children: /* @__PURE__ */ a(
591
+ Xt,
591
592
  {
592
593
  flexDirection: "column",
593
594
  alignItems: "center",
594
595
  maxWidth: c,
595
- minWidth: u,
596
+ minWidth: d,
596
597
  children: [
597
- e && /* @__PURE__ */ t(ke, { icon: e, size: "large" }),
598
- /* @__PURE__ */ t(ye, { children: n }),
599
- r && /* @__PURE__ */ t(Ae, { textAlign: "center", children: r }),
600
- s,
601
- o && /* @__PURE__ */ t(Et, { children: o })
598
+ e && /* @__PURE__ */ t(we, { icon: e, size: "large" }),
599
+ /* @__PURE__ */ t(De, { children: n }),
600
+ s && /* @__PURE__ */ t(K, { textAlign: "center", children: s }),
601
+ r,
602
+ o && /* @__PURE__ */ t(Gt, { children: o })
602
603
  ]
603
604
  }
604
- ) }), Pt = (e) => /* @__PURE__ */ t(
605
- ge,
605
+ ) }), Ut = (e) => /* @__PURE__ */ t(
606
+ Ne,
606
607
  {
607
608
  size: "large",
608
609
  variant: "danger",
609
- leftIcon: Me,
610
+ leftIcon: Pe,
610
611
  ...e
611
612
  }
612
- ), uo = ({
613
+ ), jo = ({
613
614
  heading: e,
614
615
  headingLevel: o,
615
616
  headingSize: n,
616
- onClickClose: r,
617
- closeButtonAriaLabel: s
618
- }) => /* @__PURE__ */ t(L, { children: /* @__PURE__ */ m(w, { justifyContent: "space-between", alignItems: "center", gap: 2, children: [
619
- e ? /* @__PURE__ */ t(ye, { headingLevel: o, size: n, children: e }) : /* @__PURE__ */ t("div", {}),
620
- r ? /* @__PURE__ */ t(
621
- Pt,
617
+ onClickClose: s,
618
+ closeButtonAriaLabel: r
619
+ }) => /* @__PURE__ */ t(w, { children: /* @__PURE__ */ a(p, { justifyContent: "space-between", alignItems: "center", gap: 2, children: [
620
+ e ? /* @__PURE__ */ t(De, { headingLevel: o, size: n, children: e }) : /* @__PURE__ */ t("div", {}),
621
+ s ? /* @__PURE__ */ t(
622
+ Ut,
622
623
  {
623
- onClick: r,
624
+ onClick: s,
624
625
  size: n,
625
- "aria-label": s
626
+ "aria-label": r
626
627
  }
627
628
  ) : null
628
- ] }) }), Ht = "_modalFooter_1ypno_1", jt = "_sticky_1ypno_10", _e = {
629
- modalFooter: Ht,
630
- sticky: jt
631
- }, _o = ({
629
+ ] }) }), Jt = "_modalFooter_1ypno_1", Kt = "_sticky_1ypno_10", pe = {
630
+ modalFooter: Jt,
631
+ sticky: Kt
632
+ }, Ho = ({
632
633
  sticky: e,
633
634
  zIndex: o = 4,
634
635
  gap: n = 2,
635
- className: r,
636
- ...s
636
+ className: s,
637
+ ...r
637
638
  }) => /* @__PURE__ */ t(
638
- w,
639
+ p,
639
640
  {
640
- className: a(_e.modalFooter, e && _e.sticky, r),
641
+ className: l(pe.modalFooter, e && pe.sticky, s),
641
642
  shadow: "var(--swui-sticky-footer-shadow)",
642
643
  zIndex: o,
643
644
  gap: n,
644
- ...s
645
+ ...r
645
646
  }
646
- );
647
+ ), Qt = "_unreadDot_l8bni_1", Zt = "_dot_l8bni_4", he = {
648
+ unreadDot: Qt,
649
+ dot: Zt
650
+ }, eo = ({ children: e }) => /* @__PURE__ */ a("div", { className: he.unreadDot, children: [
651
+ e,
652
+ /* @__PURE__ */ t("div", { className: he.dot })
653
+ ] }), to = "_notificationHeader_1rl25_1", oo = "_timestamp_1rl25_2", ye = {
654
+ notificationHeader: to,
655
+ timestamp: oo
656
+ }, Fe = ({
657
+ text: e,
658
+ timestamp: o,
659
+ icon: n,
660
+ iconAriaLabel: s,
661
+ contentLeft: r,
662
+ contentRight: c,
663
+ onClickClose: d,
664
+ unread: m = !1,
665
+ variant: h,
666
+ iconBackgroundColor: u,
667
+ forceCloseButtonAlignment: y
668
+ }) => {
669
+ const v = n ? /* @__PURE__ */ t(
670
+ we,
671
+ {
672
+ size: "small",
673
+ icon: n,
674
+ "aria-label": s,
675
+ variant: "whiteBg",
676
+ backgroundColor: u || no(m, h)
677
+ }
678
+ ) : void 0;
679
+ return /* @__PURE__ */ a(
680
+ p,
681
+ {
682
+ alignItems: "flex-start",
683
+ justifyContent: "space-between",
684
+ "data-comp": "NotificationHeader",
685
+ className: ye.notificationHeader,
686
+ gap: 2,
687
+ children: [
688
+ /* @__PURE__ */ a(p, { gap: 2, alignItems: "flex-start", children: [
689
+ r && /* @__PURE__ */ t(w, { justifyContent: "center", children: r }),
690
+ !r && v && /* @__PURE__ */ t(p, { alignItems: "center", height: "40px", children: m ? /* @__PURE__ */ t(eo, { children: v }) : v }),
691
+ /* @__PURE__ */ a(B, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
692
+ n || d || y ? /* @__PURE__ */ t(J, { num: 0.5 }) : null,
693
+ /* @__PURE__ */ t(K, { variant: "bold", children: e }),
694
+ o && /* @__PURE__ */ t("div", { className: ye.timestamp, children: /* @__PURE__ */ t(
695
+ K,
696
+ {
697
+ size: "small",
698
+ color: Be(
699
+ m ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
700
+ ),
701
+ children: o
702
+ }
703
+ ) })
704
+ ] })
705
+ ] }),
706
+ c && /* @__PURE__ */ t(w, { justifyContent: "center", children: c }),
707
+ d && /* @__PURE__ */ t(p, { alignItems: "center", height: "40px", width: "40px", children: /* @__PURE__ */ t(te, { onClick: d }) })
708
+ ]
709
+ }
710
+ );
711
+ }, no = (e, o) => {
712
+ if (!(!e && o === "standard"))
713
+ return "--lhds-color-ui-50";
714
+ }, so = "_notification_tpz0j_1", ro = "_body_tpz0j_10", ao = "_standard_tpz0j_15", lo = "_unread_tpz0j_16", co = "_danger_tpz0j_21", T = {
715
+ notification: so,
716
+ body: ro,
717
+ standard: ao,
718
+ unread: lo,
719
+ danger: co
720
+ }, So = ({
721
+ variant: e = "standard",
722
+ children: o,
723
+ unread: n,
724
+ ...s
725
+ }) => /* @__PURE__ */ a(
726
+ "div",
727
+ {
728
+ "data-comp": "Notification",
729
+ className: l(
730
+ T.notification,
731
+ T[e],
732
+ n && T.unread
733
+ ),
734
+ children: [
735
+ /* @__PURE__ */ t(Fe, { ...s, unread: n, variant: e }),
736
+ o && /* @__PURE__ */ t(w, { className: T.body, children: o })
737
+ ]
738
+ }
739
+ ), io = "_notificationList_1rkvu_1", mo = {
740
+ notificationList: io
741
+ }, Po = ({
742
+ children: e
743
+ }) => /* @__PURE__ */ a("div", { "data-comp": "NotificationList", className: mo.notificationList, children: [
744
+ e,
745
+ /* @__PURE__ */ t("div", {})
746
+ ] }), uo = "_toast_1ifzt_1", _o = "_body_1ifzt_2", ve = {
747
+ toast: uo,
748
+ body: _o
749
+ }, qo = ({
750
+ children: e,
751
+ width: o = 364,
752
+ maxWidth: n,
753
+ ...s
754
+ }) => /* @__PURE__ */ a(
755
+ B,
756
+ {
757
+ className: ve.toast,
758
+ "data-comp": "Toast",
759
+ width: o,
760
+ maxWidth: n,
761
+ children: [
762
+ /* @__PURE__ */ t(Fe, { forceCloseButtonAlignment: !0, ...s }),
763
+ e && /* @__PURE__ */ t("div", { className: ve.body, children: e })
764
+ ]
765
+ }
766
+ ), fo = "_toastBox_1lvsy_1", go = "_clickable_1lvsy_8", Ce = {
767
+ toastBox: fo,
768
+ clickable: go
769
+ }, Go = (e) => /* @__PURE__ */ t(
770
+ B,
771
+ {
772
+ as: e.onClick ? "button" : void 0,
773
+ className: l(Ce.toastBox, e.onClick && Ce.clickable),
774
+ "data-comp": "Toast",
775
+ role: "alert",
776
+ ...e
777
+ }
778
+ ), po = "_toastContainer_1rek2_1", ho = {
779
+ toastContainer: po
780
+ }, Vo = ({ ...e }) => /* @__PURE__ */ t(
781
+ qe,
782
+ {
783
+ className: ho.toastContainer,
784
+ closeButton: ({ closeToast: o }) => /* @__PURE__ */ t(te, { onClick: o }),
785
+ hideProgressBar: !0,
786
+ pauseOnFocusLoss: !1,
787
+ pauseOnHover: !0,
788
+ draggable: !1,
789
+ ...e
790
+ }
791
+ ), Xo = (e, o) => Ge(e, o);
647
792
  export {
648
- oo as Alert,
649
- qe as BaseWindow,
650
- he as DRAGGABLE_CANCEL_CLASSNAME,
651
- pe as DRAGGABLE_HANDLE_CLASSNAME,
652
- J as DialogContext,
653
- eo as Drawer,
654
- to as DrawerHeader,
655
- mo as InfoAlert,
656
- no as LoadingModal,
657
- mt as Modal,
658
- Et as ModalActionButtons,
659
- St as ModalBody,
660
- Pt as ModalCloseButton,
661
- Tt as ModalContainer,
662
- _o as ModalFooter,
663
- uo as ModalHeader,
664
- ye as ModalHeading,
665
- ro as Window,
666
- so as WindowFooter,
667
- ft as WindowHeader,
668
- Zt as setupDeclarativeModals,
669
- ao as useAlertDialog,
670
- U as useDialog,
671
- lo as useDialogPromise,
672
- co as useDrawerDialog,
673
- io as useModalDialog
793
+ Oo as Alert,
794
+ Qe as BaseWindow,
795
+ xe as DRAGGABLE_CANCEL_CLASSNAME,
796
+ $e as DRAGGABLE_HANDLE_CLASSNAME,
797
+ Q as DialogContext,
798
+ zo as Drawer,
799
+ Lo as DrawerHeader,
800
+ Wo as InfoAlert,
801
+ ko as LoadingModal,
802
+ vt as Modal,
803
+ Gt as ModalActionButtons,
804
+ Xt as ModalBody,
805
+ Ut as ModalCloseButton,
806
+ Yt as ModalContainer,
807
+ Ho as ModalFooter,
808
+ jo as ModalHeader,
809
+ De as ModalHeading,
810
+ So as Notification,
811
+ Fe as NotificationHeader,
812
+ Po as NotificationList,
813
+ qo as Toast,
814
+ Go as ToastBox,
815
+ Vo as ToastContainer,
816
+ eo as UnreadDot,
817
+ Io as Window,
818
+ Ao as WindowFooter,
819
+ Nt as WindowHeader,
820
+ no as getIconBgColorFromVariant,
821
+ Fo as setupDeclarativeModals,
822
+ Xo as showToast,
823
+ Mo as useAlertDialog,
824
+ oe as useDialog,
825
+ To as useDialogPromise,
826
+ Ro as useDrawerDialog,
827
+ Eo as useModalDialog
674
828
  };
675
829
  //# sourceMappingURL=index.es.js.map