@stenajs-webui/modal 21.24.0 → 21.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialog/UseDialog.d.ts +11 -1
- package/dist/index.es.js +230 -226
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._overlay_5x3op_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_5x3op_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_5x3op_1{background-color:#fff}}._overlay_5x3op_1 ._modal_5x3op_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_5x3op_1 ._modal_5x3op_31{width:100%}}._overlay_5x3op_1 ._content_5x3op_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_5x3op_1 ._content_5x3op_41{top:0;width:100%;max-width:100%}}._overlay_5x3op_1 ._content_5x3op_41{animation:_appear_5x3op_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_5x3op_1 ._content_5x3op_41{box-shadow:none;top:0}}._overlay_5x3op_1 ._content_5x3op_41 :focus{outline:0}._overlay_5x3op_1 ._content_5x3op_41._isDraggable_5x3op_70 .draggable-modal-handle{cursor:move}._overlay_5x3op_1 ._content_5x3op_41._isDraggable_5x3op_70 .draggable-modal-handle .draggable-modal-cancel,._overlay_5x3op_1 ._content_5x3op_41._isDraggable_5x3op_70 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_5x3op_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_5x3op_1{0%{opacity:0}to{opacity:1}}._footer_5x3op_101{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_5x3op_105{position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_5x3op_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: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: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:-moz-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:-moz-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:sticky;bottom:0}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._overlay_quvmp_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;top:0;left:0;right:0;bottom:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_quvmp_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_quvmp_1{background-color:#fff}}._overlay_quvmp_1 ._modal_quvmp_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_quvmp_1 ._modal_quvmp_31{width:100%}}._overlay_quvmp_1 ._content_quvmp_41{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);pointer-events:all;top:calc(var(--swui-metrics-space) * 2);width:var(--swui-modal-width);max-width:var(--swui-modal-max-width)}@media (max-width: 768px){._overlay_quvmp_1 ._content_quvmp_41{top:0;width:100%;max-width:100%}}._overlay_quvmp_1 ._content_quvmp_41{animation:_appear_quvmp_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_quvmp_1 ._content_quvmp_41{box-shadow:none;top:0}}._overlay_quvmp_1 ._content_quvmp_41:focus{outline:0}._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle{cursor:move}._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle .draggable-modal-cancel,._overlay_quvmp_1 ._content_quvmp_41._isDraggable_quvmp_70 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_quvmp_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_quvmp_1{0%{opacity:0}to{opacity:1}}._footer_quvmp_101{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_quvmp_105{position: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: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: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:-moz-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:-moz-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:sticky;bottom:0}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import B from "react-modal";
|
|
3
|
-
import { jsx as n, jsxs as u, Fragment as
|
|
4
|
-
import { useRef as k, createContext as
|
|
5
|
-
import
|
|
3
|
+
import { jsx as n, jsxs as u, 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";
|
|
6
6
|
import d from "classnames";
|
|
7
|
-
import { exhaustSwitchCase as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { cssColor as
|
|
10
|
-
const
|
|
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 me, CircledIcon as Be } from "@stenajs-webui/elements";
|
|
9
|
+
import { cssColor as xe } from "@stenajs-webui/theme";
|
|
10
|
+
const fn = (t) => {
|
|
11
11
|
B.setAppElement(t);
|
|
12
|
-
}, Ae = "
|
|
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
13
|
overlay: Ae,
|
|
14
|
-
fadeIn:
|
|
15
|
-
modal:
|
|
16
|
-
content:
|
|
17
|
-
appear:
|
|
18
|
-
isDraggable:
|
|
19
|
-
footer:
|
|
20
|
-
stickyFooter:
|
|
21
|
-
},
|
|
14
|
+
fadeIn: Le,
|
|
15
|
+
modal: ze,
|
|
16
|
+
content: Me,
|
|
17
|
+
appear: We,
|
|
18
|
+
isDraggable: Se,
|
|
19
|
+
footer: Te,
|
|
20
|
+
stickyFooter: Ee
|
|
21
|
+
}, ue = "draggable-modal-handle", fe = "draggable-modal-cancel", He = ({
|
|
22
22
|
width: t,
|
|
23
23
|
maxWidth: e,
|
|
24
24
|
draggable: o = !1,
|
|
@@ -33,10 +33,10 @@ const un = (t) => {
|
|
|
33
33
|
className: D.modal,
|
|
34
34
|
...c,
|
|
35
35
|
children: /* @__PURE__ */ n(
|
|
36
|
-
|
|
36
|
+
be,
|
|
37
37
|
{
|
|
38
|
-
handle: `.${
|
|
39
|
-
cancel: `.${
|
|
38
|
+
handle: `.${ue}`,
|
|
39
|
+
cancel: `.${fe}, button, [role="tooltip"]`,
|
|
40
40
|
bounds: ".ReactModal__Overlay",
|
|
41
41
|
disabled: !o,
|
|
42
42
|
nodeRef: f,
|
|
@@ -58,18 +58,18 @@ const un = (t) => {
|
|
|
58
58
|
)
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
|
-
},
|
|
62
|
-
portal:
|
|
63
|
-
overlay:
|
|
64
|
-
content:
|
|
65
|
-
floating:
|
|
66
|
-
slideFromLeft:
|
|
67
|
-
slideFromRight:
|
|
68
|
-
afterOpen:
|
|
69
|
-
beforeClose:
|
|
70
|
-
slideFromTop:
|
|
71
|
-
slideFromBottom:
|
|
72
|
-
},
|
|
61
|
+
}, Pe = "_portal_17ze5_1", Ge = "_overlay_17ze5_4", Ve = "_content_17ze5_9", Xe = "_floating_17ze5_15", Ye = "_slideFromLeft_17ze5_29", Je = "_slideFromRight_17ze5_30", Ke = "_afterOpen_17ze5_36", Qe = "_beforeClose_17ze5_40", Ue = "_slideFromTop_17ze5_45", Ze = "_slideFromBottom_17ze5_46", m = {
|
|
62
|
+
portal: Pe,
|
|
63
|
+
overlay: Ge,
|
|
64
|
+
content: Ve,
|
|
65
|
+
floating: Xe,
|
|
66
|
+
slideFromLeft: Ye,
|
|
67
|
+
slideFromRight: Je,
|
|
68
|
+
afterOpen: Ke,
|
|
69
|
+
beforeClose: Qe,
|
|
70
|
+
slideFromTop: Ue,
|
|
71
|
+
slideFromBottom: Ze
|
|
72
|
+
}, gn = ({
|
|
73
73
|
background: t,
|
|
74
74
|
zIndex: e,
|
|
75
75
|
children: o,
|
|
@@ -92,7 +92,7 @@ const un = (t) => {
|
|
|
92
92
|
className: {
|
|
93
93
|
base: d(
|
|
94
94
|
m.content,
|
|
95
|
-
|
|
95
|
+
Re(s),
|
|
96
96
|
f && m.floating
|
|
97
97
|
),
|
|
98
98
|
afterOpen: m.afterOpen,
|
|
@@ -104,7 +104,7 @@ const un = (t) => {
|
|
|
104
104
|
children: o
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
|
-
},
|
|
107
|
+
}, Re = (t) => {
|
|
108
108
|
switch (t) {
|
|
109
109
|
case "left":
|
|
110
110
|
return m.slideFromLeft;
|
|
@@ -115,20 +115,20 @@ const un = (t) => {
|
|
|
115
115
|
case "bottom":
|
|
116
116
|
return m.slideFromBottom;
|
|
117
117
|
default:
|
|
118
|
-
return
|
|
118
|
+
return Oe(t, m.slideFromLeft);
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, hn = ({
|
|
121
121
|
header: t,
|
|
122
122
|
contentRight: e,
|
|
123
123
|
onRequestClose: o,
|
|
124
124
|
icon: s
|
|
125
125
|
}) => /* @__PURE__ */ n(
|
|
126
|
-
|
|
126
|
+
Q,
|
|
127
127
|
{
|
|
128
128
|
position: "sticky",
|
|
129
129
|
top: 0,
|
|
130
130
|
zIndex: 100,
|
|
131
|
-
background:
|
|
131
|
+
background: xe("--lhds-color-ui-50"),
|
|
132
132
|
children: /* @__PURE__ */ u(
|
|
133
133
|
w,
|
|
134
134
|
{
|
|
@@ -137,67 +137,67 @@ const un = (t) => {
|
|
|
137
137
|
height: "48px",
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ u(w, { alignItems: "center", gap: 2, children: [
|
|
140
|
-
/* @__PURE__ */ n(
|
|
141
|
-
s && /* @__PURE__ */ n(
|
|
142
|
-
/* @__PURE__ */ n(
|
|
140
|
+
/* @__PURE__ */ n(ce, { num: 1 }),
|
|
141
|
+
s && /* @__PURE__ */ n(_e, { icon: s, size: 24 }),
|
|
142
|
+
/* @__PURE__ */ n(U, { variant: "h4", children: t })
|
|
143
143
|
] }),
|
|
144
144
|
/* @__PURE__ */ u(w, { gap: 1, children: [
|
|
145
145
|
e,
|
|
146
146
|
/* @__PURE__ */ n(
|
|
147
|
-
|
|
147
|
+
ke,
|
|
148
148
|
{
|
|
149
|
-
leftIcon:
|
|
149
|
+
leftIcon: De,
|
|
150
150
|
onClick: o,
|
|
151
151
|
variant: "danger"
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
|
-
/* @__PURE__ */ n(
|
|
154
|
+
/* @__PURE__ */ n(ce, { num: 0.5 })
|
|
155
155
|
] })
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
)
|
|
159
159
|
}
|
|
160
|
-
),
|
|
161
|
-
overlay:
|
|
162
|
-
fadeIn:
|
|
163
|
-
modal:
|
|
164
|
-
content:
|
|
165
|
-
appear:
|
|
166
|
-
isDraggable:
|
|
167
|
-
footer:
|
|
168
|
-
stickyFooter:
|
|
169
|
-
},
|
|
160
|
+
), je = "_overlay_r9tkq_1", et = "_fadeIn_r9tkq_1", tt = "_modal_r9tkq_31", nt = "_content_r9tkq_38", ot = "_appear_r9tkq_1", st = "_isDraggable_r9tkq_61", rt = "_footer_r9tkq_92", lt = "_stickyFooter_r9tkq_96", X = {
|
|
161
|
+
overlay: je,
|
|
162
|
+
fadeIn: et,
|
|
163
|
+
modal: tt,
|
|
164
|
+
content: nt,
|
|
165
|
+
appear: ot,
|
|
166
|
+
isDraggable: st,
|
|
167
|
+
footer: rt,
|
|
168
|
+
stickyFooter: lt
|
|
169
|
+
}, at = { overlay: { justifyContent: "center" } }, pn = ({
|
|
170
170
|
children: t,
|
|
171
171
|
...e
|
|
172
172
|
}) => /* @__PURE__ */ n(
|
|
173
173
|
B,
|
|
174
174
|
{
|
|
175
|
-
overlayClassName:
|
|
176
|
-
className:
|
|
177
|
-
style:
|
|
175
|
+
overlayClassName: X.overlay,
|
|
176
|
+
className: X.modal,
|
|
177
|
+
style: at,
|
|
178
178
|
...e,
|
|
179
179
|
children: /* @__PURE__ */ n(
|
|
180
180
|
"div",
|
|
181
181
|
{
|
|
182
|
-
className:
|
|
182
|
+
className: X.content,
|
|
183
183
|
style: { "--swui-modal-width": "fit-content" },
|
|
184
184
|
children: t
|
|
185
185
|
}
|
|
186
186
|
)
|
|
187
187
|
}
|
|
188
|
-
),
|
|
189
|
-
overlay:
|
|
190
|
-
afterOpen:
|
|
191
|
-
beforeClose:
|
|
192
|
-
fadeIn:
|
|
193
|
-
fadeOut:
|
|
194
|
-
modal:
|
|
195
|
-
slideIn:
|
|
196
|
-
slideOut:
|
|
197
|
-
content:
|
|
198
|
-
footer:
|
|
199
|
-
stickyFooter:
|
|
200
|
-
},
|
|
188
|
+
), ct = "_overlay_15dqv_1", it = "_afterOpen_15dqv_24", dt = "_beforeClose_15dqv_24", _t = "_fadeIn_15dqv_1", mt = "_fadeOut_15dqv_1", ut = "_modal_15dqv_36", ft = "_slideIn_15dqv_1", gt = "_slideOut_15dqv_1", ht = "_content_15dqv_59", pt = "_footer_15dqv_148", yt = "_stickyFooter_15dqv_152", $ = {
|
|
189
|
+
overlay: ct,
|
|
190
|
+
afterOpen: it,
|
|
191
|
+
beforeClose: dt,
|
|
192
|
+
fadeIn: _t,
|
|
193
|
+
fadeOut: mt,
|
|
194
|
+
modal: ut,
|
|
195
|
+
slideIn: ft,
|
|
196
|
+
slideOut: gt,
|
|
197
|
+
content: ht,
|
|
198
|
+
footer: pt,
|
|
199
|
+
stickyFooter: yt
|
|
200
|
+
}, Ct = ({
|
|
201
201
|
children: t,
|
|
202
202
|
background: e,
|
|
203
203
|
...o
|
|
@@ -232,10 +232,10 @@ const un = (t) => {
|
|
|
232
232
|
)
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
|
-
},
|
|
236
|
-
modal:
|
|
237
|
-
overlay:
|
|
238
|
-
},
|
|
235
|
+
}, vt = "_modal_4fwgb_1", wt = "_overlay_4fwgb_13", ie = {
|
|
236
|
+
modal: vt,
|
|
237
|
+
overlay: wt
|
|
238
|
+
}, yn = ({
|
|
239
239
|
headerIconLeft: t,
|
|
240
240
|
headerText: e,
|
|
241
241
|
shouldCloseOnOverlayClick: o = !1,
|
|
@@ -248,11 +248,11 @@ const un = (t) => {
|
|
|
248
248
|
isOpen: !0,
|
|
249
249
|
shouldCloseOnOverlayClick: o,
|
|
250
250
|
shouldCloseOnEsc: s,
|
|
251
|
-
className:
|
|
252
|
-
overlayClassName:
|
|
253
|
-
children: /* @__PURE__ */ u(
|
|
251
|
+
className: ie.modal,
|
|
252
|
+
overlayClassName: ie.overlay,
|
|
253
|
+
children: /* @__PURE__ */ u(Z, { spacing: 2, alignItems: "center", children: [
|
|
254
254
|
/* @__PURE__ */ n(
|
|
255
|
-
|
|
255
|
+
q,
|
|
256
256
|
{
|
|
257
257
|
alignItems: "center",
|
|
258
258
|
justifyContent: "center",
|
|
@@ -261,22 +261,22 @@ const un = (t) => {
|
|
|
261
261
|
borderRadius: "50%",
|
|
262
262
|
background: "white",
|
|
263
263
|
shadow: "modal",
|
|
264
|
-
children: /* @__PURE__ */ n(
|
|
264
|
+
children: /* @__PURE__ */ n(qe, { size: "small" })
|
|
265
265
|
}
|
|
266
266
|
),
|
|
267
|
-
(t || e) && /* @__PURE__ */ u(
|
|
268
|
-
/* @__PURE__ */ n(
|
|
267
|
+
(t || e) && /* @__PURE__ */ u(re, { children: [
|
|
268
|
+
/* @__PURE__ */ n(Q, {}),
|
|
269
269
|
/* @__PURE__ */ u(w, { indent: 2, children: [
|
|
270
|
-
t && /* @__PURE__ */ u(
|
|
271
|
-
/* @__PURE__ */ n(
|
|
272
|
-
/* @__PURE__ */ n(
|
|
270
|
+
t && /* @__PURE__ */ u(re, { children: [
|
|
271
|
+
/* @__PURE__ */ n(_e, { size: 14, icon: t, color: "white" }),
|
|
272
|
+
/* @__PURE__ */ n(Ne, {})
|
|
273
273
|
] }),
|
|
274
|
-
e && /* @__PURE__ */ n(
|
|
274
|
+
e && /* @__PURE__ */ n(U, { variant: "h4", color: "white", children: e })
|
|
275
275
|
] })
|
|
276
276
|
] })
|
|
277
277
|
] })
|
|
278
278
|
}
|
|
279
|
-
),
|
|
279
|
+
), It = ({
|
|
280
280
|
onRequestClose: t,
|
|
281
281
|
header: e,
|
|
282
282
|
headerText: o,
|
|
@@ -287,14 +287,14 @@ const un = (t) => {
|
|
|
287
287
|
spacing: 2,
|
|
288
288
|
indent: 2,
|
|
289
289
|
borderBottom: "1px solid var(--lhds-color-ui-300)",
|
|
290
|
-
className:
|
|
290
|
+
className: ue,
|
|
291
291
|
children: [
|
|
292
292
|
/* @__PURE__ */ u(w, { flex: 1, indent: !0, alignItems: "center", children: [
|
|
293
|
-
o && /* @__PURE__ */ n(
|
|
293
|
+
o && /* @__PURE__ */ n($e, { className: fe, size: "large", children: o }),
|
|
294
294
|
e
|
|
295
295
|
] }),
|
|
296
|
-
/* @__PURE__ */ n(
|
|
297
|
-
|
|
296
|
+
/* @__PURE__ */ n(q, { alignSelf: "flex-start", children: /* @__PURE__ */ n(
|
|
297
|
+
me,
|
|
298
298
|
{
|
|
299
299
|
className: s,
|
|
300
300
|
onClick: t
|
|
@@ -302,7 +302,7 @@ const un = (t) => {
|
|
|
302
302
|
) })
|
|
303
303
|
]
|
|
304
304
|
}
|
|
305
|
-
),
|
|
305
|
+
), Cn = ({
|
|
306
306
|
header: t,
|
|
307
307
|
headerText: e,
|
|
308
308
|
children: o,
|
|
@@ -315,14 +315,14 @@ const un = (t) => {
|
|
|
315
315
|
disableStickyFooter: y = !1,
|
|
316
316
|
..._
|
|
317
317
|
}) => /* @__PURE__ */ u(
|
|
318
|
-
|
|
318
|
+
He,
|
|
319
319
|
{
|
|
320
320
|
..._,
|
|
321
321
|
onRequestClose: g,
|
|
322
322
|
draggable: f,
|
|
323
323
|
children: [
|
|
324
324
|
/* @__PURE__ */ n(
|
|
325
|
-
|
|
325
|
+
It,
|
|
326
326
|
{
|
|
327
327
|
onRequestClose: g,
|
|
328
328
|
header: t,
|
|
@@ -330,9 +330,9 @@ const un = (t) => {
|
|
|
330
330
|
closeButtonClassName: h
|
|
331
331
|
}
|
|
332
332
|
),
|
|
333
|
-
/* @__PURE__ */ n(
|
|
333
|
+
/* @__PURE__ */ n(q, { spacing: typeof s == "number" ? s : 1, indent: typeof c == "number" ? c : 1, children: o }),
|
|
334
334
|
I && /* @__PURE__ */ n(
|
|
335
|
-
|
|
335
|
+
q,
|
|
336
336
|
{
|
|
337
337
|
className: d(D.footer, {
|
|
338
338
|
[D.stickyFooter]: !y
|
|
@@ -342,10 +342,10 @@ const un = (t) => {
|
|
|
342
342
|
)
|
|
343
343
|
]
|
|
344
344
|
}
|
|
345
|
-
),
|
|
345
|
+
), vn = ({ children: t }) => /* @__PURE__ */ n(Z, { indent: 2, spacing: 2, children: t }), K = ve(
|
|
346
346
|
void 0
|
|
347
347
|
);
|
|
348
|
-
function
|
|
348
|
+
function R(t, {
|
|
349
349
|
ref: e,
|
|
350
350
|
modal: o,
|
|
351
351
|
contentWrapperClassName: s,
|
|
@@ -357,21 +357,22 @@ function Z(t, {
|
|
|
357
357
|
onResolve: y,
|
|
358
358
|
onReject: _,
|
|
359
359
|
className: M,
|
|
360
|
-
background:
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
background: A,
|
|
361
|
+
label: W,
|
|
362
|
+
labelledby: S,
|
|
363
|
+
describedby: T
|
|
363
364
|
}) {
|
|
364
|
-
const
|
|
365
|
+
const he = k(null), i = e ?? he, [E, pe] = we((r) => r + 1, 0), j = k(), b = k(), C = k(), p = k(), [ee, L] = V(!1), [H, F] = V(!1), [te, v] = V(!1), P = t, ye = x(
|
|
365
366
|
(r) => {
|
|
366
367
|
var l, a;
|
|
367
|
-
return
|
|
368
|
-
(N,
|
|
369
|
-
b.current = N, p.current =
|
|
368
|
+
return j.current = new Promise(
|
|
369
|
+
(N, Ce) => {
|
|
370
|
+
b.current = N, p.current = Ce;
|
|
370
371
|
}
|
|
371
|
-
), v(!1), L(!0), F(!0),
|
|
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
373
|
},
|
|
373
374
|
[i, o]
|
|
374
|
-
),
|
|
375
|
+
), ne = x(
|
|
375
376
|
(r) => {
|
|
376
377
|
var l;
|
|
377
378
|
v(!0), L(!1), h ? setTimeout(() => {
|
|
@@ -387,10 +388,10 @@ function Z(t, {
|
|
|
387
388
|
);
|
|
388
389
|
},
|
|
389
390
|
[i, y, h]
|
|
390
|
-
),
|
|
391
|
+
), oe = x(() => {
|
|
391
392
|
var r;
|
|
392
393
|
v(!1), L(!1), F(!1), (r = p.current) == null || r.call(p), _ == null || _(), C.current = void 0;
|
|
393
|
-
}, [_]), O =
|
|
394
|
+
}, [_]), O = x(
|
|
394
395
|
(r) => {
|
|
395
396
|
var l;
|
|
396
397
|
v(!0), L(!1), h ? setTimeout(() => {
|
|
@@ -406,7 +407,7 @@ function Z(t, {
|
|
|
406
407
|
);
|
|
407
408
|
},
|
|
408
409
|
[i, h, _]
|
|
409
|
-
),
|
|
410
|
+
), se = x(
|
|
410
411
|
(r) => {
|
|
411
412
|
if (r.target !== i.current)
|
|
412
413
|
return;
|
|
@@ -414,101 +415,104 @@ function Z(t, {
|
|
|
414
415
|
l.top <= r.clientY && r.clientY <= l.top + l.height && l.left <= r.clientX && r.clientX <= l.left + l.width || O();
|
|
415
416
|
},
|
|
416
417
|
[i, O]
|
|
417
|
-
),
|
|
418
|
-
() => ({ resolve:
|
|
419
|
-
[O,
|
|
418
|
+
), G = le(
|
|
419
|
+
() => ({ resolve: ne, reject: O }),
|
|
420
|
+
[O, ne]
|
|
420
421
|
);
|
|
421
|
-
return [
|
|
422
|
+
return [le(
|
|
422
423
|
() => h ? /* @__PURE__ */ n(
|
|
423
|
-
|
|
424
|
+
Ct,
|
|
424
425
|
{
|
|
425
|
-
isOpen:
|
|
426
|
+
isOpen: ee,
|
|
426
427
|
onRequestClose: O,
|
|
427
|
-
background:
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
background: A,
|
|
429
|
+
contentLabel: W,
|
|
430
|
+
aria: { modal: !0, labelledby: S, describedby: T },
|
|
431
|
+
children: /* @__PURE__ */ n(K.Provider, { value: G, children: H && /* @__PURE__ */ ae(P, { ...C.current, key: E }) })
|
|
430
432
|
}
|
|
431
433
|
) : /* @__PURE__ */ n(
|
|
432
434
|
"dialog",
|
|
433
435
|
{
|
|
434
|
-
onClick: I ? void 0 :
|
|
435
|
-
onClose:
|
|
436
|
+
onClick: I ? void 0 : se,
|
|
437
|
+
onClose: oe,
|
|
436
438
|
ref: i,
|
|
437
|
-
className: d(M,
|
|
438
|
-
"aria-
|
|
439
|
-
"aria-
|
|
440
|
-
|
|
441
|
-
|
|
439
|
+
className: d(M, te && c),
|
|
440
|
+
"aria-label": W,
|
|
441
|
+
"aria-labelledby": S,
|
|
442
|
+
"aria-describedby": T,
|
|
443
|
+
style: { background: A, ...g },
|
|
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 }) }) })
|
|
442
445
|
}
|
|
443
446
|
),
|
|
444
447
|
[
|
|
445
448
|
h,
|
|
446
|
-
|
|
449
|
+
ee,
|
|
447
450
|
O,
|
|
448
|
-
|
|
451
|
+
A,
|
|
449
452
|
W,
|
|
450
453
|
S,
|
|
454
|
+
T,
|
|
455
|
+
G,
|
|
456
|
+
H,
|
|
451
457
|
P,
|
|
452
458
|
E,
|
|
453
|
-
H,
|
|
454
|
-
T,
|
|
455
459
|
I,
|
|
460
|
+
se,
|
|
456
461
|
oe,
|
|
457
|
-
ne,
|
|
458
462
|
i,
|
|
459
463
|
M,
|
|
460
|
-
|
|
464
|
+
te,
|
|
461
465
|
c,
|
|
462
466
|
g,
|
|
463
467
|
f,
|
|
464
468
|
s
|
|
465
469
|
]
|
|
466
|
-
), { show:
|
|
470
|
+
), { show: ye, reject: O }];
|
|
467
471
|
}
|
|
468
|
-
const
|
|
469
|
-
const t =
|
|
472
|
+
const wn = () => {
|
|
473
|
+
const t = Ie(K);
|
|
470
474
|
if (t == null)
|
|
471
475
|
throw new Error("useDialogPromise is being used outside of dialog.");
|
|
472
476
|
return t;
|
|
473
|
-
},
|
|
474
|
-
alertDialog:
|
|
475
|
-
slideIn:
|
|
476
|
-
closing:
|
|
477
|
-
slideOut:
|
|
478
|
-
fadeIn:
|
|
479
|
-
fadeOut:
|
|
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,
|
|
482
|
+
fadeIn: Ft,
|
|
483
|
+
fadeOut: kt
|
|
480
484
|
};
|
|
481
|
-
function
|
|
482
|
-
return
|
|
485
|
+
function In(t, e) {
|
|
486
|
+
return R(t, {
|
|
483
487
|
...e,
|
|
484
488
|
modal: !0,
|
|
485
|
-
closingClassName: d(e == null ? void 0 : e.closingClassName,
|
|
489
|
+
closingClassName: d(e == null ? void 0 : e.closingClassName, Y.closing),
|
|
486
490
|
contentWrapperClassName: d(
|
|
487
491
|
e == null ? void 0 : e.contentWrapperClassName,
|
|
488
|
-
|
|
492
|
+
Y.contentWrapper
|
|
489
493
|
),
|
|
490
|
-
className: d(e == null ? void 0 : e.className,
|
|
494
|
+
className: d(e == null ? void 0 : e.className, Y.alertDialog)
|
|
491
495
|
});
|
|
492
496
|
}
|
|
493
|
-
const
|
|
494
|
-
drawerDialog:
|
|
495
|
-
left:
|
|
496
|
-
right:
|
|
497
|
-
contentWrapper:
|
|
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 = {
|
|
498
|
+
drawerDialog: Dt,
|
|
499
|
+
left: qt,
|
|
500
|
+
right: Bt,
|
|
501
|
+
contentWrapper: xt,
|
|
498
502
|
slideInLeft: At,
|
|
499
|
-
closing:
|
|
500
|
-
slideOutLeft:
|
|
501
|
-
slideInRight:
|
|
502
|
-
slideOutRight:
|
|
503
|
-
top:
|
|
504
|
-
bottom:
|
|
505
|
-
slideInTop:
|
|
506
|
-
slideOutTop:
|
|
507
|
-
slideInBottom:
|
|
508
|
-
slideOutBottom:
|
|
503
|
+
closing: Lt,
|
|
504
|
+
slideOutLeft: zt,
|
|
505
|
+
slideInRight: Mt,
|
|
506
|
+
slideOutRight: Wt,
|
|
507
|
+
top: St,
|
|
508
|
+
bottom: Tt,
|
|
509
|
+
slideInTop: Et,
|
|
510
|
+
slideOutTop: Ht,
|
|
511
|
+
slideInBottom: Pt,
|
|
512
|
+
slideOutBottom: Gt
|
|
509
513
|
};
|
|
510
|
-
function
|
|
511
|
-
return
|
|
514
|
+
function bn(t, e = "left", o) {
|
|
515
|
+
return R(t, {
|
|
512
516
|
...o,
|
|
513
517
|
disableCloseOnClickOutside: !0,
|
|
514
518
|
modal: !1,
|
|
@@ -520,43 +524,43 @@ function In(t, e = "left", o) {
|
|
|
520
524
|
className: d(o == null ? void 0 : o.className, z.drawerDialog, z[e])
|
|
521
525
|
});
|
|
522
526
|
}
|
|
523
|
-
const
|
|
524
|
-
modalDialog:
|
|
525
|
-
slideIn:
|
|
526
|
-
closing:
|
|
527
|
-
slideOut:
|
|
528
|
-
fadeIn:
|
|
529
|
-
fadeOut:
|
|
530
|
-
contentWrapper:
|
|
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 = {
|
|
528
|
+
modalDialog: Vt,
|
|
529
|
+
slideIn: Xt,
|
|
530
|
+
closing: Yt,
|
|
531
|
+
slideOut: Jt,
|
|
532
|
+
fadeIn: Kt,
|
|
533
|
+
fadeOut: Qt,
|
|
534
|
+
contentWrapper: Ut
|
|
531
535
|
};
|
|
532
|
-
function
|
|
533
|
-
return
|
|
536
|
+
function On(t, e) {
|
|
537
|
+
return R(t, {
|
|
534
538
|
...e,
|
|
535
539
|
modal: !0,
|
|
536
|
-
closingClassName: d(e == null ? void 0 : e.closingClassName,
|
|
540
|
+
closingClassName: d(e == null ? void 0 : e.closingClassName, J.closing),
|
|
537
541
|
contentWrapperClassName: d(
|
|
538
542
|
e == null ? void 0 : e.contentWrapperClassName,
|
|
539
|
-
|
|
543
|
+
J.contentWrapper
|
|
540
544
|
),
|
|
541
|
-
className: d(e == null ? void 0 : e.className,
|
|
545
|
+
className: d(e == null ? void 0 : e.className, J.modalDialog)
|
|
542
546
|
});
|
|
543
547
|
}
|
|
544
|
-
const
|
|
548
|
+
const ge = ({
|
|
545
549
|
headingLevel: t = "h2",
|
|
546
550
|
size: e = "medium",
|
|
547
551
|
children: o
|
|
548
|
-
}) => /* @__PURE__ */ n(
|
|
549
|
-
modalActionButtons:
|
|
550
|
-
},
|
|
552
|
+
}) => /* @__PURE__ */ n(U, { variant: e === "medium" ? "h3" : "h1", as: t, children: o }), Zt = "_modalActionButtons_s27nj_1", Rt = {
|
|
553
|
+
modalActionButtons: Zt
|
|
554
|
+
}, jt = ({
|
|
551
555
|
buttons: t
|
|
552
|
-
}) => /* @__PURE__ */ u(
|
|
553
|
-
/* @__PURE__ */ n(
|
|
554
|
-
/* @__PURE__ */ n("div", { className:
|
|
555
|
-
] }),
|
|
556
|
+
}) => /* @__PURE__ */ u(q, { width: "100%", children: [
|
|
557
|
+
/* @__PURE__ */ n(Q, {}),
|
|
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 = ({
|
|
556
560
|
children: t,
|
|
557
561
|
maxWidth: e
|
|
558
562
|
}) => /* @__PURE__ */ n(
|
|
559
|
-
|
|
563
|
+
Z,
|
|
560
564
|
{
|
|
561
565
|
flex: 1,
|
|
562
566
|
height: "100%",
|
|
@@ -564,7 +568,7 @@ const fe = ({
|
|
|
564
568
|
maxWidth: e,
|
|
565
569
|
children: t
|
|
566
570
|
}
|
|
567
|
-
),
|
|
571
|
+
), Nn = ({
|
|
568
572
|
icon: t,
|
|
569
573
|
buttons: e,
|
|
570
574
|
heading: o,
|
|
@@ -572,70 +576,70 @@ const fe = ({
|
|
|
572
576
|
children: c,
|
|
573
577
|
maxWidth: f,
|
|
574
578
|
minWidth: g
|
|
575
|
-
}) => /* @__PURE__ */ n(
|
|
576
|
-
|
|
579
|
+
}) => /* @__PURE__ */ n(tn, { children: /* @__PURE__ */ u(
|
|
580
|
+
en,
|
|
577
581
|
{
|
|
578
582
|
flexDirection: "column",
|
|
579
583
|
alignItems: "center",
|
|
580
584
|
maxWidth: f,
|
|
581
585
|
minWidth: g,
|
|
582
586
|
children: [
|
|
583
|
-
t && /* @__PURE__ */ n(
|
|
584
|
-
/* @__PURE__ */ n(
|
|
585
|
-
s && /* @__PURE__ */ n(
|
|
587
|
+
t && /* @__PURE__ */ n(Be, { icon: t, size: "large" }),
|
|
588
|
+
/* @__PURE__ */ n(ge, { children: o }),
|
|
589
|
+
s && /* @__PURE__ */ n(Fe, { textAlign: "center", children: s }),
|
|
586
590
|
c,
|
|
587
|
-
e && /* @__PURE__ */ n(
|
|
591
|
+
e && /* @__PURE__ */ n(jt, { buttons: e })
|
|
588
592
|
]
|
|
589
593
|
}
|
|
590
|
-
) }),
|
|
594
|
+
) }), $n = ({
|
|
591
595
|
heading: t,
|
|
592
596
|
headingLevel: e,
|
|
593
597
|
headingSize: o,
|
|
594
598
|
onClickClose: s
|
|
595
599
|
}) => /* @__PURE__ */ u(w, { justifyContent: "space-between", children: [
|
|
596
|
-
t && /* @__PURE__ */ n(
|
|
597
|
-
/* @__PURE__ */ n(
|
|
598
|
-
] }),
|
|
599
|
-
modalFooter:
|
|
600
|
-
sticky:
|
|
601
|
-
},
|
|
600
|
+
t && /* @__PURE__ */ n(ge, { headingLevel: e, size: o, children: t }),
|
|
601
|
+
/* @__PURE__ */ n(me, { onClick: s })
|
|
602
|
+
] }), nn = "_modalFooter_112wr_1", on = "_sticky_112wr_10", de = {
|
|
603
|
+
modalFooter: nn,
|
|
604
|
+
sticky: on
|
|
605
|
+
}, Fn = ({
|
|
602
606
|
children: t,
|
|
603
607
|
sticky: e,
|
|
604
608
|
zIndex: o = 4
|
|
605
609
|
}) => /* @__PURE__ */ n(
|
|
606
610
|
w,
|
|
607
611
|
{
|
|
608
|
-
className: d(
|
|
612
|
+
className: d(de.modalFooter, e && de.sticky),
|
|
609
613
|
shadow: "var(--swui-sticky-footer-shadow)",
|
|
610
614
|
zIndex: o,
|
|
611
615
|
children: t
|
|
612
616
|
}
|
|
613
617
|
);
|
|
614
618
|
export {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
619
|
+
pn as Alert,
|
|
620
|
+
He as BaseWindow,
|
|
621
|
+
fe as DRAGGABLE_CANCEL_CLASSNAME,
|
|
622
|
+
ue as DRAGGABLE_HANDLE_CLASSNAME,
|
|
623
|
+
K as DialogContext,
|
|
624
|
+
gn as Drawer,
|
|
625
|
+
hn as DrawerHeader,
|
|
626
|
+
Nn as InfoAlert,
|
|
627
|
+
yn as LoadingModal,
|
|
628
|
+
Ct as Modal,
|
|
629
|
+
jt as ModalActionButtons,
|
|
630
|
+
en as ModalBody,
|
|
631
|
+
tn as ModalContainer,
|
|
632
|
+
Fn as ModalFooter,
|
|
633
|
+
$n as ModalHeader,
|
|
634
|
+
ge as ModalHeading,
|
|
635
|
+
Cn as Window,
|
|
636
|
+
vn as WindowFooter,
|
|
637
|
+
It as WindowHeader,
|
|
638
|
+
fn as setupDeclarativeModals,
|
|
639
|
+
In as useAlertDialog,
|
|
640
|
+
R as useDialog,
|
|
641
|
+
wn as useDialogPromise,
|
|
642
|
+
bn as useDrawerDialog,
|
|
643
|
+
On as useModalDialog
|
|
640
644
|
};
|
|
641
645
|
//# sourceMappingURL=index.es.js.map
|