@nextcloud/vue 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/CHANGELOG.md +44 -3
  2. package/dist/Components/NcActionButton.cjs +1 -1
  3. package/dist/Components/NcActionButton.mjs +1 -1
  4. package/dist/Components/NcActionButtonGroup.cjs +13 -9
  5. package/dist/Components/NcActionButtonGroup.cjs.map +1 -1
  6. package/dist/Components/NcActionButtonGroup.mjs +16 -11
  7. package/dist/Components/NcActionButtonGroup.mjs.map +1 -1
  8. package/dist/Components/NcActionInput.cjs +9 -8
  9. package/dist/Components/NcActionInput.cjs.map +1 -1
  10. package/dist/Components/NcActionInput.mjs +11 -10
  11. package/dist/Components/NcActionInput.mjs.map +1 -1
  12. package/dist/Components/NcActionLink.cjs +1 -1
  13. package/dist/Components/NcActionLink.mjs +1 -1
  14. package/dist/Components/NcActionRouter.cjs +1 -1
  15. package/dist/Components/NcActionRouter.mjs +1 -1
  16. package/dist/Components/NcActionText.cjs +1 -1
  17. package/dist/Components/NcActionText.mjs +1 -1
  18. package/dist/Components/NcActionTextEditable.cjs +1 -1
  19. package/dist/Components/NcActionTextEditable.mjs +1 -1
  20. package/dist/Components/NcActions.cjs +37 -37
  21. package/dist/Components/NcActions.cjs.map +1 -1
  22. package/dist/Components/NcActions.mjs +19 -19
  23. package/dist/Components/NcActions.mjs.map +1 -1
  24. package/dist/Components/NcAppContent.cjs +15 -14
  25. package/dist/Components/NcAppContent.cjs.map +1 -1
  26. package/dist/Components/NcAppContent.mjs +35 -34
  27. package/dist/Components/NcAppContent.mjs.map +1 -1
  28. package/dist/Components/NcAppNavigation.cjs +1 -1
  29. package/dist/Components/NcAppNavigation.mjs +1 -1
  30. package/dist/Components/NcAppNavigationCaption.cjs +2 -2
  31. package/dist/Components/NcAppNavigationCaption.cjs.map +1 -1
  32. package/dist/Components/NcAppNavigationCaption.mjs +2 -2
  33. package/dist/Components/NcAppNavigationCaption.mjs.map +1 -1
  34. package/dist/Components/NcAppNavigationItem.cjs +28 -24
  35. package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
  36. package/dist/Components/NcAppNavigationItem.mjs +66 -63
  37. package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
  38. package/dist/Components/NcAppNavigationNewItem.cjs +2 -2
  39. package/dist/Components/NcAppNavigationNewItem.mjs +2 -2
  40. package/dist/Components/NcAppNavigationSettings.cjs +7 -8
  41. package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
  42. package/dist/Components/NcAppNavigationSettings.mjs +27 -29
  43. package/dist/Components/NcAppNavigationSettings.mjs.map +1 -1
  44. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  45. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  46. package/dist/Components/NcAppSettingsDialog.cjs +19 -18
  47. package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
  48. package/dist/Components/NcAppSettingsDialog.mjs +22 -21
  49. package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
  50. package/dist/Components/NcAppSidebar.cjs +88 -45
  51. package/dist/Components/NcAppSidebar.cjs.map +1 -1
  52. package/dist/Components/NcAppSidebar.mjs +158 -112
  53. package/dist/Components/NcAppSidebar.mjs.map +1 -1
  54. package/dist/Components/NcAvatar.cjs +1 -1
  55. package/dist/Components/NcAvatar.mjs +1 -1
  56. package/dist/Components/NcBreadcrumb.cjs +4 -3
  57. package/dist/Components/NcBreadcrumb.cjs.map +1 -1
  58. package/dist/Components/NcBreadcrumb.mjs +6 -5
  59. package/dist/Components/NcBreadcrumb.mjs.map +1 -1
  60. package/dist/Components/NcBreadcrumbs.cjs +26 -19
  61. package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
  62. package/dist/Components/NcBreadcrumbs.mjs +48 -41
  63. package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
  64. package/dist/Components/NcCheckboxRadioSwitch.cjs +44 -34
  65. package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
  66. package/dist/Components/NcCheckboxRadioSwitch.mjs +72 -62
  67. package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
  68. package/dist/Components/NcColorPicker.cjs +34 -11
  69. package/dist/Components/NcColorPicker.cjs.map +1 -1
  70. package/dist/Components/NcColorPicker.mjs +48 -25
  71. package/dist/Components/NcColorPicker.mjs.map +1 -1
  72. package/dist/Components/NcDashboardWidget.cjs +7 -6
  73. package/dist/Components/NcDashboardWidget.cjs.map +1 -1
  74. package/dist/Components/NcDashboardWidget.mjs +17 -16
  75. package/dist/Components/NcDashboardWidget.mjs.map +1 -1
  76. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  77. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  78. package/dist/Components/NcDateTime.cjs +15 -13
  79. package/dist/Components/NcDateTime.cjs.map +1 -1
  80. package/dist/Components/NcDateTime.mjs +12 -11
  81. package/dist/Components/NcDateTime.mjs.map +1 -1
  82. package/dist/Components/NcDateTimePicker.cjs +24 -23
  83. package/dist/Components/NcDateTimePicker.cjs.map +1 -1
  84. package/dist/Components/NcDateTimePicker.mjs +36 -36
  85. package/dist/Components/NcDateTimePicker.mjs.map +1 -1
  86. package/dist/Components/NcDateTimePickerNative.cjs +3 -3
  87. package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
  88. package/dist/Components/NcDateTimePickerNative.mjs +3 -3
  89. package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
  90. package/dist/Components/NcDialog.cjs +18 -17
  91. package/dist/Components/NcDialog.cjs.map +1 -1
  92. package/dist/Components/NcDialog.mjs +26 -24
  93. package/dist/Components/NcDialog.mjs.map +1 -1
  94. package/dist/Components/NcEmojiPicker.cjs +2 -1
  95. package/dist/Components/NcEmojiPicker.cjs.map +1 -1
  96. package/dist/Components/NcEmojiPicker.mjs +18 -17
  97. package/dist/Components/NcEmojiPicker.mjs.map +1 -1
  98. package/dist/Components/NcHeaderMenu.cjs +8 -8
  99. package/dist/Components/NcHeaderMenu.cjs.map +1 -1
  100. package/dist/Components/NcHeaderMenu.mjs +6 -6
  101. package/dist/Components/NcHeaderMenu.mjs.map +1 -1
  102. package/dist/Components/NcListItem.cjs +15 -10
  103. package/dist/Components/NcListItem.cjs.map +1 -1
  104. package/dist/Components/NcListItem.mjs +22 -17
  105. package/dist/Components/NcListItem.mjs.map +1 -1
  106. package/dist/Components/NcListItemIcon.cjs +1 -1
  107. package/dist/Components/NcListItemIcon.mjs +1 -1
  108. package/dist/Components/NcModal.cjs +50 -46
  109. package/dist/Components/NcModal.cjs.map +1 -1
  110. package/dist/Components/NcModal.mjs +66 -63
  111. package/dist/Components/NcModal.mjs.map +1 -1
  112. package/dist/Components/NcPasswordField.cjs +14 -12
  113. package/dist/Components/NcPasswordField.cjs.map +1 -1
  114. package/dist/Components/NcPasswordField.mjs +25 -23
  115. package/dist/Components/NcPasswordField.mjs.map +1 -1
  116. package/dist/Components/NcRelatedResourcesPanel.cjs +6 -4
  117. package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
  118. package/dist/Components/NcRelatedResourcesPanel.mjs +24 -22
  119. package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
  120. package/dist/Components/NcRichContenteditable.cjs +113 -82
  121. package/dist/Components/NcRichContenteditable.cjs.map +1 -1
  122. package/dist/Components/NcRichContenteditable.mjs +89 -55
  123. package/dist/Components/NcRichContenteditable.mjs.map +1 -1
  124. package/dist/Components/NcRichText.cjs +1 -1
  125. package/dist/Components/NcRichText.mjs +3 -3
  126. package/dist/Components/NcSelect.cjs +22 -21
  127. package/dist/Components/NcSelect.cjs.map +1 -1
  128. package/dist/Components/NcSelect.mjs +28 -28
  129. package/dist/Components/NcSelect.mjs.map +1 -1
  130. package/dist/Components/NcSelectTags.cjs +4 -2
  131. package/dist/Components/NcSelectTags.cjs.map +1 -1
  132. package/dist/Components/NcSelectTags.mjs +46 -44
  133. package/dist/Components/NcSelectTags.mjs.map +1 -1
  134. package/dist/Components/NcSettingsInputText.cjs +5 -4
  135. package/dist/Components/NcSettingsInputText.cjs.map +1 -1
  136. package/dist/Components/NcSettingsInputText.mjs +15 -14
  137. package/dist/Components/NcSettingsInputText.mjs.map +1 -1
  138. package/dist/Components/NcSettingsSection.cjs +8 -6
  139. package/dist/Components/NcSettingsSection.cjs.map +1 -1
  140. package/dist/Components/NcSettingsSection.mjs +18 -17
  141. package/dist/Components/NcSettingsSection.mjs.map +1 -1
  142. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  143. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  144. package/dist/Components/NcTextArea.cjs +5 -5
  145. package/dist/Components/NcTextArea.cjs.map +1 -1
  146. package/dist/Components/NcTextArea.mjs +4 -4
  147. package/dist/Components/NcTextArea.mjs.map +1 -1
  148. package/dist/Components/NcTextField.cjs +4 -2
  149. package/dist/Components/NcTextField.cjs.map +1 -1
  150. package/dist/Components/NcTextField.mjs +19 -17
  151. package/dist/Components/NcTextField.mjs.map +1 -1
  152. package/dist/Components/NcTimezonePicker.cjs +10 -8
  153. package/dist/Components/NcTimezonePicker.cjs.map +1 -1
  154. package/dist/Components/NcTimezonePicker.mjs +35 -33
  155. package/dist/Components/NcTimezonePicker.mjs.map +1 -1
  156. package/dist/Components/NcUserBubble.cjs +1 -1
  157. package/dist/Components/NcUserBubble.mjs +1 -1
  158. package/dist/Composables/useIsMobile.cjs +13 -8
  159. package/dist/Composables/useIsMobile.cjs.map +1 -1
  160. package/dist/Composables/useIsMobile.mjs +15 -10
  161. package/dist/Composables/useIsMobile.mjs.map +1 -1
  162. package/dist/Functions/usernameToColor.cjs +1 -1
  163. package/dist/Functions/usernameToColor.cjs.map +1 -1
  164. package/dist/Functions/usernameToColor.mjs +1 -1
  165. package/dist/Functions/usernameToColor.mjs.map +1 -1
  166. package/dist/assets/{NcAppNavigationToggle-2bc73ee8.css → NcAppNavigationToggle-48c375e8.css} +4 -2
  167. package/dist/assets/{NcSettingsSelectGroup-6ddb63a6.css → NcSettingsSelectGroup-a29e2156.css} +2 -2
  168. package/dist/assets/{index-7157aefa.css → index-13720a46.css} +24 -24
  169. package/dist/assets/{index-93bc89ef.css → index-1a317434.css} +9 -12
  170. package/dist/assets/{index-3d1ccc15.css → index-2d5cf6b2.css} +45 -45
  171. package/dist/assets/index-3b654875.css +144 -0
  172. package/dist/assets/{index-e6a91529.css → index-7f77b8ae.css} +36 -36
  173. package/dist/assets/{index-9941f384.css → index-86454928.css} +13 -13
  174. package/dist/assets/{index-2d4de2fc.css → index-8b327013.css} +11 -3
  175. package/dist/assets/{index-30ca9574.css → index-97305c1f.css} +27 -40
  176. package/dist/assets/{index-73ded07b.css → index-a3c23731.css} +63 -63
  177. package/dist/assets/{index-50dc154e.css → index-a7fc7815.css} +16 -16
  178. package/dist/assets/{index-810b8984.css → index-a9999048.css} +11 -11
  179. package/dist/assets/{index-3764a447.css → index-aacb7cf8.css} +16 -16
  180. package/dist/assets/{index-b0a8a48c.css → index-b0bba2fc.css} +11 -11
  181. package/dist/assets/{index-b991895f.css → index-c20f9f7e.css} +15 -15
  182. package/dist/assets/{index-5e4bf286.css → index-d8bc189c.css} +38 -41
  183. package/dist/assets/{index-ffa6d11c.css → index-dab51681.css} +64 -31
  184. package/dist/assets/{index-4e03d941.css → index-f24e102f.css} +49 -48
  185. package/dist/assets/{index-4611417f.css → index-f5162bbd.css} +7 -7
  186. package/dist/assets/{index-34dfc54e.css → index-f78bd735.css} +13 -13
  187. package/dist/assets/{index-f72cef5d.css → index-fe84a063.css} +5 -5
  188. package/dist/chunks/GenColors-5c054042.mjs +137 -0
  189. package/dist/chunks/GenColors-5c054042.mjs.map +1 -0
  190. package/dist/chunks/GenColors-7495e6f6.cjs +136 -0
  191. package/dist/chunks/GenColors-7495e6f6.cjs.map +1 -0
  192. package/dist/chunks/{NcAppNavigationToggle-f5591773.mjs → NcAppNavigationToggle-0bc638a8.mjs} +27 -26
  193. package/dist/chunks/{NcAppNavigationToggle-6a975868.cjs.map → NcAppNavigationToggle-0bc638a8.mjs.map} +1 -1
  194. package/dist/chunks/{NcAppNavigationToggle-6a975868.cjs → NcAppNavigationToggle-6d192bea.cjs} +17 -15
  195. package/dist/chunks/{NcAppNavigationToggle-f5591773.mjs.map → NcAppNavigationToggle-6d192bea.cjs.map} +1 -1
  196. package/dist/chunks/{NcInputConfirmCancel-7837eb4d.mjs → NcInputConfirmCancel-a08c5cb4.mjs} +14 -13
  197. package/dist/chunks/{NcInputConfirmCancel-7837eb4d.mjs.map → NcInputConfirmCancel-a08c5cb4.mjs.map} +1 -1
  198. package/dist/chunks/{NcInputConfirmCancel-790f5902.cjs → NcInputConfirmCancel-b99898db.cjs} +8 -7
  199. package/dist/chunks/{NcInputConfirmCancel-790f5902.cjs.map → NcInputConfirmCancel-b99898db.cjs.map} +1 -1
  200. package/dist/chunks/{NcRichText-0db09c78.mjs → NcRichText-e4bf7767.mjs} +1 -1
  201. package/dist/chunks/{NcRichText-0db09c78.mjs.map → NcRichText-e4bf7767.mjs.map} +1 -1
  202. package/dist/chunks/{NcRichText-0dd96aac.cjs → NcRichText-f729896c.cjs} +1 -1
  203. package/dist/chunks/{NcRichText-0dd96aac.cjs.map → NcRichText-f729896c.cjs.map} +1 -1
  204. package/dist/chunks/{NcSettingsSelectGroup-532ba813.cjs → NcSettingsSelectGroup-b065ffc8.cjs} +18 -17
  205. package/dist/chunks/NcSettingsSelectGroup-b065ffc8.cjs.map +1 -0
  206. package/dist/chunks/{NcSettingsSelectGroup-cdd84895.mjs → NcSettingsSelectGroup-ecc8bc5a.mjs} +19 -19
  207. package/dist/chunks/NcSettingsSelectGroup-ecc8bc5a.mjs.map +1 -0
  208. package/dist/chunks/{ScopeComponent-92144d97.cjs → ScopeComponent-06c558d3.cjs} +1 -1
  209. package/dist/chunks/{ScopeComponent-92144d97.cjs.map → ScopeComponent-06c558d3.cjs.map} +1 -1
  210. package/dist/chunks/{ScopeComponent-ac5265f5.mjs → ScopeComponent-b039a43c.mjs} +1 -1
  211. package/dist/chunks/{ScopeComponent-ac5265f5.mjs.map → ScopeComponent-b039a43c.mjs.map} +1 -1
  212. package/dist/chunks/_l10n-72c5e29e.cjs +62 -0
  213. package/dist/chunks/_l10n-72c5e29e.cjs.map +1 -0
  214. package/dist/chunks/_l10n-f5af5269.mjs +64 -0
  215. package/dist/chunks/_l10n-f5af5269.mjs.map +1 -0
  216. package/dist/chunks/{actionText-60ff01d1.mjs → actionText-123f26b0.mjs} +3 -3
  217. package/dist/chunks/{actionText-60ff01d1.mjs.map → actionText-123f26b0.mjs.map} +1 -1
  218. package/dist/chunks/{actionText-9582810f.cjs → actionText-e450809c.cjs} +5 -5
  219. package/dist/chunks/{actionText-9582810f.cjs.map → actionText-e450809c.cjs.map} +1 -1
  220. package/dist/chunks/{index-efb07851.mjs → index-309426ff.mjs} +123 -77
  221. package/dist/chunks/index-309426ff.mjs.map +1 -0
  222. package/dist/chunks/{index-32c8b581.cjs → index-693e993c.cjs} +109 -64
  223. package/dist/chunks/index-693e993c.cjs.map +1 -0
  224. package/dist/chunks/{referencePickerModal-ded8273d.mjs → referencePickerModal-12935fb3.mjs} +175 -169
  225. package/dist/chunks/{referencePickerModal-ded8273d.mjs.map → referencePickerModal-12935fb3.mjs.map} +1 -1
  226. package/dist/chunks/{referencePickerModal-90dac0d0.cjs → referencePickerModal-12fa2ad0.cjs} +36 -30
  227. package/dist/chunks/{referencePickerModal-90dac0d0.cjs.map → referencePickerModal-12fa2ad0.cjs.map} +1 -1
  228. package/dist/index.cjs +93 -93
  229. package/dist/index.cjs.map +1 -1
  230. package/dist/index.mjs +96 -95
  231. package/dist/index.mjs.map +1 -1
  232. package/dist/utils/UserStatus.d.ts +26 -0
  233. package/package.json +10 -4
  234. package/dist/assets/index-2e5e3b55.css +0 -151
  235. package/dist/chunks/GenColors-12ec1caa.mjs +0 -56
  236. package/dist/chunks/GenColors-12ec1caa.mjs.map +0 -1
  237. package/dist/chunks/GenColors-a8d54566.cjs +0 -55
  238. package/dist/chunks/GenColors-a8d54566.cjs.map +0 -1
  239. package/dist/chunks/NcSettingsSelectGroup-532ba813.cjs.map +0 -1
  240. package/dist/chunks/NcSettingsSelectGroup-cdd84895.mjs.map +0 -1
  241. package/dist/chunks/index-32c8b581.cjs.map +0 -1
  242. package/dist/chunks/index-efb07851.mjs.map +0 -1
  243. package/dist/chunks/l10n-070da9ad.cjs +0 -29
  244. package/dist/chunks/l10n-070da9ad.cjs.map +0 -1
  245. package/dist/chunks/l10n-1b905a9a.mjs +0 -31
  246. package/dist/chunks/l10n-1b905a9a.mjs.map +0 -1
  247. package/dist/chunks/l10n-38626490.cjs +0 -8
  248. package/dist/chunks/l10n-38626490.cjs.map +0 -1
  249. package/dist/chunks/l10n-6cfc1200.mjs +0 -10
  250. package/dist/chunks/l10n-6cfc1200.mjs.map +0 -1
