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