@dialpad/dialtone-vue 4.11.0 → 4.11.1

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 (542) hide show
  1. package/dist/{Combobox-BKj61IcR.js → Combobox-8vN7Njqe.js} +3 -3
  2. package/dist/{Combobox-BKj61IcR.js.map → Combobox-8vN7Njqe.js.map} +1 -1
  3. package/dist/{Combobox-BOGcBq-6.cjs → Combobox-CmASo310.cjs} +2 -2
  4. package/dist/{Combobox-BOGcBq-6.cjs.map → Combobox-CmASo310.cjs.map} +1 -1
  5. package/dist/{Datepicker-DOSIyo8a.js → Datepicker-BeNUNF5U.js} +2 -2
  6. package/dist/{Datepicker-DOSIyo8a.js.map → Datepicker-BeNUNF5U.js.map} +1 -1
  7. package/dist/{Datepicker-DfdVsVb9.cjs → Datepicker-C-aExL3M.cjs} +2 -2
  8. package/dist/{Datepicker-DfdVsVb9.cjs.map → Datepicker-C-aExL3M.cjs.map} +1 -1
  9. package/dist/{EmojiPicker-B_ZVTdOY.js → EmojiPicker-Bondna8R.js} +2 -2
  10. package/dist/{EmojiPicker-B_ZVTdOY.js.map → EmojiPicker-Bondna8R.js.map} +1 -1
  11. package/dist/{EmojiPicker-DS8XmAHV.cjs → EmojiPicker-DDtsv-Ix.cjs} +2 -2
  12. package/dist/{EmojiPicker-DS8XmAHV.cjs.map → EmojiPicker-DDtsv-Ix.cjs.map} +1 -1
  13. package/dist/{FilterPill-C4TXD8Tl.js → FilterPill-BUAdXhR-.js} +5 -5
  14. package/dist/{FilterPill-C4TXD8Tl.js.map → FilterPill-BUAdXhR-.js.map} +1 -1
  15. package/dist/{FilterPill-BmYe_SsY.cjs → FilterPill-CgM4bCLl.cjs} +2 -2
  16. package/dist/{FilterPill-BmYe_SsY.cjs.map → FilterPill-CgM4bCLl.cjs.map} +1 -1
  17. package/dist/{ForceLinkify-BMmlUc8Q.cjs → ForceLinkify-5mUtF-wp.cjs} +2 -2
  18. package/dist/{ForceLinkify-BMmlUc8Q.cjs.map → ForceLinkify-5mUtF-wp.cjs.map} +1 -1
  19. package/dist/{ForceLinkify-Cw3Q1Nn7.js → ForceLinkify-W4glPHzT.js} +1 -1
  20. package/dist/{ForceLinkify-Cw3Q1Nn7.js.map → ForceLinkify-W4glPHzT.js.map} +1 -1
  21. package/dist/{MarkdownRenderer-CH4L8Evn.cjs → MarkdownRenderer-DHZjuYwF.cjs} +2 -2
  22. package/dist/{MarkdownRenderer-CH4L8Evn.cjs.map → MarkdownRenderer-DHZjuYwF.cjs.map} +1 -1
  23. package/dist/{MarkdownRenderer-BR-fbldH.js → MarkdownRenderer-uO19k9XV.js} +1 -1
  24. package/dist/{MarkdownRenderer-BR-fbldH.js.map → MarkdownRenderer-uO19k9XV.js.map} +1 -1
  25. package/dist/{Presence-DG9Kvu5J.cjs → Presence-CgrPxxCh.cjs} +2 -2
  26. package/dist/{Presence-DG9Kvu5J.cjs.map → Presence-CgrPxxCh.cjs.map} +1 -1
  27. package/dist/{Presence-BkPCvddH.js → Presence-Cvkwr3-o.js} +2 -2
  28. package/dist/{Presence-BkPCvddH.js.map → Presence-Cvkwr3-o.js.map} +1 -1
  29. package/dist/{ProgressBar-BMycZBZE.cjs → ProgressBar-B3sKagEm.cjs} +2 -2
  30. package/dist/{ProgressBar-BMycZBZE.cjs.map → ProgressBar-B3sKagEm.cjs.map} +1 -1
  31. package/dist/{ProgressBar-Cj8xqPc0.js → ProgressBar-BR6u1SYw.js} +1 -1
  32. package/dist/{ProgressBar-Cj8xqPc0.js.map → ProgressBar-BR6u1SYw.js.map} +1 -1
  33. package/dist/{Resizable-DQoUk81S.cjs → Resizable-DNRQ89ei.cjs} +2 -2
  34. package/dist/{Resizable-DQoUk81S.cjs.map → Resizable-DNRQ89ei.cjs.map} +1 -1
  35. package/dist/{Resizable-BkijqucD.js → Resizable-ZMxRRIiG.js} +3 -3
  36. package/dist/{Resizable-BkijqucD.js.map → Resizable-ZMxRRIiG.js.map} +1 -1
  37. package/dist/{ResizableHandle-D2gZ6dg5.cjs → ResizableHandle-Dj5cqVLM.cjs} +2 -2
  38. package/dist/{ResizableHandle-D2gZ6dg5.cjs.map → ResizableHandle-Dj5cqVLM.cjs.map} +1 -1
  39. package/dist/{ResizableHandle-MDdaNR_t.js → ResizableHandle-Py6b-ZRJ.js} +3 -3
  40. package/dist/{ResizableHandle-MDdaNR_t.js.map → ResizableHandle-Py6b-ZRJ.js.map} +1 -1
  41. package/dist/{ResizableUtils-ChIk3Blc.js → ResizableUtils-D8f1CrnP.js} +1 -1
  42. package/dist/{ResizableUtils-ChIk3Blc.js.map → ResizableUtils-D8f1CrnP.js.map} +1 -1
  43. package/dist/RichTextEditor-D5n9tM7A.cjs +11 -0
  44. package/dist/{RichTextEditor-D6kCBnLJ.cjs.map → RichTextEditor-D5n9tM7A.cjs.map} +1 -1
  45. package/dist/{RichTextEditor-BIcaFJQp.js → RichTextEditor-Dit5pXhR.js} +318 -318
  46. package/dist/{RichTextEditor-BIcaFJQp.js.map → RichTextEditor-Dit5pXhR.js.map} +1 -1
  47. package/dist/{Scroller-eXc7l23J.cjs → Scroller-B1jRO70r.cjs} +2 -2
  48. package/dist/{Scroller-eXc7l23J.cjs.map → Scroller-B1jRO70r.cjs.map} +1 -1
  49. package/dist/{Scroller-D6LZtmkL.js → Scroller-sUpsRoYR.js} +3 -3
  50. package/dist/{Scroller-D6LZtmkL.js.map → Scroller-sUpsRoYR.js.map} +1 -1
  51. package/dist/{Slider-oJROUIMS.js → Slider-DCHze-Pg.js} +4 -4
  52. package/dist/{Slider-oJROUIMS.js.map → Slider-DCHze-Pg.js.map} +1 -1
  53. package/dist/{Slider-B7O2M5_S.cjs → Slider-DJNR095B.cjs} +2 -2
  54. package/dist/{Slider-B7O2M5_S.cjs.map → Slider-DJNR095B.cjs.map} +1 -1
  55. package/dist/{Text-CfiPqjL0.js → Text-B6HaId2l.js} +2 -2
  56. package/dist/{Text-CfiPqjL0.js.map → Text-B6HaId2l.js.map} +1 -1
  57. package/dist/{Text-BDgOWPw7.cjs → Text-BosPFEHO.cjs} +2 -2
  58. package/dist/{Text-BDgOWPw7.cjs.map → Text-BosPFEHO.cjs.map} +1 -1
  59. package/dist/{TextList-DXEov7Ls.js → TextList-BsE0G1zC.js} +1 -1
  60. package/dist/{TextList-DXEov7Ls.js.map → TextList-BsE0G1zC.js.map} +1 -1
  61. package/dist/{TextList-D3HHK2DW.cjs → TextList-DvuP7qmJ.cjs} +2 -2
  62. package/dist/{TextList-D3HHK2DW.cjs.map → TextList-DvuP7qmJ.cjs.map} +1 -1
  63. package/dist/{TextListItem-CaFTtZ3G.js → TextListItem-Cm_gTXMN.js} +2 -2
  64. package/dist/{TextListItem-CaFTtZ3G.js.map → TextListItem-Cm_gTXMN.js.map} +1 -1
  65. package/dist/{TextListItem-C2Vc8Gnu.cjs → TextListItem-Dd7Ht3T9.cjs} +2 -2
  66. package/dist/{TextListItem-C2Vc8Gnu.cjs.map → TextListItem-Dd7Ht3T9.cjs.map} +1 -1
  67. package/dist/{Toast-DImJ0PkZ.cjs → Toast-B2Pf0Xwa.cjs} +2 -2
  68. package/dist/{Toast-DImJ0PkZ.cjs.map → Toast-B2Pf0Xwa.cjs.map} +1 -1
  69. package/dist/{Toast-AGiQccuG.js → Toast-DtUEXL_6.js} +3 -3
  70. package/dist/{Toast-AGiQccuG.js.map → Toast-DtUEXL_6.js.map} +1 -1
  71. package/dist/{UseResizableCalculations-DTxD7NKO.js → UseResizableCalculations-BG_DFstC.js} +2 -2
  72. package/dist/{UseResizableCalculations-DTxD7NKO.js.map → UseResizableCalculations-BG_DFstC.js.map} +1 -1
  73. package/dist/chunk-BK-Lzi7j.cjs +1 -0
  74. package/dist/common/composables/use-accessible-name-warning.cjs +1 -1
  75. package/dist/common/composables/use-indicator-animation.cjs +1 -1
  76. package/dist/common/dates/index.cjs +1 -1
  77. package/dist/common/dates/index.cjs.map +1 -1
  78. package/dist/common/dates/index.d.ts +1 -1
  79. package/dist/common/dates/index.d.ts.map +1 -1
  80. package/dist/common/dates/index.js +1 -1
  81. package/dist/common/dates/index.js.map +1 -1
  82. package/dist/common/emoji/index.cjs +1 -1
  83. package/dist/common/mixins/input-group.cjs +1 -1
  84. package/dist/common/mixins/input-group.js +1 -1
  85. package/dist/common/mixins/input.cjs +1 -1
  86. package/dist/common/mixins/input.js +1 -1
  87. package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
  88. package/dist/common/mixins/keyboard-list-navigation.js +1 -1
  89. package/dist/common/mixins/modal.cjs +1 -1
  90. package/dist/common/mixins/modal.cjs.map +1 -1
  91. package/dist/common/mixins/modal.d.ts +1 -1
  92. package/dist/common/mixins/modal.d.ts.map +1 -1
  93. package/dist/common/mixins/modal.js +1 -1
  94. package/dist/common/mixins/modal.js.map +1 -1
  95. package/dist/common/mixins/mode.js +1 -1
  96. package/dist/common/phone/index.cjs +1 -1
  97. package/dist/common/sr_only_close_button.vue.d.ts +6 -5
  98. package/dist/common/sr_only_close_button.vue.d.ts.map +1 -1
  99. package/dist/common/utils/index.cjs +1 -1
  100. package/dist/common/utils/index.js +1 -1
  101. package/dist/component-documentation.json +1 -1
  102. package/dist/components/Avatar/Avatar.vue.d.ts +4 -4
  103. package/dist/components/Banner/Banner.vue.d.ts +12 -16
  104. package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
  105. package/dist/components/Box/Box.vue.d.ts +6 -10
  106. package/dist/components/Box/Box.vue.d.ts.map +1 -1
  107. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +2 -1
  108. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts.map +1 -1
  109. package/dist/components/Button/Button.vue.d.ts +4 -3
  110. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  111. package/dist/components/Checkbox/Checkbox.vue.d.ts +2 -6
  112. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  113. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -6
  114. package/dist/components/Chip/Chip.vue.d.ts +6 -5
  115. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  116. package/dist/components/Collapsible/Collapsible.vue.d.ts +3 -3
  117. package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
  118. package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +11 -11
  119. package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
  120. package/dist/components/Datepicker/Datepicker.vue.d.ts +1 -66
  121. package/dist/components/Datepicker/Modules/Calendar.vue.d.ts +1 -1
  122. package/dist/components/Dropdown/Dropdown.vue.d.ts +11 -11
  123. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  124. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +1 -904
  125. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
  126. package/dist/components/EmojiPicker/Modules/EmojiDescription.vue.d.ts +1 -1
  127. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +1 -810
  128. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
  129. package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts +1 -4
  130. package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts.map +1 -1
  131. package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts +1 -3
  132. package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts.map +1 -1
  133. package/dist/components/EmojiPicker/Modules/EmojiTabset.vue.d.ts +1 -1
  134. package/dist/components/EmptyState/EmptyState.vue.d.ts +11 -3
  135. package/dist/components/EmptyState/EmptyState.vue.d.ts.map +1 -1
  136. package/dist/components/FilterPill/FilterPill.vue.d.ts +42 -52
  137. package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
  138. package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts +7 -11
  139. package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts.map +1 -1
  140. package/dist/components/Hovercard/Hovercard.vue.d.ts +11 -3264
  141. package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
  142. package/dist/components/ImageViewer/ImageViewer.vue.d.ts +11 -10
  143. package/dist/components/ImageViewer/ImageViewer.vue.d.ts.map +1 -1
  144. package/dist/components/Input/Input.vue.d.ts +2 -6
  145. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  146. package/dist/components/InputGroup/InputGroup.vue.d.ts +2 -6
  147. package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
  148. package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +2 -6
  149. package/dist/components/Loader/Loader.vue.d.ts +3 -2
  150. package/dist/components/Loader/Loader.vue.d.ts.map +1 -1
  151. package/dist/components/Modal/Modal.vue.d.ts +13 -16
  152. package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
  153. package/dist/components/Notice/Notice.vue.d.ts +12 -16
  154. package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
  155. package/dist/components/Notice/NoticeAction.vue.d.ts +11 -10
  156. package/dist/components/Notice/NoticeAction.vue.d.ts.map +1 -1
  157. package/dist/components/Notice/NoticeContent.vue.d.ts +2 -6
  158. package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
  159. package/dist/components/Pagination/Pagination.vue.d.ts +7 -6
  160. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  161. package/dist/components/Popover/Popover.vue.d.ts +11 -11
  162. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  163. package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts +6 -5
  164. package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts.map +1 -1
  165. package/dist/components/Presence/Presence.vue.d.ts +4 -4
  166. package/dist/components/Presence/modules/presence_active_icon.vue.d.ts +1 -1
  167. package/dist/components/Presence/modules/presence_active_icon.vue.d.ts.map +1 -1
  168. package/dist/components/Presence/modules/presence_away_icon.vue.d.ts +1 -1
  169. package/dist/components/Presence/modules/presence_away_icon.vue.d.ts.map +1 -1
  170. package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts +1 -1
  171. package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts.map +1 -1
  172. package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts +1 -1
  173. package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts.map +1 -1
  174. package/dist/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  175. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  176. package/dist/components/Prose/Prose.vue.d.ts +5 -14
  177. package/dist/components/Prose/Prose.vue.d.ts.map +1 -1
  178. package/dist/components/Radio/Radio.vue.d.ts +2 -6
  179. package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
  180. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +2 -6
  181. package/dist/components/Resizable/Resizable.vue.d.ts +16 -23
  182. package/dist/components/Resizable/Resizable.vue.d.ts.map +1 -1
  183. package/dist/components/Resizable/ResizableHandle.vue.d.ts +1 -3
  184. package/dist/components/Resizable/ResizablePanel.vue.d.ts +9 -14
  185. package/dist/components/Resizable/ResizablePanel.vue.d.ts.map +1 -1
  186. package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts.map +1 -1
  187. package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +6 -10
  188. package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +2 -6
  189. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +18 -21
  190. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
  191. package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts +15 -27
  192. package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts.map +1 -1
  193. package/dist/components/Scroller/Modules/DynamicScroller.vue.d.ts +18 -22
  194. package/dist/components/Scroller/Scroller.vue.d.ts +15 -772
  195. package/dist/components/Scroller/Scroller.vue.d.ts.map +1 -1
  196. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +5 -233
  197. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
  198. package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts +24 -23
  199. package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts.map +1 -1
  200. package/dist/components/SelectMenu/SelectMenu.vue.d.ts +2 -6
  201. package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
  202. package/dist/components/Slider/Slider.vue.d.ts +12 -23
  203. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  204. package/dist/components/SplitButton/SplitButton.vue.d.ts +17 -17
  205. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  206. package/dist/components/SplitButton/SplitButtonEnd.vue.d.ts +3 -3
  207. package/dist/components/SplitButton/SplitButtonStart.vue.d.ts +3 -3
  208. package/dist/components/Tab/Tab.vue.d.ts +3 -3
  209. package/dist/components/Tab/TabPanel.vue.d.ts +1 -1
  210. package/dist/components/Tab/TabPanel.vue.d.ts.map +1 -1
  211. package/dist/components/Text/Text.vue.d.ts +2 -6
  212. package/dist/components/Text/modules/SlideViewport.vue.d.ts +6 -19
  213. package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -1
  214. package/dist/components/TextList/TextList.vue.d.ts +6 -15
  215. package/dist/components/TextList/TextList.vue.d.ts.map +1 -1
  216. package/dist/components/TextList/TextListItem.vue.d.ts +8 -12
  217. package/dist/components/TextList/TextListItem.vue.d.ts.map +1 -1
  218. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +12 -16
  219. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
  220. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +12 -16
  221. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
  222. package/dist/components/Toast/Toast.vue.d.ts +48 -64
  223. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  224. package/dist/dialtone-vue.cjs +1 -1
  225. package/dist/dialtone-vue.js +17 -17
  226. package/dist/dist-3sDwkm0K.js +382 -0
  227. package/dist/dist-3sDwkm0K.js.map +1 -0
  228. package/dist/dist-DzjXnVZt.cjs +2 -0
  229. package/dist/dist-DzjXnVZt.cjs.map +1 -0
  230. package/dist/{floating-ui.dom-CuL5LTgX.js → floating-ui.dom-B8Mp8J0T.js} +1 -1
  231. package/dist/{floating-ui.dom-CuL5LTgX.js.map → floating-ui.dom-B8Mp8J0T.js.map} +1 -1
  232. package/dist/{floating-ui.dom-S7QIcAlj.cjs → floating-ui.dom-C23Y4xMx.cjs} +1 -1
  233. package/dist/{floating-ui.dom-S7QIcAlj.cjs.map → floating-ui.dom-C23Y4xMx.cjs.map} +1 -1
  234. package/dist/lib/avatar/avatar.cjs +1 -1
  235. package/dist/lib/avatar/avatar.js +3 -3
  236. package/dist/lib/avatar/index.d.ts +1 -0
  237. package/dist/lib/badge/badge.cjs +1 -1
  238. package/dist/lib/badge/badge.js +2 -2
  239. package/dist/lib/badge/index.d.ts +1 -0
  240. package/dist/lib/banner/banner.cjs +1 -1
  241. package/dist/lib/banner/banner.js +2 -2
  242. package/dist/lib/banner/index.d.ts +1 -0
  243. package/dist/lib/box/box.cjs +1 -1
  244. package/dist/lib/box/index.d.ts +1 -0
  245. package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
  246. package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
  247. package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  248. package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
  249. package/dist/lib/breadcrumbs/index.d.ts +1 -0
  250. package/dist/lib/button/button.cjs +1 -1
  251. package/dist/lib/button/button.js +2 -2
  252. package/dist/lib/button/index.d.ts +1 -0
  253. package/dist/lib/button-group/button-group.cjs +1 -1
  254. package/dist/lib/button-group/button-group.js +1 -1
  255. package/dist/lib/button-group/buttons-decorator.cjs +1 -1
  256. package/dist/lib/button-group/buttons-decorator.js +1 -1
  257. package/dist/lib/button-group/index.d.ts +1 -0
  258. package/dist/lib/card/card.cjs +1 -1
  259. package/dist/lib/card/card.js +2 -2
  260. package/dist/lib/card/index.d.ts +1 -0
  261. package/dist/lib/checkbox/checkbox.cjs +1 -1
  262. package/dist/lib/checkbox/checkbox.js +3 -3
  263. package/dist/lib/checkbox/index.d.ts +1 -0
  264. package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
  265. package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
  266. package/dist/lib/checkbox-group/index.d.ts +1 -0
  267. package/dist/lib/chip/chip.cjs +1 -1
  268. package/dist/lib/chip/chip.js +2 -2
  269. package/dist/lib/chip/index.d.ts +1 -0
  270. package/dist/lib/codeblock/codeblock.cjs +1 -1
  271. package/dist/lib/codeblock/codeblock.js +1 -1
  272. package/dist/lib/codeblock/index.d.ts +1 -0
  273. package/dist/lib/collapsible/collapsible-lazy-show.cjs +1 -1
  274. package/dist/lib/collapsible/collapsible-lazy-show.js +1 -1
  275. package/dist/lib/collapsible/collapsible.cjs +1 -1
  276. package/dist/lib/collapsible/collapsible.js +2 -2
  277. package/dist/lib/collapsible/index.d.ts +1 -0
  278. package/dist/lib/combobox/combobox-empty-list.cjs +1 -1
  279. package/dist/lib/combobox/combobox-empty-list.js +1 -1
  280. package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
  281. package/dist/lib/combobox/combobox-loading-list.js +1 -1
  282. package/dist/lib/combobox/combobox.cjs +1 -1
  283. package/dist/lib/combobox/combobox.js +1 -1
  284. package/dist/lib/combobox/index.cjs +1 -1
  285. package/dist/lib/combobox/index.d.ts +1 -0
  286. package/dist/lib/combobox/index.js +1 -1
  287. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  288. package/dist/lib/combobox-multi-select/combobox-multi-select.js +2 -2
  289. package/dist/lib/combobox-multi-select/index.d.ts +1 -0
  290. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  291. package/dist/lib/combobox-with-popover/combobox-with-popover.js +4 -4
  292. package/dist/lib/combobox-with-popover/index.d.ts +1 -0
  293. package/dist/lib/datepicker/datepicker.cjs +1 -1
  294. package/dist/lib/datepicker/datepicker.js +1 -1
  295. package/dist/lib/datepicker/index.cjs +1 -1
  296. package/dist/lib/datepicker/index.d.ts +1 -0
  297. package/dist/lib/datepicker/index.js +1 -1
  298. package/dist/lib/datepicker/utils.cjs +1 -1
  299. package/dist/lib/description-list/description-list.cjs +1 -1
  300. package/dist/lib/description-list/description-list.js +1 -1
  301. package/dist/lib/description-list/index.d.ts +1 -0
  302. package/dist/lib/dropdown/dropdown-list.cjs +1 -1
  303. package/dist/lib/dropdown/dropdown-list.js +2 -2
  304. package/dist/lib/dropdown/dropdown-separator.cjs +1 -1
  305. package/dist/lib/dropdown/dropdown-separator.js +1 -1
  306. package/dist/lib/dropdown/dropdown.cjs +1 -1
  307. package/dist/lib/dropdown/dropdown.js +3 -3
  308. package/dist/lib/dropdown/index.d.ts +1 -0
  309. package/dist/lib/emoji/emoji.cjs +1 -1
  310. package/dist/lib/emoji/emoji.js +1 -1
  311. package/dist/lib/emoji/index.d.ts +1 -0
  312. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  313. package/dist/lib/emoji-picker/emoji-picker.js +1 -1
  314. package/dist/lib/emoji-picker/index.cjs +1 -1
  315. package/dist/lib/emoji-picker/index.d.ts +1 -0
  316. package/dist/lib/emoji-picker/index.js +1 -1
  317. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  318. package/dist/lib/emoji-text-wrapper/index.d.ts +1 -0
  319. package/dist/lib/empty-state/empty-state.cjs +1 -1
  320. package/dist/lib/empty-state/empty-state.js +2 -2
  321. package/dist/lib/empty-state/index.d.ts +1 -0
  322. package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
  323. package/dist/lib/filter-pill/filter-pill-controlled.js +1 -1
  324. package/dist/lib/filter-pill/filter-pill.cjs +1 -1
  325. package/dist/lib/filter-pill/filter-pill.js +1 -1
  326. package/dist/lib/filter-pill/index.cjs +1 -1
  327. package/dist/lib/filter-pill/index.d.ts +1 -0
  328. package/dist/lib/filter-pill/index.js +1 -1
  329. package/dist/lib/focusgroup-directive/index.d.ts +1 -0
  330. package/dist/lib/focustrap-directive/index.d.ts +1 -0
  331. package/dist/lib/hovercard/hovercard.cjs +1 -1
  332. package/dist/lib/hovercard/hovercard.js +2 -2
  333. package/dist/lib/hovercard/index.d.ts +1 -0
  334. package/dist/lib/icon/icon-constants.cjs +1 -1
  335. package/dist/lib/icon/icon.cjs +1 -1
  336. package/dist/lib/icon/icon.js +1 -1
  337. package/dist/lib/icon/index.d.ts +1 -0
  338. package/dist/lib/illustration/illustration-constants.cjs +1 -1
  339. package/dist/lib/illustration/illustration.cjs +1 -1
  340. package/dist/lib/illustration/index.d.ts +1 -0
  341. package/dist/lib/image-viewer/image-viewer.cjs +1 -1
  342. package/dist/lib/image-viewer/image-viewer.js +2 -2
  343. package/dist/lib/image-viewer/index.d.ts +1 -0
  344. package/dist/lib/input/index.d.ts +1 -0
  345. package/dist/lib/input/input.cjs +1 -1
  346. package/dist/lib/input/input.js +3 -3
  347. package/dist/lib/input-group/index.d.ts +1 -0
  348. package/dist/lib/input-group/input-group.cjs +1 -1
  349. package/dist/lib/input-group/input-group.js +3 -3
  350. package/dist/lib/item-layout/index.d.ts +1 -0
  351. package/dist/lib/item-layout/item-layout.cjs +1 -1
  352. package/dist/lib/item-layout/item-layout.js +2 -2
  353. package/dist/lib/keyboard-shortcut/index.d.ts +1 -0
  354. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
  355. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +2 -2
  356. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
  357. package/dist/lib/kitchen-sink/kitchen-sink-view.js +2 -2
  358. package/dist/lib/lazy-show/index.d.ts +1 -0
  359. package/dist/lib/lazy-show/lazy-show.cjs +1 -1
  360. package/dist/lib/lazy-show/lazy-show.js +1 -1
  361. package/dist/lib/link/index.d.ts +1 -0
  362. package/dist/lib/link/link.cjs +1 -1
  363. package/dist/lib/link/link.js +1 -1
  364. package/dist/lib/list-item/index.d.ts +1 -0
  365. package/dist/lib/list-item/list-item.cjs +1 -1
  366. package/dist/lib/list-item/list-item.js +2 -2
  367. package/dist/lib/list-item-group/index.d.ts +1 -0
  368. package/dist/lib/list-item-group/list-item-group.cjs +1 -1
  369. package/dist/lib/list-item-group/list-item-group.js +2 -2
  370. package/dist/lib/loader/index.d.ts +1 -0
  371. package/dist/lib/loader/loader.cjs +1 -1
  372. package/dist/lib/loader/loader.js +1 -1
  373. package/dist/lib/modal/index.d.ts +1 -0
  374. package/dist/lib/modal/modal.cjs +1 -1
  375. package/dist/lib/modal/modal.js +3 -3
  376. package/dist/lib/mode-directive/index.d.ts +1 -0
  377. package/dist/lib/mode-directive/mode.js +1 -1
  378. package/dist/lib/mode-island/index.d.ts +1 -0
  379. package/dist/lib/mode-island/mode-island.cjs +1 -1
  380. package/dist/lib/mode-island/mode-island.js +1 -1
  381. package/dist/lib/motion-text/index.d.ts +1 -0
  382. package/dist/lib/motion-text/motion-text.cjs +1 -1
  383. package/dist/lib/motion-text/motion-text.js +1 -1
  384. package/dist/lib/notice/index.d.ts +1 -0
  385. package/dist/lib/notice/notice-action.cjs +1 -1
  386. package/dist/lib/notice/notice-action.js +1 -1
  387. package/dist/lib/notice/notice-content.cjs +1 -1
  388. package/dist/lib/notice/notice-content.js +3 -3
  389. package/dist/lib/notice/notice-icon.cjs +1 -1
  390. package/dist/lib/notice/notice-icon.js +2 -2
  391. package/dist/lib/notice/notice.cjs +1 -1
  392. package/dist/lib/notice/notice.js +1 -1
  393. package/dist/lib/pagination/index.d.ts +1 -0
  394. package/dist/lib/pagination/pagination.cjs +1 -1
  395. package/dist/lib/pagination/pagination.js +1 -1
  396. package/dist/lib/popover/index.d.ts +1 -0
  397. package/dist/lib/popover/popover-header-footer.cjs +1 -1
  398. package/dist/lib/popover/popover-header-footer.js +2 -2
  399. package/dist/lib/popover/popover.cjs +1 -1
  400. package/dist/lib/popover/popover.js +2 -2
  401. package/dist/lib/popover/tippy-utils.cjs +1 -1
  402. package/dist/lib/presence/index.cjs +1 -1
  403. package/dist/lib/presence/index.d.ts +1 -0
  404. package/dist/lib/presence/index.js +1 -1
  405. package/dist/lib/presence/presence.cjs +1 -1
  406. package/dist/lib/presence/presence.js +1 -1
  407. package/dist/lib/progress-bar/index.cjs +1 -1
  408. package/dist/lib/progress-bar/index.d.ts +1 -0
  409. package/dist/lib/progress-bar/index.js +1 -1
  410. package/dist/lib/progress-bar/progress-bar.cjs +1 -1
  411. package/dist/lib/progress-bar/progress-bar.js +1 -1
  412. package/dist/lib/progress-circle/index.d.ts +1 -0
  413. package/dist/lib/progress-circle/progress-circle.cjs +1 -1
  414. package/dist/lib/progress-circle/progress-circle.js +1 -1
  415. package/dist/lib/prose/index.d.ts +1 -0
  416. package/dist/lib/prose/prose.cjs +1 -1
  417. package/dist/lib/radio/index.d.ts +1 -0
  418. package/dist/lib/radio/radio.cjs +1 -1
  419. package/dist/lib/radio/radio.js +3 -3
  420. package/dist/lib/radio-group/index.d.ts +1 -0
  421. package/dist/lib/radio-group/radios-decorator.cjs +1 -1
  422. package/dist/lib/radio-group/radios-decorator.js +1 -1
  423. package/dist/lib/resizable/index.cjs +1 -1
  424. package/dist/lib/resizable/index.d.ts +1 -0
  425. package/dist/lib/resizable/index.js +3 -3
  426. package/dist/lib/resizable/resizable-handle.cjs +1 -1
  427. package/dist/lib/resizable/resizable-handle.js +1 -1
  428. package/dist/lib/resizable/resizable-panel.cjs +1 -1
  429. package/dist/lib/resizable/resizable-panel.js +1 -1
  430. package/dist/lib/resizable/resizable.cjs +1 -1
  431. package/dist/lib/resizable/resizable.js +1 -1
  432. package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
  433. package/dist/lib/rich-text-editor/force-linkify.js +1 -1
  434. package/dist/lib/rich-text-editor/index.cjs +1 -1
  435. package/dist/lib/rich-text-editor/index.d.ts +1 -0
  436. package/dist/lib/rich-text-editor/index.js +1 -1
  437. package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
  438. package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
  439. package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  440. package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
  441. package/dist/lib/root-layout/index.d.ts +1 -0
  442. package/dist/lib/root-layout/root-layout.cjs +1 -1
  443. package/dist/lib/root-layout/root-layout.js +1 -1
  444. package/dist/lib/scrollbar-directive/index.d.ts +1 -0
  445. package/dist/lib/scrollbar-directive/scrollbar.cjs +1 -1
  446. package/dist/lib/scroller/index.cjs +1 -1
  447. package/dist/lib/scroller/index.d.ts +1 -0
  448. package/dist/lib/scroller/index.js +1 -1
  449. package/dist/lib/scroller/scroller.cjs +1 -1
  450. package/dist/lib/scroller/scroller.js +1 -1
  451. package/dist/lib/segmented-control/index.d.ts +1 -0
  452. package/dist/lib/segmented-control/segmented-control-item.cjs +1 -1
  453. package/dist/lib/segmented-control/segmented-control.cjs +1 -1
  454. package/dist/lib/segmented-control/segmented-control.js +1 -1
  455. package/dist/lib/select-menu/index.d.ts +1 -0
  456. package/dist/lib/select-menu/select-menu.cjs +1 -1
  457. package/dist/lib/select-menu/select-menu.js +3 -3
  458. package/dist/lib/skeleton/index.d.ts +1 -0
  459. package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
  460. package/dist/lib/skeleton/skeleton-list-item.js +1 -1
  461. package/dist/lib/skeleton/skeleton-paragraph.cjs +1 -1
  462. package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
  463. package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
  464. package/dist/lib/skeleton/skeleton-shape.js +1 -1
  465. package/dist/lib/skeleton/skeleton-text.cjs +1 -1
  466. package/dist/lib/skeleton/skeleton-text.js +1 -1
  467. package/dist/lib/skeleton/skeleton.cjs +1 -1
  468. package/dist/lib/skeleton/skeleton.js +1 -1
  469. package/dist/lib/slider/index.cjs +1 -1
  470. package/dist/lib/slider/index.d.ts +1 -0
  471. package/dist/lib/slider/index.js +1 -1
  472. package/dist/lib/slider/slider.cjs +1 -1
  473. package/dist/lib/slider/slider.js +1 -1
  474. package/dist/lib/split-button/index.d.ts +1 -0
  475. package/dist/lib/split-button/split-button-end.cjs +1 -1
  476. package/dist/lib/split-button/split-button-end.js +2 -2
  477. package/dist/lib/split-button/split-button-start.cjs +1 -1
  478. package/dist/lib/split-button/split-button-start.js +1 -1
  479. package/dist/lib/split-button/split-button.cjs +1 -1
  480. package/dist/lib/split-button/split-button.js +2 -2
  481. package/dist/lib/stack/index.d.ts +1 -0
  482. package/dist/lib/stack/stack.cjs +1 -1
  483. package/dist/lib/stack/stack.js +1 -1
  484. package/dist/lib/tab/index.d.ts +1 -0
  485. package/dist/lib/tab/tab-group.cjs +1 -1
  486. package/dist/lib/tab/tab-group.js +1 -1
  487. package/dist/lib/tab/tab-panel.cjs +1 -1
  488. package/dist/lib/tab/tab-panel.js +2 -2
  489. package/dist/lib/tab/tab.cjs +1 -1
  490. package/dist/lib/tab/tab.js +1 -1
  491. package/dist/lib/text/index.cjs +1 -1
  492. package/dist/lib/text/index.d.ts +1 -0
  493. package/dist/lib/text/index.js +1 -1
  494. package/dist/lib/text/text.cjs +1 -1
  495. package/dist/lib/text/text.js +1 -1
  496. package/dist/lib/text-list/index.cjs +1 -1
  497. package/dist/lib/text-list/index.d.ts +1 -0
  498. package/dist/lib/text-list/index.js +2 -2
  499. package/dist/lib/text-list/text-list-item.cjs +1 -1
  500. package/dist/lib/text-list/text-list-item.js +1 -1
  501. package/dist/lib/text-list/text-list.cjs +1 -1
  502. package/dist/lib/text-list/text-list.js +1 -1
  503. package/dist/lib/toast/index.cjs +1 -1
  504. package/dist/lib/toast/index.d.ts +1 -0
  505. package/dist/lib/toast/index.js +1 -1
  506. package/dist/lib/toast/toast.cjs +1 -1
  507. package/dist/lib/toast/toast.js +1 -1
  508. package/dist/lib/toggle/index.d.ts +1 -0
  509. package/dist/lib/toggle/toggle.cjs +1 -1
  510. package/dist/lib/toggle/toggle.js +2 -2
  511. package/dist/lib/tooltip/index.d.ts +1 -0
  512. package/dist/lib/tooltip/tooltip.cjs +1 -1
  513. package/dist/lib/tooltip/tooltip.js +2 -2
  514. package/dist/lib/tooltip-directive/index.d.ts +1 -0
  515. package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
  516. package/dist/lib/tooltip-directive/tooltip.js +2 -2
  517. package/dist/lib/validation-messages/index.d.ts +1 -0
  518. package/dist/lib/validation-messages/validation-messages.cjs +1 -1
  519. package/dist/lib/validation-messages/validation-messages.js +2 -2
  520. package/dist/localization/index.cjs +1 -1
  521. package/dist/localization/index.cjs.map +1 -1
  522. package/dist/localization/index.d.ts +25 -0
  523. package/dist/localization/index.d.ts.map +1 -0
  524. package/dist/localization/index.js.map +1 -1
  525. package/dist/localization/sync-icons.d.ts +3 -0
  526. package/dist/localization/sync-icons.d.ts.map +1 -0
  527. package/dist/{mode_constants-B8_1b5T8.js → mode_constants-CC73P7d-.js} +1 -1
  528. package/dist/{mode_constants-B8_1b5T8.js.map → mode_constants-CC73P7d-.js.map} +1 -1
  529. package/dist/node_modules/@tiptap/vue-3.cjs +1 -1
  530. package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
  531. package/dist/node_modules/@tiptap/vue-3.js +2 -363
  532. package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
  533. package/dist/shared/sr_only_close_button.cjs +1 -1
  534. package/dist/shared/sr_only_close_button.js +1 -1
  535. package/dist/{utils-BL_SrwnF.js → utils-CXaaZqVu.js} +1 -1
  536. package/dist/{utils-BL_SrwnF.js.map → utils-CXaaZqVu.js.map} +1 -1
  537. package/dist/{utils-GofHWJKi.cjs → utils-Db-kV6Sr.cjs} +2 -2
  538. package/dist/{utils-GofHWJKi.cjs.map → utils-Db-kV6Sr.cjs.map} +1 -1
  539. package/package.json +7 -6
  540. package/dist/RichTextEditor-D6kCBnLJ.cjs +0 -11
  541. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  542. /package/dist/{_plugin-vue_export-helper-BecorN_g.js → _plugin-vue_export-helper-B52Kst-M.js} +0 -0
