@oslokommune/punkt-react 18.9.7 → 19.0.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.
@@ -62,7 +62,7 @@ var M = /* @__PURE__ */ O((/* @__PURE__ */ E(((e, t) => {
62
62
  return n;
63
63
  }) : window.classNames = n;
64
64
  })();
65
- })))(), 1), N = "https://punkt-cdn.oslo.kommune.no/18.9/icons/";
65
+ })))(), 1), N = "https://punkt-cdn.oslo.kommune.no/latest/icons/";
66
66
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || N);
67
67
  var P = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>", ee = {}, te = 2, ne = 1500, F = typeof Storage < "u" && typeof sessionStorage < "u", re = typeof window < "u" ? d : c, ie = (e, t) => !e || !F ? "" : sessionStorage.getItem(t + e + ".svg") ?? "", ae = (e) => window.pktFetch(e).then((t) => {
68
68
  if (!t.ok) throw Error("Missing icon: " + e);
@@ -76,10 +76,10 @@ var P = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>"
76
76
  }, se = async (e, t) => {
77
77
  let n = t + e + ".svg";
78
78
  return F && sessionStorage.getItem(n) ? sessionStorage.getItem(n) : n in ee ? ee[n] : typeof window < "u" && typeof window.pktFetch == "function" ? (ee[n] = oe(n).then((e) => (e !== P && F && sessionStorage.setItem(n, e), delete ee[n], e)), ee[n]) : P;
79
- }, I = (e) => {
79
+ }, ce = (e) => {
80
80
  if (e !== void 0) return e === !0 || e === "true";
81
- }, L = i(function({ name: e = "", path: t, className: n, ariaHidden: r, ariaLabel: i, "aria-hidden": a, "aria-label": o, ...s }, c) {
82
- let l = t ?? (typeof window < "u" ? window.pktIconPath : N), u = p(null), d = I(r) ?? I(a), f = i ?? o, m = d === void 0 ? !f : d, h = m ? void 0 : f || e;
81
+ }, I = i(function({ name: e = "", path: t, className: n, ariaHidden: r, ariaLabel: i, "aria-hidden": a, "aria-label": o, ...s }, c) {
82
+ let l = t ?? (typeof window < "u" ? window.pktIconPath : N), u = p(null), d = ce(r) ?? ce(a), f = i ?? o, m = d === void 0 ? !f : d, h = m ? void 0 : f || e;
83
83
  re(() => {
84
84
  let t = u.current;
85
85
  if (!t) return;
@@ -121,10 +121,10 @@ var P = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>"
121
121
  "data-path": l
122
122
  });
123
123
  });
124
- L.displayName = "PktIcon";
124
+ I.displayName = "PktIcon";
125
125
  //#endregion
126
126
  //#region src/components/accordion/AccordionItem.tsx
127
- var R = i(({ defaultOpen: e = !1, id: t, title: n, skin: r, compact: i = !1, isOpen: a, children: o, name: s, className: c, onClick: l, onToggle: u }, d) => {
127
+ var L = i(({ defaultOpen: e = !1, id: t, title: n, skin: r, compact: i = !1, isOpen: a, children: o, name: s, className: c, onClick: l, onToggle: u }, d) => {
128
128
  let [f, p] = m(e), { name: h, skin: y } = A(), b = s || h, x = r || y, S = a === void 0 ? f : a, C = (e) => {
129
129
  let t = e.currentTarget.open;
130
130
  t !== S && (a === void 0 && p(t), u?.(e));
@@ -149,15 +149,15 @@ var R = i(({ defaultOpen: e = !1, id: t, title: n, skin: r, compact: i = !1, isO
149
149
  children: [/* @__PURE__ */ v("summary", {
150
150
  className: "pkt-accordion-item__title",
151
151
  id: `pkt-accordion-item-summary-${t}`,
152
- children: [n, x === "plus-minus" ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(L, {
152
+ children: [n, x === "plus-minus" ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(I, {
153
153
  name: "plus-sign",
154
154
  className: "pkt-accordion-item__icon pkt-accordion-item__icon--plus",
155
155
  "aria-hidden": "true"
156
- }), /* @__PURE__ */ _(L, {
156
+ }), /* @__PURE__ */ _(I, {
157
157
  name: "minus-sign",
158
158
  className: "pkt-accordion-item__icon pkt-accordion-item__icon--minus",
159
159
  "aria-hidden": "true"
160
- })] }) : /* @__PURE__ */ _(L, {
160
+ })] }) : /* @__PURE__ */ _(I, {
161
161
  name: "chevron-thin-down",
162
162
  className: "pkt-accordion-item__icon",
163
163
  "aria-hidden": "true"
@@ -173,10 +173,10 @@ var R = i(({ defaultOpen: e = !1, id: t, title: n, skin: r, compact: i = !1, isO
173
173
  })]
174
174
  });
175
175
  });
176
- R.displayName = "PktAccordionItem";
176
+ L.displayName = "PktAccordionItem";
177
177
  //#endregion
178
178
  //#region ../../shared-strings/nb.ts
179
- var ce = {
179
+ var le = {
180
180
  generic: {
181
181
  from: "Fra",
182
182
  to: "Til",
@@ -285,17 +285,7 @@ var ce = {
285
285
  search: "Søk",
286
286
  menu: "Meny",
287
287
  openMenu: "Åpne meny",
288
- openSearch: "Åpne søkefelt",
289
- logoLabel: "Til Oslo kommunes hovednettsted",
290
- logoAlt: "Oslo kommune",
291
- logOut: "Logg ut",
292
- userMenuButton: "Brukermeny:",
293
- userMenuLabel: "Meny for innlogget bruker",
294
- loggedInAs: "Pålogget som",
295
- lastLoggedIn: "Sist pålogget:",
296
- representing: "Representerer",
297
- orgNumber: "Org.nr. {number}",
298
- changeRepresentation: "Endre organisasjon"
288
+ openSearch: "Åpne søkefelt"
299
289
  },
300
290
  listbox: {
301
291
  searchLabel: "Søk i listen",
@@ -338,14 +328,14 @@ var ce = {
338
328
  srFilesUploadedOfTotal: "{uploaded} av {total} {label} lastet opp",
339
329
  srFilesFailedOfTotal: "Feil ved opplasting: {failed} av {total} {label} feilet"
340
330
  }
341
- }, z = /\{(\w+)\}/g;
342
- function B(e, t) {
343
- return t ? e.replace(z, (n, r) => {
331
+ }, R = /\{(\w+)\}/g;
332
+ function z(e, t) {
333
+ return t ? e.replace(R, (n, r) => {
344
334
  let i = t[r];
345
335
  return i == null ? (de(r, e), n) : String(i);
346
336
  }) : e;
347
337
  }
348
- function le(e, t, n) {
338
+ function B(e, t, n) {
349
339
  return e === 1 ? t : n;
350
340
  }
351
341
  var ue = /* @__PURE__ */ new Set();
@@ -404,9 +394,9 @@ function me(e) {
404
394
  if (n && n.overrides === t) return n.value;
405
395
  let r = t[e], i;
406
396
  if (pe(r)) {
407
- let t = { ...ce[e] };
397
+ let t = { ...le[e] };
408
398
  q(t, r), i = t;
409
- } else i = ce[e];
399
+ } else i = le[e];
410
400
  return fe.set(e, {
411
401
  overrides: t,
412
402
  value: i
@@ -538,7 +528,7 @@ var ge = {
538
528
  };
539
529
  //#endregion
540
530
  //#region src/components/button/Button.tsx
541
- typeof window < "u" && (window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/18.9/animations/");
531
+ typeof window < "u" && (window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/latest/animations/");
542
532
  var Y = i(({ children: e, className: t, iconName: n = "user", secondIconName: r = "user", iconPath: i, secondIconPath: a, size: o = "medium", fullWidth: s = !1, fullWidthOnMobile: c = !1, skin: l = "primary", type: u = "button", variant: d = "label-only", state: f, color: p, isLoading: m = void 0, disabled: h = void 0, loadingAnimationPath: g = window.pktAnimationPath, ...y }, b) => {
543
533
  let x = [
544
534
  t,
@@ -561,12 +551,12 @@ var Y = i(({ children: e, className: t, iconName: n = "user", secondIconName: r
561
551
  type: u,
562
552
  ref: b,
563
553
  children: [
564
- m && /* @__PURE__ */ _(L, {
554
+ m && /* @__PURE__ */ _(I, {
565
555
  className: "pkt-btn__icon pkt-btn__spinner",
566
556
  name: "spinner-blue",
567
557
  path: g
568
558
  }),
569
- d !== "label-only" && /* @__PURE__ */ _(L, {
559
+ d !== "label-only" && /* @__PURE__ */ _(I, {
570
560
  className: "pkt-btn__icon",
571
561
  name: n,
572
562
  ...i && { path: i }
@@ -575,7 +565,7 @@ var Y = i(({ children: e, className: t, iconName: n = "user", secondIconName: r
575
565
  className: "pkt-btn__text",
576
566
  children: e
577
567
  }),
578
- d === "icons-right-and-left" && /* @__PURE__ */ _(L, {
568
+ d === "icons-right-and-left" && /* @__PURE__ */ _(I, {
579
569
  className: "pkt-btn__icon",
580
570
  name: r,
581
571
  ...a && { path: a }
@@ -639,7 +629,7 @@ var ye = ({ children: e, closeAlert: t, compact: n, size: r = n ? "small" : "med
639
629
  children: /* @__PURE__ */ v("div", {
640
630
  className: (0, M.default)(x),
641
631
  children: [
642
- /* @__PURE__ */ _(L, {
632
+ /* @__PURE__ */ _(I, {
643
633
  className: "pkt-alert__icon",
644
634
  "aria-hidden": "true",
645
635
  name: u === "info" ? "alert-information" : `alert-${u}`
@@ -671,7 +661,7 @@ var ye = ({ children: e, closeAlert: t, compact: n, size: r = n ? "small" : "med
671
661
  }),
672
662
  a && /* @__PURE__ */ _("div", {
673
663
  className: "pkt-alert__date",
674
- children: B(y.alert.lastUpdated, { date: a })
664
+ children: z(y.alert.lastUpdated, { date: a })
675
665
  })
676
666
  ]
677
667
  })
@@ -681,7 +671,7 @@ ye.displayName = "PktAlert";
681
671
  //#endregion
682
672
  //#region src/components/backlink/BackLink.tsx
683
673
  var be = i(({ href: e = "/", text: t = "Forsiden", ariaLabel: n, renderLink: r, className: i, strings: a, ...o }, s) => {
684
- let c = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(L, {
674
+ let c = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(I, {
685
675
  className: "pkt-back-link__icon pkt-icon pkt-link__icon",
686
676
  name: "chevron-thin-left",
687
677
  "aria-hidden": "true"
@@ -739,7 +729,7 @@ var Z = i(({ breadcrumbs: e, navigationType: t, renderLink: n, className: r, str
739
729
  }) : d({
740
730
  href: e.href,
741
731
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
742
- children: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(L, {
732
+ children: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(I, {
743
733
  className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
744
734
  name: "chevron-thin-right",
745
735
  "aria-hidden": "true"
@@ -753,7 +743,7 @@ var Z = i(({ breadcrumbs: e, navigationType: t, renderLink: n, className: r, str
753
743
  }), d({
754
744
  href: c.href,
755
745
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
756
- children: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(L, {
746
+ children: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(I, {
757
747
  className: "pkt-back-link__icon pkt-icon pkt-link__icon",
758
748
  name: "chevron-thin-left",
759
749
  "aria-hidden": "true"
@@ -2301,7 +2291,7 @@ function jn(e) {
2301
2291
  months: E.dates.months,
2302
2292
  prevMonth: E.calendar.prevMonth,
2303
2293
  nextMonth: E.calendar.nextMonth
2304
- }), [E]), O = f(() => v ? Jt(v) : qt(), [v]), k = f(() => u ? u.map((e) => typeof e == "string" ? Jt(e) : e) : [], [u]), A = t !== void 0, [j, M] = m([]), N = A ? t : j, P = f(() => _n(N), [N]), [ee, te] = m(0), [ne, F] = m(0), [re, ie] = m({}), [ae, oe] = m(null), [se, I] = m(null), L = p(null), R = p([]), ce = p(0), z = p(!1), B = p(!1), le = f(() => ({
2294
+ }), [E]), O = f(() => v ? Jt(v) : qt(), [v]), k = f(() => u ? u.map((e) => typeof e == "string" ? Jt(e) : e) : [], [u]), A = t !== void 0, [j, M] = m([]), N = A ? t : j, P = f(() => _n(N), [N]), [ee, te] = m(0), [ne, F] = m(0), [re, ie] = m({}), [ae, oe] = m(null), [se, ce] = m(null), I = p(null), L = p([]), le = p(0), R = p(!1), z = p(!1), B = f(() => ({
2305
2295
  earliest: a,
2306
2296
  latest: s,
2307
2297
  excludedates: k,
@@ -2328,9 +2318,9 @@ function jn(e) {
2328
2318
  let t = typeof a == "string" ? Jt(a) : a;
2329
2319
  !isNaN(t.getTime()) && e < t && (e = t);
2330
2320
  }
2331
- te(e.getFullYear()), F(e.getMonth()), B.current = !0;
2321
+ te(e.getFullYear()), F(e.getMonth()), z.current = !0;
2332
2322
  }, []), c(() => {
2333
- if (B.current && !z.current && N.length > 0 && N[0] !== "") {
2323
+ if (z.current && !R.current && N.length > 0 && N[0] !== "") {
2334
2324
  let e = Jt(N[N.length - 1]);
2335
2325
  isNaN(e.getTime()) || (te(e.getFullYear()), F(e.getMonth()));
2336
2326
  }
@@ -2342,7 +2332,7 @@ function jn(e) {
2342
2332
  }, [A, b]), de = o(() => {
2343
2333
  x?.();
2344
2334
  }, [x]), V = o((e, t) => {
2345
- te(typeof e == "string" ? parseInt(e) : e), F(typeof t == "string" ? parseInt(t) : t), ce.current = 0, I(null), R.current = [], z.current = !0;
2335
+ te(typeof e == "string" ? parseInt(e) : e), F(typeof t == "string" ? parseInt(t) : t), le.current = 0, ce(null), L.current = [], R.current = !0;
2346
2336
  }, []), H = o(() => {
2347
2337
  let e = ne === 0 ? 11 : ne - 1, t = ne === 0 ? ee - 1 : ee;
2348
2338
  V(t, e);
@@ -2357,12 +2347,12 @@ function jn(e) {
2357
2347
  ee,
2358
2348
  ne,
2359
2349
  V
2360
- ]), W = o((e) => pn(e, le), [le]), G = o((e, t) => mn(e, t, le, {
2350
+ ]), W = o((e) => pn(e, B), [B]), G = o((e, t) => mn(e, t, B, {
2361
2351
  multiple: n,
2362
2352
  maxMultiple: r,
2363
2353
  selectedCount: N.length
2364
2354
  }), [
2365
- le,
2355
+ B,
2366
2356
  n,
2367
2357
  r,
2368
2358
  N.length
@@ -2421,15 +2411,15 @@ function jn(e) {
2421
2411
  r,
2422
2412
  A
2423
2413
  ]), J = o(() => {
2424
- let e = Yt(en(O)), t = L.current?.querySelector(`button[data-date="${e}"]`);
2414
+ let e = Yt(en(O)), t = I.current?.querySelector(`button[data-date="${e}"]`);
2425
2415
  if (t instanceof HTMLButtonElement) {
2426
- I(e), t.focus();
2416
+ ce(e), t.focus();
2427
2417
  return;
2428
2418
  }
2429
- let n = R.current.find((e) => !e.isDisabled);
2419
+ let n = L.current.find((e) => !e.isDisabled);
2430
2420
  if (n) {
2431
- let e = L.current?.querySelector(`button[data-date="${n.currentDateISO}"]`);
2432
- e instanceof HTMLButtonElement && (I(n.currentDateISO), e.focus());
2421
+ let e = I.current?.querySelector(`button[data-date="${n.currentDateISO}"]`);
2422
+ e instanceof HTMLButtonElement && (ce(n.currentDateISO), e.focus());
2433
2423
  }
2434
2424
  }, []), ge = o((e, t) => {
2435
2425
  let n = e.target;
@@ -2438,10 +2428,10 @@ function jn(e) {
2438
2428
  J();
2439
2429
  return;
2440
2430
  }
2441
- let r = kn(Qt(se), t, L.current.querySelector.bind(L.current));
2431
+ let r = kn(Qt(se), t, I.current.querySelector.bind(I.current));
2442
2432
  if (r) {
2443
- let e = L.current.querySelector(`button[data-date="${Yt(r)}"]`);
2444
- e instanceof HTMLButtonElement && !e.dataset.disabled && (I(Yt(r)), e.focus());
2433
+ let e = I.current.querySelector(`button[data-date="${Yt(r)}"]`);
2434
+ e instanceof HTMLButtonElement && !e.dataset.disabled && (ce(Yt(r)), e.focus());
2445
2435
  }
2446
2436
  }, [se, J]);
2447
2437
  return {
@@ -2464,10 +2454,10 @@ function jn(e) {
2464
2454
  excludedates: k,
2465
2455
  excludeweekdays: d,
2466
2456
  className: C,
2467
- dateConstraints: le,
2468
- calendarRef: L,
2469
- selectableDatesRef: R,
2470
- tabIndexSetRef: ce,
2457
+ dateConstraints: B,
2458
+ calendarRef: I,
2459
+ selectableDatesRef: L,
2460
+ tabIndexSetRef: le,
2471
2461
  prevMonth: H,
2472
2462
  nextMonth: U,
2473
2463
  changeMonth: V,
@@ -2489,10 +2479,10 @@ function jn(e) {
2489
2479
  }, [de, ge]),
2490
2480
  handleFocusOut: o((e) => {
2491
2481
  let t = e.target, n = e.relatedTarget;
2492
- L.current && L.current.contains(n) || t.classList.contains("pkt-hide") || t.closest(".pkt-cal-month-picker") || de();
2482
+ I.current && I.current.contains(n) || t.classList.contains("pkt-hide") || t.closest(".pkt-cal-month-picker") || de();
2493
2483
  }, [de]),
2494
2484
  close: de,
2495
- setFocusedDate: I
2485
+ setFocusedDate: ce
2496
2486
  };
2497
2487
  }
2498
2488
  //#endregion
@@ -2515,7 +2505,7 @@ var Mn = ({ componentId: e, strings: t, year: n, month: r, earliest: i, latest:
2515
2505
  "data-disabled": l ? void 0 : "disabled",
2516
2506
  "aria-disabled": !l || void 0,
2517
2507
  tabIndex: l ? 0 : -1,
2518
- children: [/* @__PURE__ */ _(L, {
2508
+ children: [/* @__PURE__ */ _(I, {
2519
2509
  className: "pkt-btn__icon",
2520
2510
  name: d
2521
2511
  }), /* @__PURE__ */ _("span", {
@@ -2820,7 +2810,7 @@ var Wn = i(({ children: e, skin: t = "blue", textStyle: n, size: r = "medium", c
2820
2810
  E(w.current?.textContent?.trim() ?? "");
2821
2811
  }, [e]);
2822
2812
  let D = ve(["tag"], g), O = f(() => {
2823
- if (i && !l) return T && B(D.tag.remove, { label: T }) || h;
2813
+ if (i && !l) return T && z(D.tag.remove, { label: T }) || h;
2824
2814
  }, [
2825
2815
  i,
2826
2816
  l,
@@ -2848,7 +2838,7 @@ var Wn = i(({ children: e, skin: t = "blue", textStyle: n, size: r = "medium", c
2848
2838
  "aria-description": O,
2849
2839
  ref: b,
2850
2840
  children: [
2851
- s && /* @__PURE__ */ _(L, {
2841
+ s && /* @__PURE__ */ _(I, {
2852
2842
  className: "pkt-tag__icon",
2853
2843
  name: s,
2854
2844
  "aria-hidden": "true"
@@ -2857,7 +2847,7 @@ var Wn = i(({ children: e, skin: t = "blue", textStyle: n, size: r = "medium", c
2857
2847
  ref: w,
2858
2848
  children: e
2859
2849
  }),
2860
- /* @__PURE__ */ _(L, {
2850
+ /* @__PURE__ */ _(I, {
2861
2851
  className: "pkt-tag__close-btn",
2862
2852
  name: "close"
2863
2853
  })
@@ -2866,7 +2856,7 @@ var Wn = i(({ children: e, skin: t = "blue", textStyle: n, size: r = "medium", c
2866
2856
  ...y,
2867
2857
  className: (0, M.default)(k, a),
2868
2858
  ref: b,
2869
- children: [s && /* @__PURE__ */ _(L, {
2859
+ children: [s && /* @__PURE__ */ _(I, {
2870
2860
  className: "pkt-tag__icon",
2871
2861
  name: s,
2872
2862
  "aria-hidden": "true"
@@ -3107,7 +3097,7 @@ var Zn = (e) => {
3107
3097
  "aria-expanded": l,
3108
3098
  "aria-controls": `${p}-helptext-expandable`,
3109
3099
  onClick: h,
3110
- children: [/* @__PURE__ */ _(L, {
3100
+ children: [/* @__PURE__ */ _(I, {
3111
3101
  className: "pkt-btn__icon",
3112
3102
  name: l ? "chevron-thin-up" : "chevron-thin-down"
3113
3103
  }), /* @__PURE__ */ _("span", {
@@ -3145,7 +3135,7 @@ var rr = i(({ forId: e, label: t, helptext: n, helptextDropdown: r, helptextDrop
3145
3135
  className: "pkt-sr-only",
3146
3136
  id: Qn(P),
3147
3137
  "aria-live": "polite",
3148
- children: ae ? B(M.validation.counterExceeded, {
3138
+ children: ae ? z(M.validation.counterExceeded, {
3149
3139
  current: o,
3150
3140
  max: s ?? 0
3151
3141
  }) : ""
@@ -3162,7 +3152,7 @@ var rr = i(({ forId: e, label: t, helptext: n, helptextDropdown: r, helptextDrop
3162
3152
  className: ie + " pkt-tag--beige",
3163
3153
  children: d ?? M.forms.required
3164
3154
  })
3165
- ] }), I = () => {
3155
+ ] }), ce = () => {
3166
3156
  let e = /* @__PURE__ */ v(g, { children: [
3167
3157
  t,
3168
3158
  " ",
@@ -3183,7 +3173,7 @@ var rr = i(({ forId: e, label: t, helptext: n, helptextDropdown: r, helptextDrop
3183
3173
  id: `${P}-label`,
3184
3174
  children: t
3185
3175
  });
3186
- }, L = () => {
3176
+ }, I = () => {
3187
3177
  let e = S ? n : void 0;
3188
3178
  return !e && !r ? null : /* @__PURE__ */ _(nr, {
3189
3179
  forId: P,
@@ -3191,9 +3181,9 @@ var rr = i(({ forId: e, label: t, helptext: n, helptextDropdown: r, helptextDrop
3191
3181
  helptextDropdown: r,
3192
3182
  helptextDropdownButton: i ?? M.forms.readMore
3193
3183
  });
3194
- }, R = O === "medium" ? "small" : "xsmall", ce = /* @__PURE__ */ v(g, { children: [
3184
+ }, L = O === "medium" ? "small" : "xsmall", le = /* @__PURE__ */ v(g, { children: [
3185
+ ce(),
3195
3186
  I(),
3196
- L(),
3197
3187
  ne && /* @__PURE__ */ _(oe, {}),
3198
3188
  C,
3199
3189
  F && /* @__PURE__ */ _(oe, {}),
@@ -3201,7 +3191,7 @@ var rr = i(({ forId: e, label: t, helptext: n, helptextDropdown: r, helptextDrop
3201
3191
  className: "pkt-inputwrapper__alert-wrapper",
3202
3192
  children: /* @__PURE__ */ _(ye, {
3203
3193
  skin: "error",
3204
- size: R,
3194
+ size: L,
3205
3195
  "aria-live": "assertive",
3206
3196
  role: "alert",
3207
3197
  id: `${P}-error`,
@@ -3217,10 +3207,10 @@ var rr = i(({ forId: e, label: t, helptext: n, helptextDropdown: r, helptextDrop
3217
3207
  children: T ? /* @__PURE__ */ _("fieldset", {
3218
3208
  className: "pkt-inputwrapper__fieldset",
3219
3209
  "aria-describedby": ee,
3220
- children: ce
3210
+ children: le
3221
3211
  }) : /* @__PURE__ */ _("div", {
3222
3212
  className: "pkt-inputwrapper__fieldset",
3223
- children: ce
3213
+ children: le
3224
3214
  })
3225
3215
  });
3226
3216
  });
@@ -3485,7 +3475,7 @@ var ir = (e, t) => t && (e.find((e) => e.value === t) || e.find((e) => e.label =
3485
3475
  name: `${A || t}-input`,
3486
3476
  value: i.join(",")
3487
3477
  }),
3488
- /* @__PURE__ */ _(L, {
3478
+ /* @__PURE__ */ _(I, {
3489
3479
  className: N,
3490
3480
  name: "chevron-thin-down",
3491
3481
  "aria-hidden": "true"
@@ -3512,7 +3502,7 @@ var ir = (e, t) => t && (e.find((e) => e.value === t) || e.find((e) => e.label =
3512
3502
  className: "pkt-listbox__search",
3513
3503
  children: [/* @__PURE__ */ _("span", {
3514
3504
  className: "pkt-listbox__search-icon",
3515
- children: /* @__PURE__ */ _(L, { name: "magnifying-glass-small" })
3505
+ children: /* @__PURE__ */ _(I, { name: "magnifying-glass-small" })
3516
3506
  }), /* @__PURE__ */ _("input", {
3517
3507
  className: "pkt-txt-16-light",
3518
3508
  type: "text",
@@ -3539,7 +3529,7 @@ var ir = (e, t) => t && (e.find((e) => e.value === t) || e.find((e) => e.label =
3539
3529
  }),
3540
3530
  A && /* @__PURE__ */ v("div", {
3541
3531
  className: "pkt-listbox__banner pkt-listbox__banner--user-message",
3542
- children: [/* @__PURE__ */ _(L, {
3532
+ children: [/* @__PURE__ */ _(I, {
3543
3533
  className: "pkt-listbox__banner-icon",
3544
3534
  name: "exclamation-mark-circle"
3545
3535
  }), m]
@@ -3553,7 +3543,7 @@ var ir = (e, t) => t && (e.find((e) => e.value === t) || e.find((e) => e.label =
3553
3543
  onClick: () => w(p),
3554
3544
  onKeyDown: T,
3555
3545
  children: [
3556
- /* @__PURE__ */ _(L, {
3546
+ /* @__PURE__ */ _(I, {
3557
3547
  className: "pkt-listbox__banner-icon",
3558
3548
  name: "plus-sign"
3559
3549
  }),
@@ -3564,7 +3554,7 @@ var ir = (e, t) => t && (e.find((e) => e.value === t) || e.find((e) => e.label =
3564
3554
  }),
3565
3555
  a.length === 0 && o.length === 0 && !A && /* @__PURE__ */ v("div", {
3566
3556
  className: "pkt-listbox__banner pkt-listbox__banner--empty",
3567
- children: [/* @__PURE__ */ _(L, {
3557
+ children: [/* @__PURE__ */ _(I, {
3568
3558
  className: "pkt-listbox__banner-icon",
3569
3559
  name: "exclamation-mark-circle"
3570
3560
  }), "Tom liste"]
@@ -3603,7 +3593,7 @@ var ir = (e, t) => t && (e.find((e) => e.value === t) || e.find((e) => e.label =
3603
3593
  onChange: () => {},
3604
3594
  "aria-hidden": "true",
3605
3595
  disabled: i
3606
- }) : e.selected ? /* @__PURE__ */ _(L, { name: "check-big" }) : null,
3596
+ }) : e.selected ? /* @__PURE__ */ _(I, { name: "check-big" }) : null,
3607
3597
  /* @__PURE__ */ v("span", {
3608
3598
  className: "pkt-listbox__option-label",
3609
3599
  id: `${n}-option-label-${t}`,
@@ -3652,7 +3642,7 @@ function Dr(e, t) {
3652
3642
  }));
3653
3643
  }
3654
3644
  function Or(t, n) {
3655
- let { id: r = "", label: i, value: s, defaultValue: l, options: d, defaultOptions: h, multiple: g = !1, maxlength: _, typeahead: v = !1, includeSearch: y = !1, allowUserInput: b = !1, displayValueAs: x = "label", tagPlacement: S, searchPlaceholder: C, placeholder: w, disabled: T = !1, required: E = !1, fullwidth: D = !1, hasError: O = !1, errorMessage: k, helptext: A, helptextDropdown: j, helptextDropdownButton: M, optionalTag: N = !1, optionalText: P, requiredTag: ee = !1, requiredText: te, tagText: ne, useWrapper: F = !0, inline: re = !1, counter: ie, inputSize: ae = "medium", name: oe, form: se, ariaDescribedby: I, className: L, onChange: R, onValueChange: ce, children: z, strings: le } = t, ue = `${r}-input`, de = `${r}-listbox`, V = v || b, H = p(null), U = p(null), W = p(null), G = p(null), K = p(null), fe = Er(K, se), q = o(() => {
3645
+ let { id: r = "", label: i, value: s, defaultValue: l, options: d, defaultOptions: h, multiple: g = !1, maxlength: _, typeahead: v = !1, includeSearch: y = !1, allowUserInput: b = !1, displayValueAs: x = "label", tagPlacement: S, searchPlaceholder: C, placeholder: w, disabled: T = !1, required: E = !1, fullwidth: D = !1, hasError: O = !1, errorMessage: k, helptext: A, helptextDropdown: j, helptextDropdownButton: M, optionalTag: N = !1, optionalText: P, requiredTag: ee = !1, requiredText: te, tagText: ne, useWrapper: F = !0, inline: re = !1, counter: ie, inputSize: ae = "medium", name: oe, form: se, ariaDescribedby: ce, className: I, onChange: L, onValueChange: le, children: R, strings: B } = t, ue = `${r}-input`, de = `${r}-listbox`, V = v || b, H = p(null), U = p(null), W = p(null), G = p(null), K = p(null), fe = Er(K, se), q = o(() => {
3656
3646
  V ? H.current?.focus() : W.current?.focus();
3657
3647
  }, [V]), pe = o(() => {
3658
3648
  Pe(!0);
@@ -3660,7 +3650,7 @@ function Or(t, n) {
3660
3650
  e && e.type !== "hidden" && e.setAttribute("tabindex", "-1"), W.current?.focus();
3661
3651
  }, []), me = f(() => {
3662
3652
  let t = [];
3663
- return e.forEach(z, (e) => {
3653
+ return e.forEach(R, (e) => {
3664
3654
  if (a(e) && e.type === "option") {
3665
3655
  let n = e.props;
3666
3656
  t.push({
@@ -3671,7 +3661,7 @@ function Or(t, n) {
3671
3661
  });
3672
3662
  }
3673
3663
  }), t;
3674
- }, [z]), he = f(() => h && h.length > 0 ? h.map((e) => ({
3664
+ }, [R]), he = f(() => h && h.length > 0 ? h.map((e) => ({
3675
3665
  ...e,
3676
3666
  fulltext: sr(e)
3677
3667
  })) : d && d.length > 0 ? d.map((e) => ({
@@ -3699,7 +3689,7 @@ function Or(t, n) {
3699
3689
  he,
3700
3690
  ye,
3701
3691
  X
3702
- ]), [Q, xe] = m(!1), [Se, Ce] = m(""), [we, Te] = m(""), [Ee, De] = m(""), [Oe, ke] = m(null), [Ae, je] = m(null), [Me, $] = m(!1), [Ne, Pe] = m(!1), Fe = p(!1), [Ie, Le] = m(!1), [Re, ze] = m(-1), Be = ve(["combobox"], le), Ve = Ee ? B(Be.combobox[Ee], { value: Oe ?? "" }) : "", He = cr(X.length, _ ?? null), Ue = ie ?? (g && _ != null), We = f(() => Se ? v ? dr(Z, Se).filtered : or(Z, Se) : Z, [
3692
+ ]), [Q, xe] = m(!1), [Se, Ce] = m(""), [we, Te] = m(""), [Ee, De] = m(""), [Oe, ke] = m(null), [Ae, je] = m(null), [Me, $] = m(!1), [Ne, Pe] = m(!1), Fe = p(!1), [Ie, Le] = m(!1), [Re, ze] = m(-1), Be = ve(["combobox"], B), Ve = Ee ? z(Be.combobox[Ee], { value: Oe ?? "" }) : "", He = cr(X.length, _ ?? null), Ue = ie ?? (g && _ != null), We = f(() => Se ? v ? dr(Z, Se).filtered : or(Z, Se) : Z, [
3703
3693
  Z,
3704
3694
  Se,
3705
3695
  v
@@ -3723,10 +3713,10 @@ function Or(t, n) {
3723
3713
  Q
3724
3714
  ]);
3725
3715
  let Je = o((e, t = !0) => {
3726
- J || Y(e), t && (ce?.(e), Ke(e));
3716
+ J || Y(e), t && (le?.(e), Ke(e));
3727
3717
  }, [
3728
3718
  J,
3729
- ce,
3719
+ le,
3730
3720
  Ke
3731
3721
  ]), Ye = o((e) => {
3732
3722
  if (!e || X.includes(e)) return;
@@ -4151,7 +4141,7 @@ function Or(t, n) {
4151
4141
  userInfoMessage: Ve,
4152
4142
  skipInputTab: Ne,
4153
4143
  restoreInputTab: () => Pe(!1),
4154
- strings: le,
4144
+ strings: B,
4155
4145
  addValueText: Ae,
4156
4146
  maxIsReached: He,
4157
4147
  editingSingleValue: Ie,
@@ -4185,8 +4175,8 @@ function Or(t, n) {
4185
4175
  inputSize: ae,
4186
4176
  name: oe,
4187
4177
  form: se,
4188
- ariaDescribedby: I,
4189
- className: L,
4178
+ ariaDescribedby: ce,
4179
+ className: I,
4190
4180
  hasCounter: Ue,
4191
4181
  inputRef: H,
4192
4182
  changeInputRef: U,
@@ -4209,7 +4199,7 @@ function Or(t, n) {
4209
4199
  handleSearchKeydown: gt,
4210
4200
  handleNewOptionClick: _t,
4211
4201
  handleNewOptionKeydown: vt,
4212
- onChange: R
4202
+ onChange: L
4213
4203
  };
4214
4204
  }
4215
4205
  //#endregion
@@ -4454,17 +4444,17 @@ var Fr = () => {
4454
4444
  })
4455
4445
  });
4456
4446
  }, Kr = ({ state: e }) => {
4457
- let { id: t, inputId: n, values: r, dateformat: i, multiple: a, range: o, showRangeLabels: s, disabled: c, readOnly: l, required: u, label: d, name: f, placeholder: p, hasError: m, helptext: h, minStr: y, maxStr: b, inputType: x, isIOSDevice: S, strings: C, inputClasses: w, buttonClasses: T, rangeLabelClasses: E, datepickerInputsClasses: D, isInputDisabled: O, inputRef: k, inputRefTo: A, btnRef: j, toggleCalendar: M, handleFocus: N, handleSingleInputChange: P, handleRangeFromChange: ee, handleRangeToChange: te, handleRangeBlur: ne, handleMultipleBlur: F, handleTagRemoved: re, handleSingleKeydown: ie, handleRangeFromKeydown: ae, handleRangeToKeydown: oe, handleMultipleKeydown: se, restProps: I } = e, R = (e) => {
4447
+ let { id: t, inputId: n, values: r, dateformat: i, multiple: a, range: o, showRangeLabels: s, disabled: c, readOnly: l, required: u, label: d, name: f, placeholder: p, hasError: m, helptext: h, minStr: y, maxStr: b, inputType: x, isIOSDevice: S, strings: C, inputClasses: w, buttonClasses: T, rangeLabelClasses: E, datepickerInputsClasses: D, isInputDisabled: O, inputRef: k, inputRefTo: A, btnRef: j, toggleCalendar: M, handleFocus: N, handleSingleInputChange: P, handleRangeFromChange: ee, handleRangeToChange: te, handleRangeBlur: ne, handleMultipleBlur: F, handleTagRemoved: re, handleSingleKeydown: ie, handleRangeFromKeydown: ae, handleRangeToKeydown: oe, handleMultipleKeydown: se, restProps: ce } = e, L = (e) => {
4458
4448
  e.preventDefault(), M();
4459
- }, ce = (e) => {
4449
+ }, le = (e) => {
4460
4450
  e.preventDefault(), M();
4461
- }, z = () => /* @__PURE__ */ v("button", {
4451
+ }, R = () => /* @__PURE__ */ v("button", {
4462
4452
  ref: j,
4463
4453
  className: T,
4464
4454
  type: "button",
4465
4455
  onClick: M,
4466
4456
  disabled: c,
4467
- children: [/* @__PURE__ */ _(L, { name: "calendar" }), /* @__PURE__ */ _("span", {
4457
+ children: [/* @__PURE__ */ _(I, { name: "calendar" }), /* @__PURE__ */ _("span", {
4468
4458
  className: "pkt-btn__text",
4469
4459
  children: C.datepicker.openPicker
4470
4460
  })]
@@ -4480,7 +4470,7 @@ var Fr = () => {
4480
4470
  children: /* @__PURE__ */ v("div", {
4481
4471
  className: "pkt-input__container",
4482
4472
  children: [/* @__PURE__ */ _("input", {
4483
- ...I,
4473
+ ...ce,
4484
4474
  ref: k,
4485
4475
  className: w,
4486
4476
  type: x,
@@ -4492,12 +4482,12 @@ var Fr = () => {
4492
4482
  "aria-describedby": h ? `${n}-helptext` : void 0,
4493
4483
  "aria-invalid": m,
4494
4484
  "aria-errormessage": m ? `${n}-error` : void 0,
4495
- onClick: R,
4496
- onTouchEnd: ce,
4485
+ onClick: L,
4486
+ onTouchEnd: le,
4497
4487
  onKeyDown: se,
4498
4488
  onFocus: N,
4499
4489
  onBlur: F
4500
- }), z()]
4490
+ }), R()]
4501
4491
  })
4502
4492
  })] }) : o ? /* @__PURE__ */ _("div", {
4503
4493
  className: D,
@@ -4509,7 +4499,7 @@ var Fr = () => {
4509
4499
  children: C.generic.from
4510
4500
  }),
4511
4501
  /* @__PURE__ */ _("input", {
4512
- ...I,
4502
+ ...ce,
4513
4503
  ref: k,
4514
4504
  className: w,
4515
4505
  type: x,
@@ -4526,8 +4516,8 @@ var Fr = () => {
4526
4516
  "aria-describedby": h ? `${n}-helptext` : void 0,
4527
4517
  "aria-invalid": m,
4528
4518
  "aria-errormessage": m ? `${n}-error` : void 0,
4529
- onClick: R,
4530
- onTouchEnd: ce,
4519
+ onClick: L,
4520
+ onTouchEnd: le,
4531
4521
  onKeyDown: ae,
4532
4522
  onFocus: N,
4533
4523
  onBlur: ne,
@@ -4555,14 +4545,14 @@ var Fr = () => {
4555
4545
  disabled: c,
4556
4546
  "aria-label": `${d} ${C.generic.to}`,
4557
4547
  "aria-invalid": m,
4558
- onClick: R,
4559
- onTouchEnd: ce,
4548
+ onClick: L,
4549
+ onTouchEnd: le,
4560
4550
  onKeyDown: oe,
4561
4551
  onFocus: N,
4562
4552
  onBlur: ne,
4563
4553
  onChange: te
4564
4554
  }),
4565
- z()
4555
+ R()
4566
4556
  ]
4567
4557
  })
4568
4558
  }) : /* @__PURE__ */ _("div", {
@@ -4570,7 +4560,7 @@ var Fr = () => {
4570
4560
  children: /* @__PURE__ */ v("div", {
4571
4561
  className: "pkt-input__container",
4572
4562
  children: [/* @__PURE__ */ _("input", {
4573
- ...I,
4563
+ ...ce,
4574
4564
  ref: k,
4575
4565
  className: w,
4576
4566
  type: x,
@@ -4586,13 +4576,13 @@ var Fr = () => {
4586
4576
  "aria-describedby": h ? `${n}-helptext` : void 0,
4587
4577
  "aria-invalid": m,
4588
4578
  "aria-errormessage": m ? `${n}-error` : void 0,
4589
- onClick: R,
4590
- onTouchEnd: ce,
4579
+ onClick: L,
4580
+ onTouchEnd: le,
4591
4581
  onKeyDown: ie,
4592
4582
  onFocus: N,
4593
4583
  onBlur: void 0,
4594
4584
  onChange: P
4595
- }), z()]
4585
+ }), R()]
4596
4586
  })
4597
4587
  });
4598
4588
  }, qr = (e) => {
@@ -4607,7 +4597,7 @@ var Fr = () => {
4607
4597
  //#endregion
4608
4598
  //#region src/components/datepicker/useDatepickerState.ts
4609
4599
  function Jr(e, t) {
4610
- let { id: n, label: r, value: i, defaultValue: a, dateformat: s = "dd.MM.yyyy", multiple: l = !1, maxlength: d, range: h = !1, showRangeLabels: g = !1, weeknumbers: _ = !1, withcontrols: v = !1, excludedates: y, excludeweekdays: b, currentmonth: x, today: S, calendarOpen: C, timezone: w, fullwidth: T = !1, inputSize: E = "medium", hasFieldset: D = !1, counter: O, inline: k = !1, helptext: A, helptextDropdown: j, helptextDropdownButton: M, hasError: N = !1, errorMessage: P, optionalTag: ee = !1, optionalText: te, requiredTag: ne = !1, requiredText: F, tagText: re, useWrapper: ie = !0, strings: ae, disabled: oe = !1, readOnly: se = !1, required: I = !1, name: L, min: R, max: ce, placeholder: z, onChange: B, onValueChange: le, className: ue, ...de } = e, V = o((e) => e === void 0 ? [] : qr(e), []), H = i !== void 0, U = typeof a == "number" ? void 0 : a, [W, G] = m(() => V(i ?? U)), K = H ? V(i) : W, fe = p(W);
4600
+ let { id: n, label: r, value: i, defaultValue: a, dateformat: s = "dd.MM.yyyy", multiple: l = !1, maxlength: d, range: h = !1, showRangeLabels: g = !1, weeknumbers: _ = !1, withcontrols: v = !1, excludedates: y, excludeweekdays: b, currentmonth: x, today: S, calendarOpen: C, timezone: w, fullwidth: T = !1, inputSize: E = "medium", hasFieldset: D = !1, counter: O, inline: k = !1, helptext: A, helptextDropdown: j, helptextDropdownButton: M, hasError: N = !1, errorMessage: P, optionalTag: ee = !1, optionalText: te, requiredTag: ne = !1, requiredText: F, tagText: re, useWrapper: ie = !0, strings: ae, disabled: oe = !1, readOnly: se = !1, required: ce = !1, name: I, min: L, max: le, placeholder: R, onChange: z, onValueChange: B, className: ue, ...de } = e, V = o((e) => e === void 0 ? [] : qr(e), []), H = i !== void 0, U = typeof a == "number" ? void 0 : a, [W, G] = m(() => V(i ?? U)), K = H ? V(i) : W, fe = p(W);
4611
4601
  c(() => {
4612
4602
  H && G(V(i));
4613
4603
  }, [
@@ -4623,7 +4613,7 @@ function Jr(e, t) {
4623
4613
  "generic",
4624
4614
  "datepicker",
4625
4615
  "validation"
4626
- ], ae), be = ae, Z = typeof R == "string" ? R : R === void 0 ? void 0 : String(R), Q = typeof ce == "string" ? ce : ce === void 0 ? void 0 : String(ce), xe = f(() => {
4616
+ ], ae), be = ae, Z = typeof L == "string" ? L : L === void 0 ? void 0 : String(L), Q = typeof le == "string" ? le : le === void 0 ? void 0 : String(le), xe = f(() => {
4627
4617
  let e = Rr(T, g, l, h, se, _e, E);
4628
4618
  return Object.entries(e).filter(([, e]) => e).map(([e]) => e).join(" ");
4629
4619
  }, [
@@ -4647,8 +4637,8 @@ function Jr(e, t) {
4647
4637
  w && typeof window < "u" && w !== window.pktTz && (window.pktTz = w);
4648
4638
  }, [w]);
4649
4639
  let Ae = o((e, t = !0) => {
4650
- H || G(e), t && le?.(e);
4651
- }, [H, le]), je = f(() => Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set, []), Me = o((e) => {
4640
+ H || G(e), t && B?.(e);
4641
+ }, [H, B]), je = f(() => Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set, []), Me = o((e) => {
4652
4642
  if (h && e.length === 1) return;
4653
4643
  let t = J.current;
4654
4644
  !t || !je || (je.call(t, e.join(",")), t.dispatchEvent(new Event("input", { bubbles: !0 })));
@@ -4788,9 +4778,9 @@ function Jr(e, t) {
4788
4778
  excludeweekdays: b,
4789
4779
  disabled: oe,
4790
4780
  readOnly: se,
4791
- required: I,
4792
- name: L,
4793
- placeholder: z,
4781
+ required: ce,
4782
+ name: I,
4783
+ placeholder: R,
4794
4784
  fullwidth: T,
4795
4785
  inputSize: E,
4796
4786
  hasFieldset: D,
@@ -4826,7 +4816,7 @@ function Jr(e, t) {
4826
4816
  changeInputRef: J,
4827
4817
  btnRef: ge,
4828
4818
  wrapperRef: Y,
4829
- onChange: B,
4819
+ onChange: z,
4830
4820
  toggleCalendar: $,
4831
4821
  hideCalendar: Ne,
4832
4822
  handleDateSelected: Fe,
@@ -4976,12 +4966,12 @@ function ni(e, t, n) {
4976
4966
  function ri(e, t) {
4977
4967
  let n = Qr(t.allowedFormats);
4978
4968
  if (n.length > 0 && !ei(e, n)) {
4979
- let e = n.join(", "), r = ce.fileupload.invalidFormat;
4969
+ let e = n.join(", "), r = le.fileupload.invalidFormat;
4980
4970
  return ni(t.formatErrorMessage, r, { formats: e });
4981
4971
  }
4982
4972
  let r = Xr(t.maxFileSize);
4983
4973
  if (r !== void 0 && e.size > r) {
4984
- let e = Zr(r), n = ce.fileupload.sizeTooLarge;
4974
+ let e = Zr(r), n = le.fileupload.sizeTooLarge;
4985
4975
  return ni(t.sizeErrorMessage, n, { maxSize: e });
4986
4976
  }
4987
4977
  if (t.onFileValidation) {
@@ -5113,7 +5103,7 @@ function gi(e, t) {
5113
5103
  //#endregion
5114
5104
  //#region ../../shared-utils/fileupload/filename.ts
5115
5105
  var _i = ".jpeg, .jpg, .png, .gif, .webp, .heic";
5116
- function vi(e, t = ce.fileupload.unknownFilename) {
5106
+ function vi(e, t = le.fileupload.unknownFilename) {
5117
5107
  return e.attributes?.targetFilename || e.file?.name || t;
5118
5108
  }
5119
5109
  //#endregion
@@ -5212,7 +5202,7 @@ var yi = () => ("00000000000000000" + (Math.random() * 0x10000000000000000).toSt
5212
5202
  /* @__PURE__ */ v("div", {
5213
5203
  className: "pkt-fileupload__drop-zone__placeholder",
5214
5204
  children: [
5215
- /* @__PURE__ */ _(L, {
5205
+ /* @__PURE__ */ _(I, {
5216
5206
  name: "attachment",
5217
5207
  className: "pkt-fileupload__drop-zone__placeholder__icon",
5218
5208
  "aria-hidden": "true"
@@ -5253,11 +5243,11 @@ var yi = () => ("00000000000000000" + (Math.random() * 0x10000000000000000).toSt
5253
5243
  o,
5254
5244
  "pkt-textinput",
5255
5245
  "pkt-textarea"
5256
- ].filter(Boolean).join(" "), ae = Jn(e), oe = `${ae}-input`, se = `${oe}-label`, I = n || se, [L, R] = m(0), ce = (e) => {
5257
- re && R(e.currentTarget?.value?.length || 0), O && O(e);
5246
+ ].filter(Boolean).join(" "), ae = Jn(e), oe = `${ae}-input`, se = `${oe}-label`, ce = n || se, [I, L] = m(0), le = (e) => {
5247
+ re && L(e.currentTarget?.value?.length || 0), O && O(e);
5258
5248
  };
5259
5249
  return c(() => {
5260
- k !== void 0 && R(k?.length || 0);
5250
+ k !== void 0 && L(k?.length || 0);
5261
5251
  }, [k]), /* @__PURE__ */ _("div", {
5262
5252
  className: ie,
5263
5253
  children: /* @__PURE__ */ _(rr, {
@@ -5279,21 +5269,21 @@ var yi = () => ("00000000000000000" + (Math.random() * 0x10000000000000000).toSt
5279
5269
  tagText: w,
5280
5270
  useWrapper: D,
5281
5271
  counter: re,
5282
- counterCurrent: L,
5272
+ counterCurrent: I,
5283
5273
  counterMaxLength: a,
5284
5274
  hasFieldset: i ?? !1,
5285
5275
  size: ee,
5286
5276
  children: /* @__PURE__ */ _("textarea", {
5287
5277
  ref: (e) => {
5288
- R(e?.value?.length || 0), typeof F == "function" && F(e);
5278
+ L(e?.value?.length || 0), typeof F == "function" && F(e);
5289
5279
  },
5290
- className: `pkt-input pkt-input--${ee} ${g ? "pkt-input--fullwidth" : ""} ${a && L > a ? "pkt-input--counter-error" : ""}`,
5280
+ className: `pkt-input pkt-input--${ee} ${g ? "pkt-input--fullwidth" : ""} ${a && I > a ? "pkt-input--counter-error" : ""}`,
5291
5281
  name: `${y || ae}`,
5292
5282
  id: oe,
5293
5283
  placeholder: T,
5294
5284
  disabled: s,
5295
5285
  rows: E,
5296
- "aria-labelledby": I,
5286
+ "aria-labelledby": ce,
5297
5287
  "aria-invalid": u,
5298
5288
  "aria-errormessage": u ? `${ae}-error` : void 0,
5299
5289
  "aria-describedby": Zn({
@@ -5303,7 +5293,7 @@ var yi = () => ("00000000000000000" + (Math.random() * 0x10000000000000000).toSt
5303
5293
  ariaDescribedby: t
5304
5294
  }),
5305
5295
  ...ne,
5306
- onChange: ce,
5296
+ onChange: le,
5307
5297
  value: k,
5308
5298
  autoComplete: A,
5309
5299
  minLength: j,
@@ -5381,14 +5371,14 @@ var Ei = "comments", Di = (e) => {
5381
5371
  onClick: r,
5382
5372
  disabled: t,
5383
5373
  "aria-label": "Rediger kommentar",
5384
- children: /* @__PURE__ */ _(L, { name: "edit" })
5374
+ children: /* @__PURE__ */ _(I, { name: "edit" })
5385
5375
  }), /* @__PURE__ */ _("button", {
5386
5376
  type: "button",
5387
5377
  className: "pkt-fileupload__queue-display__item__comment__action",
5388
5378
  onClick: n,
5389
5379
  disabled: t,
5390
5380
  "aria-label": "Slett kommentar",
5391
- children: /* @__PURE__ */ _(L, { name: "trash-can" })
5381
+ children: /* @__PURE__ */ _(I, { name: "trash-can" })
5392
5382
  })]
5393
5383
  })]
5394
5384
  })
@@ -5740,7 +5730,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5740
5730
  }), ia = ({ cancelTransfer: e, transferItem: t, disabled: n = !1 }) => {
5741
5731
  let r = t.showProgress ?? t.progress !== 0;
5742
5732
  return /* @__PURE__ */ v(g, { children: [
5743
- /* @__PURE__ */ _(L, {
5733
+ /* @__PURE__ */ _(I, {
5744
5734
  name: "document-text",
5745
5735
  className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium",
5746
5736
  "aria-hidden": "true"
@@ -5788,7 +5778,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5788
5778
  }), oa = ({ transferItem: e, onRemove: t, disabled: n }) => {
5789
5779
  let r = (e.lastProgress ?? 1) * 100;
5790
5780
  return /* @__PURE__ */ v(g, { children: [
5791
- /* @__PURE__ */ _(L, {
5781
+ /* @__PURE__ */ _(I, {
5792
5782
  className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium",
5793
5783
  name: "alert-error",
5794
5784
  "aria-hidden": "true"
@@ -5813,7 +5803,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5813
5803
  })
5814
5804
  ] });
5815
5805
  }, sa = ({ transferItem: e, onRemove: t, disabled: n }) => /* @__PURE__ */ v(g, { children: [
5816
- /* @__PURE__ */ _(L, {
5806
+ /* @__PURE__ */ _(I, {
5817
5807
  className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium",
5818
5808
  name: "alert-error",
5819
5809
  "aria-hidden": "true"
@@ -5849,7 +5839,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5849
5839
  "aria-label": typeof e.ariaLabel == "function" ? e.ariaLabel(t.file) : e.ariaLabel,
5850
5840
  children: n
5851
5841
  }) : null;
5852
- }, ua = ({ transferItem: e }) => /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(L, {
5842
+ }, ua = ({ transferItem: e }) => /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(I, {
5853
5843
  name: "document-text",
5854
5844
  className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium",
5855
5845
  "aria-hidden": "true"
@@ -5868,7 +5858,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5868
5858
  src: n,
5869
5859
  alt: e.attributes.targetFilename,
5870
5860
  onError: () => a(!0)
5871
- }) || /* @__PURE__ */ _(L, {
5861
+ }) || /* @__PURE__ */ _(I, {
5872
5862
  name: "document-text",
5873
5863
  className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium"
5874
5864
  }), l = !!t;
@@ -5880,7 +5870,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5880
5870
  type: "button",
5881
5871
  skin: "secondary",
5882
5872
  onClick: t,
5883
- children: [l && /* @__PURE__ */ _(L, {
5873
+ children: [l && /* @__PURE__ */ _(I, {
5884
5874
  name: "expand",
5885
5875
  className: "pkt-fileupload__queue-display__item__thumbnail__expand-icon",
5886
5876
  "aria-hidden": "true"
@@ -5946,7 +5936,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
5946
5936
  alt: `${d.attributes.targetFilename} - ${n + 1} av ${t.length}`,
5947
5937
  className: "pkt-fileupload__image-preview__image",
5948
5938
  onError: () => u(!0)
5949
- }) : /* @__PURE__ */ _(L, {
5939
+ }) : /* @__PURE__ */ _(I, {
5950
5940
  name: "picture",
5951
5941
  className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium"
5952
5942
  })
@@ -6010,7 +6000,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6010
6000
  ...e
6011
6001
  }) : void 0, s = n?.renderInlineUI || n?.renderExtendedUI ? [] : r;
6012
6002
  return /* @__PURE__ */ v(g, { children: [
6013
- n?.renderInlineUI && o ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(L, {
6003
+ n?.renderInlineUI && o ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(I, {
6014
6004
  name: "document-text",
6015
6005
  className: "pkt-fileupload__queue-display__item__icon"
6016
6006
  }), /* @__PURE__ */ _("div", {
@@ -6099,10 +6089,10 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6099
6089
  }, Sa = {
6100
6090
  filename: ua,
6101
6091
  thumbnail: da
6102
- }, Ca = i(({ value: e, defaultValue: t, id: n, multiple: r = !1, uploadStrategy: i = "form", addCommentsEnabled: a = !1, renameFilesEnabled: s = !1, truncateTail: d = 4, onFilesChanged: h, onFileUploadRequested: g, extraOperations: y = [], itemRenderer: b = Sa.filename, fullwidth: x = !1, allowedFormats: S, formatErrorMessage: C, maxFileSize: w, sizeErrorMessage: T, onFileValidation: E, onFileValidate: D, errorMessage: O, hasError: k = !1, disabled: A = !1, label: j, helptext: N, helptextDropdown: P, helptextDropdownButton: ee, optionalTag: te, optionalText: ne, requiredTag: F, requiredText: re, tagText: ie, required: ae = !1, enableImagePreview: oe = !1, "aria-describedby": se, "aria-invalid": I, strings: L, ...R }, ce) => {
6103
- let z = l(), ue = n ?? `pkt-fileupload-${z}`, de = p(null);
6104
- u(ce, () => de.current, []);
6105
- let V = "transfers" in R ? R.transfers : void 0, H = ve(["fileupload"], L).fileupload, [U, W] = m(null), [G, K] = m("");
6092
+ }, Ca = i(({ value: e, defaultValue: t, id: n, multiple: r = !1, uploadStrategy: i = "form", addCommentsEnabled: a = !1, renameFilesEnabled: s = !1, truncateTail: d = 4, onFilesChanged: h, onFileUploadRequested: g, extraOperations: y = [], itemRenderer: b = Sa.filename, fullwidth: x = !1, allowedFormats: S, formatErrorMessage: C, maxFileSize: w, sizeErrorMessage: T, onFileValidation: E, onFileValidate: D, errorMessage: O, hasError: k = !1, disabled: A = !1, label: j, helptext: N, helptextDropdown: P, helptextDropdownButton: ee, optionalTag: te, optionalText: ne, requiredTag: F, requiredText: re, tagText: ie, required: ae = !1, enableImagePreview: oe = !1, "aria-describedby": se, "aria-invalid": ce, strings: I, ...L }, le) => {
6093
+ let R = l(), ue = n ?? `pkt-fileupload-${R}`, de = p(null);
6094
+ u(le, () => de.current, []);
6095
+ let V = "transfers" in L ? L.transfers : void 0, H = ve(["fileupload"], I).fileupload, [U, W] = m(null), [G, K] = m("");
6106
6096
  c(() => {
6107
6097
  if (!G) return;
6108
6098
  let e = setTimeout(() => K(""), 1500);
@@ -6112,7 +6102,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6112
6102
  se,
6113
6103
  N ? `${ue}-helptext` : void 0,
6114
6104
  pe
6115
- ].filter(Boolean).join(" ") || void 0, he = q || I === !0 || I === "true", J = o((e) => {
6105
+ ].filter(Boolean).join(" ") || void 0, he = q || ce === !0 || ce === "true", J = o((e) => {
6116
6106
  let t = ri(e, {
6117
6107
  allowedFormats: S,
6118
6108
  maxFileSize: w,
@@ -6145,7 +6135,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6145
6135
  currentFileCount: X.length,
6146
6136
  onMissingFiles: o(() => W(H.requiredMissing), [H])
6147
6137
  });
6148
- let be = typeof b == "string" ? Sa[b] : b, Z = b === "thumbnail", Q = typeof R.accept == "string" ? R.accept.trim() : void 0, xe = f(() => ti(Q, S) || void 0, [Q, S]), Se = s && !Z, Ce = a && !Z, we = o((e) => {
6138
+ let be = typeof b == "string" ? Sa[b] : b, Z = b === "thumbnail", Q = typeof L.accept == "string" ? L.accept.trim() : void 0, xe = f(() => ti(Q, S) || void 0, [Q, S]), Se = s && !Z, Ce = a && !Z, we = o((e) => {
6149
6139
  for (let t of e) {
6150
6140
  let e = J(t.file);
6151
6141
  if (e) {
@@ -6155,7 +6145,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6155
6145
  }
6156
6146
  W(null);
6157
6147
  let t = r ? [...X, ...e] : [e[0]], n = r ? e : [e[0]];
6158
- K(n.length === 1 ? B(H.srFileAdded, { filename: n[0].attributes.targetFilename }) : B(H.srFilesAdded, { count: n.length })), ge || _e(t), h?.(t), i === "custom" && g && e.forEach((e) => {
6148
+ K(n.length === 1 ? z(H.srFileAdded, { filename: n[0].attributes.targetFilename }) : z(H.srFilesAdded, { count: n.length })), ge || _e(t), h?.(t), i === "custom" && g && e.forEach((e) => {
6159
6149
  g?.(e);
6160
6150
  });
6161
6151
  }, [
@@ -6179,11 +6169,11 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6179
6169
  ge
6180
6170
  ]), Ee = o((e) => {
6181
6171
  let t = X.filter((t) => t.fileId !== e);
6182
- ge || _e(t), h?.(t), "onTransferCancelled" in R && R.onTransferCancelled && R.onTransferCancelled?.(e);
6172
+ ge || _e(t), h?.(t), "onTransferCancelled" in L && L.onTransferCancelled && L.onTransferCancelled?.(e);
6183
6173
  }, [
6184
6174
  h,
6185
6175
  X,
6186
- R,
6176
+ L,
6187
6177
  ge
6188
6178
  ]), { buildAttributeAccessors: De } = Ri(X, Te), Oe = f(() => {
6189
6179
  let e = [];
@@ -6193,7 +6183,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6193
6183
  Ce,
6194
6184
  y,
6195
6185
  Ee
6196
- ]), { totalCount: ke, uploadedCount: Ae, failedCount: je } = f(() => gi(X, V), [X, V]), Me = le(ke, H.fileLabelOne, H.fileLabelOther), $ = /* @__PURE__ */ _("div", {
6186
+ ]), { totalCount: ke, uploadedCount: Ae, failedCount: je } = f(() => gi(X, V), [X, V]), Me = B(ke, H.fileLabelOne, H.fileLabelOther), $ = /* @__PURE__ */ _("div", {
6197
6187
  className: (0, M.default)("pkt-fileupload", {
6198
6188
  "pkt-fileupload--full-width": x,
6199
6189
  "pkt-fileupload--error": q,
@@ -6203,7 +6193,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6203
6193
  ...A ? { inert: !0 } : {},
6204
6194
  children: /* @__PURE__ */ v(Si.Provider, {
6205
6195
  value: {
6206
- name: R.name || "",
6196
+ name: L.name || "",
6207
6197
  multiple: !!r,
6208
6198
  id: ue
6209
6199
  },
@@ -6212,7 +6202,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6212
6202
  className: "pkt-sr-only",
6213
6203
  "aria-live": "polite",
6214
6204
  "aria-atomic": "true",
6215
- children: G || (ke > 0 && Ae > 0 ? B(H.srFilesUploadedOfTotal, {
6205
+ children: G || (ke > 0 && Ae > 0 ? z(H.srFilesUploadedOfTotal, {
6216
6206
  uploaded: Ae,
6217
6207
  total: ke,
6218
6208
  label: Me
@@ -6222,7 +6212,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6222
6212
  className: "pkt-sr-only",
6223
6213
  "aria-live": "assertive",
6224
6214
  "aria-atomic": "true",
6225
- children: ke > 0 && je > 0 && B(H.srFilesFailedOfTotal, {
6215
+ children: ke > 0 && je > 0 && z(H.srFilesFailedOfTotal, {
6226
6216
  failed: je,
6227
6217
  total: ke,
6228
6218
  label: Me
@@ -6230,8 +6220,8 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6230
6220
  }),
6231
6221
  /* @__PURE__ */ _(Ci, {
6232
6222
  id: ue,
6233
- name: R.name || "",
6234
- form: R.form,
6223
+ name: L.name || "",
6224
+ form: L.form,
6235
6225
  value: X,
6236
6226
  onFilesAdded: we,
6237
6227
  multiple: r,
@@ -6245,7 +6235,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6245
6235
  "aria-invalid": he ? "true" : void 0,
6246
6236
  "aria-describedby": me,
6247
6237
  hasVisibleLabel: !!j,
6248
- strings: L
6238
+ strings: I
6249
6239
  }),
6250
6240
  q && fe && /* @__PURE__ */ _(ye, {
6251
6241
  skin: "error",
@@ -6265,7 +6255,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6265
6255
  ItemRenderer: be,
6266
6256
  enableImagePreview: Z && oe,
6267
6257
  disabled: A,
6268
- inputName: R.name || "",
6258
+ inputName: L.name || "",
6269
6259
  buildAttributeAccessors: De,
6270
6260
  queueItemOperations: Oe
6271
6261
  })
@@ -6275,7 +6265,7 @@ var ea = n({ tail: 5 }), ta = ({ children: e, tail: t }) => {
6275
6265
  return /* @__PURE__ */ _("div", {
6276
6266
  className: "pkt-fileupload-component",
6277
6267
  children: /* @__PURE__ */ _(rr, {
6278
- strings: L,
6268
+ strings: I,
6279
6269
  forId: ue,
6280
6270
  label: j ?? "",
6281
6271
  helptext: N,
@@ -6468,7 +6458,7 @@ var Ua = ({ link: e, includeConsent: t, consent: n }) => {
6468
6458
  className: "pkt-footer__some-link",
6469
6459
  href: e.url,
6470
6460
  "aria-label": e.text,
6471
- children: /* @__PURE__ */ _(L, {
6461
+ children: /* @__PURE__ */ _(I, {
6472
6462
  className: "pkt-footer__some-icon",
6473
6463
  name: t
6474
6464
  })
@@ -6611,7 +6601,7 @@ var Ua = ({ link: e, includeConsent: t, consent: n }) => {
6611
6601
  "aria-label": `til ${e.iconName}`,
6612
6602
  target: e.openInNewTab || d ? "_blank" : "_self",
6613
6603
  rel: e.openInNewTab || d ? "noopener noreferrer" : void 0,
6614
- children: /* @__PURE__ */ _(L, {
6604
+ children: /* @__PURE__ */ _(I, {
6615
6605
  className: "pkt-footer__some-icon",
6616
6606
  name: e.iconName
6617
6607
  })
@@ -6633,7 +6623,7 @@ var Ua = ({ link: e, includeConsent: t, consent: n }) => {
6633
6623
  href: e.href,
6634
6624
  target: n ? "_blank" : "_self",
6635
6625
  rel: n ? "noopener noreferrer" : void 0,
6636
- children: [/* @__PURE__ */ _(L, {
6626
+ children: [/* @__PURE__ */ _(I, {
6637
6627
  className: "pkt-footer-simple__link-icon",
6638
6628
  name: "arrow-link"
6639
6629
  }), /* @__PURE__ */ v("span", { children: [e.text, r && /* @__PURE__ */ v("span", {
@@ -6845,7 +6835,7 @@ var to = ({ dataUrl: e = Rn, data: t, locale: n = "nb-NO", open: r = !1, mobileB
6845
6835
  children: /* @__PURE__ */ v("a", {
6846
6836
  className: "pkt-header-menu__service-link",
6847
6837
  href: e.url,
6848
- children: [/* @__PURE__ */ _(L, {
6838
+ children: [/* @__PURE__ */ _(I, {
6849
6839
  className: "pkt-header-menu__service-icon",
6850
6840
  name: Ta(e.icon),
6851
6841
  "aria-hidden": "true"
@@ -6861,13 +6851,13 @@ var to = ({ dataUrl: e = Rn, data: t, locale: n = "nb-NO", open: r = !1, mobileB
6861
6851
  className: "pkt-header-menu__sections-inner",
6862
6852
  skin: "plus-minus",
6863
6853
  name: "header-menu-accordion",
6864
- children: [/* @__PURE__ */ _(R, {
6854
+ children: [/* @__PURE__ */ _(L, {
6865
6855
  className: "pkt-header-menu__section",
6866
6856
  skin: "plus-minus",
6867
6857
  id: "pkt-header-menu-services",
6868
6858
  title: e.title,
6869
6859
  children: /* @__PURE__ */ _(no, { services: e })
6870
- }), t.map((e, t) => /* @__PURE__ */ _(R, {
6860
+ }), t.map((e, t) => /* @__PURE__ */ _(L, {
6871
6861
  className: "pkt-header-menu__section",
6872
6862
  skin: "plus-minus",
6873
6863
  id: `pkt-header-menu-section-${t}`,
@@ -6889,7 +6879,7 @@ var to = ({ dataUrl: e = Rn, data: t, locale: n = "nb-NO", open: r = !1, mobileB
6889
6879
  children: e.map((e) => /* @__PURE__ */ v("a", {
6890
6880
  className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right pkt-btn--small",
6891
6881
  href: e.url,
6892
- children: [/* @__PURE__ */ _(L, {
6882
+ children: [/* @__PURE__ */ _(I, {
6893
6883
  className: "pkt-btn__icon",
6894
6884
  name: e.iconName ? Ta(e.iconName) : "user",
6895
6885
  "aria-hidden": "true"
@@ -6940,7 +6930,7 @@ var to = ({ dataUrl: e = Rn, data: t, locale: n = "nb-NO", open: r = !1, mobileB
6940
6930
  className: "pkt-header-menu__social-link",
6941
6931
  href: e.url,
6942
6932
  "aria-label": e.text,
6943
- children: t ? /* @__PURE__ */ _(L, {
6933
+ children: t ? /* @__PURE__ */ _(I, {
6944
6934
  name: t,
6945
6935
  "aria-hidden": "true"
6946
6936
  }) : /* @__PURE__ */ _("span", { children: e.text })
@@ -6951,7 +6941,7 @@ var to = ({ dataUrl: e = Rn, data: t, locale: n = "nb-NO", open: r = !1, mobileB
6951
6941
  "pkt-link--icon-left": !!t && r === "left" || !!(t && !r),
6952
6942
  "pkt-link--icon-right": !!t && r === "right",
6953
6943
  "pkt-link--external": i
6954
- }, u = /* @__PURE__ */ v(g, { children: [t && /* @__PURE__ */ _(L, {
6944
+ }, u = /* @__PURE__ */ v(g, { children: [t && /* @__PURE__ */ _(I, {
6955
6945
  name: t,
6956
6946
  className: "pkt-link__icon"
6957
6947
  }), s] });
@@ -6993,7 +6983,7 @@ var fo = (e) => typeof e.target == "string" ? {
6993
6983
  onClick: () => {
6994
6984
  "onClick" in e && typeof e.onClick == "function" ? e.onClick() : console.error("UserMenuButton item is missing onClick handler or onClick is not a function:", e);
6995
6985
  },
6996
- children: [e.iconName && /* @__PURE__ */ _(L, {
6986
+ children: [e.iconName && /* @__PURE__ */ _(I, {
6997
6987
  name: e.iconName,
6998
6988
  className: "pkt-link__icon",
6999
6989
  "aria-hidden": "true"
@@ -7004,90 +6994,86 @@ var fo = (e) => typeof e.target == "string" ? {
7004
6994
  className: "pkt-user-menu__subitem",
7005
6995
  children: /* @__PURE__ */ _(po, { item: e })
7006
6996
  }, t))
7007
- }), ho = i(({ strings: e, user: t, formattedLastLoggedIn: n, representing: r, userMenu: i, canChangeRepresentation: a, changeRepresentation: o, logoutOnClick: s }, c) => {
7008
- let l = ve(["header"], e).header, u = i?.map(fo);
6997
+ }), ho = i(({ user: e, formattedLastLoggedIn: t, representing: n, userMenu: r, canChangeRepresentation: i, changeRepresentation: a, logoutOnClick: o }, s) => {
6998
+ let c = r?.map(fo);
7009
6999
  return /* @__PURE__ */ _("nav", {
7010
7000
  className: "pkt-user-menu",
7011
- ref: c,
7012
- "aria-label": l.userMenuLabel,
7001
+ ref: s,
7002
+ "aria-label": "Meny for innlogget bruker",
7013
7003
  children: /* @__PURE__ */ v("ul", {
7014
7004
  className: "pkt-user-menu__list",
7015
7005
  children: [
7016
- t && /* @__PURE__ */ v("li", {
7006
+ e && /* @__PURE__ */ v("li", {
7017
7007
  className: "pkt-user-menu__item",
7018
7008
  children: [
7019
7009
  /* @__PURE__ */ _("div", {
7020
7010
  className: "pkt-user-menu__label",
7021
- children: l.loggedInAs
7011
+ children: "Pålogget som"
7022
7012
  }),
7023
7013
  /* @__PURE__ */ _("div", {
7024
7014
  className: "pkt-user-menu__name",
7025
7015
  translate: "no",
7026
- children: t.name
7016
+ children: e.name
7027
7017
  }),
7028
- n && /* @__PURE__ */ v("div", {
7018
+ t && /* @__PURE__ */ v("div", {
7029
7019
  className: "pkt-user-menu__last-logged-in",
7030
- children: [
7031
- l.lastLoggedIn,
7032
- " ",
7033
- /* @__PURE__ */ _("time", { children: n })
7034
- ]
7020
+ children: ["Sist pålogget: ", /* @__PURE__ */ _("time", { children: t })]
7035
7021
  })
7036
7022
  ]
7037
7023
  }),
7038
- u && u.length > 0 && /* @__PURE__ */ _("li", {
7024
+ c && c.length > 0 && /* @__PURE__ */ _("li", {
7039
7025
  className: "pkt-user-menu__item",
7040
- children: /* @__PURE__ */ _(mo, { links: u })
7026
+ children: /* @__PURE__ */ _(mo, { links: c })
7041
7027
  }),
7042
- r && /* @__PURE__ */ v("li", {
7028
+ n && /* @__PURE__ */ v("li", {
7043
7029
  className: "pkt-user-menu__item",
7044
7030
  children: [
7045
7031
  /* @__PURE__ */ _("div", {
7046
7032
  className: "pkt-user-menu__label",
7047
- children: l.representing
7033
+ children: "Representerer"
7048
7034
  }),
7049
7035
  /* @__PURE__ */ _("div", {
7050
7036
  className: "pkt-user-menu__name",
7051
7037
  translate: "no",
7052
- children: r.name
7038
+ children: n.name
7053
7039
  }),
7054
- r.orgNumber && /* @__PURE__ */ _("div", {
7040
+ n.orgNumber && /* @__PURE__ */ v("div", {
7055
7041
  className: "pkt-user-menu__org-number",
7056
- children: B(l.orgNumber, { number: r.orgNumber })
7042
+ children: ["Org.nr. ", n.orgNumber]
7057
7043
  }),
7058
- a && o && /* @__PURE__ */ _("ul", {
7044
+ i && a && /* @__PURE__ */ _("ul", {
7059
7045
  className: "pkt-user-menu__sublist mt-size-16",
7060
7046
  children: /* @__PURE__ */ _("li", {
7061
7047
  className: "pkt-user-menu__subitem",
7062
7048
  children: /* @__PURE__ */ _(po, { item: {
7063
- title: l.changeRepresentation,
7049
+ title: "Endre organisasjon",
7064
7050
  iconName: "cogwheel",
7065
- onClick: o
7051
+ onClick: a
7066
7052
  } })
7067
7053
  })
7068
7054
  })
7069
7055
  ]
7070
7056
  }),
7071
- !r && a && o && /* @__PURE__ */ _("li", {
7057
+ !n && i && a && /* @__PURE__ */ _("li", {
7072
7058
  className: "pkt-user-menu__item",
7073
7059
  children: /* @__PURE__ */ _("ul", {
7074
7060
  className: "pkt-user-menu__sublist",
7075
7061
  children: /* @__PURE__ */ _("li", {
7076
7062
  className: "pkt-user-menu__subitem",
7077
7063
  children: /* @__PURE__ */ _(po, { item: {
7078
- title: l.changeRepresentation,
7064
+ title: "Endre organisasjon",
7079
7065
  iconName: "cogwheel",
7080
- onClick: o
7066
+ onClick: a
7081
7067
  } })
7082
7068
  })
7083
7069
  })
7084
7070
  }),
7085
- s && /* @__PURE__ */ _("li", {
7071
+ o && /* @__PURE__ */ _("li", {
7086
7072
  className: "pkt-user-menu__item",
7087
7073
  children: /* @__PURE__ */ _(po, { item: {
7088
- title: l.logOut,
7074
+ title: "Logg ut",
7089
7075
  iconName: "exit",
7090
- onClick: s
7076
+ onClick: o
7091
7077
  } })
7092
7078
  })
7093
7079
  ]
@@ -7190,16 +7176,16 @@ var go = i(({ appearance: e = "local", inputSize: t = "medium", disabled: n = !1
7190
7176
  go.displayName = "PktSearchInput";
7191
7177
  //#endregion
7192
7178
  //#region src/components/header/HeaderGlobal.tsx
7193
- var _o = "https://punkt-cdn.oslo.kommune.no/18.9/logos/";
7179
+ var _o = "https://punkt-cdn.oslo.kommune.no/latest/logos/";
7194
7180
  typeof window < "u" && (window.pktLogoPath = window.pktLogoPath || _o);
7195
7181
  var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "pkt-header-global-search-panel", xo = "pkt-header-global-search-toggle", So = i(({ className: e, "data-mode": t, dataUrl: n, data: r, locale: i = "nb-NO", logoLink: a = zn, logoClick: s, logoPath: l = typeof window < "u" ? window.pktLogoPath : _o, showSearch: u = !0, searchPlaceholder: h, onSearch: y, showContact: b = !0, user: x, userMenu: S, representing: C, canChangeRepresentation: w = !1, changeRepresentation: T, logOutButtonPlacement: E = "none", logOut: D, position: O = "fixed", scrollBehavior: k = "hide", mobileBreakpoint: A = 768, tabletBreakpoint: j = 1024, onDataLoaded: N, onDataError: P, strings: ee }, te) => {
7196
- let ne = k === "hide", [F, re] = m("none"), [ie, ae] = m(void 0), [oe, se] = m(!1), I = p(N), R = p(P);
7182
+ let ne = k === "hide", [F, re] = m("none"), [ie, ae] = m(void 0), [oe, se] = m(!1), ce = p(N), L = p(P);
7197
7183
  c(() => {
7198
- I.current = N;
7184
+ ce.current = N;
7199
7185
  }, [N]), c(() => {
7200
- R.current = P;
7186
+ L.current = P;
7201
7187
  }, [P]);
7202
- let { setRef: ce, isMobile: z, isTablet: B, isFixed: le, isSticky: ue, hidden: de, captureFocus: V, flagRestoreFocus: H, restoreFocus: U } = $a({
7188
+ let { setRef: le, isMobile: R, isTablet: z, isFixed: B, isSticky: ue, hidden: de, captureFocus: V, flagRestoreFocus: H, restoreFocus: U } = $a({
7203
7189
  forwardedRef: te,
7204
7190
  mobileBreakpoint: A,
7205
7191
  tabletBreakpoint: j,
@@ -7209,25 +7195,25 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7209
7195
  });
7210
7196
  eo(F === "menu" || F === "search");
7211
7197
  let W = p(null), G = o((e) => {
7212
- W.current = e, ce(e);
7213
- }, [ce]);
7198
+ W.current = e, le(e);
7199
+ }, [le]);
7214
7200
  d(() => {
7215
7201
  if (F !== "menu" && F !== "search") return;
7216
7202
  let e = document.getElementById(F === "menu" ? vo : bo), t = W.current?.getBoundingClientRect();
7217
7203
  !e || !t || (e.style.setProperty("--pkt-header-global-top", `${t.top}px`), e.style.setProperty("--pkt-header-global-left", `${t.left}px`), e.style.setProperty("--pkt-header-global-width", `${t.width}px`));
7218
7204
  }, [
7219
7205
  F,
7220
- z,
7221
- B
7206
+ R,
7207
+ z
7222
7208
  ]), c(() => {
7223
- r && I.current?.(r);
7209
+ r && ce.current?.(r);
7224
7210
  }, [r]), c(() => {
7225
7211
  if (r) return;
7226
7212
  let e = new AbortController();
7227
7213
  return Ba(n, e.signal).then((t) => {
7228
- e.signal.aborted || (ae(t), se(!1), I.current?.(t));
7214
+ e.signal.aborted || (ae(t), se(!1), ce.current?.(t));
7229
7215
  }).catch((e) => {
7230
- e.name !== "AbortError" && (se(!0), R.current?.(e));
7216
+ e.name !== "AbortError" && (se(!0), L.current?.(e));
7231
7217
  }), () => e.abort();
7232
7218
  }, [r, n]);
7233
7219
  let K = r ?? ie, fe = f(() => Aa(K, i), [K, i]);
@@ -7282,34 +7268,25 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7282
7268
  });
7283
7269
  }, [x?.lastLoggedIn]), pe = o((e) => {
7284
7270
  re((t) => t === e ? "none" : (V(), e));
7285
- }, [V]), me = E === "userMenu" || E === "both", he = ve(["header"], ee).header, J = fe?.search, ge = fe?.header?.contact, _e = fe?.i18n?.menu || he.menu, X = fe?.i18n?.search || he.search, ye = F === "menu", be = F === "user", Z = F === "search", Q = z, xe = !!(u && J), Se = J?.input.id || "pkt-header-global-search", Ce = !fe && !oe, we = /* @__PURE__ */ v("header", {
7286
- className: (0, M.default)("pkt-header-global", z && "pkt-header-global--mobile", B && "pkt-header-global--tablet", le && "pkt-header-global--fixed", ue && "pkt-header-global--sticky", ne && "pkt-header-global--scroll-to-hide", de && "pkt-header-global--hidden", e),
7271
+ }, [V]), me = E === "userMenu" || E === "both", he = ve(["header"], ee).header, J = fe?.search, ge = fe?.header?.contact, _e = fe?.i18n?.menu || he.menu, X = fe?.i18n?.search || he.search, ye = F === "menu", be = F === "user", Z = F === "search", Q = R, xe = !!(u && J), Se = J?.input.id || "pkt-header-global-search", Ce = !fe && !oe, we = /* @__PURE__ */ v("header", {
7272
+ className: (0, M.default)("pkt-header-global", R && "pkt-header-global--mobile", z && "pkt-header-global--tablet", B && "pkt-header-global--fixed", ue && "pkt-header-global--sticky", ne && "pkt-header-global--scroll-to-hide", de && "pkt-header-global--hidden", e),
7287
7273
  "data-mode": t,
7288
7274
  ref: G,
7289
7275
  children: [
7290
7276
  /* @__PURE__ */ _("div", {
7291
7277
  className: "pkt-header-global__logo-area",
7292
- children: a ? /* @__PURE__ */ _("span", {
7278
+ children: /* @__PURE__ */ _("span", {
7293
7279
  className: "pkt-header-global__logo",
7294
7280
  children: /* @__PURE__ */ _("a", {
7295
7281
  href: a,
7296
- "aria-label": he.logoLabel,
7282
+ "aria-label": "Til hovedsiden",
7297
7283
  onClick: s,
7298
- children: /* @__PURE__ */ _(L, {
7284
+ children: /* @__PURE__ */ _(I, {
7299
7285
  name: "oslologo",
7300
7286
  "aria-hidden": "true",
7301
7287
  path: l
7302
7288
  })
7303
7289
  })
7304
- }) : /* @__PURE__ */ _("span", {
7305
- className: "pkt-header-global__logo",
7306
- role: "img",
7307
- "aria-label": he.logoAlt,
7308
- children: /* @__PURE__ */ _(L, {
7309
- name: "oslologo",
7310
- "aria-hidden": "true",
7311
- path: l
7312
- })
7313
7290
  })
7314
7291
  }),
7315
7292
  /* @__PURE__ */ v("div", {
@@ -7319,7 +7296,7 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7319
7296
  className: "pkt-header-global__search",
7320
7297
  children: /* @__PURE__ */ _(go, {
7321
7298
  appearance: "global",
7322
- inputSize: B ? "small" : "medium",
7299
+ inputSize: z ? "small" : "medium",
7323
7300
  fullwidth: !0,
7324
7301
  id: Se,
7325
7302
  name: J.input.name,
@@ -7338,7 +7315,7 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7338
7315
  color: Z ? void 0 : "yellow",
7339
7316
  variant: "icon-only",
7340
7317
  iconName: Z ? "close" : "magnifying-glass-big",
7341
- size: z ? "small" : "medium",
7318
+ size: R ? "small" : "medium",
7342
7319
  state: Z ? "active" : "normal",
7343
7320
  "aria-expanded": Z,
7344
7321
  "aria-controls": bo,
@@ -7351,7 +7328,7 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7351
7328
  skin: Q ? "tertiary" : "secondary",
7352
7329
  variant: Q ? "icon-only" : "icon-right",
7353
7330
  iconName: ye ? "close" : "menu",
7354
- size: B ? "small" : "medium",
7331
+ size: z ? "small" : "medium",
7355
7332
  state: ye ? "active" : "normal",
7356
7333
  "aria-expanded": ye,
7357
7334
  "aria-controls": vo,
@@ -7360,7 +7337,7 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7360
7337
  children: _e
7361
7338
  }),
7362
7339
  !Q && b && ge && !x && /* @__PURE__ */ _("a", {
7363
- className: (0, M.default)("pkt-header-global__contact", "pkt-btn", "pkt-btn--secondary", "pkt-btn--label-only", B ? "pkt-btn--small" : "pkt-btn--medium"),
7340
+ className: (0, M.default)("pkt-header-global__contact", "pkt-btn", "pkt-btn--secondary", "pkt-btn--label-only", z ? "pkt-btn--small" : "pkt-btn--medium"),
7364
7341
  href: ge.url,
7365
7342
  children: /* @__PURE__ */ _("span", {
7366
7343
  className: "pkt-btn__text",
@@ -7376,15 +7353,15 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7376
7353
  children: [/* @__PURE__ */ v(Y, {
7377
7354
  className: "pkt-header-global__user-button",
7378
7355
  skin: "secondary",
7379
- size: B ? "small" : "medium",
7356
+ size: z ? "small" : "medium",
7380
7357
  state: be ? "active" : "normal",
7381
7358
  variant: "icons-right-and-left",
7382
7359
  iconName: "user",
7383
7360
  secondIconName: be ? "chevron-thin-up" : "chevron-thin-down",
7384
7361
  onClick: () => pe("user"),
7385
- children: [/* @__PURE__ */ v("span", {
7362
+ children: [/* @__PURE__ */ _("span", {
7386
7363
  className: "pkt-sr-only",
7387
- children: [he.userMenuButton, " "]
7364
+ children: "Brukermeny: "
7388
7365
  }), /* @__PURE__ */ _("span", {
7389
7366
  translate: "no",
7390
7367
  children: C?.name || x.name
@@ -7392,7 +7369,6 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7392
7369
  }), be && /* @__PURE__ */ _("div", {
7393
7370
  className: "pkt-header-global__user-menu is-open",
7394
7371
  children: /* @__PURE__ */ _(ho, {
7395
- strings: ee,
7396
7372
  user: x,
7397
7373
  formattedLastLoggedIn: q,
7398
7374
  representing: C,
@@ -7406,7 +7382,7 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7406
7382
  })
7407
7383
  ]
7408
7384
  }), Te = ye && /* @__PURE__ */ _("div", {
7409
- className: (0, M.default)("pkt-header-global__menu", z && "pkt-header-global__menu--mobile", B && !z && "pkt-header-global__menu--tablet"),
7385
+ className: (0, M.default)("pkt-header-global__menu", R && "pkt-header-global__menu--mobile", z && !R && "pkt-header-global__menu--tablet"),
7410
7386
  id: vo,
7411
7387
  children: fe ? /* @__PURE__ */ _(to, {
7412
7388
  data: K,
@@ -7421,7 +7397,7 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7421
7397
  })
7422
7398
  })
7423
7399
  }), Ee = Z && xe && J && /* @__PURE__ */ _("div", {
7424
- className: (0, M.default)("pkt-header-global__search-panel", z && "pkt-header-global__search-panel--mobile", B && !z && "pkt-header-global__search-panel--tablet"),
7400
+ className: (0, M.default)("pkt-header-global__search-panel", R && "pkt-header-global__search-panel--mobile", z && !R && "pkt-header-global__search-panel--tablet"),
7425
7401
  id: bo,
7426
7402
  children: /* @__PURE__ */ _("div", {
7427
7403
  className: "pkt-header-global__search-panel-inner",
@@ -7440,11 +7416,11 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7440
7416
  })
7441
7417
  })
7442
7418
  });
7443
- return le ? /* @__PURE__ */ v("div", {
7419
+ return B ? /* @__PURE__ */ v("div", {
7444
7420
  className: "pkt-header-global-wrapper",
7445
7421
  children: [
7446
7422
  we,
7447
- /* @__PURE__ */ _("div", { className: (0, M.default)("pkt-header-global-spacer", z && "pkt-header-global-spacer--mobile", B && !z && "pkt-header-global-spacer--tablet", x && "pkt-header-global-spacer--has-user") }),
7423
+ /* @__PURE__ */ _("div", { className: (0, M.default)("pkt-header-global-spacer", R && "pkt-header-global-spacer--mobile", z && !R && "pkt-header-global-spacer--tablet", x && "pkt-header-global-spacer--has-user") }),
7448
7424
  Ee,
7449
7425
  Te
7450
7426
  ]
@@ -7457,16 +7433,16 @@ var vo = "pkt-header-global-menu", yo = "pkt-header-global-menu-toggle", bo = "p
7457
7433
  So.displayName = "PktHeaderGlobal";
7458
7434
  //#endregion
7459
7435
  //#region src/components/textinput/Textinput.tsx
7460
- var Co = i(({ id: e, ariaDescribedby: t, ariaLabelledby: n, autocomplete: r = "off", counter: i, hasFieldset: a, counterMaxLength: o, className: s, disabled: l = !1, errorMessage: u, hasError: d = !1, helptext: f, helptextDropdown: p, helptextDropdownButton: h, iconNameRight: g, inline: y = !1, fullwidth: b = !1, label: x, name: S, optionalTag: C = !1, optionalText: w, requiredTag: T = !1, requiredText: E, tagText: D = null, placeholder: O, prefix: k, suffix: A, type: j = "text", useWrapper: M = !0, omitSearchIcon: N = !1, value: P, minLength: ee, maxLength: te, min: ne, max: F, step: re, size: ie, readonly: ae, required: oe, dataTestid: se, onChange: I, skipForwardTestid: R = !1, inputSize: ce = "medium", strings: z, ...B }, le) => {
7436
+ var Co = i(({ id: e, ariaDescribedby: t, ariaLabelledby: n, autocomplete: r = "off", counter: i, hasFieldset: a, counterMaxLength: o, className: s, disabled: l = !1, errorMessage: u, hasError: d = !1, helptext: f, helptextDropdown: p, helptextDropdownButton: h, iconNameRight: g, inline: y = !1, fullwidth: b = !1, label: x, name: S, optionalTag: C = !1, optionalText: w, requiredTag: T = !1, requiredText: E, tagText: D = null, placeholder: O, prefix: k, suffix: A, type: j = "text", useWrapper: M = !0, omitSearchIcon: N = !1, value: P, minLength: ee, maxLength: te, min: ne, max: F, step: re, size: ie, readonly: ae, required: oe, dataTestid: se, onChange: ce, skipForwardTestid: L = !1, inputSize: le = "medium", strings: R, ...z }, B) => {
7461
7437
  let ue = i ?? (o ?? 0) > 0, de = [s, "pkt-textinput"].filter(Boolean).join(" "), V = j === "search" && !g && !N, H = j === "date" && P ? P.slice(0, 10) : P, [U, W] = m(P?.length || 0), G = Jn(e), K = `${G}`, fe = `${K}-label`, q = n || fe, pe = (e) => {
7462
- ue && W(e.currentTarget?.value?.length || 0), I && I(e);
7438
+ ue && W(e.currentTarget?.value?.length || 0), ce && ce(e);
7463
7439
  };
7464
7440
  return c(() => {
7465
7441
  P !== void 0 && W(P?.length || 0);
7466
7442
  }, [P]), /* @__PURE__ */ _("div", {
7467
7443
  className: de,
7468
7444
  children: /* @__PURE__ */ _(rr, {
7469
- strings: z,
7445
+ strings: R,
7470
7446
  ariaDescribedby: t,
7471
7447
  disabled: l,
7472
7448
  errorMessage: u,
@@ -7487,20 +7463,20 @@ var Co = i(({ id: e, ariaDescribedby: t, ariaLabelledby: n, autocomplete: r = "o
7487
7463
  counterCurrent: U,
7488
7464
  counterMaxLength: o,
7489
7465
  hasFieldset: a ?? !1,
7490
- size: ce,
7466
+ size: le,
7491
7467
  children: /* @__PURE__ */ v("div", {
7492
- className: `pkt-input__container pkt-input__container--${ce}`,
7468
+ className: `pkt-input__container pkt-input__container--${le}`,
7493
7469
  "data-testid": se,
7494
- "data-skip-forward-testid": R ? "true" : void 0,
7470
+ "data-skip-forward-testid": L ? "true" : void 0,
7495
7471
  children: [
7496
7472
  k && /* @__PURE__ */ _("div", {
7497
7473
  className: "pkt-input-prefix",
7498
7474
  children: k
7499
7475
  }),
7500
7476
  /* @__PURE__ */ _("input", {
7501
- ...B,
7502
- ref: le,
7503
- className: `pkt-input pkt-input--${ce} ${b ? "pkt-input--fullwidth" : ""} ${o && U > o ? "pkt-input--counter-error" : ""}`,
7477
+ ...z,
7478
+ ref: B,
7479
+ className: `pkt-input pkt-input--${le} ${b ? "pkt-input--fullwidth" : ""} ${o && U > o ? "pkt-input--counter-error" : ""}`,
7504
7480
  type: j,
7505
7481
  name: `${S || G}`,
7506
7482
  value: H,
@@ -7531,21 +7507,21 @@ var Co = i(({ id: e, ariaDescribedby: t, ariaLabelledby: n, autocomplete: r = "o
7531
7507
  className: "pkt-input-suffix",
7532
7508
  children: [
7533
7509
  A,
7534
- g && /* @__PURE__ */ _(L, {
7510
+ g && /* @__PURE__ */ _(I, {
7535
7511
  className: "pkt-input-suffix-icon",
7536
7512
  name: g
7537
7513
  }),
7538
- V && /* @__PURE__ */ _(L, {
7514
+ V && /* @__PURE__ */ _(I, {
7539
7515
  className: "pkt-input-suffix-icon",
7540
7516
  name: "magnifying-glass-big"
7541
7517
  })
7542
7518
  ]
7543
7519
  }),
7544
- !A && g && /* @__PURE__ */ _(L, {
7520
+ !A && g && /* @__PURE__ */ _(I, {
7545
7521
  className: "pkt-input-icon",
7546
7522
  name: g
7547
7523
  }),
7548
- !A && V && /* @__PURE__ */ _(L, {
7524
+ !A && V && /* @__PURE__ */ _(I, {
7549
7525
  className: "pkt-input-icon",
7550
7526
  name: "magnifying-glass-big"
7551
7527
  })
@@ -7557,37 +7533,37 @@ var Co = i(({ id: e, ariaDescribedby: t, ariaLabelledby: n, autocomplete: r = "o
7557
7533
  Co.displayName = "PktTextinput";
7558
7534
  //#endregion
7559
7535
  //#region src/components/header/HeaderService.tsx
7560
- var wo = "https://punkt-cdn.oslo.kommune.no/18.9/logos/";
7536
+ var wo = "https://punkt-cdn.oslo.kommune.no/latest/logos/";
7561
7537
  typeof window < "u" && (window.pktLogoPath = window.pktLogoPath || wo);
7562
- var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n, className: r, compact: i = !1, "data-mode": a, logOutButtonPlacement: s = "none", logOut: l, openedMenu: u, showSearch: d = !1, onSearch: h, onSearchChange: y, searchValue: b, searchPlaceholder: x, representing: S, serviceLink: C, serviceClick: w, serviceName: T, user: E, userMenu: D, userMenuFooter: O, userOptions: k, canChangeRepresentation: A = !1, changeRepresentation: j, hideLogo: N = !1, logoLink: P = zn, logoClick: ee, logoPath: te = typeof window < "u" ? window.pktLogoPath : wo, position: ne = "fixed", scrollBehavior: F = "hide", slotMenuVariant: re = "icon-only", slotMenuText: ie, strings: ae }, oe) => {
7538
+ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n, className: r, compact: i = !1, "data-mode": a, logOutButtonPlacement: s = "none", logOut: l, openedMenu: u, showSearch: d = !1, onSearch: h, onSearchChange: y, searchValue: b, searchPlaceholder: x, representing: S, serviceLink: C, serviceClick: w, serviceName: T, user: E, userMenu: D, userMenuFooter: O, userOptions: k, canChangeRepresentation: A = !1, changeRepresentation: j, hideLogo: N = !1, logoLink: P = zn, logoClick: ee, logoPath: te = typeof window < "u" ? window.pktLogoPath : wo, position: ne = "fixed", scrollBehavior: F = "hide", slotMenuVariant: re = "icon-only", slotMenuText: ie = "Meny", strings: ae }, oe) => {
7563
7539
  let se = F === "hide";
7564
7540
  c(() => {
7565
7541
  O && console.warn("PktHeaderService: The \"userMenuFooter\" prop is deprecated and will be removed in a future version. Please use \"userMenu\" instead.");
7566
7542
  }, [O]);
7567
- let I = ve(["header"], ae).header, R = x ?? I.search;
7543
+ let ce = ve(["header"], ae).header, L = x ?? ce.search;
7568
7544
  c(() => {
7569
7545
  k && console.warn("PktHeaderService: The \"userOptions\" prop is no longer available. Please use \"userMenu\" instead.");
7570
7546
  }, [k]), c(() => {
7571
7547
  E?.shortname && console.warn("PktHeaderService: The \"shortname\" property on the user object is deprecated and will be removed in a future version."), S?.shortname && console.warn("PktHeaderService: The \"shortname\" property on the representing object is deprecated and will be removed in a future version.");
7572
7548
  }, [E?.shortname, S?.shortname]);
7573
- let ce = f(() => {
7549
+ let le = f(() => {
7574
7550
  if (E?.lastLoggedIn) return typeof E.lastLoggedIn == "string" ? E.lastLoggedIn : new Date(E.lastLoggedIn).toLocaleString("nb-NO", {
7575
7551
  year: "numeric",
7576
7552
  month: "long",
7577
7553
  day: "numeric"
7578
7554
  });
7579
- }, [E?.lastLoggedIn]), [z, B] = m(u || "none");
7555
+ }, [E?.lastLoggedIn]), [R, z] = m(u || "none");
7580
7556
  c(() => {
7581
- u !== void 0 && B(u);
7557
+ u !== void 0 && z(u);
7582
7558
  }, [u]);
7583
- let [le, ue] = m(!1), [de, V] = m(!1), H = p(null), U = p(null), W = p(null), G = p(null), K = p(null), { setRef: fe, isMobile: q, isTablet: pe, isFixed: me, isSticky: he, hidden: J, captureFocus: ge, flagRestoreFocus: _e, restoreFocus: X } = $a({
7559
+ let [B, ue] = m(!1), [de, V] = m(!1), H = p(null), U = p(null), W = p(null), G = p(null), K = p(null), { setRef: fe, isMobile: q, isTablet: pe, isFixed: me, isSticky: he, hidden: J, captureFocus: ge, flagRestoreFocus: _e, restoreFocus: X } = $a({
7584
7560
  forwardedRef: oe,
7585
7561
  mobileBreakpoint: e,
7586
7562
  tabletBreakpoint: t,
7587
7563
  position: ne,
7588
7564
  scrollBehavior: F
7589
7565
  });
7590
- eo((me || he) && q && z !== "none");
7566
+ eo((me || he) && q && R !== "none");
7591
7567
  let ye = o((e, t) => {
7592
7568
  let n = e.relatedTarget, r;
7593
7569
  switch (t) {
@@ -7603,20 +7579,20 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7603
7579
  default: return;
7604
7580
  }
7605
7581
  let i = r.current;
7606
- i && (!n || !i.contains(n)) && B("none");
7582
+ i && (!n || !i.contains(n)) && z("none");
7607
7583
  }, []);
7608
7584
  c(() => {
7609
7585
  let e = (e) => {
7610
- E && z === "user" && !e.target.closest(".pkt-header-service__user-container") && B("none"), z === "slot" && !e.target.closest(".pkt-header-service__slot-container") && B("none"), z === "search" && !e.target.closest(".pkt-header-service__search-container") && !e.target.closest(".pkt-header-service__search-input") && B("none");
7586
+ E && R === "user" && !e.target.closest(".pkt-header-service__user-container") && z("none"), R === "slot" && !e.target.closest(".pkt-header-service__slot-container") && z("none"), R === "search" && !e.target.closest(".pkt-header-service__search-container") && !e.target.closest(".pkt-header-service__search-input") && z("none");
7611
7587
  }, t = (e) => {
7612
- e.key === "Escape" && z !== "none" && (e.preventDefault(), _e(), B("none"));
7588
+ e.key === "Escape" && R !== "none" && (e.preventDefault(), _e(), z("none"));
7613
7589
  };
7614
- if (z !== "none") return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
7590
+ if (R !== "none") return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
7615
7591
  document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
7616
7592
  };
7617
7593
  X();
7618
7594
  }, [
7619
- z,
7595
+ R,
7620
7596
  E,
7621
7597
  X,
7622
7598
  _e
@@ -7627,17 +7603,17 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7627
7603
  let r = t.current.getBoundingClientRect(), i = n.current.offsetWidth, a = r.left + i > window.innerWidth;
7628
7604
  e === "slot" ? ue(a) : V(a);
7629
7605
  }, [pe, q]), Z = o((e) => {
7630
- if (!pe || z !== "slot") return;
7606
+ if (!pe || R !== "slot") return;
7631
7607
  let t = e.target.closest("a[href], button, [role=\"link\"], [role=\"button\"], [role=\"menuitem\"], [role=\"menuitemradio\"], [role=\"menuitemcheckbox\"]");
7632
- !t || !G.current?.contains(t) || t.closest("[data-pkt-header-keep-open]") || t.disabled || t.getAttribute("aria-disabled") === "true" || B("none");
7633
- }, [pe, z]), Q = o((e) => {
7634
- z === "none" ? (ge(), B(e)) : B("none");
7635
- }, [z, ge]);
7608
+ !t || !G.current?.contains(t) || t.closest("[data-pkt-header-keep-open]") || t.disabled || t.getAttribute("aria-disabled") === "true" || z("none");
7609
+ }, [pe, R]), Q = o((e) => {
7610
+ R === "none" ? (ge(), z(e)) : z("none");
7611
+ }, [R, ge]);
7636
7612
  c(() => {
7637
- (z === "slot" || z === "search") && requestAnimationFrame(() => {
7638
- be(z);
7613
+ (R === "slot" || R === "search") && requestAnimationFrame(() => {
7614
+ be(R);
7639
7615
  });
7640
- }, [z, be]);
7616
+ }, [R, be]);
7641
7617
  let xe = /* @__PURE__ */ v("header", {
7642
7618
  className: (0, M.default)("pkt-header-service", i && "pkt-header-service--compact", q && "pkt-header-service--mobile", pe && "pkt-header-service--tablet", me && "pkt-header-service--fixed", he && "pkt-header-service--sticky", se && "pkt-header-service--scroll-to-hide", J && "pkt-header-service--hidden", r),
7643
7619
  "data-mode": a,
@@ -7645,28 +7621,19 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7645
7621
  children: [
7646
7622
  /* @__PURE__ */ v("div", {
7647
7623
  className: (0, M.default)("pkt-header-service__logo-area", (!T || T === "") && "pkt-header-service__logo-area--without-service"),
7648
- children: [!N && (P ? /* @__PURE__ */ _("span", {
7624
+ children: [!N && /* @__PURE__ */ _("span", {
7649
7625
  className: "pkt-header-service__logo",
7650
7626
  children: /* @__PURE__ */ _("a", {
7651
7627
  href: P,
7652
- "aria-label": I.logoLabel,
7628
+ "aria-label": "Tilbake til forside",
7653
7629
  onClick: ee,
7654
- children: /* @__PURE__ */ _(L, {
7630
+ children: /* @__PURE__ */ _(I, {
7655
7631
  name: "oslologo",
7656
7632
  "aria-hidden": "true",
7657
7633
  path: te
7658
7634
  })
7659
7635
  })
7660
- }) : /* @__PURE__ */ _("span", {
7661
- className: "pkt-header-service__logo",
7662
- role: "img",
7663
- "aria-label": I.logoAlt,
7664
- children: /* @__PURE__ */ _(L, {
7665
- name: "oslologo",
7666
- "aria-hidden": "true",
7667
- path: te
7668
- })
7669
- })), T && /* @__PURE__ */ _("span", {
7636
+ }), T && /* @__PURE__ */ _("span", {
7670
7637
  className: "pkt-header-service__service-name",
7671
7638
  translate: "no",
7672
7639
  children: C ? /* @__PURE__ */ _(uo, {
@@ -7687,7 +7654,7 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7687
7654
  className: "pkt-header-service__content",
7688
7655
  children: [
7689
7656
  /* @__PURE__ */ v("div", {
7690
- className: (0, M.default)("pkt-header-service__slot-container", z === "slot" && "is-open"),
7657
+ className: (0, M.default)("pkt-header-service__slot-container", R === "slot" && "is-open"),
7691
7658
  onBlur: (e) => ye(e, "slot"),
7692
7659
  ref: U,
7693
7660
  children: [pe && n && /* @__PURE__ */ _(Y, {
@@ -7695,17 +7662,17 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7695
7662
  variant: re,
7696
7663
  iconName: "menu",
7697
7664
  size: q ? "small" : "medium",
7698
- state: z === "slot" ? "active" : "normal",
7665
+ state: R === "slot" ? "active" : "normal",
7699
7666
  onClick: () => Q("slot"),
7700
- "aria-expanded": z === "slot",
7667
+ "aria-expanded": R === "slot",
7701
7668
  "aria-controls": "mobile-slot-menu",
7702
- "aria-label": I.openMenu,
7703
- children: ie ?? I.menu
7669
+ "aria-label": ce.openMenu,
7670
+ children: ie
7704
7671
  }), /* @__PURE__ */ _("div", {
7705
- className: (0, M.default)("pkt-header-service__slot-content", le && "align-right"),
7672
+ className: (0, M.default)("pkt-header-service__slot-content", B && "align-right"),
7706
7673
  id: "mobile-slot-menu",
7707
7674
  role: pe ? "group" : void 0,
7708
- "aria-label": pe ? I.menu : void 0,
7675
+ "aria-label": pe ? "Meny" : void 0,
7709
7676
  ref: G,
7710
7677
  onClick: Z,
7711
7678
  children: /* @__PURE__ */ _("div", {
@@ -7715,7 +7682,7 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7715
7682
  })]
7716
7683
  }),
7717
7684
  d && /* @__PURE__ */ _(g, { children: pe ? /* @__PURE__ */ v("div", {
7718
- className: (0, M.default)("pkt-header-service__search-container", z === "search" && "is-open"),
7685
+ className: (0, M.default)("pkt-header-service__search-container", R === "search" && "is-open"),
7719
7686
  onBlur: (e) => ye(e, "search"),
7720
7687
  ref: W,
7721
7688
  children: [/* @__PURE__ */ _(Y, {
@@ -7724,21 +7691,21 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7724
7691
  iconName: "magnifying-glass-big",
7725
7692
  size: q ? "small" : "medium",
7726
7693
  onClick: () => Q("search"),
7727
- state: z === "search" ? "active" : "normal",
7728
- "aria-expanded": z === "search",
7694
+ state: R === "search" ? "active" : "normal",
7695
+ "aria-expanded": R === "search",
7729
7696
  "aria-controls": "mobile-search-menu",
7730
- "aria-label": I.openSearch,
7731
- children: I.search
7697
+ "aria-label": ce.openSearch,
7698
+ children: "Søk"
7732
7699
  }), /* @__PURE__ */ _("div", {
7733
- className: (0, M.default)("pkt-header-service__mobile-menu", z === "search" && "is-open", de && "align-right"),
7700
+ className: (0, M.default)("pkt-header-service__mobile-menu", R === "search" && "is-open", de && "align-right"),
7734
7701
  ref: K,
7735
- children: z === "search" && /* @__PURE__ */ _(Co, {
7702
+ children: R === "search" && /* @__PURE__ */ _(Co, {
7736
7703
  id: "mobile-search-menu",
7737
7704
  className: "pkt-header-service__search-input",
7738
7705
  type: "search",
7739
- label: I.search,
7706
+ label: ce.search,
7740
7707
  useWrapper: !1,
7741
- placeholder: R,
7708
+ placeholder: L,
7742
7709
  value: b,
7743
7710
  autoFocus: !0,
7744
7711
  fullwidth: !0,
@@ -7752,9 +7719,9 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7752
7719
  id: "header-service-search",
7753
7720
  className: "pkt-header-service__search-input",
7754
7721
  type: "search",
7755
- label: I.search,
7722
+ label: ce.search,
7756
7723
  useWrapper: !1,
7757
- placeholder: R,
7724
+ placeholder: L,
7758
7725
  value: b,
7759
7726
  onChange: (e) => y?.(e.target.value),
7760
7727
  onKeyDown: (e) => {
@@ -7767,7 +7734,7 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7767
7734
  variant: "icon-only",
7768
7735
  iconName: "exit",
7769
7736
  onClick: l,
7770
- children: I.logOut
7737
+ children: "Logg ut"
7771
7738
  })
7772
7739
  ]
7773
7740
  }) : null,
@@ -7781,24 +7748,23 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7781
7748
  className: (0, M.default)("pkt-header-service__user-button", q && "pkt-header-service__user-button--mobile"),
7782
7749
  skin: "secondary",
7783
7750
  size: q ? "small" : "medium",
7784
- state: z === "user" ? "active" : "normal",
7751
+ state: R === "user" ? "active" : "normal",
7785
7752
  variant: "icons-right-and-left",
7786
7753
  iconName: "user",
7787
- secondIconName: z === "user" ? "chevron-thin-up" : "chevron-thin-down",
7754
+ secondIconName: R === "user" ? "chevron-thin-up" : "chevron-thin-down",
7788
7755
  onClick: () => Q("user"),
7789
- children: [/* @__PURE__ */ v("span", {
7756
+ children: [/* @__PURE__ */ _("span", {
7790
7757
  className: "pkt-sr-only",
7791
- children: [I.userMenuButton, " "]
7758
+ children: "Brukermeny: "
7792
7759
  }), /* @__PURE__ */ _("span", {
7793
7760
  translate: "no",
7794
7761
  children: S?.name || E.name
7795
7762
  })]
7796
- }), z === "user" && E && /* @__PURE__ */ _("div", {
7763
+ }), R === "user" && E && /* @__PURE__ */ _("div", {
7797
7764
  className: (0, M.default)(q ? "pkt-header-service__mobile-menu" : "pkt-header-service__user-menu", "is-open"),
7798
7765
  children: /* @__PURE__ */ _(ho, {
7799
- strings: ae,
7800
7766
  user: E,
7801
- formattedLastLoggedIn: ce,
7767
+ formattedLastLoggedIn: le,
7802
7768
  representing: S,
7803
7769
  userMenu: D,
7804
7770
  canChangeRepresentation: A,
@@ -7812,7 +7778,7 @@ var To = i(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
7812
7778
  variant: "icon-right",
7813
7779
  iconName: "exit",
7814
7780
  onClick: l,
7815
- children: I.logOut
7781
+ children: "Logg ut"
7816
7782
  })]
7817
7783
  })
7818
7784
  ]
@@ -7864,7 +7830,7 @@ var Oo = ({ children: e, skin: t, title: n, href: r, iconName: i, openInNewTab:
7864
7830
  target: a ? "_blank" : "_self",
7865
7831
  rel: a ? "noopener noreferrer" : void 0,
7866
7832
  children: [
7867
- i && /* @__PURE__ */ _(L, {
7833
+ i && /* @__PURE__ */ _(I, {
7868
7834
  className: "pkt-link__icon",
7869
7835
  name: i
7870
7836
  }),
@@ -7885,7 +7851,7 @@ var Oo = ({ children: e, skin: t, title: n, href: r, iconName: i, openInNewTab:
7885
7851
  };
7886
7852
  //#endregion
7887
7853
  //#region src/components/loader/Loader.tsx
7888
- Oo.displayName = "PktLinkCard", typeof window < "u" && (window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/18.9/animations/");
7854
+ Oo.displayName = "PktLinkCard", typeof window < "u" && (window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/latest/animations/");
7889
7855
  var ko = (e) => {
7890
7856
  switch (e) {
7891
7857
  case "blue": return "spinner-blue";
@@ -7912,7 +7878,7 @@ var ko = (e) => {
7912
7878
  className: h,
7913
7879
  children: [n && f && /* @__PURE__ */ v("div", {
7914
7880
  className: "pkt-loader__spinner",
7915
- children: [/* @__PURE__ */ _(L, {
7881
+ children: [/* @__PURE__ */ _(I, {
7916
7882
  name: ko(a),
7917
7883
  path: o,
7918
7884
  className: `pkt-loader__svg pkt-loader__${a}`
@@ -7947,7 +7913,7 @@ var jo = ({ children: e, className: t, skin: n, title: i, compact: a, closable:
7947
7913
  onClick: h,
7948
7914
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
7949
7915
  "aria-label": "Lukk",
7950
- children: /* @__PURE__ */ _(L, {
7916
+ children: /* @__PURE__ */ _(I, {
7951
7917
  name: "close",
7952
7918
  className: "pkt-link__icon"
7953
7919
  })
@@ -8225,7 +8191,7 @@ var zo = ({ className: e, compact: t = !1, skin: n = "basic", responsiveView: r
8225
8191
  f(l, e, n), typeof u == "function" ? u(e) : u && (u.current = e);
8226
8192
  }
8227
8193
  }, b = /* @__PURE__ */ v(g, { children: [
8228
- a && /* @__PURE__ */ _(L, {
8194
+ a && /* @__PURE__ */ _(I, {
8229
8195
  name: a,
8230
8196
  className: `pkt-icon--small ${a === "check" ? "pkt-tabs__status-icon" : ""}`
8231
8197
  }),
@@ -8301,7 +8267,7 @@ var Ko = n(null), qo = () => {
8301
8267
  src: i,
8302
8268
  alt: "",
8303
8269
  "aria-hidden": "true"
8304
- }) : r ? /* @__PURE__ */ _(L, {
8270
+ }) : r ? /* @__PURE__ */ _(I, {
8305
8271
  name: r,
8306
8272
  className: "pkt-tabs__separator-icon"
8307
8273
  }) : null
@@ -8379,32 +8345,32 @@ function rs(e, t, n) {
8379
8345
  let s = es(e), c = Yo(o);
8380
8346
  return i && s < es(String(i)) ? {
8381
8347
  valid: !1,
8382
- message: B(n.rangeUnderflowMin, { min: String(i) })
8348
+ message: z(n.rangeUnderflowMin, { min: String(i) })
8383
8349
  } : a && s > es(String(a)) ? {
8384
8350
  valid: !1,
8385
- message: B(n.rangeOverflowMax, { max: String(a) })
8351
+ message: z(n.rangeOverflowMax, { max: String(a) })
8386
8352
  } : o && s % c !== 0 ? {
8387
8353
  valid: !1,
8388
- message: c === 60 ? n.timeStepMismatchHour : c === 30 ? n.timeStepMismatchHalfHour : B(n.timeStepMismatch, { step: `${c}, ${c * 2}, ${c * 3}` })
8354
+ message: c === 60 ? n.timeStepMismatchHour : c === 30 ? n.timeStepMismatchHalfHour : z(n.timeStepMismatch, { step: `${c}, ${c * 2}, ${c * 3}` })
8389
8355
  } : { valid: !0 };
8390
8356
  }
8391
8357
  function is(e) {
8392
8358
  return e === 3600 || e < 3600 && 3600 % e == 0 && e % 60 == 0;
8393
8359
  }
8394
8360
  function as(e, t) {
8395
- let { id: n, label: r, value: i, defaultValue: a, min: s, max: l, step: h = 60, hidePicker: g = !1, stepArrows: _ = !1, fullwidth: v = !1, name: y, form: b, disabled: x = !1, required: S = !1, helptext: C, helptextDropdown: w, helptextDropdownButton: T, hasError: E = !1, errorMessage: D, optionalTag: O = !1, optionalText: k, requiredTag: A = !1, requiredText: j, tagText: M, inline: N = !1, useWrapper: P = !0, ariaDescribedby: ee, strings: te, className: ne, inputSize: F = "medium", onValueChange: re, onFocus: ie, onBlur: ae } = e, oe = ve(["timepicker", "validation"], te), se = oe.timepicker, I = te, L = i !== void 0, R = i === void 0 ? a ?? "" : i ?? "", ce = p(R), [z, B] = m(() => R), le = L ? i ?? "" : z, [ue, de] = m(() => ts(i === void 0 ? a : i)[0]), [V, H] = m(() => ts(i === void 0 ? a : i)[1]), U = p(ue), W = p(V), G = o((e) => {
8361
+ let { id: n, label: r, value: i, defaultValue: a, min: s, max: l, step: h = 60, hidePicker: g = !1, stepArrows: _ = !1, fullwidth: v = !1, name: y, form: b, disabled: x = !1, required: S = !1, helptext: C, helptextDropdown: w, helptextDropdownButton: T, hasError: E = !1, errorMessage: D, optionalTag: O = !1, optionalText: k, requiredTag: A = !1, requiredText: j, tagText: M, inline: N = !1, useWrapper: P = !0, ariaDescribedby: ee, strings: te, className: ne, inputSize: F = "medium", onValueChange: re, onFocus: ie, onBlur: ae } = e, oe = ve(["timepicker", "validation"], te), se = oe.timepicker, ce = te, I = i !== void 0, L = i === void 0 ? a ?? "" : i ?? "", le = p(L), [R, z] = m(() => L), B = I ? i ?? "" : R, [ue, de] = m(() => ts(i === void 0 ? a : i)[0]), [V, H] = m(() => ts(i === void 0 ? a : i)[1]), U = p(ue), W = p(V), G = o((e) => {
8396
8362
  U.current = e, de(e);
8397
8363
  }, []), K = o((e) => {
8398
8364
  W.current = e, H(e);
8399
8365
  }, []), [fe, q] = m(!1), [pe, me] = m(!1), he = p(i);
8400
8366
  c(() => {
8401
- if (!L || i === he.current) return;
8367
+ if (!I || i === he.current) return;
8402
8368
  he.current = i;
8403
8369
  let [e, t] = ts(i);
8404
8370
  G(e), K(t);
8405
8371
  }, [
8406
8372
  i,
8407
- L,
8373
+ I,
8408
8374
  G,
8409
8375
  K
8410
8376
  ]), c(() => {
@@ -8414,7 +8380,7 @@ function as(e, t) {
8414
8380
  c(() => {
8415
8381
  let e = J.current;
8416
8382
  if (!e) return;
8417
- let t = rs(le, {
8383
+ let t = rs(B, {
8418
8384
  required: S,
8419
8385
  min: s,
8420
8386
  max: l,
@@ -8422,7 +8388,7 @@ function as(e, t) {
8422
8388
  }, oe.validation);
8423
8389
  e.setCustomValidity(t.valid ? "" : t.message ?? ""), me(Ce && !t.valid);
8424
8390
  }, [
8425
- le,
8391
+ B,
8426
8392
  S,
8427
8393
  s,
8428
8394
  l,
@@ -8431,26 +8397,26 @@ function as(e, t) {
8431
8397
  oe.validation
8432
8398
  ]);
8433
8399
  let $ = o((e) => {
8434
- L || B(e);
8400
+ I || z(e);
8435
8401
  let t = ye.current;
8436
8402
  !t || !Te || (Te.call(t, e), t.dispatchEvent(new Event("input", { bubbles: !0 })), re?.(e));
8437
8403
  }, [
8438
- L,
8404
+ I,
8439
8405
  Te,
8440
8406
  re
8441
8407
  ]), Ne = o(() => {
8442
8408
  let e = U.current, t = W.current;
8443
8409
  if (e !== "" && t !== "") {
8444
8410
  let n = ns(e, t);
8445
- n !== le && $(n);
8446
- } else le !== "" && $("");
8447
- }, [le, $]), Pe = o(() => {
8411
+ n !== B && $(n);
8412
+ } else B !== "" && $("");
8413
+ }, [B, $]), Pe = o(() => {
8448
8414
  let e = U.current, t = W.current;
8449
8415
  if (e !== "" && t !== "") {
8450
8416
  let n = ns(e, t);
8451
- n === le ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(n);
8452
- } else le === "" ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $("");
8453
- }, [le, $]), Fe = o(() => {
8417
+ n === B ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(n);
8418
+ } else B === "" ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $("");
8419
+ }, [B, $]), Fe = o(() => {
8454
8420
  we(!0), Ne();
8455
8421
  let e = J.current, t = ye.current;
8456
8422
  if (!e) return;
@@ -8481,8 +8447,8 @@ function as(e, t) {
8481
8447
  };
8482
8448
  return be.addEventListener("pointerdown", t, !0), () => be.removeEventListener("pointerdown", t, !0);
8483
8449
  }, [Fe, be]), c(() => {
8484
- ye.current && (ye.current.value = le);
8485
- }, [le]);
8450
+ ye.current && (ye.current.value = B);
8451
+ }, [B]);
8486
8452
  let Ie = o(() => {
8487
8453
  q(!1), Ne();
8488
8454
  }, [Ne]);
@@ -8528,10 +8494,10 @@ function as(e, t) {
8528
8494
  K
8529
8495
  ]), ze = o((e) => {
8530
8496
  let t = Qo(U.current, W.current, e, Ee);
8531
- G(t.hours), K(t.minutes), `${t.hours}:${t.minutes}` !== le && $(`${t.hours}:${t.minutes}`);
8497
+ G(t.hours), K(t.minutes), `${t.hours}:${t.minutes}` !== B && $(`${t.hours}:${t.minutes}`);
8532
8498
  }, [
8533
8499
  Ee,
8534
- le,
8500
+ B,
8535
8501
  $,
8536
8502
  G,
8537
8503
  K
@@ -8544,7 +8510,7 @@ function as(e, t) {
8544
8510
  let t = U.current === "" ? 0 : parseInt(U.current, 10), r = String((t + 1) % 24).padStart(2, "0");
8545
8511
  if (G(r), n !== "") {
8546
8512
  let e = `${r}:${n}`;
8547
- e === le ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8513
+ e === B ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8548
8514
  }
8549
8515
  break;
8550
8516
  }
@@ -8553,7 +8519,7 @@ function as(e, t) {
8553
8519
  let t = U.current === "" ? 0 : parseInt(U.current, 10), r = String((t - 1 + 24) % 24).padStart(2, "0");
8554
8520
  if (G(r), n !== "") {
8555
8521
  let e = `${r}:${n}`;
8556
- e === le ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8522
+ e === B ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8557
8523
  }
8558
8524
  break;
8559
8525
  }
@@ -8588,7 +8554,7 @@ function as(e, t) {
8588
8554
  } else e.preventDefault();
8589
8555
  }
8590
8556
  }, [
8591
- le,
8557
+ B,
8592
8558
  $,
8593
8559
  G,
8594
8560
  Pe,
@@ -8608,7 +8574,7 @@ function as(e, t) {
8608
8574
  let t = W.current === "" ? 0 : parseInt(W.current, 10), r = String((t + Ee) % 60).padStart(2, "0");
8609
8575
  if (K(r), n !== "") {
8610
8576
  let e = `${n}:${r}`;
8611
- e === le ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8577
+ e === B ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8612
8578
  }
8613
8579
  break;
8614
8580
  }
@@ -8617,7 +8583,7 @@ function as(e, t) {
8617
8583
  let t = W.current === "" ? 0 : parseInt(W.current, 10), r = String((t - Ee + 60) % 60).padStart(2, "0");
8618
8584
  if (K(r), n !== "") {
8619
8585
  let e = `${n}:${r}`;
8620
- e === le ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8586
+ e === B ? ye.current?.dispatchEvent(new Event("input", { bubbles: !0 })) : $(e);
8621
8587
  }
8622
8588
  break;
8623
8589
  }
@@ -8653,7 +8619,7 @@ function as(e, t) {
8653
8619
  }
8654
8620
  }, [
8655
8621
  Ee,
8656
- le,
8622
+ B,
8657
8623
  $,
8658
8624
  K,
8659
8625
  Pe,
@@ -8744,7 +8710,7 @@ function as(e, t) {
8744
8710
  },
8745
8711
  set value(e) {
8746
8712
  let t = e ?? "";
8747
- L || B(t);
8713
+ I || z(t);
8748
8714
  let [n, r] = ts(t);
8749
8715
  G(n), K(r), ye.current && (ye.current.value = t);
8750
8716
  },
@@ -8755,20 +8721,20 @@ function as(e, t) {
8755
8721
  J.current?.blur();
8756
8722
  }
8757
8723
  }), [
8758
- L,
8724
+ I,
8759
8725
  G,
8760
8726
  K
8761
8727
  ]), c(() => {
8762
8728
  if (!be) return;
8763
8729
  let e = () => {
8764
8730
  window.setTimeout(() => {
8765
- let e = ce.current, [t, n] = ts(e);
8766
- G(t), K(n), L || B(e), ye.current && (ye.current.value = e), q(!1), we(!1);
8731
+ let e = le.current, [t, n] = ts(e);
8732
+ G(t), K(n), I || z(e), ye.current && (ye.current.value = e), q(!1), we(!1);
8767
8733
  }, 0);
8768
8734
  };
8769
8735
  return be.addEventListener("reset", e), () => be.removeEventListener("reset", e);
8770
8736
  }, [
8771
- L,
8737
+ I,
8772
8738
  G,
8773
8739
  K,
8774
8740
  be
@@ -8784,7 +8750,7 @@ function as(e, t) {
8784
8750
  ].filter(Boolean).join(" "),
8785
8751
  inputSize: F,
8786
8752
  strings: se,
8787
- stringsOverride: I,
8753
+ stringsOverride: ce,
8788
8754
  label: r,
8789
8755
  disabled: x,
8790
8756
  required: S,
@@ -8835,7 +8801,7 @@ function as(e, t) {
8835
8801
  handleClockButtonClick: Je,
8836
8802
  closePopup: Ie,
8837
8803
  stepTimeDelta: ze,
8838
- effectiveValue: le
8804
+ effectiveValue: B
8839
8805
  };
8840
8806
  }
8841
8807
  //#endregion
@@ -8904,7 +8870,7 @@ var os = i((e, t) => {
8904
8870
  "aria-label": i.strings.prevTime,
8905
8871
  disabled: i.disabled,
8906
8872
  onClick: () => i.stepTimeDelta(-1),
8907
- children: [/* @__PURE__ */ _(L, { name: "chevron-thin-left" }), /* @__PURE__ */ _("span", {
8873
+ children: [/* @__PURE__ */ _(I, { name: "chevron-thin-left" }), /* @__PURE__ */ _("span", {
8908
8874
  className: "pkt-btn__text",
8909
8875
  children: i.strings.prevTime
8910
8876
  })]
@@ -8975,7 +8941,7 @@ var os = i((e, t) => {
8975
8941
  onChange: () => {},
8976
8942
  onPaste: (e) => e.preventDefault()
8977
8943
  }),
8978
- i.hidePicker && !i.stepArrows && /* @__PURE__ */ _(L, {
8944
+ i.hidePicker && !i.stepArrows && /* @__PURE__ */ _(I, {
8979
8945
  className: "pkt-input-icon pkt-timepicker__icon",
8980
8946
  name: "clock",
8981
8947
  "aria-hidden": !0
@@ -8990,7 +8956,7 @@ var os = i((e, t) => {
8990
8956
  "aria-controls": i.popupId,
8991
8957
  disabled: i.disabled,
8992
8958
  onClick: i.handleClockButtonClick,
8993
- children: [/* @__PURE__ */ _(L, { name: "clock" }), /* @__PURE__ */ _("span", {
8959
+ children: [/* @__PURE__ */ _(I, { name: "clock" }), /* @__PURE__ */ _("span", {
8994
8960
  className: "pkt-btn__text",
8995
8961
  children: i.strings.openPicker
8996
8962
  })]
@@ -9001,7 +8967,7 @@ var os = i((e, t) => {
9001
8967
  "aria-label": i.strings.nextTime,
9002
8968
  disabled: i.disabled,
9003
8969
  onClick: () => i.stepTimeDelta(1),
9004
- children: [/* @__PURE__ */ _(L, { name: "chevron-thin-right" }), /* @__PURE__ */ _("span", {
8970
+ children: [/* @__PURE__ */ _(I, { name: "chevron-thin-right" }), /* @__PURE__ */ _("span", {
9005
8971
  className: "pkt-btn__text",
9006
8972
  children: i.strings.nextTime
9007
8973
  })]
@@ -9055,4 +9021,4 @@ var os = i((e, t) => {
9055
9021
  });
9056
9022
  os.displayName = "PktTimepicker";
9057
9023
  //#endregion
9058
- export { xi as FileItem, Sa as ItemRenderers, j as PktAccordion, R as PktAccordionItem, ye as PktAlert, be as PktBackLink, Z as PktBreadcrumbs, Y as PktButton, Ln as PktCalendar, Gn as PktCard, Yn as PktCheckbox, kr as PktCombobox, Pr as PktConsent, Yr as PktDatepicker, Ca as PktFileUpload, Ya as PktFooter, Za as PktFooterSimple, Eo as PktHeader, So as PktHeaderGlobal, to as PktHeaderMenu, To as PktHeaderService, Un as PktHeading, nr as PktHelptext, L as PktIcon, Do as PktInput, rr as PktInputWrapper, uo as PktLink, Oo as PktLinkCard, Ao as PktLoader, jo as PktMessagebox, $i as PktModal, Hi as PktProgressbar, Mo as PktRadioButton, go as PktSearchInput, No as PktSelect, Lo as PktStep, Ro as PktStepper, X as PktStringsProvider, Go as PktTabItem, zo as PktTable, Bo as PktTableBody, Vo as PktTableDataCell, Ho as PktTableHeader, Uo as PktTableHeaderCell, Wo as PktTableRow, Jo as PktTabs, Wn as PktTag, Ti as PktTextarea, Co as PktTextinput, os as PktTimepicker, W as getPktStrings, ce as pktStringsNb, G as resetPktStrings, U as setPktStrings, K as subscribePktStrings };
9024
+ export { xi as FileItem, Sa as ItemRenderers, j as PktAccordion, L as PktAccordionItem, ye as PktAlert, be as PktBackLink, Z as PktBreadcrumbs, Y as PktButton, Ln as PktCalendar, Gn as PktCard, Yn as PktCheckbox, kr as PktCombobox, Pr as PktConsent, Yr as PktDatepicker, Ca as PktFileUpload, Ya as PktFooter, Za as PktFooterSimple, Eo as PktHeader, So as PktHeaderGlobal, to as PktHeaderMenu, To as PktHeaderService, Un as PktHeading, nr as PktHelptext, I as PktIcon, Do as PktInput, rr as PktInputWrapper, uo as PktLink, Oo as PktLinkCard, Ao as PktLoader, jo as PktMessagebox, $i as PktModal, Hi as PktProgressbar, Mo as PktRadioButton, go as PktSearchInput, No as PktSelect, Lo as PktStep, Ro as PktStepper, X as PktStringsProvider, Go as PktTabItem, zo as PktTable, Bo as PktTableBody, Vo as PktTableDataCell, Ho as PktTableHeader, Uo as PktTableHeaderCell, Wo as PktTableRow, Jo as PktTabs, Wn as PktTag, Ti as PktTextarea, Co as PktTextinput, os as PktTimepicker, W as getPktStrings, le as pktStringsNb, G as resetPktStrings, U as setPktStrings, K as subscribePktStrings };