@oslokommune/punkt-elements 13.15.2 → 13.15.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 (78) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/{calendar-DtJh7UYD.js → calendar-Bz27nuTP.js} +161 -158
  3. package/dist/calendar-Dz1Cnzx5.cjs +115 -0
  4. package/dist/{checkbox-_5LbXU7N.js → checkbox-CCFBIf44.js} +21 -21
  5. package/dist/checkbox-UT6D1Wi0.cjs +31 -0
  6. package/dist/{combobox-BX1YbDHV.cjs → combobox-6WP1urZS.cjs} +1 -1
  7. package/dist/{combobox-BdDZU1bk.js → combobox-CtHgl1n2.js} +3 -3
  8. package/dist/{datepicker-C4joeEiQ.cjs → datepicker-DEO1C69C.cjs} +47 -47
  9. package/dist/{datepicker-lnxklOi4.js → datepicker-q9haFM81.js} +178 -203
  10. package/dist/{helptext-DuvVSH7d.js → helptext-Cs3QHeEy.js} +1 -1
  11. package/dist/helptext-EPTR9AIl.cjs +24 -0
  12. package/dist/{input-element-BcFmygSF.js → input-element-Dqu8udwd.js} +1 -1
  13. package/dist/input-element-KUsQQ-1d.cjs +1 -0
  14. package/dist/{input-wrapper-D9kFsTCN.cjs → input-wrapper-B-Qseywc.cjs} +2 -2
  15. package/dist/{input-wrapper-CiqUL7my.js → input-wrapper-Wu3Yv-bn.js} +2 -2
  16. package/dist/{listbox-CsGiqzD0.cjs → listbox-DnoqOo5u.cjs} +1 -1
  17. package/dist/{listbox-DlJevu8O.js → listbox-mvKKzH-v.js} +1 -1
  18. package/dist/pkt-calendar.cjs +1 -1
  19. package/dist/pkt-calendar.js +1 -1
  20. package/dist/pkt-checkbox.cjs +1 -1
  21. package/dist/pkt-checkbox.js +1 -1
  22. package/dist/pkt-combobox.cjs +1 -1
  23. package/dist/pkt-combobox.js +1 -1
  24. package/dist/pkt-datepicker.cjs +1 -1
  25. package/dist/pkt-datepicker.js +2 -2
  26. package/dist/pkt-helptext.cjs +1 -1
  27. package/dist/pkt-helptext.js +1 -1
  28. package/dist/pkt-index.cjs +1 -1
  29. package/dist/pkt-index.js +12 -12
  30. package/dist/pkt-input-wrapper.cjs +1 -1
  31. package/dist/pkt-input-wrapper.js +1 -1
  32. package/dist/pkt-listbox.cjs +1 -1
  33. package/dist/pkt-listbox.js +1 -1
  34. package/dist/pkt-progressbar.cjs +1 -1
  35. package/dist/pkt-progressbar.js +2 -2
  36. package/dist/pkt-radiobutton.cjs +1 -1
  37. package/dist/pkt-radiobutton.js +1 -1
  38. package/dist/pkt-select.cjs +1 -1
  39. package/dist/pkt-select.js +1 -1
  40. package/dist/pkt-textarea.cjs +1 -1
  41. package/dist/pkt-textarea.js +1 -1
  42. package/dist/pkt-textinput.cjs +1 -1
  43. package/dist/pkt-textinput.js +1 -1
  44. package/dist/{progressbar-CazcIzVT.cjs → progressbar-8gzOtJyh.cjs} +1 -1
  45. package/dist/{progressbar-BbVei20_.js → progressbar-kxcBEspG.js} +1 -1
  46. package/dist/{radiobutton-DODROIBF.js → radiobutton-DuAo3CdN.js} +1 -1
  47. package/dist/{radiobutton-D1fihs8R.cjs → radiobutton-FwxpKELo.cjs} +1 -1
  48. package/dist/{select-D7Ne5gv0.cjs → select-BbmLn1qh.cjs} +1 -1
  49. package/dist/{select-_KoHkDbx.js → select-wak-jukY.js} +2 -2
  50. package/dist/{textarea-DuOBX5is.js → textarea-CIb4VWtN.js} +2 -2
  51. package/dist/{textarea-CYHYvdCf.cjs → textarea-CzN0E0TV.cjs} +1 -1
  52. package/dist/{textinput-CrcXv_is.js → textinput-D5_RTkRY.js} +2 -2
  53. package/dist/{textinput-DYVtoRMy.cjs → textinput-D8v6D6ie.cjs} +1 -1
  54. package/dist/utils-DznhwRXm.js +8 -0
  55. package/dist/utils-byXsEz1u.cjs +1 -0
  56. package/package.json +2 -4
  57. package/src/components/calendar/calendar.constraints.test.ts +1 -1
  58. package/src/components/calendar/calendar.core.test.ts +1 -1
  59. package/src/components/calendar/calendar.selection.test.ts +1 -1
  60. package/src/components/calendar/calendar.ts +1 -1
  61. package/src/components/checkbox/checkbox.ts +5 -0
  62. package/src/components/datepicker/date-tags.ts +4 -4
  63. package/src/components/datepicker/datepicker-multiple.ts +3 -2
  64. package/src/components/datepicker/datepicker-range.ts +4 -3
  65. package/src/components/datepicker/datepicker-single.ts +3 -2
  66. package/src/components/datepicker/datepicker-utils.ts +7 -69
  67. package/src/components/datepicker/datepicker.core.test.ts +1 -1
  68. package/src/components/datepicker/datepicker.ts +11 -10
  69. package/src/components/helptext/helptext.ts +1 -1
  70. package/src/components/input-wrapper/input-wrapper.ts +1 -1
  71. package/src/components/listbox/listbox.ts +1 -1
  72. package/src/components/progressbar/progressbar.ts +1 -1
  73. package/dist/calendar-BaMrdMDZ.cjs +0 -115
  74. package/dist/checkbox-CTxc8wQe.cjs +0 -31
  75. package/dist/helptext-CVQP3pis.cjs +0 -24
  76. package/dist/input-element-j9znzLWz.cjs +0 -1
  77. package/dist/stringutils-CkVRq4jP.cjs +0 -1
  78. package/dist/stringutils-DJjRa8dG.js +0 -7
