@nextcloud/vue 8.8.1 → 8.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/Components/NcActionButton.cjs +3 -3
  3. package/dist/Components/NcActionButton.mjs +6 -6
  4. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  5. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  6. package/dist/Components/NcActionCaption.cjs +2 -2
  7. package/dist/Components/NcActionCaption.mjs +2 -2
  8. package/dist/Components/NcActionCheckbox.cjs +2 -2
  9. package/dist/Components/NcActionCheckbox.mjs +4 -4
  10. package/dist/Components/NcActionInput.cjs +1 -1
  11. package/dist/Components/NcActionInput.mjs +1 -1
  12. package/dist/Components/NcActionLink.cjs +3 -3
  13. package/dist/Components/NcActionLink.mjs +4 -4
  14. package/dist/Components/NcActionRadio.cjs +2 -2
  15. package/dist/Components/NcActionRadio.mjs +4 -4
  16. package/dist/Components/NcActionRouter.cjs +3 -3
  17. package/dist/Components/NcActionRouter.mjs +4 -4
  18. package/dist/Components/NcActionSeparator.cjs +2 -2
  19. package/dist/Components/NcActionSeparator.mjs +2 -2
  20. package/dist/Components/NcActionText.cjs +3 -3
  21. package/dist/Components/NcActionText.mjs +4 -4
  22. package/dist/Components/NcActionTextEditable.cjs +3 -3
  23. package/dist/Components/NcActionTextEditable.mjs +6 -6
  24. package/dist/Components/NcActions.cjs +1 -1
  25. package/dist/Components/NcActions.mjs +1 -1
  26. package/dist/Components/NcAppContent.cjs +1 -1
  27. package/dist/Components/NcAppContent.mjs +1 -1
  28. package/dist/Components/NcAppContentDetails.cjs +1 -1
  29. package/dist/Components/NcAppContentDetails.mjs +1 -1
  30. package/dist/Components/NcAppContentList.cjs +1 -1
  31. package/dist/Components/NcAppContentList.mjs +1 -1
  32. package/dist/Components/NcAppNavigation.cjs +1 -1
  33. package/dist/Components/NcAppNavigation.mjs +1 -1
  34. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  35. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  36. package/dist/Components/NcAppNavigationIconBullet.cjs +2 -2
  37. package/dist/Components/NcAppNavigationIconBullet.mjs +2 -2
  38. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  39. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  40. package/dist/Components/NcAppNavigationList.cjs +6 -6
  41. package/dist/Components/NcAppNavigationList.cjs.map +1 -1
  42. package/dist/Components/NcAppNavigationList.mjs +6 -6
  43. package/dist/Components/NcAppNavigationList.mjs.map +1 -1
  44. package/dist/Components/NcAppNavigationNew.cjs +2 -2
  45. package/dist/Components/NcAppNavigationNew.mjs +2 -2
  46. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  47. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  48. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  49. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  50. package/dist/Components/NcAppNavigationSpacer.cjs +2 -2
  51. package/dist/Components/NcAppNavigationSpacer.mjs +2 -2
  52. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  53. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  54. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  55. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  56. package/dist/Components/NcAppSettingsSection.cjs +8 -5
  57. package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
  58. package/dist/Components/NcAppSettingsSection.mjs +8 -5
  59. package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
  60. package/dist/Components/NcAppSidebar.cjs +1 -1
  61. package/dist/Components/NcAppSidebar.mjs +1 -1
  62. package/dist/Components/NcAppSidebarTab.cjs +5 -4
  63. package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
  64. package/dist/Components/NcAppSidebarTab.mjs +5 -4
  65. package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
  66. package/dist/Components/NcAvatar.cjs +1 -1
  67. package/dist/Components/NcAvatar.mjs +1 -1
  68. package/dist/Components/NcBreadcrumb.cjs +1 -1
  69. package/dist/Components/NcBreadcrumb.mjs +1 -1
  70. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  71. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  72. package/dist/Components/NcButton.cjs +27 -26
  73. package/dist/Components/NcButton.cjs.map +1 -1
  74. package/dist/Components/NcButton.mjs +28 -27
  75. package/dist/Components/NcButton.mjs.map +1 -1
  76. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  77. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  78. package/dist/Components/NcColorPicker.cjs +1 -1
  79. package/dist/Components/NcColorPicker.mjs +1 -1
  80. package/dist/Components/NcContent.cjs +1 -1
  81. package/dist/Components/NcContent.mjs +1 -1
  82. package/dist/Components/NcCounterBubble.cjs +2 -2
  83. package/dist/Components/NcCounterBubble.mjs +2 -2
  84. package/dist/Components/NcDashboardWidget.cjs +1 -1
  85. package/dist/Components/NcDashboardWidget.mjs +1 -1
  86. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  87. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  88. package/dist/Components/NcDateTime.cjs +1 -1
  89. package/dist/Components/NcDateTime.mjs +1 -1
  90. package/dist/Components/NcDateTimePicker.cjs +42 -40
  91. package/dist/Components/NcDateTimePicker.cjs.map +1 -1
  92. package/dist/Components/NcDateTimePicker.mjs +27 -25
  93. package/dist/Components/NcDateTimePicker.mjs.map +1 -1
  94. package/dist/Components/NcDateTimePickerNative.cjs +11 -11
  95. package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
  96. package/dist/Components/NcDateTimePickerNative.mjs +12 -12
  97. package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
  98. package/dist/Components/NcDialog.cjs +1 -1
  99. package/dist/Components/NcDialog.mjs +1 -1
  100. package/dist/Components/NcDialogButton.cjs +1 -1
  101. package/dist/Components/NcDialogButton.mjs +1 -1
  102. package/dist/Components/NcEllipsisedOption.cjs +2 -2
  103. package/dist/Components/NcEllipsisedOption.mjs +3 -3
  104. package/dist/Components/NcEmojiPicker.cjs +1 -1
  105. package/dist/Components/NcEmojiPicker.mjs +1 -1
  106. package/dist/Components/NcEmptyContent.cjs +9 -8
  107. package/dist/Components/NcEmptyContent.cjs.map +1 -1
  108. package/dist/Components/NcEmptyContent.mjs +9 -8
  109. package/dist/Components/NcEmptyContent.mjs.map +1 -1
  110. package/dist/Components/NcGuestContent.cjs +2 -2
  111. package/dist/Components/NcGuestContent.mjs +2 -2
  112. package/dist/Components/NcHeaderMenu.cjs +1 -1
  113. package/dist/Components/NcHeaderMenu.mjs +1 -1
  114. package/dist/Components/NcHighlight.cjs +1 -1
  115. package/dist/Components/NcHighlight.mjs +1 -1
  116. package/dist/Components/NcIconSvgWrapper.cjs +1 -1
  117. package/dist/Components/NcIconSvgWrapper.mjs +1 -1
  118. package/dist/Components/NcInputField.cjs +4 -4
  119. package/dist/Components/NcInputField.cjs.map +1 -1
  120. package/dist/Components/NcInputField.mjs +7 -7
  121. package/dist/Components/NcInputField.mjs.map +1 -1
  122. package/dist/Components/NcListItem.cjs +1 -1
  123. package/dist/Components/NcListItem.mjs +1 -1
  124. package/dist/Components/NcListItemIcon.cjs +1 -1
  125. package/dist/Components/NcListItemIcon.mjs +1 -1
  126. package/dist/Components/NcLoadingIcon.cjs +2 -2
  127. package/dist/Components/NcLoadingIcon.mjs +2 -2
  128. package/dist/Components/NcModal.cjs +8 -7
  129. package/dist/Components/NcModal.cjs.map +1 -1
  130. package/dist/Components/NcModal.mjs +19 -18
  131. package/dist/Components/NcModal.mjs.map +1 -1
  132. package/dist/Components/NcNoteCard.cjs +3 -3
  133. package/dist/Components/NcNoteCard.mjs +3 -3
  134. package/dist/Components/NcPasswordField.cjs +1 -1
  135. package/dist/Components/NcPasswordField.mjs +1 -1
  136. package/dist/Components/NcPopover.cjs +1 -1
  137. package/dist/Components/NcPopover.mjs +1 -1
  138. package/dist/Components/NcProgressBar.cjs +1 -1
  139. package/dist/Components/NcProgressBar.mjs +1 -1
  140. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  141. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  142. package/dist/Components/NcRichContenteditable.cjs +1 -1
  143. package/dist/Components/NcRichContenteditable.mjs +2 -2
  144. package/dist/Components/NcRichText.cjs +1 -1
  145. package/dist/Components/NcRichText.cjs.map +1 -1
  146. package/dist/Components/NcRichText.mjs +8 -8
  147. package/dist/Components/NcRichText.mjs.map +1 -1
  148. package/dist/Components/NcSavingIndicatorIcon.cjs +1 -1
  149. package/dist/Components/NcSavingIndicatorIcon.mjs +1 -1
  150. package/dist/Components/NcSelect.cjs +1 -1
  151. package/dist/Components/NcSelect.mjs +1 -1
  152. package/dist/Components/NcSelectTags.cjs +1 -1
  153. package/dist/Components/NcSelectTags.mjs +1 -1
  154. package/dist/Components/NcSettingsInputText.cjs +1 -1
  155. package/dist/Components/NcSettingsInputText.mjs +1 -1
  156. package/dist/Components/NcSettingsSection.cjs +1 -1
  157. package/dist/Components/NcSettingsSection.mjs +1 -1
  158. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  159. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  160. package/dist/Components/NcTextArea.cjs +4 -4
  161. package/dist/Components/NcTextArea.cjs.map +1 -1
  162. package/dist/Components/NcTextArea.mjs +7 -7
  163. package/dist/Components/NcTextArea.mjs.map +1 -1
  164. package/dist/Components/NcTextField.cjs +1 -1
  165. package/dist/Components/NcTextField.mjs +1 -1
  166. package/dist/Components/NcTimezonePicker.cjs +1 -1
  167. package/dist/Components/NcTimezonePicker.mjs +1 -1
  168. package/dist/Components/NcUserBubble.cjs +1 -1
  169. package/dist/Components/NcUserBubble.mjs +1 -1
  170. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  171. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  172. package/dist/Components/NcVNodes.cjs +11 -10
  173. package/dist/Components/NcVNodes.cjs.map +1 -1
  174. package/dist/Components/NcVNodes.mjs +12 -11
  175. package/dist/Components/NcVNodes.mjs.map +1 -1
  176. package/dist/Directives/Linkify.cjs +5 -4
  177. package/dist/Directives/Linkify.cjs.map +1 -1
  178. package/dist/Directives/Linkify.mjs +6 -5
  179. package/dist/Directives/Linkify.mjs.map +1 -1
  180. package/dist/Directives/Tooltip.cjs +1 -1
  181. package/dist/Directives/Tooltip.mjs +1 -1
  182. package/dist/Functions/reference.cjs +2 -1
  183. package/dist/Functions/reference.cjs.map +1 -1
  184. package/dist/Functions/reference.mjs +12 -11
  185. package/dist/Functions/registerReference.cjs +11 -69
  186. package/dist/Functions/registerReference.cjs.map +1 -1
  187. package/dist/Functions/registerReference.mjs +9 -67
  188. package/dist/Functions/registerReference.mjs.map +1 -1
  189. package/dist/Functions/usernameToColor.cjs +1 -1
  190. package/dist/Functions/usernameToColor.mjs +1 -1
  191. package/dist/Mixins/richEditor.cjs +2 -2
  192. package/dist/Mixins/richEditor.mjs +2 -2
  193. package/dist/assets/{NcActions-mt8BQ_bn.css → NcActions-CEbgl0_n.css} +12 -12
  194. package/dist/assets/{NcAppContent-SZz3PTd8.css → NcAppContent-Cv8rRTyy.css} +1 -0
  195. package/dist/assets/{NcAppNavigation-9nlYnuUQ.css → NcAppNavigation-D4ZBCJrI.css} +18 -8
  196. package/dist/assets/{NcAppNavigationList-RooPPg4w.css → NcAppNavigationList-Bj9PwL4X.css} +3 -7
  197. package/dist/assets/{NcDateTimePicker-IOou-rT3.css → NcDateTimePicker-BChLYJ5X.css} +10 -10
  198. package/dist/assets/{NcEmojiPicker-hTlSVIq0.css → NcEmojiPicker-B-4WNYcx.css} +1 -0
  199. package/dist/assets/{NcRelatedResourcesPanel-oq5eMIoh.css → NcRelatedResourcesPanel-COW9gzml.css} +72 -6
  200. package/dist/assets/{NcRichText-kDp48Nji.css → NcRichText-BMe-xENJ.css} +5 -2
  201. package/dist/assets/{referencePickerModal-A0PlFUEI.css → referencePickerModal-C1KJzICb.css} +34 -14
  202. package/dist/chunks/{AlertCircleOutline-HYz1lvHU.cjs → AlertCircleOutline-DHFN4OkX.cjs} +1 -1
  203. package/dist/chunks/{AlertCircleOutline-HYz1lvHU.cjs.map → AlertCircleOutline-DHFN4OkX.cjs.map} +1 -1
  204. package/dist/chunks/{AlertCircleOutline-XY0EPUmQ.mjs → AlertCircleOutline-U_bhL30C.mjs} +1 -1
  205. package/dist/chunks/{AlertCircleOutline-XY0EPUmQ.mjs.map → AlertCircleOutline-U_bhL30C.mjs.map} +1 -1
  206. package/dist/chunks/{ArrowLeft-fC5aEWWu.cjs → ArrowLeft-CjNnGIlF.cjs} +1 -1
  207. package/dist/chunks/{ArrowLeft-fC5aEWWu.cjs.map → ArrowLeft-CjNnGIlF.cjs.map} +1 -1
  208. package/dist/chunks/{ArrowLeft-uW5eNVkY.mjs → ArrowLeft-kklNBL9z.mjs} +1 -1
  209. package/dist/chunks/{ArrowLeft-uW5eNVkY.mjs.map → ArrowLeft-kklNBL9z.mjs.map} +1 -1
  210. package/dist/chunks/{ArrowRight-16bLxoZc.mjs → ArrowRight-C3BxTDjF.mjs} +1 -1
  211. package/dist/chunks/{ArrowRight-16bLxoZc.mjs.map → ArrowRight-C3BxTDjF.mjs.map} +1 -1
  212. package/dist/chunks/{ArrowRight-uUC8qW2c.cjs → ArrowRight-CxzzJJQ6.cjs} +1 -1
  213. package/dist/chunks/{ArrowRight-uUC8qW2c.cjs.map → ArrowRight-CxzzJJQ6.cjs.map} +1 -1
  214. package/dist/chunks/{Check-qy5XrF1J.mjs → Check-CRLmJNGG.mjs} +1 -1
  215. package/dist/chunks/{Check-qy5XrF1J.mjs.map → Check-CRLmJNGG.mjs.map} +1 -1
  216. package/dist/chunks/{Check-QBzDcHpr.cjs → Check-CVn5nytg.cjs} +1 -1
  217. package/dist/chunks/{Check-QBzDcHpr.cjs.map → Check-CVn5nytg.cjs.map} +1 -1
  218. package/dist/chunks/{ChevronDown-Hc_DTRav.cjs → ChevronDown-DQPox_nl.cjs} +1 -1
  219. package/dist/chunks/{ChevronDown-Hc_DTRav.cjs.map → ChevronDown-DQPox_nl.cjs.map} +1 -1
  220. package/dist/chunks/{ChevronDown-suAKKmeb.mjs → ChevronDown-HHJdUMN4.mjs} +1 -1
  221. package/dist/chunks/{ChevronDown-suAKKmeb.mjs.map → ChevronDown-HHJdUMN4.mjs.map} +1 -1
  222. package/dist/chunks/{ChevronRight-MdQC55Yq.cjs → ChevronRight-BAJhNawb.cjs} +1 -1
  223. package/dist/chunks/{ChevronRight-MdQC55Yq.cjs.map → ChevronRight-BAJhNawb.cjs.map} +1 -1
  224. package/dist/chunks/{ChevronRight-9owhU_17.mjs → ChevronRight-DL3e8bjj.mjs} +1 -1
  225. package/dist/chunks/{ChevronRight-9owhU_17.mjs.map → ChevronRight-DL3e8bjj.mjs.map} +1 -1
  226. package/dist/chunks/ChevronUp-B6TIgl1a.mjs +37 -0
  227. package/dist/chunks/ChevronUp-B6TIgl1a.mjs.map +1 -0
  228. package/dist/chunks/ChevronUp-kmHRpe7H.cjs +35 -0
  229. package/dist/chunks/ChevronUp-kmHRpe7H.cjs.map +1 -0
  230. package/dist/chunks/{Close-QtH6_3PP.mjs → Close-BtO5TPBO.mjs} +1 -1
  231. package/dist/chunks/{Close-QtH6_3PP.mjs.map → Close-BtO5TPBO.mjs.map} +1 -1
  232. package/dist/chunks/{Close-dotk0707.cjs → Close-DBfrdXMw.cjs} +1 -1
  233. package/dist/chunks/{Close-dotk0707.cjs.map → Close-DBfrdXMw.cjs.map} +1 -1
  234. package/dist/chunks/{DotsHorizontal-6hepLUSS.cjs → DotsHorizontal-B8kTqpHe.cjs} +1 -1
  235. package/dist/chunks/{DotsHorizontal-6hepLUSS.cjs.map → DotsHorizontal-B8kTqpHe.cjs.map} +1 -1
  236. package/dist/chunks/{DotsHorizontal-IbmXTXRA.mjs → DotsHorizontal-DfVgEXgz.mjs} +1 -1
  237. package/dist/chunks/{DotsHorizontal-IbmXTXRA.mjs.map → DotsHorizontal-DfVgEXgz.mjs.map} +1 -1
  238. package/dist/chunks/{GenColors-DI6G7se8.mjs → GenColors-BteFtwOv.mjs} +3 -3
  239. package/dist/chunks/{GenColors-DI6G7se8.mjs.map → GenColors-BteFtwOv.mjs.map} +1 -1
  240. package/dist/chunks/{GenColors-WX-nGJls.cjs → GenColors-vI-bx9ZY.cjs} +3 -3
  241. package/dist/chunks/{GenColors-WX-nGJls.cjs.map → GenColors-vI-bx9ZY.cjs.map} +1 -1
  242. package/dist/chunks/{GenRandomId-ULxaMkkr.cjs.map → GenRandomId-B2O1GMbH.cjs.map} +1 -1
  243. package/dist/chunks/{GenRandomId-VodkdWbp.mjs.map → GenRandomId-BW3iYFf9.mjs.map} +1 -1
  244. package/dist/chunks/{Linkify-V7PfCeZ8.mjs.map → Linkify-BaDLLFxP.mjs.map} +1 -1
  245. package/dist/chunks/{Linkify-f3s3nAe_.cjs.map → Linkify-Dola0NBa.cjs.map} +1 -1
  246. package/dist/chunks/{NcActionButtonGroup-vn4L_-bD.cjs → NcActionButtonGroup-BdxkXNwc.cjs} +3 -3
  247. package/dist/chunks/{NcActionButtonGroup-vn4L_-bD.cjs.map → NcActionButtonGroup-BdxkXNwc.cjs.map} +1 -1
  248. package/dist/chunks/{NcActionButtonGroup-r7iOjoQx.mjs → NcActionButtonGroup-SS3PkUD2.mjs} +5 -5
  249. package/dist/chunks/{NcActionButtonGroup-r7iOjoQx.mjs.map → NcActionButtonGroup-SS3PkUD2.mjs.map} +1 -1
  250. package/dist/chunks/{NcActionInput-rojOjWGA.mjs → NcActionInput-BHq3Le0q.mjs} +9 -9
  251. package/dist/chunks/{NcActionInput-rojOjWGA.mjs.map → NcActionInput-BHq3Le0q.mjs.map} +1 -1
  252. package/dist/chunks/{NcActionInput-iUn4neUB.cjs → NcActionInput-D308ZntG.cjs} +4 -4
  253. package/dist/chunks/{NcActionInput-iUn4neUB.cjs.map → NcActionInput-D308ZntG.cjs.map} +1 -1
  254. package/dist/chunks/{NcActions-4NCnCJdf.mjs → NcActions-CpU9WXzM.mjs} +135 -131
  255. package/dist/chunks/{NcActions-4NCnCJdf.mjs.map → NcActions-CpU9WXzM.mjs.map} +1 -1
  256. package/dist/chunks/{NcActions-tPPh2p8F.cjs → NcActions-Dfkog_G0.cjs} +134 -130
  257. package/dist/chunks/{NcActions-tPPh2p8F.cjs.map → NcActions-Dfkog_G0.cjs.map} +1 -1
  258. package/dist/chunks/{NcAppContent-jkpg6g7U.mjs → NcAppContent-BDwOdxJE.mjs} +6 -6
  259. package/dist/chunks/{NcAppContent-jkpg6g7U.mjs.map → NcAppContent-BDwOdxJE.mjs.map} +1 -1
  260. package/dist/chunks/{NcAppContent-ZjNUuV0Q.cjs → NcAppContent-kqYjKpzU.cjs} +6 -6
  261. package/dist/chunks/{NcAppContent-ZjNUuV0Q.cjs.map → NcAppContent-kqYjKpzU.cjs.map} +1 -1
  262. package/dist/chunks/{NcAppNavigation-jWJsOIts.mjs → NcAppNavigation-BRtyTvKt.mjs} +19 -19
  263. package/dist/chunks/NcAppNavigation-BRtyTvKt.mjs.map +1 -0
  264. package/dist/chunks/{NcAppNavigation-CNOTInDF.cjs → NcAppNavigation-DMxORgkV.cjs} +15 -15
  265. package/dist/chunks/NcAppNavigation-DMxORgkV.cjs.map +1 -0
  266. package/dist/chunks/{NcAppNavigationCaption-HAxOA6LJ.cjs → NcAppNavigationCaption-BKchbDsJ.cjs} +2 -2
  267. package/dist/chunks/{NcAppNavigationCaption-HAxOA6LJ.cjs.map → NcAppNavigationCaption-BKchbDsJ.cjs.map} +1 -1
  268. package/dist/chunks/{NcAppNavigationCaption-t_NRjmPr.mjs → NcAppNavigationCaption-DsT6O4Hx.mjs} +3 -3
  269. package/dist/chunks/{NcAppNavigationCaption-t_NRjmPr.mjs.map → NcAppNavigationCaption-DsT6O4Hx.mjs.map} +1 -1
  270. package/dist/chunks/{NcAppNavigationItem-MA9ORoUF.cjs → NcAppNavigationItem-CABF2T4q.cjs} +47 -79
  271. package/dist/chunks/NcAppNavigationItem-CABF2T4q.cjs.map +1 -0
  272. package/dist/chunks/{NcAppNavigationItem-_F3PGjJA.mjs → NcAppNavigationItem-bjPcEx5D.mjs} +55 -86
  273. package/dist/chunks/NcAppNavigationItem-bjPcEx5D.mjs.map +1 -0
  274. package/dist/chunks/{NcAppNavigationNewItem-AChqGXVZ.mjs → NcAppNavigationNewItem-BHCgaCoK.mjs} +3 -3
  275. package/dist/chunks/{NcAppNavigationNewItem-AChqGXVZ.mjs.map → NcAppNavigationNewItem-BHCgaCoK.mjs.map} +1 -1
  276. package/dist/chunks/{NcAppNavigationNewItem-CDAeQ7VS.cjs → NcAppNavigationNewItem-t45tM5u1.cjs} +2 -2
  277. package/dist/chunks/{NcAppNavigationNewItem-CDAeQ7VS.cjs.map → NcAppNavigationNewItem-t45tM5u1.cjs.map} +1 -1
  278. package/dist/chunks/{NcAppNavigationSettings-1n_Ld521.mjs → NcAppNavigationSettings-BQD7JA4m.mjs} +4 -4
  279. package/dist/chunks/{NcAppNavigationSettings-1n_Ld521.mjs.map → NcAppNavigationSettings-BQD7JA4m.mjs.map} +1 -1
  280. package/dist/chunks/{NcAppNavigationSettings-qW2qjrEY.cjs → NcAppNavigationSettings-CBeUiVLk.cjs} +5 -5
  281. package/dist/chunks/{NcAppNavigationSettings-qW2qjrEY.cjs.map → NcAppNavigationSettings-CBeUiVLk.cjs.map} +1 -1
  282. package/dist/chunks/{NcAppNavigationToggle-H-gUVQa_.mjs → NcAppNavigationToggle-BZxbkhCr.mjs} +3 -3
  283. package/dist/chunks/{NcAppNavigationToggle-H-gUVQa_.mjs.map → NcAppNavigationToggle-BZxbkhCr.mjs.map} +1 -1
  284. package/dist/chunks/{NcAppNavigationToggle-mJ8JlXiA.cjs → NcAppNavigationToggle-DDChOnAq.cjs} +2 -2
  285. package/dist/chunks/{NcAppNavigationToggle-mJ8JlXiA.cjs.map → NcAppNavigationToggle-DDChOnAq.cjs.map} +1 -1
  286. package/dist/chunks/{NcAppSettingsDialog-Sra5JJSN.mjs → NcAppSettingsDialog-DeFBTD2J.mjs} +35 -28
  287. package/dist/chunks/{NcAppSettingsDialog-JAKe849o.cjs.map → NcAppSettingsDialog-DeFBTD2J.mjs.map} +1 -1
  288. package/dist/chunks/{NcAppSettingsDialog-JAKe849o.cjs → NcAppSettingsDialog-EUys9Os_.cjs} +29 -22
  289. package/dist/chunks/{NcAppSettingsDialog-Sra5JJSN.mjs.map → NcAppSettingsDialog-EUys9Os_.cjs.map} +1 -1
  290. package/dist/chunks/{NcAppSidebar-3es9kNNh.mjs → NcAppSidebar-CdSvRI6l.mjs} +26 -22
  291. package/dist/chunks/{NcAppSidebar-3es9kNNh.mjs.map → NcAppSidebar-CdSvRI6l.mjs.map} +1 -1
  292. package/dist/chunks/{NcAppSidebar-8_YcevI9.cjs → NcAppSidebar-Du-IRmEO.cjs} +17 -13
  293. package/dist/chunks/{NcAppSidebar-8_YcevI9.cjs.map → NcAppSidebar-Du-IRmEO.cjs.map} +1 -1
  294. package/dist/chunks/{NcAvatar-Vp4PnmMw.cjs → NcAvatar-BEet_8fB.cjs} +57 -53
  295. package/dist/chunks/{NcAvatar-Vp4PnmMw.cjs.map → NcAvatar-BEet_8fB.cjs.map} +1 -1
  296. package/dist/chunks/{NcAvatar-MHywJkM4.mjs → NcAvatar-e0M-nnF6.mjs} +73 -69
  297. package/dist/chunks/{NcAvatar-MHywJkM4.mjs.map → NcAvatar-e0M-nnF6.mjs.map} +1 -1
  298. package/dist/chunks/{NcBreadcrumb-K8expM4Y.mjs → NcBreadcrumb-CVMyBckA.mjs} +7 -7
  299. package/dist/chunks/{NcBreadcrumb-K8expM4Y.mjs.map → NcBreadcrumb-CVMyBckA.mjs.map} +1 -1
  300. package/dist/chunks/{NcBreadcrumb-lksx7xyQ.cjs → NcBreadcrumb-DVXsgQkE.cjs} +4 -4
  301. package/dist/chunks/{NcBreadcrumb-lksx7xyQ.cjs.map → NcBreadcrumb-DVXsgQkE.cjs.map} +1 -1
  302. package/dist/chunks/{NcBreadcrumbs-cwBxvntJ.cjs → NcBreadcrumbs-DkgzO9f5.cjs} +103 -99
  303. package/dist/chunks/{NcBreadcrumbs-cwBxvntJ.cjs.map → NcBreadcrumbs-DkgzO9f5.cjs.map} +1 -1
  304. package/dist/chunks/{NcBreadcrumbs-rX1BVFSi.mjs → NcBreadcrumbs-DqRU0BfB.mjs} +65 -61
  305. package/dist/chunks/{NcBreadcrumbs-rX1BVFSi.mjs.map → NcBreadcrumbs-DqRU0BfB.mjs.map} +1 -1
  306. package/dist/chunks/{NcCheckboxRadioSwitch-hel9-sAH.mjs → NcCheckboxRadioSwitch-7Yib86y3.mjs} +6 -6
  307. package/dist/chunks/{NcCheckboxRadioSwitch-hel9-sAH.mjs.map → NcCheckboxRadioSwitch-7Yib86y3.mjs.map} +1 -1
  308. package/dist/chunks/{NcCheckboxRadioSwitch-BUIaJMqW.cjs → NcCheckboxRadioSwitch-Dt96X5bR.cjs} +5 -5
  309. package/dist/chunks/{NcCheckboxRadioSwitch-BUIaJMqW.cjs.map → NcCheckboxRadioSwitch-Dt96X5bR.cjs.map} +1 -1
  310. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-C1WLneXl.cjs +4 -0
  311. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-C1WLneXl.cjs.map +1 -0
  312. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-CKROuACA.mjs +3 -0
  313. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-CKROuACA.mjs.map +1 -0
  314. package/dist/chunks/{NcColorPicker-_OGhRcL2.cjs → NcColorPicker-BVqwn1Fr.cjs} +4 -5
  315. package/dist/chunks/{NcColorPicker-rdotuXIn.mjs.map → NcColorPicker-BVqwn1Fr.cjs.map} +1 -1
  316. package/dist/chunks/{NcColorPicker-rdotuXIn.mjs → NcColorPicker-Dkxeigs5.mjs} +11 -12
  317. package/dist/chunks/{NcColorPicker-_OGhRcL2.cjs.map → NcColorPicker-Dkxeigs5.mjs.map} +1 -1
  318. package/dist/chunks/NcContent-Bmeq8hLO.cjs +80 -0
  319. package/dist/chunks/{NcContent-M9BJMGg0.mjs.map → NcContent-Bmeq8hLO.cjs.map} +1 -1
  320. package/dist/chunks/NcContent-COIw1X7V.mjs +87 -0
  321. package/dist/chunks/{NcContent-qCB26fzT.cjs.map → NcContent-COIw1X7V.mjs.map} +1 -1
  322. package/dist/chunks/{NcDashboardWidget-oK144Mdz.mjs → NcDashboardWidget-Cxz_n1AN.mjs} +6 -6
  323. package/dist/chunks/{NcDashboardWidget-oK144Mdz.mjs.map → NcDashboardWidget-Cxz_n1AN.mjs.map} +1 -1
  324. package/dist/chunks/{NcDashboardWidget-ajzKRBC2.cjs → NcDashboardWidget-DArU3jbL.cjs} +3 -3
  325. package/dist/chunks/{NcDashboardWidget-ajzKRBC2.cjs.map → NcDashboardWidget-DArU3jbL.cjs.map} +1 -1
  326. package/dist/chunks/{NcDashboardWidgetItem-hmytFH9r.cjs → NcDashboardWidgetItem-BAhzcFfs.cjs} +2 -2
  327. package/dist/chunks/{NcDashboardWidgetItem-hmytFH9r.cjs.map → NcDashboardWidgetItem-BAhzcFfs.cjs.map} +1 -1
  328. package/dist/chunks/{NcDashboardWidgetItem-H0TN4xZv.mjs → NcDashboardWidgetItem-BV2tuXoj.mjs} +4 -4
  329. package/dist/chunks/{NcDashboardWidgetItem-H0TN4xZv.mjs.map → NcDashboardWidgetItem-BV2tuXoj.mjs.map} +1 -1
  330. package/dist/chunks/{NcDateTime-FfZJDKud.mjs → NcDateTime-B0oaElJX.mjs} +2 -2
  331. package/dist/chunks/{NcDateTime-FfZJDKud.mjs.map → NcDateTime-B0oaElJX.mjs.map} +1 -1
  332. package/dist/chunks/{NcDateTime-7m58XSm1.cjs → NcDateTime-Dl0XztMt.cjs} +1 -1
  333. package/dist/chunks/{NcDateTime-7m58XSm1.cjs.map → NcDateTime-Dl0XztMt.cjs.map} +1 -1
  334. package/dist/chunks/{NcDialog-f6KwlaqC.cjs → NcDialog-C6nYgBDF.cjs} +3 -3
  335. package/dist/chunks/{NcDialog-f6KwlaqC.cjs.map → NcDialog-C6nYgBDF.cjs.map} +1 -1
  336. package/dist/chunks/{NcDialog-_HZnlBi4.mjs → NcDialog-D6YSjidf.mjs} +5 -5
  337. package/dist/chunks/{NcDialog-_HZnlBi4.mjs.map → NcDialog-D6YSjidf.mjs.map} +1 -1
  338. package/dist/chunks/{NcDialogButton-CtdP0-DO.cjs → NcDialogButton-D7ibBxsQ.cjs} +11 -10
  339. package/dist/chunks/{NcDialogButton-xDZQrfsw.mjs.map → NcDialogButton-D7ibBxsQ.cjs.map} +1 -1
  340. package/dist/chunks/{NcDialogButton-xDZQrfsw.mjs → NcDialogButton-DQFoaN7q.mjs} +14 -13
  341. package/dist/chunks/{NcDialogButton-CtdP0-DO.cjs.map → NcDialogButton-DQFoaN7q.mjs.map} +1 -1
  342. package/dist/chunks/{NcEmojiPicker-fsigxTm2.cjs → NcEmojiPicker-BCdoIKXJ.cjs} +54 -52
  343. package/dist/chunks/{NcEmojiPicker-fsigxTm2.cjs.map → NcEmojiPicker-BCdoIKXJ.cjs.map} +1 -1
  344. package/dist/chunks/{NcEmojiPicker-g4_HENyr.mjs → NcEmojiPicker-fRx7dTTf.mjs} +12 -10
  345. package/dist/chunks/{NcEmojiPicker-g4_HENyr.mjs.map → NcEmojiPicker-fRx7dTTf.mjs.map} +1 -1
  346. package/dist/chunks/{NcHeaderMenu-0d6eqre6.cjs → NcHeaderMenu-BUeI4DGP.cjs} +11 -9
  347. package/dist/chunks/{NcHeaderMenu-0d6eqre6.cjs.map → NcHeaderMenu-BUeI4DGP.cjs.map} +1 -1
  348. package/dist/chunks/{NcHeaderMenu-91qMsRIw.mjs → NcHeaderMenu-CXBimxcN.mjs} +11 -9
  349. package/dist/chunks/{NcHeaderMenu-91qMsRIw.mjs.map → NcHeaderMenu-CXBimxcN.mjs.map} +1 -1
  350. package/dist/chunks/{NcIconSvgWrapper-CvnWKK7h.mjs → NcIconSvgWrapper-BTdzvQGV.mjs} +3 -3
  351. package/dist/chunks/{NcIconSvgWrapper-CvnWKK7h.mjs.map → NcIconSvgWrapper-BTdzvQGV.mjs.map} +1 -1
  352. package/dist/chunks/{NcIconSvgWrapper-RwagV5P9.cjs → NcIconSvgWrapper-kIn1eQyv.cjs} +3 -3
  353. package/dist/chunks/{NcIconSvgWrapper-RwagV5P9.cjs.map → NcIconSvgWrapper-kIn1eQyv.cjs.map} +1 -1
  354. package/dist/chunks/{NcInputConfirmCancel-1G2LMh5T.mjs → NcInputConfirmCancel-BXZqwqY6.mjs} +5 -5
  355. package/dist/chunks/{NcInputConfirmCancel-1G2LMh5T.mjs.map → NcInputConfirmCancel-BXZqwqY6.mjs.map} +1 -1
  356. package/dist/chunks/{NcInputConfirmCancel-9l24xmqk.cjs → NcInputConfirmCancel-DpgXTGmT.cjs} +2 -2
  357. package/dist/chunks/{NcInputConfirmCancel-9l24xmqk.cjs.map → NcInputConfirmCancel-DpgXTGmT.cjs.map} +1 -1
  358. package/dist/chunks/{NcListItem-JO4s1J8T.mjs → NcListItem-C5oWvAZQ.mjs} +5 -5
  359. package/dist/chunks/{NcListItem-JO4s1J8T.mjs.map → NcListItem-C5oWvAZQ.mjs.map} +1 -1
  360. package/dist/chunks/{NcListItem-y9KnglaX.cjs → NcListItem-wxqWqs4s.cjs} +3 -3
  361. package/dist/chunks/{NcListItem-y9KnglaX.cjs.map → NcListItem-wxqWqs4s.cjs.map} +1 -1
  362. package/dist/chunks/{NcListItemIcon-JWu3t5En.cjs → NcListItemIcon-DfdkSCin.cjs} +6 -5
  363. package/dist/chunks/{NcListItemIcon-JWu3t5En.cjs.map → NcListItemIcon-DfdkSCin.cjs.map} +1 -1
  364. package/dist/chunks/{NcListItemIcon-NPSUuwgH.mjs → NcListItemIcon-WH9TUCxb.mjs} +8 -7
  365. package/dist/chunks/{NcListItemIcon-NPSUuwgH.mjs.map → NcListItemIcon-WH9TUCxb.mjs.map} +1 -1
  366. package/dist/chunks/{NcPasswordField-sshf3uoz.mjs → NcPasswordField-BPAivxc_.mjs} +38 -38
  367. package/dist/chunks/{NcPasswordField-sshf3uoz.mjs.map → NcPasswordField-BPAivxc_.mjs.map} +1 -1
  368. package/dist/chunks/{NcPasswordField-r4LxrITz.cjs → NcPasswordField-BgNcvN0V.cjs} +16 -16
  369. package/dist/chunks/{NcPasswordField-r4LxrITz.cjs.map → NcPasswordField-BgNcvN0V.cjs.map} +1 -1
  370. package/dist/chunks/{NcPopover-93ns_0K4.mjs → NcPopover--V3R3EKV.mjs} +39 -33
  371. package/dist/chunks/{NcPopover-93ns_0K4.mjs.map → NcPopover--V3R3EKV.mjs.map} +1 -1
  372. package/dist/chunks/{NcPopover-fv7OFtxM.cjs → NcPopover-h-t7Dnjk.cjs} +16 -10
  373. package/dist/chunks/{NcPopover-fv7OFtxM.cjs.map → NcPopover-h-t7Dnjk.cjs.map} +1 -1
  374. package/dist/chunks/{NcProgressBar-BthaVVHU.cjs → NcProgressBar-BYk5hfPI.cjs} +3 -3
  375. package/dist/chunks/{NcProgressBar-BthaVVHU.cjs.map → NcProgressBar-BYk5hfPI.cjs.map} +1 -1
  376. package/dist/chunks/{NcProgressBar-h2ufKS6c.mjs → NcProgressBar-DDAeXyp8.mjs} +3 -3
  377. package/dist/chunks/{NcProgressBar-h2ufKS6c.mjs.map → NcProgressBar-DDAeXyp8.mjs.map} +1 -1
  378. package/dist/chunks/NcRelatedResourcesPanel-Cp8Au2iI.cjs +371 -0
  379. package/dist/chunks/NcRelatedResourcesPanel-Cp8Au2iI.cjs.map +1 -0
  380. package/dist/chunks/NcRelatedResourcesPanel-LTNqJecS.mjs +381 -0
  381. package/dist/chunks/NcRelatedResourcesPanel-LTNqJecS.mjs.map +1 -0
  382. package/dist/chunks/{NcRichContenteditable-1aWhJhMf.mjs → NcRichContenteditable-CHggLQuR.mjs} +42 -35
  383. package/dist/chunks/{NcRichContenteditable-1aWhJhMf.mjs.map → NcRichContenteditable-CHggLQuR.mjs.map} +1 -1
  384. package/dist/chunks/{NcRichContenteditable-tQi-Ee-6.cjs → NcRichContenteditable-hT5m_2tr.cjs} +120 -113
  385. package/dist/chunks/{NcRichContenteditable-tQi-Ee-6.cjs.map → NcRichContenteditable-hT5m_2tr.cjs.map} +1 -1
  386. package/dist/chunks/{NcRichText-LKlliqlj.mjs → NcRichText-BBXbh0Hh.mjs} +65 -62
  387. package/dist/chunks/NcRichText-BBXbh0Hh.mjs.map +1 -0
  388. package/dist/chunks/{NcRichText-zUTcd9g0.cjs → NcRichText-BWX8BLVh.cjs} +53 -50
  389. package/dist/chunks/NcRichText-BWX8BLVh.cjs.map +1 -0
  390. package/dist/chunks/{NcSavingIndicatorIcon-wcQ0mBIL.cjs → NcSavingIndicatorIcon-BTvUkUn-.cjs} +1 -1
  391. package/dist/chunks/{NcSavingIndicatorIcon-wcQ0mBIL.cjs.map → NcSavingIndicatorIcon-BTvUkUn-.cjs.map} +1 -1
  392. package/dist/chunks/{NcSavingIndicatorIcon-IqoMFcDK.mjs → NcSavingIndicatorIcon-Bf0SEmgS.mjs} +1 -1
  393. package/dist/chunks/{NcSavingIndicatorIcon-IqoMFcDK.mjs.map → NcSavingIndicatorIcon-Bf0SEmgS.mjs.map} +1 -1
  394. package/dist/chunks/{NcSelect-Hw3T6JKO.mjs → NcSelect-BVmjiQFa.mjs} +55 -51
  395. package/dist/chunks/{NcSelect-Hw3T6JKO.mjs.map → NcSelect-BVmjiQFa.mjs.map} +1 -1
  396. package/dist/chunks/{NcSelect-KpQ1z3xL.cjs → NcSelect-DjTSAsNL.cjs} +50 -46
  397. package/dist/chunks/{NcSelect-KpQ1z3xL.cjs.map → NcSelect-DjTSAsNL.cjs.map} +1 -1
  398. package/dist/chunks/{NcSelectTags-dBHEZJKD.cjs → NcSelectTags-BJvxyO8E.cjs} +2 -11
  399. package/dist/chunks/{NcSelectTags-dBHEZJKD.cjs.map → NcSelectTags-BJvxyO8E.cjs.map} +1 -1
  400. package/dist/chunks/{NcSelectTags-_JF5U0z-.mjs → NcSelectTags-Ccv-eQzZ.mjs} +4 -13
  401. package/dist/chunks/{NcSelectTags-_JF5U0z-.mjs.map → NcSelectTags-Ccv-eQzZ.mjs.map} +1 -1
  402. package/dist/chunks/{NcSettingsInputText-8TTOXLUf.cjs → NcSettingsInputText-CcO2Du6E.cjs} +3 -3
  403. package/dist/chunks/{NcSettingsInputText-8TTOXLUf.cjs.map → NcSettingsInputText-CcO2Du6E.cjs.map} +1 -1
  404. package/dist/chunks/{NcSettingsInputText-xNWnltHw.mjs → NcSettingsInputText-DXxmqvcd.mjs} +4 -4
  405. package/dist/chunks/{NcSettingsInputText-xNWnltHw.mjs.map → NcSettingsInputText-DXxmqvcd.mjs.map} +1 -1
  406. package/dist/chunks/{NcSettingsSection-f1NU2FVI.mjs → NcSettingsSection-DBe4fKFA.mjs} +3 -3
  407. package/dist/chunks/{NcSettingsSection-f1NU2FVI.mjs.map → NcSettingsSection-DBe4fKFA.mjs.map} +1 -1
  408. package/dist/chunks/{NcSettingsSection-wQR22_HI.cjs → NcSettingsSection-qgIYSB_M.cjs} +3 -3
  409. package/dist/chunks/{NcSettingsSection-wQR22_HI.cjs.map → NcSettingsSection-qgIYSB_M.cjs.map} +1 -1
  410. package/dist/chunks/{NcSettingsSelectGroup-7rZs5am4.cjs → NcSettingsSelectGroup-DD8PEgvQ.cjs} +6 -6
  411. package/dist/chunks/{NcSettingsSelectGroup-7rZs5am4.cjs.map → NcSettingsSelectGroup-DD8PEgvQ.cjs.map} +1 -1
  412. package/dist/chunks/{NcSettingsSelectGroup-KR0JI731.mjs → NcSettingsSelectGroup-d2TLOW1O.mjs} +8 -8
  413. package/dist/chunks/{NcSettingsSelectGroup-KR0JI731.mjs.map → NcSettingsSelectGroup-d2TLOW1O.mjs.map} +1 -1
  414. package/dist/chunks/{NcTextField-u76gJqK3.mjs → NcTextField-CU-YIhL3.mjs} +4 -4
  415. package/dist/chunks/{NcTextField-u76gJqK3.mjs.map → NcTextField-CU-YIhL3.mjs.map} +1 -1
  416. package/dist/chunks/{NcTextField-ejnIVzP2.cjs → NcTextField-CsnzlYWD.cjs} +2 -2
  417. package/dist/chunks/{NcTextField-ejnIVzP2.cjs.map → NcTextField-CsnzlYWD.cjs.map} +1 -1
  418. package/dist/chunks/NcTimezonePicker-C-Ci2IuC.cjs +3780 -0
  419. package/dist/chunks/{NcTimezonePicker-OON0Y0l1.cjs.map → NcTimezonePicker-C-Ci2IuC.cjs.map} +1 -1
  420. package/dist/chunks/NcTimezonePicker-gvp9MAcg.mjs +3786 -0
  421. package/dist/chunks/{NcTimezonePicker-s9HDKbHx.mjs.map → NcTimezonePicker-gvp9MAcg.mjs.map} +1 -1
  422. package/dist/chunks/{NcUserBubble-cv1Ae_v4.cjs → NcUserBubble-COhpp9l_.cjs} +4 -3
  423. package/dist/chunks/{NcUserBubble-2gGv-0Sv.mjs.map → NcUserBubble-COhpp9l_.cjs.map} +1 -1
  424. package/dist/chunks/{NcUserBubble-2gGv-0Sv.mjs → NcUserBubble-CbufscPi.mjs} +6 -5
  425. package/dist/chunks/{NcUserBubble-cv1Ae_v4.cjs.map → NcUserBubble-CbufscPi.mjs.map} +1 -1
  426. package/dist/chunks/{NcUserStatusIcon-q3okK462.mjs → NcUserStatusIcon-0SGYQL9L.mjs} +37 -54
  427. package/dist/chunks/{NcUserStatusIcon-q3okK462.mjs.map → NcUserStatusIcon-0SGYQL9L.mjs.map} +1 -1
  428. package/dist/chunks/NcUserStatusIcon-C7dfcW39.cjs +150 -0
  429. package/dist/chunks/{NcUserStatusIcon-ydS217hk.cjs.map → NcUserStatusIcon-C7dfcW39.cjs.map} +1 -1
  430. package/dist/chunks/{ScopeComponent-ad_Jva5z.cjs → ScopeComponent-CSd5rNUA.cjs} +1 -1
  431. package/dist/chunks/{ScopeComponent-ad_Jva5z.cjs.map → ScopeComponent-CSd5rNUA.cjs.map} +1 -1
  432. package/dist/chunks/{ScopeComponent-fOJOJbfW.mjs → ScopeComponent-LxI8YPnR.mjs} +1 -1
  433. package/dist/chunks/{ScopeComponent-fOJOJbfW.mjs.map → ScopeComponent-LxI8YPnR.mjs.map} +1 -1
  434. package/dist/chunks/_l10n-B986q8RC.cjs +66 -0
  435. package/dist/chunks/_l10n-B986q8RC.cjs.map +1 -0
  436. package/dist/chunks/_l10n-D8Scz3mH.mjs +68 -0
  437. package/dist/chunks/_l10n-D8Scz3mH.mjs.map +1 -0
  438. package/dist/chunks/_plugin-vue2_normalizer-Bj5bLKV4.mjs.map +1 -0
  439. package/dist/chunks/_plugin-vue2_normalizer-GXKvuwrq.cjs.map +1 -0
  440. package/dist/chunks/{actionGlobal-fRayfdEK.mjs.map → actionGlobal-D49NL940.mjs.map} +1 -1
  441. package/dist/chunks/{actionGlobal-SGFis4LZ.cjs.map → actionGlobal-DL1VaQzF.cjs.map} +1 -1
  442. package/dist/chunks/{actionText-nj1gFMEY.cjs → actionText-iWNpvZuI.cjs} +1 -1
  443. package/dist/chunks/{actionText-nj1gFMEY.cjs.map → actionText-iWNpvZuI.cjs.map} +1 -1
  444. package/dist/chunks/{actionText-bMy_49i8.mjs → actionText-jLsEBszD.mjs} +1 -1
  445. package/dist/chunks/{actionText-bMy_49i8.mjs.map → actionText-jLsEBszD.mjs.map} +1 -1
  446. package/dist/chunks/{autolink-oKM43mOC.mjs.map → autolink-BtgUDDdk.mjs.map} +1 -1
  447. package/dist/chunks/{autolink-gVCgJtXh.cjs.map → autolink-D0rLUkqm.cjs.map} +1 -1
  448. package/dist/chunks/{emoji-mJIuLpNR.cjs → emoji-DEH9dtOa.cjs} +7 -6
  449. package/dist/chunks/{emoji-mJIuLpNR.cjs.map → emoji-DEH9dtOa.cjs.map} +1 -1
  450. package/dist/chunks/{emoji-tllD0Rvt.mjs → emoji-k4gWHxrE.mjs} +4 -3
  451. package/dist/chunks/{emoji-tllD0Rvt.mjs.map → emoji-k4gWHxrE.mjs.map} +1 -1
  452. package/dist/chunks/{focusTrap-Py2bQ9-r.mjs.map → focusTrap-Be9GEB5C.mjs.map} +1 -1
  453. package/dist/chunks/{focusTrap-n3H52LOw.cjs.map → focusTrap-xauhLvvr.cjs.map} +1 -1
  454. package/dist/chunks/index-Bh9FEWbr.cjs +87 -0
  455. package/dist/chunks/index-Bh9FEWbr.cjs.map +1 -0
  456. package/dist/chunks/{index-XRGLuo0a.cjs → index-CIsMzBte.cjs} +9 -11
  457. package/dist/chunks/{index-XRGLuo0a.cjs.map → index-CIsMzBte.cjs.map} +1 -1
  458. package/dist/chunks/index-CU14QsCg.mjs +88 -0
  459. package/dist/chunks/index-CU14QsCg.mjs.map +1 -0
  460. package/dist/chunks/{index-FO4BaGaF.cjs → index-Cke9rKBg.cjs} +1 -1
  461. package/dist/chunks/{index-FO4BaGaF.cjs.map → index-Cke9rKBg.cjs.map} +1 -1
  462. package/dist/chunks/{index-2phCrsSH.mjs → index-CnpswYi6.mjs} +1 -1
  463. package/dist/chunks/{index-2phCrsSH.mjs.map → index-CnpswYi6.mjs.map} +1 -1
  464. package/dist/chunks/{index-05Rfhge1.mjs → index-DYXjj9ET.mjs} +10 -12
  465. package/dist/chunks/{index-05Rfhge1.mjs.map → index-DYXjj9ET.mjs.map} +1 -1
  466. package/dist/chunks/{logger-3m1eQsSo.mjs.map → logger-C7qcfVW8.mjs.map} +1 -1
  467. package/dist/chunks/{logger-G6OKp5ly.cjs.map → logger-D9RRY4er.cjs.map} +1 -1
  468. package/dist/chunks/{referencePickerModal-02Pa52XN.mjs → referencePickerModal-DUhJWt2e.mjs} +721 -659
  469. package/dist/chunks/referencePickerModal-DUhJWt2e.mjs.map +1 -0
  470. package/dist/chunks/{referencePickerModal-87PoyCB_.cjs → referencePickerModal-DV7-XzCc.cjs} +377 -315
  471. package/dist/chunks/referencePickerModal-DV7-XzCc.cjs.map +1 -0
  472. package/dist/chunks/{usernameToColor-zos-xTTA.cjs → usernameToColor-DibvD_OP.cjs} +1 -1
  473. package/dist/chunks/{usernameToColor-zos-xTTA.cjs.map → usernameToColor-DibvD_OP.cjs.map} +1 -1
  474. package/dist/chunks/{usernameToColor-exoSzo-C.mjs → usernameToColor-iYF-oKTP.mjs} +1 -1
  475. package/dist/chunks/{usernameToColor-exoSzo-C.mjs.map → usernameToColor-iYF-oKTP.mjs.map} +1 -1
  476. package/dist/functions/reference/widgets.d.ts +37 -0
  477. package/dist/index.cjs +18 -17
  478. package/dist/index.cjs.map +1 -1
  479. package/dist/index.mjs +112 -111
  480. package/package.json +13 -13
  481. package/dist/chunks/NcAppNavigation-CNOTInDF.cjs.map +0 -1
  482. package/dist/chunks/NcAppNavigation-jWJsOIts.mjs.map +0 -1
  483. package/dist/chunks/NcAppNavigationItem-MA9ORoUF.cjs.map +0 -1
  484. package/dist/chunks/NcAppNavigationItem-_F3PGjJA.mjs.map +0 -1
  485. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-UbvywlEZ.cjs +0 -4
  486. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-UbvywlEZ.cjs.map +0 -1
  487. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-pNm38e__.mjs +0 -3
  488. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-pNm38e__.mjs.map +0 -1
  489. package/dist/chunks/NcContent-M9BJMGg0.mjs +0 -131
  490. package/dist/chunks/NcContent-qCB26fzT.cjs +0 -124
  491. package/dist/chunks/NcRelatedResourcesPanel-3uGS3Og7.mjs +0 -211
  492. package/dist/chunks/NcRelatedResourcesPanel-3uGS3Og7.mjs.map +0 -1
  493. package/dist/chunks/NcRelatedResourcesPanel-I6QLPffA.cjs +0 -205
  494. package/dist/chunks/NcRelatedResourcesPanel-I6QLPffA.cjs.map +0 -1
  495. package/dist/chunks/NcRichText-LKlliqlj.mjs.map +0 -1
  496. package/dist/chunks/NcRichText-zUTcd9g0.cjs.map +0 -1
  497. package/dist/chunks/NcTimezonePicker-OON0Y0l1.cjs +0 -7195
  498. package/dist/chunks/NcTimezonePicker-s9HDKbHx.mjs +0 -7201
  499. package/dist/chunks/NcUserStatusIcon-ydS217hk.cjs +0 -167
  500. package/dist/chunks/_l10n-9dioj9MT.mjs +0 -66
  501. package/dist/chunks/_l10n-9dioj9MT.mjs.map +0 -1
  502. package/dist/chunks/_l10n-qu3Uu6RR.cjs +0 -64
  503. package/dist/chunks/_l10n-qu3Uu6RR.cjs.map +0 -1
  504. package/dist/chunks/_plugin-vue2_normalizer-DCfUPqga.cjs.map +0 -1
  505. package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.mjs.map +0 -1
  506. package/dist/chunks/referencePickerModal-02Pa52XN.mjs.map +0 -1
  507. package/dist/chunks/referencePickerModal-87PoyCB_.cjs.map +0 -1
  508. /package/dist/assets/{NcActionButton-rOZFVQA8.css → NcActionButton-Cs5kVVAD.css} +0 -0
  509. /package/dist/assets/{NcActionButtonGroup-oXobVIqQ.css → NcActionButtonGroup-ChehtUip.css} +0 -0
  510. /package/dist/assets/{NcActionCaption-afJqyJO6.css → NcActionCaption-Bp8mrIk7.css} +0 -0
  511. /package/dist/assets/{NcActionCheckbox-6Pvlr1E7.css → NcActionCheckbox-Do--WvUT.css} +0 -0
  512. /package/dist/assets/{NcActionInput-4zSvDkWm.css → NcActionInput-DjNK8ORa.css} +0 -0
  513. /package/dist/assets/{NcActionLink-zdzQgwtH.css → NcActionLink-DN3NCDC0.css} +0 -0
  514. /package/dist/assets/{NcActionRadio-eOr9Sp-D.css → NcActionRadio-B46v1Kn4.css} +0 -0
  515. /package/dist/assets/{NcActionRouter-MFTD6tYI.css → NcActionRouter-wVMPq1gi.css} +0 -0
  516. /package/dist/assets/{NcActionSeparator-l98xWbiL.css → NcActionSeparator-CX3zFZuI.css} +0 -0
  517. /package/dist/assets/{NcActionText-GJYwsw_U.css → NcActionText-YljCzD9Q.css} +0 -0
  518. /package/dist/assets/{NcActionTextEditable-JrYuWEDd.css → NcActionTextEditable-mti5YQN1.css} +0 -0
  519. /package/dist/assets/{NcAppNavigationCaption-I1dcvB0N.css → NcAppNavigationCaption-jV1y8HQ1.css} +0 -0
  520. /package/dist/assets/{NcAppNavigationIconBullet-Nf3ARMLv.css → NcAppNavigationIconBullet-1_cBEwu8.css} +0 -0
  521. /package/dist/assets/{NcAppNavigationItem-caMsw_N_.css → NcAppNavigationItem-BxoyzD83.css} +0 -0
  522. /package/dist/assets/{NcAppNavigationNew-joyd78FM.css → NcAppNavigationNew-COjJ3vwU.css} +0 -0
  523. /package/dist/assets/{NcAppNavigationNewItem-ue-H4LQY.css → NcAppNavigationNewItem-C574fgtB.css} +0 -0
  524. /package/dist/assets/{NcAppNavigationSettings-Jx_6RpSn.css → NcAppNavigationSettings-nH_pGlKc.css} +0 -0
  525. /package/dist/assets/{NcAppNavigationSpacer-uaft91Uz.css → NcAppNavigationSpacer-C5p-33VT.css} +0 -0
  526. /package/dist/assets/{NcAppNavigationToggle-3vMKtCQL.css → NcAppNavigationToggle-De8wq0JA.css} +0 -0
  527. /package/dist/assets/{NcAppSettingsDialog-0eOo3ERv.css → NcAppSettingsDialog-DR46jcRG.css} +0 -0
  528. /package/dist/assets/{NcAppSettingsSection-ahfdhix_.css → NcAppSettingsSection-BqF92GLH.css} +0 -0
  529. /package/dist/assets/{NcAppSidebar-RkF-tqKy.css → NcAppSidebar-BGQX62or.css} +0 -0
  530. /package/dist/assets/{NcAppSidebarTab-FywbKxqo.css → NcAppSidebarTab-XLBsrGqg.css} +0 -0
  531. /package/dist/assets/{NcAvatar-5H9cqcD1.css → NcAvatar-Dkf1ypwP.css} +0 -0
  532. /package/dist/assets/{NcBreadcrumb-HspaFygg.css → NcBreadcrumb-eyloXKCC.css} +0 -0
  533. /package/dist/assets/{NcBreadcrumbs-KBV0Jccv.css → NcBreadcrumbs-oFXQlxy-.css} +0 -0
  534. /package/dist/assets/{NcButton-4Wj3KJn8.css → NcButton-DhaPcomf.css} +0 -0
  535. /package/dist/assets/{NcCheckboxRadioSwitch-mgKotCbU.css → NcCheckboxRadioSwitch-CaAqi0Jt.css} +0 -0
  536. /package/dist/assets/{NcColorPicker-jW6HOxWA.css → NcColorPicker-CNboc7FY.css} +0 -0
  537. /package/dist/assets/{NcContent-LWR23l9i.css → NcContent-tZHbeX2L.css} +0 -0
  538. /package/dist/assets/{NcCounterBubble-rgkmqN46.css → NcCounterBubble-CuCSao3j.css} +0 -0
  539. /package/dist/assets/{NcDashboardWidget-01deRW9Z.css → NcDashboardWidget-DTV15Fb1.css} +0 -0
  540. /package/dist/assets/{NcDashboardWidgetItem-OL--xR_P.css → NcDashboardWidgetItem-4v77FH89.css} +0 -0
  541. /package/dist/assets/{NcDateTimePickerNative-5yybtvfx.css → NcDateTimePickerNative-DnLJu29_.css} +0 -0
  542. /package/dist/assets/{NcDialog-DN-rY-55.css → NcDialog-M36tj7nk.css} +0 -0
  543. /package/dist/assets/{NcEllipsisedOption-eoI10kvc.css → NcEllipsisedOption-B6gjXSS9.css} +0 -0
  544. /package/dist/assets/{NcEmptyContent-pSz7F6Oe.css → NcEmptyContent-ClLPsXo5.css} +0 -0
  545. /package/dist/assets/{NcGuestContent-mGGTzI2_.css → NcGuestContent-CYYZPMjb.css} +0 -0
  546. /package/dist/assets/{NcHeaderMenu-Srn5iXdL.css → NcHeaderMenu-BKufmJd0.css} +0 -0
  547. /package/dist/assets/{NcIconSvgWrapper-KLotijwU.css → NcIconSvgWrapper-oui2KPBT.css} +0 -0
  548. /package/dist/assets/{NcInputConfirmCancel-ks8z8dIn.css → NcInputConfirmCancel-CSzzPx0i.css} +0 -0
  549. /package/dist/assets/{NcInputField-L2Lld_iG.css → NcInputField-vYuV3-IY.css} +0 -0
  550. /package/dist/assets/{NcListItem-L8LeGwpe.css → NcListItem-vwt4bCl6.css} +0 -0
  551. /package/dist/assets/{NcListItemIcon-PQ2s6ZqX.css → NcListItemIcon-9Dazpmpd.css} +0 -0
  552. /package/dist/assets/{NcLoadingIcon-hZn7TJM8.css → NcLoadingIcon-CFmftMkz.css} +0 -0
  553. /package/dist/assets/{NcMentionBubble-YYl1ib_F.css → NcMentionBubble-BhiXWJv8.css} +0 -0
  554. /package/dist/assets/{NcModal-sIK5sUoC.css → NcModal-CwgrmxSg.css} +0 -0
  555. /package/dist/assets/{NcNoteCard-f0NZpwjL.css → NcNoteCard-B_Q1mnCM.css} +0 -0
  556. /package/dist/assets/{NcPopover-MK4GcuPY.css → NcPopover-wrgZy49g.css} +0 -0
  557. /package/dist/assets/{NcProgressBar-w4-G5gQR.css → NcProgressBar-DDj4bmBB.css} +0 -0
  558. /package/dist/assets/{NcRichContenteditable-rW6l0h3m.css → NcRichContenteditable-CtbqXSHe.css} +0 -0
  559. /package/dist/assets/{NcSelect-OGgZlx4Q.css → NcSelect-4aBmXHhA.css} +0 -0
  560. /package/dist/assets/{NcSettingsInputText-MPi6a3Yy.css → NcSettingsInputText-w-LprdjK.css} +0 -0
  561. /package/dist/assets/{NcSettingsSection-PEWm0eeL.css → NcSettingsSection-8RabR54v.css} +0 -0
  562. /package/dist/assets/{NcSettingsSelectGroup-_Jpb8yE3.css → NcSettingsSelectGroup-D8mlvzIT.css} +0 -0
  563. /package/dist/assets/{NcTextArea-4rVwq6GK.css → NcTextArea-DitXCroY.css} +0 -0
  564. /package/dist/assets/{NcUserBubble-jjzI5imn.css → NcUserBubble-COPMjmKa.css} +0 -0
  565. /package/dist/assets/{NcUserStatusIcon-62u43_6P.css → NcUserStatusIcon-Dra7jf_o.css} +0 -0
  566. /package/dist/assets/{Tooltip-wOLIuz0Q.css → Tooltip-DA4si7PR.css} +0 -0
  567. /package/dist/chunks/{GenRandomId-ULxaMkkr.cjs → GenRandomId-B2O1GMbH.cjs} +0 -0
  568. /package/dist/chunks/{GenRandomId-VodkdWbp.mjs → GenRandomId-BW3iYFf9.mjs} +0 -0
  569. /package/dist/chunks/{Linkify-V7PfCeZ8.mjs → Linkify-BaDLLFxP.mjs} +0 -0
  570. /package/dist/chunks/{Linkify-f3s3nAe_.cjs → Linkify-Dola0NBa.cjs} +0 -0
  571. /package/dist/chunks/{_plugin-vue2_normalizer-u6G_3nkj.mjs → _plugin-vue2_normalizer-Bj5bLKV4.mjs} +0 -0
  572. /package/dist/chunks/{_plugin-vue2_normalizer-DCfUPqga.cjs → _plugin-vue2_normalizer-GXKvuwrq.cjs} +0 -0
  573. /package/dist/chunks/{actionGlobal-fRayfdEK.mjs → actionGlobal-D49NL940.mjs} +0 -0
  574. /package/dist/chunks/{actionGlobal-SGFis4LZ.cjs → actionGlobal-DL1VaQzF.cjs} +0 -0
  575. /package/dist/chunks/{autolink-oKM43mOC.mjs → autolink-BtgUDDdk.mjs} +0 -0
  576. /package/dist/chunks/{autolink-gVCgJtXh.cjs → autolink-D0rLUkqm.cjs} +0 -0
  577. /package/dist/chunks/{focusTrap-Py2bQ9-r.mjs → focusTrap-Be9GEB5C.mjs} +0 -0
  578. /package/dist/chunks/{focusTrap-n3H52LOw.cjs → focusTrap-xauhLvvr.cjs} +0 -0
  579. /package/dist/chunks/{logger-3m1eQsSo.mjs → logger-C7qcfVW8.mjs} +0 -0
  580. /package/dist/chunks/{logger-G6OKp5ly.cjs → logger-D9RRY4er.cjs} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_l10n-D8Scz3mH.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_plugin-vue2_normalizer-Bj5bLKV4.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_plugin-vue2_normalizer-GXKvuwrq.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"actionGlobal-fRayfdEK.mjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBA,MAAeA,IAAA;AAAA,EACd,eAAe;AACd,SAAK,OAAO,KAAK,QAAS;AAAA,EAC1B;AAAA,EAED,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAS;AAAA,IACpB;AAAA,EACD;AAAA,EAED,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC9C;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAAA,IAClE;AAAA,EACD;AACF;"}
