@bynder/compact-view 5.2.2 → 5.2.4

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 (241) hide show
  1. package/AccessToken2.js +1 -1
  2. package/ActiveFilters.js +49 -50
  3. package/AddMedia.js +19 -18
  4. package/Advanced.js +13 -13
  5. package/App.js +60 -59
  6. package/Arrow.js +1 -1
  7. package/AssetFilter.js +38 -38
  8. package/AssetItem.js +10 -17
  9. package/AssetList.js +5 -5
  10. package/AssetTypeItem.js +21 -21
  11. package/AssetsView.js +13 -13
  12. package/Axios2.js +82 -76
  13. package/AxiosError.js +36 -35
  14. package/ButtonAction.js +1 -1
  15. package/CanceledError.js +15 -8
  16. package/Card.js +1 -1
  17. package/Chip.js +1 -1
  18. package/CollectionCard.js +22 -22
  19. package/CollectionItem.js +9 -9
  20. package/CollectionList.js +5 -5
  21. package/CollectionView.js +11 -11
  22. package/ColorPicker.js +1 -1
  23. package/ColorPickerSolid.js +3 -3
  24. package/ColorPickerWithOpacity.js +3 -3
  25. package/Component.js +158 -0
  26. package/Component2.js +4 -0
  27. package/ConfigContext.js +7 -8
  28. package/Container.js +1 -1
  29. package/ContextAction.js +1 -1
  30. package/ControlGroup.js +6 -6
  31. package/Dat.js +33 -32
  32. package/DatDropdownItem.js +1 -1
  33. package/DesignSystemProvider.js +7 -7
  34. package/DirectionSelect.js +11 -10
  35. package/DomainInput.js +19 -11
  36. package/Draggable.js +337 -0
  37. package/Draggable2.js +4 -0
  38. package/DraggableCore.js +312 -0
  39. package/DraggableCore2.js +4 -0
  40. package/Dropdown.js +37 -37
  41. package/Dropdown2.js +1 -1
  42. package/DropdownListItem.js +1 -1
  43. package/FieldSelect.js +19 -17
  44. package/FileSelector.js +38 -37
  45. package/FontPicker.js +1 -1
  46. package/Form.js +1 -1
  47. package/Header.js +5 -4
  48. package/HttpStatusCode.js +7 -1
  49. package/InfiniteScroll.js +1 -1
  50. package/InlineBanner.js +1 -1
  51. package/Input.js +1 -1
  52. package/InterceptorManager.js +2 -1
  53. package/Item.js +8 -8
  54. package/Item4.js +2 -2
  55. package/LeftArrow.js +1 -1
  56. package/ListItem2.js +1 -1
  57. package/ModalBase.js +15 -15
  58. package/NoResults.js +1 -1
  59. package/Option_new.js +36 -29
  60. package/ReactPropTypesSecret.js +10 -0
  61. package/RightArrow.js +1 -1
  62. package/SearchInput.js +1 -1
  63. package/SearchInput2.js +1 -1
  64. package/SelectionFooter.js +41 -31
  65. package/Shield.js +2 -2
  66. package/Smartfilters_new.js +107 -98
  67. package/StatefulAssetList.js +50 -50
  68. package/StoreInitializer.js +32 -16
  69. package/SwitchNLS.js +1 -1
  70. package/TagItem.js +15 -15
  71. package/Tags.js +1 -1
  72. package/Toolbar.js +23 -20
  73. package/Tooltip2.js +1 -1
  74. package/ViewSwitch.js +17 -15
  75. package/_commonjsHelpers.js +28 -3
  76. package/adapters.js +54 -42
  77. package/api/filterAssets.d.ts +1 -1
  78. package/api/getAssets.d.ts +1 -1
  79. package/api/getFilters.d.ts +1 -1
  80. package/api/rest/index.d.ts +1 -1
  81. package/api/rest/types.d.ts +1 -1
  82. package/api2.js +1 -1
  83. package/asset.type.js +1 -1
  84. package/axios.js +1 -1
  85. package/bodyScrollLock.esm.js +68 -0
  86. package/buildURL.js +13 -15
  87. package/checkGlobals.js +1 -1
  88. package/cjs.js +7 -0
  89. package/cjs2.js +15 -0
  90. package/cjs3.js +4 -0
  91. package/clsx.m.js +6 -0
  92. package/clsx.m2.js +15 -0
  93. package/combineMetaproperties.js +3 -1
  94. package/composeSignals.js +1 -1
  95. package/cookieStore.js +1 -1
  96. package/cookies.js +13 -11
  97. package/currentScopes.js +1 -1
  98. package/data.js +1 -1
  99. package/devUtils.js +1 -1
  100. package/dispatchRequest.js +5 -5
  101. package/domFns.js +151 -0
  102. package/domFns2.js +4 -0
  103. package/factoryWithThrowingShims.js +52 -0
  104. package/fetch2.js +156 -128
  105. package/filter/AssetFilterContext.d.ts +3 -3
  106. package/getPrefix.js +35 -0
  107. package/getPrefix2.js +4 -0
  108. package/goober.modern.js +75 -0
  109. package/handlers.js +1 -1
  110. package/iconBase.js +56 -0
  111. package/iconContext.js +12 -0
  112. package/iconsManifest.js +222 -0
  113. package/index-esm.js +1 -4
  114. package/index.browser.js +1 -1
  115. package/index.m.js +9 -0
  116. package/index.m2.js +17 -0
  117. package/index10.js +1 -1
  118. package/index11.js +181 -15
  119. package/index112.js +1 -1
  120. package/index12.js +313 -36
  121. package/index13.js +5 -2430
  122. package/index14.js +3 -557
  123. package/index15.js +15 -55
  124. package/index16.js +3 -2
  125. package/index17.js +3 -87
  126. package/index18.js +36 -7
  127. package/index19.js +3 -60
  128. package/index20.js +2429 -12
  129. package/index21.js +557 -10
  130. package/index22.js +1 -1
  131. package/index23.js +119 -6
  132. package/index24.js +39 -7
  133. package/index25.js +2 -5
  134. package/index26.js +86 -9
  135. package/index27.js +55 -8
  136. package/index28.js +6 -636
  137. package/index29.js +8692 -74
  138. package/index3.js +1684 -5
  139. package/index30.js +2 -5
  140. package/index31.js +4 -20
  141. package/index310.js +2 -0
  142. package/index32.js +11 -2
  143. package/index33.js +5083 -4
  144. package/index34.js +2 -18
  145. package/index35.js +59 -5
  146. package/index36.js +2 -2
  147. package/index37.js +13 -11
  148. package/index38.js +46 -10
  149. package/index39.js +6 -12
  150. package/index4.js +5 -1684
  151. package/index40.js +8 -11
  152. package/index41.js +26 -18
  153. package/index42.js +2 -64
  154. package/index43.js +63 -5
  155. package/index44.js +9 -55
  156. package/index45.js +7 -67
  157. package/index46.js +8 -31
  158. package/index47.js +5 -11
  159. package/index48.js +10 -121
  160. package/index49.js +9 -86
  161. package/index5.js +215 -23
  162. package/index50.js +636 -7
  163. package/index51.js +74 -11
  164. package/index52.js +4 -13
  165. package/index53.js +19 -13
  166. package/index54.js +4 -6
  167. package/index55.js +18 -7
  168. package/index56.js +5 -14
  169. package/index57.js +10 -28
  170. package/index58.js +10 -15
  171. package/index59.js +15 -0
  172. package/index6.js +250 -299
  173. package/index60.js +13 -0
  174. package/index61.js +21 -0
  175. package/index62.js +8 -0
  176. package/index63.js +57 -0
  177. package/index64.js +4 -0
  178. package/index65.js +69 -0
  179. package/index66.js +33 -0
  180. package/index67.js +13 -0
  181. package/index68.js +123 -0
  182. package/index69.js +88 -0
  183. package/index7.js +25 -2
  184. package/index70.js +10 -0
  185. package/index71.js +13 -0
  186. package/index72.js +13 -225
  187. package/index73.js +16 -0
  188. package/index74.js +9 -0
  189. package/index75.js +228 -0
  190. package/index76.js +9 -0
  191. package/index77.js +17 -0
  192. package/index78.js +31 -0
  193. package/index79.js +18 -0
  194. package/index8.js +1537 -1536
  195. package/index9.js +1 -1
  196. package/isAbsoluteURL.js +1 -1
  197. package/isURLSameOrigin.js +1 -1
  198. package/localization.js +15 -15
  199. package/log.js +14 -0
  200. package/log2.js +4 -0
  201. package/matchRequestUrl.js +1 -1
  202. package/mergeConfig.js +37 -32
  203. package/notify.js +2 -2
  204. package/package.json +1 -1
  205. package/positionFns.js +101 -0
  206. package/positionFns2.js +4 -0
  207. package/react-laag.esm.js +957 -0
  208. package/react.js +8 -8
  209. package/react2.js +9 -9
  210. package/resolveConfig.js +23 -23
  211. package/select/add-media/AddMedia.d.ts +3 -1
  212. package/select/current-selection/SelectedItems.d.ts +1 -1
  213. package/shims.js +29 -0
  214. package/shims2.js +4 -0
  215. package/store/StoreInitializer.d.ts +5 -1
  216. package/store/useAssetFilterStore.d.ts +55 -0
  217. package/store/useSelectionStore.d.ts +47 -0
  218. package/styled-components.browser.esm.js +2 -2
  219. package/throttle.js +1 -1
  220. package/toURLEncodedForm.js +11 -10
  221. package/tokenExpirationHelper.js +1 -1
  222. package/transformData.js +1 -1
  223. package/transitional.js +4 -3
  224. package/useAssetFilterStore.js +152 -0
  225. package/useDatStore.js +1 -1
  226. package/useEffectEvent.js +7 -7
  227. package/useFonts.js +1 -1
  228. package/useOrderingStore.js +1 -1
  229. package/useRouterStore.js +1 -1
  230. package/useSearchStore.js +1 -1
  231. package/useSelectionStore.js +131 -0
  232. package/useSimilaritySearchStore.js +1 -1
  233. package/useTranslate.js +1 -1
  234. package/utils/combineMetaproperties.d.ts +2 -0
  235. package/utils6.js +160 -118
  236. package/xhr.js +47 -46
  237. package/AssetFilterContext.js +0 -161
  238. package/Middleware.js +0 -49
  239. package/SelectionContext.js +0 -143
  240. package/middleware2.js +0 -177
  241. package/select/SelectionContext.d.ts +0 -30