@@ -1,10 +1,10 @@
1
- import { e as tt } from "./class-map-wy7PUk0P.js";
1
+ import { e as et } from "./class-map-wy7PUk0P.js";
2
2
  import { P as bt, E as Q, x as D, n as y, a as kt } from "./element-CRDRygXu.js";
3
3
  import { r as U } from "./state-DS_kr2Fy.js";
4
4
  import "./icon-1dy7UZcu.js";
5
- const ut = 6048e5, Dt = 864e5, et = Symbol.for("constructDateFrom");
5
+ const ut = 6048e5, Dt = 864e5, nt = Symbol.for("constructDateFrom");
6
6
  function v(t, e) {
7
- return typeof t == "function" ? t(e) : t && typeof t == "object" && et in t ? t[et](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
7
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && nt in t ? t[nt](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
8
8
  }
9
9
  function k(t, e) {
10
10
  return v(e || t, t);
@@ -33,7 +33,7 @@ function ht(t, e) {
33
33
  const o = q(i);
34
34
  return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= o.getTime() ? r : r - 1;
35
35
  }
36
- function nt(t) {
36
+ function rt(t) {
37
37
  const e = k(t), n = new Date(
38
38
  Date.UTC(
39
39
  e.getFullYear(),
@@ -54,7 +54,7 @@ function dt(t, ...e) {
54
54
  );
55
55
  return e.map(n);
56
56
  }
57
- function rt(t, e) {
57
+ function K(t, e) {
58
58
  const n = k(t, e == null ? void 0 : e.in);
59
59
  return n.setHours(0, 0, 0, 0), n;
60
60
  }
@@ -63,7 +63,7 @@ function Mt(t, e, n) {
63
63
  n == null ? void 0 : n.in,
64
64
  t,
65
65
  e
66
- ), s = rt(r), i = rt(a), o = +s - nt(s), c = +i - nt(i);
66
+ ), s = K(r), i = K(a), o = +s - rt(s), c = +i - rt(i);
67
67
  return Math.round((o - c) / Dt);
68
68
  }
69
69
  function vt(t, e) {
@@ -77,11 +77,15 @@ function xt(t) {
77
77
  return !(!Tt(t) && typeof t != "number" || isNaN(+k(t)));
78
78
  }
79
79
  function Ot(t, e) {
80
+ const n = k(t, e == null ? void 0 : e.in);
81
+ return n.setHours(23, 59, 59, 999), n;
82
+ }
83
+ function Pt(t, e) {
80
84
  const [n, r] = dt(t, e.start, e.end);
81
85
  return { start: n, end: r };
82
86
  }
83
87
  function G(t, e) {
84
- const { start: n, end: r } = Ot(e == null ? void 0 : e.in, t);
88
+ const { start: n, end: r } = Pt(e == null ? void 0 : e.in, t);
85
89
  let a = +n > +r;
86
90
  const s = a ? +n : +r, i = a ? r : n;
87
91
  i.setHours(0, 0, 0, 0);
@@ -91,11 +95,11 @@ function G(t, e) {
91
95
  c.push(v(n, i)), i.setDate(i.getDate() + o), i.setHours(0, 0, 0, 0);
92
96
  return a ? c.reverse() : c;
93
97
  }
94
- function Pt(t, e) {
98
+ function Nt(t, e) {
95
99
  const n = k(t, e == null ? void 0 : e.in);
96
100
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
97
101
  }
98
- const Nt = {
102
+ const Ct = {
99
103
  lessThanXSeconds: {
100
104
  one: "less than a second",
101
105
  other: "less than {{count}} seconds"
@@ -159,7 +163,7 @@ const Nt = {
159
163
  }
160
164
  }, $t = (t, e, n) => {
161
165
  let r;
162
- const a = Nt[t];
166
+ const a = Ct[t];
163
167
  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;
164
168
  };
165
169
  function V(t) {
@@ -168,42 +172,42 @@ function V(t) {
168
172
  return t.formats[n] || t.formats[t.defaultWidth];
169
173
  };
170
174
  }
171
- const Ct = {
175
+ const _t = {
172
176
  full: "EEEE, MMMM do, y",
173
177
  long: "MMMM do, y",
174
178
  medium: "MMM d, y",
175
179
  short: "MM/dd/yyyy"
176
- }, _t = {
180
+ }, Et = {
177
181
  full: "h:mm:ss a zzzz",
178
182
  long: "h:mm:ss a z",
179
183
  medium: "h:mm:ss a",
180
184
  short: "h:mm a"
181
- }, Et = {
185
+ }, Wt = {
182
186
  full: "{{date}} 'at' {{time}}",
183
187
  long: "{{date}} 'at' {{time}}",
184
188
  medium: "{{date}}, {{time}}",
185
189
  short: "{{date}}, {{time}}"
186
- }, Wt = {
190
+ }, Yt = {
187
191
  date: V({
188
- formats: Ct,
192
+ formats: _t,
189
193
  defaultWidth: "full"
190
194
  }),
191
195
  time: V({
192
- formats: _t,
196
+ formats: Et,
193
197
  defaultWidth: "full"
194
198
  }),
195
199
  dateTime: V({
196
- formats: Et,
200
+ formats: Wt,
197
201
  defaultWidth: "full"
198
202
  })
199
- }, Yt = {
203
+ }, At = {
200
204
  lastWeek: "'last' eeee 'at' p",
201
205
  yesterday: "'yesterday at' p",
202
206
  today: "'today at' p",
203
207
  tomorrow: "'tomorrow at' p",
204
208
  nextWeek: "eeee 'at' p",
205
209
  other: "P"
206
- }, At = (t, e, n, r) => Yt[t];
210
+ }, Ft = (t, e, n, r) => At[t];
207
211
  function Y(t) {
208
212
  return (e, n) => {
209
213
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -219,15 +223,15 @@ function Y(t) {
219
223
  return a[s];
220
224
  };
221
225
  }
222
- const Ft = {
226
+ const Ht = {
223
227
  narrow: ["B", "A"],
224
228
  abbreviated: ["BC", "AD"],
225
229
  wide: ["Before Christ", "Anno Domini"]
226
- }, Ht = {
230
+ }, It = {
227
231
  narrow: ["1", "2", "3", "4"],
228
232
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
229
233
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
230
- }, It = {
234
+ }, Rt = {
231
235
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
232
236
  abbreviated: [
233
237
  "Jan",
@@ -257,7 +261,7 @@ const Ft = {
257
261
  "November",
258
262
  "December"
259
263
  ]
260
- }, Rt = {
264
+ }, Ut = {
261
265
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
262
266
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
263
267
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -270,7 +274,7 @@ const Ft = {
270
274
  "Friday",
271
275
  "Saturday"
272
276
  ]
273
- }, Ut = {
277
+ }, qt = {
274
278
  narrow: {
275
279
  am: "a",
276
280
  pm: "p",
@@ -301,7 +305,7 @@ const Ft = {
301
305
  evening: "evening",
302
306
  night: "night"
303
307
  }
304
- }, qt = {
308
+ }, Lt = {
305
309
  narrow: {
306
310
  am: "a",
307
311
  pm: "p",
@@ -332,7 +336,7 @@ const Ft = {
332
336
  evening: "in the evening",
333
337
  night: "at night"
334
338
  }
335
- }, Lt = (t, e) => {
339
+ }, Bt = (t, e) => {
336
340
  const n = Number(t), r = n % 100;
337
341
  if (r > 20 || r < 10)
338
342
  switch (r % 10) {
@@ -344,29 +348,29 @@ const Ft = {
344
348
  return n + "rd";
345
349
  }
346
350
  return n + "th";
347
- }, Bt = {
348
- ordinalNumber: Lt,
351
+ }, jt = {
352
+ ordinalNumber: Bt,
349
353
  era: Y({
350
- values: Ft,
354
+ values: Ht,
351
355
  defaultWidth: "wide"
352
356
  }),
353
357
  quarter: Y({
354
- values: Ht,
358
+ values: It,
355
359
  defaultWidth: "wide",
356
360
  argumentCallback: (t) => t - 1
357
361
  }),
358
362
  month: Y({
359
- values: It,
363
+ values: Rt,
360
364
  defaultWidth: "wide"
361
365
  }),
362
366
  day: Y({
363
- values: Rt,
367
+ values: Ut,
364
368
  defaultWidth: "wide"
365
369
  }),
366
370
  dayPeriod: Y({
367
- values: Ut,
371
+ values: qt,
368
372
  defaultWidth: "wide",
369
- formattingValues: qt,
373
+ formattingValues: Lt,
370
374
  defaultFormattingWidth: "wide"
371
375
  })
372
376
  };
@@ -375,9 +379,9 @@ function A(t) {
375
379
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], s = e.match(a);
376
380
  if (!s)
377
381
  return null;
378
- const i = s[0], o = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(o) ? zt(o, (m) => m.test(i)) : (
382
+ const i = s[0], o = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(o) ? Qt(o, (m) => m.test(i)) : (
379
383
  // [TODO] -- I challenge you to fix the type
380
- jt(o, (m) => m.test(i))
384
+ zt(o, (m) => m.test(i))
381
385
  );
382
386
  let l;
383
387
  l = t.valueCallback ? t.valueCallback(c) : c, l = n.valueCallback ? (
@@ -388,17 +392,17 @@ function A(t) {
388
392
  return { value: l, rest: d };
389
393
  };
390
394
  }
391
- function jt(t, e) {
395
+ function zt(t, e) {
392
396
  for (const n in t)
393
397
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
394
398
  return n;
395
399
  }
396
- function zt(t, e) {
400
+ function Qt(t, e) {
397
401
  for (let n = 0; n < t.length; n++)
398
402
  if (e(t[n]))
399
403
  return n;
400
404
  }
401
- function Qt(t) {
405
+ function Xt(t) {
402
406
  return (e, n = {}) => {
403
407
  const r = e.match(t.matchPattern);
404
408
  if (!r) return null;
@@ -410,23 +414,23 @@ function Qt(t) {
410
414
  return { value: i, rest: o };
411
415
  };
412
416
  }
413
- const Xt = /^(\d+)(th|st|nd|rd)?/i, Gt = /\d+/i, Vt = {
417
+ const Gt = /^(\d+)(th|st|nd|rd)?/i, Vt = /\d+/i, Jt = {
414
418
  narrow: /^(b|a)/i,
415
419
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
416
420
  wide: /^(before christ|before common era|anno domini|common era)/i
417
- }, Jt = {
418
- any: [/^b/i, /^(a|c)/i]
419
421
  }, Kt = {
422
+ any: [/^b/i, /^(a|c)/i]
423
+ }, Zt = {
420
424
  narrow: /^[1234]/i,
421
425
  abbreviated: /^q[1234]/i,
422
426
  wide: /^[1234](th|st|nd|rd)? quarter/i
423
- }, Zt = {
424
- any: [/1/i, /2/i, /3/i, /4/i]
425
427
  }, te = {
428
+ any: [/1/i, /2/i, /3/i, /4/i]
429
+ }, ee = {
426
430
  narrow: /^[jfmasond]/i,
427
431
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
428
432
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
429
- }, ee = {
433
+ }, ne = {
430
434
  narrow: [
431
435
  /^j/i,
432
436
  /^f/i,
@@ -455,18 +459,18 @@ const Xt = /^(\d+)(th|st|nd|rd)?/i, Gt = /\d+/i, Vt = {
455
459
  /^n/i,
456
460
  /^d/i
457
461
  ]
458
- }, ne = {
462
+ }, re = {
459
463
  narrow: /^[smtwf]/i,
460
464
  short: /^(su|mo|tu|we|th|fr|sa)/i,
461
465
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
462
466
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
463
- }, re = {
467
+ }, ae = {
464
468
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
465
469
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
466
- }, ae = {
470
+ }, se = {
467
471
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
468
472
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
469
- }, se = {
473
+ }, ie = {
470
474
  any: {
471
475
  am: /^a/i,
472
476
  pm: /^p/i,
@@ -477,60 +481,60 @@ const Xt = /^(\d+)(th|st|nd|rd)?/i, Gt = /\d+/i, Vt = {
477
481
  evening: /evening/i,
478
482
  night: /night/i
479
483
  }
480
- }, ie = {
481
- ordinalNumber: Qt({
482
- matchPattern: Xt,
483
- parsePattern: Gt,
484
+ }, oe = {
485
+ ordinalNumber: Xt({
486
+ matchPattern: Gt,
487
+ parsePattern: Vt,
484
488
  valueCallback: (t) => parseInt(t, 10)
485
489
  }),
486
490
  era: A({
487
- matchPatterns: Vt,
491
+ matchPatterns: Jt,
488
492
  defaultMatchWidth: "wide",
489
- parsePatterns: Jt,
493
+ parsePatterns: Kt,
490
494
  defaultParseWidth: "any"
491
495
  }),
492
496
  quarter: A({
493
- matchPatterns: Kt,
497
+ matchPatterns: Zt,
494
498
  defaultMatchWidth: "wide",
495
- parsePatterns: Zt,
499
+ parsePatterns: te,
496
500
  defaultParseWidth: "any",
497
501
  valueCallback: (t) => t + 1
498
502
  }),
499
503
  month: A({
500
- matchPatterns: te,
504
+ matchPatterns: ee,
501
505
  defaultMatchWidth: "wide",
502
- parsePatterns: ee,
506
+ parsePatterns: ne,
503
507
  defaultParseWidth: "any"
504
508
  }),
505
509
  day: A({
506
- matchPatterns: ne,
510
+ matchPatterns: re,
507
511
  defaultMatchWidth: "wide",
508
- parsePatterns: re,
512
+ parsePatterns: ae,
509
513
  defaultParseWidth: "any"
510
514
  }),
511
515
  dayPeriod: A({
512
- matchPatterns: ae,
516
+ matchPatterns: se,
513
517
  defaultMatchWidth: "any",
514
- parsePatterns: se,
518
+ parsePatterns: ie,
515
519
  defaultParseWidth: "any"
516
520
  })
517
- }, oe = {
521
+ }, ce = {
518
522
  code: "en-US",
519
523
  formatDistance: $t,
520
- formatLong: Wt,
521
- formatRelative: At,
522
- localize: Bt,
523
- match: ie,
524
+ formatLong: Yt,
525
+ formatRelative: Ft,
526
+ localize: jt,
527
+ match: oe,
524
528
  options: {
525
529
  weekStartsOn: 0,
526
530
  firstWeekContainsDate: 1
527
531
  }
528
532
  };
529
- function ce(t, e) {
533
+ function le(t, e) {
530
534
  const n = k(t, e == null ? void 0 : e.in);
531
- return Mt(n, Pt(n)) + 1;
535
+ return Mt(n, Nt(n)) + 1;
532
536
  }
533
- function le(t, e) {
537
+ function ue(t, e) {
534
538
  const n = k(t, e == null ? void 0 : e.in), r = +q(n) - +vt(n);
535
539
  return Math.round(r / ut) + 1;
536
540
  }
@@ -543,13 +547,13 @@ function ft(t, e) {
543
547
  const l = I(c, e);
544
548
  return +n >= +o ? r + 1 : +n >= +l ? r : r - 1;
545
549
  }
546
- function ue(t, e) {
550
+ function he(t, e) {
547
551
  var o, c, l, d;
548
552
  const n = L(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = ft(t, e), s = v((e == null ? void 0 : e.in) || t, 0);
549
553
  return s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0), I(s, e);
550
554
  }
551
555
  function mt(t, e) {
552
- const n = k(t, e == null ? void 0 : e.in), r = +I(n, e) - +ue(n, e);
556
+ const n = k(t, e == null ? void 0 : e.in), r = +I(n, e) - +he(n, e);
553
557
  return Math.round(r / ut) + 1;
554
558
  }
555
559
  function u(t, e) {
@@ -805,7 +809,7 @@ const T = {
805
809
  },
806
810
  // ISO week of year
807
811
  I: function(t, e, n) {
808
- const r = le(t);
812
+ const r = ue(t);
809
813
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
810
814
  },
811
815
  // Day of the month
@@ -814,7 +818,7 @@ const T = {
814
818
  },
815
819
  // Day of year
816
820
  D: function(t, e, n) {
817
- const r = ce(t);
821
+ const r = le(t);
818
822
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : u(r, e.length);
819
823
  },
820
824
  // Day of week
@@ -1207,7 +1211,7 @@ const ot = (t, e) => {
1207
1211
  default:
1208
1212
  return e.time({ width: "full" });
1209
1213
  }
1210
- }, he = (t, e) => {
1214
+ }, de = (t, e) => {
1211
1215
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1212
1216
  if (!a)
1213
1217
  return ot(t, e);
@@ -1228,46 +1232,46 @@ const ot = (t, e) => {
1228
1232
  break;
1229
1233
  }
1230
1234
  return s.replace("{{date}}", ot(r, e)).replace("{{time}}", gt(a, e));
1231
- }, de = {
1235
+ }, fe = {
1232
1236
  p: gt,
1233
- P: he
1234
- }, fe = /^D+$/, me = /^Y+$/, ge = ["D", "DD", "YY", "YYYY"];
1235
- function ye(t) {
1236
- return fe.test(t);
1237
- }
1237
+ P: de
1238
+ }, me = /^D+$/, ge = /^Y+$/, ye = ["D", "DD", "YY", "YYYY"];
1238
1239
  function pe(t) {
1239
1240
  return me.test(t);
1240
1241
  }
1241
- function we(t, e, n) {
1242
- const r = be(t, e, n);
1243
- if (console.warn(r), ge.includes(t)) throw new RangeError(r);
1242
+ function we(t) {
1243
+ return ge.test(t);
1244
1244
  }
1245
1245
  function be(t, e, n) {
1246
+ const r = ke(t, e, n);
1247
+ if (console.warn(r), ye.includes(t)) throw new RangeError(r);
1248
+ }
1249
+ function ke(t, e, n) {
1246
1250
  const r = t[0] === "Y" ? "years" : "days of the month";
1247
1251
  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`;
1248
1252
  }
1249
- const ke = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, De = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Se = /^'([^]*?)'?$/, Me = /''/g, ve = /[a-zA-Z]/;
1250
- function Te(t, e, n) {
1253
+ const De = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Se = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Me = /^'([^]*?)'?$/, ve = /''/g, Te = /[a-zA-Z]/;
1254
+ function xe(t, e, n) {
1251
1255
  var d, m, g, S;
1252
- const r = L(), a = r.locale ?? oe, s = r.firstWeekContainsDate ?? ((m = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = r.weekStartsOn ?? ((S = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : S.weekStartsOn) ?? 0, o = k(t, n == null ? void 0 : n.in);
1256
+ const r = L(), a = r.locale ?? ce, s = r.firstWeekContainsDate ?? ((m = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = r.weekStartsOn ?? ((S = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : S.weekStartsOn) ?? 0, o = k(t, n == null ? void 0 : n.in);
1253
1257
  if (!xt(o))
1254
1258
  throw new RangeError("Invalid time value");
1255
- let c = e.match(De).map((b) => {
1259
+ let c = e.match(Se).map((b) => {
1256
1260
  const w = b[0];
1257
1261
  if (w === "p" || w === "P") {
1258
- const W = de[w];
1262
+ const W = fe[w];
1259
1263
  return W(b, a.formatLong);
1260
1264
  }
1261
1265
  return b;
1262
- }).join("").match(ke).map((b) => {
1266
+ }).join("").match(De).map((b) => {
1263
1267
  if (b === "''")
1264
1268
  return { isToken: !1, value: "'" };
1265
1269
  const w = b[0];
1266
1270
  if (w === "'")
1267
- return { isToken: !1, value: xe(b) };
1271
+ return { isToken: !1, value: Oe(b) };
1268
1272
  if (at[w])
1269
1273
  return { isToken: !0, value: b };
1270
- if (w.match(ve))
1274
+ if (w.match(Te))
1271
1275
  throw new RangeError(
1272
1276
  "Format string contains an unescaped latin alphabet character `" + w + "`"
1273
1277
  );
@@ -1282,20 +1286,20 @@ function Te(t, e, n) {
1282
1286
  return c.map((b) => {
1283
1287
  if (!b.isToken) return b.value;
1284
1288
  const w = b.value;
1285
- (pe(w) || ye(w)) && we(w, e, String(t));
1289
+ (we(w) || pe(w)) && be(w, e, String(t));
1286
1290
  const W = at[w[0]];
1287
1291
  return W(o, w, a.localize, l);
1288
1292
  }).join("");
1289
1293
  }
1290
- function xe(t) {
1291
- const e = t.match(Se);
1292
- return e ? e[1].replace(Me, "'") : t;
1294
+ function Oe(t) {
1295
+ const e = t.match(Me);
1296
+ return e ? e[1].replace(ve, "'") : t;
1293
1297
  }
1294
- function Oe(t, e) {
1298
+ function Pe(t, e) {
1295
1299
  const n = k(t, e == null ? void 0 : e.in).getDay();
1296
1300
  return n === 0 ? 7 : n;
1297
1301
  }
1298
- function Pe(t, e, n = "long") {
1302
+ function Ne(t, e, n = "long") {
1299
1303
  return new Intl.DateTimeFormat("en-US", {
1300
1304
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
1301
1305
  hour: "numeric",
@@ -1304,7 +1308,7 @@ function Pe(t, e, n = "long") {
1304
1308
  }).format(e).split(/\s/g).slice(2).join(" ");
1305
1309
  }
1306
1310
  const J = {}, H = {};
1307
- function $(t, e) {
1311
+ function C(t, e) {
1308
1312
  try {
1309
1313
  const r = (J[t] || (J[t] = new Intl.DateTimeFormat("en-US", {
1310
1314
  timeZone: t,
@@ -1313,11 +1317,11 @@ function $(t, e) {
1313
1317
  return r in H ? H[r] : ct(r, r.split(":"));
1314
1318
  } catch {
1315
1319
  if (t in H) return H[t];
1316
- const n = t == null ? void 0 : t.match(Ne);
1320
+ const n = t == null ? void 0 : t.match(Ce);
1317
1321
  return n ? ct(t, n.slice(1)) : NaN;
1318
1322
  }
1319
1323
  }
1320
- const Ne = /([+-]\d\d):?(\d\d)?/;
1324
+ const Ce = /([+-]\d\d):?(\d\d)?/;
1321
1325
  function ct(t, e) {
1322
1326
  const n = +(e[0] || 0), r = +(e[1] || 0), a = +(e[2] || 0) / 60;
1323
1327
  return H[t] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
@@ -1325,7 +1329,7 @@ function ct(t, e) {
1325
1329
  class M extends Date {
1326
1330
  //#region static
1327
1331
  constructor(...e) {
1328
- super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN($(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), yt(this), K(this)) : this.setTime(Date.now());
1332
+ super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(C(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), yt(this), Z(this)) : this.setTime(Date.now());
1329
1333
  }
1330
1334
  static tz(e, ...n) {
1331
1335
  return n.length ? new M(...n, e) : new M(Date.now(), e);
@@ -1336,13 +1340,13 @@ class M extends Date {
1336
1340
  return new M(+this, e);
1337
1341
  }
1338
1342
  getTimezoneOffset() {
1339
- const e = -$(this.timeZone, this);
1343
+ const e = -C(this.timeZone, this);
1340
1344
  return e > 0 ? Math.floor(e) : Math.ceil(e);
1341
1345
  }
1342
1346
  //#endregion
1343
1347
  //#region time
1344
1348
  setTime(e) {
1345
- return Date.prototype.setTime.apply(this, arguments), K(this), +this;
1349
+ return Date.prototype.setTime.apply(this, arguments), Z(this), +this;
1346
1350
  }
1347
1351
  //#endregion
1348
1352
  //#region date-fns integration
@@ -1360,17 +1364,17 @@ Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
1360
1364
  } : (M.prototype[t] = function() {
1361
1365
  return Date.prototype[e].apply(this.internal, arguments), $e(this), +this;
1362
1366
  }, M.prototype[e] = function() {
1363
- return Date.prototype[e].apply(this, arguments), K(this), +this;
1367
+ return Date.prototype[e].apply(this, arguments), Z(this), +this;
1364
1368
  }));
1365
1369
  });
1366
- function K(t) {
1367
- t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-$(t.timeZone, t) * 60));
1370
+ function Z(t) {
1371
+ t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-C(t.timeZone, t) * 60));
1368
1372
  }
1369
1373
  function $e(t) {
1370
1374
  Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), yt(t);
1371
1375
  }
1372
1376
  function yt(t) {
1373
- const e = $(t.timeZone, t), n = e > 0 ? Math.floor(e) : Math.ceil(e), r = /* @__PURE__ */ new Date(+t);
1377
+ const e = C(t.timeZone, t), n = e > 0 ? Math.floor(e) : Math.ceil(e), r = /* @__PURE__ */ new Date(+t);
1374
1378
  r.setUTCHours(r.getUTCHours() - 1);
1375
1379
  const a = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), s = -(/* @__PURE__ */ new Date(+r)).getTimezoneOffset(), i = a - s, o = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
1376
1380
  i && o && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + i);
@@ -1378,12 +1382,12 @@ function yt(t) {
1378
1382
  c && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + c);
1379
1383
  const l = /* @__PURE__ */ new Date(+t);
1380
1384
  l.setUTCSeconds(0);
1381
- const d = a > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, m = Math.round(-($(t.timeZone, t) * 60)) % 60;
1385
+ const d = a > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, m = Math.round(-(C(t.timeZone, t) * 60)) % 60;
1382
1386
  (m || d) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + m), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + m + d));
1383
- const g = $(t.timeZone, t), S = g > 0 ? Math.floor(g) : Math.ceil(g), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - S, W = S !== n, Z = w - c;
1384
- if (W && Z) {
1385
- Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + Z);
1386
- const j = $(t.timeZone, t), wt = j > 0 ? Math.floor(j) : Math.ceil(j), z = S - wt;
1387
+ const g = C(t.timeZone, t), S = g > 0 ? Math.floor(g) : Math.ceil(g), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - S, W = S !== n, tt = w - c;
1388
+ if (W && tt) {
1389
+ Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + tt);
1390
+ const j = C(t.timeZone, t), wt = j > 0 ? Math.floor(j) : Math.ceil(j), z = S - wt;
1387
1391
  z && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + z), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + z));
1388
1392
  }
1389
1393
  }
@@ -1407,7 +1411,7 @@ class O extends M {
1407
1411
  }
1408
1412
  toTimeString() {
1409
1413
  const e = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
1410
- return `${e} GMT${n}${r}${a} (${Pe(this.timeZone, this)})`;
1414
+ return `${e} GMT${n}${r}${a} (${Ne(this.timeZone, this)})`;
1411
1415
  }
1412
1416
  toLocaleString(e, n) {
1413
1417
  return Date.prototype.toLocaleString.call(this, e, {
@@ -1444,11 +1448,11 @@ class O extends M {
1444
1448
  //#endregion
1445
1449
  }
1446
1450
  window.pktTz = window.pktTz === void 0 ? "Europe/Oslo" : window.pktTz;
1447
- const Ce = (t = window.pktTz) => {
1451
+ const _e = (t = window.pktTz) => {
1448
1452
  const e = new O((/* @__PURE__ */ new Date()).toISOString(), t);
1449
1453
  return e.setHours(0, 0, 0, 0), isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : new Date(e.getFullYear(), e.getMonth(), e.getDate());
1450
1454
  };
1451
- function C(t) {
1455
+ function $(t) {
1452
1456
  if (!t || t === "") return /* @__PURE__ */ new Date();
1453
1457
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
1454
1458
  const [e, n, r] = t.split("-").map(Number);
@@ -1467,14 +1471,14 @@ const p = (t) => {
1467
1471
  }, R = (t) => {
1468
1472
  if (!t)
1469
1473
  return null;
1470
- const e = C(t);
1474
+ const e = $(t);
1471
1475
  return isNaN(e.getTime()) ? null : e;
1472
- }, ze = (t, e) => {
1476
+ }, Xe = (t, e) => {
1473
1477
  const n = E(t);
1474
- return isNaN(n.getTime()) ? "" : Te(n, e);
1478
+ return isNaN(n.getTime()) ? "" : xe(n, e);
1475
1479
  }, E = (t = "", e) => {
1476
- const n = typeof t == "string" ? C(t) : t;
1477
- return !n || isNaN(n.getTime()) ? /* @__PURE__ */ new Date() : n;
1480
+ const n = typeof t == "string" ? $(t) : t;
1481
+ return !n || isNaN(n.getTime()) ? /* @__PURE__ */ new Date() : e ? e === "end" ? Ot(n) : K(n) : n;
1478
1482
  }, x = (t, e, n = 1) => {
1479
1483
  if (typeof t != "number" || typeof e != "number" || typeof n != "number" || isNaN(t) || isNaN(e) || isNaN(n))
1480
1484
  return /* @__PURE__ */ new Date();
@@ -1483,46 +1487,43 @@ const p = (t) => {
1483
1487
  }, F = (t) => {
1484
1488
  let e;
1485
1489
  return typeof t == "number" ? e = new O(t, window.pktTz) : e = new O(t, window.pktTz), e.setHours(12, 0, 0, 0), e;
1486
- }, _e = (t) => !t || isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(t), Ee = (t, e, n) => {
1490
+ }, Ee = (t) => !t || isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(t), We = (t, e, n) => {
1487
1491
  if (!t || isNaN(t.getTime())) return !1;
1488
1492
  const r = e ? E(e) : null, a = n ? E(n) : null;
1489
1493
  return !(r && t < r || a && t > a);
1490
- }, We = (t, e) => {
1494
+ }, Ye = (t, e) => {
1491
1495
  if (!t || isNaN(t.getTime()) || !Array.isArray(e)) return !1;
1492
1496
  const n = p(t);
1493
1497
  return e.includes(n);
1494
- }, Ye = (t, e) => {
1498
+ }, Ae = (t, e) => {
1495
1499
  if (!t || isNaN(t.getTime()) || !Array.isArray(e)) return !1;
1496
1500
  const n = t.getDay().toString();
1497
1501
  return e.includes(n);
1498
- }, pt = (t, e, n, r, a) => !(!t || isNaN(t.getTime()) || !Ee(t, e, n) || r && We(t, r) || a && Ye(t, a)), Qe = (t, e, n, r, a) => t.filter((s) => {
1502
+ }, pt = (t, e, n, r, a) => !(!t || isNaN(t.getTime()) || !We(t, e, n) || r && Ye(t, r) || a && Ae(t, a)), Ge = (t, e, n, r, a) => t.filter((s) => {
1499
1503
  const i = R(s);
1500
1504
  return i && pt(i, e, n, r, a);
1501
- }), Xe = (t) => t.slice().sort((e, n) => {
1505
+ }), Ve = (t) => t.slice().sort((e, n) => {
1502
1506
  const r = R(e), a = R(n);
1503
1507
  return !r || !a ? 0 : r.getTime() - a.getTime();
1504
- }), Ge = (t, e) => {
1508
+ }), Je = (t, e) => {
1505
1509
  const n = R(t), r = R(e);
1506
1510
  return !n || !r ? !1 : n <= r;
1507
- }, Ae = (t) => {
1508
- if (Array.isArray(t)) return t;
1509
- if (typeof t == "string") return t.split(",");
1510
- }, Fe = (t) => t ? C(t) : null, He = (t) => {
1511
+ }, Fe = (t) => t ? Array.isArray(t) ? t.filter(Boolean) : String(t).split(",").map((e) => e.trim()).filter(Boolean) : [], Ke = (t) => t.join(","), He = (t) => Fe(t), Ie = (t) => t ? $(t) : null, Re = (t) => {
1511
1512
  if (typeof t == "string")
1512
- return t.split(",").map((e) => C(e));
1513
+ return t.split(",").map((e) => $(e));
1513
1514
  if (Array.isArray(t))
1514
- return t.map((e) => C(e));
1515
+ return t.map((e) => $(e));
1515
1516
  }, B = {
1516
- csvToArray: Ae,
1517
- stringToDate: Fe,
1518
- stringsToDate: He
1519
- }, Ie = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, P = {
1520
- props: Ie
1517
+ csvToArray: He,
1518
+ stringToDate: Ie,
1519
+ stringsToDate: Re
1520
+ }, Ue = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, P = {
1521
+ props: Ue
1521
1522
  };
1522
- var Re = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, f = (t, e, n, r) => {
1523
- for (var a = r > 1 ? void 0 : r ? Ue(e, n) : e, s = t.length - 1, i; s >= 0; s--)
1523
+ var qe = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, f = (t, e, n, r) => {
1524
+ for (var a = r > 1 ? void 0 : r ? Le(e, n) : e, s = t.length - 1, i; s >= 0; s--)
1524
1525
  (i = t[s]) && (a = (r ? i(e, n, a) : i(a)) || a);
1525
- return r && a && Re(e, n, a), a;
1526
+ return r && a && qe(e, n, a), a;
1526
1527
  };
1527
1528
  let h = class extends bt {
1528
1529
  constructor() {
@@ -1547,7 +1548,7 @@ let h = class extends bt {
1547
1548
  this.addEventListener("keydown", this.handleKeydown);
1548
1549
  }
1549
1550
  convertSelected() {
1550
- if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) => C(t)), this.range && this.selected.length === 2) {
1551
+ if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) => $(t)), this.range && this.selected.length === 2) {
1551
1552
  const t = G({
1552
1553
  start: this._selected[0],
1553
1554
  end: this._selected[1]
@@ -1565,7 +1566,7 @@ let h = class extends bt {
1565
1566
  }
1566
1567
  setCurrentMonth() {
1567
1568
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
1568
- const t = C(this.selected[this.selected.length - 1]);
1569
+ const t = $(this.selected[this.selected.length - 1]);
1569
1570
  this.currentmonth = isNaN(t.getTime()) ? F(/* @__PURE__ */ new Date()) : t;
1570
1571
  } else this.currentmonth === null && (this.currentmonth = F(/* @__PURE__ */ new Date()));
1571
1572
  (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = F(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
@@ -1725,7 +1726,7 @@ let h = class extends bt {
1725
1726
  }
1726
1727
  renderDayView(t, e) {
1727
1728
  var m;
1728
- const n = x(this.year, this.month, t), r = p(n), a = r === p(e), s = this.selected.includes(r), i = _e(n), o = this.isExcluded(n) || !s && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, c = this.focusedDate ? this.focusedDate === r && !o ? "0" : "-1" : !o && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
1729
+ const n = x(this.year, this.month, t), r = p(n), a = r === p(e), s = this.selected.includes(r), i = Ee(n), o = this.isExcluded(n) || !s && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, c = this.focusedDate ? this.focusedDate === r && !o ? "0" : "-1" : !o && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
1729
1730
  c === "0" && (this.tabIndexSet = t), this.selectableDates.push({ currentDateISO: r, isDisabled: o, tabindex: c });
1730
1731
  const l = {
1731
1732
  "pkt-cal-today": a,
@@ -1745,12 +1746,12 @@ let h = class extends bt {
1745
1746
  "pkt-calendar__date--range-start": this.range && (this.selected.length === 2 || this.rangeHovered !== null) && r === this.selected[0],
1746
1747
  "pkt-calendar__date--range-end": this.range && this.selected.length === 2 && r === this.selected[1]
1747
1748
  };
1748
- return D`<td class=${tt(l)}>
1749
+ return D`<td class=${et(l)}>
1749
1750
  <button
1750
1751
  type="button"
1751
1752
  aria-pressed=${s ? "true" : "false"}
1752
1753
  ?disabled=${o}
1753
- class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${tt(
1754
+ class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${et(
1754
1755
  d
1755
1756
  )}"
1756
1757
  @mouseover=${() => this.range && !this.isExcluded(n) && this.handleRangeHover(n)}
@@ -1773,7 +1774,7 @@ let h = class extends bt {
1773
1774
  </td>`;
1774
1775
  }
1775
1776
  renderCalendarBody() {
1776
- const t = Ce(), e = x(this.year, this.month, 1), n = x(this.year, this.month + 1, 0), r = (e.getDay() + 6) % 7, a = n.getDate(), s = Math.ceil((a + r) / 7), o = x(this.year, this.month, 0).getDate();
1777
+ const t = _e(), e = x(this.year, this.month, 1), n = x(this.year, this.month + 1, 0), r = (e.getDay() + 6) % 7, a = n.getDate(), s = Math.ceil((a + r) / 7), o = x(this.year, this.month, 0).getDate();
1777
1778
  let c = 1;
1778
1779
  this.week = mt(x(this.year, this.month, 1));
1779
1780
  const l = [];
@@ -1857,7 +1858,7 @@ let h = class extends bt {
1857
1858
  for (let r = 0; r < n.length; r++)
1858
1859
  this.excludedates.forEach((a) => {
1859
1860
  a > this._selected[0] && a < t && (e = !1);
1860
- }), this.excludeweekdays.includes(Oe(n[r]).toString()) && (e = !1);
1861
+ }), this.excludeweekdays.includes(Pe(n[r]).toString()) && (e = !1);
1861
1862
  }
1862
1863
  return e;
1863
1864
  }
@@ -2021,14 +2022,16 @@ h = f([
2021
2022
  ], h);
2022
2023
  export {
2023
2024
  h as P,
2024
- R as a,
2025
- ze as b,
2026
- Ae as c,
2027
- p as d,
2028
- B as e,
2029
- Qe as f,
2030
- Ge as i,
2025
+ Ge as a,
2026
+ R as b,
2027
+ He as c,
2028
+ Ke as d,
2029
+ p as e,
2030
+ Xe as f,
2031
+ B as g,
2032
+ Je as i,
2031
2033
  E as n,
2032
- C as p,
2033
- Xe as s
2034
+ $ as p,
2035
+ Ve as s,
2036
+ Fe as v
2034
2037
  };