@@ -1,23 +1,23 @@
1
1
  import "../assets/referencePickerModal-3a127978.css";
2
2
  import { n as c } from "./_plugin-vue2_normalizer-71e2aa87.mjs";
3
- import { t as n } from "./l10n-1b905a9a.mjs";
4
- import p from "@nextcloud/axios";
5
- import { loadState as C } from "@nextcloud/initial-state";
6
- import { imagePath as L, generateOcsUrl as _ } from "@nextcloud/router";
7
- import m from "../Components/NcEmptyContent.mjs";
8
- import { N as P } from "./index-20a9ace9.mjs";
9
- import w from "../Components/NcSelect.mjs";
10
- import N from "../Components/NcLoadingIcon.mjs";
11
- import E from "../Components/NcTextField.mjs";
12
- import { D as I } from "./DotsHorizontal-0ee7d901.mjs";
13
- import O from "../Components/NcButton.mjs";
14
- import B from "../Components/NcModal.mjs";
15
- import { emit as M } from "@nextcloud/event-bus";
16
- import { A as V } from "./ArrowLeft-3779ba88.mjs";
17
- import { C as W } from "./Close-271f72e2.mjs";
18
- import q from "vue";
3
+ import { r as _, h as E, a as n, i as I, j as P, k as O, l as B, m as M, f as V, n as W } from "./_l10n-f5af5269.mjs";
4
+ import m from "@nextcloud/axios";
5
+ import { loadState as w } from "@nextcloud/initial-state";
6
+ import { imagePath as q, generateOcsUrl as p } from "@nextcloud/router";
7
+ import f from "../Components/NcEmptyContent.mjs";
8
+ import { N as b } from "./index-20a9ace9.mjs";
9
+ import S from "../Components/NcSelect.mjs";
10
+ import T from "../Components/NcLoadingIcon.mjs";
11
+ import j from "../Components/NcTextField.mjs";
12
+ import { D as z } from "./DotsHorizontal-0ee7d901.mjs";
13
+ import D from "../Components/NcButton.mjs";
14
+ import A from "../Components/NcModal.mjs";
15
+ import { emit as F } from "@nextcloud/event-bus";
16
+ import { A as U } from "./ArrowLeft-3779ba88.mjs";
17
+ import { C as Q } from "./Close-271f72e2.mjs";
18
+ import G from "vue";
19
19
  window._vue_richtext_widgets || (window._vue_richtext_widgets = {});
