@getflip/swirl-components-react 0.45.1 → 0.47.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.c7f0e2b7.js → file-manager.entry.a98b3afc.js} +1 -1
- package/dist/{index.456a8559.js → index.7db9af10.js} +51 -50
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/{swirl-action-list-section.entry.86bb0bfe.js → swirl-action-list-section.entry.3987b3a4.js} +1 -1
- package/dist/{swirl-action-list_3.entry.fbe2336e.js → swirl-action-list_3.entry.e561a42c.js} +1 -1
- package/dist/{swirl-app-bar.entry.da5f20fe.js → swirl-app-bar.entry.36884a06.js} +1 -1
- package/dist/{swirl-app-icon.entry.0d155de7.js → swirl-app-icon.entry.b2875c8a.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.c11dd3c6.js → swirl-app-layout_7.entry.4728dfa3.js} +3 -3
- package/dist/{swirl-autocomplete.entry.ea35948e.js → swirl-autocomplete.entry.3e44d2e1.js} +1 -1
- package/dist/{swirl-avatar-group.entry.53d5977e.js → swirl-avatar-group.entry.3182c935.js} +1 -1
- package/dist/{swirl-avatar.entry.f96fa2b7.js → swirl-avatar.entry.9c44dfc6.js} +1 -1
- package/dist/swirl-badge.entry.7108e39a.js +19 -0
- package/dist/{swirl-banner.entry.a131dbd8.js → swirl-banner.entry.ff77f06d.js} +1 -1
- package/dist/{swirl-button-group.entry.61b80dcb.js → swirl-button-group.entry.bcff838b.js} +1 -1
- package/dist/{swirl-button.entry.5002d15f.js → swirl-button.entry.2f094e57.js} +1 -1
- package/dist/{swirl-card.entry.7f4c242d.js → swirl-card.entry.856a6538.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.240298a8.js → swirl-carousel-slide.entry.a51fd787.js} +1 -1
- package/dist/{swirl-carousel.entry.44841917.js → swirl-carousel.entry.9ba5de74.js} +1 -1
- package/dist/{swirl-checkbox.entry.0d214473.js → swirl-checkbox.entry.dab0ffaf.js} +1 -1
- package/dist/{swirl-chip.entry.92804ae9.js → swirl-chip.entry.158874ca.js} +1 -1
- package/dist/{swirl-columns.entry.80278b5f.js → swirl-columns.entry.94585eb5.js} +1 -1
- package/dist/swirl-components-react.js +160 -159
- package/dist/swirl-components-react.umd.cjs +36 -36
- package/dist/{swirl-console-layout.entry.736ae8d7.js → swirl-console-layout.entry.a560dad7.js} +1 -1
- package/dist/{swirl-date-input.entry.2623d22b.js → swirl-date-input.entry.01e788d9.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.e0116cbe.js → swirl-date-picker_2.entry.e22ca346.js} +2 -2
- package/dist/{swirl-description-list-item.entry.79d73f7d.js → swirl-description-list-item.entry.f0f59415.js} +1 -1
- package/dist/{swirl-description-list.entry.1e917317.js → swirl-description-list.entry.d9a8d920.js} +1 -1
- package/dist/{swirl-dialog.entry.0504ec11.js → swirl-dialog.entry.a0164af7.js} +1 -1
- package/dist/{swirl-file-uploader.entry.8ea36844.js → swirl-file-uploader.entry.72c24fda.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.50602955.js → swirl-file-viewer_7.entry.9f69c03c.js} +1 -1
- package/dist/{swirl-form-control.entry.e4064cc0.js → swirl-form-control.entry.e0a79efc.js} +1 -1
- package/dist/{swirl-form-group.entry.7b772651.js → swirl-form-group.entry.7daa25f8.js} +1 -1
- package/dist/{swirl-heading.entry.1e125cfd.js → swirl-heading.entry.8d3a0c75.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.d111a567.js → swirl-icon-add-photo.entry.818e2231.js} +6 -6
- package/dist/{swirl-icon-add_6.entry.4534c005.js → swirl-icon-add_6.entry.3c51cc9e.js} +12 -12
- package/dist/{swirl-icon-admin-panel-settings.entry.ab7e7c42.js → swirl-icon-admin-panel-settings.entry.1b8ed91f.js} +2 -2
- package/dist/{swirl-icon-ai.entry.bf1cd762.js → swirl-icon-ai.entry.cfe9801a.js} +7 -7
- package/dist/{swirl-icon-arrow-back.entry.c58783e1.js → swirl-icon-arrow-back.entry.1b8e28b6.js} +6 -6
- package/dist/{swirl-icon-arrow-downward_2.entry.1a05f540.js → swirl-icon-arrow-downward_2.entry.3709300f.js} +5 -5
- package/dist/{swirl-icon-arrow-forward.entry.91c80b67.js → swirl-icon-arrow-forward.entry.d6af1bde.js} +7 -7
- package/dist/{swirl-icon-arrow-left_4.entry.0d24fb32.js → swirl-icon-arrow-left_4.entry.dcc6bbf4.js} +10 -10
- package/dist/{swirl-icon-arrow-right-small.entry.ac53b508.js → swirl-icon-arrow-right-small.entry.dc1c06c3.js} +2 -2
- package/dist/{swirl-icon-attachment.entry.47589d77.js → swirl-icon-attachment.entry.98efa742.js} +2 -2
- package/dist/{swirl-icon-block.entry.d0230dc3.js → swirl-icon-block.entry.020cd485.js} +6 -6
- package/dist/{swirl-icon-bookmark.entry.3f055c08.js → swirl-icon-bookmark.entry.7f85b88a.js} +5 -5
- package/dist/{swirl-icon-cancel_4.entry.742938d8.js → swirl-icon-cancel_4.entry.766615ef.js} +8 -8
- package/dist/{swirl-icon-chat-bubble.entry.4b6acaad.js → swirl-icon-chat-bubble.entry.d4494bc0.js} +4 -4
- package/dist/{swirl-icon-chats-filled.entry.8e29afcd.js → swirl-icon-chats-filled.entry.8dbaeef5.js} +7 -7
- package/dist/{swirl-icon-chats-outlined.entry.d02b2e24.js → swirl-icon-chats-outlined.entry.f7518a73.js} +4 -4
- package/dist/{swirl-icon-check-circle_3.entry.767f9e23.js → swirl-icon-check-circle_3.entry.f2c45b85.js} +16 -16
- package/dist/{swirl-icon-check-small_4.entry.c3f85e09.js → swirl-icon-check-small_4.entry.7828b9e7.js} +3 -3
- package/dist/{swirl-icon-check-strong.entry.30f46967.js → swirl-icon-check-strong.entry.010643c5.js} +9 -9
- package/dist/{swirl-icon-check.entry.ebcd2560.js → swirl-icon-check.entry.370166b3.js} +6 -6
- package/dist/{swirl-icon-chevron-left.entry.615c2eb9.js → swirl-icon-chevron-left.entry.0a0317a6.js} +4 -4
- package/dist/{swirl-icon-chevron-right.entry.e6ef1db5.js → swirl-icon-chevron-right.entry.da398ea0.js} +7 -7
- package/dist/{swirl-icon-close-small.entry.b62c6012.js → swirl-icon-close-small.entry.1075dbe1.js} +2 -2
- package/dist/{swirl-icon-close.entry.e427315a.js → swirl-icon-close.entry.c00f1ee1.js} +2 -2
- package/dist/{swirl-icon-cloud-upload.entry.e7b711af.js → swirl-icon-cloud-upload.entry.0a2533d3.js} +6 -6
- package/dist/{swirl-icon-column.entry.0a35b238.js → swirl-icon-column.entry.f5f87436.js} +8 -8
- package/dist/{swirl-icon-comment.entry.1873a69a.js → swirl-icon-comment.entry.bdaf0026.js} +5 -5
- package/dist/{swirl-icon-copy.entry.5954a6c1.js → swirl-icon-copy.entry.5a8c4d96.js} +7 -7
- package/dist/{swirl-icon-date-range.entry.413f74d7.js → swirl-icon-date-range.entry.02e8e218.js} +5 -5
- package/dist/{swirl-icon-delete.entry.5e912d82.js → swirl-icon-delete.entry.d78baf11.js} +6 -6
- package/dist/{swirl-icon-description.entry.c5d5ccc2.js → swirl-icon-description.entry.cd2511f2.js} +7 -7
- package/dist/{swirl-icon-double-arrow-left.entry.206d2652.js → swirl-icon-double-arrow-left.entry.5d1afc61.js} +5 -5
- package/dist/{swirl-icon-double-arrow-right.entry.b2058c0f.js → swirl-icon-double-arrow-right.entry.90a7e7f1.js} +4 -4
- package/dist/{swirl-icon-download.entry.20d29f8e.js → swirl-icon-download.entry.f0a97663.js} +5 -5
- package/dist/{swirl-icon-edit.entry.256fdd16.js → swirl-icon-edit.entry.09622f61.js} +8 -8
- package/dist/{swirl-icon-emoji-mood.entry.90c22103.js → swirl-icon-emoji-mood.entry.48eb3b02.js} +5 -5
- package/dist/{swirl-icon-emoji-satisfied.entry.40a2c80d.js → swirl-icon-emoji-satisfied.entry.a4c60b5e.js} +4 -4
- package/dist/{swirl-icon-error_3.entry.2aafff99.js → swirl-icon-error_3.entry.1b6592be.js} +2 -2
- package/dist/{swirl-icon-expand-more.entry.9d3e0d4f.js → swirl-icon-expand-more.entry.a875a7cd.js} +6 -6
- package/dist/{swirl-icon-filter.entry.44f8060f.js → swirl-icon-filter.entry.57ff81b1.js} +7 -7
- package/dist/{swirl-icon-folder.entry.43b32276.js → swirl-icon-folder.entry.a88f3ce2.js} +7 -7
- package/dist/{swirl-icon-group-assign.entry.90225521.js → swirl-icon-group-assign.entry.c0e13fe4.js} +4 -4
- package/dist/{swirl-icon-groups-custom.entry.93a36e6d.js → swirl-icon-groups-custom.entry.c5cdc92e.js} +5 -5
- package/dist/{swirl-icon-groups-filled.entry.f6c97932.js → swirl-icon-groups-filled.entry.7da03e56.js} +2 -2
- package/dist/{swirl-icon-groups-outlined.entry.7c882118.js → swirl-icon-groups-outlined.entry.1e8e1af3.js} +2 -2
- package/dist/{swirl-icon-groups.entry.3c6fcacc.js → swirl-icon-groups.entry.c45a3a0b.js} +4 -4
- package/dist/{swirl-icon-help.entry.f201eb7a.js → swirl-icon-help.entry.3fafc95d.js} +4 -4
- package/dist/{swirl-icon-image.entry.c32c067c.js → swirl-icon-image.entry.28e09e23.js} +4 -4
- package/dist/{swirl-icon-improve-text.entry.dfba1856.js → swirl-icon-improve-text.entry.931fbd95.js} +5 -5
- package/dist/{swirl-icon-insert-below.entry.b62b191e.js → swirl-icon-insert-below.entry.ab4d6a08.js} +4 -4
- package/dist/{swirl-icon-insert-on-top.entry.aeb0c730.js → swirl-icon-insert-on-top.entry.4517deb6.js} +7 -7
- package/dist/{swirl-icon-inventory.entry.8ea58815.js → swirl-icon-inventory.entry.4bffa3f6.js} +8 -8
- package/dist/{swirl-icon-like.entry.89f1e145.js → swirl-icon-like.entry.9d8e3877.js} +8 -8
- package/dist/{swirl-icon-link.entry.01a25ca9.js → swirl-icon-link.entry.f1682e23.js} +7 -7
- package/dist/{swirl-icon-lock.entry.b8c0bfa8.js → swirl-icon-lock.entry.d3a02169.js} +7 -7
- package/dist/{swirl-icon-logout.entry.1d8d3a1a.js → swirl-icon-logout.entry.c1bf86fb.js} +7 -7
- package/dist/{swirl-icon-long-text.entry.58eebcce.js → swirl-icon-long-text.entry.2509fb7b.js} +6 -6
- package/dist/{swirl-icon-mail.entry.91171be9.js → swirl-icon-mail.entry.3d033e32.js} +8 -8
- package/dist/{swirl-icon-manage-accounts.entry.bace5b24.js → swirl-icon-manage-accounts.entry.b2fd7e79.js} +2 -2
- package/dist/{swirl-icon-mention.entry.dc34d70c.js → swirl-icon-mention.entry.5fb6d39b.js} +6 -6
- package/dist/{swirl-icon-menu-filled.entry.db7afa5f.js → swirl-icon-menu-filled.entry.b8c6262d.js} +6 -6
- package/dist/{swirl-icon-menu-outlined.entry.08e52d33.js → swirl-icon-menu-outlined.entry.52842e6c.js} +6 -6
- package/dist/{swirl-icon-menu.entry.588bed85.js → swirl-icon-menu.entry.5fd55edf.js} +2 -2
- package/dist/{swirl-icon-message.entry.9e98416e.js → swirl-icon-message.entry.1fd8064e.js} +4 -4
- package/dist/{swirl-icon-more-horizontal.entry.87b08134.js → swirl-icon-more-horizontal.entry.0ce95f74.js} +5 -5
- package/dist/{swirl-icon-news-filled.entry.ce49a4b7.js → swirl-icon-news-filled.entry.b18d49e5.js} +4 -4
- package/dist/{swirl-icon-news-outlined.entry.b132de2f.js → swirl-icon-news-outlined.entry.9c5d2949.js} +4 -4
- package/dist/{swirl-icon-notifications-active.entry.9c19899e.js → swirl-icon-notifications-active.entry.622c2dbc.js} +2 -2
- package/dist/{swirl-icon-notifications-off.entry.5a48b924.js → swirl-icon-notifications-off.entry.28ddda9d.js} +6 -6
- package/dist/{swirl-icon-notifications.entry.847cd4a3.js → swirl-icon-notifications.entry.810e57ae.js} +6 -6
- package/dist/{swirl-icon-open-in-new.entry.8ad3e69b.js → swirl-icon-open-in-new.entry.ed4f28bb.js} +2 -2
- package/dist/{swirl-icon-people-alt.entry.1e0225fc.js → swirl-icon-people-alt.entry.dd1cea5c.js} +2 -2
- package/dist/{swirl-icon-person-off.entry.60b7bf84.js → swirl-icon-person-off.entry.84c81c8d.js} +8 -8
- package/dist/{swirl-icon-person.entry.43287542.js → swirl-icon-person.entry.c0baddcb.js} +8 -8
- package/dist/{swirl-icon-phone.entry.efb50c82.js → swirl-icon-phone.entry.ad9ab4c7.js} +6 -6
- package/dist/{swirl-icon-poll.entry.f45aeed1.js → swirl-icon-poll.entry.6e61866d.js} +5 -5
- package/dist/{swirl-icon-print.entry.bc7a065d.js → swirl-icon-print.entry.0568c763.js} +6 -6
- package/dist/{swirl-icon-recieved.entry.23213cc3.js → swirl-icon-recieved.entry.10fd2e34.js} +6 -6
- package/dist/{swirl-icon-search-strong.entry.c73b7c12.js → swirl-icon-search-strong.entry.5e7a4eaf.js} +4 -4
- package/dist/{swirl-icon-search.entry.9be6e9aa.js → swirl-icon-search.entry.f21b073e.js} +7 -7
- package/dist/{swirl-icon-send.entry.b11692cc.js → swirl-icon-send.entry.2537292c.js} +5 -5
- package/dist/{swirl-icon-settings.entry.283a6854.js → swirl-icon-settings.entry.88bd9d0f.js} +2 -2
- package/dist/{swirl-icon-short-text.entry.083d9170.js → swirl-icon-short-text.entry.b9c2e457.js} +7 -7
- package/dist/{swirl-icon-simplify.entry.26335b6b.js → swirl-icon-simplify.entry.8c042dfb.js} +4 -4
- package/dist/{swirl-icon-spellcheck.entry.27787a06.js → swirl-icon-spellcheck.entry.50298486.js} +4 -4
- package/dist/{swirl-icon-sync.entry.2a7b7288.js → swirl-icon-sync.entry.38269b19.js} +5 -5
- package/dist/{swirl-icon-tasks-filled.entry.1a8bb370.js → swirl-icon-tasks-filled.entry.19a15f8b.js} +4 -4
- package/dist/{swirl-icon-tasks-outlined.entry.1efa6346.js → swirl-icon-tasks-outlined.entry.0fb330c6.js} +7 -7
- package/dist/{swirl-icon-time-filled.entry.4dae9657.js → swirl-icon-time-filled.entry.5b53fc6c.js} +4 -4
- package/dist/{swirl-icon-time-outlined.entry.955e2527.js → swirl-icon-time-outlined.entry.a33c0a68.js} +4 -4
- package/dist/{swirl-icon-undo.entry.a5648344.js → swirl-icon-undo.entry.f75b423e.js} +7 -7
- package/dist/{swirl-icon-user-assign.entry.0e51914c.js → swirl-icon-user-assign.entry.304950c3.js} +5 -5
- package/dist/{swirl-icon-video-camera.entry.7c5f0cc2.js → swirl-icon-video-camera.entry.6e33105f.js} +6 -6
- package/dist/{swirl-icon-voice.entry.30f8e9f6.js → swirl-icon-voice.entry.f7ced7f2.js} +4 -4
- package/dist/swirl-icon.entry.11df6e51.js +16 -0
- package/dist/{swirl-inline-notification.entry.e6c675e7.js → swirl-inline-notification.entry.85d2c117.js} +1 -1
- package/dist/{swirl-lightbox.entry.4c58d11b.js → swirl-lightbox.entry.53ca7e2a.js} +1 -1
- package/dist/{swirl-link.entry.ff548907.js → swirl-link.entry.32417d23.js} +1 -1
- package/dist/{swirl-list.entry.aabaea79.js → swirl-list.entry.360a58e3.js} +1 -1
- package/dist/swirl-modal.entry.3139c29d.js +539 -0
- package/dist/{swirl-option-list-section.entry.d32c68b2.js → swirl-option-list-section.entry.128f5ff9.js} +1 -1
- package/dist/{swirl-pagination.entry.8d93ceec.js → swirl-pagination.entry.f6fc5e30.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.2a239f5c.js → swirl-pdf-reader.entry.3d80caf5.js} +1 -1
- package/dist/{swirl-popover.entry.6dfd9bbc.js → swirl-popover.entry.942eccd2.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.786069a5.js → swirl-progress-indicator.entry.474d0787.js} +1 -1
- package/dist/{swirl-radio-group.entry.da5586e9.js → swirl-radio-group.entry.cce78b4a.js} +1 -1
- package/dist/{swirl-radio.entry.523bb750.js → swirl-radio.entry.0f1dcc23.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.771c111c.js → swirl-resource-list-file-item.entry.e60bf81c.js} +1 -1
- package/dist/{swirl-search.entry.35c61984.js → swirl-search.entry.95c8ff4f.js} +1 -1
- package/dist/{swirl-select.entry.3c9e0a0d.js → swirl-select.entry.51b389f0.js} +1 -1
- package/dist/{swirl-shell-layout.entry.38e8bc9b.js → swirl-shell-layout.entry.0443738a.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.02a342b3.js → swirl-shell-navigation-item.entry.83d2e827.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.a74b9f5c.js → swirl-skeleton-box.entry.fb116825.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.d12b6634.js → swirl-skeleton-text.entry.9e28aab0.js} +1 -1
- package/dist/{swirl-stack.entry.470f7585.js → swirl-stack.entry.a09bf3f1.js} +1 -1
- package/dist/{swirl-switch.entry.e058c772.js → swirl-switch.entry.0d4aed8b.js} +1 -1
- package/dist/{swirl-tab-bar.entry.16e5b54b.js → swirl-tab-bar.entry.faa992b2.js} +1 -1
- package/dist/{swirl-tab.entry.d66110ab.js → swirl-tab.entry.a6af18b8.js} +1 -1
- package/dist/{swirl-table-cell.entry.fdef735c.js → swirl-table-cell.entry.d49a4531.js} +1 -1
- package/dist/{swirl-table-column.entry.dc844f85.js → swirl-table-column.entry.1295d222.js} +1 -1
- package/dist/{swirl-table-row-group.entry.c2979646.js → swirl-table-row-group.entry.9933f7f2.js} +1 -1
- package/dist/{swirl-table-row.entry.479cd206.js → swirl-table-row.entry.4aa4a1e1.js} +1 -1
- package/dist/{swirl-table.entry.432f7b4e.js → swirl-table.entry.9532a9b0.js} +1 -1
- package/dist/{swirl-tabs.entry.9781a43b.js → swirl-tabs.entry.f06a83e8.js} +1 -1
- package/dist/{swirl-tag.entry.9fa08d0b.js → swirl-tag.entry.043702dc.js} +1 -1
- package/dist/{swirl-text-input.entry.c4a5b302.js → swirl-text-input.entry.2874e78b.js} +1 -1
- package/dist/{swirl-text.entry.0d5f06ab.js → swirl-text.entry.5ef6fa8b.js} +1 -1
- package/dist/{swirl-theme-provider.entry.cd516615.js → swirl-theme-provider.entry.9257ec2f.js} +1 -1
- package/dist/{swirl-toast-provider.entry.cce009b0.js → swirl-toast-provider.entry.66d7409f.js} +1 -1
- package/dist/{swirl-toast.entry.f8fd255a.js → swirl-toast.entry.60270172.js} +1 -1
- package/dist/{swirl-tooltip.entry.e5cc1f80.js → swirl-tooltip.entry.19723806.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.5694d57e.js → swirl-tree-navigation-item.entry.c1b5c0bf.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.c84e8559.js → swirl-video-thumbnail.entry.c003e83f.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.04fa45a7.js → swirl-visually-hidden.entry.cb952a8b.js} +1 -1
- package/dist/{wc-datepicker.entry.90f7cf08.js → wc-datepicker.entry.ef063b88.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-badge.entry.73274f0c.js +0 -19
- package/dist/swirl-modal.entry.bc8efd80.js +0 -532
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import { r as ie, c as x, h as v, H as ne, g as se } from "./index.7db9af10.js";
|
|
2
|
+
import { d as le, e as de } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
3
|
+
import { c as ce } 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", _ = 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 && _.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 c = r.assignedElements(), u = c.length ? c : r.children, b = n(u, !0, a);
|
|
23
|
+
a.flatten ? s.push.apply(s, b) : s.push({
|
|
24
|
+
scopeParent: r,
|
|
25
|
+
candidates: b
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
var C = _.call(r, A);
|
|
29
|
+
C && a.filter(r) && (t || !e.includes(r)) && s.push(r);
|
|
30
|
+
var w = r.shadowRoot || typeof a.getShadowRoot == "function" && a.getShadowRoot(r), S = !a.shadowRootFilter || a.shadowRootFilter(r);
|
|
31
|
+
if (w && S) {
|
|
32
|
+
var y = n(w === !0 ? r.children : w.children, !0, a);
|
|
33
|
+
a.flatten ? s.push.apply(s, y) : s.push({
|
|
34
|
+
scopeParent: r,
|
|
35
|
+
candidates: y
|
|
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
|
+
}, he = 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
|
+
}, me = 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
|
+
}, be = function(e) {
|
|
60
|
+
if (!e.name)
|
|
61
|
+
return !0;
|
|
62
|
+
var t = e.form || R(e), a = function(c) {
|
|
63
|
+
return t.querySelectorAll('input[type="radio"][name="' + c + '"]');
|
|
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 = me(s, e.form);
|
|
74
|
+
return !l || l === e;
|
|
75
|
+
}, ve = function(e) {
|
|
76
|
+
return te(e) && e.type === "radio";
|
|
77
|
+
}, pe = function(e) {
|
|
78
|
+
return ve(e) && !be(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
|
+
}, z = function(e) {
|
|
86
|
+
var t = e.getBoundingClientRect(), a = t.width, s = t.height;
|
|
87
|
+
return a === 0 && s === 0;
|
|
88
|
+
}, we = function(e, t) {
|
|
89
|
+
var a = t.displayCheck, s = t.getShadowRoot;
|
|
90
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
91
|
+
return !0;
|
|
92
|
+
var l = _.call(e, "details>summary:first-of-type"), r = l ? e.parentElement : e;
|
|
93
|
+
if (_.call(r, "details:not([open]) *"))
|
|
94
|
+
return !0;
|
|
95
|
+
if (!a || a === "full" || a === "legacy-full") {
|
|
96
|
+
if (typeof s == "function") {
|
|
97
|
+
for (var c = e; e; ) {
|
|
98
|
+
var u = e.parentElement, b = R(e);
|
|
99
|
+
if (u && !u.shadowRoot && s(u) === !0)
|
|
100
|
+
return z(e);
|
|
101
|
+
e.assignedSlot ? e = e.assignedSlot : !u && b !== e.ownerDocument ? e = b.host : e = u;
|
|
102
|
+
}
|
|
103
|
+
e = c;
|
|
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 z(e);
|
|
111
|
+
return !1;
|
|
112
|
+
}, ye = 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 _.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) || we(t, e) || he(t) || ye(t));
|
|
128
|
+
}, B = function(e, t) {
|
|
129
|
+
return !(pe(t) || ee(t) < 0 || !O(e, t));
|
|
130
|
+
}, ke = function(e) {
|
|
131
|
+
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
132
|
+
return !!(isNaN(t) || t >= 0);
|
|
133
|
+
}, Ce = function n(e) {
|
|
134
|
+
var t = [], a = [];
|
|
135
|
+
return e.forEach(function(s, l) {
|
|
136
|
+
var r = !!s.scopeParent, c = r ? s.scopeParent : s, u = ee(c, r), b = r ? n(s.candidates) : c;
|
|
137
|
+
u === 0 ? r ? t.push.apply(t, b) : t.push(c) : a.push({
|
|
138
|
+
documentOrder: l,
|
|
139
|
+
tabIndex: u,
|
|
140
|
+
item: s,
|
|
141
|
+
isScope: r,
|
|
142
|
+
content: b
|
|
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
|
+
}, Se = 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: ke
|
|
155
|
+
}) : a = J(e, t.includeContainer, B.bind(null, t)), Ce(a);
|
|
156
|
+
}, _e = 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
|
+
}, N = function(e, t) {
|
|
165
|
+
if (t = t || {}, !e)
|
|
166
|
+
throw new Error("No node provided");
|
|
167
|
+
return _.call(e, A) === !1 ? !1 : B(t, e);
|
|
168
|
+
}, Te = /* @__PURE__ */ Z.concat("iframe").join(","), P = function(e, t) {
|
|
169
|
+
if (t = t || {}, !e)
|
|
170
|
+
throw new Error("No node provided");
|
|
171
|
+
return _.call(e, Te) === !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
|
+
Fe(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 Fe(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 Ee = [], 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
|
+
}, xe = function(e) {
|
|
220
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
221
|
+
}, Ne = function(e) {
|
|
222
|
+
return e.key === "Escape" || e.key === "Esc" || e.keyCode === 27;
|
|
223
|
+
}, De = function(e) {
|
|
224
|
+
return e.key === "Tab" || e.keyCode === 9;
|
|
225
|
+
}, $ = function(e) {
|
|
226
|
+
return setTimeout(e, 0);
|
|
227
|
+
}, Y = 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
|
+
}, F = 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
|
+
}, D = 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) || Ee, 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
|
+
}, c, u = function(o, i, d) {
|
|
253
|
+
return o && o[i] !== void 0 ? o[i] : l[d || i];
|
|
254
|
+
}, b = function(o) {
|
|
255
|
+
return r.containerGroups.findIndex(function(i) {
|
|
256
|
+
var d = i.container, m = i.tabbableNodes;
|
|
257
|
+
return d.contains(o) || m.find(function(f) {
|
|
258
|
+
return f === o;
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
}, C = function(o) {
|
|
262
|
+
var i = l[o];
|
|
263
|
+
if (typeof i == "function") {
|
|
264
|
+
for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), f = 1; f < d; f++)
|
|
265
|
+
m[f - 1] = arguments[f];
|
|
266
|
+
i = i.apply(void 0, m);
|
|
267
|
+
}
|
|
268
|
+
if (i === !0 && (i = void 0), !i) {
|
|
269
|
+
if (i === void 0 || i === !1)
|
|
270
|
+
return i;
|
|
271
|
+
throw new Error("`".concat(o, "` was specified but was not a node, or did not return a node"));
|
|
272
|
+
}
|
|
273
|
+
var p = i;
|
|
274
|
+
if (typeof i == "string" && (p = a.querySelector(i), !p))
|
|
275
|
+
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
276
|
+
return p;
|
|
277
|
+
}, w = function() {
|
|
278
|
+
var o = C("initialFocus");
|
|
279
|
+
if (o === !1)
|
|
280
|
+
return !1;
|
|
281
|
+
if (o === void 0)
|
|
282
|
+
if (b(a.activeElement) >= 0)
|
|
283
|
+
o = a.activeElement;
|
|
284
|
+
else {
|
|
285
|
+
var i = r.tabbableGroups[0], d = i && i.firstTabbableNode;
|
|
286
|
+
o = d || C("fallbackFocus");
|
|
287
|
+
}
|
|
288
|
+
if (!o)
|
|
289
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
290
|
+
return o;
|
|
291
|
+
}, S = function() {
|
|
292
|
+
if (r.containerGroups = r.containers.map(function(o) {
|
|
293
|
+
var i = Se(o, l.tabbableOptions), d = _e(o, l.tabbableOptions);
|
|
294
|
+
return {
|
|
295
|
+
container: o,
|
|
296
|
+
tabbableNodes: i,
|
|
297
|
+
focusableNodes: d,
|
|
298
|
+
firstTabbableNode: i.length > 0 ? i[0] : null,
|
|
299
|
+
lastTabbableNode: i.length > 0 ? i[i.length - 1] : null,
|
|
300
|
+
nextTabbableNode: function(f) {
|
|
301
|
+
var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, g = d.findIndex(function(k) {
|
|
302
|
+
return k === f;
|
|
303
|
+
});
|
|
304
|
+
if (!(g < 0))
|
|
305
|
+
return p ? d.slice(g + 1).find(function(k) {
|
|
306
|
+
return N(k, l.tabbableOptions);
|
|
307
|
+
}) : d.slice(0, g).reverse().find(function(k) {
|
|
308
|
+
return N(k, l.tabbableOptions);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(o) {
|
|
313
|
+
return o.tabbableNodes.length > 0;
|
|
314
|
+
}), r.tabbableGroups.length <= 0 && !C("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
|
+
}, y = function h(o) {
|
|
317
|
+
if (o !== !1 && o !== a.activeElement) {
|
|
318
|
+
if (!o || !o.focus) {
|
|
319
|
+
h(w());
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
o.focus({
|
|
323
|
+
preventScroll: !!l.preventScroll
|
|
324
|
+
}), r.mostRecentlyFocusedNode = o, xe(o) && o.select();
|
|
325
|
+
}
|
|
326
|
+
}, H = function(o) {
|
|
327
|
+
var i = C("setReturnFocus", o);
|
|
328
|
+
return i || (i === !1 ? !1 : o);
|
|
329
|
+
}, E = function(o) {
|
|
330
|
+
var i = D(o);
|
|
331
|
+
if (!(b(i) >= 0)) {
|
|
332
|
+
if (F(l.clickOutsideDeactivates, o)) {
|
|
333
|
+
c.deactivate({
|
|
334
|
+
returnFocus: l.returnFocusOnDeactivate && !P(i, l.tabbableOptions)
|
|
335
|
+
});
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
F(l.allowOutsideClick, o) || o.preventDefault();
|
|
339
|
+
}
|
|
340
|
+
}, j = function(o) {
|
|
341
|
+
var i = D(o), d = b(i) >= 0;
|
|
342
|
+
d || i instanceof Document ? d && (r.mostRecentlyFocusedNode = i) : (o.stopImmediatePropagation(), y(r.mostRecentlyFocusedNode || w()));
|
|
343
|
+
}, ae = function(o) {
|
|
344
|
+
var i = D(o);
|
|
345
|
+
S();
|
|
346
|
+
var d = null;
|
|
347
|
+
if (r.tabbableGroups.length > 0) {
|
|
348
|
+
var m = b(i), f = m >= 0 ? r.containerGroups[m] : void 0;
|
|
349
|
+
if (m < 0)
|
|
350
|
+
o.shiftKey ? d = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : d = r.tabbableGroups[0].firstTabbableNode;
|
|
351
|
+
else if (o.shiftKey) {
|
|
352
|
+
var p = Y(r.tabbableGroups, function(I) {
|
|
353
|
+
var L = I.firstTabbableNode;
|
|
354
|
+
return i === L;
|
|
355
|
+
});
|
|
356
|
+
if (p < 0 && (f.container === i || P(i, l.tabbableOptions) && !N(i, l.tabbableOptions) && !f.nextTabbableNode(i, !1)) && (p = m), p >= 0) {
|
|
357
|
+
var g = p === 0 ? r.tabbableGroups.length - 1 : p - 1, k = r.tabbableGroups[g];
|
|
358
|
+
d = k.lastTabbableNode;
|
|
359
|
+
}
|
|
360
|
+
} else {
|
|
361
|
+
var T = Y(r.tabbableGroups, function(I) {
|
|
362
|
+
var L = I.lastTabbableNode;
|
|
363
|
+
return i === L;
|
|
364
|
+
});
|
|
365
|
+
if (T < 0 && (f.container === i || P(i, l.tabbableOptions) && !N(i, l.tabbableOptions) && !f.nextTabbableNode(i)) && (T = m), T >= 0) {
|
|
366
|
+
var re = T === r.tabbableGroups.length - 1 ? 0 : T + 1, oe = r.tabbableGroups[re];
|
|
367
|
+
d = oe.firstTabbableNode;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
} else
|
|
371
|
+
d = C("fallbackFocus");
|
|
372
|
+
d && (o.preventDefault(), y(d));
|
|
373
|
+
}, M = function(o) {
|
|
374
|
+
if (Ne(o) && F(l.escapeDeactivates, o) !== !1) {
|
|
375
|
+
o.preventDefault(), c.deactivate();
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if (De(o)) {
|
|
379
|
+
ae(o);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
}, q = function(o) {
|
|
383
|
+
var i = D(o);
|
|
384
|
+
b(i) >= 0 || F(l.clickOutsideDeactivates, o) || F(l.allowOutsideClick, o) || (o.preventDefault(), o.stopImmediatePropagation());
|
|
385
|
+
}, G = function() {
|
|
386
|
+
if (!!r.active)
|
|
387
|
+
return V.activateTrap(s, c), r.delayInitialFocusTimer = l.delayInitialFocus ? $(function() {
|
|
388
|
+
y(w());
|
|
389
|
+
}) : y(w()), a.addEventListener("focusin", j, !0), a.addEventListener("mousedown", E, {
|
|
390
|
+
capture: !0,
|
|
391
|
+
passive: !1
|
|
392
|
+
}), a.addEventListener("touchstart", E, {
|
|
393
|
+
capture: !0,
|
|
394
|
+
passive: !1
|
|
395
|
+
}), a.addEventListener("click", q, {
|
|
396
|
+
capture: !0,
|
|
397
|
+
passive: !1
|
|
398
|
+
}), a.addEventListener("keydown", M, {
|
|
399
|
+
capture: !0,
|
|
400
|
+
passive: !1
|
|
401
|
+
}), c;
|
|
402
|
+
}, K = function() {
|
|
403
|
+
if (!!r.active)
|
|
404
|
+
return a.removeEventListener("focusin", j, !0), a.removeEventListener("mousedown", E, !0), a.removeEventListener("touchstart", E, !0), a.removeEventListener("click", q, !0), a.removeEventListener("keydown", M, !0), c;
|
|
405
|
+
};
|
|
406
|
+
return c = {
|
|
407
|
+
get active() {
|
|
408
|
+
return r.active;
|
|
409
|
+
},
|
|
410
|
+
get paused() {
|
|
411
|
+
return r.paused;
|
|
412
|
+
},
|
|
413
|
+
activate: function(o) {
|
|
414
|
+
if (r.active)
|
|
415
|
+
return this;
|
|
416
|
+
var i = u(o, "onActivate"), d = u(o, "onPostActivate"), m = u(o, "checkCanFocusTrap");
|
|
417
|
+
m || S(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = a.activeElement, i && i();
|
|
418
|
+
var f = function() {
|
|
419
|
+
m && S(), G(), d && d();
|
|
420
|
+
};
|
|
421
|
+
return m ? (m(r.containers.concat()).then(f, f), this) : (f(), this);
|
|
422
|
+
},
|
|
423
|
+
deactivate: function(o) {
|
|
424
|
+
if (!r.active)
|
|
425
|
+
return this;
|
|
426
|
+
var i = W({
|
|
427
|
+
onDeactivate: l.onDeactivate,
|
|
428
|
+
onPostDeactivate: l.onPostDeactivate,
|
|
429
|
+
checkCanReturnFocus: l.checkCanReturnFocus
|
|
430
|
+
}, o);
|
|
431
|
+
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, K(), r.active = !1, r.paused = !1, V.deactivateTrap(s, c);
|
|
432
|
+
var d = u(i, "onDeactivate"), m = u(i, "onPostDeactivate"), f = u(i, "checkCanReturnFocus"), p = u(i, "returnFocus", "returnFocusOnDeactivate");
|
|
433
|
+
d && d();
|
|
434
|
+
var g = function() {
|
|
435
|
+
$(function() {
|
|
436
|
+
p && y(H(r.nodeFocusedBeforeActivation)), m && m();
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
return p && 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, K(), this);
|
|
443
|
+
},
|
|
444
|
+
unpause: function() {
|
|
445
|
+
return !r.paused || !r.active ? this : (r.paused = !1, S(), G(), this);
|
|
446
|
+
},
|
|
447
|
+
updateContainerElements: function(o) {
|
|
448
|
+
var i = [].concat(o).filter(Boolean);
|
|
449
|
+
return r.containers = i.map(function(d) {
|
|
450
|
+
return typeof d == "string" ? a.querySelector(d) : d;
|
|
451
|
+
}), r.active && S(), this;
|
|
452
|
+
}
|
|
453
|
+
}, c.updateContainerElements(e), c;
|
|
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--variant-default.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--variant-default.modal--closing{-webkit-animation:none;animation:none}}.modal--variant-default: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--variant-default:not(.modal--closing) .modal__backdrop{-webkit-animation:none;animation:none}}.modal--variant-default:not(.modal--closing) .modal__body{-webkit-animation:0.15s modal-scale-in;animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal--variant-default:not(.modal--closing) .modal__body{-webkit-animation:none;animation:none}}.modal--variant-drawer{justify-content:end;align-items:stretch}.modal--variant-drawer.modal--closing{-webkit-animation:0.15s modal-drawer-slide-out;animation:0.15s modal-drawer-slide-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--variant-drawer.modal--closing{-webkit-animation:none;animation:none}}.modal--variant-drawer.modal--hide-label .modal__content{padding-top:calc(3.5rem + var(--s-space-8))}.modal--variant-drawer .modal__backdrop{background-color:transparent;-webkit-animation:none;animation:none}.modal--variant-drawer .modal__body{height:100%;max-height:none;border-radius:0;-webkit-animation:0.15s modal-drawer-slide-in;animation:0.15s modal-drawer-slide-in;box-shadow:var(--s-shadow-level-3)}@media (prefers-reduced-motion){.modal--variant-drawer .modal__body{-webkit-animation:none;animation:none}}.modal--variant-drawer .modal__close-button{right:auto;left:var(--s-space-8)}@media (min-width: 768px){.modal--variant-drawer .modal__close-button{left:var(--s-space-16)}}.modal--variant-drawer .modal__header{padding-left:calc(var(--s-space-8) + 2.5rem + var(--s-space-8));padding-right:var(--s-space-16)}@media (min-width: 768px){.modal--variant-drawer .modal__header{padding-top:var(--s-space-16);padding-right:var(--s-space-24);padding-left:calc(var(--s-space-16) + 2.5rem + var(--s-space-8))}}.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)}}@media (min-width: 768px){.modal--scrollable .modal__content{padding-bottom:0}}.modal--scrollable:not(.modal--scrolled-down).modal--has-custom-footer .modal__custom-footer{border-top:var(--s-border-width-default) solid var(--s-border-default)}.modal--scrollable:not(.modal--scrolled-down):not(.modal--has-custom-footer) .modal__controls{border-top:var(--s-border-width-default) solid var(--s-border-default)}.modal--has-custom-header .modal__content{padding-top:var(--s-space-16)}@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__custom-footer{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}.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}}@-webkit-keyframes modal-drawer-slide-in{from{transform:translate3d(100%, 0, 0)}to{transform:translate3d(0, 0, 0)}}@keyframes modal-drawer-slide-in{from{transform:translate3d(100%, 0, 0)}to{transform:translate3d(0, 0, 0)}}@-webkit-keyframes modal-drawer-slide-out{from{transform:translate3d(0, 0, 0)}to{transform:translate3d(100%, 0, 0)}}@keyframes modal-drawer-slide-out{from{transform:translate3d(0, 0, 0)}to{transform:translate3d(100%, 0, 0)}}', Oe = class {
|
|
456
|
+
constructor(n) {
|
|
457
|
+
ie(this, n), this.modalClose = x(this, "modalClose", 7), this.modalOpen = x(this, "modalOpen", 7), this.primaryAction = x(this, "primaryAction", 7), this.secondaryAction = x(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.determineScrollStatus = () => {
|
|
468
|
+
var e, t, a, s, l, r;
|
|
469
|
+
const c = ((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), b = ((l = this.scrollContainer) === null || l === void 0 ? void 0 : l.scrollHeight) > ((r = this.scrollContainer) === null || r === void 0 ? void 0 : r.offsetHeight);
|
|
470
|
+
c !== this.scrolled && (this.scrolled = c), u !== this.scrolledDown && (this.scrolledDown = u), b !== this.scrollable && (this.scrollable = b);
|
|
471
|
+
}, 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.variant = "default", this.isOpen = !1, this.closing = !1, this.hasCustomHeader = void 0, this.hasCustomFooter = void 0, this.scrollable = !1, this.scrolled = !1, this.scrolledDown = !1;
|
|
472
|
+
}
|
|
473
|
+
componentDidLoad() {
|
|
474
|
+
this.focusTrap = Ae(this.modalEl, {
|
|
475
|
+
allowOutsideClick: !0,
|
|
476
|
+
tabbableOptions: {
|
|
477
|
+
getShadowRoot: (n) => n.shadowRoot
|
|
478
|
+
}
|
|
479
|
+
}), this.determineScrollStatus(), queueMicrotask(() => {
|
|
480
|
+
this.updateCustomFooterStatus(), this.updateCustomHeaderStatus();
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
disconnectedCallback() {
|
|
484
|
+
this.focusTrap.deactivate(), this.unlockBodyScroll();
|
|
485
|
+
}
|
|
486
|
+
onWindowResize() {
|
|
487
|
+
this.determineScrollStatus();
|
|
488
|
+
}
|
|
489
|
+
watchIsOpen() {
|
|
490
|
+
this.isOpen ? setTimeout(() => {
|
|
491
|
+
this.focusTrap.activate();
|
|
492
|
+
}, 200) : this.focusTrap.deactivate();
|
|
493
|
+
}
|
|
494
|
+
async open() {
|
|
495
|
+
this.isOpen = !0, this.modalOpen.emit(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
496
|
+
}
|
|
497
|
+
async close() {
|
|
498
|
+
this.closing || (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
499
|
+
this.isOpen = !1, this.modalClose.emit(), this.closing = !1;
|
|
500
|
+
}, 150));
|
|
501
|
+
}
|
|
502
|
+
updateCustomFooterStatus() {
|
|
503
|
+
this.hasCustomFooter = Boolean(this.el.querySelector('[slot="custom-footer"]'));
|
|
504
|
+
}
|
|
505
|
+
updateCustomHeaderStatus() {
|
|
506
|
+
this.hasCustomHeader = Boolean(this.el.querySelector('[slot="custom-header"]'));
|
|
507
|
+
}
|
|
508
|
+
lockBodyScroll() {
|
|
509
|
+
le(this.scrollContainer);
|
|
510
|
+
}
|
|
511
|
+
unlockBodyScroll() {
|
|
512
|
+
de(this.scrollContainer);
|
|
513
|
+
}
|
|
514
|
+
render() {
|
|
515
|
+
const n = Boolean(this.primaryActionLabel) || Boolean(this.secondaryActionLabel), e = ce("modal", `modal--variant-${this.variant}`, {
|
|
516
|
+
"modal--closing": this.closing,
|
|
517
|
+
"modal--has-custom-footer": this.hasCustomFooter,
|
|
518
|
+
"modal--has-custom-header": this.hasCustomHeader,
|
|
519
|
+
"modal--hide-label": this.hideLabel,
|
|
520
|
+
"modal--padded": this.padded,
|
|
521
|
+
"modal--scrollable": this.scrollable,
|
|
522
|
+
"modal--scrolled": this.scrolled,
|
|
523
|
+
"modal--scrolled-down": this.scrolledDown
|
|
524
|
+
});
|
|
525
|
+
return v(ne, null, v("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 }, v("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), v("div", { class: "modal__body", style: { maxWidth: this.maxWidth } }, !this.hideCloseButton && v("swirl-button", { class: "modal__close-button", hideLabel: !0, icon: this.variant === "default" ? "<swirl-icon-close></swirl-icon-close>" : "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), v("header", { class: "modal__custom-header" }, v("slot", { name: "custom-header" })), !this.hideLabel && v("header", { class: "modal__header" }, v("swirl-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), v("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (t) => this.scrollContainer = t }, v("slot", null)), v("div", { class: "modal__custom-footer" }, v("slot", { name: "custom-footer" })), n && v("footer", { class: "modal__controls" }, v("swirl-button-group", { wrap: !0 }, this.secondaryActionLabel && v("swirl-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && v("swirl-button", { intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" }))))));
|
|
526
|
+
}
|
|
527
|
+
get el() {
|
|
528
|
+
return se(this);
|
|
529
|
+
}
|
|
530
|
+
static get watchers() {
|
|
531
|
+
return {
|
|
532
|
+
isOpen: ["watchIsOpen"]
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
Oe.style = Re;
|
|
537
|
+
export {
|
|
538
|
+
Oe as swirl_modal
|
|
539
|
+
};
|
|
@@ -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.7db9af10.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.7db9af10.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 p, h as i, H as m, g as v } from "./index.
|
|
1
|
+
import { r as h, c as p, h as i, H as m, g as v } from "./index.7db9af10.js";
|
|
2
2
|
import { o as l, s as c, 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.7db9af10.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.7db9af10.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.7db9af10.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";
|