@getflip/swirl-components-react 0.62.1 → 0.63.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.
Files changed (191) hide show
  1. package/dist/{file-manager.entry.a60cff9d.js → file-manager.entry.359508df.js} +1 -1
  2. package/dist/index.49b68312.js +1458 -0
  3. package/dist/stencil-generated/index.d.ts +2 -0
  4. package/dist/{swirl-action-list-section.entry.13b7d736.js → swirl-action-list-section.entry.d59402f4.js} +1 -1
  5. package/dist/{swirl-action-list_3.entry.5ec66ba2.js → swirl-action-list_3.entry.c444d6ab.js} +10 -10
  6. package/dist/{swirl-app-bar.entry.86bf1eec.js → swirl-app-bar.entry.5fecb7ad.js} +1 -1
  7. package/dist/{swirl-app-icon.entry.feb46284.js → swirl-app-icon.entry.995ecee8.js} +1 -1
  8. package/dist/{swirl-app-layout_7.entry.adce91fd.js → swirl-app-layout_7.entry.f628e2e2.js} +2 -2
  9. package/dist/{swirl-autocomplete.entry.2b1de671.js → swirl-autocomplete.entry.be6a8785.js} +2 -2
  10. package/dist/{swirl-avatar-group.entry.2509bea8.js → swirl-avatar-group.entry.634c7b55.js} +1 -1
  11. package/dist/{swirl-avatar.entry.4e4e5429.js → swirl-avatar.entry.c52d0f2a.js} +1 -1
  12. package/dist/{swirl-badge.entry.af54c7aa.js → swirl-badge.entry.ba0334bb.js} +1 -1
  13. package/dist/{swirl-banner.entry.884ac879.js → swirl-banner.entry.85df2fc8.js} +2 -2
  14. package/dist/{swirl-button-group.entry.2516852c.js → swirl-button-group.entry.a4c8367e.js} +1 -1
  15. package/dist/{swirl-button.entry.12d8f013.js → swirl-button.entry.edea9f53.js} +3 -3
  16. package/dist/{swirl-card.entry.9665cb41.js → swirl-card.entry.53d7eec0.js} +1 -1
  17. package/dist/{swirl-carousel-slide.entry.c4c20c53.js → swirl-carousel-slide.entry.6712f940.js} +1 -1
  18. package/dist/{swirl-carousel.entry.9640c11e.js → swirl-carousel.entry.83318470.js} +2 -2
  19. package/dist/{swirl-checkbox.entry.ae88fc04.js → swirl-checkbox.entry.4241d77d.js} +1 -1
  20. package/dist/{swirl-chip.entry.fe4cf26f.js → swirl-chip.entry.a72f62b5.js} +2 -2
  21. package/dist/{swirl-columns.entry.cf2cd71a.js → swirl-columns.entry.984a87c9.js} +1 -1
  22. package/dist/swirl-components-react.js +67 -65
  23. package/dist/swirl-components-react.umd.cjs +54 -54
  24. package/dist/{swirl-console-layout.entry.83c1bd6a.js → swirl-console-layout.entry.23dc7975.js} +2 -2
  25. package/dist/{swirl-date-input.entry.b258202c.js → swirl-date-input.entry.a7b13aca.js} +2 -2
  26. package/dist/{swirl-date-picker_2.entry.99e86336.js → swirl-date-picker_2.entry.c6a8775b.js} +1 -1
  27. package/dist/{swirl-description-list-item.entry.68100bd2.js → swirl-description-list-item.entry.e73da313.js} +1 -1
  28. package/dist/{swirl-description-list.entry.c3ee0de1.js → swirl-description-list.entry.73fdfc0a.js} +1 -1
  29. package/dist/{swirl-dialog.entry.ec6e076c.js → swirl-dialog.entry.4ac6f271.js} +1 -1
  30. package/dist/{swirl-file-uploader.entry.8b506dfa.js → swirl-file-uploader.entry.0c5d1d1a.js} +1 -1
  31. package/dist/{swirl-file-viewer_7.entry.918f7abf.js → swirl-file-viewer_7.entry.175385a0.js} +2 -2
  32. package/dist/{swirl-form-control.entry.7293147c.js → swirl-form-control.entry.e78c132b.js} +2 -2
  33. package/dist/{swirl-form-group.entry.ad81fe79.js → swirl-form-group.entry.d49b74d8.js} +1 -1
  34. package/dist/{swirl-heading.entry.5db2f4d8.js → swirl-heading.entry.0b5555b5.js} +1 -1
  35. package/dist/{swirl-icon-add-photo.entry.291978d8.js → swirl-icon-add-photo.entry.8f40bd01.js} +1 -1
  36. package/dist/{swirl-icon-add_6.entry.cec08421.js → swirl-icon-add_6.entry.8fcf5b86.js} +1 -1
  37. package/dist/{swirl-icon-admin-panel-settings.entry.b673c4ad.js → swirl-icon-admin-panel-settings.entry.ab566213.js} +1 -1
  38. package/dist/{swirl-icon-ai.entry.d1dfbb0a.js → swirl-icon-ai.entry.0d36dba2.js} +1 -1
  39. package/dist/{swirl-icon-arrow-back.entry.7e307118.js → swirl-icon-arrow-back.entry.f9765669.js} +1 -1
  40. package/dist/{swirl-icon-arrow-downward_2.entry.43632f56.js → swirl-icon-arrow-downward_2.entry.639a0bca.js} +1 -1
  41. package/dist/{swirl-icon-arrow-forward.entry.f64dc52b.js → swirl-icon-arrow-forward.entry.4c4ef23c.js} +1 -1
  42. package/dist/{swirl-icon-arrow-left_4.entry.0f9bddea.js → swirl-icon-arrow-left_4.entry.f6a91679.js} +1 -1
  43. package/dist/{swirl-icon-arrow-right-small.entry.d9f11d6a.js → swirl-icon-arrow-right-small.entry.b0cf61b8.js} +1 -1
  44. package/dist/{swirl-icon-attachment.entry.01b89a53.js → swirl-icon-attachment.entry.2c16ea10.js} +1 -1
  45. package/dist/{swirl-icon-bar-chart.entry.d47faead.js → swirl-icon-bar-chart.entry.72b2e01b.js} +1 -1
  46. package/dist/{swirl-icon-block.entry.15aab657.js → swirl-icon-block.entry.0aa53e54.js} +1 -1
  47. package/dist/{swirl-icon-bookmark.entry.cb8ef50a.js → swirl-icon-bookmark.entry.3c9c0949.js} +1 -1
  48. package/dist/{swirl-icon-cancel_4.entry.72b0510d.js → swirl-icon-cancel_4.entry.9c2e79df.js} +1 -1
  49. package/dist/{swirl-icon-chat-bubble.entry.25045b17.js → swirl-icon-chat-bubble.entry.2035e92b.js} +1 -1
  50. package/dist/{swirl-icon-chats-filled.entry.f76fb6d6.js → swirl-icon-chats-filled.entry.a5edb2a8.js} +1 -1
  51. package/dist/{swirl-icon-chats-outlined.entry.179c8945.js → swirl-icon-chats-outlined.entry.98898e62.js} +1 -1
  52. package/dist/{swirl-icon-check-circle_3.entry.7be17e1e.js → swirl-icon-check-circle_3.entry.bcaf4180.js} +1 -1
  53. package/dist/swirl-icon-check-small_3.entry.e5698819.js +69 -0
  54. package/dist/{swirl-icon-check-strong.entry.36adb37c.js → swirl-icon-check-strong.entry.c4745fea.js} +1 -1
  55. package/dist/{swirl-icon-check.entry.17249b6e.js → swirl-icon-check.entry.17e05e3a.js} +1 -1
  56. package/dist/{swirl-icon-chevron-left.entry.e2d6a4ee.js → swirl-icon-chevron-left.entry.86bc8635.js} +1 -1
  57. package/dist/{swirl-icon-chevron-right.entry.6d687e95.js → swirl-icon-chevron-right.entry.1985793f.js} +1 -1
  58. package/dist/{swirl-icon-close-small.entry.5d2eef69.js → swirl-icon-close-small.entry.78354325.js} +1 -1
  59. package/dist/{swirl-icon-close.entry.7517db5f.js → swirl-icon-close.entry.f7147131.js} +1 -1
  60. package/dist/{swirl-icon-cloud-upload.entry.8e3e788c.js → swirl-icon-cloud-upload.entry.f064ba1a.js} +1 -1
  61. package/dist/{swirl-icon-column.entry.ce9481d7.js → swirl-icon-column.entry.93db3568.js} +1 -1
  62. package/dist/{swirl-icon-comment.entry.fa8a2e56.js → swirl-icon-comment.entry.49457d57.js} +1 -1
  63. package/dist/{swirl-icon-copy.entry.92524ee6.js → swirl-icon-copy.entry.00f26d2e.js} +1 -1
  64. package/dist/{swirl-icon-date-range.entry.42e56aa6.js → swirl-icon-date-range.entry.414dacf1.js} +1 -1
  65. package/dist/{swirl-icon-delete.entry.ac9fd970.js → swirl-icon-delete.entry.84136dea.js} +1 -1
  66. package/dist/{swirl-icon-description.entry.9d046194.js → swirl-icon-description.entry.1b88c2ff.js} +1 -1
  67. package/dist/{swirl-icon-double-arrow-left.entry.26afa580.js → swirl-icon-double-arrow-left.entry.1170c2f9.js} +1 -1
  68. package/dist/{swirl-icon-double-arrow-right.entry.c023beaf.js → swirl-icon-double-arrow-right.entry.910b7bba.js} +1 -1
  69. package/dist/{swirl-icon-download.entry.4158f58f.js → swirl-icon-download.entry.659b7418.js} +1 -1
  70. package/dist/{swirl-icon-edit.entry.d208dee6.js → swirl-icon-edit.entry.0ec205e7.js} +1 -1
  71. package/dist/{swirl-icon-emoji-mood.entry.bd545572.js → swirl-icon-emoji-mood.entry.9fcdf0d3.js} +1 -1
  72. package/dist/{swirl-icon-emoji-satisfied.entry.118b5295.js → swirl-icon-emoji-satisfied.entry.96ed89b7.js} +1 -1
  73. package/dist/{swirl-icon-error_3.entry.792dd337.js → swirl-icon-error_3.entry.dc3dab01.js} +2 -2
  74. package/dist/{swirl-icon-expand-more.entry.5711c1af.js → swirl-icon-expand-more.entry.f145db33.js} +1 -1
  75. package/dist/{swirl-icon-filter.entry.5aab408c.js → swirl-icon-filter.entry.e6f0d94e.js} +1 -1
  76. package/dist/{swirl-icon-folder.entry.1f39a6d5.js → swirl-icon-folder.entry.ad153e12.js} +1 -1
  77. package/dist/{swirl-icon-gif.entry.7f65f224.js → swirl-icon-gif.entry.cfaabb38.js} +1 -1
  78. package/dist/{swirl-icon-group-assign.entry.5c385eeb.js → swirl-icon-group-assign.entry.a8da8fcd.js} +1 -1
  79. package/dist/{swirl-icon-groups-custom.entry.8c296674.js → swirl-icon-groups-custom.entry.c934cf81.js} +1 -1
  80. package/dist/{swirl-icon-groups-filled.entry.c2b02874.js → swirl-icon-groups-filled.entry.d6ba8e09.js} +1 -1
  81. package/dist/{swirl-icon-groups-outlined.entry.5c2e7103.js → swirl-icon-groups-outlined.entry.e35d1fe7.js} +1 -1
  82. package/dist/{swirl-icon-groups.entry.68089825.js → swirl-icon-groups.entry.be0f53fa.js} +1 -1
  83. package/dist/{swirl-icon-help.entry.1011f392.js → swirl-icon-help.entry.cdd2f30a.js} +1 -1
  84. package/dist/{swirl-icon-highlight.entry.72803906.js → swirl-icon-highlight.entry.869358b9.js} +1 -1
  85. package/dist/{swirl-icon-home.entry.3b40ec36.js → swirl-icon-home.entry.4aedd288.js} +1 -1
  86. package/dist/{swirl-icon-image.entry.03e667ae.js → swirl-icon-image.entry.f5c350ab.js} +1 -1
  87. package/dist/{swirl-icon-improve-text.entry.9376830b.js → swirl-icon-improve-text.entry.47193583.js} +1 -1
  88. package/dist/{swirl-icon-insert-below.entry.5e809de3.js → swirl-icon-insert-below.entry.0ae35796.js} +1 -1
  89. package/dist/{swirl-icon-insert-on-top.entry.3e7c7111.js → swirl-icon-insert-on-top.entry.fdfe1db5.js} +1 -1
  90. package/dist/{swirl-icon-inventory.entry.cac3d7d2.js → swirl-icon-inventory.entry.bc1adecb.js} +1 -1
  91. package/dist/{swirl-icon-like.entry.3128e69e.js → swirl-icon-like.entry.c4dddd9c.js} +1 -1
  92. package/dist/{swirl-icon-link.entry.e1e5514a.js → swirl-icon-link.entry.42ed257c.js} +1 -1
  93. package/dist/{swirl-icon-lock-person.entry.2e8026a3.js → swirl-icon-lock-person.entry.898388ee.js} +1 -1
  94. package/dist/{swirl-icon-lock.entry.da9fc9ee.js → swirl-icon-lock.entry.76a2d1a4.js} +1 -1
  95. package/dist/{swirl-icon-logout.entry.318ca40b.js → swirl-icon-logout.entry.0ca48bdf.js} +1 -1
  96. package/dist/{swirl-icon-long-text.entry.cb110c9e.js → swirl-icon-long-text.entry.bf956f36.js} +1 -1
  97. package/dist/{swirl-icon-mail.entry.0585efec.js → swirl-icon-mail.entry.35e6a42f.js} +1 -1
  98. package/dist/{swirl-icon-manage-accounts.entry.275c6539.js → swirl-icon-manage-accounts.entry.e52fb1a8.js} +1 -1
  99. package/dist/{swirl-icon-mark-chat-read.entry.f169ea00.js → swirl-icon-mark-chat-read.entry.fd166792.js} +1 -1
  100. package/dist/{swirl-icon-mark-chat-unread.entry.cc249674.js → swirl-icon-mark-chat-unread.entry.e21ea28e.js} +1 -1
  101. package/dist/{swirl-icon-mention.entry.af24c07a.js → swirl-icon-mention.entry.ff33ccd6.js} +1 -1
  102. package/dist/{swirl-icon-menu-filled.entry.17a04556.js → swirl-icon-menu-filled.entry.14f065c1.js} +1 -1
  103. package/dist/{swirl-icon-menu-outlined.entry.1e6a4738.js → swirl-icon-menu-outlined.entry.aee25284.js} +1 -1
  104. package/dist/{swirl-icon-menu.entry.3fc18410.js → swirl-icon-menu.entry.5dfd4d4c.js} +1 -1
  105. package/dist/{swirl-icon-message.entry.65299317.js → swirl-icon-message.entry.98db153c.js} +1 -1
  106. package/dist/{swirl-icon-more-horizontal.entry.227ccfe9.js → swirl-icon-more-horizontal.entry.dcc53518.js} +1 -1
  107. package/dist/{swirl-icon-news-filled.entry.5fb4ab2e.js → swirl-icon-news-filled.entry.c7fd4b59.js} +1 -1
  108. package/dist/{swirl-icon-news-outlined.entry.cd718175.js → swirl-icon-news-outlined.entry.b8a06d1d.js} +1 -1
  109. package/dist/{swirl-icon-notifications-active.entry.4abd74b1.js → swirl-icon-notifications-active.entry.fd974461.js} +1 -1
  110. package/dist/{swirl-icon-notifications-off.entry.2bd81d8c.js → swirl-icon-notifications-off.entry.35d35e1c.js} +1 -1
  111. package/dist/{swirl-icon-notifications.entry.783cac78.js → swirl-icon-notifications.entry.df9dbba8.js} +1 -1
  112. package/dist/{swirl-icon-open-in-new.entry.528303c8.js → swirl-icon-open-in-new.entry.aee8adef.js} +1 -1
  113. package/dist/{swirl-icon-people-alt.entry.1322d639.js → swirl-icon-people-alt.entry.f756956d.js} +1 -1
  114. package/dist/{swirl-icon-person-off.entry.f8a396e6.js → swirl-icon-person-off.entry.85d890a5.js} +1 -1
  115. package/dist/{swirl-icon-person.entry.30027d10.js → swirl-icon-person.entry.4d9057e7.js} +1 -1
  116. package/dist/{swirl-icon-phone.entry.5559aa7c.js → swirl-icon-phone.entry.0475f429.js} +1 -1
  117. package/dist/{swirl-icon-play-arrow.entry.c1c88e63.js → swirl-icon-play-arrow.entry.3a43e275.js} +1 -1
  118. package/dist/{swirl-icon-poll.entry.2a82040b.js → swirl-icon-poll.entry.a57ddc57.js} +1 -1
  119. package/dist/{swirl-icon-print.entry.30da5263.js → swirl-icon-print.entry.efd90b86.js} +1 -1
  120. package/dist/{swirl-icon-recieved.entry.0a714bd9.js → swirl-icon-recieved.entry.2cd2cc31.js} +1 -1
  121. package/dist/{swirl-icon-reply.entry.aaad1917.js → swirl-icon-reply.entry.c810530d.js} +1 -1
  122. package/dist/{swirl-icon-roadmap.entry.9feecc77.js → swirl-icon-roadmap.entry.c71839ab.js} +1 -1
  123. package/dist/{swirl-icon-search-strong.entry.287f819f.js → swirl-icon-search-strong.entry.6ebd4919.js} +1 -1
  124. package/dist/{swirl-icon-search.entry.96c7e369.js → swirl-icon-search.entry.d6b55427.js} +1 -1
  125. package/dist/{swirl-icon-send.entry.a1c27584.js → swirl-icon-send.entry.9a9d2140.js} +1 -1
  126. package/dist/{swirl-icon-settings.entry.36a41fe3.js → swirl-icon-settings.entry.53edfa41.js} +1 -1
  127. package/dist/{swirl-icon-short-text.entry.b0939622.js → swirl-icon-short-text.entry.b6a30e87.js} +1 -1
  128. package/dist/{swirl-icon-simplify.entry.c69c76ea.js → swirl-icon-simplify.entry.6652b82e.js} +1 -1
  129. package/dist/{swirl-icon-spellcheck.entry.fbc30f11.js → swirl-icon-spellcheck.entry.6698bfd2.js} +1 -1
  130. package/dist/{swirl-icon-sync.entry.2b16cf04.js → swirl-icon-sync.entry.ffadc356.js} +1 -1
  131. package/dist/{swirl-icon-tasks-filled.entry.a414369b.js → swirl-icon-tasks-filled.entry.94765285.js} +1 -1
  132. package/dist/{swirl-icon-tasks-outlined.entry.395ffda2.js → swirl-icon-tasks-outlined.entry.7414bfa6.js} +1 -1
  133. package/dist/{swirl-icon-time-filled.entry.a1b60eb2.js → swirl-icon-time-filled.entry.1e3b9b1e.js} +1 -1
  134. package/dist/{swirl-icon-time-outlined.entry.7635eeaa.js → swirl-icon-time-outlined.entry.e477e967.js} +1 -1
  135. package/dist/{swirl-icon-undo.entry.ffba578a.js → swirl-icon-undo.entry.d7f195c0.js} +1 -1
  136. package/dist/{swirl-icon-unlock-person.entry.68e117be.js → swirl-icon-unlock-person.entry.ee6e3708.js} +1 -1
  137. package/dist/{swirl-icon-user-assign.entry.67573b8e.js → swirl-icon-user-assign.entry.5619d0ba.js} +1 -1
  138. package/dist/{swirl-icon-video-camera.entry.f2ce0db0.js → swirl-icon-video-camera.entry.25754e11.js} +1 -1
  139. package/dist/{swirl-icon-video-library.entry.96fa0034.js → swirl-icon-video-library.entry.e30f0d2d.js} +1 -1
  140. package/dist/{swirl-icon-voice.entry.8a6dbc3f.js → swirl-icon-voice.entry.36132ee8.js} +1 -1
  141. package/dist/{swirl-icon.entry.e49aa103.js → swirl-icon.entry.b6f0bd39.js} +1 -1
  142. package/dist/{swirl-inline-notification.entry.c4efccd6.js → swirl-inline-notification.entry.4bfee0a5.js} +1 -1
  143. package/dist/{swirl-inline-status.entry.82902f16.js → swirl-inline-status.entry.87f03345.js} +2 -2
  144. package/dist/{swirl-lightbox.entry.5da6c9b6.js → swirl-lightbox.entry.443dce5b.js} +2 -2
  145. package/dist/{swirl-link.entry.c9b6351c.js → swirl-link.entry.50948339.js} +1 -1
  146. package/dist/{swirl-list.entry.68ca2eef.js → swirl-list.entry.3a230d0c.js} +1 -1
  147. package/dist/swirl-menu-item.entry.766a0870.js +76 -0
  148. package/dist/swirl-menu.entry.e27311ef.js +167 -0
  149. package/dist/{swirl-modal.entry.2405c83c.js → swirl-modal.entry.c1e50728.js} +1 -1
  150. package/dist/{swirl-option-list-section.entry.cf2e90d9.js → swirl-option-list-section.entry.d1f6c0e1.js} +1 -1
  151. package/dist/swirl-option-list.entry.02ae7c4c.js +1406 -0
  152. package/dist/{swirl-pagination.entry.6f07354f.js → swirl-pagination.entry.02bda3da.js} +2 -2
  153. package/dist/{swirl-pdf-reader.entry.d714559a.js → swirl-pdf-reader.entry.1515ab48.js} +2 -2
  154. package/dist/{swirl-popover.entry.70fb1e62.js → swirl-popover.entry.959c3513.js} +8 -8
  155. package/dist/{swirl-progress-indicator.entry.6e3ce130.js → swirl-progress-indicator.entry.f14fe50d.js} +1 -1
  156. package/dist/{swirl-radio-group.entry.b57f48cd.js → swirl-radio-group.entry.42b76c42.js} +1 -1
  157. package/dist/{swirl-radio.entry.493cc230.js → swirl-radio.entry.d804c26e.js} +1 -1
  158. package/dist/{swirl-resource-list-file-item.entry.5b5c9e19.js → swirl-resource-list-file-item.entry.53d87439.js} +2 -2
  159. package/dist/{swirl-search.entry.78fee8ba.js → swirl-search.entry.565ac4d7.js} +2 -2
  160. package/dist/{swirl-select.entry.f1574c80.js → swirl-select.entry.0f636856.js} +2 -2
  161. package/dist/{swirl-shell-layout.entry.e49fa5aa.js → swirl-shell-layout.entry.a58b4bf3.js} +2 -2
  162. package/dist/{swirl-shell-navigation-item.entry.d877bd2c.js → swirl-shell-navigation-item.entry.3b2a4270.js} +1 -1
  163. package/dist/{swirl-skeleton-box.entry.83168805.js → swirl-skeleton-box.entry.b58a2a53.js} +1 -1
  164. package/dist/{swirl-skeleton-text.entry.5df00144.js → swirl-skeleton-text.entry.624b3871.js} +1 -1
  165. package/dist/{swirl-stack.entry.dc3e9505.js → swirl-stack.entry.2ca47a74.js} +1 -1
  166. package/dist/{swirl-status-indicator.entry.194efbbf.js → swirl-status-indicator.entry.8b948847.js} +1 -1
  167. package/dist/{swirl-switch.entry.f5e6b984.js → swirl-switch.entry.100d8b82.js} +1 -1
  168. package/dist/{swirl-tab-bar.entry.f4fc0b72.js → swirl-tab-bar.entry.b319ca80.js} +1 -1
  169. package/dist/{swirl-tab.entry.f3e73bba.js → swirl-tab.entry.375bb83c.js} +1 -1
  170. package/dist/{swirl-table-cell.entry.5ed84bb7.js → swirl-table-cell.entry.2d7bee62.js} +1 -1
  171. package/dist/{swirl-table-column.entry.061bff85.js → swirl-table-column.entry.5fceed95.js} +2 -2
  172. package/dist/{swirl-table-row-group.entry.512bdc89.js → swirl-table-row-group.entry.f23275a9.js} +1 -1
  173. package/dist/{swirl-table-row.entry.caf55f97.js → swirl-table-row.entry.acb571d2.js} +2 -2
  174. package/dist/{swirl-table.entry.9e592a1e.js → swirl-table.entry.a0d1a619.js} +2 -2
  175. package/dist/{swirl-tabs.entry.f743dada.js → swirl-tabs.entry.a3075385.js} +1 -1
  176. package/dist/{swirl-tag.entry.317c895a.js → swirl-tag.entry.2bf3d278.js} +1 -1
  177. package/dist/{swirl-text-input.entry.cfd6c14f.js → swirl-text-input.entry.41a060fc.js} +2 -2
  178. package/dist/{swirl-text.entry.fe62e571.js → swirl-text.entry.113435aa.js} +1 -1
  179. package/dist/{swirl-theme-provider.entry.b4d53194.js → swirl-theme-provider.entry.46102920.js} +1 -1
  180. package/dist/{swirl-toast-provider.entry.32555127.js → swirl-toast-provider.entry.74824755.js} +1 -1
  181. package/dist/{swirl-toast.entry.3f765957.js → swirl-toast.entry.21e21b03.js} +2 -2
  182. package/dist/{swirl-tooltip.entry.ece97930.js → swirl-tooltip.entry.44eaabc1.js} +1 -1
  183. package/dist/{swirl-tree-navigation-item.entry.13a8e501.js → swirl-tree-navigation-item.entry.a04dd44d.js} +1 -1
  184. package/dist/{swirl-video-thumbnail.entry.1dabdee2.js → swirl-video-thumbnail.entry.36ce6911.js} +1 -1
  185. package/dist/{swirl-visually-hidden.entry.c02169f5.js → swirl-visually-hidden.entry.b0b4e133.js} +1 -1
  186. package/dist/utils-bc84f36e.9f3a93b6.js +56 -0
  187. package/dist/{wc-datepicker.entry.081bbc0e.js → wc-datepicker.entry.7393df8b.js} +1 -1
  188. package/package.json +2 -2
  189. package/dist/index.261b59e3.js +0 -1456
  190. package/dist/swirl-icon-check-small_4.entry.6c37dcb9.js +0 -1469
  191. package/dist/utils-61f188cc.4a43deab.js +0 -52
