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