@getflip/swirl-components-react 0.216.0 → 0.217.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.269f14a1.js → file-manager.entry.c5ba07f0.js} +1 -1
- package/dist/{index.c967ba69.js → index.9f0279fd.js} +354 -354
- package/dist/{swirl-accordion-item.entry.562b1b08.js → swirl-accordion-item.entry.10520e37.js} +1 -1
- package/dist/{swirl-accordion.entry.c45d7709.js → swirl-accordion.entry.8a305986.js} +1 -1
- package/dist/{swirl-action-list-section.entry.10843079.js → swirl-action-list-section.entry.e5b01c32.js} +1 -1
- package/dist/{swirl-action-list_3.entry.76f5c193.js → swirl-action-list_3.entry.ecc9a71f.js} +1 -1
- package/dist/{swirl-app-bar.entry.67606735.js → swirl-app-bar.entry.f6d00757.js} +1 -1
- package/dist/{swirl-app-icon.entry.08f73493.js → swirl-app-icon.entry.78847f7a.js} +1 -1
- package/dist/{swirl-app-layout_6.entry.86f720b6.js → swirl-app-layout_6.entry.f9c6bf2e.js} +1 -1
- package/dist/{swirl-autocomplete.entry.921b4e2a.js → swirl-autocomplete.entry.64e342ad.js} +1 -1
- package/dist/{swirl-avatar-group.entry.083cbd6c.js → swirl-avatar-group.entry.1a82c109.js} +1 -1
- package/dist/{swirl-avatar.entry.0dd79677.js → swirl-avatar.entry.f7dcee98.js} +1 -1
- package/dist/{swirl-badge.entry.a369e6ec.js → swirl-badge.entry.e65ffaba.js} +1 -1
- package/dist/{swirl-banner.entry.bb4db890.js → swirl-banner.entry.680ca7d6.js} +1 -1
- package/dist/{swirl-box.entry.62eac774.js → swirl-box.entry.f4a01b69.js} +1 -1
- package/dist/{swirl-button-group.entry.2f4f34ff.js → swirl-button-group.entry.3265f1ad.js} +1 -1
- package/dist/{swirl-button.entry.3143b3d5.js → swirl-button.entry.31b50412.js} +1 -1
- package/dist/{swirl-card.entry.7863d1e0.js → swirl-card.entry.0e6d41e7.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.b5db6f36.js → swirl-carousel-slide.entry.7265e3b1.js} +1 -1
- package/dist/{swirl-carousel.entry.e4e139c7.js → swirl-carousel.entry.9b1ea213.js} +1 -1
- package/dist/{swirl-checkbox.entry.fcd75360.js → swirl-checkbox.entry.95317f69.js} +1 -1
- package/dist/{swirl-chip.entry.5b6e22f6.js → swirl-chip.entry.270b2207.js} +2 -2
- package/dist/{swirl-color-input.entry.82a311f4.js → swirl-color-input.entry.e2a80bcf.js} +1 -1
- package/dist/{swirl-columns.entry.e48225de.js → swirl-columns.entry.3209c0ea.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +4 -4
- package/dist/{swirl-console-layout.entry.9861ac80.js → swirl-console-layout.entry.f4a52b87.js} +1 -1
- package/dist/{swirl-date-input.entry.b7889167.js → swirl-date-input.entry.9ac1b622.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.35bf611f.js → swirl-date-picker_2.entry.2f299581.js} +1 -1
- package/dist/{swirl-description-list-item.entry.7a306f09.js → swirl-description-list-item.entry.7af3a4b8.js} +1 -1
- package/dist/{swirl-description-list.entry.de23d45a.js → swirl-description-list.entry.cdc0c5e1.js} +1 -1
- package/dist/{swirl-dialog.entry.ddca3b2d.js → swirl-dialog.entry.567038a3.js} +1 -1
- package/dist/{swirl-emoji-clap.entry.8d72f57f.js → swirl-emoji-clap.entry.8864a174.js} +1 -1
- package/dist/{swirl-emoji-happy.entry.8451e605.js → swirl-emoji-happy.entry.86f1c4e6.js} +1 -1
- package/dist/{swirl-emoji-idea.entry.47a5c109.js → swirl-emoji-idea.entry.b8d94efd.js} +1 -1
- package/dist/{swirl-emoji-love.entry.efe818d2.js → swirl-emoji-love.entry.0bcdbdf1.js} +1 -1
- package/dist/{swirl-emoji-sad.entry.636c9d19.js → swirl-emoji-sad.entry.66c4d1d0.js} +1 -1
- package/dist/{swirl-emoji-thumbs-up.entry.bb12a7cb.js → swirl-emoji-thumbs-up.entry.252865c3.js} +1 -1
- package/dist/{swirl-emoji.entry.17bdf8fe.js → swirl-emoji.entry.fceaefdc.js} +1 -1
- package/dist/{swirl-file-uploader.entry.ac8518a5.js → swirl-file-uploader.entry.d0432555.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.9399e1ec.js → swirl-file-viewer_7.entry.ab8d9c52.js} +125 -117
- package/dist/{swirl-form-control.entry.fac3eb4f.js → swirl-form-control.entry.16d93362.js} +1 -1
- package/dist/{swirl-form-group.entry.2ccd1d33.js → swirl-form-group.entry.d59d3e7c.js} +1 -1
- package/dist/{swirl-heading.entry.2642e5cc.js → swirl-heading.entry.a332e785.js} +1 -1
- package/dist/{swirl-icon-add-moderator.entry.252e72be.js → swirl-icon-add-moderator.entry.04c3e6e0.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.37e5fa93.js → swirl-icon-add-photo.entry.21a2a6e9.js} +1 -1
- package/dist/{swirl-icon-add-reaction.entry.79c1f3da.js → swirl-icon-add-reaction.entry.05740a03.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.24362b33.js → swirl-icon-add_6.entry.381bc266.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.f58778d1.js → swirl-icon-admin-panel-settings.entry.5949133e.js} +1 -1
- package/dist/{swirl-icon-ai.entry.f104430f.js → swirl-icon-ai.entry.7ec62612.js} +1 -1
- package/dist/{swirl-icon-apps.entry.5c58dffa.js → swirl-icon-apps.entry.586b1337.js} +1 -1
- package/dist/{swirl-icon-arrow-back_4.entry.7a5639e6.js → swirl-icon-arrow-back_4.entry.91c3f94e.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.83282d79.js → swirl-icon-arrow-downward_2.entry.3830e762.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.74e66da6.js → swirl-icon-arrow-left_4.entry.443dfedf.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.ec117453.js → swirl-icon-arrow-right-small.entry.6ddbbdfc.js} +1 -1
- package/dist/{swirl-icon-aspect-ratio.entry.9d6fe0f6.js → swirl-icon-aspect-ratio.entry.329c300e.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.a41d1dfd.js → swirl-icon-attachment.entry.5014d026.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.57365a42.js → swirl-icon-bar-chart.entry.ed0a3ea8.js} +1 -1
- package/dist/{swirl-icon-block.entry.21130a2e.js → swirl-icon-block.entry.52b9762b.js} +1 -1
- package/dist/{swirl-icon-bookmark-filled.entry.8dafaaf7.js → swirl-icon-bookmark-filled.entry.7e203f1c.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.cd506ebd.js → swirl-icon-bookmark.entry.b1177fa2.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.230c66f3.js → swirl-icon-cancel_4.entry.2e93e13b.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.3f94893c.js → swirl-icon-chat-bubble.entry.f60fa1d0.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.c1269a61.js → swirl-icon-chats-filled.entry.1d30cbf1.js} +1 -1
- package/dist/{swirl-icon-chats.entry.f300f9d6.js → swirl-icon-chats.entry.6964dea6.js} +1 -1
- package/dist/{swirl-icon-check-circle_2.entry.e9ec3c1f.js → swirl-icon-check-circle_2.entry.c3cc1371.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.ac9dcc0c.js → swirl-icon-check-small_3.entry.c7922583.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.7e6fcc62.js → swirl-icon-check-strong.entry.5aaf76ef.js} +1 -1
- package/dist/{swirl-icon-check.entry.3917c0c4.js → swirl-icon-check.entry.9af39623.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.ff97b8d3.js → swirl-icon-chevron-left.entry.60edbdc2.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.1846b451.js → swirl-icon-chevron-right.entry.820120f8.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.6cfe71e7.js → swirl-icon-close-small.entry.b256f21f.js} +1 -1
- package/dist/{swirl-icon-close.entry.cfe69aa4.js → swirl-icon-close.entry.73bd33df.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.40b48b27.js → swirl-icon-cloud-upload.entry.b9ed9472.js} +1 -1
- package/dist/{swirl-icon-column.entry.7ad55749.js → swirl-icon-column.entry.01420209.js} +1 -1
- package/dist/{swirl-icon-comment.entry.cf8b7f5b.js → swirl-icon-comment.entry.90fb1023.js} +1 -1
- package/dist/{swirl-icon-copy.entry.7717b8e1.js → swirl-icon-copy.entry.327fd183.js} +1 -1
- package/dist/{swirl-icon-crop.entry.7d17eee7.js → swirl-icon-crop.entry.b1fa323f.js} +1 -1
- package/dist/{swirl-icon-dark-mode.entry.4852bd62.js → swirl-icon-dark-mode.entry.42e0c089.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.83e792ac.js → swirl-icon-date-range.entry.a0665247.js} +1 -1
- package/dist/{swirl-icon-delete.entry.1ffd3c2c.js → swirl-icon-delete.entry.56385c42.js} +1 -1
- package/dist/{swirl-icon-description.entry.195dbe0a.js → swirl-icon-description.entry.6bb96107.js} +1 -1
- package/dist/{swirl-icon-desktop.entry.8f792f8c.js → swirl-icon-desktop.entry.0c633367.js} +1 -1
- package/dist/{swirl-icon-directory-filled.entry.2c11cbab.js → swirl-icon-directory-filled.entry.cc6b6448.js} +1 -1
- package/dist/{swirl-icon-directory.entry.f708c5ad.js → swirl-icon-directory.entry.a2854e8d.js} +1 -1
- package/dist/{swirl-icon-discover.entry.bc0e2b9b.js → swirl-icon-discover.entry.5795ad8b.js} +1 -1
- package/dist/{swirl-icon-dot.entry.8e15466f.js → swirl-icon-dot.entry.8e823769.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.6c2adfa9.js → swirl-icon-double-arrow-right.entry.d2e1bb5c.js} +1 -1
- package/dist/{swirl-icon-download.entry.e2403f73.js → swirl-icon-download.entry.e186af80.js} +1 -1
- package/dist/{swirl-icon-edit.entry.7e4a5ccb.js → swirl-icon-edit.entry.733a3864.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.4b1dd194.js → swirl-icon-emoji-mood.entry.351881b5.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.4eff7851.js → swirl-icon-emoji-satisfied.entry.bef04388.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.02966c3f.js → swirl-icon-error_3.entry.aa90e529.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.4007c45e.js → swirl-icon-expand-more.entry.b46010b0.js} +1 -1
- package/dist/{swirl-icon-experiment.entry.350a8606.js → swirl-icon-experiment.entry.d1f1e051.js} +1 -1
- package/dist/{swirl-icon-filter.entry.bc3762e5.js → swirl-icon-filter.entry.961e21aa.js} +1 -1
- package/dist/{swirl-icon-folder.entry.bd8e29df.js → swirl-icon-folder.entry.79cc0a86.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.a90a2e39.js → swirl-icon-format-h-one.entry.f978adce.js} +1 -1
- package/dist/{swirl-icon-gif.entry.549f2d4b.js → swirl-icon-gif.entry.78ee3183.js} +1 -1
- package/dist/{swirl-icon-group-add.entry.b21726e4.js → swirl-icon-group-add.entry.36064ed2.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.c1b20159.js → swirl-icon-group-assign.entry.79d1bc61.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.71d0e245.js → swirl-icon-groups-filled.entry.f17b2a65.js} +1 -1
- package/dist/{swirl-icon-groups.entry.5c46ccf6.js → swirl-icon-groups.entry.ef88a0cf.js} +1 -1
- package/dist/{swirl-icon-hamburger-menu.entry.9ef6d27b.js → swirl-icon-hamburger-menu.entry.feebef83.js} +1 -1
- package/dist/{swirl-icon-help.entry.71371785.js → swirl-icon-help.entry.dc11e908.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.05e01e94.js → swirl-icon-highlight.entry.d93cca4c.js} +1 -1
- package/dist/{swirl-icon-history.entry.2dcef56b.js → swirl-icon-history.entry.0f23a9cd.js} +1 -1
- package/dist/{swirl-icon-home.entry.0b2e0519.js → swirl-icon-home.entry.b01cbb98.js} +1 -1
- package/dist/{swirl-icon-image.entry.d3a8a177.js → swirl-icon-image.entry.3b883f33.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.f352da6a.js → swirl-icon-improve-text.entry.2165d6bc.js} +1 -1
- package/dist/{swirl-icon-info.entry.e0427d6f.js → swirl-icon-info.entry.82f492fa.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.6920c15d.js → swirl-icon-insert-below.entry.c13d4874.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.d0f854eb.js → swirl-icon-insert-on-top.entry.e10c277b.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.2241f37f.js → swirl-icon-inventory.entry.564a09bf.js} +1 -1
- package/dist/{swirl-icon-keyboard-hide.entry.796d4eb0.js → swirl-icon-keyboard-hide.entry.ba0d8949.js} +1 -1
- package/dist/{swirl-icon-keyboard.entry.9ce314ec.js → swirl-icon-keyboard.entry.d7976299.js} +1 -1
- package/dist/{swirl-icon-light-mode.entry.12ce8f2b.js → swirl-icon-light-mode.entry.f407775e.js} +1 -1
- package/dist/{swirl-icon-like.entry.3d42abb5.js → swirl-icon-like.entry.17415bf0.js} +1 -1
- package/dist/{swirl-icon-link.entry.efcfff3b.js → swirl-icon-link.entry.20cbe55d.js} +1 -1
- package/dist/{swirl-icon-load.entry.be45a8e0.js → swirl-icon-load.entry.5dbff508.js} +1 -1
- package/dist/{swirl-icon-lock-open.entry.eb0de06a.js → swirl-icon-lock-open.entry.93b4b895.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.4f5fbad3.js → swirl-icon-lock-person.entry.cf1e2c7f.js} +1 -1
- package/dist/{swirl-icon-lock.entry.4e3ae06a.js → swirl-icon-lock.entry.04996c55.js} +1 -1
- package/dist/{swirl-icon-login.entry.b9e4e09f.js → swirl-icon-login.entry.0bd15014.js} +1 -1
- package/dist/{swirl-icon-logout.entry.212c790f.js → swirl-icon-logout.entry.fc0e8034.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.515df68d.js → swirl-icon-long-text.entry.a72d968b.js} +1 -1
- package/dist/{swirl-icon-mail.entry.d13e2636.js → swirl-icon-mail.entry.476e35c2.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.bf928dfd.js → swirl-icon-manage-accounts.entry.e6e86bcc.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.3a5de600.js → swirl-icon-mark-chat-read.entry.b1636c80.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.614a8f3c.js → swirl-icon-mark-chat-unread.entry.d97c7a27.js} +1 -1
- package/dist/{swirl-icon-mention.entry.ad2fe409.js → swirl-icon-mention.entry.c5fb7032.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.4c266ba4.js → swirl-icon-menu-filled.entry.f3d2542d.js} +1 -1
- package/dist/{swirl-icon-menu.entry.11e8f3ee.js → swirl-icon-menu.entry.81a7f072.js} +1 -1
- package/dist/{swirl-icon-message.entry.81b2c46f.js → swirl-icon-message.entry.418bf484.js} +1 -1
- package/dist/{swirl-icon-mic-off.entry.c24a7696.js → swirl-icon-mic-off.entry.1a05a3e8.js} +1 -1
- package/dist/{swirl-icon-mic.entry.6988de33.js → swirl-icon-mic.entry.dc5c7c11.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.e113a359.js → swirl-icon-more-horizontal.entry.8138ca51.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.d983e217.js → swirl-icon-news-filled.entry.aca0e0f0.js} +1 -1
- package/dist/{swirl-icon-news-off.entry.332d7271.js → swirl-icon-news-off.entry.cba63ab6.js} +1 -1
- package/dist/{swirl-icon-news.entry.5d01be9b.js → swirl-icon-news.entry.9686c4d1.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.a704e3b9.js → swirl-icon-notifications-active.entry.a5466894.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.19fd96cd.js → swirl-icon-notifications-off.entry.98843653.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.34ccfbad.js → swirl-icon-notifications.entry.8f0b8c44.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.22799dce.js → swirl-icon-open-in-full.entry.d450dde0.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.017bb99a.js → swirl-icon-open-in-new.entry.576a1424.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.af0f28c6.js → swirl-icon-pause-circle.entry.b982f9ae.js} +1 -1
- package/dist/{swirl-icon-pause.entry.27fb0d89.js → swirl-icon-pause.entry.8700cfcb.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.1c10f05d.js → swirl-icon-people-alt.entry.0e7bd5d0.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.6353c91c.js → swirl-icon-person-off.entry.32df76c5.js} +1 -1
- package/dist/{swirl-icon-person.entry.e62d8375.js → swirl-icon-person.entry.42f261c9.js} +1 -1
- package/dist/{swirl-icon-phone.entry.c3117f09.js → swirl-icon-phone.entry.f460ad44.js} +1 -1
- package/dist/{swirl-icon-photo-camera.entry.c74936ca.js → swirl-icon-photo-camera.entry.b464e245.js} +1 -1
- package/dist/{swirl-icon-pin-off.entry.e292646a.js → swirl-icon-pin-off.entry.6cc1c392.js} +1 -1
- package/dist/{swirl-icon-pin.entry.69423803.js → swirl-icon-pin.entry.933c19cf.js} +1 -1
- package/dist/{swirl-icon-place.entry.c10f0f96.js → swirl-icon-place.entry.3ec4f9e0.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.0cb2c043.js → swirl-icon-play-arrow.entry.e3a37121.js} +1 -1
- package/dist/{swirl-icon-poll.entry.3c904fa3.js → swirl-icon-poll.entry.36cbfa51.js} +1 -1
- package/dist/{swirl-icon-print.entry.e458607a.js → swirl-icon-print.entry.793df75d.js} +1 -1
- package/dist/{swirl-icon-ratio-four-to-three.entry.07f25429.js → swirl-icon-ratio-four-to-three.entry.ae030a65.js} +1 -1
- package/dist/{swirl-icon-ratio-freeform.entry.7c223cb2.js → swirl-icon-ratio-freeform.entry.90f102e7.js} +1 -1
- package/dist/{swirl-icon-ratio-sixteen-to-nine.entry.a2924bc0.js → swirl-icon-ratio-sixteen-to-nine.entry.53ccc84e.js} +1 -1
- package/dist/{swirl-icon-ratio-square.entry.d42794ef.js → swirl-icon-ratio-square.entry.b420b44e.js} +1 -1
- package/dist/{swirl-icon-ratio-three-to-four.entry.c6898c73.js → swirl-icon-ratio-three-to-four.entry.e5ac70cd.js} +1 -1
- package/dist/{swirl-icon-ratio-three-to-two.entry.d892e5fc.js → swirl-icon-ratio-three-to-two.entry.6abdfde8.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.afa0c989.js → swirl-icon-recieved.entry.76e46a57.js} +1 -1
- package/dist/{swirl-icon-remove-moderator.entry.0dd78e50.js → swirl-icon-remove-moderator.entry.fa99d8a7.js} +1 -1
- package/dist/{swirl-icon-reply.entry.3677504b.js → swirl-icon-reply.entry.17fe7a06.js} +1 -1
- package/dist/{swirl-icon-report.entry.adba3901.js → swirl-icon-report.entry.a07effbd.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.9516dfef.js → swirl-icon-roadmap.entry.a6cf1f1a.js} +1 -1
- package/dist/{swirl-icon-rotate-left.entry.419b8c44.js → swirl-icon-rotate-left.entry.b98b3460.js} +1 -1
- package/dist/{swirl-icon-rotate-right.entry.7610c4cf.js → swirl-icon-rotate-right.entry.90b965a9.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.047316f2.js → swirl-icon-search-strong.entry.5c8bda2d.js} +1 -1
- package/dist/{swirl-icon-search.entry.ea924408.js → swirl-icon-search.entry.b275a8d0.js} +1 -1
- package/dist/{swirl-icon-secure.entry.8dddb0a7.js → swirl-icon-secure.entry.3fd665bb.js} +1 -1
- package/dist/{swirl-icon-send.entry.9df605d7.js → swirl-icon-send.entry.ea6c995e.js} +1 -1
- package/dist/{swirl-icon-settings.entry.ac6a09c3.js → swirl-icon-settings.entry.0bb17658.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.02da0e6b.js → swirl-icon-short-text.entry.8897ed4c.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.71338469.js → swirl-icon-simplify.entry.22564abf.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.bc9fe418.js → swirl-icon-spellcheck.entry.8605e944.js} +1 -1
- package/dist/{swirl-icon-stop.entry.4c053024.js → swirl-icon-stop.entry.e8e67dff.js} +1 -1
- package/dist/{swirl-icon-sync.entry.9d79bd30.js → swirl-icon-sync.entry.96611d8e.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.4b6c9359.js → swirl-icon-tasks-filled.entry.ea9a141d.js} +1 -1
- package/dist/{swirl-icon-tasks.entry.30f260ba.js → swirl-icon-tasks.entry.f606bea4.js} +1 -1
- package/dist/{swirl-icon-terminal.entry.ff985275.js → swirl-icon-terminal.entry.eaa7bc58.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.0a333ec0.js → swirl-icon-time-filled.entry.129d806a.js} +1 -1
- package/dist/{swirl-icon-time.entry.ea0ec3dc.js → swirl-icon-time.entry.9b29cc41.js} +1 -1
- package/dist/{swirl-icon-today-filled.entry.2b7e5e1b.js → swirl-icon-today-filled.entry.1ed763a0.js} +1 -1
- package/dist/{swirl-icon-translate.entry.94753f78.js → swirl-icon-translate.entry.c833df23.js} +1 -1
- package/dist/{swirl-icon-tree-structure.entry.75548e45.js → swirl-icon-tree-structure.entry.c13e4157.js} +1 -1
- package/dist/{swirl-icon-undo.entry.f28c2342.js → swirl-icon-undo.entry.3f621a22.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.38b50c69.js → swirl-icon-unlock-person.entry.0bf20da5.js} +1 -1
- package/dist/{swirl-icon-user-add.entry.009cf293.js → swirl-icon-user-add.entry.b9b0dcfd.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.83b0eba9.js → swirl-icon-user-assign.entry.3bc07019.js} +1 -1
- package/dist/{swirl-icon-video-camera-off.entry.c1b4ef2b.js → swirl-icon-video-camera-off.entry.d0e51a6a.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.2cfdb3ad.js → swirl-icon-video-camera.entry.c0ff24db.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.0428f2fd.js → swirl-icon-video-library.entry.f84f0e8e.js} +1 -1
- package/dist/{swirl-icon-voice.entry.de3c5d14.js → swirl-icon-voice.entry.89f40170.js} +1 -1
- package/dist/{swirl-icon-web-asset-off.entry.b1a24403.js → swirl-icon-web-asset-off.entry.9fd2cf05.js} +1 -1
- package/dist/{swirl-icon-web-asset.entry.6d66c285.js → swirl-icon-web-asset.entry.fb20e291.js} +1 -1
- package/dist/{swirl-icon-work.entry.88b60446.js → swirl-icon-work.entry.8ea603bc.js} +1 -1
- package/dist/{swirl-icon.entry.0906d3be.js → swirl-icon.entry.dfe2c469.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.a1b79af6.js → swirl-image-grid-item.entry.b0eddb48.js} +1 -1
- package/dist/{swirl-image-grid.entry.0502e99e.js → swirl-image-grid.entry.1e0c86bc.js} +1 -1
- package/dist/{swirl-inline-notification.entry.79d6bd81.js → swirl-inline-notification.entry.874daa81.js} +1 -1
- package/dist/{swirl-inline-status.entry.c5a65279.js → swirl-inline-status.entry.3c944071.js} +1 -1
- package/dist/{swirl-lightbox.entry.eeecb1ec.js → swirl-lightbox.entry.b3d0e776.js} +1 -1
- package/dist/{swirl-link.entry.fbad2b33.js → swirl-link.entry.11315ec8.js} +1 -1
- package/dist/{swirl-list.entry.93b0b3b3.js → swirl-list.entry.64ebdc77.js} +1 -1
- package/dist/{swirl-menu-item.entry.d3755e18.js → swirl-menu-item.entry.d1c64525.js} +1 -1
- package/dist/{swirl-menu.entry.4b6c10d8.js → swirl-menu.entry.dc974592.js} +1 -1
- package/dist/{swirl-modal.entry.097d5ad8.js → swirl-modal.entry.06453229.js} +1 -1
- package/dist/{swirl-option-list-section.entry.b35f749a.js → swirl-option-list-section.entry.321b8e15.js} +1 -1
- package/dist/{swirl-option-list_2.entry.9b84feeb.js → swirl-option-list_2.entry.260da139.js} +1 -1
- package/dist/{swirl-pagination.entry.c9bafd9f.js → swirl-pagination.entry.8aaaa5fb.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.586b5275.js → swirl-pdf-reader.entry.ef4059e3.js} +1 -1
- package/dist/{swirl-popover_2.entry.e3882e05.js → swirl-popover_2.entry.e6ea2d6f.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.d994f97f.js → swirl-progress-indicator.entry.fc195eb4.js} +1 -1
- package/dist/{swirl-radio-group.entry.f2f0d6a0.js → swirl-radio-group.entry.aa6a0190.js} +1 -1
- package/dist/{swirl-radio.entry.1b3adcff.js → swirl-radio.entry.9493ed9c.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.4df94b46.js → swirl-resource-list-file-item.entry.6301b34e.js} +1 -1
- package/dist/{swirl-search.entry.3045533f.js → swirl-search.entry.55b9419b.js} +1 -1
- package/dist/{swirl-select.entry.03526d63.js → swirl-select.entry.d2d79975.js} +1 -1
- package/dist/{swirl-shell-layout.entry.6714a203.js → swirl-shell-layout.entry.6d3193d4.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.2906a349.js → swirl-shell-navigation-item.entry.df2ca2b8.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.60a5e379.js → swirl-skeleton-box.entry.2e85c748.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.e8881f83.js → swirl-skeleton-text.entry.3b78d845.js} +1 -1
- package/dist/{swirl-stack.entry.916e2dd8.js → swirl-stack.entry.15f58648.js} +1 -1
- package/dist/{swirl-status-indicator.entry.ee99e776.js → swirl-status-indicator.entry.62adda6e.js} +1 -1
- package/dist/{swirl-switch.entry.3fea4a4f.js → swirl-switch.entry.cd87f932.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.2ecb3a0d.js → swirl-symbol-account-circle.entry.1b49954d.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.ea3ccebd.js → swirl-symbol-alternate-email.entry.1b651018.js} +1 -1
- package/dist/{swirl-symbol-android.entry.e8e94d6c.js → swirl-symbol-android.entry.e60fc0ba.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.af73428e.js → swirl-symbol-announcement.entry.cc0073a4.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.c2691879.js → swirl-symbol-backup.entry.8c1d7470.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.b4ca211d.js → swirl-symbol-beach-access.entry.212a9ba8.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.ef25cd3d.js → swirl-symbol-bookmark.entry.bc3db027.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.a72d070b.js → swirl-symbol-cloud.entry.471dcd2a.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.4c983a58.js → swirl-symbol-coronavirus.entry.2eeba8ef.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.632820ca.js → swirl-symbol-desktop-windows.entry.a44dbeda.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.4e936508.js → swirl-symbol-directions-car-filled.entry.e3eb7021.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.079d7e8d.js → swirl-symbol-edit-calendar.entry.9c4e9a0b.js} +1 -1
- package/dist/{swirl-symbol-email.entry.1c632ed0.js → swirl-symbol-email.entry.bf553e14.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.bdb2022b.js → swirl-symbol-emoji-food-beverage.entry.1e942c8b.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.434b2bfd.js → swirl-symbol-event-menu.entry.7782ec9e.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.c35f57da.js → swirl-symbol-facebook.entry.61082c19.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.94ccc045.js → swirl-symbol-favorite.entry.04dc8a07.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.b325d66b.js → swirl-symbol-fitness-center.entry.8fc27f1a.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.6a5a5b65.js → swirl-symbol-flag.entry.03b0441f.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.f5823566.js → swirl-symbol-folder.entry.bfd64808.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.adb34fa5.js → swirl-symbol-globe.entry.f4ef985f.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.822a8374.js → swirl-symbol-groups.entry.76448cea.js} +1 -1
- package/dist/{swirl-symbol-help.entry.84f2976d.js → swirl-symbol-help.entry.0b6aa280.js} +1 -1
- package/dist/{swirl-symbol-image.entry.57eeab09.js → swirl-symbol-image.entry.58936d9e.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.f2cd33d1.js → swirl-symbol-info-menu.entry.83a26004.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.6dc1f867.js → swirl-symbol-instagram.entry.8d0971dd.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.d50e2878.js → swirl-symbol-ios.entry.d00ea4fe.js} +1 -1
- package/dist/{swirl-symbol-language.entry.2669c871.js → swirl-symbol-language.entry.a3104fd2.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.e0b1d5f0.js → swirl-symbol-leaderboard.entry.b1f3515e.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.12987877.js → swirl-symbol-lightbulb.entry.b595c08c.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.e0b22388.js → swirl-symbol-linkedin.entry.13b72418.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.fbc7d34d.js → swirl-symbol-location-on.entry.29046cb9.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.b9956459.js → swirl-symbol-loyalty.entry.1da4d8a6.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.314087c3.js → swirl-symbol-maps-home-work.entry.aae19d76.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.5101bc09.js → swirl-symbol-notifications.entry.327f514f.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.f828e16a.js → swirl-symbol-open-in-new.entry.17a71a04.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.9dc50b60.js → swirl-symbol-pedal-bike.entry.f20c30b4.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.f4adb70f.js → swirl-symbol-pinterest.entry.c88db3a2.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.e526156b.js → swirl-symbol-policy.entry.6f72bc88.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.001cffa4.js → swirl-symbol-push-pin.entry.ae9702e2.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.6125487e.js → swirl-symbol-redeem.entry.7c0c32ee.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.529a8e05.js → swirl-symbol-report-problem.entry.36231e94.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.852feb3c.js → swirl-symbol-restaurant.entry.2246f08a.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.5cf190a1.js → swirl-symbol-roadmap.entry.6ce07c6d.js} +1 -1
- package/dist/{swirl-symbol-room.entry.382120f4.js → swirl-symbol-room.entry.7f835674.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.aee45677.js → swirl-symbol-savings.entry.b3263cfa.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.60c7e109.js → swirl-symbol-settings-voice.entry.ba18db74.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.7c22ca26.js → swirl-symbol-shopping-cart.entry.71909e3e.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.53b1eaba.js → swirl-symbol-smartphone.entry.d4bc3ba9.js} +1 -1
- package/dist/{swirl-symbol-star.entry.6c63ef6e.js → swirl-symbol-star.entry.bc8b0a6b.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.9f3bb5b6.js → swirl-symbol-supervisor-account.entry.8b165e10.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.af6bd327.js → swirl-symbol-thumbs-up-down.entry.73c07097.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.c3f4d4ee.js → swirl-symbol-twitter.entry.333639c8.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.8e107653.js → swirl-symbol-wb-sunny.entry.14bb47df.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.3d923c43.js → swirl-symbol-wechat.entry.f6d6d72f.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.5334eaad.js → swirl-symbol-weibo.entry.e56b683a.js} +1 -1
- package/dist/{swirl-symbol-work.entry.4076ae94.js → swirl-symbol-work.entry.7e453355.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.3d3a2700.js → swirl-symbol-xing.entry.902cb80c.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.6dead73e.js → swirl-symbol-youtube.entry.8690f846.js} +1 -1
- package/dist/{swirl-symbol.entry.7c0fd272.js → swirl-symbol.entry.779b592d.js} +1 -1
- package/dist/{swirl-tab-bar.entry.da51b1e4.js → swirl-tab-bar.entry.0aa92013.js} +1 -1
- package/dist/{swirl-tab.entry.3628460a.js → swirl-tab.entry.6b7aa6e7.js} +1 -1
- package/dist/{swirl-table-cell.entry.770db37c.js → swirl-table-cell.entry.ea6a59f8.js} +1 -1
- package/dist/{swirl-table-column.entry.61cd1a1a.js → swirl-table-column.entry.463b0c0f.js} +1 -1
- package/dist/{swirl-table-row-group.entry.2c995dc7.js → swirl-table-row-group.entry.d07bde70.js} +1 -1
- package/dist/{swirl-table-row.entry.e2c3906c.js → swirl-table-row.entry.b9fdf452.js} +1 -1
- package/dist/{swirl-table.entry.950d495c.js → swirl-table.entry.16da75b7.js} +1 -1
- package/dist/{swirl-tabs.entry.36d44cd1.js → swirl-tabs.entry.523c6b30.js} +1 -1
- package/dist/{swirl-text-input.entry.91acc61b.js → swirl-text-input.entry.74350021.js} +1 -1
- package/dist/{swirl-text.entry.9ad57d04.js → swirl-text.entry.dad16e5a.js} +1 -1
- package/dist/{swirl-theme-provider.entry.0de9dd8a.js → swirl-theme-provider.entry.311c7738.js} +1 -1
- package/dist/{swirl-time-input.entry.771c1c95.js → swirl-time-input.entry.2074157d.js} +1 -1
- package/dist/{swirl-toast-provider.entry.57429dd2.js → swirl-toast-provider.entry.6234c508.js} +1 -1
- package/dist/{swirl-toast.entry.785e0e7f.js → swirl-toast.entry.8ea8ac8d.js} +1 -1
- package/dist/{swirl-toolbar.entry.bb04aec3.js → swirl-toolbar.entry.0d882da3.js} +1 -1
- package/dist/{swirl-tooltip.entry.530950de.js → swirl-tooltip.entry.f61d8cb7.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.dbada393.js → swirl-tree-navigation-item.entry.cbaac10f.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.bd24dce5.js → swirl-video-thumbnail.entry.997891ec.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.1260b94b.js → swirl-visually-hidden.entry.dc10ac07.js} +1 -1
- package/dist/{wc-datepicker.entry.2bd93123.js → wc-datepicker.entry.ac7488c9.js} +1 -1
- package/package.json +2 -2
package/dist/{swirl-file-viewer_7.entry.9399e1ec.js → swirl-file-viewer_7.entry.ab8d9c52.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as zt, c as Rt, h as qe, H as jt, g as Qt } from "./index.
|
|
1
|
+
import { r as zt, c as Rt, h as qe, H as jt, g as Qt } from "./index.9f0279fd.js";
|
|
2
2
|
import { c as vt, g as ea, a as qr, b as ta } from "./_commonjsHelpers-d20b9603.2d9b8855.js";
|
|
3
3
|
import { c as ra } from "./index-267776a4.6beb4f4b.js";
|
|
4
4
|
import { d as na, f as ia, i as aa } from "./utils-9b747dd7.4c4c7dc0.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var Wn = { exports: {} };
|
|
8
|
-
(function(
|
|
8
|
+
(function(De, Ee) {
|
|
9
9
|
(function(Ie, Te) {
|
|
10
10
|
Te();
|
|
11
11
|
})(vt, function() {
|
|
@@ -20,7 +20,7 @@ var Wn = { exports: {} };
|
|
|
20
20
|
console.error("could not download file");
|
|
21
21
|
}, R.send();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Le(o) {
|
|
24
24
|
var c = new XMLHttpRequest();
|
|
25
25
|
c.open("HEAD", o, !1);
|
|
26
26
|
try {
|
|
@@ -40,7 +40,7 @@ var Wn = { exports: {} };
|
|
|
40
40
|
var B = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof vt == "object" && vt.global === vt ? vt : void 0, v = B.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = B.saveAs || (typeof window != "object" || window !== B ? function() {
|
|
41
41
|
} : "download" in HTMLAnchorElement.prototype && !v ? function(o, c, T) {
|
|
42
42
|
var R = B.URL || B.webkitURL, O = document.createElement("a");
|
|
43
|
-
c = c || o.name || "download", O.download = c, O.rel = "noopener", typeof o == "string" ? (O.href = o, O.origin === location.origin ? Qe(O) :
|
|
43
|
+
c = c || o.name || "download", O.download = c, O.rel = "noopener", typeof o == "string" ? (O.href = o, O.origin === location.origin ? Qe(O) : Le(O.href) ? Te(o, c, T) : Qe(O, O.target = "_blank")) : (O.href = R.createObjectURL(o), setTimeout(function() {
|
|
44
44
|
R.revokeObjectURL(O.href);
|
|
45
45
|
}, 4e4), setTimeout(function() {
|
|
46
46
|
Qe(O);
|
|
@@ -48,7 +48,7 @@ var Wn = { exports: {} };
|
|
|
48
48
|
} : "msSaveOrOpenBlob" in navigator ? function(o, c, T) {
|
|
49
49
|
if (c = c || o.name || "download", typeof o != "string")
|
|
50
50
|
navigator.msSaveOrOpenBlob(Ie(o, T), c);
|
|
51
|
-
else if (
|
|
51
|
+
else if (Le(o))
|
|
52
52
|
Te(o, c, T);
|
|
53
53
|
else {
|
|
54
54
|
var R = document.createElement("a");
|
|
@@ -73,33 +73,33 @@ var Wn = { exports: {} };
|
|
|
73
73
|
}, 4e4);
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
B.saveAs = n.saveAs = n,
|
|
76
|
+
B.saveAs = n.saveAs = n, De.exports = n;
|
|
77
77
|
});
|
|
78
78
|
})(Wn);
|
|
79
79
|
const sa = ":host{display:block;width:100%;height:100%;pointer-events:none}:host *{box-sizing:border-box}.file-viewer{display:flex;width:100%;height:100%;justify-content:center;align-items:center}.file-viewer__file{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}", oa = sa, la = class {
|
|
80
|
-
constructor(
|
|
81
|
-
zt(this,
|
|
80
|
+
constructor(De) {
|
|
81
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.onActivate = (Ee) => {
|
|
82
82
|
this.activate.emit(Ee.detail);
|
|
83
83
|
}, this.onVisiblePagesChange = (Ee) => {
|
|
84
84
|
this.visiblePagesChange.emit(Ee.detail);
|
|
85
|
-
}, this.active = !0, this.autoplay = void 0, this.description = void 0, this.errorMessage = "File could not be loaded.", this.file = void 0, this.fileName = void 0, this.pdfWorkerSrc = void 0, this.thumbnailUrl = void 0, this.type = void 0, this.typeUnsupportedMessage = "File type is not supported.", this.viewMode = "single", this.zoom = 1;
|
|
85
|
+
}, this.active = !0, this.autoplay = void 0, this.description = void 0, this.disableDownload = void 0, this.errorMessage = "File could not be loaded.", this.file = void 0, this.fileName = void 0, this.pdfWorkerSrc = void 0, this.thumbnailUrl = void 0, this.type = void 0, this.typeUnsupportedMessage = "File type is not supported.", this.viewMode = "single", this.zoom = 1;
|
|
86
86
|
}
|
|
87
87
|
async download() {
|
|
88
|
-
const
|
|
89
|
-
Wn.exports.saveAs(await Ee.blob(),
|
|
88
|
+
const De = this.fileName || this.file.split("/").pop(), Ee = await fetch(this.file);
|
|
89
|
+
Wn.exports.saveAs(await Ee.blob(), De);
|
|
90
90
|
}
|
|
91
91
|
async print() {
|
|
92
92
|
this.type === "application/pdf" && this.viewer.print();
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
const
|
|
96
|
-
return qe(jt, { key: "
|
|
95
|
+
const De = !Boolean(this.type) || !this.type.startsWith("image/") && !this.type.startsWith("video/") && !this.type.startsWith("audio/") && this.type !== "text/plain" && this.type !== "text/csv" && this.type !== "application/pdf";
|
|
96
|
+
return qe(jt, { key: "b4bf3cf48bdf55b5a5247d2d9d00d2dd2a653922" }, qe("div", { key: "b9c135b1150e6c9b5a090a6ac78b04ca36e391cc", class: "file-viewer" }, this.type && this.active && qe("div", { key: "d01dd4d3496474e41c93fbf480f4d4c86f88d3cf", class: "file-viewer__file" }, this.type.startsWith("image/") && qe("swirl-file-viewer-image", { key: "0a67087ddcf5569804bf42f8f3026fcd99ff6b8d", description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "text/plain" && qe("swirl-file-viewer-text", { key: "3e9e0aa3c2e793226e21b8054fdbfff0fa28d9b8", errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "text/csv" && qe("swirl-file-viewer-csv", { key: "83be558b789a82eeac46c67af061b634f7dc72c1", errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "application/pdf" && qe("swirl-file-viewer-pdf", { key: "68bb685041185dd29d07be8e48e7038492d75e57", errorMessage: this.errorMessage, file: this.file, onActivate: this.onActivate, onVisiblePagesChange: this.onVisiblePagesChange, ref: (Ee) => this.viewer = Ee, viewMode: this.viewMode, workerSrc: this.pdfWorkerSrc, zoom: this.zoom }), this.type.startsWith("video/") && qe("swirl-file-viewer-video", { key: "66af2a88573a3e2b8019dad662cf32e6f15b1f3e", autoplay: this.autoplay, disableDownload: this.disableDownload, file: this.file, ref: (Ee) => this.viewer = Ee, type: this.type }), this.type.startsWith("audio/") && qe("swirl-file-viewer-audio", { key: "3ff7c5aefbb892cd34a11a172e674a7ecfd7769d", autoplay: this.autoplay, file: this.file, ref: (Ee) => this.viewer = Ee, type: this.type }), De && qe("swirl-inline-error", { key: "3d437e0bfedf35206ac3e1c88b6e93e26ccff3be", message: this.typeUnsupportedMessage }))));
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
la.style = oa;
|
|
100
100
|
const ca = ":host{display:inline-flex;width:100%;height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-audio__audio{width:100%;height:100%}", ua = ca, da = class {
|
|
101
|
-
constructor(
|
|
102
|
-
zt(this,
|
|
101
|
+
constructor(De) {
|
|
102
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.autoplay = void 0, this.file = void 0, this.type = void 0;
|
|
103
103
|
}
|
|
104
104
|
componentDidLoad() {
|
|
105
105
|
this.activate.emit(this.el);
|
|
@@ -119,11 +119,11 @@ v5.3.2
|
|
|
119
119
|
https://github.com/mholt/PapaParse
|
|
120
120
|
License: MIT
|
|
121
121
|
*/
|
|
122
|
-
(function(
|
|
122
|
+
(function(De, Ee) {
|
|
123
123
|
(function(Ie, Te) {
|
|
124
|
-
|
|
124
|
+
De.exports = Te();
|
|
125
125
|
})(vt, function Ie() {
|
|
126
|
-
var Te = typeof self < "u" ? self : typeof window < "u" ? window : Te !== void 0 ? Te : {},
|
|
126
|
+
var Te = typeof self < "u" ? self : typeof window < "u" ? window : Te !== void 0 ? Te : {}, Le = !Te.document && !!Te.postMessage, Qe = Le && /blob:/i.test((Te.location || {}).protocol), B = {}, v = 0, n = { parse: function(p, b) {
|
|
127
127
|
var u = (b = b || {}).dynamicTyping || !1;
|
|
128
128
|
if (F(u) && (b.dynamicTypingFunction = u, u = {}), b.dynamicTyping = u, b.transform = !!F(b.transform) && b.transform, b.worker && n.WORKERS_SUPPORTED) {
|
|
129
129
|
var t = function() {
|
|
@@ -206,7 +206,7 @@ License: MIT
|
|
|
206
206
|
}
|
|
207
207
|
} };
|
|
208
208
|
if (n.RECORD_SEP = String.fromCharCode(30), n.UNIT_SEP = String.fromCharCode(31), n.BYTE_ORDER_MARK = "\uFEFF", n.BAD_DELIMITERS = ["\r", `
|
|
209
|
-
`, '"', n.BYTE_ORDER_MARK], n.WORKERS_SUPPORTED = !
|
|
209
|
+
`, '"', n.BYTE_ORDER_MARK], n.WORKERS_SUPPORTED = !Le && !!Te.Worker, n.NODE_STREAM_INPUT = 1, n.LocalChunkSize = 10485760, n.RemoteChunkSize = 5242880, n.DefaultDelimiter = ",", n.Parser = D, n.ParserHandle = m, n.NetworkStreamer = T, n.FileStreamer = R, n.StringStreamer = O, n.ReadableStreamStreamer = P, Te.jQuery) {
|
|
210
210
|
var o = Te.jQuery;
|
|
211
211
|
o.fn.parse = function(p) {
|
|
212
212
|
var b = p.config || {}, u = [];
|
|
@@ -275,7 +275,7 @@ License: MIT
|
|
|
275
275
|
}
|
|
276
276
|
function T(p) {
|
|
277
277
|
var b;
|
|
278
|
-
(p = p || {}).chunkSize || (p.chunkSize = n.RemoteChunkSize), c.call(this, p), this._nextChunk =
|
|
278
|
+
(p = p || {}).chunkSize || (p.chunkSize = n.RemoteChunkSize), c.call(this, p), this._nextChunk = Le ? function() {
|
|
279
279
|
this._readChunk(), this._chunkLoaded();
|
|
280
280
|
} : function() {
|
|
281
281
|
this._readChunk();
|
|
@@ -285,7 +285,7 @@ License: MIT
|
|
|
285
285
|
if (this._finished)
|
|
286
286
|
this._chunkLoaded();
|
|
287
287
|
else {
|
|
288
|
-
if (b = new XMLHttpRequest(), this._config.withCredentials && (b.withCredentials = this._config.withCredentials),
|
|
288
|
+
if (b = new XMLHttpRequest(), this._config.withCredentials && (b.withCredentials = this._config.withCredentials), Le || (b.onload = w(this._chunkLoaded, this), b.onerror = w(this._chunkError, this)), b.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !Le), this._config.downloadRequestHeaders) {
|
|
289
289
|
var u = this._config.downloadRequestHeaders;
|
|
290
290
|
for (var t in u)
|
|
291
291
|
b.setRequestHeader(t, u[t]);
|
|
@@ -299,7 +299,7 @@ License: MIT
|
|
|
299
299
|
} catch (f) {
|
|
300
300
|
this._chunkError(f.message);
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
Le && b.status === 0 && this._chunkError();
|
|
303
303
|
}
|
|
304
304
|
}, this._chunkLoaded = function() {
|
|
305
305
|
b.readyState === 4 && (b.status < 200 || 400 <= b.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : b.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(u) {
|
|
@@ -647,8 +647,8 @@ License: MIT
|
|
|
647
647
|
});
|
|
648
648
|
})(Un);
|
|
649
649
|
const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-csv__csv{overflow:auto;width:100%;max-height:100%;padding:var(--s-space-16);background-color:var(--s-background-default)}.file-viewer-csv__table{margin-right:auto;margin-left:auto;border-collapse:collapse;line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-csv__table{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-viewer-csv__cell{padding:var(--s-space-8);border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-csv__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-csv__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", fa = ha, pa = class {
|
|
650
|
-
constructor(
|
|
651
|
-
zt(this,
|
|
650
|
+
constructor(De) {
|
|
651
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.errorMessage = "File could not be loaded.", this.file = void 0, this.data = void 0, this.error = void 0, this.loading = void 0;
|
|
652
652
|
}
|
|
653
653
|
componentWillLoad() {
|
|
654
654
|
this.updateTable();
|
|
@@ -657,7 +657,7 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
657
657
|
this.activate.emit(this.el);
|
|
658
658
|
}
|
|
659
659
|
async updateTable() {
|
|
660
|
-
var
|
|
660
|
+
var De;
|
|
661
661
|
this.error = !1, this.loading = !0;
|
|
662
662
|
try {
|
|
663
663
|
const Ee = await fetch(this.file), Ie = Un.exports.parse(await Ee.text(), {
|
|
@@ -665,7 +665,7 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
665
665
|
fastMode: !1,
|
|
666
666
|
skipEmptyLines: !0
|
|
667
667
|
});
|
|
668
|
-
if (((
|
|
668
|
+
if (((De = Ie.errors) == null ? void 0 : De.length) > 0) {
|
|
669
669
|
this.error = !0, this.loading = !1;
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
@@ -675,8 +675,8 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
render() {
|
|
678
|
-
var
|
|
679
|
-
return qe(jt, { key: "9de54e5b54d7d03ac4c70e30781c59604088a1fa", class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { key: "e3e066bc3834e4d7d1d50056dda8f1316b92a52d", class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { key: "9896303d4266e2c59799ea01487a3b2d740a4ffd", class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { key: "f6b31328d070e77694bee923dbfaf65430cec0a4", class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", { key: "34d7e1f6ea9c81bf50a8f5ec23eb73f3d69959e3" }, (
|
|
678
|
+
var De;
|
|
679
|
+
return qe(jt, { key: "9de54e5b54d7d03ac4c70e30781c59604088a1fa", class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { key: "e3e066bc3834e4d7d1d50056dda8f1316b92a52d", class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { key: "9896303d4266e2c59799ea01487a3b2d740a4ffd", class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { key: "f6b31328d070e77694bee923dbfaf65430cec0a4", class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", { key: "34d7e1f6ea9c81bf50a8f5ec23eb73f3d69959e3" }, (De = this.data) == null ? void 0 : De.map((Ee, Ie) => qe("tr", { class: "file-viewer-csv__row", key: `row-${Ie}` }, Ee.map((Te, Le) => qe("td", { class: "file-viewer-csv__cell", key: `cell-${Ie}-${Le}` }, Te))))))), this.loading && qe("div", { key: "109596c95c2b4de6c276f9905f89a40daab4053d", class: "file-viewer-csv__spinner" }, qe("swirl-spinner", { key: "7582c12b0eea6c9eab16d1c45103451780ab0389" })));
|
|
680
680
|
}
|
|
681
681
|
get el() {
|
|
682
682
|
return Qt(this);
|
|
@@ -689,8 +689,8 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
689
689
|
};
|
|
690
690
|
pa.style = fa;
|
|
691
691
|
const ga = ":host{position:relative;display:inline-flex;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-image__image{max-width:100%;-o-object-fit:contain;object-fit:contain}.file-viewer-image__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-image__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", ma = ga, va = class {
|
|
692
|
-
constructor(
|
|
693
|
-
zt(this,
|
|
692
|
+
constructor(De) {
|
|
693
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.panX = 0, this.panY = 0, this.zoom = 1, this.onError = () => {
|
|
694
694
|
this.error = !0, this.loading = !1;
|
|
695
695
|
}, this.onLoad = () => {
|
|
696
696
|
this.error = !1, this.loading = !1;
|
|
@@ -701,8 +701,8 @@ const ga = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
701
701
|
const Ie = Math.min(Math.max(1, this.zoom + -1 * Ee.deltaY / 100), this.maxZoom);
|
|
702
702
|
if (Ie === this.zoom)
|
|
703
703
|
return;
|
|
704
|
-
const Te = Ee.offsetX,
|
|
705
|
-
this.updateTransformOrigin(Te,
|
|
704
|
+
const Te = Ee.offsetX, Le = Ee.offsetY;
|
|
705
|
+
this.updateTransformOrigin(Te, Le), this.updateZoomAndPan(Ie, 0, 0);
|
|
706
706
|
}, this.onPointerDown = (Ee) => {
|
|
707
707
|
this.startPan(Ee);
|
|
708
708
|
}, this.onPointerMove = (Ee) => {
|
|
@@ -725,13 +725,13 @@ const ga = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
725
725
|
}, this.getPinchDistance = (Ee) => Math.hypot(Ee.touches[0].pageX - Ee.touches[1].pageX, Ee.touches[0].pageY - Ee.touches[1].pageY), this.clickToZoom = (Ee) => {
|
|
726
726
|
if (!(navigator.maxTouchPoints > 1))
|
|
727
727
|
if (this.zoom === 1) {
|
|
728
|
-
const Te = Ee.pageX - this.el.getBoundingClientRect().x,
|
|
729
|
-
this.updateTransformOrigin(Te,
|
|
728
|
+
const Te = Ee.pageX - this.el.getBoundingClientRect().x, Le = Ee.pageY - this.el.getBoundingClientRect().y;
|
|
729
|
+
this.updateTransformOrigin(Te, Le), this.updateZoomAndPan(2);
|
|
730
730
|
} else
|
|
731
731
|
this.updateZoomAndPan(1);
|
|
732
732
|
}, this.updateZoomAndPan = (Ee, Ie, Te) => {
|
|
733
|
-
const
|
|
734
|
-
this.zoom =
|
|
733
|
+
const Le = Ee === void 0 ? this.zoom : Ee, Qe = Le - this.zoom, B = Ie === void 0 ? this.panX + this.panX * Qe : Ie, v = Ie === void 0 ? this.panY + this.panY * Qe : Te, n = this.panX, o = this.panY;
|
|
734
|
+
this.zoom = Le, this.panX = B, this.panY = v;
|
|
735
735
|
const c = (this.el.parentElement || this.el).getBoundingClientRect(), T = this.imageEl.getBoundingClientRect(), R = T.right < c.right && B < n || T.left > c.left && B > n, O = T.bottom < c.bottom && v < o || T.top > c.top && v > o;
|
|
736
736
|
R && (this.panX = n), O && (this.panY = o), this.zoom === 1 && (this.panX = 0, this.panY = 0), this.imageEl.style.transform = `matrix(${this.zoom}, 0, 0, ${this.zoom}, ${this.panX}, ${this.panY})`;
|
|
737
737
|
}, this.updateTransformOrigin = (Ee, Ie) => {
|
|
@@ -743,8 +743,8 @@ const ga = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
743
743
|
if (this.previousScreenX = Ee.screenX, this.previousScreenY = Ee.screenY, !this.panning || this.pinching)
|
|
744
744
|
return;
|
|
745
745
|
Ee.preventDefault();
|
|
746
|
-
const
|
|
747
|
-
this.updateZoomAndPan(this.zoom,
|
|
746
|
+
const Le = this.panX + Ee.screenX - Ie, Qe = this.panY + Ee.screenY - Te;
|
|
747
|
+
this.updateZoomAndPan(this.zoom, Le, Qe);
|
|
748
748
|
}, this.endPan = () => {
|
|
749
749
|
this.panning = !1;
|
|
750
750
|
}, this.description = "", this.errorMessage = "File could not be loaded.", this.file = void 0, this.maxZoom = 3, this.error = void 0, this.loading = !0;
|
|
@@ -762,7 +762,7 @@ const ga = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
762
762
|
return this.updateZoomAndPan(1);
|
|
763
763
|
}
|
|
764
764
|
render() {
|
|
765
|
-
return qe(jt, { key: "344f6ae2acaadab72556d29101884444c96bfe60", class: "file-viewer-image", onDblClick: this.onDblClick, onWheel: this.onWheel, onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, this.error && qe("swirl-inline-error", { key: "91a9b17afab842a29e8e6c088db976a75aae623f", class: "file-viewer-image__error", message: this.errorMessage }), qe("img", { key: "dd2beccac1e94d4f41b02e8c9d80950920053c07", alt: this.description, class: "file-viewer-image__image", onError: this.onError, onLoad: this.onLoad, ref: (
|
|
765
|
+
return qe(jt, { key: "344f6ae2acaadab72556d29101884444c96bfe60", class: "file-viewer-image", onDblClick: this.onDblClick, onWheel: this.onWheel, onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, this.error && qe("swirl-inline-error", { key: "91a9b17afab842a29e8e6c088db976a75aae623f", class: "file-viewer-image__error", message: this.errorMessage }), qe("img", { key: "dd2beccac1e94d4f41b02e8c9d80950920053c07", alt: this.description, class: "file-viewer-image__image", onError: this.onError, onLoad: this.onLoad, ref: (De) => this.imageEl = De, src: this.file }), this.loading && qe("div", { key: "2dd07c6c3aec5fce3a94a1e3db3187accb631e11", class: "file-viewer-image__spinner" }, qe("swirl-spinner", { key: "78fbffa011dbc99db992c83313b60871ff2ffe6c" })));
|
|
766
766
|
}
|
|
767
767
|
get el() {
|
|
768
768
|
return Qt(this);
|
|
@@ -780,9 +780,9 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
780
780
|
* Copyright 2022 © thednp
|
|
781
781
|
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
|
|
782
782
|
*/
|
|
783
|
-
(function(
|
|
783
|
+
(function(De, Ee) {
|
|
784
784
|
(function(Ie, Te) {
|
|
785
|
-
|
|
785
|
+
De.exports = Te();
|
|
786
786
|
})(vt, function() {
|
|
787
787
|
function Ie(r) {
|
|
788
788
|
var l = new P(), A = Array.from(r);
|
|
@@ -827,7 +827,7 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
827
827
|
);
|
|
828
828
|
throw TypeError('CSSMatrix: "' + JSON.stringify(r) + '" is not a DOMMatrix / CSSMatrix / JSON compatible object.');
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Le(r) {
|
|
831
831
|
if (typeof r != "string")
|
|
832
832
|
throw TypeError('CSSMatrix: "' + r + '" is not a string.');
|
|
833
833
|
var l = String(r).replace(/\s/g, ""), A = new P(), h = 'CSSMatrix: invalid transform string "' + r + '"';
|
|
@@ -1005,7 +1005,7 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
1005
1005
|
return r.m31 === 0 && r.m32 === 0 && r.m33 === 1 && r.m34 === 0 && r.m43 === 0 && r.m44 === 1;
|
|
1006
1006
|
}, P.prototype.setMatrixValue = function(l) {
|
|
1007
1007
|
var A = this;
|
|
1008
|
-
return typeof l == "string" && l.length && l !== "none" ?
|
|
1008
|
+
return typeof l == "string" && l.length && l !== "none" ? Le(l) : [Array, Float64Array, Float32Array].some(function(h) {
|
|
1009
1009
|
return l instanceof h;
|
|
1010
1010
|
}) ? Ie(l) : [P, DOMMatrix, Object].some(function(h) {
|
|
1011
1011
|
return l instanceof h;
|
|
@@ -1062,7 +1062,7 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
1062
1062
|
Multiply: O,
|
|
1063
1063
|
fromArray: Ie,
|
|
1064
1064
|
fromMatrix: Te,
|
|
1065
|
-
fromString:
|
|
1065
|
+
fromString: Le,
|
|
1066
1066
|
toArray: Qe
|
|
1067
1067
|
});
|
|
1068
1068
|
var y = "1.0.3", D = y;
|
|
@@ -1070,14 +1070,14 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
1070
1070
|
});
|
|
1071
1071
|
})(zn);
|
|
1072
1072
|
var Kr = { exports: {} };
|
|
1073
|
-
(function(
|
|
1073
|
+
(function(De, Ee) {
|
|
1074
1074
|
(function(Ie, Te) {
|
|
1075
1075
|
Te(Ee);
|
|
1076
1076
|
})(vt, function(Ie) {
|
|
1077
1077
|
var Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol : function(e) {
|
|
1078
1078
|
return "Symbol(" + e + ")";
|
|
1079
1079
|
};
|
|
1080
|
-
function
|
|
1080
|
+
function Le() {
|
|
1081
1081
|
}
|
|
1082
1082
|
function Qe() {
|
|
1083
1083
|
if (typeof self < "u")
|
|
@@ -1091,7 +1091,7 @@ var Kr = { exports: {} };
|
|
|
1091
1091
|
function v(e) {
|
|
1092
1092
|
return typeof e == "object" && e !== null || typeof e == "function";
|
|
1093
1093
|
}
|
|
1094
|
-
var n =
|
|
1094
|
+
var n = Le, o = Promise, c = Promise.prototype.then, T = Promise.resolve.bind(o), R = Promise.reject.bind(o);
|
|
1095
1095
|
function O(e) {
|
|
1096
1096
|
return new o(e);
|
|
1097
1097
|
}
|
|
@@ -2562,7 +2562,7 @@ var Kr = { exports: {} };
|
|
|
2562
2562
|
return O(function(Ye, it) {
|
|
2563
2563
|
fe(Me, {
|
|
2564
2564
|
_chunkSteps: function(lt) {
|
|
2565
|
-
Je = y(un(Ue, lt), void 0,
|
|
2565
|
+
Je = y(un(Ue, lt), void 0, Le), Ye(!1);
|
|
2566
2566
|
},
|
|
2567
2567
|
_closeSteps: function() {
|
|
2568
2568
|
return Ye(!0);
|
|
@@ -3109,7 +3109,7 @@ var Kr = { exports: {} };
|
|
|
3109
3109
|
pe._closeSteps(void 0);
|
|
3110
3110
|
}), x._readIntoRequests = new u());
|
|
3111
3111
|
var K = e._readableStreamController[$](i);
|
|
3112
|
-
return A(K,
|
|
3112
|
+
return A(K, Le);
|
|
3113
3113
|
}
|
|
3114
3114
|
function sr(e) {
|
|
3115
3115
|
e._state = "closed";
|
|
@@ -3457,9 +3457,9 @@ const ba = {}, ya = /* @__PURE__ */ Object.freeze({
|
|
|
3457
3457
|
__proto__: null,
|
|
3458
3458
|
default: ba
|
|
3459
3459
|
}), Kt = /* @__PURE__ */ ta(ya);
|
|
3460
|
-
(function(
|
|
3461
|
-
(function(Te,
|
|
3462
|
-
|
|
3460
|
+
(function(De, Ee) {
|
|
3461
|
+
(function(Te, Le) {
|
|
3462
|
+
De.exports = Le();
|
|
3463
3463
|
})(globalThis, () => (() => {
|
|
3464
3464
|
var Ie = [
|
|
3465
3465
|
,
|
|
@@ -15952,14 +15952,14 @@ const ba = {}, ya = /* @__PURE__ */ Object.freeze({
|
|
|
15952
15952
|
}
|
|
15953
15953
|
}
|
|
15954
15954
|
], Te = {};
|
|
15955
|
-
function
|
|
15955
|
+
function Le(B) {
|
|
15956
15956
|
var v = Te[B];
|
|
15957
15957
|
if (v !== void 0)
|
|
15958
15958
|
return v.exports;
|
|
15959
15959
|
var n = Te[B] = {
|
|
15960
15960
|
exports: {}
|
|
15961
15961
|
};
|
|
15962
|
-
return Ie[B](n, n.exports,
|
|
15962
|
+
return Ie[B](n, n.exports, Le), n.exports;
|
|
15963
15963
|
}
|
|
15964
15964
|
var Qe = {};
|
|
15965
15965
|
return (() => {
|
|
@@ -16152,18 +16152,18 @@ const ba = {}, ya = /* @__PURE__ */ Object.freeze({
|
|
|
16152
16152
|
return n.version;
|
|
16153
16153
|
}
|
|
16154
16154
|
});
|
|
16155
|
-
var v =
|
|
16155
|
+
var v = Le(1), n = Le(129), o = Le(133), c = Le(147), T = Le(132), R = Le(152), O = Le(140), P = Le(3), m = Le(155), y = Le(156), D = Le(154);
|
|
16156
16156
|
if (P.isNodeJS) {
|
|
16157
16157
|
const {
|
|
16158
16158
|
PDFNodeStream: r
|
|
16159
|
-
} =
|
|
16159
|
+
} = Le(157);
|
|
16160
16160
|
(0, n.setPDFNetworkStreamFactory)((l) => new r(l));
|
|
16161
16161
|
} else {
|
|
16162
16162
|
const {
|
|
16163
16163
|
PDFNetworkStream: r
|
|
16164
|
-
} =
|
|
16164
|
+
} = Le(160), {
|
|
16165
16165
|
PDFFetchStream: l
|
|
16166
|
-
} =
|
|
16166
|
+
} = Le(161);
|
|
16167
16167
|
(0, n.setPDFNetworkStreamFactory)((A) => (0, o.isValidFetchUrl)(A.url) ? new l(A) : new r(A));
|
|
16168
16168
|
}
|
|
16169
16169
|
})(), Qe;
|
|
@@ -16172,16 +16172,16 @@ const ba = {}, ya = /* @__PURE__ */ Object.freeze({
|
|
|
16172
16172
|
const Sa = /* @__PURE__ */ ea(Or.exports), Aa = ":host{position:relative;display:inline-flex;width:100%;height:100%;pointer-events:auto}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__pages{display:grid;grid-template-columns:repeat(2, 1fr);grid-row-gap:var(--s-space-8);grid-column-gap:var(--s-space-8);grid-auto-rows:auto}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page{margin:0}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page:nth-child(odd){justify-self:end}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page:nth-child(even){justify-self:start}:host *{box-sizing:border-box}.file-viewer-pdf__pages{overflow:auto;width:100%;height:100%}@media (min-width: 768px){.file-viewer-pdf__pages{padding:var(--s-space-16)}}.file-viewer-pdf__page{position:relative;margin-right:auto;margin-left:auto;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:#fff}@media (min-width: 768px){.file-viewer-pdf__page{border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-pdf__page:not(:last-of-type){margin-bottom:var(--s-space-8)}}.file-viewer-pdf__page-spinner{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.file-viewer-pdf__canvas{display:flex;width:100%;height:100%;margin-right:auto;margin-left:auto}.file-viewer-pdf__text-container{position:absolute;overflow:hidden;line-height:1;text-align:initial;-webkit-user-select:none;-moz-user-select:none;user-select:none;inset:0;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}.file-viewer-pdf__text-container>*{position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0% 0%}.file-viewer-pdf__text-container>*.markedContent{top:0;height:0}.file-viewer-pdf__text-container>*.highlight{margin:-1px;padding:1px;border-radius:4px;background-color:rgba(180, 0, 170, 1)}.file-viewer-pdf__text-container>*.highlight.appended{position:initial}.file-viewer-pdf__text-container>*.highlight.begin{border-radius:4px 0 0 4px}.file-viewer-pdf__text-container>*.highlight.end{border-radius:0 4px 4px 0}.file-viewer-pdf__text-container>*.highlight.middle{border-radius:0}.file-viewer-pdf__text-container>*.highlight.selected{background-color:rgba(0, 100, 0, 1)}.file-viewer-pdf__text-container>*.endOfContent{position:absolute;z-index:-1;top:100%;right:0;bottom:0;left:0;display:block;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.file-viewer-pdf__text-container>*.endOfContent.active{top:0}.file-viewer-pdf__text-container>br::-moz-selection{background:transparent}.file-viewer-pdf__text-container>br::selection{background:transparent}@media (min-width: 768px){.file-viewer-pdf__text-container{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}}.file-viewer-pdf__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-pdf__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.file-viewer-pdf__pagination{position:absolute;bottom:var(--s-space-16);left:50%;padding:var(--s-space-4) var(--s-space-12);border-radius:var(--s-border-radius-base);color:var(--s-text-on-image);background-color:rgba(0, 0, 0, 0.6);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-pdf__pagination{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", wa = Aa;
|
|
16173
16173
|
window.pdf = Sa;
|
|
16174
16174
|
const _a = class {
|
|
16175
|
-
constructor(
|
|
16176
|
-
zt(this,
|
|
16177
|
-
var Ie, Te,
|
|
16178
|
-
const Ee = Math.ceil(((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollTop) + ((Te = this.scrollContainer) == null ? void 0 : Te.offsetHeight)) >= ((
|
|
16175
|
+
constructor(De) {
|
|
16176
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.pages = [], this.renderingPageNumbers = [], this.recentScrollPosition = { x: 0, y: 0 }, this.determineScrollStatus = () => {
|
|
16177
|
+
var Ie, Te, Le;
|
|
16178
|
+
const Ee = Math.ceil(((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollTop) + ((Te = this.scrollContainer) == null ? void 0 : Te.offsetHeight)) >= ((Le = this.scrollContainer) == null ? void 0 : Le.scrollHeight);
|
|
16179
16179
|
Ee !== this.scrolledDown && (this.scrolledDown = Ee);
|
|
16180
16180
|
}, this.storeRecentScrollPosition = () => {
|
|
16181
|
-
var Ee, Ie, Te,
|
|
16181
|
+
var Ee, Ie, Te, Le;
|
|
16182
16182
|
this.recentScrollPosition = {
|
|
16183
16183
|
x: Math.round(((Ee = this.scrollContainer) == null ? void 0 : Ee.scrollLeft) / ((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollWidth) * 100) / 100,
|
|
16184
|
-
y: Math.round(((Te = this.scrollContainer) == null ? void 0 : Te.scrollTop) / ((
|
|
16184
|
+
y: Math.round(((Te = this.scrollContainer) == null ? void 0 : Te.scrollTop) / ((Le = this.scrollContainer) == null ? void 0 : Le.scrollHeight) * 100) / 100
|
|
16185
16185
|
};
|
|
16186
16186
|
}, this.onScroll = na(() => {
|
|
16187
16187
|
this.updateVisiblePages(), this.determineScrollStatus(), this.storeRecentScrollPosition();
|
|
@@ -16197,8 +16197,8 @@ const _a = class {
|
|
|
16197
16197
|
this.updateVisiblePages(), this.determineScrollStatus();
|
|
16198
16198
|
}
|
|
16199
16199
|
disconnectedCallback() {
|
|
16200
|
-
var
|
|
16201
|
-
(
|
|
16200
|
+
var De;
|
|
16201
|
+
(De = this.doc) == null || De.destroy();
|
|
16202
16202
|
}
|
|
16203
16203
|
async onWindowResize() {
|
|
16204
16204
|
this.visiblePages = [], this.renderedPages = [], await this.updateVisiblePages(), this.determineScrollStatus();
|
|
@@ -16217,13 +16217,13 @@ const _a = class {
|
|
|
16217
16217
|
});
|
|
16218
16218
|
}
|
|
16219
16219
|
async getThumbnails() {
|
|
16220
|
-
return await Promise.all(this.pages.filter(Boolean).map((
|
|
16221
|
-
const Ee =
|
|
16220
|
+
return await Promise.all(this.pages.filter(Boolean).map((De) => {
|
|
16221
|
+
const Ee = De.getViewport({ scale: 1 }), Ie = document.createElement("canvas");
|
|
16222
16222
|
Ie.width = Ee.width, Ie.height = Ee.height;
|
|
16223
16223
|
const Te = Math.min(Ie.width / Ee.width, Ie.height / Ee.height);
|
|
16224
|
-
return
|
|
16224
|
+
return De.render({
|
|
16225
16225
|
canvasContext: Ie.getContext("2d"),
|
|
16226
|
-
viewport:
|
|
16226
|
+
viewport: De.getViewport({ scale: Te })
|
|
16227
16227
|
}).promise.then(function() {
|
|
16228
16228
|
return Ie;
|
|
16229
16229
|
});
|
|
@@ -16238,43 +16238,43 @@ const _a = class {
|
|
|
16238
16238
|
async previousPage() {
|
|
16239
16239
|
await this.setPage(this.singlePageModePage - 1), await this.updateVisiblePages();
|
|
16240
16240
|
}
|
|
16241
|
-
async setPage(
|
|
16242
|
-
this.singlePageModePage = Math.min(Math.max(
|
|
16241
|
+
async setPage(De) {
|
|
16242
|
+
this.singlePageModePage = Math.min(Math.max(De, 1), this.pages.length - 1), await this.updateVisiblePages();
|
|
16243
16243
|
}
|
|
16244
16244
|
async getPages() {
|
|
16245
16245
|
this.error = !1, this.loading = !0;
|
|
16246
16246
|
try {
|
|
16247
16247
|
Boolean(this.doc) && this.doc.destroy(), this.doc = await Or.exports.getDocument({ isEvalSupported: !1, url: this.file }).promise;
|
|
16248
|
-
const
|
|
16248
|
+
const De = [];
|
|
16249
16249
|
for (let Ee = 1; Ee <= this.doc.numPages; Ee++)
|
|
16250
|
-
|
|
16251
|
-
this.pages = await Promise.all(
|
|
16250
|
+
De.push(this.doc.getPage(Ee));
|
|
16251
|
+
this.pages = await Promise.all(De), this.loading = !1;
|
|
16252
16252
|
} catch {
|
|
16253
16253
|
this.error = !0, this.loading = !1;
|
|
16254
16254
|
}
|
|
16255
16255
|
}
|
|
16256
|
-
async renderVisiblePages(
|
|
16256
|
+
async renderVisiblePages(De) {
|
|
16257
16257
|
const Ee = Array.from(this.el.shadowRoot.querySelectorAll("canvas")), Ie = [];
|
|
16258
16258
|
for (const Te of Ee) {
|
|
16259
|
-
const
|
|
16259
|
+
const Le = Te.closest(".file-viewer-pdf__page"), Qe = this.pages.find((B) => (B == null ? void 0 : B.pageNumber) === +(Le == null ? void 0 : Le.dataset.pageNumber));
|
|
16260
16260
|
if (!(!Boolean(Qe) || this.renderingPageNumbers.includes(Qe.pageNumber))) {
|
|
16261
|
-
if (!this.visiblePages.includes(Qe.pageNumber) && !
|
|
16261
|
+
if (!this.visiblePages.includes(Qe.pageNumber) && !De) {
|
|
16262
16262
|
this.destroyPage(Qe);
|
|
16263
16263
|
continue;
|
|
16264
16264
|
}
|
|
16265
|
-
if (this.renderedPages.includes(Qe.pageNumber) && !
|
|
16265
|
+
if (this.renderedPages.includes(Qe.pageNumber) && !De) {
|
|
16266
16266
|
Ie.push(Qe.pageNumber);
|
|
16267
16267
|
continue;
|
|
16268
16268
|
}
|
|
16269
|
-
await this.renderPage(Qe, Te,
|
|
16269
|
+
await this.renderPage(Qe, Te, De), Ie.push(Qe.pageNumber);
|
|
16270
16270
|
}
|
|
16271
16271
|
}
|
|
16272
16272
|
this.renderedPages = Ie;
|
|
16273
16273
|
}
|
|
16274
|
-
async renderPage(
|
|
16275
|
-
const Te = Ee.closest(".file-viewer-pdf__page"),
|
|
16276
|
-
this.renderingPageNumbers = [...this.renderingPageNumbers,
|
|
16277
|
-
const Qe = Ie ? 2 : this.getScale(
|
|
16274
|
+
async renderPage(De, Ee, Ie) {
|
|
16275
|
+
const Te = Ee.closest(".file-viewer-pdf__page"), Le = Te == null ? void 0 : Te.querySelector(".file-viewer-pdf__text-container");
|
|
16276
|
+
this.renderingPageNumbers = [...this.renderingPageNumbers, De.pageNumber];
|
|
16277
|
+
const Qe = Ie ? 2 : this.getScale(De), B = window.devicePixelRatio || 1, v = B !== 1 ? [B, 0, 0, B, 0, 0] : null, n = De.getViewport({ scale: Qe }), o = Ee.getContext("2d");
|
|
16278
16278
|
Ee.height = Math.floor(n.height * B), Ee.width = Math.floor(n.width * B);
|
|
16279
16279
|
const c = {
|
|
16280
16280
|
canvasContext: o,
|
|
@@ -16282,34 +16282,34 @@ const _a = class {
|
|
|
16282
16282
|
viewport: n
|
|
16283
16283
|
};
|
|
16284
16284
|
try {
|
|
16285
|
-
await
|
|
16285
|
+
await De.render(c).promise, De.cleanup(), Le.innerHTML = "", this.renderTextLayer(De, Le).catch(), this.renderingPageNumbers = this.renderingPageNumbers.filter((T) => T !== De.pageNumber);
|
|
16286
16286
|
} catch {
|
|
16287
16287
|
}
|
|
16288
16288
|
}
|
|
16289
|
-
destroyPage(
|
|
16290
|
-
const Ee = this.el.shadowRoot.querySelector(`[data-page-number="${
|
|
16289
|
+
destroyPage(De) {
|
|
16290
|
+
const Ee = this.el.shadowRoot.querySelector(`[data-page-number="${De.pageNumber}"]`), Ie = Ee.querySelector("canvas"), Te = Ee.querySelector(".file-viewer-pdf__text-container");
|
|
16291
16291
|
Ie.width = 1, Ie.height = 1, Ie.getContext("2d").clearRect(0, 0, Ie.width, Ie.height), Te.innerHTML = "";
|
|
16292
16292
|
}
|
|
16293
|
-
async updateVisiblePages(
|
|
16293
|
+
async updateVisiblePages(De) {
|
|
16294
16294
|
const Ee = Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));
|
|
16295
16295
|
let Ie = [];
|
|
16296
16296
|
if (this.singlePageMode)
|
|
16297
16297
|
Ie = [this.singlePageModePage];
|
|
16298
|
-
else if (Ie =
|
|
16298
|
+
else if (Ie = De ? Ee.map((Le) => +Le.dataset.pageNumber) : Ee.filter((Le) => ia(Le, this.scrollContainer) > 0).map((Le) => +Le.dataset.pageNumber), this.visiblePages.length === Ie.length && this.visiblePages.every((Le) => Ie.includes(Le)))
|
|
16299
16299
|
return;
|
|
16300
|
-
this.visiblePages = Ie, await this.renderVisiblePages(
|
|
16300
|
+
this.visiblePages = Ie, await this.renderVisiblePages(De), this.visiblePagesChange.emit(this.visiblePages);
|
|
16301
16301
|
}
|
|
16302
|
-
async renderTextLayer(
|
|
16302
|
+
async renderTextLayer(De, Ee) {
|
|
16303
16303
|
Or.exports.renderTextLayer({
|
|
16304
16304
|
container: Ee,
|
|
16305
|
-
textContent: await
|
|
16306
|
-
viewport:
|
|
16307
|
-
scale: this.getScale(
|
|
16305
|
+
textContent: await De.getTextContent(),
|
|
16306
|
+
viewport: De.getViewport({
|
|
16307
|
+
scale: this.getScale(De)
|
|
16308
16308
|
})
|
|
16309
16309
|
});
|
|
16310
16310
|
}
|
|
16311
16311
|
async openPrintDialog() {
|
|
16312
|
-
const
|
|
16312
|
+
const De = Array.from(this.scrollContainer.querySelectorAll("canvas"));
|
|
16313
16313
|
let Ee = `
|
|
16314
16314
|
*, *:before, *:after {
|
|
16315
16315
|
margin: 0;
|
|
@@ -16346,7 +16346,7 @@ const _a = class {
|
|
|
16346
16346
|
</head>
|
|
16347
16347
|
<body>
|
|
16348
16348
|
`;
|
|
16349
|
-
for (const Qe of
|
|
16349
|
+
for (const Qe of De)
|
|
16350
16350
|
Ie += `<img src="${Qe.toDataURL()}">`;
|
|
16351
16351
|
Ie += `
|
|
16352
16352
|
</body>
|
|
@@ -16354,29 +16354,29 @@ const _a = class {
|
|
|
16354
16354
|
`;
|
|
16355
16355
|
const Te = document.createElement("iframe");
|
|
16356
16356
|
this.el.append(Te);
|
|
16357
|
-
const
|
|
16358
|
-
|
|
16357
|
+
const Le = Te.contentWindow;
|
|
16358
|
+
Le.document.write(Ie), Le.focus(), await new Promise((Qe) => setTimeout(Qe, 100)), Le.print(), Te.remove();
|
|
16359
16359
|
}
|
|
16360
|
-
getScale(
|
|
16360
|
+
getScale(De) {
|
|
16361
16361
|
var Ie;
|
|
16362
16362
|
const Ee = aa() ? 0 : 32;
|
|
16363
|
-
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) - Ee) /
|
|
16363
|
+
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) - Ee) / De.view[2] : isNaN(this.zoom) ? 1 : this.zoom;
|
|
16364
16364
|
}
|
|
16365
16365
|
restoreScrollPosition() {
|
|
16366
|
-
var
|
|
16367
|
-
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((
|
|
16366
|
+
var De, Ee;
|
|
16367
|
+
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight), this.scrollContainer.scrollLeft = this.recentScrollPosition.x * ((Ee = this.scrollContainer) == null ? void 0 : Ee.scrollWidth);
|
|
16368
16368
|
}
|
|
16369
16369
|
render() {
|
|
16370
|
-
const
|
|
16371
|
-
return qe(jt, { key: "b28bcfe2c09ea61bb231e3293c9db33b8bc9e84d", class: Te, exportparts: "file-viewer-pdf__pagination" }, this.error && qe("swirl-inline-error", { key: "0bf5545534fbda26a6bb80c758015d8dfab9a4d5", class: "file-viewer-pdf__error", message: this.errorMessage }), qe("div", { key: "772a8f4e55b37fa49a4dbab6c1bc8d1ce420fb64", "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (
|
|
16372
|
-
const Qe =
|
|
16373
|
-
scale: this.getScale(
|
|
16374
|
-
}), B = Qe.height, v = Qe.width, n = this.renderedPages.includes(
|
|
16375
|
-
return qe("div", { "aria-label":
|
|
16370
|
+
const De = !this.error && !this.loading && this.visiblePages.length > 0, Ee = this.scrolledDown && !this.singlePageMode ? this.pages.length - 1 : this.visiblePages[0], Ie = this.loading, Te = ra("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
16371
|
+
return qe(jt, { key: "b28bcfe2c09ea61bb231e3293c9db33b8bc9e84d", class: Te, exportparts: "file-viewer-pdf__pagination" }, this.error && qe("swirl-inline-error", { key: "0bf5545534fbda26a6bb80c758015d8dfab9a4d5", class: "file-viewer-pdf__error", message: this.errorMessage }), qe("div", { key: "772a8f4e55b37fa49a4dbab6c1bc8d1ce420fb64", "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (Le) => this.scrollContainer = Le }, this.pages.map((Le) => {
|
|
16372
|
+
const Qe = Le.getViewport({
|
|
16373
|
+
scale: this.getScale(Le)
|
|
16374
|
+
}), B = Qe.height, v = Qe.width, n = this.renderedPages.includes(Le.pageNumber);
|
|
16375
|
+
return qe("div", { "aria-label": Le.pageNumber, class: "file-viewer-pdf__page", "data-page-number": Le.pageNumber, hidden: !this.singlePageMode || Le.pageNumber === this.singlePageModePage ? void 0 : !0, id: `page-${Le.pageNumber}`, key: Le.pageNumber, role: "region", style: {
|
|
16376
16376
|
width: `${v}px`,
|
|
16377
16377
|
height: `${B}px`
|
|
16378
16378
|
}, tabIndex: 0 }, !n && qe("swirl-spinner", { class: "file-viewer-pdf__page-spinner" }), qe("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: n ? "1" : "0" } }), qe("div", { class: "file-viewer-pdf__text-container" }));
|
|
16379
|
-
})),
|
|
16379
|
+
})), De && qe("span", { key: "93057b4402d4bcfee7b690d02b03a7f2f483e294", class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, qe("span", { key: "f13d0f87c2a7b86f5551ba05e9e008323ab8d662", "aria-current": "page" }, Ee), " / ", this.doc.numPages), Ie && qe("div", { key: "6b84fbaff23e0a4b0412720c5668d4574cf1c9a5", class: "file-viewer-pdf__spinner" }, qe("swirl-spinner", { key: "93af5efd3cbaf907b2ea1e0d08579bd9213933a6" })));
|
|
16380
16380
|
}
|
|
16381
16381
|
get el() {
|
|
16382
16382
|
return Qt(this);
|
|
@@ -16391,8 +16391,8 @@ const _a = class {
|
|
|
16391
16391
|
};
|
|
16392
16392
|
_a.style = wa;
|
|
16393
16393
|
const Ea = ":host{position:relative;display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-text__text{overflow:auto;width:100%;max-height:100%;margin:0;padding:0;padding:var(--s-space-16);background-color:var(--s-background-default);font-family:var(--s-font-family-code)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-text__text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-viewer-text__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-text__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", Ca = Ea, Ta = class {
|
|
16394
|
-
constructor(
|
|
16395
|
-
zt(this,
|
|
16394
|
+
constructor(De) {
|
|
16395
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.errorMessage = "File could not be loaded.", this.file = void 0, this.error = void 0, this.loading = void 0, this.text = void 0;
|
|
16396
16396
|
}
|
|
16397
16397
|
componentWillLoad() {
|
|
16398
16398
|
this.updateText();
|
|
@@ -16403,8 +16403,8 @@ const Ea = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
16403
16403
|
async updateText() {
|
|
16404
16404
|
this.error = !1, this.loading = !0;
|
|
16405
16405
|
try {
|
|
16406
|
-
const
|
|
16407
|
-
this.text = await
|
|
16406
|
+
const De = await fetch(this.file);
|
|
16407
|
+
this.text = await De.text(), this.loading = !1;
|
|
16408
16408
|
} catch {
|
|
16409
16409
|
this.loading = !1, this.error = !0;
|
|
16410
16410
|
}
|
|
@@ -16423,18 +16423,26 @@ const Ea = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
16423
16423
|
};
|
|
16424
16424
|
Ta.style = Ca;
|
|
16425
16425
|
const Pa = ":host{display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}", Ra = Pa, xa = class {
|
|
16426
|
-
constructor(
|
|
16427
|
-
zt(this,
|
|
16426
|
+
constructor(De) {
|
|
16427
|
+
zt(this, De), this.activate = Rt(this, "activate", 7), this.autoplay = void 0, this.disableDownload = void 0, this.file = void 0, this.type = void 0;
|
|
16428
16428
|
}
|
|
16429
16429
|
componentDidLoad() {
|
|
16430
|
-
this.activate.emit(this.el);
|
|
16430
|
+
this.activate.emit(this.el), this.disableDownload && this.videoEl.setAttribute("controlsList", "nodownload");
|
|
16431
|
+
}
|
|
16432
|
+
watchDisableDownload() {
|
|
16433
|
+
this.disableDownload ? this.videoEl.setAttribute("controlsList", "nodownload") : this.videoEl.removeAttribute("controlsList");
|
|
16431
16434
|
}
|
|
16432
16435
|
render() {
|
|
16433
|
-
return qe(jt, { key: "
|
|
16436
|
+
return qe(jt, { key: "ac8cf96b6359070114b3cde6a7ccf7eea5245c7a", class: "file-viewer-video" }, qe("video", { key: "10cc560ceaea3df058a7c5a78f3583f04af60508", autoplay: this.autoplay, class: "file-viewer-video__video", controls: !0, ref: (De) => this.videoEl = De }, qe("source", { key: "6a8da26d879cfe62ed136b52af3e39f3d8bfa626", src: this.file, type: this.type })));
|
|
16434
16437
|
}
|
|
16435
16438
|
get el() {
|
|
16436
16439
|
return Qt(this);
|
|
16437
16440
|
}
|
|
16441
|
+
static get watchers() {
|
|
16442
|
+
return {
|
|
16443
|
+
disableDownload: ["watchDisableDownload"]
|
|
16444
|
+
};
|
|
16445
|
+
}
|
|
16438
16446
|
};
|
|
16439
16447
|
xa.style = Ra;
|
|
16440
16448
|
export {
|