@oslokommune/punkt-elements 12.1.0 → 12.3.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 (91) hide show
  1. package/README.md +30 -0
  2. package/dist/alert.d.ts +1 -0
  3. package/dist/calendar.d.ts +1 -0
  4. package/dist/card.d.ts +1 -0
  5. package/dist/class-map-CA8wadiN.cjs +5 -0
  6. package/dist/class-map-DiT0qP3E.js +34 -0
  7. package/dist/component-template.d.ts +1 -0
  8. package/dist/converters-DNCwIFwr.js +17 -0
  9. package/dist/converters-DhM11VlY.cjs +1 -0
  10. package/dist/datepicker.d.ts +1 -0
  11. package/dist/directive-19_ixLKS.cjs +9 -0
  12. package/dist/directive-DA0-wdk7.js +38 -0
  13. package/dist/element.d.ts +1 -0
  14. package/dist/icon.d.ts +1 -0
  15. package/dist/index-BHzxfdBK.js +807 -0
  16. package/dist/index-BJ_4AGO3.cjs +23 -0
  17. package/dist/index-BlHnvy7v.js +82 -0
  18. package/dist/index-CPvZ03uX.js +577 -0
  19. package/dist/index-DSplpVWQ.cjs +9 -0
  20. package/dist/index-DkGcZra2.cjs +90 -0
  21. package/dist/index.d.ts +393 -3
  22. package/dist/input-wrapper.d.ts +1 -0
  23. package/dist/link.d.ts +1 -0
  24. package/dist/messagebox.d.ts +1 -0
  25. package/dist/pkt-alert.cjs +27 -0
  26. package/dist/pkt-alert.js +86 -0
  27. package/dist/pkt-calendar.cjs +1 -0
  28. package/dist/pkt-calendar.js +10 -0
  29. package/dist/pkt-card.cjs +23 -0
  30. package/dist/pkt-card.js +177 -0
  31. package/dist/pkt-component-template.cjs +29 -0
  32. package/dist/{pkt-el-component-template.js → pkt-component-template.js} +25 -26
  33. package/dist/pkt-datepicker.cjs +140 -0
  34. package/dist/pkt-datepicker.js +1769 -0
  35. package/dist/pkt-element.cjs +1 -0
  36. package/dist/pkt-element.js +5 -0
  37. package/dist/pkt-icon.cjs +1 -0
  38. package/dist/pkt-icon.js +6 -0
  39. package/dist/pkt-index.cjs +1 -0
  40. package/dist/pkt-index.js +20 -0
  41. package/dist/pkt-input-wrapper.cjs +59 -0
  42. package/dist/pkt-input-wrapper.js +293 -0
  43. package/dist/pkt-link.cjs +3 -0
  44. package/dist/pkt-link.js +90 -0
  45. package/dist/pkt-messagebox.cjs +12 -0
  46. package/dist/pkt-messagebox.js +62 -0
  47. package/dist/pkt-tag.cjs +17 -0
  48. package/dist/pkt-tag.js +151 -0
  49. package/dist/ref-Bk590hog.cjs +13 -0
  50. package/dist/ref-Co_S0Cgj.js +173 -0
  51. package/dist/state-BRgFbJX9.js +12 -0
  52. package/dist/state-D2tUtTi6.cjs +5 -0
  53. package/dist/tag.d.ts +1 -0
  54. package/package.json +10 -7
  55. package/src/components/alert/index.ts +86 -0
  56. package/src/components/calendar/index.ts +391 -143
  57. package/src/components/card/index.ts +78 -0
  58. package/src/components/component-template/index.ts +25 -9
  59. package/src/components/datepicker/index.ts +546 -0
  60. package/src/components/element/index.ts +181 -8
  61. package/src/components/icon/index.ts +44 -49
  62. package/src/components/index.ts +7 -1
  63. package/src/components/input-wrapper/index.ts +260 -0
  64. package/src/components/link/index.ts +51 -0
  65. package/src/components/messagebox/index.ts +63 -0
  66. package/src/components/tag/index.ts +110 -0
  67. package/dist/components/calendar/index.d.ts +0 -59
  68. package/dist/components/component-template/index.d.ts +0 -34
  69. package/dist/components/element/index.d.ts +0 -24
  70. package/dist/components/icon/index.d.ts +0 -29
  71. package/dist/components/index.d.ts +0 -3
  72. package/dist/controllers/pkt-slot-controller.d.ts +0 -11
  73. package/dist/converters-Bi8tmNvQ.cjs +0 -5
  74. package/dist/converters-DMveycvc.js +0 -100
  75. package/dist/directive-C7mkmyiy.js +0 -573
  76. package/dist/directive-DfhMJ1ie.cjs +0 -23
  77. package/dist/helpers/converters.d.ts +0 -3
  78. package/dist/index-0PZgk9Oc.js +0 -159
  79. package/dist/index-xoVy6sfy.cjs +0 -13
  80. package/dist/pkt-el-calendar.cjs +0 -60
  81. package/dist/pkt-el-calendar.js +0 -1496
  82. package/dist/pkt-el-component-template.cjs +0 -29
  83. package/dist/pkt-el-element.cjs +0 -1
  84. package/dist/pkt-el-element.js +0 -5
  85. package/dist/pkt-el-icon.cjs +0 -9
  86. package/dist/pkt-el-icon.js +0 -98
  87. package/dist/pkt-el-index.cjs +0 -1
  88. package/dist/pkt-el-index.js +0 -8
  89. package/dist/property-BBVRv-DT.js +0 -47
  90. package/dist/property-CK6SFc5B.cjs +0 -9
  91. package/dist/src/translations/no.json.d.ts +0 -43
