@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 +466 -497
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { exhaustSwitchCase as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { cssColor as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
overlay:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
26
|
+
const c = C(null);
|
|
27
|
+
return /* @__PURE__ */ t(
|
|
28
|
+
O,
|
|
31
29
|
{
|
|
32
|
-
overlayClassName:
|
|
33
|
-
className:
|
|
30
|
+
overlayClassName: F.overlay,
|
|
31
|
+
className: F.modal,
|
|
34
32
|
...s,
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
|
|
33
|
+
children: /* @__PURE__ */ t(
|
|
34
|
+
Fe,
|
|
37
35
|
{
|
|
38
|
-
handle: `.${
|
|
39
|
-
cancel: `.${
|
|
36
|
+
handle: `.${pe}`,
|
|
37
|
+
cancel: `.${he}, button, [role="tooltip"]`,
|
|
40
38
|
bounds: ".ReactModal__Overlay",
|
|
41
|
-
disabled: !
|
|
42
|
-
nodeRef:
|
|
43
|
-
children: /* @__PURE__ */
|
|
39
|
+
disabled: !n,
|
|
40
|
+
nodeRef: c,
|
|
41
|
+
children: /* @__PURE__ */ t(
|
|
44
42
|
"div",
|
|
45
43
|
{
|
|
46
44
|
style: {
|
|
47
|
-
"--swui-modal-width":
|
|
48
|
-
"--swui-modal-max-width":
|
|
45
|
+
"--swui-modal-width": e,
|
|
46
|
+
"--swui-modal-max-width": o
|
|
49
47
|
},
|
|
50
|
-
className:
|
|
51
|
-
[
|
|
48
|
+
className: a(F.content, {
|
|
49
|
+
[F.isDraggable]: n
|
|
52
50
|
}),
|
|
53
|
-
ref:
|
|
54
|
-
children:
|
|
51
|
+
ref: c,
|
|
52
|
+
children: r
|
|
55
53
|
}
|
|
56
54
|
)
|
|
57
55
|
}
|
|
58
56
|
)
|
|
59
57
|
}
|
|
60
58
|
);
|
|
61
|
-
},
|
|
62
|
-
portal:
|
|
63
|
-
overlay:
|
|
64
|
-
content:
|
|
65
|
-
floating:
|
|
66
|
-
slideFromLeft:
|
|
67
|
-
slideFromRight:
|
|
68
|
-
afterOpen:
|
|
69
|
-
beforeClose:
|
|
70
|
-
slideFromTop:
|
|
71
|
-
slideFromBottom:
|
|
72
|
-
},
|
|
73
|
-
background:
|
|
74
|
-
zIndex:
|
|
75
|
-
children:
|
|
76
|
-
slideFrom:
|
|
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:
|
|
79
|
-
...
|
|
76
|
+
floating: c,
|
|
77
|
+
...u
|
|
80
78
|
}) => {
|
|
81
|
-
const { height:
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
79
|
+
const { height: _, width: p } = u;
|
|
80
|
+
return /* @__PURE__ */ t(
|
|
81
|
+
O,
|
|
84
82
|
{
|
|
85
83
|
closeTimeoutMS: 250,
|
|
86
|
-
portalClassName:
|
|
84
|
+
portalClassName: d.portal,
|
|
87
85
|
overlayClassName: {
|
|
88
|
-
base:
|
|
89
|
-
afterOpen:
|
|
90
|
-
beforeClose:
|
|
86
|
+
base: d.overlay,
|
|
87
|
+
afterOpen: d.afterOpen,
|
|
88
|
+
beforeClose: d.beforeClose
|
|
91
89
|
},
|
|
92
90
|
className: {
|
|
93
|
-
base:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
base: a(
|
|
92
|
+
d.content,
|
|
93
|
+
tt(r),
|
|
94
|
+
c && d.floating
|
|
97
95
|
),
|
|
98
|
-
afterOpen:
|
|
99
|
-
beforeClose:
|
|
96
|
+
afterOpen: d.afterOpen,
|
|
97
|
+
beforeClose: d.beforeClose
|
|
100
98
|
},
|
|
101
|
-
style: { content: { width:
|
|
99
|
+
style: { content: { width: p, height: _, background: e }, overlay: { zIndex: o } },
|
|
102
100
|
parentSelector: s ? () => s : void 0,
|
|
103
|
-
...
|
|
104
|
-
children:
|
|
101
|
+
...u,
|
|
102
|
+
children: n
|
|
105
103
|
}
|
|
106
104
|
);
|
|
107
|
-
},
|
|
108
|
-
switch (
|
|
105
|
+
}, tt = (e) => {
|
|
106
|
+
switch (e) {
|
|
109
107
|
case "left":
|
|
110
|
-
return
|
|
108
|
+
return d.slideFromLeft;
|
|
111
109
|
case "right":
|
|
112
|
-
return
|
|
110
|
+
return d.slideFromRight;
|
|
113
111
|
case "top":
|
|
114
|
-
return
|
|
112
|
+
return d.slideFromTop;
|
|
115
113
|
case "bottom":
|
|
116
|
-
return
|
|
114
|
+
return d.slideFromBottom;
|
|
117
115
|
default:
|
|
118
|
-
return
|
|
116
|
+
return Oe(e, d.slideFromLeft);
|
|
119
117
|
}
|
|
120
|
-
},
|
|
121
|
-
header:
|
|
122
|
-
contentRight:
|
|
123
|
-
onRequestClose:
|
|
124
|
-
icon:
|
|
125
|
-
}) => /* @__PURE__ */
|
|
126
|
-
|
|
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:
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
|
|
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__ */
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
/* @__PURE__ */
|
|
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__ */
|
|
145
|
-
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
|
|
142
|
+
/* @__PURE__ */ m(w, { gap: 1, children: [
|
|
143
|
+
o,
|
|
144
|
+
/* @__PURE__ */ t(
|
|
145
|
+
ge,
|
|
148
146
|
{
|
|
149
|
-
leftIcon:
|
|
150
|
-
onClick:
|
|
147
|
+
leftIcon: Ie,
|
|
148
|
+
onClick: n,
|
|
151
149
|
variant: "danger"
|
|
152
150
|
}
|
|
153
151
|
),
|
|
154
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ t(ie, { num: 0.5 })
|
|
155
153
|
] })
|
|
156
154
|
]
|
|
157
155
|
}
|
|
158
156
|
)
|
|
159
157
|
}
|
|
160
|
-
),
|
|
161
|
-
overlay:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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:
|
|
176
|
-
className:
|
|
177
|
-
style:
|
|
178
|
-
...
|
|
179
|
-
children: /* @__PURE__ */
|
|
168
|
+
overlayClassName: V.overlay,
|
|
169
|
+
className: V.modal,
|
|
170
|
+
style: st,
|
|
171
|
+
...o,
|
|
172
|
+
children: /* @__PURE__ */ t(
|
|
180
173
|
"div",
|
|
181
174
|
{
|
|
182
|
-
className:
|
|
175
|
+
className: V.content,
|
|
183
176
|
style: { "--swui-modal-width": "fit-content" },
|
|
184
|
-
children:
|
|
177
|
+
children: e
|
|
185
178
|
}
|
|
186
179
|
)
|
|
187
180
|
}
|
|
188
|
-
),
|
|
189
|
-
overlay:
|
|
190
|
-
afterOpen:
|
|
191
|
-
beforeClose:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
|
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":
|
|
197
|
+
"--swui-modal-content-bg-color": o
|
|
211
198
|
}
|
|
212
|
-
},
|
|
213
|
-
if (!
|
|
199
|
+
}, f = $e(() => {
|
|
200
|
+
if (!de)
|
|
214
201
|
return;
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
|
|
202
|
+
const h = c.current;
|
|
203
|
+
h && _(
|
|
204
|
+
h.scrollHeight > h.clientHeight ? "stable" : "auto"
|
|
218
205
|
);
|
|
219
206
|
});
|
|
220
|
-
return
|
|
221
|
-
window.removeEventListener("resize",
|
|
222
|
-
}), [
|
|
223
|
-
|
|
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:
|
|
227
|
-
beforeClose:
|
|
228
|
-
afterOpen:
|
|
213
|
+
base: a(r, N.overlay),
|
|
214
|
+
beforeClose: N.beforeClose,
|
|
215
|
+
afterOpen: N.afterOpen
|
|
229
216
|
},
|
|
230
217
|
className: {
|
|
231
|
-
base:
|
|
232
|
-
beforeClose:
|
|
233
|
-
afterOpen:
|
|
218
|
+
base: a(n, N.modal),
|
|
219
|
+
beforeClose: N.beforeClose,
|
|
220
|
+
afterOpen: N.afterOpen
|
|
234
221
|
},
|
|
235
|
-
style:
|
|
222
|
+
style: p,
|
|
236
223
|
closeTimeoutMS: 250,
|
|
237
|
-
onAfterOpen:
|
|
224
|
+
onAfterOpen: f,
|
|
238
225
|
...s,
|
|
239
|
-
children: /* @__PURE__ */
|
|
226
|
+
children: /* @__PURE__ */ t(
|
|
240
227
|
"div",
|
|
241
228
|
{
|
|
242
|
-
className:
|
|
229
|
+
className: N.content,
|
|
243
230
|
style: {
|
|
244
231
|
"--swui-modal-width": "fit-content",
|
|
245
|
-
scrollbarGutter:
|
|
232
|
+
scrollbarGutter: u
|
|
246
233
|
},
|
|
247
|
-
ref:
|
|
248
|
-
children:
|
|
234
|
+
ref: c,
|
|
235
|
+
children: e
|
|
249
236
|
}
|
|
250
237
|
)
|
|
251
238
|
}
|
|
252
239
|
);
|
|
253
|
-
},
|
|
254
|
-
modal:
|
|
255
|
-
overlay:
|
|
256
|
-
},
|
|
257
|
-
headerIconLeft:
|
|
258
|
-
headerText:
|
|
259
|
-
shouldCloseOnOverlayClick:
|
|
260
|
-
shouldCloseOnEsc:
|
|
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__ */
|
|
263
|
-
|
|
249
|
+
}) => /* @__PURE__ */ t(
|
|
250
|
+
O,
|
|
264
251
|
{
|
|
265
252
|
...s,
|
|
266
253
|
isOpen: !0,
|
|
267
|
-
shouldCloseOnOverlayClick:
|
|
268
|
-
shouldCloseOnEsc:
|
|
254
|
+
shouldCloseOnOverlayClick: n,
|
|
255
|
+
shouldCloseOnEsc: r,
|
|
269
256
|
className: me.modal,
|
|
270
257
|
overlayClassName: me.overlay,
|
|
271
|
-
children: /* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
|
|
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__ */
|
|
269
|
+
children: /* @__PURE__ */ t(ze, { size: "small" })
|
|
283
270
|
}
|
|
284
271
|
),
|
|
285
|
-
(
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
279
|
+
o && /* @__PURE__ */ t(Q, { variant: "h4", color: "white", children: o })
|
|
293
280
|
] })
|
|
294
281
|
] })
|
|
295
282
|
] })
|
|
296
283
|
}
|
|
297
|
-
),
|
|
298
|
-
onRequestClose:
|
|
299
|
-
header:
|
|
300
|
-
headerText:
|
|
301
|
-
closeButtonClassName:
|
|
302
|
-
}) => /* @__PURE__ */
|
|
303
|
-
|
|
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:
|
|
295
|
+
className: pe,
|
|
309
296
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
|
|
312
|
-
|
|
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__ */
|
|
315
|
-
|
|
301
|
+
/* @__PURE__ */ t(x, { alignSelf: "flex-start", children: /* @__PURE__ */ t(
|
|
302
|
+
Re,
|
|
316
303
|
{
|
|
317
|
-
className:
|
|
318
|
-
onClick:
|
|
304
|
+
className: r,
|
|
305
|
+
onClick: e
|
|
319
306
|
}
|
|
320
307
|
) })
|
|
321
308
|
]
|
|
322
309
|
}
|
|
323
|
-
),
|
|
324
|
-
header:
|
|
325
|
-
headerText:
|
|
326
|
-
children:
|
|
327
|
-
spacing:
|
|
310
|
+
), ro = ({
|
|
311
|
+
header: e,
|
|
312
|
+
headerText: o,
|
|
313
|
+
children: n,
|
|
314
|
+
spacing: r,
|
|
328
315
|
indent: s,
|
|
329
|
-
draggable:
|
|
330
|
-
onRequestClose:
|
|
331
|
-
closeButtonClassName:
|
|
332
|
-
footer:
|
|
333
|
-
disableStickyFooter:
|
|
334
|
-
...
|
|
335
|
-
}) => /* @__PURE__ */
|
|
336
|
-
|
|
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:
|
|
340
|
-
draggable:
|
|
325
|
+
...h,
|
|
326
|
+
onRequestClose: u,
|
|
327
|
+
draggable: c,
|
|
341
328
|
children: [
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
|
|
329
|
+
/* @__PURE__ */ t(
|
|
330
|
+
ft,
|
|
344
331
|
{
|
|
345
|
-
onRequestClose:
|
|
346
|
-
header:
|
|
347
|
-
headerText:
|
|
348
|
-
closeButtonClassName:
|
|
332
|
+
onRequestClose: u,
|
|
333
|
+
header: e,
|
|
334
|
+
headerText: o,
|
|
335
|
+
closeButtonClassName: _
|
|
349
336
|
}
|
|
350
337
|
),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
|
|
353
|
-
|
|
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:
|
|
356
|
-
[
|
|
342
|
+
className: a(F.footer, {
|
|
343
|
+
[F.stickyFooter]: !f
|
|
357
344
|
}),
|
|
358
|
-
children:
|
|
345
|
+
children: p
|
|
359
346
|
}
|
|
360
347
|
)
|
|
361
348
|
]
|
|
362
349
|
}
|
|
363
|
-
),
|
|
350
|
+
), so = ({ children: e }) => /* @__PURE__ */ t(L, { indent: 2, spacing: 2, children: e }), J = Ne(
|
|
364
351
|
void 0
|
|
365
352
|
);
|
|
366
|
-
function
|
|
367
|
-
ref:
|
|
368
|
-
modal:
|
|
369
|
-
contentWrapperClassName:
|
|
353
|
+
function U(e, {
|
|
354
|
+
ref: o,
|
|
355
|
+
modal: n,
|
|
356
|
+
contentWrapperClassName: r,
|
|
370
357
|
closingClassName: s,
|
|
371
|
-
contentWrapperStyle:
|
|
372
|
-
dialogStyle:
|
|
373
|
-
divInsteadOfDialog:
|
|
374
|
-
disableCloseOnClickOutside:
|
|
375
|
-
elementId:
|
|
376
|
-
onResolve:
|
|
377
|
-
onReject:
|
|
378
|
-
className:
|
|
379
|
-
background:
|
|
380
|
-
label:
|
|
381
|
-
labelledby:
|
|
382
|
-
describedby:
|
|
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
|
|
385
|
-
(
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
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
|
-
(
|
|
403
|
-
|
|
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
|
-
[
|
|
410
|
-
),
|
|
411
|
-
(
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
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
|
-
(
|
|
419
|
-
|
|
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
|
-
[
|
|
426
|
-
),
|
|
427
|
-
(
|
|
428
|
-
|
|
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
|
-
[
|
|
432
|
-
),
|
|
433
|
-
(
|
|
434
|
-
if (
|
|
408
|
+
[D]
|
|
409
|
+
), re = $(
|
|
410
|
+
(l) => {
|
|
411
|
+
if (l.target !== i.current)
|
|
435
412
|
return;
|
|
436
|
-
const
|
|
437
|
-
|
|
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
|
-
[
|
|
440
|
-
),
|
|
441
|
-
() => ({ resolve:
|
|
442
|
-
[
|
|
416
|
+
[i, b]
|
|
417
|
+
), G = ae(
|
|
418
|
+
() => ({ resolve: oe, reject: b }),
|
|
419
|
+
[b, oe]
|
|
443
420
|
);
|
|
444
|
-
return [
|
|
445
|
-
() =>
|
|
446
|
-
|
|
421
|
+
return [ae(
|
|
422
|
+
() => _ ? /* @__PURE__ */ t(
|
|
423
|
+
mt,
|
|
447
424
|
{
|
|
448
|
-
isOpen:
|
|
449
|
-
onRequestClose:
|
|
450
|
-
background:
|
|
451
|
-
contentLabel:
|
|
452
|
-
id:
|
|
453
|
-
aria: { modal: !0, labelledby:
|
|
454
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
433
|
+
) : /* @__PURE__ */ t(
|
|
457
434
|
"dialog",
|
|
458
435
|
{
|
|
459
|
-
onClick:
|
|
460
|
-
onClose:
|
|
461
|
-
ref:
|
|
462
|
-
id:
|
|
463
|
-
className:
|
|
464
|
-
"aria-label":
|
|
465
|
-
"aria-labelledby":
|
|
466
|
-
"aria-describedby":
|
|
467
|
-
style: { background:
|
|
468
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
473
|
-
|
|
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
|
-
|
|
486
|
-
|
|
487
|
-
|
|
452
|
+
E,
|
|
453
|
+
W,
|
|
454
|
+
f,
|
|
455
|
+
S,
|
|
456
|
+
T,
|
|
457
|
+
G,
|
|
458
|
+
j,
|
|
488
459
|
q,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
460
|
+
P,
|
|
461
|
+
p,
|
|
462
|
+
re,
|
|
463
|
+
ne,
|
|
492
464
|
i,
|
|
493
|
-
|
|
465
|
+
M,
|
|
466
|
+
te,
|
|
467
|
+
s,
|
|
468
|
+
u,
|
|
469
|
+
c,
|
|
470
|
+
r
|
|
494
471
|
]
|
|
495
|
-
), { show:
|
|
472
|
+
), { show: we, reject: b }];
|
|
496
473
|
}
|
|
497
|
-
const
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
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
|
|
502
|
-
},
|
|
503
|
-
alertDialog:
|
|
504
|
-
|
|
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
|
|
511
|
-
return
|
|
512
|
-
...
|
|
483
|
+
function ao(e, o) {
|
|
484
|
+
return U(e, {
|
|
485
|
+
...o,
|
|
513
486
|
modal: !0,
|
|
514
|
-
closingClassName:
|
|
515
|
-
contentWrapperClassName:
|
|
516
|
-
|
|
517
|
-
|
|
487
|
+
closingClassName: a(o?.closingClassName, X.closing),
|
|
488
|
+
contentWrapperClassName: a(
|
|
489
|
+
o?.contentWrapperClassName,
|
|
490
|
+
X.contentWrapper
|
|
518
491
|
),
|
|
519
|
-
className:
|
|
492
|
+
className: a(o?.className, X.alertDialog)
|
|
520
493
|
});
|
|
521
494
|
}
|
|
522
|
-
const
|
|
523
|
-
drawerDialog:
|
|
524
|
-
left:
|
|
525
|
-
right:
|
|
526
|
-
contentWrapper:
|
|
527
|
-
slideInLeft:
|
|
528
|
-
closing:
|
|
529
|
-
slideOutLeft:
|
|
530
|
-
slideInRight:
|
|
531
|
-
slideOutRight:
|
|
532
|
-
top:
|
|
533
|
-
bottom:
|
|
534
|
-
slideInTop:
|
|
535
|
-
slideOutTop:
|
|
536
|
-
slideInBottom:
|
|
537
|
-
slideOutBottom:
|
|
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
|
|
540
|
-
return
|
|
541
|
-
...
|
|
512
|
+
function co(e, o = "left", n) {
|
|
513
|
+
return U(e, {
|
|
514
|
+
...n,
|
|
542
515
|
disableCloseOnClickOutside: !0,
|
|
543
516
|
modal: !1,
|
|
544
|
-
closingClassName:
|
|
545
|
-
contentWrapperClassName:
|
|
546
|
-
|
|
547
|
-
|
|
517
|
+
closingClassName: a(n?.closingClassName, R.closing),
|
|
518
|
+
contentWrapperClassName: a(
|
|
519
|
+
n?.contentWrapperClassName,
|
|
520
|
+
R.contentWrapper
|
|
548
521
|
),
|
|
549
|
-
className:
|
|
522
|
+
className: a(n?.className, R.drawerDialog, R[o])
|
|
550
523
|
});
|
|
551
524
|
}
|
|
552
|
-
const
|
|
553
|
-
modalDialog:
|
|
554
|
-
|
|
555
|
-
|
|
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
|
|
562
|
-
return
|
|
563
|
-
...
|
|
530
|
+
function io(e, o) {
|
|
531
|
+
return U(e, {
|
|
532
|
+
...o,
|
|
564
533
|
modal: !0,
|
|
565
|
-
closingClassName:
|
|
566
|
-
contentWrapperClassName:
|
|
567
|
-
|
|
568
|
-
|
|
534
|
+
closingClassName: a(o?.closingClassName, Y.closing),
|
|
535
|
+
contentWrapperClassName: a(
|
|
536
|
+
o?.contentWrapperClassName,
|
|
537
|
+
Y.contentWrapper
|
|
569
538
|
),
|
|
570
|
-
className:
|
|
539
|
+
className: a(o?.className, Y.modalDialog)
|
|
571
540
|
});
|
|
572
541
|
}
|
|
573
|
-
const
|
|
574
|
-
headingLevel:
|
|
575
|
-
size:
|
|
576
|
-
children:
|
|
577
|
-
}) => /* @__PURE__ */
|
|
578
|
-
modalActionButtons:
|
|
579
|
-
},
|
|
580
|
-
children:
|
|
581
|
-
}) => /* @__PURE__ */
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
584
|
-
] }),
|
|
585
|
-
modalBody:
|
|
586
|
-
},
|
|
587
|
-
gap:
|
|
588
|
-
variant:
|
|
589
|
-
className:
|
|
590
|
-
...
|
|
591
|
-
}) => /* @__PURE__ */
|
|
592
|
-
|
|
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:
|
|
595
|
-
indent:
|
|
596
|
-
spacing:
|
|
597
|
-
gap:
|
|
598
|
-
...
|
|
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
|
-
),
|
|
601
|
-
children:
|
|
602
|
-
maxWidth:
|
|
603
|
-
}) => /* @__PURE__ */
|
|
604
|
-
|
|
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:
|
|
610
|
-
children:
|
|
578
|
+
maxWidth: o,
|
|
579
|
+
children: e
|
|
611
580
|
}
|
|
612
|
-
),
|
|
613
|
-
icon:
|
|
614
|
-
buttons:
|
|
615
|
-
heading:
|
|
616
|
-
text:
|
|
581
|
+
), mo = ({
|
|
582
|
+
icon: e,
|
|
583
|
+
buttons: o,
|
|
584
|
+
heading: n,
|
|
585
|
+
text: r,
|
|
617
586
|
children: s,
|
|
618
|
-
maxWidth:
|
|
619
|
-
minWidth:
|
|
620
|
-
}) => /* @__PURE__ */
|
|
621
|
-
|
|
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:
|
|
626
|
-
minWidth:
|
|
594
|
+
maxWidth: c,
|
|
595
|
+
minWidth: u,
|
|
627
596
|
children: [
|
|
628
|
-
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
|
|
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
|
-
|
|
601
|
+
o && /* @__PURE__ */ t(Et, { children: o })
|
|
633
602
|
]
|
|
634
603
|
}
|
|
635
|
-
) }),
|
|
636
|
-
|
|
604
|
+
) }), Pt = (e) => /* @__PURE__ */ t(
|
|
605
|
+
ge,
|
|
637
606
|
{
|
|
638
607
|
size: "large",
|
|
639
608
|
variant: "danger",
|
|
640
|
-
leftIcon:
|
|
641
|
-
...
|
|
609
|
+
leftIcon: Me,
|
|
610
|
+
...e
|
|
642
611
|
}
|
|
643
|
-
),
|
|
644
|
-
heading:
|
|
645
|
-
headingLevel:
|
|
646
|
-
headingSize:
|
|
647
|
-
onClickClose:
|
|
612
|
+
), uo = ({
|
|
613
|
+
heading: e,
|
|
614
|
+
headingLevel: o,
|
|
615
|
+
headingSize: n,
|
|
616
|
+
onClickClose: r,
|
|
648
617
|
closeButtonAriaLabel: s
|
|
649
|
-
}) => /* @__PURE__ */
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
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:
|
|
655
|
-
size:
|
|
623
|
+
onClick: r,
|
|
624
|
+
size: n,
|
|
656
625
|
"aria-label": s
|
|
657
626
|
}
|
|
658
627
|
) : null
|
|
659
|
-
] }) }),
|
|
660
|
-
modalFooter:
|
|
661
|
-
sticky:
|
|
662
|
-
},
|
|
663
|
-
sticky:
|
|
664
|
-
zIndex:
|
|
665
|
-
gap:
|
|
666
|
-
className:
|
|
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__ */
|
|
669
|
-
|
|
637
|
+
}) => /* @__PURE__ */ t(
|
|
638
|
+
w,
|
|
670
639
|
{
|
|
671
|
-
className:
|
|
640
|
+
className: a(_e.modalFooter, e && _e.sticky, r),
|
|
672
641
|
shadow: "var(--swui-sticky-footer-shadow)",
|
|
673
|
-
zIndex:
|
|
674
|
-
gap:
|
|
642
|
+
zIndex: o,
|
|
643
|
+
gap: n,
|
|
675
644
|
...s
|
|
676
645
|
}
|
|
677
646
|
);
|
|
678
647
|
export {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
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
|