@dialpad/dialtone-vue 3.210.0 → 3.211.0-next.2

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 (558) hide show
  1. package/dist/common/constants/index.cjs +1 -1
  2. package/dist/common/constants/index.cjs.map +1 -1
  3. package/dist/common/constants/index.js +10 -10
  4. package/dist/common/constants/index.js.map +1 -1
  5. package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
  6. package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  7. package/dist/common/mixins/keyboard-list-navigation.js +7 -7
  8. package/dist/common/mixins/keyboard-list-navigation.js.map +1 -1
  9. package/dist/component-documentation.json +1 -1
  10. package/dist/dialtone-vue.cjs +1 -1
  11. package/dist/dialtone-vue.js +425 -387
  12. package/dist/dialtone-vue.js.map +1 -1
  13. package/dist/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  14. package/dist/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  15. package/dist/lib/attachment-carousel/attachment-carousel.js +64 -117
  16. package/dist/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  17. package/dist/lib/avatar/avatar-constants.cjs +1 -1
  18. package/dist/lib/avatar/avatar-constants.cjs.map +1 -1
  19. package/dist/lib/avatar/avatar-constants.js +169 -43
  20. package/dist/lib/avatar/avatar-constants.js.map +1 -1
  21. package/dist/lib/avatar/avatar.cjs +1 -1
  22. package/dist/lib/avatar/avatar.cjs.map +1 -1
  23. package/dist/lib/avatar/avatar.js +185 -100
  24. package/dist/lib/avatar/avatar.js.map +1 -1
  25. package/dist/lib/avatar/index.cjs +1 -1
  26. package/dist/lib/avatar/index.js +16 -10
  27. package/dist/lib/badge/badge.cjs +1 -1
  28. package/dist/lib/badge/badge.cjs.map +1 -1
  29. package/dist/lib/badge/badge.js +47 -35
  30. package/dist/lib/badge/badge.js.map +1 -1
  31. package/dist/lib/banner/banner.cjs +1 -1
  32. package/dist/lib/banner/banner.cjs.map +1 -1
  33. package/dist/lib/banner/banner.js +19 -18
  34. package/dist/lib/banner/banner.js.map +1 -1
  35. package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
  36. package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  37. package/dist/lib/breadcrumbs/breadcrumb-item.js +3 -1
  38. package/dist/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
  39. package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  40. package/dist/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  41. package/dist/lib/breadcrumbs/breadcrumbs.js +21 -18
  42. package/dist/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  43. package/dist/lib/button/button-constants.cjs +1 -1
  44. package/dist/lib/button/button-constants.cjs.map +1 -1
  45. package/dist/lib/button/button-constants.js +23 -19
  46. package/dist/lib/button/button-constants.js.map +1 -1
  47. package/dist/lib/button/button.cjs +1 -1
  48. package/dist/lib/button/button.cjs.map +1 -1
  49. package/dist/lib/button/button.js +171 -66
  50. package/dist/lib/button/button.js.map +1 -1
  51. package/dist/lib/callbar-button/callbar-button.cjs +1 -1
  52. package/dist/lib/callbar-button/callbar-button.cjs.map +1 -1
  53. package/dist/lib/callbar-button/callbar-button.js +13 -14
  54. package/dist/lib/callbar-button/callbar-button.js.map +1 -1
  55. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  56. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  57. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +42 -30
  58. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  59. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  60. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  61. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +38 -26
  62. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  63. package/dist/lib/callbox/callbox.cjs +1 -1
  64. package/dist/lib/callbox/callbox.cjs.map +1 -1
  65. package/dist/lib/callbox/callbox.js +47 -47
  66. package/dist/lib/callbox/callbox.js.map +1 -1
  67. package/dist/lib/checkbox/checkbox.cjs +1 -1
  68. package/dist/lib/checkbox/checkbox.cjs.map +1 -1
  69. package/dist/lib/checkbox/checkbox.js +97 -43
  70. package/dist/lib/checkbox/checkbox.js.map +1 -1
  71. package/dist/lib/chip/chip.cjs +1 -1
  72. package/dist/lib/chip/chip.cjs.map +1 -1
  73. package/dist/lib/chip/chip.js +1 -1
  74. package/dist/lib/chip/chip.js.map +1 -1
  75. package/dist/lib/codeblock/codeblock-constants.cjs +2 -0
  76. package/dist/lib/codeblock/codeblock-constants.cjs.map +1 -0
  77. package/dist/lib/codeblock/codeblock-constants.js +6 -0
  78. package/dist/lib/codeblock/codeblock-constants.js.map +1 -0
  79. package/dist/lib/codeblock/codeblock.cjs +1 -2
  80. package/dist/lib/codeblock/codeblock.cjs.map +1 -1
  81. package/dist/lib/codeblock/codeblock.js +34 -13
  82. package/dist/lib/codeblock/codeblock.js.map +1 -1
  83. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  84. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  85. package/dist/lib/combobox-multi-select/combobox-multi-select.js +31 -31
  86. package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  87. package/dist/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  88. package/dist/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  89. package/dist/lib/contact-centers-row/contact-centers-row.js +33 -33
  90. package/dist/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  91. package/dist/lib/contact-info/contact-info.cjs +1 -1
  92. package/dist/lib/contact-info/contact-info.cjs.map +1 -1
  93. package/dist/lib/contact-info/contact-info.js +56 -56
  94. package/dist/lib/contact-info/contact-info.js.map +1 -1
  95. package/dist/lib/contact-row/contact-row.cjs +1 -1
  96. package/dist/lib/contact-row/contact-row.cjs.map +1 -1
  97. package/dist/lib/contact-row/contact-row.js +1 -1
  98. package/dist/lib/contact-row/contact-row.js.map +1 -1
  99. package/dist/lib/datepicker/datepicker.cjs +1 -1
  100. package/dist/lib/datepicker/datepicker.cjs.map +1 -1
  101. package/dist/lib/datepicker/datepicker.js +13 -17
  102. package/dist/lib/datepicker/datepicker.js.map +1 -1
  103. package/dist/lib/dropdown/dropdown-list.cjs +1 -1
  104. package/dist/lib/dropdown/dropdown-list.cjs.map +1 -1
  105. package/dist/lib/dropdown/dropdown-list.js +29 -18
  106. package/dist/lib/dropdown/dropdown-list.js.map +1 -1
  107. package/dist/lib/editor/editor.cjs.map +1 -1
  108. package/dist/lib/editor/editor.js.map +1 -1
  109. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  110. package/dist/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  111. package/dist/lib/emoji-picker/emoji-picker.js +2 -2
  112. package/dist/lib/emoji-picker/emoji-picker.js.map +1 -1
  113. package/dist/lib/empty-state/empty-state-constants.cjs +1 -1
  114. package/dist/lib/empty-state/empty-state-constants.cjs.map +1 -1
  115. package/dist/lib/empty-state/empty-state-constants.js +28 -16
  116. package/dist/lib/empty-state/empty-state-constants.js.map +1 -1
  117. package/dist/lib/empty-state/empty-state.cjs +1 -1
  118. package/dist/lib/empty-state/empty-state.cjs.map +1 -1
  119. package/dist/lib/empty-state/empty-state.js +54 -32
  120. package/dist/lib/empty-state/empty-state.js.map +1 -1
  121. package/dist/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  122. package/dist/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  123. package/dist/lib/feed-item-pill/feed-item-pill.js +56 -53
  124. package/dist/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  125. package/dist/lib/feed-item-row/feed-item-row.cjs +1 -1
  126. package/dist/lib/feed-item-row/feed-item-row.cjs.map +1 -1
  127. package/dist/lib/feed-item-row/feed-item-row.js +11 -11
  128. package/dist/lib/feed-item-row/feed-item-row.js.map +1 -1
  129. package/dist/lib/filter-pill/filter-pill.cjs +2 -0
  130. package/dist/lib/filter-pill/filter-pill.cjs.map +1 -0
  131. package/dist/lib/filter-pill/filter-pill.js +346 -0
  132. package/dist/lib/filter-pill/filter-pill.js.map +1 -0
  133. package/dist/lib/filter-pill/index.cjs +2 -0
  134. package/dist/lib/filter-pill/index.cjs.map +1 -0
  135. package/dist/lib/filter-pill/index.js +5 -0
  136. package/dist/lib/filter-pill/index.js.map +1 -0
  137. package/dist/lib/general-row/general-row.cjs +1 -1
  138. package/dist/lib/general-row/general-row.cjs.map +1 -1
  139. package/dist/lib/general-row/general-row.js +153 -99
  140. package/dist/lib/general-row/general-row.js.map +1 -1
  141. package/dist/lib/group-row/group-row.cjs +1 -1
  142. package/dist/lib/group-row/group-row.cjs.map +1 -1
  143. package/dist/lib/group-row/group-row.js +1 -1
  144. package/dist/lib/group-row/group-row.js.map +1 -1
  145. package/dist/lib/grouped-chip/grouped-chip.cjs +1 -1
  146. package/dist/lib/grouped-chip/grouped-chip.cjs.map +1 -1
  147. package/dist/lib/grouped-chip/grouped-chip.js +31 -31
  148. package/dist/lib/grouped-chip/grouped-chip.js.map +1 -1
  149. package/dist/lib/input/input-constants.cjs +1 -1
  150. package/dist/lib/input/input-constants.cjs.map +1 -1
  151. package/dist/lib/input/input-constants.js +17 -22
  152. package/dist/lib/input/input-constants.js.map +1 -1
  153. package/dist/lib/input/input.cjs +1 -1
  154. package/dist/lib/input/input.cjs.map +1 -1
  155. package/dist/lib/input/input.js +144 -72
  156. package/dist/lib/input/input.js.map +1 -1
  157. package/dist/lib/input-group/input-group.cjs +1 -1
  158. package/dist/lib/input-group/input-group.cjs.map +1 -1
  159. package/dist/lib/input-group/input-group.js +35 -28
  160. package/dist/lib/input-group/input-group.js.map +1 -1
  161. package/dist/lib/item-layout/item-layout.cjs +3 -3
  162. package/dist/lib/item-layout/item-layout.cjs.map +1 -1
  163. package/dist/lib/item-layout/item-layout.js +74 -39
  164. package/dist/lib/item-layout/item-layout.js.map +1 -1
  165. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
  166. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  167. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +56 -43
  168. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  169. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +2 -0
  170. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs.map +1 -0
  171. package/dist/lib/kitchen-sink/kitchen-sink-view.js +263 -0
  172. package/dist/lib/kitchen-sink/kitchen-sink-view.js.map +1 -0
  173. package/dist/lib/link/link.cjs +1 -1
  174. package/dist/lib/link/link.cjs.map +1 -1
  175. package/dist/lib/link/link.js +22 -12
  176. package/dist/lib/link/link.js.map +1 -1
  177. package/dist/lib/list-item/list-item.cjs +1 -1
  178. package/dist/lib/list-item/list-item.cjs.map +1 -1
  179. package/dist/lib/list-item/list-item.js +25 -15
  180. package/dist/lib/list-item/list-item.js.map +1 -1
  181. package/dist/lib/loader/loader.cjs +13 -1
  182. package/dist/lib/loader/loader.cjs.map +1 -1
  183. package/dist/lib/loader/loader.js +31 -20
  184. package/dist/lib/loader/loader.js.map +1 -1
  185. package/dist/lib/message-input/message-input.cjs +1 -1
  186. package/dist/lib/message-input/message-input.cjs.map +1 -1
  187. package/dist/lib/message-input/message-input.js +39 -39
  188. package/dist/lib/message-input/message-input.js.map +1 -1
  189. package/dist/lib/modal/modal.cjs +1 -1
  190. package/dist/lib/modal/modal.cjs.map +1 -1
  191. package/dist/lib/modal/modal.js +74 -61
  192. package/dist/lib/modal/modal.js.map +1 -1
  193. package/dist/lib/mode-island/index.cjs +2 -0
  194. package/dist/lib/mode-island/index.cjs.map +1 -0
  195. package/dist/lib/mode-island/index.js +7 -0
  196. package/dist/lib/mode-island/index.js.map +1 -0
  197. package/dist/lib/mode-island/mode-island-constants.cjs +2 -0
  198. package/dist/lib/mode-island/mode-island-constants.cjs.map +1 -0
  199. package/dist/lib/mode-island/mode-island-constants.js +12 -0
  200. package/dist/lib/mode-island/mode-island-constants.js.map +1 -0
  201. package/dist/lib/mode-island/mode-island.cjs +2 -0
  202. package/dist/lib/mode-island/mode-island.cjs.map +1 -0
  203. package/dist/lib/mode-island/mode-island.js +130 -0
  204. package/dist/lib/mode-island/mode-island.js.map +1 -0
  205. package/dist/lib/mode-island/utils.cjs +2 -0
  206. package/dist/lib/mode-island/utils.cjs.map +1 -0
  207. package/dist/lib/mode-island/utils.js +32 -0
  208. package/dist/lib/mode-island/utils.js.map +1 -0
  209. package/dist/lib/mode-island/validators.cjs +2 -0
  210. package/dist/lib/mode-island/validators.cjs.map +1 -0
  211. package/dist/lib/mode-island/validators.js +12 -0
  212. package/dist/lib/mode-island/validators.js.map +1 -0
  213. package/dist/lib/notice/notice-action.cjs +1 -1
  214. package/dist/lib/notice/notice-action.cjs.map +1 -1
  215. package/dist/lib/notice/notice-action.js +7 -7
  216. package/dist/lib/notice/notice-action.js.map +1 -1
  217. package/dist/lib/notice/notice-content.cjs +1 -1
  218. package/dist/lib/notice/notice-content.cjs.map +1 -1
  219. package/dist/lib/notice/notice-content.js +38 -21
  220. package/dist/lib/notice/notice-content.js.map +1 -1
  221. package/dist/lib/notice/notice.cjs +1 -1
  222. package/dist/lib/notice/notice.cjs.map +1 -1
  223. package/dist/lib/notice/notice.js +20 -19
  224. package/dist/lib/notice/notice.js.map +1 -1
  225. package/dist/lib/pagination/pagination.cjs +1 -1
  226. package/dist/lib/pagination/pagination.cjs.map +1 -1
  227. package/dist/lib/pagination/pagination.js +15 -14
  228. package/dist/lib/pagination/pagination.js.map +1 -1
  229. package/dist/lib/popover/popover.cjs +1 -1
  230. package/dist/lib/popover/popover.cjs.map +1 -1
  231. package/dist/lib/popover/popover.js +1 -1
  232. package/dist/lib/popover/popover.js.map +1 -1
  233. package/dist/lib/progress-circle/index.cjs +2 -0
  234. package/dist/lib/progress-circle/index.cjs.map +1 -0
  235. package/dist/lib/progress-circle/index.js +10 -0
  236. package/dist/lib/progress-circle/index.js.map +1 -0
  237. package/dist/lib/progress-circle/progress-circle-constants.cjs +2 -0
  238. package/dist/lib/progress-circle/progress-circle-constants.cjs.map +1 -0
  239. package/dist/lib/progress-circle/progress-circle-constants.js +25 -0
  240. package/dist/lib/progress-circle/progress-circle-constants.js.map +1 -0
  241. package/dist/lib/progress-circle/progress-circle.cjs +2 -0
  242. package/dist/lib/progress-circle/progress-circle.cjs.map +1 -0
  243. package/dist/lib/progress-circle/progress-circle.js +136 -0
  244. package/dist/lib/progress-circle/progress-circle.js.map +1 -0
  245. package/dist/lib/radio/radio.cjs +1 -1
  246. package/dist/lib/radio/radio.cjs.map +1 -1
  247. package/dist/lib/radio/radio.js +103 -41
  248. package/dist/lib/radio/radio.js.map +1 -1
  249. package/dist/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  250. package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  251. package/dist/lib/rich-text-editor/rich-text-editor.js +607 -560
  252. package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  253. package/dist/lib/root-layout/root-layout-constants.cjs +1 -1
  254. package/dist/lib/root-layout/root-layout-constants.cjs.map +1 -1
  255. package/dist/lib/root-layout/root-layout-constants.js +4 -2
  256. package/dist/lib/root-layout/root-layout-constants.js.map +1 -1
  257. package/dist/lib/root-layout/root-layout.cjs +1 -1
  258. package/dist/lib/root-layout/root-layout.cjs.map +1 -1
  259. package/dist/lib/root-layout/root-layout.js +15 -13
  260. package/dist/lib/root-layout/root-layout.js.map +1 -1
  261. package/dist/lib/select-menu/select-menu.cjs +1 -1
  262. package/dist/lib/select-menu/select-menu.cjs.map +1 -1
  263. package/dist/lib/select-menu/select-menu.js +113 -61
  264. package/dist/lib/select-menu/select-menu.js.map +1 -1
  265. package/dist/lib/settings-menu-button/settings-menu-button.cjs +1 -1
  266. package/dist/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  267. package/dist/lib/settings-menu-button/settings-menu-button.js +14 -15
  268. package/dist/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  269. package/dist/lib/split-button/split-button-end.cjs +2 -0
  270. package/dist/lib/split-button/split-button-end.cjs.map +1 -0
  271. package/dist/lib/split-button/{split-button-omega.js → split-button-end.js} +13 -13
  272. package/dist/lib/split-button/split-button-end.js.map +1 -0
  273. package/dist/lib/split-button/split-button-start.cjs +2 -0
  274. package/dist/lib/split-button/split-button-start.cjs.map +1 -0
  275. package/dist/lib/split-button/split-button-start.js +231 -0
  276. package/dist/lib/split-button/split-button-start.js.map +1 -0
  277. package/dist/lib/split-button/split-button.cjs +1 -1
  278. package/dist/lib/split-button/split-button.cjs.map +1 -1
  279. package/dist/lib/split-button/split-button.js +334 -98
  280. package/dist/lib/split-button/split-button.js.map +1 -1
  281. package/dist/lib/tab/index.cjs +1 -1
  282. package/dist/lib/tab/index.js +13 -11
  283. package/dist/lib/tab/tab-group.cjs +1 -1
  284. package/dist/lib/tab/tab-group.cjs.map +1 -1
  285. package/dist/lib/tab/tab-group.js +107 -46
  286. package/dist/lib/tab/tab-group.js.map +1 -1
  287. package/dist/lib/tab/tab.cjs +1 -1
  288. package/dist/lib/tab/tab.cjs.map +1 -1
  289. package/dist/lib/tab/tab.js +128 -37
  290. package/dist/lib/tab/tab.js.map +1 -1
  291. package/dist/lib/tab/tabs-constants.cjs +1 -1
  292. package/dist/lib/tab/tabs-constants.cjs.map +1 -1
  293. package/dist/lib/tab/tabs-constants.js +13 -11
  294. package/dist/lib/tab/tabs-constants.js.map +1 -1
  295. package/dist/lib/text/index.cjs +2 -0
  296. package/dist/lib/text/index.cjs.map +1 -0
  297. package/dist/lib/text/index.js +20 -0
  298. package/dist/lib/text/index.js.map +1 -0
  299. package/dist/lib/text/text-constants.cjs +2 -0
  300. package/dist/lib/text/text-constants.cjs.map +1 -0
  301. package/dist/lib/text/text-constants.js +69 -0
  302. package/dist/lib/text/text-constants.js.map +1 -0
  303. package/dist/lib/text/text-tone-tokens.cjs +2 -0
  304. package/dist/lib/text/text-tone-tokens.cjs.map +1 -0
  305. package/dist/lib/text/text-tone-tokens.js +33 -0
  306. package/dist/lib/text/text-tone-tokens.js.map +1 -0
  307. package/dist/lib/text/text.cjs +2 -0
  308. package/dist/lib/text/text.cjs.map +1 -0
  309. package/dist/lib/text/text.js +203 -0
  310. package/dist/lib/text/text.js.map +1 -0
  311. package/dist/lib/toast/toast.cjs +1 -1
  312. package/dist/lib/toast/toast.cjs.map +1 -1
  313. package/dist/lib/toast/toast.js +10 -9
  314. package/dist/lib/toast/toast.js.map +1 -1
  315. package/dist/lib/toggle/toggle.cjs +1 -1
  316. package/dist/lib/toggle/toggle.cjs.map +1 -1
  317. package/dist/lib/toggle/toggle.js +37 -33
  318. package/dist/lib/toggle/toggle.js.map +1 -1
  319. package/dist/lib/top-banner-info/top-banner-info.cjs +1 -1
  320. package/dist/lib/top-banner-info/top-banner-info.cjs.map +1 -1
  321. package/dist/lib/top-banner-info/top-banner-info.js +16 -16
  322. package/dist/lib/top-banner-info/top-banner-info.js.map +1 -1
  323. package/dist/localization/en-US.cjs +2 -0
  324. package/dist/localization/en-US.cjs.map +1 -1
  325. package/dist/localization/en-US.js +2 -0
  326. package/dist/localization/en-US.js.map +1 -1
  327. package/dist/localization/es-LA.cjs +1 -1
  328. package/dist/localization/es-LA.cjs.map +1 -1
  329. package/dist/localization/es-LA.js +1 -1
  330. package/dist/localization/es-LA.js.map +1 -1
  331. package/dist/localization/it-IT.cjs +3 -3
  332. package/dist/localization/it-IT.cjs.map +1 -1
  333. package/dist/localization/it-IT.js +3 -3
  334. package/dist/localization/it-IT.js.map +1 -1
  335. package/dist/localization/nl-NL.cjs +2 -2
  336. package/dist/localization/nl-NL.cjs.map +1 -1
  337. package/dist/localization/nl-NL.js +2 -2
  338. package/dist/localization/nl-NL.js.map +1 -1
  339. package/dist/localization/ru-RU.cjs +1 -1
  340. package/dist/localization/ru-RU.cjs.map +1 -1
  341. package/dist/localization/ru-RU.js +1 -1
  342. package/dist/localization/ru-RU.js.map +1 -1
  343. package/dist/localization/zh-CN.cjs +1 -1
  344. package/dist/localization/zh-CN.cjs.map +1 -1
  345. package/dist/localization/zh-CN.js +1 -1
  346. package/dist/localization/zh-CN.js.map +1 -1
  347. package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
  348. package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
  349. package/dist/style.css +1 -1
  350. package/dist/types/common/mixins/keyboard_list_navigation.d.ts.map +1 -1
  351. package/dist/types/common/sr_only_close_button.vue.d.ts +38 -2
  352. package/dist/types/components/avatar/avatar.vue.d.ts +71 -25
  353. package/dist/types/components/avatar/avatar.vue.d.ts.map +1 -1
  354. package/dist/types/components/avatar/avatar_constants.d.ts +86 -29
  355. package/dist/types/components/avatar/avatar_constants.d.ts.map +1 -1
  356. package/dist/types/components/avatar/index.d.ts +1 -1
  357. package/dist/types/components/badge/badge.vue.d.ts.map +1 -1
  358. package/dist/types/components/banner/banner.vue.d.ts +216 -5
  359. package/dist/types/components/banner/banner.vue.d.ts.map +1 -1
  360. package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +9 -0
  361. package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
  362. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +9 -0
  363. package/dist/types/components/button/button.vue.d.ts +38 -2
  364. package/dist/types/components/button/button.vue.d.ts.map +1 -1
  365. package/dist/types/components/button/button_constants.d.ts +4 -0
  366. package/dist/types/components/button/button_constants.d.ts.map +1 -1
  367. package/dist/types/components/checkbox/checkbox.vue.d.ts +178 -4
  368. package/dist/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  369. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +138 -0
  370. package/dist/types/components/chip/chip.vue.d.ts +38 -2
  371. package/dist/types/components/chip/chip.vue.d.ts.map +1 -1
  372. package/dist/types/components/codeblock/codeblock.vue.d.ts +22 -1
  373. package/dist/types/components/codeblock/codeblock.vue.d.ts.map +1 -1
  374. package/dist/types/components/codeblock/codeblock_constants.d.ts +3 -0
  375. package/dist/types/components/codeblock/codeblock_constants.d.ts.map +1 -0
  376. package/dist/types/components/collapsible/collapsible.vue.d.ts +38 -2
  377. package/dist/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
  378. package/dist/types/components/combobox/combobox.vue.d.ts +81 -15
  379. package/dist/types/components/combobox/combobox.vue.d.ts.map +1 -1
  380. package/dist/types/components/combobox/combobox_empty-list.vue.d.ts +40 -7
  381. package/dist/types/components/combobox/combobox_empty-list.vue.d.ts.map +1 -1
  382. package/dist/types/components/combobox/combobox_loading-list.vue.d.ts +40 -7
  383. package/dist/types/components/combobox/combobox_loading-list.vue.d.ts.map +1 -1
  384. package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  385. package/dist/types/components/dropdown/dropdown.vue.d.ts +76 -4
  386. package/dist/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  387. package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts +190 -0
  388. package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts +190 -0
  389. package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
  390. package/dist/types/components/empty_state/empty_state.vue.d.ts.map +1 -1
  391. package/dist/types/components/empty_state/empty_state_constants.d.ts +23 -5
  392. package/dist/types/components/filter_pill/filter_pill.vue.d.ts +2382 -0
  393. package/dist/types/components/filter_pill/filter_pill.vue.d.ts.map +1 -0
  394. package/dist/types/components/filter_pill/index.d.ts +2 -0
  395. package/dist/types/components/filter_pill/index.d.ts.map +1 -0
  396. package/dist/types/components/hovercard/hovercard.vue.d.ts +152 -8
  397. package/dist/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
  398. package/dist/types/components/image_viewer/image_viewer.vue.d.ts +76 -4
  399. package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  400. package/dist/types/components/input/input.vue.d.ts +182 -0
  401. package/dist/types/components/input/input.vue.d.ts.map +1 -1
  402. package/dist/types/components/input/input_constants.d.ts +4 -11
  403. package/dist/types/components/input_group/input_group.vue.d.ts +138 -0
  404. package/dist/types/components/input_group/input_group.vue.d.ts.map +1 -1
  405. package/dist/types/components/item_layout/item_layout.vue.d.ts +37 -6
  406. package/dist/types/components/item_layout/item_layout.vue.d.ts.map +1 -1
  407. package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +138 -0
  408. package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
  409. package/dist/types/components/link/link.vue.d.ts +9 -0
  410. package/dist/types/components/list_item/list_item.vue.d.ts +40 -7
  411. package/dist/types/components/list_item/list_item.vue.d.ts.map +1 -1
  412. package/dist/types/components/loader/loader.vue.d.ts +1 -32
  413. package/dist/types/components/loader/loader.vue.d.ts.map +1 -1
  414. package/dist/types/components/modal/modal.vue.d.ts +214 -4
  415. package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
  416. package/dist/types/components/mode_island/index.d.ts +3 -0
  417. package/dist/types/components/mode_island/index.d.ts.map +1 -0
  418. package/dist/types/components/mode_island/mode_island.vue.d.ts +3 -0
  419. package/dist/types/components/mode_island/mode_island.vue.d.ts.map +1 -0
  420. package/dist/types/components/mode_island/mode_island_constants.d.ts +10 -0
  421. package/dist/types/components/mode_island/mode_island_constants.d.ts.map +1 -0
  422. package/dist/types/components/mode_island/utils.d.ts +12 -0
  423. package/dist/types/components/mode_island/utils.d.ts.map +1 -0
  424. package/dist/types/components/mode_island/validators.d.ts +6 -0
  425. package/dist/types/components/mode_island/validators.d.ts.map +1 -0
  426. package/dist/types/components/notice/notice.vue.d.ts +216 -5
  427. package/dist/types/components/notice/notice.vue.d.ts.map +1 -1
  428. package/dist/types/components/notice/notice_action.vue.d.ts +76 -4
  429. package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
  430. package/dist/types/components/notice/notice_content.vue.d.ts +140 -1
  431. package/dist/types/components/notice/notice_content.vue.d.ts.map +1 -1
  432. package/dist/types/components/pagination/pagination.vue.d.ts +38 -2
  433. package/dist/types/components/pagination/pagination.vue.d.ts.map +1 -1
  434. package/dist/types/components/popover/popover.vue.d.ts +76 -4
  435. package/dist/types/components/popover/popover.vue.d.ts.map +1 -1
  436. package/dist/types/components/popover/popover_header_footer.vue.d.ts +38 -2
  437. package/dist/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  438. package/dist/types/components/progress_circle/index.d.ts +3 -0
  439. package/dist/types/components/progress_circle/index.d.ts.map +1 -0
  440. package/dist/types/components/progress_circle/progress_circle.vue.d.ts +70 -0
  441. package/dist/types/components/progress_circle/progress_circle.vue.d.ts.map +1 -0
  442. package/dist/types/components/progress_circle/progress_circle_constants.d.ts +23 -0
  443. package/dist/types/components/progress_circle/progress_circle_constants.d.ts.map +1 -0
  444. package/dist/types/components/radio/radio.vue.d.ts +173 -0
  445. package/dist/types/components/radio/radio.vue.d.ts.map +1 -1
  446. package/dist/types/components/radio_group/radio_group.vue.d.ts +138 -0
  447. package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +9 -0
  448. package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
  449. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +9 -0
  450. package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +209 -25
  451. package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  452. package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +140 -1
  453. package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts.map +1 -1
  454. package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +40 -7
  455. package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
  456. package/dist/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +296 -6
  457. package/dist/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -1
  458. package/dist/types/components/root_layout/root_layout_constants.d.ts +2 -0
  459. package/dist/types/components/root_layout/root_layout_constants.d.ts.map +1 -1
  460. package/dist/types/components/select_menu/select_menu.vue.d.ts +172 -13
  461. package/dist/types/components/select_menu/select_menu.vue.d.ts.map +1 -1
  462. package/dist/types/components/split_button/{split_button-omega.vue.d.ts → split_button-end.vue.d.ts} +39 -3
  463. package/dist/types/components/split_button/{split_button-omega.vue.d.ts.map → split_button-end.vue.d.ts.map} +1 -1
  464. package/dist/types/components/split_button/{split_button-alpha.vue.d.ts → split_button-start.vue.d.ts} +103 -4
  465. package/dist/types/components/split_button/split_button-start.vue.d.ts.map +1 -0
  466. package/dist/types/components/split_button/split_button.vue.d.ts +443 -34
  467. package/dist/types/components/split_button/split_button.vue.d.ts.map +1 -1
  468. package/dist/types/components/tab/index.d.ts +1 -1
  469. package/dist/types/components/tab/tab.vue.d.ts +73 -7
  470. package/dist/types/components/tab/tab.vue.d.ts.map +1 -1
  471. package/dist/types/components/tab/tab_group.vue.d.ts +42 -0
  472. package/dist/types/components/tab/tab_group.vue.d.ts.map +1 -1
  473. package/dist/types/components/tab/tabs_constants.d.ts +5 -3
  474. package/dist/types/components/tab/tabs_constants.d.ts.map +1 -1
  475. package/dist/types/components/text/index.d.ts +3 -0
  476. package/dist/types/components/text/index.d.ts.map +1 -0
  477. package/dist/types/components/text/scripts/update-text-tone-tokens.d.cts +3 -0
  478. package/dist/types/components/text/scripts/update-text-tone-tokens.d.cts.map +1 -0
  479. package/dist/types/components/text/scripts/update_text_tone_tokens.d.cts +3 -0
  480. package/dist/types/components/text/scripts/update_text_tone_tokens.d.cts.map +1 -0
  481. package/dist/types/components/text/scripts/update_text_tone_tokens.d.ts +1 -0
  482. package/dist/types/components/text/scripts/update_text_tone_tokens.d.ts.map +1 -0
  483. package/dist/types/components/text/text.vue.d.ts +141 -0
  484. package/dist/types/components/text/text.vue.d.ts.map +1 -0
  485. package/dist/types/components/text/text_constants.d.ts +73 -0
  486. package/dist/types/components/text/text_constants.d.ts.map +1 -0
  487. package/dist/types/components/text/text_tone_tokens.d.ts +3 -0
  488. package/dist/types/components/text/text_tone_tokens.d.ts.map +1 -0
  489. package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +216 -5
  490. package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  491. package/dist/types/components/toast/layouts/toast_layout_default.vue.d.ts +216 -5
  492. package/dist/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
  493. package/dist/types/components/toast/toast.vue.d.ts +864 -20
  494. package/dist/types/components/toast/toast.vue.d.ts.map +1 -1
  495. package/dist/types/components/toggle/toggle.vue.d.ts +9 -1
  496. package/dist/types/components/toggle/toggle.vue.d.ts.map +1 -1
  497. package/dist/types/index.d.ts +4 -0
  498. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +38 -2
  499. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
  500. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +152 -8
  501. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  502. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +152 -8
  503. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  504. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +114 -6
  505. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  506. package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +38 -2
  507. package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
  508. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +239 -35
  509. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  510. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +196 -12
  511. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  512. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +158 -10
  513. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  514. package/dist/types/recipes/conversation_view/editor/EditorToolbarButton.vue.d.ts +38 -2
  515. package/dist/types/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts +114 -6
  516. package/dist/types/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts.map +1 -1
  517. package/dist/types/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts +114 -6
  518. package/dist/types/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts.map +1 -1
  519. package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +38 -2
  520. package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  521. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +75 -8
  522. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  523. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +111 -32
  524. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  525. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +75 -8
  526. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  527. package/dist/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +176 -2
  528. package/dist/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -1
  529. package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +472 -8
  530. package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  531. package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +176 -2
  532. package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  533. package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +38 -2
  534. package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
  535. package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +108 -31
  536. package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
  537. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +71 -25
  538. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
  539. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +38 -2
  540. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  541. package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +467 -28
  542. package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  543. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +396 -3
  544. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  545. package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +396 -3
  546. package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  547. package/dist/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +1 -1
  548. package/package.json +6 -5
  549. package/dist/lib/split-button/split-button-alpha.cjs +0 -2
  550. package/dist/lib/split-button/split-button-alpha.cjs.map +0 -1
  551. package/dist/lib/split-button/split-button-alpha.js +0 -138
  552. package/dist/lib/split-button/split-button-alpha.js.map +0 -1
  553. package/dist/lib/split-button/split-button-omega.cjs +0 -2
  554. package/dist/lib/split-button/split-button-omega.cjs.map +0 -1
  555. package/dist/lib/split-button/split-button-omega.js.map +0 -1
  556. package/dist/types/components/split_button/split_button-alpha.vue.d.ts.map +0 -1
  557. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +0 -30
  558. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +0 -1
