@oslokommune/punkt-react 13.20.0 → 13.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/punkt-react.es.js +282 -255
- package/dist/punkt-react.umd.js +43 -41
- package/package.json +4 -4
package/dist/punkt-react.es.js
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
import { jsx as h, jsxs as x, Fragment as Wt } from "react/jsx-runtime";
|
|
37
|
-
import gt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as
|
|
37
|
+
import gt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as Ie, useCallback as Ls, useRef as Bs, Fragment as un, createRef as mn, createElement as fn, Children as Os, isValidElement as gn, cloneElement as vn, useMemo as bn } from "react";
|
|
38
38
|
import { Link as Gs } from "react-router-dom";
|
|
39
39
|
const Pa = Oa({}), kn = () => Ma(Pa), yn = Z(
|
|
40
40
|
({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: a, className: n }, r) => {
|
|
@@ -94,22 +94,22 @@ const $n = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
94
94
|
* Copyright 2017 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
96
|
*/
|
|
97
|
-
const Qi = globalThis, ts = Qi.trustedTypes, Js = ts ? ts.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Da = "$lit$", ve = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + ve, _n = `<${Ia}>`,
|
|
98
|
-
\f\r]`,
|
|
99
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, ea = /"/g, Ra = /^(?:script|style|textarea|title)$/i, xn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = xn(1), St = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(),
|
|
97
|
+
const Qi = globalThis, ts = Qi.trustedTypes, Js = ts ? ts.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Da = "$lit$", ve = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + ve, _n = `<${Ia}>`, Re = document, Ei = () => Re.createComment(""), Oi = (i) => i === null || typeof i != "object" && typeof i != "function", Vs = Array.isArray, wn = (i) => Vs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", bs = `[
|
|
98
|
+
\f\r]`, gi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xs = /-->/g, Qs = />/g, Ne = RegExp(`>|${bs}(?:([^\\s"'>=/]+)(${bs}*=${bs}*(?:[^
|
|
99
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, ea = /"/g, Ra = /^(?:script|style|textarea|title)$/i, xn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = xn(1), St = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Me = Re.createTreeWalker(Re, 129);
|
|
100
100
|
function La(i, t) {
|
|
101
101
|
if (!Vs(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
102
102
|
return Js !== void 0 ? Js.createHTML(t) : t;
|
|
103
103
|
}
|
|
104
104
|
const Sn = (i, t) => {
|
|
105
105
|
const e = i.length - 1, s = [];
|
|
106
|
-
let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r =
|
|
106
|
+
let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = gi;
|
|
107
107
|
for (let l = 0; l < e; l++) {
|
|
108
108
|
const d = i[l];
|
|
109
109
|
let p, m, f = -1, y = 0;
|
|
110
|
-
for (; y < d.length && (r.lastIndex = y, m = r.exec(d), m !== null); ) y = r.lastIndex, r ===
|
|
111
|
-
const b = r ===
|
|
112
|
-
n += r ===
|
|
110
|
+
for (; y < d.length && (r.lastIndex = y, m = r.exec(d), m !== null); ) y = r.lastIndex, r === gi ? m[1] === "!--" ? r = Xs : m[1] !== void 0 ? r = Qs : m[2] !== void 0 ? (Ra.test(m[2]) && (a = RegExp("</" + m[2], "g")), r = Ne) : m[3] !== void 0 && (r = Ne) : r === Ne ? m[0] === ">" ? (r = a ?? gi, f = -1) : m[1] === void 0 ? f = -2 : (f = r.lastIndex - m[2].length, p = m[1], r = m[3] === void 0 ? Ne : m[3] === '"' ? ea : ta) : r === ea || r === ta ? r = Ne : r === Xs || r === Qs ? r = gi : (r = Ne, a = void 0);
|
|
111
|
+
const b = r === Ne && i[l + 1].startsWith("/>") ? " " : "";
|
|
112
|
+
n += r === gi ? d + _n : f >= 0 ? (s.push(p), d.slice(0, f) + Da + d.slice(f) + ve + b) : d + ve + (f === -2 ? l : b);
|
|
113
113
|
}
|
|
114
114
|
return [La(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
115
115
|
};
|
|
@@ -119,11 +119,11 @@ let Ms = class Ba {
|
|
|
119
119
|
this.parts = [];
|
|
120
120
|
let n = 0, r = 0;
|
|
121
121
|
const l = t.length - 1, d = this.parts, [p, m] = Sn(t, e);
|
|
122
|
-
if (this.el = Ba.createElement(p, s),
|
|
122
|
+
if (this.el = Ba.createElement(p, s), Me.currentNode = this.el.content, e === 2 || e === 3) {
|
|
123
123
|
const f = this.el.content.firstChild;
|
|
124
124
|
f.replaceWith(...f.childNodes);
|
|
125
125
|
}
|
|
126
|
-
for (; (a =
|
|
126
|
+
for (; (a = Me.nextNode()) !== null && d.length < l; ) {
|
|
127
127
|
if (a.nodeType === 1) {
|
|
128
128
|
if (a.hasAttributes()) for (const f of a.getAttributeNames()) if (f.endsWith(Da)) {
|
|
129
129
|
const y = m[r++], b = a.getAttribute(f).split(ve), k = /([.?@])?(.*)/.exec(y);
|
|
@@ -133,8 +133,8 @@ let Ms = class Ba {
|
|
|
133
133
|
const f = a.textContent.split(ve), y = f.length - 1;
|
|
134
134
|
if (y > 0) {
|
|
135
135
|
a.textContent = ts ? ts.emptyScript : "";
|
|
136
|
-
for (let b = 0; b < y; b++) a.append(f[b],
|
|
137
|
-
a.append(f[y],
|
|
136
|
+
for (let b = 0; b < y; b++) a.append(f[b], Ei()), Me.nextNode(), d.push({ type: 2, index: ++n });
|
|
137
|
+
a.append(f[y], Ei());
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
} else if (a.nodeType === 8) if (a.data === Ia) d.push({ type: 2, index: n });
|
|
@@ -146,7 +146,7 @@ let Ms = class Ba {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
static createElement(t, e) {
|
|
149
|
-
const s =
|
|
149
|
+
const s = Re.createElement("template");
|
|
150
150
|
return s.innerHTML = t, s;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
@@ -154,7 +154,7 @@ function ti(i, t, e = i, s) {
|
|
|
154
154
|
var a, n;
|
|
155
155
|
if (t === St) return t;
|
|
156
156
|
let r = s !== void 0 ? (a = e._$Co) == null ? void 0 : a[s] : e._$Cl;
|
|
157
|
-
const l =
|
|
157
|
+
const l = Oi(t) ? void 0 : t._$litDirective$;
|
|
158
158
|
return (r == null ? void 0 : r.constructor) !== l && ((n = r == null ? void 0 : r._$AO) == null || n.call(r, !1), l === void 0 ? r = void 0 : (r = new l(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = ti(i, r._$AS(i, t.values), r, s)), t;
|
|
159
159
|
}
|
|
160
160
|
let Cn = class {
|
|
@@ -168,17 +168,17 @@ let Cn = class {
|
|
|
168
168
|
return this._$AM._$AU;
|
|
169
169
|
}
|
|
170
170
|
u(t) {
|
|
171
|
-
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ??
|
|
172
|
-
|
|
173
|
-
let n =
|
|
171
|
+
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? Re).importNode(e, !0);
|
|
172
|
+
Me.currentNode = a;
|
|
173
|
+
let n = Me.nextNode(), r = 0, l = 0, d = s[0];
|
|
174
174
|
for (; d !== void 0; ) {
|
|
175
175
|
if (r === d.index) {
|
|
176
176
|
let p;
|
|
177
177
|
d.type === 2 ? p = new rs(n, n.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(n, d.name, d.strings, this, t) : d.type === 6 && (p = new En(n, this, t)), this._$AV.push(p), d = s[++l];
|
|
178
178
|
}
|
|
179
|
-
r !== (d == null ? void 0 : d.index) && (n =
|
|
179
|
+
r !== (d == null ? void 0 : d.index) && (n = Me.nextNode(), r++);
|
|
180
180
|
}
|
|
181
|
-
return
|
|
181
|
+
return Me.currentNode = Re, a;
|
|
182
182
|
}
|
|
183
183
|
p(t) {
|
|
184
184
|
let e = 0;
|
|
@@ -204,7 +204,7 @@ let Cn = class {
|
|
|
204
204
|
return this._$AB;
|
|
205
205
|
}
|
|
206
206
|
_$AI(t, e = this) {
|
|
207
|
-
t = ti(this, t, e),
|
|
207
|
+
t = ti(this, t, e), Oi(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== St && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wn(t) ? this.k(t) : this._(t);
|
|
208
208
|
}
|
|
209
209
|
O(t) {
|
|
210
210
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -213,7 +213,7 @@ let Cn = class {
|
|
|
213
213
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
214
214
|
}
|
|
215
215
|
_(t) {
|
|
216
|
-
this._$AH !== $ &&
|
|
216
|
+
this._$AH !== $ && Oi(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Re.createTextNode(t)), this._$AH = t;
|
|
217
217
|
}
|
|
218
218
|
$(t) {
|
|
219
219
|
var e;
|
|
@@ -232,7 +232,7 @@ let Cn = class {
|
|
|
232
232
|
Vs(this._$AH) || (this._$AH = [], this._$AR());
|
|
233
233
|
const e = this._$AH;
|
|
234
234
|
let s, a = 0;
|
|
235
|
-
for (const n of t) a === e.length ? e.push(s = new Va(this.O(
|
|
235
|
+
for (const n of t) a === e.length ? e.push(s = new Va(this.O(Ei()), this.O(Ei()), this, this.options)) : s = e[a], s._$AI(n), a++;
|
|
236
236
|
a < e.length && (this._$AR(s && s._$AB.nextSibling, a), e.length = a);
|
|
237
237
|
}
|
|
238
238
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -259,11 +259,11 @@ let Cn = class {
|
|
|
259
259
|
_$AI(t, e = this, s, a) {
|
|
260
260
|
const n = this.strings;
|
|
261
261
|
let r = !1;
|
|
262
|
-
if (n === void 0) t = ti(this, t, e, 0), r = !
|
|
262
|
+
if (n === void 0) t = ti(this, t, e, 0), r = !Oi(t) || t !== this._$AH && t !== St, r && (this._$AH = t);
|
|
263
263
|
else {
|
|
264
264
|
const l = t;
|
|
265
265
|
let d, p;
|
|
266
|
-
for (t = n[0], d = 0; d < n.length - 1; d++) p = ti(this, l[s + d], e, d), p === St && (p = this._$AH[d]), r || (r = !
|
|
266
|
+
for (t = n[0], d = 0; d < n.length - 1; d++) p = ti(this, l[s + d], e, d), p === St && (p = this._$AH[d]), r || (r = !Oi(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
|
|
267
267
|
}
|
|
268
268
|
r && !a && this.j(t);
|
|
269
269
|
}
|
|
@@ -315,7 +315,7 @@ const Mn = (i, t, e) => {
|
|
|
315
315
|
let a = s._$litPart$;
|
|
316
316
|
if (a === void 0) {
|
|
317
317
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
318
|
-
s._$litPart$ = a = new rs(t.insertBefore(
|
|
318
|
+
s._$litPart$ = a = new rs(t.insertBefore(Ei(), n), n, void 0, e ?? {});
|
|
319
319
|
}
|
|
320
320
|
return a._$AI(i), a;
|
|
321
321
|
};
|
|
@@ -369,7 +369,7 @@ const Dn = (i) => new Pn(typeof i == "string" ? i : i + "", void 0, ja), In = (i
|
|
|
369
369
|
* Copyright 2017 Google LLC
|
|
370
370
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
371
371
|
*/
|
|
372
|
-
const { is: Rn, defineProperty: Ln, getOwnPropertyDescriptor: Bn, getOwnPropertyNames: Vn, getOwnPropertySymbols: jn, getPrototypeOf: Fn } = Object, ei = globalThis, ra = ei.trustedTypes, Un = ra ? ra.emptyScript : "", oa = ei.reactiveElementPolyfillSupport,
|
|
372
|
+
const { is: Rn, defineProperty: Ln, getOwnPropertyDescriptor: Bn, getOwnPropertyNames: Vn, getOwnPropertySymbols: jn, getPrototypeOf: Fn } = Object, ei = globalThis, ra = ei.trustedTypes, Un = ra ? ra.emptyScript : "", oa = ei.reactiveElementPolyfillSupport, Ni = (i, t) => i, es = { toAttribute(i, t) {
|
|
373
373
|
switch (t) {
|
|
374
374
|
case Boolean:
|
|
375
375
|
i = i ? Un : null;
|
|
@@ -427,13 +427,13 @@ let Ze = class extends HTMLElement {
|
|
|
427
427
|
return this.elementProperties.get(t) ?? la;
|
|
428
428
|
}
|
|
429
429
|
static _$Ei() {
|
|
430
|
-
if (this.hasOwnProperty(
|
|
430
|
+
if (this.hasOwnProperty(Ni("elementProperties"))) return;
|
|
431
431
|
const t = Fn(this);
|
|
432
432
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
433
433
|
}
|
|
434
434
|
static finalize() {
|
|
435
|
-
if (this.hasOwnProperty(
|
|
436
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
435
|
+
if (this.hasOwnProperty(Ni("finalized"))) return;
|
|
436
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ni("properties"))) {
|
|
437
437
|
const e = this.properties, s = [...Vn(e), ...jn(e)];
|
|
438
438
|
for (const a of s) this.createProperty(a, e[a]);
|
|
439
439
|
}
|
|
@@ -602,7 +602,7 @@ let Ze = class extends HTMLElement {
|
|
|
602
602
|
firstUpdated(t) {
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
|
-
Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[
|
|
605
|
+
Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[Ni("elementProperties")] = /* @__PURE__ */ new Map(), Ze[Ni("finalized")] = /* @__PURE__ */ new Map(), oa == null || oa({ ReactiveElement: Ze }), (ei.reactiveElementVersions ?? (ei.reactiveElementVersions = [])).push("2.1.1");
|
|
606
606
|
/**
|
|
607
607
|
* @license
|
|
608
608
|
* Copyright 2017 Google LLC
|
|
@@ -640,7 +640,7 @@ function o(i) {
|
|
|
640
640
|
* Copyright 2017 Google LLC
|
|
641
641
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
642
642
|
*/
|
|
643
|
-
const
|
|
643
|
+
const Mi = globalThis;
|
|
644
644
|
let Je = class extends Ze {
|
|
645
645
|
constructor() {
|
|
646
646
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -667,10 +667,10 @@ let Je = class extends Ze {
|
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
var ha;
|
|
670
|
-
Je._$litElement$ = !0, Je.finalized = !0, (ha =
|
|
671
|
-
const da =
|
|
670
|
+
Je._$litElement$ = !0, Je.finalized = !0, (ha = Mi.litElementHydrateSupport) == null || ha.call(Mi, { LitElement: Je });
|
|
671
|
+
const da = Mi.litElementPolyfillSupport;
|
|
672
672
|
da == null || da({ LitElement: Je });
|
|
673
|
-
(
|
|
673
|
+
(Mi.litElementVersions ?? (Mi.litElementVersions = [])).push("4.2.1");
|
|
674
674
|
const zn = { hi: "Hei!" }, Wn = { from: "Fra", to: "Til" }, Kn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Gn = { month: "Måned", year: "År", days: ["Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"], daysShort: ["Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"], months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], week: "Uke", prevMonth: "Forrige måned", nextMonth: "Neste måned" }, Yn = { search: { placeholder: "Søk…" }, labels: { optional: "Valgfritt", required: "Må fylles ut" }, messages: { required: "Dette feltet er påkrevd", invalid: "Ugyldig verdi", invalidPattern: "Ugyldig format", tooShort: "For kort", tooLong: "For lang", rangeUnderflow: "For lav verdi", rangeOverflow: "For høy verdi", rangeUnderflowMin: "Verdien må være større enn eller lik {min}.", rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.", dateUnderflow: "For tidlig dato", dateOverflow: "For sen dato" }, helptext: { helptextDropdownButton: "Les mer" }, date: { multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato." } }, wt = {
|
|
675
675
|
example: zn,
|
|
676
676
|
generic: Wn,
|
|
@@ -770,7 +770,7 @@ function B(i) {
|
|
|
770
770
|
function Ua(i, t) {
|
|
771
771
|
return t.some((e) => e.value === i);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function vi(i) {
|
|
774
774
|
return i.classList && (i.classList.contains("_dialog_overlay") || i.classList.contains("backdrop")) ? !0 : typeof i.hasAttribute == "function" && i.hasAttribute("data-skip");
|
|
775
775
|
}
|
|
776
776
|
function Xe(i) {
|
|
@@ -799,7 +799,7 @@ let rt = class {
|
|
|
799
799
|
// ********* UPDATE NODES *********
|
|
800
800
|
updateNodes() {
|
|
801
801
|
this.nodes = [], Array.from(this.host.childNodes).forEach((t) => {
|
|
802
|
-
|
|
802
|
+
vi(t) || Xe(t) && this.skipOptions || (!Ua(t, this.slots) || ks(t)) && this.nodes.push(t);
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
// ********* UPDATE SLOTS *********
|
|
@@ -815,13 +815,13 @@ let rt = class {
|
|
|
815
815
|
if (n.nodeType === Node.COMMENT_NODE) return !1;
|
|
816
816
|
if (n.nodeType === Node.TEXT_NODE) return !!((r = n.textContent) != null && r.trim());
|
|
817
817
|
if (n.nodeType === Node.ELEMENT_NODE) {
|
|
818
|
-
if (
|
|
818
|
+
if (vi(n)) return !1;
|
|
819
819
|
if ((l = n.textContent) != null && l.trim()) return !0;
|
|
820
820
|
}
|
|
821
821
|
return !1;
|
|
822
822
|
}) && t.add(s);
|
|
823
823
|
const a = this.nodes.flatMap(
|
|
824
|
-
(n) => ks(n) || n.getAttribute && n.getAttribute("slot") == s && !
|
|
824
|
+
(n) => ks(n) || n.getAttribute && n.getAttribute("slot") == s && !vi(n) ? n : []
|
|
825
825
|
).filter(
|
|
826
826
|
(n) => e.value && !e.value.contains(n) && !n.contains(e.value)
|
|
827
827
|
);
|
|
@@ -839,9 +839,9 @@ let rt = class {
|
|
|
839
839
|
let e = !1;
|
|
840
840
|
t.forEach((s) => {
|
|
841
841
|
s.type === "childList" && (s.addedNodes.forEach((a) => {
|
|
842
|
-
|
|
842
|
+
vi(a) || Xe(a) && this.skipOptions || (Jn(a, this.slots) || ks(a)) && (this.nodes.push(a), e = !0);
|
|
843
843
|
}), s.removedNodes.forEach((a) => {
|
|
844
|
-
|
|
844
|
+
vi(a) || Xe(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
|
|
845
845
|
}));
|
|
846
846
|
}), e && this.updateSlots();
|
|
847
847
|
}
|
|
@@ -861,7 +861,7 @@ let rt = class {
|
|
|
861
861
|
* Copyright 2020 Google LLC
|
|
862
862
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
863
863
|
*/
|
|
864
|
-
const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.createComment(""),
|
|
864
|
+
const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.createComment(""), bi = (i, t, e) => {
|
|
865
865
|
var s;
|
|
866
866
|
const a = i._$AA.parentNode, n = t === void 0 ? i._$AB : t._$AA;
|
|
867
867
|
if (e === void 0) {
|
|
@@ -882,7 +882,7 @@ const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.crea
|
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
return e;
|
|
885
|
-
},
|
|
885
|
+
}, Ae = (i, t, e = i) => (i._$AI(t, e), i), Qn = {}, qa = (i, t = Qn) => i._$AH = t, tr = (i) => i._$AH, ys = (i) => {
|
|
886
886
|
i._$AR(), i._$AA.remove();
|
|
887
887
|
};
|
|
888
888
|
/**
|
|
@@ -890,11 +890,11 @@ const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.crea
|
|
|
890
890
|
* Copyright 2017 Google LLC
|
|
891
891
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
892
892
|
*/
|
|
893
|
-
const
|
|
893
|
+
const Ai = (i, t) => {
|
|
894
894
|
var e;
|
|
895
895
|
const s = i._$AN;
|
|
896
896
|
if (s === void 0) return !1;
|
|
897
|
-
for (const a of s) (e = a._$AO) == null || e.call(a, t, !1),
|
|
897
|
+
for (const a of s) (e = a._$AO) == null || e.call(a, t, !1), Ai(a, t);
|
|
898
898
|
return !0;
|
|
899
899
|
}, is = (i) => {
|
|
900
900
|
let t, e;
|
|
@@ -915,9 +915,9 @@ function er(i) {
|
|
|
915
915
|
}
|
|
916
916
|
function ir(i, t = !1, e = 0) {
|
|
917
917
|
const s = this._$AH, a = this._$AN;
|
|
918
|
-
if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++)
|
|
919
|
-
else s != null && (
|
|
920
|
-
else
|
|
918
|
+
if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++) Ai(s[n], !1), is(s[n]);
|
|
919
|
+
else s != null && (Ai(s, !1), is(s));
|
|
920
|
+
else Ai(this, i);
|
|
921
921
|
}
|
|
922
922
|
const sr = (i) => {
|
|
923
923
|
i.type == zt.CHILD && (i._$AP ?? (i._$AP = ir), i._$AQ ?? (i._$AQ = er));
|
|
@@ -931,7 +931,7 @@ let ar = class extends li {
|
|
|
931
931
|
}
|
|
932
932
|
_$AO(t, e = !0) {
|
|
933
933
|
var s, a;
|
|
934
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (a = this.disconnected) == null || a.call(this)), e && (
|
|
934
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (a = this.disconnected) == null || a.call(this)), e && (Ai(this, t), is(this));
|
|
935
935
|
}
|
|
936
936
|
setValue(t) {
|
|
937
937
|
if (Ha(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1014,12 +1014,12 @@ let Ps = class extends ss {
|
|
|
1014
1014
|
};
|
|
1015
1015
|
Ps.directiveName = "unsafeSVG", Ps.resultType = 2;
|
|
1016
1016
|
const pa = Ue(Ps);
|
|
1017
|
-
var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor,
|
|
1017
|
+
var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Li = (i, t, e, s) => {
|
|
1018
1018
|
for (var a = s > 1 ? void 0 : s ? or(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1019
1019
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1020
1020
|
return s && a && rr(t, e, a), a;
|
|
1021
1021
|
};
|
|
1022
|
-
const Ds = "https://punkt-cdn.oslo.kommune.no/13.
|
|
1022
|
+
const Ds = "https://punkt-cdn.oslo.kommune.no/13.22/icons/";
|
|
1023
1023
|
typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ds);
|
|
1024
1024
|
const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', _s = {}, hr = async (i, t) => {
|
|
1025
1025
|
let e = 0;
|
|
@@ -1030,7 +1030,7 @@ const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http:/
|
|
|
1030
1030
|
window.pktFetch(t + i + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + t + i + ".svg"), Xi)).then((a) => (a !== Xi && s && localStorage.setItem(t + i + ".svg", a), _s[t + i + ".svg"] = "fetched", a))
|
|
1031
1031
|
)) : Promise.resolve(Xi);
|
|
1032
1032
|
};
|
|
1033
|
-
let
|
|
1033
|
+
let Le = class extends K {
|
|
1034
1034
|
constructor() {
|
|
1035
1035
|
super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ds, this.name = "", this.icon = pa(Xi), this._updatedProps = [];
|
|
1036
1036
|
}
|
|
@@ -1052,21 +1052,21 @@ let Re = class extends K {
|
|
|
1052
1052
|
return u`${this.name && this.icon}`;
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
|
|
1055
|
+
Li([
|
|
1056
1056
|
o({ type: String, reflect: !1 })
|
|
1057
|
-
],
|
|
1058
|
-
|
|
1057
|
+
], Le.prototype, "path", 2);
|
|
1058
|
+
Li([
|
|
1059
1059
|
o({ type: String, reflect: !0 })
|
|
1060
|
-
],
|
|
1061
|
-
|
|
1060
|
+
], Le.prototype, "name", 2);
|
|
1061
|
+
Li([
|
|
1062
1062
|
o({ type: SVGElement })
|
|
1063
|
-
],
|
|
1064
|
-
|
|
1063
|
+
], Le.prototype, "icon", 2);
|
|
1064
|
+
Li([
|
|
1065
1065
|
o({ type: Array, noAccessor: !0 })
|
|
1066
|
-
],
|
|
1067
|
-
|
|
1066
|
+
], Le.prototype, "_updatedProps", 2);
|
|
1067
|
+
Le = Li([
|
|
1068
1068
|
j("pkt-icon")
|
|
1069
|
-
],
|
|
1069
|
+
], Le);
|
|
1070
1070
|
/**
|
|
1071
1071
|
* @license
|
|
1072
1072
|
* Copyright 2018 Google LLC
|
|
@@ -1078,7 +1078,7 @@ var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ut = (i, t
|
|
|
1078
1078
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1079
1079
|
return s && a && dr(t, e, a), a;
|
|
1080
1080
|
};
|
|
1081
|
-
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.
|
|
1081
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.22/animations/";
|
|
1082
1082
|
let lt = class extends K {
|
|
1083
1083
|
constructor() {
|
|
1084
1084
|
super(), this.defaultSlot = A(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new rt(this, this.defaultSlot);
|
|
@@ -1307,7 +1307,7 @@ se([
|
|
|
1307
1307
|
Kt = se([
|
|
1308
1308
|
j("pkt-alert")
|
|
1309
1309
|
], Kt);
|
|
1310
|
-
var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor,
|
|
1310
|
+
var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Bi = (i, t, e, s) => {
|
|
1311
1311
|
for (var a = s > 1 ? void 0 : s ? gr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1312
1312
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1313
1313
|
return s && a && fr(t, e, a), a;
|
|
@@ -1353,19 +1353,19 @@ let ii = class extends Je {
|
|
|
1353
1353
|
`;
|
|
1354
1354
|
}
|
|
1355
1355
|
};
|
|
1356
|
-
|
|
1356
|
+
Bi([
|
|
1357
1357
|
o({ type: String, reflect: !0, attribute: "aria-labelledby" })
|
|
1358
1358
|
], ii.prototype, "ariaLabelledBy", 2);
|
|
1359
|
-
|
|
1359
|
+
Bi([
|
|
1360
1360
|
o({ type: Boolean, reflect: !0, attribute: "compact" })
|
|
1361
1361
|
], ii.prototype, "compact", 2);
|
|
1362
|
-
|
|
1362
|
+
Bi([
|
|
1363
1363
|
o({ type: String, reflect: !0, attribute: "skin" })
|
|
1364
1364
|
], ii.prototype, "skin", 2);
|
|
1365
|
-
|
|
1365
|
+
Bi([
|
|
1366
1366
|
o({ type: String, reflect: !0, attribute: "name" })
|
|
1367
1367
|
], ii.prototype, "name", 2);
|
|
1368
|
-
ii =
|
|
1368
|
+
ii = Bi([
|
|
1369
1369
|
j("pkt-accordion")
|
|
1370
1370
|
], ii);
|
|
1371
1371
|
var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
|
|
@@ -1490,13 +1490,13 @@ let _r = {};
|
|
|
1490
1490
|
function ds() {
|
|
1491
1491
|
return _r;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Pi(i, t) {
|
|
1494
1494
|
var e, s, a, n;
|
|
1495
1495
|
const r = ds(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.weekStartsOn) ?? 0, d = Lt(i, t == null ? void 0 : t.in), p = d.getDay(), m = (p < l ? 7 : 0) + p - l;
|
|
1496
1496
|
return d.setDate(d.getDate() - m), d.setHours(0, 0, 0, 0), d;
|
|
1497
1497
|
}
|
|
1498
1498
|
function as(i, t) {
|
|
1499
|
-
return
|
|
1499
|
+
return Pi(i, { ...t, weekStartsOn: 1 });
|
|
1500
1500
|
}
|
|
1501
1501
|
function Ga(i, t) {
|
|
1502
1502
|
const e = Lt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
|
|
@@ -1677,7 +1677,7 @@ const Or = {
|
|
|
1677
1677
|
nextWeek: "eeee 'at' p",
|
|
1678
1678
|
other: "P"
|
|
1679
1679
|
}, Rr = (i, t, e, s) => Ir[i];
|
|
1680
|
-
function
|
|
1680
|
+
function ki(i) {
|
|
1681
1681
|
return (t, e) => {
|
|
1682
1682
|
const s = e != null && e.context ? String(e.context) : "standalone";
|
|
1683
1683
|
let a;
|
|
@@ -1819,31 +1819,31 @@ const Lr = {
|
|
|
1819
1819
|
return e + "th";
|
|
1820
1820
|
}, qr = {
|
|
1821
1821
|
ordinalNumber: Hr,
|
|
1822
|
-
era:
|
|
1822
|
+
era: ki({
|
|
1823
1823
|
values: Lr,
|
|
1824
1824
|
defaultWidth: "wide"
|
|
1825
1825
|
}),
|
|
1826
|
-
quarter:
|
|
1826
|
+
quarter: ki({
|
|
1827
1827
|
values: Br,
|
|
1828
1828
|
defaultWidth: "wide",
|
|
1829
1829
|
argumentCallback: (i) => i - 1
|
|
1830
1830
|
}),
|
|
1831
|
-
month:
|
|
1831
|
+
month: ki({
|
|
1832
1832
|
values: Vr,
|
|
1833
1833
|
defaultWidth: "wide"
|
|
1834
1834
|
}),
|
|
1835
|
-
day:
|
|
1835
|
+
day: ki({
|
|
1836
1836
|
values: jr,
|
|
1837
1837
|
defaultWidth: "wide"
|
|
1838
1838
|
}),
|
|
1839
|
-
dayPeriod:
|
|
1839
|
+
dayPeriod: ki({
|
|
1840
1840
|
values: Fr,
|
|
1841
1841
|
defaultWidth: "wide",
|
|
1842
1842
|
formattingValues: Ur,
|
|
1843
1843
|
defaultFormattingWidth: "wide"
|
|
1844
1844
|
})
|
|
1845
1845
|
};
|
|
1846
|
-
function
|
|
1846
|
+
function yi(i) {
|
|
1847
1847
|
return (t, e = {}) => {
|
|
1848
1848
|
const s = e.width, a = s && i.matchPatterns[s] || i.matchPatterns[i.defaultMatchWidth], n = t.match(a);
|
|
1849
1849
|
if (!n)
|
|
@@ -1956,32 +1956,32 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Yr = /\d+/i, Zr = {
|
|
|
1956
1956
|
parsePattern: Yr,
|
|
1957
1957
|
valueCallback: (i) => parseInt(i, 10)
|
|
1958
1958
|
}),
|
|
1959
|
-
era:
|
|
1959
|
+
era: yi({
|
|
1960
1960
|
matchPatterns: Zr,
|
|
1961
1961
|
defaultMatchWidth: "wide",
|
|
1962
1962
|
parsePatterns: Jr,
|
|
1963
1963
|
defaultParseWidth: "any"
|
|
1964
1964
|
}),
|
|
1965
|
-
quarter:
|
|
1965
|
+
quarter: yi({
|
|
1966
1966
|
matchPatterns: Xr,
|
|
1967
1967
|
defaultMatchWidth: "wide",
|
|
1968
1968
|
parsePatterns: Qr,
|
|
1969
1969
|
defaultParseWidth: "any",
|
|
1970
1970
|
valueCallback: (i) => i + 1
|
|
1971
1971
|
}),
|
|
1972
|
-
month:
|
|
1972
|
+
month: yi({
|
|
1973
1973
|
matchPatterns: to,
|
|
1974
1974
|
defaultMatchWidth: "wide",
|
|
1975
1975
|
parsePatterns: eo,
|
|
1976
1976
|
defaultParseWidth: "any"
|
|
1977
1977
|
}),
|
|
1978
|
-
day:
|
|
1978
|
+
day: yi({
|
|
1979
1979
|
matchPatterns: io,
|
|
1980
1980
|
defaultMatchWidth: "wide",
|
|
1981
1981
|
parsePatterns: so,
|
|
1982
1982
|
defaultParseWidth: "any"
|
|
1983
1983
|
}),
|
|
1984
|
-
dayPeriod:
|
|
1984
|
+
dayPeriod: yi({
|
|
1985
1985
|
matchPatterns: ao,
|
|
1986
1986
|
defaultMatchWidth: "any",
|
|
1987
1987
|
parsePatterns: no,
|
|
@@ -2011,18 +2011,18 @@ function Za(i, t) {
|
|
|
2011
2011
|
var e, s, a, n;
|
|
2012
2012
|
const r = Lt(i, t == null ? void 0 : t.in), l = r.getFullYear(), d = ds(), p = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? d.firstWeekContainsDate ?? ((n = (a = d.locale) == null ? void 0 : a.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, m = ee((t == null ? void 0 : t.in) || i, 0);
|
|
2013
2013
|
m.setFullYear(l + 1, 0, p), m.setHours(0, 0, 0, 0);
|
|
2014
|
-
const f =
|
|
2014
|
+
const f = Pi(m, t), y = ee((t == null ? void 0 : t.in) || i, 0);
|
|
2015
2015
|
y.setFullYear(l, 0, p), y.setHours(0, 0, 0, 0);
|
|
2016
|
-
const b =
|
|
2016
|
+
const b = Pi(y, t);
|
|
2017
2017
|
return +r >= +f ? l + 1 : +r >= +b ? l : l - 1;
|
|
2018
2018
|
}
|
|
2019
2019
|
function co(i, t) {
|
|
2020
2020
|
var e, s, a, n;
|
|
2021
2021
|
const r = ds(), l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, d = Za(i, t), p = ee((t == null ? void 0 : t.in) || i, 0);
|
|
2022
|
-
return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0),
|
|
2022
|
+
return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0), Pi(p, t);
|
|
2023
2023
|
}
|
|
2024
2024
|
function Ja(i, t) {
|
|
2025
|
-
const e = Lt(i, t == null ? void 0 : t.in), s = +
|
|
2025
|
+
const e = Lt(i, t == null ? void 0 : t.in), s = +Pi(e, t) - +co(e, t);
|
|
2026
2026
|
return Math.round(s / Ka) + 1;
|
|
2027
2027
|
}
|
|
2028
2028
|
function q(i, t) {
|
|
@@ -2571,7 +2571,7 @@ const fe = {
|
|
|
2571
2571
|
// so this token always has the same output as `XX`
|
|
2572
2572
|
case "XXXX":
|
|
2573
2573
|
case "XX":
|
|
2574
|
-
return
|
|
2574
|
+
return Oe(s);
|
|
2575
2575
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2576
2576
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2577
2577
|
// so this token always has the same output as `XXX`
|
|
@@ -2579,7 +2579,7 @@ const fe = {
|
|
|
2579
2579
|
case "XXX":
|
|
2580
2580
|
// Hours and minutes with `:` delimiter
|
|
2581
2581
|
default:
|
|
2582
|
-
return
|
|
2582
|
+
return Oe(s, ":");
|
|
2583
2583
|
}
|
|
2584
2584
|
},
|
|
2585
2585
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -2594,7 +2594,7 @@ const fe = {
|
|
|
2594
2594
|
// so this token always has the same output as `xx`
|
|
2595
2595
|
case "xxxx":
|
|
2596
2596
|
case "xx":
|
|
2597
|
-
return
|
|
2597
|
+
return Oe(s);
|
|
2598
2598
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2599
2599
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2600
2600
|
// so this token always has the same output as `xxx`
|
|
@@ -2602,7 +2602,7 @@ const fe = {
|
|
|
2602
2602
|
case "xxx":
|
|
2603
2603
|
// Hours and minutes with `:` delimiter
|
|
2604
2604
|
default:
|
|
2605
|
-
return
|
|
2605
|
+
return Oe(s, ":");
|
|
2606
2606
|
}
|
|
2607
2607
|
},
|
|
2608
2608
|
// Timezone (GMT)
|
|
@@ -2617,7 +2617,7 @@ const fe = {
|
|
|
2617
2617
|
// Long
|
|
2618
2618
|
case "OOOO":
|
|
2619
2619
|
default:
|
|
2620
|
-
return "GMT" +
|
|
2620
|
+
return "GMT" + Oe(s, ":");
|
|
2621
2621
|
}
|
|
2622
2622
|
},
|
|
2623
2623
|
// Timezone (specific non-location)
|
|
@@ -2632,7 +2632,7 @@ const fe = {
|
|
|
2632
2632
|
// Long
|
|
2633
2633
|
case "zzzz":
|
|
2634
2634
|
default:
|
|
2635
|
-
return "GMT" +
|
|
2635
|
+
return "GMT" + Oe(s, ":");
|
|
2636
2636
|
}
|
|
2637
2637
|
},
|
|
2638
2638
|
// Seconds timestamp
|
|
@@ -2650,9 +2650,9 @@ function va(i, t = "") {
|
|
|
2650
2650
|
return n === 0 ? e + String(a) : e + String(a) + t + q(n, 2);
|
|
2651
2651
|
}
|
|
2652
2652
|
function ba(i, t) {
|
|
2653
|
-
return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) :
|
|
2653
|
+
return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) : Oe(i, t);
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function Oe(i, t = "") {
|
|
2656
2656
|
const e = i > 0 ? "-" : "+", s = Math.abs(i), a = q(Math.trunc(s / 60), 2), n = q(s % 60, 2);
|
|
2657
2657
|
return e + a + t + n;
|
|
2658
2658
|
}
|
|
@@ -2776,16 +2776,16 @@ function Ao(i, t, e = "long") {
|
|
|
2776
2776
|
timeZoneName: e
|
|
2777
2777
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
2778
2778
|
}
|
|
2779
|
-
const ya = {},
|
|
2780
|
-
function
|
|
2779
|
+
const ya = {}, wi = {};
|
|
2780
|
+
function Pe(i, t) {
|
|
2781
2781
|
try {
|
|
2782
2782
|
const e = (ya[i] || (ya[i] = new Intl.DateTimeFormat("en-US", {
|
|
2783
2783
|
timeZone: i,
|
|
2784
2784
|
timeZoneName: "longOffset"
|
|
2785
2785
|
}).format))(t).split("GMT")[1];
|
|
2786
|
-
return e in
|
|
2786
|
+
return e in wi ? wi[e] : $a(e, e.split(":"));
|
|
2787
2787
|
} catch {
|
|
2788
|
-
if (i in
|
|
2788
|
+
if (i in wi) return wi[i];
|
|
2789
2789
|
const e = i == null ? void 0 : i.match(Eo);
|
|
2790
2790
|
return e ? $a(i, e.slice(1)) : NaN;
|
|
2791
2791
|
}
|
|
@@ -2793,23 +2793,23 @@ function Me(i, t) {
|
|
|
2793
2793
|
const Eo = /([+-]\d\d):?(\d\d)?/;
|
|
2794
2794
|
function $a(i, t) {
|
|
2795
2795
|
const e = +(t[0] || 0), s = +(t[1] || 0), a = +(t[2] || 0) / 60;
|
|
2796
|
-
return
|
|
2796
|
+
return wi[i] = e * 60 + s > 0 ? e * 60 + s + a : e * 60 - s - a;
|
|
2797
2797
|
}
|
|
2798
|
-
let
|
|
2798
|
+
let xi = class Si extends Date {
|
|
2799
2799
|
//#region static
|
|
2800
2800
|
constructor(...t) {
|
|
2801
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(
|
|
2801
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Pe(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Qa(this), Is(this)) : this.setTime(Date.now());
|
|
2802
2802
|
}
|
|
2803
2803
|
static tz(t, ...e) {
|
|
2804
|
-
return e.length ? new
|
|
2804
|
+
return e.length ? new Si(...e, t) : new Si(Date.now(), t);
|
|
2805
2805
|
}
|
|
2806
2806
|
//#endregion
|
|
2807
2807
|
//#region time zone
|
|
2808
2808
|
withTimeZone(t) {
|
|
2809
|
-
return new
|
|
2809
|
+
return new Si(+this, t);
|
|
2810
2810
|
}
|
|
2811
2811
|
getTimezoneOffset() {
|
|
2812
|
-
const t = -
|
|
2812
|
+
const t = -Pe(this.timeZone, this);
|
|
2813
2813
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
2814
2814
|
}
|
|
2815
2815
|
//#endregion
|
|
@@ -2820,7 +2820,7 @@ let wi = class xi extends Date {
|
|
|
2820
2820
|
//#endregion
|
|
2821
2821
|
//#region date-fns integration
|
|
2822
2822
|
[Symbol.for("constructDateFrom")](t) {
|
|
2823
|
-
return new
|
|
2823
|
+
return new Si(+new Date(t), this.timeZone);
|
|
2824
2824
|
}
|
|
2825
2825
|
//#endregion
|
|
2826
2826
|
};
|
|
@@ -2828,22 +2828,22 @@ const _a = /^(get|set)(?!UTC)/;
|
|
|
2828
2828
|
Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
|
|
2829
2829
|
if (!_a.test(i)) return;
|
|
2830
2830
|
const t = i.replace(_a, "$1UTC");
|
|
2831
|
-
|
|
2831
|
+
xi.prototype[t] && (i.startsWith("get") ? xi.prototype[i] = function() {
|
|
2832
2832
|
return this.internal[t]();
|
|
2833
|
-
} : (
|
|
2833
|
+
} : (xi.prototype[i] = function() {
|
|
2834
2834
|
return Date.prototype[t].apply(this.internal, arguments), Oo(this), +this;
|
|
2835
|
-
},
|
|
2835
|
+
}, xi.prototype[t] = function() {
|
|
2836
2836
|
return Date.prototype[t].apply(this, arguments), Is(this), +this;
|
|
2837
2837
|
}));
|
|
2838
2838
|
});
|
|
2839
2839
|
function Is(i) {
|
|
2840
|
-
i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-
|
|
2840
|
+
i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Pe(i.timeZone, i) * 60));
|
|
2841
2841
|
}
|
|
2842
2842
|
function Oo(i) {
|
|
2843
2843
|
Date.prototype.setFullYear.call(i, i.internal.getUTCFullYear(), i.internal.getUTCMonth(), i.internal.getUTCDate()), Date.prototype.setHours.call(i, i.internal.getUTCHours(), i.internal.getUTCMinutes(), i.internal.getUTCSeconds(), i.internal.getUTCMilliseconds()), Qa(i);
|
|
2844
2844
|
}
|
|
2845
2845
|
function Qa(i) {
|
|
2846
|
-
const t =
|
|
2846
|
+
const t = Pe(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
|
|
2847
2847
|
s.setUTCHours(s.getUTCHours() - 1);
|
|
2848
2848
|
const a = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), n = -(/* @__PURE__ */ new Date(+s)).getTimezoneOffset(), r = a - n, l = Date.prototype.getHours.apply(i) !== i.internal.getUTCHours();
|
|
2849
2849
|
r && l && i.internal.setUTCMinutes(i.internal.getUTCMinutes() + r);
|
|
@@ -2851,19 +2851,19 @@ function Qa(i) {
|
|
|
2851
2851
|
d && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + d);
|
|
2852
2852
|
const p = /* @__PURE__ */ new Date(+i);
|
|
2853
2853
|
p.setUTCSeconds(0);
|
|
2854
|
-
const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(
|
|
2854
|
+
const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Pe(i.timeZone, i) * 60)) % 60;
|
|
2855
2855
|
(f || m) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + m));
|
|
2856
|
-
const y =
|
|
2856
|
+
const y = Pe(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = k - d;
|
|
2857
2857
|
if (w && C) {
|
|
2858
2858
|
Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
|
|
2859
|
-
const O =
|
|
2859
|
+
const O = Pe(i.timeZone, i), T = O > 0 ? Math.floor(O) : Math.ceil(O), P = b - T;
|
|
2860
2860
|
P && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + P), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + P));
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
let Rs = class
|
|
2863
|
+
let Rs = class Ci extends xi {
|
|
2864
2864
|
//#region static
|
|
2865
2865
|
static tz(t, ...e) {
|
|
2866
|
-
return e.length ? new
|
|
2866
|
+
return e.length ? new Ci(...e, t) : new Ci(Date.now(), t);
|
|
2867
2867
|
}
|
|
2868
2868
|
//#endregion
|
|
2869
2869
|
//#region representation
|
|
@@ -2908,11 +2908,11 @@ let Rs = class Si extends wi {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
//#endregion
|
|
2910
2910
|
withTimeZone(t) {
|
|
2911
|
-
return new
|
|
2911
|
+
return new Ci(+this, t);
|
|
2912
2912
|
}
|
|
2913
2913
|
//#region date-fns integration
|
|
2914
2914
|
[Symbol.for("constructDateFrom")](t) {
|
|
2915
|
-
return new
|
|
2915
|
+
return new Ci(+new Date(t), this.timeZone);
|
|
2916
2916
|
}
|
|
2917
2917
|
//#endregion
|
|
2918
2918
|
};
|
|
@@ -2953,7 +2953,7 @@ const nt = (i) => {
|
|
|
2953
2953
|
return /* @__PURE__ */ new Date();
|
|
2954
2954
|
const s = new Date(i, t, e);
|
|
2955
2955
|
return isNaN(s.getTime()) ? /* @__PURE__ */ new Date() : s;
|
|
2956
|
-
},
|
|
2956
|
+
}, $i = (i) => {
|
|
2957
2957
|
let t;
|
|
2958
2958
|
return typeof i == "number" ? t = new Rs(i, window.pktTz) : t = new Rs(i, window.pktTz), t.setHours(12, 0, 0, 0), t;
|
|
2959
2959
|
}, Po = (i) => !i || isNaN(i.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(i), Do = (i, t, e) => {
|
|
@@ -2977,7 +2977,7 @@ const nt = (i) => {
|
|
|
2977
2977
|
}), Bo = (i, t) => {
|
|
2978
2978
|
const e = _e(i), s = _e(t);
|
|
2979
2979
|
return !e || !s ? !1 : e <= s;
|
|
2980
|
-
},
|
|
2980
|
+
}, Ti = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], Vo = (i) => i.join(","), sn = (i) => Ti(i), jo = (i) => i ? $e(i) : null, Fo = (i) => {
|
|
2981
2981
|
if (typeof i == "string")
|
|
2982
2982
|
return i.split(",").map((t) => $e(t));
|
|
2983
2983
|
if (Array.isArray(i))
|
|
@@ -2986,7 +2986,7 @@ const nt = (i) => {
|
|
|
2986
2986
|
csvToArray: sn,
|
|
2987
2987
|
stringToDate: jo,
|
|
2988
2988
|
stringsToDate: Fo
|
|
2989
|
-
}, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } },
|
|
2989
|
+
}, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, Ee = {
|
|
2990
2990
|
props: Uo
|
|
2991
2991
|
};
|
|
2992
2992
|
var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t, e, s) => {
|
|
@@ -2996,7 +2996,7 @@ var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t,
|
|
|
2996
2996
|
};
|
|
2997
2997
|
let z = class extends K {
|
|
2998
2998
|
constructor() {
|
|
2999
|
-
super(...arguments), this.multiple =
|
|
2999
|
+
super(...arguments), this.multiple = Ee.props.multiple.default, this.maxMultiple = Ee.props.maxMultiple.default, this.range = Ee.props.range.default, this.weeknumbers = Ee.props.weeknumbers.default, this.withcontrols = Ee.props.withcontrols.default, this.selected = [], this.earliest = Ee.props.earliest.default, this.latest = Ee.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.dayStringsLong = this.strings.dates.days, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
|
|
3000
3000
|
}
|
|
3001
3001
|
/**
|
|
3002
3002
|
* Runs on mount, used to set up various values and whatever you need to run
|
|
@@ -3036,9 +3036,9 @@ let z = class extends K {
|
|
|
3036
3036
|
setCurrentMonth() {
|
|
3037
3037
|
if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
|
|
3038
3038
|
const t = $e(this.selected[this.selected.length - 1]);
|
|
3039
|
-
this.currentmonth = isNaN(t.getTime()) ?
|
|
3040
|
-
} else this.currentmonth === null && (this.currentmonth =
|
|
3041
|
-
(!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth =
|
|
3039
|
+
this.currentmonth = isNaN(t.getTime()) ? $i(/* @__PURE__ */ new Date()) : t;
|
|
3040
|
+
} else this.currentmonth === null && (this.currentmonth = $i(/* @__PURE__ */ new Date()));
|
|
3041
|
+
(!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = $i(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
|
|
3042
3042
|
}
|
|
3043
3043
|
handleKeydown(t) {
|
|
3044
3044
|
switch (t.key) {
|
|
@@ -3314,7 +3314,7 @@ let z = class extends K {
|
|
|
3314
3314
|
this.changeMonth(e, t);
|
|
3315
3315
|
}
|
|
3316
3316
|
changeMonth(t, e) {
|
|
3317
|
-
this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth =
|
|
3317
|
+
this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth = $i(new Date(this.year, this.month, 1)), this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [];
|
|
3318
3318
|
}
|
|
3319
3319
|
isRangeAllowed(t) {
|
|
3320
3320
|
let e = !0;
|
|
@@ -3379,7 +3379,7 @@ let z = class extends K {
|
|
|
3379
3379
|
), Promise.resolve();
|
|
3380
3380
|
}
|
|
3381
3381
|
focusOnCurrentDate() {
|
|
3382
|
-
const t = nt(
|
|
3382
|
+
const t = nt($i(/* @__PURE__ */ new Date())), e = this.querySelector(`button[data-date="${t}"]`);
|
|
3383
3383
|
if (e instanceof HTMLButtonElement)
|
|
3384
3384
|
this.focusedDate = t, e.focus();
|
|
3385
3385
|
else {
|
|
@@ -3591,23 +3591,23 @@ ae([
|
|
|
3591
3591
|
Gt = ae([
|
|
3592
3592
|
j("pkt-tag")
|
|
3593
3593
|
], Gt);
|
|
3594
|
-
var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor,
|
|
3594
|
+
var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, di = (i, t, e, s) => {
|
|
3595
3595
|
for (var a = s > 1 ? void 0 : s ? Yo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
3596
3596
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
3597
3597
|
return s && a && Go(t, e, a), a;
|
|
3598
3598
|
};
|
|
3599
|
-
let
|
|
3599
|
+
let we = class extends ls {
|
|
3600
3600
|
constructor() {
|
|
3601
|
-
super(...arguments), this.size = void 0, this.level = 2, this.visuallyHidden = !1, this.align = void 0;
|
|
3601
|
+
super(...arguments), this.size = void 0, this.level = 2, this.weight = void 0, this.visuallyHidden = !1, this.align = void 0;
|
|
3602
3602
|
}
|
|
3603
3603
|
connectedCallback() {
|
|
3604
3604
|
super.connectedCallback(), this.setAttribute("role", "heading"), this.setAttribute("aria-level", String(this.level)), this.updateHostClasses();
|
|
3605
3605
|
}
|
|
3606
3606
|
attributeChangedCallback(t, e, s) {
|
|
3607
|
-
super.attributeChangedCallback(t, e, s), t === "level" && s && this.setLevel(Number(s)), t === "visuallyHidden" && (this.visuallyHidden = s !== null && s !== "false"), (t === "size" || t === "visuallyHidden" || t === "align") && this.updateHostClasses();
|
|
3607
|
+
super.attributeChangedCallback(t, e, s), t === "level" && s && this.setLevel(Number(s)), t === "visuallyHidden" && (this.visuallyHidden = s !== null && s !== "false"), (t === "size" || t === "visuallyHidden" || t === "align" || t === "weight") && this.updateHostClasses();
|
|
3608
3608
|
}
|
|
3609
3609
|
updated(t) {
|
|
3610
|
-
super.updated(t), t.has("level") && (this.setLevel(this.level), this.hasAttribute("size") || (this.size = this.defaultSizeForLevel)), !this.hasAttribute("size") && (t.has("level") || this.size === void 0) && (this.size = this.defaultSizeForLevel), (t.has("size") || t.has("visuallyHidden") || t.has("align")) && this.updateHostClasses();
|
|
3610
|
+
super.updated(t), t.has("level") && (this.setLevel(this.level), this.hasAttribute("size") || (this.size = this.defaultSizeForLevel), this.hasAttribute("weight") || (this.weight = this.defaultWeightForLevel)), !this.hasAttribute("size") && (t.has("level") || this.size === void 0) && (this.size = this.defaultSizeForLevel), (t.has("size") || t.has("visuallyHidden") || t.has("align") || t.has("weight")) && this.updateHostClasses();
|
|
3611
3611
|
}
|
|
3612
3612
|
setLevel(t) {
|
|
3613
3613
|
t >= 1 && t <= 6 ? (this.level = t, this.setAttribute("aria-level", String(t))) : console.warn(`Invalid heading level: ${t}. Must be between 1 and 6.`);
|
|
@@ -3630,6 +3630,24 @@ let Le = class extends ls {
|
|
|
3630
3630
|
return "medium";
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
|
+
get defaultWeightForLevel() {
|
|
3634
|
+
switch (this.level) {
|
|
3635
|
+
case 1:
|
|
3636
|
+
return "regular";
|
|
3637
|
+
case 2:
|
|
3638
|
+
return "regular";
|
|
3639
|
+
case 3:
|
|
3640
|
+
return "medium";
|
|
3641
|
+
case 4:
|
|
3642
|
+
return "medium";
|
|
3643
|
+
case 5:
|
|
3644
|
+
return "medium";
|
|
3645
|
+
case 6:
|
|
3646
|
+
return "medium";
|
|
3647
|
+
default:
|
|
3648
|
+
return "medium";
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3633
3651
|
updateHostClasses() {
|
|
3634
3652
|
this.classList.remove(
|
|
3635
3653
|
"pkt-heading",
|
|
@@ -3641,28 +3659,35 @@ let Le = class extends ls {
|
|
|
3641
3659
|
"pkt-sr-only",
|
|
3642
3660
|
"pkt-heading--start",
|
|
3643
3661
|
"pkt-heading--center",
|
|
3644
|
-
"pkt-heading--end"
|
|
3645
|
-
|
|
3662
|
+
"pkt-heading--end",
|
|
3663
|
+
"pkt-heading--light",
|
|
3664
|
+
"pkt-heading--regular",
|
|
3665
|
+
"pkt-heading--medium",
|
|
3666
|
+
"pkt-heading--bold"
|
|
3667
|
+
), this.classList.add("pkt-heading"), this.size && this.classList.add(`pkt-heading--${this.size}`), this.weight && this.classList.add(`pkt-heading--fw-${this.weight}`), this.visuallyHidden && this.classList.add("pkt-sr-only"), this.align && this.classList.add(`pkt-heading--${this.align}`);
|
|
3646
3668
|
}
|
|
3647
3669
|
render() {
|
|
3648
3670
|
return u`<slot></slot>`;
|
|
3649
3671
|
}
|
|
3650
3672
|
};
|
|
3651
|
-
|
|
3673
|
+
di([
|
|
3652
3674
|
o({ type: String, reflect: !0 })
|
|
3653
|
-
],
|
|
3654
|
-
|
|
3675
|
+
], we.prototype, "size", 2);
|
|
3676
|
+
di([
|
|
3655
3677
|
o({ type: Number, reflect: !0 })
|
|
3656
|
-
],
|
|
3657
|
-
|
|
3678
|
+
], we.prototype, "level", 2);
|
|
3679
|
+
di([
|
|
3680
|
+
o({ type: String, reflect: !0 })
|
|
3681
|
+
], we.prototype, "weight", 2);
|
|
3682
|
+
di([
|
|
3658
3683
|
o({ type: Boolean, reflect: !0 })
|
|
3659
|
-
],
|
|
3660
|
-
|
|
3684
|
+
], we.prototype, "visuallyHidden", 2);
|
|
3685
|
+
di([
|
|
3661
3686
|
o({ type: String, reflect: !0 })
|
|
3662
|
-
],
|
|
3663
|
-
|
|
3687
|
+
], we.prototype, "align", 2);
|
|
3688
|
+
we = di([
|
|
3664
3689
|
j("pkt-heading")
|
|
3665
|
-
],
|
|
3690
|
+
], we);
|
|
3666
3691
|
const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Qe = {
|
|
3667
3692
|
props: Zo
|
|
3668
3693
|
};
|
|
@@ -3734,6 +3759,7 @@ let ht = class extends K {
|
|
|
3734
3759
|
.level=${this.headinglevel || 3}
|
|
3735
3760
|
size="medium"
|
|
3736
3761
|
nospacing
|
|
3762
|
+
weight="regular"
|
|
3737
3763
|
>
|
|
3738
3764
|
${this.heading}
|
|
3739
3765
|
</pkt-heading>
|
|
@@ -3747,6 +3773,7 @@ let ht = class extends K {
|
|
|
3747
3773
|
class="pkt-card__link-heading pkt-card__heading"
|
|
3748
3774
|
.level=${this.headinglevel || 3}
|
|
3749
3775
|
size="medium"
|
|
3776
|
+
weight="regular"
|
|
3750
3777
|
nospacing
|
|
3751
3778
|
>
|
|
3752
3779
|
<a
|
|
@@ -3916,22 +3943,22 @@ const xa = (i, t, e) => {
|
|
|
3916
3943
|
let p, m, f = 0, y = a.length - 1, b = 0, k = n.length - 1;
|
|
3917
3944
|
for (; f <= y && b <= k; ) if (a[f] === null) f++;
|
|
3918
3945
|
else if (a[y] === null) y--;
|
|
3919
|
-
else if (l[f] === r[b]) d[b] =
|
|
3920
|
-
else if (l[y] === r[k]) d[k] =
|
|
3921
|
-
else if (l[f] === r[k]) d[k] =
|
|
3922
|
-
else if (l[y] === r[b]) d[b] =
|
|
3946
|
+
else if (l[f] === r[b]) d[b] = Ae(a[f], n[b]), f++, b++;
|
|
3947
|
+
else if (l[y] === r[k]) d[k] = Ae(a[y], n[k]), y--, k--;
|
|
3948
|
+
else if (l[f] === r[k]) d[k] = Ae(a[f], n[k]), bi(i, d[k + 1], a[f]), f++, k--;
|
|
3949
|
+
else if (l[y] === r[b]) d[b] = Ae(a[y], n[b]), bi(i, a[f], a[y]), y--, b++;
|
|
3923
3950
|
else if (p === void 0 && (p = xa(r, b, k), m = xa(l, f, y)), p.has(l[f])) if (p.has(l[y])) {
|
|
3924
3951
|
const w = m.get(r[b]), C = w !== void 0 ? a[w] : null;
|
|
3925
3952
|
if (C === null) {
|
|
3926
|
-
const O =
|
|
3927
|
-
|
|
3928
|
-
} else d[b] =
|
|
3953
|
+
const O = bi(i, a[f]);
|
|
3954
|
+
Ae(O, n[b]), d[b] = O;
|
|
3955
|
+
} else d[b] = Ae(C, n[b]), bi(i, a[f], C), a[w] = null;
|
|
3929
3956
|
b++;
|
|
3930
3957
|
} else ys(a[y]), y--;
|
|
3931
3958
|
else ys(a[f]), f++;
|
|
3932
3959
|
for (; b <= k; ) {
|
|
3933
|
-
const w =
|
|
3934
|
-
|
|
3960
|
+
const w = bi(i, d[k + 1]);
|
|
3961
|
+
Ae(w, n[b]), d[b++] = w;
|
|
3935
3962
|
}
|
|
3936
3963
|
for (; f <= y; ) {
|
|
3937
3964
|
const w = a[f++];
|
|
@@ -4051,9 +4078,9 @@ function il() {
|
|
|
4051
4078
|
return a.has(vs) && vs.constructor.formAssociated && !(ft && ft.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
4052
4079
|
}
|
|
4053
4080
|
});
|
|
4054
|
-
let
|
|
4055
|
-
for (;
|
|
4056
|
-
T(
|
|
4081
|
+
let fi = Pt.nextNode();
|
|
4082
|
+
for (; fi; )
|
|
4083
|
+
T(fi), fi = Pt.nextNode();
|
|
4057
4084
|
}
|
|
4058
4085
|
U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, N), P(U, !0));
|
|
4059
4086
|
}), V.forEach((U) => {
|
|
@@ -4067,7 +4094,7 @@ function il() {
|
|
|
4067
4094
|
const { removedNodes: v } = c;
|
|
4068
4095
|
v.forEach((_) => {
|
|
4069
4096
|
const I = b.get(c.target);
|
|
4070
|
-
a.has(_) &&
|
|
4097
|
+
a.has(_) && Te(_), I.disconnect();
|
|
4071
4098
|
});
|
|
4072
4099
|
});
|
|
4073
4100
|
}
|
|
@@ -4107,7 +4134,7 @@ function il() {
|
|
|
4107
4134
|
Qt(Ut(g.target));
|
|
4108
4135
|
}, te = (g) => {
|
|
4109
4136
|
Qt(Ut(g.target));
|
|
4110
|
-
},
|
|
4137
|
+
}, Se = (g) => {
|
|
4111
4138
|
const c = ["button[type=submit]", "input[type=submit]", "button:not([type])"].map((v) => `${v}:not([disabled])`).map((v) => `${v}:not([form])${g.id ? `,${v}[form='${g.id}']` : ""}`).join(",");
|
|
4112
4139
|
g.addEventListener("click", (v) => {
|
|
4113
4140
|
if (v.target.closest(c)) {
|
|
@@ -4129,7 +4156,7 @@ function il() {
|
|
|
4129
4156
|
_.add(g);
|
|
4130
4157
|
else {
|
|
4131
4158
|
const I = /* @__PURE__ */ new Set();
|
|
4132
|
-
I.add(g), d.set(c, I),
|
|
4159
|
+
I.add(g), d.set(c, I), Se(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
|
|
4133
4160
|
}
|
|
4134
4161
|
r.set(c, { ref: g, internals: v }), g.constructor.formAssociated && g.formAssociatedCallback && setTimeout(() => {
|
|
4135
4162
|
g.formAssociatedCallback.apply(g, [c]);
|
|
@@ -4141,12 +4168,12 @@ function il() {
|
|
|
4141
4168
|
}, ot = (g, c, v = DOMException) => {
|
|
4142
4169
|
if (!g.constructor.formAssociated)
|
|
4143
4170
|
throw new v(c);
|
|
4144
|
-
},
|
|
4171
|
+
}, Ce = (g, c, v) => {
|
|
4145
4172
|
const _ = d.get(g);
|
|
4146
4173
|
return _ && _.size && _.forEach((I) => {
|
|
4147
4174
|
a.get(I)[v]() || (c = !1);
|
|
4148
4175
|
}), c;
|
|
4149
|
-
},
|
|
4176
|
+
}, Te = (g) => {
|
|
4150
4177
|
if (g.constructor.formAssociated) {
|
|
4151
4178
|
const c = a.get(g), { labels: v, form: _ } = c;
|
|
4152
4179
|
xt(g, v), le(g, _, c);
|
|
@@ -4169,7 +4196,7 @@ function il() {
|
|
|
4169
4196
|
function Ge(g, c) {
|
|
4170
4197
|
g.toggleAttribute(c, !0), g.part && g.part.add(c);
|
|
4171
4198
|
}
|
|
4172
|
-
class
|
|
4199
|
+
class mi extends Set {
|
|
4173
4200
|
static get isPolyfilled() {
|
|
4174
4201
|
return !0;
|
|
4175
4202
|
}
|
|
@@ -4236,11 +4263,11 @@ function il() {
|
|
|
4236
4263
|
HTMLFormElement.prototype.reportValidity = _;
|
|
4237
4264
|
function v(...V) {
|
|
4238
4265
|
let U = g.apply(this, V);
|
|
4239
|
-
return
|
|
4266
|
+
return Ce(this, U, "checkValidity");
|
|
4240
4267
|
}
|
|
4241
4268
|
function _(...V) {
|
|
4242
4269
|
let U = c.apply(this, V);
|
|
4243
|
-
return
|
|
4270
|
+
return Ce(this, U, "reportValidity");
|
|
4244
4271
|
}
|
|
4245
4272
|
const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
|
|
4246
4273
|
Object.defineProperty(HTMLFormElement.prototype, "elements", {
|
|
@@ -4248,7 +4275,7 @@ function il() {
|
|
|
4248
4275
|
const U = I.call(this, ...V), Mt = Array.from(d.get(this) || []);
|
|
4249
4276
|
if (Mt.length === 0)
|
|
4250
4277
|
return U;
|
|
4251
|
-
const ft = Array.from(U).concat(Mt).sort((Pt,
|
|
4278
|
+
const ft = Array.from(U).concat(Mt).sort((Pt, fi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(fi) & 2 ? 1 : -1 : 0);
|
|
4252
4279
|
return new zi(ft);
|
|
4253
4280
|
}
|
|
4254
4281
|
});
|
|
@@ -4261,7 +4288,7 @@ function il() {
|
|
|
4261
4288
|
if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
|
|
4262
4289
|
throw new TypeError("Illegal constructor");
|
|
4263
4290
|
const v = c.getRootNode(), _ = new us();
|
|
4264
|
-
this.states = new
|
|
4291
|
+
this.states = new mi(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && mt(v);
|
|
4265
4292
|
}
|
|
4266
4293
|
checkValidity() {
|
|
4267
4294
|
const c = t.get(this);
|
|
@@ -4373,9 +4400,9 @@ function il() {
|
|
|
4373
4400
|
}
|
|
4374
4401
|
let zs = !1, Ws = !1;
|
|
4375
4402
|
function gs(g) {
|
|
4376
|
-
Ws || (Ws = !0, window.CustomStateSet =
|
|
4403
|
+
Ws || (Ws = !0, window.CustomStateSet = mi, g && (HTMLElement.prototype.attachInternals = function(...c) {
|
|
4377
4404
|
const v = g.call(this, c);
|
|
4378
|
-
return v.states = new
|
|
4405
|
+
return v.states = new mi(this), v;
|
|
4379
4406
|
}));
|
|
4380
4407
|
}
|
|
4381
4408
|
function Ks(g = !0) {
|
|
@@ -4386,7 +4413,7 @@ function il() {
|
|
|
4386
4413
|
if (_.formAssociated) {
|
|
4387
4414
|
const V = _.prototype.connectedCallback;
|
|
4388
4415
|
_.prototype.connectedCallback = function() {
|
|
4389
|
-
k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this),
|
|
4416
|
+
k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this), Te(this);
|
|
4390
4417
|
};
|
|
4391
4418
|
}
|
|
4392
4419
|
c.call(this, v, _, I);
|
|
@@ -6165,7 +6192,7 @@ Vi([
|
|
|
6165
6192
|
ai = Vi([
|
|
6166
6193
|
j("pkt-date-tags")
|
|
6167
6194
|
], ai);
|
|
6168
|
-
const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } },
|
|
6195
|
+
const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, _i = {
|
|
6169
6196
|
props: xl
|
|
6170
6197
|
}, Be = () => {
|
|
6171
6198
|
const i = navigator.userAgent;
|
|
@@ -6203,7 +6230,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6203
6230
|
getInputType() {
|
|
6204
6231
|
return Be() ? "text" : "date";
|
|
6205
6232
|
}
|
|
6206
|
-
},
|
|
6233
|
+
}, Di = {
|
|
6207
6234
|
/**
|
|
6208
6235
|
* Submits the form that contains the given element
|
|
6209
6236
|
*/
|
|
@@ -6255,7 +6282,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6255
6282
|
let l = e ? "calc(100% - 30px)" : "100%";
|
|
6256
6283
|
a && a.top + r > window.innerHeight && a.top - r > 0 && (l = `calc(100% - ${n}px - ${r}px)`), i.value.style.top = l;
|
|
6257
6284
|
}
|
|
6258
|
-
},
|
|
6285
|
+
}, Ii = {
|
|
6259
6286
|
/**
|
|
6260
6287
|
* Generates input classes for datepicker
|
|
6261
6288
|
*/
|
|
@@ -6316,7 +6343,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6316
6343
|
l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
|
|
6317
6344
|
} else t[0] && s();
|
|
6318
6345
|
}
|
|
6319
|
-
},
|
|
6346
|
+
}, De = {
|
|
6320
6347
|
/**
|
|
6321
6348
|
* Handles common keyboard interactions for datepicker inputs
|
|
6322
6349
|
*/
|
|
@@ -6548,10 +6575,10 @@ let It = class extends K {
|
|
|
6548
6575
|
t.preventDefault(), this.dispatchToggleCalendar(t);
|
|
6549
6576
|
}}
|
|
6550
6577
|
?disabled=${this.disabled}
|
|
6551
|
-
@keydown=${(t) =>
|
|
6578
|
+
@keydown=${(t) => De.handleInputKeydown(
|
|
6552
6579
|
t,
|
|
6553
6580
|
(e) => this.dispatchToggleCalendar(e),
|
|
6554
|
-
() =>
|
|
6581
|
+
() => Di.submitFormOrFallback(this.internals, () => {
|
|
6555
6582
|
var e;
|
|
6556
6583
|
return (e = this.inputRef.value) == null ? void 0 : e.blur();
|
|
6557
6584
|
}),
|
|
@@ -6582,10 +6609,10 @@ let It = class extends K {
|
|
|
6582
6609
|
${E(this.inputRef)}
|
|
6583
6610
|
/>
|
|
6584
6611
|
<button
|
|
6585
|
-
class="${M(
|
|
6612
|
+
class="${M(Ii.getButtonClasses())}"
|
|
6586
6613
|
type="button"
|
|
6587
6614
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6588
|
-
@keydown=${(t) =>
|
|
6615
|
+
@keydown=${(t) => De.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6589
6616
|
?disabled=${this.disabled}
|
|
6590
6617
|
${E(this.btnRef)}
|
|
6591
6618
|
>
|
|
@@ -6710,7 +6737,7 @@ let Tt = class extends K {
|
|
|
6710
6737
|
return this;
|
|
6711
6738
|
}
|
|
6712
6739
|
render() {
|
|
6713
|
-
const t =
|
|
6740
|
+
const t = Ii.getRangeLabelClasses(this.showRangeLabels);
|
|
6714
6741
|
return u`
|
|
6715
6742
|
<div class="pkt-input__container">
|
|
6716
6743
|
${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
|
|
@@ -6730,10 +6757,10 @@ let Tt = class extends K {
|
|
|
6730
6757
|
@touchend=${(e) => {
|
|
6731
6758
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6732
6759
|
}}
|
|
6733
|
-
@keydown=${(e) =>
|
|
6760
|
+
@keydown=${(e) => De.handleInputKeydown(
|
|
6734
6761
|
e,
|
|
6735
6762
|
(s) => this.dispatchToggleCalendar(s),
|
|
6736
|
-
() =>
|
|
6763
|
+
() => Di.submitFormOrFallback(
|
|
6737
6764
|
this.internals,
|
|
6738
6765
|
() => {
|
|
6739
6766
|
var s;
|
|
@@ -6794,10 +6821,10 @@ let Tt = class extends K {
|
|
|
6794
6821
|
@touchend=${(e) => {
|
|
6795
6822
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6796
6823
|
}}
|
|
6797
|
-
@keydown=${(e) =>
|
|
6824
|
+
@keydown=${(e) => De.handleInputKeydown(
|
|
6798
6825
|
e,
|
|
6799
6826
|
(s) => this.dispatchToggleCalendar(s),
|
|
6800
|
-
() =>
|
|
6827
|
+
() => Di.submitFormOrFallback(this.internals, () => {
|
|
6801
6828
|
var s;
|
|
6802
6829
|
return (s = this.inputRefTo.value) == null ? void 0 : s.blur();
|
|
6803
6830
|
}),
|
|
@@ -6834,10 +6861,10 @@ let Tt = class extends K {
|
|
|
6834
6861
|
${E(this.inputRefTo)}
|
|
6835
6862
|
/>
|
|
6836
6863
|
<button
|
|
6837
|
-
class="${M(
|
|
6864
|
+
class="${M(Ii.getButtonClasses())}"
|
|
6838
6865
|
type="button"
|
|
6839
6866
|
@click=${(e) => this.dispatchToggleCalendar(e)}
|
|
6840
|
-
@keydown=${(e) =>
|
|
6867
|
+
@keydown=${(e) => De.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
|
|
6841
6868
|
?disabled=${this.disabled}
|
|
6842
6869
|
${E(this.btnRef)}
|
|
6843
6870
|
>
|
|
@@ -6991,10 +7018,10 @@ let Nt = class extends K {
|
|
|
6991
7018
|
@focus=${() => {
|
|
6992
7019
|
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6993
7020
|
}}
|
|
6994
|
-
@keydown=${(t) =>
|
|
7021
|
+
@keydown=${(t) => De.handleInputKeydown(
|
|
6995
7022
|
t,
|
|
6996
7023
|
(e) => this.dispatchToggleCalendar(e),
|
|
6997
|
-
() =>
|
|
7024
|
+
() => Di.submitFormOrFallback(this.internals, () => {
|
|
6998
7025
|
var e;
|
|
6999
7026
|
return (e = this.inputRef.value) == null ? void 0 : e.blur();
|
|
7000
7027
|
}),
|
|
@@ -7008,10 +7035,10 @@ let Nt = class extends K {
|
|
|
7008
7035
|
${E(this.inputRef)}
|
|
7009
7036
|
/>
|
|
7010
7037
|
<button
|
|
7011
|
-
class="${M(
|
|
7038
|
+
class="${M(Ii.getButtonClasses())}"
|
|
7012
7039
|
type="button"
|
|
7013
7040
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
7014
|
-
@keydown=${(t) =>
|
|
7041
|
+
@keydown=${(t) => De.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
7015
7042
|
?disabled=${this.disabled}
|
|
7016
7043
|
${E(this.btnRef)}
|
|
7017
7044
|
>
|
|
@@ -7071,7 +7098,7 @@ let tt = class extends D {
|
|
|
7071
7098
|
* Housekeeping / lifecycle methods
|
|
7072
7099
|
*/
|
|
7073
7100
|
constructor() {
|
|
7074
|
-
super(), this._valueProperty = "", this.datepickerPopupRef = A(), this._value = [], this.label = "Datovelger", this.dateformat =
|
|
7101
|
+
super(), this._valueProperty = "", this.datepickerPopupRef = A(), this._value = [], this.label = "Datovelger", this.dateformat = _i.props.dateformat.default, this.multiple = _i.props.multiple.default, this.maxlength = null, this.range = _i.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = _i.props.weeknumbers.default, this.withcontrols = _i.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = A(), this.popupRef = A(), this.helptextSlot = A(), this.singleInputRef = A(), this.rangeInputRef = A(), this.multipleInputRef = A(), this.addToSelected = (i) => {
|
|
7075
7102
|
const t = this.datepickerPopupRef.value;
|
|
7076
7103
|
return t && typeof t.addToSelected == "function" ? t.addToSelected(i, this.min, this.max) : ns.addToSelected(i, this.calRef, this.min, this.max);
|
|
7077
7104
|
}, this.slotController = new rt(this, this.helptextSlot);
|
|
@@ -7100,7 +7127,7 @@ let tt = class extends D {
|
|
|
7100
7127
|
}
|
|
7101
7128
|
valueChanged(i, t) {
|
|
7102
7129
|
if (i === t) return;
|
|
7103
|
-
const e =
|
|
7130
|
+
const e = Ti(i), s = this.multiple && e.length > 1 ? Yi.filterSelectableDates(
|
|
7104
7131
|
e,
|
|
7105
7132
|
this.min,
|
|
7106
7133
|
this.max,
|
|
@@ -7116,14 +7143,14 @@ let tt = class extends D {
|
|
|
7116
7143
|
this._valueProperty !== a && (this._valueProperty = a), super.valueChanged(a, t);
|
|
7117
7144
|
}
|
|
7118
7145
|
attributeChangedCallback(i, t, e) {
|
|
7119
|
-
i === "value" && this.value !== t && this.valueChanged(e, t), i === "excludedates" && typeof this.excludedates == "string" && (this.excludedates =
|
|
7146
|
+
i === "value" && this.value !== t && this.valueChanged(e, t), i === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = Ti(e || "")), i === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = Ti(e || "")), super.attributeChangedCallback(i, t, e);
|
|
7120
7147
|
}
|
|
7121
7148
|
updated(i) {
|
|
7122
7149
|
if (i.has("value")) {
|
|
7123
7150
|
const t = Array.isArray(this.value) ? this.value.join(",") : this.value, e = i.get("value"), s = Array.isArray(e) ? e.join(",") : e;
|
|
7124
7151
|
this.valueChanged(t, s);
|
|
7125
7152
|
}
|
|
7126
|
-
(i.has("multiple") || i.has("range")) && (this.name = Yi.normalizeNameForMultiple(this.name, this.multiple, this.range) || this.name), i.has("multiple") && (this.multiple && !Array.isArray(this._value) ? this._value =
|
|
7153
|
+
(i.has("multiple") || i.has("range")) && (this.name = Yi.normalizeNameForMultiple(this.name, this.multiple, this.range) || this.name), i.has("multiple") && (this.multiple && !Array.isArray(this._value) ? this._value = Ti(this.value) : !this.multiple && Array.isArray(this._value) && (this._value = this._value.filter(Boolean)), !this.multiple && !this.range && Array.isArray(this._value) && (this._value = [this._value[0] ?? ""])), super.updated(i);
|
|
7127
7154
|
}
|
|
7128
7155
|
/**
|
|
7129
7156
|
* Element references
|
|
@@ -7221,7 +7248,7 @@ let tt = class extends D {
|
|
|
7221
7248
|
}}
|
|
7222
7249
|
@manage-validity=${(i) => this.manageValidity(i.detail)}
|
|
7223
7250
|
@validate-date-input=${(i) => {
|
|
7224
|
-
|
|
7251
|
+
Di.validateDateInput(i.detail, this.internals, this.min, this.max, this.strings);
|
|
7225
7252
|
}}
|
|
7226
7253
|
@handle-date-select=${(i) => {
|
|
7227
7254
|
var t, e;
|
|
@@ -7299,7 +7326,7 @@ let tt = class extends D {
|
|
|
7299
7326
|
`;
|
|
7300
7327
|
}
|
|
7301
7328
|
render() {
|
|
7302
|
-
return this.inputClasses =
|
|
7329
|
+
return this.inputClasses = Ii.getInputClasses(
|
|
7303
7330
|
this.fullwidth,
|
|
7304
7331
|
this.showRangeLabels,
|
|
7305
7332
|
this.multiple,
|
|
@@ -7452,7 +7479,7 @@ tt = ct([
|
|
|
7452
7479
|
const Rl = { href: { default: "#" }, target: { default: "_self" } }, Ta = {
|
|
7453
7480
|
props: Rl
|
|
7454
7481
|
};
|
|
7455
|
-
var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor,
|
|
7482
|
+
var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, ci = (i, t, e, s) => {
|
|
7456
7483
|
for (var a = s > 1 ? void 0 : s ? Bl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7457
7484
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7458
7485
|
return s && a && Ll(t, e, a), a;
|
|
@@ -7477,22 +7504,22 @@ let Ve = class extends K {
|
|
|
7477
7504
|
>`;
|
|
7478
7505
|
}
|
|
7479
7506
|
};
|
|
7480
|
-
|
|
7507
|
+
ci([
|
|
7481
7508
|
o({ type: String, reflect: !0 })
|
|
7482
7509
|
], Ve.prototype, "href", 2);
|
|
7483
|
-
|
|
7510
|
+
ci([
|
|
7484
7511
|
o({ type: String, reflect: !0 })
|
|
7485
7512
|
], Ve.prototype, "iconName", 2);
|
|
7486
|
-
|
|
7513
|
+
ci([
|
|
7487
7514
|
o({ type: String, reflect: !0 })
|
|
7488
7515
|
], Ve.prototype, "iconPosition", 2);
|
|
7489
|
-
|
|
7516
|
+
ci([
|
|
7490
7517
|
o({ type: Boolean, reflect: !0 })
|
|
7491
7518
|
], Ve.prototype, "external", 2);
|
|
7492
|
-
|
|
7519
|
+
ci([
|
|
7493
7520
|
o({ type: String, reflect: !0 })
|
|
7494
7521
|
], Ve.prototype, "target", 2);
|
|
7495
|
-
Ve =
|
|
7522
|
+
Ve = ci([
|
|
7496
7523
|
j("pkt-link")
|
|
7497
7524
|
], Ve);
|
|
7498
7525
|
var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t, e, s) => {
|
|
@@ -7500,7 +7527,7 @@ var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t
|
|
|
7500
7527
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7501
7528
|
return s && a && Vl(t, e, a), a;
|
|
7502
7529
|
};
|
|
7503
|
-
let
|
|
7530
|
+
let xe = class extends K {
|
|
7504
7531
|
constructor() {
|
|
7505
7532
|
super(), this.defaultSlot = A(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
|
|
7506
7533
|
}
|
|
@@ -7523,31 +7550,31 @@ let we = class extends K {
|
|
|
7523
7550
|
};
|
|
7524
7551
|
ze([
|
|
7525
7552
|
o({ type: String, reflect: !0 })
|
|
7526
|
-
],
|
|
7553
|
+
], xe.prototype, "title", 2);
|
|
7527
7554
|
ze([
|
|
7528
7555
|
o({ type: String, reflect: !0 })
|
|
7529
|
-
],
|
|
7556
|
+
], xe.prototype, "href", 2);
|
|
7530
7557
|
ze([
|
|
7531
7558
|
o({ type: String, reflect: !0 })
|
|
7532
|
-
],
|
|
7559
|
+
], xe.prototype, "iconName", 2);
|
|
7533
7560
|
ze([
|
|
7534
7561
|
o({ type: Boolean, reflect: !0 })
|
|
7535
|
-
],
|
|
7562
|
+
], xe.prototype, "external", 2);
|
|
7536
7563
|
ze([
|
|
7537
7564
|
o({ type: Boolean, reflect: !0 })
|
|
7538
|
-
],
|
|
7565
|
+
], xe.prototype, "openInNewTab", 2);
|
|
7539
7566
|
ze([
|
|
7540
7567
|
o({ type: String, reflect: !0 })
|
|
7541
|
-
],
|
|
7542
|
-
|
|
7568
|
+
], xe.prototype, "skin", 2);
|
|
7569
|
+
xe = ze([
|
|
7543
7570
|
j("pkt-linkcard")
|
|
7544
|
-
],
|
|
7571
|
+
], xe);
|
|
7545
7572
|
var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
|
|
7546
7573
|
for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7547
7574
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7548
7575
|
return s && a && Fl(t, e, a), a;
|
|
7549
7576
|
};
|
|
7550
|
-
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.
|
|
7577
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.22/animations/";
|
|
7551
7578
|
let Yt = class extends K {
|
|
7552
7579
|
constructor() {
|
|
7553
7580
|
super(), this.defaultSlot = A(), this.delay = 0, this.inline = !1, this.isLoading = !0, this.message = null, this.size = "medium", this.variant = "shapes", this.loadingAnimationPath = window.pktAnimationPath, this._shouldDisplayLoader = !1, this.slotController = new rt(this, this.defaultSlot);
|
|
@@ -7630,7 +7657,7 @@ Yt = pe([
|
|
|
7630
7657
|
const Hl = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Ns = {
|
|
7631
7658
|
props: Hl
|
|
7632
7659
|
};
|
|
7633
|
-
var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor,
|
|
7660
|
+
var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, pi = (i, t, e, s) => {
|
|
7634
7661
|
for (var a = s > 1 ? void 0 : s ? zl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7635
7662
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7636
7663
|
return s && a && ql(t, e, a), a;
|
|
@@ -7669,22 +7696,22 @@ let je = class extends K {
|
|
|
7669
7696
|
</div>`;
|
|
7670
7697
|
}
|
|
7671
7698
|
};
|
|
7672
|
-
|
|
7699
|
+
pi([
|
|
7673
7700
|
o({ type: Boolean, reflect: !0 })
|
|
7674
7701
|
], je.prototype, "closable", 2);
|
|
7675
|
-
|
|
7702
|
+
pi([
|
|
7676
7703
|
o({ type: Boolean, reflect: !0 })
|
|
7677
7704
|
], je.prototype, "compact", 2);
|
|
7678
|
-
|
|
7705
|
+
pi([
|
|
7679
7706
|
o({ type: String, reflect: !0 })
|
|
7680
7707
|
], je.prototype, "title", 2);
|
|
7681
|
-
|
|
7708
|
+
pi([
|
|
7682
7709
|
o({ type: String, reflect: !0 })
|
|
7683
7710
|
], je.prototype, "skin", 2);
|
|
7684
|
-
|
|
7711
|
+
pi([
|
|
7685
7712
|
B()
|
|
7686
7713
|
], je.prototype, "_isClosed", 2);
|
|
7687
|
-
je =
|
|
7714
|
+
je = pi([
|
|
7688
7715
|
j("pkt-messagebox")
|
|
7689
7716
|
], je);
|
|
7690
7717
|
const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
|
|
@@ -8245,7 +8272,7 @@ function ah({ context: i, subscribe: t }) {
|
|
|
8245
8272
|
};
|
|
8246
8273
|
}
|
|
8247
8274
|
const on = Symbol("pkt-tabs-context");
|
|
8248
|
-
var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor,
|
|
8275
|
+
var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, ui = (i, t, e, s) => {
|
|
8249
8276
|
for (var a = s > 1 ? void 0 : s ? rh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8250
8277
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8251
8278
|
return s && a && nh(t, e, a), a;
|
|
@@ -8300,23 +8327,23 @@ let Fe = class extends K {
|
|
|
8300
8327
|
`;
|
|
8301
8328
|
}
|
|
8302
8329
|
};
|
|
8303
|
-
|
|
8330
|
+
ui([
|
|
8304
8331
|
o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
|
|
8305
8332
|
], Fe.prototype, "arrowNav", 2);
|
|
8306
|
-
|
|
8333
|
+
ui([
|
|
8307
8334
|
o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
|
|
8308
8335
|
], Fe.prototype, "disableArrowNav", 2);
|
|
8309
|
-
|
|
8336
|
+
ui([
|
|
8310
8337
|
B()
|
|
8311
8338
|
], Fe.prototype, "tabRefs", 2);
|
|
8312
|
-
|
|
8339
|
+
ui([
|
|
8313
8340
|
B()
|
|
8314
8341
|
], Fe.prototype, "tabCount", 2);
|
|
8315
|
-
|
|
8342
|
+
ui([
|
|
8316
8343
|
sh({ context: on }),
|
|
8317
8344
|
B()
|
|
8318
8345
|
], Fe.prototype, "context", 2);
|
|
8319
|
-
Fe =
|
|
8346
|
+
Fe = ui([
|
|
8320
8347
|
j("pkt-tabs")
|
|
8321
8348
|
], Fe);
|
|
8322
8349
|
var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
|
|
@@ -8665,7 +8692,7 @@ var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, cs = (i, t
|
|
|
8665
8692
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8666
8693
|
return s && a && mh(t, e, a), a;
|
|
8667
8694
|
};
|
|
8668
|
-
let
|
|
8695
|
+
let Ri = class extends D {
|
|
8669
8696
|
constructor() {
|
|
8670
8697
|
super(), this.inputRef = A(), this.helptextSlot = A(), this._optionsProp = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
|
|
8671
8698
|
}
|
|
@@ -8812,16 +8839,16 @@ let Ii = class extends D {
|
|
|
8812
8839
|
};
|
|
8813
8840
|
cs([
|
|
8814
8841
|
o({ type: Array, attribute: "options" })
|
|
8815
|
-
],
|
|
8842
|
+
], Ri.prototype, "_optionsProp", 2);
|
|
8816
8843
|
cs([
|
|
8817
8844
|
o({ type: String })
|
|
8818
|
-
],
|
|
8845
|
+
], Ri.prototype, "value", 2);
|
|
8819
8846
|
cs([
|
|
8820
8847
|
B()
|
|
8821
|
-
],
|
|
8822
|
-
|
|
8848
|
+
], Ri.prototype, "_options", 2);
|
|
8849
|
+
Ri = cs([
|
|
8823
8850
|
j("pkt-select")
|
|
8824
|
-
],
|
|
8851
|
+
], Ri);
|
|
8825
8852
|
var gh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, Fi = (i, t, e, s) => {
|
|
8826
8853
|
for (var a = s > 1 ? void 0 : s ? vh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8827
8854
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -8915,7 +8942,7 @@ ri = Fi([
|
|
|
8915
8942
|
], ri);
|
|
8916
8943
|
const L = Jt({
|
|
8917
8944
|
tagName: "pkt-icon",
|
|
8918
|
-
elementClass:
|
|
8945
|
+
elementClass: Le,
|
|
8919
8946
|
react: gt,
|
|
8920
8947
|
displayName: "PktIcon",
|
|
8921
8948
|
events: {}
|
|
@@ -8934,7 +8961,7 @@ const L = Jt({
|
|
|
8934
8961
|
onToggle: m
|
|
8935
8962
|
}, f) => {
|
|
8936
8963
|
const [y, b] = ke(i), { name: k } = kn(), w = l || k, C = n !== void 0 ? n : y;
|
|
8937
|
-
|
|
8964
|
+
Ie(() => {
|
|
8938
8965
|
n === void 0 && b(i);
|
|
8939
8966
|
}, [i, n]);
|
|
8940
8967
|
const O = (N) => {
|
|
@@ -9116,7 +9143,7 @@ const Gd = Z(
|
|
|
9116
9143
|
] });
|
|
9117
9144
|
}
|
|
9118
9145
|
);
|
|
9119
|
-
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.
|
|
9146
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.22/animations/";
|
|
9120
9147
|
const oi = Z(
|
|
9121
9148
|
({
|
|
9122
9149
|
children: i,
|
|
@@ -9211,9 +9238,9 @@ const Sh = Z(
|
|
|
9211
9238
|
...T
|
|
9212
9239
|
}, P) => {
|
|
9213
9240
|
const N = Bs(null);
|
|
9214
|
-
|
|
9241
|
+
Ie(() => {
|
|
9215
9242
|
N.current && y !== void 0 && (N.current.indeterminate = y);
|
|
9216
|
-
}, [y]),
|
|
9243
|
+
}, [y]), Ie(() => {
|
|
9217
9244
|
typeof P == "function" ? P(N.current) : P && (P.current = N.current);
|
|
9218
9245
|
}, [P]);
|
|
9219
9246
|
const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
|
|
@@ -9569,7 +9596,7 @@ const Yd = ({
|
|
|
9569
9596
|
name: "oslologo",
|
|
9570
9597
|
className: "pkt-header__logo-svg",
|
|
9571
9598
|
"aria-hidden": "true",
|
|
9572
|
-
path: "https://punkt-cdn.oslo.kommune.no/13.
|
|
9599
|
+
path: "https://punkt-cdn.oslo.kommune.no/13.22/logos/"
|
|
9573
9600
|
}
|
|
9574
9601
|
) }) : /* @__PURE__ */ h(
|
|
9575
9602
|
"button",
|
|
@@ -9583,7 +9610,7 @@ const Yd = ({
|
|
|
9583
9610
|
name: "oslologo",
|
|
9584
9611
|
className: "pkt-header__logo-svg",
|
|
9585
9612
|
"aria-hidden": "true",
|
|
9586
|
-
path: "https://punkt-cdn.oslo.kommune.no/13.
|
|
9613
|
+
path: "https://punkt-cdn.oslo.kommune.no/13.22/logos/"
|
|
9587
9614
|
}
|
|
9588
9615
|
)
|
|
9589
9616
|
}
|
|
@@ -9695,7 +9722,7 @@ const Yd = ({
|
|
|
9695
9722
|
}
|
|
9696
9723
|
), Eh = Jt({
|
|
9697
9724
|
tagName: "pkt-heading",
|
|
9698
|
-
elementClass:
|
|
9725
|
+
elementClass: we,
|
|
9699
9726
|
react: gt,
|
|
9700
9727
|
displayName: "PktHeading"
|
|
9701
9728
|
}), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
|
|
@@ -9756,7 +9783,7 @@ const ps = Z(
|
|
|
9756
9783
|
].filter(Boolean).join(" "), oe = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Ot ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
9757
9784
|
r,
|
|
9758
9785
|
l ? `/${l}` : ""
|
|
9759
|
-
] }) : null,
|
|
9786
|
+
] }) : null, Se = () => /* @__PURE__ */ x(Wt, { children: [
|
|
9760
9787
|
y && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--gray", children: y }),
|
|
9761
9788
|
d && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--blue-light", children: p }),
|
|
9762
9789
|
m && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--beige", children: f })
|
|
@@ -9764,7 +9791,7 @@ const ps = Z(
|
|
|
9764
9791
|
const ot = /* @__PURE__ */ x(Wt, { children: [
|
|
9765
9792
|
t,
|
|
9766
9793
|
" ",
|
|
9767
|
-
|
|
9794
|
+
Se()
|
|
9768
9795
|
] });
|
|
9769
9796
|
return T ? H ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Et, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Et, id: `${i}-label`, children: t });
|
|
9770
9797
|
}, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
|
|
@@ -10217,7 +10244,7 @@ const Xd = Z(
|
|
|
10217
10244
|
const [b, k] = ke(!1), w = Ls(() => {
|
|
10218
10245
|
k(!0), d && d();
|
|
10219
10246
|
}, [k]), C = Bs(null), [O, T] = ke("");
|
|
10220
|
-
|
|
10247
|
+
Ie(() => {
|
|
10221
10248
|
var G, _t;
|
|
10222
10249
|
T(((_t = (G = C.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
|
|
10223
10250
|
}, [i]);
|
|
@@ -10292,7 +10319,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10292
10319
|
}, lc = Z(
|
|
10293
10320
|
({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
|
|
10294
10321
|
const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
|
|
10295
|
-
|
|
10322
|
+
Ie(() => {
|
|
10296
10323
|
r.current = r.current.slice(0, p);
|
|
10297
10324
|
}, [p]);
|
|
10298
10325
|
const m = (k) => {
|
|
@@ -10358,12 +10385,12 @@ const cn = Oa(null), Gh = () => {
|
|
|
10358
10385
|
skipForwardTestid: R = !1,
|
|
10359
10386
|
...xt
|
|
10360
10387
|
}, Qt) => {
|
|
10361
|
-
const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`,
|
|
10362
|
-
var
|
|
10363
|
-
if (s && Ut(((he = (
|
|
10364
|
-
return mt(
|
|
10388
|
+
const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, Se = `${te}-label`, We = e || Se, [le, Ut] = ke(0), ot = (Ce) => {
|
|
10389
|
+
var Te, he;
|
|
10390
|
+
if (s && Ut(((he = (Te = Ce.currentTarget) == null ? void 0 : Te.value) == null ? void 0 : he.length) || 0), mt)
|
|
10391
|
+
return mt(Ce);
|
|
10365
10392
|
};
|
|
10366
|
-
return
|
|
10393
|
+
return Ie(() => {
|
|
10367
10394
|
J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
|
|
10368
10395
|
}, [J]), /* @__PURE__ */ h(
|
|
10369
10396
|
ps,
|
|
@@ -10450,19 +10477,19 @@ const cn = Oa(null), Gh = () => {
|
|
|
10450
10477
|
min: Qt,
|
|
10451
10478
|
max: oe,
|
|
10452
10479
|
step: te,
|
|
10453
|
-
size:
|
|
10480
|
+
size: Se,
|
|
10454
10481
|
readonly: We,
|
|
10455
10482
|
required: le,
|
|
10456
10483
|
dataTestid: Ut,
|
|
10457
10484
|
onChange: ot,
|
|
10458
|
-
skipForwardTestid:
|
|
10459
|
-
...
|
|
10485
|
+
skipForwardTestid: Ce = !1,
|
|
10486
|
+
...Te
|
|
10460
10487
|
}, he) => {
|
|
10461
|
-
const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Ot, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, Ke] = ke((at == null ? void 0 : at.length) || 0), Ge = `${i}`,
|
|
10488
|
+
const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Ot, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, Ke] = ke((at == null ? void 0 : at.length) || 0), Ge = `${i}`, mi = `${Ge}-label`, qi = e || mi, fs = (me) => {
|
|
10462
10489
|
var zi, Wi;
|
|
10463
10490
|
a && Ke(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
|
|
10464
10491
|
};
|
|
10465
|
-
return
|
|
10492
|
+
return Ie(() => {
|
|
10466
10493
|
at !== void 0 && Ke((at == null ? void 0 : at.length) || 0);
|
|
10467
10494
|
}, [at]), /* @__PURE__ */ h(
|
|
10468
10495
|
ps,
|
|
@@ -10492,13 +10519,13 @@ const cn = Oa(null), Gh = () => {
|
|
|
10492
10519
|
{
|
|
10493
10520
|
className: "pkt-input__container",
|
|
10494
10521
|
"data-testid": Ut,
|
|
10495
|
-
"data-skip-forward-testid":
|
|
10522
|
+
"data-skip-forward-testid": Ce ? "true" : void 0,
|
|
10496
10523
|
children: [
|
|
10497
10524
|
mt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: mt }),
|
|
10498
10525
|
/* @__PURE__ */ h(
|
|
10499
10526
|
"input",
|
|
10500
10527
|
{
|
|
10501
|
-
...
|
|
10528
|
+
...Te,
|
|
10502
10529
|
ref: he,
|
|
10503
10530
|
className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
|
|
10504
10531
|
type: st,
|
|
@@ -10517,7 +10544,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10517
10544
|
step: te,
|
|
10518
10545
|
minLength: R,
|
|
10519
10546
|
maxLength: xt,
|
|
10520
|
-
size:
|
|
10547
|
+
size: Se,
|
|
10521
10548
|
required: le
|
|
10522
10549
|
}
|
|
10523
10550
|
),
|