@oslokommune/punkt-react 15.4.0 → 15.4.2
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/CHANGELOG.md +35 -0
- package/dist/punkt-react.es.js +422 -407
- package/dist/punkt-react.umd.js +183 -183
- package/package.json +4 -4
- package/src/components/fileupload/Subcomponents.tsx +25 -5
package/dist/punkt-react.es.js
CHANGED
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
var Bo = (i, e, t) => e in i ? Lo(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
38
38
|
var Wn = (i, e, t) => Bo(i, typeof e != "symbol" ? e + "" : e, t);
|
|
39
39
|
import { jsx as c, jsxs as x, Fragment as Me } from "react/jsx-runtime";
|
|
40
|
-
import Wt, { createContext as cs, forwardRef as pe, useContext as
|
|
40
|
+
import Wt, { createContext as cs, forwardRef as pe, useContext as Rn, useState as le, useEffect as me, useCallback as A, useId as ya, useMemo as Pe, useRef as fe, useImperativeHandle as zs, useLayoutEffect as ba, Fragment as Fo, createRef as jo, createElement as Ho, Children as Is, isValidElement as Vo, cloneElement as Uo } from "react";
|
|
41
41
|
import { Link as qo } from "react-router-dom";
|
|
42
|
-
const ka = cs({}), Wo = () =>
|
|
42
|
+
const ka = cs({}), Wo = () => Rn(ka), zo = pe(
|
|
43
43
|
({ compact: i = !1, skin: e = "borderless", ariaLabelledBy: t, children: n, name: s, className: r }, a) => {
|
|
44
44
|
const l = [
|
|
45
45
|
"pkt-accordion",
|
|
@@ -116,7 +116,7 @@ const Qo = (i, e) => {
|
|
|
116
116
|
}
|
|
117
117
|
return [xa(i, r + (i[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
118
118
|
};
|
|
119
|
-
let
|
|
119
|
+
let Rs = class Sa {
|
|
120
120
|
constructor({ strings: e, _$litType$: t }, n) {
|
|
121
121
|
let s;
|
|
122
122
|
this.parts = [];
|
|
@@ -220,7 +220,7 @@ let Zo = class {
|
|
|
220
220
|
}
|
|
221
221
|
$(e) {
|
|
222
222
|
var t;
|
|
223
|
-
const { values: n, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el =
|
|
223
|
+
const { values: n, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = Rs.createElement(xa(s.h, s.h[0]), this.options)), s);
|
|
224
224
|
if (((t = this._$AH) == null ? void 0 : t._$AD) === r) this._$AH.p(n);
|
|
225
225
|
else {
|
|
226
226
|
const a = new Zo(r, this), l = a.u(this.options);
|
|
@@ -229,7 +229,7 @@ let Zo = class {
|
|
|
229
229
|
}
|
|
230
230
|
_$AC(e) {
|
|
231
231
|
let t = _r.get(e.strings);
|
|
232
|
-
return t === void 0 && _r.set(e.strings, t = new
|
|
232
|
+
return t === void 0 && _r.set(e.strings, t = new Rs(e)), t;
|
|
233
233
|
}
|
|
234
234
|
k(e) {
|
|
235
235
|
Ys(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -312,7 +312,7 @@ let Zo = class {
|
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
const nl = { I: us }, $r = Jn.litHtmlPolyfillSupport;
|
|
315
|
-
$r == null || $r(
|
|
315
|
+
$r == null || $r(Rs, us), (Jn.litHtmlVersions ?? (Jn.litHtmlVersions = [])).push("3.3.2");
|
|
316
316
|
const sl = (i, e, t) => {
|
|
317
317
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
318
318
|
let s = n._$litPart$;
|
|
@@ -738,7 +738,7 @@ let Zi = class {
|
|
|
738
738
|
* Copyright 2018 Google LLC
|
|
739
739
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
740
740
|
*/
|
|
741
|
-
const
|
|
741
|
+
const R = Ei(class extends Zi {
|
|
742
742
|
constructor(i) {
|
|
743
743
|
var e;
|
|
744
744
|
if (super(i), i.type !== At.ATTRIBUTE || i.name !== "class" || ((e = i.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -1026,15 +1026,15 @@ var El = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Ln = (i, e
|
|
|
1026
1026
|
};
|
|
1027
1027
|
const Bs = "https://punkt-cdn.oslo.kommune.no/15.4/icons/";
|
|
1028
1028
|
typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Bs);
|
|
1029
|
-
const Nn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', cn = {}, Al = 2,
|
|
1029
|
+
const Nn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', cn = {}, Al = 2, Il = 1500, Er = typeof Storage < "u" && typeof sessionStorage < "u", Rl = (i) => window.pktFetch(i).then((e) => {
|
|
1030
1030
|
if (!e.ok)
|
|
1031
1031
|
throw new Error("Missing icon: " + i);
|
|
1032
1032
|
return e.text();
|
|
1033
1033
|
}), Aa = async (i, e = Al) => {
|
|
1034
1034
|
try {
|
|
1035
|
-
return await
|
|
1035
|
+
return await Rl(i);
|
|
1036
1036
|
} catch {
|
|
1037
|
-
return e > 0 ? (await new Promise((t) => setTimeout(t,
|
|
1037
|
+
return e > 0 ? (await new Promise((t) => setTimeout(t, Il)), Aa(i, e - 1)) : (console.error("Failed to fetch icon: " + i), Nn);
|
|
1038
1038
|
}
|
|
1039
1039
|
}, Ll = async (i, e) => {
|
|
1040
1040
|
const t = e + i + ".svg";
|
|
@@ -1140,7 +1140,7 @@ let Je = class extends Ce {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
return v`
|
|
1142
1142
|
<button
|
|
1143
|
-
class=${
|
|
1143
|
+
class=${R(t)}
|
|
1144
1144
|
type=${this.type}
|
|
1145
1145
|
?disabled=${!!this.disabled}
|
|
1146
1146
|
aria-busy=${P(this.isLoading ? "true" : void 0)}
|
|
@@ -1229,7 +1229,7 @@ var Hl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, Yt = (i, e
|
|
|
1229
1229
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
1230
1230
|
return n && s && Hl(e, t, s), s;
|
|
1231
1231
|
};
|
|
1232
|
-
let
|
|
1232
|
+
let It = class extends Ce {
|
|
1233
1233
|
constructor() {
|
|
1234
1234
|
super(), this.defaultSlot = L(), this.compact = zn.props.compact.default, this.title = "", this.skin = zn.props.skin.default, this.ariaLive = zn.props.ariaLive.default, this["aria-live"] = null, this.closeAlert = zn.props.closeAlert.default, this.date = null, this.role = "status", this._isClosed = !1, this.close = (e) => {
|
|
1235
1235
|
this._isClosed = !0, this.dispatchEvent(
|
|
@@ -1262,8 +1262,8 @@ let Rt = class extends Ce {
|
|
|
1262
1262
|
"pkt-alert__noDate": !this.date
|
|
1263
1263
|
};
|
|
1264
1264
|
return v`
|
|
1265
|
-
<div class=${
|
|
1266
|
-
<div class=${
|
|
1265
|
+
<div class=${R(e)} aria-live=${this["aria-live"]}>
|
|
1266
|
+
<div class=${R(t)}>
|
|
1267
1267
|
<pkt-icon
|
|
1268
1268
|
class="pkt-alert__icon"
|
|
1269
1269
|
aria-hidden="true"
|
|
@@ -1298,34 +1298,34 @@ let Rt = class extends Ce {
|
|
|
1298
1298
|
};
|
|
1299
1299
|
Yt([
|
|
1300
1300
|
o({ type: Boolean, reflect: !1 })
|
|
1301
|
-
],
|
|
1301
|
+
], It.prototype, "compact", 2);
|
|
1302
1302
|
Yt([
|
|
1303
1303
|
o({ type: String, reflect: !0 })
|
|
1304
|
-
],
|
|
1304
|
+
], It.prototype, "title", 2);
|
|
1305
1305
|
Yt([
|
|
1306
1306
|
o({ type: String, reflect: !0 })
|
|
1307
|
-
],
|
|
1307
|
+
], It.prototype, "skin", 2);
|
|
1308
1308
|
Yt([
|
|
1309
1309
|
o({ type: String })
|
|
1310
|
-
],
|
|
1310
|
+
], It.prototype, "ariaLive", 2);
|
|
1311
1311
|
Yt([
|
|
1312
1312
|
o({ type: String, reflect: !0 })
|
|
1313
|
-
],
|
|
1313
|
+
], It.prototype, "aria-live", 2);
|
|
1314
1314
|
Yt([
|
|
1315
1315
|
o({ type: Boolean, reflect: !0 })
|
|
1316
|
-
],
|
|
1316
|
+
], It.prototype, "closeAlert", 2);
|
|
1317
1317
|
Yt([
|
|
1318
1318
|
o({ type: String, reflect: !0 })
|
|
1319
|
-
],
|
|
1319
|
+
], It.prototype, "date", 2);
|
|
1320
1320
|
Yt([
|
|
1321
1321
|
o({ type: String, reflect: !0 })
|
|
1322
|
-
],
|
|
1322
|
+
], It.prototype, "role", 2);
|
|
1323
1323
|
Yt([
|
|
1324
1324
|
Q()
|
|
1325
|
-
],
|
|
1326
|
-
|
|
1325
|
+
], It.prototype, "_isClosed", 2);
|
|
1326
|
+
It = Yt([
|
|
1327
1327
|
ie("pkt-alert")
|
|
1328
|
-
],
|
|
1328
|
+
], It);
|
|
1329
1329
|
var Ul = Object.defineProperty, ql = Object.getOwnPropertyDescriptor, Bn = (i, e, t, n) => {
|
|
1330
1330
|
for (var s = n > 1 ? void 0 : n ? ql(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
1331
1331
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
@@ -1363,7 +1363,7 @@ let Yi = class extends Hi {
|
|
|
1363
1363
|
return v`
|
|
1364
1364
|
<div
|
|
1365
1365
|
part="container"
|
|
1366
|
-
class=${
|
|
1366
|
+
class=${R(e)}
|
|
1367
1367
|
data-testid="pkt-accordion"
|
|
1368
1368
|
aria-labelledby=${this.ariaLabelledBy}
|
|
1369
1369
|
>
|
|
@@ -1407,7 +1407,7 @@ let hi = class extends Ce {
|
|
|
1407
1407
|
};
|
|
1408
1408
|
return v`
|
|
1409
1409
|
<details
|
|
1410
|
-
class=${
|
|
1410
|
+
class=${R(e)}
|
|
1411
1411
|
id=${this.id}
|
|
1412
1412
|
?open=${this.isOpen}
|
|
1413
1413
|
${B(this.accordionItemRef)}
|
|
@@ -1494,7 +1494,7 @@ ps([
|
|
|
1494
1494
|
Ki = ps([
|
|
1495
1495
|
ie("pkt-backlink")
|
|
1496
1496
|
], Ki);
|
|
1497
|
-
const
|
|
1497
|
+
const Ia = 6048e5, Gl = 864e5, Pr = Symbol.for("constructDateFrom");
|
|
1498
1498
|
function Vt(i, e) {
|
|
1499
1499
|
return typeof i == "function" ? i(e) : i && typeof i == "object" && Pr in i ? i[Pr](e) : i instanceof Date ? new i.constructor(e) : new Date(e);
|
|
1500
1500
|
}
|
|
@@ -1517,7 +1517,7 @@ function Mn(i, e) {
|
|
|
1517
1517
|
function ss(i, e) {
|
|
1518
1518
|
return Mn(i, { ...e, weekStartsOn: 1 });
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Ra(i, e) {
|
|
1521
1521
|
const t = Mt(i, void 0), n = t.getFullYear(), s = Vt(t, 0);
|
|
1522
1522
|
s.setFullYear(n + 1, 0, 4), s.setHours(0, 0, 0, 0);
|
|
1523
1523
|
const r = ss(s), a = Vt(t, 0);
|
|
@@ -1525,7 +1525,7 @@ function Ia(i, e) {
|
|
|
1525
1525
|
const l = ss(a);
|
|
1526
1526
|
return t.getTime() >= r.getTime() ? n + 1 : t.getTime() >= l.getTime() ? n : n - 1;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Ir(i) {
|
|
1529
1529
|
const e = Mt(i), t = new Date(
|
|
1530
1530
|
Date.UTC(
|
|
1531
1531
|
e.getFullYear(),
|
|
@@ -1546,7 +1546,7 @@ function La(i, ...e) {
|
|
|
1546
1546
|
);
|
|
1547
1547
|
return e.map(t);
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function Rr(i, e) {
|
|
1550
1550
|
const t = Mt(i, void 0);
|
|
1551
1551
|
return t.setHours(0, 0, 0, 0), t;
|
|
1552
1552
|
}
|
|
@@ -1555,11 +1555,11 @@ function Ql(i, e, t) {
|
|
|
1555
1555
|
void 0,
|
|
1556
1556
|
i,
|
|
1557
1557
|
e
|
|
1558
|
-
), r =
|
|
1558
|
+
), r = Rr(n), a = Rr(s), l = +r - Ir(r), u = +a - Ir(a);
|
|
1559
1559
|
return Math.round((l - u) / Gl);
|
|
1560
1560
|
}
|
|
1561
1561
|
function Zl(i, e) {
|
|
1562
|
-
const t =
|
|
1562
|
+
const t = Ra(i), n = Vt(i, 0);
|
|
1563
1563
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), ss(n);
|
|
1564
1564
|
}
|
|
1565
1565
|
function Jl(i) {
|
|
@@ -2006,7 +2006,7 @@ const $c = /^(\d+)(th|st|nd|rd)?/i, wc = /\d+/i, xc = {
|
|
|
2006
2006
|
parsePatterns: Pc,
|
|
2007
2007
|
defaultParseWidth: "any"
|
|
2008
2008
|
})
|
|
2009
|
-
},
|
|
2009
|
+
}, Ic = {
|
|
2010
2010
|
code: "en-US",
|
|
2011
2011
|
formatDistance: sc,
|
|
2012
2012
|
formatLong: lc,
|
|
@@ -2018,13 +2018,13 @@ const $c = /^(\d+)(th|st|nd|rd)?/i, wc = /\d+/i, xc = {
|
|
|
2018
2018
|
firstWeekContainsDate: 1
|
|
2019
2019
|
}
|
|
2020
2020
|
};
|
|
2021
|
-
function
|
|
2021
|
+
function Rc(i, e) {
|
|
2022
2022
|
const t = Mt(i, void 0);
|
|
2023
2023
|
return Ql(t, ic(t)) + 1;
|
|
2024
2024
|
}
|
|
2025
2025
|
function Lc(i, e) {
|
|
2026
2026
|
const t = Mt(i, void 0), n = +ss(t) - +Zl(t);
|
|
2027
|
-
return Math.round(n /
|
|
2027
|
+
return Math.round(n / Ia) + 1;
|
|
2028
2028
|
}
|
|
2029
2029
|
function Fa(i, e) {
|
|
2030
2030
|
var t, n, s, r;
|
|
@@ -2042,7 +2042,7 @@ function Bc(i, e) {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
function ja(i, e) {
|
|
2044
2044
|
const t = Mt(i, e == null ? void 0 : e.in), n = +Mn(t, e) - +Bc(t, e);
|
|
2045
|
-
return Math.round(n /
|
|
2045
|
+
return Math.round(n / Ia) + 1;
|
|
2046
2046
|
}
|
|
2047
2047
|
function ye(i, e) {
|
|
2048
2048
|
const t = i < 0 ? "-" : "", n = Math.abs(i).toString().padStart(e, "0");
|
|
@@ -2147,7 +2147,7 @@ const oi = {
|
|
|
2147
2147
|
},
|
|
2148
2148
|
// ISO week-numbering year
|
|
2149
2149
|
R: function(i, e) {
|
|
2150
|
-
const t =
|
|
2150
|
+
const t = Ra(i);
|
|
2151
2151
|
return ye(t, e.length);
|
|
2152
2152
|
},
|
|
2153
2153
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -2306,7 +2306,7 @@ const oi = {
|
|
|
2306
2306
|
},
|
|
2307
2307
|
// Day of year
|
|
2308
2308
|
D: function(i, e, t) {
|
|
2309
|
-
const n =
|
|
2309
|
+
const n = Rc(i);
|
|
2310
2310
|
return e === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) : ye(n, e.length);
|
|
2311
2311
|
},
|
|
2312
2312
|
// Day of week
|
|
@@ -2741,7 +2741,7 @@ function Yc(i, e, t) {
|
|
|
2741
2741
|
const Kc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xc = /^'([^]*?)'?$/, Qc = /''/g, Zc = /[a-zA-Z]/;
|
|
2742
2742
|
function Jc(i, e, t) {
|
|
2743
2743
|
var n, s, r, a;
|
|
2744
|
-
const l = fs(), u = l.locale ??
|
|
2744
|
+
const l = fs(), u = l.locale ?? Ic, h = l.firstWeekContainsDate ?? ((s = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : s.firstWeekContainsDate) ?? 1, f = l.weekStartsOn ?? ((a = (r = l.locale) == null ? void 0 : r.options) == null ? void 0 : a.weekStartsOn) ?? 0, g = Mt(i, void 0);
|
|
2745
2745
|
if (!ec(g))
|
|
2746
2746
|
throw new RangeError("Invalid time value");
|
|
2747
2747
|
let y = e.match(Gc).map((m) => {
|
|
@@ -3361,12 +3361,12 @@ let $e = class extends Ce {
|
|
|
3361
3361
|
const n = this.getDayViewData(e, t), { currentDate: s, currentDateISO: r, isSelected: a, isDisabled: l, ariaLabel: u, tabindex: h } = n;
|
|
3362
3362
|
this.selectableDates.push({ currentDateISO: r, isDisabled: l, tabindex: h });
|
|
3363
3363
|
const f = this.getDayCellClasses(n), g = this.getDayButtonClasses(n);
|
|
3364
|
-
return v`<td class=${
|
|
3364
|
+
return v`<td class=${R(f)}>
|
|
3365
3365
|
<button
|
|
3366
3366
|
type="button"
|
|
3367
3367
|
aria-pressed=${a ? "true" : "false"}
|
|
3368
3368
|
?disabled=${l}
|
|
3369
|
-
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${
|
|
3369
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${R(g)}"
|
|
3370
3370
|
@mouseover=${() => this.range && !this.isExcluded(s) && this.handleRangeHover(s)}
|
|
3371
3371
|
@focus=${() => this.handleDayFocus(s, r)}
|
|
3372
3372
|
aria-label="${u}"
|
|
@@ -3607,7 +3607,7 @@ var Pu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor, Kt = (i, e
|
|
|
3607
3607
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
3608
3608
|
return n && s && Pu(e, t, s), s;
|
|
3609
3609
|
};
|
|
3610
|
-
let
|
|
3610
|
+
let Rt = class extends Ce {
|
|
3611
3611
|
constructor() {
|
|
3612
3612
|
super(), this.defaultSlot = L(), this.closeTag = Yn.props.closeTag.default, this.size = Yn.props.size.default, this.skin = Yn.props.skin.default, this.textStyle = null, this.iconName = void 0, this.type = Yn.props.type.default, this.ariaLabel = null, this._isClosed = !1, this._ariaDescription = null, this.close = (e) => {
|
|
3613
3613
|
this._isClosed = !0, this.dispatchEvent(
|
|
@@ -3645,7 +3645,7 @@ let It = class extends Ce {
|
|
|
3645
3645
|
};
|
|
3646
3646
|
return this.closeTag ? v`
|
|
3647
3647
|
<button
|
|
3648
|
-
class=${
|
|
3648
|
+
class=${R(t)}
|
|
3649
3649
|
type=${this.type}
|
|
3650
3650
|
@click=${this.close}
|
|
3651
3651
|
aria-label=${P(this.ariaLabel || void 0)}
|
|
@@ -3660,7 +3660,7 @@ let It = class extends Ce {
|
|
|
3660
3660
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
3661
3661
|
</button>
|
|
3662
3662
|
` : v`
|
|
3663
|
-
<span class=${
|
|
3663
|
+
<span class=${R(e)}>
|
|
3664
3664
|
${this.iconName && v`<pkt-icon
|
|
3665
3665
|
class="pkt-tag__icon"
|
|
3666
3666
|
name=${this.iconName}
|
|
@@ -3673,38 +3673,38 @@ let It = class extends Ce {
|
|
|
3673
3673
|
};
|
|
3674
3674
|
Kt([
|
|
3675
3675
|
o({ type: Boolean, reflect: !0 })
|
|
3676
|
-
],
|
|
3676
|
+
], Rt.prototype, "closeTag", 2);
|
|
3677
3677
|
Kt([
|
|
3678
3678
|
o({ type: String, reflect: !0 })
|
|
3679
|
-
],
|
|
3679
|
+
], Rt.prototype, "size", 2);
|
|
3680
3680
|
Kt([
|
|
3681
3681
|
o({ type: String, reflect: !0 })
|
|
3682
|
-
],
|
|
3682
|
+
], Rt.prototype, "skin", 2);
|
|
3683
3683
|
Kt([
|
|
3684
3684
|
o({ type: String, reflect: !0 })
|
|
3685
|
-
],
|
|
3685
|
+
], Rt.prototype, "textStyle", 2);
|
|
3686
3686
|
Kt([
|
|
3687
3687
|
o({ type: String, reflect: !0 })
|
|
3688
|
-
],
|
|
3688
|
+
], Rt.prototype, "iconName", 2);
|
|
3689
3689
|
Kt([
|
|
3690
3690
|
o({ type: String })
|
|
3691
|
-
],
|
|
3691
|
+
], Rt.prototype, "type", 2);
|
|
3692
3692
|
Kt([
|
|
3693
3693
|
o({ type: String })
|
|
3694
|
-
],
|
|
3694
|
+
], Rt.prototype, "ariaLabel", 2);
|
|
3695
3695
|
Kt([
|
|
3696
3696
|
Q()
|
|
3697
|
-
],
|
|
3697
|
+
], Rt.prototype, "_isClosed", 2);
|
|
3698
3698
|
Kt([
|
|
3699
3699
|
Q()
|
|
3700
|
-
],
|
|
3701
|
-
|
|
3700
|
+
], Rt.prototype, "_ariaDescription", 2);
|
|
3701
|
+
Rt = Kt([
|
|
3702
3702
|
ie("pkt-tag")
|
|
3703
|
-
],
|
|
3704
|
-
var
|
|
3705
|
-
for (var s = n > 1 ? void 0 : n ?
|
|
3703
|
+
], Rt);
|
|
3704
|
+
var Iu = Object.defineProperty, Ru = Object.getOwnPropertyDescriptor, en = (i, e, t, n) => {
|
|
3705
|
+
for (var s = n > 1 ? void 0 : n ? Ru(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
3706
3706
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
3707
|
-
return n && s &&
|
|
3707
|
+
return n && s && Iu(e, t, s), s;
|
|
3708
3708
|
};
|
|
3709
3709
|
let fi = class extends hs {
|
|
3710
3710
|
constructor() {
|
|
@@ -3831,7 +3831,7 @@ let et = class extends Ce {
|
|
|
3831
3831
|
}, s = ((e = this.ariaLabel) == null ? void 0 : e.trim()) || (this.heading ? `${this.heading} lenkekort` : "lenkekort"), r = ((t = this.ariaLabel) == null ? void 0 : t.trim()) || (this.heading ? this.heading : "kort");
|
|
3832
3832
|
return v`
|
|
3833
3833
|
<article
|
|
3834
|
-
class=${
|
|
3834
|
+
class=${R(n)}
|
|
3835
3835
|
aria-label=${P(this.clickCardLink ? s : r)}
|
|
3836
3836
|
>
|
|
3837
3837
|
${this.renderImage()}
|
|
@@ -3853,7 +3853,7 @@ let et = class extends Ce {
|
|
|
3853
3853
|
};
|
|
3854
3854
|
return v`
|
|
3855
3855
|
${this.image.src && v`
|
|
3856
|
-
<div class=${
|
|
3856
|
+
<div class=${R(e)}>
|
|
3857
3857
|
<img src=${this.image.src} alt=${this.image.alt || ""} />
|
|
3858
3858
|
</div>
|
|
3859
3859
|
`}
|
|
@@ -3923,7 +3923,7 @@ let et = class extends Ce {
|
|
|
3923
3923
|
return v`
|
|
3924
3924
|
${this.tags.length > 0 ? v`
|
|
3925
3925
|
<div
|
|
3926
|
-
class=${
|
|
3926
|
+
class=${R(e)}
|
|
3927
3927
|
role="list"
|
|
3928
3928
|
aria-label=${this.tags.length > 1 ? "merkelapper" : "merkelapp"}
|
|
3929
3929
|
>
|
|
@@ -4140,13 +4140,13 @@ function Uu() {
|
|
|
4140
4140
|
for (let k in T) {
|
|
4141
4141
|
d[k] = null;
|
|
4142
4142
|
let w = null;
|
|
4143
|
-
const
|
|
4143
|
+
const I = T[k];
|
|
4144
4144
|
Object.defineProperty(d, k, {
|
|
4145
4145
|
get() {
|
|
4146
4146
|
return w;
|
|
4147
4147
|
},
|
|
4148
4148
|
set(V) {
|
|
4149
|
-
w = V, p.isConnected ? C(p,
|
|
4149
|
+
w = V, p.isConnected ? C(p, I, V) : f.set(p, d);
|
|
4150
4150
|
}
|
|
4151
4151
|
});
|
|
4152
4152
|
}
|
|
@@ -4162,22 +4162,22 @@ function Uu() {
|
|
|
4162
4162
|
}
|
|
4163
4163
|
});
|
|
4164
4164
|
let w = k.nextNode();
|
|
4165
|
-
const
|
|
4165
|
+
const I = !d || p.disabled;
|
|
4166
4166
|
for (; w; )
|
|
4167
|
-
w.formDisabledCallback &&
|
|
4167
|
+
w.formDisabledCallback && I && F(w, p.disabled), w = k.nextNode();
|
|
4168
4168
|
}, N = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = Ne() ? new MutationObserver((p) => {
|
|
4169
4169
|
for (const d of p) {
|
|
4170
4170
|
const k = d.target;
|
|
4171
4171
|
if (d.attributeName === "disabled" && (k.constructor.formAssociated ? F(k, k.hasAttribute("disabled")) : k.localName === "fieldset" && O(k)), d.attributeName === "name" && k.constructor.formAssociated) {
|
|
4172
|
-
const w = s.get(k),
|
|
4173
|
-
w.setFormValue(
|
|
4172
|
+
const w = s.get(k), I = h.get(k);
|
|
4173
|
+
w.setFormValue(I);
|
|
4174
4174
|
}
|
|
4175
4175
|
}
|
|
4176
4176
|
}) : {};
|
|
4177
4177
|
function K(p) {
|
|
4178
4178
|
p.forEach((d) => {
|
|
4179
|
-
const { addedNodes: k, removedNodes: w } = d,
|
|
4180
|
-
|
|
4179
|
+
const { addedNodes: k, removedNodes: w } = d, I = Array.from(k), V = Array.from(w);
|
|
4180
|
+
I.forEach((Z) => {
|
|
4181
4181
|
var yt;
|
|
4182
4182
|
if (s.has(Z) && Z.constructor.formAssociated && S(Z), f.has(Z)) {
|
|
4183
4183
|
const Xe = f.get(Z);
|
|
@@ -4210,8 +4210,8 @@ function Uu() {
|
|
|
4210
4210
|
p.forEach((d) => {
|
|
4211
4211
|
const { removedNodes: k } = d;
|
|
4212
4212
|
k.forEach((w) => {
|
|
4213
|
-
const
|
|
4214
|
-
s.has(w) && qe(w),
|
|
4213
|
+
const I = b.get(d.target);
|
|
4214
|
+
s.has(w) && qe(w), I.disconnect();
|
|
4215
4215
|
});
|
|
4216
4216
|
});
|
|
4217
4217
|
}
|
|
@@ -4244,13 +4244,13 @@ function Uu() {
|
|
|
4244
4244
|
let k = d[0].id;
|
|
4245
4245
|
d[0].id || (k = `${d[0].htmlFor}_Label`, d[0].id = k), C(p, "aria-labelledby", k);
|
|
4246
4246
|
}
|
|
4247
|
-
},
|
|
4248
|
-
const d = Array.from(p.elements).filter((V) => !V.tagName.includes("-") && V.validity).map((V) => V.validity.valid), k = u.get(p) || [], w = Array.from(k).filter((V) => V.isConnected).map((V) => s.get(V).validity.valid),
|
|
4249
|
-
p.toggleAttribute("internals-invalid",
|
|
4247
|
+
}, ue = (p) => {
|
|
4248
|
+
const d = Array.from(p.elements).filter((V) => !V.tagName.includes("-") && V.validity).map((V) => V.validity.valid), k = u.get(p) || [], w = Array.from(k).filter((V) => V.isConnected).map((V) => s.get(V).validity.valid), I = [...d, ...w].includes(!1);
|
|
4249
|
+
p.toggleAttribute("internals-invalid", I), p.toggleAttribute("internals-valid", !I);
|
|
4250
4250
|
}, se = (p) => {
|
|
4251
|
-
|
|
4251
|
+
ue(re(p.target));
|
|
4252
4252
|
}, ve = (p) => {
|
|
4253
|
-
|
|
4253
|
+
ue(re(p.target));
|
|
4254
4254
|
}, z = (p) => {
|
|
4255
4255
|
const d = ["button[type=submit]", "input[type=submit]", "button:not([type])"].map((k) => `${k}:not([disabled])`).map((k) => `${k}:not([form])${p.id ? `,${k}[form='${p.id}']` : ""}`).join(",");
|
|
4256
4256
|
p.addEventListener("click", (k) => {
|
|
@@ -4258,7 +4258,7 @@ function Uu() {
|
|
|
4258
4258
|
const w = u.get(p);
|
|
4259
4259
|
if (p.noValidate)
|
|
4260
4260
|
return;
|
|
4261
|
-
w.size && Array.from(w).reverse().map((
|
|
4261
|
+
w.size && Array.from(w).reverse().map((I) => s.get(I).reportValidity()).includes(!1) && k.preventDefault();
|
|
4262
4262
|
}
|
|
4263
4263
|
});
|
|
4264
4264
|
}, Y = (p) => {
|
|
@@ -4272,12 +4272,12 @@ function Uu() {
|
|
|
4272
4272
|
if (w)
|
|
4273
4273
|
w.add(p);
|
|
4274
4274
|
else {
|
|
4275
|
-
const
|
|
4276
|
-
|
|
4275
|
+
const I = /* @__PURE__ */ new Set();
|
|
4276
|
+
I.add(p), u.set(d, I), z(d), d.addEventListener("reset", Y), d.addEventListener("input", se), d.addEventListener("change", ve);
|
|
4277
4277
|
}
|
|
4278
4278
|
a.set(d, { ref: p, internals: k }), p.constructor.formAssociated && p.formAssociatedCallback && setTimeout(() => {
|
|
4279
4279
|
p.formAssociatedCallback.apply(p, [d]);
|
|
4280
|
-
}, 0),
|
|
4280
|
+
}, 0), ue(d);
|
|
4281
4281
|
}
|
|
4282
4282
|
}, re = (p) => {
|
|
4283
4283
|
let d = p.parentNode;
|
|
@@ -4287,8 +4287,8 @@ function Uu() {
|
|
|
4287
4287
|
throw new k(d);
|
|
4288
4288
|
}, nt = (p, d, k) => {
|
|
4289
4289
|
const w = u.get(p);
|
|
4290
|
-
return w && w.size && w.forEach((
|
|
4291
|
-
s.get(
|
|
4290
|
+
return w && w.size && w.forEach((I) => {
|
|
4291
|
+
s.get(I)[k]() || (d = !1);
|
|
4292
4292
|
}), d;
|
|
4293
4293
|
}, qe = (p) => {
|
|
4294
4294
|
if (p.constructor.formAssociated) {
|
|
@@ -4304,7 +4304,7 @@ function Uu() {
|
|
|
4304
4304
|
this.badInput = !1, this.customError = !1, this.patternMismatch = !1, this.rangeOverflow = !1, this.rangeUnderflow = !1, this.stepMismatch = !1, this.tooLong = !1, this.tooShort = !1, this.typeMismatch = !1, this.valid = !0, this.valueMissing = !1, Object.seal(this);
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
|
-
const lt = (p) => (p.badInput = !1, p.customError = !1, p.patternMismatch = !1, p.rangeOverflow = !1, p.rangeUnderflow = !1, p.stepMismatch = !1, p.tooLong = !1, p.tooShort = !1, p.typeMismatch = !1, p.valid = !0, p.valueMissing = !1, p), xe = (p, d, k) => (p.valid = De(d), Object.keys(d).forEach((w) => p[w] = d[w]), k &&
|
|
4307
|
+
const lt = (p) => (p.badInput = !1, p.customError = !1, p.patternMismatch = !1, p.rangeOverflow = !1, p.rangeUnderflow = !1, p.stepMismatch = !1, p.tooLong = !1, p.tooShort = !1, p.typeMismatch = !1, p.valid = !0, p.valueMissing = !1, p), xe = (p, d, k) => (p.valid = De(d), Object.keys(d).forEach((w) => p[w] = d[w]), k && ue(k), p), De = (p) => {
|
|
4308
4308
|
let d = !0;
|
|
4309
4309
|
for (let k in p)
|
|
4310
4310
|
k !== "valid" && p[k] !== !1 && (d = !1);
|
|
@@ -4325,9 +4325,9 @@ function Uu() {
|
|
|
4325
4325
|
add(d) {
|
|
4326
4326
|
if (!/^--/.test(d) || typeof d != "string")
|
|
4327
4327
|
throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${d} must start with '--'.`);
|
|
4328
|
-
const k = super.add(d), w = Ke.get(this),
|
|
4329
|
-
return w.isConnected ? Ge(w,
|
|
4330
|
-
Ge(w,
|
|
4328
|
+
const k = super.add(d), w = Ke.get(this), I = `state${d}`;
|
|
4329
|
+
return w.isConnected ? Ge(w, I) : setTimeout(() => {
|
|
4330
|
+
Ge(w, I);
|
|
4331
4331
|
}), k;
|
|
4332
4332
|
}
|
|
4333
4333
|
clear() {
|
|
@@ -4342,11 +4342,11 @@ function Uu() {
|
|
|
4342
4342
|
}), k;
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
|
-
function
|
|
4345
|
+
function ce(p, d, k, w) {
|
|
4346
4346
|
if (typeof d == "function" ? p !== d || !w : !d.has(p)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4347
4347
|
return k === "m" ? w : k === "a" ? w.call(p) : w ? w.value : d.get(p);
|
|
4348
4348
|
}
|
|
4349
|
-
function ke(p, d, k, w,
|
|
4349
|
+
function ke(p, d, k, w, I) {
|
|
4350
4350
|
if (typeof d == "function" ? p !== d || !0 : !d.has(p)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
4351
4351
|
return d.set(p, k), k;
|
|
4352
4352
|
}
|
|
@@ -4361,10 +4361,10 @@ function Uu() {
|
|
|
4361
4361
|
Object.freeze(this);
|
|
4362
4362
|
}
|
|
4363
4363
|
get length() {
|
|
4364
|
-
return
|
|
4364
|
+
return ce(this, je, "f").length;
|
|
4365
4365
|
}
|
|
4366
4366
|
[(je = /* @__PURE__ */ new WeakMap(), Symbol.iterator)]() {
|
|
4367
|
-
return
|
|
4367
|
+
return ce(this, je, "f")[Symbol.iterator]();
|
|
4368
4368
|
}
|
|
4369
4369
|
item(d) {
|
|
4370
4370
|
return this[d] == null ? null : this[d];
|
|
@@ -4386,10 +4386,10 @@ function Uu() {
|
|
|
4386
4386
|
let Z = d.apply(this, V);
|
|
4387
4387
|
return nt(this, Z, "reportValidity");
|
|
4388
4388
|
}
|
|
4389
|
-
const { get:
|
|
4389
|
+
const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
|
|
4390
4390
|
Object.defineProperty(HTMLFormElement.prototype, "elements", {
|
|
4391
4391
|
get(...V) {
|
|
4392
|
-
const Z =
|
|
4392
|
+
const Z = I.call(this, ...V), yt = Array.from(u.get(this) || []);
|
|
4393
4393
|
if (yt.length === 0)
|
|
4394
4394
|
return Z;
|
|
4395
4395
|
const Xe = Array.from(Z).concat(yt).sort((bt, si) => bt.compareDocumentPosition ? bt.compareDocumentPosition(si) & 2 ? 1 : -1 : 0);
|
|
@@ -4450,17 +4450,17 @@ function Uu() {
|
|
|
4450
4450
|
const w = G(k, this);
|
|
4451
4451
|
w.value = d;
|
|
4452
4452
|
}
|
|
4453
|
-
} else d != null && d instanceof FormData && Array.from(d).reverse().forEach(([w,
|
|
4454
|
-
if (typeof
|
|
4453
|
+
} else d != null && d instanceof FormData && Array.from(d).reverse().forEach(([w, I]) => {
|
|
4454
|
+
if (typeof I == "string") {
|
|
4455
4455
|
const V = G(k, this);
|
|
4456
|
-
V.name = w, V.value =
|
|
4456
|
+
V.name = w, V.value = I;
|
|
4457
4457
|
}
|
|
4458
4458
|
});
|
|
4459
4459
|
h.set(k, d);
|
|
4460
4460
|
}
|
|
4461
4461
|
setValidity(d, k, w) {
|
|
4462
|
-
const
|
|
4463
|
-
if (ae(
|
|
4462
|
+
const I = e.get(this);
|
|
4463
|
+
if (ae(I, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !d)
|
|
4464
4464
|
throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
|
|
4465
4465
|
y.set(this, w);
|
|
4466
4466
|
const V = t.get(this), Z = {};
|
|
@@ -4472,7 +4472,7 @@ function Uu() {
|
|
|
4472
4472
|
const { valid: Xe } = xe(V, yt, this.form);
|
|
4473
4473
|
if (!Xe && !k)
|
|
4474
4474
|
throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
|
|
4475
|
-
r.set(this, Xe ? "" : k),
|
|
4475
|
+
r.set(this, Xe ? "" : k), I.isConnected ? (I.toggleAttribute("internals-invalid", !Xe), I.toggleAttribute("internals-valid", Xe), C(I, "aria-invalid", `${!Xe}`)) : _.set(I, this);
|
|
4476
4476
|
}
|
|
4477
4477
|
get shadowRoot() {
|
|
4478
4478
|
const d = e.get(this);
|
|
@@ -4515,7 +4515,7 @@ function Uu() {
|
|
|
4515
4515
|
"reportValidity"
|
|
4516
4516
|
].every((w) => w in k.internals);
|
|
4517
4517
|
}
|
|
4518
|
-
let
|
|
4518
|
+
let de = !1, _e = !1;
|
|
4519
4519
|
function We(p) {
|
|
4520
4520
|
_e || (_e = !0, window.CustomStateSet = st, p && (HTMLElement.prototype.attachInternals = function(...d) {
|
|
4521
4521
|
const k = p.call(this, d);
|
|
@@ -4523,17 +4523,17 @@ function Uu() {
|
|
|
4523
4523
|
}));
|
|
4524
4524
|
}
|
|
4525
4525
|
function ct(p = !0) {
|
|
4526
|
-
if (!
|
|
4527
|
-
if (
|
|
4526
|
+
if (!de) {
|
|
4527
|
+
if (de = !0, typeof window < "u" && (window.ElementInternals = j), typeof CustomElementRegistry < "u") {
|
|
4528
4528
|
const d = CustomElementRegistry.prototype.define;
|
|
4529
|
-
CustomElementRegistry.prototype.define = function(k, w,
|
|
4529
|
+
CustomElementRegistry.prototype.define = function(k, w, I) {
|
|
4530
4530
|
if (w.formAssociated) {
|
|
4531
4531
|
const V = w.prototype.connectedCallback;
|
|
4532
4532
|
w.prototype.connectedCallback = function() {
|
|
4533
4533
|
m.has(this) || (m.set(this, !0), this.hasAttribute("disabled") && F(this, !0)), V != null && V.apply(this), qe(this);
|
|
4534
4534
|
};
|
|
4535
4535
|
}
|
|
4536
|
-
d.call(this, k, w,
|
|
4536
|
+
d.call(this, k, w, I);
|
|
4537
4537
|
};
|
|
4538
4538
|
}
|
|
4539
4539
|
if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
|
|
@@ -4546,12 +4546,12 @@ function Uu() {
|
|
|
4546
4546
|
return new j(this);
|
|
4547
4547
|
}), typeof Element < "u") {
|
|
4548
4548
|
let d = function(...w) {
|
|
4549
|
-
const
|
|
4550
|
-
if (g.set(this,
|
|
4549
|
+
const I = k.apply(this, w);
|
|
4550
|
+
if (g.set(this, I), Ne()) {
|
|
4551
4551
|
const V = new MutationObserver(K);
|
|
4552
|
-
window.ShadyDOM ? V.observe(this, U) : V.observe(
|
|
4552
|
+
window.ShadyDOM ? V.observe(this, U) : V.observe(I, U), l.set(this, V);
|
|
4553
4553
|
}
|
|
4554
|
-
return
|
|
4554
|
+
return I;
|
|
4555
4555
|
};
|
|
4556
4556
|
const k = Element.prototype.attachShadow;
|
|
4557
4557
|
Element.prototype.attachShadow = d;
|
|
@@ -4974,7 +4974,7 @@ let ei = class extends Ce {
|
|
|
4974
4974
|
detail: { isOpen: s }
|
|
4975
4975
|
})
|
|
4976
4976
|
);
|
|
4977
|
-
}, t =
|
|
4977
|
+
}, t = R({
|
|
4978
4978
|
"pkt-inputwrapper__helptext-container": !0,
|
|
4979
4979
|
"pkt-inputwrapper__has-helptext": this.helptext || this.helptextDropdown || this.filledSlots.size > 0
|
|
4980
4980
|
}), n = () => this.helptextDropdown ? v`<div class="pkt-inputwrapper__helptext-expandable">
|
|
@@ -4990,7 +4990,7 @@ let ei = class extends Ce {
|
|
|
4990
4990
|
<span class="pkt-btn__text">${Qn(this.helptextDropdownButton)}</span>
|
|
4991
4991
|
</button>
|
|
4992
4992
|
<div
|
|
4993
|
-
class="${
|
|
4993
|
+
class="${R({
|
|
4994
4994
|
"pkt-inputwrapper__helptext": !0,
|
|
4995
4995
|
"pkt-inputwrapper__helptext-expandable-open": this.isHelpTextOpen,
|
|
4996
4996
|
"pkt-inputwrapper__helptext-expandable-closed": !this.isHelpTextOpen
|
|
@@ -5029,7 +5029,7 @@ Ai([
|
|
|
5029
5029
|
ei = Ai([
|
|
5030
5030
|
ie("pkt-helptext")
|
|
5031
5031
|
], ei);
|
|
5032
|
-
var Yu = Object.defineProperty, Ku = Object.getOwnPropertyDescriptor,
|
|
5032
|
+
var Yu = Object.defineProperty, Ku = Object.getOwnPropertyDescriptor, Re = (i, e, t, n) => {
|
|
5033
5033
|
for (var s = n > 1 ? void 0 : n ? Ku(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
5034
5034
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
5035
5035
|
return n && s && Yu(e, t, s), s;
|
|
@@ -5105,7 +5105,7 @@ let Ae = class extends Ce {
|
|
|
5105
5105
|
`, f = () => this.hasFieldset ? v`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${n}">
|
|
5106
5106
|
${h()}
|
|
5107
5107
|
</fieldset>` : v`<div class="pkt-inputwrapper__fieldset">${h()}</div>`;
|
|
5108
|
-
return v`<div class=${
|
|
5108
|
+
return v`<div class=${R(e)}>${f()}</div> `;
|
|
5109
5109
|
}
|
|
5110
5110
|
toggleDropdown(e) {
|
|
5111
5111
|
this.dispatchEvent(
|
|
@@ -5125,76 +5125,76 @@ let Ae = class extends Ce {
|
|
|
5125
5125
|
);
|
|
5126
5126
|
}
|
|
5127
5127
|
};
|
|
5128
|
-
|
|
5128
|
+
Re([
|
|
5129
5129
|
o({ type: String })
|
|
5130
5130
|
], Ae.prototype, "forId", 2);
|
|
5131
|
-
|
|
5131
|
+
Re([
|
|
5132
5132
|
o({ type: String })
|
|
5133
5133
|
], Ae.prototype, "label", 2);
|
|
5134
|
-
|
|
5134
|
+
Re([
|
|
5135
5135
|
o({ type: String })
|
|
5136
5136
|
], Ae.prototype, "helptext", 2);
|
|
5137
|
-
|
|
5137
|
+
Re([
|
|
5138
5138
|
o({ type: String })
|
|
5139
5139
|
], Ae.prototype, "helptextDropdown", 2);
|
|
5140
|
-
|
|
5140
|
+
Re([
|
|
5141
5141
|
o({ type: String })
|
|
5142
5142
|
], Ae.prototype, "helptextDropdownButton", 2);
|
|
5143
|
-
|
|
5143
|
+
Re([
|
|
5144
5144
|
o({ type: Boolean })
|
|
5145
5145
|
], Ae.prototype, "counter", 2);
|
|
5146
|
-
|
|
5146
|
+
Re([
|
|
5147
5147
|
o({ type: Number })
|
|
5148
5148
|
], Ae.prototype, "counterCurrent", 2);
|
|
5149
|
-
|
|
5149
|
+
Re([
|
|
5150
5150
|
o({ type: Number })
|
|
5151
5151
|
], Ae.prototype, "counterMaxLength", 2);
|
|
5152
|
-
|
|
5152
|
+
Re([
|
|
5153
5153
|
o({ type: String })
|
|
5154
5154
|
], Ae.prototype, "counterError", 2);
|
|
5155
|
-
|
|
5155
|
+
Re([
|
|
5156
5156
|
o({ type: String, reflect: !1 })
|
|
5157
5157
|
], Ae.prototype, "counterPosition", 2);
|
|
5158
|
-
|
|
5158
|
+
Re([
|
|
5159
5159
|
o({ type: Boolean })
|
|
5160
5160
|
], Ae.prototype, "optionalTag", 2);
|
|
5161
|
-
|
|
5161
|
+
Re([
|
|
5162
5162
|
o({ type: String })
|
|
5163
5163
|
], Ae.prototype, "optionalText", 2);
|
|
5164
|
-
|
|
5164
|
+
Re([
|
|
5165
5165
|
o({ type: Boolean })
|
|
5166
5166
|
], Ae.prototype, "requiredTag", 2);
|
|
5167
|
-
|
|
5167
|
+
Re([
|
|
5168
5168
|
o({ type: String })
|
|
5169
5169
|
], Ae.prototype, "requiredText", 2);
|
|
5170
|
-
|
|
5170
|
+
Re([
|
|
5171
5171
|
o({ type: String })
|
|
5172
5172
|
], Ae.prototype, "tagText", 2);
|
|
5173
|
-
|
|
5173
|
+
Re([
|
|
5174
5174
|
o({ type: Boolean })
|
|
5175
5175
|
], Ae.prototype, "hasError", 2);
|
|
5176
|
-
|
|
5176
|
+
Re([
|
|
5177
5177
|
o({ type: String })
|
|
5178
5178
|
], Ae.prototype, "errorMessage", 2);
|
|
5179
|
-
|
|
5179
|
+
Re([
|
|
5180
5180
|
o({ type: Boolean })
|
|
5181
5181
|
], Ae.prototype, "disabled", 2);
|
|
5182
|
-
|
|
5182
|
+
Re([
|
|
5183
5183
|
o({ type: Boolean })
|
|
5184
5184
|
], Ae.prototype, "inline", 2);
|
|
5185
|
-
|
|
5185
|
+
Re([
|
|
5186
5186
|
o({ type: String })
|
|
5187
5187
|
], Ae.prototype, "ariaDescribedby", 2);
|
|
5188
|
-
|
|
5188
|
+
Re([
|
|
5189
5189
|
o({ type: Boolean })
|
|
5190
5190
|
], Ae.prototype, "hasFieldset", 2);
|
|
5191
|
-
|
|
5191
|
+
Re([
|
|
5192
5192
|
o({ type: String, reflect: !0 })
|
|
5193
5193
|
], Ae.prototype, "role", 2);
|
|
5194
|
-
|
|
5194
|
+
Re([
|
|
5195
5195
|
o({ type: Boolean, reflect: !0, converter: St })
|
|
5196
5196
|
], Ae.prototype, "useWrapper", 2);
|
|
5197
|
-
Ae =
|
|
5197
|
+
Ae = Re([
|
|
5198
5198
|
ie("pkt-input-wrapper")
|
|
5199
5199
|
], Ae);
|
|
5200
5200
|
var Gu = Object.defineProperty, Xu = Object.getOwnPropertyDescriptor, gt = (i, e, t, n) => {
|
|
@@ -5220,7 +5220,7 @@ let dt = class extends Ce {
|
|
|
5220
5220
|
render() {
|
|
5221
5221
|
return v`
|
|
5222
5222
|
<div
|
|
5223
|
-
class=${
|
|
5223
|
+
class=${R({
|
|
5224
5224
|
"pkt-listbox": !0,
|
|
5225
5225
|
"pkt-listbox__open": this.isOpen,
|
|
5226
5226
|
"pkt-txt-16-light": !0
|
|
@@ -5264,7 +5264,7 @@ let dt = class extends Ce {
|
|
|
5264
5264
|
}}
|
|
5265
5265
|
aria-selected=${e.selected ? "true" : "false"}
|
|
5266
5266
|
@keydown=${this.handleOptionKeydown}
|
|
5267
|
-
class=${
|
|
5267
|
+
class=${R({
|
|
5268
5268
|
"pkt-listbox__option": !0,
|
|
5269
5269
|
"pkt-listbox__option--selected": !!(!this.isMultiSelect && e.selected),
|
|
5270
5270
|
"pkt-listbox__option--checkBox": this.isMultiSelect
|
|
@@ -5638,7 +5638,7 @@ let Fe = class extends W {
|
|
|
5638
5638
|
<div class="pkt-contents" ${B(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
5639
5639
|
<div class="pkt-combobox" @focusout=${this.handleFocusOut}>
|
|
5640
5640
|
<div
|
|
5641
|
-
class=${
|
|
5641
|
+
class=${R({
|
|
5642
5642
|
"pkt-combobox__input": !0,
|
|
5643
5643
|
"pkt-combobox__input--fullwidth": this.fullwidth,
|
|
5644
5644
|
"pkt-combobox__input--open": this._isOptionsOpen,
|
|
@@ -5668,7 +5668,7 @@ let Fe = class extends W {
|
|
|
5668
5668
|
tabindex="${this.disabled ? "-1" : "0"}"
|
|
5669
5669
|
>
|
|
5670
5670
|
<pkt-icon
|
|
5671
|
-
class=${
|
|
5671
|
+
class=${R({
|
|
5672
5672
|
"pkt-combobox__arrow-icon": !0,
|
|
5673
5673
|
"pkt-combobox__arrow-icon--open": this._isOptionsOpen
|
|
5674
5674
|
})}
|
|
@@ -6255,14 +6255,14 @@ let ht = class extends W {
|
|
|
6255
6255
|
e.has("defaultChecked") && !this.checked && (this.checked = this.defaultChecked), e.has("checked") && this.inputRef.value && (this.inputRef.value.checked = this.checked === "" || this.checked === "true" || this.checked === !0), e.has("indeterminate") && this.inputRef.value && (this.inputRef.value.indeterminate = this.indeterminate === "" || this.indeterminate === "true" || this.indeterminate === !0), super.updated(e);
|
|
6256
6256
|
}
|
|
6257
6257
|
render() {
|
|
6258
|
-
const e =
|
|
6258
|
+
const e = R({
|
|
6259
6259
|
"pkt-input-check__input": !0,
|
|
6260
6260
|
"pkt-input-check__input--tile": this.hasTile,
|
|
6261
6261
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
6262
|
-
}), t =
|
|
6262
|
+
}), t = R({
|
|
6263
6263
|
"pkt-input-check__input-checkbox": !0,
|
|
6264
6264
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
6265
|
-
}), n =
|
|
6265
|
+
}), n = R({
|
|
6266
6266
|
"pkt-input-check__input-label": !0,
|
|
6267
6267
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
6268
6268
|
"pkt-input-check__input-label--left": this.labelPosition === "left",
|
|
@@ -6391,7 +6391,7 @@ let Gi = class extends Ce {
|
|
|
6391
6391
|
"pkt-date-tags": !0,
|
|
6392
6392
|
[this.className]: !0
|
|
6393
6393
|
}, v`
|
|
6394
|
-
<div class=${
|
|
6394
|
+
<div class=${R(this.classes)} aria-live="polite">
|
|
6395
6395
|
${Array.isArray(this.dates) && this.dates[0] ? Zs(
|
|
6396
6396
|
qa((this.dates ?? []).filter(Boolean)),
|
|
6397
6397
|
(e) => e,
|
|
@@ -6585,7 +6585,7 @@ let mt = class extends Ce {
|
|
|
6585
6585
|
const e = { "pkt-calendar-popup": !0, show: this.open, hide: !this.open };
|
|
6586
6586
|
return v`
|
|
6587
6587
|
<div
|
|
6588
|
-
class="${
|
|
6588
|
+
class="${R(e)}"
|
|
6589
6589
|
${B(this.popupRef)}
|
|
6590
6590
|
id="date-popup"
|
|
6591
6591
|
?hidden=${!this.open}
|
|
@@ -6732,7 +6732,7 @@ let Pt = class extends Ce {
|
|
|
6732
6732
|
var e;
|
|
6733
6733
|
return v`
|
|
6734
6734
|
<button
|
|
6735
|
-
class="${
|
|
6735
|
+
class="${R(Js.getButtonClasses())}"
|
|
6736
6736
|
type="button"
|
|
6737
6737
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6738
6738
|
@keydown=${(t) => {
|
|
@@ -6801,7 +6801,7 @@ let os = class extends Pt {
|
|
|
6801
6801
|
return v`
|
|
6802
6802
|
<div class="pkt-input__container">
|
|
6803
6803
|
<input
|
|
6804
|
-
class="${
|
|
6804
|
+
class="${R(this.inputClasses)}"
|
|
6805
6805
|
.type=${this.inputType}
|
|
6806
6806
|
id="${this.id}-input"
|
|
6807
6807
|
.value=${this.value}
|
|
@@ -6883,7 +6883,7 @@ let Xi = class extends Pt {
|
|
|
6883
6883
|
<div class="pkt-input__container">
|
|
6884
6884
|
${this.showRangeLabels ? v` <div class="pkt-input-prefix">${(e = this.strings.generic) == null ? void 0 : e.from}</div> ` : $}
|
|
6885
6885
|
<input
|
|
6886
|
-
class=${
|
|
6886
|
+
class=${R(this.inputClasses)}
|
|
6887
6887
|
.type=${this.inputType}
|
|
6888
6888
|
id="${this.id}-input"
|
|
6889
6889
|
aria-label="${this.label} ${((t = this.strings.generic) == null ? void 0 : t.from) ?? "Fra"}"
|
|
@@ -6942,12 +6942,12 @@ let Xi = class extends Pt {
|
|
|
6942
6942
|
}}
|
|
6943
6943
|
${B(this.inputRef)}
|
|
6944
6944
|
/>
|
|
6945
|
-
<div class="${
|
|
6945
|
+
<div class="${R(r)}" id="${this.id}-to-label">
|
|
6946
6946
|
${(n = this.strings.generic) == null ? void 0 : n.to}
|
|
6947
6947
|
</div>
|
|
6948
6948
|
${this.showRangeLabels ? $ : v` <div class="pkt-input-separator">–</div> `}
|
|
6949
6949
|
<input
|
|
6950
|
-
class=${
|
|
6950
|
+
class=${R(this.inputClasses)}
|
|
6951
6951
|
.type=${this.inputType}
|
|
6952
6952
|
id="${this.id}-to"
|
|
6953
6953
|
aria-label="${this.label} ${((s = this.strings.generic) == null ? void 0 : s.to) ?? "Til"}"
|
|
@@ -7045,7 +7045,7 @@ let En = class extends Pt {
|
|
|
7045
7045
|
return v`
|
|
7046
7046
|
<div class="pkt-input__container">
|
|
7047
7047
|
<input
|
|
7048
|
-
class=${
|
|
7048
|
+
class=${R(this.inputClasses)}
|
|
7049
7049
|
.type=${this.inputType}
|
|
7050
7050
|
id="${this.id}-input"
|
|
7051
7051
|
min=${P(this.min)}
|
|
@@ -7514,10 +7514,10 @@ ze = tt([
|
|
|
7514
7514
|
const Ad = { href: { default: "#" }, target: { default: "_self" } }, Zr = {
|
|
7515
7515
|
props: Ad
|
|
7516
7516
|
};
|
|
7517
|
-
var
|
|
7518
|
-
for (var s = n > 1 ? void 0 : n ?
|
|
7517
|
+
var Id = Object.defineProperty, Rd = Object.getOwnPropertyDescriptor, tn = (i, e, t, n) => {
|
|
7518
|
+
for (var s = n > 1 ? void 0 : n ? Rd(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
7519
7519
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
7520
|
-
return n && s &&
|
|
7520
|
+
return n && s && Id(e, t, s), s;
|
|
7521
7521
|
};
|
|
7522
7522
|
let Mi = class extends Ce {
|
|
7523
7523
|
constructor() {
|
|
@@ -7531,7 +7531,7 @@ let Mi = class extends Ce {
|
|
|
7531
7531
|
"pkt-link--external": this.external
|
|
7532
7532
|
};
|
|
7533
7533
|
return v`<a
|
|
7534
|
-
class=${
|
|
7534
|
+
class=${R(e)}
|
|
7535
7535
|
href=${this.href}
|
|
7536
7536
|
.target=${this.target}
|
|
7537
7537
|
.rel=${this.external ? "noopener noreferrer" : $}
|
|
@@ -7574,7 +7574,7 @@ let Lt = class extends W {
|
|
|
7574
7574
|
super.updated(e), e.has("value") && (this.counterCurrent = ((t = this.value) == null ? void 0 : t.length) || 0, this.valueChanged(this.value, e.get("value"))), e.has("id") && !this.name && this.id && (this.name = this.id);
|
|
7575
7575
|
}
|
|
7576
7576
|
render() {
|
|
7577
|
-
const e = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, t =
|
|
7577
|
+
const e = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, t = R({
|
|
7578
7578
|
"pkt-input": !0,
|
|
7579
7579
|
"pkt-input--fullwidth": this.fullwidth,
|
|
7580
7580
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -7707,7 +7707,7 @@ const Fd = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
|
|
|
7707
7707
|
minute: "2-digit"
|
|
7708
7708
|
});
|
|
7709
7709
|
};
|
|
7710
|
-
var Vd = Object.defineProperty, Ud = Object.getOwnPropertyDescriptor,
|
|
7710
|
+
var Vd = Object.defineProperty, Ud = Object.getOwnPropertyDescriptor, Ii = (i, e, t, n) => {
|
|
7711
7711
|
for (var s = n > 1 ? void 0 : n ? Ud(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
7712
7712
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
7713
7713
|
return n && s && Vd(e, t, s), s;
|
|
@@ -7736,7 +7736,7 @@ let mi = class extends Ce {
|
|
|
7736
7736
|
"onClick" in e && typeof e.onClick == "function" && e.onClick();
|
|
7737
7737
|
}
|
|
7738
7738
|
renderLinkOrButton(e, t) {
|
|
7739
|
-
const n = "href" in e, s =
|
|
7739
|
+
const n = "href" in e, s = R({
|
|
7740
7740
|
"pkt-user-menu__link": !0,
|
|
7741
7741
|
"pkt-link-button": !n,
|
|
7742
7742
|
"pkt-link": !n,
|
|
@@ -7850,29 +7850,29 @@ let mi = class extends Ce {
|
|
|
7850
7850
|
`;
|
|
7851
7851
|
}
|
|
7852
7852
|
};
|
|
7853
|
-
|
|
7853
|
+
Ii([
|
|
7854
7854
|
o({ type: Object })
|
|
7855
7855
|
], mi.prototype, "user", 2);
|
|
7856
|
-
|
|
7856
|
+
Ii([
|
|
7857
7857
|
o({ type: String, attribute: "formatted-last-logged-in" })
|
|
7858
7858
|
], mi.prototype, "formattedLastLoggedIn", 2);
|
|
7859
|
-
|
|
7859
|
+
Ii([
|
|
7860
7860
|
o({ type: Object })
|
|
7861
7861
|
], mi.prototype, "representing", 2);
|
|
7862
|
-
|
|
7862
|
+
Ii([
|
|
7863
7863
|
o({ type: Array, attribute: "user-menu" })
|
|
7864
7864
|
], mi.prototype, "userMenu", 2);
|
|
7865
|
-
|
|
7865
|
+
Ii([
|
|
7866
7866
|
o({
|
|
7867
7867
|
type: Boolean,
|
|
7868
7868
|
attribute: "can-change-representation",
|
|
7869
7869
|
converter: St
|
|
7870
7870
|
})
|
|
7871
7871
|
], mi.prototype, "canChangeRepresentation", 2);
|
|
7872
|
-
|
|
7872
|
+
Ii([
|
|
7873
7873
|
o({ type: Boolean, attribute: "logout-on-click", converter: St })
|
|
7874
7874
|
], mi.prototype, "logoutOnClick", 2);
|
|
7875
|
-
mi =
|
|
7875
|
+
mi = Ii([
|
|
7876
7876
|
ie("pkt-header-user-menu")
|
|
7877
7877
|
], mi);
|
|
7878
7878
|
var qd = Object.defineProperty, Wd = Object.getOwnPropertyDescriptor, ge = (i, e, t, n) => {
|
|
@@ -8094,10 +8094,10 @@ let he = class extends Ce {
|
|
|
8094
8094
|
` : $;
|
|
8095
8095
|
}
|
|
8096
8096
|
renderSlotContainer() {
|
|
8097
|
-
const e =
|
|
8097
|
+
const e = R({
|
|
8098
8098
|
"pkt-header-service__slot-container": !0,
|
|
8099
8099
|
"is-open": this.openMenu === "slot"
|
|
8100
|
-
}), t =
|
|
8100
|
+
}), t = R({
|
|
8101
8101
|
"pkt-header-service__slot-content": !0,
|
|
8102
8102
|
"align-right": this.alignSlotRight
|
|
8103
8103
|
});
|
|
@@ -8136,10 +8136,10 @@ let he = class extends Ce {
|
|
|
8136
8136
|
renderSearch() {
|
|
8137
8137
|
if (!this.showSearch) return $;
|
|
8138
8138
|
if (this.isTablet) {
|
|
8139
|
-
const e =
|
|
8139
|
+
const e = R({
|
|
8140
8140
|
"pkt-header-service__search-container": !0,
|
|
8141
8141
|
"is-open": this.openMenu === "search"
|
|
8142
|
-
}), t =
|
|
8142
|
+
}), t = R({
|
|
8143
8143
|
"pkt-header-service__mobile-menu": !0,
|
|
8144
8144
|
"is-open": this.openMenu === "search",
|
|
8145
8145
|
"align-right": this.alignSearchRight
|
|
@@ -8202,7 +8202,7 @@ let he = class extends Ce {
|
|
|
8202
8202
|
renderUserButton() {
|
|
8203
8203
|
var e;
|
|
8204
8204
|
if (!this.user) return $;
|
|
8205
|
-
const t =
|
|
8205
|
+
const t = R({
|
|
8206
8206
|
"pkt-header-service__user-menu": this.isMobile === !1,
|
|
8207
8207
|
"pkt-header-service__mobile-menu": this.isMobile === !0,
|
|
8208
8208
|
"is-open": this.openMenu === "user"
|
|
@@ -8214,7 +8214,7 @@ let he = class extends Ce {
|
|
|
8214
8214
|
${B(this.userContainerRef)}
|
|
8215
8215
|
>
|
|
8216
8216
|
<pkt-button
|
|
8217
|
-
class=${
|
|
8217
|
+
class=${R({
|
|
8218
8218
|
"pkt-header-service__user-button": !0,
|
|
8219
8219
|
"pkt-header-service__user-button--mobile": this.isMobile
|
|
8220
8220
|
})}
|
|
@@ -8249,7 +8249,7 @@ let he = class extends Ce {
|
|
|
8249
8249
|
`;
|
|
8250
8250
|
}
|
|
8251
8251
|
renderHeader() {
|
|
8252
|
-
const e =
|
|
8252
|
+
const e = R({
|
|
8253
8253
|
"pkt-header-service": !0,
|
|
8254
8254
|
"pkt-header-service--compact": this.compact,
|
|
8255
8255
|
"pkt-header-service--mobile": this.isMobile,
|
|
@@ -8257,7 +8257,7 @@ let he = class extends Ce {
|
|
|
8257
8257
|
"pkt-header-service--fixed": this.isFixed,
|
|
8258
8258
|
"pkt-header-service--scroll-to-hide": this.shouldHideOnScroll,
|
|
8259
8259
|
"pkt-header-service--hidden": this.isHidden
|
|
8260
|
-
}), t =
|
|
8260
|
+
}), t = R({
|
|
8261
8261
|
"pkt-header-service__logo-area": !0,
|
|
8262
8262
|
"pkt-header-service__logo-area--without-service": !this.serviceName
|
|
8263
8263
|
});
|
|
@@ -8300,7 +8300,7 @@ let he = class extends Ce {
|
|
|
8300
8300
|
render() {
|
|
8301
8301
|
const e = this.renderHeader();
|
|
8302
8302
|
if (this.isFixed) {
|
|
8303
|
-
const t =
|
|
8303
|
+
const t = R({
|
|
8304
8304
|
"pkt-header-service-spacer": !0,
|
|
8305
8305
|
"pkt-header-service-spacer--compact": this.compact,
|
|
8306
8306
|
"pkt-header-service-spacer--has-user": !!this.user,
|
|
@@ -8415,7 +8415,7 @@ var Yd = Object.defineProperty, Kd = Object.getOwnPropertyDescriptor, Le = (i, e
|
|
|
8415
8415
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
8416
8416
|
return n && s && Yd(e, t, s), s;
|
|
8417
8417
|
};
|
|
8418
|
-
let
|
|
8418
|
+
let Ie = class extends Ce {
|
|
8419
8419
|
constructor() {
|
|
8420
8420
|
super(), this.defaultSlot = L(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.slotController = new Ve(this, this.defaultSlot);
|
|
8421
8421
|
}
|
|
@@ -8464,81 +8464,81 @@ let Re = class extends Ce {
|
|
|
8464
8464
|
};
|
|
8465
8465
|
Le([
|
|
8466
8466
|
o({ type: String, attribute: "service-name" })
|
|
8467
|
-
],
|
|
8467
|
+
], Ie.prototype, "serviceName", 2);
|
|
8468
8468
|
Le([
|
|
8469
8469
|
o({ type: String, attribute: "service-link" })
|
|
8470
|
-
],
|
|
8470
|
+
], Ie.prototype, "serviceLink", 2);
|
|
8471
8471
|
Le([
|
|
8472
8472
|
o({ type: String, attribute: "logo-link" })
|
|
8473
|
-
],
|
|
8473
|
+
], Ie.prototype, "logoLink", 2);
|
|
8474
8474
|
Le([
|
|
8475
8475
|
o({ type: String, attribute: "search-placeholder" })
|
|
8476
|
-
],
|
|
8476
|
+
], Ie.prototype, "searchPlaceholder", 2);
|
|
8477
8477
|
Le([
|
|
8478
8478
|
o({ type: String, attribute: "search-value" })
|
|
8479
|
-
],
|
|
8479
|
+
], Ie.prototype, "searchValue", 2);
|
|
8480
8480
|
Le([
|
|
8481
8481
|
o({ type: Number, attribute: "mobile-breakpoint" })
|
|
8482
|
-
],
|
|
8482
|
+
], Ie.prototype, "mobileBreakpoint", 2);
|
|
8483
8483
|
Le([
|
|
8484
8484
|
o({ type: Number, attribute: "tablet-breakpoint" })
|
|
8485
|
-
],
|
|
8485
|
+
], Ie.prototype, "tabletBreakpoint", 2);
|
|
8486
8486
|
Le([
|
|
8487
8487
|
o({ type: String, attribute: "opened-menu" })
|
|
8488
|
-
],
|
|
8488
|
+
], Ie.prototype, "openedMenu", 2);
|
|
8489
8489
|
Le([
|
|
8490
8490
|
o({ type: String, attribute: "log-out-button-placement" })
|
|
8491
|
-
],
|
|
8491
|
+
], Ie.prototype, "logOutButtonPlacement", 2);
|
|
8492
8492
|
Le([
|
|
8493
8493
|
o({ type: String })
|
|
8494
|
-
],
|
|
8494
|
+
], Ie.prototype, "position", 2);
|
|
8495
8495
|
Le([
|
|
8496
8496
|
o({ type: String, attribute: "scroll-behavior" })
|
|
8497
|
-
],
|
|
8497
|
+
], Ie.prototype, "scrollBehavior", 2);
|
|
8498
8498
|
Le([
|
|
8499
8499
|
o({ type: String, attribute: "slot-menu-variant" })
|
|
8500
|
-
],
|
|
8500
|
+
], Ie.prototype, "slotMenuVariant", 2);
|
|
8501
8501
|
Le([
|
|
8502
8502
|
o({ type: String, attribute: "slot-menu-text" })
|
|
8503
|
-
],
|
|
8503
|
+
], Ie.prototype, "slotMenuText", 2);
|
|
8504
8504
|
Le([
|
|
8505
8505
|
o({ type: Boolean, attribute: "hide-logo", converter: St })
|
|
8506
|
-
],
|
|
8506
|
+
], Ie.prototype, "hideLogo", 2);
|
|
8507
8507
|
Le([
|
|
8508
8508
|
o({ type: Boolean, converter: St })
|
|
8509
|
-
],
|
|
8509
|
+
], Ie.prototype, "compact", 2);
|
|
8510
8510
|
Le([
|
|
8511
8511
|
o({ type: Boolean, attribute: "show-search", converter: St })
|
|
8512
|
-
],
|
|
8512
|
+
], Ie.prototype, "showSearch", 2);
|
|
8513
8513
|
Le([
|
|
8514
8514
|
o({
|
|
8515
8515
|
type: Boolean,
|
|
8516
8516
|
attribute: "can-change-representation",
|
|
8517
8517
|
converter: St
|
|
8518
8518
|
})
|
|
8519
|
-
],
|
|
8519
|
+
], Ie.prototype, "canChangeRepresentation", 2);
|
|
8520
8520
|
Le([
|
|
8521
8521
|
o({ type: Boolean, attribute: "has-log-out", converter: St })
|
|
8522
|
-
],
|
|
8522
|
+
], Ie.prototype, "hasLogOut", 2);
|
|
8523
8523
|
Le([
|
|
8524
8524
|
o({ type: Object })
|
|
8525
|
-
],
|
|
8525
|
+
], Ie.prototype, "user", 2);
|
|
8526
8526
|
Le([
|
|
8527
8527
|
o({ type: Array, attribute: "user-menu" })
|
|
8528
|
-
],
|
|
8528
|
+
], Ie.prototype, "userMenu", 2);
|
|
8529
8529
|
Le([
|
|
8530
8530
|
o({ type: Object })
|
|
8531
|
-
],
|
|
8531
|
+
], Ie.prototype, "representing", 2);
|
|
8532
8532
|
Le([
|
|
8533
8533
|
o({ type: Array, attribute: "user-menu-footer" })
|
|
8534
|
-
],
|
|
8534
|
+
], Ie.prototype, "userMenuFooter", 2);
|
|
8535
8535
|
Le([
|
|
8536
8536
|
o({ type: Array, attribute: "user-options" })
|
|
8537
|
-
],
|
|
8538
|
-
|
|
8537
|
+
], Ie.prototype, "userOptions", 2);
|
|
8538
|
+
Ie = Le([
|
|
8539
8539
|
ie("pkt-header")
|
|
8540
|
-
],
|
|
8541
|
-
var Gd = Object.defineProperty, Xd = Object.getOwnPropertyDescriptor,
|
|
8540
|
+
], Ie);
|
|
8541
|
+
var Gd = Object.defineProperty, Xd = Object.getOwnPropertyDescriptor, Ri = (i, e, t, n) => {
|
|
8542
8542
|
for (var s = n > 1 ? void 0 : n ? Xd(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
8543
8543
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
8544
8544
|
return n && s && Gd(e, t, s), s;
|
|
@@ -8564,25 +8564,25 @@ let gi = class extends Ce {
|
|
|
8564
8564
|
`;
|
|
8565
8565
|
}
|
|
8566
8566
|
};
|
|
8567
|
-
|
|
8567
|
+
Ri([
|
|
8568
8568
|
o({ type: String, reflect: !0 })
|
|
8569
8569
|
], gi.prototype, "title", 2);
|
|
8570
|
-
|
|
8570
|
+
Ri([
|
|
8571
8571
|
o({ type: String, reflect: !0 })
|
|
8572
8572
|
], gi.prototype, "href", 2);
|
|
8573
|
-
|
|
8573
|
+
Ri([
|
|
8574
8574
|
o({ type: String, reflect: !0 })
|
|
8575
8575
|
], gi.prototype, "iconName", 2);
|
|
8576
|
-
|
|
8576
|
+
Ri([
|
|
8577
8577
|
o({ type: Boolean, reflect: !0 })
|
|
8578
8578
|
], gi.prototype, "external", 2);
|
|
8579
|
-
|
|
8579
|
+
Ri([
|
|
8580
8580
|
o({ type: Boolean, reflect: !0 })
|
|
8581
8581
|
], gi.prototype, "openInNewTab", 2);
|
|
8582
|
-
|
|
8582
|
+
Ri([
|
|
8583
8583
|
o({ type: String, reflect: !0 })
|
|
8584
8584
|
], gi.prototype, "skin", 2);
|
|
8585
|
-
gi =
|
|
8585
|
+
gi = Ri([
|
|
8586
8586
|
ie("pkt-linkcard")
|
|
8587
8587
|
], gi);
|
|
8588
8588
|
var Qd = Object.defineProperty, Zd = Object.getOwnPropertyDescriptor, ii = (i, e, t, n) => {
|
|
@@ -8602,11 +8602,11 @@ let Bt = class extends Ce {
|
|
|
8602
8602
|
e.has("delay") && this.setupLoader();
|
|
8603
8603
|
}
|
|
8604
8604
|
render() {
|
|
8605
|
-
const e =
|
|
8605
|
+
const e = R({
|
|
8606
8606
|
"pkt-loader": !0,
|
|
8607
8607
|
[`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
|
|
8608
8608
|
[`pkt-loader--${this.size}`]: !0
|
|
8609
|
-
}), t =
|
|
8609
|
+
}), t = R({
|
|
8610
8610
|
"pkt-contents": !0,
|
|
8611
8611
|
"pkt-hide": this.isLoading
|
|
8612
8612
|
});
|
|
@@ -8697,7 +8697,7 @@ let Di = class extends Ce {
|
|
|
8697
8697
|
"pkt-messagebox--closable": this.closable,
|
|
8698
8698
|
"pkt-hide": this._isClosed
|
|
8699
8699
|
};
|
|
8700
|
-
return v`<div class=${
|
|
8700
|
+
return v`<div class=${R(i)}>
|
|
8701
8701
|
${this.closable ? v`<div class="pkt-messagebox__close">
|
|
8702
8702
|
<button
|
|
8703
8703
|
@click=${this.close}
|
|
@@ -8805,7 +8805,7 @@ let Nt = class extends Ce {
|
|
|
8805
8805
|
};
|
|
8806
8806
|
return v`
|
|
8807
8807
|
<dialog
|
|
8808
|
-
class=${
|
|
8808
|
+
class=${R(i)}
|
|
8809
8809
|
${B(this.dialogRef)}
|
|
8810
8810
|
aria-labelledby="pkt-modal__headingText"
|
|
8811
8811
|
aria-describedby="pkt-modal__content"
|
|
@@ -8814,10 +8814,10 @@ let Nt = class extends Ce {
|
|
|
8814
8814
|
<div class="pkt-modal__wrapper">
|
|
8815
8815
|
${this.headingText || !this.hideCloseButton ? v`<div class="pkt-modal__header">
|
|
8816
8816
|
<div class="pkt-modal__header-background"></div>
|
|
8817
|
-
${this.headingText ? v`<h1 id="pkt-modal__headingText" class=${
|
|
8817
|
+
${this.headingText ? v`<h1 id="pkt-modal__headingText" class=${R(e)}>
|
|
8818
8818
|
${this.headingText}
|
|
8819
8819
|
</h1>` : v`<div class="pkt-modal__headingText"></div>`}
|
|
8820
|
-
${this.hideCloseButton ? v`<div class="pkt-modal__noCloseButton"></div>` : v`<div class="${
|
|
8820
|
+
${this.hideCloseButton ? v`<div class="pkt-modal__noCloseButton"></div>` : v`<div class="${R(s)}">
|
|
8821
8821
|
<pkt-button
|
|
8822
8822
|
@click=${(r) => this.close(r)}
|
|
8823
8823
|
aria-label="close"
|
|
@@ -8833,7 +8833,7 @@ let Nt = class extends Ce {
|
|
|
8833
8833
|
<div class="pkt-modal__container">
|
|
8834
8834
|
<div
|
|
8835
8835
|
id="pkt-modal__content"
|
|
8836
|
-
class=${
|
|
8836
|
+
class=${R(t)}
|
|
8837
8837
|
${B(this.defaultSlot)}
|
|
8838
8838
|
></div>
|
|
8839
8839
|
</div>
|
|
@@ -8922,16 +8922,16 @@ let He = class extends Ce {
|
|
|
8922
8922
|
super.updated(e), e.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), e.has("id") && this.id && (this.progressBarId = this.id), (e.has("statusType") || e.has("id") || e.has("ariaLabelledby")) && (this.progressbarId = this.id || di(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (e.has("ariaValueText") || e.has("valueCurrent") || e.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
|
|
8923
8923
|
}
|
|
8924
8924
|
render() {
|
|
8925
|
-
const e = this.statusType !== "none", t = this.valueMax - this.valueMin, n = this.valueCurrent / t * 100, s = this.statusType === "fraction" ? Math.round(n) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), r = `${this.valueCurrent} av ${t}`, a =
|
|
8925
|
+
const e = this.statusType !== "none", t = this.valueMax - this.valueMin, n = this.valueCurrent / t * 100, s = this.statusType === "fraction" ? Math.round(n) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), r = `${this.valueCurrent} av ${t}`, a = R({
|
|
8926
8926
|
"pkt-progressbar__bar": !0,
|
|
8927
8927
|
[`pkt-progressbar__bar--${this.skin}`]: !!this.skin
|
|
8928
|
-
}), l =
|
|
8928
|
+
}), l = R({
|
|
8929
8929
|
"pkt-progressbar__title": !0,
|
|
8930
8930
|
"pkt-progressbar__title-center": this.titlePosition === "center"
|
|
8931
|
-
}), u =
|
|
8931
|
+
}), u = R({
|
|
8932
8932
|
"pkt-progressbar__status": !0,
|
|
8933
8933
|
"pkt-progressbar__status--center": this.statusPlacement === "center"
|
|
8934
|
-
}), h =
|
|
8934
|
+
}), h = R({
|
|
8935
8935
|
"pkt-progressbar__status-placement--following": this.statusPlacement === "following",
|
|
8936
8936
|
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
8937
8937
|
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
@@ -9041,14 +9041,14 @@ let xt = class extends W {
|
|
|
9041
9041
|
i === "defaultChecked" && (this._checked = this.defaultChecked), i === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(i, e, t);
|
|
9042
9042
|
}
|
|
9043
9043
|
render() {
|
|
9044
|
-
const i =
|
|
9044
|
+
const i = R({
|
|
9045
9045
|
"pkt-input-check__input": !0,
|
|
9046
9046
|
"pkt-input-check__input--tile": this.hasTile,
|
|
9047
9047
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
9048
|
-
}), e =
|
|
9048
|
+
}), e = R({
|
|
9049
9049
|
"pkt-input-check__input-checkbox": !0,
|
|
9050
9050
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
9051
|
-
}), t =
|
|
9051
|
+
}), t = R({
|
|
9052
9052
|
"pkt-input-check__input-label": !0,
|
|
9053
9053
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
9054
9054
|
"pkt-sr-only": this.hideLabel
|
|
@@ -9489,7 +9489,7 @@ let Qi = class extends W {
|
|
|
9489
9489
|
super.updated(i), i.has("value") && (this.counterCurrent = ((e = this.value) == null ? void 0 : e.length) || 0, this.valueChanged(this.value, i.get("value"))), i.has("id") && !this.name && this.id && (this.name = this.id);
|
|
9490
9490
|
}
|
|
9491
9491
|
render() {
|
|
9492
|
-
const i =
|
|
9492
|
+
const i = R({
|
|
9493
9493
|
"pkt-input": !0,
|
|
9494
9494
|
"pkt-input--fullwidth": this.fullwidth,
|
|
9495
9495
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -9802,7 +9802,7 @@ const X = zt({
|
|
|
9802
9802
|
onClick: h,
|
|
9803
9803
|
onToggle: f
|
|
9804
9804
|
}, g) => {
|
|
9805
|
-
const [y, b] =
|
|
9805
|
+
const [y, b] = le(i), { name: m } = Wo(), _ = l || m, T = r !== void 0 ? r : y;
|
|
9806
9806
|
me(() => {
|
|
9807
9807
|
r === void 0 && b(i);
|
|
9808
9808
|
}, [i, r]);
|
|
@@ -9897,7 +9897,7 @@ const oe = /* @__PURE__ */ Ch(Nh), ir = ({
|
|
|
9897
9897
|
className: h,
|
|
9898
9898
|
...f
|
|
9899
9899
|
}) => {
|
|
9900
|
-
const [g, y] =
|
|
9900
|
+
const [g, y] = le(!1), b = {
|
|
9901
9901
|
"pkt-alert": !0,
|
|
9902
9902
|
"pkt-alert--compact": t,
|
|
9903
9903
|
[`pkt-alert--${u}`]: u,
|
|
@@ -10104,11 +10104,11 @@ function Ah(i, e) {
|
|
|
10104
10104
|
const t = to(i, e), n = qt(i, 0);
|
|
10105
10105
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), ls(n);
|
|
10106
10106
|
}
|
|
10107
|
-
function
|
|
10107
|
+
function Ih(i) {
|
|
10108
10108
|
return i instanceof Date || typeof i == "object" && Object.prototype.toString.call(i) === "[object Date]";
|
|
10109
10109
|
}
|
|
10110
|
-
function
|
|
10111
|
-
return !(!
|
|
10110
|
+
function Rh(i) {
|
|
10111
|
+
return !(!Ih(i) && typeof i != "number" || isNaN(+Ct(i)));
|
|
10112
10112
|
}
|
|
10113
10113
|
function Lh(i, e) {
|
|
10114
10114
|
const t = Ct(i, e == null ? void 0 : e.in);
|
|
@@ -11284,11 +11284,11 @@ function Dp(i, e, t) {
|
|
|
11284
11284
|
const n = i[0] === "Y" ? "years" : "days of the month";
|
|
11285
11285
|
return `Use \`${i.toLowerCase()}\` instead of \`${i}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
11286
11286
|
}
|
|
11287
|
-
const Op = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ep = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pp = /^'([^]*?)'?$/, Ap = /''/g,
|
|
11288
|
-
function
|
|
11287
|
+
const Op = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ep = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pp = /^'([^]*?)'?$/, Ap = /''/g, Ip = /[a-zA-Z]/;
|
|
11288
|
+
function Rp(i, e, t) {
|
|
11289
11289
|
var f, g, y, b;
|
|
11290
11290
|
const n = gs(), s = n.locale ?? yp, r = n.firstWeekContainsDate ?? ((g = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, a = n.weekStartsOn ?? ((b = (y = n.locale) == null ? void 0 : y.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = Ct(i, t == null ? void 0 : t.in);
|
|
11291
|
-
if (!
|
|
11291
|
+
if (!Rh(l))
|
|
11292
11292
|
throw new RangeError("Invalid time value");
|
|
11293
11293
|
let u = e.match(Ep).map((m) => {
|
|
11294
11294
|
const _ = m[0];
|
|
@@ -11305,7 +11305,7 @@ function Ip(i, e, t) {
|
|
|
11305
11305
|
return { isToken: !1, value: Lp(m) };
|
|
11306
11306
|
if (ra[_])
|
|
11307
11307
|
return { isToken: !0, value: m };
|
|
11308
|
-
if (_.match(
|
|
11308
|
+
if (_.match(Ip))
|
|
11309
11309
|
throw new RangeError(
|
|
11310
11310
|
"Format string contains an unescaped latin alphabet character `" + _ + "`"
|
|
11311
11311
|
);
|
|
@@ -11509,7 +11509,7 @@ const ut = (i) => {
|
|
|
11509
11509
|
return isNaN(e.getTime()) ? null : e;
|
|
11510
11510
|
}, Up = (i, e) => {
|
|
11511
11511
|
const t = Zt(i);
|
|
11512
|
-
return isNaN(t.getTime()) ? "" :
|
|
11512
|
+
return isNaN(t.getTime()) ? "" : Rp(t, e);
|
|
11513
11513
|
}, Zt = (i = "", e) => {
|
|
11514
11514
|
const t = typeof i == "string" ? jt(i) : i;
|
|
11515
11515
|
return !t || isNaN(t.getTime()) ? /* @__PURE__ */ new Date() : e ? e === "end" ? Lh(t) : Vs(t) : t;
|
|
@@ -11633,9 +11633,9 @@ function ef(i, e, t) {
|
|
|
11633
11633
|
}
|
|
11634
11634
|
return nr(i, e);
|
|
11635
11635
|
}
|
|
11636
|
-
const
|
|
11636
|
+
const In = 7, tf = 6;
|
|
11637
11637
|
function nf(i, e) {
|
|
11638
|
-
const t = qi(i, e, 1), n = qi(i, e + 1, 0), s = (t.getDay() + tf) %
|
|
11638
|
+
const t = qi(i, e, 1), n = qi(i, e + 1, 0), s = (t.getDay() + tf) % In, r = n.getDate(), a = Math.ceil((r + s) / In), u = qi(i, e, 0).getDate(), h = ro(t);
|
|
11639
11639
|
return {
|
|
11640
11640
|
firstDayOfMonth: t,
|
|
11641
11641
|
lastDayOfMonth: n,
|
|
@@ -11657,8 +11657,8 @@ function rf(i, e, t, n) {
|
|
|
11657
11657
|
const af = {
|
|
11658
11658
|
ArrowLeft: -1,
|
|
11659
11659
|
ArrowRight: 1,
|
|
11660
|
-
ArrowUp: -
|
|
11661
|
-
ArrowDown:
|
|
11660
|
+
ArrowUp: -In,
|
|
11661
|
+
ArrowDown: In
|
|
11662
11662
|
};
|
|
11663
11663
|
function of(i) {
|
|
11664
11664
|
var t;
|
|
@@ -11721,7 +11721,7 @@ function df(i) {
|
|
|
11721
11721
|
} = i, S = ya(), O = T ?? S, N = Pe(() => ({ ...uf, ...b }), [b]), H = Pe(
|
|
11722
11722
|
() => y ? jt(y) : Vp(),
|
|
11723
11723
|
[y]
|
|
11724
|
-
), K = Pe(() => l ? l.map((p) => typeof p == "string" ? jt(p) : p) : [], [l]), ee = e !== void 0, [we, U] =
|
|
11724
|
+
), K = Pe(() => l ? l.map((p) => typeof p == "string" ? jt(p) : p) : [], [l]), ee = e !== void 0, [we, U] = le([]), C = ee ? e : we, F = Pe(() => uo(C), [C]), [q, G] = le(0), [te, ne] = le(0), [ue, se] = le({}), [ve, z] = le(null), [Y, Be] = le(null), re = fe(null), ae = fe([]), nt = fe(0), qe = fe(!1), Ne = fe(!1), Ye = Pe(
|
|
11725
11725
|
() => ({ earliest: r, latest: a, excludedates: K, excludeweekdays: u }),
|
|
11726
11726
|
[r, a, K, u]
|
|
11727
11727
|
);
|
|
@@ -11765,7 +11765,7 @@ function df(i) {
|
|
|
11765
11765
|
}, [q, te, De]), Ge = A(() => {
|
|
11766
11766
|
const p = te === 11 ? 0 : te + 1, d = te === 11 ? q + 1 : q;
|
|
11767
11767
|
De(d, p);
|
|
11768
|
-
}, [q, te, De]), st = A((p) => co(p, Ye), [Ye]),
|
|
11768
|
+
}, [q, te, De]), st = A((p) => co(p, Ye), [Ye]), ce = A(
|
|
11769
11769
|
(p, d) => Qp(p, d, Ye, {
|
|
11770
11770
|
multiple: t,
|
|
11771
11771
|
maxMultiple: n,
|
|
@@ -11828,8 +11828,8 @@ function df(i) {
|
|
|
11828
11828
|
ee || U(d);
|
|
11829
11829
|
},
|
|
11830
11830
|
[ke, n, ee]
|
|
11831
|
-
),
|
|
11832
|
-
var w,
|
|
11831
|
+
), de = A(() => {
|
|
11832
|
+
var w, I;
|
|
11833
11833
|
const p = ut(gn(H)), d = (w = re.current) == null ? void 0 : w.querySelector(`button[data-date="${p}"]`);
|
|
11834
11834
|
if (d instanceof HTMLButtonElement) {
|
|
11835
11835
|
Be(p), d.focus();
|
|
@@ -11837,7 +11837,7 @@ function df(i) {
|
|
|
11837
11837
|
}
|
|
11838
11838
|
const k = ae.current.find((V) => !V.isDisabled);
|
|
11839
11839
|
if (k) {
|
|
11840
|
-
const V = (
|
|
11840
|
+
const V = (I = re.current) == null ? void 0 : I.querySelector(
|
|
11841
11841
|
`button[data-date="${k.currentDateISO}"]`
|
|
11842
11842
|
);
|
|
11843
11843
|
V instanceof HTMLButtonElement && (Be(k.currentDateISO), V.focus());
|
|
@@ -11847,16 +11847,16 @@ function df(i) {
|
|
|
11847
11847
|
const k = p.target;
|
|
11848
11848
|
if (of(k)) return;
|
|
11849
11849
|
if (p.preventDefault(), !Y) {
|
|
11850
|
-
|
|
11850
|
+
de();
|
|
11851
11851
|
return;
|
|
11852
11852
|
}
|
|
11853
|
-
const w = Zt(Y),
|
|
11854
|
-
if (
|
|
11855
|
-
const V = re.current.querySelector(`button[data-date="${ut(
|
|
11856
|
-
V instanceof HTMLButtonElement && !V.dataset.disabled && (Be(ut(
|
|
11853
|
+
const w = Zt(Y), I = lf(w, d, re.current.querySelector.bind(re.current));
|
|
11854
|
+
if (I) {
|
|
11855
|
+
const V = re.current.querySelector(`button[data-date="${ut(I)}"]`);
|
|
11856
|
+
V instanceof HTMLButtonElement && !V.dataset.disabled && (Be(ut(I)), V.focus());
|
|
11857
11857
|
}
|
|
11858
11858
|
},
|
|
11859
|
-
[Y,
|
|
11859
|
+
[Y, de]
|
|
11860
11860
|
), We = A(
|
|
11861
11861
|
(p) => {
|
|
11862
11862
|
if (p.key === "Escape") {
|
|
@@ -11881,7 +11881,7 @@ function df(i) {
|
|
|
11881
11881
|
month: te,
|
|
11882
11882
|
activeSelected: C,
|
|
11883
11883
|
_selected: F,
|
|
11884
|
-
inRange:
|
|
11884
|
+
inRange: ue,
|
|
11885
11885
|
rangeHovered: ve,
|
|
11886
11886
|
focusedDate: Y,
|
|
11887
11887
|
range: s,
|
|
@@ -11906,8 +11906,8 @@ function df(i) {
|
|
|
11906
11906
|
toggleSelectedDate: Ee,
|
|
11907
11907
|
handleRangeHover: je,
|
|
11908
11908
|
isExcluded: st,
|
|
11909
|
-
isDayDisabled:
|
|
11910
|
-
focusOnCurrentDate:
|
|
11909
|
+
isDayDisabled: ce,
|
|
11910
|
+
focusOnCurrentDate: de,
|
|
11911
11911
|
handleKeydown: We,
|
|
11912
11912
|
handleFocusOut: ct,
|
|
11913
11913
|
close: xe,
|
|
@@ -12075,7 +12075,7 @@ const gf = ({ state: i }) => {
|
|
|
12075
12075
|
);
|
|
12076
12076
|
return /* @__PURE__ */ c("tr", { className: "pkt-cal-week-row", children: U });
|
|
12077
12077
|
}, K = (U, C) => {
|
|
12078
|
-
const F = pf(U, C, O), { currentDate: q, currentDateISO: G, isSelected: te, isDisabled: ne, ariaLabel:
|
|
12078
|
+
const F = pf(U, C, O), { currentDate: q, currentDateISO: G, isSelected: te, isDisabled: ne, ariaLabel: ue, tabindex: se } = F;
|
|
12079
12079
|
g.current.push({ currentDateISO: G, isDisabled: ne, tabindex: se });
|
|
12080
12080
|
const ve = ff(F, N), z = mf(F, N);
|
|
12081
12081
|
return /* @__PURE__ */ c("td", { className: ve, children: /* @__PURE__ */ c(
|
|
@@ -12089,7 +12089,7 @@ const gf = ({ state: i }) => {
|
|
|
12089
12089
|
onFocus: () => {
|
|
12090
12090
|
u && !_(q) && m(q), M(G);
|
|
12091
12091
|
},
|
|
12092
|
-
"aria-label":
|
|
12092
|
+
"aria-label": ue,
|
|
12093
12093
|
tabIndex: parseInt(se),
|
|
12094
12094
|
"data-disabled": ne ? "disabled" : void 0,
|
|
12095
12095
|
"data-date": G,
|
|
@@ -12112,13 +12112,13 @@ const gf = ({ state: i }) => {
|
|
|
12112
12112
|
f && ne.push(
|
|
12113
12113
|
/* @__PURE__ */ c("td", { className: "pkt-cal-week", children: q }, `week-${q}`)
|
|
12114
12114
|
), q++;
|
|
12115
|
-
for (let
|
|
12116
|
-
const se = sf(te,
|
|
12115
|
+
for (let ue = 0; ue < In; ue++) {
|
|
12116
|
+
const se = sf(te, ue, F, C);
|
|
12117
12117
|
if (se === "current-month")
|
|
12118
12118
|
ne.push(K(F, U)), F++;
|
|
12119
12119
|
else {
|
|
12120
|
-
const ve = rf(se,
|
|
12121
|
-
ne.push(ee(ve, `${se}-${te}-${
|
|
12120
|
+
const ve = rf(se, ue, F, C);
|
|
12121
|
+
ne.push(ee(ve, `${se}-${te}-${ue}`)), se === "next-month" && F++;
|
|
12122
12122
|
}
|
|
12123
12123
|
}
|
|
12124
12124
|
G.push(
|
|
@@ -12319,7 +12319,7 @@ const rn = pe(
|
|
|
12319
12319
|
role: K = "group",
|
|
12320
12320
|
counterPosition: ee = "bottom"
|
|
12321
12321
|
}, we) => {
|
|
12322
|
-
const [U, C] =
|
|
12322
|
+
const [U, C] = le(!1), F = M || (t ? `${i}-helptext` : void 0), q = !!r, G = q && ee === "top", te = q && ee === "bottom", ne = () => C((ae) => !ae), ue = [
|
|
12323
12323
|
"pkt-inputwrapper",
|
|
12324
12324
|
N,
|
|
12325
12325
|
b ? "pkt-inputwrapper--error" : "",
|
|
@@ -12377,7 +12377,7 @@ const rn = pe(
|
|
|
12377
12377
|
te && /* @__PURE__ */ c(ve, {}),
|
|
12378
12378
|
b && m && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ c(ir, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: m }) })
|
|
12379
12379
|
] });
|
|
12380
|
-
return /* @__PURE__ */ c("div", { className:
|
|
12380
|
+
return /* @__PURE__ */ c("div", { className: ue, ref: we, role: K, children: H ? /* @__PURE__ */ c("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": F, children: re }) : /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__fieldset", children: re }) });
|
|
12381
12381
|
}
|
|
12382
12382
|
);
|
|
12383
12383
|
rn.displayName = "PktInputWrapper";
|
|
@@ -12477,9 +12477,9 @@ const fo = () => {
|
|
|
12477
12477
|
"aria-description": f,
|
|
12478
12478
|
...g
|
|
12479
12479
|
}, y) => {
|
|
12480
|
-
const [b, m] =
|
|
12480
|
+
const [b, m] = le(!1), _ = A(() => {
|
|
12481
12481
|
m(!0), u && u();
|
|
12482
|
-
}, [u]), T = fe(null), [M, S] =
|
|
12482
|
+
}, [u]), T = fe(null), [M, S] = le("");
|
|
12483
12483
|
me(() => {
|
|
12484
12484
|
var K, ee;
|
|
12485
12485
|
S(((ee = (K = T.current) == null ? void 0 : K.textContent) == null ? void 0 : ee.trim()) ?? "");
|
|
@@ -12581,7 +12581,7 @@ const Df = ({
|
|
|
12581
12581
|
toggleCalendar: G,
|
|
12582
12582
|
handleFocus: te,
|
|
12583
12583
|
handleSingleInputChange: ne,
|
|
12584
|
-
handleRangeFromChange:
|
|
12584
|
+
handleRangeFromChange: ue,
|
|
12585
12585
|
handleRangeToChange: se,
|
|
12586
12586
|
handleRangeBlur: ve,
|
|
12587
12587
|
handleMultipleBlur: z,
|
|
@@ -12661,7 +12661,7 @@ const Df = ({
|
|
|
12661
12661
|
onKeyDown: re,
|
|
12662
12662
|
onFocus: te,
|
|
12663
12663
|
onBlur: ve,
|
|
12664
|
-
onChange:
|
|
12664
|
+
onChange: ue
|
|
12665
12665
|
}
|
|
12666
12666
|
),
|
|
12667
12667
|
/* @__PURE__ */ c("div", { className: ee, id: `${e}-to-label`, children: ((xe = N.generic) == null ? void 0 : xe.to) ?? "Til" }),
|
|
@@ -12756,7 +12756,7 @@ function Af(i, e) {
|
|
|
12756
12756
|
requiredTag: G = !1,
|
|
12757
12757
|
requiredText: te,
|
|
12758
12758
|
tagText: ne,
|
|
12759
|
-
useWrapper:
|
|
12759
|
+
useWrapper: ue = !0,
|
|
12760
12760
|
strings: se,
|
|
12761
12761
|
disabled: ve = !1,
|
|
12762
12762
|
readOnly: z = !1,
|
|
@@ -12769,15 +12769,15 @@ function Af(i, e) {
|
|
|
12769
12769
|
onValueChange: Ne,
|
|
12770
12770
|
className: Ye,
|
|
12771
12771
|
...lt
|
|
12772
|
-
} = i, xe = A((D) => D === void 0 ? [] : fa(D), []), De = s !== void 0, Ke = typeof r == "number" ? void 0 : r, [Ge, st] =
|
|
12772
|
+
} = i, xe = A((D) => D === void 0 ? [] : fa(D), []), De = s !== void 0, Ke = typeof r == "number" ? void 0 : r, [Ge, st] = le(() => xe(s ?? Ke)), ce = De ? xe(s) : Ge;
|
|
12773
12773
|
me(() => {
|
|
12774
12774
|
De && st(xe(s));
|
|
12775
12775
|
}, [s, De, xe]);
|
|
12776
|
-
const [ke, je] =
|
|
12776
|
+
const [ke, je] = le(M ?? !1);
|
|
12777
12777
|
me(() => {
|
|
12778
12778
|
M !== void 0 && je(M);
|
|
12779
12779
|
}, [M]);
|
|
12780
|
-
const Oe = fe(null), Se = fe(null), j = fe(null), Ee = fe(null),
|
|
12780
|
+
const Oe = fe(null), Se = fe(null), j = fe(null), Ee = fe(null), de = fe(null), _e = Pe(() => $f(), []), We = Pe(() => fo(), []), ct = Pe(
|
|
12781
12781
|
() => se ?? (h ? Pf : Ef),
|
|
12782
12782
|
[se, h]
|
|
12783
12783
|
), p = typeof re == "string" ? re : re !== void 0 ? String(re) : void 0, d = typeof ae == "string" ? ae : ae !== void 0 ? String(ae) : void 0, k = Pe(() => {
|
|
@@ -12786,7 +12786,7 @@ function Af(i, e) {
|
|
|
12786
12786
|
}, [O, f, l, h, z, _e]), w = Pe(() => {
|
|
12787
12787
|
const D = Sf();
|
|
12788
12788
|
return Object.entries(D).filter(([, E]) => E).map(([E]) => E).join(" ");
|
|
12789
|
-
}, []),
|
|
12789
|
+
}, []), I = Pe(() => {
|
|
12790
12790
|
const D = Cf(f);
|
|
12791
12791
|
return Object.entries(D).filter(([, E]) => E).map(([E]) => E).join(" ");
|
|
12792
12792
|
}, [f]), V = Pe(
|
|
@@ -12795,7 +12795,7 @@ function Af(i, e) {
|
|
|
12795
12795
|
), Z = Pe(() => {
|
|
12796
12796
|
if (_) return _;
|
|
12797
12797
|
if (d) return d.slice(0, 7);
|
|
12798
|
-
}, [_, d]), yt = ve || l && u != null &&
|
|
12798
|
+
}, [_, d]), yt = ve || l && u != null && ce.length >= u, Xe = l && u != null, bt = `${t}-input`, si = ce.join(",");
|
|
12799
12799
|
me(() => {
|
|
12800
12800
|
j.current && (j.current.value = si);
|
|
12801
12801
|
}, [si]), me(() => {
|
|
@@ -12828,7 +12828,7 @@ function Af(i, e) {
|
|
|
12828
12828
|
const D = (at) => {
|
|
12829
12829
|
var qn;
|
|
12830
12830
|
const Qe = at.target;
|
|
12831
|
-
|
|
12831
|
+
de.current && !de.current.contains(Qe) && !((qn = Qe.closest) != null && qn.call(Qe, ".pkt-calendar-popup")) && ri();
|
|
12832
12832
|
}, E = (at) => {
|
|
12833
12833
|
var Qe;
|
|
12834
12834
|
at.key === "Escape" && (ri(), (Qe = Oe.current) == null || Qe.focus());
|
|
@@ -12857,27 +12857,27 @@ function Af(i, e) {
|
|
|
12857
12857
|
[rt, _t]
|
|
12858
12858
|
), No = A(
|
|
12859
12859
|
(D) => {
|
|
12860
|
-
const E = D.target.value, at =
|
|
12860
|
+
const E = D.target.value, at = ce[1] ?? "", Qe = [E, at].filter(Boolean);
|
|
12861
12861
|
rt(Qe), _t(Qe);
|
|
12862
12862
|
},
|
|
12863
|
-
[
|
|
12863
|
+
[ce, rt, _t]
|
|
12864
12864
|
), Mo = A(
|
|
12865
12865
|
(D) => {
|
|
12866
|
-
const E =
|
|
12866
|
+
const E = ce[0] ?? "", at = D.target.value, Qe = [E, at].filter(Boolean);
|
|
12867
12867
|
rt(Qe), _t(Qe);
|
|
12868
12868
|
},
|
|
12869
|
-
[
|
|
12869
|
+
[ce, rt, _t]
|
|
12870
12870
|
), Do = A(() => {
|
|
12871
|
-
|
|
12872
|
-
}, [
|
|
12871
|
+
ce.length === 2 && !wf(ce) && (rt([ce[0]]), _t([ce[0]]));
|
|
12872
|
+
}, [ce, rt, _t]), Un = A(
|
|
12873
12873
|
(D) => {
|
|
12874
12874
|
const E = Zt(D), at = p ? Zt(p) : null, Qe = d ? Zt(d) : null;
|
|
12875
12875
|
if (E && !isNaN(E.getTime()) && (!at || E >= at) && (!Qe || E <= Qe)) {
|
|
12876
|
-
const qn = Kp([...
|
|
12876
|
+
const qn = Kp([...ce, D], p, d, b, m), hr = [...new Set(qn)];
|
|
12877
12877
|
rt(hr), _t(hr);
|
|
12878
12878
|
}
|
|
12879
12879
|
},
|
|
12880
|
-
[
|
|
12880
|
+
[ce, p, d, b, m, rt, _t]
|
|
12881
12881
|
), Oo = A(
|
|
12882
12882
|
(D) => {
|
|
12883
12883
|
const E = D.target;
|
|
@@ -12892,10 +12892,10 @@ function Af(i, e) {
|
|
|
12892
12892
|
[Un]
|
|
12893
12893
|
), Eo = A(
|
|
12894
12894
|
(D) => {
|
|
12895
|
-
const E =
|
|
12895
|
+
const E = ce.filter((at) => at !== D);
|
|
12896
12896
|
rt(E), _t(E);
|
|
12897
12897
|
},
|
|
12898
|
-
[
|
|
12898
|
+
[ce, rt, _t]
|
|
12899
12899
|
), ai = A((D) => {
|
|
12900
12900
|
const E = D == null ? void 0 : D.closest("form");
|
|
12901
12901
|
E ? E.requestSubmit() : D == null || D.blur();
|
|
@@ -12930,7 +12930,7 @@ function Af(i, e) {
|
|
|
12930
12930
|
);
|
|
12931
12931
|
},
|
|
12932
12932
|
[Qt, ai]
|
|
12933
|
-
),
|
|
12933
|
+
), Io = A(
|
|
12934
12934
|
(D) => {
|
|
12935
12935
|
Gn(
|
|
12936
12936
|
D.nativeEvent,
|
|
@@ -12944,7 +12944,7 @@ function Af(i, e) {
|
|
|
12944
12944
|
);
|
|
12945
12945
|
},
|
|
12946
12946
|
[Qt, ai]
|
|
12947
|
-
),
|
|
12947
|
+
), Ro = A(
|
|
12948
12948
|
(D) => {
|
|
12949
12949
|
Gn(
|
|
12950
12950
|
D.nativeEvent,
|
|
@@ -12985,7 +12985,7 @@ function Af(i, e) {
|
|
|
12985
12985
|
id: t,
|
|
12986
12986
|
inputId: bt,
|
|
12987
12987
|
label: n,
|
|
12988
|
-
values:
|
|
12988
|
+
values: ce,
|
|
12989
12989
|
calendarOpen: ke,
|
|
12990
12990
|
dateformat: a,
|
|
12991
12991
|
multiple: l,
|
|
@@ -13014,7 +13014,7 @@ function Af(i, e) {
|
|
|
13014
13014
|
requiredTag: G,
|
|
13015
13015
|
requiredText: te,
|
|
13016
13016
|
tagText: ne,
|
|
13017
|
-
useWrapper:
|
|
13017
|
+
useWrapper: ue,
|
|
13018
13018
|
className: Ye,
|
|
13019
13019
|
minStr: p,
|
|
13020
13020
|
maxStr: d,
|
|
@@ -13025,7 +13025,7 @@ function Af(i, e) {
|
|
|
13025
13025
|
strings: ct,
|
|
13026
13026
|
inputClasses: k,
|
|
13027
13027
|
buttonClasses: w,
|
|
13028
|
-
rangeLabelClasses:
|
|
13028
|
+
rangeLabelClasses: I,
|
|
13029
13029
|
datepickerInputsClasses: V,
|
|
13030
13030
|
isInputDisabled: yt,
|
|
13031
13031
|
hasCounter: Xe,
|
|
@@ -13033,7 +13033,7 @@ function Af(i, e) {
|
|
|
13033
13033
|
inputRefTo: Se,
|
|
13034
13034
|
changeInputRef: j,
|
|
13035
13035
|
btnRef: Ee,
|
|
13036
|
-
wrapperRef:
|
|
13036
|
+
wrapperRef: de,
|
|
13037
13037
|
onChange: qe,
|
|
13038
13038
|
toggleCalendar: Qt,
|
|
13039
13039
|
hideCalendar: ri,
|
|
@@ -13048,12 +13048,12 @@ function Af(i, e) {
|
|
|
13048
13048
|
handleTagRemoved: Eo,
|
|
13049
13049
|
handleSingleKeydown: Po,
|
|
13050
13050
|
handleRangeFromKeydown: Ao,
|
|
13051
|
-
handleRangeToKeydown:
|
|
13052
|
-
handleMultipleKeydown:
|
|
13051
|
+
handleRangeToKeydown: Io,
|
|
13052
|
+
handleMultipleKeydown: Ro,
|
|
13053
13053
|
restProps: lt
|
|
13054
13054
|
};
|
|
13055
13055
|
}
|
|
13056
|
-
const
|
|
13056
|
+
const If = pe((i, e) => {
|
|
13057
13057
|
const t = Af(i, e), n = ["pkt-datepicker", t.className].filter(Boolean).join(" ");
|
|
13058
13058
|
return /* @__PURE__ */ x("div", { className: n, children: [
|
|
13059
13059
|
/* @__PURE__ */ c(
|
|
@@ -13118,8 +13118,8 @@ const Rf = pe((i, e) => {
|
|
|
13118
13118
|
)
|
|
13119
13119
|
] });
|
|
13120
13120
|
});
|
|
13121
|
-
|
|
13122
|
-
const
|
|
13121
|
+
If.displayName = "PktDatepicker";
|
|
13122
|
+
const Rf = {
|
|
13123
13123
|
dropFilesHere: "Slipp filene her ...",
|
|
13124
13124
|
selectOrDragFiles: "Dra filer hit for å laste dem opp eller ",
|
|
13125
13125
|
chooseFiles: "velg filer"
|
|
@@ -13169,7 +13169,7 @@ const or = cs({}), Vf = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Uf
|
|
|
13169
13169
|
[b]
|
|
13170
13170
|
);
|
|
13171
13171
|
zs(g, () => y.current);
|
|
13172
|
-
const [_, T] =
|
|
13172
|
+
const [_, T] = le(!1), M = Pe(() => l ? e ? Bf : Ff : e ? Rf : Lf, [e, l]), S = A(
|
|
13173
13173
|
(C) => {
|
|
13174
13174
|
if (y.current)
|
|
13175
13175
|
try {
|
|
@@ -13306,8 +13306,8 @@ const or = cs({}), Vf = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Uf
|
|
|
13306
13306
|
readOnly: G,
|
|
13307
13307
|
skipForwardTestid: te = !1,
|
|
13308
13308
|
...ne
|
|
13309
|
-
},
|
|
13310
|
-
const se = [r, "pkt-textinput", "pkt-textarea"].join(" "), ve = `${i}-input`, z = `${ve}-label`, Y = t || z, [Be, re] =
|
|
13309
|
+
}, ue) => {
|
|
13310
|
+
const se = [r, "pkt-textinput", "pkt-textarea"].join(" "), ve = `${i}-input`, z = `${ve}-label`, Y = t || z, [Be, re] = le(0), ae = (nt) => {
|
|
13311
13311
|
var qe, Ne;
|
|
13312
13312
|
n && re(((Ne = (qe = nt.currentTarget) == null ? void 0 : qe.value) == null ? void 0 : Ne.length) || 0), we && we(nt);
|
|
13313
13313
|
};
|
|
@@ -13339,7 +13339,7 @@ const or = cs({}), Vf = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Uf
|
|
|
13339
13339
|
children: /* @__PURE__ */ c(
|
|
13340
13340
|
"textarea",
|
|
13341
13341
|
{
|
|
13342
|
-
ref:
|
|
13342
|
+
ref: ue,
|
|
13343
13343
|
className: `pkt-input ${b ? "pkt-input--fullwidth" : ""} ${s && Be > s ? "pkt-input--counter-error" : ""}`,
|
|
13344
13344
|
name: `${_ || i}`,
|
|
13345
13345
|
id: ve,
|
|
@@ -13437,7 +13437,7 @@ const Wf = Symbol("comment"), zf = (i) => {
|
|
|
13437
13437
|
)
|
|
13438
13438
|
] })
|
|
13439
13439
|
] }, s)) }) : null, Gf = (i) => {
|
|
13440
|
-
const e =
|
|
13440
|
+
const e = Rn(or);
|
|
13441
13441
|
return /* @__PURE__ */ c(
|
|
13442
13442
|
"input",
|
|
13443
13443
|
{
|
|
@@ -13516,7 +13516,7 @@ const Wf = Symbol("comment"), zf = (i) => {
|
|
|
13516
13516
|
/* @__PURE__ */ c(ft, { skin: "tertiary", size: "small", onClick: i.onCancel, children: "Avbryt" })
|
|
13517
13517
|
] });
|
|
13518
13518
|
}, tm = (i) => {
|
|
13519
|
-
const e =
|
|
13519
|
+
const e = Rn(or);
|
|
13520
13520
|
return /* @__PURE__ */ c("input", { type: "hidden", name: `${e.name}-targetFilename`, value: i.targetFilename });
|
|
13521
13521
|
}, im = (i) => {
|
|
13522
13522
|
const e = i("targetFilename");
|
|
@@ -13566,7 +13566,7 @@ const Wf = Symbol("comment"), zf = (i) => {
|
|
|
13566
13566
|
[n, t]
|
|
13567
13567
|
) };
|
|
13568
13568
|
}, sm = (i) => {
|
|
13569
|
-
const [e, t] =
|
|
13569
|
+
const [e, t] = le(!1), [n, s] = le(0), r = fe(null), a = A(
|
|
13570
13570
|
(h) => {
|
|
13571
13571
|
var g;
|
|
13572
13572
|
const f = i.findIndex((y) => y.fileId === h);
|
|
@@ -13584,7 +13584,7 @@ const Wf = Symbol("comment"), zf = (i) => {
|
|
|
13584
13584
|
);
|
|
13585
13585
|
return { isOpen: e, currentIndex: n, modalRef: r, open: a, close: l, navigate: u };
|
|
13586
13586
|
}, rm = (i) => {
|
|
13587
|
-
const [e, t] =
|
|
13587
|
+
const [e, t] = le({}), n = A(
|
|
13588
13588
|
(a) => {
|
|
13589
13589
|
const l = e[a];
|
|
13590
13590
|
if (l)
|
|
@@ -13619,7 +13619,7 @@ const ga = 2, om = (i) => {
|
|
|
13619
13619
|
const n = e * t;
|
|
13620
13620
|
return i.getBoundingClientRect().height > n + 0.5;
|
|
13621
13621
|
}, vo = cs({ tail: 5 }), Vn = ({ children: i, tail: e, ...t }) => {
|
|
13622
|
-
const n = i, s =
|
|
13622
|
+
const n = i, s = Rn(vo), r = e !== void 0 ? e : s.tail || 0, a = i.length <= r + 3 ? null : i.slice(-r), l = fe(null), u = fe(null), [h, f] = le(!1), g = A(() => {
|
|
13623
13623
|
const b = l.current, m = u.current;
|
|
13624
13624
|
if (!b || !m) return;
|
|
13625
13625
|
const _ = om(b);
|
|
@@ -13726,7 +13726,7 @@ const ga = 2, om = (i) => {
|
|
|
13726
13726
|
children: i.label || "Avbryt"
|
|
13727
13727
|
}
|
|
13728
13728
|
), um = () => {
|
|
13729
|
-
const [i, e] =
|
|
13729
|
+
const [i, e] = le(1);
|
|
13730
13730
|
return me(() => {
|
|
13731
13731
|
const t = setInterval(() => {
|
|
13732
13732
|
e((n) => n >= 3 ? 1 : n + 1);
|
|
@@ -13846,74 +13846,88 @@ const ga = 2, om = (i) => {
|
|
|
13846
13846
|
transferItem: i,
|
|
13847
13847
|
onPreviewClick: e
|
|
13848
13848
|
}) => {
|
|
13849
|
-
const [t, n] =
|
|
13849
|
+
const [t, n] = le(null), [s, r] = le(!1), a = i.file;
|
|
13850
13850
|
me(() => {
|
|
13851
|
-
if (
|
|
13852
|
-
const
|
|
13853
|
-
return n(
|
|
13854
|
-
URL.revokeObjectURL(
|
|
13851
|
+
if (r(!1), a.type.startsWith("image/")) {
|
|
13852
|
+
const f = URL.createObjectURL(a);
|
|
13853
|
+
return n(f), () => {
|
|
13854
|
+
URL.revokeObjectURL(f);
|
|
13855
13855
|
};
|
|
13856
13856
|
}
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
13874
|
-
|
|
13875
|
-
|
|
13876
|
-
|
|
13877
|
-
|
|
13878
|
-
|
|
13879
|
-
|
|
13880
|
-
|
|
13881
|
-
|
|
13882
|
-
|
|
13857
|
+
n(null);
|
|
13858
|
+
}, [a]);
|
|
13859
|
+
const l = t && !s && /* @__PURE__ */ c(
|
|
13860
|
+
"img",
|
|
13861
|
+
{
|
|
13862
|
+
src: t,
|
|
13863
|
+
alt: i.attributes.targetFilename,
|
|
13864
|
+
onError: () => r(!0)
|
|
13865
|
+
}
|
|
13866
|
+
) || /* @__PURE__ */ c(X, { name: "document-text", className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium" }), u = !!e;
|
|
13867
|
+
return /* @__PURE__ */ x(
|
|
13868
|
+
"div",
|
|
13869
|
+
{
|
|
13870
|
+
className: `pkt-fileupload__queue-display__item__thumbnail${!!t && !s ? "" : " pkt-fileupload__queue-display__item__thumbnail--fallback"}`,
|
|
13871
|
+
children: [
|
|
13872
|
+
/* @__PURE__ */ x(
|
|
13873
|
+
ft,
|
|
13874
|
+
{
|
|
13875
|
+
className: "pkt-fileupload__queue-display__item__thumbnail__image-wrapper",
|
|
13876
|
+
"aria-label": `Forhåndsvis bilde ${i.attributes.targetFilename}`,
|
|
13877
|
+
type: "button",
|
|
13878
|
+
skin: "secondary",
|
|
13879
|
+
onClick: e,
|
|
13880
|
+
children: [
|
|
13881
|
+
u && /* @__PURE__ */ c(
|
|
13882
|
+
X,
|
|
13883
|
+
{
|
|
13884
|
+
name: "expand",
|
|
13885
|
+
className: "pkt-fileupload__queue-display__item__thumbnail__expand-icon",
|
|
13886
|
+
"aria-hidden": "true"
|
|
13887
|
+
}
|
|
13888
|
+
),
|
|
13889
|
+
l
|
|
13890
|
+
]
|
|
13891
|
+
}
|
|
13892
|
+
),
|
|
13893
|
+
/* @__PURE__ */ c(Vn, { className: "pkt-fileupload__queue-display__item__thumbnail__title", children: i.attributes.targetFilename })
|
|
13894
|
+
]
|
|
13895
|
+
}
|
|
13896
|
+
);
|
|
13883
13897
|
}, bo = pe(
|
|
13884
13898
|
({ isOpen: i, images: e, currentIndex: t, onClose: n, onNavigate: s }, r) => {
|
|
13885
|
-
const [a, l] =
|
|
13899
|
+
const [a, l] = le(null), [u, h] = le(!1), f = e[t], g = e.length > 1;
|
|
13886
13900
|
return me(() => {
|
|
13887
|
-
if (
|
|
13888
|
-
const
|
|
13889
|
-
return l(
|
|
13901
|
+
if (h(!1), f && f.file.type.startsWith("image/")) {
|
|
13902
|
+
const y = URL.createObjectURL(f.file);
|
|
13903
|
+
return l(y), () => URL.revokeObjectURL(y);
|
|
13890
13904
|
}
|
|
13891
13905
|
l(null);
|
|
13892
|
-
}, [
|
|
13906
|
+
}, [f]), me(() => {
|
|
13893
13907
|
if (!i) return;
|
|
13894
|
-
const
|
|
13895
|
-
switch (
|
|
13908
|
+
const y = (b) => {
|
|
13909
|
+
switch (b.key) {
|
|
13896
13910
|
case "ArrowLeft":
|
|
13897
|
-
|
|
13911
|
+
b.preventDefault(), s("prev");
|
|
13898
13912
|
break;
|
|
13899
13913
|
case "ArrowRight":
|
|
13900
|
-
|
|
13914
|
+
b.preventDefault(), s("next");
|
|
13901
13915
|
break;
|
|
13902
13916
|
case "Escape":
|
|
13903
|
-
|
|
13917
|
+
b.preventDefault(), n();
|
|
13904
13918
|
break;
|
|
13905
13919
|
}
|
|
13906
13920
|
};
|
|
13907
|
-
return window.addEventListener("keydown",
|
|
13908
|
-
}, [i, s, n]),
|
|
13921
|
+
return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
|
|
13922
|
+
}, [i, s, n]), f ? /* @__PURE__ */ c(
|
|
13909
13923
|
go,
|
|
13910
13924
|
{
|
|
13911
13925
|
ref: r,
|
|
13912
|
-
headingText:
|
|
13926
|
+
headingText: f.attributes.targetFilename,
|
|
13913
13927
|
closeOnBackdropClick: !0,
|
|
13914
13928
|
className: "pkt-fileupload__image-preview-modal",
|
|
13915
13929
|
children: /* @__PURE__ */ x("div", { className: "pkt-fileupload__image-preview", children: [
|
|
13916
|
-
|
|
13930
|
+
g && /* @__PURE__ */ c(
|
|
13917
13931
|
ft,
|
|
13918
13932
|
{
|
|
13919
13933
|
variant: "icon-only",
|
|
@@ -13925,20 +13939,21 @@ const ga = 2, om = (i) => {
|
|
|
13925
13939
|
"aria-label": `Forrige bilde ${t} / ${e.length}`
|
|
13926
13940
|
}
|
|
13927
13941
|
),
|
|
13928
|
-
/* @__PURE__ */ c("div", { className: "pkt-fileupload__image-preview__content", children: a && /* @__PURE__ */ c(
|
|
13942
|
+
/* @__PURE__ */ c("div", { className: "pkt-fileupload__image-preview__content", children: a && !u ? /* @__PURE__ */ c(
|
|
13929
13943
|
"img",
|
|
13930
13944
|
{
|
|
13931
13945
|
src: a,
|
|
13932
|
-
alt: `${
|
|
13933
|
-
className: "pkt-fileupload__image-preview__image"
|
|
13946
|
+
alt: `${f.attributes.targetFilename} - ${t + 1} av ${e.length}`,
|
|
13947
|
+
className: "pkt-fileupload__image-preview__image",
|
|
13948
|
+
onError: () => h(!0)
|
|
13934
13949
|
}
|
|
13935
|
-
) }),
|
|
13936
|
-
|
|
13950
|
+
) : /* @__PURE__ */ c(X, { name: "picture", className: "pkt-fileupload__queue-display__item__icon pkt-icon--medium" }) }),
|
|
13951
|
+
g && /* @__PURE__ */ x("span", { className: "pkt-fileupload__image-preview__counter", children: [
|
|
13937
13952
|
t + 1,
|
|
13938
13953
|
" / ",
|
|
13939
13954
|
e.length
|
|
13940
13955
|
] }),
|
|
13941
|
-
|
|
13956
|
+
g && /* @__PURE__ */ c(
|
|
13942
13957
|
ft,
|
|
13943
13958
|
{
|
|
13944
13959
|
variant: "icon-only",
|
|
@@ -14154,11 +14169,11 @@ const vm = (i) => {
|
|
|
14154
14169
|
enableImagePreview: U = !1,
|
|
14155
14170
|
...C
|
|
14156
14171
|
}, F) => {
|
|
14157
|
-
const q = "transfers" in C ? C.transfers : void 0, [G, te] =
|
|
14172
|
+
const q = "transfers" in C ? C.transfers : void 0, [G, te] = le(null), ne = O || !!G, ue = S || G, se = _ ? cm(_) : void 0, ve = A(
|
|
14158
14173
|
(j) => {
|
|
14159
14174
|
var Ee;
|
|
14160
14175
|
if (b && b.length > 0) {
|
|
14161
|
-
const
|
|
14176
|
+
const de = ((Ee = j.name.split(".").pop()) == null ? void 0 : Ee.toLowerCase()) || "", _e = j.type.toLowerCase();
|
|
14162
14177
|
if (!b.some((ct) => {
|
|
14163
14178
|
const p = ct.toLowerCase().replace(/^\./, "");
|
|
14164
14179
|
if (p.includes("/")) {
|
|
@@ -14168,15 +14183,15 @@ const vm = (i) => {
|
|
|
14168
14183
|
}
|
|
14169
14184
|
return _e === p;
|
|
14170
14185
|
}
|
|
14171
|
-
return
|
|
14186
|
+
return de === p;
|
|
14172
14187
|
})) {
|
|
14173
14188
|
const ct = b.join(", "), p = `Ugyldig filtype. Tillatte formater: ${ct}`;
|
|
14174
14189
|
return (m == null ? void 0 : m.replace("{formats}", ct)) || p;
|
|
14175
14190
|
}
|
|
14176
14191
|
}
|
|
14177
14192
|
if (se && j.size > se) {
|
|
14178
|
-
const
|
|
14179
|
-
return (T == null ? void 0 : T.replace("{maxSize}",
|
|
14193
|
+
const de = vs(se), _e = `Filen er for stor. Maks størrelse er ${de}.`;
|
|
14194
|
+
return (T == null ? void 0 : T.replace("{maxSize}", de)) || _e;
|
|
14180
14195
|
}
|
|
14181
14196
|
return M ? M(j) : null;
|
|
14182
14197
|
},
|
|
@@ -14195,8 +14210,8 @@ const vm = (i) => {
|
|
|
14195
14210
|
}).join(", ");
|
|
14196
14211
|
}, [b]), qe = ae || nt, Ne = a && !re, Ye = r && !re, lt = A(
|
|
14197
14212
|
(j) => {
|
|
14198
|
-
for (const
|
|
14199
|
-
const _e = ve(
|
|
14213
|
+
for (const de of j) {
|
|
14214
|
+
const _e = ve(de.file);
|
|
14200
14215
|
if (_e) {
|
|
14201
14216
|
te(_e);
|
|
14202
14217
|
return;
|
|
@@ -14204,22 +14219,22 @@ const vm = (i) => {
|
|
|
14204
14219
|
}
|
|
14205
14220
|
te(null);
|
|
14206
14221
|
const Ee = n ? [...Y, ...j] : [j[0]];
|
|
14207
|
-
u && u(Ee), s === "custom" && h && j.forEach((
|
|
14208
|
-
h == null || h(
|
|
14222
|
+
u && u(Ee), s === "custom" && h && j.forEach((de) => {
|
|
14223
|
+
h == null || h(de);
|
|
14209
14224
|
});
|
|
14210
14225
|
},
|
|
14211
14226
|
[u, Y, n, s, h, ve]
|
|
14212
14227
|
), xe = A(
|
|
14213
14228
|
(j, Ee) => {
|
|
14214
|
-
const
|
|
14215
|
-
u && u(
|
|
14229
|
+
const de = Y.map((_e) => _e.fileId === j ? { ..._e, ...Ee } : _e);
|
|
14230
|
+
u && u(de);
|
|
14216
14231
|
},
|
|
14217
14232
|
[u, Y]
|
|
14218
14233
|
), De = A(
|
|
14219
14234
|
(j) => {
|
|
14220
|
-
var
|
|
14235
|
+
var de;
|
|
14221
14236
|
const Ee = Y.filter((_e) => _e.fileId !== j);
|
|
14222
|
-
u && u(Ee), "onTransferCancelled" in C && C.onTransferCancelled && ((
|
|
14237
|
+
u && u(Ee), "onTransferCancelled" in C && C.onTransferCancelled && ((de = C.onTransferCancelled) == null || de.call(C, j));
|
|
14223
14238
|
},
|
|
14224
14239
|
[u, Y, C]
|
|
14225
14240
|
), { fileAttributes: Ke } = nm(Y, xe), Ge = Pe(
|
|
@@ -14240,17 +14255,17 @@ const vm = (i) => {
|
|
|
14240
14255
|
errors: `${t}-errors`
|
|
14241
14256
|
}),
|
|
14242
14257
|
[t]
|
|
14243
|
-
), { totalCount:
|
|
14258
|
+
), { totalCount: ce, uploadedCount: ke, failedCount: je } = Pe(() => {
|
|
14244
14259
|
const j = Y.length;
|
|
14245
14260
|
if (!q)
|
|
14246
14261
|
return { totalCount: j, uploadedCount: 0, failedCount: 0 };
|
|
14247
|
-
let Ee = 0,
|
|
14262
|
+
let Ee = 0, de = 0;
|
|
14248
14263
|
for (const _e of Y) {
|
|
14249
14264
|
const We = q.find((ct) => ct.fileId === _e.fileId);
|
|
14250
|
-
(We == null ? void 0 : We.progress) === "done" && Ee++, (We == null ? void 0 : We.progress) === "error" &&
|
|
14265
|
+
(We == null ? void 0 : We.progress) === "done" && Ee++, (We == null ? void 0 : We.progress) === "error" && de++;
|
|
14251
14266
|
}
|
|
14252
|
-
return { totalCount: j, uploadedCount: Ee, failedCount:
|
|
14253
|
-
}, [Y, q]), Oe =
|
|
14267
|
+
return { totalCount: j, uploadedCount: Ee, failedCount: de };
|
|
14268
|
+
}, [Y, q]), Oe = ce === 1 ? "fil" : "filer", Se = /* @__PURE__ */ c(
|
|
14254
14269
|
"div",
|
|
14255
14270
|
{
|
|
14256
14271
|
className: oe("pkt-fileupload", {
|
|
@@ -14261,8 +14276,8 @@ const vm = (i) => {
|
|
|
14261
14276
|
"aria-disabled": N,
|
|
14262
14277
|
...N ? { inert: "" } : {},
|
|
14263
14278
|
children: /* @__PURE__ */ x(or.Provider, { value: { name: C.name || "", multiple: !!n, id: t }, children: [
|
|
14264
|
-
/* @__PURE__ */ c("div", { id: st.uploaded, className: "pkt-sr-only", "aria-live": "polite", "aria-atomic": "true", children:
|
|
14265
|
-
/* @__PURE__ */ c("div", { id: st.errors, className: "pkt-sr-only", "aria-live": "assertive", "aria-atomic": "true", children:
|
|
14279
|
+
/* @__PURE__ */ c("div", { id: st.uploaded, className: "pkt-sr-only", "aria-live": "polite", "aria-atomic": "true", children: ce > 0 && ke > 0 && `${ke} av ${ce} ${Oe} lastet opp` }),
|
|
14280
|
+
/* @__PURE__ */ c("div", { id: st.errors, className: "pkt-sr-only", "aria-live": "assertive", "aria-atomic": "true", children: ce > 0 && je > 0 && `Feil ved opplasting: ${je} av ${ce} ${Oe} feilet` }),
|
|
14266
14281
|
/* @__PURE__ */ c(
|
|
14267
14282
|
Uf,
|
|
14268
14283
|
{
|
|
@@ -14279,7 +14294,7 @@ const vm = (i) => {
|
|
|
14279
14294
|
srAnnouncementIds: st
|
|
14280
14295
|
}
|
|
14281
14296
|
),
|
|
14282
|
-
ne &&
|
|
14297
|
+
ne && ue && /* @__PURE__ */ c(ir, { skin: "error", "aria-live": "assertive", role: "alert", compact: !0, children: ue }),
|
|
14283
14298
|
/* @__PURE__ */ c(
|
|
14284
14299
|
Sm,
|
|
14285
14300
|
{
|
|
@@ -14516,7 +14531,7 @@ const Jg = ({
|
|
|
14516
14531
|
) })
|
|
14517
14532
|
] }) }) });
|
|
14518
14533
|
}, Tm = (i, e) => {
|
|
14519
|
-
const t = () => typeof window > "u" ? 0 : window.innerWidth, [n, s] =
|
|
14534
|
+
const t = () => typeof window > "u" ? 0 : window.innerWidth, [n, s] = le(t);
|
|
14520
14535
|
return me(() => {
|
|
14521
14536
|
const r = i.current;
|
|
14522
14537
|
if (!r) return;
|
|
@@ -14681,7 +14696,7 @@ const Ws = pe(
|
|
|
14681
14696
|
value: G,
|
|
14682
14697
|
minLength: te,
|
|
14683
14698
|
maxLength: ne,
|
|
14684
|
-
min:
|
|
14699
|
+
min: ue,
|
|
14685
14700
|
max: se,
|
|
14686
14701
|
step: ve,
|
|
14687
14702
|
size: z,
|
|
@@ -14692,7 +14707,7 @@ const Ws = pe(
|
|
|
14692
14707
|
skipForwardTestid: nt = !1,
|
|
14693
14708
|
...qe
|
|
14694
14709
|
}, Ne) => {
|
|
14695
|
-
const Ye = [a, "pkt-textinput"].join(" "), lt = C === "search" && !b && !q, xe = C === "date" && G ? G.slice(0, 10) : G, [De, Ke] =
|
|
14710
|
+
const Ye = [a, "pkt-textinput"].join(" "), lt = C === "search" && !b && !q, xe = C === "date" && G ? G.slice(0, 10) : G, [De, Ke] = le((G == null ? void 0 : G.length) || 0), Ge = `${i}`, st = `${Ge}-label`, ce = t || st, ke = (je) => {
|
|
14696
14711
|
var Oe, Se;
|
|
14697
14712
|
s && Ke(((Se = (Oe = je.currentTarget) == null ? void 0 : Oe.value) == null ? void 0 : Se.length) || 0), ae && ae(je);
|
|
14698
14713
|
};
|
|
@@ -14744,8 +14759,8 @@ const Ws = pe(
|
|
|
14744
14759
|
disabled: l,
|
|
14745
14760
|
"aria-invalid": h,
|
|
14746
14761
|
"aria-errormessage": `${i}-error`,
|
|
14747
|
-
"aria-labelledby":
|
|
14748
|
-
min:
|
|
14762
|
+
"aria-labelledby": ce,
|
|
14763
|
+
min: ue,
|
|
14749
14764
|
max: se,
|
|
14750
14765
|
onChange: ke,
|
|
14751
14766
|
step: ve,
|
|
@@ -14805,7 +14820,7 @@ const _o = pe(
|
|
|
14805
14820
|
slotMenuVariant: G = "icon-only",
|
|
14806
14821
|
slotMenuText: te = "Meny"
|
|
14807
14822
|
}, ne) => {
|
|
14808
|
-
const
|
|
14823
|
+
const ue = F === "fixed", se = q === "hide";
|
|
14809
14824
|
me(() => {
|
|
14810
14825
|
N && console.warn(
|
|
14811
14826
|
'PktHeaderService: The "userMenuFooter" prop is deprecated and will be removed in a future version. Please use "userMenu" instead.'
|
|
@@ -14826,34 +14841,34 @@ const _o = pe(
|
|
|
14826
14841
|
month: "long",
|
|
14827
14842
|
day: "numeric"
|
|
14828
14843
|
});
|
|
14829
|
-
}, [S == null ? void 0 : S.lastLoggedIn]), [z, Y] =
|
|
14844
|
+
}, [S == null ? void 0 : S.lastLoggedIn]), [z, Y] = le(u || "none");
|
|
14830
14845
|
me(() => {
|
|
14831
14846
|
u !== void 0 && Y(u);
|
|
14832
14847
|
}, [u]);
|
|
14833
|
-
const [Be, re] =
|
|
14848
|
+
const [Be, re] = le(!1), [ae, nt] = le(0), [qe, Ne] = le(!1), [Ye, lt] = le(!1), xe = fe(null), De = fe(null), Ke = fe(null), Ge = fe(null), st = fe(null), ce = fe(null), ke = fe(null), je = fe(!1), Oe = Tm(xe), Se = Oe < i, j = Oe < e, Ee = A(
|
|
14834
14849
|
(d) => {
|
|
14835
14850
|
xe.current = d, typeof ne == "function" ? ne(d) : ne && (ne.current = d);
|
|
14836
14851
|
},
|
|
14837
14852
|
[ne]
|
|
14838
14853
|
);
|
|
14839
|
-
Nm(
|
|
14840
|
-
const
|
|
14854
|
+
Nm(ue && Se && z !== "none");
|
|
14855
|
+
const de = A((d, k) => {
|
|
14841
14856
|
const w = d.relatedTarget;
|
|
14842
|
-
let
|
|
14857
|
+
let I;
|
|
14843
14858
|
switch (k) {
|
|
14844
14859
|
case "user":
|
|
14845
|
-
|
|
14860
|
+
I = De;
|
|
14846
14861
|
break;
|
|
14847
14862
|
case "slot":
|
|
14848
|
-
|
|
14863
|
+
I = Ke;
|
|
14849
14864
|
break;
|
|
14850
14865
|
case "search":
|
|
14851
|
-
|
|
14866
|
+
I = Ge;
|
|
14852
14867
|
break;
|
|
14853
14868
|
default:
|
|
14854
14869
|
return;
|
|
14855
14870
|
}
|
|
14856
|
-
const V =
|
|
14871
|
+
const V = I.current;
|
|
14857
14872
|
V && (!w || !V.contains(w)) && Y("none");
|
|
14858
14873
|
}, []), _e = A(() => {
|
|
14859
14874
|
je.current && ke.current && document.contains(ke.current) && ke.current.focus(), ke.current = null, je.current = !1;
|
|
@@ -14884,9 +14899,9 @@ const _o = pe(
|
|
|
14884
14899
|
}, [se, ae]);
|
|
14885
14900
|
const We = A(
|
|
14886
14901
|
(d) => {
|
|
14887
|
-
const k = d === "slot" ? Ke : Ge, w = d === "slot" ? st :
|
|
14902
|
+
const k = d === "slot" ? Ke : Ge, w = d === "slot" ? st : ce;
|
|
14888
14903
|
if (!k.current || !w.current || !j || Se) return;
|
|
14889
|
-
const
|
|
14904
|
+
const I = k.current.getBoundingClientRect(), V = w.current.offsetWidth, Z = I.left + V > window.innerWidth;
|
|
14890
14905
|
d === "slot" ? Ne(Z) : lt(Z);
|
|
14891
14906
|
},
|
|
14892
14907
|
[j, Se]
|
|
@@ -14909,7 +14924,7 @@ const _o = pe(
|
|
|
14909
14924
|
s && "pkt-header-service--compact",
|
|
14910
14925
|
Se && "pkt-header-service--mobile",
|
|
14911
14926
|
j && "pkt-header-service--tablet",
|
|
14912
|
-
|
|
14927
|
+
ue && "pkt-header-service--fixed",
|
|
14913
14928
|
se && "pkt-header-service--scroll-to-hide",
|
|
14914
14929
|
Be && "pkt-header-service--hidden",
|
|
14915
14930
|
n
|
|
@@ -14964,7 +14979,7 @@ const _o = pe(
|
|
|
14964
14979
|
"div",
|
|
14965
14980
|
{
|
|
14966
14981
|
className: oe("pkt-header-service__slot-container", z === "slot" && "is-open"),
|
|
14967
|
-
onBlur: (d) =>
|
|
14982
|
+
onBlur: (d) => de(d, "slot"),
|
|
14968
14983
|
ref: Ke,
|
|
14969
14984
|
children: [
|
|
14970
14985
|
j && t && /* @__PURE__ */ c(
|
|
@@ -15000,7 +15015,7 @@ const _o = pe(
|
|
|
15000
15015
|
"div",
|
|
15001
15016
|
{
|
|
15002
15017
|
className: oe("pkt-header-service__search-container", z === "search" && "is-open"),
|
|
15003
|
-
onBlur: (d) =>
|
|
15018
|
+
onBlur: (d) => de(d, "search"),
|
|
15004
15019
|
ref: Ge,
|
|
15005
15020
|
children: [
|
|
15006
15021
|
/* @__PURE__ */ c(
|
|
@@ -15026,7 +15041,7 @@ const _o = pe(
|
|
|
15026
15041
|
z === "search" && "is-open",
|
|
15027
15042
|
Ye && "align-right"
|
|
15028
15043
|
),
|
|
15029
|
-
ref:
|
|
15044
|
+
ref: ce,
|
|
15030
15045
|
children: z === "search" && /* @__PURE__ */ c(
|
|
15031
15046
|
Ws,
|
|
15032
15047
|
{
|
|
@@ -15082,7 +15097,7 @@ const _o = pe(
|
|
|
15082
15097
|
"div",
|
|
15083
15098
|
{
|
|
15084
15099
|
className: "pkt-header-service__user-container",
|
|
15085
|
-
onBlur: (d) =>
|
|
15100
|
+
onBlur: (d) => de(d, "user"),
|
|
15086
15101
|
ref: De,
|
|
15087
15102
|
children: [
|
|
15088
15103
|
/* @__PURE__ */ x(
|
|
@@ -15134,7 +15149,7 @@ const _o = pe(
|
|
|
15134
15149
|
]
|
|
15135
15150
|
}
|
|
15136
15151
|
);
|
|
15137
|
-
return
|
|
15152
|
+
return ue ? /* @__PURE__ */ x("div", { className: "pkt-header-service-wrapper", children: [
|
|
15138
15153
|
p,
|
|
15139
15154
|
/* @__PURE__ */ c(
|
|
15140
15155
|
"div",
|
|
@@ -15169,18 +15184,18 @@ const Am = zt({
|
|
|
15169
15184
|
events: {
|
|
15170
15185
|
onToggleHelpText: "toggleHelpText"
|
|
15171
15186
|
}
|
|
15172
|
-
}),
|
|
15187
|
+
}), Im = pe(
|
|
15173
15188
|
({ children: i, ...e }, t) => /* @__PURE__ */ c(Am, { ...e, ref: t, children: /* @__PURE__ */ c("div", { className: "pkt-contents", children: i }) })
|
|
15174
15189
|
);
|
|
15175
|
-
|
|
15176
|
-
const
|
|
15190
|
+
Im.displayName = "PktHelptext";
|
|
15191
|
+
const Rm = pe(
|
|
15177
15192
|
({ label: i, id: e, children: t, ...n }, s) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
|
|
15178
15193
|
/* @__PURE__ */ c("label", { htmlFor: e, className: "pkt-form-label", children: i }),
|
|
15179
15194
|
/* @__PURE__ */ c("input", { className: "pkt-form-input", id: e, ...n, ref: s }),
|
|
15180
15195
|
t
|
|
15181
15196
|
] })
|
|
15182
15197
|
);
|
|
15183
|
-
|
|
15198
|
+
Rm.displayName = "PktInput";
|
|
15184
15199
|
const Lm = ({
|
|
15185
15200
|
children: i,
|
|
15186
15201
|
skin: e,
|
|
@@ -15230,7 +15245,7 @@ const jm = ({
|
|
|
15230
15245
|
onClose: a,
|
|
15231
15246
|
...l
|
|
15232
15247
|
}) => {
|
|
15233
|
-
const [u, h] =
|
|
15248
|
+
const [u, h] = le(!1), f = {
|
|
15234
15249
|
"pkt-messagebox": !0,
|
|
15235
15250
|
"pkt-messagebox--compact": s,
|
|
15236
15251
|
[`pkt-messagebox--${t}`]: t,
|
|
@@ -15497,7 +15512,7 @@ const Wm = /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width
|
|
|
15497
15512
|
e,
|
|
15498
15513
|
"pkt-stepper",
|
|
15499
15514
|
r === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
|
|
15500
|
-
), h =
|
|
15515
|
+
), h = Is.map(t, (f, g) => Vo(f) ? Uo(f, {
|
|
15501
15516
|
className: oe(f.props.className, {
|
|
15502
15517
|
"pkt-step--hideStep": n && g !== i,
|
|
15503
15518
|
"pkt-step--hideContent": s && g !== i
|
|
@@ -15562,13 +15577,13 @@ const iv = ({
|
|
|
15562
15577
|
);
|
|
15563
15578
|
$o.displayName = "PktTabItem";
|
|
15564
15579
|
const wo = cs(null), Gm = () => {
|
|
15565
|
-
const i =
|
|
15580
|
+
const i = Rn(wo);
|
|
15566
15581
|
if (!i)
|
|
15567
15582
|
throw new Error("TabItem must be used within a Tabs component");
|
|
15568
15583
|
return i;
|
|
15569
15584
|
}, Xm = pe(
|
|
15570
15585
|
({ arrowNav: i = !0, disableArrowNav: e = !1, tabs: t, onTabSelected: n, children: s }, r) => {
|
|
15571
|
-
const a = fe([]), l = i && !e, h = s &&
|
|
15586
|
+
const a = fe([]), l = i && !e, h = s && Is.count(s) > 0 ? Is.count(s) : (t == null ? void 0 : t.length) || 0;
|
|
15572
15587
|
me(() => {
|
|
15573
15588
|
a.current = a.current.slice(0, h);
|
|
15574
15589
|
}, [h]);
|
|
@@ -15616,16 +15631,16 @@ export {
|
|
|
15616
15631
|
bf as PktCheckbox,
|
|
15617
15632
|
_f as PktCombobox,
|
|
15618
15633
|
rr as PktConsent,
|
|
15619
|
-
|
|
15634
|
+
If as PktDatepicker,
|
|
15620
15635
|
Cm as PktFileUpload,
|
|
15621
15636
|
Jg as PktFooter,
|
|
15622
15637
|
ev as PktFooterSimple,
|
|
15623
15638
|
Om as PktHeader,
|
|
15624
15639
|
_o as PktHeaderService,
|
|
15625
15640
|
Pm as PktHeading,
|
|
15626
|
-
|
|
15641
|
+
Im as PktHelptext,
|
|
15627
15642
|
X as PktIcon,
|
|
15628
|
-
|
|
15643
|
+
Rm as PktInput,
|
|
15629
15644
|
rn as PktInputWrapper,
|
|
15630
15645
|
cr as PktLink,
|
|
15631
15646
|
Lm as PktLinkCard,
|