@getflip/swirl-components-react 0.37.3 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{file-manager.entry.e7e417e2.js → file-manager.entry.b1a5df02.js} +1 -1
- package/dist/{index.a9a3d115.js → index.df277ce6.js} +2 -2
- package/dist/{swirl-action-list-section.entry.de58cd10.js → swirl-action-list-section.entry.55591cd7.js} +1 -1
- package/dist/{swirl-action-list_3.entry.e2af81d5.js → swirl-action-list_3.entry.e6daab7f.js} +1 -1
- package/dist/{swirl-app-bar.entry.2e61597c.js → swirl-app-bar.entry.e3c438dd.js} +1 -1
- package/dist/{swirl-app-icon.entry.e0f6c4c3.js → swirl-app-icon.entry.372769dd.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.e04207cc.js → swirl-app-layout_7.entry.f3bbef45.js} +1 -1
- package/dist/{swirl-autocomplete.entry.004b95e8.js → swirl-autocomplete.entry.7312f435.js} +1 -1
- package/dist/{swirl-avatar-group.entry.2b103230.js → swirl-avatar-group.entry.9d0303c0.js} +1 -1
- package/dist/{swirl-avatar.entry.7773e2f8.js → swirl-avatar.entry.2d9f240f.js} +1 -1
- package/dist/{swirl-badge.entry.16390428.js → swirl-badge.entry.e52a9a10.js} +1 -1
- package/dist/{swirl-banner.entry.57cef23c.js → swirl-banner.entry.9a2f1d3e.js} +1 -1
- package/dist/{swirl-button-group.entry.2d15c76e.js → swirl-button-group.entry.6c5722bd.js} +1 -1
- package/dist/{swirl-button.entry.0fafc605.js → swirl-button.entry.6ee1634f.js} +1 -1
- package/dist/{swirl-card.entry.03dfd20d.js → swirl-card.entry.fc11f418.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.c1891758.js → swirl-carousel-slide.entry.11585869.js} +1 -1
- package/dist/{swirl-carousel.entry.160d4458.js → swirl-carousel.entry.923a57c4.js} +1 -1
- package/dist/{swirl-checkbox.entry.4c3c7130.js → swirl-checkbox.entry.002a2b62.js} +1 -1
- package/dist/{swirl-chip.entry.379abfd4.js → swirl-chip.entry.00b0b74e.js} +1 -1
- package/dist/{swirl-columns.entry.b66d585d.js → swirl-columns.entry.5d2c17f3.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +54 -48
- package/dist/{swirl-console-layout.entry.6c8b1b5f.js → swirl-console-layout.entry.cf362bc4.js} +1 -1
- package/dist/{swirl-date-input.entry.d8cffd58.js → swirl-date-input.entry.49004439.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.874c047b.js → swirl-date-picker_2.entry.c8587051.js} +1 -1
- package/dist/{swirl-description-list-item.entry.859f86d6.js → swirl-description-list-item.entry.3e4f263d.js} +1 -1
- package/dist/{swirl-description-list.entry.55a04eaf.js → swirl-description-list.entry.0a7fcca4.js} +1 -1
- package/dist/{swirl-dialog.entry.6ae5a5f9.js → swirl-dialog.entry.e052f417.js} +1 -1
- package/dist/{swirl-file-uploader.entry.77f13d22.js → swirl-file-uploader.entry.0fec650a.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.34840537.js → swirl-file-viewer_7.entry.daac6d15.js} +1 -1
- package/dist/{swirl-form-control.entry.b2f743b0.js → swirl-form-control.entry.34f9cf53.js} +8 -8
- package/dist/{swirl-form-group.entry.a600afd0.js → swirl-form-group.entry.b3609a44.js} +1 -1
- package/dist/{swirl-heading.entry.1301745b.js → swirl-heading.entry.93e8e09e.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.94c52764.js → swirl-icon-add-photo.entry.b8d95985.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.82157951.js → swirl-icon-add_6.entry.b105685f.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.f27b0483.js → swirl-icon-admin-panel-settings.entry.957bc2e8.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.7c8431bb.js → swirl-icon-arrow-back.entry.f12194a3.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.d01b6330.js → swirl-icon-arrow-downward_2.entry.df131acf.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.bf7e6167.js → swirl-icon-arrow-forward.entry.5f247f8e.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.71845079.js → swirl-icon-arrow-left_4.entry.52fd2eab.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.2373c60b.js → swirl-icon-arrow-right-small.entry.5f77cbae.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.dd6ed627.js → swirl-icon-attachment.entry.dd55112e.js} +1 -1
- package/dist/{swirl-icon-block.entry.5bd3c72b.js → swirl-icon-block.entry.18b3fee7.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.de875f5c.js → swirl-icon-bookmark.entry.68cee2b6.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.12c266a0.js → swirl-icon-cancel_4.entry.4cbe38c8.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.4c155c87.js → swirl-icon-chat-bubble.entry.bec529b7.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.d2d546c4.js → swirl-icon-chats-filled.entry.b401b2de.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.5c943c8c.js → swirl-icon-chats-outlined.entry.e85f7607.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.0d02b827.js → swirl-icon-check-circle_3.entry.d155e60c.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.4abe85eb.js → swirl-icon-check-small_4.entry.daced9ec.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.9d3a6e65.js → swirl-icon-check-strong.entry.d460e34e.js} +1 -1
- package/dist/{swirl-icon-check.entry.b2728cf9.js → swirl-icon-check.entry.2e023867.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.b3d21f88.js → swirl-icon-chevron-left.entry.04d01128.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.9957c5e1.js → swirl-icon-chevron-right.entry.785ec521.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.cf2d25eb.js → swirl-icon-close-small.entry.6d408844.js} +1 -1
- package/dist/{swirl-icon-close.entry.fba03249.js → swirl-icon-close.entry.1f3eed31.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.df2d1d56.js → swirl-icon-cloud-upload.entry.489b3698.js} +1 -1
- package/dist/{swirl-icon-column.entry.8558f444.js → swirl-icon-column.entry.c2c0d1f7.js} +1 -1
- package/dist/{swirl-icon-comment.entry.830cda12.js → swirl-icon-comment.entry.6571e53f.js} +1 -1
- package/dist/{swirl-icon-copy.entry.795c0f1c.js → swirl-icon-copy.entry.36619610.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.3814dffd.js → swirl-icon-date-range.entry.74684ba9.js} +1 -1
- package/dist/{swirl-icon-delete.entry.fc936a4c.js → swirl-icon-delete.entry.9c03a7b6.js} +1 -1
- package/dist/{swirl-icon-description.entry.a7fd357b.js → swirl-icon-description.entry.c174f9a5.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.dd84f9dc.js → swirl-icon-double-arrow-left.entry.706916d3.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.35bb583b.js → swirl-icon-double-arrow-right.entry.10574d1c.js} +1 -1
- package/dist/{swirl-icon-download.entry.b85ac070.js → swirl-icon-download.entry.7ee9b12b.js} +1 -1
- package/dist/{swirl-icon-edit.entry.69ca5084.js → swirl-icon-edit.entry.ddb565c0.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.86ed43ba.js → swirl-icon-emoji-mood.entry.51a4bcdb.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.c1308e53.js → swirl-icon-emoji-satisfied.entry.a499ad10.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.746868b3.js → swirl-icon-error_3.entry.8e6de7aa.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.cbc7bcbf.js → swirl-icon-expand-more.entry.363c5c62.js} +1 -1
- package/dist/{swirl-icon-filter.entry.977584ce.js → swirl-icon-filter.entry.28f7f98d.js} +1 -1
- package/dist/{swirl-icon-folder.entry.7790925a.js → swirl-icon-folder.entry.b3bb0643.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.05f06fe9.js → swirl-icon-group-assign.entry.96b0e631.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.63eb52f0.js → swirl-icon-groups-custom.entry.c23d3c3d.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.a7ce4b72.js → swirl-icon-groups-filled.entry.1c96daf4.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.0c77887e.js → swirl-icon-groups-outlined.entry.42264d5b.js} +1 -1
- package/dist/{swirl-icon-groups.entry.a7bee922.js → swirl-icon-groups.entry.b51c7a14.js} +1 -1
- package/dist/{swirl-icon-help.entry.cb864725.js → swirl-icon-help.entry.d047f6c0.js} +1 -1
- package/dist/{swirl-icon-image.entry.5ff23081.js → swirl-icon-image.entry.ae3e96d8.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.23e67c78.js → swirl-icon-inventory.entry.48757bba.js} +1 -1
- package/dist/{swirl-icon-like.entry.3ec78820.js → swirl-icon-like.entry.b045863b.js} +1 -1
- package/dist/{swirl-icon-link.entry.89c05e5e.js → swirl-icon-link.entry.8853ac8e.js} +1 -1
- package/dist/{swirl-icon-lock.entry.1093af45.js → swirl-icon-lock.entry.febfe0b6.js} +1 -1
- package/dist/{swirl-icon-logout.entry.18ce3100.js → swirl-icon-logout.entry.50d6ebff.js} +1 -1
- package/dist/{swirl-icon-mail.entry.6366e021.js → swirl-icon-mail.entry.5e33e820.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.8f20562b.js → swirl-icon-manage-accounts.entry.341d6c0e.js} +1 -1
- package/dist/{swirl-icon-mention.entry.b33bdb46.js → swirl-icon-mention.entry.0987dc6a.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.64211312.js → swirl-icon-menu-filled.entry.07de0ffd.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.9a677ed1.js → swirl-icon-menu-outlined.entry.1266ab27.js} +1 -1
- package/dist/{swirl-icon-menu.entry.aa078047.js → swirl-icon-menu.entry.f50587a5.js} +1 -1
- package/dist/{swirl-icon-message.entry.e31aa8af.js → swirl-icon-message.entry.71f07c11.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.fde8297f.js → swirl-icon-more-horizontal.entry.88d1976c.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.1490a243.js → swirl-icon-news-filled.entry.731b2e9c.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.071e311d.js → swirl-icon-news-outlined.entry.d6aed10c.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.d876c33e.js → swirl-icon-notifications-active.entry.2e2522ac.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.4376a9bc.js → swirl-icon-notifications-off.entry.7867dfb7.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.3f1df3c6.js → swirl-icon-notifications.entry.6761f385.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.47f30128.js → swirl-icon-open-in-new.entry.706ceeb1.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.f7fc84f3.js → swirl-icon-people-alt.entry.3b9a2a0e.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.0f4006ee.js → swirl-icon-person-off.entry.d9a8a150.js} +1 -1
- package/dist/{swirl-icon-person.entry.4f21b5a0.js → swirl-icon-person.entry.09d58a84.js} +1 -1
- package/dist/{swirl-icon-phone.entry.9cf942f2.js → swirl-icon-phone.entry.ef479a7d.js} +1 -1
- package/dist/{swirl-icon-poll.entry.50c5f281.js → swirl-icon-poll.entry.9a9c34c2.js} +1 -1
- package/dist/{swirl-icon-print.entry.c2211b52.js → swirl-icon-print.entry.2467ed66.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.de0c6027.js → swirl-icon-recieved.entry.88c90529.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.e584c815.js → swirl-icon-search-strong.entry.15520333.js} +1 -1
- package/dist/{swirl-icon-search.entry.551fc845.js → swirl-icon-search.entry.b86c83d5.js} +1 -1
- package/dist/{swirl-icon-send.entry.ba220717.js → swirl-icon-send.entry.5aa2371c.js} +1 -1
- package/dist/{swirl-icon-settings.entry.158f3b29.js → swirl-icon-settings.entry.3025538f.js} +1 -1
- package/dist/{swirl-icon-sync.entry.1f716fbd.js → swirl-icon-sync.entry.1fc85e61.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.fffcf7c6.js → swirl-icon-tasks-filled.entry.44abdb56.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3d9bdf8e.js → swirl-icon-tasks-outlined.entry.1d8bec23.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.bd8f0618.js → swirl-icon-time-filled.entry.533adb6c.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.f1b2fc74.js → swirl-icon-time-outlined.entry.d4458849.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.381f3e87.js → swirl-icon-user-assign.entry.1144894b.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.8dfcde85.js → swirl-icon-video-camera.entry.6cc7978f.js} +1 -1
- package/dist/{swirl-inline-notification.entry.f1f1bb6a.js → swirl-inline-notification.entry.4849c83f.js} +1 -1
- package/dist/{swirl-lightbox.entry.9f8124fa.js → swirl-lightbox.entry.7d2f750d.js} +1 -1
- package/dist/{swirl-link.entry.e21d7bb3.js → swirl-link.entry.40426b3d.js} +1 -1
- package/dist/{swirl-list.entry.f9347dfe.js → swirl-list.entry.4a9879bb.js} +1 -1
- package/dist/swirl-modal.entry.647f1b21.js +528 -0
- package/dist/{swirl-option-list-section.entry.7dcd4e03.js → swirl-option-list-section.entry.6d346b11.js} +1 -1
- package/dist/{swirl-pagination.entry.d268f00b.js → swirl-pagination.entry.ead335ac.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.07594f69.js → swirl-pdf-reader.entry.eb167c23.js} +1 -1
- package/dist/{swirl-popover.entry.62d30087.js → swirl-popover.entry.c970a0ed.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.eae8bf16.js → swirl-progress-indicator.entry.45bd7b1d.js} +1 -1
- package/dist/{swirl-radio-group.entry.c954434d.js → swirl-radio-group.entry.8375bf4e.js} +1 -1
- package/dist/{swirl-radio.entry.4c2753ac.js → swirl-radio.entry.305fdfa5.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.829bae48.js → swirl-resource-list-file-item.entry.fd1c2dc9.js} +1 -1
- package/dist/{swirl-search.entry.b07aac78.js → swirl-search.entry.b9a829a1.js} +1 -1
- package/dist/{swirl-select.entry.a9e72b52.js → swirl-select.entry.12b1a390.js} +1 -1
- package/dist/{swirl-shell-layout.entry.bf129977.js → swirl-shell-layout.entry.f5bd70e0.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.bd881f14.js → swirl-shell-navigation-item.entry.cf0fc2b6.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.030b97c1.js → swirl-skeleton-box.entry.fc7ccd91.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.1888664d.js → swirl-skeleton-text.entry.d2acdf23.js} +1 -1
- package/dist/{swirl-stack.entry.0c61ba9e.js → swirl-stack.entry.9c6fe41b.js} +1 -1
- package/dist/{swirl-switch.entry.e9560f4f.js → swirl-switch.entry.83dc9dc5.js} +1 -1
- package/dist/{swirl-tab.entry.af09a22e.js → swirl-tab.entry.32c9f28d.js} +1 -1
- package/dist/{swirl-table-cell.entry.348ff8eb.js → swirl-table-cell.entry.eb1d801d.js} +1 -1
- package/dist/{swirl-table-column.entry.a50deb89.js → swirl-table-column.entry.bf1f321e.js} +1 -1
- package/dist/{swirl-table-row-group.entry.a53d8f8d.js → swirl-table-row-group.entry.a5cf5d28.js} +1 -1
- package/dist/{swirl-table-row.entry.b257fd6a.js → swirl-table-row.entry.64cf13f4.js} +1 -1
- package/dist/{swirl-table.entry.7e9f39c5.js → swirl-table.entry.50f25c36.js} +1 -1
- package/dist/{swirl-tabs.entry.bbbfb794.js → swirl-tabs.entry.78b5e624.js} +1 -1
- package/dist/{swirl-tag.entry.7d9734a9.js → swirl-tag.entry.8eccca4a.js} +1 -1
- package/dist/{swirl-text-input.entry.ad018c07.js → swirl-text-input.entry.58ba1137.js} +2 -2
- package/dist/{swirl-text.entry.cd914ed0.js → swirl-text.entry.67d9b448.js} +1 -1
- package/dist/{swirl-theme-provider.entry.f65e0ce9.js → swirl-theme-provider.entry.542acaf3.js} +1 -1
- package/dist/{swirl-toast-provider.entry.9aafa65c.js → swirl-toast-provider.entry.688d0944.js} +1 -1
- package/dist/{swirl-toast.entry.c9585f52.js → swirl-toast.entry.66664720.js} +1 -1
- package/dist/{swirl-tooltip.entry.83091fed.js → swirl-tooltip.entry.229b2e93.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.44784407.js → swirl-tree-navigation-item.entry.2f363cbd.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.9ffc0219.js → swirl-video-thumbnail.entry.e2a15157.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.d7df80b4.js → swirl-visually-hidden.entry.0de1d386.js} +1 -1
- package/dist/{wc-datepicker.entry.dc57ca54.js → wc-datepicker.entry.3b341b74.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-modal.entry.6c4c1edb.js +0 -66
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import { r as oe, c as N, h as p, H as ne, g as se } from "./index.df277ce6.js";
|
|
2
|
+
import { d as le, e as ce } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
3
|
+
import { c as de } from "./index-d280dafb.186cdb0e.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
/*!
|
|
7
|
+
* tabbable 6.0.1
|
|
8
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
9
|
+
*/
|
|
10
|
+
var Z = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"], A = /* @__PURE__ */ Z.join(","), X = typeof Element > "u", T = X ? function() {
|
|
11
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, R = !X && Element.prototype.getRootNode ? function(n) {
|
|
12
|
+
return n.getRootNode();
|
|
13
|
+
} : function(n) {
|
|
14
|
+
return n.ownerDocument;
|
|
15
|
+
}, J = function(e, t, a) {
|
|
16
|
+
var s = Array.prototype.slice.apply(e.querySelectorAll(A));
|
|
17
|
+
return t && T.call(e, A) && s.unshift(e), s = s.filter(a), s;
|
|
18
|
+
}, Q = function n(e, t, a) {
|
|
19
|
+
for (var s = [], l = Array.from(e); l.length; ) {
|
|
20
|
+
var r = l.shift();
|
|
21
|
+
if (r.tagName === "SLOT") {
|
|
22
|
+
var d = r.assignedElements(), u = d.length ? d : r.children, v = n(u, !0, a);
|
|
23
|
+
a.flatten ? s.push.apply(s, v) : s.push({
|
|
24
|
+
scopeParent: r,
|
|
25
|
+
candidates: v
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
var k = T.call(r, A);
|
|
29
|
+
k && a.filter(r) && (t || !e.includes(r)) && s.push(r);
|
|
30
|
+
var y = r.shadowRoot || typeof a.getShadowRoot == "function" && a.getShadowRoot(r), C = !a.shadowRootFilter || a.shadowRootFilter(r);
|
|
31
|
+
if (y && C) {
|
|
32
|
+
var w = n(y === !0 ? r.children : y.children, !0, a);
|
|
33
|
+
a.flatten ? s.push.apply(s, w) : s.push({
|
|
34
|
+
scopeParent: r,
|
|
35
|
+
candidates: w
|
|
36
|
+
});
|
|
37
|
+
} else
|
|
38
|
+
l.unshift.apply(l, r.children);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return s;
|
|
42
|
+
}, ee = function(e, t) {
|
|
43
|
+
return e.tabIndex < 0 && (t || /^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || e.isContentEditable) && isNaN(parseInt(e.getAttribute("tabindex"), 10)) ? 0 : e.tabIndex;
|
|
44
|
+
}, ue = function(e, t) {
|
|
45
|
+
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
46
|
+
}, te = function(e) {
|
|
47
|
+
return e.tagName === "INPUT";
|
|
48
|
+
}, fe = function(e) {
|
|
49
|
+
return te(e) && e.type === "hidden";
|
|
50
|
+
}, be = function(e) {
|
|
51
|
+
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(a) {
|
|
52
|
+
return a.tagName === "SUMMARY";
|
|
53
|
+
});
|
|
54
|
+
return t;
|
|
55
|
+
}, he = function(e, t) {
|
|
56
|
+
for (var a = 0; a < e.length; a++)
|
|
57
|
+
if (e[a].checked && e[a].form === t)
|
|
58
|
+
return e[a];
|
|
59
|
+
}, ve = function(e) {
|
|
60
|
+
if (!e.name)
|
|
61
|
+
return !0;
|
|
62
|
+
var t = e.form || R(e), a = function(d) {
|
|
63
|
+
return t.querySelectorAll('input[type="radio"][name="' + d + '"]');
|
|
64
|
+
}, s;
|
|
65
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
66
|
+
s = a(window.CSS.escape(e.name));
|
|
67
|
+
else
|
|
68
|
+
try {
|
|
69
|
+
s = a(e.name);
|
|
70
|
+
} catch (r) {
|
|
71
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", r.message), !1;
|
|
72
|
+
}
|
|
73
|
+
var l = he(s, e.form);
|
|
74
|
+
return !l || l === e;
|
|
75
|
+
}, me = function(e) {
|
|
76
|
+
return te(e) && e.type === "radio";
|
|
77
|
+
}, pe = function(e) {
|
|
78
|
+
return me(e) && !ve(e);
|
|
79
|
+
}, ge = function(e) {
|
|
80
|
+
for (var t, a = R(e).host, s = !!((t = a) !== null && t !== void 0 && t.ownerDocument.contains(a) || e.ownerDocument.contains(e)); !s && a; ) {
|
|
81
|
+
var l;
|
|
82
|
+
a = R(a).host, s = !!((l = a) !== null && l !== void 0 && l.ownerDocument.contains(a));
|
|
83
|
+
}
|
|
84
|
+
return s;
|
|
85
|
+
}, q = function(e) {
|
|
86
|
+
var t = e.getBoundingClientRect(), a = t.width, s = t.height;
|
|
87
|
+
return a === 0 && s === 0;
|
|
88
|
+
}, ye = function(e, t) {
|
|
89
|
+
var a = t.displayCheck, s = t.getShadowRoot;
|
|
90
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
91
|
+
return !0;
|
|
92
|
+
var l = T.call(e, "details>summary:first-of-type"), r = l ? e.parentElement : e;
|
|
93
|
+
if (T.call(r, "details:not([open]) *"))
|
|
94
|
+
return !0;
|
|
95
|
+
if (!a || a === "full" || a === "legacy-full") {
|
|
96
|
+
if (typeof s == "function") {
|
|
97
|
+
for (var d = e; e; ) {
|
|
98
|
+
var u = e.parentElement, v = R(e);
|
|
99
|
+
if (u && !u.shadowRoot && s(u) === !0)
|
|
100
|
+
return q(e);
|
|
101
|
+
e.assignedSlot ? e = e.assignedSlot : !u && v !== e.ownerDocument ? e = v.host : e = u;
|
|
102
|
+
}
|
|
103
|
+
e = d;
|
|
104
|
+
}
|
|
105
|
+
if (ge(e))
|
|
106
|
+
return !e.getClientRects().length;
|
|
107
|
+
if (a !== "legacy-full")
|
|
108
|
+
return !0;
|
|
109
|
+
} else if (a === "non-zero-area")
|
|
110
|
+
return q(e);
|
|
111
|
+
return !1;
|
|
112
|
+
}, we = function(e) {
|
|
113
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
114
|
+
for (var t = e.parentElement; t; ) {
|
|
115
|
+
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
116
|
+
for (var a = 0; a < t.children.length; a++) {
|
|
117
|
+
var s = t.children.item(a);
|
|
118
|
+
if (s.tagName === "LEGEND")
|
|
119
|
+
return T.call(t, "fieldset[disabled] *") ? !0 : !s.contains(e);
|
|
120
|
+
}
|
|
121
|
+
return !0;
|
|
122
|
+
}
|
|
123
|
+
t = t.parentElement;
|
|
124
|
+
}
|
|
125
|
+
return !1;
|
|
126
|
+
}, O = function(e, t) {
|
|
127
|
+
return !(t.disabled || fe(t) || ye(t, e) || be(t) || we(t));
|
|
128
|
+
}, B = function(e, t) {
|
|
129
|
+
return !(pe(t) || ee(t) < 0 || !O(e, t));
|
|
130
|
+
}, Se = function(e) {
|
|
131
|
+
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
132
|
+
return !!(isNaN(t) || t >= 0);
|
|
133
|
+
}, ke = function n(e) {
|
|
134
|
+
var t = [], a = [];
|
|
135
|
+
return e.forEach(function(s, l) {
|
|
136
|
+
var r = !!s.scopeParent, d = r ? s.scopeParent : s, u = ee(d, r), v = r ? n(s.candidates) : d;
|
|
137
|
+
u === 0 ? r ? t.push.apply(t, v) : t.push(d) : a.push({
|
|
138
|
+
documentOrder: l,
|
|
139
|
+
tabIndex: u,
|
|
140
|
+
item: s,
|
|
141
|
+
isScope: r,
|
|
142
|
+
content: v
|
|
143
|
+
});
|
|
144
|
+
}), a.sort(ue).reduce(function(s, l) {
|
|
145
|
+
return l.isScope ? s.push.apply(s, l.content) : s.push(l.content), s;
|
|
146
|
+
}, []).concat(t);
|
|
147
|
+
}, Ce = function(e, t) {
|
|
148
|
+
t = t || {};
|
|
149
|
+
var a;
|
|
150
|
+
return t.getShadowRoot ? a = Q([e], t.includeContainer, {
|
|
151
|
+
filter: B.bind(null, t),
|
|
152
|
+
flatten: !1,
|
|
153
|
+
getShadowRoot: t.getShadowRoot,
|
|
154
|
+
shadowRootFilter: Se
|
|
155
|
+
}) : a = J(e, t.includeContainer, B.bind(null, t)), ke(a);
|
|
156
|
+
}, Te = function(e, t) {
|
|
157
|
+
t = t || {};
|
|
158
|
+
var a;
|
|
159
|
+
return t.getShadowRoot ? a = Q([e], t.includeContainer, {
|
|
160
|
+
filter: O.bind(null, t),
|
|
161
|
+
flatten: !0,
|
|
162
|
+
getShadowRoot: t.getShadowRoot
|
|
163
|
+
}) : a = J(e, t.includeContainer, O.bind(null, t)), a;
|
|
164
|
+
}, D = function(e, t) {
|
|
165
|
+
if (t = t || {}, !e)
|
|
166
|
+
throw new Error("No node provided");
|
|
167
|
+
return T.call(e, A) === !1 ? !1 : B(t, e);
|
|
168
|
+
}, Ee = /* @__PURE__ */ Z.concat("iframe").join(","), P = function(e, t) {
|
|
169
|
+
if (t = t || {}, !e)
|
|
170
|
+
throw new Error("No node provided");
|
|
171
|
+
return T.call(e, Ee) === !1 ? !1 : O(t, e);
|
|
172
|
+
};
|
|
173
|
+
/*!
|
|
174
|
+
* focus-trap 7.1.0
|
|
175
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
176
|
+
*/
|
|
177
|
+
function U(n, e) {
|
|
178
|
+
var t = Object.keys(n);
|
|
179
|
+
if (Object.getOwnPropertySymbols) {
|
|
180
|
+
var a = Object.getOwnPropertySymbols(n);
|
|
181
|
+
e && (a = a.filter(function(s) {
|
|
182
|
+
return Object.getOwnPropertyDescriptor(n, s).enumerable;
|
|
183
|
+
})), t.push.apply(t, a);
|
|
184
|
+
}
|
|
185
|
+
return t;
|
|
186
|
+
}
|
|
187
|
+
function W(n) {
|
|
188
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
189
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
190
|
+
e % 2 ? U(Object(t), !0).forEach(function(a) {
|
|
191
|
+
_e(n, a, t[a]);
|
|
192
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : U(Object(t)).forEach(function(a) {
|
|
193
|
+
Object.defineProperty(n, a, Object.getOwnPropertyDescriptor(t, a));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
return n;
|
|
197
|
+
}
|
|
198
|
+
function _e(n, e, t) {
|
|
199
|
+
return e in n ? Object.defineProperty(n, e, {
|
|
200
|
+
value: t,
|
|
201
|
+
enumerable: !0,
|
|
202
|
+
configurable: !0,
|
|
203
|
+
writable: !0
|
|
204
|
+
}) : n[e] = t, n;
|
|
205
|
+
}
|
|
206
|
+
var Fe = [], V = {
|
|
207
|
+
activateTrap: function(e, t) {
|
|
208
|
+
if (e.length > 0) {
|
|
209
|
+
var a = e[e.length - 1];
|
|
210
|
+
a !== t && a.pause();
|
|
211
|
+
}
|
|
212
|
+
var s = e.indexOf(t);
|
|
213
|
+
s === -1 || e.splice(s, 1), e.push(t);
|
|
214
|
+
},
|
|
215
|
+
deactivateTrap: function(e, t) {
|
|
216
|
+
var a = e.indexOf(t);
|
|
217
|
+
a !== -1 && e.splice(a, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
218
|
+
}
|
|
219
|
+
}, Ne = function(e) {
|
|
220
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
221
|
+
}, De = function(e) {
|
|
222
|
+
return e.key === "Escape" || e.key === "Esc" || e.keyCode === 27;
|
|
223
|
+
}, xe = function(e) {
|
|
224
|
+
return e.key === "Tab" || e.keyCode === 9;
|
|
225
|
+
}, Y = function(e) {
|
|
226
|
+
return setTimeout(e, 0);
|
|
227
|
+
}, $ = function(e, t) {
|
|
228
|
+
var a = -1;
|
|
229
|
+
return e.every(function(s, l) {
|
|
230
|
+
return t(s) ? (a = l, !1) : !0;
|
|
231
|
+
}), a;
|
|
232
|
+
}, _ = function(e) {
|
|
233
|
+
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
234
|
+
a[s - 1] = arguments[s];
|
|
235
|
+
return typeof e == "function" ? e.apply(void 0, a) : e;
|
|
236
|
+
}, x = function(e) {
|
|
237
|
+
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
238
|
+
}, Ae = function(e, t) {
|
|
239
|
+
var a = (t == null ? void 0 : t.document) || document, s = (t == null ? void 0 : t.trapStack) || Fe, l = W({
|
|
240
|
+
returnFocusOnDeactivate: !0,
|
|
241
|
+
escapeDeactivates: !0,
|
|
242
|
+
delayInitialFocus: !0
|
|
243
|
+
}, t), r = {
|
|
244
|
+
containers: [],
|
|
245
|
+
containerGroups: [],
|
|
246
|
+
tabbableGroups: [],
|
|
247
|
+
nodeFocusedBeforeActivation: null,
|
|
248
|
+
mostRecentlyFocusedNode: null,
|
|
249
|
+
active: !1,
|
|
250
|
+
paused: !1,
|
|
251
|
+
delayInitialFocusTimer: void 0
|
|
252
|
+
}, d, u = function(i, o, c) {
|
|
253
|
+
return i && i[o] !== void 0 ? i[o] : l[c || o];
|
|
254
|
+
}, v = function(i) {
|
|
255
|
+
return r.containerGroups.findIndex(function(o) {
|
|
256
|
+
var c = o.container, h = o.tabbableNodes;
|
|
257
|
+
return c.contains(i) || h.find(function(f) {
|
|
258
|
+
return f === i;
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
}, k = function(i) {
|
|
262
|
+
var o = l[i];
|
|
263
|
+
if (typeof o == "function") {
|
|
264
|
+
for (var c = arguments.length, h = new Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++)
|
|
265
|
+
h[f - 1] = arguments[f];
|
|
266
|
+
o = o.apply(void 0, h);
|
|
267
|
+
}
|
|
268
|
+
if (o === !0 && (o = void 0), !o) {
|
|
269
|
+
if (o === void 0 || o === !1)
|
|
270
|
+
return o;
|
|
271
|
+
throw new Error("`".concat(i, "` was specified but was not a node, or did not return a node"));
|
|
272
|
+
}
|
|
273
|
+
var m = o;
|
|
274
|
+
if (typeof o == "string" && (m = a.querySelector(o), !m))
|
|
275
|
+
throw new Error("`".concat(i, "` as selector refers to no known node"));
|
|
276
|
+
return m;
|
|
277
|
+
}, y = function() {
|
|
278
|
+
var i = k("initialFocus");
|
|
279
|
+
if (i === !1)
|
|
280
|
+
return !1;
|
|
281
|
+
if (i === void 0)
|
|
282
|
+
if (v(a.activeElement) >= 0)
|
|
283
|
+
i = a.activeElement;
|
|
284
|
+
else {
|
|
285
|
+
var o = r.tabbableGroups[0], c = o && o.firstTabbableNode;
|
|
286
|
+
i = c || k("fallbackFocus");
|
|
287
|
+
}
|
|
288
|
+
if (!i)
|
|
289
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
290
|
+
return i;
|
|
291
|
+
}, C = function() {
|
|
292
|
+
if (r.containerGroups = r.containers.map(function(i) {
|
|
293
|
+
var o = Ce(i, l.tabbableOptions), c = Te(i, l.tabbableOptions);
|
|
294
|
+
return {
|
|
295
|
+
container: i,
|
|
296
|
+
tabbableNodes: o,
|
|
297
|
+
focusableNodes: c,
|
|
298
|
+
firstTabbableNode: o.length > 0 ? o[0] : null,
|
|
299
|
+
lastTabbableNode: o.length > 0 ? o[o.length - 1] : null,
|
|
300
|
+
nextTabbableNode: function(f) {
|
|
301
|
+
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, g = c.findIndex(function(S) {
|
|
302
|
+
return S === f;
|
|
303
|
+
});
|
|
304
|
+
if (!(g < 0))
|
|
305
|
+
return m ? c.slice(g + 1).find(function(S) {
|
|
306
|
+
return D(S, l.tabbableOptions);
|
|
307
|
+
}) : c.slice(0, g).reverse().find(function(S) {
|
|
308
|
+
return D(S, l.tabbableOptions);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(i) {
|
|
313
|
+
return i.tabbableNodes.length > 0;
|
|
314
|
+
}), r.tabbableGroups.length <= 0 && !k("fallbackFocus"))
|
|
315
|
+
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
316
|
+
}, w = function b(i) {
|
|
317
|
+
if (i !== !1 && i !== a.activeElement) {
|
|
318
|
+
if (!i || !i.focus) {
|
|
319
|
+
b(y());
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
i.focus({
|
|
323
|
+
preventScroll: !!l.preventScroll
|
|
324
|
+
}), r.mostRecentlyFocusedNode = i, Ne(i) && i.select();
|
|
325
|
+
}
|
|
326
|
+
}, H = function(i) {
|
|
327
|
+
var o = k("setReturnFocus", i);
|
|
328
|
+
return o || (o === !1 ? !1 : i);
|
|
329
|
+
}, F = function(i) {
|
|
330
|
+
var o = x(i);
|
|
331
|
+
if (!(v(o) >= 0)) {
|
|
332
|
+
if (_(l.clickOutsideDeactivates, i)) {
|
|
333
|
+
d.deactivate({
|
|
334
|
+
returnFocus: l.returnFocusOnDeactivate && !P(o, l.tabbableOptions)
|
|
335
|
+
});
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
_(l.allowOutsideClick, i) || i.preventDefault();
|
|
339
|
+
}
|
|
340
|
+
}, j = function(i) {
|
|
341
|
+
var o = x(i), c = v(o) >= 0;
|
|
342
|
+
c || o instanceof Document ? c && (r.mostRecentlyFocusedNode = o) : (i.stopImmediatePropagation(), w(r.mostRecentlyFocusedNode || y()));
|
|
343
|
+
}, ae = function(i) {
|
|
344
|
+
var o = x(i);
|
|
345
|
+
C();
|
|
346
|
+
var c = null;
|
|
347
|
+
if (r.tabbableGroups.length > 0) {
|
|
348
|
+
var h = v(o), f = h >= 0 ? r.containerGroups[h] : void 0;
|
|
349
|
+
if (h < 0)
|
|
350
|
+
i.shiftKey ? c = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : c = r.tabbableGroups[0].firstTabbableNode;
|
|
351
|
+
else if (i.shiftKey) {
|
|
352
|
+
var m = $(r.tabbableGroups, function(I) {
|
|
353
|
+
var L = I.firstTabbableNode;
|
|
354
|
+
return o === L;
|
|
355
|
+
});
|
|
356
|
+
if (m < 0 && (f.container === o || P(o, l.tabbableOptions) && !D(o, l.tabbableOptions) && !f.nextTabbableNode(o, !1)) && (m = h), m >= 0) {
|
|
357
|
+
var g = m === 0 ? r.tabbableGroups.length - 1 : m - 1, S = r.tabbableGroups[g];
|
|
358
|
+
c = S.lastTabbableNode;
|
|
359
|
+
}
|
|
360
|
+
} else {
|
|
361
|
+
var E = $(r.tabbableGroups, function(I) {
|
|
362
|
+
var L = I.lastTabbableNode;
|
|
363
|
+
return o === L;
|
|
364
|
+
});
|
|
365
|
+
if (E < 0 && (f.container === o || P(o, l.tabbableOptions) && !D(o, l.tabbableOptions) && !f.nextTabbableNode(o)) && (E = h), E >= 0) {
|
|
366
|
+
var re = E === r.tabbableGroups.length - 1 ? 0 : E + 1, ie = r.tabbableGroups[re];
|
|
367
|
+
c = ie.firstTabbableNode;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
} else
|
|
371
|
+
c = k("fallbackFocus");
|
|
372
|
+
c && (i.preventDefault(), w(c));
|
|
373
|
+
}, M = function(i) {
|
|
374
|
+
if (De(i) && _(l.escapeDeactivates, i) !== !1) {
|
|
375
|
+
i.preventDefault(), d.deactivate();
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if (xe(i)) {
|
|
379
|
+
ae(i);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
}, G = function(i) {
|
|
383
|
+
var o = x(i);
|
|
384
|
+
v(o) >= 0 || _(l.clickOutsideDeactivates, i) || _(l.allowOutsideClick, i) || (i.preventDefault(), i.stopImmediatePropagation());
|
|
385
|
+
}, K = function() {
|
|
386
|
+
if (!!r.active)
|
|
387
|
+
return V.activateTrap(s, d), r.delayInitialFocusTimer = l.delayInitialFocus ? Y(function() {
|
|
388
|
+
w(y());
|
|
389
|
+
}) : w(y()), a.addEventListener("focusin", j, !0), a.addEventListener("mousedown", F, {
|
|
390
|
+
capture: !0,
|
|
391
|
+
passive: !1
|
|
392
|
+
}), a.addEventListener("touchstart", F, {
|
|
393
|
+
capture: !0,
|
|
394
|
+
passive: !1
|
|
395
|
+
}), a.addEventListener("click", G, {
|
|
396
|
+
capture: !0,
|
|
397
|
+
passive: !1
|
|
398
|
+
}), a.addEventListener("keydown", M, {
|
|
399
|
+
capture: !0,
|
|
400
|
+
passive: !1
|
|
401
|
+
}), d;
|
|
402
|
+
}, z = function() {
|
|
403
|
+
if (!!r.active)
|
|
404
|
+
return a.removeEventListener("focusin", j, !0), a.removeEventListener("mousedown", F, !0), a.removeEventListener("touchstart", F, !0), a.removeEventListener("click", G, !0), a.removeEventListener("keydown", M, !0), d;
|
|
405
|
+
};
|
|
406
|
+
return d = {
|
|
407
|
+
get active() {
|
|
408
|
+
return r.active;
|
|
409
|
+
},
|
|
410
|
+
get paused() {
|
|
411
|
+
return r.paused;
|
|
412
|
+
},
|
|
413
|
+
activate: function(i) {
|
|
414
|
+
if (r.active)
|
|
415
|
+
return this;
|
|
416
|
+
var o = u(i, "onActivate"), c = u(i, "onPostActivate"), h = u(i, "checkCanFocusTrap");
|
|
417
|
+
h || C(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = a.activeElement, o && o();
|
|
418
|
+
var f = function() {
|
|
419
|
+
h && C(), K(), c && c();
|
|
420
|
+
};
|
|
421
|
+
return h ? (h(r.containers.concat()).then(f, f), this) : (f(), this);
|
|
422
|
+
},
|
|
423
|
+
deactivate: function(i) {
|
|
424
|
+
if (!r.active)
|
|
425
|
+
return this;
|
|
426
|
+
var o = W({
|
|
427
|
+
onDeactivate: l.onDeactivate,
|
|
428
|
+
onPostDeactivate: l.onPostDeactivate,
|
|
429
|
+
checkCanReturnFocus: l.checkCanReturnFocus
|
|
430
|
+
}, i);
|
|
431
|
+
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, z(), r.active = !1, r.paused = !1, V.deactivateTrap(s, d);
|
|
432
|
+
var c = u(o, "onDeactivate"), h = u(o, "onPostDeactivate"), f = u(o, "checkCanReturnFocus"), m = u(o, "returnFocus", "returnFocusOnDeactivate");
|
|
433
|
+
c && c();
|
|
434
|
+
var g = function() {
|
|
435
|
+
Y(function() {
|
|
436
|
+
m && w(H(r.nodeFocusedBeforeActivation)), h && h();
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
return m && f ? (f(H(r.nodeFocusedBeforeActivation)).then(g, g), this) : (g(), this);
|
|
440
|
+
},
|
|
441
|
+
pause: function() {
|
|
442
|
+
return r.paused || !r.active ? this : (r.paused = !0, z(), this);
|
|
443
|
+
},
|
|
444
|
+
unpause: function() {
|
|
445
|
+
return !r.paused || !r.active ? this : (r.paused = !1, C(), K(), this);
|
|
446
|
+
},
|
|
447
|
+
updateContainerElements: function(i) {
|
|
448
|
+
var o = [].concat(i).filter(Boolean);
|
|
449
|
+
return r.containers = o.map(function(c) {
|
|
450
|
+
return typeof c == "string" ? a.querySelector(c) : c;
|
|
451
|
+
}), r.active && C(), this;
|
|
452
|
+
}
|
|
453
|
+
}, d.updateContainerElements(e), d;
|
|
454
|
+
};
|
|
455
|
+
const Re = ':host{--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed);display:block}:host *{box-sizing:border-box}.modal{position:fixed;z-index:var(--s-z-40);display:flex;justify-content:center;align-items:center;inset:0}.modal[aria-hidden="true"]{display:none}.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:0.15s modal-backdrop-fade-in;animation:0.15s modal-backdrop-fade-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:none;animation:none}}.modal:not(.modal--closing) .modal__body{-webkit-animation:0.15s modal-scale-in;animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__body{-webkit-animation:none;animation:none}}.modal--padded .modal__content{padding-top:var(--s-space-24);padding-right:var(--s-space-16);padding-bottom:var(--s-space-24);padding-left:var(--s-space-16)}@media (min-width: 768px){.modal--padded .modal__content{padding-top:0;padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24)}}.modal--has-custom-header .modal__content{padding-top:var(--s-space-16)}.modal--closing{-webkit-animation:0.15s modal-fade-out;animation:0.15s modal-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--closing{-webkit-animation:none;animation:none}}@media (min-width: 768px){.modal--scrollable .modal__content{padding-bottom:0}}.modal--scrollable:not(.modal--scrolled-down) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}@media (min-width: 768px){.modal--scrolled .modal__header{border-bottom-color:var(--s-border-default)}}.modal__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.modal__body{position:relative;z-index:var(--s-z-40);display:flex;overflow:hidden;width:100vw;max-width:40rem;height:100vh;background-color:var(--s-surface-overlay-default);flex-direction:column}@media (min-width: 768px){.modal__body{width:90vw;height:auto;max-height:90vh;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-3)}}.modal__close-button{position:absolute;top:var(--s-space-8);left:var(--s-space-8)}@media (min-width: 768px){.modal__close-button{top:var(--s-space-16);right:var(--s-space-16);left:auto}}.modal__header{display:flex;height:3.5rem;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-8) + 2.5rem + var(--s-space-8));flex-shrink:0;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-16)}@media (min-width: 768px){.modal__header{height:4.125rem;padding-top:var(--s-space-24);padding-right:calc(var(--s-space-16) + 2.5rem + var(--s-space-8));padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);border-bottom:var(--s-border-width-default) solid transparent}}.modal__custom-header{flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.modal__heading{overflow:hidden}.modal__heading .heading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal__content{overflow-x:hidden;overflow-y:auto;flex-grow:1;line-height:var(--s-line-height-base)}.modal__content ::slotted(*){margin:0}.modal__controls{display:flex;padding-top:var(--s-space-16);padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);flex-shrink:0;justify-content:flex-end}@-webkit-keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{from{opacity:1}to{opacity:0}}@keyframes modal-fade-out{from{opacity:1}to{opacity:0}}', Oe = class {
|
|
456
|
+
constructor(n) {
|
|
457
|
+
oe(this, n), this.modalClose = N(this, "modalClose", 7), this.modalOpen = N(this, "modalOpen", 7), this.primaryAction = N(this, "primaryAction", 7), this.secondaryAction = N(this, "secondaryAction", 7), this.onKeyDown = (e) => {
|
|
458
|
+
e.code === "Escape" && this.close();
|
|
459
|
+
}, this.onBackdropClick = () => {
|
|
460
|
+
this.close();
|
|
461
|
+
}, this.onCloseButtonClick = () => {
|
|
462
|
+
this.close();
|
|
463
|
+
}, this.onPrimaryAction = (e) => {
|
|
464
|
+
this.primaryAction.emit(e);
|
|
465
|
+
}, this.onSecondaryAction = (e) => {
|
|
466
|
+
this.secondaryAction.emit(e);
|
|
467
|
+
}, this.onCustomHeaderSlotChange = () => {
|
|
468
|
+
this.hasCustomHeader = this.customHeaderSlot.assignedElements().length > 0;
|
|
469
|
+
}, this.determineScrollStatus = () => {
|
|
470
|
+
var e, t, a, s, l, r;
|
|
471
|
+
const d = ((e = this.scrollContainer) === null || e === void 0 ? void 0 : e.scrollTop) > 0, u = Math.ceil(((t = this.scrollContainer) === null || t === void 0 ? void 0 : t.scrollTop) + ((a = this.scrollContainer) === null || a === void 0 ? void 0 : a.offsetHeight)) >= ((s = this.scrollContainer) === null || s === void 0 ? void 0 : s.scrollHeight), v = ((l = this.scrollContainer) === null || l === void 0 ? void 0 : l.scrollHeight) > ((r = this.scrollContainer) === null || r === void 0 ? void 0 : r.offsetHeight);
|
|
472
|
+
d !== this.scrolled && (this.scrolled = d), u !== this.scrolledDown && (this.scrolledDown = u), v !== this.scrollable && (this.scrollable = v);
|
|
473
|
+
}, this.closeButtonLabel = "Close modal", this.hideCloseButton = void 0, this.hideLabel = void 0, this.label = void 0, this.maxWidth = void 0, this.padded = !0, this.primaryActionLabel = void 0, this.secondaryActionLabel = void 0, this.isOpen = !1, this.closing = !1, this.hasCustomHeader = void 0, this.scrollable = !1, this.scrolled = !1, this.scrolledDown = !1;
|
|
474
|
+
}
|
|
475
|
+
componentDidLoad() {
|
|
476
|
+
this.focusTrap = Ae(this.modalEl, {
|
|
477
|
+
tabbableOptions: { getShadowRoot: (n) => n.shadowRoot }
|
|
478
|
+
}), this.determineScrollStatus();
|
|
479
|
+
}
|
|
480
|
+
disconnectedCallback() {
|
|
481
|
+
this.focusTrap.deactivate(), this.unlockBodyScroll();
|
|
482
|
+
}
|
|
483
|
+
onWindowResize() {
|
|
484
|
+
this.determineScrollStatus();
|
|
485
|
+
}
|
|
486
|
+
watchIsOpen() {
|
|
487
|
+
this.isOpen ? setTimeout(() => {
|
|
488
|
+
this.focusTrap.activate();
|
|
489
|
+
}, 200) : this.focusTrap.deactivate();
|
|
490
|
+
}
|
|
491
|
+
async open() {
|
|
492
|
+
this.isOpen = !0, this.modalOpen.emit(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
493
|
+
}
|
|
494
|
+
async close() {
|
|
495
|
+
this.closing || (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
496
|
+
this.isOpen = !1, this.modalClose.emit(), this.closing = !1;
|
|
497
|
+
}, 150));
|
|
498
|
+
}
|
|
499
|
+
lockBodyScroll() {
|
|
500
|
+
le(this.scrollContainer);
|
|
501
|
+
}
|
|
502
|
+
unlockBodyScroll() {
|
|
503
|
+
ce(this.scrollContainer);
|
|
504
|
+
}
|
|
505
|
+
render() {
|
|
506
|
+
const n = Boolean(this.primaryActionLabel) || Boolean(this.secondaryActionLabel), e = de("modal", {
|
|
507
|
+
"modal--closing": this.closing,
|
|
508
|
+
"modal--has-custom-header": this.hasCustomHeader,
|
|
509
|
+
"modal--padded": this.padded,
|
|
510
|
+
"modal--scrollable": this.scrollable,
|
|
511
|
+
"modal--scrolled": this.scrolled,
|
|
512
|
+
"modal--scrolled-down": this.scrolledDown
|
|
513
|
+
});
|
|
514
|
+
return p(ne, null, p("section", { "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: e, onKeyDown: this.onKeyDown, role: "dialog", ref: (t) => this.modalEl = t }, p("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), p("div", { class: "modal__body", style: { maxWidth: this.maxWidth } }, !this.hideCloseButton && p("swirl-button", { class: "modal__close-button", hideLabel: !0, icon: "<swirl-icon-close></swirl-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), p("header", { class: "modal__custom-header" }, p("slot", { name: "custom-header", onSlotchange: this.onCustomHeaderSlotChange, ref: (t) => this.customHeaderSlot = t })), !this.hideLabel && p("header", { class: "modal__header" }, p("swirl-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), p("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (t) => this.scrollContainer = t }, p("slot", null)), n && p("footer", { class: "modal__controls" }, p("swirl-button-group", { wrap: !0 }, this.secondaryActionLabel && p("swirl-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && p("swirl-button", { intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" }))))));
|
|
515
|
+
}
|
|
516
|
+
get el() {
|
|
517
|
+
return se(this);
|
|
518
|
+
}
|
|
519
|
+
static get watchers() {
|
|
520
|
+
return {
|
|
521
|
+
isOpen: ["watchIsOpen"]
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
Oe.style = Re;
|
|
526
|
+
export {
|
|
527
|
+
Oe as swirl_modal
|
|
528
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as t, H as e } from "./index.
|
|
1
|
+
import { r as s, h as t, H as e } from "./index.df277ce6.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-section__label{padding:var(--s-space-8) var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as n, g as d } from "./index.
|
|
1
|
+
import { r as l, h as e, H as n, g as d } from "./index.df277ce6.js";
|
|
2
2
|
import { A as c } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as h, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as r } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as r, h as n, H as m, g as v } from "./index.
|
|
1
|
+
import { r as h, c as r, h as n, H as m, g as v } from "./index.df277ce6.js";
|
|
2
2
|
import { o as p, s as l, f, c as u, a as g } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import { d as b, e as y } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as k } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as o, h as i, H as l, g as n } from "./index.
|
|
1
|
+
import { r as a, c as o, h as i, H as l, g as n } from "./index.df277ce6.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const u = ".sc-swirl-radio-group-h{display:block}.sc-swirl-radio-group-h *.sc-swirl-radio-group{box-sizing:border-box}.radio-group.sc-swirl-radio-group{display:flex;flex-direction:column;gap:var(--s-space-12)}", d = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as a, h as s, H as c } from "./index.
|
|
1
|
+
import { r as n, c as a, h as s, H as c } from "./index.df277ce6.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.df277ce6.js";
|
|
2
2
|
import { c as h } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as p } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as s, H as l } from "./index.
|
|
1
|
+
import { r as e, h as s, H as l } from "./index.df277ce6.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}", t = class {
|