@stenajs-webui/modal 21.35.0 → 21.37.0

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