@stenajs-webui/modal 22.7.0 → 22.7.2

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