@@ -0,0 +1,1406 @@
1
+ import { r as Be, c as le, h as At, H as ke, g as Xe } from "./index.49b68312.js";
2
+ import { c as ue, q as de } from "./utils-bc84f36e.9f3a93b6.js";
3
+ import "react";
4
+ import "react-dom";
5
+ /**!
6
+ * Sortable 1.15.0
7
+ * @author RubaXa <trash@rubaxa.org>
8
+ * @author owenm <owen23355@gmail.com>
9
+ * @license MIT
10
+ */
11
+ function ce(e, t) {
12
+ var i = Object.keys(e);
13
+ if (Object.getOwnPropertySymbols) {
14
+ var n = Object.getOwnPropertySymbols(e);
15
+ t && (n = n.filter(function(o) {
16
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
17
+ })), i.push.apply(i, n);
18
+ }
19
+ return i;
20
+ }
21
+ function z(e) {
22
+ for (var t = 1; t < arguments.length; t++) {
23
+ var i = arguments[t] != null ? arguments[t] : {};
24
+ t % 2 ? ce(Object(i), !0).forEach(function(n) {
25
+ Ye(e, n, i[n]);
26
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ce(Object(i)).forEach(function(n) {
27
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
28
+ });
29
+ }
30
+ return e;
31
+ }
32
+ function Ft(e) {
33
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ft = function(t) {
34
+ return typeof t;
35
+ } : Ft = function(t) {
36
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
37
+ }, Ft(e);
38
+ }
39
+ function Ye(e, t, i) {
40
+ return t in e ? Object.defineProperty(e, t, {
41
+ value: i,
42
+ enumerable: !0,
43
+ configurable: !0,
44
+ writable: !0
45
+ }) : e[t] = i, e;
46
+ }
47
+ function $() {
48
+ return $ = Object.assign || function(e) {
49
+ for (var t = 1; t < arguments.length; t++) {
50
+ var i = arguments[t];
51
+ for (var n in i)
52
+ Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
53
+ }
54
+ return e;
55
+ }, $.apply(this, arguments);
56
+ }
57
+ function Re(e, t) {
58
+ if (e == null)
59
+ return {};
60
+ var i = {}, n = Object.keys(e), o, r;
61
+ for (r = 0; r < n.length; r++)
62
+ o = n[r], !(t.indexOf(o) >= 0) && (i[o] = e[o]);
63
+ return i;
64
+ }
65
+ function Le(e, t) {
66
+ if (e == null)
67
+ return {};
68
+ var i = Re(e, t), n, o;
69
+ if (Object.getOwnPropertySymbols) {
70
+ var r = Object.getOwnPropertySymbols(e);
71
+ for (o = 0; o < r.length; o++)
72
+ n = r[o], !(t.indexOf(n) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, n) || (i[n] = e[n]));
73
+ }
74
+ return i;
75
+ }
76
+ var He = "1.15.0";
77
+ function U(e) {
78
+ if (typeof window < "u" && window.navigator)
79
+ return !!/* @__PURE__ */ navigator.userAgent.match(e);
80
+ }
81
+ var q = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Tt = U(/Edge/i), he = U(/firefox/i), Et = U(/safari/i) && !U(/chrome/i) && !U(/android/i), De = U(/iP(ad|od|hone)/i), Ee = U(/chrome/i) && U(/android/i), ye = {
82
+ capture: !1,
83
+ passive: !1
84
+ };
85
+ function w(e, t, i) {
86
+ e.addEventListener(t, i, !q && ye);
87
+ }
88
+ function b(e, t, i) {
89
+ e.removeEventListener(t, i, !q && ye);
90
+ }
91
+ function Rt(e, t) {
92
+ if (!!t) {
93
+ if (t[0] === ">" && (t = t.substring(1)), e)
94
+ try {
95
+ if (e.matches)
96
+ return e.matches(t);
97
+ if (e.msMatchesSelector)
98
+ return e.msMatchesSelector(t);
99
+ if (e.webkitMatchesSelector)
100
+ return e.webkitMatchesSelector(t);
101
+ } catch {
102
+ return !1;
103
+ }
104
+ return !1;
105
+ }
106
+ }
107
+ function We(e) {
108
+ return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
109
+ }
110
+ function W(e, t, i, n) {
111
+ if (e) {
112
+ i = i || document;
113
+ do {
114
+ if (t != null && (t[0] === ">" ? e.parentNode === i && Rt(e, t) : Rt(e, t)) || n && e === i)
115
+ return e;
116
+ if (e === i)
117
+ break;
118
+ } while (e = We(e));
119
+ }
120
+ return null;
121
+ }
122
+ var fe = /\s+/g;
123
+ function F(e, t, i) {
124
+ if (e && t)
125
+ if (e.classList)
126
+ e.classList[i ? "add" : "remove"](t);
127
+ else {
128
+ var n = (" " + e.className + " ").replace(fe, " ").replace(" " + t + " ", " ");
129
+ e.className = (n + (i ? " " + t : "")).replace(fe, " ");
130
+ }
131
+ }
132
+ function f(e, t, i) {
133
+ var n = e && e.style;
134
+ if (n) {
135
+ if (i === void 0)
136
+ return document.defaultView && document.defaultView.getComputedStyle ? i = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (i = e.currentStyle), t === void 0 ? i : i[t];
137
+ !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = i + (typeof i == "string" ? "" : "px");
138
+ }
139
+ }
140
+ function ct(e, t) {
141
+ var i = "";
142
+ if (typeof e == "string")
143
+ i = e;
144
+ else
145
+ do {
146
+ var n = f(e, "transform");
147
+ n && n !== "none" && (i = n + " " + i);
148
+ } while (!t && (e = e.parentNode));
149
+ var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
150
+ return o && new o(i);
151
+ }
152
+ function Se(e, t, i) {
153
+ if (e) {
154
+ var n = e.getElementsByTagName(t), o = 0, r = n.length;
155
+ if (i)
156
+ for (; o < r; o++)
157
+ i(n[o], o);
158
+ return n;
159
+ }
160
+ return [];
161
+ }
162
+ function G() {
163
+ var e = document.scrollingElement;
164
+ return e || document.documentElement;
165
+ }
166
+ function T(e, t, i, n, o) {
167
+ if (!(!e.getBoundingClientRect && e !== window)) {
168
+ var r, a, s, l, u, h, c;
169
+ if (e !== window && e.parentNode && e !== G() ? (r = e.getBoundingClientRect(), a = r.top, s = r.left, l = r.bottom, u = r.right, h = r.height, c = r.width) : (a = 0, s = 0, l = window.innerHeight, u = window.innerWidth, h = window.innerHeight, c = window.innerWidth), (t || i) && e !== window && (o = o || e.parentNode, !q))
170
+ do
171
+ if (o && o.getBoundingClientRect && (f(o, "transform") !== "none" || i && f(o, "position") !== "static")) {
172
+ var m = o.getBoundingClientRect();
173
+ a -= m.top + parseInt(f(o, "border-top-width")), s -= m.left + parseInt(f(o, "border-left-width")), l = a + r.height, u = s + r.width;
174
+ break;
175
+ }
176
+ while (o = o.parentNode);
177
+ if (n && e !== window) {
178
+ var E = ct(o || e), v = E && E.a, D = E && E.d;
179
+ E && (a /= D, s /= v, c /= v, h /= D, l = a + h, u = s + c);
180
+ }
181
+ return {
182
+ top: a,
183
+ left: s,
184
+ bottom: l,
185
+ right: u,
186
+ width: c,
187
+ height: h
188
+ };
189
+ }
190
+ }
191
+ function ge(e, t, i) {
192
+ for (var n = tt(e, !0), o = T(e)[t]; n; ) {
193
+ var r = T(n)[i], a = void 0;
194
+ if (i === "top" || i === "left" ? a = o >= r : a = o <= r, !a)
195
+ return n;
196
+ if (n === G())
197
+ break;
198
+ n = tt(n, !1);
199
+ }
200
+ return !1;
201
+ }
202
+ function ht(e, t, i, n) {
203
+ for (var o = 0, r = 0, a = e.children; r < a.length; ) {
204
+ if (a[r].style.display !== "none" && a[r] !== g.ghost && (n || a[r] !== g.dragged) && W(a[r], i.draggable, e, !1)) {
205
+ if (o === t)
206
+ return a[r];
207
+ o++;
208
+ }
209
+ r++;
210
+ }
211
+ return null;
212
+ }
213
+ function oe(e, t) {
214
+ for (var i = e.lastElementChild; i && (i === g.ghost || f(i, "display") === "none" || t && !Rt(i, t)); )
215
+ i = i.previousElementSibling;
216
+ return i || null;
217
+ }
218
+ function X(e, t) {
219
+ var i = 0;
220
+ if (!e || !e.parentNode)
221
+ return -1;
222
+ for (; e = e.previousElementSibling; )
223
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== g.clone && (!t || Rt(e, t)) && i++;
224
+ return i;
225
+ }
226
+ function pe(e) {
227
+ var t = 0, i = 0, n = G();
228
+ if (e)
229
+ do {
230
+ var o = ct(e), r = o.a, a = o.d;
231
+ t += e.scrollLeft * r, i += e.scrollTop * a;
232
+ } while (e !== n && (e = e.parentNode));
233
+ return [t, i];
234
+ }
235
+ function Ge(e, t) {
236
+ for (var i in e)
237
+ if (!!e.hasOwnProperty(i)) {
238
+ for (var n in t)
239
+ if (t.hasOwnProperty(n) && t[n] === e[i][n])
240
+ return Number(i);
241
+ }
242
+ return -1;
243
+ }
244
+ function tt(e, t) {
245
+ if (!e || !e.getBoundingClientRect)
246
+ return G();
247
+ var i = e, n = !1;
248
+ do
249
+ if (i.clientWidth < i.scrollWidth || i.clientHeight < i.scrollHeight) {
250
+ var o = f(i);
251
+ if (i.clientWidth < i.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || i.clientHeight < i.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
252
+ if (!i.getBoundingClientRect || i === document.body)
253
+ return G();
254
+ if (n || t)
255
+ return i;
256
+ n = !0;
257
+ }
258
+ }
259
+ while (i = i.parentNode);
260
+ return G();
261
+ }
262
+ function ze(e, t) {
263
+ if (e && t)
264
+ for (var i in t)
265
+ t.hasOwnProperty(i) && (e[i] = t[i]);
266
+ return e;
267
+ }
268
+ function jt(e, t) {
269
+ return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
270
+ }
271
+ var yt;
272
+ function Ie(e, t) {
273
+ return function() {
274
+ if (!yt) {
275
+ var i = arguments, n = this;
276
+ i.length === 1 ? e.call(n, i[0]) : e.apply(n, i), yt = setTimeout(function() {
277
+ yt = void 0;
278
+ }, t);
279
+ }
280
+ };
281
+ }
282
+ function je() {
283
+ clearTimeout(yt), yt = void 0;
284
+ }
285
+ function _e(e, t, i) {
286
+ e.scrollLeft += t, e.scrollTop += i;
287
+ }
288
+ function Te(e) {
289
+ var t = window.Polymer, i = window.jQuery || window.Zepto;
290
+ return t && t.dom ? t.dom(e).cloneNode(!0) : i ? i(e).clone(!0)[0] : e.cloneNode(!0);
291
+ }
292
+ var k = "Sortable" + new Date().getTime();
293
+ function Ve() {
294
+ var e = [], t;
295
+ return {
296
+ captureAnimationState: function() {
297
+ if (e = [], !!this.options.animation) {
298
+ var n = [].slice.call(this.el.children);
299
+ n.forEach(function(o) {
300
+ if (!(f(o, "display") === "none" || o === g.ghost)) {
301
+ e.push({
302
+ target: o,
303
+ rect: T(o)
304
+ });
305
+ var r = z({}, e[e.length - 1].rect);
306
+ if (o.thisAnimationDuration) {
307
+ var a = ct(o, !0);
308
+ a && (r.top -= a.f, r.left -= a.e);
309
+ }
310
+ o.fromRect = r;
311
+ }
312
+ });
313
+ }
314
+ },
315
+ addAnimationState: function(n) {
316
+ e.push(n);
317
+ },
318
+ removeAnimationState: function(n) {
319
+ e.splice(Ge(e, {
320
+ target: n
321
+ }), 1);
322
+ },
323
+ animateAll: function(n) {
324
+ var o = this;
325
+ if (!this.options.animation) {
326
+ clearTimeout(t), typeof n == "function" && n();
327
+ return;
328
+ }
329
+ var r = !1, a = 0;
330
+ e.forEach(function(s) {
331
+ var l = 0, u = s.target, h = u.fromRect, c = T(u), m = u.prevFromRect, E = u.prevToRect, v = s.rect, D = ct(u, !0);
332
+ D && (c.top -= D.f, c.left -= D.e), u.toRect = c, u.thisAnimationDuration && jt(m, c) && !jt(h, c) && (v.top - c.top) / (v.left - c.left) === (h.top - c.top) / (h.left - c.left) && (l = $e(v, m, E, o.options)), jt(c, h) || (u.prevFromRect = h, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, v, c, l)), l && (r = !0, a = Math.max(a, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
333
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
334
+ }, l), u.thisAnimationDuration = l);
335
+ }), clearTimeout(t), r ? t = setTimeout(function() {
336
+ typeof n == "function" && n();
337
+ }, a) : typeof n == "function" && n(), e = [];
338
+ },
339
+ animate: function(n, o, r, a) {
340
+ if (a) {
341
+ f(n, "transition", ""), f(n, "transform", "");
342
+ var s = ct(this.el), l = s && s.a, u = s && s.d, h = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
343
+ n.animatingX = !!h, n.animatingY = !!c, f(n, "transform", "translate3d(" + h + "px," + c + "px,0)"), this.forRepaintDummy = Ue(n), f(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), f(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
344
+ f(n, "transition", ""), f(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
345
+ }, a);
346
+ }
347
+ }
348
+ };
349
+ }
350
+ function Ue(e) {
351
+ return e.offsetWidth;
352
+ }
353
+ function $e(e, t, i, n) {
354
+ return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) * n.animation;
355
+ }
356
+ var st = [], Vt = {
357
+ initializeByDefault: !0
358
+ }, xt = {
359
+ mount: function(t) {
360
+ for (var i in Vt)
361
+ Vt.hasOwnProperty(i) && !(i in t) && (t[i] = Vt[i]);
362
+ st.forEach(function(n) {
363
+ if (n.pluginName === t.pluginName)
364
+ throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
365
+ }), st.push(t);
366
+ },
367
+ pluginEvent: function(t, i, n) {
368
+ var o = this;
369
+ this.eventCanceled = !1, n.cancel = function() {
370
+ o.eventCanceled = !0;
371
+ };
372
+ var r = t + "Global";
373
+ st.forEach(function(a) {
374
+ !i[a.pluginName] || (i[a.pluginName][r] && i[a.pluginName][r](z({
375
+ sortable: i
376
+ }, n)), i.options[a.pluginName] && i[a.pluginName][t] && i[a.pluginName][t](z({
377
+ sortable: i
378
+ }, n)));
379
+ });
380
+ },
381
+ initializePlugins: function(t, i, n, o) {
382
+ st.forEach(function(s) {
383
+ var l = s.pluginName;
384
+ if (!(!t.options[l] && !s.initializeByDefault)) {
385
+ var u = new s(t, i, t.options);
386
+ u.sortable = t, u.options = t.options, t[l] = u, $(n, u.defaults);
387
+ }
388
+ });
389
+ for (var r in t.options)
390
+ if (!!t.options.hasOwnProperty(r)) {
391
+ var a = this.modifyOption(t, r, t.options[r]);
392
+ typeof a < "u" && (t.options[r] = a);
393
+ }
394
+ },
395
+ getEventProperties: function(t, i) {
396
+ var n = {};
397
+ return st.forEach(function(o) {
398
+ typeof o.eventProperties == "function" && $(n, o.eventProperties.call(i[o.pluginName], t));
399
+ }), n;
400
+ },
401
+ modifyOption: function(t, i, n) {
402
+ var o;
403
+ return st.forEach(function(r) {
404
+ !t[r.pluginName] || r.optionListeners && typeof r.optionListeners[i] == "function" && (o = r.optionListeners[i].call(t[r.pluginName], n));
405
+ }), o;
406
+ }
407
+ };
408
+ function qe(e) {
409
+ var t = e.sortable, i = e.rootEl, n = e.name, o = e.targetEl, r = e.cloneEl, a = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, h = e.oldDraggableIndex, c = e.newDraggableIndex, m = e.originalEvent, E = e.putSortable, v = e.extraEventProperties;
410
+ if (t = t || i && i[k], !!t) {
411
+ var D, Y = t.options, j = "on" + n.charAt(0).toUpperCase() + n.substr(1);
412
+ window.CustomEvent && !q && !Tt ? D = new CustomEvent(n, {
413
+ bubbles: !0,
414
+ cancelable: !0
415
+ }) : (D = document.createEvent("Event"), D.initEvent(n, !0, !0)), D.to = a || i, D.from = s || i, D.item = o || i, D.clone = r, D.oldIndex = l, D.newIndex = u, D.oldDraggableIndex = h, D.newDraggableIndex = c, D.originalEvent = m, D.pullMode = E ? E.lastPutMode : void 0;
416
+ var A = z(z({}, v), xt.getEventProperties(n, t));
417
+ for (var R in A)
418
+ D[R] = A[R];
419
+ i && i.dispatchEvent(D), Y[j] && Y[j].call(t, D);
420
+ }
421
+ }
422
+ var Ke = ["evt"], P = function(t, i) {
423
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = Le(n, Ke);
424
+ xt.pluginEvent.bind(g)(t, i, z({
425
+ dragEl: d,
426
+ parentEl: I,
427
+ ghostEl: p,
428
+ rootEl: y,
429
+ nextEl: at,
430
+ lastDownEl: Bt,
431
+ cloneEl: S,
432
+ cloneHidden: J,
433
+ dragStarted: bt,
434
+ putSortable: x,
435
+ activeSortable: g.active,
436
+ originalEvent: o,
437
+ oldIndex: dt,
438
+ oldDraggableIndex: St,
439
+ newIndex: B,
440
+ newDraggableIndex: Q,
441
+ hideGhostForTarget: Oe,
442
+ unhideGhostForTarget: Pe,
443
+ cloneNowHidden: function() {
444
+ J = !0;
445
+ },
446
+ cloneNowShown: function() {
447
+ J = !1;
448
+ },
449
+ dispatchSortableEvent: function(s) {
450
+ O({
451
+ sortable: i,
452
+ name: s,
453
+ originalEvent: o
454
+ });
455
+ }
456
+ }, r));
457
+ };
458
+ function O(e) {
459
+ qe(z({
460
+ putSortable: x,
461
+ cloneEl: S,
462
+ targetEl: d,
463
+ rootEl: y,
464
+ oldIndex: dt,
465
+ oldDraggableIndex: St,
466
+ newIndex: B,
467
+ newDraggableIndex: Q
468
+ }, e));
469
+ }
470
+ var d, I, p, y, at, Bt, S, J, dt, B, St, Q, Ot, x, ut = !1, Lt = !1, Ht = [], ot, L, Ut, $t, me, ve, bt, lt, It, _t = !1, Pt = !1, kt, C, qt = [], te = !1, Wt = [], zt = typeof document < "u", Nt = De, be = Tt || q ? "cssFloat" : "float", Ze = zt && !Ee && !De && "draggable" in document.createElement("div"), xe = function() {
471
+ if (!!zt) {
472
+ if (q)
473
+ return !1;
474
+ var e = document.createElement("x");
475
+ return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
476
+ }
477
+ }(), Ce = function(t, i) {
478
+ var n = f(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = ht(t, 0, i), a = ht(t, 1, i), s = r && f(r), l = a && f(a), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(r).width, h = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
479
+ if (n.display === "flex")
480
+ return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
481
+ if (n.display === "grid")
482
+ return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
483
+ if (r && s.float && s.float !== "none") {
484
+ var c = s.float === "left" ? "left" : "right";
485
+ return a && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
486
+ }
487
+ return r && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= o && n[be] === "none" || a && n[be] === "none" && u + h > o) ? "vertical" : "horizontal";
488
+ }, Qe = function(t, i, n) {
489
+ var o = n ? t.left : t.top, r = n ? t.right : t.bottom, a = n ? t.width : t.height, s = n ? i.left : i.top, l = n ? i.right : i.bottom, u = n ? i.width : i.height;
490
+ return o === s || r === l || o + a / 2 === s + u / 2;
491
+ }, Je = function(t, i) {
492
+ var n;
493
+ return Ht.some(function(o) {
494
+ var r = o[k].options.emptyInsertThreshold;
495
+ if (!(!r || oe(o))) {
496
+ var a = T(o), s = t >= a.left - r && t <= a.right + r, l = i >= a.top - r && i <= a.bottom + r;
497
+ if (s && l)
498
+ return n = o;
499
+ }
500
+ }), n;
501
+ }, Ae = function(t) {
502
+ function i(r, a) {
503
+ return function(s, l, u, h) {
504
+ var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
505
+ if (r == null && (a || c))
506
+ return !0;
507
+ if (r == null || r === !1)
508
+ return !1;
509
+ if (a && r === "clone")
510
+ return r;
511
+ if (typeof r == "function")
512
+ return i(r(s, l, u, h), a)(s, l, u, h);
513
+ var m = (a ? s : l).options.group.name;
514
+ return r === !0 || typeof r == "string" && r === m || r.join && r.indexOf(m) > -1;
515
+ };
516
+ }
517
+ var n = {}, o = t.group;
518
+ (!o || Ft(o) != "object") && (o = {
519
+ name: o
520
+ }), n.name = o.name, n.checkPull = i(o.pull, !0), n.checkPut = i(o.put), n.revertClone = o.revertClone, t.group = n;
521
+ }, Oe = function() {
522
+ !xe && p && f(p, "display", "none");
523
+ }, Pe = function() {
524
+ !xe && p && f(p, "display", "");
525
+ };
526
+ zt && !Ee && document.addEventListener("click", function(e) {
527
+ if (Lt)
528
+ return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Lt = !1, !1;
529
+ }, !0);
530
+ var rt = function(t) {
531
+ if (d) {
532
+ t = t.touches ? t.touches[0] : t;
533
+ var i = Je(t.clientX, t.clientY);
534
+ if (i) {
535
+ var n = {};
536
+ for (var o in t)
537
+ t.hasOwnProperty(o) && (n[o] = t[o]);
538
+ n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[k]._onDragOver(n);
539
+ }
540
+ }
541
+ }, ti = function(t) {
542
+ d && d.parentNode[k]._isOutsideThisEl(t.target);
543
+ };
544
+ function g(e, t) {
545
+ if (!(e && e.nodeType && e.nodeType === 1))
546
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
547
+ this.el = e, this.options = t = $({}, t), e[k] = this;
548
+ var i = {
549
+ group: null,
550
+ sort: !0,
551
+ disabled: !1,
552
+ store: null,
553
+ handle: null,
554
+ draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
555
+ swapThreshold: 1,
556
+ invertSwap: !1,
557
+ invertedSwapThreshold: null,
558
+ removeCloneOnHide: !0,
559
+ direction: function() {
560
+ return Ce(e, this.options);
561
+ },
562
+ ghostClass: "sortable-ghost",
563
+ chosenClass: "sortable-chosen",
564
+ dragClass: "sortable-drag",
565
+ ignore: "a, img",
566
+ filter: null,
567
+ preventOnFilter: !0,
568
+ animation: 0,
569
+ easing: null,
570
+ setData: function(a, s) {
571
+ a.setData("Text", s.textContent);
572
+ },
573
+ dropBubble: !1,
574
+ dragoverBubble: !1,
575
+ dataIdAttr: "data-id",
576
+ delay: 0,
577
+ delayOnTouchOnly: !1,
578
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
579
+ forceFallback: !1,
580
+ fallbackClass: "sortable-fallback",
581
+ fallbackOnBody: !1,
582
+ fallbackTolerance: 0,
583
+ fallbackOffset: {
584
+ x: 0,
585
+ y: 0
586
+ },
587
+ supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && !Et,
588
+ emptyInsertThreshold: 5
589
+ };
590
+ xt.initializePlugins(this, e, i);
591
+ for (var n in i)
592
+ !(n in t) && (t[n] = i[n]);
593
+ Ae(t);
594
+ for (var o in this)
595
+ o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
596
+ this.nativeDraggable = t.forceFallback ? !1 : Ze, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(e, "pointerdown", this._onTapStart) : (w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart)), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), Ht.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), $(this, Ve());
597
+ }
598
+ g.prototype = {
599
+ constructor: g,
600
+ _isOutsideThisEl: function(t) {
601
+ !this.el.contains(t) && t !== this.el && (lt = null);
602
+ },
603
+ _getDirection: function(t, i) {
604
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, d) : this.options.direction;
605
+ },
606
+ _onTapStart: function(t) {
607
+ if (!!t.cancelable) {
608
+ var i = this, n = this.el, o = this.options, r = o.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, h = o.filter;
609
+ if (li(n), !d && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Et && l && l.tagName.toUpperCase() === "SELECT") && (l = W(l, o.draggable, n, !1), !(l && l.animated) && Bt !== l)) {
610
+ if (dt = X(l), St = X(l, o.draggable), typeof h == "function") {
611
+ if (h.call(this, t, l, this)) {
612
+ O({
613
+ sortable: i,
614
+ rootEl: u,
615
+ name: "filter",
616
+ targetEl: l,
617
+ toEl: n,
618
+ fromEl: n
619
+ }), P("filter", i, {
620
+ evt: t
621
+ }), r && t.cancelable && t.preventDefault();
622
+ return;
623
+ }
624
+ } else if (h && (h = h.split(",").some(function(c) {
625
+ if (c = W(u, c.trim(), n, !1), c)
626
+ return O({
627
+ sortable: i,
628
+ rootEl: c,
629
+ name: "filter",
630
+ targetEl: l,
631
+ fromEl: n,
632
+ toEl: n
633
+ }), P("filter", i, {
634
+ evt: t
635
+ }), !0;
636
+ }), h)) {
637
+ r && t.cancelable && t.preventDefault();
638
+ return;
639
+ }
640
+ o.handle && !W(u, o.handle, n, !1) || this._prepareDragStart(t, s, l);
641
+ }
642
+ }
643
+ },
644
+ _prepareDragStart: function(t, i, n) {
645
+ var o = this, r = o.el, a = o.options, s = r.ownerDocument, l;
646
+ if (n && !d && n.parentNode === r) {
647
+ var u = T(n);
648
+ if (y = r, d = n, I = d.parentNode, at = d.nextSibling, Bt = n, Ot = a.group, g.dragged = d, ot = {
649
+ target: d,
650
+ clientX: (i || t).clientX,
651
+ clientY: (i || t).clientY
652
+ }, me = ot.clientX - u.left, ve = ot.clientY - u.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, d.style["will-change"] = "all", l = function() {
653
+ if (P("delayEnded", o, {
654
+ evt: t
655
+ }), g.eventCanceled) {
656
+ o._onDrop();
657
+ return;
658
+ }
659
+ o._disableDelayedDragEvents(), !he && o.nativeDraggable && (d.draggable = !0), o._triggerDragStart(t, i), O({
660
+ sortable: o,
661
+ name: "choose",
662
+ originalEvent: t
663
+ }), F(d, a.chosenClass, !0);
664
+ }, a.ignore.split(",").forEach(function(h) {
665
+ Se(d, h.trim(), Kt);
666
+ }), w(s, "dragover", rt), w(s, "mousemove", rt), w(s, "touchmove", rt), w(s, "mouseup", o._onDrop), w(s, "touchend", o._onDrop), w(s, "touchcancel", o._onDrop), he && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), P("delayStart", this, {
667
+ evt: t
668
+ }), a.delay && (!a.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Tt || q))) {
669
+ if (g.eventCanceled) {
670
+ this._onDrop();
671
+ return;
672
+ }
673
+ w(s, "mouseup", o._disableDelayedDrag), w(s, "touchend", o._disableDelayedDrag), w(s, "touchcancel", o._disableDelayedDrag), w(s, "mousemove", o._delayedDragTouchMoveHandler), w(s, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && w(s, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, a.delay);
674
+ } else
675
+ l();
676
+ }
677
+ },
678
+ _delayedDragTouchMoveHandler: function(t) {
679
+ var i = t.touches ? t.touches[0] : t;
680
+ Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
681
+ },
682
+ _disableDelayedDrag: function() {
683
+ d && Kt(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
684
+ },
685
+ _disableDelayedDragEvents: function() {
686
+ var t = this.el.ownerDocument;
687
+ b(t, "mouseup", this._disableDelayedDrag), b(t, "touchend", this._disableDelayedDrag), b(t, "touchcancel", this._disableDelayedDrag), b(t, "mousemove", this._delayedDragTouchMoveHandler), b(t, "touchmove", this._delayedDragTouchMoveHandler), b(t, "pointermove", this._delayedDragTouchMoveHandler);
688
+ },
689
+ _triggerDragStart: function(t, i) {
690
+ i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : i ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(d, "dragend", this), w(y, "dragstart", this._onDragStart));
691
+ try {
692
+ document.selection ? Xt(function() {
693
+ document.selection.empty();
694
+ }) : window.getSelection().removeAllRanges();
695
+ } catch {
696
+ }
697
+ },
698
+ _dragStarted: function(t, i) {
699
+ if (ut = !1, y && d) {
700
+ P("dragStarted", this, {
701
+ evt: i
702
+ }), this.nativeDraggable && w(document, "dragover", ti);
703
+ var n = this.options;
704
+ !t && F(d, n.dragClass, !1), F(d, n.ghostClass, !0), g.active = this, t && this._appendGhost(), O({
705
+ sortable: this,
706
+ name: "start",
707
+ originalEvent: i
708
+ });
709
+ } else
710
+ this._nulling();
711
+ },
712
+ _emulateDragOver: function() {
713
+ if (L) {
714
+ this._lastX = L.clientX, this._lastY = L.clientY, Oe();
715
+ for (var t = document.elementFromPoint(L.clientX, L.clientY), i = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(L.clientX, L.clientY), t !== i); )
716
+ i = t;
717
+ if (d.parentNode[k]._isOutsideThisEl(t), i)
718
+ do {
719
+ if (i[k]) {
720
+ var n = void 0;
721
+ if (n = i[k]._onDragOver({
722
+ clientX: L.clientX,
723
+ clientY: L.clientY,
724
+ target: t,
725
+ rootEl: i
726
+ }), n && !this.options.dragoverBubble)
727
+ break;
728
+ }
729
+ t = i;
730
+ } while (i = i.parentNode);
731
+ Pe();
732
+ }
733
+ },
734
+ _onTouchMove: function(t) {
735
+ if (ot) {
736
+ var i = this.options, n = i.fallbackTolerance, o = i.fallbackOffset, r = t.touches ? t.touches[0] : t, a = p && ct(p, !0), s = p && a && a.a, l = p && a && a.d, u = Nt && C && pe(C), h = (r.clientX - ot.clientX + o.x) / (s || 1) + (u ? u[0] - qt[0] : 0) / (s || 1), c = (r.clientY - ot.clientY + o.y) / (l || 1) + (u ? u[1] - qt[1] : 0) / (l || 1);
737
+ if (!g.active && !ut) {
738
+ if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
739
+ return;
740
+ this._onDragStart(t, !0);
741
+ }
742
+ if (p) {
743
+ a ? (a.e += h - (Ut || 0), a.f += c - ($t || 0)) : a = {
744
+ a: 1,
745
+ b: 0,
746
+ c: 0,
747
+ d: 1,
748
+ e: h,
749
+ f: c
750
+ };
751
+ var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
752
+ f(p, "webkitTransform", m), f(p, "mozTransform", m), f(p, "msTransform", m), f(p, "transform", m), Ut = h, $t = c, L = r;
753
+ }
754
+ t.cancelable && t.preventDefault();
755
+ }
756
+ },
757
+ _appendGhost: function() {
758
+ if (!p) {
759
+ var t = this.options.fallbackOnBody ? document.body : y, i = T(d, !0, Nt, !0, t), n = this.options;
760
+ if (Nt) {
761
+ for (C = t; f(C, "position") === "static" && f(C, "transform") === "none" && C !== document; )
762
+ C = C.parentNode;
763
+ C !== document.body && C !== document.documentElement ? (C === document && (C = G()), i.top += C.scrollTop, i.left += C.scrollLeft) : C = G(), qt = pe(C);
764
+ }
765
+ p = d.cloneNode(!0), F(p, n.ghostClass, !1), F(p, n.fallbackClass, !0), F(p, n.dragClass, !0), f(p, "transition", ""), f(p, "transform", ""), f(p, "box-sizing", "border-box"), f(p, "margin", 0), f(p, "top", i.top), f(p, "left", i.left), f(p, "width", i.width), f(p, "height", i.height), f(p, "opacity", "0.8"), f(p, "position", Nt ? "absolute" : "fixed"), f(p, "zIndex", "100000"), f(p, "pointerEvents", "none"), g.ghost = p, t.appendChild(p), f(p, "transform-origin", me / parseInt(p.style.width) * 100 + "% " + ve / parseInt(p.style.height) * 100 + "%");
766
+ }
767
+ },
768
+ _onDragStart: function(t, i) {
769
+ var n = this, o = t.dataTransfer, r = n.options;
770
+ if (P("dragStart", this, {
771
+ evt: t
772
+ }), g.eventCanceled) {
773
+ this._onDrop();
774
+ return;
775
+ }
776
+ P("setupClone", this), g.eventCanceled || (S = Te(d), S.removeAttribute("id"), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), F(S, this.options.chosenClass, !1), g.clone = S), n.cloneId = Xt(function() {
777
+ P("clone", n), !g.eventCanceled && (n.options.removeCloneOnHide || y.insertBefore(S, d), n._hideClone(), O({
778
+ sortable: n,
779
+ name: "clone"
780
+ }));
781
+ }), !i && F(d, r.dragClass, !0), i ? (Lt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (b(document, "mouseup", n._onDrop), b(document, "touchend", n._onDrop), b(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, d)), w(document, "drop", n), f(d, "transform", "translateZ(0)")), ut = !0, n._dragStartId = Xt(n._dragStarted.bind(n, i, t)), w(document, "selectstart", n), bt = !0, Et && f(document.body, "user-select", "none");
782
+ },
783
+ _onDragOver: function(t) {
784
+ var i = this.el, n = t.target, o, r, a, s = this.options, l = s.group, u = g.active, h = Ot === l, c = s.sort, m = x || u, E, v = this, D = !1;
785
+ if (te)
786
+ return;
787
+ function Y(vt, Me) {
788
+ P(vt, v, z({
789
+ evt: t,
790
+ isOwner: h,
791
+ axis: E ? "vertical" : "horizontal",
792
+ revert: a,
793
+ dragRect: o,
794
+ targetRect: r,
795
+ canSort: c,
796
+ fromSortable: m,
797
+ target: n,
798
+ completed: A,
799
+ onMove: function(se, Fe) {
800
+ return Mt(y, i, d, o, se, T(se), t, Fe);
801
+ },
802
+ changed: R
803
+ }, Me));
804
+ }
805
+ function j() {
806
+ Y("dragOverAnimationCapture"), v.captureAnimationState(), v !== m && m.captureAnimationState();
807
+ }
808
+ function A(vt) {
809
+ return Y("dragOverCompleted", {
810
+ insertion: vt
811
+ }), vt && (h ? u._hideClone() : u._showClone(v), v !== m && (F(d, x ? x.options.ghostClass : u.options.ghostClass, !1), F(d, s.ghostClass, !0)), x !== v && v !== g.active ? x = v : v === g.active && x && (x = null), m === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
812
+ Y("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
813
+ }), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === d && !d.animated || n === i && !n.animated) && (lt = null), !s.dragoverBubble && !t.rootEl && n !== document && (d.parentNode[k]._isOutsideThisEl(t.target), !vt && rt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), D = !0;
814
+ }
815
+ function R() {
816
+ B = X(d), Q = X(d, s.draggable), O({
817
+ sortable: v,
818
+ name: "change",
819
+ toEl: i,
820
+ newIndex: B,
821
+ newDraggableIndex: Q,
822
+ originalEvent: t
823
+ });
824
+ }
825
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = W(n, s.draggable, i, !0), Y("dragOver"), g.eventCanceled)
826
+ return D;
827
+ if (d.contains(t.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
828
+ return A(!1);
829
+ if (Lt = !1, u && !s.disabled && (h ? c || (a = I !== y) : x === this || (this.lastPutMode = Ot.checkPull(this, u, d, t)) && l.checkPut(this, u, d, t))) {
830
+ if (E = this._getDirection(t, n) === "vertical", o = T(d), Y("dragOverValid"), g.eventCanceled)
831
+ return D;
832
+ if (a)
833
+ return I = y, j(), this._hideClone(), Y("revert"), g.eventCanceled || (at ? y.insertBefore(d, at) : y.appendChild(d)), A(!0);
834
+ var N = oe(i, s.draggable);
835
+ if (!N || oi(t, E, this) && !N.animated) {
836
+ if (N === d)
837
+ return A(!1);
838
+ if (N && i === t.target && (n = N), n && (r = T(n)), Mt(y, i, d, o, n, r, t, !!n) !== !1)
839
+ return j(), N && N.nextSibling ? i.insertBefore(d, N.nextSibling) : i.appendChild(d), I = i, R(), A(!0);
840
+ } else if (N && ni(t, E, this)) {
841
+ var et = ht(i, 0, s, !0);
842
+ if (et === d)
843
+ return A(!1);
844
+ if (n = et, r = T(n), Mt(y, i, d, o, n, r, t, !1) !== !1)
845
+ return j(), i.insertBefore(d, et), I = i, R(), A(!0);
846
+ } else if (n.parentNode === i) {
847
+ r = T(n);
848
+ var H = 0, it, ft = d.parentNode !== i, M = !Qe(d.animated && d.toRect || o, n.animated && n.toRect || r, E), gt = E ? "top" : "left", K = ge(n, "top", "top") || ge(d, "top", "top"), pt = K ? K.scrollTop : void 0;
849
+ lt !== n && (it = r[gt], _t = !1, Pt = !M && s.invertSwap || ft), H = ri(t, n, r, E, M ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Pt, lt === n);
850
+ var V;
851
+ if (H !== 0) {
852
+ var nt = X(d);
853
+ do
854
+ nt -= H, V = I.children[nt];
855
+ while (V && (f(V, "display") === "none" || V === p));
856
+ }
857
+ if (H === 0 || V === n)
858
+ return A(!1);
859
+ lt = n, It = H;
860
+ var mt = n.nextElementSibling, Z = !1;
861
+ Z = H === 1;
862
+ var Ct = Mt(y, i, d, o, n, r, t, Z);
863
+ if (Ct !== !1)
864
+ return (Ct === 1 || Ct === -1) && (Z = Ct === 1), te = !0, setTimeout(ii, 30), j(), Z && !mt ? i.appendChild(d) : n.parentNode.insertBefore(d, Z ? mt : n), K && _e(K, 0, pt - K.scrollTop), I = d.parentNode, it !== void 0 && !Pt && (kt = Math.abs(it - T(n)[gt])), R(), A(!0);
865
+ }
866
+ if (i.contains(d))
867
+ return A(!1);
868
+ }
869
+ return !1;
870
+ },
871
+ _ignoreWhileAnimating: null,
872
+ _offMoveEvents: function() {
873
+ b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", rt), b(document, "mousemove", rt), b(document, "touchmove", rt);
874
+ },
875
+ _offUpEvents: function() {
876
+ var t = this.el.ownerDocument;
877
+ b(t, "mouseup", this._onDrop), b(t, "touchend", this._onDrop), b(t, "pointerup", this._onDrop), b(t, "touchcancel", this._onDrop), b(document, "selectstart", this);
878
+ },
879
+ _onDrop: function(t) {
880
+ var i = this.el, n = this.options;
881
+ if (B = X(d), Q = X(d, n.draggable), P("drop", this, {
882
+ evt: t
883
+ }), I = d && d.parentNode, B = X(d), Q = X(d, n.draggable), g.eventCanceled) {
884
+ this._nulling();
885
+ return;
886
+ }
887
+ ut = !1, Pt = !1, _t = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ee(this.cloneId), ee(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Et && f(document.body, "user-select", ""), f(d, "transform", ""), t && (bt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), p && p.parentNode && p.parentNode.removeChild(p), (y === I || x && x.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), d && (this.nativeDraggable && b(d, "dragend", this), Kt(d), d.style["will-change"] = "", bt && !ut && F(d, x ? x.options.ghostClass : this.options.ghostClass, !1), F(d, this.options.chosenClass, !1), O({
888
+ sortable: this,
889
+ name: "unchoose",
890
+ toEl: I,
891
+ newIndex: null,
892
+ newDraggableIndex: null,
893
+ originalEvent: t
894
+ }), y !== I ? (B >= 0 && (O({
895
+ rootEl: I,
896
+ name: "add",
897
+ toEl: I,
898
+ fromEl: y,
899
+ originalEvent: t
900
+ }), O({
901
+ sortable: this,
902
+ name: "remove",
903
+ toEl: I,
904
+ originalEvent: t
905
+ }), O({
906
+ rootEl: I,
907
+ name: "sort",
908
+ toEl: I,
909
+ fromEl: y,
910
+ originalEvent: t
911
+ }), O({
912
+ sortable: this,
913
+ name: "sort",
914
+ toEl: I,
915
+ originalEvent: t
916
+ })), x && x.save()) : B !== dt && B >= 0 && (O({
917
+ sortable: this,
918
+ name: "update",
919
+ toEl: I,
920
+ originalEvent: t
921
+ }), O({
922
+ sortable: this,
923
+ name: "sort",
924
+ toEl: I,
925
+ originalEvent: t
926
+ })), g.active && ((B == null || B === -1) && (B = dt, Q = St), O({
927
+ sortable: this,
928
+ name: "end",
929
+ toEl: I,
930
+ originalEvent: t
931
+ }), this.save()))), this._nulling();
932
+ },
933
+ _nulling: function() {
934
+ P("nulling", this), y = d = I = p = at = S = Bt = J = ot = L = bt = B = Q = dt = St = lt = It = x = Ot = g.dragged = g.ghost = g.clone = g.active = null, Wt.forEach(function(t) {
935
+ t.checked = !0;
936
+ }), Wt.length = Ut = $t = 0;
937
+ },
938
+ handleEvent: function(t) {
939
+ switch (t.type) {
940
+ case "drop":
941
+ case "dragend":
942
+ this._onDrop(t);
943
+ break;
944
+ case "dragenter":
945
+ case "dragover":
946
+ d && (this._onDragOver(t), ei(t));
947
+ break;
948
+ case "selectstart":
949
+ t.preventDefault();
950
+ break;
951
+ }
952
+ },
953
+ toArray: function() {
954
+ for (var t = [], i, n = this.el.children, o = 0, r = n.length, a = this.options; o < r; o++)
955
+ i = n[o], W(i, a.draggable, this.el, !1) && t.push(i.getAttribute(a.dataIdAttr) || si(i));
956
+ return t;
957
+ },
958
+ sort: function(t, i) {
959
+ var n = {}, o = this.el;
960
+ this.toArray().forEach(function(r, a) {
961
+ var s = o.children[a];
962
+ W(s, this.options.draggable, o, !1) && (n[r] = s);
963
+ }, this), i && this.captureAnimationState(), t.forEach(function(r) {
964
+ n[r] && (o.removeChild(n[r]), o.appendChild(n[r]));
965
+ }), i && this.animateAll();
966
+ },
967
+ save: function() {
968
+ var t = this.options.store;
969
+ t && t.set && t.set(this);
970
+ },
971
+ closest: function(t, i) {
972
+ return W(t, i || this.options.draggable, this.el, !1);
973
+ },
974
+ option: function(t, i) {
975
+ var n = this.options;
976
+ if (i === void 0)
977
+ return n[t];
978
+ var o = xt.modifyOption(this, t, i);
979
+ typeof o < "u" ? n[t] = o : n[t] = i, t === "group" && Ae(n);
980
+ },
981
+ destroy: function() {
982
+ P("destroy", this);
983
+ var t = this.el;
984
+ t[k] = null, b(t, "mousedown", this._onTapStart), b(t, "touchstart", this._onTapStart), b(t, "pointerdown", this._onTapStart), this.nativeDraggable && (b(t, "dragover", this), b(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(i) {
985
+ i.removeAttribute("draggable");
986
+ }), this._onDrop(), this._disableDelayedDragEvents(), Ht.splice(Ht.indexOf(this.el), 1), this.el = t = null;
987
+ },
988
+ _hideClone: function() {
989
+ if (!J) {
990
+ if (P("hideClone", this), g.eventCanceled)
991
+ return;
992
+ f(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), J = !0;
993
+ }
994
+ },
995
+ _showClone: function(t) {
996
+ if (t.lastPutMode !== "clone") {
997
+ this._hideClone();
998
+ return;
999
+ }
1000
+ if (J) {
1001
+ if (P("showClone", this), g.eventCanceled)
1002
+ return;
1003
+ d.parentNode == y && !this.options.group.revertClone ? y.insertBefore(S, d) : at ? y.insertBefore(S, at) : y.appendChild(S), this.options.group.revertClone && this.animate(d, S), f(S, "display", ""), J = !1;
1004
+ }
1005
+ }
1006
+ };
1007
+ function ei(e) {
1008
+ e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
1009
+ }
1010
+ function Mt(e, t, i, n, o, r, a, s) {
1011
+ var l, u = e[k], h = u.options.onMove, c;
1012
+ return window.CustomEvent && !q && !Tt ? l = new CustomEvent("move", {
1013
+ bubbles: !0,
1014
+ cancelable: !0
1015
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = i, l.draggedRect = n, l.related = o || t, l.relatedRect = r || T(t), l.willInsertAfter = s, l.originalEvent = a, e.dispatchEvent(l), h && (c = h.call(u, l, a)), c;
1016
+ }
1017
+ function Kt(e) {
1018
+ e.draggable = !1;
1019
+ }
1020
+ function ii() {
1021
+ te = !1;
1022
+ }
1023
+ function ni(e, t, i) {
1024
+ var n = T(ht(i.el, 0, i.options, !0)), o = 10;
1025
+ return t ? e.clientX < n.left - o || e.clientY < n.top && e.clientX < n.right : e.clientY < n.top - o || e.clientY < n.bottom && e.clientX < n.left;
1026
+ }
1027
+ function oi(e, t, i) {
1028
+ var n = T(oe(i.el, i.options.draggable)), o = 10;
1029
+ return t ? e.clientX > n.right + o || e.clientX <= n.right && e.clientY > n.bottom && e.clientX >= n.left : e.clientX > n.right && e.clientY > n.top || e.clientX <= n.right && e.clientY > n.bottom + o;
1030
+ }
1031
+ function ri(e, t, i, n, o, r, a, s) {
1032
+ var l = n ? e.clientY : e.clientX, u = n ? i.height : i.width, h = n ? i.top : i.left, c = n ? i.bottom : i.right, m = !1;
1033
+ if (!a) {
1034
+ if (s && kt < u * o) {
1035
+ if (!_t && (It === 1 ? l > h + u * r / 2 : l < c - u * r / 2) && (_t = !0), _t)
1036
+ m = !0;
1037
+ else if (It === 1 ? l < h + kt : l > c - kt)
1038
+ return -It;
1039
+ } else if (l > h + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
1040
+ return ai(t);
1041
+ }
1042
+ return m = m || a, m && (l < h + u * r / 2 || l > c - u * r / 2) ? l > h + u / 2 ? 1 : -1 : 0;
1043
+ }
1044
+ function ai(e) {
1045
+ return X(d) < X(e) ? 1 : -1;
1046
+ }
1047
+ function si(e) {
1048
+ for (var t = e.tagName + e.className + e.src + e.href + e.textContent, i = t.length, n = 0; i--; )
1049
+ n += t.charCodeAt(i);
1050
+ return n.toString(36);
1051
+ }
1052
+ function li(e) {
1053
+ Wt.length = 0;
1054
+ for (var t = e.getElementsByTagName("input"), i = t.length; i--; ) {
1055
+ var n = t[i];
1056
+ n.checked && Wt.push(n);
1057
+ }
1058
+ }
1059
+ function Xt(e) {
1060
+ return setTimeout(e, 0);
1061
+ }
1062
+ function ee(e) {
1063
+ return clearTimeout(e);
1064
+ }
1065
+ zt && w(document, "touchmove", function(e) {
1066
+ (g.active || ut) && e.cancelable && e.preventDefault();
1067
+ });
1068
+ g.utils = {
1069
+ on: w,
1070
+ off: b,
1071
+ css: f,
1072
+ find: Se,
1073
+ is: function(t, i) {
1074
+ return !!W(t, i, t, !1);
1075
+ },
1076
+ extend: ze,
1077
+ throttle: Ie,
1078
+ closest: W,
1079
+ toggleClass: F,
1080
+ clone: Te,
1081
+ index: X,
1082
+ nextTick: Xt,
1083
+ cancelNextTick: ee,
1084
+ detectDirection: Ce,
1085
+ getChild: ht
1086
+ };
1087
+ g.get = function(e) {
1088
+ return e[k];
1089
+ };
1090
+ g.mount = function() {
1091
+ for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1092
+ t[i] = arguments[i];
1093
+ t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
1094
+ if (!n.prototype || !n.prototype.constructor)
1095
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1096
+ n.utils && (g.utils = z(z({}, g.utils), n.utils)), xt.mount(n);
1097
+ });
1098
+ };
1099
+ g.create = function(e, t) {
1100
+ return new g(e, t);
1101
+ };
1102
+ g.version = He;
1103
+ var _ = [], wt, ie, ne = !1, Zt, Qt, Gt, Dt;
1104
+ function ui() {
1105
+ function e() {
1106
+ this.defaults = {
1107
+ scroll: !0,
1108
+ forceAutoScrollFallback: !1,
1109
+ scrollSensitivity: 30,
1110
+ scrollSpeed: 10,
1111
+ bubbleScroll: !0
1112
+ };
1113
+ for (var t in this)
1114
+ t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
1115
+ }
1116
+ return e.prototype = {
1117
+ dragStarted: function(i) {
1118
+ var n = i.originalEvent;
1119
+ this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? w(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? w(document, "touchmove", this._handleFallbackAutoScroll) : w(document, "mousemove", this._handleFallbackAutoScroll);
1120
+ },
1121
+ dragOverCompleted: function(i) {
1122
+ var n = i.originalEvent;
1123
+ !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1124
+ },
1125
+ drop: function() {
1126
+ this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), we(), Yt(), je();
1127
+ },
1128
+ nulling: function() {
1129
+ Gt = ie = wt = ne = Dt = Zt = Qt = null, _.length = 0;
1130
+ },
1131
+ _handleFallbackAutoScroll: function(i) {
1132
+ this._handleAutoScroll(i, !0);
1133
+ },
1134
+ _handleAutoScroll: function(i, n) {
1135
+ var o = this, r = (i.touches ? i.touches[0] : i).clientX, a = (i.touches ? i.touches[0] : i).clientY, s = document.elementFromPoint(r, a);
1136
+ if (Gt = i, n || this.options.forceAutoScrollFallback || Tt || q || Et) {
1137
+ Jt(i, this.options, s, n);
1138
+ var l = tt(s, !0);
1139
+ ne && (!Dt || r !== Zt || a !== Qt) && (Dt && we(), Dt = setInterval(function() {
1140
+ var u = tt(document.elementFromPoint(r, a), !0);
1141
+ u !== l && (l = u, Yt()), Jt(i, o.options, u, n);
1142
+ }, 10), Zt = r, Qt = a);
1143
+ } else {
1144
+ if (!this.options.bubbleScroll || tt(s, !0) === G()) {
1145
+ Yt();
1146
+ return;
1147
+ }
1148
+ Jt(i, this.options, tt(s, !1), !1);
1149
+ }
1150
+ }
1151
+ }, $(e, {
1152
+ pluginName: "scroll",
1153
+ initializeByDefault: !0
1154
+ });
1155
+ }
1156
+ function Yt() {
1157
+ _.forEach(function(e) {
1158
+ clearInterval(e.pid);
1159
+ }), _ = [];
1160
+ }
1161
+ function we() {
1162
+ clearInterval(Dt);
1163
+ }
1164
+ var Jt = Ie(function(e, t, i, n) {
1165
+ if (!!t.scroll) {
1166
+ var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = G(), u = !1, h;
1167
+ ie !== i && (ie = i, Yt(), wt = t.scroll, h = t.scrollFn, wt === !0 && (wt = tt(i, !0)));
1168
+ var c = 0, m = wt;
1169
+ do {
1170
+ var E = m, v = T(E), D = v.top, Y = v.bottom, j = v.left, A = v.right, R = v.width, N = v.height, et = void 0, H = void 0, it = E.scrollWidth, ft = E.scrollHeight, M = f(E), gt = E.scrollLeft, K = E.scrollTop;
1171
+ E === l ? (et = R < it && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), H = N < ft && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (et = R < it && (M.overflowX === "auto" || M.overflowX === "scroll"), H = N < ft && (M.overflowY === "auto" || M.overflowY === "scroll"));
1172
+ var pt = et && (Math.abs(A - o) <= a && gt + R < it) - (Math.abs(j - o) <= a && !!gt), V = H && (Math.abs(Y - r) <= a && K + N < ft) - (Math.abs(D - r) <= a && !!K);
1173
+ if (!_[c])
1174
+ for (var nt = 0; nt <= c; nt++)
1175
+ _[nt] || (_[nt] = {});
1176
+ (_[c].vx != pt || _[c].vy != V || _[c].el !== E) && (_[c].el = E, _[c].vx = pt, _[c].vy = V, clearInterval(_[c].pid), (pt != 0 || V != 0) && (u = !0, _[c].pid = setInterval(function() {
1177
+ n && this.layer === 0 && g.active._onTouchMove(Gt);
1178
+ var mt = _[this.layer].vy ? _[this.layer].vy * s : 0, Z = _[this.layer].vx ? _[this.layer].vx * s : 0;
1179
+ typeof h == "function" && h.call(g.dragged.parentNode[k], Z, mt, e, Gt, _[this.layer].el) !== "continue" || _e(_[this.layer].el, Z, mt);
1180
+ }.bind({
1181
+ layer: c
1182
+ }), 24))), c++;
1183
+ } while (t.bubbleScroll && m !== l && (m = tt(m, !1)));
1184
+ ne = u;
1185
+ }
1186
+ }, 30), Ne = function(t) {
1187
+ var i = t.originalEvent, n = t.putSortable, o = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
1188
+ if (!!i) {
1189
+ var u = n || r;
1190
+ s();
1191
+ var h = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, c = document.elementFromPoint(h.clientX, h.clientY);
1192
+ l(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
1193
+ dragEl: o,
1194
+ putSortable: n
1195
+ }));
1196
+ }
1197
+ };
1198
+ function re() {
1199
+ }
1200
+ re.prototype = {
1201
+ startIndex: null,
1202
+ dragStart: function(t) {
1203
+ var i = t.oldDraggableIndex;
1204
+ this.startIndex = i;
1205
+ },
1206
+ onSpill: function(t) {
1207
+ var i = t.dragEl, n = t.putSortable;
1208
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
1209
+ var o = ht(this.sortable.el, this.startIndex, this.options);
1210
+ o ? this.sortable.el.insertBefore(i, o) : this.sortable.el.appendChild(i), this.sortable.animateAll(), n && n.animateAll();
1211
+ },
1212
+ drop: Ne
1213
+ };
1214
+ $(re, {
1215
+ pluginName: "revertOnSpill"
1216
+ });
1217
+ function ae() {
1218
+ }
1219
+ ae.prototype = {
1220
+ onSpill: function(t) {
1221
+ var i = t.dragEl, n = t.putSortable, o = n || this.sortable;
1222
+ o.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), o.animateAll();
1223
+ },
1224
+ drop: Ne
1225
+ };
1226
+ $(ae, {
1227
+ pluginName: "removeOnSpill"
1228
+ });
1229
+ g.mount(new ui());
1230
+ g.mount(ae, re);
1231
+ const di = ".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}", ci = class {
1232
+ constructor(e) {
1233
+ Be(this, e), this.itemDrop = le(this, "itemDrop", 7), this.valueChange = le(this, "valueChange", 7), this.onFocus = async (t) => {
1234
+ this.listboxEl.contains(t.relatedTarget) || (await new Promise((i) => setTimeout(i)), Boolean(this.focusedItem) ? this.focusItem(this.getActiveItemIndex()) : this.focusItem(0));
1235
+ }, this.onClick = (t) => {
1236
+ t.preventDefault();
1237
+ const i = t.target, n = i == null ? void 0 : i.closest("swirl-option-list-item"), o = t.composedPath()[0], r = Boolean(ue(o, '[role="option"]'));
1238
+ if (!Boolean(n) || !r) {
1239
+ t.preventDefault();
1240
+ return;
1241
+ }
1242
+ this.selectItem(this.items.findIndex((a) => a.value === n.value));
1243
+ }, this.onKeyDown = (t) => {
1244
+ if (t.code === "ArrowDown")
1245
+ t.preventDefault(), Boolean(this.dragging) ? this.moveDraggedItemDown() : this.focusNextItem();
1246
+ else if (t.code === "ArrowUp")
1247
+ t.preventDefault(), Boolean(this.dragging) ? this.moveDraggedItemUp() : this.focusPreviousItem();
1248
+ else if (t.code === "Space" || t.code === "Enter") {
1249
+ const i = t.composedPath()[0];
1250
+ if (!Boolean(ue(i, '[role="option"]')))
1251
+ return;
1252
+ t.preventDefault(), Boolean(this.dragging) ? this.stopDrag(this.dragging) : this.selectFocusedItem();
1253
+ } else
1254
+ t.code === "Home" ? (t.preventDefault(), this.focusItem(0)) : t.code === "End" ? (t.preventDefault(), this.focusItem(this.items.length - 1)) : t.code === "KeyA" && (t.metaKey || t.ctrlKey) && this.multiSelect ? (t.preventDefault(), this.selectAllItems()) : t.code === "Tab" && Boolean(this.dragging) && t.preventDefault();
1255
+ }, this.toggleDrag = (t) => {
1256
+ const i = t.detail;
1257
+ Boolean(this.dragging) ? this.stopDrag(i) : this.startDrag(i);
1258
+ }, this.startDrag = (t) => {
1259
+ this.dragging = t, this.draggingStartIndex = this.getItemIndex(this.dragging), t.setAttribute("dragging", "true");
1260
+ const i = this.getItemIndex(this.dragging);
1261
+ this.focusItem(i), this.assistiveText = this.assistiveTextItemGrabbed;
1262
+ }, this.stopDrag = (t) => {
1263
+ this.dragging = void 0, t.removeAttribute("dragging");
1264
+ const i = this.getActiveItemIndex();
1265
+ this.assistiveText = `${this.assistiveTextItemMoved} ${i + 1}`, this.itemDrop.emit({ item: t, oldIndex: this.draggingStartIndex, newIndex: i }), this.draggingStartIndex = void 0;
1266
+ }, this.allowDrag = void 0, this.assistiveTextItemGrabbed = "Item grabbed. Use arrow keys to move item up or down. Use spacebar to save position.", this.assistiveTextItemMoving = "Current position:", this.assistiveTextItemMoved = "Item moved. New position:", this.disabled = void 0, this.label = void 0, this.optionListId = void 0, this.multiSelect = void 0, this.value = [], this.assistiveText = void 0;
1267
+ }
1268
+ componentDidLoad() {
1269
+ this.updateItems(), this.observeSlotChanges(), this.setItemAllowDragState(), this.setItemDisabledState(), this.setItemContext(), this.syncItemsWithValue(), this.setupDragDrop();
1270
+ }
1271
+ disconnectedCallback() {
1272
+ var e, t;
1273
+ (e = this.observer) === null || e === void 0 || e.disconnect(), (t = this.sortable) === null || t === void 0 || t.destroy();
1274
+ }
1275
+ watchAllowDrag() {
1276
+ this.setItemAllowDragState(), this.setupDragDrop();
1277
+ }
1278
+ watchDisabled() {
1279
+ this.setItemDisabledState();
1280
+ }
1281
+ watchMultiSelect() {
1282
+ this.setItemContext();
1283
+ }
1284
+ watchValue() {
1285
+ this.syncItemsWithValue();
1286
+ }
1287
+ observeSlotChanges() {
1288
+ this.observer = new MutationObserver(() => {
1289
+ this.updateItems();
1290
+ }), this.observer.observe(this.listboxEl, { childList: !0 });
1291
+ }
1292
+ updateItems() {
1293
+ this.items = de(this.el, "swirl-option-list-item");
1294
+ }
1295
+ setItemDisabledState() {
1296
+ this.disabled && this.items.forEach((e) => e.disabled = !0);
1297
+ }
1298
+ setItemContext() {
1299
+ this.multiSelect ? this.items.forEach((e) => e.context = "multi-select") : (this.items.forEach((e) => e.context = "single-select"), this.value.length > 1 && this.updateValue([this.value[0]]));
1300
+ }
1301
+ setupDragDrop() {
1302
+ Boolean(this.sortable) && this.sortable.destroy(), this.allowDrag && (this.sortable = g.create(this.listboxEl, {
1303
+ animation: 150,
1304
+ draggable: "swirl-option-list-item",
1305
+ handle: ".option-list-item__drag-handle",
1306
+ onEnd: (e) => {
1307
+ this.itemDrop.emit({
1308
+ item: e.item,
1309
+ oldIndex: e.oldIndex,
1310
+ newIndex: e.newIndex
1311
+ });
1312
+ }
1313
+ }));
1314
+ }
1315
+ setItemAllowDragState() {
1316
+ if (this.allowDrag && !this.multiSelect) {
1317
+ console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");
1318
+ return;
1319
+ }
1320
+ const e = de(this.el, "swirl-option-list-section");
1321
+ if (this.allowDrag && e.length > 0) {
1322
+ console.error("[SwirlOptionList] Drag can only be allowed for lists without sections.");
1323
+ return;
1324
+ }
1325
+ this.allowDrag ? this.items.forEach((t) => {
1326
+ t.setAttribute("allow-drag", "true"), t.addEventListener("toggleDrag", this.toggleDrag);
1327
+ }) : this.items.forEach((t) => {
1328
+ t.removeAttribute("allow-drag"), t.removeEventListener("toggleDrag", this.toggleDrag);
1329
+ });
1330
+ }
1331
+ selectItem(e) {
1332
+ if (this.disabled)
1333
+ return;
1334
+ const t = this.items[e];
1335
+ if (t.disabled)
1336
+ return;
1337
+ const i = this.value.includes(t.value);
1338
+ this.multiSelect || (this.value = []), i ? this.updateValue(this.value.filter((n) => n !== t.value)) : this.updateValue([...this.value, t.value]);
1339
+ }
1340
+ updateValue(e) {
1341
+ this.value = e, this.valueChange.emit(this.value);
1342
+ }
1343
+ selectFocusedItem() {
1344
+ this.disabled || this.getActiveItemIndex() === -1 || this.selectItem(this.getActiveItemIndex());
1345
+ }
1346
+ selectAllItems() {
1347
+ if (this.disabled)
1348
+ return;
1349
+ this.items.every((t) => this.value.includes(t.value)) ? this.updateValue([]) : this.updateValue(this.items.map((t) => t.value));
1350
+ }
1351
+ syncItemsWithValue() {
1352
+ var e;
1353
+ (e = this.items) === null || e === void 0 || e.forEach((t) => t.selected = this.value.includes(t.value));
1354
+ }
1355
+ focusItem(e) {
1356
+ var t;
1357
+ if (this.disabled)
1358
+ return;
1359
+ this.items.forEach((n) => n.querySelector('[role="option"]').removeAttribute("tabIndex"));
1360
+ const i = (t = this.items[e]) === null || t === void 0 ? void 0 : t.querySelector('[role="option"]');
1361
+ !Boolean(i) || (i.setAttribute("tabIndex", "0"), i.focus(), this.focusedItem = i);
1362
+ }
1363
+ focusNextItem() {
1364
+ if (this.disabled)
1365
+ return;
1366
+ const e = this.getActiveItemIndex(), t = Math.min(e + 1, this.items.length - 1);
1367
+ this.focusItem(t);
1368
+ }
1369
+ focusPreviousItem() {
1370
+ const e = this.getActiveItemIndex(), t = Math.max(e - 1, 0);
1371
+ this.focusItem(t);
1372
+ }
1373
+ getActiveItemIndex() {
1374
+ return this.items.map((e) => e.querySelector('[role="option"]')).findIndex((e) => e === this.focusedItem);
1375
+ }
1376
+ getItemIndex(e) {
1377
+ return this.items.map((t) => t).findIndex((t) => t === e);
1378
+ }
1379
+ moveDraggedItemDown() {
1380
+ const e = this.dragging.nextElementSibling;
1381
+ !Boolean(e) || (e.after(this.dragging), this.updateItems(), this.listboxEl.focus(), this.assistiveText = `${this.assistiveTextItemMoving} ${this.getActiveItemIndex() + 1}`);
1382
+ }
1383
+ moveDraggedItemUp() {
1384
+ const e = this.dragging.previousElementSibling;
1385
+ !Boolean(e) || (e.before(this.dragging), this.updateItems(), this.listboxEl.focus(), this.assistiveText = `${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging) + 1}`);
1386
+ }
1387
+ render() {
1388
+ const e = this.multiSelect ? "true" : void 0, t = this.disabled ? -1 : 0;
1389
+ return At(ke, null, At("swirl-visually-hidden", { role: "alert" }, this.assistiveText), At("div", { "aria-label": this.label, "aria-multiselectable": e, class: "option-list", id: this.optionListId, onClick: this.onClick, onFocus: this.onFocus, onKeyDown: this.onKeyDown, ref: (i) => this.listboxEl = i, role: "listbox", tabIndex: t }, At("slot", null)));
1390
+ }
1391
+ get el() {
1392
+ return Xe(this);
1393
+ }
1394
+ static get watchers() {
1395
+ return {
1396
+ allowDrag: ["watchAllowDrag"],
1397
+ disabled: ["watchDisabled"],
1398
+ multiSelect: ["watchMultiSelect"],
1399
+ value: ["watchValue"]
1400
+ };
1401
+ }
1402
+ };
1403
+ ci.style = di;
1404
+ export {
1405
+ ci as swirl_option_list
1406
+ };