@stenajs-webui/modal 21.29.12 → 21.29.14

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,45 +1,45 @@
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;top:0;left:0;right:0;bottom: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;top:0;right:0;bottom:0;left: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_r9tkq_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;top:0;left:0;right:0;bottom: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_r9tkq_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_r9tkq_1{background-color:#fff}}._overlay_r9tkq_1 ._modal_r9tkq_31{max-width:100%;outline:none;pointer-events:none;padding:var(--swui-metrics-space)}._overlay_r9tkq_1 ._content_r9tkq_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_r9tkq_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_r9tkq_1 ._content_r9tkq_38{box-shadow:none;top:0}}._overlay_r9tkq_1 ._content_r9tkq_38 :focus{outline:0}._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle{cursor:move}._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle .draggable-modal-cancel,._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_r9tkq_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_r9tkq_1{0%{opacity:0}to{opacity:1}}._footer_r9tkq_92{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_r9tkq_96{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_r9tkq_96{position:static;box-shadow:none}}._overlay_1e95n_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;top:0;left:0;right:0;bottom:0;background-color:var(--swui-modal-overlay-bg-color);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;opacity:0}._overlay_1e95n_1._afterOpen_1e95n_24:not(._beforeClose_1e95n_24){animation:_fadeIn_1e95n_1 var(--swui-modal-animation-time) forwards}._overlay_1e95n_1._beforeClose_1e95n_24{animation:_fadeOut_1e95n_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_1e95n_1{background-color:#fff}}._overlay_1e95n_1 ._modal_1e95n_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_1e95n_1 ._modal_1e95n_36{padding:0;width:100%}}._overlay_1e95n_1 ._modal_1e95n_36._afterOpen_1e95n_24:not(._beforeClose_1e95n_24){animation:_slideIn_1e95n_1 var(--swui-modal-animation-time) forwards}._overlay_1e95n_1 ._modal_1e95n_36._beforeClose_1e95n_24{animation:_slideOut_1e95n_1 var(--swui-modal-animation-time) forwards}._overlay_1e95n_1 ._content_1e95n_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;scrollbar-gutter:stable;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);height:100%;overflow:hidden;overflow-y:auto}@media (max-width: 768px){._overlay_1e95n_1 ._content_1e95n_59{border-radius:0;width:100%;max-width:100%;min-height:100dvh}}@media (min-width: 769px){._overlay_1e95n_1 ._content_1e95n_59{border-radius:var(--swui-border-radius-large)}._overlay_1e95n_1 ._content_1e95n_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._overlay_1e95n_1 ._content_1e95n_59::-webkit-scrollbar{width:16px}}@media print{._overlay_1e95n_1 ._content_1e95n_59{box-shadow:none;top:0}}._overlay_1e95n_1 ._content_1e95n_59 :focus{outline:0}@keyframes _fadeIn_1e95n_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1e95n_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_1e95n_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_1e95n_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_1e95n_151{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_1e95n_155{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_1e95n_155{position:static;box-shadow:none}}._modal_4fwgb_1{display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;background-color:transparent}._overlay_4fwgb_13{position:fixed;top:0;left:0;right:0;bottom: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;top:0;right:0;bottom:0;left: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_1teni_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_1teni_1{border-radius:var(--swui-border-radius-large)}._modalDialog_1teni_1::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._modalDialog_1teni_1::-webkit-scrollbar{width:16px}}._modalDialog_1teni_1:not([open]){display:none}._modalDialog_1teni_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_1teni_1 .25s forwards}._modalDialog_1teni_1._closing_1teni_36[open]{animation:_slideOut_1teni_1 .25s forwards}@media (max-width: 768px){._modalDialog_1teni_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_1teni_1::backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0d0e1080;animation:_fadeIn_1teni_1 .25s forwards}._modalDialog_1teni_1._closing_1teni_36::backdrop{animation:_fadeOut_1teni_1 .25s forwards}@keyframes _fadeIn_1teni_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1teni_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_1teni_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_1teni_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@media (max-width: 768px){._contentWrapper_1teni_100{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}}._modalFooter_112wr_1._modalFooter_112wr_1{display:flex;align-items:center;overflow:hidden;background:var(--silver-lighter);border-radius:24px 24px 0 0;padding:0 calc((var(--swui-metrics-indent) * 5));flex-shrink:0}._modalFooter_112wr_1._modalFooter_112wr_1._sticky_112wr_10{position:-webkit-sticky;position:sticky;bottom:0}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import x from "react-modal";
3
- import { jsx as n, jsxs as m, Fragment as re } from "react/jsx-runtime";
4
- import { useRef as k, createContext as we, useReducer as Ie, useState as V, useCallback as A, useMemo as le, createElement as ae, useContext as be } from "react";
5
- import Oe from "react-draggable";
6
- import d from "classnames";
7
- import { exhaustSwitchCase as Ne, Spacing as Q, Row as I, Space as ce, Heading as U, Column as Z, Box as B, Indent as $e, Txt as ve, Text as Fe } from "@stenajs-webui/core";
8
- import { Icon as _e, FlatButton as ke, stenaTimes as De, Spinner as Be, CloseButton as ue, CircledIcon as xe } from "@stenajs-webui/elements";
9
- import { cssColor as Ae } from "@stenajs-webui/theme";
10
- const fn = (t) => {
11
- x.setAppElement(t);
12
- }, Le = "_overlay_quvmp_1", ze = "_fadeIn_quvmp_1", Me = "_modal_quvmp_31", We = "_content_quvmp_41", qe = "_appear_quvmp_1", Se = "_isDraggable_quvmp_70", Te = "_footer_quvmp_101", Ee = "_stickyFooter_quvmp_105", D = {
13
- overlay: Le,
14
- fadeIn: ze,
15
- modal: Me,
16
- content: We,
17
- appear: qe,
18
- isDraggable: Se,
19
- footer: Te,
20
- stickyFooter: Ee
21
- }, me = "draggable-modal-handle", fe = "draggable-modal-cancel", He = ({
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;top:0;left:0;right:0;bottom: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;top:0;right:0;bottom:0;left: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_r9tkq_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;top:0;left:0;right:0;bottom: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_r9tkq_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_r9tkq_1{background-color:#fff}}._overlay_r9tkq_1 ._modal_r9tkq_31{max-width:100%;outline:none;pointer-events:none;padding:var(--swui-metrics-space)}._overlay_r9tkq_1 ._content_r9tkq_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_r9tkq_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_r9tkq_1 ._content_r9tkq_38{box-shadow:none;top:0}}._overlay_r9tkq_1 ._content_r9tkq_38 :focus{outline:0}._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle{cursor:move}._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle .draggable-modal-cancel,._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_r9tkq_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_r9tkq_1{0%{opacity:0}to{opacity:1}}._footer_r9tkq_92{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_r9tkq_96{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_r9tkq_96{position:static;box-shadow:none}}._overlay_t8y1o_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;top:0;left:0;right:0;bottom:0;background-color:var(--swui-modal-overlay-bg-color);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;opacity:0}._overlay_t8y1o_1._afterOpen_t8y1o_24:not(._beforeClose_t8y1o_24){animation:_fadeIn_t8y1o_1 var(--swui-modal-animation-time) forwards}._overlay_t8y1o_1._beforeClose_t8y1o_24{animation:_fadeOut_t8y1o_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_t8y1o_1{background-color:#fff}}._overlay_t8y1o_1 ._modal_t8y1o_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_t8y1o_1 ._modal_t8y1o_36{padding:0;width:100%}}._overlay_t8y1o_1 ._modal_t8y1o_36._afterOpen_t8y1o_24:not(._beforeClose_t8y1o_24){animation:_slideIn_t8y1o_1 var(--swui-modal-animation-time) forwards}._overlay_t8y1o_1 ._modal_t8y1o_36._beforeClose_t8y1o_24{animation:_slideOut_t8y1o_1 var(--swui-modal-animation-time) forwards}._overlay_t8y1o_1 ._content_t8y1o_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_t8y1o_1 ._content_t8y1o_59{border-radius:0;width:100%;max-width:100%;min-height:100dvh}}@media (min-width: 769px){._overlay_t8y1o_1 ._content_t8y1o_59{border-radius:var(--swui-border-radius-large)}._overlay_t8y1o_1 ._content_t8y1o_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._overlay_t8y1o_1 ._content_t8y1o_59::-webkit-scrollbar{width:16px}}@media print{._overlay_t8y1o_1 ._content_t8y1o_59{box-shadow:none;top:0}}._overlay_t8y1o_1 ._content_t8y1o_59 :focus{outline:0}@keyframes _fadeIn_t8y1o_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_t8y1o_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_t8y1o_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_t8y1o_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_t8y1o_148{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_t8y1o_152{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_t8y1o_152{position:static;box-shadow:none}}._modal_4fwgb_1{display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;background-color:transparent}._overlay_4fwgb_13{position:fixed;top:0;left:0;right:0;bottom: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;top:0;right:0;bottom:0;left: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_1teni_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_1teni_1{border-radius:var(--swui-border-radius-large)}._modalDialog_1teni_1::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._modalDialog_1teni_1::-webkit-scrollbar{width:16px}}._modalDialog_1teni_1:not([open]){display:none}._modalDialog_1teni_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_1teni_1 .25s forwards}._modalDialog_1teni_1._closing_1teni_36[open]{animation:_slideOut_1teni_1 .25s forwards}@media (max-width: 768px){._modalDialog_1teni_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_1teni_1::backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0d0e1080;animation:_fadeIn_1teni_1 .25s forwards}._modalDialog_1teni_1._closing_1teni_36::backdrop{animation:_fadeOut_1teni_1 .25s forwards}@keyframes _fadeIn_1teni_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1teni_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_1teni_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_1teni_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@media (max-width: 768px){._contentWrapper_1teni_100{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}}._modalFooter_112wr_1._modalFooter_112wr_1{display:flex;align-items:center;overflow:hidden;background:var(--silver-lighter);border-radius:24px 24px 0 0;padding:0 calc((var(--swui-metrics-indent) * 5));flex-shrink:0}._modalFooter_112wr_1._modalFooter_112wr_1._sticky_112wr_10{position:-webkit-sticky;position:sticky;bottom:0}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import B from "react-modal";
3
+ import { jsx as n, jsxs as g, Fragment as se } from "react/jsx-runtime";
4
+ import { useRef as F, useState as E, useEffect as ve, createContext as be, useReducer as Ie, useCallback as A, useMemo as le, createElement as ae, useContext as Oe } from "react";
5
+ import Ne from "react-draggable";
6
+ import _ from "classnames";
7
+ import { exhaustSwitchCase as $e, Spacing as Q, Row as b, Space as ce, Heading as U, useEventCallback as Fe, Column as Z, Box as L, Indent as ke, Txt as De, Text as Le } from "@stenajs-webui/core";
8
+ import { Icon as ue, FlatButton as Be, stenaTimes as Ae, Spinner as xe, CloseButton as me, CircledIcon as ze } from "@stenajs-webui/elements";
9
+ import { cssColor as Me } from "@stenajs-webui/theme";
10
+ const yn = (t) => {
11
+ B.setAppElement(t);
12
+ }, Ee = "_overlay_quvmp_1", Se = "_fadeIn_quvmp_1", We = "_modal_quvmp_31", qe = "_content_quvmp_41", Te = "_appear_quvmp_1", He = "_isDraggable_quvmp_70", Ge = "_footer_quvmp_101", Pe = "_stickyFooter_quvmp_105", D = {
13
+ overlay: Ee,
14
+ fadeIn: Se,
15
+ modal: We,
16
+ content: qe,
17
+ appear: Te,
18
+ isDraggable: He,
19
+ footer: Ge,
20
+ stickyFooter: Pe
21
+ }, fe = "draggable-modal-handle", ge = "draggable-modal-cancel", Ve = ({
22
22
  width: t,
23
23
  maxWidth: e,
24
24
  draggable: o = !1,
25
- children: s,
26
- ...c
25
+ children: r,
26
+ ...a
27
27
  }) => {
28
- const f = k(null);
28
+ const u = F(null);
29
29
  return /* @__PURE__ */ n(
30
- x,
30
+ B,
31
31
  {
32
32
  overlayClassName: D.overlay,
33
33
  className: D.modal,
34
- ...c,
34
+ ...a,
35
35
  children: /* @__PURE__ */ n(
36
- Oe,
36
+ Ne,
37
37
  {
38
- handle: `.${me}`,
39
- cancel: `.${fe}, button, [role="tooltip"]`,
38
+ handle: `.${fe}`,
39
+ cancel: `.${ge}, button, [role="tooltip"]`,
40
40
  bounds: ".ReactModal__Overlay",
41
41
  disabled: !o,
42
- nodeRef: f,
42
+ nodeRef: u,
43
43
  children: /* @__PURE__ */ n(
44
44
  "div",
45
45
  {
@@ -47,106 +47,106 @@ const fn = (t) => {
47
47
  "--swui-modal-width": t,
48
48
  "--swui-modal-max-width": e
49
49
  },
50
- className: d(D.content, {
50
+ className: _(D.content, {
51
51
  [D.isDraggable]: o
52
52
  }),
53
- ref: f,
54
- children: s
53
+ ref: u,
54
+ children: r
55
55
  }
56
56
  )
57
57
  }
58
58
  )
59
59
  }
60
60
  );
61
- }, Pe = "_portal_17ze5_1", Ge = "_overlay_17ze5_4", Ve = "_content_17ze5_9", Xe = "_floating_17ze5_15", Ye = "_slideFromLeft_17ze5_29", Je = "_slideFromRight_17ze5_30", Ke = "_afterOpen_17ze5_36", Qe = "_beforeClose_17ze5_40", Ue = "_slideFromTop_17ze5_45", Ze = "_slideFromBottom_17ze5_46", u = {
62
- portal: Pe,
63
- overlay: Ge,
64
- content: Ve,
65
- floating: Xe,
66
- slideFromLeft: Ye,
67
- slideFromRight: Je,
68
- afterOpen: Ke,
69
- beforeClose: Qe,
70
- slideFromTop: Ue,
71
- slideFromBottom: Ze
72
- }, gn = ({
61
+ }, Xe = "_portal_17ze5_1", Ye = "_overlay_17ze5_4", Je = "_content_17ze5_9", Ke = "_floating_17ze5_15", Qe = "_slideFromLeft_17ze5_29", Ue = "_slideFromRight_17ze5_30", Ze = "_afterOpen_17ze5_36", Re = "_beforeClose_17ze5_40", je = "_slideFromTop_17ze5_45", et = "_slideFromBottom_17ze5_46", f = {
62
+ portal: Xe,
63
+ overlay: Ye,
64
+ content: Je,
65
+ floating: Ke,
66
+ slideFromLeft: Qe,
67
+ slideFromRight: Ue,
68
+ afterOpen: Ze,
69
+ beforeClose: Re,
70
+ slideFromTop: je,
71
+ slideFromBottom: et
72
+ }, pn = ({
73
73
  background: t,
74
74
  zIndex: e,
75
75
  children: o,
76
- slideFrom: s = "left",
77
- portalTarget: c,
78
- floating: f,
79
- ...g
76
+ slideFrom: r = "left",
77
+ portalTarget: a,
78
+ floating: u,
79
+ ...h
80
80
  }) => {
81
- const { height: h, width: b } = g;
81
+ const { height: l, width: y } = h;
82
82
  return /* @__PURE__ */ n(
83
- x,
83
+ B,
84
84
  {
85
85
  closeTimeoutMS: 250,
86
- portalClassName: u.portal,
86
+ portalClassName: f.portal,
87
87
  overlayClassName: {
88
- base: u.overlay,
89
- afterOpen: u.afterOpen,
90
- beforeClose: u.beforeClose
88
+ base: f.overlay,
89
+ afterOpen: f.afterOpen,
90
+ beforeClose: f.beforeClose
91
91
  },
92
92
  className: {
93
- base: d(
94
- u.content,
95
- Re(s),
96
- f && u.floating
93
+ base: _(
94
+ f.content,
95
+ tt(r),
96
+ u && f.floating
97
97
  ),
98
- afterOpen: u.afterOpen,
99
- beforeClose: u.beforeClose
98
+ afterOpen: f.afterOpen,
99
+ beforeClose: f.beforeClose
100
100
  },
101
- style: { content: { width: b, height: h, background: t }, overlay: { zIndex: e } },
102
- parentSelector: c ? () => c : void 0,
103
- ...g,
101
+ style: { content: { width: y, height: l, background: t }, overlay: { zIndex: e } },
102
+ parentSelector: a ? () => a : void 0,
103
+ ...h,
104
104
  children: o
105
105
  }
106
106
  );
107
- }, Re = (t) => {
107
+ }, tt = (t) => {
108
108
  switch (t) {
109
109
  case "left":
110
- return u.slideFromLeft;
110
+ return f.slideFromLeft;
111
111
  case "right":
112
- return u.slideFromRight;
112
+ return f.slideFromRight;
113
113
  case "top":
114
- return u.slideFromTop;
114
+ return f.slideFromTop;
115
115
  case "bottom":
116
- return u.slideFromBottom;
116
+ return f.slideFromBottom;
117
117
  default:
118
- return Ne(t, u.slideFromLeft);
118
+ return $e(t, f.slideFromLeft);
119
119
  }
120
- }, hn = ({
120
+ }, Cn = ({
121
121
  header: t,
122
122
  contentRight: e,
123
123
  onRequestClose: o,
124
- icon: s
124
+ icon: r
125
125
  }) => /* @__PURE__ */ n(
126
126
  Q,
127
127
  {
128
128
  position: "sticky",
129
129
  top: 0,
130
130
  zIndex: 100,
131
- background: Ae("--lhds-color-ui-50"),
132
- children: /* @__PURE__ */ m(
133
- I,
131
+ background: Me("--lhds-color-ui-50"),
132
+ children: /* @__PURE__ */ g(
133
+ b,
134
134
  {
135
135
  justifyContent: "space-between",
136
136
  alignItems: "center",
137
137
  height: "48px",
138
138
  children: [
139
- /* @__PURE__ */ m(I, { alignItems: "center", gap: 2, children: [
139
+ /* @__PURE__ */ g(b, { alignItems: "center", gap: 2, children: [
140
140
  /* @__PURE__ */ n(ce, { num: 1 }),
141
- s && /* @__PURE__ */ n(_e, { icon: s, size: 24 }),
141
+ r && /* @__PURE__ */ n(ue, { icon: r, size: 24 }),
142
142
  /* @__PURE__ */ n(U, { variant: "h4", children: t })
143
143
  ] }),
144
- /* @__PURE__ */ m(I, { gap: 1, children: [
144
+ /* @__PURE__ */ g(b, { gap: 1, children: [
145
145
  e,
146
146
  /* @__PURE__ */ n(
147
- ke,
147
+ Be,
148
148
  {
149
- leftIcon: De,
149
+ leftIcon: Ae,
150
150
  onClick: o,
151
151
  variant: "danger"
152
152
  }
@@ -157,24 +157,24 @@ const fn = (t) => {
157
157
  }
158
158
  )
159
159
  }
160
- ), je = "_overlay_r9tkq_1", et = "_fadeIn_r9tkq_1", tt = "_modal_r9tkq_31", nt = "_content_r9tkq_38", ot = "_appear_r9tkq_1", st = "_isDraggable_r9tkq_61", rt = "_footer_r9tkq_92", lt = "_stickyFooter_r9tkq_96", X = {
161
- overlay: je,
162
- fadeIn: et,
163
- modal: tt,
164
- content: nt,
165
- appear: ot,
166
- isDraggable: st,
167
- footer: rt,
168
- stickyFooter: lt
169
- }, at = { overlay: { justifyContent: "center" } }, pn = ({
160
+ ), nt = "_overlay_r9tkq_1", ot = "_fadeIn_r9tkq_1", rt = "_modal_r9tkq_31", st = "_content_r9tkq_38", lt = "_appear_r9tkq_1", at = "_isDraggable_r9tkq_61", ct = "_footer_r9tkq_92", it = "_stickyFooter_r9tkq_96", X = {
161
+ overlay: nt,
162
+ fadeIn: ot,
163
+ modal: rt,
164
+ content: st,
165
+ appear: lt,
166
+ isDraggable: at,
167
+ footer: ct,
168
+ stickyFooter: it
169
+ }, dt = { overlay: { justifyContent: "center" } }, wn = ({
170
170
  children: t,
171
171
  ...e
172
172
  }) => /* @__PURE__ */ n(
173
- x,
173
+ B,
174
174
  {
175
175
  overlayClassName: X.overlay,
176
176
  className: X.modal,
177
- style: at,
177
+ style: dt,
178
178
  ...e,
179
179
  children: /* @__PURE__ */ n(
180
180
  "div",
@@ -185,74 +185,90 @@ const fn = (t) => {
185
185
  }
186
186
  )
187
187
  }
188
- ), ct = "_overlay_1e95n_1", it = "_afterOpen_1e95n_24", dt = "_beforeClose_1e95n_24", _t = "_fadeIn_1e95n_1", ut = "_fadeOut_1e95n_1", mt = "_modal_1e95n_36", ft = "_slideIn_1e95n_1", gt = "_slideOut_1e95n_1", ht = "_content_1e95n_59", pt = "_footer_1e95n_151", yt = "_stickyFooter_1e95n_155", v = {
189
- overlay: ct,
190
- afterOpen: it,
191
- beforeClose: dt,
192
- fadeIn: _t,
193
- fadeOut: ut,
194
- modal: mt,
195
- slideIn: ft,
196
- slideOut: gt,
197
- content: ht,
198
- footer: pt,
199
- stickyFooter: yt
200
- }, Ct = ({
188
+ ), _t = "_overlay_t8y1o_1", ut = "_afterOpen_t8y1o_24", mt = "_beforeClose_t8y1o_24", ft = "_fadeIn_t8y1o_1", gt = "_fadeOut_t8y1o_1", ht = "_modal_t8y1o_36", yt = "_slideIn_t8y1o_1", pt = "_slideOut_t8y1o_1", Ct = "_content_t8y1o_59", wt = "_footer_t8y1o_148", vt = "_stickyFooter_t8y1o_152", $ = {
189
+ overlay: _t,
190
+ afterOpen: ut,
191
+ beforeClose: mt,
192
+ fadeIn: ft,
193
+ fadeOut: gt,
194
+ modal: ht,
195
+ slideIn: yt,
196
+ slideOut: pt,
197
+ content: Ct,
198
+ footer: wt,
199
+ stickyFooter: vt
200
+ }, ie = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), bt = ({
201
201
  children: t,
202
202
  background: e,
203
203
  ...o
204
204
  }) => {
205
- const s = {
205
+ const r = F(null), [a, u] = E(ie ? "auto" : void 0), h = {
206
206
  overlay: { justifyContent: "center" },
207
- content: { "--swui-modal-content-bg-color": e }
208
- };
209
- return /* @__PURE__ */ n(
210
- x,
207
+ content: {
208
+ "--swui-modal-content-bg-color": e
209
+ }
210
+ }, l = Fe(() => {
211
+ if (!ie)
212
+ return;
213
+ const y = r.current;
214
+ y && u(
215
+ y.scrollHeight > y.clientHeight ? "stable" : "auto"
216
+ );
217
+ });
218
+ return ve(() => (window.addEventListener("resize", l), document.addEventListener("DOMContentLoaded", l), () => {
219
+ window.removeEventListener("resize", l), document.removeEventListener("DOMContentLoaded", l);
220
+ }), [l]), /* @__PURE__ */ n(
221
+ B,
211
222
  {
212
223
  overlayClassName: {
213
- base: v.overlay,
214
- beforeClose: v.beforeClose,
215
- afterOpen: v.afterOpen
224
+ base: $.overlay,
225
+ beforeClose: $.beforeClose,
226
+ afterOpen: $.afterOpen
216
227
  },
217
228
  className: {
218
- base: v.modal,
219
- beforeClose: v.beforeClose,
220
- afterOpen: v.afterOpen
229
+ base: $.modal,
230
+ beforeClose: $.beforeClose,
231
+ afterOpen: $.afterOpen
221
232
  },
222
- style: s,
233
+ style: h,
223
234
  closeTimeoutMS: 250,
235
+ onAfterOpen: l,
224
236
  ...o,
225
237
  children: /* @__PURE__ */ n(
226
238
  "div",
227
239
  {
228
- className: v.content,
229
- style: { "--swui-modal-width": "fit-content" },
240
+ className: $.content,
241
+ style: {
242
+ "--swui-modal-width": "fit-content",
243
+ scrollbarGutter: a
244
+ },
245
+ ref: r,
230
246
  children: t
231
247
  }
232
248
  )
233
249
  }
234
250
  );
235
- }, wt = "_modal_4fwgb_1", It = "_overlay_4fwgb_13", ie = {
236
- modal: wt,
237
- overlay: It
238
- }, yn = ({
251
+ }, It = "_modal_4fwgb_1", Ot = "_overlay_4fwgb_13", de = {
252
+ modal: It,
253
+ overlay: Ot
254
+ }, vn = ({
239
255
  headerIconLeft: t,
240
256
  headerText: e,
241
257
  shouldCloseOnOverlayClick: o = !1,
242
- shouldCloseOnEsc: s = !1,
243
- ...c
258
+ shouldCloseOnEsc: r = !1,
259
+ ...a
244
260
  }) => /* @__PURE__ */ n(
245
- x,
261
+ B,
246
262
  {
247
- ...c,
263
+ ...a,
248
264
  isOpen: !0,
249
265
  shouldCloseOnOverlayClick: o,
250
- shouldCloseOnEsc: s,
251
- className: ie.modal,
252
- overlayClassName: ie.overlay,
253
- children: /* @__PURE__ */ m(Z, { spacing: 2, alignItems: "center", children: [
266
+ shouldCloseOnEsc: r,
267
+ className: de.modal,
268
+ overlayClassName: de.overlay,
269
+ children: /* @__PURE__ */ g(Z, { spacing: 2, alignItems: "center", children: [
254
270
  /* @__PURE__ */ n(
255
- B,
271
+ L,
256
272
  {
257
273
  alignItems: "center",
258
274
  justifyContent: "center",
@@ -261,302 +277,302 @@ const fn = (t) => {
261
277
  borderRadius: "50%",
262
278
  background: "white",
263
279
  shadow: "modal",
264
- children: /* @__PURE__ */ n(Be, { size: "small" })
280
+ children: /* @__PURE__ */ n(xe, { size: "small" })
265
281
  }
266
282
  ),
267
- (t || e) && /* @__PURE__ */ m(re, { children: [
283
+ (t || e) && /* @__PURE__ */ g(se, { children: [
268
284
  /* @__PURE__ */ n(Q, {}),
269
- /* @__PURE__ */ m(I, { indent: 2, children: [
270
- t && /* @__PURE__ */ m(re, { children: [
271
- /* @__PURE__ */ n(_e, { size: 14, icon: t, color: "white" }),
272
- /* @__PURE__ */ n($e, {})
285
+ /* @__PURE__ */ g(b, { indent: 2, children: [
286
+ t && /* @__PURE__ */ g(se, { children: [
287
+ /* @__PURE__ */ n(ue, { size: 14, icon: t, color: "white" }),
288
+ /* @__PURE__ */ n(ke, {})
273
289
  ] }),
274
290
  e && /* @__PURE__ */ n(U, { variant: "h4", color: "white", children: e })
275
291
  ] })
276
292
  ] })
277
293
  ] })
278
294
  }
279
- ), bt = ({
295
+ ), Nt = ({
280
296
  onRequestClose: t,
281
297
  header: e,
282
298
  headerText: o,
283
- closeButtonClassName: s
284
- }) => /* @__PURE__ */ m(
285
- I,
299
+ closeButtonClassName: r
300
+ }) => /* @__PURE__ */ g(
301
+ b,
286
302
  {
287
303
  spacing: 2,
288
304
  indent: 2,
289
305
  borderBottom: "1px solid var(--lhds-color-ui-300)",
290
- className: me,
306
+ className: fe,
291
307
  children: [
292
- /* @__PURE__ */ m(I, { flex: 1, indent: !0, alignItems: "center", children: [
293
- o && /* @__PURE__ */ n(ve, { className: fe, size: "large", children: o }),
308
+ /* @__PURE__ */ g(b, { flex: 1, indent: !0, alignItems: "center", children: [
309
+ o && /* @__PURE__ */ n(De, { className: ge, size: "large", children: o }),
294
310
  e
295
311
  ] }),
296
- /* @__PURE__ */ n(B, { alignSelf: "flex-start", children: /* @__PURE__ */ n(
297
- ue,
312
+ /* @__PURE__ */ n(L, { alignSelf: "flex-start", children: /* @__PURE__ */ n(
313
+ me,
298
314
  {
299
- className: s,
315
+ className: r,
300
316
  onClick: t
301
317
  }
302
318
  ) })
303
319
  ]
304
320
  }
305
- ), Cn = ({
321
+ ), bn = ({
306
322
  header: t,
307
323
  headerText: e,
308
324
  children: o,
309
- spacing: s,
310
- indent: c,
311
- draggable: f = !1,
312
- onRequestClose: g,
313
- closeButtonClassName: h,
314
- footer: b,
315
- disableStickyFooter: y = !1,
316
- ..._
317
- }) => /* @__PURE__ */ m(
318
- He,
325
+ spacing: r,
326
+ indent: a,
327
+ draggable: u = !1,
328
+ onRequestClose: h,
329
+ closeButtonClassName: l,
330
+ footer: y,
331
+ disableStickyFooter: C = !1,
332
+ ...m
333
+ }) => /* @__PURE__ */ g(
334
+ Ve,
319
335
  {
320
- ..._,
321
- onRequestClose: g,
322
- draggable: f,
336
+ ...m,
337
+ onRequestClose: h,
338
+ draggable: u,
323
339
  children: [
324
340
  /* @__PURE__ */ n(
325
- bt,
341
+ Nt,
326
342
  {
327
- onRequestClose: g,
343
+ onRequestClose: h,
328
344
  header: t,
329
345
  headerText: e,
330
- closeButtonClassName: h
346
+ closeButtonClassName: l
331
347
  }
332
348
  ),
333
- /* @__PURE__ */ n(B, { spacing: typeof s == "number" ? s : 1, indent: typeof c == "number" ? c : 1, children: o }),
334
- b && /* @__PURE__ */ n(
335
- B,
349
+ /* @__PURE__ */ n(L, { spacing: typeof r == "number" ? r : 1, indent: typeof a == "number" ? a : 1, children: o }),
350
+ y && /* @__PURE__ */ n(
351
+ L,
336
352
  {
337
- className: d(D.footer, {
338
- [D.stickyFooter]: !y
353
+ className: _(D.footer, {
354
+ [D.stickyFooter]: !C
339
355
  }),
340
- children: b
356
+ children: y
341
357
  }
342
358
  )
343
359
  ]
344
360
  }
345
- ), wn = ({ children: t }) => /* @__PURE__ */ n(Z, { indent: 2, spacing: 2, children: t }), K = we(
361
+ ), In = ({ children: t }) => /* @__PURE__ */ n(Z, { indent: 2, spacing: 2, children: t }), K = be(
346
362
  void 0
347
363
  );
348
364
  function R(t, {
349
365
  ref: e,
350
366
  modal: o,
351
- contentWrapperClassName: s,
352
- closingClassName: c,
353
- contentWrapperStyle: f,
354
- dialogStyle: g,
355
- divInsteadOfDialog: h,
356
- disableCloseOnClickOutside: b,
357
- onResolve: y,
358
- onReject: _,
359
- className: W,
360
- background: L,
361
- label: q,
362
- labelledby: S,
367
+ contentWrapperClassName: r,
368
+ closingClassName: a,
369
+ contentWrapperStyle: u,
370
+ dialogStyle: h,
371
+ divInsteadOfDialog: l,
372
+ disableCloseOnClickOutside: y,
373
+ onResolve: C,
374
+ onReject: m,
375
+ className: S,
376
+ background: x,
377
+ label: W,
378
+ labelledby: q,
363
379
  describedby: T
364
380
  }) {
365
- const he = k(null), i = e ?? he, [E, pe] = Ie((r) => r + 1, 0), j = k(null), O = k(null), C = k(void 0), p = k(null), [ee, z] = V(!1), [H, F] = V(!1), [te, w] = V(!1), P = t, ye = A(
366
- (r) => {
367
- var l, a;
381
+ const ye = F(null), d = e ?? ye, [H, pe] = Ie((s) => s + 1, 0), j = F(null), I = F(null), w = F(void 0), p = F(null), [ee, z] = E(!1), [G, k] = E(!1), [te, v] = E(!1), P = t, Ce = A(
382
+ (s) => {
383
+ var c, i;
368
384
  return j.current = new Promise(
369
- ($, Ce) => {
370
- O.current = $, p.current = Ce;
385
+ (N, we) => {
386
+ I.current = N, p.current = we;
371
387
  }
372
- ), w(!1), z(!0), F(!0), pe(), C.current = r, o ? (l = i.current) == null || l.showModal() : (a = i.current) == null || a.show(), j.current;
388
+ ), v(!1), z(!0), k(!0), pe(), w.current = s, o ? (c = d.current) == null || c.showModal() : (i = d.current) == null || i.show(), j.current;
373
389
  },
374
- [i, o]
390
+ [d, o]
375
391
  ), ne = A(
376
- (r) => {
377
- var l;
378
- w(!0), z(!1), h ? setTimeout(() => {
379
- var a;
380
- w(!1), F(!1), (a = O.current) == null || a.call(O, r), C.current = void 0, y == null || y();
381
- }, 300) : (l = i.current) == null || l.addEventListener(
392
+ (s) => {
393
+ var c;
394
+ v(!0), z(!1), l ? setTimeout(() => {
395
+ var i;
396
+ v(!1), k(!1), (i = I.current) == null || i.call(I, s), w.current = void 0, C == null || C();
397
+ }, 300) : (c = d.current) == null || c.addEventListener(
382
398
  "animationend",
383
399
  () => {
384
- var a, $;
385
- w(!1), F(!1), (a = i.current) == null || a.close(), ($ = O.current) == null || $.call(O, r), C.current = void 0, y == null || y();
400
+ var i, N;
401
+ v(!1), k(!1), (i = d.current) == null || i.close(), (N = I.current) == null || N.call(I, s), w.current = void 0, C == null || C();
386
402
  },
387
403
  { once: !0 }
388
404
  );
389
405
  },
390
- [i, y, h]
406
+ [d, C, l]
391
407
  ), oe = A(() => {
392
- var r;
393
- w(!1), z(!1), F(!1), (r = p.current) == null || r.call(p), _ == null || _(), C.current = void 0;
394
- }, [_]), N = A(
395
- (r) => {
396
- var l;
397
- w(!0), z(!1), h ? setTimeout(() => {
398
- var a;
399
- w(!1), F(!1), (a = p.current) == null || a.call(p, r), _ == null || _(), C.current = void 0;
400
- }, 300) : (l = i.current) == null || l.addEventListener(
408
+ var s;
409
+ v(!1), z(!1), k(!1), (s = p.current) == null || s.call(p), m == null || m(), w.current = void 0;
410
+ }, [m]), O = A(
411
+ (s) => {
412
+ var c;
413
+ v(!0), z(!1), l ? setTimeout(() => {
414
+ var i;
415
+ v(!1), k(!1), (i = p.current) == null || i.call(p, s), m == null || m(), w.current = void 0;
416
+ }, 300) : (c = d.current) == null || c.addEventListener(
401
417
  "animationend",
402
418
  () => {
403
- var a, $;
404
- w(!1), F(!1), (a = i.current) == null || a.close(), ($ = p.current) == null || $.call(p, r), _ == null || _(), C.current = void 0;
419
+ var i, N;
420
+ v(!1), k(!1), (i = d.current) == null || i.close(), (N = p.current) == null || N.call(p, s), m == null || m(), w.current = void 0;
405
421
  },
406
422
  { once: !0 }
407
423
  );
408
424
  },
409
- [i, h, _]
410
- ), se = A(
411
- (r) => {
412
- if (r.target !== i.current)
425
+ [d, l, m]
426
+ ), re = A(
427
+ (s) => {
428
+ if (s.target !== d.current)
413
429
  return;
414
- const l = i.current.getBoundingClientRect();
415
- l.top <= r.clientY && r.clientY <= l.top + l.height && l.left <= r.clientX && r.clientX <= l.left + l.width || N();
430
+ const c = d.current.getBoundingClientRect();
431
+ c.top <= s.clientY && s.clientY <= c.top + c.height && c.left <= s.clientX && s.clientX <= c.left + c.width || O();
416
432
  },
417
- [i, N]
418
- ), G = le(
419
- () => ({ resolve: ne, reject: N }),
420
- [N, ne]
433
+ [d, O]
434
+ ), V = le(
435
+ () => ({ resolve: ne, reject: O }),
436
+ [O, ne]
421
437
  );
422
438
  return [le(
423
- () => h ? /* @__PURE__ */ n(
424
- Ct,
439
+ () => l ? /* @__PURE__ */ n(
440
+ bt,
425
441
  {
426
442
  isOpen: ee,
427
- onRequestClose: N,
428
- background: L,
429
- contentLabel: q,
430
- aria: { modal: !0, labelledby: S, describedby: T },
431
- children: /* @__PURE__ */ n(K.Provider, { value: G, children: H && /* @__PURE__ */ ae(P, { ...C.current, key: E }) })
443
+ onRequestClose: O,
444
+ background: x,
445
+ contentLabel: W,
446
+ aria: { modal: !0, labelledby: q, describedby: T },
447
+ children: /* @__PURE__ */ n(K.Provider, { value: V, children: G && /* @__PURE__ */ ae(P, { ...w.current, key: H }) })
432
448
  }
433
449
  ) : /* @__PURE__ */ n(
434
450
  "dialog",
435
451
  {
436
- onClick: b ? void 0 : se,
452
+ onClick: y ? void 0 : re,
437
453
  onClose: oe,
438
- ref: i,
439
- className: d(W, te && c),
440
- "aria-label": q,
441
- "aria-labelledby": S,
454
+ ref: d,
455
+ className: _(S, te && a),
456
+ "aria-label": W,
457
+ "aria-labelledby": q,
442
458
  "aria-describedby": T,
443
- style: { background: L, ...g },
444
- children: /* @__PURE__ */ n("div", { style: f, className: s, children: H && /* @__PURE__ */ n(K.Provider, { value: G, children: /* @__PURE__ */ ae(P, { ...C.current, key: E }) }) })
459
+ style: { background: x, ...h },
460
+ children: /* @__PURE__ */ n("div", { style: u, className: r, children: G && /* @__PURE__ */ n(K.Provider, { value: V, children: /* @__PURE__ */ ae(P, { ...w.current, key: H }) }) })
445
461
  }
446
462
  ),
447
463
  [
448
- h,
464
+ l,
449
465
  ee,
450
- N,
451
- L,
466
+ O,
467
+ x,
468
+ W,
452
469
  q,
453
- S,
454
470
  T,
471
+ V,
455
472
  G,
456
- H,
457
473
  P,
458
- E,
459
- b,
460
- se,
474
+ H,
475
+ y,
476
+ re,
461
477
  oe,
462
- i,
463
- W,
478
+ d,
479
+ S,
464
480
  te,
465
- c,
466
- g,
467
- f,
468
- s
481
+ a,
482
+ h,
483
+ u,
484
+ r
469
485
  ]
470
- ), { show: ye, reject: N }];
486
+ ), { show: Ce, reject: O }];
471
487
  }
472
- const In = () => {
473
- const t = be(K);
488
+ const On = () => {
489
+ const t = Oe(K);
474
490
  if (t == null)
475
491
  throw new Error("useDialogPromise is being used outside of dialog.");
476
492
  return t;
477
- }, Ot = "_alertDialog_14t8t_1", Nt = "_slideIn_14t8t_1", $t = "_closing_14t8t_22", vt = "_slideOut_14t8t_1", Ft = "_fadeIn_14t8t_1", kt = "_fadeOut_14t8t_1", Y = {
478
- alertDialog: Ot,
479
- slideIn: Nt,
480
- closing: $t,
481
- slideOut: vt,
482
- fadeIn: Ft,
483
- fadeOut: kt
493
+ }, $t = "_alertDialog_14t8t_1", Ft = "_slideIn_14t8t_1", kt = "_closing_14t8t_22", Dt = "_slideOut_14t8t_1", Lt = "_fadeIn_14t8t_1", Bt = "_fadeOut_14t8t_1", Y = {
494
+ alertDialog: $t,
495
+ slideIn: Ft,
496
+ closing: kt,
497
+ slideOut: Dt,
498
+ fadeIn: Lt,
499
+ fadeOut: Bt
484
500
  };
485
- function bn(t, e) {
501
+ function Nn(t, e) {
486
502
  return R(t, {
487
503
  ...e,
488
504
  modal: !0,
489
- closingClassName: d(e == null ? void 0 : e.closingClassName, Y.closing),
490
- contentWrapperClassName: d(
505
+ closingClassName: _(e == null ? void 0 : e.closingClassName, Y.closing),
506
+ contentWrapperClassName: _(
491
507
  e == null ? void 0 : e.contentWrapperClassName,
492
508
  Y.contentWrapper
493
509
  ),
494
- className: d(e == null ? void 0 : e.className, Y.alertDialog)
510
+ className: _(e == null ? void 0 : e.className, Y.alertDialog)
495
511
  });
496
512
  }
497
- const Dt = "_drawerDialog_11g6r_1", Bt = "_left_11g6r_13", xt = "_right_11g6r_14", At = "_contentWrapper_11g6r_19", Lt = "_slideInLeft_11g6r_1", zt = "_closing_11g6r_36", Mt = "_slideOutLeft_11g6r_1", Wt = "_slideInRight_11g6r_1", qt = "_slideOutRight_11g6r_1", St = "_top_11g6r_54", Tt = "_bottom_11g6r_55", Et = "_slideInTop_11g6r_1", Ht = "_slideOutTop_11g6r_1", Pt = "_slideInBottom_11g6r_1", Gt = "_slideOutBottom_11g6r_1", M = {
498
- drawerDialog: Dt,
499
- left: Bt,
500
- right: xt,
501
- contentWrapper: At,
502
- slideInLeft: Lt,
503
- closing: zt,
504
- slideOutLeft: Mt,
505
- slideInRight: Wt,
506
- slideOutRight: qt,
507
- top: St,
508
- bottom: Tt,
509
- slideInTop: Et,
510
- slideOutTop: Ht,
511
- slideInBottom: Pt,
512
- slideOutBottom: Gt
513
+ const At = "_drawerDialog_11g6r_1", xt = "_left_11g6r_13", zt = "_right_11g6r_14", Mt = "_contentWrapper_11g6r_19", Et = "_slideInLeft_11g6r_1", St = "_closing_11g6r_36", Wt = "_slideOutLeft_11g6r_1", qt = "_slideInRight_11g6r_1", Tt = "_slideOutRight_11g6r_1", Ht = "_top_11g6r_54", Gt = "_bottom_11g6r_55", Pt = "_slideInTop_11g6r_1", Vt = "_slideOutTop_11g6r_1", Xt = "_slideInBottom_11g6r_1", Yt = "_slideOutBottom_11g6r_1", M = {
514
+ drawerDialog: At,
515
+ left: xt,
516
+ right: zt,
517
+ contentWrapper: Mt,
518
+ slideInLeft: Et,
519
+ closing: St,
520
+ slideOutLeft: Wt,
521
+ slideInRight: qt,
522
+ slideOutRight: Tt,
523
+ top: Ht,
524
+ bottom: Gt,
525
+ slideInTop: Pt,
526
+ slideOutTop: Vt,
527
+ slideInBottom: Xt,
528
+ slideOutBottom: Yt
513
529
  };
514
- function On(t, e = "left", o) {
530
+ function $n(t, e = "left", o) {
515
531
  return R(t, {
516
532
  ...o,
517
533
  disableCloseOnClickOutside: !0,
518
534
  modal: !1,
519
- closingClassName: d(o == null ? void 0 : o.closingClassName, M.closing),
520
- contentWrapperClassName: d(
535
+ closingClassName: _(o == null ? void 0 : o.closingClassName, M.closing),
536
+ contentWrapperClassName: _(
521
537
  o == null ? void 0 : o.contentWrapperClassName,
522
538
  M.contentWrapper
523
539
  ),
524
- className: d(o == null ? void 0 : o.className, M.drawerDialog, M[e])
540
+ className: _(o == null ? void 0 : o.className, M.drawerDialog, M[e])
525
541
  });
526
542
  }
527
- const Vt = "_modalDialog_1teni_1", Xt = "_slideIn_1teni_1", Yt = "_closing_1teni_36", Jt = "_slideOut_1teni_1", Kt = "_fadeIn_1teni_1", Qt = "_fadeOut_1teni_1", Ut = "_contentWrapper_1teni_100", J = {
528
- modalDialog: Vt,
529
- slideIn: Xt,
530
- closing: Yt,
531
- slideOut: Jt,
532
- fadeIn: Kt,
533
- fadeOut: Qt,
534
- contentWrapper: Ut
543
+ const Jt = "_modalDialog_1teni_1", Kt = "_slideIn_1teni_1", Qt = "_closing_1teni_36", Ut = "_slideOut_1teni_1", Zt = "_fadeIn_1teni_1", Rt = "_fadeOut_1teni_1", jt = "_contentWrapper_1teni_100", J = {
544
+ modalDialog: Jt,
545
+ slideIn: Kt,
546
+ closing: Qt,
547
+ slideOut: Ut,
548
+ fadeIn: Zt,
549
+ fadeOut: Rt,
550
+ contentWrapper: jt
535
551
  };
536
- function Nn(t, e) {
552
+ function Fn(t, e) {
537
553
  return R(t, {
538
554
  ...e,
539
555
  modal: !0,
540
- closingClassName: d(e == null ? void 0 : e.closingClassName, J.closing),
541
- contentWrapperClassName: d(
556
+ closingClassName: _(e == null ? void 0 : e.closingClassName, J.closing),
557
+ contentWrapperClassName: _(
542
558
  e == null ? void 0 : e.contentWrapperClassName,
543
559
  J.contentWrapper
544
560
  ),
545
- className: d(e == null ? void 0 : e.className, J.modalDialog)
561
+ className: _(e == null ? void 0 : e.className, J.modalDialog)
546
562
  });
547
563
  }
548
- const ge = ({
564
+ const he = ({
549
565
  headingLevel: t = "h2",
550
566
  size: e = "medium",
551
567
  children: o
552
- }) => /* @__PURE__ */ n(U, { variant: e === "medium" ? "h3" : "h1", as: t, children: o }), Zt = "_modalActionButtons_s27nj_1", Rt = {
553
- modalActionButtons: Zt
554
- }, jt = ({
568
+ }) => /* @__PURE__ */ n(U, { variant: e === "medium" ? "h3" : "h1", as: t, children: o }), en = "_modalActionButtons_s27nj_1", tn = {
569
+ modalActionButtons: en
570
+ }, nn = ({
555
571
  buttons: t
556
- }) => /* @__PURE__ */ m(B, { width: "100%", children: [
572
+ }) => /* @__PURE__ */ g(L, { width: "100%", children: [
557
573
  /* @__PURE__ */ n(Q, {}),
558
- /* @__PURE__ */ n("div", { className: Rt.modalActionButtons, children: t })
559
- ] }), en = ({ gap: t = 3, ...e }) => /* @__PURE__ */ n(B, { indent: 3, spacing: 3, gap: t, ...e }), tn = ({
574
+ /* @__PURE__ */ n("div", { className: tn.modalActionButtons, children: t })
575
+ ] }), on = ({ gap: t = 3, ...e }) => /* @__PURE__ */ n(L, { indent: 3, spacing: 3, gap: t, ...e }), rn = ({
560
576
  children: t,
561
577
  maxWidth: e
562
578
  }) => /* @__PURE__ */ n(
@@ -568,78 +584,78 @@ const ge = ({
568
584
  maxWidth: e,
569
585
  children: t
570
586
  }
571
- ), $n = ({
587
+ ), kn = ({
572
588
  icon: t,
573
589
  buttons: e,
574
590
  heading: o,
575
- text: s,
576
- children: c,
577
- maxWidth: f,
578
- minWidth: g
579
- }) => /* @__PURE__ */ n(tn, { children: /* @__PURE__ */ m(
580
- en,
591
+ text: r,
592
+ children: a,
593
+ maxWidth: u,
594
+ minWidth: h
595
+ }) => /* @__PURE__ */ n(rn, { children: /* @__PURE__ */ g(
596
+ on,
581
597
  {
582
598
  flexDirection: "column",
583
599
  alignItems: "center",
584
- maxWidth: f,
585
- minWidth: g,
600
+ maxWidth: u,
601
+ minWidth: h,
586
602
  children: [
587
- t && /* @__PURE__ */ n(xe, { icon: t, size: "large" }),
588
- /* @__PURE__ */ n(ge, { children: o }),
589
- s && /* @__PURE__ */ n(Fe, { textAlign: "center", children: s }),
590
- c,
591
- e && /* @__PURE__ */ n(jt, { buttons: e })
603
+ t && /* @__PURE__ */ n(ze, { icon: t, size: "large" }),
604
+ /* @__PURE__ */ n(he, { children: o }),
605
+ r && /* @__PURE__ */ n(Le, { textAlign: "center", children: r }),
606
+ a,
607
+ e && /* @__PURE__ */ n(nn, { buttons: e })
592
608
  ]
593
609
  }
594
- ) }), vn = ({
610
+ ) }), Dn = ({
595
611
  heading: t,
596
612
  headingLevel: e,
597
613
  headingSize: o,
598
- onClickClose: s
599
- }) => /* @__PURE__ */ m(I, { justifyContent: "space-between", children: [
600
- t && /* @__PURE__ */ n(ge, { headingLevel: e, size: o, children: t }),
601
- /* @__PURE__ */ n(ue, { onClick: s })
602
- ] }), nn = "_modalFooter_112wr_1", on = "_sticky_112wr_10", de = {
603
- modalFooter: nn,
604
- sticky: on
605
- }, Fn = ({
614
+ onClickClose: r
615
+ }) => /* @__PURE__ */ g(b, { justifyContent: "space-between", children: [
616
+ t && /* @__PURE__ */ n(he, { headingLevel: e, size: o, children: t }),
617
+ /* @__PURE__ */ n(me, { onClick: r })
618
+ ] }), sn = "_modalFooter_112wr_1", ln = "_sticky_112wr_10", _e = {
619
+ modalFooter: sn,
620
+ sticky: ln
621
+ }, Ln = ({
606
622
  children: t,
607
623
  sticky: e,
608
624
  zIndex: o = 4
609
625
  }) => /* @__PURE__ */ n(
610
- I,
626
+ b,
611
627
  {
612
- className: d(de.modalFooter, e && de.sticky),
628
+ className: _(_e.modalFooter, e && _e.sticky),
613
629
  shadow: "var(--swui-sticky-footer-shadow)",
614
630
  zIndex: o,
615
631
  children: t
616
632
  }
617
633
  );
618
634
  export {
619
- pn as Alert,
620
- He as BaseWindow,
621
- fe as DRAGGABLE_CANCEL_CLASSNAME,
622
- me as DRAGGABLE_HANDLE_CLASSNAME,
635
+ wn as Alert,
636
+ Ve as BaseWindow,
637
+ ge as DRAGGABLE_CANCEL_CLASSNAME,
638
+ fe as DRAGGABLE_HANDLE_CLASSNAME,
623
639
  K as DialogContext,
624
- gn as Drawer,
625
- hn as DrawerHeader,
626
- $n as InfoAlert,
627
- yn as LoadingModal,
628
- Ct as Modal,
629
- jt as ModalActionButtons,
630
- en as ModalBody,
631
- tn as ModalContainer,
632
- Fn as ModalFooter,
633
- vn as ModalHeader,
634
- ge as ModalHeading,
635
- Cn as Window,
636
- wn as WindowFooter,
637
- bt as WindowHeader,
638
- fn as setupDeclarativeModals,
639
- bn as useAlertDialog,
640
+ pn as Drawer,
641
+ Cn as DrawerHeader,
642
+ kn as InfoAlert,
643
+ vn as LoadingModal,
644
+ bt as Modal,
645
+ nn as ModalActionButtons,
646
+ on as ModalBody,
647
+ rn as ModalContainer,
648
+ Ln as ModalFooter,
649
+ Dn as ModalHeader,
650
+ he as ModalHeading,
651
+ bn as Window,
652
+ In as WindowFooter,
653
+ Nt as WindowHeader,
654
+ yn as setupDeclarativeModals,
655
+ Nn as useAlertDialog,
640
656
  R as useDialog,
641
- In as useDialogPromise,
642
- On as useDrawerDialog,
643
- Nn as useModalDialog
657
+ On as useDialogPromise,
658
+ $n as useDrawerDialog,
659
+ Fn as useModalDialog
644
660
  };
645
661
  //# sourceMappingURL=index.es.js.map