@nextcloud/vue 8.11.1 → 8.11.3

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 (781) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/Components/NcActionButton.cjs +67 -30
  3. package/dist/Components/NcActionButton.cjs.map +1 -1
  4. package/dist/Components/NcActionButton.mjs +67 -34
  5. package/dist/Components/NcActionButton.mjs.map +1 -1
  6. package/dist/Components/NcActionButtonGroup.cjs +2 -2
  7. package/dist/Components/NcActionButtonGroup.mjs +2 -2
  8. package/dist/Components/NcActionCaption.cjs +17 -14
  9. package/dist/Components/NcActionCaption.cjs.map +1 -1
  10. package/dist/Components/NcActionCaption.mjs +17 -15
  11. package/dist/Components/NcActionCaption.mjs.map +1 -1
  12. package/dist/Components/NcActionCheckbox.cjs +42 -24
  13. package/dist/Components/NcActionCheckbox.cjs.map +1 -1
  14. package/dist/Components/NcActionCheckbox.mjs +42 -27
  15. package/dist/Components/NcActionCheckbox.mjs.map +1 -1
  16. package/dist/Components/NcActionInput.cjs +2 -2
  17. package/dist/Components/NcActionInput.mjs +2 -2
  18. package/dist/Components/NcActionLink.cjs +28 -22
  19. package/dist/Components/NcActionLink.cjs.map +1 -1
  20. package/dist/Components/NcActionLink.mjs +28 -24
  21. package/dist/Components/NcActionLink.mjs.map +1 -1
  22. package/dist/Components/NcActionRadio.cjs +38 -25
  23. package/dist/Components/NcActionRadio.cjs.map +1 -1
  24. package/dist/Components/NcActionRadio.mjs +38 -28
  25. package/dist/Components/NcActionRadio.mjs.map +1 -1
  26. package/dist/Components/NcActionRouter.cjs +24 -20
  27. package/dist/Components/NcActionRouter.cjs.map +1 -1
  28. package/dist/Components/NcActionRouter.mjs +24 -22
  29. package/dist/Components/NcActionRouter.mjs.map +1 -1
  30. package/dist/Components/NcActionSeparator.cjs +15 -12
  31. package/dist/Components/NcActionSeparator.cjs.map +1 -1
  32. package/dist/Components/NcActionSeparator.mjs +15 -13
  33. package/dist/Components/NcActionSeparator.mjs.map +1 -1
  34. package/dist/Components/NcActionText.cjs +20 -16
  35. package/dist/Components/NcActionText.cjs.map +1 -1
  36. package/dist/Components/NcActionText.mjs +20 -18
  37. package/dist/Components/NcActionText.mjs.map +1 -1
  38. package/dist/Components/NcActionTextEditable.cjs +40 -29
  39. package/dist/Components/NcActionTextEditable.cjs.map +1 -1
  40. package/dist/Components/NcActionTextEditable.mjs +40 -33
  41. package/dist/Components/NcActionTextEditable.mjs.map +1 -1
  42. package/dist/Components/NcActions.cjs +2 -2
  43. package/dist/Components/NcActions.mjs +2 -2
  44. package/dist/Components/NcAppContent.cjs +2 -2
  45. package/dist/Components/NcAppContent.mjs +2 -2
  46. package/dist/Components/NcAppContentDetails.cjs +14 -11
  47. package/dist/Components/NcAppContentDetails.cjs.map +1 -1
  48. package/dist/Components/NcAppContentDetails.mjs +14 -12
  49. package/dist/Components/NcAppContentDetails.mjs.map +1 -1
  50. package/dist/Components/NcAppContentList.cjs +16 -13
  51. package/dist/Components/NcAppContentList.cjs.map +1 -1
  52. package/dist/Components/NcAppContentList.mjs +16 -14
  53. package/dist/Components/NcAppContentList.mjs.map +1 -1
  54. package/dist/Components/NcAppNavigation.cjs +2 -2
  55. package/dist/Components/NcAppNavigation.mjs +2 -2
  56. package/dist/Components/NcAppNavigationCaption.cjs +2 -2
  57. package/dist/Components/NcAppNavigationCaption.mjs +2 -2
  58. package/dist/Components/NcAppNavigationIconBullet.cjs +24 -18
  59. package/dist/Components/NcAppNavigationIconBullet.cjs.map +1 -1
  60. package/dist/Components/NcAppNavigationIconBullet.mjs +24 -19
  61. package/dist/Components/NcAppNavigationIconBullet.mjs.map +1 -1
  62. package/dist/Components/NcAppNavigationItem.cjs +2 -2
  63. package/dist/Components/NcAppNavigationItem.mjs +2 -2
  64. package/dist/Components/NcAppNavigationList.cjs +15 -12
  65. package/dist/Components/NcAppNavigationList.cjs.map +1 -1
  66. package/dist/Components/NcAppNavigationList.mjs +15 -13
  67. package/dist/Components/NcAppNavigationList.mjs.map +1 -1
  68. package/dist/Components/NcAppNavigationNew.cjs +27 -23
  69. package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
  70. package/dist/Components/NcAppNavigationNew.mjs +27 -25
  71. package/dist/Components/NcAppNavigationNew.mjs.map +1 -1
  72. package/dist/Components/NcAppNavigationNewItem.cjs +2 -2
  73. package/dist/Components/NcAppNavigationNewItem.mjs +2 -2
  74. package/dist/Components/NcAppNavigationSettings.cjs +2 -2
  75. package/dist/Components/NcAppNavigationSettings.mjs +2 -2
  76. package/dist/Components/NcAppNavigationSpacer.cjs +15 -12
  77. package/dist/Components/NcAppNavigationSpacer.cjs.map +1 -1
  78. package/dist/Components/NcAppNavigationSpacer.mjs +15 -13
  79. package/dist/Components/NcAppNavigationSpacer.mjs.map +1 -1
  80. package/dist/Components/NcAppNavigationToggle.cjs +4 -4
  81. package/dist/Components/NcAppNavigationToggle.mjs +3 -3
  82. package/dist/Components/NcAppSettingsDialog.cjs +2 -2
  83. package/dist/Components/NcAppSettingsDialog.mjs +2 -2
  84. package/dist/Components/NcAppSettingsSection.cjs +29 -24
  85. package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
  86. package/dist/Components/NcAppSettingsSection.mjs +29 -25
  87. package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
  88. package/dist/Components/NcAppSidebar.cjs +2 -2
  89. package/dist/Components/NcAppSidebar.mjs +2 -2
  90. package/dist/Components/NcAppSidebarTab.cjs +24 -18
  91. package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
  92. package/dist/Components/NcAppSidebarTab.mjs +24 -19
  93. package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
  94. package/dist/Components/NcAvatar.cjs +2 -2
  95. package/dist/Components/NcAvatar.mjs +2 -2
  96. package/dist/Components/NcBreadcrumb.cjs +2 -2
  97. package/dist/Components/NcBreadcrumb.mjs +2 -2
  98. package/dist/Components/NcBreadcrumbs.cjs +2 -2
  99. package/dist/Components/NcBreadcrumbs.mjs +2 -2
  100. package/dist/Components/NcButton.cjs +79 -58
  101. package/dist/Components/NcButton.cjs.map +1 -1
  102. package/dist/Components/NcButton.mjs +79 -59
  103. package/dist/Components/NcButton.mjs.map +1 -1
  104. package/dist/Components/NcCheckboxRadioSwitch.cjs +2 -2
  105. package/dist/Components/NcCheckboxRadioSwitch.mjs +2 -2
  106. package/dist/Components/NcColorPicker.cjs +2 -2
  107. package/dist/Components/NcColorPicker.mjs +2 -2
  108. package/dist/Components/NcContent.cjs +2 -2
  109. package/dist/Components/NcContent.mjs +2 -2
  110. package/dist/Components/NcCounterBubble.cjs +18 -15
  111. package/dist/Components/NcCounterBubble.cjs.map +1 -1
  112. package/dist/Components/NcCounterBubble.mjs +18 -16
  113. package/dist/Components/NcCounterBubble.mjs.map +1 -1
  114. package/dist/Components/NcDashboardWidget.cjs +2 -2
  115. package/dist/Components/NcDashboardWidget.mjs +2 -2
  116. package/dist/Components/NcDashboardWidgetItem.cjs +2 -2
  117. package/dist/Components/NcDashboardWidgetItem.mjs +2 -2
  118. package/dist/Components/NcDateTime.cjs +2 -2
  119. package/dist/Components/NcDateTime.mjs +2 -2
  120. package/dist/Components/NcDateTimePicker.cjs +142 -101
  121. package/dist/Components/NcDateTimePicker.cjs.map +1 -1
  122. package/dist/Components/NcDateTimePicker.mjs +140 -108
  123. package/dist/Components/NcDateTimePicker.mjs.map +1 -1
  124. package/dist/Components/NcDateTimePickerNative.cjs +72 -52
  125. package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
  126. package/dist/Components/NcDateTimePickerNative.mjs +72 -54
  127. package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
  128. package/dist/Components/NcDialog.cjs +2 -2
  129. package/dist/Components/NcDialog.mjs +2 -2
  130. package/dist/Components/NcDialogButton.cjs +2 -2
  131. package/dist/Components/NcDialogButton.mjs +2 -2
  132. package/dist/Components/NcEllipsisedOption.cjs +35 -20
  133. package/dist/Components/NcEllipsisedOption.cjs.map +1 -1
  134. package/dist/Components/NcEllipsisedOption.mjs +35 -22
  135. package/dist/Components/NcEllipsisedOption.mjs.map +1 -1
  136. package/dist/Components/NcEmojiPicker.cjs +2 -2
  137. package/dist/Components/NcEmojiPicker.mjs +2 -2
  138. package/dist/Components/NcEmptyContent.cjs +21 -18
  139. package/dist/Components/NcEmptyContent.cjs.map +1 -1
  140. package/dist/Components/NcEmptyContent.mjs +21 -19
  141. package/dist/Components/NcEmptyContent.mjs.map +1 -1
  142. package/dist/Components/NcGuestContent.cjs +15 -12
  143. package/dist/Components/NcGuestContent.cjs.map +1 -1
  144. package/dist/Components/NcGuestContent.mjs +15 -13
  145. package/dist/Components/NcGuestContent.mjs.map +1 -1
  146. package/dist/Components/NcHeaderMenu.cjs +2 -2
  147. package/dist/Components/NcHeaderMenu.mjs +2 -2
  148. package/dist/Components/NcHighlight.cjs +2 -2
  149. package/dist/Components/NcHighlight.mjs +2 -2
  150. package/dist/Components/NcIconSvgWrapper.cjs +2 -2
  151. package/dist/Components/NcIconSvgWrapper.mjs +2 -2
  152. package/dist/Components/NcInputField.cjs +68 -52
  153. package/dist/Components/NcInputField.cjs.map +1 -1
  154. package/dist/Components/NcInputField.mjs +68 -57
  155. package/dist/Components/NcInputField.mjs.map +1 -1
  156. package/dist/Components/NcListItem.cjs +2 -2
  157. package/dist/Components/NcListItem.mjs +2 -2
  158. package/dist/Components/NcListItemIcon.cjs +2 -2
  159. package/dist/Components/NcListItemIcon.mjs +2 -2
  160. package/dist/Components/NcLoadingIcon.cjs +24 -16
  161. package/dist/Components/NcLoadingIcon.cjs.map +1 -1
  162. package/dist/Components/NcLoadingIcon.mjs +24 -17
  163. package/dist/Components/NcLoadingIcon.mjs.map +1 -1
  164. package/dist/Components/NcModal.cjs +257 -146
  165. package/dist/Components/NcModal.cjs.map +1 -1
  166. package/dist/Components/NcModal.mjs +257 -156
  167. package/dist/Components/NcModal.mjs.map +1 -1
  168. package/dist/Components/NcNoteCard.cjs +80 -65
  169. package/dist/Components/NcNoteCard.cjs.map +1 -1
  170. package/dist/Components/NcNoteCard.mjs +80 -66
  171. package/dist/Components/NcNoteCard.mjs.map +1 -1
  172. package/dist/Components/NcPasswordField.cjs +2 -2
  173. package/dist/Components/NcPasswordField.mjs +2 -2
  174. package/dist/Components/NcPopover.cjs +2 -2
  175. package/dist/Components/NcPopover.mjs +2 -2
  176. package/dist/Components/NcProgressBar.cjs +2 -2
  177. package/dist/Components/NcProgressBar.mjs +2 -2
  178. package/dist/Components/NcRelatedResourcesPanel.cjs +2 -2
  179. package/dist/Components/NcRelatedResourcesPanel.mjs +2 -2
  180. package/dist/Components/NcRichContenteditable.cjs +6 -5
  181. package/dist/Components/NcRichContenteditable.cjs.map +1 -1
  182. package/dist/Components/NcRichContenteditable.mjs +5 -5
  183. package/dist/Components/NcRichText.cjs +24 -22
  184. package/dist/Components/NcRichText.cjs.map +1 -1
  185. package/dist/Components/NcRichText.mjs +24 -24
  186. package/dist/Components/NcSavingIndicatorIcon.cjs +2 -2
  187. package/dist/Components/NcSavingIndicatorIcon.mjs +2 -2
  188. package/dist/Components/NcSelect.cjs +2 -2
  189. package/dist/Components/NcSelect.mjs +2 -2
  190. package/dist/Components/NcSelectTags.cjs +2 -2
  191. package/dist/Components/NcSelectTags.mjs +2 -2
  192. package/dist/Components/NcSettingsInputText.cjs +2 -2
  193. package/dist/Components/NcSettingsInputText.mjs +2 -2
  194. package/dist/Components/NcSettingsSection.cjs +2 -2
  195. package/dist/Components/NcSettingsSection.mjs +2 -2
  196. package/dist/Components/NcSettingsSelectGroup.cjs +4 -4
  197. package/dist/Components/NcSettingsSelectGroup.mjs +3 -3
  198. package/dist/Components/NcTextArea.cjs +51 -36
  199. package/dist/Components/NcTextArea.cjs.map +1 -1
  200. package/dist/Components/NcTextArea.mjs +51 -40
  201. package/dist/Components/NcTextArea.mjs.map +1 -1
  202. package/dist/Components/NcTextField.cjs +2 -2
  203. package/dist/Components/NcTextField.mjs +2 -2
  204. package/dist/Components/NcTimezonePicker.cjs +2 -2
  205. package/dist/Components/NcTimezonePicker.mjs +2 -2
  206. package/dist/Components/NcUserBubble.cjs +2 -2
  207. package/dist/Components/NcUserBubble.mjs +2 -2
  208. package/dist/Components/NcUserStatusIcon.cjs +2 -2
  209. package/dist/Components/NcUserStatusIcon.mjs +2 -2
  210. package/dist/Components/NcVNodes.cjs +15 -12
  211. package/dist/Components/NcVNodes.cjs.map +1 -1
  212. package/dist/Components/NcVNodes.mjs +15 -13
  213. package/dist/Components/NcVNodes.mjs.map +1 -1
  214. package/dist/Composables/useIsFullscreen.cjs +9 -8
  215. package/dist/Composables/useIsFullscreen.cjs.map +1 -1
  216. package/dist/Composables/useIsFullscreen.mjs +9 -8
  217. package/dist/Composables/useIsFullscreen.mjs.map +1 -1
  218. package/dist/Composables/useIsMobile.cjs +19 -14
  219. package/dist/Composables/useIsMobile.cjs.map +1 -1
  220. package/dist/Composables/useIsMobile.mjs +19 -14
  221. package/dist/Composables/useIsMobile.mjs.map +1 -1
  222. package/dist/Directives/Focus.cjs +6 -6
  223. package/dist/Directives/Focus.cjs.map +1 -1
  224. package/dist/Directives/Focus.mjs +5 -5
  225. package/dist/Directives/Focus.mjs.map +1 -1
  226. package/dist/Directives/Linkify.cjs +9 -6
  227. package/dist/Directives/Linkify.cjs.map +1 -1
  228. package/dist/Directives/Linkify.mjs +8 -6
  229. package/dist/Directives/Linkify.mjs.map +1 -1
  230. package/dist/Directives/Tooltip.cjs +11 -11
  231. package/dist/Directives/Tooltip.cjs.map +1 -1
  232. package/dist/Directives/Tooltip.mjs +9 -9
  233. package/dist/Directives/Tooltip.mjs.map +1 -1
  234. package/dist/Functions/a11y.cjs +33 -0
  235. package/dist/Functions/a11y.cjs.map +1 -0
  236. package/dist/Functions/a11y.mjs +33 -0
  237. package/dist/Functions/a11y.mjs.map +1 -0
  238. package/dist/Functions/emoji.cjs +8 -0
  239. package/dist/Functions/emoji.cjs.map +1 -0
  240. package/dist/Functions/emoji.mjs +8 -0
  241. package/dist/Functions/emoji.mjs.map +1 -0
  242. package/dist/Functions/reference.cjs +16 -15
  243. package/dist/Functions/reference.cjs.map +1 -1
  244. package/dist/Functions/reference.mjs +16 -16
  245. package/dist/Functions/registerReference.cjs +11 -11
  246. package/dist/Functions/registerReference.mjs +10 -10
  247. package/dist/Functions/usernameToColor.cjs +2 -2
  248. package/dist/Functions/usernameToColor.mjs +2 -2
  249. package/dist/Mixins/clickOutsideOptions.cjs +4 -3
  250. package/dist/Mixins/clickOutsideOptions.cjs.map +1 -1
  251. package/dist/Mixins/clickOutsideOptions.mjs +4 -3
  252. package/dist/Mixins/clickOutsideOptions.mjs.map +1 -1
  253. package/dist/Mixins/isFullscreen.cjs +4 -4
  254. package/dist/Mixins/isFullscreen.cjs.map +1 -1
  255. package/dist/Mixins/isFullscreen.mjs +4 -4
  256. package/dist/Mixins/isFullscreen.mjs.map +1 -1
  257. package/dist/Mixins/isMobile.cjs +4 -4
  258. package/dist/Mixins/isMobile.cjs.map +1 -1
  259. package/dist/Mixins/isMobile.mjs +4 -4
  260. package/dist/Mixins/isMobile.mjs.map +1 -1
  261. package/dist/Mixins/richEditor.cjs +6 -6
  262. package/dist/Mixins/richEditor.mjs +5 -5
  263. package/dist/assets/{NcActionButton-Cs5kVVAD.css → NcActionButton-CkChpLnH.css} +16 -11
  264. package/dist/assets/{NcActionButtonGroup-ChehtUip.css → NcActionButtonGroup-CvloX35s.css} +5 -4
  265. package/dist/assets/{NcActionCaption-Bp8mrIk7.css → NcActionCaption-sfcjBZnu.css} +4 -2
  266. package/dist/assets/{NcActionCheckbox-Do--WvUT.css → NcActionCheckbox-DTlI7y7p.css} +13 -9
  267. package/dist/assets/{NcActionInput-8F2WF3yH.css → NcActionInput-B8l22cnm.css} +44 -16
  268. package/dist/assets/{NcActionLink-DN3NCDC0.css → NcActionLink-C-NDmERH.css} +9 -6
  269. package/dist/assets/{NcActionRadio-B46v1Kn4.css → NcActionRadio-syUIsm9B.css} +13 -9
  270. package/dist/assets/{NcActionRouter-wVMPq1gi.css → NcActionRouter-BbTCI4sn.css} +12 -10
  271. package/dist/assets/{NcActionSeparator-CX3zFZuI.css → NcActionSeparator-CB59y4di.css} +4 -1
  272. package/dist/assets/{NcActionText-YljCzD9Q.css → NcActionText-Ceh88fy8.css} +12 -10
  273. package/dist/assets/{NcActionTextEditable-mti5YQN1.css → NcActionTextEditable-BoxziChR.css} +52 -24
  274. package/dist/assets/{NcActions-DL7ZZIjx.css → NcActions-9_rnkpG4.css} +40 -13
  275. package/dist/assets/{NcAppContent-aWiDWWeq.css → NcAppContent-C08OMmgh.css} +42 -17
  276. package/dist/assets/{NcAppNavigation-wkQJnaLW.css → NcAppNavigation-ClImKhvx.css} +31 -3
  277. package/dist/assets/{NcAppNavigationCaption-jV1y8HQ1.css → NcAppNavigationCaption-BbwgabsF.css} +5 -2
  278. package/dist/assets/{NcAppNavigationIconBullet-1_cBEwu8.css → NcAppNavigationIconBullet-B8q3pUL5.css} +5 -2
  279. package/dist/assets/{NcAppNavigationItem-BxoyzD83.css → NcAppNavigationItem-Dy9C3jxc.css} +70 -48
  280. package/dist/assets/{NcAppNavigationList-CUnaMQQD.css → NcAppNavigationList-DnIxrbVX.css} +4 -1
  281. package/dist/assets/{NcAppNavigationNew-COjJ3vwU.css → NcAppNavigationNew-BPZ1O8Xm.css} +6 -1
  282. package/dist/assets/{NcAppNavigationNewItem-C574fgtB.css → NcAppNavigationNewItem-DF3nldsK.css} +26 -28
  283. package/dist/assets/{NcAppNavigationSettings-nH_pGlKc.css → NcAppNavigationSettings-BCkvRAy8.css} +11 -6
  284. package/dist/assets/{NcAppNavigationSpacer-C5p-33VT.css → NcAppNavigationSpacer-Cb4q1zb5.css} +4 -2
  285. package/dist/assets/{NcAppNavigationToggle-De8wq0JA.css → NcAppNavigationToggle-0yhQ9xse.css} +4 -1
  286. package/dist/assets/{NcAppSettingsDialog-DR46jcRG.css → NcAppSettingsDialog-CajWZJNV.css} +7 -5
  287. package/dist/assets/{NcAppSettingsSection-BqF92GLH.css → NcAppSettingsSection-BDvzWKkd.css} +5 -2
  288. package/dist/assets/{NcAppSidebar-BJPR-mTB.css → NcAppSidebar-Bi22qfW1.css} +105 -53
  289. package/dist/assets/{NcAppSidebarTab-XLBsrGqg.css → NcAppSidebarTab-CBFET-hQ.css} +5 -2
  290. package/dist/assets/{NcAvatar-CR4U9eTm.css → NcAvatar-DaftSb4x.css} +30 -31
  291. package/dist/assets/{NcBreadcrumb-eyloXKCC.css → NcBreadcrumb-AES5eSWo.css} +8 -6
  292. package/dist/assets/{NcBreadcrumbs-oFXQlxy-.css → NcBreadcrumbs-tYrp1DVs.css} +10 -8
  293. package/dist/assets/{NcButton-DhaPcomf.css → NcButton-D4HxnscK.css} +13 -13
  294. package/dist/assets/{NcCheckboxRadioSwitch-CaAqi0Jt.css → NcCheckboxRadioSwitch-DArK1Q95.css} +76 -53
  295. package/dist/assets/{NcColorPicker-CNboc7FY.css → NcColorPicker-CzKZjMxY.css} +38 -33
  296. package/dist/assets/{NcContent-tZHbeX2L.css → NcContent-Cuv2HvFH.css} +29 -3
  297. package/dist/assets/{NcCounterBubble-CuCSao3j.css → NcCounterBubble-CWi_P1Tb.css} +6 -3
  298. package/dist/assets/{NcDashboardWidget-DTV15Fb1.css → NcDashboardWidget-CGOA8X60.css} +7 -3
  299. package/dist/assets/{NcDashboardWidgetItem-4v77FH89.css → NcDashboardWidgetItem-BevETFRF.css} +18 -3
  300. package/dist/assets/{NcDateTimePicker-qKgAO9KO.css → NcDateTimePicker-D1jwoP61.css} +144 -163
  301. package/dist/assets/{NcDateTimePickerNative-DnLJu29_.css → NcDateTimePickerNative-CV_VuzvQ.css} +7 -4
  302. package/dist/assets/{NcDialog-M36tj7nk.css → NcDialog-DFMxsFp5.css} +55 -21
  303. package/dist/assets/{NcEllipsisedOption-B6gjXSS9.css → NcEllipsisedOption-ClDzkIX6.css} +7 -6
  304. package/dist/assets/{NcEmojiPicker-B-4WNYcx.css → NcEmojiPicker-XL3oUsqE.css} +79 -50
  305. package/dist/assets/{NcEmptyContent-ClLPsXo5.css → NcEmptyContent--xKgddPn.css} +7 -3
  306. package/dist/assets/{NcGuestContent-CYYZPMjb.css → NcGuestContent-CeRLfUEi.css} +28 -1
  307. package/dist/assets/{NcHeaderMenu-BKufmJd0.css → NcHeaderMenu-N5y8yFGd.css} +7 -7
  308. package/dist/assets/{NcIconSvgWrapper-oui2KPBT.css → NcIconSvgWrapper-C5vV6-c0.css} +4 -1
  309. package/dist/assets/{NcInputConfirmCancel-CSzzPx0i.css → NcInputConfirmCancel-UcHrm0al.css} +7 -5
  310. package/dist/assets/{NcInputField-vYuV3-IY.css → NcInputField-CXoTqF9T.css} +16 -33
  311. package/dist/assets/{NcListItem-BIFTbr17.css → NcListItem-DMYcn1cc.css} +11 -21
  312. package/dist/assets/{NcListItemIcon-9Dazpmpd.css → NcListItemIcon-B9UQBQSa.css} +9 -11
  313. package/dist/assets/{NcLoadingIcon-CFmftMkz.css → NcLoadingIcon-gxK0ujO0.css} +5 -2
  314. package/dist/assets/{NcMentionBubble-7PQ8wEko.css → NcMentionBubble-DmzU72Mw.css} +5 -2
  315. package/dist/assets/{NcModal-CwgrmxSg.css → NcModal-Cof88czY.css} +42 -38
  316. package/dist/assets/{NcNoteCard-B_Q1mnCM.css → NcNoteCard-e7-Bxio8.css} +10 -6
  317. package/dist/assets/{NcPopover-wrgZy49g.css → NcPopover-BwI1hPzy.css} +4 -1
  318. package/dist/assets/{NcProgressBar-DDj4bmBB.css → NcProgressBar-D5VftcJm.css} +4 -1
  319. package/dist/assets/{NcRelatedResourcesPanel-D6K7OQFJ.css → NcRelatedResourcesPanel-BrXxbjgR.css} +60 -8
  320. package/dist/assets/{NcRichContenteditable-BQ2-fqnd.css → NcRichContenteditable-C-eZyVQM.css} +60 -22
  321. package/dist/assets/NcRichText-Cdp_2wEm.css +240 -0
  322. package/dist/assets/{NcSelect-4aBmXHhA.css → NcSelect-Fmyu7qyl.css} +34 -13
  323. package/dist/assets/{NcSettingsInputText-w-LprdjK.css → NcSettingsInputText-CU65Coab.css} +4 -1
  324. package/dist/assets/{NcSettingsSection-8RabR54v.css → NcSettingsSection-e9XGyBq8.css} +9 -7
  325. package/dist/assets/{NcSettingsSelectGroup-D8mlvzIT.css → NcSettingsSelectGroup-CPauLI-o.css} +4 -1
  326. package/dist/assets/{NcTextArea-DitXCroY.css → NcTextArea-XCi8a16Y.css} +13 -28
  327. package/dist/assets/{NcUserBubble-COPMjmKa.css → NcUserBubble-D5ieZC-f.css} +7 -4
  328. package/dist/assets/{NcUserStatusIcon-Dra7jf_o.css → NcUserStatusIcon-BcLArDqV.css} +4 -1
  329. package/dist/assets/{Tooltip-DA4si7PR.css → Tooltip-jHgt4m-W.css} +19 -3
  330. package/dist/assets/referencePickerModal-C0ibN2gO.css +539 -0
  331. package/dist/chunks/AlertCircleOutline-BzttElgq.mjs +39 -0
  332. package/dist/chunks/{AlertCircleOutline-DHFN4OkX.cjs.map → AlertCircleOutline-BzttElgq.mjs.map} +1 -1
  333. package/dist/chunks/AlertCircleOutline-Cb0gAiDw.cjs +38 -0
  334. package/dist/chunks/{AlertCircleOutline-U_bhL30C.mjs.map → AlertCircleOutline-Cb0gAiDw.cjs.map} +1 -1
  335. package/dist/chunks/ArrowLeft-B9iGweTd.mjs +39 -0
  336. package/dist/chunks/{ArrowLeft-CjNnGIlF.cjs.map → ArrowLeft-B9iGweTd.mjs.map} +1 -1
  337. package/dist/chunks/ArrowLeft-BhNmMdMz.cjs +38 -0
  338. package/dist/chunks/{ArrowLeft-kklNBL9z.mjs.map → ArrowLeft-BhNmMdMz.cjs.map} +1 -1
  339. package/dist/chunks/ArrowRight-Clf455e1.mjs +39 -0
  340. package/dist/chunks/{ArrowRight-CxzzJJQ6.cjs.map → ArrowRight-Clf455e1.mjs.map} +1 -1
  341. package/dist/chunks/ArrowRight-DaYrccVG.cjs +38 -0
  342. package/dist/chunks/{ArrowRight-C3BxTDjF.mjs.map → ArrowRight-DaYrccVG.cjs.map} +1 -1
  343. package/dist/chunks/Check-DZc7keoa.cjs +38 -0
  344. package/dist/chunks/{Check-CVn5nytg.cjs.map → Check-DZc7keoa.cjs.map} +1 -1
  345. package/dist/chunks/Check-PawIlCwa.mjs +39 -0
  346. package/dist/chunks/{Check-CRLmJNGG.mjs.map → Check-PawIlCwa.mjs.map} +1 -1
  347. package/dist/chunks/ChevronDown-CF9m1o8_.cjs +38 -0
  348. package/dist/chunks/{ChevronDown-DQPox_nl.cjs.map → ChevronDown-CF9m1o8_.cjs.map} +1 -1
  349. package/dist/chunks/ChevronDown-PedEroXo.mjs +39 -0
  350. package/dist/chunks/{ChevronDown-HHJdUMN4.mjs.map → ChevronDown-PedEroXo.mjs.map} +1 -1
  351. package/dist/chunks/ChevronRight-BNa7yMja.mjs +39 -0
  352. package/dist/chunks/{ChevronRight-BAJhNawb.cjs.map → ChevronRight-BNa7yMja.mjs.map} +1 -1
  353. package/dist/chunks/ChevronRight-DVw6mR11.cjs +38 -0
  354. package/dist/chunks/{ChevronRight-DL3e8bjj.mjs.map → ChevronRight-DVw6mR11.cjs.map} +1 -1
  355. package/dist/chunks/ChevronUp-CTOKWYlC.cjs +38 -0
  356. package/dist/chunks/{ChevronUp-kmHRpe7H.cjs.map → ChevronUp-CTOKWYlC.cjs.map} +1 -1
  357. package/dist/chunks/ChevronUp-DGLTg_nO.mjs +39 -0
  358. package/dist/chunks/{ChevronUp-B6TIgl1a.mjs.map → ChevronUp-DGLTg_nO.mjs.map} +1 -1
  359. package/dist/chunks/Close-1V1F2F-M.mjs +39 -0
  360. package/dist/chunks/{Close-DBfrdXMw.cjs.map → Close-1V1F2F-M.mjs.map} +1 -1
  361. package/dist/chunks/Close-C2VrgKj3.cjs +38 -0
  362. package/dist/chunks/{Close-BtO5TPBO.mjs.map → Close-C2VrgKj3.cjs.map} +1 -1
  363. package/dist/chunks/DotsHorizontal-C0STD_HU.mjs +39 -0
  364. package/dist/chunks/{DotsHorizontal-B8kTqpHe.cjs.map → DotsHorizontal-C0STD_HU.mjs.map} +1 -1
  365. package/dist/chunks/DotsHorizontal-Cjw3-45t.cjs +38 -0
  366. package/dist/chunks/{DotsHorizontal-DfVgEXgz.mjs.map → DotsHorizontal-Cjw3-45t.cjs.map} +1 -1
  367. package/dist/chunks/GenColors-B1GUK4zF.cjs +160 -0
  368. package/dist/chunks/{GenColors-D0bH59Rv.mjs.map → GenColors-B1GUK4zF.cjs.map} +1 -1
  369. package/dist/chunks/{GenColors-D0bH59Rv.mjs → GenColors-DjFwlIhX.mjs} +69 -50
  370. package/dist/chunks/{GenColors-Du2-qv6X.cjs.map → GenColors-DjFwlIhX.mjs.map} +1 -1
  371. package/dist/chunks/{GenRandomId-BW3iYFf9.mjs → GenRandomId-CXkjMlAT.mjs} +4 -2
  372. package/dist/chunks/{GenRandomId-BW3iYFf9.mjs.map → GenRandomId-CXkjMlAT.mjs.map} +1 -1
  373. package/dist/chunks/{GenRandomId-B2O1GMbH.cjs → GenRandomId-kBCcgMJd.cjs} +4 -2
  374. package/dist/chunks/{GenRandomId-B2O1GMbH.cjs.map → GenRandomId-kBCcgMJd.cjs.map} +1 -1
  375. package/dist/chunks/{Linkify-BaDLLFxP.mjs → Linkify-BBPJHBma.mjs} +12 -10
  376. package/dist/chunks/{Linkify-Dola0NBa.cjs.map → Linkify-BBPJHBma.mjs.map} +1 -1
  377. package/dist/chunks/{Linkify-Dola0NBa.cjs → Linkify-CIO279AG.cjs} +14 -10
  378. package/dist/chunks/{Linkify-BaDLLFxP.mjs.map → Linkify-CIO279AG.cjs.map} +1 -1
  379. package/dist/chunks/NcActionButtonGroup-BISuGifY.mjs +53 -0
  380. package/dist/chunks/{NcActionButtonGroup-jODsi2kz.mjs.map → NcActionButtonGroup-BISuGifY.mjs.map} +1 -1
  381. package/dist/chunks/NcActionButtonGroup-iKUlQ6Sg.cjs +52 -0
  382. package/dist/chunks/{NcActionButtonGroup-Cawk1Q5J.cjs.map → NcActionButtonGroup-iKUlQ6Sg.cjs.map} +1 -1
  383. package/dist/chunks/NcActionInput-CU4Ycto_.cjs +253 -0
  384. package/dist/chunks/{NcActionInput-NL0c8XAX.cjs.map → NcActionInput-CU4Ycto_.cjs.map} +1 -1
  385. package/dist/chunks/NcActionInput-GJBTX1-r.mjs +254 -0
  386. package/dist/chunks/{NcActionInput-BJSgHPYh.mjs.map → NcActionInput-GJBTX1-r.mjs.map} +1 -1
  387. package/dist/chunks/NcActions-CZe78ai2.mjs +845 -0
  388. package/dist/chunks/{NcActions-B1Ue3gj8.mjs.map → NcActions-CZe78ai2.mjs.map} +1 -1
  389. package/dist/chunks/NcActions-ePQTvWyX.cjs +846 -0
  390. package/dist/chunks/{NcActions-X10TnO-4.cjs.map → NcActions-ePQTvWyX.cjs.map} +1 -1
  391. package/dist/chunks/NcAppContent-BCShRsQU.cjs +303 -0
  392. package/dist/chunks/{NcAppContent-BkVLz0T8.mjs.map → NcAppContent-BCShRsQU.cjs.map} +1 -1
  393. package/dist/chunks/NcAppContent-gyRkh2hd.mjs +304 -0
  394. package/dist/chunks/{NcAppContent-CxdfMOVw.cjs.map → NcAppContent-gyRkh2hd.mjs.map} +1 -1
  395. package/dist/chunks/NcAppNavigation-DjlepJn1.mjs +142 -0
  396. package/dist/chunks/{NcAppNavigation-BxaQQTmk.mjs.map → NcAppNavigation-DjlepJn1.mjs.map} +1 -1
  397. package/dist/chunks/NcAppNavigation-NMvbfe_y.cjs +143 -0
  398. package/dist/chunks/{NcAppNavigation-CmBNq0sh.cjs.map → NcAppNavigation-NMvbfe_y.cjs.map} +1 -1
  399. package/dist/chunks/NcAppNavigationCaption-B-flkujS.cjs +62 -0
  400. package/dist/chunks/{NcAppNavigationCaption-BQsUUBUS.mjs.map → NcAppNavigationCaption-B-flkujS.cjs.map} +1 -1
  401. package/dist/chunks/NcAppNavigationCaption-PZDKx81g.mjs +63 -0
  402. package/dist/chunks/{NcAppNavigationCaption-CUJSIO54.cjs.map → NcAppNavigationCaption-PZDKx81g.mjs.map} +1 -1
  403. package/dist/chunks/NcAppNavigationItem-CFyEP8wP.mjs +522 -0
  404. package/dist/chunks/{NcAppNavigationItem-Cheox0NI.mjs.map → NcAppNavigationItem-CFyEP8wP.mjs.map} +1 -1
  405. package/dist/chunks/NcAppNavigationItem-D-j_j_i5.cjs +521 -0
  406. package/dist/chunks/{NcAppNavigationItem-DdfXf1p_.cjs.map → NcAppNavigationItem-D-j_j_i5.cjs.map} +1 -1
  407. package/dist/chunks/NcAppNavigationNewItem-0C1S6gig.mjs +98 -0
  408. package/dist/chunks/{NcAppNavigationNewItem-Dmb8qw0g.mjs.map → NcAppNavigationNewItem-0C1S6gig.mjs.map} +1 -1
  409. package/dist/chunks/NcAppNavigationNewItem-DU1Va5Qs.cjs +97 -0
  410. package/dist/chunks/{NcAppNavigationNewItem-BkyKxjL8.cjs.map → NcAppNavigationNewItem-DU1Va5Qs.cjs.map} +1 -1
  411. package/dist/chunks/NcAppNavigationSettings-BVYD-_ON.mjs +111 -0
  412. package/dist/chunks/{NcAppNavigationSettings-CCjTkNf3.cjs.map → NcAppNavigationSettings-BVYD-_ON.mjs.map} +1 -1
  413. package/dist/chunks/NcAppNavigationSettings-CnuxB4p7.cjs +110 -0
  414. package/dist/chunks/{NcAppNavigationSettings-_O0oYU8k.mjs.map → NcAppNavigationSettings-CnuxB4p7.cjs.map} +1 -1
  415. package/dist/chunks/NcAppNavigationToggle--6uvG5sY.cjs +129 -0
  416. package/dist/chunks/{NcAppNavigationToggle-VDwkZ4nu.mjs.map → NcAppNavigationToggle--6uvG5sY.cjs.map} +1 -1
  417. package/dist/chunks/NcAppNavigationToggle-xOyRbwls.mjs +130 -0
  418. package/dist/chunks/{NcAppNavigationToggle-nnE6CrRb.cjs.map → NcAppNavigationToggle-xOyRbwls.mjs.map} +1 -1
  419. package/dist/chunks/NcAppSettingsDialog-CAYJSfm3.cjs +232 -0
  420. package/dist/chunks/{NcAppSettingsDialog-CECnsnfv.mjs.map → NcAppSettingsDialog-CAYJSfm3.cjs.map} +1 -1
  421. package/dist/chunks/NcAppSettingsDialog-CMknLVAP.mjs +230 -0
  422. package/dist/chunks/{NcAppSettingsDialog-wqDewrRQ.cjs.map → NcAppSettingsDialog-CMknLVAP.mjs.map} +1 -1
  423. package/dist/chunks/NcAppSidebar-D4v3Msgl.cjs +723 -0
  424. package/dist/chunks/NcAppSidebar-D4v3Msgl.cjs.map +1 -0
  425. package/dist/chunks/NcAppSidebar-DWb4MNeo.mjs +724 -0
  426. package/dist/chunks/NcAppSidebar-DWb4MNeo.mjs.map +1 -0
  427. package/dist/chunks/NcAvatar-BYvbqQP3.mjs +594 -0
  428. package/dist/chunks/NcAvatar-BYvbqQP3.mjs.map +1 -0
  429. package/dist/chunks/NcAvatar-DvV77AjU.cjs +595 -0
  430. package/dist/chunks/NcAvatar-DvV77AjU.cjs.map +1 -0
  431. package/dist/chunks/NcBreadcrumb-CccFNtmn.mjs +206 -0
  432. package/dist/chunks/{NcBreadcrumb-BerOYeSO.mjs.map → NcBreadcrumb-CccFNtmn.mjs.map} +1 -1
  433. package/dist/chunks/NcBreadcrumb-D_B838UO.cjs +205 -0
  434. package/dist/chunks/{NcBreadcrumb-BBZofeFG.cjs.map → NcBreadcrumb-D_B838UO.cjs.map} +1 -1
  435. package/dist/chunks/NcBreadcrumbs-BhBkulau.mjs +525 -0
  436. package/dist/chunks/{NcBreadcrumbs-BypDKcgj.mjs.map → NcBreadcrumbs-BhBkulau.mjs.map} +1 -1
  437. package/dist/chunks/NcBreadcrumbs-CaLzYM5s.cjs +527 -0
  438. package/dist/chunks/{NcBreadcrumbs-D0aoSiDN.cjs.map → NcBreadcrumbs-CaLzYM5s.cjs.map} +1 -1
  439. package/dist/chunks/NcCheckboxRadioSwitch-0kVQhCVw.cjs +685 -0
  440. package/dist/chunks/NcCheckboxRadioSwitch-0kVQhCVw.cjs.map +1 -0
  441. package/dist/chunks/NcCheckboxRadioSwitch-ByOy5xz5.mjs +686 -0
  442. package/dist/chunks/NcCheckboxRadioSwitch-ByOy5xz5.mjs.map +1 -0
  443. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_6d6e6a47_lang-BhTGXTuA.mjs +3 -0
  444. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_6d6e6a47_lang-BhTGXTuA.mjs.map +1 -0
  445. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_6d6e6a47_lang-CrbKZag1.cjs +4 -0
  446. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_6d6e6a47_lang-CrbKZag1.cjs.map +1 -0
  447. package/dist/chunks/NcColorPicker-BZ8w5NOJ.mjs +191 -0
  448. package/dist/chunks/NcColorPicker-BZ8w5NOJ.mjs.map +1 -0
  449. package/dist/chunks/NcColorPicker-BhdOJcFp.cjs +190 -0
  450. package/dist/chunks/NcColorPicker-BhdOJcFp.cjs.map +1 -0
  451. package/dist/chunks/NcContent-DW28aXMb.mjs +104 -0
  452. package/dist/chunks/{NcContent-CQk_EERB.mjs.map → NcContent-DW28aXMb.mjs.map} +1 -1
  453. package/dist/chunks/NcContent-JMqroMPc.cjs +103 -0
  454. package/dist/chunks/{NcContent-D-F_hXQE.cjs.map → NcContent-JMqroMPc.cjs.map} +1 -1
  455. package/dist/chunks/NcDashboardWidget-Bt_AiMLT.cjs +147 -0
  456. package/dist/chunks/{NcDashboardWidget-B5kIIXjc.mjs.map → NcDashboardWidget-Bt_AiMLT.cjs.map} +1 -1
  457. package/dist/chunks/NcDashboardWidget-hoZw8Qfz.mjs +148 -0
  458. package/dist/chunks/{NcDashboardWidget-DLTh61Jk.cjs.map → NcDashboardWidget-hoZw8Qfz.mjs.map} +1 -1
  459. package/dist/chunks/NcDashboardWidgetItem-C-Wa9TNk.mjs +151 -0
  460. package/dist/chunks/{NcDashboardWidgetItem-xj-DfJjn.mjs.map → NcDashboardWidgetItem-C-Wa9TNk.mjs.map} +1 -1
  461. package/dist/chunks/NcDashboardWidgetItem-DjSXMVgm.cjs +150 -0
  462. package/dist/chunks/{NcDashboardWidgetItem-BKhL4kyY.cjs.map → NcDashboardWidgetItem-DjSXMVgm.cjs.map} +1 -1
  463. package/dist/chunks/NcDateTime-iW-kErE1.mjs +181 -0
  464. package/dist/chunks/NcDateTime-iW-kErE1.mjs.map +1 -0
  465. package/dist/chunks/NcDateTime-kvWumSJA.cjs +180 -0
  466. package/dist/chunks/NcDateTime-kvWumSJA.cjs.map +1 -0
  467. package/dist/chunks/NcDialog-1TWFrsjf.mjs +235 -0
  468. package/dist/chunks/{NcDialog-C6nYgBDF.cjs.map → NcDialog-1TWFrsjf.mjs.map} +1 -1
  469. package/dist/chunks/NcDialog-G7XA1Z88.cjs +234 -0
  470. package/dist/chunks/{NcDialog-D6YSjidf.mjs.map → NcDialog-G7XA1Z88.cjs.map} +1 -1
  471. package/dist/chunks/NcDialogButton-NiGZGBjq.cjs +78 -0
  472. package/dist/chunks/{NcDialogButton-DQFoaN7q.mjs.map → NcDialogButton-NiGZGBjq.cjs.map} +1 -1
  473. package/dist/chunks/NcDialogButton-jh2GOQ_7.mjs +79 -0
  474. package/dist/chunks/{NcDialogButton-D7ibBxsQ.cjs.map → NcDialogButton-jh2GOQ_7.mjs.map} +1 -1
  475. package/dist/chunks/NcEmojiPicker-Drc9tYzl.mjs +284 -0
  476. package/dist/chunks/{NcEmojiPicker-028V7lKH.mjs.map → NcEmojiPicker-Drc9tYzl.mjs.map} +1 -1
  477. package/dist/chunks/NcEmojiPicker-Ju0ogVxs.cjs +285 -0
  478. package/dist/chunks/{NcEmojiPicker-BDRuuzNw.cjs.map → NcEmojiPicker-Ju0ogVxs.cjs.map} +1 -1
  479. package/dist/chunks/NcHeaderMenu-2n5GDt37.mjs +226 -0
  480. package/dist/chunks/{NcHeaderMenu-DOGXti7v.mjs.map → NcHeaderMenu-2n5GDt37.mjs.map} +1 -1
  481. package/dist/chunks/NcHeaderMenu-830tFszI.cjs +225 -0
  482. package/dist/chunks/{NcHeaderMenu-58OTmM-5.cjs.map → NcHeaderMenu-830tFszI.cjs.map} +1 -1
  483. package/dist/chunks/NcIconSvgWrapper-5v5HBSpx.mjs +109 -0
  484. package/dist/chunks/{NcIconSvgWrapper-kIn1eQyv.cjs.map → NcIconSvgWrapper-5v5HBSpx.mjs.map} +1 -1
  485. package/dist/chunks/NcIconSvgWrapper-D4GEZPIc.cjs +111 -0
  486. package/dist/chunks/{NcIconSvgWrapper-BTdzvQGV.mjs.map → NcIconSvgWrapper-D4GEZPIc.cjs.map} +1 -1
  487. package/dist/chunks/NcInputConfirmCancel-_SvdghX9.cjs +112 -0
  488. package/dist/chunks/{NcInputConfirmCancel-unF2X_Ax.cjs.map → NcInputConfirmCancel-_SvdghX9.cjs.map} +1 -1
  489. package/dist/chunks/NcInputConfirmCancel-uSZodQXZ.mjs +113 -0
  490. package/dist/chunks/{NcInputConfirmCancel-D5GYt1Th.mjs.map → NcInputConfirmCancel-uSZodQXZ.mjs.map} +1 -1
  491. package/dist/chunks/NcListItem-DwXB_QT2.cjs +275 -0
  492. package/dist/chunks/{NcListItem-DUrmhUuv.mjs.map → NcListItem-DwXB_QT2.cjs.map} +1 -1
  493. package/dist/chunks/NcListItem-R4rlqTZ-.mjs +276 -0
  494. package/dist/chunks/{NcListItem-BnsP7HQy.cjs.map → NcListItem-R4rlqTZ-.mjs.map} +1 -1
  495. package/dist/chunks/NcListItemIcon-DKSzgujO.cjs +175 -0
  496. package/dist/chunks/{NcListItemIcon-9um1JI9_.mjs.map → NcListItemIcon-DKSzgujO.cjs.map} +1 -1
  497. package/dist/chunks/NcListItemIcon-DONcrnT_.mjs +176 -0
  498. package/dist/chunks/{NcListItemIcon-Dd_ykGiP.cjs.map → NcListItemIcon-DONcrnT_.mjs.map} +1 -1
  499. package/dist/chunks/NcPasswordField-CGhVkWI2.cjs +256 -0
  500. package/dist/chunks/{NcPasswordField-BE4xwMjQ.mjs.map → NcPasswordField-CGhVkWI2.cjs.map} +1 -1
  501. package/dist/chunks/NcPasswordField-Vyt7Pk2z.mjs +254 -0
  502. package/dist/chunks/{NcPasswordField-ghqpLn7G.cjs.map → NcPasswordField-Vyt7Pk2z.mjs.map} +1 -1
  503. package/dist/chunks/NcPopover-BS1bBSkg.cjs +268 -0
  504. package/dist/chunks/{NcPopover--V3R3EKV.mjs.map → NcPopover-BS1bBSkg.cjs.map} +1 -1
  505. package/dist/chunks/NcPopover-foxJPAfG.mjs +267 -0
  506. package/dist/chunks/{NcPopover-h-t7Dnjk.cjs.map → NcPopover-foxJPAfG.mjs.map} +1 -1
  507. package/dist/chunks/NcProgressBar-BafFcKiu.mjs +117 -0
  508. package/dist/chunks/{NcProgressBar-BYk5hfPI.cjs.map → NcProgressBar-BafFcKiu.mjs.map} +1 -1
  509. package/dist/chunks/NcProgressBar-mFqoqB4L.cjs +116 -0
  510. package/dist/chunks/{NcProgressBar-DDAeXyp8.mjs.map → NcProgressBar-mFqoqB4L.cjs.map} +1 -1
  511. package/dist/chunks/NcRelatedResourcesPanel-BY8X00Zd.mjs +438 -0
  512. package/dist/chunks/{NcRelatedResourcesPanel-_r1K7ZaY.cjs.map → NcRelatedResourcesPanel-BY8X00Zd.mjs.map} +1 -1
  513. package/dist/chunks/NcRelatedResourcesPanel-Ci31S2dU.cjs +439 -0
  514. package/dist/chunks/{NcRelatedResourcesPanel-CuvKC8Is.mjs.map → NcRelatedResourcesPanel-Ci31S2dU.cjs.map} +1 -1
  515. package/dist/chunks/NcRichContenteditable-BpHLlt5A.mjs +797 -0
  516. package/dist/chunks/{NcRichContenteditable-Bo4te1z-.mjs.map → NcRichContenteditable-BpHLlt5A.mjs.map} +1 -1
  517. package/dist/chunks/NcRichContenteditable-DnukwC1y.cjs +800 -0
  518. package/dist/chunks/{NcRichContenteditable-Bm4NjGuD.cjs.map → NcRichContenteditable-DnukwC1y.cjs.map} +1 -1
  519. package/dist/chunks/NcRichText-Ba2D7EQq.mjs +412 -0
  520. package/dist/chunks/NcRichText-Ba2D7EQq.mjs.map +1 -0
  521. package/dist/chunks/NcRichText-U0Ral4-y.cjs +419 -0
  522. package/dist/chunks/NcRichText-U0Ral4-y.cjs.map +1 -0
  523. package/dist/chunks/NcSavingIndicatorIcon-Bhy7wcoT.mjs +65 -0
  524. package/dist/chunks/{NcSavingIndicatorIcon-Bf0SEmgS.mjs.map → NcSavingIndicatorIcon-Bhy7wcoT.mjs.map} +1 -1
  525. package/dist/chunks/NcSavingIndicatorIcon-BzKAIkhk.cjs +64 -0
  526. package/dist/chunks/{NcSavingIndicatorIcon-BTvUkUn-.cjs.map → NcSavingIndicatorIcon-BzKAIkhk.cjs.map} +1 -1
  527. package/dist/chunks/{NcSelect-DRVEZt73.mjs → NcSelect-EnQUx7gf.mjs} +159 -121
  528. package/dist/chunks/{NcSelect-C58Mm9lZ.cjs.map → NcSelect-EnQUx7gf.mjs.map} +1 -1
  529. package/dist/chunks/{NcSelect-C58Mm9lZ.cjs → NcSelect-uODI-lly.cjs} +161 -111
  530. package/dist/chunks/{NcSelect-DRVEZt73.mjs.map → NcSelect-uODI-lly.cjs.map} +1 -1
  531. package/dist/chunks/NcSelectTags-BzQxtK0g.cjs +303 -0
  532. package/dist/chunks/{NcSelectTags-Cleij1YB.cjs.map → NcSelectTags-BzQxtK0g.cjs.map} +1 -1
  533. package/dist/chunks/NcSelectTags-tEADv0cv.mjs +302 -0
  534. package/dist/chunks/{NcSelectTags-35nlauoq.mjs.map → NcSelectTags-tEADv0cv.mjs.map} +1 -1
  535. package/dist/chunks/NcSettingsInputText-BdjyNei5.mjs +102 -0
  536. package/dist/chunks/{NcSettingsInputText-BxsnpVjM.mjs.map → NcSettingsInputText-BdjyNei5.mjs.map} +1 -1
  537. package/dist/chunks/NcSettingsInputText-Bg_VDGoS.cjs +101 -0
  538. package/dist/chunks/{NcSettingsInputText-Cy7Umyq4.cjs.map → NcSettingsInputText-Bg_VDGoS.cjs.map} +1 -1
  539. package/dist/chunks/NcSettingsSection-CWQHnXy4.cjs +102 -0
  540. package/dist/chunks/{NcSettingsSection-BntYMcIt.mjs.map → NcSettingsSection-CWQHnXy4.cjs.map} +1 -1
  541. package/dist/chunks/NcSettingsSection-CWUIg3WZ.mjs +103 -0
  542. package/dist/chunks/{NcSettingsSection-fWPqQmzZ.cjs.map → NcSettingsSection-CWUIg3WZ.mjs.map} +1 -1
  543. package/dist/chunks/NcSettingsSelectGroup-DyQfy9P5.cjs +213 -0
  544. package/dist/chunks/{NcSettingsSelectGroup-CehQI4oG.mjs.map → NcSettingsSelectGroup-DyQfy9P5.cjs.map} +1 -1
  545. package/dist/chunks/NcSettingsSelectGroup-I_qUQ6nA.mjs +211 -0
  546. package/dist/chunks/{NcSettingsSelectGroup-68kJocD5.cjs.map → NcSettingsSelectGroup-I_qUQ6nA.mjs.map} +1 -1
  547. package/dist/chunks/NcTextField-Bu1cvjSc.mjs +151 -0
  548. package/dist/chunks/{NcTextField-BAKyJTQ0.mjs.map → NcTextField-Bu1cvjSc.mjs.map} +1 -1
  549. package/dist/chunks/NcTextField-CO0wnb8n.cjs +150 -0
  550. package/dist/chunks/{NcTextField-DKppZoIo.cjs.map → NcTextField-CO0wnb8n.cjs.map} +1 -1
  551. package/dist/chunks/{NcTimezonePicker-8juQvyGU.mjs → NcTimezonePicker-BA3AYCBm.mjs} +131 -84
  552. package/dist/chunks/{NcTimezonePicker-8juQvyGU.mjs.map → NcTimezonePicker-BA3AYCBm.mjs.map} +1 -1
  553. package/dist/chunks/{NcTimezonePicker-D6psCKlf.cjs → NcTimezonePicker-D1jVCuUh.cjs} +131 -79
  554. package/dist/chunks/{NcTimezonePicker-D6psCKlf.cjs.map → NcTimezonePicker-D1jVCuUh.cjs.map} +1 -1
  555. package/dist/chunks/NcUserBubble-CSAU8jCM.cjs +212 -0
  556. package/dist/chunks/{NcUserBubble-6o5fw3gB.mjs.map → NcUserBubble-CSAU8jCM.cjs.map} +1 -1
  557. package/dist/chunks/NcUserBubble-h9Zo3CCT.mjs +211 -0
  558. package/dist/chunks/{NcUserBubble-J_kbLTpc.cjs.map → NcUserBubble-h9Zo3CCT.mjs.map} +1 -1
  559. package/dist/chunks/NcUserStatusIcon-BC9qDAzb.mjs +168 -0
  560. package/dist/chunks/{NcUserStatusIcon-Bqtgf32T.cjs.map → NcUserStatusIcon-BC9qDAzb.mjs.map} +1 -1
  561. package/dist/chunks/NcUserStatusIcon-BpLvFq3p.cjs +170 -0
  562. package/dist/chunks/{NcUserStatusIcon-D_ItGF5U.mjs.map → NcUserStatusIcon-BpLvFq3p.cjs.map} +1 -1
  563. package/dist/chunks/{ScopeComponent-BZYPT7rR.mjs → ScopeComponent-B9RptB1A.mjs} +9 -4
  564. package/dist/chunks/{ScopeComponent-BZYPT7rR.mjs.map → ScopeComponent-B9RptB1A.mjs.map} +1 -1
  565. package/dist/chunks/{ScopeComponent-C0EJf0Ag.cjs → ScopeComponent-Cmn9OSZb.cjs} +9 -4
  566. package/dist/chunks/{ScopeComponent-C0EJf0Ag.cjs.map → ScopeComponent-Cmn9OSZb.cjs.map} +1 -1
  567. package/dist/chunks/_l10n-DwEsZ6zb.mjs +122 -0
  568. package/dist/chunks/_l10n-DwEsZ6zb.mjs.map +1 -0
  569. package/dist/chunks/_l10n-ftziezFF.cjs +121 -0
  570. package/dist/chunks/_l10n-ftziezFF.cjs.map +1 -0
  571. package/dist/chunks/_plugin-vue2_normalizer-D637Qkok.mjs +59 -0
  572. package/dist/chunks/_plugin-vue2_normalizer-D637Qkok.mjs.map +1 -0
  573. package/dist/chunks/_plugin-vue2_normalizer-DbFIE4_M.cjs +58 -0
  574. package/dist/chunks/_plugin-vue2_normalizer-DbFIE4_M.cjs.map +1 -0
  575. package/dist/chunks/{actionGlobal-DL1VaQzF.cjs → actionGlobal-BfK-CImU.cjs} +2 -2
  576. package/dist/chunks/{actionGlobal-D49NL940.mjs.map → actionGlobal-BfK-CImU.cjs.map} +1 -1
  577. package/dist/chunks/{actionGlobal-D49NL940.mjs → actionGlobal-DV5ZiuS0.mjs} +2 -2
  578. package/dist/chunks/{actionGlobal-DL1VaQzF.cjs.map → actionGlobal-DV5ZiuS0.mjs.map} +1 -1
  579. package/dist/chunks/{actionText-jLsEBszD.mjs → actionText-BaGktsVf.mjs} +21 -17
  580. package/dist/chunks/{actionText-jLsEBszD.mjs.map → actionText-BaGktsVf.mjs.map} +1 -1
  581. package/dist/chunks/{actionText-iWNpvZuI.cjs → actionText-BnA6RS9I.cjs} +21 -17
  582. package/dist/chunks/{actionText-iWNpvZuI.cjs.map → actionText-BnA6RS9I.cjs.map} +1 -1
  583. package/dist/chunks/autolink-Bgjz08wN.cjs +125 -0
  584. package/dist/chunks/autolink-Bgjz08wN.cjs.map +1 -0
  585. package/dist/chunks/autolink-DA7VzS8Y.mjs +126 -0
  586. package/dist/chunks/autolink-DA7VzS8Y.mjs.map +1 -0
  587. package/dist/chunks/emoji-CWr00EYY.cjs +87 -0
  588. package/dist/chunks/emoji-CWr00EYY.cjs.map +1 -0
  589. package/dist/chunks/emoji-CbOkKZx5.mjs +86 -0
  590. package/dist/chunks/emoji-CbOkKZx5.mjs.map +1 -0
  591. package/dist/chunks/{focusTrap-xauhLvvr.cjs → focusTrap-Dsmd28wG.cjs} +4 -3
  592. package/dist/chunks/{focusTrap-Be9GEB5C.mjs.map → focusTrap-Dsmd28wG.cjs.map} +1 -1
  593. package/dist/chunks/{focusTrap-Be9GEB5C.mjs → focusTrap-hWDNhn4t.mjs} +4 -3
  594. package/dist/chunks/{focusTrap-xauhLvvr.cjs.map → focusTrap-hWDNhn4t.mjs.map} +1 -1
  595. package/dist/chunks/{getAvatarUrl-BHpn8LgJ.mjs → getAvatarUrl-BBvqBOJD.mjs} +7 -7
  596. package/dist/chunks/{getAvatarUrl-BHpn8LgJ.mjs.map → getAvatarUrl-BBvqBOJD.mjs.map} +1 -1
  597. package/dist/chunks/{getAvatarUrl-CjIpoO6I.cjs → getAvatarUrl-C40xfr4C.cjs} +7 -7
  598. package/dist/chunks/{getAvatarUrl-CjIpoO6I.cjs.map → getAvatarUrl-C40xfr4C.cjs.map} +1 -1
  599. package/dist/chunks/index-BRQQ9NaL.mjs +198 -0
  600. package/dist/chunks/{index-uiNhPYvS.mjs.map → index-BRQQ9NaL.mjs.map} +1 -1
  601. package/dist/chunks/index-BwyQ2N-M.mjs +119 -0
  602. package/dist/chunks/index-BwyQ2N-M.mjs.map +1 -0
  603. package/dist/chunks/index-D0euettC.cjs +201 -0
  604. package/dist/chunks/{index-CMnR5Pf6.cjs.map → index-D0euettC.cjs.map} +1 -1
  605. package/dist/chunks/index-DYccGIvD.mjs +197 -0
  606. package/dist/chunks/{index-CnpswYi6.mjs.map → index-DYccGIvD.mjs.map} +1 -1
  607. package/dist/chunks/index-Dl-SBuhJ.cjs +196 -0
  608. package/dist/chunks/{index-Cke9rKBg.cjs.map → index-Dl-SBuhJ.cjs.map} +1 -1
  609. package/dist/chunks/index-Dsgv-f-l.cjs +118 -0
  610. package/dist/chunks/index-Dsgv-f-l.cjs.map +1 -0
  611. package/dist/chunks/{logger-D9RRY4er.cjs → logger-BcZGm6Un.cjs} +3 -3
  612. package/dist/chunks/{logger-C7qcfVW8.mjs.map → logger-BcZGm6Un.cjs.map} +1 -1
  613. package/dist/chunks/{logger-C7qcfVW8.mjs → logger-C7ZZ6zFQ.mjs} +3 -3
  614. package/dist/chunks/{logger-D9RRY4er.cjs.map → logger-C7ZZ6zFQ.mjs.map} +1 -1
  615. package/dist/chunks/referencePickerModal-DBIqS1ep.mjs +3474 -0
  616. package/dist/chunks/referencePickerModal-DBIqS1ep.mjs.map +1 -0
  617. package/dist/chunks/referencePickerModal-XXILzgbd.cjs +3476 -0
  618. package/dist/chunks/referencePickerModal-XXILzgbd.cjs.map +1 -0
  619. package/dist/chunks/{usernameToColor-CgqbKJ4t.mjs → usernameToColor-3O2cQhM4.mjs} +22 -16
  620. package/dist/chunks/{usernameToColor-CgqbKJ4t.mjs.map → usernameToColor-3O2cQhM4.mjs.map} +1 -1
  621. package/dist/chunks/usernameToColor-DiRnOvlG.cjs +48 -0
  622. package/dist/chunks/{usernameToColor-B7GSjspk.cjs.map → usernameToColor-DiRnOvlG.cjs.map} +1 -1
  623. package/dist/composables/useFormatDateTime.d.ts +57 -0
  624. package/dist/index.cjs +284 -224
  625. package/dist/index.cjs.map +1 -1
  626. package/dist/index.mjs +287 -306
  627. package/dist/index.mjs.map +1 -1
  628. package/dist/plugin.d.ts +2 -1
  629. package/package.json +7 -6
  630. package/dist/assets/NcRichText-D2BBsB-_.css +0 -218
  631. package/dist/assets/referencePickerModal-DWB2ghBg.css +0 -336
  632. package/dist/chunks/AlertCircleOutline-DHFN4OkX.cjs +0 -35
  633. package/dist/chunks/AlertCircleOutline-U_bhL30C.mjs +0 -37
  634. package/dist/chunks/ArrowLeft-CjNnGIlF.cjs +0 -35
  635. package/dist/chunks/ArrowLeft-kklNBL9z.mjs +0 -37
  636. package/dist/chunks/ArrowRight-C3BxTDjF.mjs +0 -37
  637. package/dist/chunks/ArrowRight-CxzzJJQ6.cjs +0 -35
  638. package/dist/chunks/Check-CRLmJNGG.mjs +0 -37
  639. package/dist/chunks/Check-CVn5nytg.cjs +0 -35
  640. package/dist/chunks/ChevronDown-DQPox_nl.cjs +0 -35
  641. package/dist/chunks/ChevronDown-HHJdUMN4.mjs +0 -37
  642. package/dist/chunks/ChevronRight-BAJhNawb.cjs +0 -35
  643. package/dist/chunks/ChevronRight-DL3e8bjj.mjs +0 -37
  644. package/dist/chunks/ChevronUp-B6TIgl1a.mjs +0 -37
  645. package/dist/chunks/ChevronUp-kmHRpe7H.cjs +0 -35
  646. package/dist/chunks/Close-BtO5TPBO.mjs +0 -37
  647. package/dist/chunks/Close-DBfrdXMw.cjs +0 -35
  648. package/dist/chunks/DotsHorizontal-B8kTqpHe.cjs +0 -35
  649. package/dist/chunks/DotsHorizontal-DfVgEXgz.mjs +0 -37
  650. package/dist/chunks/GenColors-Du2-qv6X.cjs +0 -141
  651. package/dist/chunks/NcActionButtonGroup-Cawk1Q5J.cjs +0 -46
  652. package/dist/chunks/NcActionButtonGroup-jODsi2kz.mjs +0 -50
  653. package/dist/chunks/NcActionInput-BJSgHPYh.mjs +0 -244
  654. package/dist/chunks/NcActionInput-NL0c8XAX.cjs +0 -235
  655. package/dist/chunks/NcActions-B1Ue3gj8.mjs +0 -676
  656. package/dist/chunks/NcActions-X10TnO-4.cjs +0 -668
  657. package/dist/chunks/NcAppContent-BkVLz0T8.mjs +0 -265
  658. package/dist/chunks/NcAppContent-CxdfMOVw.cjs +0 -256
  659. package/dist/chunks/NcAppNavigation-BxaQQTmk.mjs +0 -124
  660. package/dist/chunks/NcAppNavigation-CmBNq0sh.cjs +0 -115
  661. package/dist/chunks/NcAppNavigationCaption-BQsUUBUS.mjs +0 -61
  662. package/dist/chunks/NcAppNavigationCaption-CUJSIO54.cjs +0 -58
  663. package/dist/chunks/NcAppNavigationItem-Cheox0NI.mjs +0 -477
  664. package/dist/chunks/NcAppNavigationItem-DdfXf1p_.cjs +0 -465
  665. package/dist/chunks/NcAppNavigationNewItem-BkyKxjL8.cjs +0 -87
  666. package/dist/chunks/NcAppNavigationNewItem-Dmb8qw0g.mjs +0 -91
  667. package/dist/chunks/NcAppNavigationSettings-CCjTkNf3.cjs +0 -104
  668. package/dist/chunks/NcAppNavigationSettings-_O0oYU8k.mjs +0 -106
  669. package/dist/chunks/NcAppNavigationToggle-VDwkZ4nu.mjs +0 -122
  670. package/dist/chunks/NcAppNavigationToggle-nnE6CrRb.cjs +0 -119
  671. package/dist/chunks/NcAppSettingsDialog-CECnsnfv.mjs +0 -191
  672. package/dist/chunks/NcAppSettingsDialog-wqDewrRQ.cjs +0 -184
  673. package/dist/chunks/NcAppSidebar-9W8ytMkj.mjs +0 -600
  674. package/dist/chunks/NcAppSidebar-9W8ytMkj.mjs.map +0 -1
  675. package/dist/chunks/NcAppSidebar-DkDtOUbu.cjs +0 -582
  676. package/dist/chunks/NcAppSidebar-DkDtOUbu.cjs.map +0 -1
  677. package/dist/chunks/NcAvatar-CO9waN_L.cjs +0 -458
  678. package/dist/chunks/NcAvatar-CO9waN_L.cjs.map +0 -1
  679. package/dist/chunks/NcAvatar-GULQurjA.mjs +0 -474
  680. package/dist/chunks/NcAvatar-GULQurjA.mjs.map +0 -1
  681. package/dist/chunks/NcBreadcrumb-BBZofeFG.cjs +0 -180
  682. package/dist/chunks/NcBreadcrumb-BerOYeSO.mjs +0 -186
  683. package/dist/chunks/NcBreadcrumbs-BypDKcgj.mjs +0 -422
  684. package/dist/chunks/NcBreadcrumbs-D0aoSiDN.cjs +0 -412
  685. package/dist/chunks/NcCheckboxRadioSwitch-BcwXUfkk.mjs +0 -607
  686. package/dist/chunks/NcCheckboxRadioSwitch-BcwXUfkk.mjs.map +0 -1
  687. package/dist/chunks/NcCheckboxRadioSwitch-UnycoV8I.cjs +0 -603
  688. package/dist/chunks/NcCheckboxRadioSwitch-UnycoV8I.cjs.map +0 -1
  689. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Dfig4O2O.cjs +0 -4
  690. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Dfig4O2O.cjs.map +0 -1
  691. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Zn4mWlPY.mjs +0 -3
  692. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Zn4mWlPY.mjs.map +0 -1
  693. package/dist/chunks/NcColorPicker-BUsEYIj3.cjs +0 -168
  694. package/dist/chunks/NcColorPicker-BUsEYIj3.cjs.map +0 -1
  695. package/dist/chunks/NcColorPicker-C29EJ5Gw.mjs +0 -178
  696. package/dist/chunks/NcColorPicker-C29EJ5Gw.mjs.map +0 -1
  697. package/dist/chunks/NcContent-CQk_EERB.mjs +0 -87
  698. package/dist/chunks/NcContent-D-F_hXQE.cjs +0 -80
  699. package/dist/chunks/NcDashboardWidget-B5kIIXjc.mjs +0 -141
  700. package/dist/chunks/NcDashboardWidget-DLTh61Jk.cjs +0 -135
  701. package/dist/chunks/NcDashboardWidgetItem-BKhL4kyY.cjs +0 -138
  702. package/dist/chunks/NcDashboardWidgetItem-xj-DfJjn.mjs +0 -143
  703. package/dist/chunks/NcDateTime-BeI2IjH3.mjs +0 -146
  704. package/dist/chunks/NcDateTime-BeI2IjH3.mjs.map +0 -1
  705. package/dist/chunks/NcDateTime-DuS_515z.cjs +0 -142
  706. package/dist/chunks/NcDateTime-DuS_515z.cjs.map +0 -1
  707. package/dist/chunks/NcDialog-C6nYgBDF.cjs +0 -207
  708. package/dist/chunks/NcDialog-D6YSjidf.mjs +0 -214
  709. package/dist/chunks/NcDialogButton-D7ibBxsQ.cjs +0 -69
  710. package/dist/chunks/NcDialogButton-DQFoaN7q.mjs +0 -74
  711. package/dist/chunks/NcEmojiPicker-028V7lKH.mjs +0 -251
  712. package/dist/chunks/NcEmojiPicker-BDRuuzNw.cjs +0 -241
  713. package/dist/chunks/NcHeaderMenu-58OTmM-5.cjs +0 -187
  714. package/dist/chunks/NcHeaderMenu-DOGXti7v.mjs +0 -193
  715. package/dist/chunks/NcIconSvgWrapper-BTdzvQGV.mjs +0 -93
  716. package/dist/chunks/NcIconSvgWrapper-kIn1eQyv.cjs +0 -89
  717. package/dist/chunks/NcInputConfirmCancel-D5GYt1Th.mjs +0 -97
  718. package/dist/chunks/NcInputConfirmCancel-unF2X_Ax.cjs +0 -92
  719. package/dist/chunks/NcListItem-BnsP7HQy.cjs +0 -233
  720. package/dist/chunks/NcListItem-DUrmhUuv.mjs +0 -238
  721. package/dist/chunks/NcListItemIcon-9um1JI9_.mjs +0 -166
  722. package/dist/chunks/NcListItemIcon-Dd_ykGiP.cjs +0 -163
  723. package/dist/chunks/NcPasswordField-BE4xwMjQ.mjs +0 -238
  724. package/dist/chunks/NcPasswordField-ghqpLn7G.cjs +0 -229
  725. package/dist/chunks/NcPopover--V3R3EKV.mjs +0 -239
  726. package/dist/chunks/NcPopover-h-t7Dnjk.cjs +0 -233
  727. package/dist/chunks/NcProgressBar-BYk5hfPI.cjs +0 -96
  728. package/dist/chunks/NcProgressBar-DDAeXyp8.mjs +0 -99
  729. package/dist/chunks/NcRelatedResourcesPanel-CuvKC8Is.mjs +0 -381
  730. package/dist/chunks/NcRelatedResourcesPanel-_r1K7ZaY.cjs +0 -371
  731. package/dist/chunks/NcRichContenteditable-Bm4NjGuD.cjs +0 -640
  732. package/dist/chunks/NcRichContenteditable-Bo4te1z-.mjs +0 -649
  733. package/dist/chunks/NcRichText-BP7ht7d4.cjs +0 -329
  734. package/dist/chunks/NcRichText-BP7ht7d4.cjs.map +0 -1
  735. package/dist/chunks/NcRichText-DUCudV4J.mjs +0 -345
  736. package/dist/chunks/NcRichText-DUCudV4J.mjs.map +0 -1
  737. package/dist/chunks/NcSavingIndicatorIcon-BTvUkUn-.cjs +0 -59
  738. package/dist/chunks/NcSavingIndicatorIcon-Bf0SEmgS.mjs +0 -62
  739. package/dist/chunks/NcSelectTags-35nlauoq.mjs +0 -258
  740. package/dist/chunks/NcSelectTags-Cleij1YB.cjs +0 -252
  741. package/dist/chunks/NcSettingsInputText-BxsnpVjM.mjs +0 -95
  742. package/dist/chunks/NcSettingsInputText-Cy7Umyq4.cjs +0 -92
  743. package/dist/chunks/NcSettingsSection-BntYMcIt.mjs +0 -98
  744. package/dist/chunks/NcSettingsSection-fWPqQmzZ.cjs +0 -96
  745. package/dist/chunks/NcSettingsSelectGroup-68kJocD5.cjs +0 -185
  746. package/dist/chunks/NcSettingsSelectGroup-CehQI4oG.mjs +0 -192
  747. package/dist/chunks/NcTextField-BAKyJTQ0.mjs +0 -146
  748. package/dist/chunks/NcTextField-DKppZoIo.cjs +0 -140
  749. package/dist/chunks/NcUserBubble-6o5fw3gB.mjs +0 -198
  750. package/dist/chunks/NcUserBubble-J_kbLTpc.cjs +0 -193
  751. package/dist/chunks/NcUserStatusIcon-Bqtgf32T.cjs +0 -150
  752. package/dist/chunks/NcUserStatusIcon-D_ItGF5U.mjs +0 -157
  753. package/dist/chunks/_l10n-BVVVUgGU.cjs +0 -66
  754. package/dist/chunks/_l10n-BVVVUgGU.cjs.map +0 -1
  755. package/dist/chunks/_l10n-BZu8wI2q.mjs +0 -68
  756. package/dist/chunks/_l10n-BZu8wI2q.mjs.map +0 -1
  757. package/dist/chunks/_plugin-vue2_normalizer-Bj5bLKV4.mjs +0 -32
  758. package/dist/chunks/_plugin-vue2_normalizer-Bj5bLKV4.mjs.map +0 -1
  759. package/dist/chunks/_plugin-vue2_normalizer-GXKvuwrq.cjs +0 -31
  760. package/dist/chunks/_plugin-vue2_normalizer-GXKvuwrq.cjs.map +0 -1
  761. package/dist/chunks/autolink-BtgUDDdk.mjs +0 -59
  762. package/dist/chunks/autolink-BtgUDDdk.mjs.map +0 -1
  763. package/dist/chunks/autolink-D0rLUkqm.cjs +0 -55
  764. package/dist/chunks/autolink-D0rLUkqm.cjs.map +0 -1
  765. package/dist/chunks/emoji-DEH9dtOa.cjs +0 -59
  766. package/dist/chunks/emoji-DEH9dtOa.cjs.map +0 -1
  767. package/dist/chunks/emoji-k4gWHxrE.mjs +0 -62
  768. package/dist/chunks/emoji-k4gWHxrE.mjs.map +0 -1
  769. package/dist/chunks/index-Bh9FEWbr.cjs +0 -87
  770. package/dist/chunks/index-Bh9FEWbr.cjs.map +0 -1
  771. package/dist/chunks/index-CMnR5Pf6.cjs +0 -157
  772. package/dist/chunks/index-CU14QsCg.mjs +0 -88
  773. package/dist/chunks/index-CU14QsCg.mjs.map +0 -1
  774. package/dist/chunks/index-Cke9rKBg.cjs +0 -148
  775. package/dist/chunks/index-CnpswYi6.mjs +0 -149
  776. package/dist/chunks/index-uiNhPYvS.mjs +0 -163
  777. package/dist/chunks/referencePickerModal-CoaOqLOw.cjs +0 -2408
  778. package/dist/chunks/referencePickerModal-CoaOqLOw.cjs.map +0 -1
  779. package/dist/chunks/referencePickerModal-DJNSkODj.mjs +0 -2428
  780. package/dist/chunks/referencePickerModal-DJNSkODj.mjs.map +0 -1
  781. package/dist/chunks/usernameToColor-B7GSjspk.cjs +0 -39