@@ -1,119 +1,120 @@
1
- import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeViewRenderer as mt, EditorContent as ze, Editor as Fe } from "../../node_modules/@tiptap/vue-3.js";
2
- import { isTextSelection as Ke, posToDOMRect as re, getText as We, getTextSerializersFromSchema as qe, Node as ae, nodePasteRule as Et, InputRule as Xe, mergeAttributes as st, getMarksBetween as Ye, combineTransactionSteps as Ge, getChangedRanges as Je, findChildrenInRange as Ze, Mark as Qe, nodeInputRule as tn, Extension as en } from "@tiptap/core";
3
- import { Plugin as It, PluginKey as rt, NodeSelection as nn } from "@tiptap/pm/state";
4
- import { CellSelection as on } from "@tiptap/pm/tables";
5
- import { defineComponent as le, ref as ce, onMounted as de, nextTick as sn, onBeforeUnmount as ue, h as he, resolveComponent as T, openBlock as _, createBlock as I, withCtx as C, createVNode as M, createElementBlock as et, withDirectives as rn, createElementVNode as nt, Fragment as an, renderList as ln, withModifiers as At, normalizeClass as fe, resolveDynamicComponent as cn, vShow as dn, markRaw as un, createTextVNode as at, toDisplayString as $, createCommentVNode as it, withKeys as hn, mergeProps as pe } from "vue";
6
- import fn from "@tiptap/extension-blockquote";
7
- import pn from "@tiptap/extension-code-block";
8
- import mn from "@tiptap/extension-code";
9
- import gn from "@tiptap/extension-document";
10
- import { UndoRedo as yn, Placeholder as wn, Gapcursor as bn } from "@tiptap/extensions";
11
- import vn from "@tiptap/extension-hard-break";
1
+ import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeViewRenderer as mt, EditorContent as Fe, Editor as Ke } from "../../node_modules/@tiptap/vue-3.js";
2
+ import { isTextSelection as We, posToDOMRect as re, getText as qe, getTextSerializersFromSchema as Xe, Node as ae, nodePasteRule as Et, InputRule as Ye, mergeAttributes as it, getMarksBetween as Ge, combineTransactionSteps as Je, getChangedRanges as Ze, findChildrenInRange as Qe, Mark as tn, nodeInputRule as en, Extension as nn } from "@tiptap/core";
3
+ import { Plugin as It, PluginKey as st, NodeSelection as on } from "@tiptap/pm/state";
4
+ import { CellSelection as sn } from "@tiptap/pm/tables";
5
+ import { defineComponent as le, ref as ce, onMounted as de, nextTick as rn, onBeforeUnmount as ue, h as he, resolveComponent as x, openBlock as k, createBlock as E, withCtx as T, createVNode as A, createElementBlock as ut, withDirectives as an, createElementVNode as ct, Fragment as ln, renderList as cn, withModifiers as At, normalizeClass as fe, resolveDynamicComponent as dn, vShow as un, markRaw as hn, createTextVNode as Y, toDisplayString as $, createCommentVNode as ot, withKeys as fn, mergeProps as pe } from "vue";
6
+ import pn from "@tiptap/extension-blockquote";
7
+ import mn from "@tiptap/extension-code-block";
8
+ import gn from "@tiptap/extension-code";
9
+ import yn from "@tiptap/extension-document";
10
+ import { UndoRedo as wn, Placeholder as bn, Gapcursor as vn } from "@tiptap/extensions";
11
+ import xn from "@tiptap/extension-hard-break";
12
12
  import me from "@tiptap/extension-paragraph";
13
- import xn from "@tiptap/extension-bold";
14
- import { BulletList as Tn, ListItem as _n, OrderedList as kn } from "@tiptap/extension-list";
15
- import Cn from "@tiptap/extension-italic";
16
- import On from "@tiptap/extension-link";
17
- import En from "@tiptap/extension-strike";
18
- import Sn from "@tiptap/extension-underline";
19
- import Ln from "@tiptap/extension-text";
20
- import In from "@tiptap/extension-text-align";
21
- import { Table as An, TableRow as Dn, TableHeader as Rn, TableCell as Mn } from "@tiptap/extension-table";
22
- import { TextStyleKit as Hn } from "@tiptap/extension-text-style";
23
- import $n from "@tiptap/suggestion";
13
+ import Tn from "@tiptap/extension-bold";
14
+ import { BulletList as _n, ListItem as kn, OrderedList as Cn } from "@tiptap/extension-list";
15
+ import On from "@tiptap/extension-italic";
16
+ import En from "@tiptap/extension-link";
17
+ import Sn from "@tiptap/extension-strike";
18
+ import Ln from "@tiptap/extension-underline";
19
+ import In from "@tiptap/extension-text";
20
+ import An from "@tiptap/extension-text-align";
21
+ import { Table as Dn, TableRow as Rn, TableHeader as Mn, TableCell as Hn } from "@tiptap/extension-table";
22
+ import { TextStyleKit as $n } from "@tiptap/extension-text-style";
23
+ import Bn from "@tiptap/suggestion";
24
24
  import { emojiPattern as ge } from "regex-combined-emojis";
25
25
  import { _ as q } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
26
26
  import ye from "../emoji/emoji.js";
27
- import { getEmojiData as Bn, emojiRegex as Nn, stringToUnicode as Pn, codeToEmojiData as Dt, emojiShortCodeRegex as Un } from "../../common/emoji/index.js";
28
- import Vn from "../list-item/list-item.js";
27
+ import { getEmojiData as Nn, emojiRegex as Pn, stringToUnicode as Un, codeToEmojiData as Dt, emojiShortCodeRegex as Vn } from "../../common/emoji/index.js";
28
+ import zn from "../list-item/list-item.js";
29
29
  import gt from "../stack/stack.js";
30
- import { linkRegex as jn, getPhoneNumberRegex as zn, warnIfUnmounted as Fn, returnFirstEl as zt } from "../../common/utils/index.js";
31
- import Kn from "@tiptap/extension-image";
30
+ import { linkRegex as jn, getPhoneNumberRegex as Fn, warnIfUnmounted as Kn, returnFirstEl as jt } from "../../common/utils/index.js";
31
+ import Wn from "@tiptap/extension-image";
32
32
  import Rt from "@tiptap/extension-mention";
