@nextcloud/vue 8.2.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 (265) hide show
  1. package/CHANGELOG.md +67 -2
  2. package/dist/Components/NcActionButton.cjs +4 -4
  3. package/dist/Components/NcActionButton.cjs.map +1 -1
  4. package/dist/Components/NcActionButton.mjs +9 -9
  5. package/dist/Components/NcActionButton.mjs.map +1 -1
  6. package/dist/Components/NcActionButtonGroup.cjs +13 -9
  7. package/dist/Components/NcActionButtonGroup.cjs.map +1 -1
  8. package/dist/Components/NcActionButtonGroup.mjs +16 -11
  9. package/dist/Components/NcActionButtonGroup.mjs.map +1 -1
  10. package/dist/Components/NcActionInput.cjs +9 -8
  11. package/dist/Components/NcActionInput.cjs.map +1 -1
  12. package/dist/Components/NcActionInput.mjs +11 -10
  13. package/dist/Components/NcActionInput.mjs.map +1 -1
  14. package/dist/Components/NcActionLink.cjs +1 -1
  15. package/dist/Components/NcActionLink.mjs +1 -1
  16. package/dist/Components/NcActionRouter.cjs +1 -1
  17. package/dist/Components/NcActionRouter.mjs +1 -1
  18. package/dist/Components/NcActionText.cjs +1 -1
  19. package/dist/Components/NcActionText.mjs +1 -1
  20. package/dist/Components/NcActionTextEditable.cjs +1 -1
  21. package/dist/Components/NcActionTextEditable.mjs +1 -1
  22. package/dist/Components/NcActions.cjs +40 -40
  23. package/dist/Components/NcActions.cjs.map +1 -1
  24. package/dist/Components/NcActions.mjs +37 -37
  25. package/dist/Components/NcActions.mjs.map +1 -1
  26. package/dist/Components/NcAppContent.cjs +15 -14
  27. package/dist/Components/NcAppContent.cjs.map +1 -1
  28. package/dist/Components/NcAppContent.mjs +35 -34
  29. package/dist/Components/NcAppContent.mjs.map +1 -1
  30. package/dist/Components/NcAppNavigation.cjs +14 -14
  31. package/dist/Components/NcAppNavigation.cjs.map +1 -1
  32. package/dist/Components/NcAppNavigation.mjs +20 -20
  33. package/dist/Components/NcAppNavigation.mjs.map +1 -1
  34. package/dist/Components/NcAppNavigationCaption.cjs +2 -2
  35. package/dist/Components/NcAppNavigationCaption.cjs.map +1 -1
  36. package/dist/Components/NcAppNavigationCaption.mjs +2 -2
  37. package/dist/Components/NcAppNavigationCaption.mjs.map +1 -1
  38. package/dist/Components/NcAppNavigationItem.cjs +28 -24
  39. package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
  40. package/dist/Components/NcAppNavigationItem.mjs +66 -63
  41. package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
  42. package/dist/Components/NcAppNavigationNewItem.cjs +2 -2
  43. package/dist/Components/NcAppNavigationNewItem.mjs +2 -2
  44. package/dist/Components/NcAppNavigationSettings.cjs +7 -8
  45. package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
  46. package/dist/Components/NcAppNavigationSettings.mjs +27 -29
  47. package/dist/Components/NcAppNavigationSettings.mjs.map +1 -1
  48. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  49. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  50. package/dist/Components/NcAppSettingsDialog.cjs +31 -30
  51. package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
  52. package/dist/Components/NcAppSettingsDialog.mjs +30 -29
  53. package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
  54. package/dist/Components/NcAppSidebar.cjs +88 -45
  55. package/dist/Components/NcAppSidebar.cjs.map +1 -1
  56. package/dist/Components/NcAppSidebar.mjs +158 -112
  57. package/dist/Components/NcAppSidebar.mjs.map +1 -1
  58. package/dist/Components/NcAvatar.cjs +1 -1
  59. package/dist/Components/NcAvatar.mjs +1 -1
  60. package/dist/Components/NcBreadcrumb.cjs +4 -3
  61. package/dist/Components/NcBreadcrumb.cjs.map +1 -1
  62. package/dist/Components/NcBreadcrumb.mjs +6 -5
  63. package/dist/Components/NcBreadcrumb.mjs.map +1 -1
  64. package/dist/Components/NcBreadcrumbs.cjs +26 -19
  65. package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
  66. package/dist/Components/NcBreadcrumbs.mjs +48 -41
  67. package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
  68. package/dist/Components/NcCheckboxRadioSwitch.cjs +48 -38
  69. package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
  70. package/dist/Components/NcCheckboxRadioSwitch.mjs +73 -63
  71. package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
  72. package/dist/Components/NcColorPicker.cjs +35 -12
  73. package/dist/Components/NcColorPicker.cjs.map +1 -1
  74. package/dist/Components/NcColorPicker.mjs +52 -29
  75. package/dist/Components/NcColorPicker.mjs.map +1 -1
  76. package/dist/Components/NcDashboardWidget.cjs +7 -6
  77. package/dist/Components/NcDashboardWidget.cjs.map +1 -1
  78. package/dist/Components/NcDashboardWidget.mjs +17 -16
  79. package/dist/Components/NcDashboardWidget.mjs.map +1 -1
  80. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  81. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  82. package/dist/Components/NcDateTime.cjs +15 -13
  83. package/dist/Components/NcDateTime.cjs.map +1 -1
  84. package/dist/Components/NcDateTime.mjs +12 -11
  85. package/dist/Components/NcDateTime.mjs.map +1 -1
  86. package/dist/Components/NcDateTimePicker.cjs +24 -23
  87. package/dist/Components/NcDateTimePicker.cjs.map +1 -1
  88. package/dist/Components/NcDateTimePicker.mjs +36 -36
  89. package/dist/Components/NcDateTimePicker.mjs.map +1 -1
  90. package/dist/Components/NcDateTimePickerNative.cjs +3 -3
  91. package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
  92. package/dist/Components/NcDateTimePickerNative.mjs +3 -3
  93. package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
  94. package/dist/Components/NcDialog.cjs +21 -20
  95. package/dist/Components/NcDialog.cjs.map +1 -1
  96. package/dist/Components/NcDialog.mjs +30 -28
  97. package/dist/Components/NcDialog.mjs.map +1 -1
  98. package/dist/Components/NcDialogButton.cjs +1 -1
  99. package/dist/Components/NcDialogButton.cjs.map +1 -1
  100. package/dist/Components/NcDialogButton.mjs +1 -1
  101. package/dist/Components/NcDialogButton.mjs.map +1 -1
  102. package/dist/Components/NcEmojiPicker.cjs +2 -1
  103. package/dist/Components/NcEmojiPicker.cjs.map +1 -1
  104. package/dist/Components/NcEmojiPicker.mjs +18 -17
  105. package/dist/Components/NcEmojiPicker.mjs.map +1 -1
  106. package/dist/Components/NcHeaderMenu.cjs +8 -8
  107. package/dist/Components/NcHeaderMenu.cjs.map +1 -1
  108. package/dist/Components/NcHeaderMenu.mjs +6 -6
  109. package/dist/Components/NcHeaderMenu.mjs.map +1 -1
  110. package/dist/Components/NcInputField.cjs +15 -4
  111. package/dist/Components/NcInputField.cjs.map +1 -1
  112. package/dist/Components/NcInputField.mjs +18 -7
  113. package/dist/Components/NcInputField.mjs.map +1 -1
  114. package/dist/Components/NcListItem.cjs +15 -10
  115. package/dist/Components/NcListItem.cjs.map +1 -1
  116. package/dist/Components/NcListItem.mjs +22 -17
  117. package/dist/Components/NcListItem.mjs.map +1 -1
  118. package/dist/Components/NcListItemIcon.cjs +1 -1
  119. package/dist/Components/NcListItemIcon.mjs +1 -1
  120. package/dist/Components/NcModal.cjs +50 -46
  121. package/dist/Components/NcModal.cjs.map +1 -1
  122. package/dist/Components/NcModal.mjs +66 -63
  123. package/dist/Components/NcModal.mjs.map +1 -1
  124. package/dist/Components/NcPasswordField.cjs +14 -12
  125. package/dist/Components/NcPasswordField.cjs.map +1 -1
  126. package/dist/Components/NcPasswordField.mjs +25 -23
  127. package/dist/Components/NcPasswordField.mjs.map +1 -1
  128. package/dist/Components/NcRelatedResourcesPanel.cjs +6 -4
  129. package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
  130. package/dist/Components/NcRelatedResourcesPanel.mjs +24 -22
  131. package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
  132. package/dist/Components/NcRichContenteditable.cjs +113 -82
  133. package/dist/Components/NcRichContenteditable.cjs.map +1 -1
  134. package/dist/Components/NcRichContenteditable.mjs +89 -55
  135. package/dist/Components/NcRichContenteditable.mjs.map +1 -1
  136. package/dist/Components/NcRichText.cjs +1 -1
  137. package/dist/Components/NcRichText.mjs +3 -3
  138. package/dist/Components/NcSelect.cjs +22 -21
  139. package/dist/Components/NcSelect.cjs.map +1 -1
  140. package/dist/Components/NcSelect.mjs +28 -28
  141. package/dist/Components/NcSelect.mjs.map +1 -1
  142. package/dist/Components/NcSelectTags.cjs +4 -2
  143. package/dist/Components/NcSelectTags.cjs.map +1 -1
  144. package/dist/Components/NcSelectTags.mjs +46 -44
  145. package/dist/Components/NcSelectTags.mjs.map +1 -1
  146. package/dist/Components/NcSettingsInputText.cjs +5 -4
  147. package/dist/Components/NcSettingsInputText.cjs.map +1 -1
  148. package/dist/Components/NcSettingsInputText.mjs +15 -14
  149. package/dist/Components/NcSettingsInputText.mjs.map +1 -1
  150. package/dist/Components/NcSettingsSection.cjs +8 -6
  151. package/dist/Components/NcSettingsSection.cjs.map +1 -1
  152. package/dist/Components/NcSettingsSection.mjs +18 -17
  153. package/dist/Components/NcSettingsSection.mjs.map +1 -1
  154. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  155. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  156. package/dist/Components/NcTextArea.cjs +5 -5
  157. package/dist/Components/NcTextArea.cjs.map +1 -1
  158. package/dist/Components/NcTextArea.mjs +4 -4
  159. package/dist/Components/NcTextArea.mjs.map +1 -1
  160. package/dist/Components/NcTextField.cjs +4 -2
  161. package/dist/Components/NcTextField.cjs.map +1 -1
  162. package/dist/Components/NcTextField.mjs +19 -17
  163. package/dist/Components/NcTextField.mjs.map +1 -1
  164. package/dist/Components/NcTimezonePicker.cjs +10 -8
  165. package/dist/Components/NcTimezonePicker.cjs.map +1 -1
  166. package/dist/Components/NcTimezonePicker.mjs +35 -33
  167. package/dist/Components/NcTimezonePicker.mjs.map +1 -1
  168. package/dist/Components/NcUserBubble.cjs +1 -1
  169. package/dist/Components/NcUserBubble.mjs +1 -1
  170. package/dist/Composables/useIsMobile.cjs +13 -8
  171. package/dist/Composables/useIsMobile.cjs.map +1 -1
  172. package/dist/Composables/useIsMobile.mjs +15 -10
  173. package/dist/Composables/useIsMobile.mjs.map +1 -1
  174. package/dist/Functions/usernameToColor.cjs +1 -1
  175. package/dist/Functions/usernameToColor.cjs.map +1 -1
  176. package/dist/Functions/usernameToColor.mjs +1 -1
  177. package/dist/Functions/usernameToColor.mjs.map +1 -1
  178. package/dist/assets/{NcAppNavigationToggle-9e170630.css → NcAppNavigationToggle-48c375e8.css} +4 -2
  179. package/dist/assets/{NcSettingsSelectGroup-6ddb63a6.css → NcSettingsSelectGroup-a29e2156.css} +2 -2
  180. package/dist/assets/{index-a9d1ad5c.css → index-13720a46.css} +24 -24
  181. package/dist/assets/{index-93bc89ef.css → index-1a317434.css} +9 -12
  182. package/dist/assets/{index-a0532427.css → index-2a1ec06b.css} +42 -36
  183. package/dist/assets/{index-3d1ccc15.css → index-2d5cf6b2.css} +45 -45
  184. package/dist/assets/index-3b654875.css +144 -0
  185. package/dist/assets/{index-4437e6bf.css → index-5784183b.css} +8 -8
  186. package/dist/assets/{index-e9fce208.css → index-7868494b.css} +16 -16
  187. package/dist/assets/{index-db846386.css → index-7f77b8ae.css} +49 -45
  188. package/dist/assets/{index-dc612aa3.css → index-86454928.css} +15 -12
  189. package/dist/assets/{index-2d4de2fc.css → index-8b327013.css} +11 -3
  190. package/dist/assets/{index-30ca9574.css → index-97305c1f.css} +27 -40
  191. package/dist/assets/{index-73ded07b.css → index-a3c23731.css} +63 -63
  192. package/dist/assets/{index-5c74e333.css → index-a7fc7815.css} +16 -16
  193. package/dist/assets/{index-51c1f2a9.css → index-a9999048.css} +13 -20
  194. package/dist/assets/{index-3764a447.css → index-aacb7cf8.css} +16 -16
  195. package/dist/assets/{index-d1c0876d.css → index-b0bba2fc.css} +11 -11
  196. package/dist/assets/{index-b991895f.css → index-c20f9f7e.css} +15 -15
  197. package/dist/assets/{index-f8d6daf3.css → index-d8bc189c.css} +38 -41
  198. package/dist/assets/{index-ffa6d11c.css → index-dab51681.css} +64 -31
  199. package/dist/assets/{index-4e03d941.css → index-f24e102f.css} +49 -48
  200. package/dist/assets/{index-4611417f.css → index-f5162bbd.css} +7 -7
  201. package/dist/assets/{index-34dfc54e.css → index-f78bd735.css} +13 -13
  202. package/dist/assets/{index-edee3304.css → index-fe84a063.css} +6 -7
  203. package/dist/chunks/GenColors-5c054042.mjs +137 -0
  204. package/dist/chunks/GenColors-5c054042.mjs.map +1 -0
  205. package/dist/chunks/GenColors-7495e6f6.cjs +136 -0
  206. package/dist/chunks/GenColors-7495e6f6.cjs.map +1 -0
  207. package/dist/chunks/{NcAppNavigationToggle-2574bba5.mjs → NcAppNavigationToggle-0bc638a8.mjs} +27 -31
  208. package/dist/chunks/{NcAppNavigationToggle-2574bba5.mjs.map → NcAppNavigationToggle-0bc638a8.mjs.map} +1 -1
  209. package/dist/chunks/{NcAppNavigationToggle-1301e882.cjs → NcAppNavigationToggle-6d192bea.cjs} +27 -30
  210. package/dist/chunks/{NcAppNavigationToggle-1301e882.cjs.map → NcAppNavigationToggle-6d192bea.cjs.map} +1 -1
  211. package/dist/chunks/{NcInputConfirmCancel-a612e6a3.mjs → NcInputConfirmCancel-a08c5cb4.mjs} +14 -13
  212. package/dist/chunks/{NcInputConfirmCancel-a612e6a3.mjs.map → NcInputConfirmCancel-a08c5cb4.mjs.map} +1 -1
  213. package/dist/chunks/{NcInputConfirmCancel-9906b563.cjs → NcInputConfirmCancel-b99898db.cjs} +8 -7
  214. package/dist/chunks/{NcInputConfirmCancel-9906b563.cjs.map → NcInputConfirmCancel-b99898db.cjs.map} +1 -1
  215. package/dist/chunks/{NcRichText-f5cfcd57.mjs → NcRichText-e4bf7767.mjs} +1 -1
  216. package/dist/chunks/{NcRichText-f5cfcd57.mjs.map → NcRichText-e4bf7767.mjs.map} +1 -1
  217. package/dist/chunks/{NcRichText-9f77a9c6.cjs → NcRichText-f729896c.cjs} +1 -1
  218. package/dist/chunks/{NcRichText-9f77a9c6.cjs.map → NcRichText-f729896c.cjs.map} +1 -1
  219. package/dist/chunks/{NcSettingsSelectGroup-0f71fef4.cjs → NcSettingsSelectGroup-b065ffc8.cjs} +18 -17
  220. package/dist/chunks/NcSettingsSelectGroup-b065ffc8.cjs.map +1 -0
  221. package/dist/chunks/{NcSettingsSelectGroup-091c0306.mjs → NcSettingsSelectGroup-ecc8bc5a.mjs} +19 -19
  222. package/dist/chunks/NcSettingsSelectGroup-ecc8bc5a.mjs.map +1 -0
  223. package/dist/chunks/{ScopeComponent-df4b58b1.cjs → ScopeComponent-06c558d3.cjs} +1 -1
  224. package/dist/chunks/{ScopeComponent-df4b58b1.cjs.map → ScopeComponent-06c558d3.cjs.map} +1 -1
  225. package/dist/chunks/{ScopeComponent-3ea00dcd.mjs → ScopeComponent-b039a43c.mjs} +1 -1
  226. package/dist/chunks/{ScopeComponent-3ea00dcd.mjs.map → ScopeComponent-b039a43c.mjs.map} +1 -1
  227. package/dist/chunks/_l10n-72c5e29e.cjs +62 -0
  228. package/dist/chunks/_l10n-72c5e29e.cjs.map +1 -0
  229. package/dist/chunks/_l10n-f5af5269.mjs +64 -0
  230. package/dist/chunks/_l10n-f5af5269.mjs.map +1 -0
  231. package/dist/chunks/{actionText-60ff01d1.mjs → actionText-123f26b0.mjs} +3 -3
  232. package/dist/chunks/{actionText-60ff01d1.mjs.map → actionText-123f26b0.mjs.map} +1 -1
  233. package/dist/chunks/{actionText-9582810f.cjs → actionText-e450809c.cjs} +5 -5
  234. package/dist/chunks/{actionText-9582810f.cjs.map → actionText-e450809c.cjs.map} +1 -1
  235. package/dist/chunks/{index-cea13a24.mjs → index-309426ff.mjs} +123 -77
  236. package/dist/chunks/index-309426ff.mjs.map +1 -0
  237. package/dist/chunks/{index-dc10fd2b.cjs → index-693e993c.cjs} +109 -64
  238. package/dist/chunks/index-693e993c.cjs.map +1 -0
  239. package/dist/chunks/{referencePickerModal-c2f33569.mjs → referencePickerModal-12935fb3.mjs} +175 -169
  240. package/dist/chunks/{referencePickerModal-c2f33569.mjs.map → referencePickerModal-12935fb3.mjs.map} +1 -1
  241. package/dist/chunks/{referencePickerModal-aa5d3f47.cjs → referencePickerModal-12fa2ad0.cjs} +36 -30
  242. package/dist/chunks/{referencePickerModal-aa5d3f47.cjs.map → referencePickerModal-12fa2ad0.cjs.map} +1 -1
  243. package/dist/index.cjs +93 -93
  244. package/dist/index.cjs.map +1 -1
  245. package/dist/index.mjs +96 -95
  246. package/dist/index.mjs.map +1 -1
  247. package/dist/utils/UserStatus.d.ts +26 -0
  248. package/package.json +10 -4
  249. package/dist/assets/index-2e5e3b55.css +0 -151
  250. package/dist/chunks/GenColors-02173e2c.mjs +0 -56
  251. package/dist/chunks/GenColors-02173e2c.mjs.map +0 -1
  252. package/dist/chunks/GenColors-4314c256.cjs +0 -55
  253. package/dist/chunks/GenColors-4314c256.cjs.map +0 -1
  254. package/dist/chunks/NcSettingsSelectGroup-091c0306.mjs.map +0 -1
  255. package/dist/chunks/NcSettingsSelectGroup-0f71fef4.cjs.map +0 -1
  256. package/dist/chunks/index-cea13a24.mjs.map +0 -1
  257. package/dist/chunks/index-dc10fd2b.cjs.map +0 -1
  258. package/dist/chunks/l10n-a12cdbfa.cjs +0 -8
  259. package/dist/chunks/l10n-a12cdbfa.cjs.map +0 -1
  260. package/dist/chunks/l10n-c603e589.mjs +0 -10
  261. package/dist/chunks/l10n-c603e589.mjs.map +0 -1
  262. package/dist/chunks/l10n-e9ffbe5e.cjs +0 -29
  263. package/dist/chunks/l10n-e9ffbe5e.cjs.map +0 -1
  264. package/dist/chunks/l10n-ef44019c.mjs +0 -31
  265. package/dist/chunks/l10n-ef44019c.mjs.map +0 -1
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
- const N = require("../chunks/l10n-e9ffbe5e.cjs"), t = require("../chunks/logger-4998b668.cjs"), e = require("@nextcloud/calendar-js"), Z = require("../chunks/GenRandomId-c214d235.cjs"), Y = require("./NcSelect.cjs"), M = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs");
2
+ const F = require("../chunks/_l10n-72c5e29e.cjs"), t = require("../chunks/logger-4998b668.cjs"), e = require("@nextcloud/calendar-js"), Z = require("../chunks/GenRandomId-c214d235.cjs"), Y = require("./NcSelect.cjs"), M = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs");
3
+ F.register(F.t22);
3
4
  /**
4
5
  * @copyright Copyright (c) 2019 Georg Ehrke
5
6
  *
@@ -25,25 +26,25 @@ function l(T = [], n = []) {
25
26
  const A = {}, r = [];
26
27
  for (const E of T) {
27
28
  const D = E.split("/");
28
- let [S, F] = [D.shift(), D.join("/")];
29
- F || (F = S, S = N.t("Global")), A[S] = A[S] || {
29
+ let [S, N] = [D.shift(), D.join("/")];
30
+ N || (N = S, S = F.t("Global")), A[S] = A[S] || {
30
31
  continent: S,
31
32
  regions: []
32
33
  }, A[S].regions.push({
33
- label: i(F),
34
+ label: i(N),
34
35
  cities: [],
35
36
  timezoneId: E
36
37
  });
37
38
  }
38
39
  for (const E of n) {
39
- const { continent: D, label: S, timezoneId: F } = E;
40
+ const { continent: D, label: S, timezoneId: N } = E;
40
41
  A[D] = A[D] || {
41
42
  continent: D,
42
43
  regions: []
43
44
  }, A[D].regions.push({
44
45
  label: S,
45
46
  cities: [],
46
- timezoneId: F
47
+ timezoneId: N
47
48
  });
48
49
  }
49
50
  for (const E in A)
@@ -7093,6 +7094,7 @@ function s() {
7093
7094
  Object.prototype.hasOwnProperty.call(R.aliases, [T]) && O.registerAlias(T, R.aliases[T].aliasTo);
7094
7095
  a = !0;
7095
7096
  }
7097
+ F.register(F.t34);
7096
7098
  const c = {
7097
7099
  name: "NcTimezonePicker",
7098
7100
  components: {
@@ -7124,7 +7126,7 @@ const c = {
7124
7126
  emits: ["input"],
7125
7127
  computed: {
7126
7128
  placeholder() {
7127
- return N.t("Type to search time zone");
7129
+ return F.t("Type to search time zone");
7128
7130
  },
7129
7131
  selectedTimezone() {
7130
7132
  for (const T of this.additionalTimezones)
@@ -7148,7 +7150,7 @@ const c = {
7148
7150
  }
7149
7151
  },
7150
7152
  methods: {
7151
- t: N.t,
7153
+ t: F.t,
7152
7154
  change(T) {
7153
7155
  T && this.$emit("input", T.timezoneId);
7154
7156
  },
@@ -1 +1 @@
1
- {"version":3,"file":"NcTimezonePicker.cjs","sources":["../../src/components/NcTimezonePicker/timezone.js","../../src/components/NcTimezonePicker/timezoneDataProviderService.js","../../src/components/NcTimezonePicker/NcTimezonePicker.vue"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { t } from '../../l10n.js'\n\n/**\n *\n * @param {string[]} timezoneList List of Olsen timezones\n * @param {Array} additionalTimezones List of additional timezones\n * @return {Array}\n */\nexport function getSortedTimezoneList(timezoneList = [], additionalTimezones = []) {\n\tconst sortedByContinent = {}\n\tconst sortedList = []\n\n\tfor (const timezoneId of timezoneList) {\n\t\tconst components = timezoneId.split('/')\n\t\tlet [continent, name] = [components.shift(), components.join('/')]\n\t\tif (!name) {\n\t\t\tname = continent\n\t\t\t// TRANSLATORS This refers to global timezones in the timezone picker\n\t\t\tcontinent = t('Global')\n\t\t}\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel: getReadableTimezoneName(name),\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const additionalTimezone of additionalTimezones) {\n\t\tconst { continent, label, timezoneId } = additionalTimezone\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel,\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const continent in sortedByContinent) {\n\t\tif (!Object.prototype.hasOwnProperty.call(sortedByContinent, continent)) {\n\t\t\tcontinue\n\t\t}\n\n\t\tsortedByContinent[continent].regions.sort((a, b) => {\n\t\t\tif (a.label < b.label) {\n\t\t\t\treturn -1\n\t\t\t}\n\n\t\t\treturn 1\n\t\t})\n\t\tsortedList.push(sortedByContinent[continent])\n\t}\n\n\t// Sort continents by name\n\tsortedList.sort((a, b) => {\n\t\tif (a.continent < b.continent) {\n\t\t\treturn -1\n\t\t}\n\n\t\treturn 1\n\t})\n\n\treturn sortedList\n}\n\n/**\n * Get human-readable name for timezoneId\n *\n * @param {string} timezoneId TimezoneId to turn human-readable\n * @return {string}\n */\nexport function getReadableTimezoneName(timezoneId) {\n\treturn timezoneId\n\t\t.split('_')\n\t\t.join(' ')\n\t\t.replace('St ', 'St. ')\n\t\t.split('/')\n\t\t.join(' - ')\n}\n","/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport tzData from '../../../resources/timezones/zones.json'\nimport logger from '../../utils/logger.js'\n\nimport { getTimezoneManager } from '@nextcloud/calendar-js'\n\nconst timezoneManager = getTimezoneManager()\nlet initialized = false\n\n/**\n * Gets the timezone-manager\n * initializes it if necessary\n *\n * @return {object}\n */\nexport default function() {\n\tif (!initialized) {\n\t\tinitialize()\n\t}\n\n\treturn timezoneManager\n}\n\n/**\n * Initializes the timezone-manager with all timezones shipped by the calendar app\n */\nfunction initialize() {\n\tlogger.debug(`Using version ${tzData.version} of the timezone database`)\n\n\tfor (const tzid in tzData.zones) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.zones, [tzid])) {\n\t\t\tconst ics = [\n\t\t\t\t'BEGIN:VTIMEZONE',\n\t\t\t\t'TZID:' + tzid,\n\t\t\t\t...tzData.zones[tzid].ics,\n\t\t\t\t'END:VTIMEZONE',\n\t\t\t].join('\\r\\n')\n\t\t\ttimezoneManager.registerTimezoneFromICS(tzid, ics)\n\t\t}\n\t}\n\n\tfor (const tzid in tzData.aliases) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.aliases, [tzid])) {\n\t\t\ttimezoneManager.registerAlias(tzid, tzData.aliases[tzid].aliasTo)\n\t\t}\n\t}\n\n\tinitialized = true\n}\n","<!--\n - @copyright Copyright (c) 2021 Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @author Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Example\n```vue\n<template>\n\t<span>\n\t\t<NcTimezonePicker v-model=\"tz\" />\n\t</span>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttz: 'Hawaiian Standard Time',\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcSelect :aria-label-combobox=\"t('Search for time zone')\"\n\t\t:clearable=\"false\"\n\t\t:filter-by=\"filterBy\"\n\t\t:multiple=\"false\"\n\t\t:options=\"options\"\n\t\t:placeholder=\"placeholder\"\n\t\t:selectable=\"isSelectable\"\n\t\t:uid=\"uid\"\n\t\t:value=\"selectedTimezone\"\n\t\tlabel=\"label\"\n\t\t@option:selected=\"change\" />\n</template>\n\n<script>\nimport {\n\tgetReadableTimezoneName,\n\tgetSortedTimezoneList,\n} from './timezone.js'\nimport getTimezoneManager from './timezoneDataProviderService.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport NcSelect from '../NcSelect/index.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcTimezonePicker',\n\tcomponents: {\n\t\tNcSelect,\n\t},\n\tprops: {\n\t\t/**\n\t\t * An array of additional timezones to include with the standard database. Useful if there is a custom timezone, e.g. read from user data\n\t\t */\n\t\tadditionalTimezones: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\t\t/**\n\t\t * The selected timezone. Use v-model for two-way binding. The default timezone is floating, which means a time independent of timezone. See https://icalendar.org/CalDAV-Access-RFC-4791/7-3-date-and-floating-time.html for details.\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: 'floating',\n\t\t},\n\t\t/**\n\t\t * ID of the inner vue-select element, can be used for labels like: `vs-${uid}__combobox`\n\t\t */\n\t\tuid: {\n\t\t\ttype: [String, Number],\n\t\t\tdefault: () => `tz-${GenRandomId(5)}`,\n\t\t},\n\t},\n\temits: ['input'],\n\tcomputed: {\n\t\tplaceholder() {\n\t\t\treturn t('Type to search time zone')\n\t\t},\n\t\tselectedTimezone() {\n\t\t\tfor (const additionalTimezone of this.additionalTimezones) {\n\t\t\t\tif (additionalTimezone.timezoneId === this.value) {\n\t\t\t\t\treturn additionalTimezone\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tlabel: getReadableTimezoneName(this.value),\n\t\t\t\ttimezoneId: this.value,\n\t\t\t}\n\t\t},\n\t\toptions() {\n\t\t\tconst timezoneManager = getTimezoneManager()\n\t\t\tconst timezoneList = getSortedTimezoneList(timezoneManager.listAllTimezones(), this.additionalTimezones)\n\t\t\t/**\n\t\t\t * Since NcSelect does not support groups,\n\t\t\t * we create an object with the grouped timezones and continent labels.\n\t\t\t */\n\t\t\tlet timezonesGrouped = []\n\t\t\tObject.values(timezoneList).forEach(group => {\n\t\t\t\t// Add an entry as group label\n\t\t\t\ttimezonesGrouped.push({\n\t\t\t\t\tlabel: group.continent,\n\t\t\t\t\ttimezoneId: `tz-group__${group.continent}`,\n\t\t\t\t\tregions: group.regions,\n\t\t\t\t})\n\t\t\t\ttimezonesGrouped = timezonesGrouped.concat(group.regions)\n\t\t\t})\n\t\t\treturn timezonesGrouped\n\t\t},\n\t},\n\tmethods: {\n\t\tt,\n\n\t\tchange(newValue) {\n\t\t\tif (!newValue) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Two-way binding of the value prop. Use v-model=\"selectedTimezone\" for two-way binding\n\t\t\t */\n\t\t\tthis.$emit('input', newValue.timezoneId)\n\t\t},\n\n\t\t/**\n\t\t * Returns whether this is a continent label,\n\t\t * or an actual timezone. Continent labels are not selectable.\n\t\t *\n\t\t * @param {string} option The option\n\t\t * @return {boolean}\n\t\t */\n\t\tisSelectable(option) {\n\t\t\treturn !option.timezoneId.startsWith('tz-group__')\n\t\t},\n\n\t\t/**\n\t\t * Function to filter the timezone list.\n\t\t * We search in the timezoneId, so both continent and region names can be matched.\n\t\t *\n\t\t * @param {object} option The timezone option\n\t\t * @param {string} label The label of the timezone\n\t\t * @param {string} search The search string\n\t\t * @return {boolean}\n\t\t */\n\t\tfilterBy(option, label, search) {\n\t\t\t// We split the search term in case one searches \"<continent> <region>\".\n\t\t\tconst terms = search.trim().split(' ')\n\n\t\t\t// For the continent labels, we have to check if one region matches every search term.\n\t\t\tif (option.timezoneId.startsWith('tz-group__')) {\n\t\t\t\treturn option.regions.some(region => {\n\t\t\t\t\treturn this.matchTimezoneId(region.timezoneId, terms)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// For a region, every search term must be found.\n\t\t\treturn this.matchTimezoneId(option.timezoneId, terms)\n\t\t},\n\n\t\tmatchTimezoneId(timezoneId, terms) {\n\t\t\treturn terms.every(term => timezoneId.toLowerCase().includes(term.toLowerCase()))\n\t\t},\n\t},\n}\n</script>\n"],"names":["getSortedTimezoneList","timezoneList","additionalTimezones","sortedByContinent","sortedList","timezoneId","components","continent","name","t","getReadableTimezoneName","additionalTimezone","label","a","b","timezoneManager","getTimezoneManager","initialized","initialize","logger","tzData","tzid","ics","_sfc_main","NcSelect","GenRandomId","timezonesGrouped","group","newValue","option","search","terms","region","term"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,SAASA,EAAsBC,IAAe,IAAIC,IAAsB,CAAA,GAAI;AAClF,QAAMC,IAAoB,CAAE,GACtBC,IAAa,CAAE;AAErB,aAAWC,KAAcJ,GAAc;AACtC,UAAMK,IAAaD,EAAW,MAAM,GAAG;AACvC,QAAI,CAACE,GAAWC,CAAI,IAAI,CAACF,EAAW,MAAK,GAAIA,EAAW,KAAK,GAAG,CAAC;AACjE,IAAKE,MACJA,IAAOD,GAEPA,IAAYE,EAAC,EAAC,QAAQ,IAGvBN,EAAkBI,CAAS,IAAIJ,EAAkBI,CAAS,KAAK;AAAA,MAC9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AAA;AAAA,UACA,OAAAC,EAAA;AAAA,UACA,YAAA,aAAAA,EAAA,SAAA;AAAA,UACA,SAAAA,EAAA;AAAA,QACA,CAAA,GACAD,IAAAA,EAAA,OAAAC,EAAA,OAAA;AAAA,MACA,CAAA,GACAD;AAAA,IACA;AAAA,EACA;AAAA,EACA,SAAA;AAAA,IACA,GAAAjB,EAAA;AAAA,IAEA,OAAAmB,GAAA;AACA,MAAAA,KAOA,KAAA,MAAA,SAAAA,EAAA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASA,aAAAC,GAAA;AACA,aAAA,CAAAA,EAAA,WAAA,WAAA,YAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAWA,SAAAA,GAAAjB,GAAAkB,GAAA;AAEA,YAAAC,IAAAD,EAAA,KAAA,EAAA,MAAA,GAAA;AAGA,aAAAD,EAAA,WAAA,WAAA,YAAA,IACAA,EAAA,QAAA,KAAA,CAAAG,MACA,KAAA,gBAAAA,EAAA,YAAAD,CAAA,CACA,IAIA,KAAA,gBAAAF,EAAA,YAAAE,CAAA;AAAA,IACA;AAAA,IAEA,gBAAA1B,GAAA0B,GAAA;AACA,aAAAA,EAAA,MAAA,CAAAE,MAAA5B,EAAA,YAAA,EAAA,SAAA4B,EAAA,YAAA,CAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NcTimezonePicker.cjs","sources":["../../src/components/NcTimezonePicker/timezone.js","../../src/components/NcTimezonePicker/timezoneDataProviderService.js","../../src/components/NcTimezonePicker/NcTimezonePicker.vue"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { t } from '../../l10n.js'\n\n/**\n *\n * @param {string[]} timezoneList List of Olsen timezones\n * @param {Array} additionalTimezones List of additional timezones\n * @return {Array}\n */\nexport function getSortedTimezoneList(timezoneList = [], additionalTimezones = []) {\n\tconst sortedByContinent = {}\n\tconst sortedList = []\n\n\tfor (const timezoneId of timezoneList) {\n\t\tconst components = timezoneId.split('/')\n\t\tlet [continent, name] = [components.shift(), components.join('/')]\n\t\tif (!name) {\n\t\t\tname = continent\n\t\t\t// TRANSLATORS This refers to global timezones in the timezone picker\n\t\t\tcontinent = t('Global')\n\t\t}\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel: getReadableTimezoneName(name),\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const additionalTimezone of additionalTimezones) {\n\t\tconst { continent, label, timezoneId } = additionalTimezone\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel,\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const continent in sortedByContinent) {\n\t\tif (!Object.prototype.hasOwnProperty.call(sortedByContinent, continent)) {\n\t\t\tcontinue\n\t\t}\n\n\t\tsortedByContinent[continent].regions.sort((a, b) => {\n\t\t\tif (a.label < b.label) {\n\t\t\t\treturn -1\n\t\t\t}\n\n\t\t\treturn 1\n\t\t})\n\t\tsortedList.push(sortedByContinent[continent])\n\t}\n\n\t// Sort continents by name\n\tsortedList.sort((a, b) => {\n\t\tif (a.continent < b.continent) {\n\t\t\treturn -1\n\t\t}\n\n\t\treturn 1\n\t})\n\n\treturn sortedList\n}\n\n/**\n * Get human-readable name for timezoneId\n *\n * @param {string} timezoneId TimezoneId to turn human-readable\n * @return {string}\n */\nexport function getReadableTimezoneName(timezoneId) {\n\treturn timezoneId\n\t\t.split('_')\n\t\t.join(' ')\n\t\t.replace('St ', 'St. ')\n\t\t.split('/')\n\t\t.join(' - ')\n}\n","/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport tzData from '../../../resources/timezones/zones.json'\nimport logger from '../../utils/logger.js'\n\nimport { getTimezoneManager } from '@nextcloud/calendar-js'\n\nconst timezoneManager = getTimezoneManager()\nlet initialized = false\n\n/**\n * Gets the timezone-manager\n * initializes it if necessary\n *\n * @return {object}\n */\nexport default function() {\n\tif (!initialized) {\n\t\tinitialize()\n\t}\n\n\treturn timezoneManager\n}\n\n/**\n * Initializes the timezone-manager with all timezones shipped by the calendar app\n */\nfunction initialize() {\n\tlogger.debug(`Using version ${tzData.version} of the timezone database`)\n\n\tfor (const tzid in tzData.zones) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.zones, [tzid])) {\n\t\t\tconst ics = [\n\t\t\t\t'BEGIN:VTIMEZONE',\n\t\t\t\t'TZID:' + tzid,\n\t\t\t\t...tzData.zones[tzid].ics,\n\t\t\t\t'END:VTIMEZONE',\n\t\t\t].join('\\r\\n')\n\t\t\ttimezoneManager.registerTimezoneFromICS(tzid, ics)\n\t\t}\n\t}\n\n\tfor (const tzid in tzData.aliases) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.aliases, [tzid])) {\n\t\t\ttimezoneManager.registerAlias(tzid, tzData.aliases[tzid].aliasTo)\n\t\t}\n\t}\n\n\tinitialized = true\n}\n","<!--\n - @copyright Copyright (c) 2021 Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @author Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Example\n```vue\n<template>\n\t<span>\n\t\t<NcTimezonePicker v-model=\"tz\" />\n\t</span>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttz: 'Hawaiian Standard Time',\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcSelect :aria-label-combobox=\"t('Search for time zone')\"\n\t\t:clearable=\"false\"\n\t\t:filter-by=\"filterBy\"\n\t\t:multiple=\"false\"\n\t\t:options=\"options\"\n\t\t:placeholder=\"placeholder\"\n\t\t:selectable=\"isSelectable\"\n\t\t:uid=\"uid\"\n\t\t:value=\"selectedTimezone\"\n\t\tlabel=\"label\"\n\t\t@option:selected=\"change\" />\n</template>\n\n<script>\nimport {\n\tgetReadableTimezoneName,\n\tgetSortedTimezoneList,\n} from './timezone.js'\nimport getTimezoneManager from './timezoneDataProviderService.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport NcSelect from '../NcSelect/index.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcTimezonePicker',\n\tcomponents: {\n\t\tNcSelect,\n\t},\n\tprops: {\n\t\t/**\n\t\t * An array of additional timezones to include with the standard database. Useful if there is a custom timezone, e.g. read from user data\n\t\t */\n\t\tadditionalTimezones: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\t\t/**\n\t\t * The selected timezone. Use v-model for two-way binding. The default timezone is floating, which means a time independent of timezone. See https://icalendar.org/CalDAV-Access-RFC-4791/7-3-date-and-floating-time.html for details.\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: 'floating',\n\t\t},\n\t\t/**\n\t\t * ID of the inner vue-select element, can be used for labels like: `vs-${uid}__combobox`\n\t\t */\n\t\tuid: {\n\t\t\ttype: [String, Number],\n\t\t\tdefault: () => `tz-${GenRandomId(5)}`,\n\t\t},\n\t},\n\temits: ['input'],\n\tcomputed: {\n\t\tplaceholder() {\n\t\t\treturn t('Type to search time zone')\n\t\t},\n\t\tselectedTimezone() {\n\t\t\tfor (const additionalTimezone of this.additionalTimezones) {\n\t\t\t\tif (additionalTimezone.timezoneId === this.value) {\n\t\t\t\t\treturn additionalTimezone\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tlabel: getReadableTimezoneName(this.value),\n\t\t\t\ttimezoneId: this.value,\n\t\t\t}\n\t\t},\n\t\toptions() {\n\t\t\tconst timezoneManager = getTimezoneManager()\n\t\t\tconst timezoneList = getSortedTimezoneList(timezoneManager.listAllTimezones(), this.additionalTimezones)\n\t\t\t/**\n\t\t\t * Since NcSelect does not support groups,\n\t\t\t * we create an object with the grouped timezones and continent labels.\n\t\t\t */\n\t\t\tlet timezonesGrouped = []\n\t\t\tObject.values(timezoneList).forEach(group => {\n\t\t\t\t// Add an entry as group label\n\t\t\t\ttimezonesGrouped.push({\n\t\t\t\t\tlabel: group.continent,\n\t\t\t\t\ttimezoneId: `tz-group__${group.continent}`,\n\t\t\t\t\tregions: group.regions,\n\t\t\t\t})\n\t\t\t\ttimezonesGrouped = timezonesGrouped.concat(group.regions)\n\t\t\t})\n\t\t\treturn timezonesGrouped\n\t\t},\n\t},\n\tmethods: {\n\t\tt,\n\n\t\tchange(newValue) {\n\t\t\tif (!newValue) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Two-way binding of the value prop. Use v-model=\"selectedTimezone\" for two-way binding\n\t\t\t */\n\t\t\tthis.$emit('input', newValue.timezoneId)\n\t\t},\n\n\t\t/**\n\t\t * Returns whether this is a continent label,\n\t\t * or an actual timezone. Continent labels are not selectable.\n\t\t *\n\t\t * @param {string} option The option\n\t\t * @return {boolean}\n\t\t */\n\t\tisSelectable(option) {\n\t\t\treturn !option.timezoneId.startsWith('tz-group__')\n\t\t},\n\n\t\t/**\n\t\t * Function to filter the timezone list.\n\t\t * We search in the timezoneId, so both continent and region names can be matched.\n\t\t *\n\t\t * @param {object} option The timezone option\n\t\t * @param {string} label The label of the timezone\n\t\t * @param {string} search The search string\n\t\t * @return {boolean}\n\t\t */\n\t\tfilterBy(option, label, search) {\n\t\t\t// We split the search term in case one searches \"<continent> <region>\".\n\t\t\tconst terms = search.trim().split(' ')\n\n\t\t\t// For the continent labels, we have to check if one region matches every search term.\n\t\t\tif (option.timezoneId.startsWith('tz-group__')) {\n\t\t\t\treturn option.regions.some(region => {\n\t\t\t\t\treturn this.matchTimezoneId(region.timezoneId, terms)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// For a region, every search term must be found.\n\t\t\treturn this.matchTimezoneId(option.timezoneId, terms)\n\t\t},\n\n\t\tmatchTimezoneId(timezoneId, terms) {\n\t\t\treturn terms.every(term => timezoneId.toLowerCase().includes(term.toLowerCase()))\n\t\t},\n\t},\n}\n</script>\n"],"names":["getSortedTimezoneList","timezoneList","additionalTimezones","sortedByContinent","sortedList","timezoneId","components","continent","name","t","getReadableTimezoneName","additionalTimezone","label","a","b","timezoneManager","getTimezoneManager","initialized","initialize","logger","tzData","tzid","ics","_sfc_main","NcSelect","GenRandomId","timezonesGrouped","group","newValue","option","search","terms","region","term"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,SAASA,EAAsBC,IAAe,IAAIC,IAAsB,CAAA,GAAI;AAClF,QAAMC,IAAoB,CAAE,GACtBC,IAAa,CAAE;AAErB,aAAWC,KAAcJ,GAAc;AACtC,UAAMK,IAAaD,EAAW,MAAM,GAAG;AACvC,QAAI,CAACE,GAAWC,CAAI,IAAI,CAACF,EAAW,MAAK,GAAIA,EAAW,KAAK,GAAG,CAAC;AACjE,IAAKE,MACJA,IAAOD,GAEPA,IAAYE,EAAC,EAAC,QAAQ,IAGvBN,EAAkBI,CAAS,IAAIJ,EAAkBI,CAAS,KAAK;AAAA,MAC9D,WAAAA;AAAA,MACA,SAAS,CAAE;AAAA,IACX,GAEDJ,EAAkBI,CAAS,EAAE,QAAQ,KAAK;AAAA,MACzC,OAAOG,EAAwBF,CAAI;AAAA,MACnC,QAAQ,CAAE;AAAA,MACV,YAAAH;AAAA,IACH,CAAG;AAAA,EACD;AAED,aAAWM,KAAsBT,GAAqB;AACrD,UAAM,EAAE,WAAAK,GAAW,OAAAK,GAAO,YAAAP,EAAY,IAAGM;AAEzC,IAAAR,EAAkBI,CAAS,IAAIJ,EAAkBI,CAAS,KAAK;AAAA,MAC9D,WAAAA;AAAA,MACA,SAAS,CAAE;AAAA,IACX,GAEDJ,EAAkBI,CAAS,EAAE,QAAQ,KAAK;AAAA,MACzC,OAAAK;AAAA,MACA,QAAQ,CAAE;AAAA,MACV,YAAAP;AAAA,IACH,CAAG;AAAA,EACD;AAED,aAA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AAEA,YAAAC,IAAAD,EAAA,KAAA,EAAA,MAAA,GAAA;AAGA,aAAAD,EAAA,WAAA,WAAA,YAAA,IACAA,EAAA,QAAA,KAAA,CAAAG,MACA,KAAA,gBAAAA,EAAA,YAAAD,CAAA,CACA,IAIA,KAAA,gBAAAF,EAAA,YAAAE,CAAA;AAAA,IACA;AAAA,IAEA,gBAAA1B,GAAA0B,GAAA;AACA,aAAAA,EAAA,MAAA,CAAAE,MAAA5B,EAAA,YAAA,EAAA,SAAA4B,EAAA,YAAA,CAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,10 @@
1
- import { t as N } from "../chunks/l10n-ef44019c.mjs";
2
- import { l as t } from "../chunks/logger-3612e664.mjs";
3
- import { getTimezoneManager as e } from "@nextcloud/calendar-js";
4
- import { G as Z } from "../chunks/GenRandomId-cb9ccebe.mjs";
5
- import Y from "./NcSelect.mjs";
6
- import { n as M } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
1
+ import { r as i, o as e, a as N, p as Z } from "../chunks/_l10n-f5af5269.mjs";
2
+ import { l as Y } from "../chunks/logger-3612e664.mjs";
3
+ import { getTimezoneManager as M } from "@nextcloud/calendar-js";
4
+ import { G as l } from "../chunks/GenRandomId-cb9ccebe.mjs";
5
+ import B from "./NcSelect.mjs";
6
+ import { n as u } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
7
+ i(e);
7
8
  /**
8
9
  * @copyright Copyright (c) 2019 Georg Ehrke
9
10
  *
@@ -25,7 +26,7 @@ import { n as M } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
25
26
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
26
27
  *
27
28
  */
28
- function l(T = [], n = []) {
29
+ function d(T = [], n = []) {
29
30
  const A = {}, r = [];
30
31
  for (const E of T) {
31
32
  const D = E.split("/");
@@ -34,7 +35,7 @@ function l(T = [], n = []) {
34
35
  continent: S,
35
36
  regions: []
36
37
  }, A[S].regions.push({
37
- label: i(F),
38
+ label: a(F),
38
39
  cities: [],
39
40
  timezoneId: E
40
41
  });
@@ -54,10 +55,10 @@ function l(T = [], n = []) {
54
55
  Object.prototype.hasOwnProperty.call(A, E) && (A[E].regions.sort((D, S) => D.label < S.label ? -1 : 1), r.push(A[E]));
55
56
  return r.sort((E, D) => E.continent < D.continent ? -1 : 1), r;
56
57
  }
57
- function i(T) {
58
+ function a(T) {
58
59
  return T.split("_").join(" ").replace("St ", "St. ").split("/").join(" - ");
59
60
  }
60
- const B = "2.2019c", u = {
61
+ const o = "2.2019c", s = {
61
62
  "AUS Central Standard Time": {
62
63
  aliasTo: "Australia/Darwin"
63
64
  },
@@ -460,7 +461,7 @@ const B = "2.2019c", u = {
460
461
  utc: {
461
462
  aliasTo: "UTC"
462
463
  }
463
- }, d = {
464
+ }, c = {
464
465
  "Africa/Abidjan": {
465
466
  ics: [
466
467
  `BEGIN:STANDARD\r
@@ -7050,9 +7051,9 @@ END:STANDARD`
7050
7051
  longitude: "-1761000"
7051
7052
  }
7052
7053
  }, R = {
7053
- version: B,
7054
- aliases: u,
7055
- zones: d
7054
+ version: o,
7055
+ aliases: s,
7056
+ zones: c
7056
7057
  };
7057
7058
  /**
7058
7059
  * @copyright Copyright (c) 2019 Georg Ehrke
@@ -7075,13 +7076,13 @@ END:STANDARD`
7075
7076
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
7076
7077
  *
7077
7078
  */
7078
- const O = e();
7079
- let a = !1;
7080
- function o() {
7081
- return a || s(), O;
7079
+ const O = M();
7080
+ let t = !1;
7081
+ function I() {
7082
+ return t || G(), O;
7082
7083
  }
7083
- function s() {
7084
- t.debug(`Using version ${R.version} of the timezone database`);
7084
+ function G() {
7085
+ Y.debug(`Using version ${R.version} of the timezone database`);
7085
7086
  for (const T in R.zones)
7086
7087
  if (Object.prototype.hasOwnProperty.call(R.zones, [T])) {
7087
7088
  const n = [
@@ -7095,12 +7096,13 @@ function s() {
7095
7096
  }
7096
7097
  for (const T in R.aliases)
7097
7098
  Object.prototype.hasOwnProperty.call(R.aliases, [T]) && O.registerAlias(T, R.aliases[T].aliasTo);
7098
- a = !0;
7099
+ t = !0;
7099
7100
  }
7100
- const c = {
7101
+ i(Z);
7102
+ const L = {
7101
7103
  name: "NcTimezonePicker",
7102
7104
  components: {
7103
- NcSelect: Y
7105
+ NcSelect: B
7104
7106
  },
7105
7107
  props: {
7106
7108
  /**
@@ -7122,7 +7124,7 @@ const c = {
7122
7124
  */
7123
7125
  uid: {
7124
7126
  type: [String, Number],
7125
- default: () => `tz-${Z(5)}`
7127
+ default: () => `tz-${l(5)}`
7126
7128
  }
7127
7129
  },
7128
7130
  emits: ["input"],
@@ -7135,12 +7137,12 @@ const c = {
7135
7137
  if (T.timezoneId === this.value)
7136
7138
  return T;
7137
7139
  return {
7138
- label: i(this.value),
7140
+ label: a(this.value),
7139
7141
  timezoneId: this.value
7140
7142
  };
7141
7143
  },
7142
7144
  options() {
7143
- const T = o(), n = l(T.listAllTimezones(), this.additionalTimezones);
7145
+ const T = I(), n = d(T.listAllTimezones(), this.additionalTimezones);
7144
7146
  let A = [];
7145
7147
  return Object.values(n).forEach((r) => {
7146
7148
  A.push({
@@ -7184,20 +7186,20 @@ const c = {
7184
7186
  }
7185
7187
  }
7186
7188
  };
7187
- var I = function() {
7189
+ var H = function() {
7188
7190
  var n = this, A = n._self._c;
7189
7191
  return A("NcSelect", { attrs: { "aria-label-combobox": n.t("Search for time zone"), clearable: !1, "filter-by": n.filterBy, multiple: !1, options: n.options, placeholder: n.placeholder, selectable: n.isSelectable, uid: n.uid, value: n.selectedTimezone, label: "label" }, on: { "option:selected": n.change } });
7190
- }, G = [], L = /* @__PURE__ */ M(
7191
- c,
7192
- I,
7193
- G,
7192
+ }, U = [], g = /* @__PURE__ */ u(
7193
+ L,
7194
+ H,
7195
+ U,
7194
7196
  !1,
7195
7197
  null,
7196
7198
  null,
7197
7199
  null,
7198
7200
  null
7199
7201
  );
7200
- const f = L.exports;
7202
+ const P = g.exports;
7201
7203
  export {
7202
- f as default
7204
+ P as default
7203
7205
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NcTimezonePicker.mjs","sources":["../../src/components/NcTimezonePicker/timezone.js","../../src/components/NcTimezonePicker/timezoneDataProviderService.js","../../src/components/NcTimezonePicker/NcTimezonePicker.vue"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { t } from '../../l10n.js'\n\n/**\n *\n * @param {string[]} timezoneList List of Olsen timezones\n * @param {Array} additionalTimezones List of additional timezones\n * @return {Array}\n */\nexport function getSortedTimezoneList(timezoneList = [], additionalTimezones = []) {\n\tconst sortedByContinent = {}\n\tconst sortedList = []\n\n\tfor (const timezoneId of timezoneList) {\n\t\tconst components = timezoneId.split('/')\n\t\tlet [continent, name] = [components.shift(), components.join('/')]\n\t\tif (!name) {\n\t\t\tname = continent\n\t\t\t// TRANSLATORS This refers to global timezones in the timezone picker\n\t\t\tcontinent = t('Global')\n\t\t}\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel: getReadableTimezoneName(name),\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const additionalTimezone of additionalTimezones) {\n\t\tconst { continent, label, timezoneId } = additionalTimezone\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel,\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const continent in sortedByContinent) {\n\t\tif (!Object.prototype.hasOwnProperty.call(sortedByContinent, continent)) {\n\t\t\tcontinue\n\t\t}\n\n\t\tsortedByContinent[continent].regions.sort((a, b) => {\n\t\t\tif (a.label < b.label) {\n\t\t\t\treturn -1\n\t\t\t}\n\n\t\t\treturn 1\n\t\t})\n\t\tsortedList.push(sortedByContinent[continent])\n\t}\n\n\t// Sort continents by name\n\tsortedList.sort((a, b) => {\n\t\tif (a.continent < b.continent) {\n\t\t\treturn -1\n\t\t}\n\n\t\treturn 1\n\t})\n\n\treturn sortedList\n}\n\n/**\n * Get human-readable name for timezoneId\n *\n * @param {string} timezoneId TimezoneId to turn human-readable\n * @return {string}\n */\nexport function getReadableTimezoneName(timezoneId) {\n\treturn timezoneId\n\t\t.split('_')\n\t\t.join(' ')\n\t\t.replace('St ', 'St. ')\n\t\t.split('/')\n\t\t.join(' - ')\n}\n","/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport tzData from '../../../resources/timezones/zones.json'\nimport logger from '../../utils/logger.js'\n\nimport { getTimezoneManager } from '@nextcloud/calendar-js'\n\nconst timezoneManager = getTimezoneManager()\nlet initialized = false\n\n/**\n * Gets the timezone-manager\n * initializes it if necessary\n *\n * @return {object}\n */\nexport default function() {\n\tif (!initialized) {\n\t\tinitialize()\n\t}\n\n\treturn timezoneManager\n}\n\n/**\n * Initializes the timezone-manager with all timezones shipped by the calendar app\n */\nfunction initialize() {\n\tlogger.debug(`Using version ${tzData.version} of the timezone database`)\n\n\tfor (const tzid in tzData.zones) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.zones, [tzid])) {\n\t\t\tconst ics = [\n\t\t\t\t'BEGIN:VTIMEZONE',\n\t\t\t\t'TZID:' + tzid,\n\t\t\t\t...tzData.zones[tzid].ics,\n\t\t\t\t'END:VTIMEZONE',\n\t\t\t].join('\\r\\n')\n\t\t\ttimezoneManager.registerTimezoneFromICS(tzid, ics)\n\t\t}\n\t}\n\n\tfor (const tzid in tzData.aliases) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.aliases, [tzid])) {\n\t\t\ttimezoneManager.registerAlias(tzid, tzData.aliases[tzid].aliasTo)\n\t\t}\n\t}\n\n\tinitialized = true\n}\n","<!--\n - @copyright Copyright (c) 2021 Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @author Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Example\n```vue\n<template>\n\t<span>\n\t\t<NcTimezonePicker v-model=\"tz\" />\n\t</span>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttz: 'Hawaiian Standard Time',\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcSelect :aria-label-combobox=\"t('Search for time zone')\"\n\t\t:clearable=\"false\"\n\t\t:filter-by=\"filterBy\"\n\t\t:multiple=\"false\"\n\t\t:options=\"options\"\n\t\t:placeholder=\"placeholder\"\n\t\t:selectable=\"isSelectable\"\n\t\t:uid=\"uid\"\n\t\t:value=\"selectedTimezone\"\n\t\tlabel=\"label\"\n\t\t@option:selected=\"change\" />\n</template>\n\n<script>\nimport {\n\tgetReadableTimezoneName,\n\tgetSortedTimezoneList,\n} from './timezone.js'\nimport getTimezoneManager from './timezoneDataProviderService.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport NcSelect from '../NcSelect/index.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcTimezonePicker',\n\tcomponents: {\n\t\tNcSelect,\n\t},\n\tprops: {\n\t\t/**\n\t\t * An array of additional timezones to include with the standard database. Useful if there is a custom timezone, e.g. read from user data\n\t\t */\n\t\tadditionalTimezones: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\t\t/**\n\t\t * The selected timezone. Use v-model for two-way binding. The default timezone is floating, which means a time independent of timezone. See https://icalendar.org/CalDAV-Access-RFC-4791/7-3-date-and-floating-time.html for details.\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: 'floating',\n\t\t},\n\t\t/**\n\t\t * ID of the inner vue-select element, can be used for labels like: `vs-${uid}__combobox`\n\t\t */\n\t\tuid: {\n\t\t\ttype: [String, Number],\n\t\t\tdefault: () => `tz-${GenRandomId(5)}`,\n\t\t},\n\t},\n\temits: ['input'],\n\tcomputed: {\n\t\tplaceholder() {\n\t\t\treturn t('Type to search time zone')\n\t\t},\n\t\tselectedTimezone() {\n\t\t\tfor (const additionalTimezone of this.additionalTimezones) {\n\t\t\t\tif (additionalTimezone.timezoneId === this.value) {\n\t\t\t\t\treturn additionalTimezone\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tlabel: getReadableTimezoneName(this.value),\n\t\t\t\ttimezoneId: this.value,\n\t\t\t}\n\t\t},\n\t\toptions() {\n\t\t\tconst timezoneManager = getTimezoneManager()\n\t\t\tconst timezoneList = getSortedTimezoneList(timezoneManager.listAllTimezones(), this.additionalTimezones)\n\t\t\t/**\n\t\t\t * Since NcSelect does not support groups,\n\t\t\t * we create an object with the grouped timezones and continent labels.\n\t\t\t */\n\t\t\tlet timezonesGrouped = []\n\t\t\tObject.values(timezoneList).forEach(group => {\n\t\t\t\t// Add an entry as group label\n\t\t\t\ttimezonesGrouped.push({\n\t\t\t\t\tlabel: group.continent,\n\t\t\t\t\ttimezoneId: `tz-group__${group.continent}`,\n\t\t\t\t\tregions: group.regions,\n\t\t\t\t})\n\t\t\t\ttimezonesGrouped = timezonesGrouped.concat(group.regions)\n\t\t\t})\n\t\t\treturn timezonesGrouped\n\t\t},\n\t},\n\tmethods: {\n\t\tt,\n\n\t\tchange(newValue) {\n\t\t\tif (!newValue) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Two-way binding of the value prop. Use v-model=\"selectedTimezone\" for two-way binding\n\t\t\t */\n\t\t\tthis.$emit('input', newValue.timezoneId)\n\t\t},\n\n\t\t/**\n\t\t * Returns whether this is a continent label,\n\t\t * or an actual timezone. Continent labels are not selectable.\n\t\t *\n\t\t * @param {string} option The option\n\t\t * @return {boolean}\n\t\t */\n\t\tisSelectable(option) {\n\t\t\treturn !option.timezoneId.startsWith('tz-group__')\n\t\t},\n\n\t\t/**\n\t\t * Function to filter the timezone list.\n\t\t * We search in the timezoneId, so both continent and region names can be matched.\n\t\t *\n\t\t * @param {object} option The timezone option\n\t\t * @param {string} label The label of the timezone\n\t\t * @param {string} search The search string\n\t\t * @return {boolean}\n\t\t */\n\t\tfilterBy(option, label, search) {\n\t\t\t// We split the search term in case one searches \"<continent> <region>\".\n\t\t\tconst terms = search.trim().split(' ')\n\n\t\t\t// For the continent labels, we have to check if one region matches every search term.\n\t\t\tif (option.timezoneId.startsWith('tz-group__')) {\n\t\t\t\treturn option.regions.some(region => {\n\t\t\t\t\treturn this.matchTimezoneId(region.timezoneId, terms)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// For a region, every search term must be found.\n\t\t\treturn this.matchTimezoneId(option.timezoneId, terms)\n\t\t},\n\n\t\tmatchTimezoneId(timezoneId, terms) {\n\t\t\treturn terms.every(term => timezoneId.toLowerCase().includes(term.toLowerCase()))\n\t\t},\n\t},\n}\n</script>\n"],"names":["getSortedTimezoneList","timezoneList","additionalTimezones","sortedByContinent","sortedList","timezoneId","components","continent","name","t","getReadableTimezoneName","additionalTimezone","label","a","b","timezoneManager","getTimezoneManager","initialized","initialize","logger","tzData","tzid","ics","_sfc_main","NcSelect","GenRandomId","timezonesGrouped","group","newValue","option","search","terms","region","term"],"mappings":";;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,SAASA,EAAsBC,IAAe,IAAIC,IAAsB,CAAA,GAAI;AAClF,QAAMC,IAAoB,CAAE,GACtBC,IAAa,CAAE;AAErB,aAAWC,KAAcJ,GAAc;AACtC,UAAMK,IAAaD,EAAW,MAAM,GAAG;AACvC,QAAI,CAACE,GAAWC,CAAI,IAAI,CAACF,EAAW,MAAK,GAAIA,EAAW,KAAK,GAAG,CAAC;AACjE,IAAKE,MACJA,IAAOD,GAEPA,IAAYE,EAAE,QAAQ,IAGvBN,EAAkBI,CAAS,IAAIJ,EAAkBI,CAAS,KAAK;AAAA,MAC9D,WAAAA;AAAA,MACA,SAAS,CAAE;AAAA,IACX,GAEDJ,EAAkBI,CAAS,EAAE,QAAQ,KAAK;AAAA,MACzC,OAAOG,EAAwBF,CAAI;AAAA,MACnC,QAAQ,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AA,IACA;AAAA,EACA;AAAA,EACA,SAAA;AAAA,IACA,GAAAjB;AAAA,IAEA,OAAAmB,GAAA;AACA,MAAAA,KAOA,KAAA,MAAA,SAAAA,EAAA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASA,aAAAC,GAAA;AACA,aAAA,CAAAA,EAAA,WAAA,WAAA,YAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAWA,SAAAA,GAAAjB,GAAAkB,GAAA;AAEA,YAAAC,IAAAD,EAAA,KAAA,EAAA,MAAA,GAAA;AAGA,aAAAD,EAAA,WAAA,WAAA,YAAA,IACAA,EAAA,QAAA,KAAA,CAAAG,MACA,KAAA,gBAAAA,EAAA,YAAAD,CAAA,CACA,IAIA,KAAA,gBAAAF,EAAA,YAAAE,CAAA;AAAA,IACA;AAAA,IAEA,gBAAA1B,GAAA0B,GAAA;AACA,aAAAA,EAAA,MAAA,CAAAE,MAAA5B,EAAA,YAAA,EAAA,SAAA4B,EAAA,YAAA,CAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NcTimezonePicker.mjs","sources":["../../src/components/NcTimezonePicker/timezone.js","../../src/components/NcTimezonePicker/timezoneDataProviderService.js","../../src/components/NcTimezonePicker/NcTimezonePicker.vue"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { t } from '../../l10n.js'\n\n/**\n *\n * @param {string[]} timezoneList List of Olsen timezones\n * @param {Array} additionalTimezones List of additional timezones\n * @return {Array}\n */\nexport function getSortedTimezoneList(timezoneList = [], additionalTimezones = []) {\n\tconst sortedByContinent = {}\n\tconst sortedList = []\n\n\tfor (const timezoneId of timezoneList) {\n\t\tconst components = timezoneId.split('/')\n\t\tlet [continent, name] = [components.shift(), components.join('/')]\n\t\tif (!name) {\n\t\t\tname = continent\n\t\t\t// TRANSLATORS This refers to global timezones in the timezone picker\n\t\t\tcontinent = t('Global')\n\t\t}\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel: getReadableTimezoneName(name),\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const additionalTimezone of additionalTimezones) {\n\t\tconst { continent, label, timezoneId } = additionalTimezone\n\n\t\tsortedByContinent[continent] = sortedByContinent[continent] || {\n\t\t\tcontinent,\n\t\t\tregions: [],\n\t\t}\n\n\t\tsortedByContinent[continent].regions.push({\n\t\t\tlabel,\n\t\t\tcities: [],\n\t\t\ttimezoneId,\n\t\t})\n\t}\n\n\tfor (const continent in sortedByContinent) {\n\t\tif (!Object.prototype.hasOwnProperty.call(sortedByContinent, continent)) {\n\t\t\tcontinue\n\t\t}\n\n\t\tsortedByContinent[continent].regions.sort((a, b) => {\n\t\t\tif (a.label < b.label) {\n\t\t\t\treturn -1\n\t\t\t}\n\n\t\t\treturn 1\n\t\t})\n\t\tsortedList.push(sortedByContinent[continent])\n\t}\n\n\t// Sort continents by name\n\tsortedList.sort((a, b) => {\n\t\tif (a.continent < b.continent) {\n\t\t\treturn -1\n\t\t}\n\n\t\treturn 1\n\t})\n\n\treturn sortedList\n}\n\n/**\n * Get human-readable name for timezoneId\n *\n * @param {string} timezoneId TimezoneId to turn human-readable\n * @return {string}\n */\nexport function getReadableTimezoneName(timezoneId) {\n\treturn timezoneId\n\t\t.split('_')\n\t\t.join(' ')\n\t\t.replace('St ', 'St. ')\n\t\t.split('/')\n\t\t.join(' - ')\n}\n","/**\n * @copyright Copyright (c) 2019 Georg Ehrke\n *\n * @author Georg Ehrke <oc.list@georgehrke.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport tzData from '../../../resources/timezones/zones.json'\nimport logger from '../../utils/logger.js'\n\nimport { getTimezoneManager } from '@nextcloud/calendar-js'\n\nconst timezoneManager = getTimezoneManager()\nlet initialized = false\n\n/**\n * Gets the timezone-manager\n * initializes it if necessary\n *\n * @return {object}\n */\nexport default function() {\n\tif (!initialized) {\n\t\tinitialize()\n\t}\n\n\treturn timezoneManager\n}\n\n/**\n * Initializes the timezone-manager with all timezones shipped by the calendar app\n */\nfunction initialize() {\n\tlogger.debug(`Using version ${tzData.version} of the timezone database`)\n\n\tfor (const tzid in tzData.zones) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.zones, [tzid])) {\n\t\t\tconst ics = [\n\t\t\t\t'BEGIN:VTIMEZONE',\n\t\t\t\t'TZID:' + tzid,\n\t\t\t\t...tzData.zones[tzid].ics,\n\t\t\t\t'END:VTIMEZONE',\n\t\t\t].join('\\r\\n')\n\t\t\ttimezoneManager.registerTimezoneFromICS(tzid, ics)\n\t\t}\n\t}\n\n\tfor (const tzid in tzData.aliases) {\n\t\tif (Object.prototype.hasOwnProperty.call(tzData.aliases, [tzid])) {\n\t\t\ttimezoneManager.registerAlias(tzid, tzData.aliases[tzid].aliasTo)\n\t\t}\n\t}\n\n\tinitialized = true\n}\n","<!--\n - @copyright Copyright (c) 2021 Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @author Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Example\n```vue\n<template>\n\t<span>\n\t\t<NcTimezonePicker v-model=\"tz\" />\n\t</span>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttz: 'Hawaiian Standard Time',\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcSelect :aria-label-combobox=\"t('Search for time zone')\"\n\t\t:clearable=\"false\"\n\t\t:filter-by=\"filterBy\"\n\t\t:multiple=\"false\"\n\t\t:options=\"options\"\n\t\t:placeholder=\"placeholder\"\n\t\t:selectable=\"isSelectable\"\n\t\t:uid=\"uid\"\n\t\t:value=\"selectedTimezone\"\n\t\tlabel=\"label\"\n\t\t@option:selected=\"change\" />\n</template>\n\n<script>\nimport {\n\tgetReadableTimezoneName,\n\tgetSortedTimezoneList,\n} from './timezone.js'\nimport getTimezoneManager from './timezoneDataProviderService.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport NcSelect from '../NcSelect/index.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcTimezonePicker',\n\tcomponents: {\n\t\tNcSelect,\n\t},\n\tprops: {\n\t\t/**\n\t\t * An array of additional timezones to include with the standard database. Useful if there is a custom timezone, e.g. read from user data\n\t\t */\n\t\tadditionalTimezones: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\t\t/**\n\t\t * The selected timezone. Use v-model for two-way binding. The default timezone is floating, which means a time independent of timezone. See https://icalendar.org/CalDAV-Access-RFC-4791/7-3-date-and-floating-time.html for details.\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: 'floating',\n\t\t},\n\t\t/**\n\t\t * ID of the inner vue-select element, can be used for labels like: `vs-${uid}__combobox`\n\t\t */\n\t\tuid: {\n\t\t\ttype: [String, Number],\n\t\t\tdefault: () => `tz-${GenRandomId(5)}`,\n\t\t},\n\t},\n\temits: ['input'],\n\tcomputed: {\n\t\tplaceholder() {\n\t\t\treturn t('Type to search time zone')\n\t\t},\n\t\tselectedTimezone() {\n\t\t\tfor (const additionalTimezone of this.additionalTimezones) {\n\t\t\t\tif (additionalTimezone.timezoneId === this.value) {\n\t\t\t\t\treturn additionalTimezone\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tlabel: getReadableTimezoneName(this.value),\n\t\t\t\ttimezoneId: this.value,\n\t\t\t}\n\t\t},\n\t\toptions() {\n\t\t\tconst timezoneManager = getTimezoneManager()\n\t\t\tconst timezoneList = getSortedTimezoneList(timezoneManager.listAllTimezones(), this.additionalTimezones)\n\t\t\t/**\n\t\t\t * Since NcSelect does not support groups,\n\t\t\t * we create an object with the grouped timezones and continent labels.\n\t\t\t */\n\t\t\tlet timezonesGrouped = []\n\t\t\tObject.values(timezoneList).forEach(group => {\n\t\t\t\t// Add an entry as group label\n\t\t\t\ttimezonesGrouped.push({\n\t\t\t\t\tlabel: group.continent,\n\t\t\t\t\ttimezoneId: `tz-group__${group.continent}`,\n\t\t\t\t\tregions: group.regions,\n\t\t\t\t})\n\t\t\t\ttimezonesGrouped = timezonesGrouped.concat(group.regions)\n\t\t\t})\n\t\t\treturn timezonesGrouped\n\t\t},\n\t},\n\tmethods: {\n\t\tt,\n\n\t\tchange(newValue) {\n\t\t\tif (!newValue) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Two-way binding of the value prop. Use v-model=\"selectedTimezone\" for two-way binding\n\t\t\t */\n\t\t\tthis.$emit('input', newValue.timezoneId)\n\t\t},\n\n\t\t/**\n\t\t * Returns whether this is a continent label,\n\t\t * or an actual timezone. Continent labels are not selectable.\n\t\t *\n\t\t * @param {string} option The option\n\t\t * @return {boolean}\n\t\t */\n\t\tisSelectable(option) {\n\t\t\treturn !option.timezoneId.startsWith('tz-group__')\n\t\t},\n\n\t\t/**\n\t\t * Function to filter the timezone list.\n\t\t * We search in the timezoneId, so both continent and region names can be matched.\n\t\t *\n\t\t * @param {object} option The timezone option\n\t\t * @param {string} label The label of the timezone\n\t\t * @param {string} search The search string\n\t\t * @return {boolean}\n\t\t */\n\t\tfilterBy(option, label, search) {\n\t\t\t// We split the search term in case one searches \"<continent> <region>\".\n\t\t\tconst terms = search.trim().split(' ')\n\n\t\t\t// For the continent labels, we have to check if one region matches every search term.\n\t\t\tif (option.timezoneId.startsWith('tz-group__')) {\n\t\t\t\treturn option.regions.some(region => {\n\t\t\t\t\treturn this.matchTimezoneId(region.timezoneId, terms)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// For a region, every search term must be found.\n\t\t\treturn this.matchTimezoneId(option.timezoneId, terms)\n\t\t},\n\n\t\tmatchTimezoneId(timezoneId, terms) {\n\t\t\treturn terms.every(term => timezoneId.toLowerCase().includes(term.toLowerCase()))\n\t\t},\n\t},\n}\n</script>\n"],"names":["getSortedTimezoneList","timezoneList","additionalTimezones","sortedByContinent","sortedList","timezoneId","components","continent","name","t","getReadableTimezoneName","additionalTimezone","label","a","b","timezoneManager","getTimezoneManager","initialized","initialize","logger","tzData","tzid","ics","_sfc_main","NcSelect","GenRandomId","timezonesGrouped","group","newValue","option","search","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AA,IAEA,gBAAA1B,GAAA0B,GAAA;AACA,aAAAA,EAAA,MAAA,CAAAE,MAAA5B,EAAA,YAAA,EAAA,SAAA4B,EAAA,YAAA,CAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  var y = require("../assets/index-c221fe05.css");
2
- const s = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), a = require("../chunks/index-dc10fd2b.cjs"), n = require("./NcPopover.cjs"), i = require("vue"), o = (t) => t && t.__esModule ? t : { default: t }, u = /* @__PURE__ */ o(i), l = {
2
+ const s = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), a = require("../chunks/index-693e993c.cjs"), n = require("./NcPopover.cjs"), i = require("vue"), o = (t) => t && t.__esModule ? t : { default: t }, u = /* @__PURE__ */ o(i), l = {
3
3
  name: "NcUserBubbleDiv"
4
4
  };
5
5
  var c = function() {
@@ -1,6 +1,6 @@
1
1
  import "../assets/index-c221fe05.css";
2
2
  import { n as s } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
3
- import { N as a } from "../chunks/index-cea13a24.mjs";
3
+ import { N as a } from "../chunks/index-309426ff.mjs";
4
4
  import n from "./NcPopover.mjs";
5
5
  import i from "vue";
6
6
  const o = {
@@ -22,14 +22,19 @@ const e = require("vue");
22
22
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
23
  *
24
24
  */
25
- const o = 1024, i = () => document.documentElement.clientWidth < o, t = e.ref(i());
25
+ const o = 1024, s = o / 2, t = (l) => document.documentElement.clientWidth < l, n = e.ref(t(o)), i = e.ref(t(s));
26
26
  window.addEventListener("resize", () => {
27
- t.value = i();
28
- });
29
- function n() {
30
- return e.readonly(t);
27
+ n.value = t(o), i.value = t(s);
28
+ }, { passive: !0 });
29
+ function r() {
30
+ return e.readonly(n);
31
31
  }
32
- const s = e.readonly(t);
32
+ function u() {
33
+ return e.readonly(i);
34
+ }
35
+ const a = e.readonly(n);
33
36
  exports.MOBILE_BREAKPOINT = o;
34
- exports.isMobileState = s;
35
- exports.useIsMobile = n;
37
+ exports.MOBILE_SMALL_BREAKPOINT = s;
38
+ exports.isMobileState = a;
39
+ exports.useIsMobile = r;
40
+ exports.useIsSmallMobile = u;
@@ -1 +1 @@
1
- {"version":3,"file":"useIsMobile.cjs","sources":["../../src/composables/useIsMobile/index.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2023 Grigorii K. Shartsev <me@shgk.me>\n *\n * @author Grigorii K. Shartsev <me@shgk.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { readonly, ref } from 'vue'\n\n/**\n * The minimal width of the viewport to be considered a desktop device\n */\nexport const MOBILE_BREAKPOINT = 1024\n\nconst checkIfIsMobile = () => document.documentElement.clientWidth < MOBILE_BREAKPOINT\n\nconst isMobile = ref(checkIfIsMobile())\n\nwindow.addEventListener('resize', () => {\n\tisMobile.value = checkIfIsMobile()\n})\n\n/**\n * Use global isMobile state, based on the viewport width\n *\n * @return {import('vue').DeepReadonly<import('vue').Ref<boolean>>}\n */\nexport function useIsMobile() {\n\treturn readonly(isMobile)\n}\n\n/**\n * @deprecated Is to be removed in v9.0.0 with Vue 3 migration.\n * Use `composables/useIsMobile` instead.\n * Defined and exported only for isMobile mixin.\n */\nexport const isMobileState = readonly(isMobile)\n"],"names":["MOBILE_BREAKPOINT","checkIfIsMobile","isMobile","ref","useIsMobile","readonly","isMobileState"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BY,MAACA,IAAoB,MAE3BC,IAAkB,MAAM,SAAS,gBAAgB,cAAcD,GAE/DE,IAAWC,EAAAA,IAAIF,GAAiB;AAEtC,OAAO,iBAAiB,UAAU,MAAM;AACvC,EAAAC,EAAS,QAAQD,EAAiB;AACnC,CAAC;AAOM,SAASG,IAAc;AAC7B,SAAOC,EAAAA,SAASH,CAAQ;AACzB;AAOY,MAACI,IAAgBD,EAAQ,SAACH,CAAQ;;;;"}
1
+ {"version":3,"file":"useIsMobile.cjs","sources":["../../src/composables/useIsMobile/index.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2023 Grigorii K. Shartsev <me@shgk.me>\n *\n * @author Grigorii K. Shartsev <me@shgk.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { readonly, ref } from 'vue'\n\n/** The minimal width of the viewport for a desktop screen */\nexport const MOBILE_BREAKPOINT = 1024\n/** The minimal width of the viewport for a small mobile screen, a half of the minimal desktop */\nexport const MOBILE_SMALL_BREAKPOINT = MOBILE_BREAKPOINT / 2\n\nconst isLessThanBreakpoint = (breakpoint) => document.documentElement.clientWidth < breakpoint\n\n// Store the state of the viewport size in a module-scope to reuse between module's users\nconst isMobile = ref(isLessThanBreakpoint(MOBILE_BREAKPOINT))\nconst isSmallMobile = ref(isLessThanBreakpoint(MOBILE_SMALL_BREAKPOINT))\n\nwindow.addEventListener('resize', () => {\n\tisMobile.value = isLessThanBreakpoint(MOBILE_BREAKPOINT)\n\tisSmallMobile.value = isLessThanBreakpoint(MOBILE_SMALL_BREAKPOINT)\n}, { passive: true })\n\n/**\n * Use global isMobile state\n *\n * @return {import('vue').DeepReadonly<import('vue').Ref<boolean>>} Reactive flag for MOBILE_BREAKPOINT\n */\nexport function useIsMobile() {\n\treturn readonly(isMobile)\n}\n\n/**\n * Use global isSmallMobile state\n *\n * @return {import('vue').DeepReadonly<import('vue').Ref<boolean>>} Reactive flag for MOBILE_SMALL_BREAKPOINT\n */\nexport function useIsSmallMobile() {\n\treturn readonly(isSmallMobile)\n}\n\n/**\n * @deprecated Is to be removed in v9.0.0 with Vue 3 migration.\n * Use `composables/useIsMobile` instead.\n * Defined and exported only for isMobile mixin.\n */\nexport const isMobileState = readonly(isMobile)\n"],"names":["MOBILE_BREAKPOINT","MOBILE_SMALL_BREAKPOINT","isLessThanBreakpoint","breakpoint","isMobile","ref","isSmallMobile","useIsMobile","readonly","useIsSmallMobile","isMobileState"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBY,MAACA,IAAoB,MAEpBC,IAA0BD,IAAoB,GAErDE,IAAuB,CAACC,MAAe,SAAS,gBAAgB,cAAcA,GAG9EC,IAAWC,EAAG,IAACH,EAAqBF,CAAiB,CAAC,GACtDM,IAAgBD,EAAG,IAACH,EAAqBD,CAAuB,CAAC;AAEvE,OAAO,iBAAiB,UAAU,MAAM;AACvC,EAAAG,EAAS,QAAQF,EAAqBF,CAAiB,GACvDM,EAAc,QAAQJ,EAAqBD,CAAuB;AACnE,GAAG,EAAE,SAAS,IAAM;AAOb,SAASM,IAAc;AAC7B,SAAOC,EAAAA,SAASJ,CAAQ;AACzB;AAOO,SAASK,IAAmB;AAClC,SAAOD,EAAAA,SAASF,CAAa;AAC9B;AAOY,MAACI,IAAgBF,EAAQ,SAACJ,CAAQ;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { ref as n, readonly as t } from "vue";
1
+ import { ref as s, readonly as t } from "vue";
2
2
  /**
3
3
  * @copyright Copyright (c) 2023 Grigorii K. Shartsev <me@shgk.me>
4
4
  *
@@ -20,16 +20,21 @@ import { ref as n, readonly as t } from "vue";
20
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
21
  *
22
22
  */
23
- const i = 1024, o = () => document.documentElement.clientWidth < i, e = n(o());
23
+ const n = 1024, i = n / 2, e = (r) => document.documentElement.clientWidth < r, o = s(e(n)), l = s(e(i));
24
24
  window.addEventListener("resize", () => {
25
- e.value = o();
26
- });
27
- function c() {
28
- return t(e);
25
+ o.value = e(n), l.value = e(i);
26
+ }, { passive: !0 });
27
+ function u() {
28
+ return t(o);
29
29
  }
30
- const r = t(e);
30
+ function a() {
31
+ return t(l);
32
+ }
33
+ const M = t(o);
31
34
  export {
32
- i as MOBILE_BREAKPOINT,
33
- r as isMobileState,
34
- c as useIsMobile
35
+ n as MOBILE_BREAKPOINT,
36
+ i as MOBILE_SMALL_BREAKPOINT,
37
+ M as isMobileState,
38
+ u as useIsMobile,
39
+ a as useIsSmallMobile
35
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useIsMobile.mjs","sources":["../../src/composables/useIsMobile/index.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2023 Grigorii K. Shartsev <me@shgk.me>\n *\n * @author Grigorii K. Shartsev <me@shgk.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { readonly, ref } from 'vue'\n\n/**\n * The minimal width of the viewport to be considered a desktop device\n */\nexport const MOBILE_BREAKPOINT = 1024\n\nconst checkIfIsMobile = () => document.documentElement.clientWidth < MOBILE_BREAKPOINT\n\nconst isMobile = ref(checkIfIsMobile())\n\nwindow.addEventListener('resize', () => {\n\tisMobile.value = checkIfIsMobile()\n})\n\n/**\n * Use global isMobile state, based on the viewport width\n *\n * @return {import('vue').DeepReadonly<import('vue').Ref<boolean>>}\n */\nexport function useIsMobile() {\n\treturn readonly(isMobile)\n}\n\n/**\n * @deprecated Is to be removed in v9.0.0 with Vue 3 migration.\n * Use `composables/useIsMobile` instead.\n * Defined and exported only for isMobile mixin.\n */\nexport const isMobileState = readonly(isMobile)\n"],"names":["MOBILE_BREAKPOINT","checkIfIsMobile","isMobile","ref","useIsMobile","readonly","isMobileState"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BY,MAACA,IAAoB,MAE3BC,IAAkB,MAAM,SAAS,gBAAgB,cAAcD,GAE/DE,IAAWC,EAAIF,GAAiB;AAEtC,OAAO,iBAAiB,UAAU,MAAM;AACvC,EAAAC,EAAS,QAAQD,EAAiB;AACnC,CAAC;AAOM,SAASG,IAAc;AAC7B,SAAOC,EAASH,CAAQ;AACzB;AAOY,MAACI,IAAgBD,EAASH,CAAQ;"}
1
+ {"version":3,"file":"useIsMobile.mjs","sources":["../../src/composables/useIsMobile/index.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2023 Grigorii K. Shartsev <me@shgk.me>\n *\n * @author Grigorii K. Shartsev <me@shgk.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { readonly, ref } from 'vue'\n\n/** The minimal width of the viewport for a desktop screen */\nexport const MOBILE_BREAKPOINT = 1024\n/** The minimal width of the viewport for a small mobile screen, a half of the minimal desktop */\nexport const MOBILE_SMALL_BREAKPOINT = MOBILE_BREAKPOINT / 2\n\nconst isLessThanBreakpoint = (breakpoint) => document.documentElement.clientWidth < breakpoint\n\n// Store the state of the viewport size in a module-scope to reuse between module's users\nconst isMobile = ref(isLessThanBreakpoint(MOBILE_BREAKPOINT))\nconst isSmallMobile = ref(isLessThanBreakpoint(MOBILE_SMALL_BREAKPOINT))\n\nwindow.addEventListener('resize', () => {\n\tisMobile.value = isLessThanBreakpoint(MOBILE_BREAKPOINT)\n\tisSmallMobile.value = isLessThanBreakpoint(MOBILE_SMALL_BREAKPOINT)\n}, { passive: true })\n\n/**\n * Use global isMobile state\n *\n * @return {import('vue').DeepReadonly<import('vue').Ref<boolean>>} Reactive flag for MOBILE_BREAKPOINT\n */\nexport function useIsMobile() {\n\treturn readonly(isMobile)\n}\n\n/**\n * Use global isSmallMobile state\n *\n * @return {import('vue').DeepReadonly<import('vue').Ref<boolean>>} Reactive flag for MOBILE_SMALL_BREAKPOINT\n */\nexport function useIsSmallMobile() {\n\treturn readonly(isSmallMobile)\n}\n\n/**\n * @deprecated Is to be removed in v9.0.0 with Vue 3 migration.\n * Use `composables/useIsMobile` instead.\n * Defined and exported only for isMobile mixin.\n */\nexport const isMobileState = readonly(isMobile)\n"],"names":["MOBILE_BREAKPOINT","MOBILE_SMALL_BREAKPOINT","isLessThanBreakpoint","breakpoint","isMobile","ref","isSmallMobile","useIsMobile","readonly","useIsSmallMobile","isMobileState"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBY,MAACA,IAAoB,MAEpBC,IAA0BD,IAAoB,GAErDE,IAAuB,CAACC,MAAe,SAAS,gBAAgB,cAAcA,GAG9EC,IAAWC,EAAIH,EAAqBF,CAAiB,CAAC,GACtDM,IAAgBD,EAAIH,EAAqBD,CAAuB,CAAC;AAEvE,OAAO,iBAAiB,UAAU,MAAM;AACvC,EAAAG,EAAS,QAAQF,EAAqBF,CAAiB,GACvDM,EAAc,QAAQJ,EAAqBD,CAAuB;AACnE,GAAG,EAAE,SAAS,IAAM;AAOb,SAASM,IAAc;AAC7B,SAAOC,EAASJ,CAAQ;AACzB;AAOO,SAASK,IAAmB;AAClC,SAAOD,EAASF,CAAa;AAC9B;AAOY,MAACI,IAAgBF,EAASJ,CAAQ;"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const f = require("../chunks/GenColors-4314c256.cjs"), i = require("md5"), p = (t) => t && t.__esModule ? t : { default: t }, d = /* @__PURE__ */ p(i);
2
+ const f = require("../chunks/GenColors-7495e6f6.cjs"), i = require("md5"), p = (t) => t && t.__esModule ? t : { default: t }, d = /* @__PURE__ */ p(i);
3
3
  /**
4
4
  * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"usernameToColor.cjs","sources":["../../src/functions/usernameToColor/usernameToColor.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport GenColors from '../../utils/GenColors.js'\n\nimport md5 from 'md5'\n\n/**\n * Originally taken from https://github.com/nextcloud/server/blob/master/core/js/placeholder.js\n *\n * @param {string} username Display name or user id to generate from\n * @return {object} the rgb colors as {r:255, g:255, b:255}\n */\nconst usernameToColor = function(username) {\n\t// Normalize hash\n\tlet hash = username.toLowerCase()\n\n\t// Already a md5 hash?\n\tif (hash.match(/^([0-9a-f]{4}-?){8}$/) === null) {\n\t\thash = md5(hash)\n\t}\n\n\thash = hash.replace(/[^0-9a-f]/g, '')\n\n\tconst steps = 6\n\tconst finalPalette = GenColors(steps)\n\n\t/**\n\t * Convert a string to an integer evenly\n\t *\n\t * @param {string} hash The hash to convert\n\t * @param {number} maximum Largest number allowed\n\t */\n\tfunction hashToInt(hash, maximum) {\n\t\tlet finalInt = 0\n\t\tconst result = []\n\n\t\t// Splitting evenly the string\n\t\tfor (let i = 0; i < hash.length; i++) {\n\t\t\t// chars in md5 goes up to f, hex:16\n\t\t\tresult.push(parseInt(hash.charAt(i), 16) % 16)\n\t\t}\n\n\t\t// Adds up all results\n\t\tfor (const j in result) {\n\t\t\tfinalInt += result[j]\n\t\t}\n\n\t\t// chars in md5 goes up to f, hex:16\n\t\t// make sure we're always using int in our operation\n\t\treturn parseInt(parseInt(finalInt, 10) % maximum, 10)\n\t}\n\treturn finalPalette[hashToInt(hash, steps * 3)]\n}\n\nexport default usernameToColor\n"],"names":["usernameToColor","username","hash","md5","steps","finalPalette","GenColors","hashToInt","maximum","finalInt","result","i","j"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BK,MAACA,IAAkB,SAASC,GAAU;AAE1C,MAAIC,IAAOD,EAAS,YAAa;AAGjC,EAAIC,EAAK,MAAM,sBAAsB,MAAM,SAC1CA,IAAOC,EAAG,QAACD,CAAI,IAGhBA,IAAOA,EAAK,QAAQ,cAAc,EAAE;AAEpC,QAAME,IAAQ,GACRC,IAAeC,EAAS,UAACF,CAAK;AAQpC,WAASG,EAAUL,GAAMM,GAAS;AACjC,QAAIC,IAAW;AACf,UAAMC,IAAS,CAAE;AAGjB,aAASC,IAAI,GAAGA,IAAIT,EAAK,QAAQS;AAEhC,MAAAD,EAAO,KAAK,SAASR,EAAK,OAAOS,CAAC,GAAG,EAAE,IAAI,EAAE;AAI9C,eAAWC,KAAKF;AACf,MAAAD,KAAYC,EAAOE,CAAC;AAKrB,WAAO,SAAS,SAASH,GAAU,EAAE,IAAID,GAAS,EAAE;AAAA,EACpD;AACD,SAAOH,EAAaE,EAAUL,GAAME,IAAQ,CAAC,CAAC;AAC/C;;"}
1
+ {"version":3,"file":"usernameToColor.cjs","sources":["../../src/functions/usernameToColor/usernameToColor.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { GenColors } from '../../utils/GenColors.js'\n\nimport md5 from 'md5'\n\n/**\n * Originally taken from https://github.com/nextcloud/server/blob/master/core/js/placeholder.js\n *\n * @param {string} username Display name or user id to generate from\n * @return {object} the rgb colors as {r:255, g:255, b:255}\n */\nconst usernameToColor = function(username) {\n\t// Normalize hash\n\tlet hash = username.toLowerCase()\n\n\t// Already a md5 hash?\n\tif (hash.match(/^([0-9a-f]{4}-?){8}$/) === null) {\n\t\thash = md5(hash)\n\t}\n\n\thash = hash.replace(/[^0-9a-f]/g, '')\n\n\tconst steps = 6\n\tconst finalPalette = GenColors(steps)\n\n\t/**\n\t * Convert a string to an integer evenly\n\t *\n\t * @param {string} hash The hash to convert\n\t * @param {number} maximum Largest number allowed\n\t */\n\tfunction hashToInt(hash, maximum) {\n\t\tlet finalInt = 0\n\t\tconst result = []\n\n\t\t// Splitting evenly the string\n\t\tfor (let i = 0; i < hash.length; i++) {\n\t\t\t// chars in md5 goes up to f, hex:16\n\t\t\tresult.push(parseInt(hash.charAt(i), 16) % 16)\n\t\t}\n\n\t\t// Adds up all results\n\t\tfor (const j in result) {\n\t\t\tfinalInt += result[j]\n\t\t}\n\n\t\t// chars in md5 goes up to f, hex:16\n\t\t// make sure we're always using int in our operation\n\t\treturn parseInt(parseInt(finalInt, 10) % maximum, 10)\n\t}\n\treturn finalPalette[hashToInt(hash, steps * 3)]\n}\n\nexport default usernameToColor\n"],"names":["usernameToColor","username","hash","md5","steps","finalPalette","GenColors","hashToInt","maximum","finalInt","result","i","j"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BK,MAACA,IAAkB,SAASC,GAAU;AAE1C,MAAIC,IAAOD,EAAS,YAAa;AAGjC,EAAIC,EAAK,MAAM,sBAAsB,MAAM,SAC1CA,IAAOC,EAAG,QAACD,CAAI,IAGhBA,IAAOA,EAAK,QAAQ,cAAc,EAAE;AAEpC,QAAME,IAAQ,GACRC,IAAeC,EAAS,UAACF,CAAK;AAQpC,WAASG,EAAUL,GAAMM,GAAS;AACjC,QAAIC,IAAW;AACf,UAAMC,IAAS,CAAE;AAGjB,aAASC,IAAI,GAAGA,IAAIT,EAAK,QAAQS;AAEhC,MAAAD,EAAO,KAAK,SAASR,EAAK,OAAOS,CAAC,GAAG,EAAE,IAAI,EAAE;AAI9C,eAAWC,KAAKF;AACf,MAAAD,KAAYC,EAAOE,CAAC;AAKrB,WAAO,SAAS,SAASH,GAAU,EAAE,IAAID,GAAS,EAAE;AAAA,EACpD;AACD,SAAOH,EAAaE,EAAUL,GAAME,IAAQ,CAAC,CAAC;AAC/C;;"}
@@ -1,4 +1,4 @@
1
- import { G as i } from "../chunks/GenColors-02173e2c.mjs";
1
+ import { G as i } from "../chunks/GenColors-5c054042.mjs";
2
2
  import p from "md5";
3
3
  /**
4
4
  * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
@@ -1 +1 @@
1
- {"version":3,"file":"usernameToColor.mjs","sources":["../../src/functions/usernameToColor/usernameToColor.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport GenColors from '../../utils/GenColors.js'\n\nimport md5 from 'md5'\n\n/**\n * Originally taken from https://github.com/nextcloud/server/blob/master/core/js/placeholder.js\n *\n * @param {string} username Display name or user id to generate from\n * @return {object} the rgb colors as {r:255, g:255, b:255}\n */\nconst usernameToColor = function(username) {\n\t// Normalize hash\n\tlet hash = username.toLowerCase()\n\n\t// Already a md5 hash?\n\tif (hash.match(/^([0-9a-f]{4}-?){8}$/) === null) {\n\t\thash = md5(hash)\n\t}\n\n\thash = hash.replace(/[^0-9a-f]/g, '')\n\n\tconst steps = 6\n\tconst finalPalette = GenColors(steps)\n\n\t/**\n\t * Convert a string to an integer evenly\n\t *\n\t * @param {string} hash The hash to convert\n\t * @param {number} maximum Largest number allowed\n\t */\n\tfunction hashToInt(hash, maximum) {\n\t\tlet finalInt = 0\n\t\tconst result = []\n\n\t\t// Splitting evenly the string\n\t\tfor (let i = 0; i < hash.length; i++) {\n\t\t\t// chars in md5 goes up to f, hex:16\n\t\t\tresult.push(parseInt(hash.charAt(i), 16) % 16)\n\t\t}\n\n\t\t// Adds up all results\n\t\tfor (const j in result) {\n\t\t\tfinalInt += result[j]\n\t\t}\n\n\t\t// chars in md5 goes up to f, hex:16\n\t\t// make sure we're always using int in our operation\n\t\treturn parseInt(parseInt(finalInt, 10) % maximum, 10)\n\t}\n\treturn finalPalette[hashToInt(hash, steps * 3)]\n}\n\nexport default usernameToColor\n"],"names":["usernameToColor","username","hash","md5","steps","finalPalette","GenColors","hashToInt","maximum","finalInt","result","i","j"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BK,MAACA,IAAkB,SAASC,GAAU;AAE1C,MAAIC,IAAOD,EAAS,YAAa;AAGjC,EAAIC,EAAK,MAAM,sBAAsB,MAAM,SAC1CA,IAAOC,EAAID,CAAI,IAGhBA,IAAOA,EAAK,QAAQ,cAAc,EAAE;AAEpC,QAAME,IAAQ,GACRC,IAAeC,EAAUF,CAAK;AAQpC,WAASG,EAAUL,GAAMM,GAAS;AACjC,QAAIC,IAAW;AACf,UAAMC,IAAS,CAAE;AAGjB,aAASC,IAAI,GAAGA,IAAIT,EAAK,QAAQS;AAEhC,MAAAD,EAAO,KAAK,SAASR,EAAK,OAAOS,CAAC,GAAG,EAAE,IAAI,EAAE;AAI9C,eAAWC,KAAKF;AACf,MAAAD,KAAYC,EAAOE,CAAC;AAKrB,WAAO,SAAS,SAASH,GAAU,EAAE,IAAID,GAAS,EAAE;AAAA,EACpD;AACD,SAAOH,EAAaE,EAAUL,GAAME,IAAQ,CAAC,CAAC;AAC/C;"}
1
+ {"version":3,"file":"usernameToColor.mjs","sources":["../../src/functions/usernameToColor/usernameToColor.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport { GenColors } from '../../utils/GenColors.js'\n\nimport md5 from 'md5'\n\n/**\n * Originally taken from https://github.com/nextcloud/server/blob/master/core/js/placeholder.js\n *\n * @param {string} username Display name or user id to generate from\n * @return {object} the rgb colors as {r:255, g:255, b:255}\n */\nconst usernameToColor = function(username) {\n\t// Normalize hash\n\tlet hash = username.toLowerCase()\n\n\t// Already a md5 hash?\n\tif (hash.match(/^([0-9a-f]{4}-?){8}$/) === null) {\n\t\thash = md5(hash)\n\t}\n\n\thash = hash.replace(/[^0-9a-f]/g, '')\n\n\tconst steps = 6\n\tconst finalPalette = GenColors(steps)\n\n\t/**\n\t * Convert a string to an integer evenly\n\t *\n\t * @param {string} hash The hash to convert\n\t * @param {number} maximum Largest number allowed\n\t */\n\tfunction hashToInt(hash, maximum) {\n\t\tlet finalInt = 0\n\t\tconst result = []\n\n\t\t// Splitting evenly the string\n\t\tfor (let i = 0; i < hash.length; i++) {\n\t\t\t// chars in md5 goes up to f, hex:16\n\t\t\tresult.push(parseInt(hash.charAt(i), 16) % 16)\n\t\t}\n\n\t\t// Adds up all results\n\t\tfor (const j in result) {\n\t\t\tfinalInt += result[j]\n\t\t}\n\n\t\t// chars in md5 goes up to f, hex:16\n\t\t// make sure we're always using int in our operation\n\t\treturn parseInt(parseInt(finalInt, 10) % maximum, 10)\n\t}\n\treturn finalPalette[hashToInt(hash, steps * 3)]\n}\n\nexport default usernameToColor\n"],"names":["usernameToColor","username","hash","md5","steps","finalPalette","GenColors","hashToInt","maximum","finalInt","result","i","j"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BK,MAACA,IAAkB,SAASC,GAAU;AAE1C,MAAIC,IAAOD,EAAS,YAAa;AAGjC,EAAIC,EAAK,MAAM,sBAAsB,MAAM,SAC1CA,IAAOC,EAAID,CAAI,IAGhBA,IAAOA,EAAK,QAAQ,cAAc,EAAE;AAEpC,QAAME,IAAQ,GACRC,IAAeC,EAAUF,CAAK;AAQpC,WAASG,EAAUL,GAAMM,GAAS;AACjC,QAAIC,IAAW;AACf,UAAMC,IAAS,CAAE;AAGjB,aAASC,IAAI,GAAGA,IAAIT,EAAK,QAAQS;AAEhC,MAAAD,EAAO,KAAK,SAASR,EAAK,OAAOS,CAAC,GAAG,EAAE,IAAI,EAAE;AAI9C,eAAWC,KAAKF;AACf,MAAAD,KAAYC,EAAOE,CAAC;AAKrB,WAAO,SAAS,SAASH,GAAU,EAAE,IAAID,GAAS,EAAE;AAAA,EACpD;AACD,SAAOH,EAAaE,EAAUL,GAAME,IAAQ,CAAC,CAAC;AAC/C;"}