1
+ {"version":3,"file":"actionGlobal-D49NL940.mjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBA,MAAeA,IAAA;AAAA,EACd,eAAe;AACd,SAAK,OAAO,KAAK,QAAS;AAAA,EAC1B;AAAA,EAED,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAS;AAAA,IACpB;AAAA,EACD;AAAA,EAED,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC9C;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAAA,IAClE;AAAA,EACD;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"actionGlobal-SGFis4LZ.cjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBA,MAAeA,IAAA;AAAA,EACd,eAAe;AACd,SAAK,OAAO,KAAK,QAAS;AAAA,EAC1B;AAAA,EAED,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAS;AAAA,IACpB;AAAA,EACD;AAAA,EAED,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC9C;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAAA,IAClE;AAAA,EACD;AACF;;"}
1
+ {"version":3,"file":"actionGlobal-DL1VaQzF.cjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nexport default {\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBA,MAAeA,IAAA;AAAA,EACd,eAAe;AACd,SAAK,OAAO,KAAK,QAAS;AAAA,EAC1B;AAAA,EAED,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAS;AAAA,IACpB;AAAA,EACD;AAAA,EAED,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC9C;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAAA,IAClE;AAAA,EACD;AACF;;"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const n = require("./actionGlobal-SGFis4LZ.cjs");
2
+ const n = require("./actionGlobal-DL1VaQzF.cjs");
3
3
  /**
4
4
  * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"actionText-nj1gFMEY.cjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nconst GetParent = function(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport actionGlobal from './actionGlobal.js'\nimport GetParent from '../utils/GetParent.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\t/**\n\t\t * Check if icon prop is an URL\n\t\t * @return {boolean} Whether the icon prop is an URL\n\t\t */\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(this.icon, this.icon.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["GetParent","context","name","parent","ActionTextMixin","actionGlobal","event"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA,MAAMA,IAAY,SAASC,GAASC,GAAM;AACzC,MAAIC,IAASF,EAAQ;AACrB,SAAOE,KAAQ;AACd,QAAIA,EAAO,SAAS,SAASD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MAEvB;AAAA,IACD;AAAA,EACD;AACF;;"}
1
+ {"version":3,"file":"actionText-iWNpvZuI.cjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nconst GetParent = function(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport actionGlobal from './actionGlobal.js'\nimport GetParent from '../utils/GetParent.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\t/**\n\t\t * Check if icon prop is an URL\n\t\t * @return {boolean} Whether the icon prop is an URL\n\t\t */\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(this.icon, this.icon.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["GetParent","context","name","parent","ActionTextMixin","actionGlobal","event"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA,MAAMA,IAAY,SAASC,GAASC,GAAM;AACzC,MAAIC,IAASF,EAAQ;AACrB,SAAOE,KAAQ;AACd,QAAIA,EAAO,SAAS,SAASD;AAC5B,aAAOC;AAER,IAAAA,IAASA,EAAO;AAAA,EAChB;AACF;ACrCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA,MAAeC,IAAA;AAAA,EACd,QAAQ,CAACC,EAAAA,iBAAY;AAAA,EACrB,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EAED,OAAO;AAAA,IACN;AAAA,EACA;AAAA,EAED,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,IAKT,YAAY;AACX,UAAI;AACH,eAAO,CAAC,CAAE,IAAI,IAAI,KAAK,MAAM,KAAK,KAAK,WAAW,GAAG,IAAI,OAAO,SAAS,SAAS,MAAS;AAAA,MAC3F,QAAe;AACf,eAAO;AAAA,MACP;AAAA,IACD;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,QAAQC,GAAO;AAQd,UAFA,KAAK,MAAM,SAASA,CAAK,GAErB,KAAK,iBAAiB;AACzB,cAAMH,IAASH,EAAU,MAAM,WAAW;AAC1C,QAAIG,KAAUA,EAAO,aACpBA,EAAO,UAAU,EAAK;AAAA,MAEvB;AAAA,IACD;AAAA,EACD;AACF;;"}
@@ -1,4 +1,4 @@
1
- import { A as n } from "./actionGlobal-fRayfdEK.mjs";
1
+ import { A as n } from "./actionGlobal-D49NL940.mjs";
2
2
  /**
3
3
  * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"actionText-bMy_49i8.mjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nconst GetParent = function(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport actionGlobal from './actionGlobal.js'\nimport GetParent from '../utils/GetParent.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\t/**\n\t\t * Check if icon prop is an URL\n\t\t * @return {boolean} Whether the icon prop is an URL\n\t\t */\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(this.icon, this.icon.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["GetParent","context","name","parent","ActionTextMixin","actionGlobal","event"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA,MAAMA,IAAY,SAASC,GAASC,GAAM;AACzC,MAAIC,IAASF,EAAQ;AACrB,SAAOE,KAAQ;AACd,QAAIA,EAAO,SAAS,SAASD;AAC5B,aAAOC;AAER,IAAAA,IAASA,EAAO;AAAA,EAChB;AACF;ACrCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA,MAAeC,IAAA;AAAA,EACd,QAAQ,CAACC,CAAY;AAAA,EACrB,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EAED,OAAO;AAAA,IACN;AAAA,EACA;AAAA,EAED,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,IAKT,YAAY;AACX,UAAI;AACH,eAAO,CAAC,CAAE,IAAI,IAAI,KAAK,MAAM,KAAK,KAAK,WAAW,GAAG,IAAI,OAAO,SAAS,SAAS,MAAS;AAAA,MAC3F,QAAe;AACf,eAAO;AAAA,MACP;AAAA,IACD;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,QAAQC,GAAO;AAQd,UAFA,KAAK,MAAM,SAASA,CAAK,GAErB,KAAK,iBAAiB;AACzB,cAAMH,IAASH,EAAU,MAAM,WAAW;AAC1C,QAAIG,KAAUA,EAAO,aACpBA,EAAO,UAAU,EAAK;AAAA,MAEvB;AAAA,IACD;AAAA,EACD;AACF;"}
1
+ {"version":3,"file":"actionText-jLsEBszD.mjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nconst GetParent = function(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport actionGlobal from './actionGlobal.js'\nimport GetParent from '../utils/GetParent.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\t/**\n\t\t * Check if icon prop is an URL\n\t\t * @return {boolean} Whether the icon prop is an URL\n\t\t */\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(this.icon, this.icon.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["GetParent","context","name","parent","ActionTextMixin","actionGlobal","event"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA,MAAMA,IAAY,SAASC,GAASC,GAAM;AACzC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AW;AAC1C,QAAIG,KAAUA,EAAO,aACpBA,EAAO,UAAU,EAAK;AAAA,MAEvB;AAAA,IACD;AAAA,EACD;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"autolink-oKM43mOC.mjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","import { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nimport { visit, SKIP } from 'unist-util-visit'\nimport { u } from 'unist-builder'\nimport { getBaseUrl } from '@nextcloud/router'\n\nconst NcLink = {\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender(h) {\n\t\treturn h('a', {\n\t\t\tattrs: {\n\t\t\t\thref: this.href,\n\t\t\t\trel: 'noopener noreferrer',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tclass: 'rich-text--external-link',\n\t\t\t},\n\t\t}, [this.href.trim()])\n\t},\n}\n\nexport const remarkAutolink = function({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\nexport const parseUrl = (text) => {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcLink, props: { href } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tconsole.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\nexport const getRoute = (router, url) => {\n\t// Skip if Router is not defined in app, or baseUrl does not match\n\tif (!router || !url.includes(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tconst regexArray = router.getRoutes()\n\t\t// route.regex matches only complete string (^.$), need to remove these characters\n\t\t.map(route => new RegExp(route.regex.source.slice(1, -1), route.regex.flags))\n\n\tfor (const regex of regexArray) {\n\t\tconst match = url.search(regex)\n\t\tif (match !== -1) {\n\t\t\treturn url.slice(match)\n\t\t}\n\t}\n}\n"],"names":["URL_PATTERN","URL_PATTERN_AUTOLINK","NcLink","h","remarkAutolink","autolink","useMarkdown","useExtendedMarkdown","tree","visit","node","index","parent","parsed","parseUrl","n","u","x","SKIP","text","match","list","start","href","textAfter","textBefore","lastChar","joinedText","item","getRoute","router","url","getBaseUrl","regexArray","route","regex"],"mappings":";;;AAKY,MAACA,IAAc,4FAOdC,IAAuB,gHCN9BC,IAAS;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACV;AAAA,EACD;AAAA,EACD,OAAOC,GAAG;AACT,WAAOA,EAAE,KAAK;AAAA,MACb,OAAO;AAAA,QACN,MAAM,KAAK;AAAA,QACX,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,MACP;AAAA,IACD,GAAE,CAAC,KAAK,KAAK,KAAM,CAAA,CAAC;AAAA,EACrB;AACF,GAEaC,IAAiB,SAAS,EAAE,UAAAC,GAAU,aAAAC,GAAa,qBAAAC,EAAmB,GAAI;AACtF,SAAO,SAASC,GAAM;AAGrB,IAAID,KAAuB,CAACD,KAAe,CAACD,KAI5CI,EAAMD,GAAM,CAACE,MAASA,EAAK,SAAS,QAAQ,CAACA,GAAMC,GAAOC,MAAW;AACpE,UAAIC,IAASC,EAASJ,EAAK,KAAK;AAChC,aAAAG,IAASA,EAAO,IAAI,CAACE,MAChB,OAAOA,KAAM,WACTC,EAAE,QAAQD,CAAC,IAGZC,EAAE,QAAQ;AAAA,QAChB,KAAKD,EAAE,MAAM;AAAA,MAClB,GAAO,CAACC,EAAE,QAAQD,EAAE,MAAM,IAAI,CAAC,CAAC,CAC5B,EAAE,OAAO,CAACE,MAAMA,CAAC,GAElBL,EAAO,SAAS,OAAOD,GAAO,GAAG,GAAGE,EAAO,MAAM,GAC1C,CAACK,GAAM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AAI,CAAAI,MAAS,IAAI,OAAOA,EAAM,MAAM,OAAO,MAAM,GAAG,EAAE,GAAGA,EAAM,MAAM,KAAK,CAAC;AAE7E,aAAWC,KAASF,GAAY;AAC/B,UAAMb,IAAQW,EAAI,OAAOI,CAAK;AAC9B,QAAIf,MAAU;AACb,aAAOW,EAAI,MAAMX,CAAK;AAAA,EAEvB;AACF;"}
1
+ {"version":3,"file":"autolink-BtgUDDdk.mjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","import { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nimport { visit, SKIP } from 'unist-util-visit'\nimport { u } from 'unist-builder'\nimport { getBaseUrl } from '@nextcloud/router'\n\nconst NcLink = {\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender(h) {\n\t\treturn h('a', {\n\t\t\tattrs: {\n\t\t\t\thref: this.href,\n\t\t\t\trel: 'noopener noreferrer',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tclass: 'rich-text--external-link',\n\t\t\t},\n\t\t}, [this.href.trim()])\n\t},\n}\n\nexport const remarkAutolink = function({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\nexport const parseUrl = (text) => {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcLink, props: { href } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tconsole.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\nexport const getRoute = (router, url) => {\n\t// Skip if Router is not defined in app, or baseUrl does not match\n\tif (!router || !url.includes(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tconst regexArray = router.getRoutes()\n\t\t// route.regex matches only complete string (^.$), need to remove these characters\n\t\t.map(route => new RegExp(route.regex.source.slice(1, -1), route.regex.flags))\n\n\tfor (const regex of regexArray) {\n\t\tconst match = url.search(regex)\n\t\tif (match !== -1) {\n\t\t\treturn url.slice(match)\n\t\t}\n\t}\n}\n"],"names":["URL_PATTERN","URL_PATTERN_AUTOLINK","NcLink","h","remarkAutolink","autolink","useMarkdown","useExtendedMarkdown","tree","visit","node","index","parent","parsed","parseUrl","n","u","x","SKIP","text","match","list","start","href","textAfter","textBefore","lastChar","joinedText","item","getRoute","router","url","getBaseUrl","regexArray","route","regex"],"mappings":";;;AAKY,MAACA,IAAc,4FAOdC,IAAuB,gHCN9BC,IAAS;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACV;AAAA,EACD;AAAA,EACD,OAAOC,GAAG;AACT,WAAOA,EAAE,KAAK;AAAA,MACb,OAAO;AAAA,QACN,MAAM,KAAK;AAAA,QACX,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,MACP;AAAA,IACD,GAAE,CAAC,KAAK,KAAK,KAAM,CAAA,CAAC;AAAA,EACrB;AACF,GAEaC,IAAiB,SAAS,EAAE,UAAAC,GAAU,aAAAC,GAAa,qBAAAC,EAAmB,GAAI;AACtF,SAAO,SAASC,GAAM;AAGrB,IAAID,KAAuB,CAACD,KAAe,CAACD,KAI5CI,EAAMD,GAAM,CAACE,MAASA,EAAK,SAAS,QAAQ,CAACA,GAAMC,GAAOC,MAAW;AACpE,UAAIC,IAASC,EAASJ,EAAK,KAAK;AAChC,aAAAG,IAASA,EAAO,IAAI,CAACE,MAChB,OAAOA,KAAM,WACTC,EAAE,QAAQD,CAAC,IAGZC,EAAE,QAAQ;AAAA,QAChB,KAAKD,EAAE,MAAM;AAAA,MAClB,GAAO,CAACC,EAAE,QAAQD,EAAE,MAAM,IAAI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CAACC,GAAQC,MAAQ;AAExC,MAAI,CAACD,KAAU,CAACC,EAAI,SAASC,EAAY,CAAA;AACxC,WAAO;AAGR,QAAMC,IAAaH,EAAO,UAAW,EAEnC,IAAI,CAAAI,MAAS,IAAI,OAAOA,EAAM,MAAM,OAAO,MAAM,GAAG,EAAE,GAAGA,EAAM,MAAM,KAAK,CAAC;AAE7E,aAAWC,KAASF,GAAY;AAC/B,UAAMb,IAAQW,EAAI,OAAOI,CAAK;AAC9B,QAAIf,MAAU;AACb,aAAOW,EAAI,MAAMX,CAAK;AAAA,EAEvB;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"autolink-gVCgJtXh.cjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","import { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nimport { visit, SKIP } from 'unist-util-visit'\nimport { u } from 'unist-builder'\nimport { getBaseUrl } from '@nextcloud/router'\n\nconst NcLink = {\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender(h) {\n\t\treturn h('a', {\n\t\t\tattrs: {\n\t\t\t\thref: this.href,\n\t\t\t\trel: 'noopener noreferrer',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tclass: 'rich-text--external-link',\n\t\t\t},\n\t\t}, [this.href.trim()])\n\t},\n}\n\nexport const remarkAutolink = function({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\nexport const parseUrl = (text) => {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcLink, props: { href } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tconsole.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\nexport const getRoute = (router, url) => {\n\t// Skip if Router is not defined in app, or baseUrl does not match\n\tif (!router || !url.includes(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tconst regexArray = router.getRoutes()\n\t\t// route.regex matches only complete string (^.$), need to remove these characters\n\t\t.map(route => new RegExp(route.regex.source.slice(1, -1), route.regex.flags))\n\n\tfor (const regex of regexArray) {\n\t\tconst match = url.search(regex)\n\t\tif (match !== -1) {\n\t\t\treturn url.slice(match)\n\t\t}\n\t}\n}\n"],"names":["URL_PATTERN","URL_PATTERN_AUTOLINK","NcLink","h","remarkAutolink","autolink","useMarkdown","useExtendedMarkdown","tree","visit","node","index","parent","parsed","parseUrl","n","u","x","SKIP","text","match","list","start","href","textAfter","textBefore","lastChar","joinedText","item","getRoute","router","url","getBaseUrl","regexArray","route","regex"],"mappings":";uGAKaA,IAAc,4FAOdC,IAAuB,gHCN9BC,IAAS;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACV;AAAA,EACD;AAAA,EACD,OAAOC,GAAG;AACT,WAAOA,EAAE,KAAK;AAAA,MACb,OAAO;AAAA,QACN,MAAM,KAAK;AAAA,QACX,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,MACP;AAAA,IACD,GAAE,CAAC,KAAK,KAAK,KAAM,CAAA,CAAC;AAAA,EACrB;AACF,GAEaC,IAAiB,SAAS,EAAE,UAAAC,GAAU,aAAAC,GAAa,qBAAAC,EAAmB,GAAI;AACtF,SAAO,SAASC,GAAM;AAGrB,IAAID,KAAuB,CAACD,KAAe,CAACD,KAI5CI,QAAMD,GAAM,CAACE,MAASA,EAAK,SAAS,QAAQ,CAACA,GAAMC,GAAOC,MAAW;AACpE,UAAIC,IAASC,EAASJ,EAAK,KAAK;AAChC,aAAAG,IAASA,EAAO,IAAI,CAACE,MAChB,OAAOA,KA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AACO,MAAS,OAAOA,KAAS,WAAWA,IAAOA,EAAK,MAAM,IAAI,EAAE,KAAK,EAAE;AAChG,SAAIT,MAASQ,IACLN,KAER,QAAQ,MAAM,4CAA4CF,CAAI,GACvDA;AACR,GAEaU,IAAW,CAACC,GAAQC,MAAQ;AAExC,MAAI,CAACD,KAAU,CAACC,EAAI,SAASC,EAAAA,WAAY,CAAA;AACxC,WAAO;AAGR,QAAMC,IAAaH,EAAO,UAAW,EAEnC,IAAI,CAAAI,MAAS,IAAI,OAAOA,EAAM,MAAM,OAAO,MAAM,GAAG,EAAE,GAAGA,EAAM,MAAM,KAAK,CAAC;AAE7E,aAAWC,KAASF,GAAY;AAC/B,UAAMb,IAAQW,EAAI,OAAOI,CAAK;AAC9B,QAAIf,MAAU;AACb,aAAOW,EAAI,MAAMX,CAAK;AAAA,EAEvB;AACF;;;;;"}
1
+ {"version":3,"file":"autolink-D0rLUkqm.cjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","import { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nimport { visit, SKIP } from 'unist-util-visit'\nimport { u } from 'unist-builder'\nimport { getBaseUrl } from '@nextcloud/router'\n\nconst NcLink = {\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender(h) {\n\t\treturn h('a', {\n\t\t\tattrs: {\n\t\t\t\thref: this.href,\n\t\t\t\trel: 'noopener noreferrer',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tclass: 'rich-text--external-link',\n\t\t\t},\n\t\t}, [this.href.trim()])\n\t},\n}\n\nexport const remarkAutolink = function({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\nexport const parseUrl = (text) => {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcLink, props: { href } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tconsole.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\nexport const getRoute = (router, url) => {\n\t// Skip if Router is not defined in app, or baseUrl does not match\n\tif (!router || !url.includes(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tconst regexArray = router.getRoutes()\n\t\t// route.regex matches only complete string (^.$), need to remove these characters\n\t\t.map(route => new RegExp(route.regex.source.slice(1, -1), route.regex.flags))\n\n\tfor (const regex of regexArray) {\n\t\tconst match = url.search(regex)\n\t\tif (match !== -1) {\n\t\t\treturn url.slice(match)\n\t\t}\n\t}\n}\n"],"names":["URL_PATTERN","URL_PATTERN_AUTOLINK","NcLink","h","remarkAutolink","autolink","useMarkdown","useExtendedMarkdown","tree","visit","node","index","parent","parsed","parseUrl","n","u","x","SKIP","text","match","list","start","href","textAfter","textBefore","lastChar","joinedText","item","getRoute","router","url","getBaseUrl","regexArray","route","regex"],"mappings":";uGAKaA,IAAc,4FAOdC,IAAuB,gHCN9BC,IAAS;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACV;AAAA,EACD;AAAA,EACD,OAAOC,GAAG;AACT,WAAOA,EAAE,KAAK;AAAA,MACb,OAAO;AAAA,QACN,MAAM,KAAK;AAAA,QACX,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,MACP;AAAA,IACD,GAAE,CAAC,KAAK,KAAK,KAAM,CAAA,CAAC;AAAA,EACrB;AACF,GAEaC,IAAiB,SAAS,EAAE,UAAAC,GAAU,aAAAC,GAAa,qBAAAC,EAAmB,GAAI;AACtF,SAAO,SAASC,GAAM;AAGrB,IAAID,KAAuB,CAACD,KAAe,CAACD,KAI5CI,QAA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AQA,EAAM,CAAC,EAAE,QAC/BA,IAAQnB,EAAqB,KAAKkB,CAAI;AAAA,EACtC;AACD,EAAAE,EAAK,KAAKF,EAAK,UAAUG,CAAK,CAAC;AAC/B,QAAMK,IAAaN,EAAK,IAAI,CAACO,MAAS,OAAOA,KAAS,WAAWA,IAAOA,EAAK,MAAM,IAAI,EAAE,KAAK,EAAE;AAChG,SAAIT,MAASQ,IACLN,KAER,QAAQ,MAAM,4CAA4CF,CAAI,GACvDA;AACR,GAEaU,IAAW,CAACC,GAAQC,MAAQ;AAExC,MAAI,CAACD,KAAU,CAACC,EAAI,SAASC,EAAAA,WAAY,CAAA;AACxC,WAAO;AAGR,QAAMC,IAAaH,EAAO,UAAW,EAEnC,IAAI,CAAAI,MAAS,IAAI,OAAOA,EAAM,MAAM,OAAO,MAAM,GAAG,EAAE,GAAGA,EAAM,MAAM,KAAK,CAAC;AAE7E,aAAWC,KAASF,GAAY;AAC/B,UAAMb,IAAQW,EAAI,OAAOI,CAAK;AAC9B,QAAIf,MAAU;AACb,aAAOW,EAAI,MAAMX,CAAK;AAAA,EAEvB;AACF;;;;;"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const o = require("@nextcloud/browser-storage"), a = require("emoji-mart-vue-fast"), g = require("emoji-mart-vue-fast/data/all.json"), h = (e) => e && e.__esModule ? e : { default: e }, l = /* @__PURE__ */ h(g);
2
+ const o = require("@nextcloud/browser-storage"), u = require("emoji-mart-vue-fast"), l = require("emoji-mart-vue-fast/data/all.json"), g = (e) => e && e.__esModule ? e : { default: e }, h = /* @__PURE__ */ g(l);
3
3
  /**
4
4
  * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>
5
5
  *
@@ -24,16 +24,17 @@ const o = require("@nextcloud/browser-storage"), a = require("emoji-mart-vue-fas
24
24
  const c = o.getBuilder("nextcloud-vue").persist(!0).build();
25
25
  var d = /* @__PURE__ */ ((e) => (e[e.Neutral = 1] = "Neutral", e[e.Light = 2] = "Light", e[e.MediumLight = 3] = "MediumLight", e[e.Medium = 4] = "Medium", e[e.MediumDark = 5] = "MediumDark", e[e.Dark = 6] = "Dark", e))(d || {});
26
26
  const M = (e, r = 10) => {
27
- const n = new a.EmojiIndex(l.default), s = i();
27
+ const n = new u.EmojiIndex(h.default), s = i();
28
28
  let t;
29
- return e ? (t = n.search(`:${e}`, r), t.length < r && (t = t.concat(n.search(e, r - t.length)))) : t = a.frequently.get(r).map((u) => n.emoji(u)) || [], t.map((u) => u.getSkin(s));
29
+ return e ? (t = n.search(":".concat(e), r), t.length < r && (t = t.concat(n.search(e, r - t.length)))) : t = u.frequently.get(r).map((a) => n.emoji(a)) || [], t.map((a) => a.getSkin(s));
30
30
  }, m = function(e) {
31
- a.frequently.add(e);
31
+ u.frequently.add(e);
32
32
  }, i = () => {
33
- const e = Number.parseInt(c.getItem("NcEmojiPicker::currentSkinTone") ?? "1");
33
+ var e;
34
+ const r = Number.parseInt((e = c.getItem("NcEmojiPicker::currentSkinTone")) != null ? e : "1");
34
35
  return Math.min(
35
36
  Math.max(
36
- e,
37
+ r,
37
38
  1
38
39
  /* Neutral */
39
40
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"emoji-mJIuLpNR.cjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>\n *\n * @author Jonas Meurer <jonas@freesources.org>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\n\nimport data from 'emoji-mart-vue-fast/data/all.json'\n\nconst storage = getBuilder('nextcloud-vue').persist(true).build()\n\n/**\n * Skin tones supported by Unicode Emojis (Fitzpatrick scale)\n * The numeric values align with `emoji-mart-vue`\n */\nexport enum EmojiSkinTone {\n\tNeutral = 1,\n\tLight = 2,\n\tMediumLight = 3,\n\tMedium = 4,\n\tMediumDark = 5,\n\tDark = 6,\n}\n\n/**\n * @param {string} query Emoji search string\n * @param {number} maxResults Maximum of returned emojis\n * @return {Array} list of found emojis\n */\nexport const emojiSearch = (query: string, maxResults: number = 10) => {\n\tconst index = new EmojiIndex(data)\n\tconst currentSkinTone = getCurrentSkinTone()\n\n\tlet results\n\tif (query) {\n\t\tresults = index.search(`:${query}`, maxResults)\n\t\tif (results.length < maxResults) {\n\t\t\tresults = results.concat(index.search(query, maxResults - results.length))\n\t\t}\n\t} else {\n\t\tresults = frequently.get(maxResults).map((id: number) => index.emoji(id)) || []\n\t}\n\n\treturn results.map((emoji) => emoji.getSkin(currentSkinTone))\n}\n\nexport const emojiAddRecent = function(id) {\n\tfrequently.add(id)\n}\n\n/**\n * Get the current skin tone index used for emojis\n * @return {EmojiSkinTone} The skin tone\n */\nexport const getCurrentSkinTone = () => {\n\tconst skinTone = Number.parseInt(storage.getItem('NcEmojiPicker::currentSkinTone') ?? '1')\n\t// Clamp skinTone to valid ranges\n\treturn Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n}\n\n/**\n * Set the current active skin tone for emojis\n * @param {EmojiSkinTone} skinTone Skin tone\n */\nexport const setCurrentSkinTone = (skinTone: EmojiSkinTone) => {\n\t// Clamp skinTone to valid ranges\n\tskinTone = Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n\tstorage.setItem('NcEmojiPicker::currentSkinTone', skinTone.toString())\n}\n"],"names":["storage","getBuilder","EmojiSkinTone","emojiSearch","query","maxResults","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,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA;AAC5D,GAMaC,IAAqB,CAACD,MAA4B;AAE9D,EAAAA,IAAW,KAAK;AAAA,IAAI,KAAK;AAAA,MAAIA;AAAA,MAAU;AAAA;AAAA;IAAwB;AAAA;AAAA,KAC/DhB,EAAQ,QAAQ,kCAAkCgB,EAAS,SAAU,CAAA;AACtE;;;;;;"}
1
+ {"version":3,"file":"emoji-DEH9dtOa.cjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>\n *\n * @author Jonas Meurer <jonas@freesources.org>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\n\nimport data from 'emoji-mart-vue-fast/data/all.json'\n\nconst storage = getBuilder('nextcloud-vue').persist(true).build()\n\n/**\n * Skin tones supported by Unicode Emojis (Fitzpatrick scale)\n * The numeric values align with `emoji-mart-vue`\n */\nexport enum EmojiSkinTone {\n\tNeutral = 1,\n\tLight = 2,\n\tMediumLight = 3,\n\tMedium = 4,\n\tMediumDark = 5,\n\tDark = 6,\n}\n\n/**\n * @param {string} query Emoji search string\n * @param {number} maxResults Maximum of returned emojis\n * @return {Array} list of found emojis\n */\nexport const emojiSearch = (query: string, maxResults: number = 10) => {\n\tconst index = new EmojiIndex(data)\n\tconst currentSkinTone = getCurrentSkinTone()\n\n\tlet results\n\tif (query) {\n\t\tresults = index.search(`:${query}`, maxResults)\n\t\tif (results.length < maxResults) {\n\t\t\tresults = results.concat(index.search(query, maxResults - results.length))\n\t\t}\n\t} else {\n\t\tresults = frequently.get(maxResults).map((id: number) => index.emoji(id)) || []\n\t}\n\n\treturn results.map((emoji) => emoji.getSkin(currentSkinTone))\n}\n\nexport const emojiAddRecent = function(id) {\n\tfrequently.add(id)\n}\n\n/**\n * Get the current skin tone index used for emojis\n * @return {EmojiSkinTone} The skin tone\n */\nexport const getCurrentSkinTone = () => {\n\tconst skinTone = Number.parseInt(storage.getItem('NcEmojiPicker::currentSkinTone') ?? '1')\n\t// Clamp skinTone to valid ranges\n\treturn Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n}\n\n/**\n * Set the current active skin tone for emojis\n * @param {EmojiSkinTone} skinTone Skin tone\n */\nexport const setCurrentSkinTone = (skinTone: EmojiSkinTone) => {\n\t// Clamp skinTone to valid ranges\n\tskinTone = Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n\tstorage.setItem('NcEmojiPicker::currentSkinTone', skinTone.toString())\n}\n"],"names":["storage","getBuilder","EmojiSkinTone","emojiSearch","query","maxResults","index","EmojiIndex","data","currentSkinTone","getCurrentSkinTone","results","frequently","id","emoji","emojiAddRecent","_a","skinTone","setCurrentSkinTone"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA,MAAMA,IAAUC,EAAW,WAAA,eAAe,EAAE,QAAQ,EAAI,EAAE;AAM9C,IAAAC,sBAAAA,OACXA,EAAAA,EAAA,UAAU,CAAV,IAAA,WACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,cAAc,CAAd,IAAA,eACAA,EAAAA,EAAA,SAAS,CAAT,IAAA,UACAA,EAAAA,EAAA,aAAa,CAAb,IAAA,cACAA,EAAAA,EAAA,OAAO,CAAP,IAAA,QANWA,IAAAA,KAAA,CAAA,CAAA;AAcL,MAAMC,IAAc,CAACC,GAAeC,IAAqB,OAAO;AAChE,QAAAC,IAAQ,IAAIC,aAAWC,EAAAA,OAAI,GAC3BC,IAAkBC;AAEpB,MAAAC;AACJ,SAAIP,KACHO,IAAUL,EAAM,OAAO,IAAI,OAAAF,CAAA,GAASC,CAAU,GAC1CM,EAAQ,SAASN,MACVM,IAAAA,EAAQ,OAAOL,EAAM,OAAOF,GAAOC,IAAaM,EAAQ,MAAM,CAAC,MAG1EA,IAAUC,EAAW,WAAA,IAAIP,CAAU,EAAE,IAAI,CAACQ,MAAeP,EAAM,MAAMO,CAAE,CAAC,KAAK,CAAA,GAGvEF,EAAQ,IAAI,CAACG,MAAUA,EAAM,QAAQL,CAAe,CAAC;AAC7D,GAEaM,IAAiB,SAASF,GAAI;AAC1CD,EAAAA,aAAW,IAAIC,CAAE;AAClB,GAMaH,IAAqB,MAAM;AAxExC,MAAAM;AAyEO,QAAAC,IAAW,OAAO,UAASD,IAAAhB,EAAQ,QAAQ,gCAAgC,MAAhD,WAAqD,GAAG;AAEzF,SAAO,KAAK;AAAA,IAAI,KAAK;AAAA,MAAIiB;AAAA,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA;AAC5D,GAMaC,IAAqB,CAACD,MAA4B;AAE9D,EAAAA,IAAW,KAAK;AAAA,IAAI,KAAK;AAAA,MAAIA;AAAA,MAAU;AAAA;AAAA;IAAwB;AAAA;AAAA,KAC/DjB,EAAQ,QAAQ,kCAAkCiB,EAAS,SAAU,CAAA;AACtE;;;;;;"}
@@ -27,14 +27,15 @@ var h = /* @__PURE__ */ ((t) => (t[t.Neutral = 1] = "Neutral", t[t.Light = 2] =
27
27
  const p = (t, r = 10) => {
28
28
  const a = new g(i), s = m();
29
29
  let e;
30
- return t ? (e = a.search(`:${t}`, r), e.length < r && (e = e.concat(a.search(t, r - e.length)))) : e = u.get(r).map((c) => a.emoji(c)) || [], e.map((c) => c.getSkin(s));
30
+ return t ? (e = a.search(":".concat(t), r), e.length < r && (e = e.concat(a.search(t, r - e.length)))) : e = u.get(r).map((c) => a.emoji(c)) || [], e.map((c) => c.getSkin(s));
31
31
  }, f = function(t) {
32
32
  u.add(t);
33
33
  }, m = () => {
34
- const t = Number.parseInt(n.getItem("NcEmojiPicker::currentSkinTone") ?? "1");
34
+ var t;
35
+ const r = Number.parseInt((t = n.getItem("NcEmojiPicker::currentSkinTone")) != null ? t : "1");
35
36
  return Math.min(
36
37
  Math.max(
37
- t,
38
+ r,
38
39
  1
39
40
  /* Neutral */
40
41
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"emoji-tllD0Rvt.mjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>\n *\n * @author Jonas Meurer <jonas@freesources.org>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\n\nimport data from 'emoji-mart-vue-fast/data/all.json'\n\nconst storage = getBuilder('nextcloud-vue').persist(true).build()\n\n/**\n * Skin tones supported by Unicode Emojis (Fitzpatrick scale)\n * The numeric values align with `emoji-mart-vue`\n */\nexport enum EmojiSkinTone {\n\tNeutral = 1,\n\tLight = 2,\n\tMediumLight = 3,\n\tMedium = 4,\n\tMediumDark = 5,\n\tDark = 6,\n}\n\n/**\n * @param {string} query Emoji search string\n * @param {number} maxResults Maximum of returned emojis\n * @return {Array} list of found emojis\n */\nexport const emojiSearch = (query: string, maxResults: number = 10) => {\n\tconst index = new EmojiIndex(data)\n\tconst currentSkinTone = getCurrentSkinTone()\n\n\tlet results\n\tif (query) {\n\t\tresults = index.search(`:${query}`, maxResults)\n\t\tif (results.length < maxResults) {\n\t\t\tresults = results.concat(index.search(query, maxResults - results.length))\n\t\t}\n\t} else {\n\t\tresults = frequently.get(maxResults).map((id: number) => index.emoji(id)) || []\n\t}\n\n\treturn results.map((emoji) => emoji.getSkin(currentSkinTone))\n}\n\nexport const emojiAddRecent = function(id) {\n\tfrequently.add(id)\n}\n\n/**\n * Get the current skin tone index used for emojis\n * @return {EmojiSkinTone} The skin tone\n */\nexport const getCurrentSkinTone = () => {\n\tconst skinTone = Number.parseInt(storage.getItem('NcEmojiPicker::currentSkinTone') ?? '1')\n\t// Clamp skinTone to valid ranges\n\treturn Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n}\n\n/**\n * Set the current active skin tone for emojis\n * @param {EmojiSkinTone} skinTone Skin tone\n */\nexport const setCurrentSkinTone = (skinTone: EmojiSkinTone) => {\n\t// Clamp skinTone to valid ranges\n\tskinTone = Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n\tstorage.setItem('NcEmojiPicker::currentSkinTone', skinTone.toString())\n}\n"],"names":["storage","getBuilder","EmojiSkinTone","emojiSearch","query","maxResults","index","EmojiIndex","data","currentSkinTone","getCurrentSkinTone","results","frequently","id","emoji","emojiAddRecent","skinTone","setCurrentSkinTone"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA,MAAMA,IAAUC,EAAW,eAAe,EAA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HxrE.mjs","sources":["../../src/functions/emoji/emoji.ts"],"sourcesContent":["/**\n * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>\n *\n * @author Jonas Meurer <jonas@freesources.org>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { EmojiIndex, frequently } from 'emoji-mart-vue-fast'\n\nimport data from 'emoji-mart-vue-fast/data/all.json'\n\nconst storage = getBuilder('nextcloud-vue').persist(true).build()\n\n/**\n * Skin tones supported by Unicode Emojis (Fitzpatrick scale)\n * The numeric values align with `emoji-mart-vue`\n */\nexport enum EmojiSkinTone {\n\tNeutral = 1,\n\tLight = 2,\n\tMediumLight = 3,\n\tMedium = 4,\n\tMediumDark = 5,\n\tDark = 6,\n}\n\n/**\n * @param {string} query Emoji search string\n * @param {number} maxResults Maximum of returned emojis\n * @return {Array} list of found emojis\n */\nexport const emojiSearch = (query: string, maxResults: number = 10) => {\n\tconst index = new EmojiIndex(data)\n\tconst currentSkinTone = getCurrentSkinTone()\n\n\tlet results\n\tif (query) {\n\t\tresults = index.search(`:${query}`, maxResults)\n\t\tif (results.length < maxResults) {\n\t\t\tresults = results.concat(index.search(query, maxResults - results.length))\n\t\t}\n\t} else {\n\t\tresults = frequently.get(maxResults).map((id: number) => index.emoji(id)) || []\n\t}\n\n\treturn results.map((emoji) => emoji.getSkin(currentSkinTone))\n}\n\nexport const emojiAddRecent = function(id) {\n\tfrequently.add(id)\n}\n\n/**\n * Get the current skin tone index used for emojis\n * @return {EmojiSkinTone} The skin tone\n */\nexport const getCurrentSkinTone = () => {\n\tconst skinTone = Number.parseInt(storage.getItem('NcEmojiPicker::currentSkinTone') ?? '1')\n\t// Clamp skinTone to valid ranges\n\treturn Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n}\n\n/**\n * Set the current active skin tone for emojis\n * @param {EmojiSkinTone} skinTone Skin tone\n */\nexport const setCurrentSkinTone = (skinTone: EmojiSkinTone) => {\n\t// Clamp skinTone to valid ranges\n\tskinTone = Math.min(Math.max(skinTone, EmojiSkinTone.Neutral), EmojiSkinTone.Dark)\n\tstorage.setItem('NcEmojiPicker::currentSkinTone', skinTone.toString())\n}\n"],"names":["storage","getBuilder","EmojiSkinTone","emojiSearch","query","maxResults","index","EmojiIndex","data","currentSkinTone","getCurrentSkinTone","results","frequently","id","emoji","emojiAddRecent","_a","skinTone","setCurrentSkinTone"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA,MAAMA,IAAUC,EAAW,eAAe,EAAE,QAAQ,EAAI,EAAE;AAM9C,IAAAC,sBAAAA,OACXA,EAAAA,EAAA,UAAU,CAAV,IAAA,WACAA,EAAAA,EAAA,QAAQ,CAAR,IAAA,SACAA,EAAAA,EAAA,cAAc,CAAd,IAAA,eACAA,EAAAA,EAAA,SAAS,CAAT,IAAA,UACAA,EAAAA,EAAA,aAAa,CAAb,IAAA,cACAA,EAAAA,EAAA,OAAO,CAAP,IAAA,QANWA,IAAAA,KAAA,CAAA,CAAA;AAcL,MAAMC,IAAc,CAACC,GAAeC,IAAqB,OAAO;AAChE,QAAAC,IAAQ,IAAIC,EAAWC,CAAI,GAC3BC,IAAkBC;AAEpB,MAAAC;AACJ,SAAIP,KACHO,IAAUL,EAAM,OAAO,IAAI,OAAAF,CAAA,GAASC,CAAU,GAC1CM,EAAQ,SAASN,MACVM,IAAAA,EAAQ,OAAOL,EAAM,OAAOF,GAAOC,IAAaM,EAAQ,MAAM,CAAC,MAG1EA,IAAUC,EAAW,IAAIP,CAAU,EAAE,IAAI,CAACQ,MAAeP,EAAM,MAAMO,CAAE,CAAC,KAAK,CAAA,GAGvEF,EAAQ,IAAI,CAACG,MAAUA,EAAM,QAAQL,CAAe,CAAC;AAC7D,GAEaM,IAAiB,SAASF,GAAI;AAC1C,EAAAD,EAAW,IAAIC,CAAE;AAClB,GAMaH,IAAqB,MAAM;AAxExC,MAAAM;AAyEO,QAAAC,IAAW,OAAO,UAASD,IAAAhB,EAAQ,QAAQ,gCAAgC,MAAhD,WAAqD,GAAG;AAEzF,SAAO,KAAK;AAAA,IAAI,KAAK;AAAA,MAAIiB;AAAA,MAAU;AAAA;AAAA,IAAA;AAAA,IAAwB;AAAA;AAAA;AAC5D,GAMaC,IAAqB,CAACD,MAA4B;AAE9D,EAAAA,IAAW,KAAK;AAAA,IAAI,KAAK;AAAA,MAAIA;AAAA,MAAU;AAAA;AAAA;IAAwB;AAAA;AAAA,KAC/DjB,EAAQ,QAAQ,kCAAkCiB,EAAS,SAAU,CAAA;AACtE;"}
@@ -1 +1 @@
1
- {"version":3,"file":"focusTrap-Py2bQ9-r.mjs","sources":["../../src/utils/focusTrap.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Return the default global focus trap stack\n *\n * @return {import('focus-trap').FocusTrap[]}\n */\nexport const getTrapStack = function() {\n\t// Create global stack if undefined\n\tObject.assign(window, { _nc_focus_trap: window._nc_focus_trap || [] })\n\n\treturn window._nc_focus_trap\n}\n"],"names":["getTrapStack"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BY,MAACA,IAAe,WAAW;AAEtC,gBAAO,OAAO,QAAQ,EAAE,gBAAgB,OAAO,kBAAkB,CAAA,GAAI,GAE9D,OAAO;AACf;"}
1
+ {"version":3,"file":"focusTrap-Be9GEB5C.mjs","sources":["../../src/utils/focusTrap.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Return the default global focus trap stack\n *\n * @return {import('focus-trap').FocusTrap[]}\n */\nexport const getTrapStack = function() {\n\t// Create global stack if undefined\n\tObject.assign(window, { _nc_focus_trap: window._nc_focus_trap || [] })\n\n\treturn window._nc_focus_trap\n}\n"],"names":["getTrapStack"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BY,MAACA,IAAe,WAAW;AAEtC,gBAAO,OAAO,QAAQ,EAAE,gBAAgB,OAAO,kBAAkB,CAAA,GAAI,GAE9D,OAAO;AACf;"}
@@ -1 +1 @@
1
- {"version":3,"file":"focusTrap-n3H52LOw.cjs","sources":["../../src/utils/focusTrap.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Return the default global focus trap stack\n *\n * @return {import('focus-trap').FocusTrap[]}\n */\nexport const getTrapStack = function() {\n\t// Create global stack if undefined\n\tObject.assign(window, { _nc_focus_trap: window._nc_focus_trap || [] })\n\n\treturn window._nc_focus_trap\n}\n"],"names":["getTrapStack"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BY,MAACA,IAAe,WAAW;AAEtC,gBAAO,OAAO,QAAQ,EAAE,gBAAgB,OAAO,kBAAkB,CAAA,GAAI,GAE9D,OAAO;AACf;;"}
1
+ {"version":3,"file":"focusTrap-xauhLvvr.cjs","sources":["../../src/utils/focusTrap.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Return the default global focus trap stack\n *\n * @return {import('focus-trap').FocusTrap[]}\n */\nexport const getTrapStack = function() {\n\t// Create global stack if undefined\n\tObject.assign(window, { _nc_focus_trap: window._nc_focus_trap || [] })\n\n\treturn window._nc_focus_trap\n}\n"],"names":["getTrapStack"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BY,MAACA,IAAe,WAAW;AAEtC,gBAAO,OAAO,QAAQ,EAAE,gBAAgB,OAAO,kBAAkB,CAAA,GAAI,GAE9D,OAAO;AACf;;"}
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ window._vue_richtext_widgets || (window._vue_richtext_widgets = {});
3
+ const _ = (e) => !!window._vue_richtext_widgets[e], c = (e) => {
4
+ var t;
5
+ return !!((t = window._vue_richtext_widgets[e]) != null && t.hasInteractiveView);
6
+ }, u = (e) => {
7
+ var t;
8
+ return !!((t = window._vue_richtext_widgets[e]) != null && t.fullWidth);
9
+ }, n = (e, t, r = (s) => {
10
+ }, i) => {
11
+ const s = {
12
+ hasInteractiveView: !0,
13
+ fullWidth: !1,
14
+ ...i
15
+ };
16
+ if (window._vue_richtext_widgets[e]) {
17
+ console.error("Widget for id " + e + " already registered");
18
+ return;
19
+ }
20
+ window._vue_richtext_widgets[e] = {
21
+ id: e,
22
+ callback: t,
23
+ onDestroy: r,
24
+ ...s
25
+ };
26
+ }, l = (e, { richObjectType: t, richObject: r, accessible: i, interactive: s }) => {
27
+ if (t !== "open-graph") {
28
+ if (!window._vue_richtext_widgets[t]) {
29
+ console.error("Widget for rich object type " + t + " not registered");
30
+ return;
31
+ }
32
+ window._vue_richtext_widgets[t].callback(e, { richObjectType: t, richObject: r, accessible: i, interactive: s });
33
+ }
34
+ }, d = (e, t) => {
35
+ e !== "open-graph" && window._vue_richtext_widgets[e] && window._vue_richtext_widgets[e].onDestroy(t);
36
+ };
37
+ window._registerWidget = (e, t, r, i) => {
38
+ n(e, t, r, i);
39
+ };
40
+ window._vue_richtext_custom_picker_elements || (window._vue_richtext_custom_picker_elements = {});
41
+ class w {
42
+ /**
43
+ * @param {HTMLElement} element The HTML element
44
+ * @param {object} object The object
45
+ */
46
+ constructor(t, r) {
47
+ this.element = t, this.object = r;
48
+ }
49
+ }
50
+ const m = (e) => !!window._vue_richtext_custom_picker_elements[e], g = (e) => {
51
+ var r;
52
+ const t = (r = window._vue_richtext_custom_picker_elements[e]) == null ? void 0 : r.size;
53
+ return ["small", "normal", "large", "full"].includes(t) ? t : null;
54
+ }, o = (e, t, r = (s) => {
55
+ }, i = "large") => {
56
+ if (window._vue_richtext_custom_picker_elements[e]) {
57
+ console.error("Custom reference picker element for id " + e + " already registered");
58
+ return;
59
+ }
60
+ window._vue_richtext_custom_picker_elements[e] = {
61
+ id: e,
62
+ callback: t,
63
+ onDestroy: r,
64
+ size: i
65
+ };
66
+ }, a = (e, { providerId: t, accessible: r }) => {
67
+ if (!window._vue_richtext_custom_picker_elements[t]) {
68
+ console.error("Custom reference picker element for reference provider ID " + t + " not registered");
69
+ return;
70
+ }
71
+ return window._vue_richtext_custom_picker_elements[t].callback(e, { providerId: t, accessible: r });
72
+ }, h = (e, t, r) => {
73
+ window._vue_richtext_custom_picker_elements[e] && window._vue_richtext_custom_picker_elements[e].onDestroy(t, r);
74
+ };
75
+ window._registerCustomPickerElement = o;
76
+ exports.NcCustomPickerRenderResult = w;
77
+ exports.destroyCustomPickerElement = h;
78
+ exports.destroyWidget = d;
79
+ exports.getCustomPickerElementSize = g;
80
+ exports.hasFullWidth = u;
81
+ exports.hasInteractiveView = c;
82
+ exports.isCustomPickerElementRegistered = m;
83
+ exports.isWidgetRegistered = _;
84
+ exports.registerCustomPickerElement = o;
85
+ exports.registerWidget = n;
86
+ exports.renderCustomPickerElement = a;
87
+ exports.renderWidget = l;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Bh9FEWbr.cjs","sources":["../../src/functions/reference/widgets.ts","../../src/functions/reference/customPickerElements.js"],"sourcesContent":["interface WidgetRenderProperties {\n\trichObjectType: string;\n\trichObject: object;\n\taccessible: boolean;\n\tinteractive: boolean;\n}\n\ntype widgetRenderCallback = (el: HTMLElement, properties: WidgetRenderProperties) => void;\ntype widgetDestroyCallback = (el: HTMLElement) => void;\n\ninterface WidgetProps {\n\tid: string;\n\thasInteractiveView: boolean;\n\tfullWidth: boolean;\n\tcallback: widgetRenderCallback;\n\tonDestroy: widgetDestroyCallback;\n}\n\ninterface WidgetPropsOptional {\n\thasInteractiveView?: boolean;\n\tfullWidth?: boolean;\n}\n\ndeclare global {\n\tinterface Window {\n\t\t_vue_richtext_widgets: Record<string, WidgetProps>;\n\t\t_registerWidget: (id: string, callback: widgetRenderCallback, onDestroy: widgetDestroyCallback, props: WidgetPropsOptional) => void;\n\t}\n}\n\nif (!window._vue_richtext_widgets) {\n\twindow._vue_richtext_widgets = {}\n}\n\nconst isWidgetRegistered = (id: string) => {\n\treturn !!window._vue_richtext_widgets[id]\n}\n\nconst hasInteractiveView = (id: string) => {\n\treturn !!window._vue_richtext_widgets[id]?.hasInteractiveView\n}\n\nexport const hasFullWidth = (id: string) => {\n\treturn !!window._vue_richtext_widgets[id]?.fullWidth ?? false\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst registerWidget = (id: string, callback: widgetRenderCallback, onDestroy = (el: HTMLElement) => {}, props: WidgetPropsOptional) => {\n\tconst propsWithDefaults = {\n\t\thasInteractiveView: true,\n\t\tfullWidth: false,\n\t\t...props,\n\t}\n\n\tif (window._vue_richtext_widgets[id]) {\n\t\tconsole.error('Widget for id ' + id + ' already registered')\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\t...propsWithDefaults,\n\t}\n}\n\nconst renderWidget = (el: HTMLElement, { richObjectType, richObject, accessible, interactive }) => {\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\tconsole.error('Widget for rich object type ' + richObjectType + ' not registered')\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive })\n}\n\nconst destroyWidget = (richObjectType: string, el: HTMLElement) => {\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].onDestroy(el)\n}\n\nwindow._registerWidget = (id: string, callback: widgetRenderCallback, onDestroy: widgetDestroyCallback, props: WidgetPropsOptional) => {\n\tregisterWidget(id, callback, onDestroy, props)\n}\n\nexport {\n\tregisterWidget,\n\trenderWidget,\n\tdestroyWidget,\n\tisWidgetRegistered,\n\thasInteractiveView,\n}\n","if (!window._vue_richtext_custom_picker_elements) {\n\twindow._vue_richtext_custom_picker_elements = {}\n}\n\n/**\n * Representation of the render callback result\n * It contains a dom element and an object (Vue instance or other fancy things)\n */\nclass NcCustomPickerRenderResult {\n\n\t/**\n\t * @param {HTMLElement} element The HTML element\n\t * @param {object} object The object\n\t */\n\tconstructor(element, object) {\n\t\tthis.element = element\n\t\tthis.object = object\n\t}\n\n}\n\nconst isCustomPickerElementRegistered = (id) => {\n\treturn !!window._vue_richtext_custom_picker_elements[id]\n}\n\nconst getCustomPickerElementSize = (id) => {\n\tconst size = window._vue_richtext_custom_picker_elements[id]?.size\n\tif (['small', 'normal', 'large', 'full'].includes(size)) {\n\t\treturn size\n\t}\n\treturn null\n}\n\nconst registerCustomPickerElement = (id, callback, onDestroy = (el) => {}, size = 'large') => {\n\tif (window._vue_richtext_custom_picker_elements[id]) {\n\t\tconsole.error('Custom reference picker element for id ' + id + ' already registered')\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\tsize,\n\t}\n}\n\nconst renderCustomPickerElement = (el, { providerId, accessible }) => {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\tconsole.error('Custom reference picker element for reference provider ID ' + providerId + ' not registered')\n\t\treturn\n\t}\n\n\treturn window._vue_richtext_custom_picker_elements[providerId].callback(el, { providerId, accessible })\n}\n\nconst destroyCustomPickerElement = (providerId, el, renderResult) => {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[providerId].onDestroy(el, renderResult)\n}\n\nwindow._registerCustomPickerElement = registerCustomPickerElement\n\nexport {\n\tNcCustomPickerRenderResult,\n\tregisterCustomPickerElement,\n\trenderCustomPickerElement,\n\tdestroyCustomPickerElement,\n\tisCustomPickerElementRegistered,\n\tgetCustomPickerElementSize,\n}\n"],"names":["isWidgetRegistered","id","hasInteractiveView","_a","hasFullWidth","registerWidget","callback","onDestroy","el","props","propsWithDefaults","renderWidget","richObjectType","richObject","accessible","interactive","destroyWidget","NcCustomPickerRenderResult","element","object","isCustomPickerElementRegistered","getCustomPickerElementSize","size","registerCustomPickerElement","renderCustomPickerElement","providerId","destroyCustomPickerElement","renderResult"],"mappings":";AA8BK,OAAO,0BACX,OAAO,wBAAwB;AAG1B,MAAAA,IAAqB,CAACC,MACpB,CAAC,CAAC,OAAO,sBAAsBA,CAAE,GAGnCC,IAAqB,CAACD,MAAe;AAtC3C,M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ble-BhiXWJv8.css');
2
2
  "use strict";
3
3
  const _ = require("@nextcloud/router");
4
4
  ;/* empty css */
5
- const b = require("./_plugin-vue2_normalizer-DCfUPqga.cjs"), f = require("./Linkify-f3s3nAe_.cjs"), g = require("escape-html"), h = require("striptags"), E = require("vue"), l = (t) => t && t.__esModule ? t : { default: t }, y = /* @__PURE__ */ l(g), a = /* @__PURE__ */ l(h), T = /* @__PURE__ */ l(E), q = {
5
+ const b = require("./_plugin-vue2_normalizer-GXKvuwrq.cjs"), f = require("./Linkify-Dola0NBa.cjs"), g = require("escape-html"), h = require("striptags"), E = require("vue"), l = (t) => t && t.__esModule ? t : { default: t }, y = /* @__PURE__ */ l(g), a = /* @__PURE__ */ l(h), T = /* @__PURE__ */ l(E), q = {
6
6
  name: "NcMentionBubble",
7
7
  props: {
8
8
  id: {
@@ -44,7 +44,7 @@ const b = require("./_plugin-vue2_normalizer-DCfUPqga.cjs"), f = require("./Link
44
44
  return this.iconUrl ? this.iconUrl : this.id && this.source === "users" ? this.getAvatarUrl(this.id, 44) : null;
45
45
  },
46
46
  mentionText() {
47
- return !this.id.includes(" ") && !this.id.includes("/") ? `@${this.id}` : `@"${this.id}"`;
47
+ return !this.id.includes(" ") && !this.id.includes("/") ? "@".concat(this.id) : '@"'.concat(this.id, '"');
48
48
  },
49
49
  // Fallback to title for compatibility
50
50
  labelWithFallback() {
@@ -62,7 +62,7 @@ const b = require("./_plugin-vue2_normalizer-DCfUPqga.cjs"), f = require("./Link
62
62
  };
63
63
  var C = function() {
64
64
  var e = this, n = e._self._c;
65
- return n("span", { staticClass: "mention-bubble", class: { "mention-bubble--primary": e.primary }, attrs: { contenteditable: "false" } }, [n("span", { staticClass: "mention-bubble__wrapper" }, [n("span", { staticClass: "mention-bubble__content" }, [n("span", { staticClass: "mention-bubble__icon", class: [e.icon, `mention-bubble__icon--${e.avatarUrl ? "with-avatar" : ""}`], style: e.avatarUrl ? { backgroundImage: `url(${e.avatarUrl})` } : null }), n("span", { staticClass: "mention-bubble__title", attrs: { role: "heading", title: e.labelWithFallback } })]), n("span", { staticClass: "mention-bubble__select", attrs: { role: "none" } }, [e._v(e._s(e.mentionText))])])]);
65
+ return n("span", { staticClass: "mention-bubble", class: { "mention-bubble--primary": e.primary }, attrs: { contenteditable: "false" } }, [n("span", { staticClass: "mention-bubble__wrapper" }, [n("span", { staticClass: "mention-bubble__content" }, [n("span", { staticClass: "mention-bubble__icon", class: [e.icon, "mention-bubble__icon--".concat(e.avatarUrl ? "with-avatar" : "")], style: e.avatarUrl ? { backgroundImage: "url(".concat(e.avatarUrl, ")") } : null }), n("span", { staticClass: "mention-bubble__title", attrs: { role: "heading", title: e.labelWithFallback } })]), n("span", { staticClass: "mention-bubble__select", attrs: { role: "none" } }, [e._v(e._s(e.mentionText))])])]);
66
66
  }, S = [], $ = /* @__PURE__ */ b.normalizeComponent(
67
67
  q,
68
68
  C,
@@ -95,7 +95,7 @@ const o = $.exports;
95
95
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
96
96
  *
97
97
  */
98
- const u = "(?:^|\\s)", c = "(?:[^a-z]|$)", d = new RegExp(`${u}(@[a-zA-Z0-9_.@\\-']+)(${c})`, "gi"), p = new RegExp(`${u}(@&quot;[a-zA-Z0-9 _/.@\\-']+&quot;)(${c})`, "gi"), v = {
98
+ const u = "(?:^|\\s)", c = "(?:[^a-z]|$)", d = new RegExp("".concat(u, "(@[a-zA-Z0-9_.@\\-']+)(").concat(c, ")"), "gi"), p = new RegExp("".concat(u, "(@&quot;[a-zA-Z0-9 _/.@\\-']+&quot;)(").concat(c, ")"), "gi"), v = {
99
99
  props: {
100
100
  userData: {
101
101
  type: Object,
@@ -124,10 +124,8 @@ const u = "(?:^|\\s)", c = "(?:[^a-z]|$)", d = new RegExp(`${u}(@[a-zA-Z0-9_.@\\
124
124
  * @return {string}
125
125
  */
126
126
  parseContent(t) {
127
- let e = t.replace(/<br>/gmi, `
128
- `);
129
- return e = e.replace(/&nbsp;/gmi, " "), e = e.replace(/&amp;/gmi, "&"), e = e.replace(/<\/div>/gmi, `
130
- `), e = a.default(e, "<div>"), e = a.default(e), e;
127
+ let e = t.replace(/<br>/gmi, "\n");
128
+ return e = e.replace(/&nbsp;/gmi, " "), e = e.replace(/&amp;/gmi, "&"), e = e.replace(/<\/div>/gmi, "\n"), e = a.default(e, "<div>"), e = a.default(e), e;
131
129
  },
132
130
  /**
133
131
  * Generate an autocompletion popup entry template
@@ -137,9 +135,9 @@ const u = "(?:^|\\s)", c = "(?:[^a-z]|$)", d = new RegExp(`${u}(@[a-zA-Z0-9_.@\\
137
135
  */
138
136
  genSelectTemplate(t) {
139
137
  if (typeof t > "u")
140
- return `${this.autocompleteTribute.current.collection.trigger}${this.autocompleteTribute.current.mentionText}`;
138
+ return "".concat(this.autocompleteTribute.current.collection.trigger).concat(this.autocompleteTribute.current.mentionText);
141
139
  const e = this.userData[t];
142
- return e ? this.renderComponentHtml(e, o).replace(/[\n\t]/gmi, "") : !t.includes(" ") && !t.includes("/") ? `@${t}` : `@"${t}"`;
140
+ return e ? this.renderComponentHtml(e, o).replace(/[\n\t]/gmi, "") : !t.includes(" ") && !t.includes("/") ? "@".concat(t) : '@"'.concat(t, '"');
143
141
  },
144
142
  /**
145
143
  * Render a component and return its html content
@@ -1 +1 @@
1
- {"version":3,"file":"index-XRGLuo0a.cjs","sources":["../../src/components/NcRichContenteditable/NcMentionBubble.vue","../../src/mixins/richEditor/index.js"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<template>\n\t<span :class=\"{'mention-bubble--primary': primary}\"\n\t\tclass=\"mention-bubble\"\n\t\tcontenteditable=\"false\">\n\t\t<span class=\"mention-bubble__wrapper\">\n\t\t\t<span class=\"mention-bubble__content\">\n\t\t\t\t<!-- Avatar or icon -->\n\t\t\t\t<span :class=\"[icon, `mention-bubble__icon--${avatarUrl ? 'with-avatar' : ''}`]\"\n\t\t\t\t\t:style=\"avatarUrl ? { backgroundImage: `url(${avatarUrl})` } : null\"\n\t\t\t\t\tclass=\"mention-bubble__icon\" />\n\n\t\t\t\t<!-- Title -->\n\t\t\t\t<span role=\"heading\" class=\"mention-bubble__title\" :title=\"labelWithFallback\" />\n\t\t\t</span>\n\n\t\t\t<!-- Selectable text for copy/paste -->\n\t\t\t<span role=\"none\" class=\"mention-bubble__select\">{{ mentionText }}</span>\n\t\t</span>\n\t</span>\n</template>\n\n<script>\nimport { generateUrl } from '@nextcloud/router'\n\nexport default {\n\tname: 'NcMentionBubble',\n\n\tprops: {\n\t\tid: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\t/**\n\t\t * @deprecated Use `label` instead\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: null,\n\t\t},\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: null,\n\t\t},\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\ticonUrl: {\n\t\t\ttype: [String, null],\n\t\t\tdefault: null,\n\t\t},\n\t\tsource: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tprimary: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\tcomputed: {\n\t\tavatarUrl() {\n\t\t\tif (this.iconUrl) {\n\t\t\t\treturn this.iconUrl\n\t\t\t}\n\n\t\t\treturn this.id && this.source === 'users'\n\t\t\t\t? this.getAvatarUrl(this.id, 44)\n\t\t\t\t: null\n\t\t},\n\t\tmentionText() {\n\t\t\treturn !this.id.includes(' ') && !this.id.includes('/')\n\t\t\t\t? `@${this.id}`\n\t\t\t\t: `@\"${this.id}\"`\n\t\t},\n\t\t// Fallback to title for compatibility\n\t\tlabelWithFallback() {\n\t\t\treturn this.label || this.title\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetAvatarUrl(user, size) {\n\t\t\treturn generateUrl('/avatar/{user}/{size}', {\n\t\t\t\tuser,\n\t\t\t\tsize,\n\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n$bubble-height: 20px;\n$bubble-max-width: 150px;\n$bubble-padding: 2px;\n$bubble-avatar-size: $bubble-height - 2 * $bubble-padding;\n\n.mention-bubble {\n\t&--primary &__content {\n\t\tcolor: var(--color-primary-element-text);\n\t\tbackground-color: var(--color-primary-element);\n\t}\n\n\t&__wrapper {\n\t\tmax-width: $bubble-max-width;\n\t\t// Align with text\n\t\theight: $bubble-height - $bubble-padding;\n\t\tvertical-align: text-bottom;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t}\n\n\t&__content {\n\t\tdisplay: inline-flex;\n\t\toverflow: hidden;\n\t\talign-items: center;\n\t\tmax-width: 100%;\n\t\theight: $bubble-height ;\n\t\t-webkit-user-select: none;\n\t\tuser-select: none;\n\t\tpadding-right: $bubble-padding * 3;\n\t\tpadding-left: $bubble-padding;\n\t\tborder-radius: math.div($bubble-height, 2);\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\n\t&__icon {\n\t\tposition: relative;\n\t\twidth: $bubble-avatar-size;\n\t\theight: $bubble-avatar-size;\n\t\tborder-radius: math.div($bubble-avatar-size, 2);\n\t\tbackground-color: var(--color-background-darker);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: $bubble-avatar-size - 2 * $bubble-padding;\n\n\t\t&--with-avatar {\n\t\t\tcolor: inherit;\n\t\t\tbackground-size: cover;\n\t\t}\n\t}\n\n\t&__title {\n\t\toverflow: hidden;\n\t\tmargin-left: $bubble-padding;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\t// Put title in ::before so it is not selectable\n\t\t&::before {\n\t\t\tcontent: attr(title);\n\t\t}\n\t}\n\n\t// Hide the mention id so it is selectable\n\t&__select {\n\t\tposition: absolute;\n\t\tz-index: -1;\n\t\tleft: -1000px;\n\t}\n}\n\n</style>\n","/**\n * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport NcMentionBubble from '../../components/NcRichContenteditable/NcMentionBubble.vue'\nimport Linkify from '../../utils/Linkify.js'\n\nimport escapeHtml from 'escape-html'\nimport stripTags from 'striptags'\nimport Vue from 'vue'\n\n// Beginning or whitespace. Non-capturing group\nconst MENTION_START = '(?:^|\\\\s)'\n// Anything that is not text or end-of-line. Non-capturing group\nconst MENTION_END = '(?:[^a-z]|$)'\nexport const USERID_REGEX = new RegExp(`${MENTION_START}(@[a-zA-Z0-9_.@\\\\-']+)(${MENTION_END})`, 'gi')\nexport const USERID_REGEX_WITH_SPACE = new RegExp(`${MENTION_START}(@&quot;[a-zA-Z0-9 _/.@\\\\-']+&quot;)(${MENTION_END})`, 'gi')\n\nexport default {\n\tprops: {\n\t\tuserData: {\n\t\t\ttype: Object,\n\t\t\tdefault: () => ({}),\n\t\t},\n\t},\n\tmethods: {\n\t\t/**\n\t\t * Convert the value string to html for the inner content\n\t\t *\n\t\t * @param {string} value the content without html\n\t\t * @return {string} rendered html\n\t\t */\n\t\trenderContent(value) {\n\t\t\t// Sanitize the value prop\n\t\t\tconst sanitizedValue = escapeHtml(value)\n\n\t\t\t// Extract all the userIds\n\t\t\tconst splitValue = sanitizedValue.split(USERID_REGEX)\n\t\t\t\t.map(part => part.split(USERID_REGEX_WITH_SPACE)).flat()\n\n\t\t\t// Replace userIds by html\n\t\t\treturn splitValue\n\t\t\t\t.map(part => {\n\t\t\t\t\t// When splitting, the string is always putting the userIds\n\t\t\t\t\t// on the the uneven indexes. We only want to generate the mentions html\n\t\t\t\t\tif (!part.startsWith('@')) {\n\t\t\t\t\t\t// This part doesn't contain a mention, let's make sure links are parsed\n\t\t\t\t\t\treturn Linkify(part)\n\t\t\t\t\t}\n\n\t\t\t\t\t// Extracting the id, nuking the leading @ and all \"\n\t\t\t\t\tconst id = part.slice(1).replace(/&quot;/gi, '')\n\t\t\t\t\t// Compiling template and prepend with the space we removed during the split\n\t\t\t\t\treturn ' ' + this.genSelectTemplate(id)\n\t\t\t\t})\n\t\t\t\t.join('')\n\t\t\t\t.replace(/\\n/gmi, '<br>')\n\t\t\t\t.replace(/&amp;/gmi, '&')\n\t\t},\n\n\t\t/**\n\t\t * Convert the innerHtml content to a string with mentions as text\n\t\t *\n\t\t * @param {string} content the content without html\n\t\t * @return {string}\n\t\t */\n\t\tparseContent(content) {\n\t\t\tlet text = content.replace(/<br>/gmi, '\\n')\n\t\t\ttext = text.replace(/&nbsp;/gmi, ' ')\n\t\t\ttext = text.replace(/&amp;/gmi, '&')\n\n\t\t\t// Convert the mentions to text only\n\t\t\t// first we replace divs with new lines\n\t\t\ttext = text.replace(/<\\/div>/gmi, '\\n')\n\t\t\t// then we remove all leftover html\n\t\t\ttext = stripTags(text, '<div>')\n\t\t\ttext = stripTags(text)\n\n\t\t\treturn text\n\t\t},\n\n\t\t/**\n\t\t * Generate an autocompletion popup entry template\n\t\t *\n\t\t * @param {string} value the value to match against the userData\n\t\t * @return {string}\n\t\t */\n\t\tgenSelectTemplate(value) {\n\t\t\t// The value returned by this function will replace the trigger '@'\n\t\t\t// and the search text, so when there is no match we simply return\n\t\t\t// '@' and the text.\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\treturn `${this.autocompleteTribute.current.collection.trigger}${this.autocompleteTribute.current.mentionText}`\n\t\t\t}\n\n\t\t\tconst data = this.userData[value]\n\n\t\t\t// Fallback to @mention in case no data matches\n\t\t\tif (!data) {\n\t\t\t\t// return `@${value}`\n\t\t\t\treturn !value.includes(' ') && !value.includes('/')\n\t\t\t\t\t? `@${value}`\n\t\t\t\t\t: `@\"${value}\"`\n\t\t\t}\n\n\t\t\t// Return template and make sure we strip of new lines and tabs\n\t\t\treturn this.renderComponentHtml(data, NcMentionBubble).replace(/[\\n\\t]/gmi, '')\n\t\t},\n\n\t\t/**\n\t\t * Render a component and return its html content\n\t\t *\n\t\t * @param {object} propsData the props to pass to the component\n\t\t * @param {object} component the component to render\n\t\t * @return {string} the rendered html\n\t\t */\n\t\trenderComponentHtml(propsData, component) {\n\t\t\tconst View = Vue.extend(component)\n\t\t\tconst Item = new View({\n\t\t\t\tpropsData,\n\t\t\t})\n\n\t\t\t// Prepare mountpoint\n\t\t\tconst wrapper = document.createElement('div')\n\t\t\tconst mount = document.createElement('div')\n\t\t\twrapper.style.display = 'none'\n\t\t\twrapper.appendChild(mount)\n\t\t\tdocument.body.appendChild(wrapper)\n\n\t\t\t// Mount and get raw html\n\t\t\tItem.$mount(mount)\n\t\t\tconst renderedHtml = wrapper.innerHTML\n\n\t\t\t// Destroy\n\t\t\tItem.$destroy()\n\t\t\twrapper.remove()\n\n\t\t\treturn renderedHtml\n\t\t},\n\t},\n}\n"],"names":["_sfc_main","user","size","generateUrl","MENTION_START","MENTION_END","USERID_REGEX","USERID_REGEX_WITH_SPACE","richEditor","value","escapeHtml","part","Linkify","id","content","text","stripTags","data","NcMentionBubble","propsData","component","View","Vue","Item","wrapper","mount","renderedHtml"],"mappings":";;;+SA6CAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA,IACA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA,IACA,SAAA;AAAA,MACA,MAAA,CAAA,QAAA,IAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA,IACA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,UAAA;AAAA,IACA,YAAA;AACA,aAAA,KAAA,UACA,KAAA,UAGA,KAAA,MAAA,KAAA,WAAA,UACA,KAAA,aAAA,KAAA,IAAA,EAAA,IACA;AAAA,IACA;AAAA,IACA,cAAA;AACA,aAAA,CAAA,KAAA,GAAA,SAAA,GAAA,KAAA,CAAA,KAAA,GAAA,SAAA,GAAA,IACA,IAAA,KAAA,EAAA,KACA,KAAA,KAAA,EAAA;AAAA,IACA;AAAA;AAAA,IAEA,oBAAA;AACA,aAAA,KAAA,SAAA,KAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA,IACA,aAAAC,GAAAC,GAAA;AACA,aAAAC,EAAAA,YAAA,yBAAA;AAAA,QACA,MAAAF;AAAA,QACA,MAAAC;AAAA,MACA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;A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GAEdA;AAAA,IACP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQD,kBAAkBN,GAAO;AAIxB,UAAI,OAAOA,IAAU;AACpB,eAAO,GAAG,KAAK,oBAAoB,QAAQ,WAAW,OAAO,GAAG,KAAK,oBAAoB,QAAQ,WAAW;AAG7G,YAAMQ,IAAO,KAAK,SAASR,CAAK;AAGhC,aAAKQ,IAQE,KAAK,oBAAoBA,GAAMC,CAAe,EAAE,QAAQ,aAAa,EAAE,IANtE,CAACT,EAAM,SAAS,GAAG,KAAK,CAACA,EAAM,SAAS,GAAG,IAC/C,IAAIA,CAAK,KACT,KAAKA,CAAK;AAAA,IAKd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASD,oBAAoBU,GAAWC,GAAW;AACzC,YAAMC,IAAOC,EAAAA,QAAI,OAAOF,CAAS,GAC3BG,IAAO,IAAIF,EAAK;AAAA,QACrB,WAAAF;AAAA,MACJ,CAAI,GAGKK,IAAU,SAAS,cAAc,KAAK,GACtCC,IAAQ,SAAS,cAAc,KAAK;AAC1C,MAAAD,EAAQ,MAAM,UAAU,QACxBA,EAAQ,YAAYC,CAAK,GACzB,SAAS,KAAK,YAAYD,CAAO,GAGjCD,EAAK,OAAOE,CAAK;AACjB,YAAMC,IAAeF,EAAQ;AAG7B,aAAAD,EAAK,SAAU,GACfC,EAAQ,OAAQ,GAETE;AAAA,IACP;AAAA,EACD;AACF;;;;;"}
1
+ {"version":3,"file":"index-CIsMzBte.cjs","sources":["../../src/components/NcRichContenteditable/NcMentionBubble.vue","../../src/mixins/richEditor/index.js"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<template>\n\t<span :class=\"{'mention-bubble--primary': primary}\"\n\t\tclass=\"mention-bubble\"\n\t\tcontenteditable=\"false\">\n\t\t<span class=\"mention-bubble__wrapper\">\n\t\t\t<span class=\"mention-bubble__content\">\n\t\t\t\t<!-- Avatar or icon -->\n\t\t\t\t<span :class=\"[icon, `mention-bubble__icon--${avatarUrl ? 'with-avatar' : ''}`]\"\n\t\t\t\t\t:style=\"avatarUrl ? { backgroundImage: `url(${avatarUrl})` } : null\"\n\t\t\t\t\tclass=\"mention-bubble__icon\" />\n\n\t\t\t\t<!-- Title -->\n\t\t\t\t<span role=\"heading\" class=\"mention-bubble__title\" :title=\"labelWithFallback\" />\n\t\t\t</span>\n\n\t\t\t<!-- Selectable text for copy/paste -->\n\t\t\t<span role=\"none\" class=\"mention-bubble__select\">{{ mentionText }}</span>\n\t\t</span>\n\t</span>\n</template>\n\n<script>\nimport { generateUrl } from '@nextcloud/router'\n\nexport default {\n\tname: 'NcMentionBubble',\n\n\tprops: {\n\t\tid: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\t/**\n\t\t * @deprecated Use `label` instead\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: null,\n\t\t},\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: null,\n\t\t},\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\ticonUrl: {\n\t\t\ttype: [String, null],\n\t\t\tdefault: null,\n\t\t},\n\t\tsource: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tprimary: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\tcomputed: {\n\t\tavatarUrl() {\n\t\t\tif (this.iconUrl) {\n\t\t\t\treturn this.iconUrl\n\t\t\t}\n\n\t\t\treturn this.id && this.source === 'users'\n\t\t\t\t? this.getAvatarUrl(this.id, 44)\n\t\t\t\t: null\n\t\t},\n\t\tmentionText() {\n\t\t\treturn !this.id.includes(' ') && !this.id.includes('/')\n\t\t\t\t? `@${this.id}`\n\t\t\t\t: `@\"${this.id}\"`\n\t\t},\n\t\t// Fallback to title for compatibility\n\t\tlabelWithFallback() {\n\t\t\treturn this.label || this.title\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetAvatarUrl(user, size) {\n\t\t\treturn generateUrl('/avatar/{user}/{size}', {\n\t\t\t\tuser,\n\t\t\t\tsize,\n\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n$bubble-height: 20px;\n$bubble-max-width: 150px;\n$bubble-padding: 2px;\n$bubble-avatar-size: $bubble-height - 2 * $bubble-padding;\n\n.mention-bubble {\n\t&--primary &__content {\n\t\tcolor: var(--color-primary-element-text);\n\t\tbackground-color: var(--color-primary-element);\n\t}\n\n\t&__wrapper {\n\t\tmax-width: $bubble-max-width;\n\t\t// Align with text\n\t\theight: $bubble-height - $bubble-padding;\n\t\tvertical-align: text-bottom;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t}\n\n\t&__content {\n\t\tdisplay: inline-flex;\n\t\toverflow: hidden;\n\t\talign-items: center;\n\t\tmax-width: 100%;\n\t\theight: $bubble-height ;\n\t\t-webkit-user-select: none;\n\t\tuser-select: none;\n\t\tpadding-right: $bubble-padding * 3;\n\t\tpadding-left: $bubble-padding;\n\t\tborder-radius: math.div($bubble-height, 2);\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\n\t&__icon {\n\t\tposition: relative;\n\t\twidth: $bubble-avatar-size;\n\t\theight: $bubble-avatar-size;\n\t\tborder-radius: math.div($bubble-avatar-size, 2);\n\t\tbackground-color: var(--color-background-darker);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: $bubble-avatar-size - 2 * $bubble-padding;\n\n\t\t&--with-avatar {\n\t\t\tcolor: inherit;\n\t\t\tbackground-size: cover;\n\t\t}\n\t}\n\n\t&__title {\n\t\toverflow: hidden;\n\t\tmargin-left: $bubble-padding;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\t// Put title in ::before so it is not selectable\n\t\t&::before {\n\t\t\tcontent: attr(title);\n\t\t}\n\t}\n\n\t// Hide the mention id so it is selectable\n\t&__select {\n\t\tposition: absolute;\n\t\tz-index: -1;\n\t\tleft: -1000px;\n\t}\n}\n\n</style>\n","/**\n * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport NcMentionBubble from '../../components/NcRichContenteditable/NcMentionBubble.vue'\nimport Linkify from '../../utils/Linkify.js'\n\nimport escapeHtml from 'escape-html'\nimport stripTags from 'striptags'\nimport Vue from 'vue'\n\n// Beginning or whitespace. Non-capturing group\nconst MENTION_START = '(?:^|\\\\s)'\n// Anything that is not text or end-of-line. Non-capturing group\nconst MENTION_END = '(?:[^a-z]|$)'\nexport const USERID_REGEX = new RegExp(`${MENTION_START}(@[a-zA-Z0-9_.@\\\\-']+)(${MENTION_END})`, 'gi')\nexport const USERID_REGEX_WITH_SPACE = new RegExp(`${MENTION_START}(@&quot;[a-zA-Z0-9 _/.@\\\\-']+&quot;)(${MENTION_END})`, 'gi')\n\nexport default {\n\tprops: {\n\t\tuserData: {\n\t\t\ttype: Object,\n\t\t\tdefault: () => ({}),\n\t\t},\n\t},\n\tmethods: {\n\t\t/**\n\t\t * Convert the value string to html for the inner content\n\t\t *\n\t\t * @param {string} value the content without html\n\t\t * @return {string} rendered html\n\t\t */\n\t\trenderContent(value) {\n\t\t\t// Sanitize the value prop\n\t\t\tconst sanitizedValue = escapeHtml(value)\n\n\t\t\t// Extract all the userIds\n\t\t\tconst splitValue = sanitizedValue.split(USERID_REGEX)\n\t\t\t\t.map(part => part.split(USERID_REGEX_WITH_SPACE)).flat()\n\n\t\t\t// Replace userIds by html\n\t\t\treturn splitValue\n\t\t\t\t.map(part => {\n\t\t\t\t\t// When splitting, the string is always putting the userIds\n\t\t\t\t\t// on the the uneven indexes. We only want to generate the mentions html\n\t\t\t\t\tif (!part.startsWith('@')) {\n\t\t\t\t\t\t// This part doesn't contain a mention, let's make sure links are parsed\n\t\t\t\t\t\treturn Linkify(part)\n\t\t\t\t\t}\n\n\t\t\t\t\t// Extracting the id, nuking the leading @ and all \"\n\t\t\t\t\tconst id = part.slice(1).replace(/&quot;/gi, '')\n\t\t\t\t\t// Compiling template and prepend with the space we removed during the split\n\t\t\t\t\treturn ' ' + this.genSelectTemplate(id)\n\t\t\t\t})\n\t\t\t\t.join('')\n\t\t\t\t.replace(/\\n/gmi, '<br>')\n\t\t\t\t.replace(/&amp;/gmi, '&')\n\t\t},\n\n\t\t/**\n\t\t * Convert the innerHtml content to a string with mentions as text\n\t\t *\n\t\t * @param {string} content the content without html\n\t\t * @return {string}\n\t\t */\n\t\tparseContent(content) {\n\t\t\tlet text = content.replace(/<br>/gmi, '\\n')\n\t\t\ttext = text.replace(/&nbsp;/gmi, ' ')\n\t\t\ttext = text.replace(/&amp;/gmi, '&')\n\n\t\t\t// Convert the mentions to text only\n\t\t\t// first we replace divs with new lines\n\t\t\ttext = text.replace(/<\\/div>/gmi, '\\n')\n\t\t\t// then we remove all leftover html\n\t\t\ttext = stripTags(text, '<div>')\n\t\t\ttext = stripTags(text)\n\n\t\t\treturn text\n\t\t},\n\n\t\t/**\n\t\t * Generate an autocompletion popup entry template\n\t\t *\n\t\t * @param {string} value the value to match against the userData\n\t\t * @return {string}\n\t\t */\n\t\tgenSelectTemplate(value) {\n\t\t\t// The value returned by this function will replace the trigger '@'\n\t\t\t// and the search text, so when there is no match we simply return\n\t\t\t// '@' and the text.\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\treturn `${this.autocompleteTribute.current.collection.trigger}${this.autocompleteTribute.current.mentionText}`\n\t\t\t}\n\n\t\t\tconst data = this.userData[value]\n\n\t\t\t// Fallback to @mention in case no data matches\n\t\t\tif (!data) {\n\t\t\t\t// return `@${value}`\n\t\t\t\treturn !value.includes(' ') && !value.includes('/')\n\t\t\t\t\t? `@${value}`\n\t\t\t\t\t: `@\"${value}\"`\n\t\t\t}\n\n\t\t\t// Return template and make sure we strip of new lines and tabs\n\t\t\treturn this.renderComponentHtml(data, NcMentionBubble).replace(/[\\n\\t]/gmi, '')\n\t\t},\n\n\t\t/**\n\t\t * Render a component and return its html content\n\t\t *\n\t\t * @param {object} propsData the props to pass to the component\n\t\t * @param {object} component the component to render\n\t\t * @return {string} the rendered html\n\t\t */\n\t\trenderComponentHtml(propsData, component) {\n\t\t\tconst View = Vue.extend(component)\n\t\t\tconst Item = new View({\n\t\t\t\tpropsData,\n\t\t\t})\n\n\t\t\t// Prepare mountpoint\n\t\t\tconst wrapper = document.createElement('div')\n\t\t\tconst mount = document.createElement('div')\n\t\t\twrapper.style.display = 'none'\n\t\t\twrapper.appendChild(mount)\n\t\t\tdocument.body.appendChild(wrapper)\n\n\t\t\t// Mount and get raw html\n\t\t\tItem.$mount(mount)\n\t\t\tconst renderedHtml = wrapper.innerHTML\n\n\t\t\t// Destroy\n\t\t\tItem.$destroy()\n\t\t\twrapper.remove()\n\n\t\t\treturn renderedHtml\n\t\t},\n\t},\n}\n"],"names":["_sfc_main","user","size","generateUrl","MENTION_START","MENTION_END","USERID_REGEX","USERID_REGEX_WITH_SPACE","richEditor","value","escapeHtml","part","Linkify","id","content","text","stripTags","data","NcMentionBubble","propsData","component","View","Vue","Item","wrapper","mount","renderedHtml"],"mappings":";;;+SA6CAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA,IACA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA,IACA,SAAA;AAAA,MACA,MAAA,CAAA,QAAA,IAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA,IACA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,UAAA;AAAA,IACA,YAAA;AACA,aAAA,KAAA,UACA,KAAA,UAGA,KAAA,MAAA,KAAA,WAAA,UACA,KAAA,aAAA,KAAA,IAAA,EAAA,IACA;AAAA,IACA;AAAA,IACA,cAAA;AACA,aAAA,CAAA,KAAA,GAAA,SAAA,GAAA,KAAA,CAAA,KAAA,GAAA,SAAA,GAAA,IACA,IAAA,YAAA,MACA,KAAA,YAAA,IAAA;AAAA,IACA;AAAA;AAAA,IAEA,oBAAA;AACA,aAAA,KAAA,SAAA,KAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA,IACA,aAAAC,GAAAC,GAAA;AACA,aAAAC,EAAAA,YAAA,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