33
33
  import we from "../link/link.js";
34
- import { DtIconLock as Wn } from "@dialpad/dialtone-icons/vue3";
34
+ import { DtIconLock as qn } from "@dialpad/dialtone-icons/vue3";
35
35
  import { DialtoneLocalization as be } from "../../localization/index.js";
36
- import qn from "../input/input.js";
37
- import Xn from "../popover/popover.js";
36
+ import Xn from "../input/input.js";
37
+ import Yn from "../popover/popover.js";
38
38
  import ve from "../button/button.js";
39
- import Yn from "../badge/badge.js";
40
- import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as Ft, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Gn, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Jn } from "./rich-text-editor-constants.js";
41
- import Zn from "../avatar/avatar.js";
42
- import Qn from "@dialpad/dialtone-icons/vue3/hash";
43
- import to from "@dialpad/dialtone-icons/vue3/lock";
44
- import eo from "deep-equal";
45
- const xe = ["top", "right", "bottom", "left"], Kt = ["start", "end"], Wt = /* @__PURE__ */ xe.reduce((t, e) => t.concat(e, e + "-" + Kt[0], e + "-" + Kt[1]), []), G = Math.min, R = Math.max, wt = Math.round, Y = (t) => ({
39
+ import Gn from "../badge/badge.js";
40
+ import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as Ft, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Jn, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Zn } from "./rich-text-editor-constants.js";
41
+ import xe from "../text/text.js";
42
+ import Qn from "../avatar/avatar.js";
43
+ import to from "@dialpad/dialtone-icons/vue3/hash";
44
+ import eo from "@dialpad/dialtone-icons/vue3/lock";
45
+ import no from "deep-equal";
46
+ const Te = ["top", "right", "bottom", "left"], Kt = ["start", "end"], Wt = /* @__PURE__ */ Te.reduce((t, e) => t.concat(e, e + "-" + Kt[0], e + "-" + Kt[1]), []), J = Math.min, M = Math.max, wt = Math.round, G = (t) => ({
46
47
  x: t,
47
48
  y: t
48
- }), no = {
49
+ }), oo = {
49
50
  left: "right",
50
51
  right: "left",
51
52
  bottom: "top",
52
53
  top: "bottom"
53
- }, oo = {
54
+ }, io = {
54
55
  start: "end",
55
56
  end: "start"
56
57
  };
57
58
  function St(t, e, o) {
58
- return R(t, G(e, o));
59
+ return M(t, J(e, o));
59
60
  }