@@ -0,0 +1,1769 @@
1
+ import { R as K, a as z, k as P, D as N, n as y } from "./index-BHzxfdBK.js";
2
+ import { e as Z, i as ee, a as te, t as ne } from "./directive-DA0-wdk7.js";
3
+ import { u as ae, c as M, a as S, p as q, d as re, i as R, K as $ } from "./ref-Co_S0Cgj.js";
4
+ import { R as C } from "./class-map-DiT0qP3E.js";
5
+ import { a as G } from "./converters-DNCwIFwr.js";
6
+ import { s as ie, t as k, c as _, m as se, a as oe, g as ue, b as le, d as de } from "./index-CPvZ03uX.js";
7
+ import "./pkt-input-wrapper.js";
8
+ import "./index-BlHnvy7v.js";
9
+ import "./pkt-tag.js";
10
+ function Y(e) {
11
+ return ie(e, { weekStartsOn: 1 });
12
+ }
13
+ function U(e) {
14
+ const t = k(e), n = t.getFullYear(), a = _(e, 0);
15
+ a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
16
+ const r = Y(a), i = _(e, 0);
17
+ i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
18
+ const s = Y(i);
19
+ return t.getTime() >= r.getTime() ? n + 1 : t.getTime() >= s.getTime() ? n : n - 1;
20
+ }
21
+ function A(e) {
22
+ const t = k(e);
23
+ return t.setHours(0, 0, 0, 0), t;
24
+ }
25
+ function B(e) {
26
+ const t = k(e), n = new Date(
27
+ Date.UTC(
28
+ t.getFullYear(),
29
+ t.getMonth(),
30
+ t.getDate(),
31
+ t.getHours(),
32
+ t.getMinutes(),
33
+ t.getSeconds(),
34
+ t.getMilliseconds()
35
+ )
36
+ );
37
+ return n.setUTCFullYear(t.getFullYear()), +e - +n;
38
+ }
39
+ function ce(e, t) {
40
+ const n = A(e), a = A(t), r = +n - B(n), i = +a - B(a);
41
+ return Math.round((r - i) / se);
42
+ }
43
+ function he(e) {
44
+ const t = U(e), n = _(e, 0);
45
+ return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), Y(n);
46
+ }
47
+ function me(e) {
48
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
49
+ }
50
+ function fe(e) {
51
+ if (!me(e) && typeof e != "number")
52
+ return !1;
53
+ const t = k(e);
54
+ return !isNaN(Number(t));
55
+ }
56
+ function pe(e) {
57
+ const t = k(e), n = _(e, 0);
58
+ return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
59
+ }
60
+ const ge = {
61
+ lessThanXSeconds: {
62
+ one: "less than a second",
63
+ other: "less than {{count}} seconds"
64
+ },
65
+ xSeconds: {
66
+ one: "1 second",
67
+ other: "{{count}} seconds"
68
+ },
69
+ halfAMinute: "half a minute",
70
+ lessThanXMinutes: {
71
+ one: "less than a minute",
72
+ other: "less than {{count}} minutes"
73
+ },
74
+ xMinutes: {
75
+ one: "1 minute",
76
+ other: "{{count}} minutes"
77
+ },
78
+ aboutXHours: {
79
+ one: "about 1 hour",
80
+ other: "about {{count}} hours"
81
+ },
82
+ xHours: {
83
+ one: "1 hour",
84
+ other: "{{count}} hours"
85
+ },
86
+ xDays: {
87
+ one: "1 day",
88
+ other: "{{count}} days"
89
+ },
90
+ aboutXWeeks: {
91
+ one: "about 1 week",
92
+ other: "about {{count}} weeks"
93
+ },
94
+ xWeeks: {
95
+ one: "1 week",
96
+ other: "{{count}} weeks"
97
+ },
98
+ aboutXMonths: {
99
+ one: "about 1 month",
100
+ other: "about {{count}} months"
101
+ },
102
+ xMonths: {
103
+ one: "1 month",
104
+ other: "{{count}} months"
105
+ },
106
+ aboutXYears: {
107
+ one: "about 1 year",
108
+ other: "about {{count}} years"
109
+ },
110
+ xYears: {
111
+ one: "1 year",
112
+ other: "{{count}} years"
113
+ },
114
+ overXYears: {
115
+ one: "over 1 year",
116
+ other: "over {{count}} years"
117
+ },
118
+ almostXYears: {
119
+ one: "almost 1 year",
120
+ other: "almost {{count}} years"
121
+ }
122
+ }, ye = (e, t, n) => {
123
+ let a;
124
+ const r = ge[e];
125
+ return typeof r == "string" ? a = r : t === 1 ? a = r.one : a = r.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
126
+ };
127
+ function F(e) {
128
+ return (t = {}) => {
129
+ const n = t.width ? String(t.width) : e.defaultWidth;
130
+ return e.formats[n] || e.formats[e.defaultWidth];
131
+ };
132
+ }
133
+ const ve = {
134
+ full: "EEEE, MMMM do, y",
135
+ long: "MMMM do, y",
136
+ medium: "MMM d, y",
137
+ short: "MM/dd/yyyy"
138
+ }, we = {
139
+ full: "h:mm:ss a zzzz",
140
+ long: "h:mm:ss a z",
141
+ medium: "h:mm:ss a",
142
+ short: "h:mm a"
143
+ }, be = {
144
+ full: "{{date}} 'at' {{time}}",
145
+ long: "{{date}} 'at' {{time}}",
146
+ medium: "{{date}}, {{time}}",
147
+ short: "{{date}}, {{time}}"
148
+ }, ke = {
149
+ date: F({
150
+ formats: ve,
151
+ defaultWidth: "full"
152
+ }),
153
+ time: F({
154
+ formats: we,
155
+ defaultWidth: "full"
156
+ }),
157
+ dateTime: F({
158
+ formats: be,
159
+ defaultWidth: "full"
160
+ })
161
+ }, xe = {
162
+ lastWeek: "'last' eeee 'at' p",
163
+ yesterday: "'yesterday at' p",
164
+ today: "'today at' p",
165
+ tomorrow: "'tomorrow at' p",
166
+ nextWeek: "eeee 'at' p",
167
+ other: "P"
168
+ }, Oe = (e, t, n, a) => xe[e];
169
+ function W(e) {
170
+ return (t, n) => {
171
+ const a = n != null && n.context ? String(n.context) : "standalone";
172
+ let r;
173
+ if (a === "formatting" && e.formattingValues) {
174
+ const s = e.defaultFormattingWidth || e.defaultWidth, d = n != null && n.width ? String(n.width) : s;
175
+ r = e.formattingValues[d] || e.formattingValues[s];
176
+ } else {
177
+ const s = e.defaultWidth, d = n != null && n.width ? String(n.width) : e.defaultWidth;
178
+ r = e.values[d] || e.values[s];
179
+ }
180
+ const i = e.argumentCallback ? e.argumentCallback(t) : t;
181
+ return r[i];
182
+ };
183
+ }
184
+ const Pe = {
185
+ narrow: ["B", "A"],
186
+ abbreviated: ["BC", "AD"],
187
+ wide: ["Before Christ", "Anno Domini"]
188
+ }, Me = {
189
+ narrow: ["1", "2", "3", "4"],
190
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
191
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
192
+ }, $e = {
193
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
194
+ abbreviated: [
195
+ "Jan",
196
+ "Feb",
197
+ "Mar",
198
+ "Apr",
199
+ "May",
200
+ "Jun",
201
+ "Jul",
202
+ "Aug",
203
+ "Sep",
204
+ "Oct",
205
+ "Nov",
206
+ "Dec"
207
+ ],
208
+ wide: [
209
+ "January",
210
+ "February",
211
+ "March",
212
+ "April",
213
+ "May",
214
+ "June",
215
+ "July",
216
+ "August",
217
+ "September",
218
+ "October",
219
+ "November",
220
+ "December"
221
+ ]
222
+ }, De = {
223
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
224
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
225
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
226
+ wide: [
227
+ "Sunday",
228
+ "Monday",
229
+ "Tuesday",
230
+ "Wednesday",
231
+ "Thursday",
232
+ "Friday",
233
+ "Saturday"
234
+ ]
235
+ }, Te = {
236
+ narrow: {
237
+ am: "a",
238
+ pm: "p",
239
+ midnight: "mi",
240
+ noon: "n",
241
+ morning: "morning",
242
+ afternoon: "afternoon",
243
+ evening: "evening",
244
+ night: "night"
245
+ },
246
+ abbreviated: {
247
+ am: "AM",
248
+ pm: "PM",
249
+ midnight: "midnight",
250
+ noon: "noon",
251
+ morning: "morning",
252
+ afternoon: "afternoon",
253
+ evening: "evening",
254
+ night: "night"
255
+ },
256
+ wide: {
257
+ am: "a.m.",
258
+ pm: "p.m.",
259
+ midnight: "midnight",
260
+ noon: "noon",
261
+ morning: "morning",
262
+ afternoon: "afternoon",
263
+ evening: "evening",
264
+ night: "night"
265
+ }
266
+ }, Se = {
267
+ narrow: {
268
+ am: "a",
269
+ pm: "p",
270
+ midnight: "mi",
271
+ noon: "n",
272
+ morning: "in the morning",
273
+ afternoon: "in the afternoon",
274
+ evening: "in the evening",
275
+ night: "at night"
276
+ },
277
+ abbreviated: {
278
+ am: "AM",
279
+ pm: "PM",
280
+ midnight: "midnight",
281
+ noon: "noon",
282
+ morning: "in the morning",
283
+ afternoon: "in the afternoon",
284
+ evening: "in the evening",
285
+ night: "at night"
286
+ },
287
+ wide: {
288
+ am: "a.m.",
289
+ pm: "p.m.",
290
+ midnight: "midnight",
291
+ noon: "noon",
292
+ morning: "in the morning",
293
+ afternoon: "in the afternoon",
294
+ evening: "in the evening",
295
+ night: "at night"
296
+ }
297
+ }, Re = (e, t) => {
298
+ const n = Number(e), a = n % 100;
299
+ if (a > 20 || a < 10)
300
+ switch (a % 10) {
301
+ case 1:
302
+ return n + "st";
303
+ case 2:
304
+ return n + "nd";
305
+ case 3:
306
+ return n + "rd";
307
+ }
308
+ return n + "th";
309
+ }, Ce = {
310
+ ordinalNumber: Re,
311
+ era: W({
312
+ values: Pe,
313
+ defaultWidth: "wide"
314
+ }),
315
+ quarter: W({
316
+ values: Me,
317
+ defaultWidth: "wide",
318
+ argumentCallback: (e) => e - 1
319
+ }),
320
+ month: W({
321
+ values: $e,
322
+ defaultWidth: "wide"
323
+ }),
324
+ day: W({
325
+ values: De,
326
+ defaultWidth: "wide"
327
+ }),
328
+ dayPeriod: W({
329
+ values: Te,
330
+ defaultWidth: "wide",
331
+ formattingValues: Se,
332
+ defaultFormattingWidth: "wide"
333
+ })
334
+ };
335
+ function E(e) {
336
+ return (t, n = {}) => {
337
+ const a = n.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
338
+ if (!i)
339
+ return null;
340
+ const s = i[0], d = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(d) ? Ee(d, (l) => l.test(s)) : (
341
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
342
+ We(d, (l) => l.test(s))
343
+ );
344
+ let v;
345
+ v = e.valueCallback ? e.valueCallback(g) : g, v = n.valueCallback ? (
346
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
347
+ n.valueCallback(v)
348
+ ) : v;
349
+ const x = t.slice(s.length);
350
+ return { value: v, rest: x };
351
+ };
352
+ }
353
+ function We(e, t) {
354
+ for (const n in e)
355
+ if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
356
+ return n;
357
+ }
358
+ function Ee(e, t) {
359
+ for (let n = 0; n < e.length; n++)
360
+ if (t(e[n]))
361
+ return n;
362
+ }
363
+ function _e(e) {
364
+ return (t, n = {}) => {
365
+ const a = t.match(e.matchPattern);
366
+ if (!a) return null;
367
+ const r = a[0], i = t.match(e.parsePattern);
368
+ if (!i) return null;
369
+ let s = e.valueCallback ? e.valueCallback(i[0]) : i[0];
370
+ s = n.valueCallback ? n.valueCallback(s) : s;
371
+ const d = t.slice(r.length);
372
+ return { value: s, rest: d };
373
+ };
374
+ }
375
+ const Ye = /^(\d+)(th|st|nd|rd)?/i, qe = /\d+/i, Fe = {
376
+ narrow: /^(b|a)/i,
377
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
378
+ wide: /^(before christ|before common era|anno domini|common era)/i
379
+ }, Ie = {
380
+ any: [/^b/i, /^(a|c)/i]
381
+ }, Ne = {
382
+ narrow: /^[1234]/i,
383
+ abbreviated: /^q[1234]/i,
384
+ wide: /^[1234](th|st|nd|rd)? quarter/i
385
+ }, Ae = {
386
+ any: [/1/i, /2/i, /3/i, /4/i]
387
+ }, Be = {
388
+ narrow: /^[jfmasond]/i,
389
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
390
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
391
+ }, He = {
392
+ narrow: [
393
+ /^j/i,
394
+ /^f/i,
395
+ /^m/i,
396
+ /^a/i,
397
+ /^m/i,
398
+ /^j/i,
399
+ /^j/i,
400
+ /^a/i,
401
+ /^s/i,
402
+ /^o/i,
403
+ /^n/i,
404
+ /^d/i
405
+ ],
406
+ any: [
407
+ /^ja/i,
408
+ /^f/i,
409
+ /^mar/i,
410
+ /^ap/i,
411
+ /^may/i,
412
+ /^jun/i,
413
+ /^jul/i,
414
+ /^au/i,
415
+ /^s/i,
416
+ /^o/i,
417
+ /^n/i,
418
+ /^d/i
419
+ ]
420
+ }, je = {
421
+ narrow: /^[smtwf]/i,
422
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
423
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
424
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
425
+ }, Ve = {
426
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
427
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
428
+ }, Le = {
429
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
430
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
431
+ }, Qe = {
432
+ any: {
433
+ am: /^a/i,
434
+ pm: /^p/i,
435
+ midnight: /^mi/i,
436
+ noon: /^no/i,
437
+ morning: /morning/i,
438
+ afternoon: /afternoon/i,
439
+ evening: /evening/i,
440
+ night: /night/i
441
+ }
442
+ }, Xe = {
443
+ ordinalNumber: _e({
444
+ matchPattern: Ye,
445
+ parsePattern: qe,
446
+ valueCallback: (e) => parseInt(e, 10)
447
+ }),
448
+ era: E({
449
+ matchPatterns: Fe,
450
+ defaultMatchWidth: "wide",
451
+ parsePatterns: Ie,
452
+ defaultParseWidth: "any"
453
+ }),
454
+ quarter: E({
455
+ matchPatterns: Ne,
456
+ defaultMatchWidth: "wide",
457
+ parsePatterns: Ae,
458
+ defaultParseWidth: "any",
459
+ valueCallback: (e) => e + 1
460
+ }),
461
+ month: E({
462
+ matchPatterns: Be,
463
+ defaultMatchWidth: "wide",
464
+ parsePatterns: He,
465
+ defaultParseWidth: "any"
466
+ }),
467
+ day: E({
468
+ matchPatterns: je,
469
+ defaultMatchWidth: "wide",
470
+ parsePatterns: Ve,
471
+ defaultParseWidth: "any"
472
+ }),
473
+ dayPeriod: E({
474
+ matchPatterns: Le,
475
+ defaultMatchWidth: "any",
476
+ parsePatterns: Qe,
477
+ defaultParseWidth: "any"
478
+ })
479
+ }, Ge = {
480
+ code: "en-US",
481
+ formatDistance: ye,
482
+ formatLong: ke,
483
+ formatRelative: Oe,
484
+ localize: Ce,
485
+ match: Xe,
486
+ options: {
487
+ weekStartsOn: 0,
488
+ firstWeekContainsDate: 1
489
+ }
490
+ };
491
+ function Ue(e) {
492
+ const t = k(e);
493
+ return ce(t, pe(t)) + 1;
494
+ }
495
+ function Je(e) {
496
+ const t = k(e), n = +Y(t) - +he(t);
497
+ return Math.round(n / oe) + 1;
498
+ }
499
+ function o(e, t) {
500
+ const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(t, "0");
501
+ return n + a;
502
+ }
503
+ const b = {
504
+ // Year
505
+ y(e, t) {
506
+ const n = e.getFullYear(), a = n > 0 ? n : 1 - n;
507
+ return o(t === "yy" ? a % 100 : a, t.length);
508
+ },
509
+ // Month
510
+ M(e, t) {
511
+ const n = e.getMonth();
512
+ return t === "M" ? String(n + 1) : o(n + 1, 2);
513
+ },
514
+ // Day of the month
515
+ d(e, t) {
516
+ return o(e.getDate(), t.length);
517
+ },
518
+ // AM or PM
519
+ a(e, t) {
520
+ const n = e.getHours() / 12 >= 1 ? "pm" : "am";
521
+ switch (t) {
522
+ case "a":
523
+ case "aa":
524
+ return n.toUpperCase();
525
+ case "aaa":
526
+ return n;
527
+ case "aaaaa":
528
+ return n[0];
529
+ case "aaaa":
530
+ default:
531
+ return n === "am" ? "a.m." : "p.m.";
532
+ }
533
+ },
534
+ // Hour [1-12]
535
+ h(e, t) {
536
+ return o(e.getHours() % 12 || 12, t.length);
537
+ },
538
+ // Hour [0-23]
539
+ H(e, t) {
540
+ return o(e.getHours(), t.length);
541
+ },
542
+ // Minute
543
+ m(e, t) {
544
+ return o(e.getMinutes(), t.length);
545
+ },
546
+ // Second
547
+ s(e, t) {
548
+ return o(e.getSeconds(), t.length);
549
+ },
550
+ // Fraction of second
551
+ S(e, t) {
552
+ const n = t.length, a = e.getMilliseconds(), r = Math.trunc(
553
+ a * Math.pow(10, n - 3)
554
+ );
555
+ return o(r, t.length);
556
+ }
557
+ }, T = {
558
+ am: "am",
559
+ pm: "pm",
560
+ midnight: "midnight",
561
+ noon: "noon",
562
+ morning: "morning",
563
+ afternoon: "afternoon",
564
+ evening: "evening",
565
+ night: "night"
566
+ }, H = {
567
+ // Era
568
+ G: function(e, t, n) {
569
+ const a = e.getFullYear() > 0 ? 1 : 0;
570
+ switch (t) {
571
+ case "G":
572
+ case "GG":
573
+ case "GGG":
574
+ return n.era(a, { width: "abbreviated" });
575
+ case "GGGGG":
576
+ return n.era(a, { width: "narrow" });
577
+ case "GGGG":
578
+ default:
579
+ return n.era(a, { width: "wide" });
580
+ }
581
+ },
582
+ // Year
583
+ y: function(e, t, n) {
584
+ if (t === "yo") {
585
+ const a = e.getFullYear(), r = a > 0 ? a : 1 - a;
586
+ return n.ordinalNumber(r, { unit: "year" });
587
+ }
588
+ return b.y(e, t);
589
+ },
590
+ // Local week-numbering year
591
+ Y: function(e, t, n, a) {
592
+ const r = ue(e, a), i = r > 0 ? r : 1 - r;
593
+ if (t === "YY") {
594
+ const s = i % 100;
595
+ return o(s, 2);
596
+ }
597
+ return t === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : o(i, t.length);
598
+ },
599
+ // ISO week-numbering year
600
+ R: function(e, t) {
601
+ const n = U(e);
602
+ return o(n, t.length);
603
+ },
604
+ // Extended year. This is a single number designating the year of this calendar system.
605
+ // The main difference between `y` and `u` localizers are B.C. years:
606
+ // | Year | `y` | `u` |
607
+ // |------|-----|-----|
608
+ // | AC 1 | 1 | 1 |
609
+ // | BC 1 | 1 | 0 |
610
+ // | BC 2 | 2 | -1 |
611
+ // Also `yy` always returns the last two digits of a year,
612
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
613
+ u: function(e, t) {
614
+ const n = e.getFullYear();
615
+ return o(n, t.length);
616
+ },
617
+ // Quarter
618
+ Q: function(e, t, n) {
619
+ const a = Math.ceil((e.getMonth() + 1) / 3);
620
+ switch (t) {
621
+ case "Q":
622
+ return String(a);
623
+ case "QQ":
624
+ return o(a, 2);
625
+ case "Qo":
626
+ return n.ordinalNumber(a, { unit: "quarter" });
627
+ case "QQQ":
628
+ return n.quarter(a, {
629
+ width: "abbreviated",
630
+ context: "formatting"
631
+ });
632
+ case "QQQQQ":
633
+ return n.quarter(a, {
634
+ width: "narrow",
635
+ context: "formatting"
636
+ });
637
+ case "QQQQ":
638
+ default:
639
+ return n.quarter(a, {
640
+ width: "wide",
641
+ context: "formatting"
642
+ });
643
+ }
644
+ },
645
+ // Stand-alone quarter
646
+ q: function(e, t, n) {
647
+ const a = Math.ceil((e.getMonth() + 1) / 3);
648
+ switch (t) {
649
+ case "q":
650
+ return String(a);
651
+ case "qq":
652
+ return o(a, 2);
653
+ case "qo":
654
+ return n.ordinalNumber(a, { unit: "quarter" });
655
+ case "qqq":
656
+ return n.quarter(a, {
657
+ width: "abbreviated",
658
+ context: "standalone"
659
+ });
660
+ case "qqqqq":
661
+ return n.quarter(a, {
662
+ width: "narrow",
663
+ context: "standalone"
664
+ });
665
+ case "qqqq":
666
+ default:
667
+ return n.quarter(a, {
668
+ width: "wide",
669
+ context: "standalone"
670
+ });
671
+ }
672
+ },
673
+ // Month
674
+ M: function(e, t, n) {
675
+ const a = e.getMonth();
676
+ switch (t) {
677
+ case "M":
678
+ case "MM":
679
+ return b.M(e, t);
680
+ case "Mo":
681
+ return n.ordinalNumber(a + 1, { unit: "month" });
682
+ case "MMM":
683
+ return n.month(a, {
684
+ width: "abbreviated",
685
+ context: "formatting"
686
+ });
687
+ case "MMMMM":
688
+ return n.month(a, {
689
+ width: "narrow",
690
+ context: "formatting"
691
+ });
692
+ case "MMMM":
693
+ default:
694
+ return n.month(a, { width: "wide", context: "formatting" });
695
+ }
696
+ },
697
+ // Stand-alone month
698
+ L: function(e, t, n) {
699
+ const a = e.getMonth();
700
+ switch (t) {
701
+ case "L":
702
+ return String(a + 1);
703
+ case "LL":
704
+ return o(a + 1, 2);
705
+ case "Lo":
706
+ return n.ordinalNumber(a + 1, { unit: "month" });
707
+ case "LLL":
708
+ return n.month(a, {
709
+ width: "abbreviated",
710
+ context: "standalone"
711
+ });
712
+ case "LLLLL":
713
+ return n.month(a, {
714
+ width: "narrow",
715
+ context: "standalone"
716
+ });
717
+ case "LLLL":
718
+ default:
719
+ return n.month(a, { width: "wide", context: "standalone" });
720
+ }
721
+ },
722
+ // Local week of year
723
+ w: function(e, t, n, a) {
724
+ const r = le(e, a);
725
+ return t === "wo" ? n.ordinalNumber(r, { unit: "week" }) : o(r, t.length);
726
+ },
727
+ // ISO week of year
728
+ I: function(e, t, n) {
729
+ const a = Je(e);
730
+ return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : o(a, t.length);
731
+ },
732
+ // Day of the month
733
+ d: function(e, t, n) {
734
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : b.d(e, t);
735
+ },
736
+ // Day of year
737
+ D: function(e, t, n) {
738
+ const a = Ue(e);
739
+ return t === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : o(a, t.length);
740
+ },
741
+ // Day of week
742
+ E: function(e, t, n) {
743
+ const a = e.getDay();
744
+ switch (t) {
745
+ case "E":
746
+ case "EE":
747
+ case "EEE":
748
+ return n.day(a, {
749
+ width: "abbreviated",
750
+ context: "formatting"
751
+ });
752
+ case "EEEEE":
753
+ return n.day(a, {
754
+ width: "narrow",
755
+ context: "formatting"
756
+ });
757
+ case "EEEEEE":
758
+ return n.day(a, {
759
+ width: "short",
760
+ context: "formatting"
761
+ });
762
+ case "EEEE":
763
+ default:
764
+ return n.day(a, {
765
+ width: "wide",
766
+ context: "formatting"
767
+ });
768
+ }
769
+ },
770
+ // Local day of week
771
+ e: function(e, t, n, a) {
772
+ const r = e.getDay(), i = (r - a.weekStartsOn + 8) % 7 || 7;
773
+ switch (t) {
774
+ case "e":
775
+ return String(i);
776
+ case "ee":
777
+ return o(i, 2);
778
+ case "eo":
779
+ return n.ordinalNumber(i, { unit: "day" });
780
+ case "eee":
781
+ return n.day(r, {
782
+ width: "abbreviated",
783
+ context: "formatting"
784
+ });
785
+ case "eeeee":
786
+ return n.day(r, {
787
+ width: "narrow",
788
+ context: "formatting"
789
+ });
790
+ case "eeeeee":
791
+ return n.day(r, {
792
+ width: "short",
793
+ context: "formatting"
794
+ });
795
+ case "eeee":
796
+ default:
797
+ return n.day(r, {
798
+ width: "wide",
799
+ context: "formatting"
800
+ });
801
+ }
802
+ },
803
+ // Stand-alone local day of week
804
+ c: function(e, t, n, a) {
805
+ const r = e.getDay(), i = (r - a.weekStartsOn + 8) % 7 || 7;
806
+ switch (t) {
807
+ case "c":
808
+ return String(i);
809
+ case "cc":
810
+ return o(i, t.length);
811
+ case "co":
812
+ return n.ordinalNumber(i, { unit: "day" });
813
+ case "ccc":
814
+ return n.day(r, {
815
+ width: "abbreviated",
816
+ context: "standalone"
817
+ });
818
+ case "ccccc":
819
+ return n.day(r, {
820
+ width: "narrow",
821
+ context: "standalone"
822
+ });
823
+ case "cccccc":
824
+ return n.day(r, {
825
+ width: "short",
826
+ context: "standalone"
827
+ });
828
+ case "cccc":
829
+ default:
830
+ return n.day(r, {
831
+ width: "wide",
832
+ context: "standalone"
833
+ });
834
+ }
835
+ },
836
+ // ISO day of week
837
+ i: function(e, t, n) {
838
+ const a = e.getDay(), r = a === 0 ? 7 : a;
839
+ switch (t) {
840
+ case "i":
841
+ return String(r);
842
+ case "ii":
843
+ return o(r, t.length);
844
+ case "io":
845
+ return n.ordinalNumber(r, { unit: "day" });
846
+ case "iii":
847
+ return n.day(a, {
848
+ width: "abbreviated",
849
+ context: "formatting"
850
+ });
851
+ case "iiiii":
852
+ return n.day(a, {
853
+ width: "narrow",
854
+ context: "formatting"
855
+ });
856
+ case "iiiiii":
857
+ return n.day(a, {
858
+ width: "short",
859
+ context: "formatting"
860
+ });
861
+ case "iiii":
862
+ default:
863
+ return n.day(a, {
864
+ width: "wide",
865
+ context: "formatting"
866
+ });
867
+ }
868
+ },
869
+ // AM or PM
870
+ a: function(e, t, n) {
871
+ const r = e.getHours() / 12 >= 1 ? "pm" : "am";
872
+ switch (t) {
873
+ case "a":
874
+ case "aa":
875
+ return n.dayPeriod(r, {
876
+ width: "abbreviated",
877
+ context: "formatting"
878
+ });
879
+ case "aaa":
880
+ return n.dayPeriod(r, {
881
+ width: "abbreviated",
882
+ context: "formatting"
883
+ }).toLowerCase();
884
+ case "aaaaa":
885
+ return n.dayPeriod(r, {
886
+ width: "narrow",
887
+ context: "formatting"
888
+ });
889
+ case "aaaa":
890
+ default:
891
+ return n.dayPeriod(r, {
892
+ width: "wide",
893
+ context: "formatting"
894
+ });
895
+ }
896
+ },
897
+ // AM, PM, midnight, noon
898
+ b: function(e, t, n) {
899
+ const a = e.getHours();
900
+ let r;
901
+ switch (a === 12 ? r = T.noon : a === 0 ? r = T.midnight : r = a / 12 >= 1 ? "pm" : "am", t) {
902
+ case "b":
903
+ case "bb":
904
+ return n.dayPeriod(r, {
905
+ width: "abbreviated",
906
+ context: "formatting"
907
+ });
908
+ case "bbb":
909
+ return n.dayPeriod(r, {
910
+ width: "abbreviated",
911
+ context: "formatting"
912
+ }).toLowerCase();
913
+ case "bbbbb":
914
+ return n.dayPeriod(r, {
915
+ width: "narrow",
916
+ context: "formatting"
917
+ });
918
+ case "bbbb":
919
+ default:
920
+ return n.dayPeriod(r, {
921
+ width: "wide",
922
+ context: "formatting"
923
+ });
924
+ }
925
+ },
926
+ // in the morning, in the afternoon, in the evening, at night
927
+ B: function(e, t, n) {
928
+ const a = e.getHours();
929
+ let r;
930
+ switch (a >= 17 ? r = T.evening : a >= 12 ? r = T.afternoon : a >= 4 ? r = T.morning : r = T.night, t) {
931
+ case "B":
932
+ case "BB":
933
+ case "BBB":
934
+ return n.dayPeriod(r, {
935
+ width: "abbreviated",
936
+ context: "formatting"
937
+ });
938
+ case "BBBBB":
939
+ return n.dayPeriod(r, {
940
+ width: "narrow",
941
+ context: "formatting"
942
+ });
943
+ case "BBBB":
944
+ default:
945
+ return n.dayPeriod(r, {
946
+ width: "wide",
947
+ context: "formatting"
948
+ });
949
+ }
950
+ },
951
+ // Hour [1-12]
952
+ h: function(e, t, n) {
953
+ if (t === "ho") {
954
+ let a = e.getHours() % 12;
955
+ return a === 0 && (a = 12), n.ordinalNumber(a, { unit: "hour" });
956
+ }
957
+ return b.h(e, t);
958
+ },
959
+ // Hour [0-23]
960
+ H: function(e, t, n) {
961
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : b.H(e, t);
962
+ },
963
+ // Hour [0-11]
964
+ K: function(e, t, n) {
965
+ const a = e.getHours() % 12;
966
+ return t === "Ko" ? n.ordinalNumber(a, { unit: "hour" }) : o(a, t.length);
967
+ },
968
+ // Hour [1-24]
969
+ k: function(e, t, n) {
970
+ let a = e.getHours();
971
+ return a === 0 && (a = 24), t === "ko" ? n.ordinalNumber(a, { unit: "hour" }) : o(a, t.length);
972
+ },
973
+ // Minute
974
+ m: function(e, t, n) {
975
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : b.m(e, t);
976
+ },
977
+ // Second
978
+ s: function(e, t, n) {
979
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : b.s(e, t);
980
+ },
981
+ // Fraction of second
982
+ S: function(e, t) {
983
+ return b.S(e, t);
984
+ },
985
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
986
+ X: function(e, t, n) {
987
+ const a = e.getTimezoneOffset();
988
+ if (a === 0)
989
+ return "Z";
990
+ switch (t) {
991
+ case "X":
992
+ return V(a);
993
+ case "XXXX":
994
+ case "XX":
995
+ return D(a);
996
+ case "XXXXX":
997
+ case "XXX":
998
+ default:
999
+ return D(a, ":");
1000
+ }
1001
+ },
1002
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1003
+ x: function(e, t, n) {
1004
+ const a = e.getTimezoneOffset();
1005
+ switch (t) {
1006
+ case "x":
1007
+ return V(a);
1008
+ case "xxxx":
1009
+ case "xx":
1010
+ return D(a);
1011
+ case "xxxxx":
1012
+ case "xxx":
1013
+ default:
1014
+ return D(a, ":");
1015
+ }
1016
+ },
1017
+ // Timezone (GMT)
1018
+ O: function(e, t, n) {
1019
+ const a = e.getTimezoneOffset();
1020
+ switch (t) {
1021
+ case "O":
1022
+ case "OO":
1023
+ case "OOO":
1024
+ return "GMT" + j(a, ":");
1025
+ case "OOOO":
1026
+ default:
1027
+ return "GMT" + D(a, ":");
1028
+ }
1029
+ },
1030
+ // Timezone (specific non-location)
1031
+ z: function(e, t, n) {
1032
+ const a = e.getTimezoneOffset();
1033
+ switch (t) {
1034
+ case "z":
1035
+ case "zz":
1036
+ case "zzz":
1037
+ return "GMT" + j(a, ":");
1038
+ case "zzzz":
1039
+ default:
1040
+ return "GMT" + D(a, ":");
1041
+ }
1042
+ },
1043
+ // Seconds timestamp
1044
+ t: function(e, t, n) {
1045
+ const a = Math.trunc(e.getTime() / 1e3);
1046
+ return o(a, t.length);
1047
+ },
1048
+ // Milliseconds timestamp
1049
+ T: function(e, t, n) {
1050
+ const a = e.getTime();
1051
+ return o(a, t.length);
1052
+ }
1053
+ };
1054
+ function j(e, t = "") {
1055
+ const n = e > 0 ? "-" : "+", a = Math.abs(e), r = Math.trunc(a / 60), i = a % 60;
1056
+ return i === 0 ? n + String(r) : n + String(r) + t + o(i, 2);
1057
+ }
1058
+ function V(e, t) {
1059
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + o(Math.abs(e) / 60, 2) : D(e, t);
1060
+ }
1061
+ function D(e, t = "") {
1062
+ const n = e > 0 ? "-" : "+", a = Math.abs(e), r = o(Math.trunc(a / 60), 2), i = o(a % 60, 2);
1063
+ return n + r + t + i;
1064
+ }
1065
+ const L = (e, t) => {
1066
+ switch (e) {
1067
+ case "P":
1068
+ return t.date({ width: "short" });
1069
+ case "PP":
1070
+ return t.date({ width: "medium" });
1071
+ case "PPP":
1072
+ return t.date({ width: "long" });
1073
+ case "PPPP":
1074
+ default:
1075
+ return t.date({ width: "full" });
1076
+ }
1077
+ }, J = (e, t) => {
1078
+ switch (e) {
1079
+ case "p":
1080
+ return t.time({ width: "short" });
1081
+ case "pp":
1082
+ return t.time({ width: "medium" });
1083
+ case "ppp":
1084
+ return t.time({ width: "long" });
1085
+ case "pppp":
1086
+ default:
1087
+ return t.time({ width: "full" });
1088
+ }
1089
+ }, Ke = (e, t) => {
1090
+ const n = e.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
1091
+ if (!r)
1092
+ return L(e, t);
1093
+ let i;
1094
+ switch (a) {
1095
+ case "P":
1096
+ i = t.dateTime({ width: "short" });
1097
+ break;
1098
+ case "PP":
1099
+ i = t.dateTime({ width: "medium" });
1100
+ break;
1101
+ case "PPP":
1102
+ i = t.dateTime({ width: "long" });
1103
+ break;
1104
+ case "PPPP":
1105
+ default:
1106
+ i = t.dateTime({ width: "full" });
1107
+ break;
1108
+ }
1109
+ return i.replace("{{date}}", L(a, t)).replace("{{time}}", J(r, t));
1110
+ }, ze = {
1111
+ p: J,
1112
+ P: Ke
1113
+ }, Ze = /^D+$/, et = /^Y+$/, tt = ["D", "DD", "YY", "YYYY"];
1114
+ function nt(e) {
1115
+ return Ze.test(e);
1116
+ }
1117
+ function at(e) {
1118
+ return et.test(e);
1119
+ }
1120
+ function rt(e, t, n) {
1121
+ const a = it(e, t, n);
1122
+ if (console.warn(a), tt.includes(e)) throw new RangeError(a);
1123
+ }
1124
+ function it(e, t, n) {
1125
+ const a = e[0] === "Y" ? "years" : "days of the month";
1126
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1127
+ }
1128
+ const st = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ot = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ut = /^'([^]*?)'?$/, lt = /''/g, dt = /[a-zA-Z]/;
1129
+ function ct(e, t, n) {
1130
+ var x, l, f, h;
1131
+ const a = de(), r = a.locale ?? Ge, i = a.firstWeekContainsDate ?? ((l = (x = a.locale) == null ? void 0 : x.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, s = a.weekStartsOn ?? ((h = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, d = k(e);
1132
+ if (!fe(d))
1133
+ throw new RangeError("Invalid time value");
1134
+ let g = t.match(ot).map((u) => {
1135
+ const c = u[0];
1136
+ if (c === "p" || c === "P") {
1137
+ const O = ze[c];
1138
+ return O(u, r.formatLong);
1139
+ }
1140
+ return u;
1141
+ }).join("").match(st).map((u) => {
1142
+ if (u === "''")
1143
+ return { isToken: !1, value: "'" };
1144
+ const c = u[0];
1145
+ if (c === "'")
1146
+ return { isToken: !1, value: ht(u) };
1147
+ if (H[c])
1148
+ return { isToken: !0, value: u };
1149
+ if (c.match(dt))
1150
+ throw new RangeError(
1151
+ "Format string contains an unescaped latin alphabet character `" + c + "`"
1152
+ );
1153
+ return { isToken: !1, value: u };
1154
+ });
1155
+ r.localize.preprocessor && (g = r.localize.preprocessor(d, g));
1156
+ const v = {
1157
+ firstWeekContainsDate: i,
1158
+ weekStartsOn: s,
1159
+ locale: r
1160
+ };
1161
+ return g.map((u) => {
1162
+ if (!u.isToken) return u.value;
1163
+ const c = u.value;
1164
+ (at(c) || nt(c)) && rt(c, t, String(e));
1165
+ const O = H[c[0]];
1166
+ return O(d, c, r.localize, v);
1167
+ }).join("");
1168
+ }
1169
+ function ht(e) {
1170
+ const t = e.match(ut);
1171
+ return t ? t[1].replace(lt, "'") : e;
1172
+ }
1173
+ /**
1174
+ * @license
1175
+ * Copyright 2017 Google LLC
1176
+ * SPDX-License-Identifier: BSD-3-Clause
1177
+ */
1178
+ const Q = (e, t, n) => {
1179
+ const a = /* @__PURE__ */ new Map();
1180
+ for (let r = t; r <= n; r++) a.set(e[r], r);
1181
+ return a;
1182
+ }, mt = Z(class extends ee {
1183
+ constructor(e) {
1184
+ if (super(e), e.type !== te.CHILD) throw Error("repeat() can only be used in text expressions");
1185
+ }
1186
+ dt(e, t, n) {
1187
+ let a;
1188
+ n === void 0 ? n = t : t !== void 0 && (a = t);
1189
+ const r = [], i = [];
1190
+ let s = 0;
1191
+ for (const d of e) r[s] = a ? a(d, s) : s, i[s] = n(d, s), s++;
1192
+ return { values: i, keys: r };
1193
+ }
1194
+ render(e, t, n) {
1195
+ return this.dt(e, t, n).values;
1196
+ }
1197
+ update(e, [t, n, a]) {
1198
+ const r = ae(e), { values: i, keys: s } = this.dt(t, n, a);
1199
+ if (!Array.isArray(r)) return this.ut = s, i;
1200
+ const d = this.ut ?? (this.ut = []), g = [];
1201
+ let v, x, l = 0, f = r.length - 1, h = 0, u = i.length - 1;
1202
+ for (; l <= f && h <= u; ) if (r[l] === null) l++;
1203
+ else if (r[f] === null) f--;
1204
+ else if (d[l] === s[h]) g[h] = M(r[l], i[h]), l++, h++;
1205
+ else if (d[f] === s[u]) g[u] = M(r[f], i[u]), f--, u--;
1206
+ else if (d[l] === s[u]) g[u] = M(r[l], i[u]), S(e, g[u + 1], r[l]), l++, u--;
1207
+ else if (d[f] === s[h]) g[h] = M(r[f], i[h]), S(e, r[l], r[f]), f--, h++;
1208
+ else if (v === void 0 && (v = Q(s, h, u), x = Q(d, l, f)), v.has(d[l])) if (v.has(d[f])) {
1209
+ const c = x.get(s[h]), O = c !== void 0 ? r[c] : null;
1210
+ if (O === null) {
1211
+ const I = S(e, r[l]);
1212
+ M(I, i[h]), g[h] = I;
1213
+ } else g[h] = M(O, i[h]), S(e, r[l], O), r[c] = null;
1214
+ h++;
1215
+ } else q(r[f]), f--;
1216
+ else q(r[l]), l++;
1217
+ for (; h <= u; ) {
1218
+ const c = S(e, g[u + 1]);
1219
+ M(c, i[h]), g[h++] = c;
1220
+ }
1221
+ for (; l <= f; ) {
1222
+ const c = r[l++];
1223
+ c !== null && q(c);
1224
+ }
1225
+ return this.ut = s, re(e, g), K;
1226
+ }
1227
+ }), ft = "pkt-datepicker", pt = !0, gt = {
1228
+ name: {
1229
+ type: "string",
1230
+ name: "Navn",
1231
+ description: "Navn som sendes brukes i skjema ved innsending"
1232
+ },
1233
+ label: {
1234
+ type: "string",
1235
+ name: "Etikett",
1236
+ description: "Tekst som vises over datovelgeren"
1237
+ },
1238
+ helptext: {
1239
+ type: "string",
1240
+ name: "Hjelpetekst",
1241
+ description: "Hjelpetekst som vises over datovelgeren"
1242
+ },
1243
+ helptextDropdown: {
1244
+ type: "string",
1245
+ name: "Utvidet hjelpetekst",
1246
+ description: "Hjelpetekst som vises i en lukket boks man kan åpne"
1247
+ },
1248
+ helptextDropdownButton: {
1249
+ type: "string",
1250
+ name: "Knappetekst for hjelpetekst",
1251
+ description: "Tekst som vises på knappen for å åpne/lukke utvidet hjelpetekst",
1252
+ default: "Les mer"
1253
+ },
1254
+ dateformat: {
1255
+ name: "Datoformat",
1256
+ description: "Datoformat for valgte datoer i flervalgsmodus",
1257
+ type: "string",
1258
+ default: "dd.MM.yyyy"
1259
+ },
1260
+ currentmonth: {
1261
+ name: "Nåværende måned",
1262
+ type: "ISOdatestring",
1263
+ description: "Måneden som skal vises i datovelgeren"
1264
+ },
1265
+ value: {
1266
+ name: "Verdi",
1267
+ type: "ISOdatestring",
1268
+ variant: "multiple",
1269
+ reflect: !0,
1270
+ description: "Kommaseparert liste av valgte datoer"
1271
+ },
1272
+ excludeweekdays: {
1273
+ name: "Utelat ukedager",
1274
+ type: "string",
1275
+ description: "Kommaseparert liste over ukedager (1-7) som skal ekskluderes"
1276
+ },
1277
+ excludedates: {
1278
+ name: "Utelat datoer",
1279
+ type: "ISOdatestring",
1280
+ variant: "multiple",
1281
+ description: "Kommaseparert liste over datoer som skal ekskluderes"
1282
+ },
1283
+ min: {
1284
+ name: "Tidligst tillatt",
1285
+ type: "ISOdatestring",
1286
+ default: null,
1287
+ description: "Første tillate dato i datovelgeren"
1288
+ },
1289
+ max: {
1290
+ name: "Senest tillatt",
1291
+ type: "ISOdatestring",
1292
+ default: null,
1293
+ description: "Siste tillate dato i datovelgeren"
1294
+ },
1295
+ weeknumbers: {
1296
+ name: "Vis ukenummer",
1297
+ type: "boolean",
1298
+ reflect: !0,
1299
+ default: !1,
1300
+ description: "Vis ukedager i datovelgerens kalender"
1301
+ },
1302
+ withcontrols: {
1303
+ name: "Med kontroller",
1304
+ type: "boolean",
1305
+ reflect: !0,
1306
+ default: !1,
1307
+ description: "Vis avanserte velgere for måned og år"
1308
+ },
1309
+ multiple: {
1310
+ name: "Flervalg",
1311
+ type: "boolean",
1312
+ reflect: !0,
1313
+ default: !1,
1314
+ description: "Tillat valg av flere enn én dato i samme velger"
1315
+ },
1316
+ maxlength: {
1317
+ name: "Maks antall",
1318
+ description: "Maks valgte datoer i flervalgsmodus",
1319
+ type: "number",
1320
+ default: 4
1321
+ },
1322
+ range: {
1323
+ name: "Datotidsrom",
1324
+ type: "boolean",
1325
+ reflect: !0,
1326
+ default: !1,
1327
+ description: "Tillat å velge et tidsrom mellom to datoer i samme velger"
1328
+ },
1329
+ hasError: {
1330
+ type: "boolean",
1331
+ name: "Feil",
1332
+ description: "Viser feiltilstand for datovelgeren"
1333
+ },
1334
+ errorMessage: {
1335
+ type: "string",
1336
+ name: "Feilmelding",
1337
+ description: "Tekst som vises under datovelgeren ved feiltilstand"
1338
+ },
1339
+ disabled: {
1340
+ type: "boolean",
1341
+ name: "Deaktivert",
1342
+ default: !1,
1343
+ reflect: !0,
1344
+ description: "Er datovelgeren deaktivert?"
1345
+ },
1346
+ fullwidth: {
1347
+ type: "boolean",
1348
+ name: "Full bredde",
1349
+ default: !1,
1350
+ reflect: !0,
1351
+ description: "Skal datovelgeren ta opp hele bredden?"
1352
+ },
1353
+ required: {
1354
+ type: "boolean",
1355
+ name: "Påkrevd",
1356
+ default: !1,
1357
+ reflect: !0,
1358
+ description: "Er datovelgeren påkrevd?"
1359
+ },
1360
+ requiredTag: {
1361
+ type: "boolean",
1362
+ name: "Vise påkrevd-merking",
1363
+ default: !1,
1364
+ description: "Viser en merking som indikerer at datovelgeren er påkrevd"
1365
+ },
1366
+ requiredText: {
1367
+ type: "string",
1368
+ name: "Påkrevd-tekst",
1369
+ default: "Må fylles ut",
1370
+ description: "Tekst som vises i påkrevd-merkingen"
1371
+ },
1372
+ optionalTag: {
1373
+ type: "boolean",
1374
+ name: "Vise valgfritt-merking",
1375
+ default: !1,
1376
+ description: "Viser en merking som indikerer at datovelgeren er valgfri"
1377
+ },
1378
+ optionalText: {
1379
+ type: "string",
1380
+ name: "Valgfritt-tekst",
1381
+ default: "Valgfritt",
1382
+ description: "Tekst som vises i valgfritt-merkingen"
1383
+ },
1384
+ id: {
1385
+ type: "string",
1386
+ name: "ID",
1387
+ description: "Unik identifikasjon for datovelgeren"
1388
+ }
1389
+ }, yt = {
1390
+ change: {
1391
+ description: "Returnerer kommaseparert liste av valgte datoer i ISO-format"
1392
+ },
1393
+ "value-changed": {
1394
+ description: "Returnerer en <code>array</code> med valgte datoer i ISO-format"
1395
+ },
1396
+ toggleHelpText: {
1397
+ description: "Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"
1398
+ }
1399
+ }, w = {
1400
+ name: ft,
1401
+ "css-class": "pkt-datepicker",
1402
+ isElement: pt,
1403
+ props: gt,
1404
+ events: yt
1405
+ };
1406
+ var vt = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, p = (e, t, n, a) => {
1407
+ for (var r = a > 1 ? void 0 : a ? wt(t, n) : t, i = e.length - 1, s; i >= 0; i--)
1408
+ (s = e[i]) && (r = (a ? s(t, n, r) : s(r)) || r);
1409
+ return a && r && vt(t, n, r), r;
1410
+ };
1411
+ const X = (e) => new Promise((t) => setTimeout(t, e));
1412
+ let m = class extends z {
1413
+ constructor() {
1414
+ super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = w.props.helptextDropdownButton.default, this.dateformat = w.props.dateformat.default, this.multiple = w.props.multiple.default, this.maxlength = w.props.maxlength.default, this.range = w.props.range.default, this.weeknumbers = w.props.weeknumbers.default, this.withcontrols = w.props.withcontrols.default, this.fullwidth = !1, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = this.formatISODate(/* @__PURE__ */ new Date()), this.calendarOpen = !1, this.inputRef = R(), this.inputRefTo = R(), this.btnRef = R(), this.calRef = R(), this.popupRef = R(), this.inputClasses = {
1415
+ "pkt-input": !0,
1416
+ "pkt-datepicker__input": !0,
1417
+ "pkt-input--fullwidth": this.fullwidth
1418
+ }, this.buttonClasses = {
1419
+ "pkt-input-icon": !0,
1420
+ "pkt-btn": !0,
1421
+ "pkt-btn--icon-only": !0,
1422
+ "pkt-btn--tertiary": !0
1423
+ }, this.fromISOToDate = (e) => {
1424
+ if (!e)
1425
+ return null;
1426
+ const t = new Date(e);
1427
+ return t.setHours(12, 0, 0, 0), isNaN(t.getTime()) ? null : t;
1428
+ }, this.fromISOtoLocal = (e) => {
1429
+ const t = new Date(e);
1430
+ return isNaN(t.getTime()) ? "" : ct(t, this.dateformat);
1431
+ }, this.massageDates = (e) => {
1432
+ const t = e.map((n) => n ?? void 0);
1433
+ return this.multiple ? t : this.range ? t.slice(0, 2) : [t[0]];
1434
+ }, this.addToSelected = (e) => {
1435
+ const t = e.target, n = this.min ? new Date(this.min) : null, a = this.max ? new Date(this.max) : null, r = new Date(t.value.split(",")[0]);
1436
+ r.setHours(12, 0, 0, 0), r && !isNaN(r.getTime()) && (!n || r >= n) && (!a || r <= a) && this.calRef.value && this.calRef.value.handleDateSelect(r), t.value = "", this.requestUpdate("value");
1437
+ };
1438
+ }
1439
+ /**
1440
+ * Housekeeping / lifecycle methods
1441
+ */
1442
+ async connectedCallback() {
1443
+ super.connectedCallback(), document && document.body.addEventListener("click", (e) => {
1444
+ var t, n;
1445
+ (t = this.inputRef) != null && t.value && ((n = this.btnRef) != null && n.value) && !this.inputRef.value.contains(e.target) && !(this.inputRefTo.value && this.inputRefTo.value.contains(e.target)) && !this.btnRef.value.contains(e.target) && !e.target.closest(".pkt-calendar-popup") && this.hideCalendar();
1446
+ }), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min || w.props.min.default, this.max = this.max || w.props.max.default, typeof this.excludedates == "string" && (this.excludedates = this.excludedates.split(",")), typeof this.excludeweekdays == "string" && (this.excludeweekdays = this.excludeweekdays.split(",")), (this.multiple || this.range) && this.name && !this.name.endsWith("[]") && (this.name = this.name + "[]"), this.calendarOpen && (await X(20), this.handleCalendarPosition());
1447
+ }
1448
+ disconnectedCallback() {
1449
+ super.disconnectedCallback(), document && document.body.removeEventListener("click", (e) => {
1450
+ var t, n;
1451
+ (t = this.inputRef) != null && t.value && ((n = this.btnRef) != null && n.value) && !this.inputRef.value.contains(e.target) && !this.btnRef.value.contains(e.target) && this.hideCalendar();
1452
+ });
1453
+ }
1454
+ attributeChangedCallback(e, t, n) {
1455
+ var a, r;
1456
+ if (super.attributeChangedCallback(e, t, n), e === "value") {
1457
+ if (this.value === "" || this.value.length === 0)
1458
+ this._value = [];
1459
+ else if (this.value.length && this._value.length === 0) {
1460
+ const i = Array.isArray(this.value) ? this.value : this.value.split(",");
1461
+ for (const s of i)
1462
+ s && !this._value.includes(s) && ((r = (a = this.calRef) == null ? void 0 : a.value) == null || r.handleDateSelect(this.fromISOToDate(s)));
1463
+ }
1464
+ this.requestUpdate("value");
1465
+ }
1466
+ e === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = (n == null ? void 0 : n.split(",")) ?? []), e === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = (n == null ? void 0 : n.split(",")) ?? []);
1467
+ }
1468
+ updated(e) {
1469
+ if (super.updated(e), e.has("value")) {
1470
+ if (this.range && this._value.length === 1)
1471
+ return;
1472
+ this.onInput(this.value);
1473
+ }
1474
+ }
1475
+ /**
1476
+ * Date value manipulation
1477
+ */
1478
+ formatISODate(e) {
1479
+ return e.toISOString().split("T")[0];
1480
+ }
1481
+ renderInput() {
1482
+ return P`
1483
+ <input
1484
+ class="${C(this.inputClasses)}"
1485
+ type="date"
1486
+ id="${this.id}-input"
1487
+ name="${this.name}"
1488
+ .value=${this.value}
1489
+ min=${this.min}
1490
+ max=${this.max}
1491
+ @focus=${this.showCalendar}
1492
+ @click=${(e) => {
1493
+ e.preventDefault();
1494
+ }}
1495
+ ?disabled=${this.disabled}
1496
+ @blur=${(e) => {
1497
+ this.manageValidity(e.target), this.value = e.target.value, this._value = this.massageDates(e.target.value.split(","));
1498
+ }}
1499
+ @change=${(e) => {
1500
+ e.stopImmediatePropagation();
1501
+ }}
1502
+ ${$(this.inputRef)}
1503
+ />
1504
+ `;
1505
+ }
1506
+ renderRangeInput() {
1507
+ return P`
1508
+ <div class="pkt-input-prefix">Fra</div>
1509
+ <input
1510
+ class=${C(this.inputClasses)}
1511
+ type="date"
1512
+ id="${this.id}-input"
1513
+ name="${this.name}"
1514
+ .value=${this._value[0] ?? ""}
1515
+ min=${this.min}
1516
+ max=${this.max}
1517
+ @focus=${this.showCalendar}
1518
+ @click=${(e) => {
1519
+ e.preventDefault();
1520
+ }}
1521
+ ?disabled=${this.disabled}
1522
+ @blur=${(e) => {
1523
+ var t, n;
1524
+ if (e.target.value) {
1525
+ this.manageValidity(e.target);
1526
+ const a = this.fromISOToDate(e.target.value);
1527
+ a && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(a));
1528
+ }
1529
+ }}
1530
+ @change=${(e) => {
1531
+ e.stopImmediatePropagation();
1532
+ }}
1533
+ ${$(this.inputRef)}
1534
+ />
1535
+ <div class="pkt-input-prefix">Til</div>
1536
+ <input
1537
+ class=${C(this.inputClasses)}
1538
+ type="date"
1539
+ id="${this.id}-to"
1540
+ name="${this.name}-to"
1541
+ .value=${this._value[1] ?? ""}
1542
+ min=${this.min}
1543
+ max=${this.max}
1544
+ @focus=${this.showCalendar}
1545
+ @click=${(e) => {
1546
+ e.preventDefault();
1547
+ }}
1548
+ ?disabled=${this.disabled}
1549
+ @blur=${(e) => {
1550
+ var t, n;
1551
+ if (e.target.value) {
1552
+ this.manageValidity(e.target);
1553
+ const a = e.target.value;
1554
+ this.min && this.min > a ? this.internals.setValidity(
1555
+ { rangeUnderflow: !0 },
1556
+ this.strings.forms.messages.rangeUnderflow,
1557
+ e.target
1558
+ ) : this.max && this.max < a && this.internals.setValidity(
1559
+ { rangeOverflow: !0 },
1560
+ this.strings.forms.messages.rangeOverflow,
1561
+ e.target
1562
+ );
1563
+ const r = this.fromISOToDate(e.target.value);
1564
+ r && this._value[1] !== this.formatISODate(r) && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(r));
1565
+ }
1566
+ }}
1567
+ @change=${(e) => {
1568
+ e.stopImmediatePropagation();
1569
+ }}
1570
+ ${$(this.inputRefTo)}
1571
+ />
1572
+ `;
1573
+ }
1574
+ renderMultipleInput() {
1575
+ return P`
1576
+ <input
1577
+ class=${C(this.inputClasses)}
1578
+ type="date"
1579
+ id="${this.id}-input"
1580
+ name="${this.name}"
1581
+ min=${this.min}
1582
+ max=${this.max}
1583
+ @focus=${this.showCalendar}
1584
+ @click=${(e) => {
1585
+ e.preventDefault();
1586
+ }}
1587
+ @blur=${(e) => {
1588
+ this.addToSelected(e);
1589
+ }}
1590
+ @keydown=${(e) => {
1591
+ (e.key === "," || e.key === "Enter") && (e.preventDefault(), this.addToSelected(e));
1592
+ }}
1593
+ ?disabled=${this.disabled || this.maxlength && this._value.length >= this.maxlength}
1594
+ @change=${(e) => {
1595
+ e.stopImmediatePropagation();
1596
+ }}
1597
+ ${$(this.inputRef)}
1598
+ />
1599
+ `;
1600
+ }
1601
+ renderTags() {
1602
+ return P`
1603
+ <div class="pkt-datepicker__tags" aria-live="polite">
1604
+ ${this._value[0] ? mt(
1605
+ this._value ?? [],
1606
+ (e) => e,
1607
+ (e) => P`
1608
+ <pkt-tag
1609
+ .id="${this.id + e + "-tag"}"
1610
+ closeTag
1611
+ @onClose=${() => {
1612
+ var t;
1613
+ return (t = this.calRef.value) == null ? void 0 : t.handleDateSelect(this.fromISOToDate(e));
1614
+ }}
1615
+ >${this.fromISOtoLocal(e)}</pkt-tag
1616
+ >
1617
+ `
1618
+ ) : N}
1619
+ </div>
1620
+ `;
1621
+ }
1622
+ renderCalendar() {
1623
+ return P`<div
1624
+ class="pkt-calendar-popup pkt-${this.calendarOpen ? "show" : "hide"}"
1625
+ @focusout=${this.handleFocusOut}
1626
+ id="${this.id}-popup"
1627
+ ${$(this.popupRef)}
1628
+ >
1629
+ <pkt-calendar
1630
+ ?multiple=${this.multiple}
1631
+ ?range=${this.range}
1632
+ ?weeknumbers=${this.weeknumbers}
1633
+ ?withcontrols=${this.withcontrols}
1634
+ ?focused=${this.calendarOpen}
1635
+ .maxMultiple=${this.maxlength}
1636
+ .selected=${this._value}
1637
+ .earliest=${this.min}
1638
+ .latest=${this.max}
1639
+ .excludedates=${Array.isArray(this.excludedates) ? this.excludedates : this.excludedates.split(",")}
1640
+ .excludeweekdays=${this.excludeweekdays}
1641
+ .currentmonth=${new Date(this.currentmonth)}
1642
+ @date-selected=${(e) => {
1643
+ this.value = !this.multiple && !this.range ? Array.isArray(e.detail) ? e.detail[0] : e.detail.split(",")[0] : e.detail, this._value = e.detail, this.inputRef.value && (this.range && this.inputRefTo.value ? (this.inputRef.value.value = this._value[0] ?? "", this.inputRefTo.value.value = this._value[1] ?? "") : this.multiple || (this.inputRef.value.value = this._value.length ? this._value[0] : ""));
1644
+ }}
1645
+ @close=${this.hideCalendar}
1646
+ ${$(this.calRef)}
1647
+ ></pkt-calendar>
1648
+ </div>`;
1649
+ }
1650
+ render() {
1651
+ return P`
1652
+ <pkt-input-wrapper
1653
+ label="${this.label}"
1654
+ forId="${this.id}-input"
1655
+ ?counter=${this.multiple && !!this.maxlength}
1656
+ .counterCurrent=${this.value ? this._value.length : 0}
1657
+ .counterMaxLength=${this.maxlength}
1658
+ ?disabled=${this.disabled}
1659
+ ?hasError=${this.hasError}
1660
+ ?required=${this.required}
1661
+ ?optionalTag=${this.optionalTag}
1662
+ ?requiredTag=${this.requiredTag}
1663
+ .optionalText=${this.optionalText}
1664
+ .requiredText=${this.requiredText}
1665
+ .errorMessage=${this.errorMessage}
1666
+ .helptext=${this.helptext}
1667
+ .helptextDropdown=${this.helptextDropdown}
1668
+ .helptextDropdownButton=${this.helptextDropdownButton}
1669
+ class="pkt-datepicker"
1670
+ >
1671
+ ${this.multiple ? this.renderTags() : N}
1672
+ <div class="pkt-datepicker__inputs ${this.range ? "pkt-input__range-inputs" : ""}">
1673
+ <div class="pkt-input__container">
1674
+ ${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
1675
+ <button
1676
+ class="${C(this.buttonClasses)}"
1677
+ @click=${this.toggleCalendar}
1678
+ ${$(this.btnRef)}
1679
+ >
1680
+ <pkt-icon name="calendar"></pkt-icon>
1681
+ <span class="pkt-btn__text">${this.strings.calendar.buttonAltText}</span>
1682
+ </button>
1683
+ </div>
1684
+ </div>
1685
+ </pkt-input-wrapper>
1686
+ ${this.renderCalendar()}
1687
+ `;
1688
+ }
1689
+ /**
1690
+ * Handlers
1691
+ */
1692
+ handleCalendarPosition() {
1693
+ var e;
1694
+ if (this.popupRef.value && this.inputRef.value) {
1695
+ const t = this.multiple && !!this.maxlength, n = ((e = this.inputRef.value.parentElement) == null ? void 0 : e.getBoundingClientRect()) || this.inputRef.value.getBoundingClientRect(), a = t ? n.height + 30 : n.height, r = this.popupRef.value.getBoundingClientRect().height;
1696
+ let i = t ? "calc(100% - 30px)" : "100%";
1697
+ n && n.top + r > window.innerHeight && n.top - r > 0 && (i = `calc(100% - ${a}px - ${r}px)`), this.popupRef.value.style.top = i;
1698
+ }
1699
+ }
1700
+ handleFocusOut(e) {
1701
+ this.contains(e.target) || this.hideCalendar();
1702
+ }
1703
+ async showCalendar() {
1704
+ this.calendarOpen = !0, await X(20), this.handleCalendarPosition();
1705
+ }
1706
+ hideCalendar() {
1707
+ this.calendarOpen = !1;
1708
+ }
1709
+ toggleCalendar(e) {
1710
+ e.preventDefault(), this.calendarOpen ? this.hideCalendar() : this.showCalendar();
1711
+ }
1712
+ };
1713
+ p([
1714
+ y({ type: String, reflect: !0 })
1715
+ ], m.prototype, "value", 2);
1716
+ p([
1717
+ y({ type: Array, reflect: !1 })
1718
+ ], m.prototype, "_value", 2);
1719
+ p([
1720
+ y({ type: String, reflect: !0 })
1721
+ ], m.prototype, "label", 2);
1722
+ p([
1723
+ y({ type: String, reflect: !0 })
1724
+ ], m.prototype, "helptext", 2);
1725
+ p([
1726
+ y({ type: String, reflect: !0 })
1727
+ ], m.prototype, "helptextDropdown", 2);
1728
+ p([
1729
+ y({ type: String, reflect: !0 })
1730
+ ], m.prototype, "helptextDropdownButton", 2);
1731
+ p([
1732
+ y({ type: String, reflect: !0 })
1733
+ ], m.prototype, "dateformat", 2);
1734
+ p([
1735
+ y({ type: Boolean, reflect: !0 })
1736
+ ], m.prototype, "multiple", 2);
1737
+ p([
1738
+ y({ type: Number })
1739
+ ], m.prototype, "maxlength", 2);
1740
+ p([
1741
+ y({ type: Boolean, reflect: !0 })
1742
+ ], m.prototype, "range", 2);
1743
+ p([
1744
+ y({ type: Boolean, reflect: !0 })
1745
+ ], m.prototype, "weeknumbers", 2);
1746
+ p([
1747
+ y({ type: Boolean, reflect: !0 })
1748
+ ], m.prototype, "withcontrols", 2);
1749
+ p([
1750
+ y({ type: Boolean, reflect: !0 })
1751
+ ], m.prototype, "fullwidth", 2);
1752
+ p([
1753
+ y({ converter: G.csvToArray })
1754
+ ], m.prototype, "excludedates", 2);
1755
+ p([
1756
+ y({ converter: G.csvToArray })
1757
+ ], m.prototype, "excludeweekdays", 2);
1758
+ p([
1759
+ y({ type: String, reflect: !0 })
1760
+ ], m.prototype, "currentmonth", 2);
1761
+ p([
1762
+ y({ type: Boolean, reflect: !0 })
1763
+ ], m.prototype, "calendarOpen", 2);
1764
+ m = p([
1765
+ ne("pkt-datepicker")
1766
+ ], m);
1767
+ export {
1768
+ m as PktDatepicker
1769
+ };