@webitel/ui-sdk 26.8.21 → 26.8.22

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 (387) hide show
  1. package/dist/{clients-Ba7VhTMH.js → clients-Cgrz-ee-.js} +707 -22
  2. package/dist/{components-ABAwRPPa.js → components-BENKf-0C.js} +882 -846
  3. package/dist/{composables-C_OatTQJ.js → composables-BtWSAI5D.js} +14 -12
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.js +51 -50
  6. package/dist/ui-sdk.umd.cjs +695 -594
  7. package/dist/useEventBus-B-ZeklLu.js +5 -0
  8. package/dist/{useValidation-DgSm80YX.js → useValidation-B4_82RZv.js} +4 -4
  9. package/dist/{useVidstackSrc-B4mUti_c.js → useVidstackSrc-aQcqC_v0.js} +5 -5
  10. package/dist/{vidstack-C6nBVWwn-cKiWT0KJ.js → vidstack-C6nBVWwn-DNsvM1pU.js} +2 -2
  11. package/dist/{vidstack-CI5oafcm-DfWpvayJ.js → vidstack-CI5oafcm-EXmYmdjq.js} +1 -1
  12. package/dist/{vidstack-DUnfBERX2-BJtKHFxc.js → vidstack-DUnfBERX2-jgzDS0Hg.js} +1 -1
  13. package/dist/{vidstack-audio-BCPraiiR.js → vidstack-audio-CPO0A50Q.js} +1 -1
  14. package/dist/{vidstack-dash-MBx5aEEA.js → vidstack-dash-DHt7tTPh.js} +2 -2
  15. package/dist/{vidstack-hls-BbZsbfaO.js → vidstack-hls-WW1jeu5R.js} +2 -2
  16. package/dist/vidstack-video-Bwash4bY.js +2 -0
  17. package/dist/vue-router-Dwey8MMv.js +16 -0
  18. package/dist/{wt-button-G2Q1uf_y.js → wt-button-OZTROX1W.js} +3 -3
  19. package/dist/{wt-chat-emoji-DM6G80G_.js → wt-chat-emoji-ByGj5Mh4.js} +3 -3
  20. package/dist/{wt-datepicker-DTUMTWJK.js → wt-datepicker-OIgnVIpv.js} +38 -34
  21. package/dist/{wt-display-chip-items-3GRXkRfT.js → wt-display-chip-items-BUlu4Pqh.js} +2 -2
  22. package/dist/{wt-dual-panel-Dhj8Eg_y.js → wt-dual-panel-BEGLGU7F.js} +1 -1
  23. package/dist/{wt-expansion-card-BzhcCehz.js → wt-expansion-card-CpmnVJ03.js} +1 -1
  24. package/dist/{wt-galleria-qPHnXPx7.js → wt-galleria-CgY38PPx.js} +3 -6
  25. package/dist/{wt-icon-btn-BJl5VlM9.js → wt-icon-btn-hAWVJdNG.js} +2 -2
  26. package/dist/{wt-navigation-menu-CenQi_-T.js → wt-navigation-menu-BMupOW07.js} +2 -2
  27. package/dist/{wt-notifications-bar-C7cK0wEL.js → wt-notifications-bar-CqVk9cm7.js} +1 -1
  28. package/dist/{wt-player-Ca2x4geU.js → wt-player-vsOVUgi7.js} +17 -15
  29. package/dist/{wt-screen-recordings-action-Dzzo0eqW.js → wt-screen-recordings-action-Dj6ITuhE.js} +1 -1
  30. package/dist/{wt-search-bar-DtJL-csc.js → wt-search-bar-CagDl5av.js} +3 -3
  31. package/dist/wt-send-message-popup-zjxEP-HK.js +1208 -0
  32. package/dist/wt-start-page-BFQExFUj.js +73 -0
  33. package/dist/{wt-status-select-D1hAjCAS.js → wt-status-select-B-N9Fvz4.js} +2 -2
  34. package/dist/{wt-table-DJ3yOWZV.js → wt-table-C4PZJ3rP.js} +49 -47
  35. package/dist/{wt-table-column-select-CgEh5BAF.js → wt-table-column-select-D4c56HPB.js} +2 -2
  36. package/dist/{wt-time-input-u5Ay5_X5.js → wt-time-input-BEBrSugB.js} +9 -2
  37. package/dist/{wt-timepicker-CB8HzUZw.js → wt-timepicker-CQ2TRigf.js} +11 -4
  38. package/dist/{wt-toast-BbaZZWKt.js → wt-toast-Cb15-PN4.js} +1 -1
  39. package/dist/{wt-tree-DZ9ErOGj.js → wt-tree-CMIpbXBo.js} +40 -40
  40. package/dist/{wt-tree-table-C0ZIJXcv.js → wt-tree-table-CVvWMduu.js} +7 -7
  41. package/dist/{wt-type-extension-value-input-kzX2hJY_.js → wt-type-extension-value-input-l3TF0Xtv.js} +14 -9
  42. package/dist/{wt-vidstack-player-DbRHboYo.js → wt-vidstack-player-DV_fxJKW.js} +46 -42
  43. package/package.json +4 -1
  44. package/src/api/clients/_shared/types.ts +30 -0
  45. package/src/api/clients/caseSources/caseSources.ts +17 -8
  46. package/src/api/clients/quickReplies/quickReplies.ts +17 -8
  47. package/src/api/clients/roles/roles.ts +21 -12
  48. package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +16 -4
  49. package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +27 -9
  50. package/src/api/websocket/WebSocketClientController.ts +13 -5
  51. package/src/api/websocket/{config.js → config.ts} +5 -3
  52. package/src/api/websocket/websocketErrorEventHandler.ts +1 -1
  53. package/src/components/_internals/composables/useExpansion/useExpansion.ts +6 -1
  54. package/src/components/_internals/composables/useGalleriaMaskClick/useGalleriaMaskClick.ts +5 -3
  55. package/src/components/_internals/composables/useInputControl/useInputControl.ts +5 -3
  56. package/src/components/_internals/composables/useSelect/types.ts +69 -0
  57. package/src/components/_internals/composables/useSelect/useSelect.ts +4 -2
  58. package/src/components/_internals/composables/useSelect/useSelectCustomValues.ts +3 -2
  59. package/src/components/_internals/composables/useSelect/useSelectDropdown.ts +4 -3
  60. package/src/components/_internals/composables/useSelect/useSelectOptions.ts +20 -14
  61. package/src/components/_internals/composables/useSelect/useSelectUtils.ts +20 -7
  62. package/src/components/_internals/composables/useTableColumnDrag/useTableColumnDrag.ts +22 -12
  63. package/src/components/_internals/composables/useWtTable/useWtTable.ts +6 -2
  64. package/src/components/_internals/types/PrimevueInstance.ts +15 -0
  65. package/src/components/_shared/settings-panel/components/speed-settings/speed-settings.vue +6 -1
  66. package/src/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue +6 -1
  67. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +0 -2
  68. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +0 -2
  69. package/src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue +12 -4
  70. package/src/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue +17 -7
  71. package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +36 -15
  72. package/src/components/on-demand/wt-upload-file-icon-btn/wt-upload-file-icon-btn.vue +1 -1
  73. package/src/components/wt-badge-new/wt-badge.vue +1 -1
  74. package/src/components/wt-button/wt-button.vue +5 -5
  75. package/src/components/wt-checkbox/wt-checkbox.vue +4 -2
  76. package/src/components/wt-chip/wt-chip.vue +1 -1
  77. package/src/components/wt-datepicker/wt-datepicker.vue +30 -20
  78. package/src/components/wt-dual-panel/wt-dual-panel.vue +1 -1
  79. package/src/components/wt-galleria/wt-galleria.vue +1 -11
  80. package/src/components/wt-image/wt-image.vue +3 -3
  81. package/src/components/wt-input-number/wt-input-number.vue +8 -13
  82. package/src/components/wt-input-text/wt-input-text.vue +15 -17
  83. package/src/components/wt-intersection-observer/wt-intersection-observer.vue +1 -1
  84. package/src/components/wt-message/wt-message.vue +1 -1
  85. package/src/components/wt-multi-select/wt-multi-select.vue +22 -12
  86. package/src/components/wt-navigation-bar/types/WtNavigationBar.ts +3 -1
  87. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +34 -18
  88. package/src/components/wt-password/wt-password.vue +12 -13
  89. package/src/components/wt-player/wt-player.vue +7 -2
  90. package/src/components/wt-popover/wt-popover.vue +5 -1
  91. package/src/components/wt-popup/wt-popup.vue +5 -1
  92. package/src/components/wt-radio/wt-radio.vue +1 -1
  93. package/src/components/wt-search-bar/wt-search-bar.vue +17 -10
  94. package/src/components/wt-single-select/wt-single-select.vue +19 -12
  95. package/src/components/wt-status-select/wt-status-select.vue +2 -2
  96. package/src/components/wt-table/types/WtTable.ts +11 -1
  97. package/src/components/wt-table/wt-table.vue +43 -24
  98. package/src/components/wt-table-column-select/wt-table-column-select.vue +3 -5
  99. package/src/components/wt-textarea/wt-textarea.vue +9 -15
  100. package/src/components/wt-time-input/wt-time-input.vue +7 -4
  101. package/src/components/wt-timepicker/wt-timepicker.vue +6 -3
  102. package/src/components/wt-toast/wt-toast.vue +2 -2
  103. package/src/components/wt-tree/wt-tree.vue +6 -5
  104. package/src/components/wt-tree-line/types/wt-tree-node.ts +6 -0
  105. package/src/components/wt-tree-line/wt-tree-line.vue +29 -15
  106. package/src/components/wt-tree-table/wt-tree-table.vue +16 -18
  107. package/src/components/wt-tree-table-row/wt-tree-table-row.vue +9 -4
  108. package/src/components/wt-vidstack-player/components/buttons/fullscreen-button.vue +2 -3
  109. package/src/components/wt-vidstack-player/components/buttons/play-button.vue +1 -5
  110. package/src/components/wt-vidstack-player/components/controls-group/controls-group.vue +2 -4
  111. package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +2 -4
  112. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/buttons/fullscreen-button.vue +0 -2
  113. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/buttons/play-button.vue +2 -4
  114. package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +4 -4
  115. package/src/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue +3 -3
  116. package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +4 -4
  117. package/src/components/wt-vidstack-player/components/screenshot-box/screenshot-box.vue +1 -1
  118. package/src/components/wt-vidstack-player/composables/useVidstackPlayerSize.ts +11 -0
  119. package/src/components/wt-vidstack-player/composables/useVidstackSrc.ts +27 -6
  120. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +7 -4
  121. package/src/enums/MessageColor/MessageColor.ts +1 -1
  122. package/src/enums/MessageVariant/MessageVariant.ts +2 -1
  123. package/src/install.ts +6 -2
  124. package/src/locale/en/en.js +1 -0
  125. package/src/locale/es/es.js +1 -0
  126. package/src/locale/kz/kz.js +1 -0
  127. package/src/locale/pl/pl.js +1 -0
  128. package/src/locale/ro/ro.js +1 -0
  129. package/src/locale/ru/ru.js +1 -0
  130. package/src/locale/uk/uk.js +1 -0
  131. package/src/locale/uz/uz.js +1 -0
  132. package/src/locale/vi/vi.js +1 -0
  133. package/src/mixins/validationMixin/regle/useRegleValidation.ts +2 -2
  134. package/src/mixins/validationMixin/useValidation.ts +1 -1
  135. package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +23 -8
  136. package/src/modules/CSVExport/CSVExport.js +1 -1
  137. package/src/modules/CallSession/modules/VideoCall/video-call.vue +34 -16
  138. package/src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.js +1 -1
  139. package/src/modules/FilesExport/composables/useFilesExport.ts +1 -1
  140. package/src/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue +2 -2
  141. package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +39 -12
  142. package/src/modules/UploadCsvPopup/scripts/normalizeCSVData.ts +20 -17
  143. package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +2 -2
  144. package/src/modules/UploadCsvPopup/scripts/processFile.ts +2 -2
  145. package/src/modules/UploadCsvPopup/scripts/splitAndSaveData.ts +8 -2
  146. package/src/modules/UserNotifications/stores/userNotificationsStore.ts +9 -1
  147. package/src/modules/Userinfo/classes/ApplicationsAccess.ts +12 -6
  148. package/src/modules/Userinfo/mappings/mappings.ts +10 -3
  149. package/src/modules/Userinfo/scripts/utils.ts +8 -4
  150. package/src/modules/Userinfo/stores/accessStore.ts +16 -16
  151. package/src/modules/Userinfo/types/UserAccess.ts +1 -1
  152. package/src/plugins/breakpoint/breakpoint.plugin.ts +1 -1
  153. package/src/scripts/compareSize.ts +4 -4
  154. package/src/scripts/downloadFile/downloadFile.ts +1 -1
  155. package/src/scripts/normalizeDatetime.ts +2 -2
  156. package/src/utils/displayText.ts +1 -1
  157. package/types/.tsbuildinfo +1 -1
  158. package/types/api/clients/_shared/types.d.ts +23 -0
  159. package/types/api/clients/caseSources/caseSources.d.ts +7 -15
  160. package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +1 -1
  161. package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +1 -1
  162. package/types/api/clients/quickReplies/quickReplies.d.ts +7 -15
  163. package/types/api/clients/roles/roles.d.ts +8 -16
  164. package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +11 -12
  165. package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +19 -18
  166. package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +1 -1
  167. package/types/api/defaults/getDefaultGetParams/getDefaultGetParams.d.ts +2 -2
  168. package/types/api/transformers/applyTransform.d.ts +2 -2
  169. package/types/api/websocket/WebSocketClientController.d.ts +10 -9
  170. package/types/api/websocket/config.d.ts +3 -2
  171. package/types/api/websocket/websocketErrorEventHandler.d.ts +5 -1
  172. package/types/assets/icons/iconsRepository.d.ts +1 -1
  173. package/types/components/_internals/composables/useExpansion/useExpansion.d.ts +6 -1
  174. package/types/components/_internals/composables/useGalleriaMaskClick/useGalleriaMaskClick.d.ts +2 -1
  175. package/types/components/_internals/composables/useInputControl/useInputControl.d.ts +4 -2
  176. package/types/components/_internals/composables/useSelect/types.d.ts +52 -0
  177. package/types/components/_internals/composables/useSelect/useSelect.d.ts +4 -18
  178. package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +2 -12
  179. package/types/components/_internals/composables/useSelect/useSelectDropdown.d.ts +2 -14
  180. package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +6 -14
  181. package/types/components/_internals/composables/useSelect/useSelectUtils.d.ts +5 -4
  182. package/types/components/_internals/composables/useTableColumnDrag/useTableColumnDrag.d.ts +3 -1
  183. package/types/components/_internals/composables/useWtTable/useWtTable.d.ts +3 -2
  184. package/types/components/_internals/types/PrimevueInstance.d.ts +14 -0
  185. package/types/components/_shared/settings-panel/components/speed-settings/speed-settings.vue.d.ts +2 -2
  186. package/types/components/_shared/settings-panel/settings-panel.vue.d.ts +1 -1
  187. package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
  188. package/types/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue.d.ts +1 -1
  189. package/types/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue.d.ts +6 -2
  190. package/types/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue.d.ts +6 -6
  191. package/types/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue.d.ts +2 -2
  192. package/types/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue.d.ts +2 -2
  193. package/types/components/on-demand/wt-route-transition/wt-route-transition.vue.d.ts +1 -1
  194. package/types/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue.d.ts +3 -3
  195. package/types/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue.d.ts +10 -2
  196. package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +8 -8
  197. package/types/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue.d.ts +1 -1
  198. package/types/components/on-demand/wt-table-transition/wt-table-transition.vue.d.ts +1 -1
  199. package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +18 -11
  200. package/types/components/on-demand/wt-upload-file-icon-btn/wt-upload-file-icon-btn.vue.d.ts +3 -3
  201. package/types/components/transitions/cases/wt-replace-transition.vue.d.ts +1 -1
  202. package/types/components/transitions/wt-transition.vue.d.ts +1 -1
  203. package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
  204. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +64 -64
  205. package/types/components/wt-app-header/wt-app-header.vue.d.ts +1 -1
  206. package/types/components/wt-app-header/wt-header-actions.vue.d.ts +6 -9
  207. package/types/components/wt-badge/wt-badge.vue.d.ts +1 -1
  208. package/types/components/wt-badge-new/wt-badge.vue.d.ts +3 -3
  209. package/types/components/wt-breadcrumb/wt-breadcrumb.vue.d.ts +1 -1
  210. package/types/components/wt-button/wt-button.vue.d.ts +2 -2
  211. package/types/components/wt-button-select/wt-button-select.vue.d.ts +3 -3
  212. package/types/components/wt-call-media-metric/wt-call-media-metric.vue.d.ts +1 -1
  213. package/types/components/wt-checkbox/wt-checkbox.vue.d.ts +3 -3
  214. package/types/components/wt-chip/wt-chip.vue.d.ts +2 -2
  215. package/types/components/wt-confirm-dialog/wt-confirm-dialog.vue.d.ts +5 -5
  216. package/types/components/wt-context-menu/wt-context-menu.vue.d.ts +7 -7
  217. package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +20 -19
  218. package/types/components/wt-divider/wt-divider.vue.d.ts +1 -1
  219. package/types/components/wt-dual-panel/wt-dual-panel.vue.d.ts +5 -5
  220. package/types/components/wt-empty/wt-empty.vue.d.ts +38 -38
  221. package/types/components/wt-expansion-card/wt-expansion-card.vue.d.ts +3 -3
  222. package/types/components/wt-expansion-panel/wt-expansion-panel.vue.d.ts +3 -3
  223. package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -2
  224. package/types/components/wt-icon/wt-icon.vue.d.ts +1 -1
  225. package/types/components/wt-icon-action/wt-icon-action.vue.d.ts +4 -4
  226. package/types/components/wt-icon-btn/wt-icon-btn.vue.d.ts +3 -3
  227. package/types/components/wt-image/wt-image.vue.d.ts +2 -2
  228. package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +3 -3
  229. package/types/components/wt-input-number/wt-input-number.vue.d.ts +9 -9
  230. package/types/components/wt-input-text/wt-input-text.vue.d.ts +11 -9
  231. package/types/components/wt-intersection-observer/wt-intersection-observer.vue.d.ts +1 -1
  232. package/types/components/wt-item-link/wt-item-link.vue.d.ts +1 -1
  233. package/types/components/wt-label/mixins/labelUsageMixin.d.ts +1 -1
  234. package/types/components/wt-label/wt-label.vue.d.ts +1 -1
  235. package/types/components/wt-menubar/wt-menubar.vue.d.ts +1 -1
  236. package/types/components/wt-message/wt-message.vue.d.ts +1 -1
  237. package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +19 -19
  238. package/types/components/wt-navigation-bar/types/WtNavigationBar.d.ts +2 -1
  239. package/types/components/wt-navigation-bar/wt-navigation-bar.vue.d.ts +22 -45
  240. package/types/components/wt-page-header/wt-page-header.vue.d.ts +4 -4
  241. package/types/components/wt-password/wt-password.vue.d.ts +11 -9
  242. package/types/components/wt-player/wt-player.vue.d.ts +6 -6
  243. package/types/components/wt-popover/wt-popover.vue.d.ts +13 -9
  244. package/types/components/wt-popup/wt-popup.vue.d.ts +8 -4
  245. package/types/components/wt-radio/wt-radio.vue.d.ts +2 -2
  246. package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +25 -18
  247. package/types/components/wt-single-select/wt-single-select.vue.d.ts +18 -15
  248. package/types/components/wt-slider/wt-slider.vue.d.ts +3 -3
  249. package/types/components/wt-status-select/wt-status-select.vue.d.ts +3 -3
  250. package/types/components/wt-stepper/wt-stepper.vue.d.ts +2 -2
  251. package/types/components/wt-switcher/wt-switcher.vue.d.ts +4 -4
  252. package/types/components/wt-table/types/WtTable.d.ts +7 -1
  253. package/types/components/wt-table/wt-table.vue.d.ts +12 -12
  254. package/types/components/wt-table-actions/wt-table-actions.vue.d.ts +2 -2
  255. package/types/components/wt-table-column-select/wt-table-column-select.vue.d.ts +1 -1
  256. package/types/components/wt-tabs/wt-tabs.vue.d.ts +3 -3
  257. package/types/components/wt-textarea/wt-textarea.vue.d.ts +9 -14
  258. package/types/components/wt-time-input/wt-time-input.vue.d.ts +9 -9
  259. package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +8 -8
  260. package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +5 -5
  261. package/types/components/wt-tooltip/wt-tooltip.vue.d.ts +7 -7
  262. package/types/components/wt-tree/wt-tree.vue.d.ts +5 -3
  263. package/types/components/wt-tree-line/types/wt-tree-node.d.ts +5 -0
  264. package/types/components/wt-tree-line/wt-tree-line.vue.d.ts +8 -18
  265. package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +2 -2
  266. package/types/components/wt-tree-table-row/wt-tree-table-row.vue.d.ts +3 -18
  267. package/types/components/wt-vidstack-player/components/buttons/fullscreen-button.vue.d.ts +1 -1
  268. package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +5 -5
  269. package/types/components/wt-vidstack-player/components/panels/playback-controls-panel/components/buttons/fullscreen-button.vue.d.ts +1 -1
  270. package/types/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue.d.ts +1 -1
  271. package/types/components/wt-vidstack-player/components/panels/playback-controls-panel/playback-controls-panel.vue.d.ts +1 -1
  272. package/types/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue.d.ts +3 -3
  273. package/types/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue.d.ts +14 -14
  274. package/types/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue.d.ts +2 -2
  275. package/types/components/wt-vidstack-player/components/screenshot-box/screenshot-box.vue.d.ts +2 -2
  276. package/types/components/wt-vidstack-player/components/toggle-button.vue.d.ts +1 -1
  277. package/types/components/wt-vidstack-player/composables/useVidstackPlayerSize.d.ts +2 -0
  278. package/types/components/wt-vidstack-player/composables/useVidstackSrc.d.ts +11 -4
  279. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +8 -7
  280. package/types/composables/useCachedInterval/useCachedInterval.d.ts +1 -1
  281. package/types/composables/useCachedItemInstanceName/useCachedItemInstanceName.d.ts +1 -1
  282. package/types/composables/useCard/useCardTabs.d.ts +1 -1
  283. package/types/composables/useClose/useClose.d.ts +1 -1
  284. package/types/enums/MessageColor/MessageColor.d.ts +1 -1
  285. package/types/enums/MessageVariant/MessageVariant.d.ts +1 -1
  286. package/types/locale/en/en.d.ts +3 -2
  287. package/types/locale/es/es.d.ts +3 -2
  288. package/types/locale/i18n.d.ts +27 -18
  289. package/types/locale/index.d.ts +27 -18
  290. package/types/locale/kz/kz.d.ts +3 -2
  291. package/types/locale/pl/pl.d.ts +3 -2
  292. package/types/locale/ro/ro.d.ts +3 -2
  293. package/types/locale/ru/ru.d.ts +3 -2
  294. package/types/locale/uk/uk.d.ts +3 -2
  295. package/types/locale/uz/uz.d.ts +3 -2
  296. package/types/locale/vi/vi.d.ts +3 -2
  297. package/types/mixins/dataFilterMixins/_urlControllerMixin/_urlControllerMixin.d.ts +1 -1
  298. package/types/mixins/dataFilterMixins/apiFilterMixin.d.ts +3 -3
  299. package/types/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.d.ts +1 -1
  300. package/types/mixins/dataFilterMixins/enumFilterMixin.d.ts +4 -4
  301. package/types/mixins/dataFilterMixins/paginationFilterMixin.d.ts +2 -2
  302. package/types/mixins/dataFilterMixins/sortFilterMixin.d.ts +1 -1
  303. package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +1 -1
  304. package/types/mixins/validationMixin/useValidation.d.ts +2 -2
  305. package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
  306. package/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +9 -5
  307. package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +1 -1
  308. package/types/modules/AgentPdfs/components/pdf-status-preview.vue.d.ts +1 -1
  309. package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +4 -4
  310. package/types/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue.d.ts +1 -1
  311. package/types/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue.d.ts +1 -1
  312. package/types/modules/Appearance/components/wt-dark-mode-switcher.vue.d.ts +1 -1
  313. package/types/modules/Appearance/pinia/store/AppearanceStore.d.ts +3 -3
  314. package/types/modules/Appearance/store/AppearanceStoreModule.d.ts +1 -1
  315. package/types/modules/AuditForm/components/audit-form-question-read-wrapper.vue.d.ts +3 -3
  316. package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +2 -2
  317. package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +7 -7
  318. package/types/modules/AuditForm/components/audit-form.vue.d.ts +6 -6
  319. package/types/modules/AuditForm/components/form/form-footer/audit-form-footer.vue.d.ts +3 -3
  320. package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options-write-row.vue.d.ts +2 -2
  321. package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue.d.ts +4 -4
  322. package/types/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue.d.ts +6 -6
  323. package/types/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue.d.ts +2 -2
  324. package/types/modules/CSVExport/CSVExport.d.ts +3 -6
  325. package/types/modules/CSVExport/XLSExport.d.ts +1 -1
  326. package/types/modules/CSVExport/composables/useCSVExport.d.ts +6 -6
  327. package/types/modules/CSVExport/mixins/exportCSVMixin.d.ts +1 -1
  328. package/types/modules/CSVExport/mixins/exportXLSMixin.d.ts +1 -1
  329. package/types/modules/CallSession/modules/ScreenSharing/screen-sharing.vue.d.ts +3 -3
  330. package/types/modules/CallSession/modules/VideoCall/composables/useReceiverLiveStream.d.ts +6 -6
  331. package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +17 -17
  332. package/types/modules/CardStoreModule/store/CardStoreModule.d.ts +1 -1
  333. package/types/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue.d.ts +2 -2
  334. package/types/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.d.ts +1 -1
  335. package/types/modules/Filters/classes/BaseFilterSchema.d.ts +7 -7
  336. package/types/modules/Filters/components/filter-search.vue.d.ts +2 -2
  337. package/types/modules/Filters/components/filter-table-fields.vue.d.ts +3 -3
  338. package/types/modules/Filters/scripts/getters/localStorageGetter.d.ts +1 -1
  339. package/types/modules/Filters/store/FiltersStoreModule.d.ts +1 -1
  340. package/types/modules/Notifications/assets/audio/triggerSound.d.ts +1 -1
  341. package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +9 -9
  342. package/types/modules/ObjectPermissions/components/_internal/permissions-role-row.vue.d.ts +1 -1
  343. package/types/modules/ObjectPermissions/components/_internal/permissions-role-select.vue.d.ts +1 -1
  344. package/types/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue.d.ts +5 -5
  345. package/types/modules/ObjectPermissions/components/_internal/permissions-tab-role-popup.vue.d.ts +2 -2
  346. package/types/modules/ObjectPermissions/headers/headers.d.ts +1 -1
  347. package/types/modules/ObjectPermissions/store/objectPermissionsStoreModule.d.ts +2 -2
  348. package/types/modules/QueryFilters/classes/BaseFilterSchema.d.ts +2 -2
  349. package/types/modules/QueryFilters/components/abstract-api-filter.vue.d.ts +1 -1
  350. package/types/modules/QueryFilters/components/abstract-enum-filter.vue.d.ts +1 -1
  351. package/types/modules/QueryFilters/components/filter-datetime.vue.d.ts +1 -1
  352. package/types/modules/QueryFilters/components/filter-from-to.vue.d.ts +1 -1
  353. package/types/modules/QueryFilters/components/filter-search.vue.d.ts +1 -1
  354. package/types/modules/QueryFilters/components/filter-table-fields.vue.d.ts +3 -3
  355. package/types/modules/QueryFilters/mixins/_urlControllerMixin/_urlControllerMixin.d.ts +1 -1
  356. package/types/modules/QueryFilters/mixins/apiFilterMixin.d.ts +1 -1
  357. package/types/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.d.ts +1 -1
  358. package/types/modules/QueryFilters/mixins/enumFilterMixin.d.ts +1 -1
  359. package/types/modules/QueryFilters/mixins/paginationFilterMixin.d.ts +2 -2
  360. package/types/modules/QueryFilters/mixins/sortFilterMixin.d.ts +1 -1
  361. package/types/modules/QueryFilters/store/QueryFiltersStoreModule.d.ts +4 -4
  362. package/types/modules/TableComponentModule/composables/useTableEmpty.d.ts +7 -7
  363. package/types/modules/TableStoreModule/store/TableStoreModule.d.ts +5 -5
  364. package/types/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue.d.ts +5 -5
  365. package/types/modules/UploadCsvPopup/composable/useUploadCsv.d.ts +21 -11
  366. package/types/modules/UploadCsvPopup/scripts/normalizeCSVData.d.ts +15 -20
  367. package/types/modules/UploadCsvPopup/scripts/parseCSV.d.ts +2 -1
  368. package/types/modules/UploadCsvPopup/scripts/processFile.d.ts +2 -2
  369. package/types/modules/UploadCsvPopup/scripts/splitAndSaveData.d.ts +3 -3
  370. package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +2 -10
  371. package/types/modules/Userinfo/mappings/mappings.d.ts +12 -24
  372. package/types/modules/Userinfo/scripts/utils.d.ts +2 -2
  373. package/types/modules/Userinfo/stores/settingsStore.d.ts +4 -4
  374. package/types/modules/Userinfo/stores/userinfoStore.d.ts +3 -3
  375. package/types/modules/Userinfo/types/UserAccess.d.ts +1 -1
  376. package/types/scripts/compareSize.d.ts +4 -4
  377. package/types/scripts/debounce.d.ts +1 -1
  378. package/types/scripts/sortQueryAdapters.d.ts +3 -3
  379. package/types/store/BaseStoreModules/BaseStoreModule.d.ts +6 -6
  380. package/types/store/new/modules/apiStoreModule/apiStoreModule.d.ts +12 -12
  381. package/types/store/new/modules/tableStoreModule/tableStoreModule.d.ts +4 -4
  382. package/types/utils/displayText.d.ts +1 -1
  383. package/types/validations/config/errors/customZodErrorsHandler.d.ts +1 -1
  384. package/dist/vidstack-video-DwlbGwN7.js +0 -2
  385. package/dist/wt-send-message-popup-MbV1uq6H.js +0 -77
  386. package/dist/wt-start-page-DMXRhA9E.js +0 -86
  387. package/dist/{wt-popover-ChCN6b1o.js → wt-popover-lP-AhF8l.js} +3 -3