@@ -1,367 +1,6 @@
1
- import { customRef as e, defineComponent as t, getCurrentInstance as n, h as r, markRaw as i, nextTick as a, onBeforeUnmount as o, onMounted as s, provide as c, reactive as l, ref as u, render as d, shallowRef as f, toRaw as p, unref as m, watchEffect as h } from "vue";
2
- import { Editor as g, MarkView as _, NodeView as v } from "@tiptap/core";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../dist-3sDwkm0K.js";
3
2
  export * from "@tiptap/core";
4
- //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=65d98f737afae097542c692b176a81069e1b7b8d577d1d7e222a944_23bfa7b5fde667bfc96216774c3ce084/node_modules/@tiptap/vue-3/dist/index.js
5
- function y(t) {
6
- return e((e, n) => ({
7
- get() {
8
- return e(), t;
9
- },
10
- set(e) {
11
- t = e, requestAnimationFrame(() => {
12
- requestAnimationFrame(() => {
13
- n();
14
- });
15
- });
16
- }
17
- }));
18
- }
19
- var b = class extends g {
20
- constructor(e = {}) {
21
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = y(this.view.state), this.reactiveExtensionStorage = y(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
22
- this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
23
- }), i(this);
24
- }
25
- get state() {
26
- return this.reactiveState ? this.reactiveState.value : this.view.state;
27
- }
28
- get storage() {
29
- return this.reactiveExtensionStorage ? this.reactiveExtensionStorage.value : super.storage;
30
- }
31
- registerPlugin(e, t) {
32
- let n = super.registerPlugin(e, t);
33
- return this.reactiveState && (this.reactiveState.value = n), n;
34
- }
35
- unregisterPlugin(e) {
36
- let t = super.unregisterPlugin(e);
37
- return this.reactiveState && t && (this.reactiveState.value = t), t;
38
- }
39
- }, x = t({
40
- name: "EditorContent",
41
- props: { editor: {
42
- default: null,
43
- type: Object
44
- } },
45
- setup(e) {
46
- let t = u(), r = n();
47
- return h(() => {
48
- let n = e.editor;
49
- n && n.options.element && t.value && a(() => {
50
- if (!t.value || !n.view.dom?.parentNode) return;
51
- let e = m(t.value);
52
- t.value.append(...n.view.dom.parentNode.childNodes), n.contentComponent = r.ctx._, r && (n.appContext = {
53
- ...r.appContext,
54
- provides: r.provides
55
- }), n.setOptions({ element: e }), n.createNodeViews();
56
- });
57
- }), o(() => {
58
- let t = e.editor;
59
- t && (t.contentComponent = null, t.appContext = null);
60
- }), { rootEl: t };
61
- },
62
- render() {
63
- return r("div", { ref: (e) => {
64
- this.rootEl = e;
65
- } });
66
- }
67
- }), S = t({
68
- name: "NodeViewContent",
69
- props: { as: {
70
- type: String,
71
- default: "div"
72
- } },
73
- render() {
74
- return r(this.as, {
75
- style: { whiteSpace: "pre-wrap" },
76
- "data-node-view-content": ""
77
- });
78
- }
79
- }), C = t({
80
- name: "NodeViewWrapper",
81
- props: { as: {
82
- type: String,
83
- default: "div"
84
- } },
85
- inject: ["onDragStart", "decorationClasses"],
86
- render() {
87
- var e;
88
- return r(this.as, {
89
- class: this.decorationClasses,
90
- style: { whiteSpace: "normal" },
91
- "data-node-view-wrapper": "",
92
- onDragstart: this.onDragStart
93
- }, (e = this.$slots).default?.call(e));
94
- }
95
- }), w = (e = {}) => {
96
- let t = f();
97
- return s(() => {
98
- t.value = new b(e);
99
- }), o(() => {
100
- var e, n;
101
- let r = t.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
102
- (e = r?.parentNode) == null || e.replaceChild(i, r), (n = t.value) == null || n.destroy();
103
- }), t;
104
- }, T = class {
105
- constructor(e, { props: t = {}, editor: n }) {
106
- this.destroyed = !1, this.editor = n, this.component = i(e), this.el = document.createElement("div"), this.props = l(t), this.renderedComponent = this.renderComponent();
107
- }
108
- get element() {
109
- return this.renderedComponent.el;
110
- }
111
- get ref() {
112
- return this.renderedComponent.vNode?.component?.exposed ? this.renderedComponent.vNode.component.exposed : this.renderedComponent.vNode?.component?.proxy;
113
- }
114
- renderComponent() {
115
- if (this.destroyed) return this.renderedComponent;
116
- let e = r(this.component, this.props);
117
- return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && d(e, this.el), {
118
- vNode: e,
119
- destroy: () => {
120
- this.el && d(null, this.el), this.el = null, e = null;
121
- },
122
- el: this.el ? this.el.firstElementChild : null
123
- };
124
- }
125
- updateProps(e = {}) {
126
- this.destroyed || (Object.entries(e).forEach(([e, t]) => {
127
- this.props[e] = t;
128
- }), this.renderComponent());
129
- }
130
- destroy() {
131
- this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
132
- }
133
- }, E = {
134
- editor: {
135
- type: Object,
136
- required: !0
137
- },
138
- mark: {
139
- type: Object,
140
- required: !0
141
- },
142
- extension: {
143
- type: Object,
144
- required: !0
145
- },
146
- inline: {
147
- type: Boolean,
148
- required: !0
149
- },
150
- view: {
151
- type: Object,
152
- required: !0
153
- },
154
- updateAttributes: {
155
- type: Function,
156
- required: !0
157
- },
158
- HTMLAttributes: {
159
- type: Object,
160
- required: !0
161
- }
162
- }, D = t({
163
- name: "MarkViewContent",
164
- props: { as: {
165
- type: String,
166
- default: "span"
167
- } },
168
- render() {
169
- return r(this.as, {
170
- style: { whiteSpace: "inherit" },
171
- "data-mark-view-content": ""
172
- });
173
- }
174
- }), O = class extends _ {
175
- constructor(e, n, r) {
176
- super(e, n, r);
177
- let i = {
178
- ...n,
179
- updateAttributes: this.updateAttributes.bind(this)
180
- };
181
- this.renderer = new T(t({
182
- extends: { ...e },
183
- props: Object.keys(i),
184
- template: this.component.template,
185
- setup: (t) => e.setup?.call(e, t, { expose: () => void 0 }),
186
- __scopeId: e.__scopeId,
187
- __cssModules: e.__cssModules,
188
- __name: e.__name,
189
- __file: e.__file
190
- }), {
191
- editor: this.editor,
192
- props: i
193
- });
194
- }
195
- get dom() {
196
- return this.renderer.element;
197
- }
198
- get contentDOM() {
199
- return this.dom.querySelector("[data-mark-view-content]");
200
- }
201
- updateAttributes(e) {
202
- let t = p(this.mark);
203
- super.updateAttributes(e, t);
204
- }
205
- destroy() {
206
- this.renderer.destroy();
207
- }
208
- };
209
- function k(e, t = {}) {
210
- return (n) => n.editor.contentComponent ? new O(e, n, t) : {};
211
- }
212
- var A = {
213
- editor: {
214
- type: Object,
215
- required: !0
216
- },
217
- node: {
218
- type: Object,
219
- required: !0
220
- },
221
- decorations: {
222
- type: Object,
223
- required: !0
224
- },
225
- selected: {
226
- type: Boolean,
227
- required: !0
228
- },
229
- extension: {
230
- type: Object,
231
- required: !0
232
- },
233
- getPos: {
234
- type: Function,
235
- required: !0
236
- },
237
- updateAttributes: {
238
- type: Function,
239
- required: !0
240
- },
241
- deleteNode: {
242
- type: Function,
243
- required: !0
244
- },
245
- view: {
246
- type: Object,
247
- required: !0
248
- },
249
- innerDecorations: {
250
- type: Object,
251
- required: !0
252
- },
253
- HTMLAttributes: {
254
- type: Object,
255
- required: !0
256
- }
257
- }, j = class extends v {
258
- constructor() {
259
- super(...arguments), this.cachedExtensionWithSyncedStorage = null;
260
- }
261
- get extensionWithSyncedStorage() {
262
- if (!this.cachedExtensionWithSyncedStorage) {
263
- let e = this.editor, t = this.extension;
264
- this.cachedExtensionWithSyncedStorage = new Proxy(t, { get(n, r, i) {
265
- return r === "storage" ? e.storage[t.name] ?? {} : Reflect.get(n, r, i);
266
- } });
267
- }
268
- return this.cachedExtensionWithSyncedStorage;
269
- }
270
- mount() {
271
- let e = {
272
- editor: this.editor,
273
- node: this.node,
274
- decorations: this.decorations,
275
- innerDecorations: this.innerDecorations,
276
- view: this.view,
277
- selected: !1,
278
- extension: this.extensionWithSyncedStorage,
279
- HTMLAttributes: this.HTMLAttributes,
280
- getPos: () => this.getPos(),
281
- updateAttributes: (e = {}) => this.updateAttributes(e),
282
- deleteNode: () => this.deleteNode()
283
- }, n = this.onDragStart.bind(this);
284
- this.decorationClasses = u(this.getDecorationClasses());
285
- let r = t({
286
- extends: { ...this.component },
287
- props: Object.keys(e),
288
- template: this.component.template,
289
- setup: (e) => {
290
- var t;
291
- return c("onDragStart", n), c("decorationClasses", this.decorationClasses), (t = this.component).setup?.call(t, e, { expose: () => void 0 });
292
- },
293
- __scopeId: this.component.__scopeId,
294
- __cssModules: this.component.__cssModules,
295
- __name: this.component.__name,
296
- __file: this.component.__file
297
- });
298
- this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.renderer = new T(r, {
299
- editor: this.editor,
300
- props: e
301
- });
302
- }
303
- get dom() {
304
- if (!this.renderer.element || !this.renderer.element.hasAttribute("data-node-view-wrapper")) throw Error("Please use the NodeViewWrapper component for your node view.");
305
- return this.renderer.element;
306
- }
307
- get contentDOM() {
308
- return this.node.isLeaf ? null : this.dom.querySelector("[data-node-view-content]");
309
- }
310
- handleSelectionUpdate() {
311
- let { from: e, to: t } = this.editor.state.selection, n = this.getPos();
312
- if (typeof n == "number") if (e <= n && t >= n + this.node.nodeSize) {
313
- if (this.renderer.props.selected) return;
314
- this.selectNode();
315
- } else {
316
- if (!this.renderer.props.selected) return;
317
- this.deselectNode();
318
- }
319
- }
320
- update(e, t, n) {
321
- let r = (e) => {
322
- this.decorationClasses.value = this.getDecorationClasses(), this.renderer.updateProps(e);
323
- };
324
- if (typeof this.options.update == "function") {
325
- let i = this.node, a = this.decorations, o = this.innerDecorations;
326
- return this.node = e, this.decorations = t, this.innerDecorations = n, this.options.update({
327
- oldNode: i,
328
- oldDecorations: a,
329
- newNode: e,
330
- newDecorations: t,
331
- oldInnerDecorations: o,
332
- innerDecorations: n,
333
- updateProps: () => r({
334
- node: e,
335
- decorations: t,
336
- innerDecorations: n,
337
- extension: this.extensionWithSyncedStorage
338
- })
339
- });
340
- }
341
- return e.type === this.node.type ? e === this.node && this.decorations === t && this.innerDecorations === n ? !0 : (this.node = e, this.decorations = t, this.innerDecorations = n, r({
342
- node: e,
343
- decorations: t,
344
- innerDecorations: n,
345
- extension: this.extensionWithSyncedStorage
346
- }), !0) : !1;
347
- }
348
- selectNode() {
349
- this.renderer.updateProps({ selected: !0 }), this.renderer.element && this.renderer.element.classList.add("ProseMirror-selectednode");
350
- }
351
- deselectNode() {
352
- this.renderer.updateProps({ selected: !1 }), this.renderer.element && this.renderer.element.classList.remove("ProseMirror-selectednode");
353
- }
354
- getDecorationClasses() {
355
- return this.decorations.flatMap((e) => e.type.attrs.class).join(" ");
356
- }
357
- destroy() {
358
- this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate);
359
- }
360
- };
361
- function M(e, t) {
362
- return (n) => n.editor.contentComponent ? new j(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
363
- }
364
3
  //#endregion
365
- export { b as Editor, x as EditorContent, D as MarkViewContent, S as NodeViewContent, C as NodeViewWrapper, O as VueMarkView, k as VueMarkViewRenderer, M as VueNodeViewRenderer, T as VueRenderer, E as markViewProps, A as nodeViewProps, w as useEditor };
4
+ export { u as Editor, o as EditorContent, c as MarkViewContent, i as NodeViewContent, e as NodeViewWrapper, s as VueMarkView, l as VueMarkViewRenderer, t as VueNodeViewRenderer, a as VueRenderer, d as markViewProps, n as nodeViewProps, r as useEditor };
366
5
 
367
6
  //# sourceMappingURL=vue-3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vue-3.js","names":["CoreEditor","defineComponent2","h2","defineComponent3","h3","markRaw2","h4","defineComponent4","h5","ref2","defineComponent5"],"sources":["../../../../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=65d98f737afae097542c692b176a81069e1b7b8d577d1d7e222a944_23bfa7b5fde667bfc96216774c3ce084/node_modules/@tiptap/vue-3/dist/index.js"],"sourcesContent":["// src/Editor.ts\nimport { Editor as CoreEditor } from \"@tiptap/core\";\nimport { customRef, markRaw } from \"vue\";\nfunction useDebouncedRef(value) {\n return customRef((track, trigger) => {\n return {\n get() {\n track();\n return value;\n },\n set(newValue) {\n value = newValue;\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n trigger();\n });\n });\n }\n };\n });\n}\nvar Editor = class extends CoreEditor {\n constructor(options = {}) {\n super(options);\n this.contentComponent = null;\n this.appContext = null;\n this.reactiveState = useDebouncedRef(this.view.state);\n this.reactiveExtensionStorage = useDebouncedRef(this.extensionStorage);\n this.on(\"beforeTransaction\", ({ nextState }) => {\n this.reactiveState.value = nextState;\n this.reactiveExtensionStorage.value = this.extensionStorage;\n });\n return markRaw(this);\n }\n get state() {\n return this.reactiveState ? this.reactiveState.value : this.view.state;\n }\n get storage() {\n return this.reactiveExtensionStorage ? this.reactiveExtensionStorage.value : super.storage;\n }\n /**\n * Register a ProseMirror plugin.\n */\n registerPlugin(plugin, handlePlugins) {\n const nextState = super.registerPlugin(plugin, handlePlugins);\n if (this.reactiveState) {\n this.reactiveState.value = nextState;\n }\n return nextState;\n }\n /**\n * Unregister a ProseMirror plugin.\n */\n unregisterPlugin(nameOrPluginKey) {\n const nextState = super.unregisterPlugin(nameOrPluginKey);\n if (this.reactiveState && nextState) {\n this.reactiveState.value = nextState;\n }\n return nextState;\n }\n};\n\n// src/EditorContent.ts\nimport { defineComponent, getCurrentInstance, h, nextTick, onBeforeUnmount, ref, unref, watchEffect } from \"vue\";\nvar EditorContent = defineComponent({\n name: \"EditorContent\",\n props: {\n editor: {\n default: null,\n type: Object\n }\n },\n setup(props) {\n const rootEl = ref();\n const instance = getCurrentInstance();\n watchEffect(() => {\n const editor = props.editor;\n if (editor && editor.options.element && rootEl.value) {\n nextTick(() => {\n var _a;\n if (!rootEl.value || !((_a = editor.view.dom) == null ? void 0 : _a.parentNode)) {\n return;\n }\n const element = unref(rootEl.value);\n rootEl.value.append(...editor.view.dom.parentNode.childNodes);\n editor.contentComponent = instance.ctx._;\n if (instance) {\n editor.appContext = {\n ...instance.appContext,\n // Vue internally uses prototype chain to forward/shadow injects across the entire component chain\n // so don't use object spread operator or 'Object.assign' and just set `provides` as is on editor's appContext\n // @ts-expect-error forward instance's 'provides' into appContext\n provides: instance.provides\n };\n }\n editor.setOptions({\n element\n });\n editor.createNodeViews();\n });\n }\n });\n onBeforeUnmount(() => {\n const editor = props.editor;\n if (!editor) {\n return;\n }\n editor.contentComponent = null;\n editor.appContext = null;\n });\n return { rootEl };\n },\n render() {\n return h(\"div\", {\n ref: (el) => {\n this.rootEl = el;\n }\n });\n }\n});\n\n// src/NodeViewContent.ts\nimport { defineComponent as defineComponent2, h as h2 } from \"vue\";\nvar NodeViewContent = defineComponent2({\n name: \"NodeViewContent\",\n props: {\n as: {\n type: String,\n default: \"div\"\n }\n },\n render() {\n return h2(this.as, {\n style: {\n whiteSpace: \"pre-wrap\"\n },\n \"data-node-view-content\": \"\"\n });\n }\n});\n\n// src/NodeViewWrapper.ts\nimport { defineComponent as defineComponent3, h as h3 } from \"vue\";\nvar NodeViewWrapper = defineComponent3({\n name: \"NodeViewWrapper\",\n props: {\n as: {\n type: String,\n default: \"div\"\n }\n },\n inject: [\"onDragStart\", \"decorationClasses\"],\n render() {\n var _a, _b;\n return h3(\n this.as,\n {\n // @ts-ignore\n class: this.decorationClasses,\n style: {\n whiteSpace: \"normal\"\n },\n \"data-node-view-wrapper\": \"\",\n // @ts-ignore (https://github.com/vuejs/vue-next/issues/3031)\n onDragstart: this.onDragStart\n },\n (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)\n );\n }\n});\n\n// src/useEditor.ts\nimport { onBeforeUnmount as onBeforeUnmount2, onMounted, shallowRef } from \"vue\";\nvar useEditor = (options = {}) => {\n const editor = shallowRef();\n onMounted(() => {\n editor.value = new Editor(options);\n });\n onBeforeUnmount2(() => {\n var _a, _b, _c, _d;\n const nodes = (_b = (_a = editor.value) == null ? void 0 : _a.view.dom) == null ? void 0 : _b.parentNode;\n const newEl = nodes == null ? void 0 : nodes.cloneNode(true);\n (_c = nodes == null ? void 0 : nodes.parentNode) == null ? void 0 : _c.replaceChild(newEl, nodes);\n (_d = editor.value) == null ? void 0 : _d.destroy();\n });\n return editor;\n};\n\n// src/VueMarkViewRenderer.ts\nimport { MarkView } from \"@tiptap/core\";\nimport { defineComponent as defineComponent4, h as h5, toRaw } from \"vue\";\n\n// src/VueRenderer.ts\nimport { h as h4, markRaw as markRaw2, reactive, render } from \"vue\";\nvar VueRenderer = class {\n constructor(component, { props = {}, editor }) {\n /**\n * Flag to track if the renderer has been destroyed, preventing queued or asynchronous renders from executing after teardown.\n */\n this.destroyed = false;\n this.editor = editor;\n this.component = markRaw2(component);\n this.el = document.createElement(\"div\");\n this.props = reactive(props);\n this.renderedComponent = this.renderComponent();\n }\n get element() {\n return this.renderedComponent.el;\n }\n get ref() {\n var _a, _b, _c, _d;\n if ((_b = (_a = this.renderedComponent.vNode) == null ? void 0 : _a.component) == null ? void 0 : _b.exposed) {\n return this.renderedComponent.vNode.component.exposed;\n }\n return (_d = (_c = this.renderedComponent.vNode) == null ? void 0 : _c.component) == null ? void 0 : _d.proxy;\n }\n renderComponent() {\n if (this.destroyed) {\n return this.renderedComponent;\n }\n let vNode = h4(this.component, this.props);\n if (this.editor.appContext) {\n vNode.appContext = this.editor.appContext;\n }\n if (typeof document !== \"undefined\" && this.el) {\n render(vNode, this.el);\n }\n const destroy = () => {\n if (this.el) {\n render(null, this.el);\n }\n this.el = null;\n vNode = null;\n };\n return { vNode, destroy, el: this.el ? this.el.firstElementChild : null };\n }\n updateProps(props = {}) {\n if (this.destroyed) {\n return;\n }\n Object.entries(props).forEach(([key, value]) => {\n this.props[key] = value;\n });\n this.renderComponent();\n }\n destroy() {\n if (this.destroyed) {\n return;\n }\n this.destroyed = true;\n this.renderedComponent.destroy();\n }\n};\n\n// src/VueMarkViewRenderer.ts\nvar markViewProps = {\n editor: {\n type: Object,\n required: true\n },\n mark: {\n type: Object,\n required: true\n },\n extension: {\n type: Object,\n required: true\n },\n inline: {\n type: Boolean,\n required: true\n },\n view: {\n type: Object,\n required: true\n },\n updateAttributes: {\n type: Function,\n required: true\n },\n HTMLAttributes: {\n type: Object,\n required: true\n }\n};\nvar MarkViewContent = defineComponent4({\n name: \"MarkViewContent\",\n props: {\n as: {\n type: String,\n default: \"span\"\n }\n },\n render() {\n return h5(this.as, {\n style: {\n whiteSpace: \"inherit\"\n },\n \"data-mark-view-content\": \"\"\n });\n }\n});\nvar VueMarkView = class extends MarkView {\n constructor(component, props, options) {\n super(component, props, options);\n const componentProps = { ...props, updateAttributes: this.updateAttributes.bind(this) };\n const extendedComponent = defineComponent4({\n extends: { ...component },\n props: Object.keys(componentProps),\n template: this.component.template,\n setup: (reactiveProps) => {\n var _a;\n return (_a = component.setup) == null ? void 0 : _a.call(component, reactiveProps, {\n expose: () => void 0\n });\n },\n // Add support for scoped styles\n __scopeId: component.__scopeId,\n __cssModules: component.__cssModules,\n __name: component.__name,\n __file: component.__file\n });\n this.renderer = new VueRenderer(extendedComponent, {\n editor: this.editor,\n props: componentProps\n });\n }\n get dom() {\n return this.renderer.element;\n }\n get contentDOM() {\n return this.dom.querySelector(\"[data-mark-view-content]\");\n }\n updateAttributes(attrs) {\n const unproxiedMark = toRaw(this.mark);\n super.updateAttributes(attrs, unproxiedMark);\n }\n destroy() {\n this.renderer.destroy();\n }\n};\nfunction VueMarkViewRenderer(component, options = {}) {\n return (props) => {\n if (!props.editor.contentComponent) {\n return {};\n }\n return new VueMarkView(component, props, options);\n };\n}\n\n// src/VueNodeViewRenderer.ts\nimport { NodeView } from \"@tiptap/core\";\nimport { defineComponent as defineComponent5, provide, ref as ref2 } from \"vue\";\nvar nodeViewProps = {\n editor: {\n type: Object,\n required: true\n },\n node: {\n type: Object,\n required: true\n },\n decorations: {\n type: Object,\n required: true\n },\n selected: {\n type: Boolean,\n required: true\n },\n extension: {\n type: Object,\n required: true\n },\n getPos: {\n type: Function,\n required: true\n },\n updateAttributes: {\n type: Function,\n required: true\n },\n deleteNode: {\n type: Function,\n required: true\n },\n view: {\n type: Object,\n required: true\n },\n innerDecorations: {\n type: Object,\n required: true\n },\n HTMLAttributes: {\n type: Object,\n required: true\n }\n};\nvar VueNodeView = class extends NodeView {\n constructor() {\n super(...arguments);\n this.cachedExtensionWithSyncedStorage = null;\n }\n /**\n * Returns a proxy of the extension that redirects storage access to the editor's mutable storage.\n * This preserves the original prototype chain (instanceof checks, methods like configure/extend work).\n * Cached to avoid proxy creation on every update.\n */\n get extensionWithSyncedStorage() {\n if (!this.cachedExtensionWithSyncedStorage) {\n const editor = this.editor;\n const extension = this.extension;\n this.cachedExtensionWithSyncedStorage = new Proxy(extension, {\n get(target, prop, receiver) {\n var _a;\n if (prop === \"storage\") {\n return (_a = editor.storage[extension.name]) != null ? _a : {};\n }\n return Reflect.get(target, prop, receiver);\n }\n });\n }\n return this.cachedExtensionWithSyncedStorage;\n }\n mount() {\n const props = {\n editor: this.editor,\n node: this.node,\n decorations: this.decorations,\n innerDecorations: this.innerDecorations,\n view: this.view,\n selected: false,\n extension: this.extensionWithSyncedStorage,\n HTMLAttributes: this.HTMLAttributes,\n getPos: () => this.getPos(),\n updateAttributes: (attributes = {}) => this.updateAttributes(attributes),\n deleteNode: () => this.deleteNode()\n };\n const onDragStart = this.onDragStart.bind(this);\n this.decorationClasses = ref2(this.getDecorationClasses());\n const extendedComponent = defineComponent5({\n extends: { ...this.component },\n props: Object.keys(props),\n template: this.component.template,\n setup: (reactiveProps) => {\n var _a, _b;\n provide(\"onDragStart\", onDragStart);\n provide(\"decorationClasses\", this.decorationClasses);\n return (_b = (_a = this.component).setup) == null ? void 0 : _b.call(_a, reactiveProps, {\n expose: () => void 0\n });\n },\n // add support for scoped styles\n // @ts-ignore\n // eslint-disable-next-line\n __scopeId: this.component.__scopeId,\n // add support for CSS Modules\n // @ts-ignore\n // eslint-disable-next-line\n __cssModules: this.component.__cssModules,\n // add support for vue devtools\n // @ts-ignore\n // eslint-disable-next-line\n __name: this.component.__name,\n // @ts-ignore\n // eslint-disable-next-line\n __file: this.component.__file\n });\n this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this);\n this.editor.on(\"selectionUpdate\", this.handleSelectionUpdate);\n this.renderer = new VueRenderer(extendedComponent, {\n editor: this.editor,\n props\n });\n }\n /**\n * Return the DOM element.\n * This is the element that will be used to display the node view.\n */\n get dom() {\n if (!this.renderer.element || !this.renderer.element.hasAttribute(\"data-node-view-wrapper\")) {\n throw Error(\"Please use the NodeViewWrapper component for your node view.\");\n }\n return this.renderer.element;\n }\n /**\n * Return the content DOM element.\n * This is the element that will be used to display the rich-text content of the node.\n */\n get contentDOM() {\n if (this.node.isLeaf) {\n return null;\n }\n return this.dom.querySelector(\"[data-node-view-content]\");\n }\n /**\n * On editor selection update, check if the node is selected.\n * If it is, call `selectNode`, otherwise call `deselectNode`.\n */\n handleSelectionUpdate() {\n const { from, to } = this.editor.state.selection;\n const pos = this.getPos();\n if (typeof pos !== \"number\") {\n return;\n }\n if (from <= pos && to >= pos + this.node.nodeSize) {\n if (this.renderer.props.selected) {\n return;\n }\n this.selectNode();\n } else {\n if (!this.renderer.props.selected) {\n return;\n }\n this.deselectNode();\n }\n }\n /**\n * On update, update the React component.\n * To prevent unnecessary updates, the `update` option can be used.\n */\n update(node, decorations, innerDecorations) {\n const rerenderComponent = (props) => {\n this.decorationClasses.value = this.getDecorationClasses();\n this.renderer.updateProps(props);\n };\n if (typeof this.options.update === \"function\") {\n const oldNode = this.node;\n const oldDecorations = this.decorations;\n const oldInnerDecorations = this.innerDecorations;\n this.node = node;\n this.decorations = decorations;\n this.innerDecorations = innerDecorations;\n return this.options.update({\n oldNode,\n oldDecorations,\n newNode: node,\n newDecorations: decorations,\n oldInnerDecorations,\n innerDecorations,\n updateProps: () => rerenderComponent({ node, decorations, innerDecorations, extension: this.extensionWithSyncedStorage })\n });\n }\n if (node.type !== this.node.type) {\n return false;\n }\n if (node === this.node && this.decorations === decorations && this.innerDecorations === innerDecorations) {\n return true;\n }\n this.node = node;\n this.decorations = decorations;\n this.innerDecorations = innerDecorations;\n rerenderComponent({ node, decorations, innerDecorations, extension: this.extensionWithSyncedStorage });\n return true;\n }\n /**\n * Select the node.\n * Add the `selected` prop and the `ProseMirror-selectednode` class.\n */\n selectNode() {\n this.renderer.updateProps({\n selected: true\n });\n if (this.renderer.element) {\n this.renderer.element.classList.add(\"ProseMirror-selectednode\");\n }\n }\n /**\n * Deselect the node.\n * Remove the `selected` prop and the `ProseMirror-selectednode` class.\n */\n deselectNode() {\n this.renderer.updateProps({\n selected: false\n });\n if (this.renderer.element) {\n this.renderer.element.classList.remove(\"ProseMirror-selectednode\");\n }\n }\n getDecorationClasses() {\n return this.decorations.flatMap((item) => item.type.attrs.class).join(\" \");\n }\n destroy() {\n this.renderer.destroy();\n this.editor.off(\"selectionUpdate\", this.handleSelectionUpdate);\n }\n};\nfunction VueNodeViewRenderer(component, options) {\n return (props) => {\n if (!props.editor.contentComponent) {\n return {};\n }\n const normalizedComponent = typeof component === \"function\" && \"__vccOpts\" in component ? component.__vccOpts : component;\n return new VueNodeView(normalizedComponent, props, options);\n };\n}\n\n// src/index.ts\nexport * from \"@tiptap/core\";\nexport {\n Editor,\n EditorContent,\n MarkViewContent,\n NodeViewContent,\n NodeViewWrapper,\n VueMarkView,\n VueMarkViewRenderer,\n VueNodeViewRenderer,\n VueRenderer,\n markViewProps,\n nodeViewProps,\n useEditor\n};\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,SAAS,EAAgB,GAAO;AAC9B,QAAO,GAAW,GAAO,OAChB;EACL,MAAM;AAEJ,UADA,GAAO,EACA;;EAET,IAAI,GAAU;AAEZ,GADA,IAAQ,GACR,4BAA4B;AAC1B,gCAA4B;AAC1B,QAAS;MACT;KACF;;EAEL,EACD;;AAEJ,IAAI,IAAS,cAAcA,EAAW;CACpC,YAAY,IAAU,EAAE,EAAE;AAUxB,SATA,MAAM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AM;KAAa;KAAkB,WAAW,KAAK;KAA4B,CAAC;IAC1H,CAAC;;AAYJ,SAVI,EAAK,SAAS,KAAK,KAAK,OAGxB,MAAS,KAAK,QAAQ,KAAK,gBAAgB,KAAe,KAAK,qBAAqB,IAC/E,MAET,KAAK,OAAO,GACZ,KAAK,cAAc,GACnB,KAAK,mBAAmB,GACxB,EAAkB;GAAE;GAAM;GAAa;GAAkB,WAAW,KAAK;GAA4B,CAAC,EAC/F,MATE;;CAeX,aAAa;AAIX,EAHA,KAAK,SAAS,YAAY,EACxB,UAAU,IACX,CAAC,EACE,KAAK,SAAS,WAChB,KAAK,SAAS,QAAQ,UAAU,IAAI,2BAA2B;;CAOnE,eAAe;AAIb,EAHA,KAAK,SAAS,YAAY,EACxB,UAAU,IACX,CAAC,EACE,KAAK,SAAS,WAChB,KAAK,SAAS,QAAQ,UAAU,OAAO,2BAA2B;;CAGtE,uBAAuB;AACrB,SAAO,KAAK,YAAY,SAAS,MAAS,EAAK,KAAK,MAAM,MAAM,CAAC,KAAK,IAAI;;CAE5E,UAAU;AAER,EADA,KAAK,SAAS,SAAS,EACvB,KAAK,OAAO,IAAI,mBAAmB,KAAK,sBAAsB;;;AAGlE,SAAS,EAAoB,GAAW,GAAS;AAC/C,SAAQ,MACD,EAAM,OAAO,mBAIX,IAAI,EADiB,OAAO,KAAc,cAAc,eAAe,IAAY,EAAU,YAAY,GACpE,GAAO,EAAQ,GAHlD,EAAE"}
1
+ {"version":3,"file":"vue-3.js","names":[],"sources":["../../../entries/tiptap-vue.js"],"sourcesContent":["export * from '@tiptap/vue-3';\n"],"mappings":""}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../chunk-Bmb41Sf3.cjs`);const e=require(`../_plugin-vue_export-helper-CX7YVcP6.cjs`),t=require(`../localization/index.cjs`),n=require(`../lib/button/button.cjs`);let r=require(`vue`);var i={name:`SrOnlyCloseButton`,components:{DtIconClose:require(`@dialpad/dialtone-icons/vue`).DtIconClose,DtButton:n.default},emits:[`close`],data(){return{i18n:new t.DialtoneLocalization}},computed:{closeButtonTitle(){return this.i18n.$t(`DIALTONE_CLOSE_BUTTON`)}},methods:{close(){this.$emit(`close`)}}};function a(e,t,n,i,a,o){let s=(0,r.resolveComponent)(`dt-icon-close`),c=(0,r.resolveComponent)(`dt-button`);return(0,r.openBlock)(),(0,r.createBlock)(c,{id:`sr-only-close-button`,"data-qa":`dt-sr-only-close-button`,class:`d-vi-visible-sr`,"aria-label":o.closeButtonTitle,title:o.closeButtonTitle,onClick:o.close,onKeydown:(0,r.withKeys)((0,r.withModifiers)(o.close,[`prevent`,`stop`]),[`space`])},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(s)]),_:1},8,[`aria-label`,`title`,`onClick`,`onKeydown`])}var o=e.t(i,[[`render`,a]]);exports.default=o;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../chunk-BK-Lzi7j.cjs`);const e=require(`../_plugin-vue_export-helper-CX7YVcP6.cjs`),t=require(`../localization/index.cjs`),n=require(`../lib/button/button.cjs`);let r=require(`vue`);var i={name:`SrOnlyCloseButton`,components:{DtIconClose:require(`@dialpad/dialtone-icons/vue`).DtIconClose,DtButton:n.default},emits:[`close`],data(){return{i18n:new t.DialtoneLocalization}},computed:{closeButtonTitle(){return this.i18n.$t(`DIALTONE_CLOSE_BUTTON`)}},methods:{close(){this.$emit(`close`)}}};function a(e,t,n,i,a,o){let s=(0,r.resolveComponent)(`dt-icon-close`),c=(0,r.resolveComponent)(`dt-button`);return(0,r.openBlock)(),(0,r.createBlock)(c,{id:`sr-only-close-button`,"data-qa":`dt-sr-only-close-button`,class:`d-vi-visible-sr`,"aria-label":o.closeButtonTitle,title:o.closeButtonTitle,onClick:o.close,onKeydown:(0,r.withKeys)((0,r.withModifiers)(o.close,[`prevent`,`stop`]),[`space`])},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(s)]),_:1},8,[`aria-label`,`title`,`onClick`,`onKeydown`])}var o=e.t(i,[[`render`,a]]);exports.default=o;
2
2
  //# sourceMappingURL=sr_only_close_button.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../_plugin-vue_export-helper-BecorN_g.js";