package/index50.js CHANGED
@@ -1,10 +1,639 @@
1
- import s from "./index24.js";
2
- import f from "./index25.js";
3
- function i(a) {
4
- f(1, arguments);
5
- var e = 1, t = s(a), r = t.getUTCDay(), o = (r < e ? 7 : 0) + r - e;
6
- return t.setUTCDate(t.getUTCDate() - o), t.setUTCHours(0, 0, 0, 0), t;
1
+ import g from "./index57.js";
2
+ import w from "./index58.js";
3
+ import v from "./index59.js";
4
+ import b from "./index60.js";
5
+ import x from "./index61.js";
6
+ import o from "./index62.js";
7
+ import c from "./index63.js";
8
+ var s = {
9
+ midnight: "midnight",
10
+ noon: "noon",
11
+ morning: "morning",
12
+ afternoon: "afternoon",
13
+ evening: "evening",
14
+ night: "night"
15
+ }, E = {
16
+ // Era
17
+ G: function(n, e, t) {
18
+ var r = n.getUTCFullYear() > 0 ? 1 : 0;
19
+ switch (e) {
20
+ // AD, BC
21
+ case "G":
22
+ case "GG":
23
+ case "GGG":
24
+ return t.era(r, {
25
+ width: "abbreviated"
26
+ });
27
+ // A, B
28
+ case "GGGGG":
29
+ return t.era(r, {
30
+ width: "narrow"
31
+ });
32
+ // Anno Domini, Before Christ
33
+ case "GGGG":
34
+ default:
35
+ return t.era(r, {
36
+ width: "wide"
37
+ });
38
+ }
39
+ },
40
+ // Year
41
+ y: function(n, e, t) {
42
+ if (e === "yo") {
43
+ var r = n.getUTCFullYear(), a = r > 0 ? r : 1 - r;
44
+ return t.ordinalNumber(a, {
45
+ unit: "year"
46
+ });
47
+ }
48
+ return c.y(n, e);
49
+ },
50
+ // Local week-numbering year
51
+ Y: function(n, e, t, r) {
52
+ var a = x(n, r), u = a > 0 ? a : 1 - a;
53
+ if (e === "YY") {
54
+ var m = u % 100;
55
+ return o(m, 2);
56
+ }
57
+ return e === "Yo" ? t.ordinalNumber(u, {
58
+ unit: "year"
59
+ }) : o(u, e.length);
60
+ },
61
+ // ISO week-numbering year
62
+ R: function(n, e) {
63
+ var t = v(n);
64
+ return o(t, e.length);
65
+ },
66
+ // Extended year. This is a single number designating the year of this calendar system.
67
+ // The main difference between `y` and `u` localizers are B.C. years:
68
+ // | Year | `y` | `u` |
69
+ // |------|-----|-----|
70
+ // | AC 1 | 1 | 1 |
71
+ // | BC 1 | 1 | 0 |
72
+ // | BC 2 | 2 | -1 |
73
+ // Also `yy` always returns the last two digits of a year,
74
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
75
+ u: function(n, e) {
76
+ var t = n.getUTCFullYear();
77
+ return o(t, e.length);
78
+ },
79
+ // Quarter
80
+ Q: function(n, e, t) {
81
+ var r = Math.ceil((n.getUTCMonth() + 1) / 3);
82
+ switch (e) {
83
+ // 1, 2, 3, 4
84
+ case "Q":
85
+ return String(r);
86
+ // 01, 02, 03, 04
87
+ case "QQ":
88
+ return o(r, 2);
89
+ // 1st, 2nd, 3rd, 4th
90
+ case "Qo":
91
+ return t.ordinalNumber(r, {
92
+ unit: "quarter"
93
+ });
94
+ // Q1, Q2, Q3, Q4
95
+ case "QQQ":
96
+ return t.quarter(r, {
97
+ width: "abbreviated",
98
+ context: "formatting"
99
+ });
100
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
101
+ case "QQQQQ":
102
+ return t.quarter(r, {
103
+ width: "narrow",
104
+ context: "formatting"
105
+ });
106
+ // 1st quarter, 2nd quarter, ...
107
+ case "QQQQ":
108
+ default:
109
+ return t.quarter(r, {
110
+ width: "wide",
111
+ context: "formatting"
112
+ });
113
+ }
114
+ },
115
+ // Stand-alone quarter
116
+ q: function(n, e, t) {
117
+ var r = Math.ceil((n.getUTCMonth() + 1) / 3);
118
+ switch (e) {
119
+ // 1, 2, 3, 4
120
+ case "q":
121
+ return String(r);
122
+ // 01, 02, 03, 04
123
+ case "qq":
124
+ return o(r, 2);
125
+ // 1st, 2nd, 3rd, 4th
126
+ case "qo":
127
+ return t.ordinalNumber(r, {
128
+ unit: "quarter"
129
+ });
130
+ // Q1, Q2, Q3, Q4
131
+ case "qqq":
132
+ return t.quarter(r, {
133
+ width: "abbreviated",
134
+ context: "standalone"
135
+ });
136
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
137
+ case "qqqqq":
138
+ return t.quarter(r, {
139
+ width: "narrow",
140
+ context: "standalone"
141
+ });
142
+ // 1st quarter, 2nd quarter, ...
143
+ case "qqqq":
144
+ default:
145
+ return t.quarter(r, {
146
+ width: "wide",
147
+ context: "standalone"
148
+ });
149
+ }
150
+ },
151
+ // Month
152
+ M: function(n, e, t) {
153
+ var r = n.getUTCMonth();
154
+ switch (e) {
155
+ case "M":
156
+ case "MM":
157
+ return c.M(n, e);
158
+ // 1st, 2nd, ..., 12th
159
+ case "Mo":
160
+ return t.ordinalNumber(r + 1, {
161
+ unit: "month"
162
+ });
163
+ // Jan, Feb, ..., Dec
164
+ case "MMM":
165
+ return t.month(r, {
166
+ width: "abbreviated",
167
+ context: "formatting"
168
+ });
169
+ // J, F, ..., D
170
+ case "MMMMM":
171
+ return t.month(r, {
172
+ width: "narrow",
173
+ context: "formatting"
174
+ });
175
+ // January, February, ..., December
176
+ case "MMMM":
177
+ default:
178
+ return t.month(r, {
179
+ width: "wide",
180
+ context: "formatting"
181
+ });
182
+ }
183
+ },
184
+ // Stand-alone month
185
+ L: function(n, e, t) {
186
+ var r = n.getUTCMonth();
187
+ switch (e) {
188
+ // 1, 2, ..., 12
189
+ case "L":
190
+ return String(r + 1);
191
+ // 01, 02, ..., 12
192
+ case "LL":
193
+ return o(r + 1, 2);
194
+ // 1st, 2nd, ..., 12th
195
+ case "Lo":
196
+ return t.ordinalNumber(r + 1, {
197
+ unit: "month"
198
+ });
199
+ // Jan, Feb, ..., Dec
200
+ case "LLL":
201
+ return t.month(r, {
202
+ width: "abbreviated",
203
+ context: "standalone"
204
+ });
205
+ // J, F, ..., D
206
+ case "LLLLL":
207
+ return t.month(r, {
208
+ width: "narrow",
209
+ context: "standalone"
210
+ });
211
+ // January, February, ..., December
212
+ case "LLLL":
213
+ default:
214
+ return t.month(r, {
215
+ width: "wide",
216
+ context: "standalone"
217
+ });
218
+ }
219
+ },
220
+ // Local week of year
221
+ w: function(n, e, t, r) {
222
+ var a = b(n, r);
223
+ return e === "wo" ? t.ordinalNumber(a, {
224
+ unit: "week"
225
+ }) : o(a, e.length);
226
+ },
227
+ // ISO week of year
228
+ I: function(n, e, t) {
229
+ var r = w(n);
230
+ return e === "Io" ? t.ordinalNumber(r, {
231
+ unit: "week"
232
+ }) : o(r, e.length);
233
+ },
234
+ // Day of the month
235
+ d: function(n, e, t) {
236
+ return e === "do" ? t.ordinalNumber(n.getUTCDate(), {
237
+ unit: "date"
238
+ }) : c.d(n, e);
239
+ },
240
+ // Day of year
241
+ D: function(n, e, t) {
242
+ var r = g(n);
243
+ return e === "Do" ? t.ordinalNumber(r, {
244
+ unit: "dayOfYear"
245
+ }) : o(r, e.length);
246
+ },
247
+ // Day of week
248
+ E: function(n, e, t) {
249
+ var r = n.getUTCDay();
250
+ switch (e) {
251
+ // Tue
252
+ case "E":
253
+ case "EE":
254
+ case "EEE":
255
+ return t.day(r, {
256
+ width: "abbreviated",
257
+ context: "formatting"
258
+ });
259
+ // T
260
+ case "EEEEE":
261
+ return t.day(r, {
262
+ width: "narrow",
263
+ context: "formatting"
264
+ });
265
+ // Tu
266
+ case "EEEEEE":
267
+ return t.day(r, {
268
+ width: "short",
269
+ context: "formatting"
270
+ });
271
+ // Tuesday
272
+ case "EEEE":
273
+ default:
274
+ return t.day(r, {
275
+ width: "wide",
276
+ context: "formatting"
277
+ });
278
+ }
279
+ },
280
+ // Local day of week
281
+ e: function(n, e, t, r) {
282
+ var a = n.getUTCDay(), u = (a - r.weekStartsOn + 8) % 7 || 7;
283
+ switch (e) {
284
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
285
+ case "e":
286
+ return String(u);
287
+ // Padded numerical value
288
+ case "ee":
289
+ return o(u, 2);
290
+ // 1st, 2nd, ..., 7th
291
+ case "eo":
292
+ return t.ordinalNumber(u, {
293
+ unit: "day"
294
+ });
295
+ case "eee":
296
+ return t.day(a, {
297
+ width: "abbreviated",
298
+ context: "formatting"
299
+ });
300
+ // T
301
+ case "eeeee":
302
+ return t.day(a, {
303
+ width: "narrow",
304
+ context: "formatting"
305
+ });
306
+ // Tu
307
+ case "eeeeee":
308
+ return t.day(a, {
309
+ width: "short",
310
+ context: "formatting"
311
+ });
312
+ // Tuesday
313
+ case "eeee":
314
+ default:
315
+ return t.day(a, {
316
+ width: "wide",
317
+ context: "formatting"
318
+ });
319
+ }
320
+ },
321
+ // Stand-alone local day of week
322
+ c: function(n, e, t, r) {
323
+ var a = n.getUTCDay(), u = (a - r.weekStartsOn + 8) % 7 || 7;
324
+ switch (e) {
325
+ // Numerical value (same as in `e`)
326
+ case "c":
327
+ return String(u);
328
+ // Padded numerical value
329
+ case "cc":
330
+ return o(u, e.length);
331
+ // 1st, 2nd, ..., 7th
332
+ case "co":
333
+ return t.ordinalNumber(u, {
334
+ unit: "day"
335
+ });
336
+ case "ccc":
337
+ return t.day(a, {
338
+ width: "abbreviated",
339
+ context: "standalone"
340
+ });
341
+ // T
342
+ case "ccccc":
343
+ return t.day(a, {
344
+ width: "narrow",
345
+ context: "standalone"
346
+ });
347
+ // Tu
348
+ case "cccccc":
349
+ return t.day(a, {
350
+ width: "short",
351
+ context: "standalone"
352
+ });
353
+ // Tuesday
354
+ case "cccc":
355
+ default:
356
+ return t.day(a, {
357
+ width: "wide",
358
+ context: "standalone"
359
+ });
360
+ }
361
+ },
362
+ // ISO day of week
363
+ i: function(n, e, t) {
364
+ var r = n.getUTCDay(), a = r === 0 ? 7 : r;
365
+ switch (e) {
366
+ // 2
367
+ case "i":
368
+ return String(a);
369
+ // 02
370
+ case "ii":
371
+ return o(a, e.length);
372
+ // 2nd
373
+ case "io":
374
+ return t.ordinalNumber(a, {
375
+ unit: "day"
376
+ });
377
+ // Tue
378
+ case "iii":
379
+ return t.day(r, {
380
+ width: "abbreviated",
381
+ context: "formatting"
382
+ });
383
+ // T
384
+ case "iiiii":
385
+ return t.day(r, {
386
+ width: "narrow",
387
+ context: "formatting"
388
+ });
389
+ // Tu
390
+ case "iiiiii":
391
+ return t.day(r, {
392
+ width: "short",
393
+ context: "formatting"
394
+ });
395
+ // Tuesday
396
+ case "iiii":
397
+ default:
398
+ return t.day(r, {
399
+ width: "wide",
400
+ context: "formatting"
401
+ });
402
+ }
403
+ },
404
+ // AM or PM
405
+ a: function(n, e, t) {
406
+ var r = n.getUTCHours(), a = r / 12 >= 1 ? "pm" : "am";
407
+ switch (e) {
408
+ case "a":
409
+ case "aa":
410
+ return t.dayPeriod(a, {
411
+ width: "abbreviated",
412
+ context: "formatting"
413
+ });
414
+ case "aaa":
415
+ return t.dayPeriod(a, {
416
+ width: "abbreviated",
417
+ context: "formatting"
418
+ }).toLowerCase();
419
+ case "aaaaa":
420
+ return t.dayPeriod(a, {
421
+ width: "narrow",
422
+ context: "formatting"
423
+ });
424
+ case "aaaa":
425
+ default:
426
+ return t.dayPeriod(a, {
427
+ width: "wide",
428
+ context: "formatting"
429
+ });
430
+ }
431
+ },
432
+ // AM, PM, midnight, noon
433
+ b: function(n, e, t) {
434
+ var r = n.getUTCHours(), a;
435
+ switch (r === 12 ? a = s.noon : r === 0 ? a = s.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
436
+ case "b":
437
+ case "bb":
438
+ return t.dayPeriod(a, {
439
+ width: "abbreviated",
440
+ context: "formatting"
441
+ });
442
+ case "bbb":
443
+ return t.dayPeriod(a, {
444
+ width: "abbreviated",
445
+ context: "formatting"
446
+ }).toLowerCase();
447
+ case "bbbbb":
448
+ return t.dayPeriod(a, {
449
+ width: "narrow",
450
+ context: "formatting"
451
+ });
452
+ case "bbbb":
453
+ default:
454
+ return t.dayPeriod(a, {
455
+ width: "wide",
456
+ context: "formatting"
457
+ });
458
+ }
459
+ },
460
+ // in the morning, in the afternoon, in the evening, at night
461
+ B: function(n, e, t) {
462
+ var r = n.getUTCHours(), a;
463
+ switch (r >= 17 ? a = s.evening : r >= 12 ? a = s.afternoon : r >= 4 ? a = s.morning : a = s.night, e) {
464
+ case "B":
465
+ case "BB":
466
+ case "BBB":
467
+ return t.dayPeriod(a, {
468
+ width: "abbreviated",
469
+ context: "formatting"
470
+ });
471
+ case "BBBBB":
472
+ return t.dayPeriod(a, {
473
+ width: "narrow",
474
+ context: "formatting"
475
+ });
476
+ case "BBBB":
477
+ default:
478
+ return t.dayPeriod(a, {
479
+ width: "wide",
480
+ context: "formatting"
481
+ });
482
+ }
483
+ },
484
+ // Hour [1-12]
485
+ h: function(n, e, t) {
486
+ if (e === "ho") {
487
+ var r = n.getUTCHours() % 12;
488
+ return r === 0 && (r = 12), t.ordinalNumber(r, {
489
+ unit: "hour"
490
+ });
491
+ }
492
+ return c.h(n, e);
493
+ },
494
+ // Hour [0-23]
495
+ H: function(n, e, t) {
496
+ return e === "Ho" ? t.ordinalNumber(n.getUTCHours(), {
497
+ unit: "hour"
498
+ }) : c.H(n, e);
499
+ },
500
+ // Hour [0-11]
501
+ K: function(n, e, t) {
502
+ var r = n.getUTCHours() % 12;
503
+ return e === "Ko" ? t.ordinalNumber(r, {
504
+ unit: "hour"
505
+ }) : o(r, e.length);
506
+ },
507
+ // Hour [1-24]
508
+ k: function(n, e, t) {
509
+ var r = n.getUTCHours();
510
+ return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, {
511
+ unit: "hour"
512
+ }) : o(r, e.length);
513
+ },
514
+ // Minute
515
+ m: function(n, e, t) {
516
+ return e === "mo" ? t.ordinalNumber(n.getUTCMinutes(), {
517
+ unit: "minute"
518
+ }) : c.m(n, e);
519
+ },
520
+ // Second
521
+ s: function(n, e, t) {
522
+ return e === "so" ? t.ordinalNumber(n.getUTCSeconds(), {
523
+ unit: "second"
524
+ }) : c.s(n, e);
525
+ },
526
+ // Fraction of second
527
+ S: function(n, e) {
528
+ return c.S(n, e);
529
+ },
530
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
531
+ X: function(n, e, t, r) {
532
+ var a = r._originalDate || n, u = a.getTimezoneOffset();
533
+ if (u === 0)
534
+ return "Z";
535
+ switch (e) {
536
+ // Hours and optional minutes
537
+ case "X":
538
+ return h(u);
539
+ // Hours, minutes and optional seconds without `:` delimiter
540
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
541
+ // so this token always has the same output as `XX`
542
+ case "XXXX":
543
+ case "XX":
544
+ return d(u);
545
+ // Hours, minutes and optional seconds with `:` delimiter
546
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
547
+ // so this token always has the same output as `XXX`
548
+ case "XXXXX":
549
+ case "XXX":
550
+ // Hours and minutes with `:` delimiter
551
+ default:
552
+ return d(u, ":");
553
+ }
554
+ },
555
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
556
+ x: function(n, e, t, r) {
557
+ var a = r._originalDate || n, u = a.getTimezoneOffset();
558
+ switch (e) {
559
+ // Hours and optional minutes
560
+ case "x":
561
+ return h(u);
562
+ // Hours, minutes and optional seconds without `:` delimiter
563
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
564
+ // so this token always has the same output as `xx`
565
+ case "xxxx":
566
+ case "xx":
567
+ return d(u);
568
+ // Hours, minutes and optional seconds with `:` delimiter
569
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
570
+ // so this token always has the same output as `xxx`
571
+ case "xxxxx":
572
+ case "xxx":
573
+ // Hours and minutes with `:` delimiter
574
+ default:
575
+ return d(u, ":");
576
+ }
577
+ },
578
+ // Timezone (GMT)
579
+ O: function(n, e, t, r) {
580
+ var a = r._originalDate || n, u = a.getTimezoneOffset();
581
+ switch (e) {
582
+ // Short
583
+ case "O":
584
+ case "OO":
585
+ case "OOO":
586
+ return "GMT" + f(u, ":");
587
+ // Long
588
+ case "OOOO":
589
+ default:
590
+ return "GMT" + d(u, ":");
591
+ }
592
+ },
593
+ // Timezone (specific non-location)
594
+ z: function(n, e, t, r) {
595
+ var a = r._originalDate || n, u = a.getTimezoneOffset();
596
+ switch (e) {
597
+ // Short
598
+ case "z":
599
+ case "zz":
600
+ case "zzz":
601
+ return "GMT" + f(u, ":");
602
+ // Long
603
+ case "zzzz":
604
+ default:
605
+ return "GMT" + d(u, ":");
606
+ }
607
+ },
608
+ // Seconds timestamp
609
+ t: function(n, e, t, r) {
610
+ var a = r._originalDate || n, u = Math.floor(a.getTime() / 1e3);
611
+ return o(u, e.length);
612
+ },
613
+ // Milliseconds timestamp
614
+ T: function(n, e, t, r) {
615
+ var a = r._originalDate || n, u = a.getTime();
616
+ return o(u, e.length);
617
+ }
618
+ };
619
+ function f(i, n) {
620
+ var e = i > 0 ? "-" : "+", t = Math.abs(i), r = Math.floor(t / 60), a = t % 60;
621
+ if (a === 0)
622
+ return e + String(r);
623
+ var u = n;
624
+ return e + String(r) + u + o(a, 2);
625
+ }
626
+ function h(i, n) {
627
+ if (i % 60 === 0) {
628
+ var e = i > 0 ? "-" : "+";
629
+ return e + o(Math.abs(i) / 60, 2);
630
+ }
631
+ return d(i, n);
632
+ }
633
+ function d(i, n) {
634
+ var e = n || "", t = i > 0 ? "-" : "+", r = Math.abs(i), a = o(Math.floor(r / 60), 2), u = o(r % 60, 2);
635
+ return t + a + e + u;
7
636
  }
8
637
  export {
9
- i as default
638
+ E as default
10
639
  };