@@ -0,0 +1,3476 @@
1
+ require('../assets/referencePickerModal-C0ibN2gO.css');
2
+ "use strict";
3
+ const Functions_registerReference = require("./index-Dsgv-f-l.cjs");
4
+ const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-DbFIE4_M.cjs");
5
+ const _l10n = require("./_l10n-ftziezFF.cjs");
6
+ const axios = require("@nextcloud/axios");
7
+ const initialState = require("@nextcloud/initial-state");
8
+ const router = require("@nextcloud/router");
9
+ const Components_NcEmptyContent = require("../Components/NcEmptyContent.cjs");
10
+ const Components_NcHighlight = require("./index-Dl-SBuhJ.cjs");
11
+ const NcSelect = require("./NcSelect-uODI-lly.cjs");
12
+ const core = require("@vueuse/core");
13
+ const Vue = require("vue");
14
+ const autolink = require("./autolink-Bgjz08wN.cjs");
15
+ const Components_NcButton = require("../Components/NcButton.cjs");
16
+ const Components_NcLoadingIcon = require("../Components/NcLoadingIcon.cjs");
17
+ const NcTextField = require("./NcTextField-CO0wnb8n.cjs");
18
+ const DotsHorizontal = require("./DotsHorizontal-Cjw3-45t.cjs");
19
+ const Components_NcModal = require("../Components/NcModal.cjs");
20
+ const eventBus = require("@nextcloud/event-bus");
21
+ const ArrowLeft = require("./ArrowLeft-BhNmMdMz.cjs");
22
+ const Close = require("./Close-C2VrgKj3.cjs");
23
+ const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
24
+ const axios__default = /* @__PURE__ */ _interopDefault(axios);
25
+ const Vue__default = /* @__PURE__ */ _interopDefault(Vue);
26
+ /*!
27
+ * vue-router v3.6.5
28
+ * (c) 2022 Evan You
29
+ * @license MIT
30
+ */
31
+ function assert(condition, message) {
32
+ if (!condition) {
33
+ throw new Error("[vue-router] " + message);
34
+ }
35
+ }
36
+ function warn(condition, message) {
37
+ if (!condition) {
38
+ typeof console !== "undefined" && console.warn("[vue-router] " + message);
39
+ }
40
+ }
41
+ function extend(a, b) {
42
+ for (var key in b) {
43
+ a[key] = b[key];
44
+ }
45
+ return a;
46
+ }
47
+ var encodeReserveRE = /[!'()*]/g;
48
+ var encodeReserveReplacer = function(c) {
49
+ return "%" + c.charCodeAt(0).toString(16);
50
+ };
51
+ var commaRE = /%2C/g;
52
+ var encode = function(str) {
53
+ return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ",");
54
+ };
55
+ function decode(str) {
56
+ try {
57
+ return decodeURIComponent(str);
58
+ } catch (err) {
59
+ if (process.env.NODE_ENV !== "production") {
60
+ warn(false, 'Error decoding "' + str + '". Leaving it intact.');
61
+ }
62
+ }
63
+ return str;
64
+ }
65
+ function resolveQuery(query, extraQuery, _parseQuery) {
66
+ if (extraQuery === void 0)
67
+ extraQuery = {};
68
+ var parse2 = _parseQuery || parseQuery;
69
+ var parsedQuery;
70
+ try {
71
+ parsedQuery = parse2(query || "");
72
+ } catch (e) {
73
+ process.env.NODE_ENV !== "production" && warn(false, e.message);
74
+ parsedQuery = {};
75
+ }
76
+ for (var key in extraQuery) {
77
+ var value = extraQuery[key];
78
+ parsedQuery[key] = Array.isArray(value) ? value.map(castQueryParamValue) : castQueryParamValue(value);
79
+ }
80
+ return parsedQuery;
81
+ }
82
+ var castQueryParamValue = function(value) {
83
+ return value == null || typeof value === "object" ? value : String(value);
84
+ };
85
+ function parseQuery(query) {
86
+ var res = {};
87
+ query = query.trim().replace(/^(\?|#|&)/, "");
88
+ if (!query) {
89
+ return res;
90
+ }
91
+ query.split("&").forEach(function(param) {
92
+ var parts = param.replace(/\+/g, " ").split("=");
93
+ var key = decode(parts.shift());
94
+ var val = parts.length > 0 ? decode(parts.join("=")) : null;
95
+ if (res[key] === void 0) {
96
+ res[key] = val;
97
+ } else if (Array.isArray(res[key])) {
98
+ res[key].push(val);
99
+ } else {
100
+ res[key] = [res[key], val];
101
+ }
102
+ });
103
+ return res;
104
+ }
105
+ function stringifyQuery(obj) {
106
+ var res = obj ? Object.keys(obj).map(function(key) {
107
+ var val = obj[key];
108
+ if (val === void 0) {
109
+ return "";
110
+ }
111
+ if (val === null) {
112
+ return encode(key);
113
+ }
114
+ if (Array.isArray(val)) {
115
+ var result = [];
116
+ val.forEach(function(val2) {
117
+ if (val2 === void 0) {
118
+ return;
119
+ }
120
+ if (val2 === null) {
121
+ result.push(encode(key));
122
+ } else {
123
+ result.push(encode(key) + "=" + encode(val2));
124
+ }
125
+ });
126
+ return result.join("&");
127
+ }
128
+ return encode(key) + "=" + encode(val);
129
+ }).filter(function(x) {
130
+ return x.length > 0;
131
+ }).join("&") : null;
132
+ return res ? "?" + res : "";
133
+ }
134
+ var trailingSlashRE = /\/?$/;
135
+ function createRoute(record, location, redirectedFrom, router2) {
136
+ var stringifyQuery2 = router2 && router2.options.stringifyQuery;
137
+ var query = location.query || {};
138
+ try {
139
+ query = clone(query);
140
+ } catch (e) {
141
+ }
142
+ var route = {
143
+ name: location.name || record && record.name,
144
+ meta: record && record.meta || {},
145
+ path: location.path || "/",
146
+ hash: location.hash || "",
147
+ query,
148
+ params: location.params || {},
149
+ fullPath: getFullPath(location, stringifyQuery2),
150
+ matched: record ? formatMatch(record) : []
151
+ };
152
+ if (redirectedFrom) {
153
+ route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery2);
154
+ }
155
+ return Object.freeze(route);
156
+ }
157
+ function clone(value) {
158
+ if (Array.isArray(value)) {
159
+ return value.map(clone);
160
+ } else if (value && typeof value === "object") {
161
+ var res = {};
162
+ for (var key in value) {
163
+ res[key] = clone(value[key]);
164
+ }
165
+ return res;
166
+ } else {
167
+ return value;
168
+ }
169
+ }
170
+ var START = createRoute(null, {
171
+ path: "/"
172
+ });
173
+ function formatMatch(record) {
174
+ var res = [];
175
+ while (record) {
176
+ res.unshift(record);
177
+ record = record.parent;
178
+ }
179
+ return res;
180
+ }
181
+ function getFullPath(ref, _stringifyQuery) {
182
+ var path = ref.path;
183
+ var query = ref.query;
184
+ if (query === void 0)
185
+ query = {};
186
+ var hash = ref.hash;
187
+ if (hash === void 0)
188
+ hash = "";
189
+ var stringify = _stringifyQuery || stringifyQuery;
190
+ return (path || "/") + stringify(query) + hash;
191
+ }
192
+ function isSameRoute(a, b, onlyPath) {
193
+ if (b === START) {
194
+ return a === b;
195
+ } else if (!b) {
196
+ return false;
197
+ } else if (a.path && b.path) {
198
+ return a.path.replace(trailingSlashRE, "") === b.path.replace(trailingSlashRE, "") && (onlyPath || a.hash === b.hash && isObjectEqual(a.query, b.query));
199
+ } else if (a.name && b.name) {
200
+ return a.name === b.name && (onlyPath || a.hash === b.hash && isObjectEqual(a.query, b.query) && isObjectEqual(a.params, b.params));
201
+ } else {
202
+ return false;
203
+ }
204
+ }
205
+ function isObjectEqual(a, b) {
206
+ if (a === void 0)
207
+ a = {};
208
+ if (b === void 0)
209
+ b = {};
210
+ if (!a || !b) {
211
+ return a === b;
212
+ }
213
+ var aKeys = Object.keys(a).sort();
214
+ var bKeys = Object.keys(b).sort();
215
+ if (aKeys.length !== bKeys.length) {
216
+ return false;
217
+ }
218
+ return aKeys.every(function(key, i) {
219
+ var aVal = a[key];
220
+ var bKey = bKeys[i];
221
+ if (bKey !== key) {
222
+ return false;
223
+ }
224
+ var bVal = b[key];
225
+ if (aVal == null || bVal == null) {
226
+ return aVal === bVal;
227
+ }
228
+ if (typeof aVal === "object" && typeof bVal === "object") {
229
+ return isObjectEqual(aVal, bVal);
230
+ }
231
+ return String(aVal) === String(bVal);
232
+ });
233
+ }
234
+ function isIncludedRoute(current, target) {
235
+ return current.path.replace(trailingSlashRE, "/").indexOf(
236
+ target.path.replace(trailingSlashRE, "/")
237
+ ) === 0 && (!target.hash || current.hash === target.hash) && queryIncludes(current.query, target.query);
238
+ }
239
+ function queryIncludes(current, target) {
240
+ for (var key in target) {
241
+ if (!(key in current)) {
242
+ return false;
243
+ }
244
+ }
245
+ return true;
246
+ }
247
+ function handleRouteEntered(route) {
248
+ for (var i = 0; i < route.matched.length; i++) {
249
+ var record = route.matched[i];
250
+ for (var name in record.instances) {
251
+ var instance = record.instances[name];
252
+ var cbs = record.enteredCbs[name];
253
+ if (!instance || !cbs) {
254
+ continue;
255
+ }
256
+ delete record.enteredCbs[name];
257
+ for (var i$1 = 0; i$1 < cbs.length; i$1++) {
258
+ if (!instance._isBeingDestroyed) {
259
+ cbs[i$1](instance);
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ var View = {
266
+ name: "RouterView",
267
+ functional: true,
268
+ props: {
269
+ name: {
270
+ type: String,
271
+ default: "default"
272
+ }
273
+ },
274
+ render: function render(_, ref) {
275
+ var props = ref.props;
276
+ var children = ref.children;
277
+ var parent = ref.parent;
278
+ var data = ref.data;
279
+ data.routerView = true;
280
+ var h = parent.$createElement;
281
+ var name = props.name;
282
+ var route = parent.$route;
283
+ var cache = parent._routerViewCache || (parent._routerViewCache = {});
284
+ var depth = 0;
285
+ var inactive = false;
286
+ while (parent && parent._routerRoot !== parent) {
287
+ var vnodeData = parent.$vnode ? parent.$vnode.data : {};
288
+ if (vnodeData.routerView) {
289
+ depth++;
290
+ }
291
+ if (vnodeData.keepAlive && parent._directInactive && parent._inactive) {
292
+ inactive = true;
293
+ }
294
+ parent = parent.$parent;
295
+ }
296
+ data.routerViewDepth = depth;
297
+ if (inactive) {
298
+ var cachedData = cache[name];
299
+ var cachedComponent = cachedData && cachedData.component;
300
+ if (cachedComponent) {
301
+ if (cachedData.configProps) {
302
+ fillPropsinData(cachedComponent, data, cachedData.route, cachedData.configProps);
303
+ }
304
+ return h(cachedComponent, data, children);
305
+ } else {
306
+ return h();
307
+ }
308
+ }
309
+ var matched = route.matched[depth];
310
+ var component = matched && matched.components[name];
311
+ if (!matched || !component) {
312
+ cache[name] = null;
313
+ return h();
314
+ }
315
+ cache[name] = { component };
316
+ data.registerRouteInstance = function(vm, val) {
317
+ var current = matched.instances[name];
318
+ if (val && current !== vm || !val && current === vm) {
319
+ matched.instances[name] = val;
320
+ }
321
+ };
322
+ (data.hook || (data.hook = {})).prepatch = function(_2, vnode) {
323
+ matched.instances[name] = vnode.componentInstance;
324
+ };
325
+ data.hook.init = function(vnode) {
326
+ if (vnode.data.keepAlive && vnode.componentInstance && vnode.componentInstance !== matched.instances[name]) {
327
+ matched.instances[name] = vnode.componentInstance;
328
+ }
329
+ handleRouteEntered(route);
330
+ };
331
+ var configProps = matched.props && matched.props[name];
332
+ if (configProps) {
333
+ extend(cache[name], {
334
+ route,
335
+ configProps
336
+ });
337
+ fillPropsinData(component, data, route, configProps);
338
+ }
339
+ return h(component, data, children);
340
+ }
341
+ };
342
+ function fillPropsinData(component, data, route, configProps) {
343
+ var propsToPass = data.props = resolveProps(route, configProps);
344
+ if (propsToPass) {
345
+ propsToPass = data.props = extend({}, propsToPass);
346
+ var attrs = data.attrs = data.attrs || {};
347
+ for (var key in propsToPass) {
348
+ if (!component.props || !(key in component.props)) {
349
+ attrs[key] = propsToPass[key];
350
+ delete propsToPass[key];
351
+ }
352
+ }
353
+ }
354
+ }
355
+ function resolveProps(route, config) {
356
+ switch (typeof config) {
357
+ case "undefined":
358
+ return;
359
+ case "object":
360
+ return config;
361
+ case "function":
362
+ return config(route);
363
+ case "boolean":
364
+ return config ? route.params : void 0;
365
+ default:
366
+ if (process.env.NODE_ENV !== "production") {
367
+ warn(
368
+ false,
369
+ 'props in "' + route.path + '" is a ' + typeof config + ", expecting an object, function or boolean."
370
+ );
371
+ }
372
+ }
373
+ }
374
+ function resolvePath(relative, base, append) {
375
+ var firstChar = relative.charAt(0);
376
+ if (firstChar === "/") {
377
+ return relative;
378
+ }
379
+ if (firstChar === "?" || firstChar === "#") {
380
+ return base + relative;
381
+ }
382
+ var stack = base.split("/");
383
+ if (!append || !stack[stack.length - 1]) {
384
+ stack.pop();
385
+ }
386
+ var segments = relative.replace(/^\//, "").split("/");
387
+ for (var i = 0; i < segments.length; i++) {
388
+ var segment = segments[i];
389
+ if (segment === "..") {
390
+ stack.pop();
391
+ } else if (segment !== ".") {
392
+ stack.push(segment);
393
+ }
394
+ }
395
+ if (stack[0] !== "") {
396
+ stack.unshift("");
397
+ }
398
+ return stack.join("/");
399
+ }
400
+ function parsePath(path) {
401
+ var hash = "";
402
+ var query = "";
403
+ var hashIndex = path.indexOf("#");
404
+ if (hashIndex >= 0) {
405
+ hash = path.slice(hashIndex);
406
+ path = path.slice(0, hashIndex);
407
+ }
408
+ var queryIndex = path.indexOf("?");
409
+ if (queryIndex >= 0) {
410
+ query = path.slice(queryIndex + 1);
411
+ path = path.slice(0, queryIndex);
412
+ }
413
+ return {
414
+ path,
415
+ query,
416
+ hash
417
+ };
418
+ }
419
+ function cleanPath(path) {
420
+ return path.replace(/\/(?:\s*\/)+/g, "/");
421
+ }
422
+ var isarray = Array.isArray || function(arr) {
423
+ return Object.prototype.toString.call(arr) == "[object Array]";
424
+ };
425
+ var pathToRegexp_1 = pathToRegexp;
426
+ var parse_1 = parse;
427
+ var compile_1 = compile;
428
+ var tokensToFunction_1 = tokensToFunction;
429
+ var tokensToRegExp_1 = tokensToRegExp;
430
+ var PATH_REGEXP = new RegExp([
431
+ // Match escaped characters that would otherwise appear in future matches.
432
+ // This allows the user to escape special characters that won't transform.
433
+ "(\\\\.)",
434
+ // Match Express-style parameters and un-named parameters with a prefix
435
+ // and optional suffixes. Matches appear as:
436
+ //
437
+ // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
438
+ // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
439
+ // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
440
+ "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
441
+ ].join("|"), "g");
442
+ function parse(str, options) {
443
+ var tokens = [];
444
+ var key = 0;
445
+ var index = 0;
446
+ var path = "";
447
+ var defaultDelimiter = options && options.delimiter || "/";
448
+ var res;
449
+ while ((res = PATH_REGEXP.exec(str)) != null) {
450
+ var m = res[0];
451
+ var escaped = res[1];
452
+ var offset = res.index;
453
+ path += str.slice(index, offset);
454
+ index = offset + m.length;
455
+ if (escaped) {
456
+ path += escaped[1];
457
+ continue;
458
+ }
459
+ var next = str[index];
460
+ var prefix = res[2];
461
+ var name = res[3];
462
+ var capture = res[4];
463
+ var group = res[5];
464
+ var modifier = res[6];
465
+ var asterisk = res[7];
466
+ if (path) {
467
+ tokens.push(path);
468
+ path = "";
469
+ }
470
+ var partial = prefix != null && next != null && next !== prefix;
471
+ var repeat = modifier === "+" || modifier === "*";
472
+ var optional = modifier === "?" || modifier === "*";
473
+ var delimiter = res[2] || defaultDelimiter;
474
+ var pattern = capture || group;
475
+ tokens.push({
476
+ name: name || key++,
477
+ prefix: prefix || "",
478
+ delimiter,
479
+ optional,
480
+ repeat,
481
+ partial,
482
+ asterisk: !!asterisk,
483
+ pattern: pattern ? escapeGroup(pattern) : asterisk ? ".*" : "[^" + escapeString(delimiter) + "]+?"
484
+ });
485
+ }
486
+ if (index < str.length) {
487
+ path += str.substr(index);
488
+ }
489
+ if (path) {
490
+ tokens.push(path);
491
+ }
492
+ return tokens;
493
+ }
494
+ function compile(str, options) {
495
+ return tokensToFunction(parse(str, options), options);
496
+ }
497
+ function encodeURIComponentPretty(str) {
498
+ return encodeURI(str).replace(/[\/?#]/g, function(c) {
499
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
500
+ });
501
+ }
502
+ function encodeAsterisk(str) {
503
+ return encodeURI(str).replace(/[?#]/g, function(c) {
504
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
505
+ });
506
+ }
507
+ function tokensToFunction(tokens, options) {
508
+ var matches = new Array(tokens.length);
509
+ for (var i = 0; i < tokens.length; i++) {
510
+ if (typeof tokens[i] === "object") {
511
+ matches[i] = new RegExp("^(?:" + tokens[i].pattern + ")$", flags(options));
512
+ }
513
+ }
514
+ return function(obj, opts) {
515
+ var path = "";
516
+ var data = obj || {};
517
+ var options2 = opts || {};
518
+ var encode2 = options2.pretty ? encodeURIComponentPretty : encodeURIComponent;
519
+ for (var i2 = 0; i2 < tokens.length; i2++) {
520
+ var token = tokens[i2];
521
+ if (typeof token === "string") {
522
+ path += token;
523
+ continue;
524
+ }
525
+ var value = data[token.name];
526
+ var segment;
527
+ if (value == null) {
528
+ if (token.optional) {
529
+ if (token.partial) {
530
+ path += token.prefix;
531
+ }
532
+ continue;
533
+ } else {
534
+ throw new TypeError('Expected "' + token.name + '" to be defined');
535
+ }
536
+ }
537
+ if (isarray(value)) {
538
+ if (!token.repeat) {
539
+ throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + "`");
540
+ }
541
+ if (value.length === 0) {
542
+ if (token.optional) {
543
+ continue;
544
+ } else {
545
+ throw new TypeError('Expected "' + token.name + '" to not be empty');
546
+ }
547
+ }
548
+ for (var j = 0; j < value.length; j++) {
549
+ segment = encode2(value[j]);
550
+ if (!matches[i2].test(segment)) {
551
+ throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + "`");
552
+ }
553
+ path += (j === 0 ? token.prefix : token.delimiter) + segment;
554
+ }
555
+ continue;
556
+ }
557
+ segment = token.asterisk ? encodeAsterisk(value) : encode2(value);
558
+ if (!matches[i2].test(segment)) {
559
+ throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
560
+ }
561
+ path += token.prefix + segment;
562
+ }
563
+ return path;
564
+ };
565
+ }
566
+ function escapeString(str) {
567
+ return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
568
+ }
569
+ function escapeGroup(group) {
570
+ return group.replace(/([=!:$\/()])/g, "\\$1");
571
+ }
572
+ function attachKeys(re, keys) {
573
+ re.keys = keys;
574
+ return re;
575
+ }
576
+ function flags(options) {
577
+ return options && options.sensitive ? "" : "i";
578
+ }
579
+ function regexpToRegexp(path, keys) {
580
+ var groups = path.source.match(/\((?!\?)/g);
581
+ if (groups) {
582
+ for (var i = 0; i < groups.length; i++) {
583
+ keys.push({
584
+ name: i,
585
+ prefix: null,
586
+ delimiter: null,
587
+ optional: false,
588
+ repeat: false,
589
+ partial: false,
590
+ asterisk: false,
591
+ pattern: null
592
+ });
593
+ }
594
+ }
595
+ return attachKeys(path, keys);
596
+ }
597
+ function arrayToRegexp(path, keys, options) {
598
+ var parts = [];
599
+ for (var i = 0; i < path.length; i++) {
600
+ parts.push(pathToRegexp(path[i], keys, options).source);
601
+ }
602
+ var regexp = new RegExp("(?:" + parts.join("|") + ")", flags(options));
603
+ return attachKeys(regexp, keys);
604
+ }
605
+ function stringToRegexp(path, keys, options) {
606
+ return tokensToRegExp(parse(path, options), keys, options);
607
+ }
608
+ function tokensToRegExp(tokens, keys, options) {
609
+ if (!isarray(keys)) {
610
+ options = /** @type {!Object} */
611
+ keys || options;
612
+ keys = [];
613
+ }
614
+ options = options || {};
615
+ var strict = options.strict;
616
+ var end = options.end !== false;
617
+ var route = "";
618
+ for (var i = 0; i < tokens.length; i++) {
619
+ var token = tokens[i];
620
+ if (typeof token === "string") {
621
+ route += escapeString(token);
622
+ } else {
623
+ var prefix = escapeString(token.prefix);
624
+ var capture = "(?:" + token.pattern + ")";
625
+ keys.push(token);
626
+ if (token.repeat) {
627
+ capture += "(?:" + prefix + capture + ")*";
628
+ }
629
+ if (token.optional) {
630
+ if (!token.partial) {
631
+ capture = "(?:" + prefix + "(" + capture + "))?";
632
+ } else {
633
+ capture = prefix + "(" + capture + ")?";
634
+ }
635
+ } else {
636
+ capture = prefix + "(" + capture + ")";
637
+ }
638
+ route += capture;
639
+ }
640
+ }
641
+ var delimiter = escapeString(options.delimiter || "/");
642
+ var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
643
+ if (!strict) {
644
+ route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + "(?:" + delimiter + "(?=$))?";
645
+ }
646
+ if (end) {
647
+ route += "$";
648
+ } else {
649
+ route += strict && endsWithDelimiter ? "" : "(?=" + delimiter + "|$)";
650
+ }
651
+ return attachKeys(new RegExp("^" + route, flags(options)), keys);
652
+ }
653
+ function pathToRegexp(path, keys, options) {
654
+ if (!isarray(keys)) {
655
+ options = /** @type {!Object} */
656
+ keys || options;
657
+ keys = [];
658
+ }
659
+ options = options || {};
660
+ if (path instanceof RegExp) {
661
+ return regexpToRegexp(
662
+ path,
663
+ /** @type {!Array} */
664
+ keys
665
+ );
666
+ }
667
+ if (isarray(path)) {
668
+ return arrayToRegexp(
669
+ /** @type {!Array} */
670
+ path,
671
+ /** @type {!Array} */
672
+ keys,
673
+ options
674
+ );
675
+ }
676
+ return stringToRegexp(
677
+ /** @type {string} */
678
+ path,
679
+ /** @type {!Array} */
680
+ keys,
681
+ options
682
+ );
683
+ }
684
+ pathToRegexp_1.parse = parse_1;
685
+ pathToRegexp_1.compile = compile_1;
686
+ pathToRegexp_1.tokensToFunction = tokensToFunction_1;
687
+ pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
688
+ var regexpCompileCache = /* @__PURE__ */ Object.create(null);
689
+ function fillParams(path, params, routeMsg) {
690
+ params = params || {};
691
+ try {
692
+ var filler = regexpCompileCache[path] || (regexpCompileCache[path] = pathToRegexp_1.compile(path));
693
+ if (typeof params.pathMatch === "string") {
694
+ params[0] = params.pathMatch;
695
+ }
696
+ return filler(params, { pretty: true });
697
+ } catch (e) {
698
+ if (process.env.NODE_ENV !== "production") {
699
+ warn(typeof params.pathMatch === "string", "missing param for " + routeMsg + ": " + e.message);
700
+ }
701
+ return "";
702
+ } finally {
703
+ delete params[0];
704
+ }
705
+ }
706
+ function normalizeLocation(raw, current, append, router2) {
707
+ var next = typeof raw === "string" ? { path: raw } : raw;
708
+ if (next._normalized) {
709
+ return next;
710
+ } else if (next.name) {
711
+ next = extend({}, raw);
712
+ var params = next.params;
713
+ if (params && typeof params === "object") {
714
+ next.params = extend({}, params);
715
+ }
716
+ return next;
717
+ }
718
+ if (!next.path && next.params && current) {
719
+ next = extend({}, next);
720
+ next._normalized = true;
721
+ var params$1 = extend(extend({}, current.params), next.params);
722
+ if (current.name) {
723
+ next.name = current.name;
724
+ next.params = params$1;
725
+ } else if (current.matched.length) {
726
+ var rawPath = current.matched[current.matched.length - 1].path;
727
+ next.path = fillParams(rawPath, params$1, "path " + current.path);
728
+ } else if (process.env.NODE_ENV !== "production") {
729
+ warn(false, "relative params navigation requires a current route.");
730
+ }
731
+ return next;
732
+ }
733
+ var parsedPath = parsePath(next.path || "");
734
+ var basePath = current && current.path || "/";
735
+ var path = parsedPath.path ? resolvePath(parsedPath.path, basePath, append || next.append) : basePath;
736
+ var query = resolveQuery(
737
+ parsedPath.query,
738
+ next.query,
739
+ router2 && router2.options.parseQuery
740
+ );
741
+ var hash = next.hash || parsedPath.hash;
742
+ if (hash && hash.charAt(0) !== "#") {
743
+ hash = "#" + hash;
744
+ }
745
+ return {
746
+ _normalized: true,
747
+ path,
748
+ query,
749
+ hash
750
+ };
751
+ }
752
+ var toTypes = [String, Object];
753
+ var eventTypes = [String, Array];
754
+ var noop = function() {
755
+ };
756
+ var warnedCustomSlot;
757
+ var warnedTagProp;
758
+ var warnedEventProp;
759
+ var Link = {
760
+ name: "RouterLink",
761
+ props: {
762
+ to: {
763
+ type: toTypes,
764
+ required: true
765
+ },
766
+ tag: {
767
+ type: String,
768
+ default: "a"
769
+ },
770
+ custom: Boolean,
771
+ exact: Boolean,
772
+ exactPath: Boolean,
773
+ append: Boolean,
774
+ replace: Boolean,
775
+ activeClass: String,
776
+ exactActiveClass: String,
777
+ ariaCurrentValue: {
778
+ type: String,
779
+ default: "page"
780
+ },
781
+ event: {
782
+ type: eventTypes,
783
+ default: "click"
784
+ }
785
+ },
786
+ render: function render2(h) {
787
+ var this$1$1 = this;
788
+ var router2 = this.$router;
789
+ var current = this.$route;
790
+ var ref = router2.resolve(
791
+ this.to,
792
+ current,
793
+ this.append
794
+ );
795
+ var location = ref.location;
796
+ var route = ref.route;
797
+ var href = ref.href;
798
+ var classes = {};
799
+ var globalActiveClass = router2.options.linkActiveClass;
800
+ var globalExactActiveClass = router2.options.linkExactActiveClass;
801
+ var activeClassFallback = globalActiveClass == null ? "router-link-active" : globalActiveClass;
802
+ var exactActiveClassFallback = globalExactActiveClass == null ? "router-link-exact-active" : globalExactActiveClass;
803
+ var activeClass = this.activeClass == null ? activeClassFallback : this.activeClass;
804
+ var exactActiveClass = this.exactActiveClass == null ? exactActiveClassFallback : this.exactActiveClass;
805
+ var compareTarget = route.redirectedFrom ? createRoute(null, normalizeLocation(route.redirectedFrom), null, router2) : route;
806
+ classes[exactActiveClass] = isSameRoute(current, compareTarget, this.exactPath);
807
+ classes[activeClass] = this.exact || this.exactPath ? classes[exactActiveClass] : isIncludedRoute(current, compareTarget);
808
+ var ariaCurrentValue = classes[exactActiveClass] ? this.ariaCurrentValue : null;
809
+ var handler = function(e) {
810
+ if (guardEvent(e)) {
811
+ if (this$1$1.replace) {
812
+ router2.replace(location, noop);
813
+ } else {
814
+ router2.push(location, noop);
815
+ }
816
+ }
817
+ };
818
+ var on = { click: guardEvent };
819
+ if (Array.isArray(this.event)) {
820
+ this.event.forEach(function(e) {
821
+ on[e] = handler;
822
+ });
823
+ } else {
824
+ on[this.event] = handler;
825
+ }
826
+ var data = { class: classes };
827
+ var scopedSlot = !this.$scopedSlots.$hasNormal && this.$scopedSlots.default && this.$scopedSlots.default({
828
+ href,
829
+ route,
830
+ navigate: handler,
831
+ isActive: classes[activeClass],
832
+ isExactActive: classes[exactActiveClass]
833
+ });
834
+ if (scopedSlot) {
835
+ if (process.env.NODE_ENV !== "production" && !this.custom) {
836
+ !warnedCustomSlot && warn(false, 'In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\n<router-link v-slot="{ navigate, href }" custom></router-link>\n');
837
+ warnedCustomSlot = true;
838
+ }
839
+ if (scopedSlot.length === 1) {
840
+ return scopedSlot[0];
841
+ } else if (scopedSlot.length > 1 || !scopedSlot.length) {
842
+ if (process.env.NODE_ENV !== "production") {
843
+ warn(
844
+ false,
845
+ '<router-link> with to="' + this.to + "\" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element."
846
+ );
847
+ }
848
+ return scopedSlot.length === 0 ? h() : h("span", {}, scopedSlot);
849
+ }
850
+ }
851
+ if (process.env.NODE_ENV !== "production") {
852
+ if ("tag" in this.$options.propsData && !warnedTagProp) {
853
+ warn(
854
+ false,
855
+ "<router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link."
856
+ );
857
+ warnedTagProp = true;
858
+ }
859
+ if ("event" in this.$options.propsData && !warnedEventProp) {
860
+ warn(
861
+ false,
862
+ "<router-link>'s event prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link."
863
+ );
864
+ warnedEventProp = true;
865
+ }
866
+ }
867
+ if (this.tag === "a") {
868
+ data.on = on;
869
+ data.attrs = { href, "aria-current": ariaCurrentValue };
870
+ } else {
871
+ var a = findAnchor(this.$slots.default);
872
+ if (a) {
873
+ a.isStatic = false;
874
+ var aData = a.data = extend({}, a.data);
875
+ aData.on = aData.on || {};
876
+ for (var event in aData.on) {
877
+ var handler$1 = aData.on[event];
878
+ if (event in on) {
879
+ aData.on[event] = Array.isArray(handler$1) ? handler$1 : [handler$1];
880
+ }
881
+ }
882
+ for (var event$1 in on) {
883
+ if (event$1 in aData.on) {
884
+ aData.on[event$1].push(on[event$1]);
885
+ } else {
886
+ aData.on[event$1] = handler;
887
+ }
888
+ }
889
+ var aAttrs = a.data.attrs = extend({}, a.data.attrs);
890
+ aAttrs.href = href;
891
+ aAttrs["aria-current"] = ariaCurrentValue;
892
+ } else {
893
+ data.on = on;
894
+ }
895
+ }
896
+ return h(this.tag, data, this.$slots.default);
897
+ }
898
+ };
899
+ function guardEvent(e) {
900
+ if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) {
901
+ return;
902
+ }
903
+ if (e.defaultPrevented) {
904
+ return;
905
+ }
906
+ if (e.button !== void 0 && e.button !== 0) {
907
+ return;
908
+ }
909
+ if (e.currentTarget && e.currentTarget.getAttribute) {
910
+ var target = e.currentTarget.getAttribute("target");
911
+ if (/\b_blank\b/i.test(target)) {
912
+ return;
913
+ }
914
+ }
915
+ if (e.preventDefault) {
916
+ e.preventDefault();
917
+ }
918
+ return true;
919
+ }
920
+ function findAnchor(children) {
921
+ if (children) {
922
+ var child;
923
+ for (var i = 0; i < children.length; i++) {
924
+ child = children[i];
925
+ if (child.tag === "a") {
926
+ return child;
927
+ }
928
+ if (child.children && (child = findAnchor(child.children))) {
929
+ return child;
930
+ }
931
+ }
932
+ }
933
+ }
934
+ var _Vue;
935
+ function install(Vue2) {
936
+ if (install.installed && _Vue === Vue2) {
937
+ return;
938
+ }
939
+ install.installed = true;
940
+ _Vue = Vue2;
941
+ var isDef = function(v) {
942
+ return v !== void 0;
943
+ };
944
+ var registerInstance = function(vm, callVal) {
945
+ var i = vm.$options._parentVnode;
946
+ if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
947
+ i(vm, callVal);
948
+ }
949
+ };
950
+ Vue2.mixin({
951
+ beforeCreate: function beforeCreate() {
952
+ if (isDef(this.$options.router)) {
953
+ this._routerRoot = this;
954
+ this._router = this.$options.router;
955
+ this._router.init(this);
956
+ Vue2.util.defineReactive(this, "_route", this._router.history.current);
957
+ } else {
958
+ this._routerRoot = this.$parent && this.$parent._routerRoot || this;
959
+ }
960
+ registerInstance(this, this);
961
+ },
962
+ destroyed: function destroyed() {
963
+ registerInstance(this);
964
+ }
965
+ });
966
+ Object.defineProperty(Vue2.prototype, "$router", {
967
+ get: function get() {
968
+ return this._routerRoot._router;
969
+ }
970
+ });
971
+ Object.defineProperty(Vue2.prototype, "$route", {
972
+ get: function get() {
973
+ return this._routerRoot._route;
974
+ }
975
+ });
976
+ Vue2.component("RouterView", View);
977
+ Vue2.component("RouterLink", Link);
978
+ var strats = Vue2.config.optionMergeStrategies;
979
+ strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
980
+ }
981
+ var inBrowser = typeof window !== "undefined";
982
+ function createRouteMap(routes, oldPathList, oldPathMap, oldNameMap, parentRoute) {
983
+ var pathList = oldPathList || [];
984
+ var pathMap = oldPathMap || /* @__PURE__ */ Object.create(null);
985
+ var nameMap = oldNameMap || /* @__PURE__ */ Object.create(null);
986
+ routes.forEach(function(route) {
987
+ addRouteRecord(pathList, pathMap, nameMap, route, parentRoute);
988
+ });
989
+ for (var i = 0, l = pathList.length; i < l; i++) {
990
+ if (pathList[i] === "*") {
991
+ pathList.push(pathList.splice(i, 1)[0]);
992
+ l--;
993
+ i--;
994
+ }
995
+ }
996
+ if (process.env.NODE_ENV === "development") {
997
+ var found = pathList.filter(function(path) {
998
+ return path && path.charAt(0) !== "*" && path.charAt(0) !== "/";
999
+ });
1000
+ if (found.length > 0) {
1001
+ var pathNames = found.map(function(path) {
1002
+ return "- " + path;
1003
+ }).join("\n");
1004
+ warn(false, "Non-nested routes must include a leading slash character. Fix the following routes: \n" + pathNames);
1005
+ }
1006
+ }
1007
+ return {
1008
+ pathList,
1009
+ pathMap,
1010
+ nameMap
1011
+ };
1012
+ }
1013
+ function addRouteRecord(pathList, pathMap, nameMap, route, parent, matchAs) {
1014
+ var path = route.path;
1015
+ var name = route.name;
1016
+ if (process.env.NODE_ENV !== "production") {
1017
+ assert(path != null, '"path" is required in a route configuration.');
1018
+ assert(
1019
+ typeof route.component !== "string",
1020
+ 'route config "component" for path: ' + String(
1021
+ path || name
1022
+ ) + " cannot be a string id. Use an actual component instead."
1023
+ );
1024
+ warn(
1025
+ // eslint-disable-next-line no-control-regex
1026
+ !/[^\u0000-\u007F]+/.test(path),
1027
+ 'Route with path "' + path + '" contains unencoded characters, make sure your path is correctly encoded before passing it to the router. Use encodeURI to encode static segments of your path.'
1028
+ );
1029
+ }
1030
+ var pathToRegexpOptions = route.pathToRegexpOptions || {};
1031
+ var normalizedPath = normalizePath(path, parent, pathToRegexpOptions.strict);
1032
+ if (typeof route.caseSensitive === "boolean") {
1033
+ pathToRegexpOptions.sensitive = route.caseSensitive;
1034
+ }
1035
+ var record = {
1036
+ path: normalizedPath,
1037
+ regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
1038
+ components: route.components || { default: route.component },
1039
+ alias: route.alias ? typeof route.alias === "string" ? [route.alias] : route.alias : [],
1040
+ instances: {},
1041
+ enteredCbs: {},
1042
+ name,
1043
+ parent,
1044
+ matchAs,
1045
+ redirect: route.redirect,
1046
+ beforeEnter: route.beforeEnter,
1047
+ meta: route.meta || {},
1048
+ props: route.props == null ? {} : route.components ? route.props : { default: route.props }
1049
+ };
1050
+ if (route.children) {
1051
+ if (process.env.NODE_ENV !== "production") {
1052
+ if (route.name && !route.redirect && route.children.some(function(child) {
1053
+ return /^\/?$/.test(child.path);
1054
+ })) {
1055
+ warn(
1056
+ false,
1057
+ "Named Route '" + route.name + "' has a default child route. When navigating to this named route (:to=\"{name: '" + route.name + "'}\"), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead."
1058
+ );
1059
+ }
1060
+ }
1061
+ route.children.forEach(function(child) {
1062
+ var childMatchAs = matchAs ? cleanPath(matchAs + "/" + child.path) : void 0;
1063
+ addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
1064
+ });
1065
+ }
1066
+ if (!pathMap[record.path]) {
1067
+ pathList.push(record.path);
1068
+ pathMap[record.path] = record;
1069
+ }
1070
+ if (route.alias !== void 0) {
1071
+ var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
1072
+ for (var i = 0; i < aliases.length; ++i) {
1073
+ var alias = aliases[i];
1074
+ if (process.env.NODE_ENV !== "production" && alias === path) {
1075
+ warn(
1076
+ false,
1077
+ 'Found an alias with the same value as the path: "' + path + '". You have to remove that alias. It will be ignored in development.'
1078
+ );
1079
+ continue;
1080
+ }
1081
+ var aliasRoute = {
1082
+ path: alias,
1083
+ children: route.children
1084
+ };
1085
+ addRouteRecord(
1086
+ pathList,
1087
+ pathMap,
1088
+ nameMap,
1089
+ aliasRoute,
1090
+ parent,
1091
+ record.path || "/"
1092
+ // matchAs
1093
+ );
1094
+ }
1095
+ }
1096
+ if (name) {
1097
+ if (!nameMap[name]) {
1098
+ nameMap[name] = record;
1099
+ } else if (process.env.NODE_ENV !== "production" && !matchAs) {
1100
+ warn(
1101
+ false,
1102
+ 'Duplicate named routes definition: { name: "' + name + '", path: "' + record.path + '" }'
1103
+ );
1104
+ }
1105
+ }
1106
+ }
1107
+ function compileRouteRegex(path, pathToRegexpOptions) {
1108
+ var regex = pathToRegexp_1(path, [], pathToRegexpOptions);
1109
+ if (process.env.NODE_ENV !== "production") {
1110
+ var keys = /* @__PURE__ */ Object.create(null);
1111
+ regex.keys.forEach(function(key) {
1112
+ warn(
1113
+ !keys[key.name],
1114
+ 'Duplicate param keys in route with path: "' + path + '"'
1115
+ );
1116
+ keys[key.name] = true;
1117
+ });
1118
+ }
1119
+ return regex;
1120
+ }
1121
+ function normalizePath(path, parent, strict) {
1122
+ if (!strict) {
1123
+ path = path.replace(/\/$/, "");
1124
+ }
1125
+ if (path[0] === "/") {
1126
+ return path;
1127
+ }
1128
+ if (parent == null) {
1129
+ return path;
1130
+ }
1131
+ return cleanPath(parent.path + "/" + path);
1132
+ }
1133
+ function createMatcher(routes, router2) {
1134
+ var ref = createRouteMap(routes);
1135
+ var pathList = ref.pathList;
1136
+ var pathMap = ref.pathMap;
1137
+ var nameMap = ref.nameMap;
1138
+ function addRoutes2(routes2) {
1139
+ createRouteMap(routes2, pathList, pathMap, nameMap);
1140
+ }
1141
+ function addRoute2(parentOrRoute, route) {
1142
+ var parent = typeof parentOrRoute !== "object" ? nameMap[parentOrRoute] : void 0;
1143
+ createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);
1144
+ if (parent && parent.alias.length) {
1145
+ createRouteMap(
1146
+ // $flow-disable-line route is defined if parent is
1147
+ parent.alias.map(function(alias2) {
1148
+ return { path: alias2, children: [route] };
1149
+ }),
1150
+ pathList,
1151
+ pathMap,
1152
+ nameMap,
1153
+ parent
1154
+ );
1155
+ }
1156
+ }
1157
+ function getRoutes2() {
1158
+ return pathList.map(function(path) {
1159
+ return pathMap[path];
1160
+ });
1161
+ }
1162
+ function match2(raw, currentRoute, redirectedFrom) {
1163
+ var location = normalizeLocation(raw, currentRoute, false, router2);
1164
+ var name = location.name;
1165
+ if (name) {
1166
+ var record = nameMap[name];
1167
+ if (process.env.NODE_ENV !== "production") {
1168
+ warn(record, "Route with name '" + name + "' does not exist");
1169
+ }
1170
+ if (!record) {
1171
+ return _createRoute(null, location);
1172
+ }
1173
+ var paramNames = record.regex.keys.filter(function(key2) {
1174
+ return !key2.optional;
1175
+ }).map(function(key2) {
1176
+ return key2.name;
1177
+ });
1178
+ if (typeof location.params !== "object") {
1179
+ location.params = {};
1180
+ }
1181
+ if (currentRoute && typeof currentRoute.params === "object") {
1182
+ for (var key in currentRoute.params) {
1183
+ if (!(key in location.params) && paramNames.indexOf(key) > -1) {
1184
+ location.params[key] = currentRoute.params[key];
1185
+ }
1186
+ }
1187
+ }
1188
+ location.path = fillParams(record.path, location.params, 'named route "' + name + '"');
1189
+ return _createRoute(record, location, redirectedFrom);
1190
+ } else if (location.path) {
1191
+ location.params = {};
1192
+ for (var i = 0; i < pathList.length; i++) {
1193
+ var path = pathList[i];
1194
+ var record$1 = pathMap[path];
1195
+ if (matchRoute(record$1.regex, location.path, location.params)) {
1196
+ return _createRoute(record$1, location, redirectedFrom);
1197
+ }
1198
+ }
1199
+ }
1200
+ return _createRoute(null, location);
1201
+ }
1202
+ function redirect(record, location) {
1203
+ var originalRedirect = record.redirect;
1204
+ var redirect2 = typeof originalRedirect === "function" ? originalRedirect(createRoute(record, location, null, router2)) : originalRedirect;
1205
+ if (typeof redirect2 === "string") {
1206
+ redirect2 = { path: redirect2 };
1207
+ }
1208
+ if (!redirect2 || typeof redirect2 !== "object") {
1209
+ if (process.env.NODE_ENV !== "production") {
1210
+ warn(
1211
+ false,
1212
+ "invalid redirect option: " + JSON.stringify(redirect2)
1213
+ );
1214
+ }
1215
+ return _createRoute(null, location);
1216
+ }
1217
+ var re = redirect2;
1218
+ var name = re.name;
1219
+ var path = re.path;
1220
+ var query = location.query;
1221
+ var hash = location.hash;
1222
+ var params = location.params;
1223
+ query = re.hasOwnProperty("query") ? re.query : query;
1224
+ hash = re.hasOwnProperty("hash") ? re.hash : hash;
1225
+ params = re.hasOwnProperty("params") ? re.params : params;
1226
+ if (name) {
1227
+ var targetRecord = nameMap[name];
1228
+ if (process.env.NODE_ENV !== "production") {
1229
+ assert(targetRecord, 'redirect failed: named route "' + name + '" not found.');
1230
+ }
1231
+ return match2({
1232
+ _normalized: true,
1233
+ name,
1234
+ query,
1235
+ hash,
1236
+ params
1237
+ }, void 0, location);
1238
+ } else if (path) {
1239
+ var rawPath = resolveRecordPath(path, record);
1240
+ var resolvedPath = fillParams(rawPath, params, 'redirect route with path "' + rawPath + '"');
1241
+ return match2({
1242
+ _normalized: true,
1243
+ path: resolvedPath,
1244
+ query,
1245
+ hash
1246
+ }, void 0, location);
1247
+ } else {
1248
+ if (process.env.NODE_ENV !== "production") {
1249
+ warn(false, "invalid redirect option: " + JSON.stringify(redirect2));
1250
+ }
1251
+ return _createRoute(null, location);
1252
+ }
1253
+ }
1254
+ function alias(record, location, matchAs) {
1255
+ var aliasedPath = fillParams(matchAs, location.params, 'aliased route with path "' + matchAs + '"');
1256
+ var aliasedMatch = match2({
1257
+ _normalized: true,
1258
+ path: aliasedPath
1259
+ });
1260
+ if (aliasedMatch) {
1261
+ var matched = aliasedMatch.matched;
1262
+ var aliasedRecord = matched[matched.length - 1];
1263
+ location.params = aliasedMatch.params;
1264
+ return _createRoute(aliasedRecord, location);
1265
+ }
1266
+ return _createRoute(null, location);
1267
+ }
1268
+ function _createRoute(record, location, redirectedFrom) {
1269
+ if (record && record.redirect) {
1270
+ return redirect(record, redirectedFrom || location);
1271
+ }
1272
+ if (record && record.matchAs) {
1273
+ return alias(record, location, record.matchAs);
1274
+ }
1275
+ return createRoute(record, location, redirectedFrom, router2);
1276
+ }
1277
+ return {
1278
+ match: match2,
1279
+ addRoute: addRoute2,
1280
+ getRoutes: getRoutes2,
1281
+ addRoutes: addRoutes2
1282
+ };
1283
+ }
1284
+ function matchRoute(regex, path, params) {
1285
+ var m = path.match(regex);
1286
+ if (!m) {
1287
+ return false;
1288
+ } else if (!params) {
1289
+ return true;
1290
+ }
1291
+ for (var i = 1, len = m.length; i < len; ++i) {
1292
+ var key = regex.keys[i - 1];
1293
+ if (key) {
1294
+ params[key.name || "pathMatch"] = typeof m[i] === "string" ? decode(m[i]) : m[i];
1295
+ }
1296
+ }
1297
+ return true;
1298
+ }
1299
+ function resolveRecordPath(path, record) {
1300
+ return resolvePath(path, record.parent ? record.parent.path : "/", true);
1301
+ }
1302
+ var Time = inBrowser && window.performance && window.performance.now ? window.performance : Date;
1303
+ function genStateKey() {
1304
+ return Time.now().toFixed(3);
1305
+ }
1306
+ var _key = genStateKey();
1307
+ function getStateKey() {
1308
+ return _key;
1309
+ }
1310
+ function setStateKey(key) {
1311
+ return _key = key;
1312
+ }
1313
+ var positionStore = /* @__PURE__ */ Object.create(null);
1314
+ function setupScroll() {
1315
+ if ("scrollRestoration" in window.history) {
1316
+ window.history.scrollRestoration = "manual";
1317
+ }
1318
+ var protocolAndPath = window.location.protocol + "//" + window.location.host;
1319
+ var absolutePath = window.location.href.replace(protocolAndPath, "");
1320
+ var stateCopy = extend({}, window.history.state);
1321
+ stateCopy.key = getStateKey();
1322
+ window.history.replaceState(stateCopy, "", absolutePath);
1323
+ window.addEventListener("popstate", handlePopState);
1324
+ return function() {
1325
+ window.removeEventListener("popstate", handlePopState);
1326
+ };
1327
+ }
1328
+ function handleScroll(router2, to, from, isPop) {
1329
+ if (!router2.app) {
1330
+ return;
1331
+ }
1332
+ var behavior = router2.options.scrollBehavior;
1333
+ if (!behavior) {
1334
+ return;
1335
+ }
1336
+ if (process.env.NODE_ENV !== "production") {
1337
+ assert(typeof behavior === "function", "scrollBehavior must be a function");
1338
+ }
1339
+ router2.app.$nextTick(function() {
1340
+ var position = getScrollPosition();
1341
+ var shouldScroll = behavior.call(
1342
+ router2,
1343
+ to,
1344
+ from,
1345
+ isPop ? position : null
1346
+ );
1347
+ if (!shouldScroll) {
1348
+ return;
1349
+ }
1350
+ if (typeof shouldScroll.then === "function") {
1351
+ shouldScroll.then(function(shouldScroll2) {
1352
+ scrollToPosition(shouldScroll2, position);
1353
+ }).catch(function(err) {
1354
+ if (process.env.NODE_ENV !== "production") {
1355
+ assert(false, err.toString());
1356
+ }
1357
+ });
1358
+ } else {
1359
+ scrollToPosition(shouldScroll, position);
1360
+ }
1361
+ });
1362
+ }
1363
+ function saveScrollPosition() {
1364
+ var key = getStateKey();
1365
+ if (key) {
1366
+ positionStore[key] = {
1367
+ x: window.pageXOffset,
1368
+ y: window.pageYOffset
1369
+ };
1370
+ }
1371
+ }
1372
+ function handlePopState(e) {
1373
+ saveScrollPosition();
1374
+ if (e.state && e.state.key) {
1375
+ setStateKey(e.state.key);
1376
+ }
1377
+ }
1378
+ function getScrollPosition() {
1379
+ var key = getStateKey();
1380
+ if (key) {
1381
+ return positionStore[key];
1382
+ }
1383
+ }
1384
+ function getElementPosition(el, offset) {
1385
+ var docEl = document.documentElement;
1386
+ var docRect = docEl.getBoundingClientRect();
1387
+ var elRect = el.getBoundingClientRect();
1388
+ return {
1389
+ x: elRect.left - docRect.left - offset.x,
1390
+ y: elRect.top - docRect.top - offset.y
1391
+ };
1392
+ }
1393
+ function isValidPosition(obj) {
1394
+ return isNumber(obj.x) || isNumber(obj.y);
1395
+ }
1396
+ function normalizePosition(obj) {
1397
+ return {
1398
+ x: isNumber(obj.x) ? obj.x : window.pageXOffset,
1399
+ y: isNumber(obj.y) ? obj.y : window.pageYOffset
1400
+ };
1401
+ }
1402
+ function normalizeOffset(obj) {
1403
+ return {
1404
+ x: isNumber(obj.x) ? obj.x : 0,
1405
+ y: isNumber(obj.y) ? obj.y : 0
1406
+ };
1407
+ }
1408
+ function isNumber(v) {
1409
+ return typeof v === "number";
1410
+ }
1411
+ var hashStartsWithNumberRE = /^#\d/;
1412
+ function scrollToPosition(shouldScroll, position) {
1413
+ var isObject = typeof shouldScroll === "object";
1414
+ if (isObject && typeof shouldScroll.selector === "string") {
1415
+ var el = hashStartsWithNumberRE.test(shouldScroll.selector) ? document.getElementById(shouldScroll.selector.slice(1)) : document.querySelector(shouldScroll.selector);
1416
+ if (el) {
1417
+ var offset = shouldScroll.offset && typeof shouldScroll.offset === "object" ? shouldScroll.offset : {};
1418
+ offset = normalizeOffset(offset);
1419
+ position = getElementPosition(el, offset);
1420
+ } else if (isValidPosition(shouldScroll)) {
1421
+ position = normalizePosition(shouldScroll);
1422
+ }
1423
+ } else if (isObject && isValidPosition(shouldScroll)) {
1424
+ position = normalizePosition(shouldScroll);
1425
+ }
1426
+ if (position) {
1427
+ if ("scrollBehavior" in document.documentElement.style) {
1428
+ window.scrollTo({
1429
+ left: position.x,
1430
+ top: position.y,
1431
+ // $flow-disable-line
1432
+ behavior: shouldScroll.behavior
1433
+ });
1434
+ } else {
1435
+ window.scrollTo(position.x, position.y);
1436
+ }
1437
+ }
1438
+ }
1439
+ var supportsPushState = inBrowser && function() {
1440
+ var ua = window.navigator.userAgent;
1441
+ if ((ua.indexOf("Android 2.") !== -1 || ua.indexOf("Android 4.0") !== -1) && ua.indexOf("Mobile Safari") !== -1 && ua.indexOf("Chrome") === -1 && ua.indexOf("Windows Phone") === -1) {
1442
+ return false;
1443
+ }
1444
+ return window.history && typeof window.history.pushState === "function";
1445
+ }();
1446
+ function pushState(url, replace2) {
1447
+ saveScrollPosition();
1448
+ var history = window.history;
1449
+ try {
1450
+ if (replace2) {
1451
+ var stateCopy = extend({}, history.state);
1452
+ stateCopy.key = getStateKey();
1453
+ history.replaceState(stateCopy, "", url);
1454
+ } else {
1455
+ history.pushState({ key: setStateKey(genStateKey()) }, "", url);
1456
+ }
1457
+ } catch (e) {
1458
+ window.location[replace2 ? "replace" : "assign"](url);
1459
+ }
1460
+ }
1461
+ function replaceState(url) {
1462
+ pushState(url, true);
1463
+ }
1464
+ var NavigationFailureType = {
1465
+ redirected: 2,
1466
+ aborted: 4,
1467
+ cancelled: 8,
1468
+ duplicated: 16
1469
+ };
1470
+ function createNavigationRedirectedError(from, to) {
1471
+ return createRouterError(
1472
+ from,
1473
+ to,
1474
+ NavigationFailureType.redirected,
1475
+ 'Redirected when going from "' + from.fullPath + '" to "' + stringifyRoute(
1476
+ to
1477
+ ) + '" via a navigation guard.'
1478
+ );
1479
+ }
1480
+ function createNavigationDuplicatedError(from, to) {
1481
+ var error = createRouterError(
1482
+ from,
1483
+ to,
1484
+ NavigationFailureType.duplicated,
1485
+ 'Avoided redundant navigation to current location: "' + from.fullPath + '".'
1486
+ );
1487
+ error.name = "NavigationDuplicated";
1488
+ return error;
1489
+ }
1490
+ function createNavigationCancelledError(from, to) {
1491
+ return createRouterError(
1492
+ from,
1493
+ to,
1494
+ NavigationFailureType.cancelled,
1495
+ 'Navigation cancelled from "' + from.fullPath + '" to "' + to.fullPath + '" with a new navigation.'
1496
+ );
1497
+ }
1498
+ function createNavigationAbortedError(from, to) {
1499
+ return createRouterError(
1500
+ from,
1501
+ to,
1502
+ NavigationFailureType.aborted,
1503
+ 'Navigation aborted from "' + from.fullPath + '" to "' + to.fullPath + '" via a navigation guard.'
1504
+ );
1505
+ }
1506
+ function createRouterError(from, to, type, message) {
1507
+ var error = new Error(message);
1508
+ error._isRouter = true;
1509
+ error.from = from;
1510
+ error.to = to;
1511
+ error.type = type;
1512
+ return error;
1513
+ }
1514
+ var propertiesToLog = ["params", "query", "hash"];
1515
+ function stringifyRoute(to) {
1516
+ if (typeof to === "string") {
1517
+ return to;
1518
+ }
1519
+ if ("path" in to) {
1520
+ return to.path;
1521
+ }
1522
+ var location = {};
1523
+ propertiesToLog.forEach(function(key) {
1524
+ if (key in to) {
1525
+ location[key] = to[key];
1526
+ }
1527
+ });
1528
+ return JSON.stringify(location, null, 2);
1529
+ }
1530
+ function isError(err) {
1531
+ return Object.prototype.toString.call(err).indexOf("Error") > -1;
1532
+ }
1533
+ function isNavigationFailure(err, errorType) {
1534
+ return isError(err) && err._isRouter && (errorType == null || err.type === errorType);
1535
+ }
1536
+ function runQueue(queue, fn, cb) {
1537
+ var step = function(index) {
1538
+ if (index >= queue.length) {
1539
+ cb();
1540
+ } else {
1541
+ if (queue[index]) {
1542
+ fn(queue[index], function() {
1543
+ step(index + 1);
1544
+ });
1545
+ } else {
1546
+ step(index + 1);
1547
+ }
1548
+ }
1549
+ };
1550
+ step(0);
1551
+ }
1552
+ function resolveAsyncComponents(matched) {
1553
+ return function(to, from, next) {
1554
+ var hasAsync = false;
1555
+ var pending = 0;
1556
+ var error = null;
1557
+ flatMapComponents(matched, function(def, _, match2, key) {
1558
+ if (typeof def === "function" && def.cid === void 0) {
1559
+ hasAsync = true;
1560
+ pending++;
1561
+ var resolve2 = once(function(resolvedDef) {
1562
+ if (isESModule(resolvedDef)) {
1563
+ resolvedDef = resolvedDef.default;
1564
+ }
1565
+ def.resolved = typeof resolvedDef === "function" ? resolvedDef : _Vue.extend(resolvedDef);
1566
+ match2.components[key] = resolvedDef;
1567
+ pending--;
1568
+ if (pending <= 0) {
1569
+ next();
1570
+ }
1571
+ });
1572
+ var reject = once(function(reason) {
1573
+ var msg = "Failed to resolve async component " + key + ": " + reason;
1574
+ process.env.NODE_ENV !== "production" && warn(false, msg);
1575
+ if (!error) {
1576
+ error = isError(reason) ? reason : new Error(msg);
1577
+ next(error);
1578
+ }
1579
+ });
1580
+ var res;
1581
+ try {
1582
+ res = def(resolve2, reject);
1583
+ } catch (e) {
1584
+ reject(e);
1585
+ }
1586
+ if (res) {
1587
+ if (typeof res.then === "function") {
1588
+ res.then(resolve2, reject);
1589
+ } else {
1590
+ var comp = res.component;
1591
+ if (comp && typeof comp.then === "function") {
1592
+ comp.then(resolve2, reject);
1593
+ }
1594
+ }
1595
+ }
1596
+ }
1597
+ });
1598
+ if (!hasAsync) {
1599
+ next();
1600
+ }
1601
+ };
1602
+ }
1603
+ function flatMapComponents(matched, fn) {
1604
+ return flatten(matched.map(function(m) {
1605
+ return Object.keys(m.components).map(function(key) {
1606
+ return fn(
1607
+ m.components[key],
1608
+ m.instances[key],
1609
+ m,
1610
+ key
1611
+ );
1612
+ });
1613
+ }));
1614
+ }
1615
+ function flatten(arr) {
1616
+ return Array.prototype.concat.apply([], arr);
1617
+ }
1618
+ var hasSymbol = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol";
1619
+ function isESModule(obj) {
1620
+ return obj.__esModule || hasSymbol && obj[Symbol.toStringTag] === "Module";
1621
+ }
1622
+ function once(fn) {
1623
+ var called = false;
1624
+ return function() {
1625
+ var args = [], len = arguments.length;
1626
+ while (len--)
1627
+ args[len] = arguments[len];
1628
+ if (called) {
1629
+ return;
1630
+ }
1631
+ called = true;
1632
+ return fn.apply(this, args);
1633
+ };
1634
+ }
1635
+ var History = function History2(router2, base) {
1636
+ this.router = router2;
1637
+ this.base = normalizeBase(base);
1638
+ this.current = START;
1639
+ this.pending = null;
1640
+ this.ready = false;
1641
+ this.readyCbs = [];
1642
+ this.readyErrorCbs = [];
1643
+ this.errorCbs = [];
1644
+ this.listeners = [];
1645
+ };
1646
+ History.prototype.listen = function listen(cb) {
1647
+ this.cb = cb;
1648
+ };
1649
+ History.prototype.onReady = function onReady(cb, errorCb) {
1650
+ if (this.ready) {
1651
+ cb();
1652
+ } else {
1653
+ this.readyCbs.push(cb);
1654
+ if (errorCb) {
1655
+ this.readyErrorCbs.push(errorCb);
1656
+ }
1657
+ }
1658
+ };
1659
+ History.prototype.onError = function onError(errorCb) {
1660
+ this.errorCbs.push(errorCb);
1661
+ };
1662
+ History.prototype.transitionTo = function transitionTo(location, onComplete, onAbort) {
1663
+ var this$1$1 = this;
1664
+ var route;
1665
+ try {
1666
+ route = this.router.match(location, this.current);
1667
+ } catch (e) {
1668
+ this.errorCbs.forEach(function(cb) {
1669
+ cb(e);
1670
+ });
1671
+ throw e;
1672
+ }
1673
+ var prev = this.current;
1674
+ this.confirmTransition(
1675
+ route,
1676
+ function() {
1677
+ this$1$1.updateRoute(route);
1678
+ onComplete && onComplete(route);
1679
+ this$1$1.ensureURL();
1680
+ this$1$1.router.afterHooks.forEach(function(hook) {
1681
+ hook && hook(route, prev);
1682
+ });
1683
+ if (!this$1$1.ready) {
1684
+ this$1$1.ready = true;
1685
+ this$1$1.readyCbs.forEach(function(cb) {
1686
+ cb(route);
1687
+ });
1688
+ }
1689
+ },
1690
+ function(err) {
1691
+ if (onAbort) {
1692
+ onAbort(err);
1693
+ }
1694
+ if (err && !this$1$1.ready) {
1695
+ if (!isNavigationFailure(err, NavigationFailureType.redirected) || prev !== START) {
1696
+ this$1$1.ready = true;
1697
+ this$1$1.readyErrorCbs.forEach(function(cb) {
1698
+ cb(err);
1699
+ });
1700
+ }
1701
+ }
1702
+ }
1703
+ );
1704
+ };
1705
+ History.prototype.confirmTransition = function confirmTransition(route, onComplete, onAbort) {
1706
+ var this$1$1 = this;
1707
+ var current = this.current;
1708
+ this.pending = route;
1709
+ var abort = function(err) {
1710
+ if (!isNavigationFailure(err) && isError(err)) {
1711
+ if (this$1$1.errorCbs.length) {
1712
+ this$1$1.errorCbs.forEach(function(cb) {
1713
+ cb(err);
1714
+ });
1715
+ } else {
1716
+ if (process.env.NODE_ENV !== "production") {
1717
+ warn(false, "uncaught error during route navigation:");
1718
+ }
1719
+ console.error(err);
1720
+ }
1721
+ }
1722
+ onAbort && onAbort(err);
1723
+ };
1724
+ var lastRouteIndex = route.matched.length - 1;
1725
+ var lastCurrentIndex = current.matched.length - 1;
1726
+ if (isSameRoute(route, current) && // in the case the route map has been dynamically appended to
1727
+ lastRouteIndex === lastCurrentIndex && route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]) {
1728
+ this.ensureURL();
1729
+ if (route.hash) {
1730
+ handleScroll(this.router, current, route, false);
1731
+ }
1732
+ return abort(createNavigationDuplicatedError(current, route));
1733
+ }
1734
+ var ref = resolveQueue(
1735
+ this.current.matched,
1736
+ route.matched
1737
+ );
1738
+ var updated = ref.updated;
1739
+ var deactivated = ref.deactivated;
1740
+ var activated = ref.activated;
1741
+ var queue = [].concat(
1742
+ // in-component leave guards
1743
+ extractLeaveGuards(deactivated),
1744
+ // global before hooks
1745
+ this.router.beforeHooks,
1746
+ // in-component update hooks
1747
+ extractUpdateHooks(updated),
1748
+ // in-config enter guards
1749
+ activated.map(function(m) {
1750
+ return m.beforeEnter;
1751
+ }),
1752
+ // async components
1753
+ resolveAsyncComponents(activated)
1754
+ );
1755
+ var iterator = function(hook, next) {
1756
+ if (this$1$1.pending !== route) {
1757
+ return abort(createNavigationCancelledError(current, route));
1758
+ }
1759
+ try {
1760
+ hook(route, current, function(to) {
1761
+ if (to === false) {
1762
+ this$1$1.ensureURL(true);
1763
+ abort(createNavigationAbortedError(current, route));
1764
+ } else if (isError(to)) {
1765
+ this$1$1.ensureURL(true);
1766
+ abort(to);
1767
+ } else if (typeof to === "string" || typeof to === "object" && (typeof to.path === "string" || typeof to.name === "string")) {
1768
+ abort(createNavigationRedirectedError(current, route));
1769
+ if (typeof to === "object" && to.replace) {
1770
+ this$1$1.replace(to);
1771
+ } else {
1772
+ this$1$1.push(to);
1773
+ }
1774
+ } else {
1775
+ next(to);
1776
+ }
1777
+ });
1778
+ } catch (e) {
1779
+ abort(e);
1780
+ }
1781
+ };
1782
+ runQueue(queue, iterator, function() {
1783
+ var enterGuards = extractEnterGuards(activated);
1784
+ var queue2 = enterGuards.concat(this$1$1.router.resolveHooks);
1785
+ runQueue(queue2, iterator, function() {
1786
+ if (this$1$1.pending !== route) {
1787
+ return abort(createNavigationCancelledError(current, route));
1788
+ }
1789
+ this$1$1.pending = null;
1790
+ onComplete(route);
1791
+ if (this$1$1.router.app) {
1792
+ this$1$1.router.app.$nextTick(function() {
1793
+ handleRouteEntered(route);
1794
+ });
1795
+ }
1796
+ });
1797
+ });
1798
+ };
1799
+ History.prototype.updateRoute = function updateRoute(route) {
1800
+ this.current = route;
1801
+ this.cb && this.cb(route);
1802
+ };
1803
+ History.prototype.setupListeners = function setupListeners() {
1804
+ };
1805
+ History.prototype.teardown = function teardown() {
1806
+ this.listeners.forEach(function(cleanupListener) {
1807
+ cleanupListener();
1808
+ });
1809
+ this.listeners = [];
1810
+ this.current = START;
1811
+ this.pending = null;
1812
+ };
1813
+ function normalizeBase(base) {
1814
+ if (!base) {
1815
+ if (inBrowser) {
1816
+ var baseEl = document.querySelector("base");
1817
+ base = baseEl && baseEl.getAttribute("href") || "/";
1818
+ base = base.replace(/^https?:\/\/[^\/]+/, "");
1819
+ } else {
1820
+ base = "/";
1821
+ }
1822
+ }
1823
+ if (base.charAt(0) !== "/") {
1824
+ base = "/" + base;
1825
+ }
1826
+ return base.replace(/\/$/, "");
1827
+ }
1828
+ function resolveQueue(current, next) {
1829
+ var i;
1830
+ var max = Math.max(current.length, next.length);
1831
+ for (i = 0; i < max; i++) {
1832
+ if (current[i] !== next[i]) {
1833
+ break;
1834
+ }
1835
+ }
1836
+ return {
1837
+ updated: next.slice(0, i),
1838
+ activated: next.slice(i),
1839
+ deactivated: current.slice(i)
1840
+ };
1841
+ }
1842
+ function extractGuards(records, name, bind, reverse) {
1843
+ var guards = flatMapComponents(records, function(def, instance, match2, key) {
1844
+ var guard = extractGuard(def, name);
1845
+ if (guard) {
1846
+ return Array.isArray(guard) ? guard.map(function(guard2) {
1847
+ return bind(guard2, instance, match2, key);
1848
+ }) : bind(guard, instance, match2, key);
1849
+ }
1850
+ });
1851
+ return flatten(reverse ? guards.reverse() : guards);
1852
+ }
1853
+ function extractGuard(def, key) {
1854
+ if (typeof def !== "function") {
1855
+ def = _Vue.extend(def);
1856
+ }
1857
+ return def.options[key];
1858
+ }
1859
+ function extractLeaveGuards(deactivated) {
1860
+ return extractGuards(deactivated, "beforeRouteLeave", bindGuard, true);
1861
+ }
1862
+ function extractUpdateHooks(updated) {
1863
+ return extractGuards(updated, "beforeRouteUpdate", bindGuard);
1864
+ }
1865
+ function bindGuard(guard, instance) {
1866
+ if (instance) {
1867
+ return function boundRouteGuard() {
1868
+ return guard.apply(instance, arguments);
1869
+ };
1870
+ }
1871
+ }
1872
+ function extractEnterGuards(activated) {
1873
+ return extractGuards(
1874
+ activated,
1875
+ "beforeRouteEnter",
1876
+ function(guard, _, match2, key) {
1877
+ return bindEnterGuard(guard, match2, key);
1878
+ }
1879
+ );
1880
+ }
1881
+ function bindEnterGuard(guard, match2, key) {
1882
+ return function routeEnterGuard(to, from, next) {
1883
+ return guard(to, from, function(cb) {
1884
+ if (typeof cb === "function") {
1885
+ if (!match2.enteredCbs[key]) {
1886
+ match2.enteredCbs[key] = [];
1887
+ }
1888
+ match2.enteredCbs[key].push(cb);
1889
+ }
1890
+ next(cb);
1891
+ });
1892
+ };
1893
+ }
1894
+ var HTML5History = /* @__PURE__ */ function(History3) {
1895
+ function HTML5History2(router2, base) {
1896
+ History3.call(this, router2, base);
1897
+ this._startLocation = getLocation(this.base);
1898
+ }
1899
+ if (History3)
1900
+ HTML5History2.__proto__ = History3;
1901
+ HTML5History2.prototype = Object.create(History3 && History3.prototype);
1902
+ HTML5History2.prototype.constructor = HTML5History2;
1903
+ HTML5History2.prototype.setupListeners = function setupListeners2() {
1904
+ var this$1$1 = this;
1905
+ if (this.listeners.length > 0) {
1906
+ return;
1907
+ }
1908
+ var router2 = this.router;
1909
+ var expectScroll = router2.options.scrollBehavior;
1910
+ var supportsScroll = supportsPushState && expectScroll;
1911
+ if (supportsScroll) {
1912
+ this.listeners.push(setupScroll());
1913
+ }
1914
+ var handleRoutingEvent = function() {
1915
+ var current = this$1$1.current;
1916
+ var location = getLocation(this$1$1.base);
1917
+ if (this$1$1.current === START && location === this$1$1._startLocation) {
1918
+ return;
1919
+ }
1920
+ this$1$1.transitionTo(location, function(route) {
1921
+ if (supportsScroll) {
1922
+ handleScroll(router2, route, current, true);
1923
+ }
1924
+ });
1925
+ };
1926
+ window.addEventListener("popstate", handleRoutingEvent);
1927
+ this.listeners.push(function() {
1928
+ window.removeEventListener("popstate", handleRoutingEvent);
1929
+ });
1930
+ };
1931
+ HTML5History2.prototype.go = function go2(n) {
1932
+ window.history.go(n);
1933
+ };
1934
+ HTML5History2.prototype.push = function push2(location, onComplete, onAbort) {
1935
+ var this$1$1 = this;
1936
+ var ref = this;
1937
+ var fromRoute = ref.current;
1938
+ this.transitionTo(location, function(route) {
1939
+ pushState(cleanPath(this$1$1.base + route.fullPath));
1940
+ handleScroll(this$1$1.router, route, fromRoute, false);
1941
+ onComplete && onComplete(route);
1942
+ }, onAbort);
1943
+ };
1944
+ HTML5History2.prototype.replace = function replace2(location, onComplete, onAbort) {
1945
+ var this$1$1 = this;
1946
+ var ref = this;
1947
+ var fromRoute = ref.current;
1948
+ this.transitionTo(location, function(route) {
1949
+ replaceState(cleanPath(this$1$1.base + route.fullPath));
1950
+ handleScroll(this$1$1.router, route, fromRoute, false);
1951
+ onComplete && onComplete(route);
1952
+ }, onAbort);
1953
+ };
1954
+ HTML5History2.prototype.ensureURL = function ensureURL(push2) {
1955
+ if (getLocation(this.base) !== this.current.fullPath) {
1956
+ var current = cleanPath(this.base + this.current.fullPath);
1957
+ push2 ? pushState(current) : replaceState(current);
1958
+ }
1959
+ };
1960
+ HTML5History2.prototype.getCurrentLocation = function getCurrentLocation() {
1961
+ return getLocation(this.base);
1962
+ };
1963
+ return HTML5History2;
1964
+ }(History);
1965
+ function getLocation(base) {
1966
+ var path = window.location.pathname;
1967
+ var pathLowerCase = path.toLowerCase();
1968
+ var baseLowerCase = base.toLowerCase();
1969
+ if (base && (pathLowerCase === baseLowerCase || pathLowerCase.indexOf(cleanPath(baseLowerCase + "/")) === 0)) {
1970
+ path = path.slice(base.length);
1971
+ }
1972
+ return (path || "/") + window.location.search + window.location.hash;
1973
+ }
1974
+ var HashHistory = /* @__PURE__ */ function(History3) {
1975
+ function HashHistory2(router2, base, fallback) {
1976
+ History3.call(this, router2, base);
1977
+ if (fallback && checkFallback(this.base)) {
1978
+ return;
1979
+ }
1980
+ ensureSlash();
1981
+ }
1982
+ if (History3)
1983
+ HashHistory2.__proto__ = History3;
1984
+ HashHistory2.prototype = Object.create(History3 && History3.prototype);
1985
+ HashHistory2.prototype.constructor = HashHistory2;
1986
+ HashHistory2.prototype.setupListeners = function setupListeners2() {
1987
+ var this$1$1 = this;
1988
+ if (this.listeners.length > 0) {
1989
+ return;
1990
+ }
1991
+ var router2 = this.router;
1992
+ var expectScroll = router2.options.scrollBehavior;
1993
+ var supportsScroll = supportsPushState && expectScroll;
1994
+ if (supportsScroll) {
1995
+ this.listeners.push(setupScroll());
1996
+ }
1997
+ var handleRoutingEvent = function() {
1998
+ var current = this$1$1.current;
1999
+ if (!ensureSlash()) {
2000
+ return;
2001
+ }
2002
+ this$1$1.transitionTo(getHash(), function(route) {
2003
+ if (supportsScroll) {
2004
+ handleScroll(this$1$1.router, route, current, true);
2005
+ }
2006
+ if (!supportsPushState) {
2007
+ replaceHash(route.fullPath);
2008
+ }
2009
+ });
2010
+ };
2011
+ var eventType = supportsPushState ? "popstate" : "hashchange";
2012
+ window.addEventListener(
2013
+ eventType,
2014
+ handleRoutingEvent
2015
+ );
2016
+ this.listeners.push(function() {
2017
+ window.removeEventListener(eventType, handleRoutingEvent);
2018
+ });
2019
+ };
2020
+ HashHistory2.prototype.push = function push2(location, onComplete, onAbort) {
2021
+ var this$1$1 = this;
2022
+ var ref = this;
2023
+ var fromRoute = ref.current;
2024
+ this.transitionTo(
2025
+ location,
2026
+ function(route) {
2027
+ pushHash(route.fullPath);
2028
+ handleScroll(this$1$1.router, route, fromRoute, false);
2029
+ onComplete && onComplete(route);
2030
+ },
2031
+ onAbort
2032
+ );
2033
+ };
2034
+ HashHistory2.prototype.replace = function replace2(location, onComplete, onAbort) {
2035
+ var this$1$1 = this;
2036
+ var ref = this;
2037
+ var fromRoute = ref.current;
2038
+ this.transitionTo(
2039
+ location,
2040
+ function(route) {
2041
+ replaceHash(route.fullPath);
2042
+ handleScroll(this$1$1.router, route, fromRoute, false);
2043
+ onComplete && onComplete(route);
2044
+ },
2045
+ onAbort
2046
+ );
2047
+ };
2048
+ HashHistory2.prototype.go = function go2(n) {
2049
+ window.history.go(n);
2050
+ };
2051
+ HashHistory2.prototype.ensureURL = function ensureURL(push2) {
2052
+ var current = this.current.fullPath;
2053
+ if (getHash() !== current) {
2054
+ push2 ? pushHash(current) : replaceHash(current);
2055
+ }
2056
+ };
2057
+ HashHistory2.prototype.getCurrentLocation = function getCurrentLocation() {
2058
+ return getHash();
2059
+ };
2060
+ return HashHistory2;
2061
+ }(History);
2062
+ function checkFallback(base) {
2063
+ var location = getLocation(base);
2064
+ if (!/^\/#/.test(location)) {
2065
+ window.location.replace(cleanPath(base + "/#" + location));
2066
+ return true;
2067
+ }
2068
+ }
2069
+ function ensureSlash() {
2070
+ var path = getHash();
2071
+ if (path.charAt(0) === "/") {
2072
+ return true;
2073
+ }
2074
+ replaceHash("/" + path);
2075
+ return false;
2076
+ }
2077
+ function getHash() {
2078
+ var href = window.location.href;
2079
+ var index = href.indexOf("#");
2080
+ if (index < 0) {
2081
+ return "";
2082
+ }
2083
+ href = href.slice(index + 1);
2084
+ return href;
2085
+ }
2086
+ function getUrl(path) {
2087
+ var href = window.location.href;
2088
+ var i = href.indexOf("#");
2089
+ var base = i >= 0 ? href.slice(0, i) : href;
2090
+ return base + "#" + path;
2091
+ }
2092
+ function pushHash(path) {
2093
+ if (supportsPushState) {
2094
+ pushState(getUrl(path));
2095
+ } else {
2096
+ window.location.hash = path;
2097
+ }
2098
+ }
2099
+ function replaceHash(path) {
2100
+ if (supportsPushState) {
2101
+ replaceState(getUrl(path));
2102
+ } else {
2103
+ window.location.replace(getUrl(path));
2104
+ }
2105
+ }
2106
+ var AbstractHistory = /* @__PURE__ */ function(History3) {
2107
+ function AbstractHistory2(router2, base) {
2108
+ History3.call(this, router2, base);
2109
+ this.stack = [];
2110
+ this.index = -1;
2111
+ }
2112
+ if (History3)
2113
+ AbstractHistory2.__proto__ = History3;
2114
+ AbstractHistory2.prototype = Object.create(History3 && History3.prototype);
2115
+ AbstractHistory2.prototype.constructor = AbstractHistory2;
2116
+ AbstractHistory2.prototype.push = function push2(location, onComplete, onAbort) {
2117
+ var this$1$1 = this;
2118
+ this.transitionTo(
2119
+ location,
2120
+ function(route) {
2121
+ this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index + 1).concat(route);
2122
+ this$1$1.index++;
2123
+ onComplete && onComplete(route);
2124
+ },
2125
+ onAbort
2126
+ );
2127
+ };
2128
+ AbstractHistory2.prototype.replace = function replace2(location, onComplete, onAbort) {
2129
+ var this$1$1 = this;
2130
+ this.transitionTo(
2131
+ location,
2132
+ function(route) {
2133
+ this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index).concat(route);
2134
+ onComplete && onComplete(route);
2135
+ },
2136
+ onAbort
2137
+ );
2138
+ };
2139
+ AbstractHistory2.prototype.go = function go2(n) {
2140
+ var this$1$1 = this;
2141
+ var targetIndex = this.index + n;
2142
+ if (targetIndex < 0 || targetIndex >= this.stack.length) {
2143
+ return;
2144
+ }
2145
+ var route = this.stack[targetIndex];
2146
+ this.confirmTransition(
2147
+ route,
2148
+ function() {
2149
+ var prev = this$1$1.current;
2150
+ this$1$1.index = targetIndex;
2151
+ this$1$1.updateRoute(route);
2152
+ this$1$1.router.afterHooks.forEach(function(hook) {
2153
+ hook && hook(route, prev);
2154
+ });
2155
+ },
2156
+ function(err) {
2157
+ if (isNavigationFailure(err, NavigationFailureType.duplicated)) {
2158
+ this$1$1.index = targetIndex;
2159
+ }
2160
+ }
2161
+ );
2162
+ };
2163
+ AbstractHistory2.prototype.getCurrentLocation = function getCurrentLocation() {
2164
+ var current = this.stack[this.stack.length - 1];
2165
+ return current ? current.fullPath : "/";
2166
+ };
2167
+ AbstractHistory2.prototype.ensureURL = function ensureURL() {
2168
+ };
2169
+ return AbstractHistory2;
2170
+ }(History);
2171
+ var VueRouter = function VueRouter2(options) {
2172
+ if (options === void 0)
2173
+ options = {};
2174
+ if (process.env.NODE_ENV !== "production") {
2175
+ warn(this instanceof VueRouter2, "Router must be called with the new operator.");
2176
+ }
2177
+ this.app = null;
2178
+ this.apps = [];
2179
+ this.options = options;
2180
+ this.beforeHooks = [];
2181
+ this.resolveHooks = [];
2182
+ this.afterHooks = [];
2183
+ this.matcher = createMatcher(options.routes || [], this);
2184
+ var mode = options.mode || "hash";
2185
+ this.fallback = mode === "history" && !supportsPushState && options.fallback !== false;
2186
+ if (this.fallback) {
2187
+ mode = "hash";
2188
+ }
2189
+ if (!inBrowser) {
2190
+ mode = "abstract";
2191
+ }
2192
+ this.mode = mode;
2193
+ switch (mode) {
2194
+ case "history":
2195
+ this.history = new HTML5History(this, options.base);
2196
+ break;
2197
+ case "hash":
2198
+ this.history = new HashHistory(this, options.base, this.fallback);
2199
+ break;
2200
+ case "abstract":
2201
+ this.history = new AbstractHistory(this, options.base);
2202
+ break;
2203
+ default:
2204
+ if (process.env.NODE_ENV !== "production") {
2205
+ assert(false, "invalid mode: " + mode);
2206
+ }
2207
+ }
2208
+ };
2209
+ var prototypeAccessors = { currentRoute: { configurable: true } };
2210
+ VueRouter.prototype.match = function match(raw, current, redirectedFrom) {
2211
+ return this.matcher.match(raw, current, redirectedFrom);
2212
+ };
2213
+ prototypeAccessors.currentRoute.get = function() {
2214
+ return this.history && this.history.current;
2215
+ };
2216
+ VueRouter.prototype.init = function init(app) {
2217
+ var this$1$1 = this;
2218
+ process.env.NODE_ENV !== "production" && assert(
2219
+ install.installed,
2220
+ "not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."
2221
+ );
2222
+ this.apps.push(app);
2223
+ app.$once("hook:destroyed", function() {
2224
+ var index = this$1$1.apps.indexOf(app);
2225
+ if (index > -1) {
2226
+ this$1$1.apps.splice(index, 1);
2227
+ }
2228
+ if (this$1$1.app === app) {
2229
+ this$1$1.app = this$1$1.apps[0] || null;
2230
+ }
2231
+ if (!this$1$1.app) {
2232
+ this$1$1.history.teardown();
2233
+ }
2234
+ });
2235
+ if (this.app) {
2236
+ return;
2237
+ }
2238
+ this.app = app;
2239
+ var history = this.history;
2240
+ if (history instanceof HTML5History || history instanceof HashHistory) {
2241
+ var handleInitialScroll = function(routeOrError) {
2242
+ var from = history.current;
2243
+ var expectScroll = this$1$1.options.scrollBehavior;
2244
+ var supportsScroll = supportsPushState && expectScroll;
2245
+ if (supportsScroll && "fullPath" in routeOrError) {
2246
+ handleScroll(this$1$1, routeOrError, from, false);
2247
+ }
2248
+ };
2249
+ var setupListeners2 = function(routeOrError) {
2250
+ history.setupListeners();
2251
+ handleInitialScroll(routeOrError);
2252
+ };
2253
+ history.transitionTo(
2254
+ history.getCurrentLocation(),
2255
+ setupListeners2,
2256
+ setupListeners2
2257
+ );
2258
+ }
2259
+ history.listen(function(route) {
2260
+ this$1$1.apps.forEach(function(app2) {
2261
+ app2._route = route;
2262
+ });
2263
+ });
2264
+ };
2265
+ VueRouter.prototype.beforeEach = function beforeEach(fn) {
2266
+ return registerHook(this.beforeHooks, fn);
2267
+ };
2268
+ VueRouter.prototype.beforeResolve = function beforeResolve(fn) {
2269
+ return registerHook(this.resolveHooks, fn);
2270
+ };
2271
+ VueRouter.prototype.afterEach = function afterEach(fn) {
2272
+ return registerHook(this.afterHooks, fn);
2273
+ };
2274
+ VueRouter.prototype.onReady = function onReady2(cb, errorCb) {
2275
+ this.history.onReady(cb, errorCb);
2276
+ };
2277
+ VueRouter.prototype.onError = function onError2(errorCb) {
2278
+ this.history.onError(errorCb);
2279
+ };
2280
+ VueRouter.prototype.push = function push(location, onComplete, onAbort) {
2281
+ var this$1$1 = this;
2282
+ if (!onComplete && !onAbort && typeof Promise !== "undefined") {
2283
+ return new Promise(function(resolve2, reject) {
2284
+ this$1$1.history.push(location, resolve2, reject);
2285
+ });
2286
+ } else {
2287
+ this.history.push(location, onComplete, onAbort);
2288
+ }
2289
+ };
2290
+ VueRouter.prototype.replace = function replace(location, onComplete, onAbort) {
2291
+ var this$1$1 = this;
2292
+ if (!onComplete && !onAbort && typeof Promise !== "undefined") {
2293
+ return new Promise(function(resolve2, reject) {
2294
+ this$1$1.history.replace(location, resolve2, reject);
2295
+ });
2296
+ } else {
2297
+ this.history.replace(location, onComplete, onAbort);
2298
+ }
2299
+ };
2300
+ VueRouter.prototype.go = function go(n) {
2301
+ this.history.go(n);
2302
+ };
2303
+ VueRouter.prototype.back = function back() {
2304
+ this.go(-1);
2305
+ };
2306
+ VueRouter.prototype.forward = function forward() {
2307
+ this.go(1);
2308
+ };
2309
+ VueRouter.prototype.getMatchedComponents = function getMatchedComponents(to) {
2310
+ var route = to ? to.matched ? to : this.resolve(to).route : this.currentRoute;
2311
+ if (!route) {
2312
+ return [];
2313
+ }
2314
+ return [].concat.apply(
2315
+ [],
2316
+ route.matched.map(function(m) {
2317
+ return Object.keys(m.components).map(function(key) {
2318
+ return m.components[key];
2319
+ });
2320
+ })
2321
+ );
2322
+ };
2323
+ VueRouter.prototype.resolve = function resolve(to, current, append) {
2324
+ current = current || this.history.current;
2325
+ var location = normalizeLocation(to, current, append, this);
2326
+ var route = this.match(location, current);
2327
+ var fullPath = route.redirectedFrom || route.fullPath;
2328
+ var base = this.history.base;
2329
+ var href = createHref(base, fullPath, this.mode);
2330
+ return {
2331
+ location,
2332
+ route,
2333
+ href,
2334
+ // for backwards compat
2335
+ normalizedTo: location,
2336
+ resolved: route
2337
+ };
2338
+ };
2339
+ VueRouter.prototype.getRoutes = function getRoutes() {
2340
+ return this.matcher.getRoutes();
2341
+ };
2342
+ VueRouter.prototype.addRoute = function addRoute(parentOrRoute, route) {
2343
+ this.matcher.addRoute(parentOrRoute, route);
2344
+ if (this.history.current !== START) {
2345
+ this.history.transitionTo(this.history.getCurrentLocation());
2346
+ }
2347
+ };
2348
+ VueRouter.prototype.addRoutes = function addRoutes(routes) {
2349
+ if (process.env.NODE_ENV !== "production") {
2350
+ warn(false, "router.addRoutes() is deprecated and has been removed in Vue Router 4. Use router.addRoute() instead.");
2351
+ }
2352
+ this.matcher.addRoutes(routes);
2353
+ if (this.history.current !== START) {
2354
+ this.history.transitionTo(this.history.getCurrentLocation());
2355
+ }
2356
+ };
2357
+ Object.defineProperties(VueRouter.prototype, prototypeAccessors);
2358
+ function registerHook(list, fn) {
2359
+ list.push(fn);
2360
+ return function() {
2361
+ var i = list.indexOf(fn);
2362
+ if (i > -1) {
2363
+ list.splice(i, 1);
2364
+ }
2365
+ };
2366
+ }
2367
+ function createHref(base, fullPath, mode) {
2368
+ var path = mode === "hash" ? "#" + fullPath : fullPath;
2369
+ return base ? cleanPath(base + "/" + path) : path;
2370
+ }
2371
+ VueRouter.install = install;
2372
+ VueRouter.version = "3.6.5";
2373
+ VueRouter.isNavigationFailure = isNavigationFailure;
2374
+ VueRouter.NavigationFailureType = NavigationFailureType;
2375
+ VueRouter.START_LOCATION = START;
2376
+ if (inBrowser && window.Vue) {
2377
+ window.Vue.use(VueRouter);
2378
+ }
2379
+ _l10n.register(_l10n.t20);
2380
+ const IDLE_TIMEOUT = 3 * 60 * 1e3;
2381
+ const _sfc_main$8 = {
2382
+ name: "NcReferenceWidget",
2383
+ components: {
2384
+ NcButton: Components_NcButton
2385
+ },
2386
+ props: {
2387
+ reference: {
2388
+ type: Object,
2389
+ required: true
2390
+ },
2391
+ interactive: {
2392
+ type: Boolean,
2393
+ default: true
2394
+ },
2395
+ interactiveOptIn: {
2396
+ type: Boolean,
2397
+ default: false
2398
+ }
2399
+ },
2400
+ setup() {
2401
+ const compact = Vue.ref(3);
2402
+ const isVisible = Vue.ref(false);
2403
+ const widgetRoot = Vue.ref();
2404
+ core.useIntersectionObserver(widgetRoot, (entries) => {
2405
+ var _a, _b;
2406
+ isVisible.value = (_b = (_a = entries[0]) == null ? void 0 : _a.isIntersecting) != null ? _b : false;
2407
+ });
2408
+ core.useResizeObserver(widgetRoot, (entries) => {
2409
+ if (entries[0].contentRect.width < 450) {
2410
+ compact.value = 0;
2411
+ } else if (entries[0].contentRect.width < 550) {
2412
+ compact.value = 1;
2413
+ } else if (entries[0].contentRect.width < 650) {
2414
+ compact.value = 2;
2415
+ } else {
2416
+ compact.value = 3;
2417
+ }
2418
+ });
2419
+ return {
2420
+ compact,
2421
+ isVisible,
2422
+ widgetRoot
2423
+ };
2424
+ },
2425
+ data() {
2426
+ return {
2427
+ showInteractive: false,
2428
+ rendered: false,
2429
+ idleTimeout: null
2430
+ };
2431
+ },
2432
+ computed: {
2433
+ isInteractive() {
2434
+ return !this.interactiveOptIn && this.interactive || this.showInteractive;
2435
+ },
2436
+ hasFullWidth() {
2437
+ return Functions_registerReference.hasFullWidth(this.reference.richObjectType);
2438
+ },
2439
+ hasCustomWidget() {
2440
+ return Functions_registerReference.isWidgetRegistered(this.reference.richObjectType);
2441
+ },
2442
+ hasInteractiveView() {
2443
+ return Functions_registerReference.isWidgetRegistered(this.reference.richObjectType) && Functions_registerReference.hasInteractiveView(this.reference.richObjectType);
2444
+ },
2445
+ noAccess() {
2446
+ return this.reference && !this.reference.accessible;
2447
+ },
2448
+ descriptionStyle() {
2449
+ if (this.compact === 0) {
2450
+ return {
2451
+ display: "none"
2452
+ };
2453
+ }
2454
+ const lineClamp = this.compact < 4 ? this.compact : 3;
2455
+ return {
2456
+ lineClamp,
2457
+ webkitLineClamp: lineClamp
2458
+ };
2459
+ },
2460
+ compactLink() {
2461
+ const link = this.reference.openGraphObject.link;
2462
+ if (!link) {
2463
+ return "";
2464
+ }
2465
+ if (link.startsWith("https://")) {
2466
+ return link.substring(8);
2467
+ }
2468
+ if (link.startsWith("http://")) {
2469
+ return link.substring(7);
2470
+ }
2471
+ return link;
2472
+ },
2473
+ route() {
2474
+ return autolink.getRoute(this.$router, this.reference.openGraphObject.link);
2475
+ },
2476
+ referenceWidgetLinkComponent() {
2477
+ return this.route ? Link : "a";
2478
+ },
2479
+ referenceWidgetLinkProps() {
2480
+ return this.route ? { to: this.route } : { href: this.reference.openGraphObject.link, target: "_blank" };
2481
+ }
2482
+ },
2483
+ watch: {
2484
+ isVisible: {
2485
+ handler(val) {
2486
+ if (!val) {
2487
+ this.idleTimeout = setTimeout(() => {
2488
+ if (!this.isVisible) {
2489
+ this.destroyWidget();
2490
+ }
2491
+ }, IDLE_TIMEOUT);
2492
+ return;
2493
+ }
2494
+ if (this.idleTimeout) {
2495
+ clearTimeout(this.idleTimeout);
2496
+ this.idleTimeout = null;
2497
+ }
2498
+ if (!this.rendered) {
2499
+ this.renderWidget();
2500
+ }
2501
+ },
2502
+ immediate: true
2503
+ }
2504
+ },
2505
+ beforeDestroy() {
2506
+ this.destroyWidget();
2507
+ },
2508
+ methods: {
2509
+ t: _l10n.t,
2510
+ enableInteractive() {
2511
+ this.showInteractive = true;
2512
+ this.renderWidget();
2513
+ },
2514
+ renderWidget() {
2515
+ var _a;
2516
+ if (!this.$refs.customWidget) {
2517
+ return;
2518
+ }
2519
+ if (((_a = this == null ? void 0 : this.reference) == null ? void 0 : _a.richObjectType) === "open-graph") {
2520
+ return;
2521
+ }
2522
+ this.$refs.customWidget.innerHTML = "";
2523
+ const widget = document.createElement("div");
2524
+ this.$refs.customWidget.appendChild(widget);
2525
+ this.$nextTick(() => {
2526
+ Functions_registerReference.renderWidget(widget, {
2527
+ ...this.reference,
2528
+ interactive: this.isInteractive
2529
+ });
2530
+ this.rendered = true;
2531
+ });
2532
+ },
2533
+ destroyWidget() {
2534
+ if (this.rendered) {
2535
+ Functions_registerReference.destroyWidget(this.reference.richObjectType, this.$el);
2536
+ this.rendered = false;
2537
+ }
2538
+ }
2539
+ }
2540
+ };
2541
+ var _sfc_render$8 = function render3() {
2542
+ var _vm = this, _c = _vm._self._c;
2543
+ return _c("div", { ref: "widgetRoot", class: { "toggle-interactive": _vm.hasInteractiveView && !_vm.isInteractive } }, [_vm.reference && _vm.hasCustomWidget ? _c("div", { ref: "customWidget", staticClass: "widget-custom", class: { "full-width": _vm.hasFullWidth } }) : !_vm.noAccess && _vm.reference && _vm.reference.openGraphObject && !_vm.hasCustomWidget ? _c(_vm.referenceWidgetLinkComponent, _vm._b({ tag: "component", staticClass: "widget-default", attrs: { "rel": "noopener noreferrer" } }, "component", _vm.referenceWidgetLinkProps, false), [_vm.reference.openGraphObject.thumb ? _c("img", { staticClass: "widget-default--image", attrs: { "src": _vm.reference.openGraphObject.thumb } }) : _vm._e(), _c("div", { staticClass: "widget-default--details" }, [_c("p", { staticClass: "widget-default--name" }, [_vm._v(" " + _vm._s(_vm.reference.openGraphObject.name) + " ")]), _c("p", { staticClass: "widget-default--description", style: _vm.descriptionStyle }, [_vm._v(" " + _vm._s(_vm.reference.openGraphObject.description) + " ")]), _c("p", { staticClass: "widget-default--link" }, [_vm._v(" " + _vm._s(_vm.compactLink) + " ")])])]) : _vm._e(), _vm.interactiveOptIn && _vm.hasInteractiveView && !_vm.isInteractive ? _c("NcButton", { staticClass: "toggle-interactive--button", on: { "click": _vm.enableInteractive } }, [_vm._v(" " + _vm._s(_vm.t("Enable interactive view")) + " ")]) : _vm._e()], 1);
2544
+ };
2545
+ var _sfc_staticRenderFns$8 = [];
2546
+ var __component__$8 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
2547
+ _sfc_main$8,
2548
+ _sfc_render$8,
2549
+ _sfc_staticRenderFns$8,
2550
+ false,
2551
+ null,
2552
+ "e69ebe25",
2553
+ null,
2554
+ null
2555
+ );
2556
+ const NcReferenceWidget = __component__$8.exports;
2557
+ const _sfc_main$7 = {
2558
+ name: "NcCustomPickerElement",
2559
+ props: {
2560
+ /**
2561
+ * The reference provider
2562
+ */
2563
+ provider: {
2564
+ type: Object,
2565
+ required: true
2566
+ }
2567
+ },
2568
+ emits: [
2569
+ "cancel",
2570
+ "submit"
2571
+ ],
2572
+ data() {
2573
+ return {
2574
+ isRegistered: Functions_registerReference.isCustomPickerElementRegistered(this.provider.id),
2575
+ renderResult: null
2576
+ };
2577
+ },
2578
+ mounted() {
2579
+ if (this.isRegistered) {
2580
+ this.renderElement();
2581
+ }
2582
+ },
2583
+ beforeDestroy() {
2584
+ if (this.isRegistered) {
2585
+ Functions_registerReference.destroyCustomPickerElement(this.provider.id, this.$el, this.renderResult);
2586
+ }
2587
+ },
2588
+ methods: {
2589
+ renderElement() {
2590
+ if (this.$refs.domElement) {
2591
+ this.$refs.domElement.innerHTML = "";
2592
+ }
2593
+ const renderFunctionResult = Functions_registerReference.renderCustomPickerElement(this.$refs.domElement, { providerId: this.provider.id, accessible: false });
2594
+ Promise.resolve(renderFunctionResult).then((result) => {
2595
+ var _a, _b;
2596
+ this.renderResult = result;
2597
+ if (((_a = this.renderResult.object) == null ? void 0 : _a._isVue) && ((_b = this.renderResult.object) == null ? void 0 : _b.$on)) {
2598
+ this.renderResult.object.$on("submit", this.onSubmit);
2599
+ this.renderResult.object.$on("cancel", this.onCancel);
2600
+ }
2601
+ this.renderResult.element.addEventListener("submit", (e) => {
2602
+ this.onSubmit(e.detail);
2603
+ });
2604
+ this.renderResult.element.addEventListener("cancel", this.onCancel);
2605
+ });
2606
+ },
2607
+ onSubmit(value) {
2608
+ this.$emit("submit", value);
2609
+ },
2610
+ onCancel() {
2611
+ this.$emit("cancel");
2612
+ }
2613
+ }
2614
+ };
2615
+ var _sfc_render$7 = function render4() {
2616
+ var _vm = this, _c = _vm._self._c;
2617
+ return _c("div", { ref: "domElement" });
2618
+ };
2619
+ var _sfc_staticRenderFns$7 = [];
2620
+ var __component__$7 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
2621
+ _sfc_main$7,
2622
+ _sfc_render$7,
2623
+ _sfc_staticRenderFns$7,
2624
+ false,
2625
+ null,
2626
+ "25f1cef8",
2627
+ null,
2628
+ null
2629
+ );
2630
+ const NcCustomPickerElement = __component__$7.exports;
2631
+ _l10n.register(_l10n.t7);
2632
+ const anyLinkProviderId = "any-link";
2633
+ const anyLinkProvider = {
2634
+ id: anyLinkProviderId,
2635
+ title: _l10n.t("Any link"),
2636
+ icon_url: router.imagePath("core", "filetypes/link.svg")
2637
+ };
2638
+ if (!window._vue_richtext_reference_providers) {
2639
+ window._vue_richtext_reference_providers = initialState.loadState("core", "reference-provider-list", []);
2640
+ }
2641
+ if (!window._vue_richtext_reference_provider_timestamps) {
2642
+ window._vue_richtext_reference_provider_timestamps = initialState.loadState("core", "reference-provider-timestamps", {});
2643
+ }
2644
+ function getProvider(providerId) {
2645
+ if (providerId === anyLinkProviderId) {
2646
+ return anyLinkProvider;
2647
+ }
2648
+ return getProviders().find((p) => p.id === providerId);
2649
+ }
2650
+ function getProviders() {
2651
+ return window._vue_richtext_reference_providers.filter((p) => {
2652
+ const keep = !!p.search_providers_ids && p.search_providers_ids.length > 0 || Functions_registerReference.isCustomPickerElementRegistered(p.id);
2653
+ if (!keep) {
2654
+ console.debug("[smart picker]", p.id, "reference provider is discoverable but does not have any related search provider or custom picker component registered");
2655
+ }
2656
+ return keep;
2657
+ });
2658
+ }
2659
+ function sortProviders(providerList) {
2660
+ const timestamps = window._vue_richtext_reference_provider_timestamps;
2661
+ return providerList.sort((a, b) => {
2662
+ return a.order === b.order ? 0 : a.order > b.order ? 1 : -1;
2663
+ }).sort((a, b) => {
2664
+ const ta = timestamps[a.id];
2665
+ const tb = timestamps[b.id];
2666
+ return ta === tb ? 0 : tb === void 0 ? -1 : ta === void 0 ? 1 : ta > tb ? -1 : 1;
2667
+ });
2668
+ }
2669
+ function searchProvider(query, limit = null) {
2670
+ const providers = getProviders();
2671
+ const escapedQuery = query.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
2672
+ const regexp = new RegExp(escapedQuery, "i");
2673
+ const sortedProviders = sortProviders(providers);
2674
+ const filteredSortedProviders = sortedProviders.filter((p) => {
2675
+ return p.title.match(regexp);
2676
+ });
2677
+ const searchResult = limit ? filteredSortedProviders.slice(0, limit) : filteredSortedProviders;
2678
+ if (query === "" || searchResult.length === 0) {
2679
+ searchResult.push(anyLinkProvider);
2680
+ }
2681
+ return searchResult;
2682
+ }
2683
+ function touchProvider(providerId) {
2684
+ const timestamp = Math.floor(Date.now() / 1e3);
2685
+ const params = {
2686
+ timestamp
2687
+ };
2688
+ const url = router.generateOcsUrl("references/provider/{providerId}", { providerId });
2689
+ axios__default.default.put(url, params).then((response) => {
2690
+ window._vue_richtext_reference_provider_timestamps[providerId] = timestamp;
2691
+ });
2692
+ }
2693
+ let mytimer = 0;
2694
+ function delay(callback, ms) {
2695
+ return function() {
2696
+ const context = this;
2697
+ const args = arguments;
2698
+ clearTimeout(mytimer);
2699
+ mytimer = setTimeout(function() {
2700
+ callback.apply(context, args);
2701
+ }, ms || 0);
2702
+ };
2703
+ }
2704
+ function isUrl(str) {
2705
+ try {
2706
+ return Boolean(new URL(str));
2707
+ } catch (error) {
2708
+ return false;
2709
+ }
2710
+ }
2711
+ _l10n.register(_l10n.t34, _l10n.t38);
2712
+ const _sfc_main$6 = {
2713
+ name: "LinkVariantIcon",
2714
+ emits: ["click"],
2715
+ props: {
2716
+ title: {
2717
+ type: String
2718
+ },
2719
+ fillColor: {
2720
+ type: String,
2721
+ default: "currentColor"
2722
+ },
2723
+ size: {
2724
+ type: Number,
2725
+ default: 24
2726
+ }
2727
+ }
2728
+ };
2729
+ var _sfc_render$6 = function render5() {
2730
+ var _vm = this, _c = _vm._self._c;
2731
+ return _c("span", _vm._b({ staticClass: "material-design-icon link-variant-icon", attrs: { "aria-hidden": _vm.title ? null : true, "aria-label": _vm.title, "role": "img" }, on: { "click": function($event) {
2732
+ return _vm.$emit("click", $event);
2733
+ } } }, "span", _vm.$attrs, false), [_c("svg", { staticClass: "material-design-icon__svg", attrs: { "fill": _vm.fillColor, "width": _vm.size, "height": _vm.size, "viewBox": "0 0 24 24" } }, [_c("path", { attrs: { "d": "M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z" } }, [_vm.title ? _c("title", [_vm._v(_vm._s(_vm.title))]) : _vm._e()])])]);
2734
+ };
2735
+ var _sfc_staticRenderFns$6 = [];
2736
+ var __component__$6 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
2737
+ _sfc_main$6,
2738
+ _sfc_render$6,
2739
+ _sfc_staticRenderFns$6,
2740
+ false,
2741
+ null,
2742
+ null,
2743
+ null,
2744
+ null
2745
+ );
2746
+ const LinkVariantIcon = __component__$6.exports;
2747
+ const _sfc_main$5 = {
2748
+ name: "NcProviderList",
2749
+ components: {
2750
+ NcSelect: NcSelect.NcSelect,
2751
+ NcHighlight: Components_NcHighlight.NcHighlight,
2752
+ NcEmptyContent: Components_NcEmptyContent,
2753
+ LinkVariantIcon
2754
+ },
2755
+ emits: [
2756
+ "select-provider",
2757
+ "submit"
2758
+ ],
2759
+ data() {
2760
+ return {
2761
+ selectedProvider: null,
2762
+ query: "",
2763
+ multiselectPlaceholder: _l10n.t("Select provider"),
2764
+ providerIconAlt: _l10n.t("Provider icon")
2765
+ };
2766
+ },
2767
+ computed: {
2768
+ options() {
2769
+ const result = [];
2770
+ if (this.query !== "" && isUrl(this.query)) {
2771
+ result.push({
2772
+ id: this.query,
2773
+ title: this.query,
2774
+ isLink: true
2775
+ });
2776
+ }
2777
+ result.push(...searchProvider(this.query));
2778
+ return result;
2779
+ }
2780
+ },
2781
+ methods: {
2782
+ focus() {
2783
+ setTimeout(() => {
2784
+ var _a, _b, _c;
2785
+ (_c = (_b = (_a = this.$refs["provider-select"]) == null ? void 0 : _a.$el) == null ? void 0 : _b.querySelector("#provider-select-input")) == null ? void 0 : _c.focus();
2786
+ }, 300);
2787
+ },
2788
+ onProviderSelected(p) {
2789
+ if (p !== null) {
2790
+ if (p.isLink) {
2791
+ this.$emit("submit", p.title);
2792
+ } else {
2793
+ this.$emit("select-provider", p);
2794
+ }
2795
+ this.selectedProvider = null;
2796
+ }
2797
+ },
2798
+ onSearch(query, loading) {
2799
+ this.query = query;
2800
+ }
2801
+ }
2802
+ };
2803
+ var _sfc_render$5 = function render6() {
2804
+ var _vm = this, _c = _vm._self._c;
2805
+ return _c("div", { staticClass: "provider-list" }, [_c("NcSelect", { ref: "provider-select", staticClass: "provider-list--select", attrs: { "input-id": "provider-select-input", "label": "title", "placeholder": _vm.multiselectPlaceholder, "options": _vm.options, "append-to-body": false, "clear-search-on-select": true, "clear-search-on-blur": () => false, "filterable": false }, on: { "search": _vm.onSearch, "input": _vm.onProviderSelected }, scopedSlots: _vm._u([{ key: "option", fn: function(option) {
2806
+ return [option.isLink ? _c("div", { staticClass: "provider" }, [_c("LinkVariantIcon", { staticClass: "link-icon", attrs: { "size": 20 } }), _c("span", [_vm._v(_vm._s(option.title))])], 1) : _c("div", { staticClass: "provider" }, [_c("img", { staticClass: "provider-icon", attrs: { "src": option.icon_url, "alt": _vm.providerIconAlt } }), _c("NcHighlight", { staticClass: "option-text", attrs: { "search": _vm.query, "text": option.title } })], 1)];
2807
+ } }]), model: { value: _vm.selectedProvider, callback: function($$v) {
2808
+ _vm.selectedProvider = $$v;
2809
+ }, expression: "selectedProvider" } }), _c("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: _vm._u([{ key: "icon", fn: function() {
2810
+ return [_c("LinkVariantIcon")];
2811
+ }, proxy: true }]) })], 1);
2812
+ };
2813
+ var _sfc_staticRenderFns$5 = [];
2814
+ var __component__$5 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
2815
+ _sfc_main$5,
2816
+ _sfc_render$5,
2817
+ _sfc_staticRenderFns$5,
2818
+ false,
2819
+ null,
2820
+ "e880790e",
2821
+ null,
2822
+ null
2823
+ );
2824
+ const NcProviderList = __component__$5.exports;
2825
+ _l10n.register(_l10n.t21);
2826
+ const _sfc_main$4 = {
2827
+ name: "NcRawLinkInput",
2828
+ components: {
2829
+ LinkVariantIcon,
2830
+ NcEmptyContent: Components_NcEmptyContent,
2831
+ NcLoadingIcon: Components_NcLoadingIcon,
2832
+ NcReferenceWidget,
2833
+ NcTextField: NcTextField.NcTextField
2834
+ },
2835
+ props: {
2836
+ /**
2837
+ * The reference provider
2838
+ */
2839
+ provider: {
2840
+ type: Object,
2841
+ required: true
2842
+ }
2843
+ },
2844
+ emits: [
2845
+ "submit"
2846
+ ],
2847
+ data() {
2848
+ return {
2849
+ inputValue: "",
2850
+ loading: false,
2851
+ reference: null,
2852
+ abortController: null,
2853
+ inputPlaceholder: _l10n.t("Enter link")
2854
+ };
2855
+ },
2856
+ computed: {
2857
+ isLinkValid() {
2858
+ return isUrl(this.inputValue);
2859
+ }
2860
+ },
2861
+ methods: {
2862
+ focus() {
2863
+ var _a;
2864
+ (_a = this.$refs["url-input"].$el.getElementsByTagName("input")[0]) == null ? void 0 : _a.focus();
2865
+ },
2866
+ onSubmit(e) {
2867
+ const value = e.target.value;
2868
+ if (this.isLinkValid) {
2869
+ this.$emit("submit", value);
2870
+ }
2871
+ },
2872
+ onClear() {
2873
+ this.inputValue = "";
2874
+ this.reference = null;
2875
+ },
2876
+ onInput() {
2877
+ this.reference = null;
2878
+ if (this.abortController) {
2879
+ this.abortController.abort();
2880
+ }
2881
+ if (this.isLinkValid) {
2882
+ delay(() => {
2883
+ this.updateReference();
2884
+ }, 500)();
2885
+ }
2886
+ },
2887
+ updateReference() {
2888
+ this.loading = true;
2889
+ this.abortController = new AbortController();
2890
+ axios__default.default.get(router.generateOcsUrl("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
2891
+ signal: this.abortController.signal
2892
+ }).then((response) => {
2893
+ this.reference = response.data.ocs.data.references[this.inputValue];
2894
+ }).catch((error) => {
2895
+ console.error(error);
2896
+ }).then(() => {
2897
+ this.loading = false;
2898
+ });
2899
+ }
2900
+ }
2901
+ };
2902
+ var _sfc_render$4 = function render7() {
2903
+ var _vm = this, _c = _vm._self._c;
2904
+ return _c("div", { staticClass: "raw-link" }, [_c("div", { staticClass: "input-wrapper" }, [_c("NcTextField", { ref: "url-input", attrs: { "value": _vm.inputValue, "show-trailing-button": _vm.inputValue !== "", "label": _vm.inputPlaceholder }, on: { "update:value": [function($event) {
2905
+ _vm.inputValue = $event;
2906
+ }, _vm.onInput], "trailing-button-click": _vm.onClear }, nativeOn: { "keyup": function($event) {
2907
+ if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter"))
2908
+ return null;
2909
+ return _vm.onSubmit.apply(null, arguments);
2910
+ } } }, [_vm.loading ? _c("NcLoadingIcon", { attrs: { "size": 16 } }) : _c("LinkVariantIcon", { attrs: { "size": 16 } })], 1)], 1), _vm.reference !== null ? _c("NcReferenceWidget", { staticClass: "reference-widget", attrs: { "reference": _vm.reference } }) : _c("NcEmptyContent", { staticClass: "raw-link--empty-content", scopedSlots: _vm._u([{ key: "icon", fn: function() {
2911
+ return [_vm.provider.icon_url ? _c("img", { staticClass: "provider-icon", attrs: { "src": _vm.provider.icon_url } }) : _c("LinkVariantIcon")];
2912
+ }, proxy: true }]) })], 1);
2913
+ };
2914
+ var _sfc_staticRenderFns$4 = [];
2915
+ var __component__$4 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
2916
+ _sfc_main$4,
2917
+ _sfc_render$4,
2918
+ _sfc_staticRenderFns$4,
2919
+ false,
2920
+ null,
2921
+ "d0ba247a",
2922
+ null,
2923
+ null
2924
+ );
2925
+ const NcRawLinkInput = __component__$4.exports;
2926
+ const _sfc_main$3 = {
2927
+ name: "NcSearchResult",
2928
+ components: {
2929
+ NcHighlight: Components_NcHighlight.NcHighlight
2930
+ },
2931
+ props: {
2932
+ /**
2933
+ * Unified search result entry
2934
+ */
2935
+ entry: {
2936
+ type: Object,
2937
+ required: true
2938
+ },
2939
+ /**
2940
+ * The query that led to getting this result
2941
+ * Used to highlight the entry text
2942
+ */
2943
+ query: {
2944
+ type: String,
2945
+ required: true
2946
+ }
2947
+ }
2948
+ };
2949
+ var _sfc_render$3 = function render8() {
2950
+ var _vm = this, _c = _vm._self._c;
2951
+ return _c("div", { staticClass: "result" }, [_vm.entry.icon ? _c("div", { staticClass: "result--icon-class", class: { [_vm.entry.icon]: true, rounded: _vm.entry.rounded } }) : _c("img", { staticClass: "result--image", class: { rounded: _vm.entry.rounded }, attrs: { "src": _vm.entry.thumbnailUrl } }), _c("div", { staticClass: "result--content" }, [_c("span", { staticClass: "result--content--name" }, [_c("NcHighlight", { attrs: { "search": _vm.query, "text": _vm.entry.title } })], 1), _c("span", { staticClass: "result--content--subline" }, [_c("NcHighlight", { attrs: { "search": _vm.query, "text": _vm.entry.subline } })], 1)])]);
2952
+ };
2953
+ var _sfc_staticRenderFns$3 = [];
2954
+ var __component__$3 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
2955
+ _sfc_main$3,
2956
+ _sfc_render$3,
2957
+ _sfc_staticRenderFns$3,
2958
+ false,
2959
+ null,
2960
+ "7a394a58",
2961
+ null,
2962
+ null
2963
+ );
2964
+ const NcSearchResult = __component__$3.exports;
2965
+ _l10n.register(_l10n.t27, _l10n.t34, _l10n.t36);
2966
+ const LIMIT = 5;
2967
+ const _sfc_main$2 = {
2968
+ name: "NcSearch",
2969
+ components: {
2970
+ LinkVariantIcon,
2971
+ DotsHorizontalIcon: DotsHorizontal.DotsHorizontal,
2972
+ NcEmptyContent: Components_NcEmptyContent,
2973
+ NcSelect: NcSelect.NcSelect,
2974
+ NcSearchResult
2975
+ },
2976
+ props: {
2977
+ /**
2978
+ * The selected reference provider
2979
+ */
2980
+ provider: {
2981
+ type: Object,
2982
+ required: true
2983
+ },
2984
+ showEmptyContent: {
2985
+ type: Boolean,
2986
+ default: true
2987
+ },
2988
+ searchPlaceholder: {
2989
+ type: String,
2990
+ default: null
2991
+ }
2992
+ },
2993
+ emits: [
2994
+ "submit"
2995
+ ],
2996
+ data() {
2997
+ return {
2998
+ searchQuery: "",
2999
+ selectedResult: null,
3000
+ resultsBySearchProvider: {},
3001
+ searching: false,
3002
+ searchingMoreOf: null,
3003
+ abortController: null,
3004
+ noOptionsText: _l10n.t("Start typing to search"),
3005
+ providerIconAlt: _l10n.t("Provider icon")
3006
+ };
3007
+ },
3008
+ computed: {
3009
+ mySearchPlaceholder() {
3010
+ return this.searchPlaceholder || _l10n.t("Search");
3011
+ },
3012
+ searchProviderIds() {
3013
+ return this.provider.search_providers_ids;
3014
+ },
3015
+ options() {
3016
+ if (this.searchQuery === "") {
3017
+ return [];
3018
+ }
3019
+ const options = [];
3020
+ if (isUrl(this.searchQuery)) {
3021
+ options.push(this.rawLinkEntry);
3022
+ }
3023
+ options.push(...this.formattedSearchResults);
3024
+ return options;
3025
+ },
3026
+ rawLinkEntry() {
3027
+ return {
3028
+ id: "rawLinkEntry",
3029
+ resourceUrl: this.searchQuery,
3030
+ isRawLink: true
3031
+ };
3032
+ },
3033
+ formattedSearchResults() {
3034
+ const results = [];
3035
+ this.searchProviderIds.forEach((pid) => {
3036
+ if (this.resultsBySearchProvider[pid].entries.length > 0) {
3037
+ if (this.searchProviderIds.length > 1 || this.resultsBySearchProvider[pid].entries.length > 1) {
3038
+ results.push({
3039
+ id: "groupTitle-" + pid,
3040
+ name: this.resultsBySearchProvider[pid].name,
3041
+ isCustomGroupTitle: true,
3042
+ providerId: pid
3043
+ });
3044
+ }
3045
+ const providerEntriesWithId = this.resultsBySearchProvider[pid].entries.map((entry, index) => {
3046
+ return {
3047
+ id: "provider-" + pid + "-entry-" + index,
3048
+ ...entry
3049
+ };
3050
+ });
3051
+ results.push(...providerEntriesWithId);
3052
+ if (this.resultsBySearchProvider[pid].isPaginated) {
3053
+ results.push({
3054
+ id: "moreOf-" + pid,
3055
+ name: this.resultsBySearchProvider[pid].name,
3056
+ isMore: true,
3057
+ providerId: pid,
3058
+ isLoading: this.searchingMoreOf === pid
3059
+ });
3060
+ }
3061
+ }
3062
+ });
3063
+ return results;
3064
+ }
3065
+ },
3066
+ mounted() {
3067
+ this.resetResults();
3068
+ },
3069
+ beforeDestroy() {
3070
+ this.cancelSearchRequests();
3071
+ },
3072
+ methods: {
3073
+ t: _l10n.t,
3074
+ resetResults() {
3075
+ const resultsBySearchProvider = {};
3076
+ this.searchProviderIds.forEach((pid) => {
3077
+ resultsBySearchProvider[pid] = {
3078
+ entries: []
3079
+ };
3080
+ });
3081
+ this.resultsBySearchProvider = resultsBySearchProvider;
3082
+ },
3083
+ focus() {
3084
+ setTimeout(() => {
3085
+ var _a, _b, _c;
3086
+ (_c = (_b = (_a = this.$refs["search-select"]) == null ? void 0 : _a.$el) == null ? void 0 : _b.querySelector("#search-select-input")) == null ? void 0 : _c.focus();
3087
+ }, 300);
3088
+ },
3089
+ cancelSearchRequests() {
3090
+ if (this.abortController) {
3091
+ this.abortController.abort();
3092
+ }
3093
+ },
3094
+ onSearchInput(query, loading) {
3095
+ this.searchQuery = query;
3096
+ delay(() => {
3097
+ this.updateSearch();
3098
+ }, 500)();
3099
+ },
3100
+ onSelectResultSelected(item) {
3101
+ if (item !== null) {
3102
+ if (item.resourceUrl) {
3103
+ this.cancelSearchRequests();
3104
+ this.$emit("submit", item.resourceUrl);
3105
+ } else if (item.isMore) {
3106
+ this.searchMoreOf(item.providerId).then(() => {
3107
+ this.selectedResult = null;
3108
+ });
3109
+ }
3110
+ }
3111
+ },
3112
+ searchMoreOf(searchProviderId) {
3113
+ this.searchingMoreOf = searchProviderId;
3114
+ this.cancelSearchRequests();
3115
+ return this.searchProviders(searchProviderId);
3116
+ },
3117
+ updateSearch() {
3118
+ this.cancelSearchRequests();
3119
+ this.resetResults();
3120
+ if (this.searchQuery === "") {
3121
+ this.searching = false;
3122
+ return;
3123
+ }
3124
+ return this.searchProviders();
3125
+ },
3126
+ searchProviders(searchProviderId = null) {
3127
+ var _a, _b;
3128
+ this.abortController = new AbortController();
3129
+ this.searching = true;
3130
+ const searchPromises = searchProviderId === null ? [...this.searchProviderIds].map((pid) => {
3131
+ return this.searchOneProvider(pid);
3132
+ }) : [this.searchOneProvider(searchProviderId, (_b = (_a = this.resultsBySearchProvider[searchProviderId]) == null ? void 0 : _a.cursor) != null ? _b : null)];
3133
+ return Promise.allSettled(searchPromises).then((promises) => {
3134
+ const isOneCanceled = !!promises.find((p) => {
3135
+ return p.status === "rejected" && (p.reason.name === "CanceledError" || p.reason.code === "ERR_CANCELED");
3136
+ });
3137
+ if (!isOneCanceled) {
3138
+ this.searching = false;
3139
+ this.searchingMoreOf = null;
3140
+ }
3141
+ });
3142
+ },
3143
+ searchOneProvider(providerId, cursor = null) {
3144
+ const url = cursor === null ? router.generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId, term: this.searchQuery, limit: LIMIT }) : router.generateOcsUrl("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId, term: this.searchQuery, limit: LIMIT, cursor });
3145
+ return axios__default.default.get(url, {
3146
+ signal: this.abortController.signal
3147
+ }).then((response) => {
3148
+ const data = response.data.ocs.data;
3149
+ this.resultsBySearchProvider[providerId].name = data.name;
3150
+ this.resultsBySearchProvider[providerId].cursor = data.cursor;
3151
+ this.resultsBySearchProvider[providerId].isPaginated = data.isPaginated;
3152
+ this.resultsBySearchProvider[providerId].entries.push(...data.entries);
3153
+ });
3154
+ }
3155
+ }
3156
+ };
3157
+ var _sfc_render$2 = function render9() {
3158
+ var _vm = this, _c = _vm._self._c;
3159
+ return _c("div", { staticClass: "smart-picker-search", class: { "with-empty-content": _vm.showEmptyContent } }, [_c("NcSelect", { ref: "search-select", staticClass: "smart-picker-search--select", attrs: { "input-id": "search-select-input", "label": "name", "placeholder": _vm.mySearchPlaceholder, "options": _vm.options, "append-to-body": false, "close-on-select": false, "clear-search-on-select": false, "clear-search-on-blur": () => false, "reset-focus-on-options-change": false, "filterable": false, "autoscroll": true, "reset-on-options-change": false, "loading": _vm.searching }, on: { "search": _vm.onSearchInput, "input": _vm.onSelectResultSelected }, scopedSlots: _vm._u([{ key: "option", fn: function(option) {
3160
+ return [option.isRawLink ? _c("div", { staticClass: "custom-option" }, [_c("LinkVariantIcon", { staticClass: "option-simple-icon", attrs: { "size": 20 } }), _c("span", { staticClass: "option-text" }, [_vm._v(" " + _vm._s(_vm.t("Raw link {options}", { options: option.resourceUrl })) + " ")])], 1) : option.resourceUrl ? _c("NcSearchResult", { staticClass: "search-result", attrs: { "entry": option, "query": _vm.searchQuery } }) : option.isCustomGroupTitle ? _c("span", { staticClass: "custom-option group-name" }, [_vm.provider.icon_url ? _c("img", { staticClass: "provider-icon group-name-icon", attrs: { "src": _vm.provider.icon_url } }) : _vm._e(), _c("span", { staticClass: "option-text" }, [_c("strong", [_vm._v(_vm._s(option.name))])])]) : option.isMore ? _c("span", { class: { "custom-option": true } }, [option.isLoading ? _c("span", { staticClass: "option-simple-icon icon-loading-small" }) : _c("DotsHorizontalIcon", { staticClass: "option-simple-icon", attrs: { "size": 20 } }), _c("span", { staticClass: "option-text" }, [_vm._v(" " + _vm._s(_vm.t('Load more "{options}"', { options: option.name })) + " ")])], 1) : _vm._e()];
3161
+ } }, { key: "no-options", fn: function() {
3162
+ return [_vm._v(" " + _vm._s(_vm.noOptionsText) + " ")];
3163
+ }, proxy: true }]), model: { value: _vm.selectedResult, callback: function($$v) {
3164
+ _vm.selectedResult = $$v;
3165
+ }, expression: "selectedResult" } }), _vm.showEmptyContent ? _c("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: _vm._u([{ key: "icon", fn: function() {
3166
+ return [_vm.provider.icon_url ? _c("img", { staticClass: "provider-icon", attrs: { "alt": _vm.providerIconAlt, "src": _vm.provider.icon_url } }) : _c("LinkVariantIcon")];
3167
+ }, proxy: true }], null, false, 2922132592) }) : _vm._e()], 1);
3168
+ };
3169
+ var _sfc_staticRenderFns$2 = [];
3170
+ var __component__$2 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
3171
+ _sfc_main$2,
3172
+ _sfc_render$2,
3173
+ _sfc_staticRenderFns$2,
3174
+ false,
3175
+ null,
3176
+ "97d196f0",
3177
+ null,
3178
+ null
3179
+ );
3180
+ const NcSearch = __component__$2.exports;
3181
+ const MODES = {
3182
+ providerList: 1,
3183
+ standardLinkInput: 2,
3184
+ searchInput: 3,
3185
+ customElement: 4
3186
+ };
3187
+ const _sfc_main$1 = {
3188
+ name: "NcReferencePicker",
3189
+ components: {
3190
+ NcCustomPickerElement,
3191
+ NcProviderList,
3192
+ NcRawLinkInput,
3193
+ NcSearch
3194
+ },
3195
+ props: {
3196
+ /**
3197
+ * Provider to select on creation
3198
+ * Default: null. Show the provider list
3199
+ */
3200
+ initialProvider: {
3201
+ type: Object,
3202
+ default: () => null
3203
+ },
3204
+ /**
3205
+ * Optional width in pixels
3206
+ * Default: 100%
3207
+ */
3208
+ width: {
3209
+ type: Number,
3210
+ default: null
3211
+ },
3212
+ /**
3213
+ * Focus on the provider list select input on creation
3214
+ * Default: true
3215
+ */
3216
+ focusOnCreate: {
3217
+ type: Boolean,
3218
+ default: true
3219
+ }
3220
+ },
3221
+ emits: [
3222
+ "cancel",
3223
+ "cancel-raw-link",
3224
+ "cancel-search",
3225
+ "provider-selected",
3226
+ "submit"
3227
+ ],
3228
+ data() {
3229
+ return {
3230
+ MODES,
3231
+ selectedProvider: this.initialProvider
3232
+ };
3233
+ },
3234
+ computed: {
3235
+ mode() {
3236
+ return this.selectedProvider === null ? MODES.providerList : Functions_registerReference.isCustomPickerElementRegistered(this.selectedProvider.id) ? MODES.customElement : this.selectedProvider.search_providers_ids ? MODES.searchInput : MODES.standardLinkInput;
3237
+ },
3238
+ pickerWrapperStyle() {
3239
+ return {
3240
+ width: this.width ? this.width + "px" : void 0
3241
+ };
3242
+ }
3243
+ },
3244
+ mounted() {
3245
+ if (this.focusOnCreate) {
3246
+ if (this.initialProvider) {
3247
+ setTimeout(() => {
3248
+ var _a;
3249
+ (_a = this.$refs["url-input"]) == null ? void 0 : _a.focus();
3250
+ }, 300);
3251
+ } else {
3252
+ this.$nextTick(() => {
3253
+ var _a;
3254
+ (_a = this.$refs["provider-list"]) == null ? void 0 : _a.focus();
3255
+ });
3256
+ }
3257
+ }
3258
+ },
3259
+ methods: {
3260
+ onEscapePressed() {
3261
+ if (this.selectedProvider !== null) {
3262
+ this.deselectProvider();
3263
+ } else {
3264
+ this.cancelProviderSelection();
3265
+ }
3266
+ },
3267
+ onProviderSelected(provider) {
3268
+ this.selectedProvider = provider;
3269
+ this.$emit("provider-selected", provider);
3270
+ this.$nextTick(() => {
3271
+ var _a;
3272
+ (_a = this.$refs["url-input"]) == null ? void 0 : _a.focus();
3273
+ });
3274
+ },
3275
+ cancelCustomElement() {
3276
+ this.deselectProvider();
3277
+ },
3278
+ cancelSearch() {
3279
+ var _a;
3280
+ this.$emit("cancel-search", (_a = this.selectedProvider) == null ? void 0 : _a.title);
3281
+ this.deselectProvider();
3282
+ },
3283
+ cancelRawLinkInput() {
3284
+ var _a;
3285
+ this.$emit("cancel-raw-link", (_a = this.selectedProvider) == null ? void 0 : _a.title);
3286
+ this.deselectProvider();
3287
+ },
3288
+ cancelProviderSelection() {
3289
+ this.$emit("cancel");
3290
+ },
3291
+ submitLink(link) {
3292
+ if (this.selectedProvider !== null) {
3293
+ touchProvider(this.selectedProvider.id);
3294
+ }
3295
+ this.$emit("submit", link);
3296
+ this.deselectProvider();
3297
+ },
3298
+ deselectProvider() {
3299
+ this.selectedProvider = null;
3300
+ this.$emit("provider-selected", null);
3301
+ setTimeout(() => {
3302
+ var _a;
3303
+ (_a = this.$refs["provider-list"]) == null ? void 0 : _a.focus();
3304
+ }, 300);
3305
+ }
3306
+ }
3307
+ };
3308
+ var _sfc_render$1 = function render10() {
3309
+ var _vm = this, _c = _vm._self._c;
3310
+ return _c("div", { staticClass: "reference-picker", style: _vm.pickerWrapperStyle, attrs: { "tabindex": "-1" }, on: { "keydown": function($event) {
3311
+ if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"]))
3312
+ return null;
3313
+ $event.stopPropagation();
3314
+ $event.preventDefault();
3315
+ return _vm.onEscapePressed.apply(null, arguments);
3316
+ } } }, [_vm.mode === _vm.MODES.providerList ? _c("NcProviderList", { ref: "provider-list", on: { "select-provider": _vm.onProviderSelected, "submit": _vm.submitLink, "cancel": _vm.cancelProviderSelection } }) : _vm.mode === _vm.MODES.standardLinkInput ? _c("NcRawLinkInput", { ref: "url-input", attrs: { "provider": _vm.selectedProvider }, on: { "submit": _vm.submitLink, "cancel": _vm.cancelRawLinkInput } }) : _vm.mode === _vm.MODES.searchInput ? _c("NcSearch", { ref: "url-input", attrs: { "provider": _vm.selectedProvider }, on: { "cancel": _vm.cancelSearch, "submit": _vm.submitLink } }) : _vm.mode === _vm.MODES.customElement ? _c("div", { staticClass: "custom-element-wrapper" }, [_c("NcCustomPickerElement", { attrs: { "provider": _vm.selectedProvider }, on: { "submit": _vm.submitLink, "cancel": _vm.cancelCustomElement } })], 1) : _vm._e()], 1);
3317
+ };
3318
+ var _sfc_staticRenderFns$1 = [];
3319
+ var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
3320
+ _sfc_main$1,
3321
+ _sfc_render$1,
3322
+ _sfc_staticRenderFns$1,
3323
+ false,
3324
+ null,
3325
+ "12c38c93",
3326
+ null,
3327
+ null
3328
+ );
3329
+ const NcReferencePicker = __component__$1.exports;
3330
+ _l10n.register(_l10n.t11, _l10n.t16);
3331
+ const _sfc_main = {
3332
+ name: "NcReferencePickerModal",
3333
+ components: {
3334
+ NcReferencePicker,
3335
+ NcModal: Components_NcModal,
3336
+ NcButton: Components_NcButton,
3337
+ ArrowLeftIcon: ArrowLeft.ArrowLeft,
3338
+ CloseIcon: Close.Close
3339
+ },
3340
+ props: {
3341
+ /**
3342
+ * Provider to select on creation
3343
+ * Show the provider list if no initial one is provided
3344
+ */
3345
+ initialProvider: {
3346
+ type: Object,
3347
+ default: () => null
3348
+ },
3349
+ /**
3350
+ * Focus on the input item on create
3351
+ */
3352
+ focusOnCreate: {
3353
+ type: Boolean,
3354
+ default: true
3355
+ },
3356
+ /**
3357
+ * If true, add the modal content to the Viewer trap elements via the event-bus
3358
+ */
3359
+ isInsideViewer: {
3360
+ type: Boolean,
3361
+ default: false
3362
+ }
3363
+ },
3364
+ emits: [
3365
+ "cancel",
3366
+ "submit"
3367
+ ],
3368
+ data() {
3369
+ return {
3370
+ show: true,
3371
+ selectedProvider: this.initialProvider,
3372
+ backButtonTitle: _l10n.t("Back to provider selection"),
3373
+ closeButtonTitle: _l10n.t("Close"),
3374
+ closeButtonLabel: _l10n.t("Close Smart Picker")
3375
+ };
3376
+ },
3377
+ computed: {
3378
+ isProviderSelected() {
3379
+ return this.selectedProvider !== null;
3380
+ },
3381
+ showBackButton() {
3382
+ return this.initialProvider === null && this.isProviderSelected;
3383
+ },
3384
+ modalSize() {
3385
+ var _a;
3386
+ return this.isProviderSelected && Functions_registerReference.isCustomPickerElementRegistered(this.selectedProvider.id) ? (_a = Functions_registerReference.getCustomPickerElementSize(this.selectedProvider.id)) != null ? _a : "large" : "normal";
3387
+ },
3388
+ showModalName() {
3389
+ return !this.isProviderSelected || !Functions_registerReference.isCustomPickerElementRegistered(this.selectedProvider.id);
3390
+ },
3391
+ modalName() {
3392
+ return this.isProviderSelected ? this.selectedProvider.title : _l10n.t("Smart Picker");
3393
+ }
3394
+ },
3395
+ mounted() {
3396
+ if (this.isInsideViewer) {
3397
+ const elem = this.$refs.modal_content;
3398
+ eventBus.emit("viewer:trapElements:changed", elem);
3399
+ }
3400
+ },
3401
+ methods: {
3402
+ onCancel() {
3403
+ this.show = false;
3404
+ this.$emit("cancel");
3405
+ },
3406
+ onSubmit(value) {
3407
+ this.show = false;
3408
+ this.$emit("submit", value);
3409
+ },
3410
+ onProviderSelect(provider) {
3411
+ this.selectedProvider = provider;
3412
+ if (provider === null && this.initialProvider !== null) {
3413
+ this.onCancel();
3414
+ }
3415
+ },
3416
+ onBackClicked() {
3417
+ this.$refs.referencePicker.deselectProvider();
3418
+ }
3419
+ }
3420
+ };
3421
+ var _sfc_render = function render11() {
3422
+ var _vm = this, _c = _vm._self._c;
3423
+ return _vm.show ? _c("NcModal", { staticClass: "reference-picker-modal", attrs: { "size": _vm.modalSize, "can-close": false }, on: { "close": _vm.onCancel } }, [_c("div", { ref: "modal_content", staticClass: "reference-picker-modal--content" }, [_vm.showBackButton ? _c("NcButton", { staticClass: "back-button", attrs: { "aria-label": _vm.backButtonTitle, "title": _vm.backButtonTitle }, on: { "click": _vm.onBackClicked }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
3424
+ return [_c("ArrowLeftIcon")];
3425
+ }, proxy: true }], null, false, 3001860362) }) : _vm._e(), _c("NcButton", { staticClass: "close-button", attrs: { "aria-label": _vm.closeButtonLabel, "title": _vm.closeButtonTitle, "type": "tertiary" }, on: { "click": _vm.onCancel }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
3426
+ return [_c("CloseIcon")];
3427
+ }, proxy: true }], null, false, 2491825086) }), _vm.showModalName ? _c("h2", [_vm._v(" " + _vm._s(_vm.modalName) + " ")]) : _vm._e(), _c("NcReferencePicker", { ref: "referencePicker", attrs: { "initial-provider": _vm.initialProvider, "focus-on-create": _vm.focusOnCreate }, on: { "provider-selected": _vm.onProviderSelect, "submit": _vm.onSubmit, "cancel": _vm.onCancel } })], 1)]) : _vm._e();
3428
+ };
3429
+ var _sfc_staticRenderFns = [];
3430
+ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
3431
+ _sfc_main,
3432
+ _sfc_render,
3433
+ _sfc_staticRenderFns,
3434
+ false,
3435
+ null,
3436
+ "ab09ebaa",
3437
+ null,
3438
+ null
3439
+ );
3440
+ const NcReferencePickerModal = __component__.exports;
3441
+ async function getLinkWithPicker(providerId = null, isInsideViewer = void 0) {
3442
+ return await new Promise((resolve2, reject) => {
3443
+ var _a;
3444
+ const modalId = "referencePickerModal";
3445
+ const modalElement = document.createElement("div");
3446
+ modalElement.id = modalId;
3447
+ document.body.append(modalElement);
3448
+ const initialProvider = providerId === null ? null : (_a = getProvider(providerId)) != null ? _a : null;
3449
+ const View2 = Vue__default.default.extend(NcReferencePickerModal);
3450
+ const view = new View2({
3451
+ propsData: {
3452
+ initialProvider,
3453
+ isInsideViewer
3454
+ }
3455
+ }).$mount(modalElement);
3456
+ view.$on("cancel", () => {
3457
+ view.$destroy();
3458
+ reject(new Error("User cancellation"));
3459
+ });
3460
+ view.$on("submit", (link) => {
3461
+ view.$destroy();
3462
+ resolve2(link);
3463
+ });
3464
+ });
3465
+ }
3466
+ exports.Link = Link;
3467
+ exports.NcReferencePicker = NcReferencePicker;
3468
+ exports.NcReferencePickerModal = NcReferencePickerModal;
3469
+ exports.NcReferenceWidget = NcReferenceWidget;
3470
+ exports.NcSearch = NcSearch;
3471
+ exports.anyLinkProviderId = anyLinkProviderId;
3472
+ exports.getLinkWithPicker = getLinkWithPicker;
3473
+ exports.getProvider = getProvider;
3474
+ exports.getProviders = getProviders;
3475
+ exports.searchProvider = searchProvider;
3476
+ exports.sortProviders = sortProviders;