1
+ import { t as e } from "../_plugin-vue_export-helper-B52Kst-M.js";
2
2
  import { DialtoneLocalization as t } from "../localization/index.js";
3
3
  import n from "../lib/button/button.js";
4
4
  import { createBlock as r, createVNode as i, openBlock as a, resolveComponent as o, withCtx as s, withKeys as c, withModifiers as l } from "vue";
@@ -169,4 +169,4 @@ var re = {
169
169
  //#endregion
170
170
  export { ne as A, m as C, O as D, te as E, J as M, a as N, D as O, o as P, W as S, H as T, C as _, E as a, A as b, b as c, B as d, p as f, y as g, v as h, $ as i, re as j, K as k, S as l, f as m, k as n, T as o, h as p, Q as r, _ as s, q as t, g as u, x as v, w, U as x, G as y };
171
171
 
172
- //# sourceMappingURL=utils-BL_SrwnF.js.map
172
+ //# sourceMappingURL=utils-CXaaZqVu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-BL_SrwnF.js","names":[],"sources":["../common/owned_classes.js","../common/utils/index.js"],"sourcesContent":["// Element -> Map(owner -> class that owner added).\nconst classOwners = new WeakMap();\n\n/**\n * Adds a class to an element on behalf of an owner. Adding again for the same owner does nothing.\n * @param element {HTMLElement}\n * @param className {string}\n * @param owner {*}\n */\nexport function addOwnedClass (element, className, owner) {\n let owners = classOwners.get(element);\n if (!owners) {\n owners = new Map();\n classOwners.set(element, owners);\n }\n if (owners.has(owner)) return;\n owners.set(owner, className);\n element.classList.add(className);\n}\n\n/**\n * Releases the class an owner added. The class is removed once no remaining owner holds it.\n * @param element {HTMLElement}\n * @param owner {*}\n */\nexport function removeOwnedClass (element, owner) {\n const owners = classOwners.get(element);\n const className = owners?.get(owner);\n if (!className) return;\n owners.delete(owner);\n if (!owners.size) classOwners.delete(element);\n for (const remainingClassName of owners.values()) {\n if (remainingClassName === className) return;\n }\n element.classList.remove(className);\n}\n\n/**\n * @param element {HTMLElement}\n * @returns {boolean} whether any owner holds a class on the element.\n */\nexport function hasClassOwners (element) {\n return classOwners.has(element);\n}\n","import {\n DEFAULT_PREFIX,\n DEFAULT_VALIDATION_MESSAGE_TYPE,\n VALIDATION_MESSAGE_TYPES,\n} from '../constants/index.js';\nimport {\n h,\n Comment,\n Text,\n} from 'vue';\nimport { addOwnedClass, hasClassOwners, removeOwnedClass } from '../owned_classes.js';\n\nlet UNIQUE_ID_COUNTER = 0;\nlet TIMER;\n\n// selector to find focusable not hidden inputs\nconst FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)';\n// selector to find focusable not disables elements\nconst FOCUSABLE_SELECTOR_NOT_DISABLED = 'select:not(:disabled),textarea:not(:disabled),button:not(:disabled)';\n// // selector to find focusable not hidden and disabled elements\nconst FOCUSABLE_SELECTOR_NOT_HIDDEN_DISABLED = `${FOCUSABLE_SELECTOR_NOT_HIDDEN},${FOCUSABLE_SELECTOR_NOT_DISABLED}`;\n// selector to find focusable elements\nconst FOCUSABLE_SELECTOR = `a,frame,iframe,${FOCUSABLE_SELECTOR_NOT_HIDDEN_DISABLED},*[tabindex]`;\n\nconst scheduler = typeof setImmediate === 'function' ? setImmediate : setTimeout;\n\nexport function getUniqueString (prefix = DEFAULT_PREFIX) {\n return `${prefix}${UNIQUE_ID_COUNTER++}`;\n}\n\n/**\n * Returns a random element from array\n * @param array - the array to return a random element from\n * @param {string} seed - use a string to seed the randomization, so it returns the same element each time\n * based on that string.\n * @returns {*} - the random element\n */\nexport function getRandomElement (array, seed) {\n if (seed) {\n const hash = javaHashCode(seed);\n return array[Math.abs(hash) % array.length];\n } else {\n return array[getRandomInt(array.length)];\n }\n}\n\n/**\n * Returns a hash code for a string.\n * (Compatible to Java's String.hashCode())\n * We use this algo to be in sync with android.\n *\n * The hash code for a string object is computed as\n * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n * using number arithmetic, where s[i] is the i th character\n * of the given string, n is the length of the string,\n * and ^ indicates exponentiation.\n * (The hash value of the empty string is zero.)\n *\n * @param {string} str a string\n * @return {number} a hash code value for the given string.\n */\nexport function javaHashCode (str) {\n let h;\n for (let i = 0; i < str.length; i++) {\n h = Math.imul(31, h) + str.charCodeAt(i) | 0;\n }\n\n return h;\n}\n\n/**\n * Generate a random integer\n * @param {number} max - max range of integer to generate\n * @returns {number} randomly generated integer between 0 and max\n */\nexport function getRandomInt (max) {\n return Math.floor(Math.random() * max);\n}\n\nexport function formatMessages (messages) {\n if (!messages) {\n return [];\n }\n\n return messages.map(message => {\n if (typeof message === 'string') {\n return {\n message,\n type: DEFAULT_VALIDATION_MESSAGE_TYPE,\n };\n }\n\n return message;\n });\n}\n\nexport function filterFormattedMessages (formattedMessages) {\n const validationState = getValidationState(formattedMessages);\n\n if (!formattedMessages || !validationState) {\n return [];\n }\n\n return formattedMessages.filter(message => !!message.message && message.type === validationState);\n}\n\n/*\n * The priority order of message types is: 'critical' > 'warning' > 'positive' > 'info'.\n * If any message of type 'critical' is present in messages, the input state is considered\n * to be 'critical', then 'warning', then 'positive', and lastly 'info'.\n */\nexport function getValidationState (formattedMessages) {\n if (!formattedMessages) {\n return null;\n }\n\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.CRITICAL)) {\n return VALIDATION_MESSAGE_TYPES.CRITICAL;\n }\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.WARNING)) {\n return VALIDATION_MESSAGE_TYPES.WARNING;\n }\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.POSITIVE)) {\n return VALIDATION_MESSAGE_TYPES.POSITIVE;\n }\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.INFO)) {\n return VALIDATION_MESSAGE_TYPES.INFO;\n }\n\n return null;\n}\n\nexport function hasFormattedMessageOfType (formattedMessages, messageType) {\n if (!formattedMessages || !messageType) {\n return false;\n }\n\n return formattedMessages.some(message => message?.type === messageType);\n}\n\nexport function findFirstFocusableNode (element) {\n return element?.querySelector(FOCUSABLE_SELECTOR);\n}\n\n/* html-fragment component:\n * To render html without wrapping in another element as when using v-html.\n * props: html\n */\nexport const htmlFragment = (props) => {\n return h('div', { innerHTML: props.html });\n};\n\nexport const flushPromises = () => {\n return new Promise((resolve) => {\n scheduler(resolve);\n });\n};\n\n/*\n It is very cumbersome to check if a slot is empty in vue 3. Copied this method from the following thread\n https://github.com/vuejs/core/issues/4733. There is an RFC to fix this but not yet being worked on.\n https://github.com/vuejs/rfcs/discussions/453\n*/\nexport function hasSlotContent (slot, slotProps = {}) {\n if (!slot) return false;\n\n\n return slot(slotProps).some((vnode) => {\n if (vnode.type === Comment) return false;\n\n if (Array.isArray(vnode.children) && !vnode.children.length) return false;\n\n return (\n vnode.type !== Text ||\n (typeof vnode.children === 'string' && vnode.children.trim() !== '')\n );\n });\n}\n\n/**\n * Transform a string from kebab-case to PascalCase\n * @param string\n * @returns {string}\n */\nexport const kebabCaseToPascalCase = (string) => {\n return string?.toLowerCase()\n .split('-')\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\n .join('');\n};\n\n/**\n * Transform a string from PascalCase to kebab-case\n * @param string\n * @returns {string}\n */\nexport const pascalCaseToKebabCase = (string) => {\n return string\n .replace(/\\.?([A-Z0-9]+)/g, (x, y) => '-' + y.toLowerCase())\n .replace(/^-/, '');\n};\n\n/**\n * Extracts Vue event listeners from attributes object\n * @param {Object} attrs - The attributes object to extract listeners from\n * @returns {Object} Object containing only Vue event listeners (keys matching on[A-Z])\n */\nexport const extractVueListeners = (attrs) => {\n const listeners = Object.entries(attrs)\n .filter(([key]) => key.match(/on[A-Z]/));\n return Object.fromEntries(listeners);\n};\n\n/**\n * Extracts non-listener attributes from attributes object\n * @param {Object} attrs - The attributes object to extract non-listeners from\n * @returns {Object} Object containing only non-listener attributes (keys not matching on[A-Z])\n */\nexport const extractNonListeners = (attrs) => {\n const nonListeners = Object.entries(attrs)\n .filter(([key]) => !key.match(/on[A-Z]/));\n return Object.fromEntries(nonListeners);\n};\n\n/**\n * $el works very differently than in vue 2, if the first node in the template is a text node\n * such as a comment it will return that instead of the first actual element. This function\n * will recursively return the first element in the template instead of the first node.\n * @param el\n * @returns {HTMLElement} The first element in the template\n */\nexport const returnFirstEl = (el) => {\n if (el?.nodeType === Node.ELEMENT_NODE) {\n return el;\n } else if (!el?.nodeType) {\n return null;\n } else {\n return returnFirstEl(el?.nextSibling);\n }\n};\n\n/**\n In Vue 3, $attrs includes class and style attributes, but when using inheritAttrs: false\n and manually binding :class=\"$attrs.class\" and :style=\"$attrs.style\" to the root element,\n we need to prevent class/style from being passed to inner elements via v-bind=\"removeClassStyleAttrs($attrs)\".\n This function removes class and style attributes from the attrs object.\n*/\nexport function removeClassStyleAttrs (attrs) {\n const listeners = Object.entries(attrs)\n .filter(([key]) => !['class', 'style'].includes(key));\n return Object.fromEntries(listeners);\n}\n\n\n/*\n* Set's a global timer to debounce the execution of a function.\n* @param { object } func - the function that is going to be called after timeout\n* @param { number } [timeout=300] timeout\n* */\nexport function debounce (func, timeout = 300) {\n clearTimeout(TIMER);\n TIMER = setTimeout(func, timeout);\n}\n\n/**\n * Checks if the element is out of the viewport\n * https://gomakethings.com/how-to-check-if-any-part-of-an-element-is-out-of-the-viewport-with-vanilla-js/\n * @param {HTMLElement} element The element to check\n * @return {Object} A set of booleans for each side of the element\n */\n\nexport function isOutOfViewPort (element) {\n const bounding = element.getBoundingClientRect();\n\n const isOut = {\n top: bounding.top < 0,\n left: bounding.left < 0,\n bottom: bounding.bottom > (window.innerHeight || document.documentElement.clientHeight),\n right: bounding.right > (window.innerWidth || document.documentElement.clientWidth),\n };\n isOut.any = Object.values(isOut).some(val => val);\n isOut.all = Object.values(isOut).every(val => val);\n return isOut;\n}\n\n// match valid characters for a domain name followed by a dot, e.g. \"dialpad.\"\nconst domainNameRegex = /(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)/;\n\n// match valid TLDs for a hostname (outdated list from ~2017)\nconst tldRegerx = new RegExp(\n '(?:' +\n 'com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|' +\n 'za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|' +\n 'il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|' +\n 'ae|ph|online|ng|ee|ws|ve|cat' +\n ')',\n);\n\n// match valid IPv4 addresses, e.g. \"192.158.1.38\"\nconst ipv4Regex = new RegExp(\n '(?:(?:[0-9]|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|25[0-5])\\\\.){3}' +\n '(?:[0-9]|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|25[0-5])',\n);\n\n// match hostnames OR IPv4 addresses, e.g. \"dialpad.com\" or \"192.158.1.38\"\nconst hostnameOrIpRegex = new RegExp(\n '(?:' +\n [\n [\n domainNameRegex.source,\n tldRegerx.source,\n ].join('+'),\n ipv4Regex.source,\n ].join('|') +\n ')',\n);\n\n// match URL paths, e.g. \"/news\"\nconst urlPathRegex = /(?:(?:[;/][^#?<>\\s]*)?)/;\n\n// match URL queries and fragments, e.g. \"?cache=1&new=true\" or \"#heading1\"\nconst urlQueryOrFragmentRegex = /(?:(?:\\?[^#<>\\s]+)?(?:#[^<>\\s]+)?)/;\n\n// match complete hostnames or IPv4 addresses without a protocol and with optional\n// URL paths, queries and fragments e.g. \"dialpad.com/news?cache=1#heading1\"\nconst urlWithoutProtocolRegex = new RegExp(\n '\\\\b' +\n [\n hostnameOrIpRegex.source,\n urlPathRegex.source,\n urlQueryOrFragmentRegex.source,\n '(?!\\\\w)',\n ].join('+'),\n);\n\n// match complete hostnames with protocols and optional URL paths, queries and fragments,\n// e.g. \"ws://localhost:9011\" or \"https://dialpad.com/news?cache=1#heading1\"\nconst urlWithProtocolRegex = /\\b[a-z\\d.-]+:\\/\\/[^<>\\s]+/;\n\n// match email addresses with an optional \"mailto:\" prefix and URL queries, e.g.\n// \"hey@dialpad.com\" or \"mailto:hey@dialpad.com?subject=Hi&body=Hey%20there\"\nconst emailAddressRegex = new RegExp(\n '(?:mailto:)?' +\n '[a-z0-9!#$%&\\'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&\\'*+/=?^_`{|}~-]+)*@' +\n [\n hostnameOrIpRegex.source,\n urlQueryOrFragmentRegex.source,\n ].join('+') +\n '(?!\\\\w)',\n);\n\n/**\n * Match phone numbers, e.g. \"765-8813\", \"(778) 765-8813\" or \"+17787658813\".\n * @param {number} minLength\n * @param {number} maxLength\n * @returns {RegExp}\n */\nexport function getPhoneNumberRegex (minLength = 7, maxLength = 15) {\n // Some older browser versions don't support lookbehind, so provide a RegExp\n // version without it. It fails just one test case, so IMO it's still good\n // enough to use. https://caniuse.com/js-regexp-lookbehind\n try {\n return new RegExp(\n '(?:^|(?<=\\\\W))' +\n '(?![\\\\s\\\\-])\\\\+?(?:[0-9()\\\\- \\\\t]' +\n `{${minLength},${maxLength}}` +\n ')(?=\\\\b)(?=\\\\W(?=\\\\W|$)|\\\\s|$)',\n );\n } catch {\n \n console.warn('This browser doesn\\'t support regex lookahead/lookbehind');\n }\n\n return new RegExp(\n '(?![\\\\s\\\\-])\\\\+?(?:[0-9()\\\\- \\\\t]' +\n `{${minLength},${maxLength}}` +\n ')(?=\\\\b)(?=\\\\W(?=\\\\W|$)|\\\\s|$)',\n );\n}\n\nconst phoneNumberRegex = getPhoneNumberRegex();\n\n// match all link types\nexport const linkRegex = new RegExp(\n [\n urlWithoutProtocolRegex.source,\n urlWithProtocolRegex.source,\n emailAddressRegex.source,\n phoneNumberRegex.source,\n ].join('|'),\n 'gi',\n);\n\n/**\n * Check if a string is a phone number. Validates only exact matches.\n * @param {string|number} input\n * @returns {boolean}\n */\nexport function isPhoneNumber (input) {\n if (!input || (!['string', 'number'].includes(typeof input))) return false;\n input = input.toString();\n return phoneNumberRegex.exec(input)?.[0] === input;\n}\n\n/**\n * Check if a string is an URL. Validates only exact matches.\n * @param {string} input\n * @returns {boolean}\n */\nexport function isURL (input) {\n if (!input || typeof input !== 'string') return false;\n return urlWithoutProtocolRegex.exec(input)?.[0] === input ||\n urlWithProtocolRegex.exec(input)?.[0] === input;\n}\n\n/**\n * Check if a string is an email address. Validates only exact matches.\n * @param {string} input\n * @returns {boolean}\n */\nexport function isEmailAddress (input) {\n if (!input || typeof input !== 'string') return false;\n return emailAddressRegex.exec(input)?.[0] === input;\n}\n\n/**\n * Concatenate a string removing null or undefined elements\n * avoiding parsing them as string with template strings\n * @param {Array} elements\n * @returns {String}\n */\nexport function safeConcatStrings (elements) {\n return elements.filter(str => !!str).join(', ');\n}\n\n/**\n * Locale safe function to capitalize the first letter of a string.\n * @param {string} str the string to capitalize the first letter of\n * @param {string} locale a string representing the locale to be used. Defaults to 'en-US'\n * @returns The passed in string with the first letter capitalized\n */\nexport function capitalizeFirstLetter (str, locale = 'en-US') {\n return str.replace(/^\\p{CWU}/u, char => char.toLocaleUpperCase(locale));\n}\n\n/**\n * Warns if the component is not mounted properly. Useful for tests.\n * @param {HTMLElement} componentRef - the component reference\n * @param {string} componentName - the component name\n */\n\nexport function warnIfUnmounted (componentRef, componentName) {\n if (typeof process === 'undefined') return;\n if (process.env.NODE_ENV !== 'test') return;\n if (!componentRef || !(componentRef instanceof HTMLElement) || !document?.body) return;\n if (!document.body.contains(componentRef)) {\n console.warn(`The ${componentName} component is not attached to the document body. This may cause issues.`);\n }\n}\n\n/**\n * checks whether the dt-scrollbar is being used on the root element.\n * @param rootElement {HTMLElement}\n * @returns {boolean}\n */\nfunction isDtScrollbarInUse (rootElement = document.documentElement) {\n if (rootElement.hasAttribute('data-overlayscrollbars')) {\n return true;\n }\n return false;\n}\n\n// Shared by ownerless callers, so a legacy disable/enable pair still acts as one owner.\nconst LEGACY_SCROLL_LOCK_OWNER = Symbol('legacyScrollLockOwner');\n\nfunction getRootScrollLockClass (rootElement) {\n return isDtScrollbarInUse(rootElement) ? 'd-scrollbar-disabled' : 'd-of-hidden';\n}\n\n/**\n * This will disable scrolling on the root element regardless of whether you are using dt-scrollbar or not.\n * Each owner holds its own lock; scrolling stays disabled until every owner has called enableRootScrolling.\n * @param rootElement {HTMLElement}\n * @param owner {*} identifies the caller's lock. Ownerless callers share a single owner.\n */\nexport function disableRootScrolling (rootElement = document.documentElement, owner = LEGACY_SCROLL_LOCK_OWNER) {\n addOwnedClass(rootElement, getRootScrollLockClass(rootElement), owner);\n}\n\n/**\n * This will release the owner's scroll lock on the root element regardless of whether you are using dt-scrollbar\n * or not. The class that owner added is removed only when no other owner still holds it.\n * @param rootElement {HTMLElement}\n * @param owner {*} the owner passed to disableRootScrolling. Ownerless callers share a single owner.\n */\nexport function enableRootScrolling (rootElement = document.documentElement, owner = LEGACY_SCROLL_LOCK_OWNER) {\n if (hasClassOwners(rootElement)) {\n removeOwnedClass(rootElement, owner);\n } else if (owner === LEGACY_SCROLL_LOCK_OWNER) {\n // No tracked lock: keep the previous unconditional behavior for ownerless callers.\n rootElement.classList.remove(getRootScrollLockClass(rootElement));\n }\n}\n\n/**\n * This will take a text string e.g \"accessibility-mac\"\n * and convert it to our Fluent Key standard format \"ACCESSIBILITY_MAC\"\n * @param text\n * @returns {string}\n */\nexport function toFluentKeyString (text) {\n return text\n .replaceAll(/[ -]/g, '_')\n .replaceAll(/\\W/g, '')\n .toUpperCase();\n}\n\nexport default {\n getUniqueString,\n getRandomElement,\n getRandomInt,\n formatMessages,\n filterFormattedMessages,\n hasFormattedMessageOfType,\n getValidationState,\n htmlFragment,\n flushPromises,\n kebabCaseToPascalCase,\n extractVueListeners,\n extractNonListeners,\n removeClassStyleAttrs,\n returnFirstEl,\n debounce,\n isOutOfViewPort,\n getPhoneNumberReg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AC,KAAK,KAAK;;AASjD,SAAgB,EAAuB,GAAK,IAAS,SAAS;AAC5D,QAAO,EAAI,QAAQ,cAAa,MAAQ,EAAK,kBAAkB,EAAO,CAAC;;AASzE,SAAgB,EAAiB,GAAc,GAAe;AACxD,QAAO,UAAY,OACvB,QAAA,IAAA,aAA6B,WACzB,CAAC,KAAgB,EAAE,aAAwB,gBAAgB,CAAC,UAAU,QACrE,SAAS,KAAK,SAAS,EAAa,IACvC,QAAQ,KAAK,OAAO,EAAc,yEAAyE;;AAS/G,SAAS,EAAoB,IAAc,SAAS,iBAAiB;AAInE,QAHA,EAAI,EAAY,aAAa,yBAAyB;;AAOxD,IAAM,IAA2B,OAAO,wBAAwB;AAEhE,SAAS,EAAwB,GAAa;AAC5C,QAAO,EAAmB,EAAY,GAAG,yBAAyB;;AASpE,SAAgB,EAAsB,IAAc,SAAS,iBAAiB,IAAQ,GAA0B;AAC9G,GAAc,GAAa,EAAuB,EAAY,EAAE,EAAM;;AASxE,SAAgB,EAAqB,IAAc,SAAS,iBAAiB,IAAQ,GAA0B;AAC7G,CAAI,EAAe,EAAY,GAC7B,EAAiB,GAAa,EAAM,GAC3B,MAAU,KAEnB,EAAY,UAAU,OAAO,EAAuB,EAAY,CAAC;;AAUrE,SAAgB,GAAmB,GAAM;AACvC,QAAO,EACJ,WAAW,SAAS,IAAI,CACxB,WAAW,OAAO,GAAG,CACrB,aAAa;;AAGlB,IAAA,KAAe;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"utils-CXaaZqVu.js","names":[],"sources":["../common/owned_classes.js","../common/utils/index.js"],"sourcesContent":["// Element -> Map(owner -> class that owner added).\nconst classOwners = new WeakMap();\n\n/**\n * Adds a class to an element on behalf of an owner. Adding again for the same owner does nothing.\n * @param element {HTMLElement}\n * @param className {string}\n * @param owner {*}\n */\nexport function addOwnedClass (element, className, owner) {\n let owners = classOwners.get(element);\n if (!owners) {\n owners = new Map();\n classOwners.set(element, owners);\n }\n if (owners.has(owner)) return;\n owners.set(owner, className);\n element.classList.add(className);\n}\n\n/**\n * Releases the class an owner added. The class is removed once no remaining owner holds it.\n * @param element {HTMLElement}\n * @param owner {*}\n */\nexport function removeOwnedClass (element, owner) {\n const owners = classOwners.get(element);\n const className = owners?.get(owner);\n if (!className) return;\n owners.delete(owner);\n if (!owners.size) classOwners.delete(element);\n for (const remainingClassName of owners.values()) {\n if (remainingClassName === className) return;\n }\n element.classList.remove(className);\n}\n\n/**\n * @param element {HTMLElement}\n * @returns {boolean} whether any owner holds a class on the element.\n */\nexport function hasClassOwners (element) {\n return classOwners.has(element);\n}\n","import {\n DEFAULT_PREFIX,\n DEFAULT_VALIDATION_MESSAGE_TYPE,\n VALIDATION_MESSAGE_TYPES,\n} from '../constants/index.js';\nimport {\n h,\n Comment,\n Text,\n} from 'vue';\nimport { addOwnedClass, hasClassOwners, removeOwnedClass } from '../owned_classes.js';\n\nlet UNIQUE_ID_COUNTER = 0;\nlet TIMER;\n\n// selector to find focusable not hidden inputs\nconst FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)';\n// selector to find focusable not disables elements\nconst FOCUSABLE_SELECTOR_NOT_DISABLED = 'select:not(:disabled),textarea:not(:disabled),button:not(:disabled)';\n// // selector to find focusable not hidden and disabled elements\nconst FOCUSABLE_SELECTOR_NOT_HIDDEN_DISABLED = `${FOCUSABLE_SELECTOR_NOT_HIDDEN},${FOCUSABLE_SELECTOR_NOT_DISABLED}`;\n// selector to find focusable elements\nconst FOCUSABLE_SELECTOR = `a,frame,iframe,${FOCUSABLE_SELECTOR_NOT_HIDDEN_DISABLED},*[tabindex]`;\n\nconst scheduler = typeof setImmediate === 'function' ? setImmediate : setTimeout;\n\nexport function getUniqueString (prefix = DEFAULT_PREFIX) {\n return `${prefix}${UNIQUE_ID_COUNTER++}`;\n}\n\n/**\n * Returns a random element from array\n * @param array - the array to return a random element from\n * @param {string} seed - use a string to seed the randomization, so it returns the same element each time\n * based on that string.\n * @returns {*} - the random element\n */\nexport function getRandomElement (array, seed) {\n if (seed) {\n const hash = javaHashCode(seed);\n return array[Math.abs(hash) % array.length];\n } else {\n return array[getRandomInt(array.length)];\n }\n}\n\n/**\n * Returns a hash code for a string.\n * (Compatible to Java's String.hashCode())\n * We use this algo to be in sync with android.\n *\n * The hash code for a string object is computed as\n * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n * using number arithmetic, where s[i] is the i th character\n * of the given string, n is the length of the string,\n * and ^ indicates exponentiation.\n * (The hash value of the empty string is zero.)\n *\n * @param {string} str a string\n * @return {number} a hash code value for the given string.\n */\nexport function javaHashCode (str) {\n let h;\n for (let i = 0; i < str.length; i++) {\n h = Math.imul(31, h) + str.charCodeAt(i) | 0;\n }\n\n return h;\n}\n\n/**\n * Generate a random integer\n * @param {number} max - max range of integer to generate\n * @returns {number} randomly generated integer between 0 and max\n */\nexport function getRandomInt (max) {\n return Math.floor(Math.random() * max);\n}\n\nexport function formatMessages (messages) {\n if (!messages) {\n return [];\n }\n\n return messages.map(message => {\n if (typeof message === 'string') {\n return {\n message,\n type: DEFAULT_VALIDATION_MESSAGE_TYPE,\n };\n }\n\n return message;\n });\n}\n\nexport function filterFormattedMessages (formattedMessages) {\n const validationState = getValidationState(formattedMessages);\n\n if (!formattedMessages || !validationState) {\n return [];\n }\n\n return formattedMessages.filter(message => !!message.message && message.type === validationState);\n}\n\n/*\n * The priority order of message types is: 'critical' > 'warning' > 'positive' > 'info'.\n * If any message of type 'critical' is present in messages, the input state is considered\n * to be 'critical', then 'warning', then 'positive', and lastly 'info'.\n */\nexport function getValidationState (formattedMessages) {\n if (!formattedMessages) {\n return null;\n }\n\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.CRITICAL)) {\n return VALIDATION_MESSAGE_TYPES.CRITICAL;\n }\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.WARNING)) {\n return VALIDATION_MESSAGE_TYPES.WARNING;\n }\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.POSITIVE)) {\n return VALIDATION_MESSAGE_TYPES.POSITIVE;\n }\n if (hasFormattedMessageOfType(formattedMessages, VALIDATION_MESSAGE_TYPES.INFO)) {\n return VALIDATION_MESSAGE_TYPES.INFO;\n }\n\n return null;\n}\n\nexport function hasFormattedMessageOfType (formattedMessages, messageType) {\n if (!formattedMessages || !messageType) {\n return false;\n }\n\n return formattedMessages.some(message => message?.type === messageType);\n}\n\nexport function findFirstFocusableNode (element) {\n return element?.querySelector(FOCUSABLE_SELECTOR);\n}\n\n/* html-fragment component:\n * To render html without wrapping in another element as when using v-html.\n * props: html\n */\nexport const htmlFragment = (props) => {\n return h('div', { innerHTML: props.html });\n};\n\nexport const flushPromises = () => {\n return new Promise((resolve) => {\n scheduler(resolve);\n });\n};\n\n/*\n It is very cumbersome to check if a slot is empty in vue 3. Copied this method from the following thread\n https://github.com/vuejs/core/issues/4733. There is an RFC to fix this but not yet being worked on.\n https://github.com/vuejs/rfcs/discussions/453\n*/\nexport function hasSlotContent (slot, slotProps = {}) {\n if (!slot) return false;\n\n\n return slot(slotProps).some((vnode) => {\n if (vnode.type === Comment) return false;\n\n if (Array.isArray(vnode.children) && !vnode.children.length) return false;\n\n return (\n vnode.type !== Text ||\n (typeof vnode.children === 'string' && vnode.children.trim() !== '')\n );\n });\n}\n\n/**\n * Transform a string from kebab-case to PascalCase\n * @param string\n * @returns {string}\n */\nexport const kebabCaseToPascalCase = (string) => {\n return string?.toLowerCase()\n .split('-')\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\n .join('');\n};\n\n/**\n * Transform a string from PascalCase to kebab-case\n * @param string\n * @returns {string}\n */\nexport const pascalCaseToKebabCase = (string) => {\n return string\n .replace(/\\.?([A-Z0-9]+)/g, (x, y) => '-' + y.toLowerCase())\n .replace(/^-/, '');\n};\n\n/**\n * Extracts Vue event listeners from attributes object\n * @param {Object} attrs - The attributes object to extract listeners from\n * @returns {Object} Object containing only Vue event listeners (keys matching on[A-Z])\n */\nexport const extractVueListeners = (attrs) => {\n const listeners = Object.entries(attrs)\n .filter(([key]) => key.match(/on[A-Z]/));\n return Object.fromEntries(listeners);\n};\n\n/**\n * Extracts non-listener attributes from attributes object\n * @param {Object} attrs - The attributes object to extract non-listeners from\n * @returns {Object} Object containing only non-listener attributes (keys not matching on[A-Z])\n */\nexport const extractNonListeners = (attrs) => {\n const nonListeners = Object.entries(attrs)\n .filter(([key]) => !key.match(/on[A-Z]/));\n return Object.fromEntries(nonListeners);\n};\n\n/**\n * $el works very differently than in vue 2, if the first node in the template is a text node\n * such as a comment it will return that instead of the first actual element. This function\n * will recursively return the first element in the template instead of the first node.\n * @param el\n * @returns {HTMLElement} The first element in the template\n */\nexport const returnFirstEl = (el) => {\n if (el?.nodeType === Node.ELEMENT_NODE) {\n return el;\n } else if (!el?.nodeType) {\n return null;\n } else {\n return returnFirstEl(el?.nextSibling);\n }\n};\n\n/**\n In Vue 3, $attrs includes class and style attributes, but when using inheritAttrs: false\n and manually binding :class=\"$attrs.class\" and :style=\"$attrs.style\" to the root element,\n we need to prevent class/style from being passed to inner elements via v-bind=\"removeClassStyleAttrs($attrs)\".\n This function removes class and style attributes from the attrs object.\n*/\nexport function removeClassStyleAttrs (attrs) {\n const listeners = Object.entries(attrs)\n .filter(([key]) => !['class', 'style'].includes(key));\n return Object.fromEntries(listeners);\n}\n\n\n/*\n* Set's a global timer to debounce the execution of a function.\n* @param { object } func - the function that is going to be called after timeout\n* @param { number } [timeout=300] timeout\n* */\nexport function debounce (func, timeout = 300) {\n clearTimeout(TIMER);\n TIMER = setTimeout(func, timeout);\n}\n\n/**\n * Checks if the element is out of the viewport\n * https://gomakethings.com/how-to-check-if-any-part-of-an-element-is-out-of-the-viewport-with-vanilla-js/\n * @param {HTMLElement} element The element to check\n * @return {Object} A set of booleans for each side of the element\n */\n\nexport function isOutOfViewPort (element) {\n const bounding = element.getBoundingClientRect();\n\n const isOut = {\n top: bounding.top < 0,\n left: bounding.left < 0,\n bottom: bounding.bottom > (window.innerHeight || document.documentElement.clientHeight),\n right: bounding.right > (window.innerWidth || document.documentElement.clientWidth),\n };\n isOut.any = Object.values(isOut).some(val => val);\n isOut.all = Object.values(isOut).every(val => val);\n return isOut;\n}\n\n// match valid characters for a domain name followed by a dot, e.g. \"dialpad.\"\nconst domainNameRegex = /(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)/;\n\n// match valid TLDs for a hostname (outdated list from ~2017)\nconst tldRegerx = new RegExp(\n '(?:' +\n 'com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|' +\n 'za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|' +\n 'il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|' +\n 'ae|ph|online|ng|ee|ws|ve|cat' +\n ')',\n);\n\n// match valid IPv4 addresses, e.g. \"192.158.1.38\"\nconst ipv4Regex = new RegExp(\n '(?:(?:[0-9]|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|25[0-5])\\\\.){3}' +\n '(?:[0-9]|[1-9]\\\\d|1\\\\d{2}|2[0-4]\\\\d|25[0-5])',\n);\n\n// match hostnames OR IPv4 addresses, e.g. \"dialpad.com\" or \"192.158.1.38\"\nconst hostnameOrIpRegex = new RegExp(\n '(?:' +\n [\n [\n domainNameRegex.source,\n tldRegerx.source,\n ].join('+'),\n ipv4Regex.source,\n ].join('|') +\n ')',\n);\n\n// match URL paths, e.g. \"/news\"\nconst urlPathRegex = /(?:(?:[;/][^#?<>\\s]*)?)/;\n\n// match URL queries and fragments, e.g. \"?cache=1&new=true\" or \"#heading1\"\nconst urlQueryOrFragmentRegex = /(?:(?:\\?[^#<>\\s]+)?(?:#[^<>\\s]+)?)/;\n\n// match complete hostnames or IPv4 addresses without a protocol and with optional\n// URL paths, queries and fragments e.g. \"dialpad.com/news?cache=1#heading1\"\nconst urlWithoutProtocolRegex = new RegExp(\n '\\\\b' +\n [\n hostnameOrIpRegex.source,\n urlPathRegex.source,\n urlQueryOrFragmentRegex.source,\n '(?!\\\\w)',\n ].join('+'),\n);\n\n// match complete hostnames with protocols and optional URL paths, queries and fragments,\n// e.g. \"ws://localhost:9011\" or \"https://dialpad.com/news?cache=1#heading1\"\nconst urlWithProtocolRegex = /\\b[a-z\\d.-]+:\\/\\/[^<>\\s]+/;\n\n// match email addresses with an optional \"mailto:\" prefix and URL queries, e.g.\n// \"hey@dialpad.com\" or \"mailto:hey@dialpad.com?subject=Hi&body=Hey%20there\"\nconst emailAddressRegex = new RegExp(\n '(?:mailto:)?' +\n '[a-z0-9!#$%&\\'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&\\'*+/=?^_`{|}~-]+)*@' +\n [\n hostnameOrIpRegex.source,\n urlQueryOrFragmentRegex.source,\n ].join('+') +\n '(?!\\\\w)',\n);\n\n/**\n * Match phone numbers, e.g. \"765-8813\", \"(778) 765-8813\" or \"+17787658813\".\n * @param {number} minLength\n * @param {number} maxLength\n * @returns {RegExp}\n */\nexport function getPhoneNumberRegex (minLength = 7, maxLength = 15) {\n // Some older browser versions don't support lookbehind, so provide a RegExp\n // version without it. It fails just one test case, so IMO it's still good\n // enough to use. https://caniuse.com/js-regexp-lookbehind\n try {\n return new RegExp(\n '(?:^|(?<=\\\\W))' +\n '(?![\\\\s\\\\-])\\\\+?(?:[0-9()\\\\- \\\\t]' +\n `{${minLength},${maxLength}}` +\n ')(?=\\\\b)(?=\\\\W(?=\\\\W|$)|\\\\s|$)',\n );\n } catch {\n \n console.warn('This browser doesn\\'t support regex lookahead/lookbehind');\n }\n\n return new RegExp(\n '(?![\\\\s\\\\-])\\\\+?(?:[0-9()\\\\- \\\\t]' +\n `{${minLength},${maxLength}}` +\n ')(?=\\\\b)(?=\\\\W(?=\\\\W|$)|\\\\s|$)',\n );\n}\n\nconst phoneNumberRegex = getPhoneNumberRegex();\n\n// match all link types\nexport const linkRegex = new RegExp(\n [\n urlWithoutProtocolRegex.source,\n urlWithProtocolRegex.source,\n emailAddressRegex.source,\n phoneNumberRegex.source,\n ].join('|'),\n 'gi',\n);\n\n/**\n * Check if a string is a phone number. Validates only exact matches.\n * @param {string|number} input\n * @returns {boolean}\n */\nexport function isPhoneNumber (input) {\n if (!input || (!['string', 'number'].includes(typeof input))) return false;\n input = input.toString();\n return phoneNumberRegex.exec(input)?.[0] === input;\n}\n\n/**\n * Check if a string is an URL. Validates only exact matches.\n * @param {string} input\n * @returns {boolean}\n */\nexport function isURL (input) {\n if (!input || typeof input !== 'string') return false;\n return urlWithoutProtocolRegex.exec(input)?.[0] === input ||\n urlWithProtocolRegex.exec(input)?.[0] === input;\n}\n\n/**\n * Check if a string is an email address. Validates only exact matches.\n * @param {string} input\n * @returns {boolean}\n */\nexport function isEmailAddress (input) {\n if (!input || typeof input !== 'string') return false;\n return emailAddressRegex.exec(input)?.[0] === input;\n}\n\n/**\n * Concatenate a string removing null or undefined elements\n * avoiding parsing them as string with template strings\n * @param {Array} elements\n * @returns {String}\n */\nexport function safeConcatStrings (elements) {\n return elements.filter(str => !!str).join(', ');\n}\n\n/**\n * Locale safe function to capitalize the first letter of a string.\n * @param {string} str the string to capitalize the first letter of\n * @param {string} locale a string representing the locale to be used. Defaults to 'en-US'\n * @returns The passed in string with the first letter capitalized\n */\nexport function capitalizeFirstLetter (str, locale = 'en-US') {\n return str.replace(/^\\p{CWU}/u, char => char.toLocaleUpperCase(locale));\n}\n\n/**\n * Warns if the component is not mounted properly. Useful for tests.\n * @param {HTMLElement} componentRef - the component reference\n * @param {string} componentName - the component name\n */\n\nexport function warnIfUnmounted (componentRef, componentName) {\n if (typeof process === 'undefined') return;\n if (process.env.NODE_ENV !== 'test') return;\n if (!componentRef || !(componentRef instanceof HTMLElement) || !document?.body) return;\n if (!document.body.contains(componentRef)) {\n console.warn(`The ${componentName} component is not attached to the document body. This may cause issues.`);\n }\n}\n\n/**\n * checks whether the dt-scrollbar is being used on the root element.\n * @param rootElement {HTMLElement}\n * @returns {boolean}\n */\nfunction isDtScrollbarInUse (rootElement = document.documentElement) {\n if (rootElement.hasAttribute('data-overlayscrollbars')) {\n return true;\n }\n return false;\n}\n\n// Shared by ownerless callers, so a legacy disable/enable pair still acts as one owner.\nconst LEGACY_SCROLL_LOCK_OWNER = Symbol('legacyScrollLockOwner');\n\nfunction getRootScrollLockClass (rootElement) {\n return isDtScrollbarInUse(rootElement) ? 'd-scrollbar-disabled' : 'd-of-hidden';\n}\n\n/**\n * This will disable scrolling on the root element regardless of whether you are using dt-scrollbar or not.\n * Each owner holds its own lock; scrolling stays disabled until every owner has called enableRootScrolling.\n * @param rootElement {HTMLElement}\n * @param owner {*} identifies the caller's lock. Ownerless callers share a single owner.\n */\nexport function disableRootScrolling (rootElement = document.documentElement, owner = LEGACY_SCROLL_LOCK_OWNER) {\n addOwnedClass(rootElement, getRootScrollLockClass(rootElement), owner);\n}\n\n/**\n * This will release the owner's scroll lock on the root element regardless of whether you are using dt-scrollbar\n * or not. The class that owner added is removed only when no other owner still holds it.\n * @param rootElement {HTMLElement}\n * @param owner {*} the owner passed to disableRootScrolling. Ownerless callers share a single owner.\n */\nexport function enableRootScrolling (rootElement = document.documentElement, owner = LEGACY_SCROLL_LOCK_OWNER) {\n if (hasClassOwners(rootElement)) {\n removeOwnedClass(rootElement, owner);\n } else if (owner === LEGACY_SCROLL_LOCK_OWNER) {\n // No tracked lock: keep the previous unconditional behavior for ownerless callers.\n rootElement.classList.remove(getRootScrollLockClass(rootElement));\n }\n}\n\n/**\n * This will take a text string e.g \"accessibility-mac\"\n * and convert it to our Fluent Key standard format \"ACCESSIBILITY_MAC\"\n * @param text\n * @returns {string}\n */\nexport function toFluentKeyString (text) {\n return text\n .replaceAll(/[ -]/g, '_')\n .replaceAll(/\\W/g, '')\n .toUpperCase();\n}\n\nexport default {\n getUniqueString,\n getRandomElement,\n getRandomInt,\n formatMessages,\n filterFormattedMessages,\n hasFormattedMessageOfType,\n getValidationState,\n htmlFragment,\n flushPromises,\n kebabCaseToPascalCase,\n extractVueListeners,\n extractNonListeners,\n removeClassStyleAttrs,\n returnFirstEl,\n debounce,\n isOutOfViewPort,\n getPhoneNumberRegex,\n linkRegex,\n isEmailAddress,\n isPhoneNumber,\n isURL,\n safeConcatStrings,\n capitalizeFirstLetter,\n disableRootScrolling,\n enableRootScrolling,\n};\n\n"],"mappings":";;;AACA,IAAM,oBAAc,IAAI,SAAS;AAQjC,SAAgB,EAAe,GAAS,GAAW,GAAO;CACxD,IAAI,IAAS,EAAY,IAAI,EAAQ;AACrC,CAAK,MACH,oBAAS,IAAI,KAAK,EAClB,EAAY,IAAI,GAAS,EAAO,GAE9B,GAAO,IAAI,EAAM,KACrB,EAAO,IAAI,GAAO,EAAU,EAC5B,EAAQ,UAAU,IAAI,EAAU;;AAQlC,SAAgB,EAAkB,GAAS,GAAO;CAChD,IAAM,IAAS,EAAY,IAAI,EAAQ,EACjC,IAAY,GAAQ,IAAI,EAAM;AAC/B,QAEL;EADA,EAAO,OAAO,EAAM,EACf,EAAO,QAAM,EAAY,OAAO,EAAQ;AAC7C,OAAK,IAAM,KAAsB,EAAO,QAAQ,CAC9C,KAAI,MAAuB,EAAW;AAExC,IAAQ,UAAU,OAAO,EAAU;;;AAOrC,SAAgB,EAAgB,GAAS;AACvC,QAAO,EAAY,IAAI,EAAQ;;;;AC9BjC,IAAI,IAAoB,GACpB,GASE,IAAqB,0IAErB,IAAY,OAAO,gBAAiB,aAAa,eAAe;AAEtE,SAAgB,EAAiB,IAAA,MAAyB;AACxD,QAAO,GAAG,IAAS;;AAUrB,SAAgB,EAAkB,GA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AAA,KAAe;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
@@ -1,2 +1,2 @@
1
- require(`./chunk-Bmb41Sf3.cjs`);const e=require(`./common/constants/index.cjs`);let t=require(`vue`);var n=new WeakMap;function r(e,t,r){let i=n.get(e);i||(i=new Map,n.set(e,i)),!i.has(r)&&(i.set(r,t),e.classList.add(t))}function i(e,t){let r=n.get(e),i=r?.get(t);if(i){r.delete(t),r.size||n.delete(e);for(let e of r.values())if(e===i)return;e.classList.remove(i)}}function a(e){return n.has(e)}var o=0,s,c=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`,l=typeof setImmediate==`function`?setImmediate:setTimeout;function u(e=`dt`){return`${e}${o++}`}function d(e,t){if(t){let n=f(t);return e[Math.abs(n)%e.length]}else return e[p(e.length)]}function f(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function p(e){return Math.floor(Math.random()*e)}function m(t){return t?t.map(t=>typeof t==`string`?{message:t,type:e.DEFAULT_VALIDATION_MESSAGE_TYPE}:t):[]}function h(e){let t=g(e);return!e||!t?[]:e.filter(e=>!!e.message&&e.type===t)}function g(t){return t?_(t,e.VALIDATION_MESSAGE_TYPES.CRITICAL)?e.VALIDATION_MESSAGE_TYPES.CRITICAL:_(t,e.VALIDATION_MESSAGE_TYPES.WARNING)?e.VALIDATION_MESSAGE_TYPES.WARNING:_(t,e.VALIDATION_MESSAGE_TYPES.POSITIVE)?e.VALIDATION_MESSAGE_TYPES.POSITIVE:_(t,e.VALIDATION_MESSAGE_TYPES.INFO)?e.VALIDATION_MESSAGE_TYPES.INFO:null:null}function _(e,t){return!e||!t?!1:e.some(e=>e?.type===t)}function v(e){return e?.querySelector(c)}var y=e=>(0,t.h)(`div`,{innerHTML:e.html}),b=()=>new Promise(e=>{l(e)});function x(e,n={}){return e?e(n).some(e=>e.type===t.Comment||Array.isArray(e.children)&&!e.children.length?!1:e.type!==t.Text||typeof e.children==`string`&&e.children.trim()!==``):!1}var S=e=>e?.toLowerCase().split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),C=e=>e.replace(/\.?([A-Z0-9]+)/g,(e,t)=>`-`+t.toLowerCase()).replace(/^-/,``),w=e=>{let t=Object.entries(e).filter(([e])=>e.match(/on[A-Z]/));return Object.fromEntries(t)},T=e=>{let t=Object.entries(e).filter(([e])=>!e.match(/on[A-Z]/));return Object.fromEntries(t)},E=e=>e?.nodeType===Node.ELEMENT_NODE?e:e?.nodeType?E(e?.nextSibling):null;function D(e){let t=Object.entries(e).filter(([e])=>![`class`,`style`].includes(e));return Object.fromEntries(t)}function O(e,t=300){clearTimeout(s),s=setTimeout(e,t)}function k(e){let t=e.getBoundingClientRect(),n={top:t.top<0,left:t.left<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight),right:t.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(e=>e),n.all=Object.values(n).every(e=>e),n}var A=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,j=RegExp(`(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)`),M=RegExp(`(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])`),N=RegExp(`(?:`+[[A.source,j.source].join(`+`),M.source].join(`|`)+`)`),P=/(?:(?:[;/][^#?<>\s]*)?)/,F=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,I=RegExp(`\\b`+[N.source,P.source,F.source,`(?!\\w)`].join(`+`)),L=/\b[a-z\d.-]+:\/\/[^<>\s]+/,R=RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[N.source,F.source].join(`+`)+`(?!\\w)`);function z(e=7,t=15){try{return RegExp(`(?:^|(?<=\\W))(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|\$)|\\s|\$)`)}catch{console.warn(`This browser doesn't support regex lookahead/lookbehind`)}return RegExp(`(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|\$)|\\s|\$)`)}var B=z(),V=new RegExp([I.source,L.source,R.source,B.source].join(`|`),`gi`);function H(e){return!e||![`string`,`number`].includes(typeof e)?!1:(e=e.toString(),B.exec(e)?.[0]===e)}function U(e){return!e||typeof e!=`string`?!1:I.exec(e)?.[0]===e||L.exec(e)?.[0]===e}function W(e){return!e||typeof e!=`string`?!1:R.exec(e)?.[0]===e}function G(e){return e.filter(e=>!!e).join(`, `)}function K(e,t=`en-US`){return e.replace(/^\p{CWU}/u,e=>e.toLocaleUpperCase(t))}function q(e,t){typeof process>`u`||process.env.NODE_ENV===`test`&&(!e||!(e instanceof HTMLElement)||!document?.body||document.body.contains(e)||console.warn(`The ${t} component is not attached to the document body. This may cause issues.`))}function J(e=document.documentElement){return!!e.hasAttribute(`data-overlayscrollbars`)}var Y=Symbol(`legacyScrollLockOwner`);function X(e){return J(e)?`d-scrollbar-disabled`:`d-of-hidden`}function Z(e=document.documentElement,t=Y){r(e,X(e),t)}function Q(e=document.documentElement,t=Y){a(e)?i(e,t):t===Y&&e.classList.remove(X(e))}function $(e){return e.replaceAll(/[ -]/g,`_`).replaceAll(/\W/g,``).toUpperCase()}var ee={getUniqueString:u,getRandomElement:d,getRandomInt:p,formatMessages:m,filterFormattedMessages:h,hasFormattedMessageOfType:_,getValidationState:g,htmlFragment:y,flushPromises:b,kebabCaseToPascalCase:S,extractVueListeners:w,extractNonListeners:T,removeClassStyleAttrs:D,returnFirstEl:E,debounce:O,isOutOfViewPort:k,getPhoneNumberRegex:z,linkRegex:V,isEmailAddress:W,isPhoneNumber:H,isURL:U,safeConcatStrings:G,capitalizeFirstLetter:K,disableRootScrolling:Z,enableRootScrolling:Q};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return W}});
2
- //# sourceMappingURL=utils-GofHWJKi.cjs.map
1
+ require(`./chunk-BK-Lzi7j.cjs`);const e=require(`./common/constants/index.cjs`);let t=require(`vue`);var n=new WeakMap;function r(e,t,r){let i=n.get(e);i||(i=new Map,n.set(e,i)),!i.has(r)&&(i.set(r,t),e.classList.add(t))}function i(e,t){let r=n.get(e),i=r?.get(t);if(i){r.delete(t),r.size||n.delete(e);for(let e of r.values())if(e===i)return;e.classList.remove(i)}}function a(e){return n.has(e)}var o=0,s,c=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`,l=typeof setImmediate==`function`?setImmediate:setTimeout;function u(e=`dt`){return`${e}${o++}`}function d(e,t){if(t){let n=f(t);return e[Math.abs(n)%e.length]}else return e[p(e.length)]}function f(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function p(e){return Math.floor(Math.random()*e)}function m(t){return t?t.map(t=>typeof t==`string`?{message:t,type:e.DEFAULT_VALIDATION_MESSAGE_TYPE}:t):[]}function h(e){let t=g(e);return!e||!t?[]:e.filter(e=>!!e.message&&e.type===t)}function g(t){return t?_(t,e.VALIDATION_MESSAGE_TYPES.CRITICAL)?e.VALIDATION_MESSAGE_TYPES.CRITICAL:_(t,e.VALIDATION_MESSAGE_TYPES.WARNING)?e.VALIDATION_MESSAGE_TYPES.WARNING:_(t,e.VALIDATION_MESSAGE_TYPES.POSITIVE)?e.VALIDATION_MESSAGE_TYPES.POSITIVE:_(t,e.VALIDATION_MESSAGE_TYPES.INFO)?e.VALIDATION_MESSAGE_TYPES.INFO:null:null}function _(e,t){return!e||!t?!1:e.some(e=>e?.type===t)}function v(e){return e?.querySelector(c)}var y=e=>(0,t.h)(`div`,{innerHTML:e.html}),b=()=>new Promise(e=>{l(e)});function x(e,n={}){return e?e(n).some(e=>e.type===t.Comment||Array.isArray(e.children)&&!e.children.length?!1:e.type!==t.Text||typeof e.children==`string`&&e.children.trim()!==``):!1}var S=e=>e?.toLowerCase().split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),C=e=>e.replace(/\.?([A-Z0-9]+)/g,(e,t)=>`-`+t.toLowerCase()).replace(/^-/,``),w=e=>{let t=Object.entries(e).filter(([e])=>e.match(/on[A-Z]/));return Object.fromEntries(t)},T=e=>{let t=Object.entries(e).filter(([e])=>!e.match(/on[A-Z]/));return Object.fromEntries(t)},E=e=>e?.nodeType===Node.ELEMENT_NODE?e:e?.nodeType?E(e?.nextSibling):null;function D(e){let t=Object.entries(e).filter(([e])=>![`class`,`style`].includes(e));return Object.fromEntries(t)}function O(e,t=300){clearTimeout(s),s=setTimeout(e,t)}function k(e){let t=e.getBoundingClientRect(),n={top:t.top<0,left:t.left<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight),right:t.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(e=>e),n.all=Object.values(n).every(e=>e),n}var A=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,j=RegExp(`(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)`),M=RegExp(`(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])`),N=RegExp(`(?:`+[[A.source,j.source].join(`+`),M.source].join(`|`)+`)`),P=/(?:(?:[;/][^#?<>\s]*)?)/,F=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,I=RegExp(`\\b`+[N.source,P.source,F.source,`(?!\\w)`].join(`+`)),L=/\b[a-z\d.-]+:\/\/[^<>\s]+/,R=RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[N.source,F.source].join(`+`)+`(?!\\w)`);function z(e=7,t=15){try{return RegExp(`(?:^|(?<=\\W))(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|\$)|\\s|\$)`)}catch{console.warn(`This browser doesn't support regex lookahead/lookbehind`)}return RegExp(`(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|\$)|\\s|\$)`)}var B=z(),V=new RegExp([I.source,L.source,R.source,B.source].join(`|`),`gi`);function H(e){return!e||![`string`,`number`].includes(typeof e)?!1:(e=e.toString(),B.exec(e)?.[0]===e)}function U(e){return!e||typeof e!=`string`?!1:I.exec(e)?.[0]===e||L.exec(e)?.[0]===e}function W(e){return!e||typeof e!=`string`?!1:R.exec(e)?.[0]===e}function G(e){return e.filter(e=>!!e).join(`, `)}function K(e,t=`en-US`){return e.replace(/^\p{CWU}/u,e=>e.toLocaleUpperCase(t))}function q(e,t){typeof process>`u`||process.env.NODE_ENV===`test`&&(!e||!(e instanceof HTMLElement)||!document?.body||document.body.contains(e)||console.warn(`The ${t} component is not attached to the document body. This may cause issues.`))}function J(e=document.documentElement){return!!e.hasAttribute(`data-overlayscrollbars`)}var Y=Symbol(`legacyScrollLockOwner`);function X(e){return J(e)?`d-scrollbar-disabled`:`d-of-hidden`}function Z(e=document.documentElement,t=Y){r(e,X(e),t)}function Q(e=document.documentElement,t=Y){a(e)?i(e,t):t===Y&&e.classList.remove(X(e))}function $(e){return e.replaceAll(/[ -]/g,`_`).replaceAll(/\W/g,``).toUpperCase()}var ee={getUniqueString:u,getRandomElement:d,getRandomInt:p,formatMessages:m,filterFormattedMessages:h,hasFormattedMessageOfType:_,getValidationState:g,htmlFragment:y,flushPromises:b,kebabCaseToPascalCase:S,extractVueListeners:w,extractNonListeners:T,removeClassStyleAttrs:D,returnFirstEl:E,debounce:O,isOutOfViewPort:k,getPhoneNumberRegex:z,linkRegex:V,isEmailAddress:W,isPhoneNumber:H,isURL:U,safeConcatStrings:G,capitalizeFirstLetter:K,disableRootScrolling:Z,enableRootScrolling:Q};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return W}});
2
+ //# sourceMappingURL=utils-Db-kV6Sr.cjs.map