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