@stenajs-webui/modal 21.28.0 → 21.29.1

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,20 +1,20 @@
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_15dqv_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_15dqv_1._afterOpen_15dqv_24:not(._beforeClose_15dqv_24){animation:_fadeIn_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1._beforeClose_15dqv_24{animation:_fadeOut_15dqv_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_15dqv_1{background-color:#fff}}._overlay_15dqv_1 ._modal_15dqv_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_15dqv_1 ._modal_15dqv_36{padding:0;width:100%}}._overlay_15dqv_1 ._modal_15dqv_36._afterOpen_15dqv_24:not(._beforeClose_15dqv_24){animation:_slideIn_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1 ._modal_15dqv_36._beforeClose_15dqv_24{animation:_slideOut_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1 ._content_15dqv_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_15dqv_1 ._content_15dqv_59{border-radius:0;width:100%;max-width:100%;min-height:100vh}}@media (min-width: 769px){._overlay_15dqv_1 ._content_15dqv_59{border-radius:var(--swui-border-radius-large)}._overlay_15dqv_1 ._content_15dqv_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._overlay_15dqv_1 ._content_15dqv_59::-webkit-scrollbar{width:16px}}@media print{._overlay_15dqv_1 ._content_15dqv_59{box-shadow:none;top:0}}._overlay_15dqv_1 ._content_15dqv_59 :focus{outline:0}@keyframes _fadeIn_15dqv_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_15dqv_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_15dqv_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_15dqv_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_15dqv_148{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_15dqv_152{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_15dqv_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";
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 x from "react-modal";
3
3
  import { jsx as n, jsxs as m, Fragment as re } from "react/jsx-runtime";
4
- import { useRef as k, createContext as ve, useReducer as we, useState as V, useCallback as x, useMemo as le, createElement as ae, useContext as Ie } from "react";
5
- import be from "react-draggable";
4
+ import { useRef as k, createContext as we, useReducer as Ie, useState as V, useCallback as A, useMemo as le, createElement as ae, useContext as be } from "react";
5
+ import Oe from "react-draggable";
6
6
  import d from "classnames";
7
- import { exhaustSwitchCase as Oe, Spacing as Q, Row as w, Space as ce, Heading as U, Column as Z, Box as q, Indent as Ne, Txt as $e, Text as Fe } from "@stenajs-webui/core";
8
- import { Icon as _e, FlatButton as ke, stenaTimes as De, Spinner as qe, CloseButton as ue, CircledIcon as Be } from "@stenajs-webui/elements";
9
- import { cssColor as xe } from "@stenajs-webui/theme";
7
+ import { exhaustSwitchCase as Ne, Spacing as Q, Row as I, Space as ce, Heading as U, Column as Z, Box as B, Indent as $e, Txt as ve, Text as Fe } from "@stenajs-webui/core";
8
+ import { Icon as _e, FlatButton as ke, stenaTimes as De, Spinner as Be, CloseButton as ue, CircledIcon as xe } from "@stenajs-webui/elements";
9
+ import { cssColor as Ae } from "@stenajs-webui/theme";
10
10
  const fn = (t) => {
11
- B.setAppElement(t);
12
- }, Ae = "_overlay_quvmp_1", Le = "_fadeIn_quvmp_1", ze = "_modal_quvmp_31", Me = "_content_quvmp_41", We = "_appear_quvmp_1", Se = "_isDraggable_quvmp_70", Te = "_footer_quvmp_101", Ee = "_stickyFooter_quvmp_105", D = {
13
- overlay: Ae,
14
- fadeIn: Le,
15
- modal: ze,
16
- content: Me,
17
- appear: We,
11
+ x.setAppElement(t);
12
+ }, Le = "_overlay_quvmp_1", ze = "_fadeIn_quvmp_1", Me = "_modal_quvmp_31", We = "_content_quvmp_41", qe = "_appear_quvmp_1", Se = "_isDraggable_quvmp_70", Te = "_footer_quvmp_101", Ee = "_stickyFooter_quvmp_105", D = {
13
+ overlay: Le,
14
+ fadeIn: ze,
15
+ modal: Me,
16
+ content: We,
17
+ appear: qe,
18
18
  isDraggable: Se,
19
19
  footer: Te,
20
20
  stickyFooter: Ee
@@ -27,13 +27,13 @@ const fn = (t) => {
27
27
  }) => {
28
28
  const f = k(null);
29
29
  return /* @__PURE__ */ n(
30
- B,
30
+ x,
31
31
  {
32
32
  overlayClassName: D.overlay,
33
33
  className: D.modal,
34
34
  ...c,
35
35
  children: /* @__PURE__ */ n(
36
- be,
36
+ Oe,
37
37
  {
38
38
  handle: `.${me}`,
39
39
  cancel: `.${fe}, button, [role="tooltip"]`,
@@ -78,9 +78,9 @@ const fn = (t) => {
78
78
  floating: f,
79
79
  ...g
80
80
  }) => {
81
- const { height: h, width: I } = g;
81
+ const { height: h, width: b } = g;
82
82
  return /* @__PURE__ */ n(
83
- B,
83
+ x,
84
84
  {
85
85
  closeTimeoutMS: 250,
86
86
  portalClassName: u.portal,
@@ -98,7 +98,7 @@ const fn = (t) => {
98
98
  afterOpen: u.afterOpen,
99
99
  beforeClose: u.beforeClose
100
100
  },
101
- style: { content: { width: I, height: h, background: t }, overlay: { zIndex: e } },
101
+ style: { content: { width: b, height: h, background: t }, overlay: { zIndex: e } },
102
102
  parentSelector: c ? () => c : void 0,
103
103
  ...g,
104
104
  children: o
@@ -115,7 +115,7 @@ const fn = (t) => {
115
115
  case "bottom":
116
116
  return u.slideFromBottom;
117
117
  default:
118
- return Oe(t, u.slideFromLeft);
118
+ return Ne(t, u.slideFromLeft);
119
119
  }
120
120
  }, hn = ({
121
121
  header: t,
@@ -128,20 +128,20 @@ const fn = (t) => {
128
128
  position: "sticky",
129
129
  top: 0,
130
130
  zIndex: 100,
131
- background: xe("--lhds-color-ui-50"),
131
+ background: Ae("--lhds-color-ui-50"),
132
132
  children: /* @__PURE__ */ m(
133
- w,
133
+ I,
134
134
  {
135
135
  justifyContent: "space-between",
136
136
  alignItems: "center",
137
137
  height: "48px",
138
138
  children: [
139
- /* @__PURE__ */ m(w, { alignItems: "center", gap: 2, children: [
139
+ /* @__PURE__ */ m(I, { alignItems: "center", gap: 2, children: [
140
140
  /* @__PURE__ */ n(ce, { num: 1 }),
141
141
  s && /* @__PURE__ */ n(_e, { icon: s, size: 24 }),
142
142
  /* @__PURE__ */ n(U, { variant: "h4", children: t })
143
143
  ] }),
144
- /* @__PURE__ */ m(w, { gap: 1, children: [
144
+ /* @__PURE__ */ m(I, { gap: 1, children: [
145
145
  e,
146
146
  /* @__PURE__ */ n(
147
147
  ke,
@@ -166,11 +166,11 @@ const fn = (t) => {
166
166
  isDraggable: st,
167
167
  footer: rt,
168
168
  stickyFooter: lt
169
- }, at = { overlay: { justifyContent: "center" } }, pn = ({
169
+ }, at = { overlay: { justifyContent: "center" } }, yn = ({
170
170
  children: t,
171
171
  ...e
172
172
  }) => /* @__PURE__ */ n(
173
- B,
173
+ x,
174
174
  {
175
175
  overlayClassName: X.overlay,
176
176
  className: X.modal,
@@ -185,7 +185,7 @@ const fn = (t) => {
185
185
  }
186
186
  )
187
187
  }
188
- ), ct = "_overlay_15dqv_1", it = "_afterOpen_15dqv_24", dt = "_beforeClose_15dqv_24", _t = "_fadeIn_15dqv_1", ut = "_fadeOut_15dqv_1", mt = "_modal_15dqv_36", ft = "_slideIn_15dqv_1", gt = "_slideOut_15dqv_1", ht = "_content_15dqv_59", pt = "_footer_15dqv_148", yt = "_stickyFooter_15dqv_152", $ = {
188
+ ), ct = "_overlay_t8y1o_1", it = "_afterOpen_t8y1o_24", dt = "_beforeClose_t8y1o_24", _t = "_fadeIn_t8y1o_1", ut = "_fadeOut_t8y1o_1", mt = "_modal_t8y1o_36", ft = "_slideIn_t8y1o_1", gt = "_slideOut_t8y1o_1", ht = "_content_t8y1o_59", yt = "_footer_t8y1o_148", pt = "_stickyFooter_t8y1o_152", v = {
189
189
  overlay: ct,
190
190
  afterOpen: it,
191
191
  beforeClose: dt,
@@ -195,8 +195,8 @@ const fn = (t) => {
195
195
  slideIn: ft,
196
196
  slideOut: gt,
197
197
  content: ht,
198
- footer: pt,
199
- stickyFooter: yt
198
+ footer: yt,
199
+ stickyFooter: pt
200
200
  }, Ct = ({
201
201
  children: t,
202
202
  background: e,
@@ -207,17 +207,17 @@ const fn = (t) => {
207
207
  content: { "--swui-modal-content-bg-color": e }
208
208
  };
209
209
  return /* @__PURE__ */ n(
210
- B,
210
+ x,
211
211
  {
212
212
  overlayClassName: {
213
- base: $.overlay,
214
- beforeClose: $.beforeClose,
215
- afterOpen: $.afterOpen
213
+ base: v.overlay,
214
+ beforeClose: v.beforeClose,
215
+ afterOpen: v.afterOpen
216
216
  },
217
217
  className: {
218
- base: $.modal,
219
- beforeClose: $.beforeClose,
220
- afterOpen: $.afterOpen
218
+ base: v.modal,
219
+ beforeClose: v.beforeClose,
220
+ afterOpen: v.afterOpen
221
221
  },
222
222
  style: s,
223
223
  closeTimeoutMS: 250,
@@ -225,24 +225,24 @@ const fn = (t) => {
225
225
  children: /* @__PURE__ */ n(
226
226
  "div",
227
227
  {
228
- className: $.content,
228
+ className: v.content,
229
229
  style: { "--swui-modal-width": "fit-content" },
230
230
  children: t
231
231
  }
232
232
  )
233
233
  }
234
234
  );
235
- }, vt = "_modal_4fwgb_1", wt = "_overlay_4fwgb_13", ie = {
236
- modal: vt,
237
- overlay: wt
238
- }, yn = ({
235
+ }, wt = "_modal_4fwgb_1", It = "_overlay_4fwgb_13", ie = {
236
+ modal: wt,
237
+ overlay: It
238
+ }, pn = ({
239
239
  headerIconLeft: t,
240
240
  headerText: e,
241
241
  shouldCloseOnOverlayClick: o = !1,
242
242
  shouldCloseOnEsc: s = !1,
243
243
  ...c
244
244
  }) => /* @__PURE__ */ n(
245
- B,
245
+ x,
246
246
  {
247
247
  ...c,
248
248
  isOpen: !0,
@@ -252,7 +252,7 @@ const fn = (t) => {
252
252
  overlayClassName: ie.overlay,
253
253
  children: /* @__PURE__ */ m(Z, { spacing: 2, alignItems: "center", children: [
254
254
  /* @__PURE__ */ n(
255
- q,
255
+ B,
256
256
  {
257
257
  alignItems: "center",
258
258
  justifyContent: "center",
@@ -261,39 +261,39 @@ const fn = (t) => {
261
261
  borderRadius: "50%",
262
262
  background: "white",
263
263
  shadow: "modal",
264
- children: /* @__PURE__ */ n(qe, { size: "small" })
264
+ children: /* @__PURE__ */ n(Be, { size: "small" })
265
265
  }
266
266
  ),
267
267
  (t || e) && /* @__PURE__ */ m(re, { children: [
268
268
  /* @__PURE__ */ n(Q, {}),
269
- /* @__PURE__ */ m(w, { indent: 2, children: [
269
+ /* @__PURE__ */ m(I, { indent: 2, children: [
270
270
  t && /* @__PURE__ */ m(re, { children: [
271
271
  /* @__PURE__ */ n(_e, { size: 14, icon: t, color: "white" }),
272
- /* @__PURE__ */ n(Ne, {})
272
+ /* @__PURE__ */ n($e, {})
273
273
  ] }),
274
274
  e && /* @__PURE__ */ n(U, { variant: "h4", color: "white", children: e })
275
275
  ] })
276
276
  ] })
277
277
  ] })
278
278
  }
279
- ), It = ({
279
+ ), bt = ({
280
280
  onRequestClose: t,
281
281
  header: e,
282
282
  headerText: o,
283
283
  closeButtonClassName: s
284
284
  }) => /* @__PURE__ */ m(
285
- w,
285
+ I,
286
286
  {
287
287
  spacing: 2,
288
288
  indent: 2,
289
289
  borderBottom: "1px solid var(--lhds-color-ui-300)",
290
290
  className: me,
291
291
  children: [
292
- /* @__PURE__ */ m(w, { flex: 1, indent: !0, alignItems: "center", children: [
293
- o && /* @__PURE__ */ n($e, { className: fe, size: "large", children: o }),
292
+ /* @__PURE__ */ m(I, { flex: 1, indent: !0, alignItems: "center", children: [
293
+ o && /* @__PURE__ */ n(ve, { className: fe, size: "large", children: o }),
294
294
  e
295
295
  ] }),
296
- /* @__PURE__ */ n(q, { alignSelf: "flex-start", children: /* @__PURE__ */ n(
296
+ /* @__PURE__ */ n(B, { alignSelf: "flex-start", children: /* @__PURE__ */ n(
297
297
  ue,
298
298
  {
299
299
  className: s,
@@ -311,8 +311,8 @@ const fn = (t) => {
311
311
  draggable: f = !1,
312
312
  onRequestClose: g,
313
313
  closeButtonClassName: h,
314
- footer: I,
315
- disableStickyFooter: y = !1,
314
+ footer: b,
315
+ disableStickyFooter: p = !1,
316
316
  ..._
317
317
  }) => /* @__PURE__ */ m(
318
318
  He,
@@ -322,7 +322,7 @@ const fn = (t) => {
322
322
  draggable: f,
323
323
  children: [
324
324
  /* @__PURE__ */ n(
325
- It,
325
+ bt,
326
326
  {
327
327
  onRequestClose: g,
328
328
  header: t,
@@ -330,19 +330,19 @@ const fn = (t) => {
330
330
  closeButtonClassName: h
331
331
  }
332
332
  ),
333
- /* @__PURE__ */ n(q, { spacing: typeof s == "number" ? s : 1, indent: typeof c == "number" ? c : 1, children: o }),
334
- I && /* @__PURE__ */ n(
335
- q,
333
+ /* @__PURE__ */ n(B, { spacing: typeof s == "number" ? s : 1, indent: typeof c == "number" ? c : 1, children: o }),
334
+ b && /* @__PURE__ */ n(
335
+ B,
336
336
  {
337
337
  className: d(D.footer, {
338
- [D.stickyFooter]: !y
338
+ [D.stickyFooter]: !p
339
339
  }),
340
- children: I
340
+ children: b
341
341
  }
342
342
  )
343
343
  ]
344
344
  }
345
- ), vn = ({ children: t }) => /* @__PURE__ */ n(Z, { indent: 2, spacing: 2, children: t }), K = ve(
345
+ ), wn = ({ children: t }) => /* @__PURE__ */ n(Z, { indent: 2, spacing: 2, children: t }), K = we(
346
346
  void 0
347
347
  );
348
348
  function R(t, {
@@ -353,136 +353,136 @@ function R(t, {
353
353
  contentWrapperStyle: f,
354
354
  dialogStyle: g,
355
355
  divInsteadOfDialog: h,
356
- disableCloseOnClickOutside: I,
357
- onResolve: y,
356
+ disableCloseOnClickOutside: b,
357
+ onResolve: p,
358
358
  onReject: _,
359
- className: M,
360
- background: A,
361
- label: W,
359
+ className: W,
360
+ background: L,
361
+ label: q,
362
362
  labelledby: S,
363
363
  describedby: T
364
364
  }) {
365
- const he = k(null), i = e ?? he, [E, pe] = we((r) => r + 1, 0), j = k(null), b = k(null), C = k(void 0), p = k(null), [ee, L] = V(!1), [H, F] = V(!1), [te, v] = V(!1), P = t, ye = x(
365
+ const he = k(null), i = e ?? he, [E, ye] = Ie((r) => r + 1, 0), j = k(null), O = k(null), C = k(void 0), y = k(null), [ee, z] = V(!1), [H, F] = V(!1), [te, w] = V(!1), P = t, pe = A(
366
366
  (r) => {
367
367
  var l, a;
368
368
  return j.current = new Promise(
369
- (N, Ce) => {
370
- b.current = N, p.current = Ce;
369
+ ($, Ce) => {
370
+ O.current = $, y.current = Ce;
371
371
  }
372
- ), v(!1), L(!0), F(!0), pe(), C.current = r, o ? (l = i.current) == null || l.showModal() : (a = i.current) == null || a.show(), j.current;
372
+ ), w(!1), z(!0), F(!0), ye(), C.current = r, o ? (l = i.current) == null || l.showModal() : (a = i.current) == null || a.show(), j.current;
373
373
  },
374
374
  [i, o]
375
- ), ne = x(
375
+ ), ne = A(
376
376
  (r) => {
377
377
  var l;
378
- v(!0), L(!1), h ? setTimeout(() => {
378
+ w(!0), z(!1), h ? setTimeout(() => {
379
379
  var a;
380
- v(!1), F(!1), (a = b.current) == null || a.call(b, r), C.current = void 0, y == null || y();
380
+ w(!1), F(!1), (a = O.current) == null || a.call(O, r), C.current = void 0, p == null || p();
381
381
  }, 300) : (l = i.current) == null || l.addEventListener(
382
382
  "animationend",
383
383
  () => {
384
- var a, N;
385
- v(!1), F(!1), (a = i.current) == null || a.close(), (N = b.current) == null || N.call(b, r), C.current = void 0, y == null || y();
384
+ var a, $;
385
+ w(!1), F(!1), (a = i.current) == null || a.close(), ($ = O.current) == null || $.call(O, r), C.current = void 0, p == null || p();
386
386
  },
387
387
  { once: !0 }
388
388
  );
389
389
  },
390
- [i, y, h]
391
- ), oe = x(() => {
390
+ [i, p, h]
391
+ ), oe = A(() => {
392
392
  var r;
393
- v(!1), L(!1), F(!1), (r = p.current) == null || r.call(p), _ == null || _(), C.current = void 0;
394
- }, [_]), O = x(
393
+ w(!1), z(!1), F(!1), (r = y.current) == null || r.call(y), _ == null || _(), C.current = void 0;
394
+ }, [_]), N = A(
395
395
  (r) => {
396
396
  var l;
397
- v(!0), L(!1), h ? setTimeout(() => {
397
+ w(!0), z(!1), h ? setTimeout(() => {
398
398
  var a;
399
- v(!1), F(!1), (a = p.current) == null || a.call(p, r), _ == null || _(), C.current = void 0;
399
+ w(!1), F(!1), (a = y.current) == null || a.call(y, r), _ == null || _(), C.current = void 0;
400
400
  }, 300) : (l = i.current) == null || l.addEventListener(
401
401
  "animationend",
402
402
  () => {
403
- var a, N;
404
- v(!1), F(!1), (a = i.current) == null || a.close(), (N = p.current) == null || N.call(p, r), _ == null || _(), C.current = void 0;
403
+ var a, $;
404
+ w(!1), F(!1), (a = i.current) == null || a.close(), ($ = y.current) == null || $.call(y, r), _ == null || _(), C.current = void 0;
405
405
  },
406
406
  { once: !0 }
407
407
  );
408
408
  },
409
409
  [i, h, _]
410
- ), se = x(
410
+ ), se = A(
411
411
  (r) => {
412
412
  if (r.target !== i.current)
413
413
  return;
414
414
  const l = i.current.getBoundingClientRect();
415
- l.top <= r.clientY && r.clientY <= l.top + l.height && l.left <= r.clientX && r.clientX <= l.left + l.width || O();
415
+ l.top <= r.clientY && r.clientY <= l.top + l.height && l.left <= r.clientX && r.clientX <= l.left + l.width || N();
416
416
  },
417
- [i, O]
417
+ [i, N]
418
418
  ), G = le(
419
- () => ({ resolve: ne, reject: O }),
420
- [O, ne]
419
+ () => ({ resolve: ne, reject: N }),
420
+ [N, ne]
421
421
  );
422
422
  return [le(
423
423
  () => h ? /* @__PURE__ */ n(
424
424
  Ct,
425
425
  {
426
426
  isOpen: ee,
427
- onRequestClose: O,
428
- background: A,
429
- contentLabel: W,
427
+ onRequestClose: N,
428
+ background: L,
429
+ contentLabel: q,
430
430
  aria: { modal: !0, labelledby: S, describedby: T },
431
431
  children: /* @__PURE__ */ n(K.Provider, { value: G, children: H && /* @__PURE__ */ ae(P, { ...C.current, key: E }) })
432
432
  }
433
433
  ) : /* @__PURE__ */ n(
434
434
  "dialog",
435
435
  {
436
- onClick: I ? void 0 : se,
436
+ onClick: b ? void 0 : se,
437
437
  onClose: oe,
438
438
  ref: i,
439
- className: d(M, te && c),
440
- "aria-label": W,
439
+ className: d(W, te && c),
440
+ "aria-label": q,
441
441
  "aria-labelledby": S,
442
442
  "aria-describedby": T,
443
- style: { background: A, ...g },
443
+ style: { background: L, ...g },
444
444
  children: /* @__PURE__ */ n("div", { style: f, className: s, children: H && /* @__PURE__ */ n(K.Provider, { value: G, children: /* @__PURE__ */ ae(P, { ...C.current, key: E }) }) })
445
445
  }
446
446
  ),
447
447
  [
448
448
  h,
449
449
  ee,
450
- O,
451
- A,
452
- W,
450
+ N,
451
+ L,
452
+ q,
453
453
  S,
454
454
  T,
455
455
  G,
456
456
  H,
457
457
  P,
458
458
  E,
459
- I,
459
+ b,
460
460
  se,
461
461
  oe,
462
462
  i,
463
- M,
463
+ W,
464
464
  te,
465
465
  c,
466
466
  g,
467
467
  f,
468
468
  s
469
469
  ]
470
- ), { show: ye, reject: O }];
470
+ ), { show: pe, reject: N }];
471
471
  }
472
- const wn = () => {
473
- const t = Ie(K);
472
+ const In = () => {
473
+ const t = be(K);
474
474
  if (t == null)
475
475
  throw new Error("useDialogPromise is being used outside of dialog.");
476
476
  return t;
477
- }, bt = "_alertDialog_14t8t_1", Ot = "_slideIn_14t8t_1", Nt = "_closing_14t8t_22", $t = "_slideOut_14t8t_1", Ft = "_fadeIn_14t8t_1", kt = "_fadeOut_14t8t_1", Y = {
478
- alertDialog: bt,
479
- slideIn: Ot,
480
- closing: Nt,
481
- slideOut: $t,
477
+ }, Ot = "_alertDialog_14t8t_1", Nt = "_slideIn_14t8t_1", $t = "_closing_14t8t_22", vt = "_slideOut_14t8t_1", Ft = "_fadeIn_14t8t_1", kt = "_fadeOut_14t8t_1", Y = {
478
+ alertDialog: Ot,
479
+ slideIn: Nt,
480
+ closing: $t,
481
+ slideOut: vt,
482
482
  fadeIn: Ft,
483
483
  fadeOut: kt
484
484
  };
485
- function In(t, e) {
485
+ function bn(t, e) {
486
486
  return R(t, {
487
487
  ...e,
488
488
  modal: !0,
@@ -494,16 +494,16 @@ function In(t, e) {
494
494
  className: d(e == null ? void 0 : e.className, Y.alertDialog)
495
495
  });
496
496
  }
497
- const Dt = "_drawerDialog_11g6r_1", qt = "_left_11g6r_13", Bt = "_right_11g6r_14", xt = "_contentWrapper_11g6r_19", At = "_slideInLeft_11g6r_1", Lt = "_closing_11g6r_36", zt = "_slideOutLeft_11g6r_1", Mt = "_slideInRight_11g6r_1", Wt = "_slideOutRight_11g6r_1", St = "_top_11g6r_54", Tt = "_bottom_11g6r_55", Et = "_slideInTop_11g6r_1", Ht = "_slideOutTop_11g6r_1", Pt = "_slideInBottom_11g6r_1", Gt = "_slideOutBottom_11g6r_1", z = {
497
+ const Dt = "_drawerDialog_11g6r_1", Bt = "_left_11g6r_13", xt = "_right_11g6r_14", At = "_contentWrapper_11g6r_19", Lt = "_slideInLeft_11g6r_1", zt = "_closing_11g6r_36", Mt = "_slideOutLeft_11g6r_1", Wt = "_slideInRight_11g6r_1", qt = "_slideOutRight_11g6r_1", St = "_top_11g6r_54", Tt = "_bottom_11g6r_55", Et = "_slideInTop_11g6r_1", Ht = "_slideOutTop_11g6r_1", Pt = "_slideInBottom_11g6r_1", Gt = "_slideOutBottom_11g6r_1", M = {
498
498
  drawerDialog: Dt,
499
- left: qt,
500
- right: Bt,
501
- contentWrapper: xt,
502
- slideInLeft: At,
503
- closing: Lt,
504
- slideOutLeft: zt,
505
- slideInRight: Mt,
506
- slideOutRight: Wt,
499
+ left: Bt,
500
+ right: xt,
501
+ contentWrapper: At,
502
+ slideInLeft: Lt,
503
+ closing: zt,
504
+ slideOutLeft: Mt,
505
+ slideInRight: Wt,
506
+ slideOutRight: qt,
507
507
  top: St,
508
508
  bottom: Tt,
509
509
  slideInTop: Et,
@@ -511,17 +511,17 @@ const Dt = "_drawerDialog_11g6r_1", qt = "_left_11g6r_13", Bt = "_right_11g6r_14
511
511
  slideInBottom: Pt,
512
512
  slideOutBottom: Gt
513
513
  };
514
- function bn(t, e = "left", o) {
514
+ function On(t, e = "left", o) {
515
515
  return R(t, {
516
516
  ...o,
517
517
  disableCloseOnClickOutside: !0,
518
518
  modal: !1,
519
- closingClassName: d(o == null ? void 0 : o.closingClassName, z.closing),
519
+ closingClassName: d(o == null ? void 0 : o.closingClassName, M.closing),
520
520
  contentWrapperClassName: d(
521
521
  o == null ? void 0 : o.contentWrapperClassName,
522
- z.contentWrapper
522
+ M.contentWrapper
523
523
  ),
524
- className: d(o == null ? void 0 : o.className, z.drawerDialog, z[e])
524
+ className: d(o == null ? void 0 : o.className, M.drawerDialog, M[e])
525
525
  });
526
526
  }
527
527
  const Vt = "_modalDialog_1teni_1", Xt = "_slideIn_1teni_1", Yt = "_closing_1teni_36", Jt = "_slideOut_1teni_1", Kt = "_fadeIn_1teni_1", Qt = "_fadeOut_1teni_1", Ut = "_contentWrapper_1teni_100", J = {
@@ -533,7 +533,7 @@ const Vt = "_modalDialog_1teni_1", Xt = "_slideIn_1teni_1", Yt = "_closing_1teni
533
533
  fadeOut: Qt,
534
534
  contentWrapper: Ut
535
535
  };
536
- function On(t, e) {
536
+ function Nn(t, e) {
537
537
  return R(t, {
538
538
  ...e,
539
539
  modal: !0,
@@ -553,10 +553,10 @@ const ge = ({
553
553
  modalActionButtons: Zt
554
554
  }, jt = ({
555
555
  buttons: t
556
- }) => /* @__PURE__ */ m(q, { width: "100%", children: [
556
+ }) => /* @__PURE__ */ m(B, { width: "100%", children: [
557
557
  /* @__PURE__ */ n(Q, {}),
558
558
  /* @__PURE__ */ n("div", { className: Rt.modalActionButtons, children: t })
559
- ] }), en = ({ gap: t = 3, ...e }) => /* @__PURE__ */ n(q, { indent: 3, spacing: 3, gap: t, ...e }), tn = ({
559
+ ] }), en = ({ gap: t = 3, ...e }) => /* @__PURE__ */ n(B, { indent: 3, spacing: 3, gap: t, ...e }), tn = ({
560
560
  children: t,
561
561
  maxWidth: e
562
562
  }) => /* @__PURE__ */ n(
@@ -568,7 +568,7 @@ const ge = ({
568
568
  maxWidth: e,
569
569
  children: t
570
570
  }
571
- ), Nn = ({
571
+ ), $n = ({
572
572
  icon: t,
573
573
  buttons: e,
574
574
  heading: o,
@@ -584,19 +584,19 @@ const ge = ({
584
584
  maxWidth: f,
585
585
  minWidth: g,
586
586
  children: [
587
- t && /* @__PURE__ */ n(Be, { icon: t, size: "large" }),
587
+ t && /* @__PURE__ */ n(xe, { icon: t, size: "large" }),
588
588
  /* @__PURE__ */ n(ge, { children: o }),
589
589
  s && /* @__PURE__ */ n(Fe, { textAlign: "center", children: s }),
590
590
  c,
591
591
  e && /* @__PURE__ */ n(jt, { buttons: e })
592
592
  ]
593
593
  }
594
- ) }), $n = ({
594
+ ) }), vn = ({
595
595
  heading: t,
596
596
  headingLevel: e,
597
597
  headingSize: o,
598
598
  onClickClose: s
599
- }) => /* @__PURE__ */ m(w, { justifyContent: "space-between", children: [
599
+ }) => /* @__PURE__ */ m(I, { justifyContent: "space-between", children: [
600
600
  t && /* @__PURE__ */ n(ge, { headingLevel: e, size: o, children: t }),
601
601
  /* @__PURE__ */ n(ue, { onClick: s })
602
602
  ] }), nn = "_modalFooter_112wr_1", on = "_sticky_112wr_10", de = {
@@ -607,7 +607,7 @@ const ge = ({
607
607
  sticky: e,
608
608
  zIndex: o = 4
609
609
  }) => /* @__PURE__ */ n(
610
- w,
610
+ I,
611
611
  {
612
612
  className: d(de.modalFooter, e && de.sticky),
613
613
  shadow: "var(--swui-sticky-footer-shadow)",
@@ -616,30 +616,30 @@ const ge = ({
616
616
  }
617
617
  );
618
618
  export {
619
- pn as Alert,
619
+ yn as Alert,
620
620
  He as BaseWindow,
621
621
  fe as DRAGGABLE_CANCEL_CLASSNAME,
622
622
  me as DRAGGABLE_HANDLE_CLASSNAME,
623
623
  K as DialogContext,
624
624
  gn as Drawer,
625
625
  hn as DrawerHeader,
626
- Nn as InfoAlert,
627
- yn as LoadingModal,
626
+ $n as InfoAlert,
627
+ pn as LoadingModal,
628
628
  Ct as Modal,
629
629
  jt as ModalActionButtons,
630
630
  en as ModalBody,
631
631
  tn as ModalContainer,
632
632
  Fn as ModalFooter,
633
- $n as ModalHeader,
633
+ vn as ModalHeader,
634
634
  ge as ModalHeading,
635
635
  Cn as Window,
636
- vn as WindowFooter,
637
- It as WindowHeader,
636
+ wn as WindowFooter,
637
+ bt as WindowHeader,
638
638
  fn as setupDeclarativeModals,
639
- In as useAlertDialog,
639
+ bn as useAlertDialog,
640
640
  R as useDialog,
641
- wn as useDialogPromise,
642
- bn as useDrawerDialog,
643
- On as useModalDialog
641
+ In as useDialogPromise,
642
+ On as useDrawerDialog,
643
+ Nn as useModalDialog
644
644
  };
645
645
  //# sourceMappingURL=index.es.js.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
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_15dqv_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_15dqv_1._afterOpen_15dqv_24:not(._beforeClose_15dqv_24){animation:_fadeIn_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1._beforeClose_15dqv_24{animation:_fadeOut_15dqv_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_15dqv_1{background-color:#fff}}._overlay_15dqv_1 ._modal_15dqv_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_15dqv_1 ._modal_15dqv_36{padding:0;width:100%}}._overlay_15dqv_1 ._modal_15dqv_36._afterOpen_15dqv_24:not(._beforeClose_15dqv_24){animation:_slideIn_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1 ._modal_15dqv_36._beforeClose_15dqv_24{animation:_slideOut_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1 ._content_15dqv_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_15dqv_1 ._content_15dqv_59{border-radius:0;width:100%;max-width:100%;min-height:100vh}}@media (min-width: 769px){._overlay_15dqv_1 ._content_15dqv_59{border-radius:var(--swui-border-radius-large)}._overlay_15dqv_1 ._content_15dqv_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._overlay_15dqv_1 ._content_15dqv_59::-webkit-scrollbar{width:16px}}@media print{._overlay_15dqv_1 ._content_15dqv_59{box-shadow:none;top:0}}._overlay_15dqv_1 ._content_15dqv_59 :focus{outline:0}@keyframes _fadeIn_15dqv_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_15dqv_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_15dqv_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_15dqv_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_15dqv_148{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_15dqv_152{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_15dqv_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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react-modal"),e=require("react/jsx-runtime"),l=require("react"),fe=require("react-draggable"),u=require("classnames"),o=require("@stenajs-webui/core"),v=require("@stenajs-webui/elements"),ge=require("@stenajs-webui/theme"),he=s=>{F.setAppElement(s)},xe="_overlay_quvmp_1",Ce="_fadeIn_quvmp_1",pe="_modal_quvmp_31",ye="_content_quvmp_41",we="_appear_quvmp_1",ve="_isDraggable_quvmp_70",be="_footer_quvmp_101",je="_stickyFooter_quvmp_105",$={overlay:xe,fadeIn:Ce,modal:pe,content:ye,appear:we,isDraggable:ve,footer:be,stickyFooter:je},X="draggable-modal-handle",Y="draggable-modal-cancel",oe=({width:s,maxWidth:t,draggable:n=!1,children:r,...d})=>{const g=l.useRef(null);return e.jsx(F,{overlayClassName:$.overlay,className:$.modal,...d,children:e.jsx(fe,{handle:`.${X}`,cancel:`.${Y}, button, [role="tooltip"]`,bounds:".ReactModal__Overlay",disabled:!n,nodeRef:g,children:e.jsx("div",{style:{"--swui-modal-width":s,"--swui-modal-max-width":t},className:u($.content,{[$.isDraggable]:n}),ref:g,children:r})})})},Ie="_portal_17ze5_1",Ne="_overlay_17ze5_4",De="_content_17ze5_9",Oe="_floating_17ze5_15",$e="_slideFromLeft_17ze5_29",Fe="_slideFromRight_17ze5_30",ke="_afterOpen_17ze5_36",qe="_beforeClose_17ze5_40",Be="_slideFromTop_17ze5_45",Ae="_slideFromBottom_17ze5_46",f={portal:Ie,overlay:Ne,content:De,floating:Oe,slideFromLeft:$e,slideFromRight:Fe,afterOpen:ke,beforeClose:qe,slideFromTop:Be,slideFromBottom:Ae},Me=({background:s,zIndex:t,children:n,slideFrom:r="left",portalTarget:d,floating:g,...h})=>{const{height:x,width:b}=h;return e.jsx(F,{closeTimeoutMS:250,portalClassName:f.portal,overlayClassName:{base:f.overlay,afterOpen:f.afterOpen,beforeClose:f.beforeClose},className:{base:u(f.content,Le(r),g&&f.floating),afterOpen:f.afterOpen,beforeClose:f.beforeClose},style:{content:{width:b,height:x,background:s},overlay:{zIndex:t}},parentSelector:d?()=>d:void 0,...h,children:n})},Le=s=>{switch(s){case"left":return f.slideFromLeft;case"right":return f.slideFromRight;case"top":return f.slideFromTop;case"bottom":return f.slideFromBottom;default:return o.exhaustSwitchCase(s,f.slideFromLeft)}},Se=({header:s,contentRight:t,onRequestClose:n,icon:r})=>e.jsx(o.Spacing,{position:"sticky",top:0,zIndex:100,background:ge.cssColor("--lhds-color-ui-50"),children:e.jsxs(o.Row,{justifyContent:"space-between",alignItems:"center",height:"48px",children:[e.jsxs(o.Row,{alignItems:"center",gap:2,children:[e.jsx(o.Space,{num:1}),r&&e.jsx(v.Icon,{icon:r,size:24}),e.jsx(o.Heading,{variant:"h4",children:s})]}),e.jsxs(o.Row,{gap:1,children:[t,e.jsx(v.FlatButton,{leftIcon:v.stenaTimes,onClick:n,variant:"danger"}),e.jsx(o.Space,{num:.5})]})]})}),We="_overlay_r9tkq_1",Ee="_fadeIn_r9tkq_1",ze="_modal_r9tkq_31",Te="_content_r9tkq_38",He="_appear_r9tkq_1",Ge="_isDraggable_r9tkq_61",Pe="_footer_r9tkq_92",Re="_stickyFooter_r9tkq_96",P={overlay:We,fadeIn:Ee,modal:ze,content:Te,appear:He,isDraggable:Ge,footer:Pe,stickyFooter:Re},Ve={overlay:{justifyContent:"center"}},Xe=({children:s,...t})=>e.jsx(F,{overlayClassName:P.overlay,className:P.modal,style:Ve,...t,children:e.jsx("div",{className:P.content,style:{"--swui-modal-width":"fit-content"},children:s})}),Ye="_overlay_15dqv_1",Je="_afterOpen_15dqv_24",Ke="_beforeClose_15dqv_24",Qe="_fadeIn_15dqv_1",Ue="_fadeOut_15dqv_1",Ze="_modal_15dqv_36",et="_slideIn_15dqv_1",tt="_slideOut_15dqv_1",st="_content_15dqv_59",nt="_footer_15dqv_148",ot="_stickyFooter_15dqv_152",D={overlay:Ye,afterOpen:Je,beforeClose:Ke,fadeIn:Qe,fadeOut:Ue,modal:Ze,slideIn:et,slideOut:tt,content:st,footer:nt,stickyFooter:ot},re=({children:s,background:t,...n})=>{const r={overlay:{justifyContent:"center"},content:{"--swui-modal-content-bg-color":t}};return e.jsx(F,{overlayClassName:{base:D.overlay,beforeClose:D.beforeClose,afterOpen:D.afterOpen},className:{base:D.modal,beforeClose:D.beforeClose,afterOpen:D.afterOpen},style:r,closeTimeoutMS:250,...n,children:e.jsx("div",{className:D.content,style:{"--swui-modal-width":"fit-content"},children:s})})},rt="_modal_4fwgb_1",lt="_overlay_4fwgb_13",se={modal:rt,overlay:lt},at=({headerIconLeft:s,headerText:t,shouldCloseOnOverlayClick:n=!1,shouldCloseOnEsc:r=!1,...d})=>e.jsx(F,{...d,isOpen:!0,shouldCloseOnOverlayClick:n,shouldCloseOnEsc:r,className:se.modal,overlayClassName:se.overlay,children:e.jsxs(o.Column,{spacing:2,alignItems:"center",children:[e.jsx(o.Box,{alignItems:"center",justifyContent:"center",width:"64px",height:"64px",borderRadius:"50%",background:"white",shadow:"modal",children:e.jsx(v.Spinner,{size:"small"})}),(s||t)&&e.jsxs(e.Fragment,{children:[e.jsx(o.Spacing,{}),e.jsxs(o.Row,{indent:2,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(v.Icon,{size:14,icon:s,color:"white"}),e.jsx(o.Indent,{})]}),t&&e.jsx(o.Heading,{variant:"h4",color:"white",children:t})]})]})]})}),le=({onRequestClose:s,header:t,headerText:n,closeButtonClassName:r})=>e.jsxs(o.Row,{spacing:2,indent:2,borderBottom:"1px solid var(--lhds-color-ui-300)",className:X,children:[e.jsxs(o.Row,{flex:1,indent:!0,alignItems:"center",children:[n&&e.jsx(o.Txt,{className:Y,size:"large",children:n}),t]}),e.jsx(o.Box,{alignSelf:"flex-start",children:e.jsx(v.CloseButton,{className:r,onClick:s})})]}),ct=({header:s,headerText:t,children:n,spacing:r,indent:d,draggable:g=!1,onRequestClose:h,closeButtonClassName:x,footer:b,disableStickyFooter:p=!1,...m})=>{const q=typeof r=="number"?r:1,k=typeof d=="number"?d:1;return e.jsxs(oe,{...m,onRequestClose:h,draggable:g,children:[e.jsx(le,{onRequestClose:h,header:s,headerText:t,closeButtonClassName:x}),e.jsx(o.Box,{spacing:q,indent:k,children:n}),b&&e.jsx(o.Box,{className:u($.footer,{[$.stickyFooter]:!p}),children:b})]})},it=({children:s})=>e.jsx(o.Column,{indent:2,spacing:2,children:s}),M=l.createContext(void 0);function L(s,{ref:t,modal:n,contentWrapperClassName:r,closingClassName:d,contentWrapperStyle:g,dialogStyle:h,divInsteadOfDialog:x,disableCloseOnClickOutside:b,onResolve:p,onReject:m,className:q,background:k,label:S,labelledby:W,describedby:E}){const de=l.useRef(null),_=t??de,[z,_e]=l.useReducer(a=>a+1,0),K=l.useRef(null),j=l.useRef(null),y=l.useRef(void 0),C=l.useRef(null),[Q,B]=l.useState(!1),[T,O]=l.useState(!1),[U,w]=l.useState(!1),H=s,ue=l.useCallback(a=>{var c,i;return K.current=new Promise((N,me)=>{j.current=N,C.current=me}),w(!1),B(!0),O(!0),_e(),y.current=a,n?(c=_.current)==null||c.showModal():(i=_.current)==null||i.show(),K.current},[_,n]),Z=l.useCallback(a=>{var c;w(!0),B(!1),x?setTimeout(()=>{var i;w(!1),O(!1),(i=j.current)==null||i.call(j,a),y.current=void 0,p==null||p()},300):(c=_.current)==null||c.addEventListener("animationend",()=>{var i,N;w(!1),O(!1),(i=_.current)==null||i.close(),(N=j.current)==null||N.call(j,a),y.current=void 0,p==null||p()},{once:!0})},[_,p,x]),ee=l.useCallback(()=>{var a;w(!1),B(!1),O(!1),(a=C.current)==null||a.call(C),m==null||m(),y.current=void 0},[m]),I=l.useCallback(a=>{var c;w(!0),B(!1),x?setTimeout(()=>{var i;w(!1),O(!1),(i=C.current)==null||i.call(C,a),m==null||m(),y.current=void 0},300):(c=_.current)==null||c.addEventListener("animationend",()=>{var i,N;w(!1),O(!1),(i=_.current)==null||i.close(),(N=C.current)==null||N.call(C,a),m==null||m(),y.current=void 0},{once:!0})},[_,x,m]),te=l.useCallback(a=>{if(a.target!==_.current)return;const c=_.current.getBoundingClientRect();c.top<=a.clientY&&a.clientY<=c.top+c.height&&c.left<=a.clientX&&a.clientX<=c.left+c.width||I()},[_,I]),G=l.useMemo(()=>({resolve:Z,reject:I}),[I,Z]);return[l.useMemo(()=>x?e.jsx(re,{isOpen:Q,onRequestClose:I,background:k,contentLabel:S,aria:{modal:!0,labelledby:W,describedby:E},children:e.jsx(M.Provider,{value:G,children:T&&l.createElement(H,{...y.current,key:z})})}):e.jsx("dialog",{onClick:b?void 0:te,onClose:ee,ref:_,className:u(q,U&&d),"aria-label":S,"aria-labelledby":W,"aria-describedby":E,style:{background:k,...h},children:e.jsx("div",{style:g,className:r,children:T&&e.jsx(M.Provider,{value:G,children:l.createElement(H,{...y.current,key:z})})})}),[x,Q,I,k,S,W,E,G,T,H,z,b,te,ee,_,q,U,d,h,g,r]),{show:ue,reject:I}]}const dt=()=>{const s=l.useContext(M);if(s==null)throw new Error("useDialogPromise is being used outside of dialog.");return s},_t="_alertDialog_14t8t_1",ut="_slideIn_14t8t_1",mt="_closing_14t8t_22",ft="_slideOut_14t8t_1",gt="_fadeIn_14t8t_1",ht="_fadeOut_14t8t_1",R={alertDialog:_t,slideIn:ut,closing:mt,slideOut:ft,fadeIn:gt,fadeOut:ht};function xt(s,t){return L(s,{...t,modal:!0,closingClassName:u(t==null?void 0:t.closingClassName,R.closing),contentWrapperClassName:u(t==null?void 0:t.contentWrapperClassName,R.contentWrapper),className:u(t==null?void 0:t.className,R.alertDialog)})}const Ct="_drawerDialog_11g6r_1",pt="_left_11g6r_13",yt="_right_11g6r_14",wt="_contentWrapper_11g6r_19",vt="_slideInLeft_11g6r_1",bt="_closing_11g6r_36",jt="_slideOutLeft_11g6r_1",It="_slideInRight_11g6r_1",Nt="_slideOutRight_11g6r_1",Dt="_top_11g6r_54",Ot="_bottom_11g6r_55",$t="_slideInTop_11g6r_1",Ft="_slideOutTop_11g6r_1",kt="_slideInBottom_11g6r_1",qt="_slideOutBottom_11g6r_1",A={drawerDialog:Ct,left:pt,right:yt,contentWrapper:wt,slideInLeft:vt,closing:bt,slideOutLeft:jt,slideInRight:It,slideOutRight:Nt,top:Dt,bottom:Ot,slideInTop:$t,slideOutTop:Ft,slideInBottom:kt,slideOutBottom:qt};function Bt(s,t="left",n){return L(s,{...n,disableCloseOnClickOutside:!0,modal:!1,closingClassName:u(n==null?void 0:n.closingClassName,A.closing),contentWrapperClassName:u(n==null?void 0:n.contentWrapperClassName,A.contentWrapper),className:u(n==null?void 0:n.className,A.drawerDialog,A[t])})}const At="_modalDialog_1teni_1",Mt="_slideIn_1teni_1",Lt="_closing_1teni_36",St="_slideOut_1teni_1",Wt="_fadeIn_1teni_1",Et="_fadeOut_1teni_1",zt="_contentWrapper_1teni_100",V={modalDialog:At,slideIn:Mt,closing:Lt,slideOut:St,fadeIn:Wt,fadeOut:Et,contentWrapper:zt};function Tt(s,t){return L(s,{...t,modal:!0,closingClassName:u(t==null?void 0:t.closingClassName,V.closing),contentWrapperClassName:u(t==null?void 0:t.contentWrapperClassName,V.contentWrapper),className:u(t==null?void 0:t.className,V.modalDialog)})}const J=({headingLevel:s="h2",size:t="medium",children:n})=>e.jsx(o.Heading,{variant:t==="medium"?"h3":"h1",as:s,children:n}),Ht="_modalActionButtons_s27nj_1",Gt={modalActionButtons:Ht},ae=({buttons:s})=>e.jsxs(o.Box,{width:"100%",children:[e.jsx(o.Spacing,{}),e.jsx("div",{className:Gt.modalActionButtons,children:s})]}),ce=({gap:s=3,...t})=>e.jsx(o.Box,{indent:3,spacing:3,gap:s,...t}),ie=({children:s,maxWidth:t})=>e.jsx(o.Column,{flex:1,height:"100%",justifyContent:"space-between",maxWidth:t,children:s}),Pt=({icon:s,buttons:t,heading:n,text:r,children:d,maxWidth:g,minWidth:h})=>e.jsx(ie,{children:e.jsxs(ce,{flexDirection:"column",alignItems:"center",maxWidth:g,minWidth:h,children:[s&&e.jsx(v.CircledIcon,{icon:s,size:"large"}),e.jsx(J,{children:n}),r&&e.jsx(o.Text,{textAlign:"center",children:r}),d,t&&e.jsx(ae,{buttons:t})]})}),Rt=({heading:s,headingLevel:t,headingSize:n,onClickClose:r})=>e.jsxs(o.Row,{justifyContent:"space-between",children:[s&&e.jsx(J,{headingLevel:t,size:n,children:s}),e.jsx(v.CloseButton,{onClick:r})]}),Vt="_modalFooter_112wr_1",Xt="_sticky_112wr_10",ne={modalFooter:Vt,sticky:Xt},Yt=({children:s,sticky:t,zIndex:n=4})=>e.jsx(o.Row,{className:u(ne.modalFooter,t&&ne.sticky),shadow:"var(--swui-sticky-footer-shadow)",zIndex:n,children:s});exports.Alert=Xe;exports.BaseWindow=oe;exports.DRAGGABLE_CANCEL_CLASSNAME=Y;exports.DRAGGABLE_HANDLE_CLASSNAME=X;exports.DialogContext=M;exports.Drawer=Me;exports.DrawerHeader=Se;exports.InfoAlert=Pt;exports.LoadingModal=at;exports.Modal=re;exports.ModalActionButtons=ae;exports.ModalBody=ce;exports.ModalContainer=ie;exports.ModalFooter=Yt;exports.ModalHeader=Rt;exports.ModalHeading=J;exports.Window=ct;exports.WindowFooter=it;exports.WindowHeader=le;exports.setupDeclarativeModals=he;exports.useAlertDialog=xt;exports.useDialog=L;exports.useDialogPromise=dt;exports.useDrawerDialog=Bt;exports.useModalDialog=Tt;
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react-modal"),e=require("react/jsx-runtime"),l=require("react"),fe=require("react-draggable"),u=require("classnames"),o=require("@stenajs-webui/core"),b=require("@stenajs-webui/elements"),ge=require("@stenajs-webui/theme"),he=s=>{F.setAppElement(s)},xe="_overlay_quvmp_1",ye="_fadeIn_quvmp_1",Ce="_modal_quvmp_31",pe="_content_quvmp_41",we="_appear_quvmp_1",be="_isDraggable_quvmp_70",je="_footer_quvmp_101",Ie="_stickyFooter_quvmp_105",v={overlay:xe,fadeIn:ye,modal:Ce,content:pe,appear:we,isDraggable:be,footer:je,stickyFooter:Ie},X="draggable-modal-handle",Y="draggable-modal-cancel",oe=({width:s,maxWidth:t,draggable:n=!1,children:r,...d})=>{const g=l.useRef(null);return e.jsx(F,{overlayClassName:v.overlay,className:v.modal,...d,children:e.jsx(fe,{handle:`.${X}`,cancel:`.${Y}, button, [role="tooltip"]`,bounds:".ReactModal__Overlay",disabled:!n,nodeRef:g,children:e.jsx("div",{style:{"--swui-modal-width":s,"--swui-modal-max-width":t},className:u(v.content,{[v.isDraggable]:n}),ref:g,children:r})})})},Ne="_portal_17ze5_1",De="_overlay_17ze5_4",Oe="_content_17ze5_9",$e="_floating_17ze5_15",ve="_slideFromLeft_17ze5_29",Fe="_slideFromRight_17ze5_30",ke="_afterOpen_17ze5_36",Be="_beforeClose_17ze5_40",Ae="_slideFromTop_17ze5_45",Me="_slideFromBottom_17ze5_46",f={portal:Ne,overlay:De,content:Oe,floating:$e,slideFromLeft:ve,slideFromRight:Fe,afterOpen:ke,beforeClose:Be,slideFromTop:Ae,slideFromBottom:Me},Le=({background:s,zIndex:t,children:n,slideFrom:r="left",portalTarget:d,floating:g,...h})=>{const{height:x,width:j}=h;return e.jsx(F,{closeTimeoutMS:250,portalClassName:f.portal,overlayClassName:{base:f.overlay,afterOpen:f.afterOpen,beforeClose:f.beforeClose},className:{base:u(f.content,qe(r),g&&f.floating),afterOpen:f.afterOpen,beforeClose:f.beforeClose},style:{content:{width:j,height:x,background:s},overlay:{zIndex:t}},parentSelector:d?()=>d:void 0,...h,children:n})},qe=s=>{switch(s){case"left":return f.slideFromLeft;case"right":return f.slideFromRight;case"top":return f.slideFromTop;case"bottom":return f.slideFromBottom;default:return o.exhaustSwitchCase(s,f.slideFromLeft)}},Se=({header:s,contentRight:t,onRequestClose:n,icon:r})=>e.jsx(o.Spacing,{position:"sticky",top:0,zIndex:100,background:ge.cssColor("--lhds-color-ui-50"),children:e.jsxs(o.Row,{justifyContent:"space-between",alignItems:"center",height:"48px",children:[e.jsxs(o.Row,{alignItems:"center",gap:2,children:[e.jsx(o.Space,{num:1}),r&&e.jsx(b.Icon,{icon:r,size:24}),e.jsx(o.Heading,{variant:"h4",children:s})]}),e.jsxs(o.Row,{gap:1,children:[t,e.jsx(b.FlatButton,{leftIcon:b.stenaTimes,onClick:n,variant:"danger"}),e.jsx(o.Space,{num:.5})]})]})}),We="_overlay_r9tkq_1",Ee="_fadeIn_r9tkq_1",ze="_modal_r9tkq_31",Te="_content_r9tkq_38",He="_appear_r9tkq_1",Ge="_isDraggable_r9tkq_61",Pe="_footer_r9tkq_92",Re="_stickyFooter_r9tkq_96",P={overlay:We,fadeIn:Ee,modal:ze,content:Te,appear:He,isDraggable:Ge,footer:Pe,stickyFooter:Re},Ve={overlay:{justifyContent:"center"}},Xe=({children:s,...t})=>e.jsx(F,{overlayClassName:P.overlay,className:P.modal,style:Ve,...t,children:e.jsx("div",{className:P.content,style:{"--swui-modal-width":"fit-content"},children:s})}),Ye="_overlay_t8y1o_1",Je="_afterOpen_t8y1o_24",Ke="_beforeClose_t8y1o_24",Qe="_fadeIn_t8y1o_1",Ue="_fadeOut_t8y1o_1",Ze="_modal_t8y1o_36",et="_slideIn_t8y1o_1",tt="_slideOut_t8y1o_1",st="_content_t8y1o_59",nt="_footer_t8y1o_148",ot="_stickyFooter_t8y1o_152",O={overlay:Ye,afterOpen:Je,beforeClose:Ke,fadeIn:Qe,fadeOut:Ue,modal:Ze,slideIn:et,slideOut:tt,content:st,footer:nt,stickyFooter:ot},re=({children:s,background:t,...n})=>{const r={overlay:{justifyContent:"center"},content:{"--swui-modal-content-bg-color":t}};return e.jsx(F,{overlayClassName:{base:O.overlay,beforeClose:O.beforeClose,afterOpen:O.afterOpen},className:{base:O.modal,beforeClose:O.beforeClose,afterOpen:O.afterOpen},style:r,closeTimeoutMS:250,...n,children:e.jsx("div",{className:O.content,style:{"--swui-modal-width":"fit-content"},children:s})})},rt="_modal_4fwgb_1",lt="_overlay_4fwgb_13",se={modal:rt,overlay:lt},at=({headerIconLeft:s,headerText:t,shouldCloseOnOverlayClick:n=!1,shouldCloseOnEsc:r=!1,...d})=>e.jsx(F,{...d,isOpen:!0,shouldCloseOnOverlayClick:n,shouldCloseOnEsc:r,className:se.modal,overlayClassName:se.overlay,children:e.jsxs(o.Column,{spacing:2,alignItems:"center",children:[e.jsx(o.Box,{alignItems:"center",justifyContent:"center",width:"64px",height:"64px",borderRadius:"50%",background:"white",shadow:"modal",children:e.jsx(b.Spinner,{size:"small"})}),(s||t)&&e.jsxs(e.Fragment,{children:[e.jsx(o.Spacing,{}),e.jsxs(o.Row,{indent:2,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(b.Icon,{size:14,icon:s,color:"white"}),e.jsx(o.Indent,{})]}),t&&e.jsx(o.Heading,{variant:"h4",color:"white",children:t})]})]})]})}),le=({onRequestClose:s,header:t,headerText:n,closeButtonClassName:r})=>e.jsxs(o.Row,{spacing:2,indent:2,borderBottom:"1px solid var(--lhds-color-ui-300)",className:X,children:[e.jsxs(o.Row,{flex:1,indent:!0,alignItems:"center",children:[n&&e.jsx(o.Txt,{className:Y,size:"large",children:n}),t]}),e.jsx(o.Box,{alignSelf:"flex-start",children:e.jsx(b.CloseButton,{className:r,onClick:s})})]}),ct=({header:s,headerText:t,children:n,spacing:r,indent:d,draggable:g=!1,onRequestClose:h,closeButtonClassName:x,footer:j,disableStickyFooter:C=!1,...m})=>{const B=typeof r=="number"?r:1,k=typeof d=="number"?d:1;return e.jsxs(oe,{...m,onRequestClose:h,draggable:g,children:[e.jsx(le,{onRequestClose:h,header:s,headerText:t,closeButtonClassName:x}),e.jsx(o.Box,{spacing:B,indent:k,children:n}),j&&e.jsx(o.Box,{className:u(v.footer,{[v.stickyFooter]:!C}),children:j})]})},it=({children:s})=>e.jsx(o.Column,{indent:2,spacing:2,children:s}),L=l.createContext(void 0);function q(s,{ref:t,modal:n,contentWrapperClassName:r,closingClassName:d,contentWrapperStyle:g,dialogStyle:h,divInsteadOfDialog:x,disableCloseOnClickOutside:j,onResolve:C,onReject:m,className:B,background:k,label:S,labelledby:W,describedby:E}){const de=l.useRef(null),_=t??de,[z,_e]=l.useReducer(a=>a+1,0),K=l.useRef(null),I=l.useRef(null),p=l.useRef(void 0),y=l.useRef(null),[Q,A]=l.useState(!1),[T,$]=l.useState(!1),[U,w]=l.useState(!1),H=s,ue=l.useCallback(a=>{var c,i;return K.current=new Promise((D,me)=>{I.current=D,y.current=me}),w(!1),A(!0),$(!0),_e(),p.current=a,n?(c=_.current)==null||c.showModal():(i=_.current)==null||i.show(),K.current},[_,n]),Z=l.useCallback(a=>{var c;w(!0),A(!1),x?setTimeout(()=>{var i;w(!1),$(!1),(i=I.current)==null||i.call(I,a),p.current=void 0,C==null||C()},300):(c=_.current)==null||c.addEventListener("animationend",()=>{var i,D;w(!1),$(!1),(i=_.current)==null||i.close(),(D=I.current)==null||D.call(I,a),p.current=void 0,C==null||C()},{once:!0})},[_,C,x]),ee=l.useCallback(()=>{var a;w(!1),A(!1),$(!1),(a=y.current)==null||a.call(y),m==null||m(),p.current=void 0},[m]),N=l.useCallback(a=>{var c;w(!0),A(!1),x?setTimeout(()=>{var i;w(!1),$(!1),(i=y.current)==null||i.call(y,a),m==null||m(),p.current=void 0},300):(c=_.current)==null||c.addEventListener("animationend",()=>{var i,D;w(!1),$(!1),(i=_.current)==null||i.close(),(D=y.current)==null||D.call(y,a),m==null||m(),p.current=void 0},{once:!0})},[_,x,m]),te=l.useCallback(a=>{if(a.target!==_.current)return;const c=_.current.getBoundingClientRect();c.top<=a.clientY&&a.clientY<=c.top+c.height&&c.left<=a.clientX&&a.clientX<=c.left+c.width||N()},[_,N]),G=l.useMemo(()=>({resolve:Z,reject:N}),[N,Z]);return[l.useMemo(()=>x?e.jsx(re,{isOpen:Q,onRequestClose:N,background:k,contentLabel:S,aria:{modal:!0,labelledby:W,describedby:E},children:e.jsx(L.Provider,{value:G,children:T&&l.createElement(H,{...p.current,key:z})})}):e.jsx("dialog",{onClick:j?void 0:te,onClose:ee,ref:_,className:u(B,U&&d),"aria-label":S,"aria-labelledby":W,"aria-describedby":E,style:{background:k,...h},children:e.jsx("div",{style:g,className:r,children:T&&e.jsx(L.Provider,{value:G,children:l.createElement(H,{...p.current,key:z})})})}),[x,Q,N,k,S,W,E,G,T,H,z,j,te,ee,_,B,U,d,h,g,r]),{show:ue,reject:N}]}const dt=()=>{const s=l.useContext(L);if(s==null)throw new Error("useDialogPromise is being used outside of dialog.");return s},_t="_alertDialog_14t8t_1",ut="_slideIn_14t8t_1",mt="_closing_14t8t_22",ft="_slideOut_14t8t_1",gt="_fadeIn_14t8t_1",ht="_fadeOut_14t8t_1",R={alertDialog:_t,slideIn:ut,closing:mt,slideOut:ft,fadeIn:gt,fadeOut:ht};function xt(s,t){return q(s,{...t,modal:!0,closingClassName:u(t==null?void 0:t.closingClassName,R.closing),contentWrapperClassName:u(t==null?void 0:t.contentWrapperClassName,R.contentWrapper),className:u(t==null?void 0:t.className,R.alertDialog)})}const yt="_drawerDialog_11g6r_1",Ct="_left_11g6r_13",pt="_right_11g6r_14",wt="_contentWrapper_11g6r_19",bt="_slideInLeft_11g6r_1",jt="_closing_11g6r_36",It="_slideOutLeft_11g6r_1",Nt="_slideInRight_11g6r_1",Dt="_slideOutRight_11g6r_1",Ot="_top_11g6r_54",$t="_bottom_11g6r_55",vt="_slideInTop_11g6r_1",Ft="_slideOutTop_11g6r_1",kt="_slideInBottom_11g6r_1",Bt="_slideOutBottom_11g6r_1",M={drawerDialog:yt,left:Ct,right:pt,contentWrapper:wt,slideInLeft:bt,closing:jt,slideOutLeft:It,slideInRight:Nt,slideOutRight:Dt,top:Ot,bottom:$t,slideInTop:vt,slideOutTop:Ft,slideInBottom:kt,slideOutBottom:Bt};function At(s,t="left",n){return q(s,{...n,disableCloseOnClickOutside:!0,modal:!1,closingClassName:u(n==null?void 0:n.closingClassName,M.closing),contentWrapperClassName:u(n==null?void 0:n.contentWrapperClassName,M.contentWrapper),className:u(n==null?void 0:n.className,M.drawerDialog,M[t])})}const Mt="_modalDialog_1teni_1",Lt="_slideIn_1teni_1",qt="_closing_1teni_36",St="_slideOut_1teni_1",Wt="_fadeIn_1teni_1",Et="_fadeOut_1teni_1",zt="_contentWrapper_1teni_100",V={modalDialog:Mt,slideIn:Lt,closing:qt,slideOut:St,fadeIn:Wt,fadeOut:Et,contentWrapper:zt};function Tt(s,t){return q(s,{...t,modal:!0,closingClassName:u(t==null?void 0:t.closingClassName,V.closing),contentWrapperClassName:u(t==null?void 0:t.contentWrapperClassName,V.contentWrapper),className:u(t==null?void 0:t.className,V.modalDialog)})}const J=({headingLevel:s="h2",size:t="medium",children:n})=>e.jsx(o.Heading,{variant:t==="medium"?"h3":"h1",as:s,children:n}),Ht="_modalActionButtons_s27nj_1",Gt={modalActionButtons:Ht},ae=({buttons:s})=>e.jsxs(o.Box,{width:"100%",children:[e.jsx(o.Spacing,{}),e.jsx("div",{className:Gt.modalActionButtons,children:s})]}),ce=({gap:s=3,...t})=>e.jsx(o.Box,{indent:3,spacing:3,gap:s,...t}),ie=({children:s,maxWidth:t})=>e.jsx(o.Column,{flex:1,height:"100%",justifyContent:"space-between",maxWidth:t,children:s}),Pt=({icon:s,buttons:t,heading:n,text:r,children:d,maxWidth:g,minWidth:h})=>e.jsx(ie,{children:e.jsxs(ce,{flexDirection:"column",alignItems:"center",maxWidth:g,minWidth:h,children:[s&&e.jsx(b.CircledIcon,{icon:s,size:"large"}),e.jsx(J,{children:n}),r&&e.jsx(o.Text,{textAlign:"center",children:r}),d,t&&e.jsx(ae,{buttons:t})]})}),Rt=({heading:s,headingLevel:t,headingSize:n,onClickClose:r})=>e.jsxs(o.Row,{justifyContent:"space-between",children:[s&&e.jsx(J,{headingLevel:t,size:n,children:s}),e.jsx(b.CloseButton,{onClick:r})]}),Vt="_modalFooter_112wr_1",Xt="_sticky_112wr_10",ne={modalFooter:Vt,sticky:Xt},Yt=({children:s,sticky:t,zIndex:n=4})=>e.jsx(o.Row,{className:u(ne.modalFooter,t&&ne.sticky),shadow:"var(--swui-sticky-footer-shadow)",zIndex:n,children:s});exports.Alert=Xe;exports.BaseWindow=oe;exports.DRAGGABLE_CANCEL_CLASSNAME=Y;exports.DRAGGABLE_HANDLE_CLASSNAME=X;exports.DialogContext=L;exports.Drawer=Le;exports.DrawerHeader=Se;exports.InfoAlert=Pt;exports.LoadingModal=at;exports.Modal=re;exports.ModalActionButtons=ae;exports.ModalBody=ce;exports.ModalContainer=ie;exports.ModalFooter=Yt;exports.ModalHeader=Rt;exports.ModalHeading=J;exports.Window=ct;exports.WindowFooter=it;exports.WindowHeader=le;exports.setupDeclarativeModals=he;exports.useAlertDialog=xt;exports.useDialog=q;exports.useDialogPromise=dt;exports.useDrawerDialog=At;exports.useModalDialog=Tt;
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stenajs-webui/modal",
3
- "version": "21.28.0",
3
+ "version": "21.29.1",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "author": "mattias800",
@@ -33,9 +33,9 @@
33
33
  "deploy": "gh-pages -d example/build"
34
34
  },
35
35
  "dependencies": {
36
- "@stenajs-webui/core": "21.28.0",
37
- "@stenajs-webui/elements": "21.28.0",
38
- "@stenajs-webui/theme": "21.28.0",
36
+ "@stenajs-webui/core": "21.29.1",
37
+ "@stenajs-webui/elements": "21.29.1",
38
+ "@stenajs-webui/theme": "21.29.1",
39
39
  "@types/react-modal": "^3.16.3",
40
40
  "classnames": "^2.5.1",
41
41
  "react-draggable": "4.4.6",
@@ -62,5 +62,5 @@
62
62
  "files": [
63
63
  "dist"
64
64
  ],
65
- "gitHead": "0f8cae612416d20594a94d021d01248379cd3eb1"
65
+ "gitHead": "2b612cd6cd4df018870806eb5110809dbd471ff0"
66
66
  }