60
- function Z(t, e) {
61
+ function Q(t, e) {
61
62
  return typeof t == "function" ? t(e) : t;
62
63
  }
63
- function j(t) {
64
+ function z(t) {
64
65
  return t.split("-")[0];
65
66
  }
66
67
  function F(t) {
67
68
  return t.split("-")[1];
68
69
  }
69
- function Te(t) {
70
+ function _e(t) {
70
71
  return t === "x" ? "y" : "x";
71
72
  }
72
73
  function Mt(t) {
73
74
  return t === "y" ? "height" : "width";
74
75
  }
75
- const io = /* @__PURE__ */ new Set(["top", "bottom"]);
76
+ const so = /* @__PURE__ */ new Set(["top", "bottom"]);
76
77
  function X(t) {
77
- return io.has(j(t)) ? "y" : "x";
78
+ return so.has(z(t)) ? "y" : "x";
78
79
  }
79
80
  function Ht(t) {
80
- return Te(X(t));
81
+ return _e(X(t));
81
82
  }
82
- function _e(t, e, o) {
83
+ function ke(t, e, o) {
83
84
  o === void 0 && (o = !1);
84
85
  const n = F(t), i = Ht(t), s = Mt(i);
85
86
  let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
86
87
  return e.reference[s] > e.floating[s] && (r = vt(r)), [r, vt(r)];
87
88
  }
88
- function so(t) {
89
+ function ro(t) {
89
90
  const e = vt(t);
90
91
  return [bt(t), e, bt(e)];
91
92
  }
92
93
  function bt(t) {
93
- return t.replace(/start|end/g, (e) => oo[e]);
94
+ return t.replace(/start|end/g, (e) => io[e]);
94
95
  }
95
- const qt = ["left", "right"], Xt = ["right", "left"], ro = ["top", "bottom"], ao = ["bottom", "top"];
96
- function lo(t, e, o) {
96
+ const qt = ["left", "right"], Xt = ["right", "left"], ao = ["top", "bottom"], lo = ["bottom", "top"];
97
+ function co(t, e, o) {
97
98
  switch (t) {
98
99
  case "top":
99
100
  case "bottom":
100
101
  return o ? e ? Xt : qt : e ? qt : Xt;
101
102
  case "left":
102
103
  case "right":
103
- return e ? ro : ao;
104
+ return e ? ao : lo;
104
105
  default:
105
106
  return [];
106
107
  }
107
108
  }
108
- function co(t, e, o, n) {
109
+ function uo(t, e, o, n) {
109
110
  const i = F(t);
110
- let s = lo(j(t), o === "start", n);
111
+ let s = co(z(t), o === "start", n);
111
112
  return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(bt)))), s;
112
113
  }
113
114
  function vt(t) {
114
- return t.replace(/left|right|bottom|top/g, (e) => no[e]);
115
+ return t.replace(/left|right|bottom|top/g, (e) => oo[e]);
115
116
  }
116
- function uo(t) {
117
+ function ho(t) {
117
118
  return {
118
119
  top: 0,
119
120
  right: 0,
@@ -123,14 +124,14 @@ function uo(t) {
123
124
  };
124
125
  }
125
126
  function $t(t) {
126
- return typeof t != "number" ? uo(t) : {
127
+ return typeof t != "number" ? ho(t) : {
127
128
  top: t,
128
129
  right: t,
129
130
  bottom: t,
130
131
  left: t
131
132
  };
132
133
  }
133
- function ct(t) {
134
+ function at(t) {
134
135
  const {
135
136
  x: e,
136
137
  y: o,
@@ -153,7 +154,7 @@ function Yt(t, e, o) {
153
154
  reference: n,
154
155
  floating: i
155
156
  } = t;
156
- const s = X(e), r = Ht(e), a = Mt(r), l = j(e), u = s === "y", d = n.x + n.width / 2 - i.width / 2, c = n.y + n.height / 2 - i.height / 2, h = n[a] / 2 - i[a] / 2;
157
+ const s = X(e), r = Ht(e), a = Mt(r), l = z(e), u = s === "y", d = n.x + n.width / 2 - i.width / 2, c = n.y + n.height / 2 - i.height / 2, h = n[a] / 2 - i[a] / 2;
157
158
  let f;
158
159
  switch (l) {
159
160
  case "top":
@@ -196,7 +197,7 @@ function Yt(t, e, o) {
196
197
  }
197
198
  return f;
198
199
  }
199
- async function ho(t, e) {
200
+ async function fo(t, e) {
200
201
  var o;
201
202
  e === void 0 && (e = {});
202
203
  const {
@@ -212,7 +213,7 @@ async function ho(t, e) {
212
213
  elementContext: c = "floating",
213
214
  altBoundary: h = !1,
214
215
  padding: f = 0
215
- } = Z(e, t), p = $t(f), g = a[h ? c === "floating" ? "reference" : "floating" : c], y = ct(await s.getClippingRect({
216
+ } = Q(e, t), p = $t(f), g = a[h ? c === "floating" ? "reference" : "floating" : c], y = at(await s.getClippingRect({
216
217
  element: (o = await (s.isElement == null ? void 0 : s.isElement(g))) == null || o ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
217
218
  boundary: u,
218
219
  rootBoundary: d,
@@ -222,26 +223,26 @@ async function ho(t, e) {
222
223
  y: i,
223
224
  width: r.floating.width,
224
225
  height: r.floating.height
225
- } : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), x = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
226
+ } : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), _ = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
226
227
  x: 1,
227
228
  y: 1
228
229
  } : {
229
230
  x: 1,
230
231
  y: 1
231
- }, O = ct(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
232
+ }, O = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
232
233
  elements: a,
233
234
  rect: b,
234
235
  offsetParent: v,
235
236
  strategy: l
236
237
  }) : b);
237
238
  return {
238
- top: (y.top - O.top + p.top) / x.y,
239
- bottom: (O.bottom - y.bottom + p.bottom) / x.y,
240
- left: (y.left - O.left + p.left) / x.x,
241
- right: (O.right - y.right + p.right) / x.x
239
+ top: (y.top - O.top + p.top) / _.y,
240
+ bottom: (O.bottom - y.bottom + p.bottom) / _.y,
241
+ left: (y.left - O.left + p.left) / _.x,
242
+ right: (O.right - y.right + p.right) / _.x
242
243
  };
243
244
  }
244
- const fo = async (t, e, o) => {
245
+ const po = async (t, e, o) => {
245
246
  const {
246
247
  placement: n = "bottom",
247
248
  strategy: i = "absolute",
@@ -263,9 +264,9 @@ const fo = async (t, e, o) => {
263
264
  fn: b
264
265
  } = a[g], {
265
266
  x: v,
266
- y: x,
267
+ y: _,
267
268
  data: O,
268
- reset: k
269
+ reset: C
269
270
  } = await b({
270
271
  x: d,
271
272
  y: c,
@@ -276,24 +277,24 @@ const fo = async (t, e, o) => {
276
277
  rects: u,
277
278
  platform: {
278
279
  ...r,
279
- detectOverflow: (m = r.detectOverflow) != null ? m : ho
280
+ detectOverflow: (m = r.detectOverflow) != null ? m : fo
280
281
  },
281
282
  elements: {
282
283
  reference: t,
283
284
  floating: e
284
285
  }
285
286
  });
286
- d = v ?? d, c = x ?? c, f = {
287
+ d = v ?? d, c = _ ?? c, f = {
287
288
  ...f,
288
289
  [y]: {
289
290
  ...f[y],
290
291
  ...O
291
292
  }
292
- }, k && p <= 50 && (p++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (u = k.rects === !0 ? await r.getElementRects({
293
+ }, C && p <= 50 && (p++, typeof C == "object" && (C.placement && (h = C.placement), C.rects && (u = C.rects === !0 ? await r.getElementRects({
293
294
  reference: t,
294
295
  floating: e,
295
296
  strategy: i
296
- }) : k.rects), {
297
+ }) : C.rects), {
297
298
  x: d,
298
299
  y: c
299
300
  } = Yt(u, h, l)), g = -1);
@@ -305,7 +306,7 @@ const fo = async (t, e, o) => {
305
306
  strategy: i,
306
307
  middlewareData: f
307
308
  };
308
- }, po = (t) => ({
309
+ }, mo = (t) => ({
309
310
  name: "arrow",
310
311
  options: t,
311
312
  async fn(e) {
@@ -320,21 +321,21 @@ const fo = async (t, e, o) => {
320
321
  } = e, {
321
322
  element: u,
322
323
  padding: d = 0
323
- } = Z(t, e) || {};
324
+ } = Q(t, e) || {};
324
325
  if (u == null)
325
326
  return {};
326
327
  const c = $t(d), h = {
327
328
  x: o,
328
329
  y: n
329
- }, f = Ht(i), p = Mt(f), m = await r.getDimensions(u), g = f === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", x = s.reference[p] + s.reference[f] - h[f] - s.floating[p], O = h[f] - s.reference[f], k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
330
- let L = k ? k[v] : 0;
331
- (!L || !await (r.isElement == null ? void 0 : r.isElement(k))) && (L = a.floating[v] || s.floating[p]);
332
- const U = x / 2 - O / 2, A = L / 2 - m[p] / 2 - 1, w = G(c[y], A), E = G(c[b], A), D = w, H = L - m[p] - E, S = L / 2 - m[p] / 2 + U, z = St(D, S, H), V = !l.arrow && F(i) != null && S !== z && s.reference[p] / 2 - (S < D ? w : E) - m[p] / 2 < 0, B = V ? S < D ? S - D : S - H : 0;
330
+ }, f = Ht(i), p = Mt(f), m = await r.getDimensions(u), g = f === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", _ = s.reference[p] + s.reference[f] - h[f] - s.floating[p], O = h[f] - s.reference[f], C = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
331
+ let I = C ? C[v] : 0;
332
+ (!I || !await (r.isElement == null ? void 0 : r.isElement(C))) && (I = a.floating[v] || s.floating[p]);
333
+ const U = _ / 2 - O / 2, D = I / 2 - m[p] / 2 - 1, w = J(c[y], D), S = J(c[b], D), R = w, H = I - m[p] - S, L = I / 2 - m[p] / 2 + U, j = St(R, L, H), V = !l.arrow && F(i) != null && L !== j && s.reference[p] / 2 - (L < R ? w : S) - m[p] / 2 < 0, B = V ? L < R ? L - R : L - H : 0;
333
334
  return {
334
335
  [f]: h[f] + B,
335
336
  data: {
336
- [f]: z,
337
- centerOffset: S - z - B,
337
+ [f]: j,
338
+ centerOffset: L - j - B,
338
339
  ...V && {
339
340
  alignmentOffset: B
340
341
  }
@@ -343,10 +344,10 @@ const fo = async (t, e, o) => {
343
344
  };
344
345
  }
345
346
  });
346
- function mo(t, e, o) {
347
- return (t ? [...o.filter((i) => F(i) === t), ...o.filter((i) => F(i) !== t)] : o.filter((i) => j(i) === i)).filter((i) => t ? F(i) === t || (e ? bt(i) !== i : !1) : !0);
347
+ function go(t, e, o) {
348
+ return (t ? [...o.filter((i) => F(i) === t), ...o.filter((i) => F(i) !== t)] : o.filter((i) => z(i) === i)).filter((i) => t ? F(i) === t || (e ? bt(i) !== i : !1) : !0);
348
349
  }
349
- const go = function(t) {
350
+ const yo = function(t) {
350
351
  return t === void 0 && (t = {}), {
351
352
  name: "autoPlacement",
352
353
  options: t,
@@ -364,57 +365,57 @@ const go = function(t) {
364
365
  allowedPlacements: h = Wt,
365
366
  autoAlignment: f = !0,
366
367
  ...p
367
- } = Z(t, e), m = c !== void 0 || h === Wt ? mo(c || null, f, h) : h, g = await l.detectOverflow(e, p), y = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, b = m[y];
368
+ } = Q(t, e), m = c !== void 0 || h === Wt ? go(c || null, f, h) : h, g = await l.detectOverflow(e, p), y = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, b = m[y];
368
369
  if (b == null)
369
370
  return {};
370
- const v = _e(b, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
371
+ const v = ke(b, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
371
372
  if (a !== b)
372
373
  return {
373
374
  reset: {
374
375
  placement: m[0]
375
376
  }
376
377
  };
377
- const x = [g[j(b)], g[v[0]], g[v[1]]], O = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
378
+ const _ = [g[z(b)], g[v[0]], g[v[1]]], O = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
378
379
  placement: b,
379
- overflows: x
380
- }], k = m[y + 1];
381
- if (k)
380
+ overflows: _
381
+ }], C = m[y + 1];
382
+ if (C)
382
383
  return {
383
384
  data: {
384
385
  index: y + 1,
385
386
  overflows: O
386
387
  },
387
388
  reset: {
388
- placement: k
389
+ placement: C
389
390
  }
390
391
  };
391
- const L = O.map((w) => {
392
- const E = F(w.placement);
393
- return [w.placement, E && d ? (
392
+ const I = O.map((w) => {
393
+ const S = F(w.placement);
394
+ return [w.placement, S && d ? (
394
395
  // Check along the mainAxis and main crossAxis side.
395
- w.overflows.slice(0, 2).reduce((D, H) => D + H, 0)
396
+ w.overflows.slice(0, 2).reduce((R, H) => R + H, 0)
396
397
  ) : (
397
398
  // Check only the mainAxis.
398
399
  w.overflows[0]
399
400
  ), w.overflows];
400
- }).sort((w, E) => w[1] - E[1]), A = ((i = L.filter((w) => w[2].slice(
401
+ }).sort((w, S) => w[1] - S[1]), D = ((i = I.filter((w) => w[2].slice(
401
402
  0,
402
403
  // Aligned placements should not check their opposite crossAxis
403
404
  // side.
404
405
  F(w[0]) ? 2 : 3
405
- ).every((E) => E <= 0))[0]) == null ? void 0 : i[0]) || L[0][0];
406
- return A !== a ? {
406
+ ).every((S) => S <= 0))[0]) == null ? void 0 : i[0]) || I[0][0];
407
+ return D !== a ? {
407
408
  data: {
408
409
  index: y + 1,
409
410
  overflows: O
410
411
  },
411
412
  reset: {
412
- placement: A
413
+ placement: D
413
414
  }
414
415
  } : {};
415
416
  }
416
417
  };
417
- }, yo = function(t) {
418
+ }, wo = function(t) {
418
419
  return t === void 0 && (t = {}), {
419
420
  name: "flip",
420
421
  options: t,
@@ -435,49 +436,49 @@ const go = function(t) {
435
436
  fallbackAxisSideDirection: p = "none",
436
437
  flipAlignment: m = !0,
437
438
  ...g
438
- } = Z(t, e);
439
+ } = Q(t, e);
439
440
  if ((o = s.arrow) != null && o.alignmentOffset)
440
441
  return {};
441
- const y = j(i), b = X(a), v = j(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = h || (v || !m ? [vt(a)] : so(a)), k = p !== "none";
442
- !h && k && O.push(...co(a, m, p, x));
443
- const L = [a, ...O], U = await l.detectOverflow(e, g), A = [];
442
+ const y = z(i), b = X(a), v = z(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = h || (v || !m ? [vt(a)] : ro(a)), C = p !== "none";
443
+ !h && C && O.push(...uo(a, m, p, _));
444
+ const I = [a, ...O], U = await l.detectOverflow(e, g), D = [];
444
445
  let w = ((n = s.flip) == null ? void 0 : n.overflows) || [];
445
- if (d && A.push(U[y]), c) {
446
- const S = _e(i, r, x);
447
- A.push(U[S[0]], U[S[1]]);
446
+ if (d && D.push(U[y]), c) {
447
+ const L = ke(i, r, _);
448
+ D.push(U[L[0]], U[L[1]]);
448
449
  }
449
450
  if (w = [...w, {
450
451
  placement: i,
451
- overflows: A
452
- }], !A.every((S) => S <= 0)) {
453
- var E, D;
454
- const S = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, z = L[S];
455
- if (z && (!(c === "alignment" ? b !== X(z) : !1) || // We leave the current main axis only if every placement on that axis
452
+ overflows: D
453
+ }], !D.every((L) => L <= 0)) {
454
+ var S, R;
455
+ const L = (((S = s.flip) == null ? void 0 : S.index) || 0) + 1, j = I[L];
456
+ if (j && (!(c === "alignment" ? b !== X(j) : !1) || // We leave the current main axis only if every placement on that axis
456
457
  // overflows the main axis.
457
458
  w.every((N) => X(N.placement) === b ? N.overflows[0] > 0 : !0)))
458
459
  return {
459
460
  data: {
460
- index: S,
461
+ index: L,
461
462
  overflows: w
462
463
  },
463
464
  reset: {
464
- placement: z
465
+ placement: j
465
466
  }
466
467
  };
467
- let V = (D = w.filter((B) => B.overflows[0] <= 0).sort((B, N) => B.overflows[1] - N.overflows[1])[0]) == null ? void 0 : D.placement;
468
+ let V = (R = w.filter((B) => B.overflows[0] <= 0).sort((B, N) => B.overflows[1] - N.overflows[1])[0]) == null ? void 0 : R.placement;
468
469
  if (!V)
469
470
  switch (f) {
470
471
  case "bestFit": {
471
472
  var H;
472
473
  const B = (H = w.filter((N) => {
473
- if (k) {
474
- const tt = X(N.placement);
475
- return tt === b || // Create a bias to the `y` side axis due to horizontal
474
+ if (C) {
475
+ const et = X(N.placement);
476
+ return et === b || // Create a bias to the `y` side axis due to horizontal
476
477
  // reading directions favoring greater width.
477
- tt === "y";
478
+ et === "y";
478
479
  }
479
480
  return !0;
480
- }).map((N) => [N.placement, N.overflows.filter((tt) => tt > 0).reduce((tt, Ve) => tt + Ve, 0)]).sort((N, tt) => N[1] - tt[1])[0]) == null ? void 0 : H[0];
481
+ }).map((N) => [N.placement, N.overflows.filter((et) => et > 0).reduce((et, ze) => et + ze, 0)]).sort((N, et) => N[1] - et[1])[0]) == null ? void 0 : H[0];
481
482
  B && (V = B);
482
483
  break;
483
484
  }
@@ -505,9 +506,9 @@ function Gt(t, e) {
505
506
  };
506
507
  }
507
508
  function Jt(t) {
508
- return xe.some((e) => t[e] >= 0);
509
+ return Te.some((e) => t[e] >= 0);
509
510
  }
510
- const wo = function(t) {
511
+ const bo = function(t) {
511
512
  return t === void 0 && (t = {}), {
512
513
  name: "hide",
513
514
  options: t,
@@ -518,7 +519,7 @@ const wo = function(t) {
518
519
  } = e, {
519
520
  strategy: i = "referenceHidden",
520
521
  ...s
521
- } = Z(t, e);
522
+ } = Q(t, e);
522
523
  switch (i) {
523
524
  case "referenceHidden": {
524
525
  const r = await n.detectOverflow(e, {
@@ -550,8 +551,8 @@ const wo = function(t) {
550
551
  }
551
552
  };
552
553
  };
553
- function ke(t) {
554
- const e = G(...t.map((s) => s.left)), o = G(...t.map((s) => s.top)), n = R(...t.map((s) => s.right)), i = R(...t.map((s) => s.bottom));
554
+ function Ce(t) {
555
+ const e = J(...t.map((s) => s.left)), o = J(...t.map((s) => s.top)), n = M(...t.map((s) => s.right)), i = M(...t.map((s) => s.bottom));
555
556
  return {
556
557
  x: e,
557
558
  y: o,
@@ -559,16 +560,16 @@ function ke(t) {
559
560
  height: i - o
560
561
  };
561
562
  }
562
- function bo(t) {
563
+ function vo(t) {
563
564
  const e = t.slice().sort((i, s) => i.y - s.y), o = [];
564
565
  let n = null;
565
566
  for (let i = 0; i < e.length; i++) {
566
567
  const s = e[i];
567
568
  !n || s.y - n.y > n.height / 2 ? o.push([s]) : o[o.length - 1].push(s), n = s;
568
569
  }
569
- return o.map((i) => ct(ke(i)));
570
+ return o.map((i) => at(Ce(i)));
570
571
  }
571
- const vo = function(t) {
572
+ const xo = function(t) {
572
573
  return t === void 0 && (t = {}), {
573
574
  name: "inline",
574
575
  options: t,
@@ -583,34 +584,34 @@ const vo = function(t) {
583
584
  padding: a = 2,
584
585
  x: l,
585
586
  y: u
586
- } = Z(t, e), d = Array.from(await (s.getClientRects == null ? void 0 : s.getClientRects(n.reference)) || []), c = bo(d), h = ct(ke(d)), f = $t(a);
587
+ } = Q(t, e), d = Array.from(await (s.getClientRects == null ? void 0 : s.getClientRects(n.reference)) || []), c = vo(d), h = at(Ce(d)), f = $t(a);
587
588
  function p() {
588
589
  if (c.length === 2 && c[0].left > c[1].right && l != null && u != null)
589
590
  return c.find((g) => l > g.left - f.left && l < g.right + f.right && u > g.top - f.top && u < g.bottom + f.bottom) || h;
590
591
  if (c.length >= 2) {
591
592
  if (X(o) === "y") {
592
- const w = c[0], E = c[c.length - 1], D = j(o) === "top", H = w.top, S = E.bottom, z = D ? w.left : E.left, V = D ? w.right : E.right, B = V - z, N = S - H;
593
+ const w = c[0], S = c[c.length - 1], R = z(o) === "top", H = w.top, L = S.bottom, j = R ? w.left : S.left, V = R ? w.right : S.right, B = V - j, N = L - H;
593
594
  return {
594
595
  top: H,
595
- bottom: S,
596
- left: z,
596
+ bottom: L,
597
+ left: j,
597
598
  right: V,
598
599
  width: B,
599
600
  height: N,
600
- x: z,
601
+ x: j,
601
602
  y: H
602
603
  };
603
604
  }
604
- const g = j(o) === "left", y = R(...c.map((w) => w.right)), b = G(...c.map((w) => w.left)), v = c.filter((w) => g ? w.left === b : w.right === y), x = v[0].top, O = v[v.length - 1].bottom, k = b, L = y, U = L - k, A = O - x;
605
+ const g = z(o) === "left", y = M(...c.map((w) => w.right)), b = J(...c.map((w) => w.left)), v = c.filter((w) => g ? w.left === b : w.right === y), _ = v[0].top, O = v[v.length - 1].bottom, C = b, I = y, U = I - C, D = O - _;
605
606
  return {
606
- top: x,
607
+ top: _,
607
608
  bottom: O,
608
- left: k,
609
- right: L,
609
+ left: C,
610
+ right: I,
610
611
  width: U,
611
- height: A,
612
- x: k,
613
- y: x
612
+ height: D,
613
+ x: C,
614
+ y: _
614
615
  };
615
616
  }
616
617
  return h;
@@ -629,13 +630,13 @@ const vo = function(t) {
629
630
  } : {};
630
631
  }
631
632
  };
632
- }, xo = /* @__PURE__ */ new Set(["left", "top"]);
633
- async function To(t, e) {
633
+ }, To = /* @__PURE__ */ new Set(["left", "top"]);
634
+ async function _o(t, e) {
634
635
  const {
635
636
  placement: o,
636
637
  platform: n,
637
638
  elements: i
638
- } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = j(o), a = F(o), l = X(o) === "y", u = xo.has(r) ? -1 : 1, d = s && l ? -1 : 1, c = Z(e, t);
639
+ } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = z(o), a = F(o), l = X(o) === "y", u = To.has(r) ? -1 : 1, d = s && l ? -1 : 1, c = Q(e, t);
639
640
  let {
640
641
  mainAxis: h,
641
642
  crossAxis: f,
@@ -657,7 +658,7 @@ async function To(t, e) {
657
658
  y: f * d
658
659
  };
659
660
  }
660
- const _o = function(t) {
661
+ const ko = function(t) {
661
662
  return t === void 0 && (t = 0), {
662
663
  name: "offset",
663
664
  options: t,
@@ -668,7 +669,7 @@ const _o = function(t) {
668
669
  y: s,
669
670
  placement: r,
670
671
  middlewareData: a
671
- } = e, l = await To(e, t);
672
+ } = e, l = await _o(e, t);
672
673
  return r === ((o = a.offset) == null ? void 0 : o.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
673
674
  x: i + l.x,
674
675
  y: s + l.y,
@@ -679,7 +680,7 @@ const _o = function(t) {
679
680
  };
680
681
  }
681
682
  };
682
- }, ko = function(t) {
683
+ }, Co = function(t) {
683
684
  return t === void 0 && (t = {}), {
684
685
  name: "shift",
685
686
  options: t,
@@ -705,18 +706,18 @@ const _o = function(t) {
705
706
  }
706
707
  },
707
708
  ...u
708
- } = Z(t, e), d = {
709
+ } = Q(t, e), d = {
709
710
  x: o,
710
711
  y: n
711
- }, c = await s.detectOverflow(e, u), h = X(j(i)), f = Te(h);
712
+ }, c = await s.detectOverflow(e, u), h = X(z(i)), f = _e(h);
712
713
  let p = d[f], m = d[h];
713
714
  if (r) {
714
- const y = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", v = p + c[y], x = p - c[b];
715
- p = St(v, p, x);
715
+ const y = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", v = p + c[y], _ = p - c[b];
716
+ p = St(v, p, _);
716
717
  }
717
718
  if (a) {
718
- const y = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", v = m + c[y], x = m - c[b];
719
- m = St(v, m, x);
719
+ const y = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", v = m + c[y], _ = m - c[b];
720
+ m = St(v, m, _);
720
721
  }
721
722
  const g = l.fn({
722
723
  ...e,
@@ -736,7 +737,7 @@ const _o = function(t) {
736
737
  };
737
738
  }
738
739
  };
739
- }, Co = function(t) {
740
+ }, Oo = function(t) {
740
741
  return t === void 0 && (t = {}), {
741
742
  name: "size",
742
743
  options: t,
@@ -751,25 +752,25 @@ const _o = function(t) {
751
752
  apply: l = () => {
752
753
  },
753
754
  ...u
754
- } = Z(t, e), d = await r.detectOverflow(e, u), c = j(i), h = F(i), f = X(i) === "y", {
755
+ } = Q(t, e), d = await r.detectOverflow(e, u), c = z(i), h = F(i), f = X(i) === "y", {
755
756
  width: p,
756
757
  height: m
757
758
  } = s.floating;
758
759
  let g, y;
759
760
  c === "top" || c === "bottom" ? (g = c, y = h === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = c, g = h === "end" ? "top" : "bottom");
760
- const b = m - d.top - d.bottom, v = p - d.left - d.right, x = G(m - d[g], b), O = G(p - d[y], v), k = !e.middlewareData.shift;
761
- let L = x, U = O;
762
- if ((o = e.middlewareData.shift) != null && o.enabled.x && (U = v), (n = e.middlewareData.shift) != null && n.enabled.y && (L = b), k && !h) {
763
- const w = R(d.left, 0), E = R(d.right, 0), D = R(d.top, 0), H = R(d.bottom, 0);
764
- f ? U = p - 2 * (w !== 0 || E !== 0 ? w + E : R(d.left, d.right)) : L = m - 2 * (D !== 0 || H !== 0 ? D + H : R(d.top, d.bottom));
761
+ const b = m - d.top - d.bottom, v = p - d.left - d.right, _ = J(m - d[g], b), O = J(p - d[y], v), C = !e.middlewareData.shift;
762
+ let I = _, U = O;
763
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && (U = v), (n = e.middlewareData.shift) != null && n.enabled.y && (I = b), C && !h) {
764
+ const w = M(d.left, 0), S = M(d.right, 0), R = M(d.top, 0), H = M(d.bottom, 0);
765
+ f ? U = p - 2 * (w !== 0 || S !== 0 ? w + S : M(d.left, d.right)) : I = m - 2 * (R !== 0 || H !== 0 ? R + H : M(d.top, d.bottom));
765
766
  }
766
767
  await l({
767
768
  ...e,
768
769
  availableWidth: U,
769
- availableHeight: L
770
+ availableHeight: I
770
771
  });
771
- const A = await r.getDimensions(a.floating);
772
- return p !== A.width || m !== A.height ? {
772
+ const D = await r.getDimensions(a.floating);
773
+ return p !== D.width || m !== D.height ? {
773
774
  reset: {
774
775
  rects: !0
775
776
  }
@@ -780,30 +781,30 @@ const _o = function(t) {
780
781
  function xt() {
781
782
  return typeof window < "u";
782
783
  }
783
- function ut(t) {
784
- return Ce(t) ? (t.nodeName || "").toLowerCase() : "#document";
784
+ function dt(t) {
785
+ return Oe(t) ? (t.nodeName || "").toLowerCase() : "#document";
785
786
  }
786
787
  function P(t) {
787
788
  var e;
788
789
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
789
790
  }
790
- function Q(t) {
791
+ function tt(t) {
791
792
  var e;
792
- return (e = (Ce(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
793
+ return (e = (Oe(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
793
794
  }
794
- function Ce(t) {
795
+ function Oe(t) {
795
796
  return xt() ? t instanceof Node || t instanceof P(t).Node : !1;
796
797
  }
797
798
  function K(t) {
798
799
  return xt() ? t instanceof Element || t instanceof P(t).Element : !1;
799
800
  }
800
- function J(t) {
801
+ function Z(t) {
801
802
  return xt() ? t instanceof HTMLElement || t instanceof P(t).HTMLElement : !1;
802
803
  }
803
804
  function Zt(t) {
804
805
  return !xt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof P(t).ShadowRoot;
805
806
  }
806
- const Oo = /* @__PURE__ */ new Set(["inline", "contents"]);
807
+ const Eo = /* @__PURE__ */ new Set(["inline", "contents"]);
807
808
  function yt(t) {
808
809
  const {
809
810
  overflow: e,
@@ -811,15 +812,15 @@ function yt(t) {
811
812
  overflowY: n,
812
813
  display: i
813
814
  } = W(t);
814
- return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !Oo.has(i);
815
+ return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !Eo.has(i);
815
816
  }
816
- const Eo = /* @__PURE__ */ new Set(["table", "td", "th"]);
817
- function So(t) {
818
- return Eo.has(ut(t));
817
+ const So = /* @__PURE__ */ new Set(["table", "td", "th"]);
818
+ function Lo(t) {
819
+ return So.has(dt(t));
819
820
  }
820
- const Lo = [":popover-open", ":modal"];
821
+ const Io = [":popover-open", ":modal"];
821
822
  function Tt(t) {
822
- return Lo.some((e) => {
823
+ return Io.some((e) => {
823
824
  try {
824
825
  return t.matches(e);
825
826
  } catch {
@@ -827,28 +828,28 @@ function Tt(t) {
827
828
  }
828
829
  });
829
830
  }
830
- const Io = ["transform", "translate", "scale", "rotate", "perspective"], Ao = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Do = ["paint", "layout", "strict", "content"];
831
+ const Ao = ["transform", "translate", "scale", "rotate", "perspective"], Do = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ro = ["paint", "layout", "strict", "content"];
831
832
  function Bt(t) {
832
833
  const e = Nt(), o = K(t) ? W(t) : t;
833
- return Io.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || Ao.some((n) => (o.willChange || "").includes(n)) || Do.some((n) => (o.contain || "").includes(n));
834
+ return Ao.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || Do.some((n) => (o.willChange || "").includes(n)) || Ro.some((n) => (o.contain || "").includes(n));
834
835
  }
835
- function Ro(t) {
836
- let e = ot(t);
837
- for (; J(e) && !dt(e); ) {
836
+ function Mo(t) {
837
+ let e = nt(t);
838
+ for (; Z(e) && !lt(e); ) {
838
839
  if (Bt(e))
839
840
  return e;
840
841
  if (Tt(e))
841
842
  return null;
842
- e = ot(e);
843
+ e = nt(e);
843
844
  }
844
845
  return null;
845
846
  }
846
847
  function Nt() {
847
848
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
848
849
  }
849
- const Mo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
850
- function dt(t) {
851
- return Mo.has(ut(t));
850
+ const Ho = /* @__PURE__ */ new Set(["html", "body", "#document"]);
851
+ function lt(t) {
852
+ return Ho.has(dt(t));
852
853
  }
853
854
  function W(t) {
854
855
  return P(t).getComputedStyle(t);
@@ -862,86 +863,86 @@ function _t(t) {
862
863
  scrollTop: t.scrollY
863
864
  };
864
865
  }
865
- function ot(t) {
866
- if (ut(t) === "html")
866
+ function nt(t) {
867
+ if (dt(t) === "html")
867
868
  return t;
868
869
  const e = (
869
870
  // Step into the shadow DOM of the parent of a slotted node.
870
871
  t.assignedSlot || // DOM Element detected.
871
872
  t.parentNode || // ShadowRoot detected.
872
873
  Zt(t) && t.host || // Fallback.
873
- Q(t)
874
+ tt(t)
874
875
  );
875
876
  return Zt(e) ? e.host : e;
876
877
  }
877
- function Oe(t) {
878
- const e = ot(t);
879
- return dt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : J(e) && yt(e) ? e : Oe(e);
878
+ function Ee(t) {
879
+ const e = nt(t);
880
+ return lt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Z(e) && yt(e) ? e : Ee(e);
880
881
  }
881
- function Ee(t, e, o) {
882
+ function Se(t, e, o) {
882
883
  var n;
883
884
  e === void 0 && (e = []);
884
- const i = Oe(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = P(i);
885
- return s ? e.concat(r, r.visualViewport || [], yt(i) ? i : [], []) : e.concat(i, Ee(i, []));
885
+ const i = Ee(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = P(i);
886
+ return s ? e.concat(r, r.visualViewport || [], yt(i) ? i : [], []) : e.concat(i, Se(i, []));
886
887
  }
887
888
  function Qt(t) {
888
889
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
889
890
  }
890
- function Se(t) {
891
+ function Le(t) {
891
892
  const e = W(t);
892
893
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
893
- const i = J(t), s = i ? t.offsetWidth : o, r = i ? t.offsetHeight : n, a = wt(o) !== s || wt(n) !== r;
894
+ const i = Z(t), s = i ? t.offsetWidth : o, r = i ? t.offsetHeight : n, a = wt(o) !== s || wt(n) !== r;
894
895
  return a && (o = s, n = r), {
895
896
  width: o,
896
897
  height: n,
897
898
  $: a
898
899
  };
899
900
  }
900
- function Le(t) {
901
+ function Ie(t) {
901
902
  return K(t) ? t : t.contextElement;
902
903
  }
903
- function lt(t) {
904
- const e = Le(t);
905
- if (!J(e))
906
- return Y(1);
904
+ function rt(t) {
905
+ const e = Ie(t);
906
+ if (!Z(e))
907
+ return G(1);
907
908
  const o = e.getBoundingClientRect(), {
908
909
  width: n,
909
910
  height: i,
910
911
  $: s
911
- } = Se(e);
912
+ } = Le(e);
912
913
  let r = (s ? wt(o.width) : o.width) / n, a = (s ? wt(o.height) : o.height) / i;
913
914
  return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
914
915
  x: r,
915
916
  y: a
916
917
  };
917
918
  }
918
- const Ho = /* @__PURE__ */ Y(0);
919
- function Ie(t) {
919
+ const $o = /* @__PURE__ */ G(0);
920
+ function Ae(t) {
920
921
  const e = P(t);
921
- return !Nt() || !e.visualViewport ? Ho : {
922
+ return !Nt() || !e.visualViewport ? $o : {
922
923
  x: e.visualViewport.offsetLeft,
923
924
  y: e.visualViewport.offsetTop
924
925
  };
925
926
  }
926
- function $o(t, e, o) {
927
+ function Bo(t, e, o) {
927
928
  return e === void 0 && (e = !1), !o || e && o !== P(t) ? !1 : e;
928
929
  }
929
930
  function ht(t, e, o, n) {
930
931
  e === void 0 && (e = !1), o === void 0 && (o = !1);
931
- const i = t.getBoundingClientRect(), s = Le(t);
932
- let r = Y(1);
933
- e && (n ? K(n) && (r = lt(n)) : r = lt(t));
934
- const a = $o(s, o, n) ? Ie(s) : Y(0);
932
+ const i = t.getBoundingClientRect(), s = Ie(t);
933
+ let r = G(1);
934
+ e && (n ? K(n) && (r = rt(n)) : r = rt(t));
935
+ const a = Bo(s, o, n) ? Ae(s) : G(0);
935
936
  let l = (i.left + a.x) / r.x, u = (i.top + a.y) / r.y, d = i.width / r.x, c = i.height / r.y;
936
937
  if (s) {
937
938
  const h = P(s), f = n && K(n) ? P(n) : n;
938
939
  let p = h, m = Qt(p);
939
940
  for (; m && n && f !== p; ) {
940
- const g = lt(m), y = m.getBoundingClientRect(), b = W(m), v = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, x = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
941
- l *= g.x, u *= g.y, d *= g.x, c *= g.y, l += v, u += x, p = P(m), m = Qt(p);
941
+ const g = rt(m), y = m.getBoundingClientRect(), b = W(m), v = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, _ = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
942
+ l *= g.x, u *= g.y, d *= g.x, c *= g.y, l += v, u += _, p = P(m), m = Qt(p);
942
943
  }
943
944
  }
944
- return ct({
945
+ return at({
945
946
  width: d,
946
947
  height: c,
947
948
  x: l,
@@ -950,35 +951,35 @@ function ht(t, e, o, n) {
950
951
  }
951
952
  function kt(t, e) {
952
953
  const o = _t(t).scrollLeft;
953
- return e ? e.left + o : ht(Q(t)).left + o;
954
+ return e ? e.left + o : ht(tt(t)).left + o;
954
955
  }
955
- function Ae(t, e) {
956
+ function De(t, e) {
956
957
  const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - kt(t, o), i = o.top + e.scrollTop;
957
958
  return {
958
959
  x: n,
959
960
  y: i
960
961
  };
961
962
  }
962
- function Bo(t) {
963
+ function No(t) {
963
964
  let {
964
965
  elements: e,
965
966
  rect: o,
966
967
  offsetParent: n,
967
968
  strategy: i
968
969
  } = t;
969
- const s = i === "fixed", r = Q(n), a = e ? Tt(e.floating) : !1;
970
+ const s = i === "fixed", r = tt(n), a = e ? Tt(e.floating) : !1;
970
971
  if (n === r || a && s)
971
972
  return o;
972
973
  let l = {
973
974
  scrollLeft: 0,
974
975
  scrollTop: 0
975
- }, u = Y(1);
976
- const d = Y(0), c = J(n);
977
- if ((c || !c && !s) && ((ut(n) !== "body" || yt(r)) && (l = _t(n)), J(n))) {
976
+ }, u = G(1);
977
+ const d = G(0), c = Z(n);
978
+ if ((c || !c && !s) && ((dt(n) !== "body" || yt(r)) && (l = _t(n)), Z(n))) {
978
979
  const f = ht(n);
979
- u = lt(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
980
+ u = rt(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
980
981
  }
981
- const h = r && !c && !s ? Ae(r, l) : Y(0);
982
+ const h = r && !c && !s ? De(r, l) : G(0);
982
983
  return {
983
984
  width: o.width * u.x,
984
985
  height: o.height * u.y,
@@ -986,14 +987,14 @@ function Bo(t) {
986
987
  y: o.y * u.y - l.scrollTop * u.y + d.y + h.y
987
988
  };
988
989
  }
989
- function No(t) {
990
+ function Po(t) {
990
991
  return Array.from(t.getClientRects());
991
992
  }
992
- function Po(t) {
993
- const e = Q(t), o = _t(t), n = t.ownerDocument.body, i = R(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = R(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
993
+ function Uo(t) {
994
+ const e = tt(t), o = _t(t), n = t.ownerDocument.body, i = M(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = M(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
994
995
  let r = -o.scrollLeft + kt(t);
995
996
  const a = -o.scrollTop;
996
- return W(n).direction === "rtl" && (r += R(e.clientWidth, n.clientWidth) - i), {
997
+ return W(n).direction === "rtl" && (r += M(e.clientWidth, n.clientWidth) - i), {
997
998
  width: i,
998
999
  height: s,
999
1000
  x: r,
@@ -1001,8 +1002,8 @@ function Po(t) {
1001
1002
  };
1002
1003
  }
1003
1004
  const te = 25;
1004
- function Uo(t, e) {
1005
- const o = P(t), n = Q(t), i = o.visualViewport;
1005
+ function Vo(t, e) {
1006
+ const o = P(t), n = tt(t), i = o.visualViewport;
1006
1007
  let s = n.clientWidth, r = n.clientHeight, a = 0, l = 0;
1007
1008
  if (i) {
1008
1009
  s = i.width, r = i.height;
@@ -1021,9 +1022,9 @@ function Uo(t, e) {
1021
1022
  y: l
1022
1023
  };
1023
1024
  }
1024
- const Vo = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1025
+ const zo = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1025
1026
  function jo(t, e) {
1026
- const o = ht(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, s = J(t) ? lt(t) : Y(1), r = t.clientWidth * s.x, a = t.clientHeight * s.y, l = i * s.x, u = n * s.y;
1027
+ const o = ht(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, s = Z(t) ? rt(t) : G(1), r = t.clientWidth * s.x, a = t.clientHeight * s.y, l = i * s.x, u = n * s.y;
1027
1028
  return {
1028
1029
  width: r,
1029
1030
  height: a,
@@ -1034,13 +1035,13 @@ function jo(t, e) {
1034
1035
  function ee(t, e, o) {
1035
1036
  let n;
1036
1037
  if (e === "viewport")
1037
- n = Uo(t, o);
1038
+ n = Vo(t, o);
1038
1039
  else if (e === "document")
1039
- n = Po(Q(t));
1040
+ n = Uo(tt(t));
1040
1041
  else if (K(e))
1041
1042
  n = jo(e, o);
1042
1043
  else {
1043
- const i = Ie(t);
1044
+ const i = Ae(t);
1044
1045
  n = {
1045
1046
  x: e.x - i.x,
1046
1047
  y: e.y - i.y,
@@ -1048,35 +1049,35 @@ function ee(t, e, o) {
1048
1049
  height: e.height
1049
1050
  };
1050
1051
  }
1051
- return ct(n);
1052
+ return at(n);
1052
1053
  }
1053
- function De(t, e) {
1054
- const o = ot(t);
1055
- return o === e || !K(o) || dt(o) ? !1 : W(o).position === "fixed" || De(o, e);
1054
+ function Re(t, e) {
1055
+ const o = nt(t);
1056
+ return o === e || !K(o) || lt(o) ? !1 : W(o).position === "fixed" || Re(o, e);
1056
1057
  }
1057
- function zo(t, e) {
1058
+ function Fo(t, e) {
1058
1059
  const o = e.get(t);
1059
1060
  if (o)
1060
1061
  return o;
1061
- let n = Ee(t, []).filter((a) => K(a) && ut(a) !== "body"), i = null;
1062
+ let n = Se(t, []).filter((a) => K(a) && dt(a) !== "body"), i = null;
1062
1063
  const s = W(t).position === "fixed";
1063
- let r = s ? ot(t) : t;
1064
- for (; K(r) && !dt(r); ) {
1064
+ let r = s ? nt(t) : t;
1065
+ for (; K(r) && !lt(r); ) {
1065
1066
  const a = W(r), l = Bt(r);
1066
- !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && Vo.has(i.position) || yt(r) && !l && De(t, r)) ? n = n.filter((d) => d !== r) : i = a, r = ot(r);
1067
+ !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && zo.has(i.position) || yt(r) && !l && Re(t, r)) ? n = n.filter((d) => d !== r) : i = a, r = nt(r);
1067
1068
  }
1068
1069
  return e.set(t, n), n;
1069
1070
  }
1070
- function Fo(t) {
1071
+ function Ko(t) {
1071
1072
  let {
1072
1073
  element: e,
1073
1074
  boundary: o,
1074
1075
  rootBoundary: n,
1075
1076
  strategy: i
1076
1077
  } = t;
1077
- const r = [...o === "clippingAncestors" ? Tt(e) ? [] : zo(e, this._c) : [].concat(o), n], a = r[0], l = r.reduce((u, d) => {
1078
+ const r = [...o === "clippingAncestors" ? Tt(e) ? [] : Fo(e, this._c) : [].concat(o), n], a = r[0], l = r.reduce((u, d) => {
1078
1079
  const c = ee(e, d, i);
1079
- return u.top = R(c.top, u.top), u.right = G(c.right, u.right), u.bottom = G(c.bottom, u.bottom), u.left = R(c.left, u.left), u;
1080
+ return u.top = M(c.top, u.top), u.right = J(c.right, u.right), u.bottom = J(c.bottom, u.bottom), u.left = M(c.left, u.left), u;
1080
1081
  }, ee(e, a, i));
1081
1082
  return {
1082
1083
  width: l.right - l.left,
@@ -1085,33 +1086,33 @@ function Fo(t) {
1085
1086
  y: l.top
1086
1087
  };
1087
1088
  }
1088
- function Ko(t) {
1089
+ function Wo(t) {
1089
1090
  const {
1090
1091
  width: e,
1091
1092
  height: o
1092
- } = Se(t);
1093
+ } = Le(t);
1093
1094
  return {
1094
1095
  width: e,
1095
1096
  height: o
1096
1097
  };
1097
1098
  }
1098
- function Wo(t, e, o) {
1099
- const n = J(e), i = Q(e), s = o === "fixed", r = ht(t, !0, s, e);
1099
+ function qo(t, e, o) {
1100
+ const n = Z(e), i = tt(e), s = o === "fixed", r = ht(t, !0, s, e);
1100
1101
  let a = {
1101
1102
  scrollLeft: 0,
1102
1103
  scrollTop: 0
1103
1104
  };
1104
- const l = Y(0);
1105
+ const l = G(0);
1105
1106
  function u() {
1106
1107
  l.x = kt(i);
1107
1108
  }
1108
1109
  if (n || !n && !s)
1109
- if ((ut(e) !== "body" || yt(i)) && (a = _t(e)), n) {
1110
+ if ((dt(e) !== "body" || yt(i)) && (a = _t(e)), n) {
1110
1111
  const f = ht(e, !0, s, e);
1111
1112
  l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
1112
1113
  } else i && u();
1113
1114
  s && !n && i && u();
1114
- const d = i && !n && !s ? Ae(i, a) : Y(0), c = r.left + a.scrollLeft - l.x - d.x, h = r.top + a.scrollTop - l.y - d.y;
1115
+ const d = i && !n && !s ? De(i, a) : G(0), c = r.left + a.scrollLeft - l.x - d.x, h = r.top + a.scrollTop - l.y - d.y;
1115
1116
  return {
1116
1117
  x: c,
1117
1118
  y: h,
@@ -1123,35 +1124,35 @@ function Ot(t) {
1123
1124
  return W(t).position === "static";
1124
1125
  }
1125
1126
  function ne(t, e) {
1126
- if (!J(t) || W(t).position === "fixed")
1127
+ if (!Z(t) || W(t).position === "fixed")
1127
1128
  return null;
1128
1129
  if (e)
1129
1130
  return e(t);
1130
1131
  let o = t.offsetParent;
1131
- return Q(t) === o && (o = o.ownerDocument.body), o;
1132
+ return tt(t) === o && (o = o.ownerDocument.body), o;
1132
1133
  }
1133
- function Re(t, e) {
1134
+ function Me(t, e) {
1134
1135
  const o = P(t);
1135
1136
  if (Tt(t))
1136
1137
  return o;
1137
- if (!J(t)) {
1138
- let i = ot(t);
1139
- for (; i && !dt(i); ) {
1138
+ if (!Z(t)) {
1139
+ let i = nt(t);
1140
+ for (; i && !lt(i); ) {
1140
1141
  if (K(i) && !Ot(i))
1141
1142
  return i;
1142
- i = ot(i);
1143
+ i = nt(i);
1143
1144
  }
1144
1145
  return o;
1145
1146
  }
1146
1147
  let n = ne(t, e);
1147
- for (; n && So(n) && Ot(n); )
1148
+ for (; n && Lo(n) && Ot(n); )
1148
1149
  n = ne(n, e);
1149
- return n && dt(n) && Ot(n) && !Bt(n) ? o : n || Ro(t) || o;
1150
+ return n && lt(n) && Ot(n) && !Bt(n) ? o : n || Mo(t) || o;
1150
1151
  }
1151
- const qo = async function(t) {
1152
- const e = this.getOffsetParent || Re, o = this.getDimensions, n = await o(t.floating);
1152
+ const Xo = async function(t) {
1153
+ const e = this.getOffsetParent || Me, o = this.getDimensions, n = await o(t.floating);
1153
1154
  return {
1154
- reference: Wo(t.reference, await e(t.floating), t.strategy),
1155
+ reference: qo(t.reference, await e(t.floating), t.strategy),
1155
1156
  floating: {
1156
1157
  x: 0,
1157
1158
  y: 0,
@@ -1160,38 +1161,38 @@ const qo = async function(t) {
1160
1161
  }
1161
1162
  };
1162
1163
  };
1163
- function Xo(t) {
1164
+ function Yo(t) {
1164
1165
  return W(t).direction === "rtl";
1165
1166
  }
1166
- const Yo = {
1167
- convertOffsetParentRelativeRectToViewportRelativeRect: Bo,
1168
- getDocumentElement: Q,
1169
- getClippingRect: Fo,
1170
- getOffsetParent: Re,
1171
- getElementRects: qo,
1172
- getClientRects: No,
1173
- getDimensions: Ko,
1174
- getScale: lt,
1167
+ const Go = {
1168
+ convertOffsetParentRelativeRectToViewportRelativeRect: No,
1169
+ getDocumentElement: tt,
1170
+ getClippingRect: Ko,
1171
+ getOffsetParent: Me,
1172
+ getElementRects: Xo,
1173
+ getClientRects: Po,
1174
+ getDimensions: Wo,
1175
+ getScale: rt,
1175
1176
  isElement: K,
1176
- isRTL: Xo
1177
- }, Pt = _o, Me = go, Ut = ko, Vt = yo, He = Co, $e = wo, Be = po, Ne = vo, jt = (t, e, o) => {
1177
+ isRTL: Yo
1178
+ }, Pt = ko, He = yo, Ut = Co, Vt = wo, $e = Oo, Be = bo, Ne = mo, Pe = xo, zt = (t, e, o) => {
1178
1179
  const n = /* @__PURE__ */ new Map(), i = {
1179
- platform: Yo,
1180
+ platform: Go,
1180
1181
  ...o
1181
1182
  }, s = {
1182
1183
  ...i.platform,
1183
1184
  _c: n
1184
1185
  };
1185
- return fo(t, e, {
1186
+ return po(t, e, {
1186
1187
  ...i,
1187
1188
  platform: s
1188
1189
  });
1189
1190
  };
1190
- function Go(t, e) {
1191
+ function Jo(t, e) {
1191
1192
  const o = Math.min(t.top, e.top), n = Math.max(t.bottom, e.bottom), i = Math.min(t.left, e.left), r = Math.max(t.right, e.right) - i, a = n - o, l = i, u = o;
1192
1193
  return new DOMRect(l, u, r, a);
1193
1194
  }
1194
- var Jo = class {
1195
+ var Zo = class {
1195
1196
  constructor({
1196
1197
  editor: t,
1197
1198
  element: e,
@@ -1219,7 +1220,7 @@ var Jo = class {
1219
1220
  onUpdate: void 0,
1220
1221
  onDestroy: void 0
1221
1222
  }, this.shouldShow = ({ view: d, state: c, from: h, to: f }) => {
1222
- const { doc: p, selection: m } = c, { empty: g } = m, y = !p.textBetween(h, f).length && Ke(c.selection), b = this.element.contains(document.activeElement);
1223
+ const { doc: p, selection: m } = c, { empty: g } = m, y = !p.textBetween(h, f).length && We(c.selection), b = this.element.contains(document.activeElement);
1223
1224
  return !(!(d.hasFocus() || b) || g || y || !this.editor.isEditable);
1224
1225
  }, this.mousedownHandler = () => {
1225
1226
  this.preventHide = !0;
@@ -1272,12 +1273,12 @@ var Jo = class {
1272
1273
  Ut(typeof this.floatingUIOptions.shift != "boolean" ? this.floatingUIOptions.shift : void 0)
1273
1274
  ), this.floatingUIOptions.offset && t.push(
1274
1275
  Pt(typeof this.floatingUIOptions.offset != "boolean" ? this.floatingUIOptions.offset : void 0)
1275
- ), this.floatingUIOptions.arrow && t.push(Be(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && t.push(He(typeof this.floatingUIOptions.size != "boolean" ? this.floatingUIOptions.size : void 0)), this.floatingUIOptions.autoPlacement && t.push(
1276
- Me(
1276
+ ), this.floatingUIOptions.arrow && t.push(Ne(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && t.push($e(typeof this.floatingUIOptions.size != "boolean" ? this.floatingUIOptions.size : void 0)), this.floatingUIOptions.autoPlacement && t.push(
1277
+ He(
1277
1278
  typeof this.floatingUIOptions.autoPlacement != "boolean" ? this.floatingUIOptions.autoPlacement : void 0
1278
1279
  )
1279
- ), this.floatingUIOptions.hide && t.push($e(typeof this.floatingUIOptions.hide != "boolean" ? this.floatingUIOptions.hide : void 0)), this.floatingUIOptions.inline && t.push(
1280
- Ne(typeof this.floatingUIOptions.inline != "boolean" ? this.floatingUIOptions.inline : void 0)
1280
+ ), this.floatingUIOptions.hide && t.push(Be(typeof this.floatingUIOptions.hide != "boolean" ? this.floatingUIOptions.hide : void 0)), this.floatingUIOptions.inline && t.push(
1281
+ Pe(typeof this.floatingUIOptions.inline != "boolean" ? this.floatingUIOptions.inline : void 0)
1281
1282
  ), t;
1282
1283
  }
1283
1284
  get virtualElement() {
@@ -1292,7 +1293,7 @@ var Jo = class {
1292
1293
  getBoundingClientRect: () => s,
1293
1294
  getClientRects: () => [s]
1294
1295
  };
1295
- if (n instanceof nn) {
1296
+ if (n instanceof on) {
1296
1297
  let a = this.view.nodeDOM(n.from);
1297
1298
  const l = a.dataset.nodeViewWrapper ? a : a.querySelector("[data-node-view-wrapper]");
1298
1299
  l && (a = l), a && (r = {
@@ -1300,11 +1301,11 @@ var Jo = class {
1300
1301
  getClientRects: () => [a.getBoundingClientRect()]
1301
1302
  });
1302
1303
  }
1303
- if (n instanceof on) {
1304
+ if (n instanceof sn) {
1304
1305
  const { $anchorCell: a, $headCell: l } = n, u = a ? a.pos : l.pos, d = l ? l.pos : a.pos, c = this.view.nodeDOM(u), h = this.view.nodeDOM(d);
1305
1306
  if (!c || !h)
1306
1307
  return;
1307
- const f = c === h ? c.getBoundingClientRect() : Go(
1308
+ const f = c === h ? c.getBoundingClientRect() : Jo(
1308
1309
  c.getBoundingClientRect(),
1309
1310
  h.getBoundingClientRect()
1310
1311
  );
@@ -1317,7 +1318,7 @@ var Jo = class {
1317
1318
  }
1318
1319
  updatePosition() {
1319
1320
  const t = this.virtualElement;
1320
- t && jt(t, this.element, {
1321
+ t && zt(t, this.element, {
1321
1322
  placement: this.floatingUIOptions.placement,
1322
1323
  strategy: this.floatingUIOptions.strategy,
1323
1324
  middleware: this.middlewares
@@ -1376,10 +1377,10 @@ var Jo = class {
1376
1377
  destroy() {
1377
1378
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
1378
1379
  }
1379
- }, Zo = (t) => new It({
1380
- key: typeof t.pluginKey == "string" ? new rt(t.pluginKey) : t.pluginKey,
1381
- view: (e) => new Jo({ view: e, ...t })
1382
- }), Qo = le({
1380
+ }, Qo = (t) => new It({
1381
+ key: typeof t.pluginKey == "string" ? new st(t.pluginKey) : t.pluginKey,
1382
+ view: (e) => new Zo({ view: e, ...t })
1383
+ }), ti = le({
1383
1384
  name: "BubbleMenu",
1384
1385
  inheritAttrs: !1,
1385
1386
  props: {
@@ -1429,9 +1430,9 @@ var Jo = class {
1429
1430
  getReferencedVirtualElement: d,
1430
1431
  updateDelay: c
1431
1432
  } = t, h = n.value;
1432
- h && (h.style.visibility = "hidden", h.style.position = "absolute", h.remove(), sn(() => {
1433
+ h && (h.style.visibility = "hidden", h.style.position = "absolute", h.remove(), rn(() => {
1433
1434
  i.registerPlugin(
1434
- Zo({
1435
+ Qo({
1435
1436
  editor: i,
1436
1437
  element: h,
1437
1438
  options: s,
@@ -1452,7 +1453,7 @@ var Jo = class {
1452
1453
  return he("div", { ref: n, ...o }, (i = e.default) == null ? void 0 : i.call(e));
1453
1454
  };
1454
1455
  }
1455
- }), ti = class {
1456
+ }), ei = class {
1456
1457
  constructor({
1457
1458
  editor: t,
1458
1459
  element: e,
@@ -1512,7 +1513,7 @@ var Jo = class {
1512
1513
  }, this.element.tabIndex = 0, a && (this.shouldShow = a), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.editor.on("transaction", this.transactionHandler), window.addEventListener("resize", this.resizeHandler), this.scrollTarget.addEventListener("scroll", this.resizeHandler), this.update(o, o.state), this.getShouldShow() && (this.show(), this.updatePosition());
1513
1514
  }
1514
1515
  getTextContent(t) {
1515
- return We(t, { textSerializers: qe(this.editor.schema) });
1516
+ return qe(t, { textSerializers: Xe(this.editor.schema) });
1516
1517
  }
1517
1518
  get middlewares() {
1518
1519
  const t = [];
@@ -1520,12 +1521,12 @@ var Jo = class {
1520
1521
  Ut(typeof this.floatingUIOptions.shift != "boolean" ? this.floatingUIOptions.shift : void 0)
1521
1522
  ), this.floatingUIOptions.offset && t.push(
1522
1523
  Pt(typeof this.floatingUIOptions.offset != "boolean" ? this.floatingUIOptions.offset : void 0)
1523
- ), this.floatingUIOptions.arrow && t.push(Be(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && t.push(He(typeof this.floatingUIOptions.size != "boolean" ? this.floatingUIOptions.size : void 0)), this.floatingUIOptions.autoPlacement && t.push(
1524
- Me(
1524
+ ), this.floatingUIOptions.arrow && t.push(Ne(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && t.push($e(typeof this.floatingUIOptions.size != "boolean" ? this.floatingUIOptions.size : void 0)), this.floatingUIOptions.autoPlacement && t.push(
1525
+ He(
1525
1526
  typeof this.floatingUIOptions.autoPlacement != "boolean" ? this.floatingUIOptions.autoPlacement : void 0
1526
1527
  )
1527
- ), this.floatingUIOptions.hide && t.push($e(typeof this.floatingUIOptions.hide != "boolean" ? this.floatingUIOptions.hide : void 0)), this.floatingUIOptions.inline && t.push(
1528
- Ne(typeof this.floatingUIOptions.inline != "boolean" ? this.floatingUIOptions.inline : void 0)
1528
+ ), this.floatingUIOptions.hide && t.push(Be(typeof this.floatingUIOptions.hide != "boolean" ? this.floatingUIOptions.hide : void 0)), this.floatingUIOptions.inline && t.push(
1529
+ Pe(typeof this.floatingUIOptions.inline != "boolean" ? this.floatingUIOptions.inline : void 0)
1529
1530
  ), t;
1530
1531
  }
1531
1532
  getShouldShow(t) {
@@ -1552,7 +1553,7 @@ var Jo = class {
1552
1553
  }
1553
1554
  updatePosition() {
1554
1555
  const { selection: t } = this.editor.state, e = re(this.view, t.from, t.to);
1555
- jt({
1556
+ zt({
1556
1557
  getBoundingClientRect: () => e,
1557
1558
  getClientRects: () => [e]
1558
1559
  }, this.element, {
@@ -1586,9 +1587,9 @@ var Jo = class {
1586
1587
  destroy() {
1587
1588
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
1588
1589
  }
1589
- }, ei = (t) => new It({
1590
- key: typeof t.pluginKey == "string" ? new rt(t.pluginKey) : t.pluginKey,
1591
- view: (e) => new ti({ view: e, ...t })
1590
+ }, ni = (t) => new It({
1591
+ key: typeof t.pluginKey == "string" ? new st(t.pluginKey) : t.pluginKey,
1592
+ view: (e) => new ei({ view: e, ...t })
1592
1593
  });
1593
1594
  le({
1594
1595
  name: "FloatingMenu",
@@ -1630,7 +1631,7 @@ le({
1630
1631
  return de(() => {
1631
1632
  const { pluginKey: i, editor: s, updateDelay: r, resizeDelay: a, options: l, appendTo: u, shouldShow: d } = t, c = n.value;
1632
1633
  c && (c.style.visibility = "hidden", c.style.position = "absolute", c.remove(), s.registerPlugin(
1633
- ei({
1634
+ ni({
1634
1635
  pluginKey: i,
1635
1636
  editor: s,
1636
1637
  element: c,
@@ -1650,7 +1651,7 @@ le({
1650
1651
  };
1651
1652
  }
1652
1653
  });
1653
- const ni = {
1654
+ const oi = {
1654
1655
  compatConfig: { MODE: 3 },
1655
1656
  name: "EmojiComponent",
1656
1657
  components: {
@@ -1659,11 +1660,11 @@ const ni = {
1659
1660
  },
1660
1661
  props: ft
1661
1662
  };
1662
- function oi(t, e, o, n, i, s) {
1663
- const r = T("dt-emoji"), a = T("node-view-wrapper");
1664
- return _(), I(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1665
- default: C(() => [
1666
- M(r, {
1663
+ function ii(t, e, o, n, i, s) {
1664
+ const r = x("dt-emoji"), a = x("node-view-wrapper");
1665
+ return k(), E(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1666
+ default: T(() => [
1667
+ A(r, {
1667
1668
  size: "500",
1668
1669
  code: t.node.attrs.code
1669
1670
  }, null, 8, ["code"])
@@ -1671,11 +1672,11 @@ function oi(t, e, o, n, i, s) {
1671
1672
  _: 1
1672
1673
  });
1673
1674
  }
1674
- const ii = /* @__PURE__ */ q(ni, [["render", oi]]), si = {
1675
+ const si = /* @__PURE__ */ q(oi, [["render", ii]]), ri = {
1675
1676
  compatConfig: { MODE: 3 },
1676
1677
  name: "SuggestionList",
1677
1678
  components: {
1678
- DtListItem: Vn
1679
+ DtListItem: zn
1679
1680
  },
1680
1681
  props: {
1681
1682
  items: {
@@ -1744,15 +1745,15 @@ const ii = /* @__PURE__ */ q(ni, [["render", oi]]), si = {
1744
1745
  }
1745
1746
  }
1746
1747
  }
1747
- }, ri = { class: "d-popover__dialog d-suggestion-list__container" }, ai = {
1748
+ }, ai = { class: "d-popover__dialog d-suggestion-list__container" }, li = {
1748
1749
  ref: "suggestionList",
1749
1750
  class: "d-suggestion-list"
1750
1751
  };
1751
- function li(t, e, o, n, i, s) {
1752
- const r = T("dt-list-item");
1753
- return _(), et("div", ri, [
1754
- rn(nt("ul", ai, [
1755
- (_(!0), et(an, null, ln(o.items, (a, l) => (_(), I(r, {
1752
+ function ci(t, e, o, n, i, s) {
1753
+ const r = x("dt-list-item");
1754
+ return k(), ut("div", ai, [
1755
+ an(ct("ul", li, [
1756
+ (k(!0), ut(ln, null, cn(o.items, (a, l) => (k(), E(r, {
1756
1757
  key: a.id,
1757
1758
  class: fe([
1758
1759
  "d-suggestion-list__item",
@@ -1762,18 +1763,18 @@ function li(t, e, o, n, i, s) {
1762
1763
  onClick: (u) => s.selectItem(l),
1763
1764
  onKeydown: At(s.onKeyDown, ["prevent"])
1764
1765
  }, {
1765
- default: C(() => [
1766
- (_(), I(cn(o.itemComponent), { item: a }, null, 8, ["item"]))
1766
+ default: T(() => [
1767
+ (k(), E(dn(o.itemComponent), { item: a }, null, 8, ["item"]))
1767
1768
  ]),
1768
1769
  _: 2
1769
1770
  }, 1032, ["class", "onClick", "onKeydown"]))), 128))
1770
1771
  ], 512), [
1771
- [dn, o.items.length]
1772
+ [un, o.items.length]
1772
1773
  ])
1773
1774
  ]);
1774
1775
  }
1775
- const ci = /* @__PURE__ */ q(si, [["render", li]]), Pe = "top-start", Ue = "650";
1776
- function di() {
1776
+ const di = /* @__PURE__ */ q(ri, [["render", ci]]), Ue = "top-start", Ve = "650";
1777
+ function ui() {
1777
1778
  return {
1778
1779
  getBoundingClientRect: () => ({
1779
1780
  width: 0,
@@ -1790,12 +1791,12 @@ function di() {
1790
1791
  function oe(t) {
1791
1792
  return { getBoundingClientRect: t };
1792
1793
  }
1793
- async function ui(t, e, o = {}) {
1794
+ async function hi(t, e, o = {}) {
1794
1795
  if (!t || !(e != null && e.getBoundingClientRect)) return;
1795
1796
  const {
1796
- placement: n = Pe,
1797
+ placement: n = Ue,
1797
1798
  middleware: i = [Pt(0), Vt(), Ut({ padding: 8 })]
1798
- } = o, { x: s, y: r } = await jt(e, t, {
1799
+ } = o, { x: s, y: r } = await zt(e, t, {
1799
1800
  placement: n,
1800
1801
  middleware: i
1801
1802
  });
@@ -1804,61 +1805,61 @@ async function ui(t, e, o = {}) {
1804
1805
  top: `${r}px`
1805
1806
  });
1806
1807
  }
1807
- function hi(t, e = {}) {
1808
- const { zIndex: o = Ue } = e;
1808
+ function fi(t, e = {}) {
1809
+ const { zIndex: o = Ve } = e;
1809
1810
  t.style.position = "absolute", t.style.zIndex = o, t.style.display = "none";
1810
1811
  }
1811
- function fi(t) {
1812
+ function pi(t) {
1812
1813
  t && (t.style.display = "block");
1813
1814
  }
1814
- function pi(t) {
1815
+ function mi(t) {
1815
1816
  t && (t.style.display = "none");
1816
1817
  }
1817
- function mi(t, e) {
1818
+ function gi(t, e) {
1818
1819
  return (o) => {
1819
1820
  o.key === "Escape" && e() && t();
1820
1821
  };
1821
1822
  }
1822
- function gi(t) {
1823
+ function yi(t) {
1823
1824
  document.addEventListener("keydown", t);
1824
1825
  }
1825
- function yi(t) {
1826
+ function wi(t) {
1826
1827
  document.removeEventListener("keydown", t);
1827
1828
  }
1828
- function wi(t, e, o, n) {
1829
+ function bi(t, e, o, n) {
1829
1830
  return new je(t, {
1830
1831
  props: {
1831
- itemComponent: un(e),
1832
+ itemComponent: hn(e),
1832
1833
  itemType: o,
1833
1834
  ...n
1834
1835
  },
1835
1836
  editor: n.editor
1836
1837
  });
1837
1838
  }
1838
- function bi(t) {
1839
+ function vi(t) {
1839
1840
  var e, o;
1840
- t.escHandler && yi(t.escHandler), (e = t.floatingEl) == null || e.remove(), (o = t.component) == null || o.destroy();
1841
+ t.escHandler && wi(t.escHandler), (e = t.floatingEl) == null || e.remove(), (o = t.component) == null || o.destroy();
1841
1842
  }
1842
1843
  function Ct(t, e, o = {}) {
1843
1844
  const {
1844
- listComponent: n = ci,
1845
- placement: i = Pe,
1846
- zIndex: s = Ue
1845
+ listComponent: n = di,
1846
+ placement: i = Ue,
1847
+ zIndex: s = Ve
1847
1848
  } = o;
1848
1849
  return () => {
1849
- let r = null, a = null, l = !1, u = di(), d = null;
1850
+ let r = null, a = null, l = !1, u = ui(), d = null;
1850
1851
  function c() {
1851
- ui(a, u, { placement: i });
1852
+ hi(a, u, { placement: i });
1852
1853
  }
1853
1854
  function h() {
1854
- a && (fi(a), l = !0, c());
1855
+ a && (pi(a), l = !0, c());
1855
1856
  }
1856
1857
  function f() {
1857
- a && (pi(a), l = !1);
1858
+ a && (mi(a), l = !1);
1858
1859
  }
1859
1860
  return {
1860
1861
  onStart: (p) => {
1861
- r = wi(n, t, e, p), p.clientRect && (a = r.element, hi(a, { zIndex: s }), document.body.appendChild(a), u = oe(p.clientRect), d = mi(f, () => l), gi(d), p.items.length > 0 && h());
1862
+ r = bi(n, t, e, p), p.clientRect && (a = r.element, fi(a, { zIndex: s }), document.body.appendChild(a), u = oe(p.clientRect), d = gi(f, () => l), yi(d), p.items.length > 0 && h());
1862
1863
  },
1863
1864
  onUpdate(p) {
1864
1865
  r == null || r.updateProps(p), p.items.length > 0 ? h() : f(), p.clientRect && (u = oe(p.clientRect), c());
@@ -1869,12 +1870,12 @@ function Ct(t, e, o = {}) {
1869
1870
  return (m = r == null ? void 0 : r.ref) == null ? void 0 : m.onKeyDown(p);
1870
1871
  },
1871
1872
  onExit() {
1872
- bi({ escHandler: d, floatingEl: a, component: r }), d = null, a = null, r = null;
1873
+ vi({ escHandler: d, floatingEl: a, component: r }), d = null, a = null, r = null;
1873
1874
  }
1874
1875
  };
1875
1876
  };
1876
1877
  }
1877
- const vi = {
1878
+ const xi = {
1878
1879
  compatConfig: { MODE: 3 },
1879
1880
  name: "EmojiSuggestion",
1880
1881
  components: {
@@ -1888,31 +1889,31 @@ const vi = {
1888
1889
  }
1889
1890
  }
1890
1891
  };
1891
- function xi(t, e, o, n, i, s) {
1892
- const r = T("dt-emoji"), a = T("dt-stack");
1893
- return _(), I(a, {
1892
+ function Ti(t, e, o, n, i, s) {
1893
+ const r = x("dt-emoji"), a = x("dt-stack");
1894
+ return k(), E(a, {
1894
1895
  direction: "row",
1895
1896
  gap: "400"
1896
1897
  }, {
1897
- default: C(() => [
1898
- M(r, {
1898
+ default: T(() => [
1899
+ A(r, {
1899
1900
  size: "200",
1900
1901
  code: o.item.code
1901
1902
  }, null, 8, ["code"]),
1902
- at(" " + $(o.item.code), 1)
1903
+ Y(" " + $(o.item.code), 1)
1903
1904
  ]),
1904
1905
  _: 1
1905
1906
  });
1906
1907
  }
1907
- const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1908
+ const _i = /* @__PURE__ */ q(xi, [["render", Ti]]), ki = 20, Ci = (t, e, o) => {
1908
1909
  var a, l;
1909
1910
  const n = (a = t.shortname) == null ? void 0 : a.replaceAll(":", ""), i = (l = e.shortname) == null ? void 0 : l.replaceAll(":", ""), s = n.startsWith(o), r = i.startsWith(o);
1910
1911
  return s && !r ? -1 : !s && r ? 1 : n.localeCompare(i);
1911
- }, Ci = {
1912
+ }, Oi = {
1912
1913
  items: ({ query: t }) => {
1913
1914
  if (t.length < 2)
1914
1915
  return [];
1915
- const e = Object.values(Bn());
1916
+ const e = Object.values(Nn());
1916
1917
  return t = t.toLowerCase(), e.filter(
1917
1918
  (n) => {
1918
1919
  var i;
@@ -1922,7 +1923,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1922
1923
  ...n.keywords || []
1923
1924
  ].some((s) => s && s.startsWith(t));
1924
1925
  }
1925
- ).splice(0, _i).sort((n, i) => ki(n, i, t)).map((n) => ({ code: n.shortname }));
1926
+ ).splice(0, ki).sort((n, i) => Ci(n, i, t)).map((n) => ({ code: n.shortname }));
1926
1927
  },
1927
1928
  command: ({ editor: t, range: e, props: o }) => {
1928
1929
  var s, r;
@@ -1934,15 +1935,15 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1934
1935
  }
1935
1936
  ]).run(), (r = window.getSelection()) == null || r.collapseToEnd();
1936
1937
  },
1937
- render: Ct(Ti, "emoji")
1938
- }, Oi = /(:\w+:)$/, Ei = new RegExp(ge + "$"), Si = (t) => {
1938
+ render: Ct(_i, "emoji")
1939
+ }, Ei = /(:\w+:)$/, Si = new RegExp(ge + "$"), Li = (t) => {
1939
1940
  if (t && Dt(t[0]))
1940
1941
  return { text: t[2] || t[0] };
1941
- }, Li = (t) => [...t.matchAll(Un)].filter((o) => Dt(o[0])).map((o) => ({
1942
+ }, Ii = (t) => [...t.matchAll(Vn)].filter((o) => Dt(o[0])).map((o) => ({
1942
1943
  index: o.index,
1943
1944
  text: o[0],
1944
1945
  match: o
1945
- })), Ii = ae.create({
1946
+ })), Ai = ae.create({
1946
1947
  name: "emoji",
1947
1948
  addOptions() {
1948
1949
  return {
@@ -1954,7 +1955,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1954
1955
  selectable: !1,
1955
1956
  atom: !0,
1956
1957
  addNodeView() {
1957
- return mt(ii);
1958
+ return mt(si);
1958
1959
  },
1959
1960
  addAttributes() {
1960
1961
  return {
@@ -1971,18 +1972,18 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1971
1972
  ];
1972
1973
  },
1973
1974
  renderText({ node: t }) {
1974
- return Pn(Dt(t.attrs.code).unicode_output);
1975
+ return Un(Dt(t.attrs.code).unicode_output);
1975
1976
  },
1976
1977
  renderHTML({ HTMLAttributes: t }) {
1977
- return ["emoji-component", st(this.options.HTMLAttributes, t)];
1978
+ return ["emoji-component", it(this.options.HTMLAttributes, t)];
1978
1979
  },
1979
1980
  addInputRules() {
1980
1981
  return [
1981
- new Xe({
1982
+ new Ye({
1982
1983
  find: (t) => {
1983
- const e = t.match(Oi) || t.match(Ei);
1984
+ const e = t.match(Ei) || t.match(Si);
1984
1985
  if (e)
1985
- return Si(e);
1986
+ return Li(e);
1986
1987
  },
1987
1988
  handler: ({ state: t, range: e, match: o }) => {
1988
1989
  const { tr: n } = t, i = e.from, s = e.to;
@@ -1994,7 +1995,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1994
1995
  addPasteRules() {
1995
1996
  return [
1996
1997
  Et({
1997
- find: Li,
1998
+ find: Ii,
1998
1999
  type: this.type,
1999
2000
  getAttributes(t) {
2000
2001
  return {
@@ -2003,7 +2004,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
2003
2004
  }
2004
2005
  }),
2005
2006
  Et({
2006
- find: Nn,
2007
+ find: Pn,
2007
2008
  type: this.type,
2008
2009
  getAttributes(t) {
2009
2010
  return {
@@ -2015,12 +2016,12 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
2015
2016
  },
2016
2017
  addProseMirrorPlugins() {
2017
2018
  return [
2018
- $n({
2019
+ Bn({
2019
2020
  char: ":",
2020
- pluginKey: new rt("emoji"),
2021
+ pluginKey: new st("emoji"),
2021
2022
  editor: this.editor,
2022
2023
  ...this.options.suggestion,
2023
- ...Ci
2024
+ ...Oi
2024
2025
  })
2025
2026
  ];
2026
2027
  },
@@ -2037,7 +2038,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
2037
2038
  };
2038
2039
  }
2039
2040
  });
2040
- function Ai(t, e, o = () => !0) {
2041
+ function Di(t, e, o = () => !0) {
2041
2042
  const n = [];
2042
2043
  e.lastIndex = 0;
2043
2044
  let i;
@@ -2045,10 +2046,10 @@ function Ai(t, e, o = () => !0) {
2045
2046
  o(t, i) && n.push(i);
2046
2047
  return n;
2047
2048
  }
2048
- function Di(t, e) {
2049
+ function Ri(t, e) {
2049
2050
  return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
2050
2051
  }
2051
- function Ri(t) {
2052
+ function Mi(t) {
2052
2053
  const e = new RegExp(
2053
2054
  "(?:" + [
2054
2055
  `[!?.,:;'"]`,
@@ -2058,7 +2059,7 @@ function Ri(t) {
2058
2059
  );
2059
2060
  return t.replace(e, "");
2060
2061
  }
2061
- function Mi(t, e) {
2062
+ function Hi(t, e) {
2062
2063
  const o = t.slice(0, e + 1).search(/\S+\s*$/), n = t.slice(e).search(/\s/);
2063
2064
  if (n < 0) {
2064
2065
  const i = t.slice(o);
@@ -2075,18 +2076,18 @@ function Mi(t, e) {
2075
2076
  };
2076
2077
  }
2077
2078
  function Lt(t, e, o, n) {
2078
- const i = Mi(t, e);
2079
+ const i = Hi(t, e);
2079
2080
  if (n.lastIndex = 0, !n.test(i.text))
2080
2081
  return i;
2081
2082
  const s = o === "left" ? i.from - 1 : i.to + 1;
2082
2083
  return s <= 0 || s >= t.length || s === e ? i : Lt(t, s, o, n);
2083
2084
  }
2084
- function Hi(t, e, o, n) {
2085
- const i = Math.max(t.from - 1, 0), s = Math.min(t.to + 1, e.content.size), r = Ye(i, s, e);
2085
+ function $i(t, e, o, n) {
2086
+ const i = Math.max(t.from - 1, 0), s = Math.min(t.to + 1, e.content.size), r = Ge(i, s, e);
2086
2087
  for (const a of r)
2087
2088
  a.mark.type === n && o.removeMark(a.from, a.to, n);
2088
2089
  }
2089
- const ie = zn(1, 15);
2090
+ const ie = Fn(1, 15);
2090
2091
  function se(t, e, o, n, i, s) {
2091
2092
  if (!t)
2092
2093
  return;
@@ -2103,27 +2104,27 @@ function se(t, e, o, n, i, s) {
2103
2104
  "right",
2104
2105
  ie
2105
2106
  ), d = t.slice(l.from, u.to);
2106
- Ai(d, jn, Di).forEach((h) => {
2107
- const f = Ri(h[0]), p = e + l.from + h.index + 1, m = p + f.length;
2107
+ Di(d, jn, Ri).forEach((h) => {
2108
+ const f = Mi(h[0]), p = e + l.from + h.index + 1, m = p + f.length;
2108
2109
  i.addMark(p, m, s.create());
2109
2110
  });
2110
2111
  }
2111
- function $i(t) {
2112
+ function Bi(t) {
2112
2113
  let e = !1;
2113
2114
  return new It({
2114
- key: new rt("autolink"),
2115
+ key: new st("autolink"),
2115
2116
  appendTransaction: (o, n, i) => {
2116
2117
  const s = o.some((d) => d.docChanged) && !n.doc.eq(i.doc);
2117
2118
  if (e && !s)
2118
2119
  return;
2119
2120
  const { tr: r } = i, { textContent: a } = i.doc;
2120
2121
  e || se(a, 0, 0, a.length, r, t.type), e = !0;
2121
- const l = Ge(
2122
+ const l = Je(
2122
2123
  n.doc,
2123
2124
  [...o]
2124
2125
  );
2125
- return Je(l).forEach(({ oldRange: d, newRange: c }) => {
2126
- Hi(c, i.doc, r, t.type), Ze(
2126
+ return Ze(l).forEach(({ oldRange: d, newRange: c }) => {
2127
+ $i(c, i.doc, r, t.type), Qe(
2127
2128
  i.doc,
2128
2129
  c,
2129
2130
  (f) => f.isTextblock
@@ -2141,18 +2142,18 @@ function $i(t) {
2141
2142
  }
2142
2143
  });
2143
2144
  }
2144
- const Bi = {
2145
+ const Ni = {
2145
2146
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
2146
2147
  rel: "noopener noreferrer nofollow"
2147
- }, Ni = Qe.create({
2148
+ }, Pi = tn.create({
2148
2149
  name: "CustomLink",
2149
2150
  renderHTML({ HTMLAttributes: t }) {
2150
2151
  return [
2151
2152
  "a",
2152
- st(
2153
+ it(
2153
2154
  this.options.HTMLAttributes,
2154
2155
  t,
2155
- Bi
2156
+ Ni
2156
2157
  )
2157
2158
  ];
2158
2159
  },
@@ -2161,10 +2162,10 @@ const Bi = {
2161
2162
  },
2162
2163
  addProseMirrorPlugins() {
2163
2164
  return [
2164
- $i({ type: this.type })
2165
+ Bi({ type: this.type })
2165
2166
  ];
2166
2167
  }
2167
- }), Pi = Kn.extend({
2168
+ }), Ui = Wn.extend({
2168
2169
  name: "ConfigurableImage",
2169
2170
  addAttributes() {
2170
2171
  return {
@@ -2188,14 +2189,14 @@ const Bi = {
2188
2189
  }
2189
2190
  };
2190
2191
  }
2191
- }).configure({ inline: !0, allowBase64: !0 }), Ui = me.extend({
2192
+ }).configure({ inline: !0, allowBase64: !0 }), Vi = me.extend({
2192
2193
  parseHTML() {
2193
2194
  return [{ tag: "div" }];
2194
2195
  },
2195
2196
  renderHTML({ HTMLAttributes: t }) {
2196
- return ["div", st(this.options.HTMLAttributes, t), 0];
2197
+ return ["div", it(this.options.HTMLAttributes, t), 0];
2197
2198
  }
2198
- }), Vi = {
2199
+ }), zi = {
2199
2200
  compatConfig: { MODE: 3 },
2200
2201
  name: "MentionComponent",
2201
2202
  components: {
@@ -2229,10 +2230,10 @@ const Bi = {
2229
2230
  }
2230
2231
  };
2231
2232
  function ji(t, e, o, n, i, s) {
2232
- const r = T("dt-link"), a = T("node-view-wrapper");
2233
- return _(), I(a, { class: "d-d-inline-block" }, {
2234
- default: C(() => [
2235
- M(r, {
2233
+ const r = x("dt-link"), a = x("node-view-wrapper");
2234
+ return k(), E(a, { class: "d-d-inline-block" }, {
2235
+ default: T(() => [
2236
+ A(r, {
2236
2237
  kind: "mention",
2237
2238
  onClick: At(s.handleClick, ["prevent"]),
2238
2239
  onMouseenter: s.handleMouseEnter,
@@ -2240,8 +2241,8 @@ function ji(t, e, o, n, i, s) {
2240
2241
  onFocusin: s.handleMouseEnter,
2241
2242
  onFocusout: s.handleMouseLeave
2242
2243
  }, {
2243
- default: C(() => [
2244
- at($(s.text), 1)
2244
+ default: T(() => [
2245
+ Y($(s.text), 1)
2245
2246
  ]),
2246
2247
  _: 1
2247
2248
  }, 8, ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"])
@@ -2249,9 +2250,9 @@ function ji(t, e, o, n, i, s) {
2249
2250
  _: 1
2250
2251
  });
2251
2252
  }
2252
- const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = Rt.extend({
2253
+ const Fi = /* @__PURE__ */ q(zi, [["render", ji]]), Ki = Rt.extend({
2253
2254
  addNodeView() {
2254
- return mt(zi);
2255
+ return mt(Fi);
2255
2256
  },
2256
2257
  parseHTML() {
2257
2258
  return [
@@ -2280,20 +2281,20 @@ const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = Rt.extend({
2280
2281
  return `@${t.attrs.id}`;
2281
2282
  },
2282
2283
  renderHTML({ HTMLAttributes: t }) {
2283
- return ["mention-component", st(this.options.HTMLAttributes, t)];
2284
+ return ["mention-component", it(this.options.HTMLAttributes, t)];
2284
2285
  }
2285
2286
  }).configure({
2286
2287
  suggestion: {
2287
2288
  char: "@",
2288
- pluginKey: new rt("mentionSuggestion")
2289
+ pluginKey: new st("mentionSuggestion")
2289
2290
  }
2290
- }), Ki = {
2291
+ }), Wi = {
2291
2292
  compatConfig: { MODE: 3 },
2292
2293
  name: "ChannelComponent",
2293
2294
  components: {
2294
2295
  NodeViewWrapper: pt,
2295
2296
  DtLink: we,
2296
- DtIconLock: Wn,
2297
+ DtIconLock: qn,
2297
2298
  DtStack: gt
2298
2299
  },
2299
2300
  props: ft,
@@ -2314,25 +2315,25 @@ const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = Rt.extend({
2314
2315
  }
2315
2316
  }
2316
2317
  };
2317
- function Wi(t, e, o, n, i, s) {
2318
- const r = T("dt-icon-lock"), a = T("dt-stack"), l = T("dt-link"), u = T("node-view-wrapper");
2319
- return _(), I(u, { class: "d-d-inline-block" }, {
2320
- default: C(() => [
2321
- M(l, {
2318
+ function qi(t, e, o, n, i, s) {
2319
+ const r = x("dt-icon-lock"), a = x("dt-stack"), l = x("dt-link"), u = x("node-view-wrapper");
2320
+ return k(), E(u, { class: "d-d-inline-block" }, {
2321
+ default: T(() => [
2322
+ A(l, {
2322
2323
  kind: "mention",
2323
2324
  onClick: At(s.handleClick, ["prevent"])
2324
2325
  }, {
2325
- default: C(() => [
2326
- M(a, {
2326
+ default: T(() => [
2327
+ A(a, {
2327
2328
  direction: "row",
2328
2329
  gap: "0"
2329
2330
  }, {
2330
- default: C(() => [
2331
- t.$props.node.attrs.locked ? (_(), I(r, {
2331
+ default: T(() => [
2332
+ t.$props.node.attrs.locked ? (k(), E(r, {
2332
2333
  key: 0,
2333
2334
  size: "200"
2334
- })) : it("", !0),
2335
- nt("span", null, $(s.text), 1)
2335
+ })) : ot("", !0),
2336
+ ct("span", null, $(s.text), 1)
2336
2337
  ]),
2337
2338
  _: 1
2338
2339
  })
@@ -2343,10 +2344,10 @@ function Wi(t, e, o, n, i, s) {
2343
2344
  _: 1
2344
2345
  });
2345
2346
  }
2346
- const qi = /* @__PURE__ */ q(Ki, [["render", Wi]]), Xi = Rt.extend({
2347
+ const Xi = /* @__PURE__ */ q(Wi, [["render", qi]]), Yi = Rt.extend({
2347
2348
  name: "channel",
2348
2349
  addNodeView() {
2349
- return mt(qi);
2350
+ return mt(Xi);
2350
2351
  },
2351
2352
  parseHTML() {
2352
2353
  return [
@@ -2375,14 +2376,14 @@ const qi = /* @__PURE__ */ q(Ki, [["render", Wi]]), Xi = Rt.extend({
2375
2376
  return `#${t.attrs.id}`;
2376
2377
  },
2377
2378
  renderHTML({ HTMLAttributes: t }) {
2378
- return ["channel-component", st(this.options.HTMLAttributes, t)];
2379
+ return ["channel-component", it(this.options.HTMLAttributes, t)];
2379
2380
  }
2380
2381
  }).configure({
2381
2382
  suggestion: {
2382
2383
  char: "#",
2383
- pluginKey: new rt("channelSuggestion")
2384
+ pluginKey: new st("channelSuggestion")
2384
2385
  }
2385
- }), Yi = {
2386
+ }), Gi = {
2386
2387
  compatConfig: { MODE: 3 },
2387
2388
  name: "SlashCommandsComponent",
2388
2389
  components: {
@@ -2405,23 +2406,23 @@ const qi = /* @__PURE__ */ q(Ki, [["render", Wi]]), Xi = Rt.extend({
2405
2406
  e && typeof e == "function" && e(t);
2406
2407
  }
2407
2408
  };
2408
- function Gi(t, e, o, n, i, s) {
2409
- const r = T("node-view-wrapper");
2410
- return _(), I(r, { class: "d-d-inline-block" }, {
2411
- default: C(() => [
2412
- at($(s.text), 1)
2409
+ function Ji(t, e, o, n, i, s) {
2410
+ const r = x("node-view-wrapper");
2411
+ return k(), E(r, { class: "d-d-inline-block" }, {
2412
+ default: T(() => [
2413
+ Y($(s.text), 1)
2413
2414
  ]),
2414
2415
  _: 1
2415
2416
  });
2416
2417
  }
2417
- const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAll(e)].map((n) => {
2418
+ const Zi = /* @__PURE__ */ q(Gi, [["render", Ji]]), Qi = (t, e) => [...t.matchAll(e)].map((n) => {
2418
2419
  let i = n[2];
2419
2420
  return i.endsWith(" ") || (i += " "), {
2420
2421
  index: n.index,
2421
2422
  text: i,
2422
2423
  match: n
2423
2424
  };
2424
- }), Qi = Rt.extend({
2425
+ }), ts = Rt.extend({
2425
2426
  name: "slash-commands",
2426
2427
  group: "inline",
2427
2428
  inline: !0,
@@ -2438,7 +2439,7 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2438
2439
  };
2439
2440
  },
2440
2441
  addNodeView() {
2441
- return mt(Ji);
2442
+ return mt(Zi);
2442
2443
  },
2443
2444
  parseHTML() {
2444
2445
  return [
@@ -2464,13 +2465,13 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2464
2465
  return `/${t.attrs.command}`;
2465
2466
  },
2466
2467
  renderHTML({ HTMLAttributes: t }) {
2467
- return ["command-component", st(this.options.HTMLAttributes, t)];
2468
+ return ["command-component", it(this.options.HTMLAttributes, t)];
2468
2469
  },
2469
2470
  addInputRules() {
2470
2471
  var o;
2471
2472
  const t = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) $`);
2472
2473
  return [
2473
- tn({
2474
+ en({
2474
2475
  find: e,
2475
2476
  type: this.type,
2476
2477
  getAttributes(n) {
@@ -2484,7 +2485,7 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2484
2485
  const t = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) ?$`, "g");
2485
2486
  return [
2486
2487
  Et({
2487
- find: (n) => Zi(n, e),
2488
+ find: (n) => Qi(n, e),
2488
2489
  type: this.type,
2489
2490
  getAttributes(n) {
2490
2491
  return { command: n[0].trim() };
@@ -2495,22 +2496,22 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2495
2496
  }).configure({
2496
2497
  suggestion: {
2497
2498
  char: "/",
2498
- pluginKey: new rt("slashCommandSuggestion")
2499
+ pluginKey: new st("slashCommandSuggestion")
2499
2500
  }
2500
- }), ts = 100, es = {
2501
+ }), es = 100, ns = {
2501
2502
  name: "VariableComponent",
2502
2503
  components: {
2503
- DtBadge: Yn,
2504
+ DtBadge: Gn,
2504
2505
  DtButton: ve,
2505
- DtPopover: Xn,
2506
- DtInput: qn,
2506
+ DtPopover: Yn,
2507
+ DtInput: Xn,
2507
2508
  NodeViewWrapper: pt
2508
2509
  },
2509
2510
  props: ft,
2510
2511
  data() {
2511
2512
  return {
2512
2513
  i18n: new be(),
2513
- MAX_VARIABLE_ALT_LENGTH: ts
2514
+ MAX_VARIABLE_ALT_LENGTH: es
2514
2515
  };
2515
2516
  },
2516
2517
  computed: {
@@ -2550,21 +2551,21 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2550
2551
  }
2551
2552
  }
2552
2553
  };
2553
- function ns(t, e, o, n, i, s) {
2554
- const r = T("dt-badge"), a = T("dt-button"), l = T("dt-input"), u = T("dt-popover"), d = T("node-view-wrapper");
2555
- return _(), I(d, { class: "d-d-inline-block" }, {
2556
- default: C(() => [
2557
- s.enableAltText ? (_(), I(u, {
2554
+ function os(t, e, o, n, i, s) {
2555
+ const r = x("dt-badge"), a = x("dt-button"), l = x("dt-input"), u = x("dt-popover"), d = x("node-view-wrapper");
2556
+ return k(), E(d, { class: "d-d-inline-block" }, {
2557
+ default: T(() => [
2558
+ s.enableAltText ? (k(), E(u, {
2558
2559
  key: 0,
2559
2560
  padding: "small",
2560
2561
  "navigation-type": "arrow-keys",
2561
2562
  placement: "top-start",
2562
2563
  modal: !1
2563
2564
  }, {
2564
- anchor: C(({ attrs: c }) => [
2565
- M(a, pe(c, { kind: "unstyled" }), {
2566
- default: C(() => [
2567
- M(r, {
2565
+ anchor: T(({ attrs: c }) => [
2566
+ A(a, pe(c, { kind: "unstyled" }), {
2567
+ default: T(() => [
2568
+ A(r, {
2568
2569
  text: s.badgeLabel,
2569
2570
  contenteditable: "false"
2570
2571
  }, null, 8, ["text"])
@@ -2572,8 +2573,8 @@ function ns(t, e, o, n, i, s) {
2572
2573
  _: 1
2573
2574
  }, 16)
2574
2575
  ]),
2575
- content: C(({ close: c }) => [
2576
- M(l, {
2576
+ content: T(({ close: c }) => [
2577
+ A(l, {
2577
2578
  modelValue: s.altText,
2578
2579
  "onUpdate:modelValue": e[0] || (e[0] = (h) => s.altText = h),
2579
2580
  "root-class": "d-p8 d-w332",
@@ -2588,11 +2589,11 @@ function ns(t, e, o, n, i, s) {
2588
2589
  limitMaxLength: !0
2589
2590
  }
2590
2591
  },
2591
- onKeyup: hn((h) => c(), ["enter"])
2592
+ onKeyup: fn((h) => c(), ["enter"])
2592
2593
  }, null, 8, ["modelValue", "label", "placeholder", "validate", "onKeyup"])
2593
2594
  ]),
2594
2595
  _: 1
2595
- })) : (_(), I(r, {
2596
+ })) : (k(), E(r, {
2596
2597
  key: 1,
2597
2598
  text: s.badgeLabel,
2598
2599
  contenteditable: "false"
@@ -2601,7 +2602,7 @@ function ns(t, e, o, n, i, s) {
2601
2602
  _: 1
2602
2603
  });
2603
2604
  }
2604
- const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2605
+ const is = /* @__PURE__ */ q(ns, [["render", os]]), ss = ae.create({
2605
2606
  name: "variable",
2606
2607
  group: "inline",
2607
2608
  inline: !0,
@@ -2614,7 +2615,7 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2614
2615
  };
2615
2616
  },
2616
2617
  addNodeView() {
2617
- return mt(os);
2618
+ return mt(is);
2618
2619
  },
2619
2620
  addAttributes() {
2620
2621
  return {
@@ -2654,7 +2655,7 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2654
2655
  renderHTML({ node: t, HTMLAttributes: e }) {
2655
2656
  return [
2656
2657
  "variable",
2657
- st(this.options.HTMLAttributes, e, {
2658
+ it(this.options.HTMLAttributes, e, {
2658
2659
  "data-variable-id": t.attrs.id,
2659
2660
  "data-alt-text": t.attrs.altText,
2660
2661
  "data-enable-alt-text": String(t.attrs.enableAltText)
@@ -2673,12 +2674,13 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2673
2674
  })
2674
2675
  };
2675
2676
  }
2676
- }), ss = {
2677
+ }), rs = {
2677
2678
  compatConfig: { MODE: 3 },
2678
2679
  name: "MentionSuggestion",
2679
2680
  components: {
2680
- DtAvatar: Zn,
2681
- DtStack: gt
2681
+ DtAvatar: Qn,
2682
+ DtStack: gt,
2683
+ DtText: xe
2682
2684
  },
2683
2685
  props: {
2684
2686
  item: {
@@ -2714,22 +2716,16 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2714
2716
  return this.item.showDetails;
2715
2717
  }
2716
2718
  }
2717
- }, rs = { class: "d-mention-suggestion__name" }, as = {
2718
- key: 1,
2719
- class: "d-mention-suggestion__divider"
2720
- }, ls = {
2721
- key: 2,
2722
- class: "d-mention-suggestion__status"
2723
- };
2724
- function cs(t, e, o, n, i, s) {
2725
- const r = T("dt-avatar"), a = T("dt-stack");
2726
- return _(), I(a, {
2719
+ }, as = { class: "d-mention-suggestion__name" };
2720
+ function ls(t, e, o, n, i, s) {
2721
+ const r = x("dt-avatar"), a = x("dt-text"), l = x("dt-stack");
2722
+ return k(), E(l, {
2727
2723
  direction: "row",
2728
2724
  class: "d-mention-suggestion__container",
2729
2725
  gap: "400"
2730
2726
  }, {
2731
- default: C(() => [
2732
- M(r, {
2727
+ default: T(() => [
2728
+ A(r, {
2733
2729
  "full-name": s.name,
2734
2730
  "image-src": s.avatarSrc,
2735
2731
  "image-alt": s.name,
@@ -2737,28 +2733,59 @@ function cs(t, e, o, n, i, s) {
2737
2733
  presence: s.presence,
2738
2734
  size: "sm"
2739
2735
  }, null, 8, ["full-name", "image-src", "image-alt", "show-presence", "presence"]),
2740
- M(a, {
2736
+ A(l, {
2741
2737
  class: "d-mention-suggestion__details-container",
2742
2738
  gap: "100"
2743
2739
  }, {
2744
- default: C(() => [
2745
- nt("span", rs, $(s.name), 1),
2746
- s.showDetails ? (_(), I(a, {
2740
+ default: T(() => [
2741
+ ct("span", as, $(s.name), 1),
2742
+ s.showDetails ? (k(), E(l, {
2747
2743
  key: 0,
2748
2744
  direction: "row",
2749
- gap: "300",
2750
- class: "d-label--sm-plain"
2745
+ gap: "300"
2751
2746
  }, {
2752
- default: C(() => [
2753
- s.presenceText ? (_(), et("span", {
2747
+ default: T(() => [
2748
+ s.presenceText ? (k(), E(a, {
2754
2749
  key: 0,
2750
+ kind: "label",
2751
+ size: "sm",
2752
+ strength: "normal",
2755
2753
  class: fe(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
2756
- }, $(s.presenceText), 3)) : it("", !0),
2757
- s.status && s.presenceText ? (_(), et("div", as, " • ")) : it("", !0),
2758
- s.status ? (_(), et("div", ls, $(s.status), 1)) : it("", !0)
2754
+ }, {
2755
+ default: T(() => [
2756
+ Y($(s.presenceText), 1)
2757
+ ]),
2758
+ _: 1
2759
+ }, 8, ["class"])) : ot("", !0),
2760
+ s.status && s.presenceText ? (k(), E(a, {
2761
+ key: 1,
2762
+ kind: "label",
2763
+ size: "sm",
2764
+ strength: "normal",
2765
+ as: "div",
2766
+ class: "d-mention-suggestion__divider"
2767
+ }, {
2768
+ default: T(() => [...e[0] || (e[0] = [
2769
+ Y(" • ", -1)
2770
+ ])]),
2771
+ _: 1
2772
+ })) : ot("", !0),
2773
+ s.status ? (k(), E(a, {
2774
+ key: 2,
2775
+ kind: "label",
2776
+ size: "sm",
2777
+ strength: "normal",
2778
+ as: "div",
2779
+ class: "d-mention-suggestion__status"
2780
+ }, {
2781
+ default: T(() => [
2782
+ Y($(s.status), 1)
2783
+ ]),
2784
+ _: 1
2785
+ })) : ot("", !0)
2759
2786
  ]),
2760
2787
  _: 1
2761
- })) : it("", !0)
2788
+ })) : ot("", !0)
2762
2789
  ]),
2763
2790
  _: 1
2764
2791
  })
@@ -2766,19 +2793,19 @@ function cs(t, e, o, n, i, s) {
2766
2793
  _: 1
2767
2794
  });
2768
2795
  }
2769
- const ds = /* @__PURE__ */ q(ss, [["render", cs]]), us = {
2796
+ const cs = /* @__PURE__ */ q(rs, [["render", ls]]), ds = {
2770
2797
  // This function comes from the user and passed to the editor directly.
2771
2798
  // This will also activate the mention plugin on the editor
2772
2799
  // items: ({ query }) => { return [] },
2773
2800
  allowSpaces: !0,
2774
- render: Ct(ds, "mention")
2775
- }, hs = {
2801
+ render: Ct(cs, "mention")
2802
+ }, us = {
2776
2803
  compatConfig: { MODE: 3 },
2777
2804
  name: "ChannelSuggestion",
2778
2805
  components: {
2779
2806
  DtStack: gt,
2780
- DtIconHash: Qn,
2781
- DtIconLock: to
2807
+ DtIconHash: to,
2808
+ DtIconLock: eo
2782
2809
  },
2783
2810
  props: {
2784
2811
  item: {
@@ -2792,34 +2819,35 @@ const ds = /* @__PURE__ */ q(ss, [["render", cs]]), us = {
2792
2819
  }
2793
2820
  }
2794
2821
  };
2795
- function fs(t, e, o, n, i, s) {
2796
- const r = T("dt-icon-hash"), a = T("dt-icon-lock"), l = T("dt-stack");
2797
- return _(), I(l, {
2822
+ function hs(t, e, o, n, i, s) {
2823
+ const r = x("dt-icon-hash"), a = x("dt-icon-lock"), l = x("dt-stack");
2824
+ return k(), E(l, {
2798
2825
  direction: "row",
2799
2826
  gap: "400"
2800
2827
  }, {
2801
- default: C(() => [
2802
- o.item.locked ? (_(), I(a, {
2828
+ default: T(() => [
2829
+ o.item.locked ? (k(), E(a, {
2803
2830
  key: 1,
2804
2831
  size: "300"
2805
- })) : (_(), I(r, {
2832
+ })) : (k(), E(r, {
2806
2833
  key: 0,
2807
2834
  size: "300"
2808
2835
  })),
2809
- nt("span", null, $(s.name), 1)
2836
+ ct("span", null, $(s.name), 1)
2810
2837
  ]),
2811
2838
  _: 1
2812
2839
  });
2813
2840
  }
2814
- const ps = /* @__PURE__ */ q(hs, [["render", fs]]), ms = {
2841
+ const fs = /* @__PURE__ */ q(us, [["render", hs]]), ps = {
2815
2842
  // This function comes from the user and passed to the editor directly.
2816
2843
  // This will also activate the mention plugin on the editor
2817
2844
  // items: ({ query }) => { return [] },
2818
2845
  allowSpaces: !0,
2819
- render: Ct(ps, "channel")
2820
- }, gs = {
2846
+ render: Ct(fs, "channel")
2847
+ }, ms = {
2821
2848
  compatConfig: { MODE: 3 },
2822
2849
  name: "SlashCommandSuggestion",
2850
+ components: { DtText: xe },
2823
2851
  props: {
2824
2852
  item: {
2825
2853
  type: Object,
@@ -2837,29 +2865,48 @@ const ps = /* @__PURE__ */ q(hs, [["render", fs]]), ms = {
2837
2865
  return this.item.parametersExample;
2838
2866
  }
2839
2867
  }
2840
- }, ys = { class: "d-body--md-compact" }, ws = { key: 0 }, bs = { class: "d-body--sm d-fc-tertiary" };
2841
- function vs(t, e, o, n, i, s) {
2842
- return _(), et("div", null, [
2843
- nt("div", ys, [
2844
- nt("span", null, "/" + $(s.command), 1),
2845
- s.parametersExample ? (_(), et("span", ws, $(s.parametersExample), 1)) : it("", !0)
2846
- ]),
2847
- nt("div", bs, $(s.description), 1)
2868
+ }, gs = { key: 0 };
2869
+ function ys(t, e, o, n, i, s) {
2870
+ const r = x("dt-text");
2871
+ return k(), ut("div", null, [
2872
+ A(r, {
2873
+ kind: "body",
2874
+ size: "md",
2875
+ density: 300,
2876
+ as: "div"
2877
+ }, {
2878
+ default: T(() => [
2879
+ ct("span", null, "/" + $(s.command), 1),
2880
+ s.parametersExample ? (k(), ut("span", gs, $(s.parametersExample), 1)) : ot("", !0)
2881
+ ]),
2882
+ _: 1
2883
+ }),
2884
+ A(r, {
2885
+ kind: "body",
2886
+ size: "sm",
2887
+ tone: "tertiary",
2888
+ as: "div"
2889
+ }, {
2890
+ default: T(() => [
2891
+ Y($(s.description), 1)
2892
+ ]),
2893
+ _: 1
2894
+ })
2848
2895
  ]);
2849
2896
  }
2850
- const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
2897
+ const ws = /* @__PURE__ */ q(ms, [["render", ys]]), bs = {
2851
2898
  // This function comes from the user and passed to the editor directly.
2852
2899
  // This will also activate the mention plugin on the editor
2853
2900
  // items: ({ query }) => { return [] },
2854
2901
  allowSpaces: !0,
2855
2902
  startOfLine: !0,
2856
- render: Ct(xs, "slash-command")
2857
- }, _s = {
2903
+ render: Ct(ws, "slash-command")
2904
+ }, vs = {
2858
2905
  compatConfig: { MODE: 3 },
2859
2906
  name: "DtRichTextEditor",
2860
2907
  components: {
2861
- EditorContent: ze,
2862
- BubbleMenu: Qo,
2908
+ EditorContent: Fe,
2909
+ BubbleMenu: ti,
2863
2910
  DtButton: ve,
2864
2911
  DtStack: gt
2865
2912
  },
@@ -2933,7 +2980,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
2933
2980
  type: [Boolean, String, Number],
2934
2981
  default: !1,
2935
2982
  validator(t) {
2936
- return typeof t == "string" ? Jn.includes(t) : !0;
2983
+ return typeof t == "string" ? Zn.includes(t) : !0;
2937
2984
  }
2938
2985
  },
2939
2986
  /**
@@ -2946,7 +2993,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
2946
2993
  type: String,
2947
2994
  default: "html",
2948
2995
  validator(t) {
2949
- return Gn.includes(t);
2996
+ return Jn.includes(t);
2950
2997
  }
2951
2998
  },
2952
2999
  /**
@@ -3273,7 +3320,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
3273
3320
  editor: null,
3274
3321
  appendTo: () => {
3275
3322
  var t;
3276
- return (t = zt(this.$refs.editor.$el).getRootNode()) == null ? void 0 : t.querySelector("body");
3323
+ return (t = jt(this.$refs.editor.$el).getRootNode()) == null ? void 0 : t.querySelector("body");
3277
3324
  },
3278
3325
  floatingOptions: {
3279
3326
  placement: "top-start"
@@ -3418,15 +3465,15 @@ ${this.processNodeContent(t)}
3418
3465
  },
3419
3466
  // eslint-disable-next-line complexity
3420
3467
  extensions() {
3421
- const t = [gn, Ln, yn, vn];
3422
- t.push(this.useDivTags ? Ui : me), this.allowBold && t.push(xn), this.allowBlockquote && t.push(fn), this.allowBulletList && (t.push(Tn), t.push(_n.extend({
3468
+ const t = [yn, In, wn, xn];
3469
+ t.push(this.useDivTags ? Vi : me), this.allowBold && t.push(Tn), this.allowBlockquote && t.push(pn), this.allowBulletList && (t.push(_n), t.push(kn.extend({
3423
3470
  renderText({ node: n }) {
3424
3471
  return n.textContent;
3425
3472
  }
3426
- })), t.push(kn)), this.allowItalic && t.push(Cn), this.allowStrike && t.push(En), this.allowUnderline && t.push(Sn), this.placeholder && t.push(
3427
- wn.configure({ placeholder: this.placeholder })
3473
+ })), t.push(Cn)), this.allowItalic && t.push(On), this.allowStrike && t.push(Sn), this.allowUnderline && t.push(Ln), this.placeholder && t.push(
3474
+ bn.configure({ placeholder: this.placeholder })
3428
3475
  );
3429
- const e = this, o = en.create({
3476
+ const e = this, o = nn.create({
3430
3477
  addKeyboardShortcuts() {
3431
3478
  return {
3432
3479
  "Shift-Enter": ({ editor: n }) => e.allowLineBreaks ? !1 : (n.commands.first(({ commands: i }) => [
@@ -3440,7 +3487,7 @@ ${this.processNodeContent(t)}
3440
3487
  };
3441
3488
  }
3442
3489
  });
3443
- if (t.push(o), this.link && t.push(On.extend({
3490
+ if (t.push(o), this.link && t.push(En.extend({
3444
3491
  inclusive: !1,
3445
3492
  addKeyboardShortcuts() {
3446
3493
  return {
@@ -3454,28 +3501,28 @@ ${this.processNodeContent(t)}
3454
3501
  openOnClick: !1,
3455
3502
  autolink: !0,
3456
3503
  protocols: Ft
3457
- })), this.customLink && t.push(this.getExtension(Ni, this.customLink)), this.mentionSuggestion) {
3458
- const n = { ...this.mentionSuggestion, ...us };
3459
- t.push(Fi.configure({ suggestion: n }));
3504
+ })), this.customLink && t.push(this.getExtension(Pi, this.customLink)), this.mentionSuggestion) {
3505
+ const n = { ...this.mentionSuggestion, ...ds };
3506
+ t.push(Ki.configure({ suggestion: n }));
3460
3507
  }
3461
3508
  if (this.channelSuggestion) {
3462
- const n = { ...this.channelSuggestion, ...ms };
3463
- t.push(Xi.configure({ suggestion: n }));
3509
+ const n = { ...this.channelSuggestion, ...ps };
3510
+ t.push(Yi.configure({ suggestion: n }));
3464
3511
  }
3465
3512
  if (this.slashCommandSuggestion) {
3466
- const n = { ...this.slashCommandSuggestion, ...Ts };
3467
- t.push(Qi.configure({
3513
+ const n = { ...this.slashCommandSuggestion, ...bs };
3514
+ t.push(ts.configure({
3468
3515
  suggestion: n,
3469
3516
  onSelectedCommand: (i) => {
3470
3517
  this.$emit("selected-command", i);
3471
3518
  }
3472
3519
  }));
3473
3520
  }
3474
- return this.allowVariable && t.push(is.configure({
3521
+ return this.allowVariable && t.push(ss.configure({
3475
3522
  variableItems: this.variableItems
3476
- })), t.push(Ii), t.push(In.configure({
3523
+ })), t.push(Ai), t.push(An.configure({
3477
3524
  types: ["paragraph"]
3478
- })), this.allowCode && t.push(mn), this.allowCodeblock && t.push(pn.extend({
3525
+ })), this.allowCode && t.push(gn), this.allowCodeblock && t.push(mn.extend({
3479
3526
  renderText({ node: n }) {
3480
3527
  return `\`\`\`
3481
3528
  ${n.textContent}
@@ -3485,18 +3532,18 @@ ${n.textContent}
3485
3532
  HTMLAttributes: {
3486
3533
  class: "d-rich-text-editor__code-block"
3487
3534
  }
3488
- })), this.allowInlineImages && t.push(Pi.configure({
3535
+ })), this.allowInlineImages && t.push(Ui.configure({
3489
3536
  resize: {
3490
3537
  enabled: this.allowImageResize,
3491
3538
  alwaysPreserveAspectRatio: !0
3492
3539
  }
3493
- })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize) && t.push(Hn.configure({
3540
+ })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize) && t.push($n.configure({
3494
3541
  color: this.allowFontColor,
3495
3542
  backgroundColor: !1,
3496
3543
  fontFamily: this.allowFontFamily,
3497
3544
  fontSize: this.allowFontSize,
3498
3545
  lineHeight: !1
3499
- })), this.additionalExtensions.length && t.push(...this.additionalExtensions), this.allowTables && t.push(An.configure({ resizable: !0 }), Dn, Rn, Mn, bn), t;
3546
+ })), this.additionalExtensions.length && t.push(...this.additionalExtensions), this.allowTables && t.push(Dn.configure({ resizable: !0 }), Rn, Mn, Hn, vn), t;
3500
3547
  },
3501
3548
  inputAttrs() {
3502
3549
  const t = {
@@ -3536,11 +3583,11 @@ ${n.textContent}
3536
3583
  this.destroyEditor();
3537
3584
  },
3538
3585
  mounted() {
3539
- Fn(zt(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
3586
+ Kn(jt(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
3540
3587
  },
3541
3588
  methods: {
3542
3589
  createEditor() {
3543
- this.editor = new Fe({
3590
+ this.editor = new Ke({
3544
3591
  autofocus: this.autoFocus,
3545
3592
  content: this.modelValue,
3546
3593
  editable: this.editable,
@@ -3614,7 +3661,7 @@ ${n.textContent}
3614
3661
  processValue(t, e = !0) {
3615
3662
  if (!this.editor) return;
3616
3663
  const o = this.getOutput();
3617
- if (!(e && eo(t, o))) {
3664
+ if (!(e && no(t, o))) {
3618
3665
  if (typeof t == "string" && this.outputFormat === "text") {
3619
3666
  const n = new RegExp(`(${ge})`, "g");
3620
3667
  t = t == null ? void 0 : t.replace(n, '<emoji-component code="$1"></emoji-component>');
@@ -3759,11 +3806,11 @@ ${n.textContent}
3759
3806
  this.editor.commands.focus();
3760
3807
  }
3761
3808
  }
3762
- }, ks = { class: "d-popover__dialog" };
3763
- function Cs(t, e, o, n, i, s) {
3764
- const r = T("dt-button"), a = T("dt-stack"), l = T("bubble-menu"), u = T("editor-content");
3765
- return _(), et("div", null, [
3766
- i.editor && o.link && !o.hideLinkBubbleMenu ? (_(), I(l, {
3809
+ }, xs = { class: "d-popover__dialog" };
3810
+ function Ts(t, e, o, n, i, s) {
3811
+ const r = x("dt-button"), a = x("dt-stack"), l = x("bubble-menu"), u = x("editor-content");
3812
+ return k(), ut("div", null, [
3813
+ i.editor && o.link && !o.hideLinkBubbleMenu ? (k(), E(l, {
3767
3814
  key: 0,
3768
3815
  editor: i.editor,
3769
3816
  "should-show": s.bubbleMenuShouldShow,
@@ -3771,41 +3818,41 @@ function Cs(t, e, o, n, i, s) {
3771
3818
  "append-to": i.appendTo,
3772
3819
  style: { visibility: "visible" }
3773
3820
  }, {
3774
- default: C(() => [
3775
- nt("div", ks, [
3776
- M(a, {
3821
+ default: T(() => [
3822
+ ct("div", xs, [
3823
+ A(a, {
3777
3824
  direction: "row",
3778
3825
  class: "d-rich-text-editor-bubble-menu__button-stack",
3779
3826
  gap: "0"
3780
3827
  }, {
3781
- default: C(() => [
3782
- M(r, {
3828
+ default: T(() => [
3829
+ A(r, {
3783
3830
  kind: "muted",
3784
3831
  importance: "clear",
3785
3832
  onClick: s.editLink
3786
3833
  }, {
3787
- default: C(() => [
3788
- at($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)
3834
+ default: T(() => [
3835
+ Y($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)
3789
3836
  ]),
3790
3837
  _: 1
3791
3838
  }, 8, ["onClick"]),
3792
- M(r, {
3839
+ A(r, {
3793
3840
  kind: "muted",
3794
3841
  importance: "clear",
3795
3842
  onClick: s.openLink
3796
3843
  }, {
3797
- default: C(() => [
3798
- at($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)
3844
+ default: T(() => [
3845
+ Y($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)
3799
3846
  ]),
3800
3847
  _: 1
3801
3848
  }, 8, ["onClick"]),
3802
- M(r, {
3849
+ A(r, {
3803
3850
  kind: "danger",
3804
3851
  importance: "clear",
3805
3852
  onClick: s.removeLink
3806
3853
  }, {
3807
- default: C(() => [
3808
- at($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)
3854
+ default: T(() => [
3855
+ Y($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)
3809
3856
  ]),
3810
3857
  _: 1
3811
3858
  }, 8, ["onClick"])
@@ -3815,8 +3862,8 @@ function Cs(t, e, o, n, i, s) {
3815
3862
  ])
3816
3863
  ]),
3817
3864
  _: 1
3818
- }, 8, ["editor", "should-show", "options", "append-to"])) : it("", !0),
3819
- M(u, pe({
3865
+ }, 8, ["editor", "should-show", "options", "append-to"])) : ot("", !0),
3866
+ A(u, pe({
3820
3867
  ref: "editor",
3821
3868
  editor: i.editor,
3822
3869
  class: "d-rich-text-editor",
@@ -3824,8 +3871,8 @@ function Cs(t, e, o, n, i, s) {
3824
3871
  }, s.attrs), null, 16, ["editor"])
3825
3872
  ]);
3826
3873
  }
3827
- const gr = /* @__PURE__ */ q(_s, [["render", Cs]]);
3874
+ const pr = /* @__PURE__ */ q(vs, [["render", Ts]]);
3828
3875
  export {
3829
- gr as default
3876
+ pr as default
3830
3877
  };
3831
3878
  //# sourceMappingURL=rich-text-editor.js.map