20
- const T = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
20
+ const H = (t) => !!window._vue_richtext_widgets[t], Z = (t, e, r = (s) => {
21
21
  }) => {
22
22
  if (window._vue_richtext_widgets[t]) {
23
23
  console.error("Widget for id " + t + " already registered");
@@ -28,7 +28,7 @@ const T = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
28
28
  callback: e,
29
29
  onDestroy: r
30
30
  };
31
- }, z = (t, { richObjectType: e, richObject: r, accessible: s }) => {
31
+ }, J = (t, { richObjectType: e, richObject: r, accessible: s }) => {
32
32
  if (e !== "open-graph") {
33
33
  if (!window._vue_richtext_widgets[e]) {
34
34
  console.error("Widget for rich object type " + e + " not registered");
@@ -36,11 +36,11 @@ const T = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
36
36
  }
37
37
  window._vue_richtext_widgets[e].callback(t, { richObjectType: e, richObject: r, accessible: s });
38
38
  }
39
- }, D = (t, e) => {
39
+ }, K = (t, e) => {
40
40
  t !== "open-graph" && window._vue_richtext_widgets[t] && window._vue_richtext_widgets[t].onDestroy(e);
41
41
  };
42
- window._registerWidget = j;
43
- const A = {
42
+ window._registerWidget = Z;
43
+ const X = {
44
44
  name: "NcReferenceWidget",
45
45
  props: {
46
46
  reference: {
@@ -55,7 +55,7 @@ const A = {
55
55
  },
56
56
  computed: {
57
57
  hasCustomWidget() {
58
- return T(this.reference.richObjectType);
58
+ return H(this.reference.richObjectType);
59
59
  },
60
60
  noAccess() {
61
61
  return this.reference && !this.reference.accessible;
@@ -82,33 +82,33 @@ const A = {
82
82
  }), this.observer.observe(this.$el);
83
83
  },
84
84
  beforeDestroy() {
85
- this.observer.disconnect(), D(this.reference.richObjectType, this.$el);
85
+ this.observer.disconnect(), K(this.reference.richObjectType, this.$el);
86
86
  },
87
87
  methods: {
88
88
  renderWidget() {
89
89
  var t;
90
90
  this.$refs.customWidget && (this.$refs.customWidget.innerHTML = ""), ((t = this == null ? void 0 : this.reference) == null ? void 0 : t.richObjectType) !== "open-graph" && this.$nextTick(() => {
91
- z(this.$refs.customWidget, this.reference);
91
+ J(this.$refs.customWidget, this.reference);
92
92
  });
93
93
  }
94
94
  }
95
95
  };
96
- var F = function() {
96
+ var Y = function() {
97
97
  var e = this, r = e._self._c;
98
98
  return r("div", [e.reference && e.hasCustomWidget ? r("div", { staticClass: "widget-custom" }, [r("div", { ref: "customWidget" })]) : !e.noAccess && e.reference && e.reference.openGraphObject && !e.hasCustomWidget ? r("a", { staticClass: "widget-default", attrs: { href: e.reference.openGraphObject.link, rel: "noopener noreferrer", target: "_blank" } }, [e.reference.openGraphObject.thumb ? r("img", { staticClass: "widget-default--image", attrs: { src: e.reference.openGraphObject.thumb } }) : e._e(), r("div", { staticClass: "widget-default--details" }, [r("p", { staticClass: "widget-default--name" }, [e._v(e._s(e.reference.openGraphObject.name))]), r("p", { staticClass: "widget-default--description", style: e.descriptionStyle }, [e._v(e._s(e.reference.openGraphObject.description))]), r("p", { staticClass: "widget-default--link" }, [e._v(e._s(e.compactLink))])])]) : e._e()]);
99
- }, U = [], Q = /* @__PURE__ */ c(
100
- A,
101
- F,
102
- U,
99
+ }, ee = [], te = /* @__PURE__ */ c(
100
+ X,
101
+ Y,
102
+ ee,
103
103
  !1,
104
104
  null,
105
105
  "b1c5a80f",
106
106
  null,
107
107
  null
108
108
  );
109
- const G = Q.exports;
109
+ const re = te.exports;
110
110
  window._vue_richtext_custom_picker_elements || (window._vue_richtext_custom_picker_elements = {});
111
- class nt {
111
+ class pt {
112
112
  /**
113
113
  * @param {HTMLElement} element The HTML element
114
114
  * @param {object} object The object
@@ -117,11 +117,11 @@ class nt {
117
117
  this.element = e, this.object = r;
118
118
  }
119
119
  }
120
- const h = (t) => !!window._vue_richtext_custom_picker_elements[t], H = (t) => {
120
+ const h = (t) => !!window._vue_richtext_custom_picker_elements[t], se = (t) => {
121
121
  var r;
122
122
  const e = (r = window._vue_richtext_custom_picker_elements[t]) == null ? void 0 : r.size;
123
123
  return ["small", "normal", "large", "full"].includes(e) ? e : null;
124
- }, Z = (t, e, r = (i) => {
124
+ }, ie = (t, e, r = (i) => {
125
125
  }, s = "large") => {
126
126
  if (window._vue_richtext_custom_picker_elements[t]) {
127
127
  console.error("Custom reference picker element for id " + t + " already registered");
@@ -133,17 +133,17 @@ const h = (t) => !!window._vue_richtext_custom_picker_elements[t], H = (t) => {
133
133
  onDestroy: r,
134
134
  size: s
135
135
  };
136
- }, J = (t, { providerId: e, accessible: r }) => {
136
+ }, ne = (t, { providerId: e, accessible: r }) => {
137
137
  if (!window._vue_richtext_custom_picker_elements[e]) {
138
138
  console.error("Custom reference picker element for reference provider ID " + e + " not registered");
139
139
  return;
140
140
  }
141
141
  return window._vue_richtext_custom_picker_elements[e].callback(t, { providerId: e, accessible: r });
142
- }, K = (t, e, r) => {
142
+ }, oe = (t, e, r) => {
143
143
  window._vue_richtext_custom_picker_elements[t] && window._vue_richtext_custom_picker_elements[t].onDestroy(e, r);
144
144
  };
145
- window._registerCustomPickerElement = Z;
146
- const X = {
145
+ window._registerCustomPickerElement = ie;
146
+ const ce = {
147
147
  name: "NcCustomPickerElement",
148
148
  props: {
149
149
  /**
@@ -168,12 +168,12 @@ const X = {
168
168
  this.isRegistered && this.renderElement();
169
169
  },
170
170
  beforeDestroy() {
171
- this.isRegistered && K(this.provider.id, this.$el, this.renderResult);
171
+ this.isRegistered && oe(this.provider.id, this.$el, this.renderResult);
172
172
  },
173
173
  methods: {
174
174
  renderElement() {
175
175
  this.$refs.domElement && (this.$refs.domElement.innerHTML = "");
176
- const t = J(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
176
+ const t = ne(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
177
177
  Promise.resolve(t).then((e) => {
178
178
  var r, s;
179
179
  this.renderResult = e, (r = this.renderResult.object) != null && r._isVue && ((s = this.renderResult.object) != null && s.$on) && (this.renderResult.object.$on("submit", this.onSubmit), this.renderResult.object.$on("cancel", this.onCancel)), this.renderResult.element.addEventListener("submit", (i) => {
@@ -189,71 +189,74 @@ const X = {
189
189
  }
190
190
  }
191
191
  };
192
- var Y = function() {
192
+ var le = function() {
193
193
  var e = this, r = e._self._c;
194
194
  return r("div", { ref: "domElement" });
195
- }, ee = [], te = /* @__PURE__ */ c(
196
- X,
197
- Y,
198
- ee,
195
+ }, ae = [], ue = /* @__PURE__ */ c(
196
+ ce,
197
+ le,
198
+ ae,
199
199
  !1,
200
200
  null,
201
201
  "cf695ff9",
202
202
  null,
203
203
  null
204
204
  );
205
- const re = te.exports, b = "any-link", S = {
206
- id: b,
205
+ const de = ue.exports;
206
+ _(E);
207
+ const R = "any-link", x = {
208
+ id: R,
207
209
  title: n("Any link"),
208
- icon_url: L("core", "filetypes/link.svg")
210
+ icon_url: q("core", "filetypes/link.svg")
209
211
  };
210
- window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = C("core", "reference-provider-list", []));
211
- window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = C("core", "reference-provider-timestamps", {}));
212
- function se(t) {
213
- return t === b ? S : R().find((e) => e.id === t);
212
+ window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = w("core", "reference-provider-list", []));
213
+ window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = w("core", "reference-provider-timestamps", {}));
214
+ function he(t) {
215
+ return t === R ? x : $().find((e) => e.id === t);
214
216
  }
215
- function R() {
217
+ function $() {
216
218
  return window._vue_richtext_reference_providers.filter((t) => {
217
219
  const e = !!t.search_providers_ids && t.search_providers_ids.length > 0 || h(t.id);
218
220
  return e || console.debug("[smart picker]", t.id, "reference provider is discoverable but does not have any related search provider or custom picker component registered"), e;
219
221
  });
220
222
  }
221
- function ie(t) {
223
+ function _e(t) {
222
224
  const e = window._vue_richtext_reference_provider_timestamps;
223
225
  return t.sort((r, s) => r.order === s.order ? 0 : r.order > s.order ? 1 : -1).sort((r, s) => {
224
226
  const i = e[r.id], o = e[s.id];
225
227
  return i === o ? 0 : o === void 0 ? -1 : i === void 0 ? 1 : i > o ? -1 : 1;
226
228
  });
227
229
  }
228
- function ne(t, e = null) {
229
- const r = R(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), l = ie(r).filter((a) => a.title.match(i)), u = e ? l.slice(0, e) : l;
230
- return (t === "" || u.length === 0) && u.push(S), u;
230
+ function pe(t, e = null) {
231
+ const r = $(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), l = _e(r).filter((a) => a.title.match(i)), u = e ? l.slice(0, e) : l;
232
+ return (t === "" || u.length === 0) && u.push(x), u;
231
233
  }
232
- function oe(t) {
234
+ function me(t) {
233
235
  const e = Math.floor(Date.now() / 1e3), r = {
234
236
  timestamp: e
235
- }, s = _("references/provider/{providerId}", { providerId: t });
236
- p.put(s, r).then((i) => {
237
+ }, s = p("references/provider/{providerId}", { providerId: t });
238
+ m.put(s, r).then((i) => {
237
239
  window._vue_richtext_reference_provider_timestamps[t] = e;
238
240
  });
239
241
  }
240
- let y = 0;
241
- function x(t, e) {
242
+ let k = 0;
243
+ function L(t, e) {
242
244
  return function() {
243
245
  const r = this, s = arguments;
244
- clearTimeout(y), y = setTimeout(function() {
246
+ clearTimeout(k), k = setTimeout(function() {
245
247
  t.apply(r, s);
246
248
  }, e || 0);
247
249
  };
248
250
  }
249
- function f(t) {
251
+ function v(t) {
250
252
  try {
251
253
  return !!new URL(t);
252
254
  } catch {
253
255
  return !1;
254
256
  }
255
257
  }
256
- const ce = {
258
+ _(P, I);
259
+ const fe = {
257
260
  name: "LinkVariantIcon",
258
261
  emits: ["click"],
259
262
  props: {
@@ -270,29 +273,29 @@ const ce = {
270
273
  }
271
274
  }
272
275
  };
273
- var le = function() {
276
+ var ve = function() {
274
277
  var e = this, r = e._self._c;
275
278
  return r("span", e._b({ staticClass: "material-design-icon link-variant-icon", attrs: { "aria-hidden": !e.title, "aria-label": e.title, role: "img" }, on: { click: function(s) {
276
279
  return e.$emit("click", s);
277
280
  } } }, "span", e.$attrs, !1), [r("svg", { staticClass: "material-design-icon__svg", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: "0 0 24 24" } }, [r("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" } }, [e.title ? r("title", [e._v(e._s(e.title))]) : e._e()])])]);
278
- }, ae = [], ue = /* @__PURE__ */ c(
279
- ce,
280
- le,
281
- ae,
281
+ }, ge = [], ye = /* @__PURE__ */ c(
282
+ fe,
283
+ ve,
284
+ ge,
282
285
  !1,
283
286
  null,
284
287
  null,
285
288
  null,
286
289
  null
287
290
  );
288
- const v = ue.exports;
289
- const de = {
291
+ const g = ye.exports;
292
+ const ke = {
290
293
  name: "NcProviderList",
291
294
  components: {
292
- NcSelect: w,
293
- NcHighlight: P,
294
- NcEmptyContent: m,
295
- LinkVariantIcon: v
295
+ NcSelect: S,
296
+ NcHighlight: b,
297
+ NcEmptyContent: f,
298
+ LinkVariantIcon: g
296
299
  },
297
300
  emits: [
298
301
  "select-provider",
@@ -309,11 +312,11 @@ const de = {
309
312
  computed: {
310
313
  options() {
311
314
  const t = [];
312
- return this.query !== "" && f(this.query) && t.push({
315
+ return this.query !== "" && v(this.query) && t.push({
313
316
  id: this.query,
314
317
  title: this.query,
315
318
  isLink: !0
316
- }), t.push(...ne(this.query)), t;
319
+ }), t.push(...pe(this.query)), t;
317
320
  }
318
321
  },
319
322
  methods: {
@@ -331,7 +334,7 @@ const de = {
331
334
  }
332
335
  }
333
336
  };
334
- var he = function() {
337
+ var Ce = function() {
335
338
  var e = this, r = e._self._c;
336
339
  return r("div", { staticClass: "provider-list" }, [r("NcSelect", { ref: "provider-select", staticClass: "provider-list--select", attrs: { "input-id": "provider-select-input", label: "title", placeholder: e.multiselectPlaceholder, options: e.options, "append-to-body": !1, "clear-search-on-select": !0, "clear-search-on-blur": () => !1, filterable: !1 }, on: { search: e.onSearch, input: e.onProviderSelected }, scopedSlots: e._u([{ key: "option", fn: function(s) {
337
340
  return [s.isLink ? r("div", { staticClass: "provider" }, [r("LinkVariantIcon", { staticClass: "link-icon", attrs: { size: 20 } }), r("span", [e._v(e._s(s.title))])], 1) : r("div", { staticClass: "provider" }, [r("img", { staticClass: "provider-icon", attrs: { src: s.icon_url, alt: e.providerIconAlt } }), r("NcHighlight", { staticClass: "option-text", attrs: { search: e.query, text: s.title } })], 1)];
@@ -340,25 +343,26 @@ var he = function() {
340
343
  }, expression: "selectedProvider" } }), r("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
341
344
  return [r("LinkVariantIcon")];
342
345
  }, proxy: !0 }]) })], 1);
343
- }, _e = [], pe = /* @__PURE__ */ c(
344
- de,
345
- he,
346
- _e,
346
+ }, Pe = [], we = /* @__PURE__ */ c(
347
+ ke,
348
+ Ce,
349
+ Pe,
347
350
  !1,
348
351
  null,
349
352
  "9d850ea5",
350
353
  null,
351
354
  null
352
355
  );
353
- const me = pe.exports;
354
- const fe = {
356
+ const be = we.exports;
357
+ _(O);
358
+ const Se = {
355
359
  name: "NcRawLinkInput",
356
360
  components: {
357
- LinkVariantIcon: v,
358
- NcEmptyContent: m,
359
- NcLoadingIcon: N,
360
- NcReferenceWidget: G,
361
- NcTextField: E
361
+ LinkVariantIcon: g,
362
+ NcEmptyContent: f,
363
+ NcLoadingIcon: T,
364
+ NcReferenceWidget: re,
365
+ NcTextField: j
362
366
  },
363
367
  props: {
364
368
  /**
@@ -383,7 +387,7 @@ const fe = {
383
387
  },
384
388
  computed: {
385
389
  isLinkValid() {
386
- return f(this.inputValue);
390
+ return v(this.inputValue);
387
391
  }
388
392
  },
389
393
  methods: {
@@ -399,12 +403,12 @@ const fe = {
399
403
  this.inputValue = "", this.reference = null;
400
404
  },
401
405
  onInput() {
402
- this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid && x(() => {
406
+ this.reference = null, this.abortController && this.abortController.abort(), this.isLinkValid && L(() => {
403
407
  this.updateReference();
404
408
  }, 500)();
405
409
  },
406
410
  updateReference() {
407
- this.loading = !0, this.abortController = new AbortController(), p.get(_("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
411
+ this.loading = !0, this.abortController = new AbortController(), m.get(p("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
408
412
  signal: this.abortController.signal
409
413
  }).then((t) => {
410
414
  this.reference = t.data.ocs.data.references[this.inputValue];
@@ -416,7 +420,7 @@ const fe = {
416
420
  }
417
421
  }
418
422
  };
419
- var ve = function() {
423
+ var Re = function() {
420
424
  var e = this, r = e._self._c;
421
425
  return r("div", { staticClass: "raw-link" }, [r("div", { staticClass: "input-wrapper" }, [r("NcTextField", { ref: "url-input", attrs: { value: e.inputValue, "show-trailing-button": e.inputValue !== "", label: e.inputPlaceholder }, on: { "update:value": [function(s) {
422
426
  e.inputValue = s;
@@ -425,21 +429,21 @@ var ve = function() {
425
429
  } } }, [e.loading ? r("NcLoadingIcon", { attrs: { size: 16 } }) : r("LinkVariantIcon", { attrs: { size: 16 } })], 1)], 1), e.reference !== null ? r("NcReferenceWidget", { staticClass: "reference-widget", attrs: { reference: e.reference } }) : r("NcEmptyContent", { staticClass: "raw-link--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
426
430
  return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { src: e.provider.icon_url } }) : r("LinkVariantIcon")];
427
431
  }, proxy: !0 }]) })], 1);
428
- }, ge = [], ye = /* @__PURE__ */ c(
429
- fe,
430
- ve,
431
- ge,
432
+ }, xe = [], $e = /* @__PURE__ */ c(
433
+ Se,
434
+ Re,
435
+ xe,
432
436
  !1,
433
437
  null,
434
438
  "d0ba247a",
435
439
  null,
436
440
  null
437
441
  );
438
- const ke = ye.exports;
439
- const Ce = {
442
+ const Le = $e.exports;
443
+ const Ne = {
440
444
  name: "NcSearchResult",
441
445
  components: {
442
- NcHighlight: P
446
+ NcHighlight: b
443
447
  },
444
448
  props: {
445
449
  /**
@@ -459,28 +463,29 @@ const Ce = {
459
463
  }
460
464
  }
461
465
  };
462
- var Pe = function() {
466
+ var Ee = function() {
463
467
  var e = this, r = e._self._c;
464
468
  return r("div", { staticClass: "result" }, [e.entry.icon ? r("div", { staticClass: "result--icon-class", class: { [e.entry.icon]: !0, rounded: e.entry.rounded } }) : r("img", { staticClass: "result--image", class: { rounded: e.entry.rounded }, attrs: { src: e.entry.thumbnailUrl } }), r("div", { staticClass: "result--content" }, [r("span", { staticClass: "result--content--name" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.title } })], 1), r("span", { staticClass: "result--content--subline" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.subline } })], 1)])]);
465
- }, we = [], be = /* @__PURE__ */ c(
466
- Ce,
467
- Pe,
468
- we,
469
+ }, Ie = [], Oe = /* @__PURE__ */ c(
470
+ Ne,
471
+ Ee,
472
+ Ie,
469
473
  !1,
470
474
  null,
471
475
  "7a394a58",
472
476
  null,
473
477
  null
474
478
  );
475
- const Se = be.exports;
476
- const k = 5, Re = {
479
+ const Be = Oe.exports;
480
+ _(M, P, B);
481
+ const C = 5, Me = {
477
482
  name: "NcSearch",
478
483
  components: {
479
- LinkVariantIcon: v,
480
- DotsHorizontalIcon: I,
481
- NcEmptyContent: m,
482
- NcSelect: w,
483
- NcSearchResult: Se
484
+ LinkVariantIcon: g,
485
+ DotsHorizontalIcon: z,
486
+ NcEmptyContent: f,
487
+ NcSelect: S,
488
+ NcSearchResult: Be
484
489
  },
485
490
  props: {
486
491
  /**
@@ -525,7 +530,7 @@ const k = 5, Re = {
525
530
  if (this.searchQuery === "")
526
531
  return [];
527
532
  const t = [];
528
- return f(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
533
+ return v(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
529
534
  },
530
535
  rawLinkEntry() {
531
536
  return {
@@ -585,7 +590,7 @@ const k = 5, Re = {
585
590
  this.abortController && this.abortController.abort();
586
591
  },
587
592
  onSearchInput(t, e) {
588
- this.searchQuery = t, x(() => {
593
+ this.searchQuery = t, L(() => {
589
594
  this.updateSearch();
590
595
  }, 500)();
591
596
  },
@@ -613,8 +618,8 @@ const k = 5, Re = {
613
618
  });
614
619
  },
615
620
  searchOneProvider(t, e = null) {
616
- const r = e === null ? _("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: k }) : _("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: k, cursor: e });
617
- return p.get(r, {
621
+ const r = e === null ? p("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: C }) : p("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: C, cursor: e });
622
+ return m.get(r, {
618
623
  signal: this.abortController.signal
619
624
  }).then((s) => {
620
625
  const i = s.data.ocs.data;
@@ -623,7 +628,7 @@ const k = 5, Re = {
623
628
  }
624
629
  }
625
630
  };
626
- var xe = function() {
631
+ var Ve = function() {
627
632
  var e = this, r = e._self._c;
628
633
  return r("div", { staticClass: "smart-picker-search", class: { "with-empty-content": e.showEmptyContent } }, [r("NcSelect", { ref: "search-select", staticClass: "smart-picker-search--select", attrs: { "input-id": "search-select-input", label: "name", placeholder: e.mySearchPlaceholder, options: e.options, "append-to-body": !1, "close-on-select": !1, "clear-search-on-select": !1, "clear-search-on-blur": () => !1, "reset-focus-on-options-change": !1, filterable: !1, autoscroll: !0, "reset-on-options-change": !1, loading: e.searching }, on: { search: e.onSearchInput, input: e.onSelectResultSelected }, scopedSlots: e._u([{ key: "option", fn: function(s) {
629
634
  return [s.isRawLink ? r("div", { staticClass: "custom-option" }, [r("LinkVariantIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t("Raw link {options}", { options: s.resourceUrl })) + " ")])], 1) : s.resourceUrl ? r("NcSearchResult", { staticClass: "search-result", attrs: { entry: s, query: e.searchQuery } }) : s.isCustomGroupTitle ? r("span", { staticClass: "custom-option group-name" }, [e.provider.icon_url ? r("img", { staticClass: "provider-icon group-name-icon", attrs: { src: e.provider.icon_url } }) : e._e(), r("span", { staticClass: "option-text" }, [r("strong", [e._v(e._s(s.name))])])]) : s.isMore ? r("span", { class: { "custom-option": !0 } }, [s.isLoading ? r("span", { staticClass: "option-simple-icon icon-loading-small" }) : r("DotsHorizontalIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t('Load more "{options}"', { options: s.name })) + " ")])], 1) : e._e()];
@@ -634,29 +639,29 @@ var xe = function() {
634
639
  }, expression: "selectedResult" } }), e.showEmptyContent ? r("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
635
640
  return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { alt: e.providerIconAlt, src: e.provider.icon_url } }) : r("LinkVariantIcon")];
636
641
  }, proxy: !0 }], null, !1, 2922132592) }) : e._e()], 1);
637
- }, $e = [], Le = /* @__PURE__ */ c(
638
- Re,
639
- xe,
640
- $e,
642
+ }, We = [], qe = /* @__PURE__ */ c(
643
+ Me,
644
+ Ve,
645
+ We,
641
646
  !1,
642
647
  null,
643
648
  "97d196f0",
644
649
  null,
645
650
  null
646
651
  );
647
- const Ne = Le.exports;
652
+ const Te = qe.exports;
648
653
  const d = {
649
654
  providerList: 1,
650
655
  standardLinkInput: 2,
651
656
  searchInput: 3,
652
657
  customElement: 4
653
- }, Ee = {
658
+ }, je = {
654
659
  name: "NcReferencePicker",
655
660
  components: {
656
- NcCustomPickerElement: re,
657
- NcProviderList: me,
658
- NcRawLinkInput: ke,
659
- NcSearch: Ne
661
+ NcCustomPickerElement: de,
662
+ NcProviderList: be,
663
+ NcRawLinkInput: Le,
664
+ NcSearch: Te
660
665
  },
661
666
  props: {
662
667
  /**
@@ -741,7 +746,7 @@ const d = {
741
746
  this.$emit("cancel");
742
747
  },
743
748
  submitLink(t) {
744
- this.selectedProvider !== null && oe(this.selectedProvider.id), this.$emit("submit", t), this.deselectProvider();
749
+ this.selectedProvider !== null && me(this.selectedProvider.id), this.$emit("submit", t), this.deselectProvider();
745
750
  },
746
751
  deselectProvider() {
747
752
  this.selectedProvider = null, this.$emit("provider-selected", null), setTimeout(() => {
@@ -751,30 +756,31 @@ const d = {
751
756
  }
752
757
  }
753
758
  };
754
- var Ie = function() {
759
+ var ze = function() {
755
760
  var e = this, r = e._self._c;
756
761
  return r("div", { staticClass: "reference-picker", style: e.pickerWrapperStyle, attrs: { tabindex: "-1" }, on: { keydown: function(s) {
757
762
  return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : (s.stopPropagation(), s.preventDefault(), e.onEscapePressed.apply(null, arguments));
758
763
  } } }, [e.mode === e.MODES.providerList ? r("NcProviderList", { ref: "provider-list", on: { "select-provider": e.onProviderSelected, submit: e.submitLink, cancel: e.cancelProviderSelection } }) : e.mode === e.MODES.standardLinkInput ? r("NcRawLinkInput", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelRawLinkInput } }) : e.mode === e.MODES.searchInput ? r("NcSearch", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { cancel: e.cancelSearch, submit: e.submitLink } }) : e.mode === e.MODES.customElement ? r("div", { staticClass: "custom-element-wrapper" }, [r("NcCustomPickerElement", { attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelCustomElement } })], 1) : e._e()], 1);
759
- }, Oe = [], Be = /* @__PURE__ */ c(
760
- Ee,
761
- Ie,
762
- Oe,
764
+ }, De = [], Ae = /* @__PURE__ */ c(
765
+ je,
766
+ ze,
767
+ De,
763
768
  !1,
764
769
  null,
765
770
  "aa77d0d3",
766
771
  null,
767
772
  null
768
773
  );
769
- const Me = Be.exports;
770
- const Ve = {
774
+ const Fe = Ae.exports;
775
+ _(W, V);
776
+ const Ue = {
771
777
  name: "NcReferencePickerModal",
772
778
  components: {
773
- NcReferencePicker: Me,
774
- NcModal: B,
775
- NcButton: O,
776
- ArrowLeftIcon: V,
777
- CloseIcon: W
779
+ NcReferencePicker: Fe,
780
+ NcModal: A,
781
+ NcButton: D,
782
+ ArrowLeftIcon: U,
783
+ CloseIcon: Q
778
784
  },
779
785
  props: {
780
786
  /**
@@ -822,7 +828,7 @@ const Ve = {
822
828
  },
823
829
  modalSize() {
824
830
  var t;
825
- return this.isProviderSelected && h(this.selectedProvider.id) ? (t = H(this.selectedProvider.id)) != null ? t : "large" : "normal";
831
+ return this.isProviderSelected && h(this.selectedProvider.id) ? (t = se(this.selectedProvider.id)) != null ? t : "large" : "normal";
826
832
  },
827
833
  showModalName() {
828
834
  return !this.isProviderSelected || !h(this.selectedProvider.id);
@@ -834,7 +840,7 @@ const Ve = {
834
840
  mounted() {
835
841
  if (this.isInsideViewer) {
836
842
  const t = this.$refs.modal_content;
837
- M("viewer:trapElements:changed", t);
843
+ F("viewer:trapElements:changed", t);
838
844
  }
839
845
  },
840
846
  methods: {
@@ -852,30 +858,30 @@ const Ve = {
852
858
  }
853
859
  }
854
860
  };
855
- var We = function() {
861
+ var Qe = function() {
856
862
  var e = this, r = e._self._c;
857
863
  return e.show ? r("NcModal", { staticClass: "reference-picker-modal", attrs: { size: e.modalSize, "can-close": !1 }, on: { close: e.onCancel } }, [r("div", { ref: "modal_content", staticClass: "reference-picker-modal--content" }, [e.showBackButton ? r("NcButton", { staticClass: "back-button", attrs: { "aria-label": e.backButtonTitle, title: e.backButtonTitle }, on: { click: e.onBackClicked }, scopedSlots: e._u([{ key: "icon", fn: function() {
858
864
  return [r("ArrowLeftIcon")];
859
865
  }, proxy: !0 }], null, !1, 3001860362) }) : e._e(), r("NcButton", { staticClass: "close-button", attrs: { "aria-label": e.closeButtonLabel, title: e.closeButtonTitle, type: "tertiary" }, on: { click: e.onCancel }, scopedSlots: e._u([{ key: "icon", fn: function() {
860
866
  return [r("CloseIcon")];
861
867
  }, proxy: !0 }], null, !1, 2491825086) }), e.showModalName ? r("h2", [e._v(" " + e._s(e.modalName) + " ")]) : e._e(), r("NcReferencePicker", { ref: "referencePicker", attrs: { "initial-provider": e.initialProvider, "focus-on-create": e.focusOnCreate }, on: { "provider-selected": e.onProviderSelect, submit: e.onSubmit, cancel: e.onCancel } })], 1)]) : e._e();
862
- }, qe = [], Te = /* @__PURE__ */ c(
863
- Ve,
864
- We,
865
- qe,
868
+ }, Ge = [], He = /* @__PURE__ */ c(
869
+ Ue,
870
+ Qe,
871
+ Ge,
866
872
  !1,
867
873
  null,
868
874
  "3f1a4ac7",
869
875
  null,
870
876
  null
871
877
  );
872
- const je = Te.exports;
873
- async function ot(t = null, e = void 0) {
878
+ const Ze = He.exports;
879
+ async function mt(t = null, e = void 0) {
874
880
  return await new Promise((r, s) => {
875
- var g;
881
+ var y;
876
882
  const i = "referencePickerModal", o = document.createElement("div");
877
883
  o.id = i, document.body.append(o);
878
- const l = t === null ? null : (g = se(t)) != null ? g : null, u = q.extend(je), a = new u({
884
+ const l = t === null ? null : (y = he(t)) != null ? y : null, u = G.extend(Ze), a = new u({
879
885
  propsData: {
880
886
  initialProvider: l,
881
887
  isInsideViewer: e
@@ -883,27 +889,27 @@ async function ot(t = null, e = void 0) {
883
889
  }).$mount(o);
884
890
  a.$on("cancel", () => {
885
891
  a.$destroy(), s(new Error("User cancellation"));
886
- }), a.$on("submit", ($) => {
887
- a.$destroy(), r($);
892
+ }), a.$on("submit", (N) => {
893
+ a.$destroy(), r(N);
888
894
  });
889
895
  });
890
896
  }
891
897
  export {
892
- G as N,
893
- Me as a,
894
- je as b,
895
- Ne as c,
896
- z as d,
897
- nt as e,
898
- Z as f,
899
- J as g,
898
+ re as N,
899
+ Fe as a,
900
+ Ze as b,
901
+ Te as c,
902
+ J as d,
903
+ pt as e,
904
+ ie as f,
905
+ ne as g,
900
906
  h,
901
- T as i,
902
- ot as j,
903
- b as k,
904
- se as l,
905
- R as m,
906
- ne as n,
907
- j as r,
908
- ie as s
907
+ H as i,
908
+ mt as j,
909
+ R as k,
910
+ he as l,
911
+ $ as m,
912
+ pe as n,
913
+ Z as r,
914
+ _e as s
909
915
  };