@@ -0,0 +1,1208 @@
1
+ import { t as e } from "./rolldown-runtime-BEcgMyyN.js";
2
+ import { n as t, r as n } from "./clients-Cgrz-ee-.js";
3
+ import { T as r, n as i, w as a } from "./components-BENKf-0C.js";
4
+ import { t as o } from "./vue-i18n-Db_oYfO8.js";
5
+ import { n as s } from "./useEventBus-B-ZeklLu.js";
6
+ import { createBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
7
+ //#region node_modules/lodash/_baseGet.js
8
+ var b = /* @__PURE__ */ e(((e, t) => {
9
+ var n = r(), i = a();
10
+ function o(e, t) {
11
+ t = n(t, e);
12
+ for (var r = 0, a = t.length; e != null && r < a;) e = e[i(t[r++])];
13
+ return r && r == a ? e : void 0;
14
+ }
15
+ t.exports = o;
16
+ }));
17
+ (/* @__PURE__ */ e(((e, t) => {
18
+ var n = b();
19
+ function r(e, t, r) {
20
+ var i = e == null ? void 0 : n(e, t);
21
+ return i === void 0 ? r : i;
22
+ }
23
+ t.exports = r;
24
+ })))();
25
+ //#endregion
26
+ //#region node_modules/sortablejs/modular/sortable.esm.js
27
+ function x(e, t, n) {
28
+ return (t = re(t)) in e ? Object.defineProperty(e, t, {
29
+ value: n,
30
+ enumerable: !0,
31
+ configurable: !0,
32
+ writable: !0
33
+ }) : e[t] = n, e;
34
+ }
35
+ function S() {
36
+ return S = Object.assign ? Object.assign.bind() : function(e) {
37
+ for (var t = 1; t < arguments.length; t++) {
38
+ var n = arguments[t];
39
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40
+ }
41
+ return e;
42
+ }, S.apply(null, arguments);
43
+ }
44
+ function ee(e, t) {
45
+ var n = Object.keys(e);
46
+ if (Object.getOwnPropertySymbols) {
47
+ var r = Object.getOwnPropertySymbols(e);
48
+ t && (r = r.filter(function(t) {
49
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
50
+ })), n.push.apply(n, r);
51
+ }
52
+ return n;
53
+ }
54
+ function C(e) {
55
+ for (var t = 1; t < arguments.length; t++) {
56
+ var n = arguments[t] == null ? {} : arguments[t];
57
+ t % 2 ? ee(Object(n), !0).forEach(function(t) {
58
+ x(e, t, n[t]);
59
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ee(Object(n)).forEach(function(t) {
60
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
61
+ });
62
+ }
63
+ return e;
64
+ }
65
+ function w(e, t) {
66
+ if (e == null) return {};
67
+ var n, r, i = te(e, t);
68
+ if (Object.getOwnPropertySymbols) {
69
+ var a = Object.getOwnPropertySymbols(e);
70
+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
71
+ }
72
+ return i;
73
+ }
74
+ function te(e, t) {
75
+ if (e == null) return {};
76
+ var n = {};
77
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
78
+ if (t.indexOf(r) !== -1) continue;
79
+ n[r] = e[r];
80
+ }
81
+ return n;
82
+ }
83
+ function ne(e, t) {
84
+ if (typeof e != "object" || !e) return e;
85
+ var n = e[Symbol.toPrimitive];
86
+ if (n !== void 0) {
87
+ var r = n.call(e, t || "default");
88
+ if (typeof r != "object") return r;
89
+ throw TypeError("@@toPrimitive must return a primitive value.");
90
+ }
91
+ return (t === "string" ? String : Number)(e);
92
+ }
93
+ function re(e) {
94
+ var t = ne(e, "string");
95
+ return typeof t == "symbol" ? t : t + "";
96
+ }
97
+ function T(e) {
98
+ "@babel/helpers - typeof";
99
+ return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
100
+ return typeof e;
101
+ } : function(e) {
102
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
103
+ }, T(e);
104
+ }
105
+ var ie = "1.15.7";
106
+ function E(e) {
107
+ if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
108
+ }
109
+ var D = E(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), O = E(/Edge/i), ae = E(/firefox/i), oe = E(/safari/i) && !E(/chrome/i) && !E(/android/i), se = E(/iP(ad|od|hone)/i), ce = E(/chrome/i) && E(/android/i), le = {
110
+ capture: !1,
111
+ passive: !1
112
+ };
113
+ function k(e, t, n) {
114
+ e.addEventListener(t, n, !D && le);
115
+ }
116
+ function A(e, t, n) {
117
+ e.removeEventListener(t, n, !D && le);
118
+ }
119
+ function ue(e, t) {
120
+ if (t) {
121
+ if (t[0] === ">" && (t = t.substring(1)), e) try {
122
+ if (e.matches) return e.matches(t);
123
+ if (e.msMatchesSelector) return e.msMatchesSelector(t);
124
+ if (e.webkitMatchesSelector) return e.webkitMatchesSelector(t);
125
+ } catch {
126
+ return !1;
127
+ }
128
+ return !1;
129
+ }
130
+ }
131
+ function de(e) {
132
+ return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
133
+ }
134
+ function j(e, t, n, r) {
135
+ if (e) {
136
+ n ||= document;
137
+ do {
138
+ if (t != null && (t[0] === ">" ? e.parentNode === n && ue(e, t) : ue(e, t)) || r && e === n) return e;
139
+ if (e === n) break;
140
+ } while (e = de(e));
141
+ }
142
+ return null;
143
+ }
144
+ var fe = /\s+/g;
145
+ function M(e, t, n) {
146
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(fe, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(fe, " "));
147
+ }
148
+ function N(e, t, n) {
149
+ var r = e && e.style;
150
+ if (r) {
151
+ if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
152
+ !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
153
+ }
154
+ }
155
+ function pe(e, t) {
156
+ var n = "";
157
+ if (typeof e == "string") n = e;
158
+ else do {
159
+ var r = N(e, "transform");
160
+ r && r !== "none" && (n = r + " " + n);
161
+ } while (!t && (e = e.parentNode));
162
+ var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
163
+ return i && new i(n);
164
+ }
165
+ function me(e, t, n) {
166
+ if (e) {
167
+ var r = e.getElementsByTagName(t), i = 0, a = r.length;
168
+ if (n) for (; i < a; i++) n(r[i], i);
169
+ return r;
170
+ }
171
+ return [];
172
+ }
173
+ function P() {
174
+ return document.scrollingElement || document.documentElement;
175
+ }
176
+ function F(e, t, n, r, i) {
177
+ if (!(!e.getBoundingClientRect && e !== window)) {
178
+ var a, o, s, c, l, u, d;
179
+ if (e !== window && e.parentNode && e !== P() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !D)) do
180
+ if (i && i.getBoundingClientRect && (N(i, "transform") !== "none" || n && N(i, "position") !== "static")) {
181
+ var f = i.getBoundingClientRect();
182
+ o -= f.top + parseInt(N(i, "border-top-width")), s -= f.left + parseInt(N(i, "border-left-width")), c = o + a.height, l = s + a.width;
183
+ break;
184
+ }
185
+ while (i = i.parentNode);
186
+ if (r && e !== window) {
187
+ var p = pe(i || e), m = p && p.a, h = p && p.d;
188
+ p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
189
+ }
190
+ return {
191
+ top: o,
192
+ left: s,
193
+ bottom: c,
194
+ right: l,
195
+ width: d,
196
+ height: u
197
+ };
198
+ }
199
+ }
200
+ function he(e, t, n) {
201
+ for (var r = L(e, !0), i = F(e)[t]; r;) {
202
+ var a = F(r)[n], o = void 0;
203
+ if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
204
+ if (r === P()) break;
205
+ r = L(r, !1);
206
+ }
207
+ return !1;
208
+ }
209
+ function ge(e, t, n, r) {
210
+ for (var i = 0, a = 0, o = e.children; a < o.length;) {
211
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && j(o[a], n.draggable, e, !1)) {
212
+ if (i === t) return o[a];
213
+ i++;
214
+ }
215
+ a++;
216
+ }
217
+ return null;
218
+ }
219
+ function _e(e, t) {
220
+ for (var n = e.lastElementChild; n && (n === Q.ghost || N(n, "display") === "none" || t && !ue(n, t));) n = n.previousElementSibling;
221
+ return n || null;
222
+ }
223
+ function I(e, t) {
224
+ var n = 0;
225
+ if (!e || !e.parentNode) return -1;
226
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ue(e, t)) && n++;
227
+ return n;
228
+ }
229
+ function ve(e) {
230
+ var t = 0, n = 0, r = P();
231
+ if (e) do {
232
+ var i = pe(e), a = i.a, o = i.d;
233
+ t += e.scrollLeft * a, n += e.scrollTop * o;
234
+ } while (e !== r && (e = e.parentNode));
235
+ return [t, n];
236
+ }
237
+ function ye(e, t) {
238
+ for (var n in e) if (e.hasOwnProperty(n)) {
239
+ for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
240
+ }
241
+ return -1;
242
+ }
243
+ function L(e, t) {
244
+ if (!e || !e.getBoundingClientRect) return P();
245
+ var n = e, r = !1;
246
+ do
247
+ if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
248
+ var i = N(n);
249
+ if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
250
+ if (!n.getBoundingClientRect || n === document.body) return P();
251
+ if (r || t) return n;
252
+ r = !0;
253
+ }
254
+ }
255
+ while (n = n.parentNode);
256
+ return P();
257
+ }
258
+ function be(e, t) {
259
+ if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
260
+ return e;
261
+ }
262
+ function xe(e, t) {
263
+ 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);
264
+ }
265
+ var Se;
266
+ function Ce(e, t) {
267
+ return function() {
268
+ if (!Se) {
269
+ var n = arguments, r = this;
270
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Se = setTimeout(function() {
271
+ Se = void 0;
272
+ }, t);
273
+ }
274
+ };
275
+ }
276
+ function we() {
277
+ clearTimeout(Se), Se = void 0;
278
+ }
279
+ function Te(e, t, n) {
280
+ e.scrollLeft += t, e.scrollTop += n;
281
+ }
282
+ function Ee(e) {
283
+ var t = window.Polymer, n = window.jQuery || window.Zepto;
284
+ return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
285
+ }
286
+ function De(e, t, n) {
287
+ var r = {};
288
+ return Array.from(e.children).forEach(function(i) {
289
+ if (!(!j(i, t.draggable, e, !1) || i.animated || i === n)) {
290
+ var a = F(i);
291
+ r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
292
+ }
293
+ }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
294
+ }
295
+ var R = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
296
+ function Oe() {
297
+ var e = [], t;
298
+ return {
299
+ captureAnimationState: function() {
300
+ e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
301
+ if (!(N(t, "display") === "none" || t === Q.ghost)) {
302
+ e.push({
303
+ target: t,
304
+ rect: F(t)
305
+ });
306
+ var n = C({}, e[e.length - 1].rect);
307
+ if (t.thisAnimationDuration) {
308
+ var r = pe(t, !0);
309
+ r && (n.top -= r.f, n.left -= r.e);
310
+ }
311
+ t.fromRect = n;
312
+ }
313
+ });
314
+ },
315
+ addAnimationState: function(t) {
316
+ e.push(t);
317
+ },
318
+ removeAnimationState: function(t) {
319
+ e.splice(ye(e, { target: t }), 1);
320
+ },
321
+ animateAll: function(n) {
322
+ var r = this;
323
+ if (!this.options.animation) {
324
+ clearTimeout(t), typeof n == "function" && n();
325
+ return;
326
+ }
327
+ var i = !1, a = 0;
328
+ e.forEach(function(e) {
329
+ var t = 0, n = e.target, o = n.fromRect, s = F(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = pe(n, !0);
330
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && xe(c, s) && !xe(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ae(u, c, l, r.options)), xe(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
331
+ n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
332
+ }, t), n.thisAnimationDuration = t);
333
+ }), clearTimeout(t), i ? t = setTimeout(function() {
334
+ typeof n == "function" && n();
335
+ }, a) : typeof n == "function" && n(), e = [];
336
+ },
337
+ animate: function(e, t, n, r) {
338
+ if (r) {
339
+ N(e, "transition", ""), N(e, "transform", "");
340
+ var i = pe(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
341
+ e.animatingX = !!s, e.animatingY = !!c, N(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ke(e), N(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), N(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
342
+ N(e, "transition", ""), N(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
343
+ }, r);
344
+ }
345
+ }
346
+ };
347
+ }
348
+ function ke(e) {
349
+ return e.offsetWidth;
350
+ }
351
+ function Ae(e, t, n, r) {
352
+ return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
353
+ }
354
+ var je = [], Me = { initializeByDefault: !0 }, Ne = {
355
+ mount: function(e) {
356
+ for (var t in Me) Me.hasOwnProperty(t) && !(t in e) && (e[t] = Me[t]);
357
+ je.forEach(function(t) {
358
+ if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
359
+ }), je.push(e);
360
+ },
361
+ pluginEvent: function(e, t, n) {
362
+ var r = this;
363
+ this.eventCanceled = !1, n.cancel = function() {
364
+ r.eventCanceled = !0;
365
+ };
366
+ var i = e + "Global";
367
+ je.forEach(function(r) {
368
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](C({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](C({ sortable: t }, n)));
369
+ });
370
+ },
371
+ initializePlugins: function(e, t, n, r) {
372
+ for (var i in je.forEach(function(r) {
373
+ var i = r.pluginName;
374
+ if (!(!e.options[i] && !r.initializeByDefault)) {
375
+ var a = new r(e, t, e.options);
376
+ a.sortable = e, a.options = e.options, e[i] = a, S(n, a.defaults);
377
+ }
378
+ }), e.options) if (e.options.hasOwnProperty(i)) {
379
+ var a = this.modifyOption(e, i, e.options[i]);
380
+ a !== void 0 && (e.options[i] = a);
381
+ }
382
+ },
383
+ getEventProperties: function(e, t) {
384
+ var n = {};
385
+ return je.forEach(function(r) {
386
+ typeof r.eventProperties == "function" && S(n, r.eventProperties.call(t[r.pluginName], e));
387
+ }), n;
388
+ },
389
+ modifyOption: function(e, t, n) {
390
+ var r;
391
+ return je.forEach(function(i) {
392
+ e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
393
+ }), r;
394
+ }
395
+ };
396
+ function Pe(e) {
397
+ var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
398
+ if (t ||= n && n[R], t) {
399
+ var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
400
+ window.CustomEvent && !D && !O ? h = new CustomEvent(r, {
401
+ bubbles: !0,
402
+ cancelable: !0
403
+ }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
404
+ var v = C(C({}, m), Ne.getEventProperties(r, t));
405
+ for (var y in v) h[y] = v[y];
406
+ n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
407
+ }
408
+ }
409
+ var Fe = ["evt"], z = function(e, t) {
410
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = w(n, Fe);
411
+ Ne.pluginEvent.bind(Q)(e, t, C({
412
+ dragEl: V,
413
+ parentEl: H,
414
+ ghostEl: U,
415
+ rootEl: W,
416
+ nextEl: Ie,
417
+ lastDownEl: Le,
418
+ cloneEl: G,
419
+ cloneHidden: K,
420
+ dragStarted: Ye,
421
+ putSortable: Y,
422
+ activeSortable: Q.active,
423
+ originalEvent: r,
424
+ oldIndex: Re,
425
+ oldDraggableIndex: ze,
426
+ newIndex: q,
427
+ newDraggableIndex: J,
428
+ hideGhostForTarget: pt,
429
+ unhideGhostForTarget: mt,
430
+ cloneNowHidden: function() {
431
+ K = !0;
432
+ },
433
+ cloneNowShown: function() {
434
+ K = !1;
435
+ },
436
+ dispatchSortableEvent: function(e) {
437
+ B({
438
+ sortable: t,
439
+ name: e,
440
+ originalEvent: r
441
+ });
442
+ }
443
+ }, i));
444
+ };
445
+ function B(e) {
446
+ Pe(C({
447
+ putSortable: Y,
448
+ cloneEl: G,
449
+ targetEl: V,
450
+ rootEl: W,
451
+ oldIndex: Re,
452
+ oldDraggableIndex: ze,
453
+ newIndex: q,
454
+ newDraggableIndex: J
455
+ }, e));
456
+ }
457
+ var V, H, U, W, Ie, Le, G, K, Re, q, ze, J, Be, Y, Ve = !1, He = !1, Ue = [], We, X, Ge, Ke, qe, Je, Ye, Xe, Ze, Qe = !1, $e = !1, et, Z, tt = [], nt = !1, rt = [], it = typeof document < "u", at = se, ot = O || D ? "cssFloat" : "float", st = it && !ce && !se && "draggable" in document.createElement("div"), ct = function() {
458
+ if (it) {
459
+ if (D) return !1;
460
+ var e = document.createElement("x");
461
+ return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
462
+ }
463
+ }(), lt = function(e, t) {
464
+ var n = N(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = ge(e, 0, t), a = ge(e, 1, t), o = i && N(i), s = a && N(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + F(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + F(a).width;
465
+ if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
466
+ if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
467
+ if (i && o.float && o.float !== "none") {
468
+ var u = o.float === "left" ? "left" : "right";
469
+ return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
470
+ }
471
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ot] === "none" || a && n[ot] === "none" && c + l > r) ? "vertical" : "horizontal";
472
+ }, ut = function(e, t, n) {
473
+ var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
474
+ return r === o || i === s || r + a / 2 === o + c / 2;
475
+ }, dt = function(e, t) {
476
+ var n;
477
+ return Ue.some(function(r) {
478
+ var i = r[R].options.emptyInsertThreshold;
479
+ if (!(!i || _e(r))) {
480
+ var a = F(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
481
+ if (o && s) return n = r;
482
+ }
483
+ }), n;
484
+ }, ft = function(e) {
485
+ function t(e, n) {
486
+ return function(r, i, a, o) {
487
+ var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
488
+ if (e == null && (n || s)) return !0;
489
+ if (e == null || e === !1) return !1;
490
+ if (n && e === "clone") return e;
491
+ if (typeof e == "function") return t(e(r, i, a, o), n)(r, i, a, o);
492
+ var c = (n ? r : i).options.group.name;
493
+ return e === !0 || typeof e == "string" && e === c || e.join && e.indexOf(c) > -1;
494
+ };
495
+ }
496
+ var n = {}, r = e.group;
497
+ (!r || T(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
498
+ }, pt = function() {
499
+ !ct && U && N(U, "display", "none");
500
+ }, mt = function() {
501
+ !ct && U && N(U, "display", "");
502
+ };
503
+ it && !ce && document.addEventListener("click", function(e) {
504
+ if (He) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), He = !1, !1;
505
+ }, !0);
506
+ var ht = function(e) {
507
+ if (V) {
508
+ e = e.touches ? e.touches[0] : e;
509
+ var t = dt(e.clientX, e.clientY);
510
+ if (t) {
511
+ var n = {};
512
+ for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
513
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[R]._onDragOver(n);
514
+ }
515
+ }
516
+ }, gt = function(e) {
517
+ V && V.parentNode[R]._isOutsideThisEl(e.target);
518
+ };
519
+ function Q(e, t) {
520
+ if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
521
+ this.el = e, this.options = t = S({}, t), e[R] = this;
522
+ var n = {
523
+ group: null,
524
+ sort: !0,
525
+ disabled: !1,
526
+ store: null,
527
+ handle: null,
528
+ draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
529
+ swapThreshold: 1,
530
+ invertSwap: !1,
531
+ invertedSwapThreshold: null,
532
+ removeCloneOnHide: !0,
533
+ direction: function() {
534
+ return lt(e, this.options);
535
+ },
536
+ ghostClass: "sortable-ghost",
537
+ chosenClass: "sortable-chosen",
538
+ dragClass: "sortable-drag",
539
+ ignore: "a, img",
540
+ filter: null,
541
+ preventOnFilter: !0,
542
+ animation: 0,
543
+ easing: null,
544
+ setData: function(e, t) {
545
+ e.setData("Text", t.textContent);
546
+ },
547
+ dropBubble: !1,
548
+ dragoverBubble: !1,
549
+ dataIdAttr: "data-id",
550
+ delay: 0,
551
+ delayOnTouchOnly: !1,
552
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
553
+ forceFallback: !1,
554
+ fallbackClass: "sortable-fallback",
555
+ fallbackOnBody: !1,
556
+ fallbackTolerance: 0,
557
+ fallbackOffset: {
558
+ x: 0,
559
+ y: 0
560
+ },
561
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!oe || se),
562
+ emptyInsertThreshold: 5
563
+ };
564
+ for (var r in Ne.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
565
+ for (var i in ft(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
566
+ this.nativeDraggable = t.forceFallback ? !1 : st, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? k(e, "pointerdown", this._onTapStart) : (k(e, "mousedown", this._onTapStart), k(e, "touchstart", this._onTapStart)), this.nativeDraggable && (k(e, "dragover", this), k(e, "dragenter", this)), Ue.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), S(this, Oe());
567
+ }
568
+ Q.prototype = {
569
+ constructor: Q,
570
+ _isOutsideThisEl: function(e) {
571
+ !this.el.contains(e) && e !== this.el && (Xe = null);
572
+ },
573
+ _getDirection: function(e, t) {
574
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, V) : this.options.direction;
575
+ },
576
+ _onTapStart: function(e) {
577
+ if (e.cancelable) {
578
+ var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
579
+ if (Et(n), !V && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && oe && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Le !== s)) {
580
+ if (Re = I(s), ze = I(s, r.draggable), typeof l == "function") {
581
+ if (l.call(this, e, s, this)) {
582
+ B({
583
+ sortable: t,
584
+ rootEl: c,
585
+ name: "filter",
586
+ targetEl: s,
587
+ toEl: n,
588
+ fromEl: n
589
+ }), z("filter", t, { evt: e }), i && e.preventDefault();
590
+ return;
591
+ }
592
+ } else if (l && (l = l.split(",").some(function(r) {
593
+ if (r = j(c, r.trim(), n, !1), r) return B({
594
+ sortable: t,
595
+ rootEl: r,
596
+ name: "filter",
597
+ targetEl: s,
598
+ fromEl: n,
599
+ toEl: n
600
+ }), z("filter", t, { evt: e }), !0;
601
+ }), l)) {
602
+ i && e.preventDefault();
603
+ return;
604
+ }
605
+ r.handle && !j(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
606
+ }
607
+ }
608
+ },
609
+ _prepareDragStart: function(e, t, n) {
610
+ var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
611
+ if (n && !V && n.parentNode === i) {
612
+ var c = F(n);
613
+ if (W = i, V = n, H = V.parentNode, Ie = V.nextSibling, Le = n, Be = a.group, Q.dragged = V, We = {
614
+ target: V,
615
+ clientX: (t || e).clientX,
616
+ clientY: (t || e).clientY
617
+ }, qe = We.clientX - c.left, Je = We.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, V.style["will-change"] = "all", s = function() {
618
+ if (z("delayEnded", r, { evt: e }), Q.eventCanceled) {
619
+ r._onDrop();
620
+ return;
621
+ }
622
+ r._disableDelayedDragEvents(), !ae && r.nativeDraggable && (V.draggable = !0), r._triggerDragStart(e, t), B({
623
+ sortable: r,
624
+ name: "choose",
625
+ originalEvent: e
626
+ }), M(V, a.chosenClass, !0);
627
+ }, a.ignore.split(",").forEach(function(e) {
628
+ me(V, e.trim(), yt);
629
+ }), k(o, "dragover", ht), k(o, "mousemove", ht), k(o, "touchmove", ht), a.supportPointer ? (k(o, "pointerup", r._onDrop), !this.nativeDraggable && k(o, "pointercancel", r._onDrop)) : (k(o, "mouseup", r._onDrop), k(o, "touchend", r._onDrop), k(o, "touchcancel", r._onDrop)), ae && this.nativeDraggable && (this.options.touchStartThreshold = 4, V.draggable = !0), z("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(O || D))) {
630
+ if (Q.eventCanceled) {
631
+ this._onDrop();
632
+ return;
633
+ }
634
+ a.supportPointer ? (k(o, "pointerup", r._disableDelayedDrag), k(o, "pointercancel", r._disableDelayedDrag)) : (k(o, "mouseup", r._disableDelayedDrag), k(o, "touchend", r._disableDelayedDrag), k(o, "touchcancel", r._disableDelayedDrag)), k(o, "mousemove", r._delayedDragTouchMoveHandler), k(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && k(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
635
+ } else s();
636
+ }
637
+ },
638
+ _delayedDragTouchMoveHandler: function(e) {
639
+ var t = e.touches ? e.touches[0] : e;
640
+ Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
641
+ },
642
+ _disableDelayedDrag: function() {
643
+ V && yt(V), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
644
+ },
645
+ _disableDelayedDragEvents: function() {
646
+ var e = this.el.ownerDocument;
647
+ A(e, "mouseup", this._disableDelayedDrag), A(e, "touchend", this._disableDelayedDrag), A(e, "touchcancel", this._disableDelayedDrag), A(e, "pointerup", this._disableDelayedDrag), A(e, "pointercancel", this._disableDelayedDrag), A(e, "mousemove", this._delayedDragTouchMoveHandler), A(e, "touchmove", this._delayedDragTouchMoveHandler), A(e, "pointermove", this._delayedDragTouchMoveHandler);
648
+ },
649
+ _triggerDragStart: function(e, t) {
650
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? k(document, "pointermove", this._onTouchMove) : t ? k(document, "touchmove", this._onTouchMove) : k(document, "mousemove", this._onTouchMove) : (k(V, "dragend", this), k(W, "dragstart", this._onDragStart));
651
+ try {
652
+ document.selection ? Dt(function() {
653
+ document.selection.empty();
654
+ }) : window.getSelection().removeAllRanges();
655
+ } catch {}
656
+ },
657
+ _dragStarted: function(e, t) {
658
+ if (Ve = !1, W && V) {
659
+ z("dragStarted", this, { evt: t }), this.nativeDraggable && k(document, "dragover", gt);
660
+ var n = this.options;
661
+ !e && M(V, n.dragClass, !1), M(V, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), B({
662
+ sortable: this,
663
+ name: "start",
664
+ originalEvent: t
665
+ });
666
+ } else this._nulling();
667
+ },
668
+ _emulateDragOver: function() {
669
+ if (X) {
670
+ this._lastX = X.clientX, this._lastY = X.clientY, pt();
671
+ for (var e = document.elementFromPoint(X.clientX, X.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(X.clientX, X.clientY), e !== t);) t = e;
672
+ if (V.parentNode[R]._isOutsideThisEl(e), t) do {
673
+ if (t[R]) {
674
+ var n = void 0;
675
+ if (n = t[R]._onDragOver({
676
+ clientX: X.clientX,
677
+ clientY: X.clientY,
678
+ target: e,
679
+ rootEl: t
680
+ }), n && !this.options.dragoverBubble) break;
681
+ }
682
+ e = t;
683
+ } while (t = de(t));
684
+ mt();
685
+ }
686
+ },
687
+ _onTouchMove: function(e) {
688
+ if (We) {
689
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = U && pe(U, !0), o = U && a && a.a, s = U && a && a.d, c = at && Z && ve(Z), l = (i.clientX - We.clientX + r.x) / (o || 1) + (c ? c[0] - tt[0] : 0) / (o || 1), u = (i.clientY - We.clientY + r.y) / (s || 1) + (c ? c[1] - tt[1] : 0) / (s || 1);
690
+ if (!Q.active && !Ve) {
691
+ if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
692
+ this._onDragStart(e, !0);
693
+ }
694
+ if (U) {
695
+ a ? (a.e += l - (Ge || 0), a.f += u - (Ke || 0)) : a = {
696
+ a: 1,
697
+ b: 0,
698
+ c: 0,
699
+ d: 1,
700
+ e: l,
701
+ f: u
702
+ };
703
+ var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
704
+ N(U, "webkitTransform", d), N(U, "mozTransform", d), N(U, "msTransform", d), N(U, "transform", d), Ge = l, Ke = u, X = i;
705
+ }
706
+ e.cancelable && e.preventDefault();
707
+ }
708
+ },
709
+ _appendGhost: function() {
710
+ if (!U) {
711
+ var e = this.options.fallbackOnBody ? document.body : W, t = F(V, !0, at, !0, e), n = this.options;
712
+ if (at) {
713
+ for (Z = e; N(Z, "position") === "static" && N(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
714
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = P()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = P(), tt = ve(Z);
715
+ }
716
+ U = V.cloneNode(!0), M(U, n.ghostClass, !1), M(U, n.fallbackClass, !0), M(U, n.dragClass, !0), N(U, "transition", ""), N(U, "transform", ""), N(U, "box-sizing", "border-box"), N(U, "margin", 0), N(U, "top", t.top), N(U, "left", t.left), N(U, "width", t.width), N(U, "height", t.height), N(U, "opacity", "0.8"), N(U, "position", at ? "absolute" : "fixed"), N(U, "zIndex", "100000"), N(U, "pointerEvents", "none"), Q.ghost = U, e.appendChild(U), N(U, "transform-origin", qe / parseInt(U.style.width) * 100 + "% " + Je / parseInt(U.style.height) * 100 + "%");
717
+ }
718
+ },
719
+ _onDragStart: function(e, t) {
720
+ var n = this, r = e.dataTransfer, i = n.options;
721
+ if (z("dragStart", this, { evt: e }), Q.eventCanceled) {
722
+ this._onDrop();
723
+ return;
724
+ }
725
+ z("setupClone", this), Q.eventCanceled || (G = Ee(V), G.removeAttribute("id"), G.draggable = !1, G.style["will-change"] = "", this._hideClone(), M(G, this.options.chosenClass, !1), Q.clone = G), n.cloneId = Dt(function() {
726
+ z("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || W.insertBefore(G, V), n._hideClone(), B({
727
+ sortable: n,
728
+ name: "clone"
729
+ }));
730
+ }), !t && M(V, i.dragClass, !0), t ? (He = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (A(document, "mouseup", n._onDrop), A(document, "touchend", n._onDrop), A(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, V)), k(document, "drop", n), N(V, "transform", "translateZ(0)")), Ve = !0, n._dragStartId = Dt(n._dragStarted.bind(n, t, e)), k(document, "selectstart", n), Ye = !0, window.getSelection().removeAllRanges(), oe && N(document.body, "user-select", "none");
731
+ },
732
+ _onDragOver: function(e) {
733
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Be === s, u = o.sort, d = Y || c, f, p = this, m = !1;
734
+ if (nt) return;
735
+ function h(o, s) {
736
+ z(o, p, C({
737
+ evt: e,
738
+ isOwner: l,
739
+ axis: f ? "vertical" : "horizontal",
740
+ revert: a,
741
+ dragRect: r,
742
+ targetRect: i,
743
+ canSort: u,
744
+ fromSortable: d,
745
+ target: n,
746
+ completed: _,
747
+ onMove: function(n, i) {
748
+ return vt(W, t, V, r, n, F(n), e, i);
749
+ },
750
+ changed: v
751
+ }, s));
752
+ }
753
+ function g() {
754
+ h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
755
+ }
756
+ function _(r) {
757
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (M(V, Y ? Y.options.ghostClass : c.options.ghostClass, !1), M(V, o.ghostClass, !0)), Y !== p && p !== Q.active ? Y = p : p === Q.active && Y && (Y = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
758
+ h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
759
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === V && !V.animated || n === t && !n.animated) && (Xe = null), !o.dragoverBubble && !e.rootEl && n !== document && (V.parentNode[R]._isOutsideThisEl(e.target), !r && ht(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
760
+ }
761
+ function v() {
762
+ q = I(V), J = I(V, o.draggable), B({
763
+ sortable: p,
764
+ name: "change",
765
+ toEl: t,
766
+ newIndex: q,
767
+ newDraggableIndex: J,
768
+ originalEvent: e
769
+ });
770
+ }
771
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = j(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
772
+ if (V.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
773
+ if (He = !1, c && !o.disabled && (l ? u || (a = H !== W) : Y === this || (this.lastPutMode = Be.checkPull(this, c, V, e)) && s.checkPut(this, c, V, e))) {
774
+ if (f = this._getDirection(e, n) === "vertical", r = F(V), h("dragOverValid"), Q.eventCanceled) return m;
775
+ if (a) return H = W, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Ie ? W.insertBefore(V, Ie) : W.appendChild(V)), _(!0);
776
+ var y = _e(t, o.draggable);
777
+ if (!y || St(e, f, this) && !y.animated) {
778
+ if (y === V) return _(!1);
779
+ if (y && t === e.target && (n = y), n && (i = F(n)), vt(W, t, V, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(V, y.nextSibling) : t.appendChild(V), H = t, v(), _(!0);
780
+ } else if (y && xt(e, f, this)) {
781
+ var b = ge(t, 0, o, !0);
782
+ if (b === V) return _(!1);
783
+ if (n = b, i = F(n), vt(W, t, V, r, n, i, e, !1) !== !1) return g(), t.insertBefore(V, b), H = t, v(), _(!0);
784
+ } else if (n.parentNode === t) {
785
+ i = F(n);
786
+ var x = 0, S, ee = V.parentNode !== t, w = !ut(V.animated && V.toRect || r, n.animated && n.toRect || i, f), te = f ? "top" : "left", ne = he(n, "top", "top") || he(V, "top", "top"), re = ne ? ne.scrollTop : void 0;
787
+ Xe !== n && (S = i[te], Qe = !1, $e = !w && o.invertSwap || ee), x = Ct(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, $e, Xe === n);
788
+ var T;
789
+ if (x !== 0) {
790
+ var ie = I(V);
791
+ do
792
+ ie -= x, T = H.children[ie];
793
+ while (T && (N(T, "display") === "none" || T === U));
794
+ }
795
+ if (x === 0 || T === n) return _(!1);
796
+ Xe = n, Ze = x;
797
+ var E = n.nextElementSibling, D = !1;
798
+ D = x === 1;
799
+ var O = vt(W, t, V, r, n, i, e, D);
800
+ if (O !== !1) return (O === 1 || O === -1) && (D = O === 1), nt = !0, setTimeout(bt, 30), g(), D && !E ? t.appendChild(V) : n.parentNode.insertBefore(V, D ? E : n), ne && Te(ne, 0, re - ne.scrollTop), H = V.parentNode, S !== void 0 && !$e && (et = Math.abs(S - F(n)[te])), v(), _(!0);
801
+ }
802
+ if (t.contains(V)) return _(!1);
803
+ }
804
+ return !1;
805
+ },
806
+ _ignoreWhileAnimating: null,
807
+ _offMoveEvents: function() {
808
+ A(document, "mousemove", this._onTouchMove), A(document, "touchmove", this._onTouchMove), A(document, "pointermove", this._onTouchMove), A(document, "dragover", ht), A(document, "mousemove", ht), A(document, "touchmove", ht);
809
+ },
810
+ _offUpEvents: function() {
811
+ var e = this.el.ownerDocument;
812
+ A(e, "mouseup", this._onDrop), A(e, "touchend", this._onDrop), A(e, "pointerup", this._onDrop), A(e, "pointercancel", this._onDrop), A(e, "touchcancel", this._onDrop), A(document, "selectstart", this);
813
+ },
814
+ _onDrop: function(e) {
815
+ var t = this.el, n = this.options;
816
+ if (q = I(V), J = I(V, n.draggable), z("drop", this, { evt: e }), H = V && V.parentNode, q = I(V), J = I(V, n.draggable), Q.eventCanceled) {
817
+ this._nulling();
818
+ return;
819
+ }
820
+ Ve = !1, $e = !1, Qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ot(this.cloneId), Ot(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), oe && N(document.body, "user-select", ""), N(V, "transform", ""), e && (Ye && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), U && U.parentNode && U.parentNode.removeChild(U), (W === H || Y && Y.lastPutMode !== "clone") && G && G.parentNode && G.parentNode.removeChild(G), V && (this.nativeDraggable && A(V, "dragend", this), yt(V), V.style["will-change"] = "", Ye && !Ve && M(V, Y ? Y.options.ghostClass : this.options.ghostClass, !1), M(V, this.options.chosenClass, !1), B({
821
+ sortable: this,
822
+ name: "unchoose",
823
+ toEl: H,
824
+ newIndex: null,
825
+ newDraggableIndex: null,
826
+ originalEvent: e
827
+ }), W === H ? q !== Re && q >= 0 && (B({
828
+ sortable: this,
829
+ name: "update",
830
+ toEl: H,
831
+ originalEvent: e
832
+ }), B({
833
+ sortable: this,
834
+ name: "sort",
835
+ toEl: H,
836
+ originalEvent: e
837
+ })) : (q >= 0 && (B({
838
+ rootEl: H,
839
+ name: "add",
840
+ toEl: H,
841
+ fromEl: W,
842
+ originalEvent: e
843
+ }), B({
844
+ sortable: this,
845
+ name: "remove",
846
+ toEl: H,
847
+ originalEvent: e
848
+ }), B({
849
+ rootEl: H,
850
+ name: "sort",
851
+ toEl: H,
852
+ fromEl: W,
853
+ originalEvent: e
854
+ }), B({
855
+ sortable: this,
856
+ name: "sort",
857
+ toEl: H,
858
+ originalEvent: e
859
+ })), Y && Y.save()), Q.active && ((q == null || q === -1) && (q = Re, J = ze), B({
860
+ sortable: this,
861
+ name: "end",
862
+ toEl: H,
863
+ originalEvent: e
864
+ }), this.save()))), this._nulling();
865
+ },
866
+ _nulling: function() {
867
+ z("nulling", this), W = V = H = U = Ie = G = Le = K = We = X = Ye = q = J = Re = ze = Xe = Ze = Y = Be = Q.dragged = Q.ghost = Q.clone = Q.active = null;
868
+ var e = this.el;
869
+ rt.forEach(function(t) {
870
+ e.contains(t) && (t.checked = !0);
871
+ }), rt.length = Ge = Ke = 0;
872
+ },
873
+ handleEvent: function(e) {
874
+ switch (e.type) {
875
+ case "drop":
876
+ case "dragend":
877
+ this._onDrop(e);
878
+ break;
879
+ case "dragenter":
880
+ case "dragover":
881
+ V && (this._onDragOver(e), _t(e));
882
+ break;
883
+ case "selectstart":
884
+ e.preventDefault();
885
+ break;
886
+ }
887
+ },
888
+ toArray: function() {
889
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], j(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Tt(t));
890
+ return e;
891
+ },
892
+ sort: function(e, t) {
893
+ var n = {}, r = this.el;
894
+ this.toArray().forEach(function(e, t) {
895
+ var i = r.children[t];
896
+ j(i, this.options.draggable, r, !1) && (n[e] = i);
897
+ }, this), t && this.captureAnimationState(), e.forEach(function(e) {
898
+ n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
899
+ }), t && this.animateAll();
900
+ },
901
+ save: function() {
902
+ var e = this.options.store;
903
+ e && e.set && e.set(this);
904
+ },
905
+ closest: function(e, t) {
906
+ return j(e, t || this.options.draggable, this.el, !1);
907
+ },
908
+ option: function(e, t) {
909
+ var n = this.options;
910
+ if (t === void 0) return n[e];
911
+ var r = Ne.modifyOption(this, e, t);
912
+ r === void 0 ? n[e] = t : n[e] = r, e === "group" && ft(n);
913
+ },
914
+ destroy: function() {
915
+ z("destroy", this);
916
+ var e = this.el;
917
+ e[R] = null, A(e, "mousedown", this._onTapStart), A(e, "touchstart", this._onTapStart), A(e, "pointerdown", this._onTapStart), this.nativeDraggable && (A(e, "dragover", this), A(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
918
+ e.removeAttribute("draggable");
919
+ }), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = e = null;
920
+ },
921
+ _hideClone: function() {
922
+ if (!K) {
923
+ if (z("hideClone", this), Q.eventCanceled) return;
924
+ N(G, "display", "none"), this.options.removeCloneOnHide && G.parentNode && G.parentNode.removeChild(G), K = !0;
925
+ }
926
+ },
927
+ _showClone: function(e) {
928
+ if (e.lastPutMode !== "clone") {
929
+ this._hideClone();
930
+ return;
931
+ }
932
+ if (K) {
933
+ if (z("showClone", this), Q.eventCanceled) return;
934
+ V.parentNode == W && !this.options.group.revertClone ? W.insertBefore(G, V) : Ie ? W.insertBefore(G, Ie) : W.appendChild(G), this.options.group.revertClone && this.animate(V, G), N(G, "display", ""), K = !1;
935
+ }
936
+ }
937
+ };
938
+ function _t(e) {
939
+ e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
940
+ }
941
+ function vt(e, t, n, r, i, a, o, s) {
942
+ var c, l = e[R], u = l.options.onMove, d;
943
+ return window.CustomEvent && !D && !O ? c = new CustomEvent("move", {
944
+ bubbles: !0,
945
+ cancelable: !0
946
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || F(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
947
+ }
948
+ function yt(e) {
949
+ e.draggable = !1;
950
+ }
951
+ function bt() {
952
+ nt = !1;
953
+ }
954
+ function xt(e, t, n) {
955
+ var r = F(ge(n.el, 0, n.options, !0)), i = De(n.el, n.options, U), a = 10;
956
+ return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
957
+ }
958
+ function St(e, t, n) {
959
+ var r = F(_e(n.el, n.options.draggable)), i = De(n.el, n.options, U), a = 10;
960
+ return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
961
+ }
962
+ function Ct(e, t, n, r, i, a, o, s) {
963
+ var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
964
+ if (!o) {
965
+ if (s && et < l * i) {
966
+ if (!Qe && (Ze === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Qe = !0), Qe) f = !0;
967
+ else if (Ze === 1 ? c < u + et : c > d - et) return -Ze;
968
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return wt(t);
969
+ }
970
+ return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
971
+ }
972
+ function wt(e) {
973
+ return I(V) < I(e) ? 1 : -1;
974
+ }
975
+ function Tt(e) {
976
+ for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
977
+ return r.toString(36);
978
+ }
979
+ function Et(e) {
980
+ rt.length = 0;
981
+ for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
982
+ var r = t[n];
983
+ r.checked && rt.push(r);
984
+ }
985
+ }
986
+ function Dt(e) {
987
+ return setTimeout(e, 0);
988
+ }
989
+ function Ot(e) {
990
+ return clearTimeout(e);
991
+ }
992
+ it && k(document, "touchmove", function(e) {
993
+ (Q.active || Ve) && e.cancelable && e.preventDefault();
994
+ }), Q.utils = {
995
+ on: k,
996
+ off: A,
997
+ css: N,
998
+ find: me,
999
+ is: function(e, t) {
1000
+ return !!j(e, t, e, !1);
1001
+ },
1002
+ extend: be,
1003
+ throttle: Ce,
1004
+ closest: j,
1005
+ toggleClass: M,
1006
+ clone: Ee,
1007
+ index: I,
1008
+ nextTick: Dt,
1009
+ cancelNextTick: Ot,
1010
+ detectDirection: lt,
1011
+ getChild: ge,
1012
+ expando: R
1013
+ }, Q.get = function(e) {
1014
+ return e[R];
1015
+ }, Q.mount = function() {
1016
+ var e = [...arguments];
1017
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
1018
+ if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
1019
+ e.utils && (Q.utils = C(C({}, Q.utils), e.utils)), Ne.mount(e);
1020
+ });
1021
+ }, Q.create = function(e, t) {
1022
+ return new Q(e, t);
1023
+ }, Q.version = ie;
1024
+ var $ = [], kt, At, jt = !1, Mt, Nt, Pt, Ft;
1025
+ function It() {
1026
+ function e() {
1027
+ for (var e in this.defaults = {
1028
+ scroll: !0,
1029
+ forceAutoScrollFallback: !1,
1030
+ scrollSensitivity: 30,
1031
+ scrollSpeed: 10,
1032
+ bubbleScroll: !0
1033
+ }, this) e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1034
+ }
1035
+ return e.prototype = {
1036
+ dragStarted: function(e) {
1037
+ var t = e.originalEvent;
1038
+ this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? k(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? k(document, "touchmove", this._handleFallbackAutoScroll) : k(document, "mousemove", this._handleFallbackAutoScroll);
1039
+ },
1040
+ dragOverCompleted: function(e) {
1041
+ var t = e.originalEvent;
1042
+ !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1043
+ },
1044
+ drop: function() {
1045
+ this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Rt(), Lt(), we();
1046
+ },
1047
+ nulling: function() {
1048
+ Pt = At = kt = jt = Ft = Mt = Nt = null, $.length = 0;
1049
+ },
1050
+ _handleFallbackAutoScroll: function(e) {
1051
+ this._handleAutoScroll(e, !0);
1052
+ },
1053
+ _handleAutoScroll: function(e, t) {
1054
+ var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
1055
+ if (Pt = e, t || this.options.forceAutoScrollFallback || O || D || oe) {
1056
+ zt(e, this.options, a, t);
1057
+ var o = L(a, !0);
1058
+ jt && (!Ft || r !== Mt || i !== Nt) && (Ft && Rt(), Ft = setInterval(function() {
1059
+ var a = L(document.elementFromPoint(r, i), !0);
1060
+ a !== o && (o = a, Lt()), zt(e, n.options, a, t);
1061
+ }, 10), Mt = r, Nt = i);
1062
+ } else {
1063
+ if (!this.options.bubbleScroll || L(a, !0) === P()) {
1064
+ Lt();
1065
+ return;
1066
+ }
1067
+ zt(e, this.options, L(a, !1), !1);
1068
+ }
1069
+ }
1070
+ }, S(e, {
1071
+ pluginName: "scroll",
1072
+ initializeByDefault: !0
1073
+ });
1074
+ }
1075
+ function Lt() {
1076
+ $.forEach(function(e) {
1077
+ clearInterval(e.pid);
1078
+ }), $ = [];
1079
+ }
1080
+ function Rt() {
1081
+ clearInterval(Ft);
1082
+ }
1083
+ var zt = Ce(function(e, t, n, r) {
1084
+ if (t.scroll) {
1085
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = P(), l = !1, u;
1086
+ At !== n && (At = n, Lt(), kt = t.scroll, u = t.scrollFn, kt === !0 && (kt = L(n, !0)));
1087
+ var d = 0, f = kt;
1088
+ do {
1089
+ var p = f, m = F(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, ee = p.scrollWidth, C = p.scrollHeight, w = N(p), te = p.scrollLeft, ne = p.scrollTop;
1090
+ p === c ? (x = y < ee && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), S = b < C && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (x = y < ee && (w.overflowX === "auto" || w.overflowX === "scroll"), S = b < C && (w.overflowY === "auto" || w.overflowY === "scroll"));
1091
+ var re = x && (Math.abs(v - i) <= o && te + y < ee) - (Math.abs(_ - i) <= o && !!te), T = S && (Math.abs(g - a) <= o && ne + b < C) - (Math.abs(h - a) <= o && !!ne);
1092
+ if (!$[d]) for (var ie = 0; ie <= d; ie++) $[ie] || ($[ie] = {});
1093
+ ($[d].vx != re || $[d].vy != T || $[d].el !== p) && ($[d].el = p, $[d].vx = re, $[d].vy = T, clearInterval($[d].pid), (re != 0 || T != 0) && (l = !0, $[d].pid = setInterval(function() {
1094
+ r && this.layer === 0 && Q.active._onTouchMove(Pt);
1095
+ var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
1096
+ typeof u == "function" && u.call(Q.dragged.parentNode[R], n, t, e, Pt, $[this.layer].el) !== "continue" || Te($[this.layer].el, n, t);
1097
+ }.bind({ layer: d }), 24))), d++;
1098
+ } while (t.bubbleScroll && f !== c && (f = L(f, !1)));
1099
+ jt = l;
1100
+ }
1101
+ }, 30), Bt = function(e) {
1102
+ var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1103
+ if (t) {
1104
+ var c = n || i;
1105
+ o();
1106
+ var l = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, u = document.elementFromPoint(l.clientX, l.clientY);
1107
+ s(), c && !c.el.contains(u) && (a("spill"), this.onSpill({
1108
+ dragEl: r,
1109
+ putSortable: n
1110
+ }));
1111
+ }
1112
+ };
1113
+ function Vt() {}
1114
+ Vt.prototype = {
1115
+ startIndex: null,
1116
+ dragStart: function(e) {
1117
+ var t = e.oldDraggableIndex;
1118
+ this.startIndex = t;
1119
+ },
1120
+ onSpill: function(e) {
1121
+ var t = e.dragEl, n = e.putSortable;
1122
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
1123
+ var r = ge(this.sortable.el, this.startIndex, this.options);
1124
+ r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
1125
+ },
1126
+ drop: Bt
1127
+ }, S(Vt, { pluginName: "revertOnSpill" });
1128
+ function Ht() {}
1129
+ Ht.prototype = {
1130
+ onSpill: function(e) {
1131
+ var t = e.dragEl, n = e.putSortable || this.sortable;
1132
+ n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
1133
+ },
1134
+ drop: Bt
1135
+ }, S(Ht, { pluginName: "removeOnSpill" }), Q.mount(new It()), Q.mount(Ht, Vt);
1136
+ //#endregion
1137
+ //#region src/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue
1138
+ var Ut = /* @__PURE__ */ d({
1139
+ __name: "wt-send-message-popup",
1140
+ props: {
1141
+ chatItem: {},
1142
+ userId: {}
1143
+ },
1144
+ emits: ["close"],
1145
+ setup(e, { emit: r }) {
1146
+ let a = e, d = r, b = s(), { t: x } = o(), S = h({
1147
+ gateway: a.chatItem?.app || {},
1148
+ provider: a.chatItem?.protocol || "",
1149
+ message: "",
1150
+ agentId: null
1151
+ });
1152
+ async function ee(e = {}) {
1153
+ let { items: t } = await n.getList({
1154
+ ...e,
1155
+ userId: a.userId
1156
+ });
1157
+ S.value.agentId = t[0]?.id;
1158
+ }
1159
+ let C = async () => {
1160
+ let e = await t.patch({
1161
+ peers: [{
1162
+ via: S.value.gateway.id,
1163
+ id: a.chatItem?.externalId,
1164
+ type: S.value.provider
1165
+ }],
1166
+ variables: { agentId: S.value.agentId },
1167
+ message: { text: S.value.message }
1168
+ });
1169
+ e.failure && b?.$emit("notification", {
1170
+ type: "error",
1171
+ text: e.failure[0].error.message
1172
+ }), d("close");
1173
+ }, w = (e) => {
1174
+ S.value.message += e, document.querySelector("textarea")?.focus();
1175
+ };
1176
+ return p(async () => await ee()), (e, t) => {
1177
+ let n = g("wt-textarea"), r = g("wt-button"), a = g("wt-popup");
1178
+ return m(), c(a, f(e.$attrs, {
1179
+ class: "wt-send-message-popup",
1180
+ overflow: "",
1181
+ onClose: t[1] ||= (e) => d("close")
1182
+ }), {
1183
+ header: y(() => [l(_(v(x)("reusable.sendMessage")), 1)]),
1184
+ main: y(() => [u(n, {
1185
+ "model-value": S.value.message,
1186
+ "onUpdate:modelValue": t[0] ||= (e) => S.value.message = e,
1187
+ placeholder: v(x)("objects.chat.draftPlaceholder"),
1188
+ onEnter: C
1189
+ }, null, 8, ["model-value", "placeholder"])]),
1190
+ actions: y(() => [u(v(i), {
1191
+ filled: "",
1192
+ rounded: !1,
1193
+ class: "wt-send-message-popup__emoji",
1194
+ onInsertEmoji: w
1195
+ }), u(r, {
1196
+ icon: "chat-send",
1197
+ color: "secondary",
1198
+ disabled: !S.value.message,
1199
+ wide: "",
1200
+ onClick: C
1201
+ }, null, 8, ["disabled"])]),
1202
+ _: 1
1203
+ }, 16);
1204
+ };
1205
+ }
1206
+ });
1207
+ //#endregion
1208
+ export { Ut as default };