react-luminus-components 1.3.30 → 1.3.32
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.
- package/dist/.vite/manifest.json +60 -60
- package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +253 -0
- package/dist/{FromToDatePickerDropdownToggle-CK3riYKN.js → FromToDatePickerDropdownToggle-DDOxJCc2.js} +2178 -2568
- package/dist/{PrimaryButton-BOdgT4u0.js → PrimaryButton-B64e5vBv.js} +261 -289
- package/dist/PrimaryButton-BnrFH2PB.cjs +1 -0
- package/dist/SimpleTooltip-BgRjtr0d.js +5 -0
- package/dist/{SimpleTooltip-D92MXZSs.cjs → SimpleTooltip-DIqIPx0H.cjs} +1 -1
- package/dist/components/NewTabs/Tab/Tab.d.ts +5 -5
- package/dist/components/NewTabs/Tabs/Tabs.d.ts +7 -6
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +180 -304
- package/dist/{dateUtils-DqftcSRs.js → dateUtils-C8trxO28.js} +162 -162
- package/dist/dateUtils-ChS-y8JY.cjs +1 -0
- package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.es.js +37 -35
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +29 -27
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1755 -2126
- package/dist/{searchUtils-DKaMRBRf.cjs → searchUtils-BdYnxcy0.cjs} +1 -1
- package/dist/{searchUtils-BHsouXbH.js → searchUtils-C38WM_G8.js} +1 -1
- package/dist/useLocalStorageState-CFe9QRz0.js +76 -0
- package/dist/useLocalStorageState-asgEpnUg.cjs +1 -0
- package/dist/usePermissions-55of2QBH.js +17 -0
- package/dist/usePermissions-Ce0AAKj1.cjs +1 -0
- package/dist/utils/text/textUtils.d.ts +8 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +10 -0
- package/dist/utils.es.js +54 -50
- package/package.json +3 -3
- package/dist/FromToDatePickerDropdownToggle-C4ntsFqz.cjs +0 -253
- package/dist/PrimaryButton-OffsUx-G.cjs +0 -1
- package/dist/SimpleTooltip-D4KGsTa_.js +0 -5
- package/dist/dateUtils-DRVYuJv7.cjs +0 -1
- package/dist/useLocalStorageState-BY8tnvJS.js +0 -74
- package/dist/useLocalStorageState-DmtUyPYX.cjs +0 -1
- package/dist/usePermissions-CYURG0V1.cjs +0 -1
- package/dist/usePermissions-DOWgyuUi.js +0 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as h, a as b,
|
|
2
|
-
let
|
|
1
|
+
import { t as h, a as b, aT as J, m as U, b as $, d as j, aO as Z } from "./FromToDatePickerDropdownToggle-DDOxJCc2.js";
|
|
2
|
+
let K = {};
|
|
3
3
|
function S() {
|
|
4
|
-
return
|
|
4
|
+
return K;
|
|
5
5
|
}
|
|
6
6
|
function x(t, e) {
|
|
7
7
|
var c, o, d, m;
|
|
@@ -37,28 +37,28 @@ function L(t) {
|
|
|
37
37
|
);
|
|
38
38
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function tt(t, e) {
|
|
41
41
|
const n = I(t), r = I(e), a = +n - L(n), i = +r - L(r);
|
|
42
|
-
return Math.round((a - i) /
|
|
42
|
+
return Math.round((a - i) / J);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function et(t) {
|
|
45
45
|
const e = G(t), n = b(t, 0);
|
|
46
46
|
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), W(n);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function nt(t) {
|
|
49
49
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
if (!
|
|
51
|
+
function rt(t) {
|
|
52
|
+
if (!nt(t) && typeof t != "number")
|
|
53
53
|
return !1;
|
|
54
54
|
const e = h(t);
|
|
55
55
|
return !isNaN(Number(e));
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function at(t) {
|
|
58
58
|
const e = h(t), n = b(t, 0);
|
|
59
59
|
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const it = {
|
|
62
62
|
lessThanXSeconds: {
|
|
63
63
|
one: "less than a second",
|
|
64
64
|
other: "less than {{count}} seconds"
|
|
@@ -120,9 +120,9 @@ const st = {
|
|
|
120
120
|
one: "almost 1 year",
|
|
121
121
|
other: "almost {{count}} years"
|
|
122
122
|
}
|
|
123
|
-
},
|
|
123
|
+
}, st = (t, e, n) => {
|
|
124
124
|
let r;
|
|
125
|
-
const a =
|
|
125
|
+
const a = it[t];
|
|
126
126
|
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
127
127
|
};
|
|
128
128
|
function p(t) {
|
|
@@ -131,42 +131,42 @@ function p(t) {
|
|
|
131
131
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const ot = {
|
|
135
135
|
full: "EEEE, MMMM do, y",
|
|
136
136
|
long: "MMMM do, y",
|
|
137
137
|
medium: "MMM d, y",
|
|
138
138
|
short: "MM/dd/yyyy"
|
|
139
|
-
},
|
|
139
|
+
}, ut = {
|
|
140
140
|
full: "h:mm:ss a zzzz",
|
|
141
141
|
long: "h:mm:ss a z",
|
|
142
142
|
medium: "h:mm:ss a",
|
|
143
143
|
short: "h:mm a"
|
|
144
|
-
},
|
|
144
|
+
}, ct = {
|
|
145
145
|
full: "{{date}} 'at' {{time}}",
|
|
146
146
|
long: "{{date}} 'at' {{time}}",
|
|
147
147
|
medium: "{{date}}, {{time}}",
|
|
148
148
|
short: "{{date}}, {{time}}"
|
|
149
|
-
},
|
|
149
|
+
}, dt = {
|
|
150
150
|
date: p({
|
|
151
|
-
formats:
|
|
151
|
+
formats: ot,
|
|
152
152
|
defaultWidth: "full"
|
|
153
153
|
}),
|
|
154
154
|
time: p({
|
|
155
|
-
formats:
|
|
155
|
+
formats: ut,
|
|
156
156
|
defaultWidth: "full"
|
|
157
157
|
}),
|
|
158
158
|
dateTime: p({
|
|
159
|
-
formats:
|
|
159
|
+
formats: ct,
|
|
160
160
|
defaultWidth: "full"
|
|
161
161
|
})
|
|
162
|
-
},
|
|
162
|
+
}, ft = {
|
|
163
163
|
lastWeek: "'last' eeee 'at' p",
|
|
164
164
|
yesterday: "'yesterday at' p",
|
|
165
165
|
today: "'today at' p",
|
|
166
166
|
tomorrow: "'tomorrow at' p",
|
|
167
167
|
nextWeek: "eeee 'at' p",
|
|
168
168
|
other: "P"
|
|
169
|
-
},
|
|
169
|
+
}, mt = (t, e, n, r) => ft[t];
|
|
170
170
|
function T(t) {
|
|
171
171
|
return (e, n) => {
|
|
172
172
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -182,15 +182,15 @@ function T(t) {
|
|
|
182
182
|
return a[i];
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const lt = {
|
|
186
186
|
narrow: ["B", "A"],
|
|
187
187
|
abbreviated: ["BC", "AD"],
|
|
188
188
|
wide: ["Before Christ", "Anno Domini"]
|
|
189
|
-
},
|
|
189
|
+
}, ht = {
|
|
190
190
|
narrow: ["1", "2", "3", "4"],
|
|
191
191
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
192
192
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
193
|
-
},
|
|
193
|
+
}, gt = {
|
|
194
194
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
195
195
|
abbreviated: [
|
|
196
196
|
"Jan",
|
|
@@ -220,7 +220,7 @@ const ht = {
|
|
|
220
220
|
"November",
|
|
221
221
|
"December"
|
|
222
222
|
]
|
|
223
|
-
},
|
|
223
|
+
}, wt = {
|
|
224
224
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
225
225
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
226
226
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -233,7 +233,7 @@ const ht = {
|
|
|
233
233
|
"Friday",
|
|
234
234
|
"Saturday"
|
|
235
235
|
]
|
|
236
|
-
},
|
|
236
|
+
}, yt = {
|
|
237
237
|
narrow: {
|
|
238
238
|
am: "a",
|
|
239
239
|
pm: "p",
|
|
@@ -264,7 +264,7 @@ const ht = {
|
|
|
264
264
|
evening: "evening",
|
|
265
265
|
night: "night"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, bt = {
|
|
268
268
|
narrow: {
|
|
269
269
|
am: "a",
|
|
270
270
|
pm: "p",
|
|
@@ -295,7 +295,7 @@ const ht = {
|
|
|
295
295
|
evening: "in the evening",
|
|
296
296
|
night: "at night"
|
|
297
297
|
}
|
|
298
|
-
},
|
|
298
|
+
}, Dt = (t, e) => {
|
|
299
299
|
const n = Number(t), r = n % 100;
|
|
300
300
|
if (r > 20 || r < 10)
|
|
301
301
|
switch (r % 10) {
|
|
@@ -307,29 +307,29 @@ const ht = {
|
|
|
307
307
|
return n + "rd";
|
|
308
308
|
}
|
|
309
309
|
return n + "th";
|
|
310
|
-
},
|
|
311
|
-
ordinalNumber:
|
|
310
|
+
}, Mt = {
|
|
311
|
+
ordinalNumber: Dt,
|
|
312
312
|
era: T({
|
|
313
|
-
values:
|
|
313
|
+
values: lt,
|
|
314
314
|
defaultWidth: "wide"
|
|
315
315
|
}),
|
|
316
316
|
quarter: T({
|
|
317
|
-
values:
|
|
317
|
+
values: ht,
|
|
318
318
|
defaultWidth: "wide",
|
|
319
319
|
argumentCallback: (t) => t - 1
|
|
320
320
|
}),
|
|
321
321
|
month: T({
|
|
322
|
-
values:
|
|
322
|
+
values: gt,
|
|
323
323
|
defaultWidth: "wide"
|
|
324
324
|
}),
|
|
325
325
|
day: T({
|
|
326
|
-
values:
|
|
326
|
+
values: wt,
|
|
327
327
|
defaultWidth: "wide"
|
|
328
328
|
}),
|
|
329
329
|
dayPeriod: T({
|
|
330
|
-
values:
|
|
330
|
+
values: yt,
|
|
331
331
|
defaultWidth: "wide",
|
|
332
|
-
formattingValues:
|
|
332
|
+
formattingValues: bt,
|
|
333
333
|
defaultFormattingWidth: "wide"
|
|
334
334
|
})
|
|
335
335
|
};
|
|
@@ -338,9 +338,9 @@ function P(t) {
|
|
|
338
338
|
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
|
|
339
339
|
if (!i)
|
|
340
340
|
return null;
|
|
341
|
-
const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], o = Array.isArray(c) ?
|
|
341
|
+
const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], o = Array.isArray(c) ? Tt(c, (g) => g.test(s)) : (
|
|
342
342
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
343
|
-
|
|
343
|
+
Ot(c, (g) => g.test(s))
|
|
344
344
|
);
|
|
345
345
|
let d;
|
|
346
346
|
d = t.valueCallback ? t.valueCallback(o) : o, d = n.valueCallback ? (
|
|
@@ -351,17 +351,17 @@ function P(t) {
|
|
|
351
351
|
return { value: d, rest: m };
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ot(t, e) {
|
|
355
355
|
for (const n in t)
|
|
356
356
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
357
357
|
return n;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Tt(t, e) {
|
|
360
360
|
for (let n = 0; n < t.length; n++)
|
|
361
361
|
if (e(t[n]))
|
|
362
362
|
return n;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Pt(t) {
|
|
365
365
|
return (e, n = {}) => {
|
|
366
366
|
const r = e.match(t.matchPattern);
|
|
367
367
|
if (!r)
|
|
@@ -375,23 +375,23 @@ function kt(t) {
|
|
|
375
375
|
return { value: s, rest: c };
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const kt = /^(\d+)(th|st|nd|rd)?/i, xt = /\d+/i, vt = {
|
|
379
379
|
narrow: /^(b|a)/i,
|
|
380
380
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
381
381
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
382
|
-
},
|
|
382
|
+
}, Wt = {
|
|
383
383
|
any: [/^b/i, /^(a|c)/i]
|
|
384
|
-
},
|
|
384
|
+
}, St = {
|
|
385
385
|
narrow: /^[1234]/i,
|
|
386
386
|
abbreviated: /^q[1234]/i,
|
|
387
387
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
388
|
-
},
|
|
388
|
+
}, Yt = {
|
|
389
389
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
390
|
-
},
|
|
390
|
+
}, pt = {
|
|
391
391
|
narrow: /^[jfmasond]/i,
|
|
392
392
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
393
393
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
394
|
-
},
|
|
394
|
+
}, Nt = {
|
|
395
395
|
narrow: [
|
|
396
396
|
/^j/i,
|
|
397
397
|
/^f/i,
|
|
@@ -420,18 +420,18 @@ const xt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, Wt = {
|
|
|
420
420
|
/^n/i,
|
|
421
421
|
/^d/i
|
|
422
422
|
]
|
|
423
|
-
},
|
|
423
|
+
}, Ft = {
|
|
424
424
|
narrow: /^[smtwf]/i,
|
|
425
425
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
426
426
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
427
427
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
428
|
-
},
|
|
428
|
+
}, Ct = {
|
|
429
429
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
430
430
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
431
|
-
},
|
|
431
|
+
}, Et = {
|
|
432
432
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
433
433
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
434
|
-
},
|
|
434
|
+
}, qt = {
|
|
435
435
|
any: {
|
|
436
436
|
am: /^a/i,
|
|
437
437
|
pm: /^p/i,
|
|
@@ -442,61 +442,61 @@ const xt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, Wt = {
|
|
|
442
442
|
evening: /evening/i,
|
|
443
443
|
night: /night/i
|
|
444
444
|
}
|
|
445
|
-
},
|
|
446
|
-
ordinalNumber:
|
|
447
|
-
matchPattern:
|
|
448
|
-
parsePattern:
|
|
445
|
+
}, Ht = {
|
|
446
|
+
ordinalNumber: Pt({
|
|
447
|
+
matchPattern: kt,
|
|
448
|
+
parsePattern: xt,
|
|
449
449
|
valueCallback: (t) => parseInt(t, 10)
|
|
450
450
|
}),
|
|
451
451
|
era: P({
|
|
452
|
-
matchPatterns:
|
|
452
|
+
matchPatterns: vt,
|
|
453
453
|
defaultMatchWidth: "wide",
|
|
454
|
-
parsePatterns:
|
|
454
|
+
parsePatterns: Wt,
|
|
455
455
|
defaultParseWidth: "any"
|
|
456
456
|
}),
|
|
457
457
|
quarter: P({
|
|
458
|
-
matchPatterns:
|
|
458
|
+
matchPatterns: St,
|
|
459
459
|
defaultMatchWidth: "wide",
|
|
460
|
-
parsePatterns:
|
|
460
|
+
parsePatterns: Yt,
|
|
461
461
|
defaultParseWidth: "any",
|
|
462
462
|
valueCallback: (t) => t + 1
|
|
463
463
|
}),
|
|
464
464
|
month: P({
|
|
465
|
-
matchPatterns:
|
|
465
|
+
matchPatterns: pt,
|
|
466
466
|
defaultMatchWidth: "wide",
|
|
467
|
-
parsePatterns:
|
|
467
|
+
parsePatterns: Nt,
|
|
468
468
|
defaultParseWidth: "any"
|
|
469
469
|
}),
|
|
470
470
|
day: P({
|
|
471
|
-
matchPatterns:
|
|
471
|
+
matchPatterns: Ft,
|
|
472
472
|
defaultMatchWidth: "wide",
|
|
473
|
-
parsePatterns:
|
|
473
|
+
parsePatterns: Ct,
|
|
474
474
|
defaultParseWidth: "any"
|
|
475
475
|
}),
|
|
476
476
|
dayPeriod: P({
|
|
477
|
-
matchPatterns:
|
|
477
|
+
matchPatterns: Et,
|
|
478
478
|
defaultMatchWidth: "any",
|
|
479
|
-
parsePatterns:
|
|
479
|
+
parsePatterns: qt,
|
|
480
480
|
defaultParseWidth: "any"
|
|
481
481
|
})
|
|
482
|
-
},
|
|
482
|
+
}, It = {
|
|
483
483
|
code: "en-US",
|
|
484
|
-
formatDistance:
|
|
485
|
-
formatLong:
|
|
486
|
-
formatRelative:
|
|
487
|
-
localize:
|
|
488
|
-
match:
|
|
484
|
+
formatDistance: st,
|
|
485
|
+
formatLong: dt,
|
|
486
|
+
formatRelative: mt,
|
|
487
|
+
localize: Mt,
|
|
488
|
+
match: Ht,
|
|
489
489
|
options: {
|
|
490
490
|
weekStartsOn: 0,
|
|
491
491
|
firstWeekContainsDate: 1
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function Lt(t) {
|
|
495
495
|
const e = h(t);
|
|
496
|
-
return
|
|
496
|
+
return tt(e, at(e)) + 1;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
const e = h(t), n = +W(e) - +
|
|
498
|
+
function Qt(t) {
|
|
499
|
+
const e = h(t), n = +W(e) - +et(e);
|
|
500
500
|
return Math.round(n / U) + 1;
|
|
501
501
|
}
|
|
502
502
|
function A(t, e) {
|
|
@@ -508,13 +508,13 @@ function A(t, e) {
|
|
|
508
508
|
const d = x(o, e);
|
|
509
509
|
return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Rt(t, e) {
|
|
512
512
|
var c, o, d, m;
|
|
513
513
|
const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = A(t, e), i = b(t, 0);
|
|
514
514
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), x(i, e);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
const n = h(t), r = +x(n, e) - +
|
|
516
|
+
function _t(t, e) {
|
|
517
|
+
const n = h(t), r = +x(n, e) - +Rt(n, e);
|
|
518
518
|
return Math.round(r / U) + 1;
|
|
519
519
|
}
|
|
520
520
|
function u(t, e) {
|
|
@@ -742,12 +742,12 @@ const w = {
|
|
|
742
742
|
},
|
|
743
743
|
// Local week of year
|
|
744
744
|
w: function(t, e, n, r) {
|
|
745
|
-
const a =
|
|
745
|
+
const a = _t(t, r);
|
|
746
746
|
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : u(a, e.length);
|
|
747
747
|
},
|
|
748
748
|
// ISO week of year
|
|
749
749
|
I: function(t, e, n) {
|
|
750
|
-
const r =
|
|
750
|
+
const r = Qt(t);
|
|
751
751
|
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
|
|
752
752
|
},
|
|
753
753
|
// Day of the month
|
|
@@ -756,7 +756,7 @@ const w = {
|
|
|
756
756
|
},
|
|
757
757
|
// Day of year
|
|
758
758
|
D: function(t, e, n) {
|
|
759
|
-
const r =
|
|
759
|
+
const r = Lt(t);
|
|
760
760
|
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : u(r, e.length);
|
|
761
761
|
},
|
|
762
762
|
// Day of week
|
|
@@ -1107,7 +1107,7 @@ const X = (t, e) => {
|
|
|
1107
1107
|
default:
|
|
1108
1108
|
return e.time({ width: "full" });
|
|
1109
1109
|
}
|
|
1110
|
-
},
|
|
1110
|
+
}, Xt = (t, e) => {
|
|
1111
1111
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1112
1112
|
if (!a)
|
|
1113
1113
|
return X(t, e);
|
|
@@ -1128,47 +1128,47 @@ const X = (t, e) => {
|
|
|
1128
1128
|
break;
|
|
1129
1129
|
}
|
|
1130
1130
|
return i.replace("{{date}}", X(r, e)).replace("{{time}}", B(a, e));
|
|
1131
|
-
},
|
|
1131
|
+
}, Ut = {
|
|
1132
1132
|
p: B,
|
|
1133
|
-
P:
|
|
1134
|
-
},
|
|
1133
|
+
P: Xt
|
|
1134
|
+
}, $t = /^D+$/, jt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
|
|
1135
|
+
function At(t) {
|
|
1136
|
+
return $t.test(t);
|
|
1137
|
+
}
|
|
1135
1138
|
function Bt(t) {
|
|
1136
1139
|
return jt.test(t);
|
|
1137
1140
|
}
|
|
1138
|
-
function Vt(t) {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
function zt(t, e, n) {
|
|
1142
|
-
const r = Jt(t, e, n);
|
|
1143
|
-
if (console.warn(r), At.includes(t))
|
|
1141
|
+
function Vt(t, e, n) {
|
|
1142
|
+
const r = zt(t, e, n);
|
|
1143
|
+
if (console.warn(r), Gt.includes(t))
|
|
1144
1144
|
throw new RangeError(r);
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function zt(t, e, n) {
|
|
1147
1147
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1148
1148
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const Jt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kt = /^'([^]*?)'?$/, te = /''/g, ee = /[a-zA-Z]/;
|
|
1151
1151
|
function V(t, e, n) {
|
|
1152
1152
|
var m, g, M, O, C, E, q, H;
|
|
1153
|
-
const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ??
|
|
1154
|
-
if (!
|
|
1153
|
+
const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? It, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (C = n == null ? void 0 : n.locale) == null ? void 0 : C.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((H = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : H.weekStartsOn) ?? 0, c = h(t);
|
|
1154
|
+
if (!rt(c))
|
|
1155
1155
|
throw new RangeError("Invalid time value");
|
|
1156
|
-
let o = e.match(
|
|
1156
|
+
let o = e.match(Zt).map((l) => {
|
|
1157
1157
|
const f = l[0];
|
|
1158
1158
|
if (f === "p" || f === "P") {
|
|
1159
|
-
const Y =
|
|
1159
|
+
const Y = Ut[f];
|
|
1160
1160
|
return Y(l, a.formatLong);
|
|
1161
1161
|
}
|
|
1162
1162
|
return l;
|
|
1163
|
-
}).join("").match(
|
|
1163
|
+
}).join("").match(Jt).map((l) => {
|
|
1164
1164
|
if (l === "''")
|
|
1165
1165
|
return { isToken: !1, value: "'" };
|
|
1166
1166
|
const f = l[0];
|
|
1167
1167
|
if (f === "'")
|
|
1168
|
-
return { isToken: !1, value:
|
|
1168
|
+
return { isToken: !1, value: ne(l) };
|
|
1169
1169
|
if (Q[f])
|
|
1170
1170
|
return { isToken: !0, value: l };
|
|
1171
|
-
if (f.match(
|
|
1171
|
+
if (f.match(ee))
|
|
1172
1172
|
throw new RangeError(
|
|
1173
1173
|
"Format string contains an unescaped latin alphabet character `" + f + "`"
|
|
1174
1174
|
);
|
|
@@ -1184,30 +1184,30 @@ function V(t, e, n) {
|
|
|
1184
1184
|
if (!l.isToken)
|
|
1185
1185
|
return l.value;
|
|
1186
1186
|
const f = l.value;
|
|
1187
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1187
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && At(f)) && Vt(f, e, String(t));
|
|
1188
1188
|
const Y = Q[f[0]];
|
|
1189
1189
|
return Y(c, f, a.localize, d);
|
|
1190
1190
|
}).join("");
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
const e = t.match(
|
|
1194
|
-
return e ? e[1].replace(
|
|
1192
|
+
function ne(t) {
|
|
1193
|
+
const e = t.match(Kt);
|
|
1194
|
+
return e ? e[1].replace(te, "'") : t;
|
|
1195
1195
|
}
|
|
1196
1196
|
function F(t, e) {
|
|
1197
|
-
const r =
|
|
1197
|
+
const r = se(t);
|
|
1198
1198
|
let a;
|
|
1199
1199
|
if (r.date) {
|
|
1200
|
-
const o =
|
|
1201
|
-
a =
|
|
1200
|
+
const o = oe(r.date, 2);
|
|
1201
|
+
a = ue(o.restDateString, o.year);
|
|
1202
1202
|
}
|
|
1203
1203
|
if (!a || isNaN(a.getTime()))
|
|
1204
1204
|
return /* @__PURE__ */ new Date(NaN);
|
|
1205
1205
|
const i = a.getTime();
|
|
1206
1206
|
let s = 0, c;
|
|
1207
|
-
if (r.time && (s =
|
|
1207
|
+
if (r.time && (s = ce(r.time), isNaN(s)))
|
|
1208
1208
|
return /* @__PURE__ */ new Date(NaN);
|
|
1209
1209
|
if (r.timezone) {
|
|
1210
|
-
if (c =
|
|
1210
|
+
if (c = de(r.timezone), isNaN(c))
|
|
1211
1211
|
return /* @__PURE__ */ new Date(NaN);
|
|
1212
1212
|
} else {
|
|
1213
1213
|
const o = new Date(i + s), d = /* @__PURE__ */ new Date(0);
|
|
@@ -1228,8 +1228,8 @@ const v = {
|
|
|
1228
1228
|
dateTimeDelimiter: /[T ]/,
|
|
1229
1229
|
timeZoneDelimiter: /[Z ]/i,
|
|
1230
1230
|
timezone: /([Z+-].*)$/
|
|
1231
|
-
},
|
|
1232
|
-
function
|
|
1231
|
+
}, re = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ae = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, ie = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1232
|
+
function se(t) {
|
|
1233
1233
|
const e = {}, n = t.split(v.dateTimeDelimiter);
|
|
1234
1234
|
let r;
|
|
1235
1235
|
if (n.length > 2)
|
|
@@ -1243,7 +1243,7 @@ function oe(t) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
return e;
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function oe(t, e) {
|
|
1247
1247
|
const n = new RegExp(
|
|
1248
1248
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
|
|
1249
1249
|
), r = t.match(n);
|
|
@@ -1255,119 +1255,119 @@ function ue(t, e) {
|
|
|
1255
1255
|
restDateString: t.slice((r[1] || r[2]).length)
|
|
1256
1256
|
};
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function ue(t, e) {
|
|
1259
1259
|
if (e === null)
|
|
1260
1260
|
return /* @__PURE__ */ new Date(NaN);
|
|
1261
|
-
const n = t.match(
|
|
1261
|
+
const n = t.match(re);
|
|
1262
1262
|
if (!n)
|
|
1263
1263
|
return /* @__PURE__ */ new Date(NaN);
|
|
1264
1264
|
const r = !!n[4], a = k(n[1]), i = k(n[2]) - 1, s = k(n[3]), c = k(n[4]), o = k(n[5]) - 1;
|
|
1265
1265
|
if (r)
|
|
1266
|
-
return
|
|
1266
|
+
return ge(e, c, o) ? fe(e, c, o) : /* @__PURE__ */ new Date(NaN);
|
|
1267
1267
|
{
|
|
1268
1268
|
const d = /* @__PURE__ */ new Date(0);
|
|
1269
|
-
return !
|
|
1269
|
+
return !le(e, i, s) || !he(e, a) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, i, Math.max(a, s)), d);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
function k(t) {
|
|
1273
1273
|
return t ? parseInt(t) : 1;
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1276
|
-
const e = t.match(
|
|
1275
|
+
function ce(t) {
|
|
1276
|
+
const e = t.match(ae);
|
|
1277
1277
|
if (!e)
|
|
1278
1278
|
return NaN;
|
|
1279
1279
|
const n = N(e[1]), r = N(e[2]), a = N(e[3]);
|
|
1280
|
-
return
|
|
1280
|
+
return we(n, r, a) ? n * $ + r * j + a * 1e3 : NaN;
|
|
1281
1281
|
}
|
|
1282
1282
|
function N(t) {
|
|
1283
1283
|
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function de(t) {
|
|
1286
1286
|
if (t === "Z")
|
|
1287
1287
|
return 0;
|
|
1288
|
-
const e = t.match(
|
|
1288
|
+
const e = t.match(ie);
|
|
1289
1289
|
if (!e)
|
|
1290
1290
|
return 0;
|
|
1291
1291
|
const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
|
|
1292
|
-
return
|
|
1292
|
+
return ye(r, a) ? n * (r * $ + a * j) : NaN;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function fe(t, e, n) {
|
|
1295
1295
|
const r = /* @__PURE__ */ new Date(0);
|
|
1296
1296
|
r.setUTCFullYear(t, 0, 4);
|
|
1297
1297
|
const a = r.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - a;
|
|
1298
1298
|
return r.setUTCDate(r.getUTCDate() + i), r;
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1300
|
+
const me = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1301
1301
|
function z(t) {
|
|
1302
1302
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return e >= 0 && e <= 11 && n >= 1 && n <= (
|
|
1304
|
+
function le(t, e, n) {
|
|
1305
|
+
return e >= 0 && e <= 11 && n >= 1 && n <= (me[e] || (z(t) ? 29 : 28));
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function he(t, e) {
|
|
1308
1308
|
return e >= 1 && e <= (z(t) ? 366 : 365);
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function ge(t, e, n) {
|
|
1311
1311
|
return e >= 1 && e <= 53 && n >= 0 && n <= 6;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function we(t, e, n) {
|
|
1314
1314
|
return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function ye(t, e) {
|
|
1317
1317
|
return e >= 0 && e <= 59;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Te(t) {
|
|
1320
1320
|
return t == null ? "" : V(F(t), "dd.MM.yyyy");
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function be(t) {
|
|
1323
1323
|
return (t == null ? void 0 : t.toString().split("T")[0]) ?? "";
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function Pe(t) {
|
|
1326
1326
|
return t == null ? "" : V(F(t), "dd.MM.yyyy HH:mm");
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function ke(t) {
|
|
1329
1329
|
return t && t.charAt(0).toUpperCase() + t.slice(1);
|
|
1330
1330
|
}
|
|
1331
|
-
const
|
|
1331
|
+
const xe = (t, e) => Z(" ", t ? `${t},` : void 0, e), ve = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, We = (t, e) => `[${t ?? ""}] ${e ?? ""}`, Se = (t) => {
|
|
1332
1332
|
const e = F(t);
|
|
1333
1333
|
return !Number.isNaN(e.getTime());
|
|
1334
1334
|
};
|
|
1335
|
-
function
|
|
1335
|
+
function Ye() {
|
|
1336
1336
|
const t = /* @__PURE__ */ new Date(), e = new Date(t);
|
|
1337
1337
|
return e.setHours(24, 0, 0, 0), e.getTime() - t.getTime();
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function pe(t) {
|
|
1340
1340
|
return t instanceof Date && !Number.isNaN(t.getTime());
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Ne(t, e) {
|
|
1343
1343
|
const n = new Date(t), r = new Date(e);
|
|
1344
1344
|
return n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0), n.getTime() - r.getTime();
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Fe(t, e) {
|
|
1347
1347
|
const n = new Date(t), r = new Date(e);
|
|
1348
1348
|
return n.getTime() - r.getTime();
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Ce(t = Date.now(), e = Date.now()) {
|
|
1351
1351
|
const n = new Date(t), r = new Date(e);
|
|
1352
1352
|
n.setHours(10, 0, 0, 0), r.setHours(0, 0, 0, 0);
|
|
1353
1353
|
const a = n.getTime() - r.getTime();
|
|
1354
1354
|
return Math.floor(a / (1e3 * 3600 * 24));
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function De(t = /* @__PURE__ */ new Date()) {
|
|
1357
1357
|
const e = new Date(t);
|
|
1358
1358
|
return e.setDate(1), e;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function Me(t = /* @__PURE__ */ new Date()) {
|
|
1361
1361
|
const e = new Date(t);
|
|
1362
1362
|
return e.setMonth(e.getMonth() + 1), e.setDate(0), e;
|
|
1363
1363
|
}
|
|
1364
1364
|
function Ee(t) {
|
|
1365
1365
|
const e = /* @__PURE__ */ new Date();
|
|
1366
|
-
return e.setMonth(e.getMonth() + t),
|
|
1366
|
+
return e.setMonth(e.getMonth() + t), De(e);
|
|
1367
1367
|
}
|
|
1368
1368
|
function qe(t) {
|
|
1369
1369
|
const e = /* @__PURE__ */ new Date();
|
|
1370
|
-
return e.setMonth(e.getMonth() + t),
|
|
1370
|
+
return e.setMonth(e.getMonth() + t), Me(e);
|
|
1371
1371
|
}
|
|
1372
1372
|
function He(t) {
|
|
1373
1373
|
const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 0, 1);
|
|
@@ -1378,30 +1378,30 @@ function Ie(t) {
|
|
|
1378
1378
|
return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
|
|
1379
1379
|
}
|
|
1380
1380
|
function Le(t) {
|
|
1381
|
-
return
|
|
1381
|
+
return be(t.toISOString());
|
|
1382
1382
|
}
|
|
1383
1383
|
export {
|
|
1384
|
-
|
|
1384
|
+
De as a,
|
|
1385
1385
|
He as b,
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1386
|
+
Te as c,
|
|
1387
|
+
tt as d,
|
|
1388
|
+
Pe as e,
|
|
1389
1389
|
V as f,
|
|
1390
1390
|
L as g,
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1391
|
+
ke as h,
|
|
1392
|
+
Se as i,
|
|
1393
|
+
xe as j,
|
|
1394
|
+
ve as k,
|
|
1395
|
+
We as l,
|
|
1396
|
+
Ye as m,
|
|
1397
|
+
pe as n,
|
|
1398
|
+
Ne as o,
|
|
1399
1399
|
F as p,
|
|
1400
|
-
|
|
1401
|
-
|
|
1400
|
+
Fe as q,
|
|
1401
|
+
Ce as r,
|
|
1402
1402
|
x as s,
|
|
1403
|
-
|
|
1404
|
-
|
|
1403
|
+
be as t,
|
|
1404
|
+
Me as u,
|
|
1405
1405
|
Ee as v,
|
|
1406
1406
|
qe as w,
|
|
1407
1407
|
Ie as x,
|