@oslokommune/punkt-react 13.11.0 → 13.12.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/index.d.ts +6 -4
- package/dist/punkt-react.es.js +1035 -1013
- package/dist/punkt-react.umd.js +52 -52
- package/package.json +2 -2
- package/src/components/messagebox/Messagebox.test.tsx +63 -0
- package/src/components/messagebox/Messagebox.tsx +58 -28
package/dist/punkt-react.es.js
CHANGED
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
import { jsx as h, jsxs as x, Fragment as Gt } from "react/jsx-runtime";
|
|
37
|
-
import * as
|
|
38
|
-
import
|
|
37
|
+
import * as dn from "react";
|
|
38
|
+
import lt, { createContext as Na, forwardRef as K, useContext as Aa, useState as oi, useEffect as as, useCallback as Ea, Fragment as cn, createRef as pn, createElement as un, Children as Es, isValidElement as mn, cloneElement as fn, useRef as gn } from "react";
|
|
39
39
|
import { Link as zs } from "react-router-dom";
|
|
40
|
-
const
|
|
40
|
+
const Oa = Na({}), vn = () => Aa(Oa), bn = K(
|
|
41
41
|
({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: a, className: n }, r) => {
|
|
42
42
|
const l = [
|
|
43
43
|
"pkt-accordion",
|
|
@@ -45,7 +45,7 @@ const Ea = Na({}), gn = () => Aa(Ea), vn = W(
|
|
|
45
45
|
t && `pkt-accordion--${t}`,
|
|
46
46
|
n
|
|
47
47
|
].filter(Boolean).join(" ");
|
|
48
|
-
return /* @__PURE__ */ h(
|
|
48
|
+
return /* @__PURE__ */ h(Oa.Provider, { value: { name: a }, children: /* @__PURE__ */ h(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: r,
|
|
@@ -57,13 +57,13 @@ const Ea = Na({}), gn = () => Aa(Ea), vn = W(
|
|
|
57
57
|
) });
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
|
|
60
|
+
bn.displayName = "PktAccordion";
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2018 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
const
|
|
66
|
+
const yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Ws = /* @__PURE__ */ new WeakMap(), Ks = (i, t, e, s, a) => {
|
|
67
67
|
const n = a == null ? void 0 : a[t];
|
|
68
68
|
n === void 0 ? (i[t] = e, e == null && t in HTMLElement.prototype && i.removeAttribute(t)) : e !== s && ((r, l, d) => {
|
|
69
69
|
let p = Ws.get(r);
|
|
@@ -71,10 +71,10 @@ const bn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
71
71
|
let g = p.get(l);
|
|
72
72
|
d !== void 0 ? g === void 0 ? (p.set(l, g = { handleEvent: d }), r.addEventListener(l, g)) : g.handleEvent = d : g !== void 0 && (p.delete(l), r.removeEventListener(l, g));
|
|
73
73
|
})(i, n, e);
|
|
74
|
-
},
|
|
74
|
+
}, Tt = ({ react: i, tagName: t, elementClass: e, events: s, displayName: a }) => {
|
|
75
75
|
const n = new Set(Object.keys(s ?? {})), r = i.forwardRef(((l, d) => {
|
|
76
76
|
const p = i.useRef(/* @__PURE__ */ new Map()), g = i.useRef(null), f = {}, k = {};
|
|
77
|
-
for (const [b, y] of Object.entries(l))
|
|
77
|
+
for (const [b, y] of Object.entries(l)) yn.has(b) ? f[b === "className" ? "class" : b] = y : n.has(b) || b in e.prototype ? k[b] = y : f[b] = y;
|
|
78
78
|
return i.useLayoutEffect((() => {
|
|
79
79
|
if (g.current === null) return;
|
|
80
80
|
const b = /* @__PURE__ */ new Map();
|
|
@@ -95,50 +95,50 @@ const bn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
95
95
|
* Copyright 2017 Google LLC
|
|
96
96
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
97
97
|
*/
|
|
98
|
-
const Xi = globalThis, Ji = Xi.trustedTypes, Gs = Ji ? Ji.createPolicy("lit-html", { createHTML: (i) => i }) : void 0,
|
|
99
|
-
\f\r]`,
|
|
100
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xs = /'/g, Js = /"/g,
|
|
101
|
-
function
|
|
98
|
+
const Xi = globalThis, Ji = Xi.trustedTypes, Gs = Ji ? Ji.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Pa = "$lit$", ye = `lit$${Math.random().toFixed(9).slice(2)}$`, Ma = "?" + ye, kn = `<${Ma}>`, De = document, Ni = () => De.createComment(""), Ai = (i) => i === null || typeof i != "object" && typeof i != "function", Rs = Array.isArray, $n = (i) => Rs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", vs = `[
|
|
99
|
+
\f\r]`, fi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ys = /-->/g, Zs = />/g, Ne = RegExp(`>|${vs}(?:([^\\s"'>=/]+)(${vs}*=${vs}*(?:[^
|
|
100
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xs = /'/g, Js = /"/g, Ia = /^(?:script|style|textarea|title)$/i, _n = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = _n(1), $t = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Qs = /* @__PURE__ */ new WeakMap(), Pe = De.createTreeWalker(De, 129);
|
|
101
|
+
function Da(i, t) {
|
|
102
102
|
if (!Rs(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
103
103
|
return Gs !== void 0 ? Gs.createHTML(t) : t;
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const wn = (i, t) => {
|
|
106
106
|
const e = i.length - 1, s = [];
|
|
107
|
-
let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r =
|
|
107
|
+
let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = fi;
|
|
108
108
|
for (let l = 0; l < e; l++) {
|
|
109
109
|
const d = i[l];
|
|
110
110
|
let p, g, f = -1, k = 0;
|
|
111
|
-
for (; k < d.length && (r.lastIndex = k, g = r.exec(d), g !== null); ) k = r.lastIndex, r ===
|
|
112
|
-
const b = r ===
|
|
113
|
-
n += r ===
|
|
111
|
+
for (; k < d.length && (r.lastIndex = k, g = r.exec(d), g !== null); ) k = r.lastIndex, r === fi ? g[1] === "!--" ? r = Ys : g[1] !== void 0 ? r = Zs : g[2] !== void 0 ? (Ia.test(g[2]) && (a = RegExp("</" + g[2], "g")), r = Ne) : g[3] !== void 0 && (r = Ne) : r === Ne ? g[0] === ">" ? (r = a ?? fi, f = -1) : g[1] === void 0 ? f = -2 : (f = r.lastIndex - g[2].length, p = g[1], r = g[3] === void 0 ? Ne : g[3] === '"' ? Js : Xs) : r === Js || r === Xs ? r = Ne : r === Ys || r === Zs ? r = fi : (r = Ne, a = void 0);
|
|
112
|
+
const b = r === Ne && i[l + 1].startsWith("/>") ? " " : "";
|
|
113
|
+
n += r === fi ? d + kn : f >= 0 ? (s.push(p), d.slice(0, f) + Pa + d.slice(f) + ye + b) : d + ye + (f === -2 ? l : b);
|
|
114
114
|
}
|
|
115
|
-
return [
|
|
115
|
+
return [Da(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
116
116
|
};
|
|
117
|
-
let Os = class
|
|
117
|
+
let Os = class Ra {
|
|
118
118
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
119
119
|
let a;
|
|
120
120
|
this.parts = [];
|
|
121
121
|
let n = 0, r = 0;
|
|
122
|
-
const l = t.length - 1, d = this.parts, [p, g] =
|
|
123
|
-
if (this.el =
|
|
122
|
+
const l = t.length - 1, d = this.parts, [p, g] = wn(t, e);
|
|
123
|
+
if (this.el = Ra.createElement(p, s), Pe.currentNode = this.el.content, e === 2 || e === 3) {
|
|
124
124
|
const f = this.el.content.firstChild;
|
|
125
125
|
f.replaceWith(...f.childNodes);
|
|
126
126
|
}
|
|
127
|
-
for (; (a =
|
|
127
|
+
for (; (a = Pe.nextNode()) !== null && d.length < l; ) {
|
|
128
128
|
if (a.nodeType === 1) {
|
|
129
|
-
if (a.hasAttributes()) for (const f of a.getAttributeNames()) if (f.endsWith(
|
|
129
|
+
if (a.hasAttributes()) for (const f of a.getAttributeNames()) if (f.endsWith(Pa)) {
|
|
130
130
|
const k = g[r++], b = a.getAttribute(f).split(ye), y = /([.?@])?(.*)/.exec(k);
|
|
131
|
-
d.push({ type: 1, index: n, name: y[2], strings: b, ctor: y[1] === "." ?
|
|
131
|
+
d.push({ type: 1, index: n, name: y[2], strings: b, ctor: y[1] === "." ? Sn : y[1] === "?" ? Cn : y[1] === "@" ? Tn : rs }), a.removeAttribute(f);
|
|
132
132
|
} else f.startsWith(ye) && (d.push({ type: 6, index: n }), a.removeAttribute(f));
|
|
133
|
-
if (
|
|
133
|
+
if (Ia.test(a.tagName)) {
|
|
134
134
|
const f = a.textContent.split(ye), k = f.length - 1;
|
|
135
135
|
if (k > 0) {
|
|
136
136
|
a.textContent = Ji ? Ji.emptyScript : "";
|
|
137
|
-
for (let b = 0; b < k; b++) a.append(f[b],
|
|
138
|
-
a.append(f[k],
|
|
137
|
+
for (let b = 0; b < k; b++) a.append(f[b], Ni()), Pe.nextNode(), d.push({ type: 2, index: ++n });
|
|
138
|
+
a.append(f[k], Ni());
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
} else if (a.nodeType === 8) if (a.data ===
|
|
141
|
+
} else if (a.nodeType === 8) if (a.data === Ma) d.push({ type: 2, index: n });
|
|
142
142
|
else {
|
|
143
143
|
let f = -1;
|
|
144
144
|
for (; (f = a.data.indexOf(ye, f + 1)) !== -1; ) d.push({ type: 7, index: n }), f += ye.length - 1;
|
|
@@ -147,18 +147,18 @@ let Os = class Da {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
static createElement(t, e) {
|
|
150
|
-
const s =
|
|
150
|
+
const s = De.createElement("template");
|
|
151
151
|
return s.innerHTML = t, s;
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
function Qe(i, t, e = i, s) {
|
|
155
155
|
var a, n;
|
|
156
|
-
if (t ===
|
|
156
|
+
if (t === $t) return t;
|
|
157
157
|
let r = s !== void 0 ? (a = e._$Co) == null ? void 0 : a[s] : e._$Cl;
|
|
158
|
-
const l =
|
|
158
|
+
const l = Ai(t) ? void 0 : t._$litDirective$;
|
|
159
159
|
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 = Qe(i, r._$AS(i, t.values), r, s)), t;
|
|
160
160
|
}
|
|
161
|
-
let
|
|
161
|
+
let xn = class {
|
|
162
162
|
constructor(t, e) {
|
|
163
163
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
164
164
|
}
|
|
@@ -169,23 +169,23 @@ let wn = class {
|
|
|
169
169
|
return this._$AM._$AU;
|
|
170
170
|
}
|
|
171
171
|
u(t) {
|
|
172
|
-
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ??
|
|
173
|
-
|
|
174
|
-
let n =
|
|
172
|
+
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? De).importNode(e, !0);
|
|
173
|
+
Pe.currentNode = a;
|
|
174
|
+
let n = Pe.nextNode(), r = 0, l = 0, d = s[0];
|
|
175
175
|
for (; d !== void 0; ) {
|
|
176
176
|
if (r === d.index) {
|
|
177
177
|
let p;
|
|
178
|
-
d.type === 2 ? p = new ns(n, n.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(n, d.name, d.strings, this, t) : d.type === 6 && (p = new
|
|
178
|
+
d.type === 2 ? p = new ns(n, n.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(n, d.name, d.strings, this, t) : d.type === 6 && (p = new Nn(n, this, t)), this._$AV.push(p), d = s[++l];
|
|
179
179
|
}
|
|
180
|
-
r !== (d == null ? void 0 : d.index) && (n =
|
|
180
|
+
r !== (d == null ? void 0 : d.index) && (n = Pe.nextNode(), r++);
|
|
181
181
|
}
|
|
182
|
-
return
|
|
182
|
+
return Pe.currentNode = De, a;
|
|
183
183
|
}
|
|
184
184
|
p(t) {
|
|
185
185
|
let e = 0;
|
|
186
186
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
187
187
|
}
|
|
188
|
-
}, ns = class
|
|
188
|
+
}, ns = class La {
|
|
189
189
|
get _$AU() {
|
|
190
190
|
var t;
|
|
191
191
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -205,7 +205,7 @@ let wn = class {
|
|
|
205
205
|
return this._$AB;
|
|
206
206
|
}
|
|
207
207
|
_$AI(t, e = this) {
|
|
208
|
-
t = Qe(this, t, e),
|
|
208
|
+
t = Qe(this, t, e), Ai(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== $t && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : $n(t) ? this.k(t) : this._(t);
|
|
209
209
|
}
|
|
210
210
|
O(t) {
|
|
211
211
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -214,14 +214,14 @@ let wn = class {
|
|
|
214
214
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
215
215
|
}
|
|
216
216
|
_(t) {
|
|
217
|
-
this._$AH !== $ &&
|
|
217
|
+
this._$AH !== $ && Ai(this._$AH) ? this._$AA.nextSibling.data = t : this.T(De.createTextNode(t)), this._$AH = t;
|
|
218
218
|
}
|
|
219
219
|
$(t) {
|
|
220
220
|
var e;
|
|
221
|
-
const { values: s, _$litType$: a } = t, n = typeof a == "number" ? this._$AC(t) : (a.el === void 0 && (a.el = Os.createElement(
|
|
221
|
+
const { values: s, _$litType$: a } = t, n = typeof a == "number" ? this._$AC(t) : (a.el === void 0 && (a.el = Os.createElement(Da(a.h, a.h[0]), this.options)), a);
|
|
222
222
|
if (((e = this._$AH) == null ? void 0 : e._$AD) === n) this._$AH.p(s);
|
|
223
223
|
else {
|
|
224
|
-
const r = new
|
|
224
|
+
const r = new xn(n, this), l = r.u(this.options);
|
|
225
225
|
r.p(s), this.T(l), this._$AH = r;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
@@ -233,7 +233,7 @@ let wn = class {
|
|
|
233
233
|
Rs(this._$AH) || (this._$AH = [], this._$AR());
|
|
234
234
|
const e = this._$AH;
|
|
235
235
|
let s, a = 0;
|
|
236
|
-
for (const n of t) a === e.length ? e.push(s = new
|
|
236
|
+
for (const n of t) a === e.length ? e.push(s = new La(this.O(Ni()), this.O(Ni()), this, this.options)) : s = e[a], s._$AI(n), a++;
|
|
237
237
|
a < e.length && (this._$AR(s && s._$AB.nextSibling, a), e.length = a);
|
|
238
238
|
}
|
|
239
239
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -260,37 +260,37 @@ let wn = class {
|
|
|
260
260
|
_$AI(t, e = this, s, a) {
|
|
261
261
|
const n = this.strings;
|
|
262
262
|
let r = !1;
|
|
263
|
-
if (n === void 0) t = Qe(this, t, e, 0), r = !
|
|
263
|
+
if (n === void 0) t = Qe(this, t, e, 0), r = !Ai(t) || t !== this._$AH && t !== $t, r && (this._$AH = t);
|
|
264
264
|
else {
|
|
265
265
|
const l = t;
|
|
266
266
|
let d, p;
|
|
267
|
-
for (t = n[0], d = 0; d < n.length - 1; d++) p = Qe(this, l[s + d], e, d), p ===
|
|
267
|
+
for (t = n[0], d = 0; d < n.length - 1; d++) p = Qe(this, l[s + d], e, d), p === $t && (p = this._$AH[d]), r || (r = !Ai(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
|
|
268
268
|
}
|
|
269
269
|
r && !a && this.j(t);
|
|
270
270
|
}
|
|
271
271
|
j(t) {
|
|
272
272
|
t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, Sn = class extends rs {
|
|
275
275
|
constructor() {
|
|
276
276
|
super(...arguments), this.type = 3;
|
|
277
277
|
}
|
|
278
278
|
j(t) {
|
|
279
279
|
this.element[this.name] = t === $ ? void 0 : t;
|
|
280
280
|
}
|
|
281
|
-
},
|
|
281
|
+
}, Cn = class extends rs {
|
|
282
282
|
constructor() {
|
|
283
283
|
super(...arguments), this.type = 4;
|
|
284
284
|
}
|
|
285
285
|
j(t) {
|
|
286
286
|
this.element.toggleAttribute(this.name, !!t && t !== $);
|
|
287
287
|
}
|
|
288
|
-
},
|
|
288
|
+
}, Tn = class extends rs {
|
|
289
289
|
constructor(t, e, s, a, n) {
|
|
290
290
|
super(t, e, s, a, n), this.type = 5;
|
|
291
291
|
}
|
|
292
292
|
_$AI(t, e = this) {
|
|
293
|
-
if ((t = Qe(this, t, e, 0) ?? $) ===
|
|
293
|
+
if ((t = Qe(this, t, e, 0) ?? $) === $t) return;
|
|
294
294
|
const s = this._$AH, a = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== $ && (s === $ || a);
|
|
295
295
|
a && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
296
296
|
}
|
|
@@ -298,7 +298,7 @@ let wn = class {
|
|
|
298
298
|
var e;
|
|
299
299
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, Nn = class {
|
|
302
302
|
constructor(t, e, s) {
|
|
303
303
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
304
304
|
}
|
|
@@ -309,14 +309,14 @@ let wn = class {
|
|
|
309
309
|
Qe(this, t);
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
|
-
const
|
|
312
|
+
const An = { I: ns }, ta = Xi.litHtmlPolyfillSupport;
|
|
313
313
|
ta == null || ta(Os, ns), (Xi.litHtmlVersions ?? (Xi.litHtmlVersions = [])).push("3.3.1");
|
|
314
|
-
const
|
|
314
|
+
const En = (i, t, e) => {
|
|
315
315
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
316
316
|
let a = s._$litPart$;
|
|
317
317
|
if (a === void 0) {
|
|
318
318
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
319
|
-
s._$litPart$ = a = new ns(t.insertBefore(
|
|
319
|
+
s._$litPart$ = a = new ns(t.insertBefore(Ni(), n), n, void 0, e ?? {});
|
|
320
320
|
}
|
|
321
321
|
return a._$AI(i), a;
|
|
322
322
|
};
|
|
@@ -335,10 +335,10 @@ const B = (i) => (t, e) => {
|
|
|
335
335
|
* Copyright 2019 Google LLC
|
|
336
336
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
337
337
|
*/
|
|
338
|
-
const Gi = globalThis, Ls = Gi.ShadowRoot && (Gi.ShadyCSS === void 0 || Gi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
339
|
-
let
|
|
338
|
+
const Gi = globalThis, Ls = Gi.ShadowRoot && (Gi.ShadyCSS === void 0 || Gi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ba = Symbol(), ea = /* @__PURE__ */ new WeakMap();
|
|
339
|
+
let On = class {
|
|
340
340
|
constructor(t, e, s) {
|
|
341
|
-
if (this._$cssResult$ = !0, s !==
|
|
341
|
+
if (this._$cssResult$ = !0, s !== Ba) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
342
342
|
this.cssText = t, this.t = e;
|
|
343
343
|
}
|
|
344
344
|
get styleSheet() {
|
|
@@ -354,7 +354,7 @@ let En = class {
|
|
|
354
354
|
return this.cssText;
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
const
|
|
357
|
+
const Pn = (i) => new On(typeof i == "string" ? i : i + "", void 0, Ba), Mn = (i, t) => {
|
|
358
358
|
if (Ls) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
359
359
|
else for (const e of t) {
|
|
360
360
|
const s = document.createElement("style"), a = Gi.litNonce;
|
|
@@ -363,17 +363,17 @@ const On = (i) => new En(typeof i == "string" ? i : i + "", void 0, La), Pn = (i
|
|
|
363
363
|
}, ia = Ls ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
364
364
|
let e = "";
|
|
365
365
|
for (const s of t.cssRules) e += s.cssText;
|
|
366
|
-
return
|
|
366
|
+
return Pn(e);
|
|
367
367
|
})(i) : i;
|
|
368
368
|
/**
|
|
369
369
|
* @license
|
|
370
370
|
* Copyright 2017 Google LLC
|
|
371
371
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
372
372
|
*/
|
|
373
|
-
const { is:
|
|
373
|
+
const { is: In, defineProperty: Dn, getOwnPropertyDescriptor: Rn, getOwnPropertyNames: Ln, getOwnPropertySymbols: Bn, getPrototypeOf: Vn } = Object, ti = globalThis, sa = ti.trustedTypes, jn = sa ? sa.emptyScript : "", aa = ti.reactiveElementPolyfillSupport, Ci = (i, t) => i, Qi = { toAttribute(i, t) {
|
|
374
374
|
switch (t) {
|
|
375
375
|
case Boolean:
|
|
376
|
-
i = i ?
|
|
376
|
+
i = i ? jn : null;
|
|
377
377
|
break;
|
|
378
378
|
case Object:
|
|
379
379
|
case Array:
|
|
@@ -398,7 +398,7 @@ const { is: Mn, defineProperty: In, getOwnPropertyDescriptor: Dn, getOwnProperty
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
return e;
|
|
401
|
-
} }, Bs = (i, t) => !
|
|
401
|
+
} }, Bs = (i, t) => !In(i, t), na = { attribute: !0, type: String, converter: Qi, reflect: !1, useDefault: !1, hasChanged: Bs };
|
|
402
402
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ti.litPropertyMetadata ?? (ti.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
403
403
|
let Ye = class extends HTMLElement {
|
|
404
404
|
static addInitializer(t) {
|
|
@@ -410,11 +410,11 @@ let Ye = class extends HTMLElement {
|
|
|
410
410
|
static createProperty(t, e = na) {
|
|
411
411
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
412
412
|
const s = Symbol(), a = this.getPropertyDescriptor(t, s, e);
|
|
413
|
-
a !== void 0 &&
|
|
413
|
+
a !== void 0 && Dn(this.prototype, t, a);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
static getPropertyDescriptor(t, e, s) {
|
|
417
|
-
const { get: a, set: n } =
|
|
417
|
+
const { get: a, set: n } = Rn(this.prototype, t) ?? { get() {
|
|
418
418
|
return this[e];
|
|
419
419
|
}, set(r) {
|
|
420
420
|
this[e] = r;
|
|
@@ -428,14 +428,14 @@ let Ye = class extends HTMLElement {
|
|
|
428
428
|
return this.elementProperties.get(t) ?? na;
|
|
429
429
|
}
|
|
430
430
|
static _$Ei() {
|
|
431
|
-
if (this.hasOwnProperty(
|
|
432
|
-
const t =
|
|
431
|
+
if (this.hasOwnProperty(Ci("elementProperties"))) return;
|
|
432
|
+
const t = Vn(this);
|
|
433
433
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
434
434
|
}
|
|
435
435
|
static finalize() {
|
|
436
|
-
if (this.hasOwnProperty(
|
|
437
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
438
|
-
const e = this.properties, s = [...
|
|
436
|
+
if (this.hasOwnProperty(Ci("finalized"))) return;
|
|
437
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ci("properties"))) {
|
|
438
|
+
const e = this.properties, s = [...Ln(e), ...Bn(e)];
|
|
439
439
|
for (const a of s) this.createProperty(a, e[a]);
|
|
440
440
|
}
|
|
441
441
|
const t = this[Symbol.metadata];
|
|
@@ -484,7 +484,7 @@ let Ye = class extends HTMLElement {
|
|
|
484
484
|
}
|
|
485
485
|
createRenderRoot() {
|
|
486
486
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
487
|
-
return
|
|
487
|
+
return Mn(t, this.constructor.elementStyles), t;
|
|
488
488
|
}
|
|
489
489
|
connectedCallback() {
|
|
490
490
|
var t;
|
|
@@ -603,13 +603,13 @@ let Ye = class extends HTMLElement {
|
|
|
603
603
|
firstUpdated(t) {
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
|
-
Ye.elementStyles = [], Ye.shadowRootOptions = { mode: "open" }, Ye[
|
|
606
|
+
Ye.elementStyles = [], Ye.shadowRootOptions = { mode: "open" }, Ye[Ci("elementProperties")] = /* @__PURE__ */ new Map(), Ye[Ci("finalized")] = /* @__PURE__ */ new Map(), aa == null || aa({ ReactiveElement: Ye }), (ti.reactiveElementVersions ?? (ti.reactiveElementVersions = [])).push("2.1.1");
|
|
607
607
|
/**
|
|
608
608
|
* @license
|
|
609
609
|
* Copyright 2017 Google LLC
|
|
610
610
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
611
611
|
*/
|
|
612
|
-
const
|
|
612
|
+
const Fn = { attribute: !0, type: String, converter: Qi, reflect: !1, hasChanged: Bs }, Un = (i = Fn, t, e) => {
|
|
613
613
|
const { kind: s, metadata: a } = e;
|
|
614
614
|
let n = globalThis.litPropertyMetadata.get(a);
|
|
615
615
|
if (n === void 0 && globalThis.litPropertyMetadata.set(a, n = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), n.set(e.name, i), s === "accessor") {
|
|
@@ -631,7 +631,7 @@ const jn = { attribute: !0, type: String, converter: Qi, reflect: !1, hasChanged
|
|
|
631
631
|
throw Error("Unsupported decorator location: " + s);
|
|
632
632
|
};
|
|
633
633
|
function o(i) {
|
|
634
|
-
return (t, e) => typeof e == "object" ?
|
|
634
|
+
return (t, e) => typeof e == "object" ? Un(i, t, e) : ((s, a, n) => {
|
|
635
635
|
const r = a.hasOwnProperty(n);
|
|
636
636
|
return a.constructor.createProperty(n, s), r ? Object.getOwnPropertyDescriptor(a, n) : void 0;
|
|
637
637
|
})(i, t, e);
|
|
@@ -641,7 +641,7 @@ function o(i) {
|
|
|
641
641
|
* Copyright 2017 Google LLC
|
|
642
642
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
643
643
|
*/
|
|
644
|
-
const
|
|
644
|
+
const Ei = globalThis;
|
|
645
645
|
let Ze = class extends Ye {
|
|
646
646
|
constructor() {
|
|
647
647
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -653,7 +653,7 @@ let Ze = class extends Ye {
|
|
|
653
653
|
}
|
|
654
654
|
update(t) {
|
|
655
655
|
const e = this.render();
|
|
656
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
656
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = En(e, this.renderRoot, this.renderOptions);
|
|
657
657
|
}
|
|
658
658
|
connectedCallback() {
|
|
659
659
|
var t;
|
|
@@ -664,25 +664,25 @@ let Ze = class extends Ye {
|
|
|
664
664
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
665
665
|
}
|
|
666
666
|
render() {
|
|
667
|
-
return
|
|
667
|
+
return $t;
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
670
|
var ra;
|
|
671
|
-
Ze._$litElement$ = !0, Ze.finalized = !0, (ra =
|
|
672
|
-
const oa =
|
|
671
|
+
Ze._$litElement$ = !0, Ze.finalized = !0, (ra = Ei.litElementHydrateSupport) == null || ra.call(Ei, { LitElement: Ze });
|
|
672
|
+
const oa = Ei.litElementPolyfillSupport;
|
|
673
673
|
oa == null || oa({ LitElement: Ze });
|
|
674
|
-
(
|
|
675
|
-
const
|
|
676
|
-
example:
|
|
677
|
-
generic:
|
|
678
|
-
calendar:
|
|
679
|
-
dates:
|
|
680
|
-
forms:
|
|
674
|
+
(Ei.litElementVersions ?? (Ei.litElementVersions = [])).push("4.2.1");
|
|
675
|
+
const Hn = { hi: "Hei!" }, qn = { from: "Fra", to: "Til" }, zn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Wn = { 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" }, Kn = { 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." } }, vt = {
|
|
676
|
+
example: Hn,
|
|
677
|
+
generic: qn,
|
|
678
|
+
calendar: zn,
|
|
679
|
+
dates: Wn,
|
|
680
|
+
forms: Kn
|
|
681
681
|
};
|
|
682
|
-
var
|
|
682
|
+
var Gn = Object.defineProperty, Va = (i, t, e, s) => {
|
|
683
683
|
for (var a = void 0, n = i.length - 1, r; n >= 0; n--)
|
|
684
684
|
(r = i[n]) && (a = r(t, e, a) || a);
|
|
685
|
-
return a &&
|
|
685
|
+
return a && Gn(t, e, a), a;
|
|
686
686
|
};
|
|
687
687
|
let os = class extends Ze {
|
|
688
688
|
constructor() {
|
|
@@ -695,10 +695,10 @@ let os = class extends Ze {
|
|
|
695
695
|
this.requestUpdate();
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
|
-
|
|
698
|
+
Va([
|
|
699
699
|
o({ type: Object })
|
|
700
700
|
], os.prototype, "strings");
|
|
701
|
-
|
|
701
|
+
Va([
|
|
702
702
|
o({ type: String })
|
|
703
703
|
], os.prototype, "role");
|
|
704
704
|
let G = class extends os {
|
|
@@ -715,7 +715,7 @@ let G = class extends os {
|
|
|
715
715
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
716
716
|
*/
|
|
717
717
|
const Kt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Fe = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
718
|
-
let
|
|
718
|
+
let li = class {
|
|
719
719
|
constructor(t) {
|
|
720
720
|
}
|
|
721
721
|
get _$AU() {
|
|
@@ -736,7 +736,7 @@ let oi = class {
|
|
|
736
736
|
* Copyright 2018 Google LLC
|
|
737
737
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
738
738
|
*/
|
|
739
|
-
const O = Fe(class extends
|
|
739
|
+
const O = Fe(class extends li {
|
|
740
740
|
constructor(i) {
|
|
741
741
|
var t;
|
|
742
742
|
if (super(i), i.type !== Kt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -757,7 +757,7 @@ const O = Fe(class extends oi {
|
|
|
757
757
|
const r = !!t[n];
|
|
758
758
|
r === this.st.has(n) || (s = this.nt) != null && s.has(n) || (r ? (a.add(n), this.st.add(n)) : (a.remove(n), this.st.delete(n)));
|
|
759
759
|
}
|
|
760
|
-
return
|
|
760
|
+
return $t;
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
763
|
/**
|
|
@@ -768,23 +768,23 @@ const O = Fe(class extends oi {
|
|
|
768
768
|
function R(i) {
|
|
769
769
|
return o({ ...i, state: !0, attribute: !1 });
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function ja(i, t) {
|
|
772
772
|
return t.some((e) => e.value === i);
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function gi(i) {
|
|
775
775
|
return i.classList && (i.classList.contains("_dialog_overlay") || i.classList.contains("backdrop")) ? !0 : typeof i.hasAttribute == "function" && i.hasAttribute("data-skip");
|
|
776
776
|
}
|
|
777
777
|
function Xe(i) {
|
|
778
778
|
return i.nodeName === "OPTION" || i.nodeName === "DATA";
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return i.nodeType === Node.ELEMENT_NODE && !
|
|
780
|
+
function Yn(i, t) {
|
|
781
|
+
return i.nodeType === Node.ELEMENT_NODE && !ja(i, t);
|
|
782
782
|
}
|
|
783
783
|
function bs(i) {
|
|
784
784
|
var t;
|
|
785
785
|
return i.nodeType === Node.TEXT_NODE && ((t = i.nodeValue) == null ? void 0 : t.trim()) !== "";
|
|
786
786
|
}
|
|
787
|
-
let
|
|
787
|
+
let rt = class {
|
|
788
788
|
constructor(t, ...e) {
|
|
789
789
|
this.nodes = [], this.filledSlots = /* @__PURE__ */ new Set(), this.skipOptions = !1, this.updatingSlots = !1, this.host = t, this.host.addController(this), this.slots = e, this.nodes = [], this.observer = new MutationObserver((s) => this.handleMutations(s)), this.contentObserver = new MutationObserver((s) => this.handleSlotMutations(s));
|
|
790
790
|
}
|
|
@@ -800,7 +800,7 @@ let ot = class {
|
|
|
800
800
|
// ********* UPDATE NODES *********
|
|
801
801
|
updateNodes() {
|
|
802
802
|
this.nodes = [], Array.from(this.host.childNodes).forEach((t) => {
|
|
803
|
-
|
|
803
|
+
gi(t) || Xe(t) && this.skipOptions || (!ja(t, this.slots) || bs(t)) && this.nodes.push(t);
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
// ********* UPDATE SLOTS *********
|
|
@@ -816,13 +816,13 @@ let ot = class {
|
|
|
816
816
|
if (n.nodeType === Node.COMMENT_NODE) return !1;
|
|
817
817
|
if (n.nodeType === Node.TEXT_NODE) return !!((r = n.textContent) != null && r.trim());
|
|
818
818
|
if (n.nodeType === Node.ELEMENT_NODE) {
|
|
819
|
-
if (
|
|
819
|
+
if (gi(n)) return !1;
|
|
820
820
|
if ((l = n.textContent) != null && l.trim()) return !0;
|
|
821
821
|
}
|
|
822
822
|
return !1;
|
|
823
823
|
}) && t.add(s);
|
|
824
824
|
const a = this.nodes.flatMap(
|
|
825
|
-
(n) => bs(n) || n.getAttribute && n.getAttribute("slot") == s && !
|
|
825
|
+
(n) => bs(n) || n.getAttribute && n.getAttribute("slot") == s && !gi(n) ? n : []
|
|
826
826
|
).filter(
|
|
827
827
|
(n) => e.value && !e.value.contains(n) && !n.contains(e.value)
|
|
828
828
|
);
|
|
@@ -840,9 +840,9 @@ let ot = class {
|
|
|
840
840
|
let e = !1;
|
|
841
841
|
t.forEach((s) => {
|
|
842
842
|
s.type === "childList" && (s.addedNodes.forEach((a) => {
|
|
843
|
-
|
|
843
|
+
gi(a) || Xe(a) && this.skipOptions || (Yn(a, this.slots) || bs(a)) && (this.nodes.push(a), e = !0);
|
|
844
844
|
}), s.removedNodes.forEach((a) => {
|
|
845
|
-
|
|
845
|
+
gi(a) || Xe(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
|
|
846
846
|
}));
|
|
847
847
|
}), e && this.updateSlots();
|
|
848
848
|
}
|
|
@@ -862,12 +862,12 @@ let ot = class {
|
|
|
862
862
|
* Copyright 2020 Google LLC
|
|
863
863
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
864
864
|
*/
|
|
865
|
-
const { I:
|
|
865
|
+
const { I: Zn } = An, Fa = (i) => i.strings === void 0, la = () => document.createComment(""), vi = (i, t, e) => {
|
|
866
866
|
var s;
|
|
867
867
|
const a = i._$AA.parentNode, n = t === void 0 ? i._$AB : t._$AA;
|
|
868
868
|
if (e === void 0) {
|
|
869
869
|
const r = a.insertBefore(la(), n), l = a.insertBefore(la(), n);
|
|
870
|
-
e = new
|
|
870
|
+
e = new Zn(r, l, i, i.options);
|
|
871
871
|
} else {
|
|
872
872
|
const r = e._$AB.nextSibling, l = e._$AM, d = l !== i;
|
|
873
873
|
if (d) {
|
|
@@ -883,7 +883,7 @@ const { I: Yn } = Nn, ja = (i) => i.strings === void 0, la = () => document.crea
|
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
return e;
|
|
886
|
-
},
|
|
886
|
+
}, Ae = (i, t, e = i) => (i._$AI(t, e), i), Xn = {}, Ua = (i, t = Xn) => i._$AH = t, Jn = (i) => i._$AH, ys = (i) => {
|
|
887
887
|
i._$AR(), i._$AA.remove();
|
|
888
888
|
};
|
|
889
889
|
/**
|
|
@@ -891,11 +891,11 @@ const { I: Yn } = Nn, ja = (i) => i.strings === void 0, la = () => document.crea
|
|
|
891
891
|
* Copyright 2017 Google LLC
|
|
892
892
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
893
893
|
*/
|
|
894
|
-
const
|
|
894
|
+
const Ti = (i, t) => {
|
|
895
895
|
var e;
|
|
896
896
|
const s = i._$AN;
|
|
897
897
|
if (s === void 0) return !1;
|
|
898
|
-
for (const a of s) (e = a._$AO) == null || e.call(a, t, !1),
|
|
898
|
+
for (const a of s) (e = a._$AO) == null || e.call(a, t, !1), Ti(a, t);
|
|
899
899
|
return !0;
|
|
900
900
|
}, ts = (i) => {
|
|
901
901
|
let t, e;
|
|
@@ -903,39 +903,39 @@ const Ci = (i, t) => {
|
|
|
903
903
|
if ((t = i._$AM) === void 0) break;
|
|
904
904
|
e = t._$AN, e.delete(i), i = t;
|
|
905
905
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
906
|
-
},
|
|
906
|
+
}, Ha = (i) => {
|
|
907
907
|
for (let t; t = i._$AM; i = t) {
|
|
908
908
|
let e = t._$AN;
|
|
909
909
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
910
910
|
else if (e.has(i)) break;
|
|
911
|
-
e.add(i),
|
|
911
|
+
e.add(i), er(t);
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
|
-
function
|
|
915
|
-
this._$AN !== void 0 ? (ts(this), this._$AM = i,
|
|
914
|
+
function Qn(i) {
|
|
915
|
+
this._$AN !== void 0 ? (ts(this), this._$AM = i, Ha(this)) : this._$AM = i;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function tr(i, t = !1, e = 0) {
|
|
918
918
|
const s = this._$AH, a = this._$AN;
|
|
919
|
-
if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++)
|
|
920
|
-
else s != null && (
|
|
921
|
-
else
|
|
919
|
+
if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++) Ti(s[n], !1), ts(s[n]);
|
|
920
|
+
else s != null && (Ti(s, !1), ts(s));
|
|
921
|
+
else Ti(this, i);
|
|
922
922
|
}
|
|
923
|
-
const
|
|
924
|
-
i.type == Kt.CHILD && (i._$AP ?? (i._$AP =
|
|
923
|
+
const er = (i) => {
|
|
924
|
+
i.type == Kt.CHILD && (i._$AP ?? (i._$AP = tr), i._$AQ ?? (i._$AQ = Qn));
|
|
925
925
|
};
|
|
926
|
-
let
|
|
926
|
+
let ir = class extends li {
|
|
927
927
|
constructor() {
|
|
928
928
|
super(...arguments), this._$AN = void 0;
|
|
929
929
|
}
|
|
930
930
|
_$AT(t, e, s) {
|
|
931
|
-
super._$AT(t, e, s),
|
|
931
|
+
super._$AT(t, e, s), Ha(this), this.isConnected = t._$AU;
|
|
932
932
|
}
|
|
933
933
|
_$AO(t, e = !0) {
|
|
934
934
|
var s, a;
|
|
935
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (a = this.disconnected) == null || a.call(this)), e && (
|
|
935
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (a = this.disconnected) == null || a.call(this)), e && (Ti(this, t), ts(this));
|
|
936
936
|
}
|
|
937
937
|
setValue(t) {
|
|
938
|
-
if (
|
|
938
|
+
if (Fa(this._$Ct)) this._$Ct._$AI(t, this);
|
|
939
939
|
else {
|
|
940
940
|
const e = [...this._$Ct._$AH];
|
|
941
941
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -951,10 +951,10 @@ let er = class extends oi {
|
|
|
951
951
|
* Copyright 2020 Google LLC
|
|
952
952
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
953
953
|
*/
|
|
954
|
-
const N = () => new
|
|
955
|
-
let
|
|
954
|
+
const N = () => new sr();
|
|
955
|
+
let sr = class {
|
|
956
956
|
};
|
|
957
|
-
const ks = /* @__PURE__ */ new WeakMap(), E = Fe(class extends
|
|
957
|
+
const ks = /* @__PURE__ */ new WeakMap(), E = Fe(class extends ir {
|
|
958
958
|
render(i) {
|
|
959
959
|
return $;
|
|
960
960
|
}
|
|
@@ -981,7 +981,7 @@ const ks = /* @__PURE__ */ new WeakMap(), E = Fe(class extends er {
|
|
|
981
981
|
this.rt(this.ct);
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
|
-
function
|
|
984
|
+
function qa(i, t, e) {
|
|
985
985
|
const s = i.getAttribute("class") || "", a = new Set(s.split(/\s+/).filter(Boolean));
|
|
986
986
|
e ? a.add(t) : a.delete(t), i.setAttribute("class", Array.from(a).join(" "));
|
|
987
987
|
}
|
|
@@ -990,13 +990,13 @@ function Ha(i, t, e) {
|
|
|
990
990
|
* Copyright 2017 Google LLC
|
|
991
991
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
992
992
|
*/
|
|
993
|
-
let es = class extends
|
|
993
|
+
let es = class extends li {
|
|
994
994
|
constructor(t) {
|
|
995
995
|
if (super(t), this.it = $, t.type !== Kt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
996
996
|
}
|
|
997
997
|
render(t) {
|
|
998
998
|
if (t === $ || t == null) return this._t = void 0, this.it = t;
|
|
999
|
-
if (t ===
|
|
999
|
+
if (t === $t) return t;
|
|
1000
1000
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
1001
1001
|
if (t === this.it) return this._t;
|
|
1002
1002
|
this.it = t;
|
|
@@ -1015,23 +1015,23 @@ let Ps = class extends es {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
Ps.directiveName = "unsafeSVG", Ps.resultType = 2;
|
|
1017
1017
|
const ha = Fe(Ps);
|
|
1018
|
-
var
|
|
1019
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1018
|
+
var ar = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Di = (i, t, e, s) => {
|
|
1019
|
+
for (var a = s > 1 ? void 0 : s ? nr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1020
1020
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1021
|
-
return s && a &&
|
|
1021
|
+
return s && a && ar(t, e, a), a;
|
|
1022
1022
|
};
|
|
1023
|
-
const Ms = "https://punkt-cdn.oslo.kommune.no/13.
|
|
1023
|
+
const Ms = "https://punkt-cdn.oslo.kommune.no/13.12/icons/";
|
|
1024
1024
|
typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ms);
|
|
1025
|
-
const
|
|
1025
|
+
const rr = (i) => new Promise((t) => setTimeout(t, i)), Zi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', $s = {}, or = async (i, t) => {
|
|
1026
1026
|
let e = 0;
|
|
1027
1027
|
for (; $s[t + i + ".svg"] === "fetching" && (e++, !(e > 50)); )
|
|
1028
|
-
await
|
|
1028
|
+
await rr(50);
|
|
1029
1029
|
const s = typeof Storage < "u" && typeof localStorage < "u";
|
|
1030
1030
|
return s && localStorage.getItem(t + i + ".svg") ? Promise.resolve(localStorage.getItem(t + i + ".svg")) : typeof window < "u" && typeof window.pktFetch == "function" ? ($s[t + i + ".svg"] = "fetching", Promise.resolve(
|
|
1031
1031
|
window.pktFetch(t + i + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + t + i + ".svg"), Zi)).then((a) => (a !== Zi && s && localStorage.setItem(t + i + ".svg", a), $s[t + i + ".svg"] = "fetched", a))
|
|
1032
1032
|
)) : Promise.resolve(Zi);
|
|
1033
1033
|
};
|
|
1034
|
-
let
|
|
1034
|
+
let Re = class extends G {
|
|
1035
1035
|
constructor() {
|
|
1036
1036
|
super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ms, this.name = "", this.icon = ha(Zi), this._updatedProps = [];
|
|
1037
1037
|
}
|
|
@@ -1046,7 +1046,7 @@ let Le = class extends G {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
async getIcon(t = "") {
|
|
1048
1048
|
this._updatedProps.length > 0 ? (this.path || (this.path = typeof window < "u" ? window.pktIconPath : Ms), this.icon = ha(
|
|
1049
|
-
await
|
|
1049
|
+
await or(this.name || "", this.path).then((e) => e)
|
|
1050
1050
|
), this._updatedProps = []) : this._updatedProps.includes(t) || this._updatedProps.push(t);
|
|
1051
1051
|
}
|
|
1052
1052
|
render() {
|
|
@@ -1055,34 +1055,34 @@ let Le = class extends G {
|
|
|
1055
1055
|
};
|
|
1056
1056
|
Di([
|
|
1057
1057
|
o({ type: String, reflect: !1 })
|
|
1058
|
-
],
|
|
1058
|
+
], Re.prototype, "path", 2);
|
|
1059
1059
|
Di([
|
|
1060
1060
|
o({ type: String, reflect: !0 })
|
|
1061
|
-
],
|
|
1061
|
+
], Re.prototype, "name", 2);
|
|
1062
1062
|
Di([
|
|
1063
1063
|
o({ type: SVGElement })
|
|
1064
|
-
],
|
|
1064
|
+
], Re.prototype, "icon", 2);
|
|
1065
1065
|
Di([
|
|
1066
1066
|
o({ type: Array, noAccessor: !0 })
|
|
1067
|
-
],
|
|
1068
|
-
|
|
1067
|
+
], Re.prototype, "_updatedProps", 2);
|
|
1068
|
+
Re = Di([
|
|
1069
1069
|
B("pkt-icon")
|
|
1070
|
-
],
|
|
1070
|
+
], Re);
|
|
1071
1071
|
/**
|
|
1072
1072
|
* @license
|
|
1073
1073
|
* Copyright 2018 Google LLC
|
|
1074
1074
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1075
1075
|
*/
|
|
1076
1076
|
const S = (i) => i ?? $;
|
|
1077
|
-
var
|
|
1078
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1077
|
+
var lr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Nt = (i, t, e, s) => {
|
|
1078
|
+
for (var a = s > 1 ? void 0 : s ? hr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1079
1079
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1080
|
-
return s && a &&
|
|
1080
|
+
return s && a && lr(t, e, a), a;
|
|
1081
1081
|
};
|
|
1082
|
-
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.
|
|
1082
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.12/animations/";
|
|
1083
1083
|
let bt = class extends G {
|
|
1084
1084
|
constructor() {
|
|
1085
|
-
super(), this.defaultSlot = N(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", 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
|
|
1085
|
+
super(), this.defaultSlot = N(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", 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);
|
|
1086
1086
|
}
|
|
1087
1087
|
// Lifecycle
|
|
1088
1088
|
connectedCallback() {
|
|
@@ -1139,55 +1139,55 @@ let bt = class extends G {
|
|
|
1139
1139
|
`;
|
|
1140
1140
|
}
|
|
1141
1141
|
};
|
|
1142
|
-
|
|
1142
|
+
Nt([
|
|
1143
1143
|
o({ type: String })
|
|
1144
1144
|
], bt.prototype, "iconName", 2);
|
|
1145
|
-
|
|
1145
|
+
Nt([
|
|
1146
1146
|
o({ type: String })
|
|
1147
1147
|
], bt.prototype, "secondIconName", 2);
|
|
1148
|
-
|
|
1148
|
+
Nt([
|
|
1149
1149
|
o({ type: String })
|
|
1150
1150
|
], bt.prototype, "mode", 2);
|
|
1151
|
-
|
|
1151
|
+
Nt([
|
|
1152
1152
|
o({ type: String })
|
|
1153
1153
|
], bt.prototype, "size", 2);
|
|
1154
|
-
|
|
1154
|
+
Nt([
|
|
1155
1155
|
o({ type: String })
|
|
1156
1156
|
], bt.prototype, "color", 2);
|
|
1157
|
-
|
|
1157
|
+
Nt([
|
|
1158
1158
|
o({ type: String })
|
|
1159
1159
|
], bt.prototype, "skin", 2);
|
|
1160
|
-
|
|
1160
|
+
Nt([
|
|
1161
1161
|
o({ type: String })
|
|
1162
1162
|
], bt.prototype, "variant", 2);
|
|
1163
|
-
|
|
1163
|
+
Nt([
|
|
1164
1164
|
o({ type: String, reflect: !0 })
|
|
1165
1165
|
], bt.prototype, "state", 2);
|
|
1166
|
-
|
|
1166
|
+
Nt([
|
|
1167
1167
|
o({ type: String, reflect: !0 })
|
|
1168
1168
|
], bt.prototype, "type", 2);
|
|
1169
|
-
|
|
1169
|
+
Nt([
|
|
1170
1170
|
o({ type: String })
|
|
1171
1171
|
], bt.prototype, "form", 2);
|
|
1172
|
-
|
|
1172
|
+
Nt([
|
|
1173
1173
|
o({ type: Boolean, reflect: !0 })
|
|
1174
1174
|
], bt.prototype, "isLoading", 2);
|
|
1175
|
-
|
|
1175
|
+
Nt([
|
|
1176
1176
|
o({ type: Boolean, reflect: !0 })
|
|
1177
1177
|
], bt.prototype, "disabled", 2);
|
|
1178
|
-
|
|
1178
|
+
Nt([
|
|
1179
1179
|
o({ type: String })
|
|
1180
1180
|
], bt.prototype, "loadingAnimationPath", 2);
|
|
1181
|
-
bt =
|
|
1181
|
+
bt = Nt([
|
|
1182
1182
|
B("pkt-button")
|
|
1183
1183
|
], bt);
|
|
1184
|
-
const
|
|
1185
|
-
props:
|
|
1184
|
+
const dr = { skin: { default: "info" }, ariaLive: { default: "polite" }, compact: { default: !1 }, closeAlert: { default: !1 } }, Wi = {
|
|
1185
|
+
props: dr
|
|
1186
1186
|
};
|
|
1187
|
-
var
|
|
1188
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1187
|
+
var cr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, ae = (i, t, e, s) => {
|
|
1188
|
+
for (var a = s > 1 ? void 0 : s ? pr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1189
1189
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1190
|
-
return s && a &&
|
|
1190
|
+
return s && a && cr(t, e, a), a;
|
|
1191
1191
|
};
|
|
1192
1192
|
let Yt = class extends G {
|
|
1193
1193
|
constructor() {
|
|
@@ -1197,7 +1197,7 @@ let Yt = class extends G {
|
|
|
1197
1197
|
), this.dispatchEvent(
|
|
1198
1198
|
new CustomEvent("on-close", { detail: { origin: t }, bubbles: !0, composed: !0 })
|
|
1199
1199
|
);
|
|
1200
|
-
}, this.slotController = new
|
|
1200
|
+
}, this.slotController = new rt(this, this.defaultSlot), this._isClosed = !1;
|
|
1201
1201
|
}
|
|
1202
1202
|
// Lifecycle
|
|
1203
1203
|
connectedCallback() {
|
|
@@ -1207,7 +1207,7 @@ let Yt = class extends G {
|
|
|
1207
1207
|
t === "ariaLive" && (this["aria-live"] = s), super.attributeChangedCallback(t, e, s);
|
|
1208
1208
|
}
|
|
1209
1209
|
updated(t) {
|
|
1210
|
-
super.updated(t), t.has("ariaLive") && (this["aria-live"] = this.ariaLive), t.has("_isClosed") &&
|
|
1210
|
+
super.updated(t), t.has("ariaLive") && (this["aria-live"] = this.ariaLive), t.has("_isClosed") && qa(this, "pkt-hide", this._isClosed);
|
|
1211
1211
|
}
|
|
1212
1212
|
// Render
|
|
1213
1213
|
render() {
|
|
@@ -1286,10 +1286,10 @@ ae([
|
|
|
1286
1286
|
Yt = ae([
|
|
1287
1287
|
B("pkt-alert")
|
|
1288
1288
|
], Yt);
|
|
1289
|
-
var
|
|
1290
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1289
|
+
var ur = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, Ri = (i, t, e, s) => {
|
|
1290
|
+
for (var a = s > 1 ? void 0 : s ? mr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1291
1291
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1292
|
-
return s && a &&
|
|
1292
|
+
return s && a && ur(t, e, a), a;
|
|
1293
1293
|
};
|
|
1294
1294
|
let ei = class extends Ze {
|
|
1295
1295
|
constructor() {
|
|
@@ -1347,14 +1347,14 @@ Ri([
|
|
|
1347
1347
|
ei = Ri([
|
|
1348
1348
|
B("pkt-accordion")
|
|
1349
1349
|
], ei);
|
|
1350
|
-
var
|
|
1351
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1350
|
+
var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Ue = (i, t, e, s) => {
|
|
1351
|
+
for (var a = s > 1 ? void 0 : s ? gr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1352
1352
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1353
|
-
return s && a &&
|
|
1353
|
+
return s && a && fr(t, e, a), a;
|
|
1354
1354
|
};
|
|
1355
1355
|
let $e = class extends G {
|
|
1356
1356
|
constructor() {
|
|
1357
|
-
super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = N(), this.defaultSlot = N(), this.slotController = new
|
|
1357
|
+
super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = N(), this.defaultSlot = N(), this.slotController = new rt(this, this.defaultSlot);
|
|
1358
1358
|
}
|
|
1359
1359
|
firstUpdated(t) {
|
|
1360
1360
|
this.defaultOpen && (this.isOpen = !0);
|
|
@@ -1413,10 +1413,10 @@ Ue([
|
|
|
1413
1413
|
$e = Ue([
|
|
1414
1414
|
B("pkt-accordion-item")
|
|
1415
1415
|
], $e);
|
|
1416
|
-
var
|
|
1417
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1416
|
+
var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, ls = (i, t, e, s) => {
|
|
1417
|
+
for (var a = s > 1 ? void 0 : s ? br(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1418
1418
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1419
|
-
return s && a &&
|
|
1419
|
+
return s && a && vr(t, e, a), a;
|
|
1420
1420
|
};
|
|
1421
1421
|
let ii = class extends G {
|
|
1422
1422
|
constructor() {
|
|
@@ -1454,7 +1454,7 @@ ls([
|
|
|
1454
1454
|
ii = ls([
|
|
1455
1455
|
B("pkt-backlink")
|
|
1456
1456
|
], ii);
|
|
1457
|
-
const
|
|
1457
|
+
const za = 6048e5, yr = 864e5, da = Symbol.for("constructDateFrom");
|
|
1458
1458
|
function ie(i, t) {
|
|
1459
1459
|
return typeof i == "function" ? i(t) : i && typeof i == "object" && da in i ? i[da](t) : i instanceof Date ? new i.constructor(t) : new Date(t);
|
|
1460
1460
|
}
|
|
@@ -1465,19 +1465,19 @@ function _s(i, t, e) {
|
|
|
1465
1465
|
const s = Bt(i, void 0);
|
|
1466
1466
|
return isNaN(t) ? ie(i, NaN) : (t && s.setDate(s.getDate() + t), s);
|
|
1467
1467
|
}
|
|
1468
|
-
let
|
|
1468
|
+
let kr = {};
|
|
1469
1469
|
function hs() {
|
|
1470
|
-
return
|
|
1470
|
+
return kr;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function Oi(i, t) {
|
|
1473
1473
|
var e, s, a, n;
|
|
1474
1474
|
const r = hs(), 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 = Bt(i, t == null ? void 0 : t.in), p = d.getDay(), g = (p < l ? 7 : 0) + p - l;
|
|
1475
1475
|
return d.setDate(d.getDate() - g), d.setHours(0, 0, 0, 0), d;
|
|
1476
1476
|
}
|
|
1477
1477
|
function is(i, t) {
|
|
1478
|
-
return
|
|
1478
|
+
return Oi(i, { ...t, weekStartsOn: 1 });
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Wa(i, t) {
|
|
1481
1481
|
const e = Bt(i, void 0), s = e.getFullYear(), a = ie(e, 0);
|
|
1482
1482
|
a.setFullYear(s + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
1483
1483
|
const n = is(a), r = ie(e, 0);
|
|
@@ -1499,7 +1499,7 @@ function ca(i) {
|
|
|
1499
1499
|
);
|
|
1500
1500
|
return e.setUTCFullYear(t.getFullYear()), +i - +e;
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function Ka(i, ...t) {
|
|
1503
1503
|
const e = ie.bind(
|
|
1504
1504
|
null,
|
|
1505
1505
|
t.find((s) => typeof s == "object")
|
|
@@ -1510,30 +1510,30 @@ function pa(i, t) {
|
|
|
1510
1510
|
const e = Bt(i, void 0);
|
|
1511
1511
|
return e.setHours(0, 0, 0, 0), e;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
const [s, a] =
|
|
1513
|
+
function $r(i, t, e) {
|
|
1514
|
+
const [s, a] = Ka(
|
|
1515
1515
|
void 0,
|
|
1516
1516
|
i,
|
|
1517
1517
|
t
|
|
1518
1518
|
), n = pa(s), r = pa(a), l = +n - ca(n), d = +r - ca(r);
|
|
1519
|
-
return Math.round((l - d) /
|
|
1519
|
+
return Math.round((l - d) / yr);
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1522
|
-
const e =
|
|
1521
|
+
function _r(i, t) {
|
|
1522
|
+
const e = Wa(i), s = ie(i, 0);
|
|
1523
1523
|
return s.setFullYear(e, 0, 4), s.setHours(0, 0, 0, 0), is(s);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function wr(i) {
|
|
1526
1526
|
return i instanceof Date || typeof i == "object" && Object.prototype.toString.call(i) === "[object Date]";
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
return !(!
|
|
1528
|
+
function xr(i) {
|
|
1529
|
+
return !(!wr(i) && typeof i != "number" || isNaN(+Bt(i)));
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
const [e, s] =
|
|
1531
|
+
function Sr(i, t) {
|
|
1532
|
+
const [e, s] = Ka(i, t.start, t.end);
|
|
1533
1533
|
return { start: e, end: s };
|
|
1534
1534
|
}
|
|
1535
1535
|
function ws(i, t) {
|
|
1536
|
-
const { start: e, end: s } =
|
|
1536
|
+
const { start: e, end: s } = Sr(void 0, i);
|
|
1537
1537
|
let a = +e > +s;
|
|
1538
1538
|
const n = a ? +e : +s, r = a ? s : e;
|
|
1539
1539
|
r.setHours(0, 0, 0, 0);
|
|
@@ -1543,11 +1543,11 @@ function ws(i, t) {
|
|
|
1543
1543
|
d.push(ie(e, r)), r.setDate(r.getDate() + l), r.setHours(0, 0, 0, 0);
|
|
1544
1544
|
return a ? d.reverse() : d;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Cr(i, t) {
|
|
1547
1547
|
const e = Bt(i, void 0);
|
|
1548
1548
|
return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1549
1549
|
}
|
|
1550
|
-
const
|
|
1550
|
+
const Tr = {
|
|
1551
1551
|
lessThanXSeconds: {
|
|
1552
1552
|
one: "less than a second",
|
|
1553
1553
|
other: "less than {{count}} seconds"
|
|
@@ -1609,9 +1609,9 @@ const Cr = {
|
|
|
1609
1609
|
one: "almost 1 year",
|
|
1610
1610
|
other: "almost {{count}} years"
|
|
1611
1611
|
}
|
|
1612
|
-
},
|
|
1612
|
+
}, Nr = (i, t, e) => {
|
|
1613
1613
|
let s;
|
|
1614
|
-
const a =
|
|
1614
|
+
const a = Tr[i];
|
|
1615
1615
|
return typeof a == "string" ? s = a : t === 1 ? s = a.one : s = a.other.replace("{{count}}", t.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + s : s + " ago" : s;
|
|
1616
1616
|
};
|
|
1617
1617
|
function xs(i) {
|
|
@@ -1620,43 +1620,43 @@ function xs(i) {
|
|
|
1620
1620
|
return i.formats[e] || i.formats[i.defaultWidth];
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
|
-
const
|
|
1623
|
+
const Ar = {
|
|
1624
1624
|
full: "EEEE, MMMM do, y",
|
|
1625
1625
|
long: "MMMM do, y",
|
|
1626
1626
|
medium: "MMM d, y",
|
|
1627
1627
|
short: "MM/dd/yyyy"
|
|
1628
|
-
},
|
|
1628
|
+
}, Er = {
|
|
1629
1629
|
full: "h:mm:ss a zzzz",
|
|
1630
1630
|
long: "h:mm:ss a z",
|
|
1631
1631
|
medium: "h:mm:ss a",
|
|
1632
1632
|
short: "h:mm a"
|
|
1633
|
-
},
|
|
1633
|
+
}, Or = {
|
|
1634
1634
|
full: "{{date}} 'at' {{time}}",
|
|
1635
1635
|
long: "{{date}} 'at' {{time}}",
|
|
1636
1636
|
medium: "{{date}}, {{time}}",
|
|
1637
1637
|
short: "{{date}}, {{time}}"
|
|
1638
|
-
},
|
|
1638
|
+
}, Pr = {
|
|
1639
1639
|
date: xs({
|
|
1640
|
-
formats:
|
|
1640
|
+
formats: Ar,
|
|
1641
1641
|
defaultWidth: "full"
|
|
1642
1642
|
}),
|
|
1643
1643
|
time: xs({
|
|
1644
|
-
formats:
|
|
1644
|
+
formats: Er,
|
|
1645
1645
|
defaultWidth: "full"
|
|
1646
1646
|
}),
|
|
1647
1647
|
dateTime: xs({
|
|
1648
|
-
formats:
|
|
1648
|
+
formats: Or,
|
|
1649
1649
|
defaultWidth: "full"
|
|
1650
1650
|
})
|
|
1651
|
-
},
|
|
1651
|
+
}, Mr = {
|
|
1652
1652
|
lastWeek: "'last' eeee 'at' p",
|
|
1653
1653
|
yesterday: "'yesterday at' p",
|
|
1654
1654
|
today: "'today at' p",
|
|
1655
1655
|
tomorrow: "'tomorrow at' p",
|
|
1656
1656
|
nextWeek: "eeee 'at' p",
|
|
1657
1657
|
other: "P"
|
|
1658
|
-
},
|
|
1659
|
-
function
|
|
1658
|
+
}, Ir = (i, t, e, s) => Mr[i];
|
|
1659
|
+
function bi(i) {
|
|
1660
1660
|
return (t, e) => {
|
|
1661
1661
|
const s = e != null && e.context ? String(e.context) : "standalone";
|
|
1662
1662
|
let a;
|
|
@@ -1671,15 +1671,15 @@ function vi(i) {
|
|
|
1671
1671
|
return a[n];
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
const
|
|
1674
|
+
const Dr = {
|
|
1675
1675
|
narrow: ["B", "A"],
|
|
1676
1676
|
abbreviated: ["BC", "AD"],
|
|
1677
1677
|
wide: ["Before Christ", "Anno Domini"]
|
|
1678
|
-
},
|
|
1678
|
+
}, Rr = {
|
|
1679
1679
|
narrow: ["1", "2", "3", "4"],
|
|
1680
1680
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1681
1681
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1682
|
-
},
|
|
1682
|
+
}, Lr = {
|
|
1683
1683
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1684
1684
|
abbreviated: [
|
|
1685
1685
|
"Jan",
|
|
@@ -1709,7 +1709,7 @@ const Ir = {
|
|
|
1709
1709
|
"November",
|
|
1710
1710
|
"December"
|
|
1711
1711
|
]
|
|
1712
|
-
},
|
|
1712
|
+
}, Br = {
|
|
1713
1713
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1714
1714
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1715
1715
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1722,7 +1722,7 @@ const Ir = {
|
|
|
1722
1722
|
"Friday",
|
|
1723
1723
|
"Saturday"
|
|
1724
1724
|
]
|
|
1725
|
-
},
|
|
1725
|
+
}, Vr = {
|
|
1726
1726
|
narrow: {
|
|
1727
1727
|
am: "a",
|
|
1728
1728
|
pm: "p",
|
|
@@ -1753,7 +1753,7 @@ const Ir = {
|
|
|
1753
1753
|
evening: "evening",
|
|
1754
1754
|
night: "night"
|
|
1755
1755
|
}
|
|
1756
|
-
},
|
|
1756
|
+
}, jr = {
|
|
1757
1757
|
narrow: {
|
|
1758
1758
|
am: "a",
|
|
1759
1759
|
pm: "p",
|
|
@@ -1784,7 +1784,7 @@ const Ir = {
|
|
|
1784
1784
|
evening: "in the evening",
|
|
1785
1785
|
night: "at night"
|
|
1786
1786
|
}
|
|
1787
|
-
},
|
|
1787
|
+
}, Fr = (i, t) => {
|
|
1788
1788
|
const e = Number(i), s = e % 100;
|
|
1789
1789
|
if (s > 20 || s < 10)
|
|
1790
1790
|
switch (s % 10) {
|
|
@@ -1796,40 +1796,40 @@ const Ir = {
|
|
|
1796
1796
|
return e + "rd";
|
|
1797
1797
|
}
|
|
1798
1798
|
return e + "th";
|
|
1799
|
-
},
|
|
1800
|
-
ordinalNumber:
|
|
1801
|
-
era:
|
|
1802
|
-
values:
|
|
1799
|
+
}, Ur = {
|
|
1800
|
+
ordinalNumber: Fr,
|
|
1801
|
+
era: bi({
|
|
1802
|
+
values: Dr,
|
|
1803
1803
|
defaultWidth: "wide"
|
|
1804
1804
|
}),
|
|
1805
|
-
quarter:
|
|
1806
|
-
values:
|
|
1805
|
+
quarter: bi({
|
|
1806
|
+
values: Rr,
|
|
1807
1807
|
defaultWidth: "wide",
|
|
1808
1808
|
argumentCallback: (i) => i - 1
|
|
1809
1809
|
}),
|
|
1810
|
-
month:
|
|
1811
|
-
values: Rr,
|
|
1812
|
-
defaultWidth: "wide"
|
|
1813
|
-
}),
|
|
1814
|
-
day: vi({
|
|
1810
|
+
month: bi({
|
|
1815
1811
|
values: Lr,
|
|
1816
1812
|
defaultWidth: "wide"
|
|
1817
1813
|
}),
|
|
1818
|
-
|
|
1814
|
+
day: bi({
|
|
1819
1815
|
values: Br,
|
|
1816
|
+
defaultWidth: "wide"
|
|
1817
|
+
}),
|
|
1818
|
+
dayPeriod: bi({
|
|
1819
|
+
values: Vr,
|
|
1820
1820
|
defaultWidth: "wide",
|
|
1821
|
-
formattingValues:
|
|
1821
|
+
formattingValues: jr,
|
|
1822
1822
|
defaultFormattingWidth: "wide"
|
|
1823
1823
|
})
|
|
1824
1824
|
};
|
|
1825
|
-
function
|
|
1825
|
+
function yi(i) {
|
|
1826
1826
|
return (t, e = {}) => {
|
|
1827
1827
|
const s = e.width, a = s && i.matchPatterns[s] || i.matchPatterns[i.defaultMatchWidth], n = t.match(a);
|
|
1828
1828
|
if (!n)
|
|
1829
1829
|
return null;
|
|
1830
|
-
const r = n[0], l = s && i.parsePatterns[s] || i.parsePatterns[i.defaultParseWidth], d = Array.isArray(l) ?
|
|
1830
|
+
const r = n[0], l = s && i.parsePatterns[s] || i.parsePatterns[i.defaultParseWidth], d = Array.isArray(l) ? qr(l, (f) => f.test(r)) : (
|
|
1831
1831
|
// [TODO] -- I challenge you to fix the type
|
|
1832
|
-
|
|
1832
|
+
Hr(l, (f) => f.test(r))
|
|
1833
1833
|
);
|
|
1834
1834
|
let p;
|
|
1835
1835
|
p = i.valueCallback ? i.valueCallback(d) : d, p = e.valueCallback ? (
|
|
@@ -1840,17 +1840,17 @@ function bi(i) {
|
|
|
1840
1840
|
return { value: p, rest: g };
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Hr(i, t) {
|
|
1844
1844
|
for (const e in i)
|
|
1845
1845
|
if (Object.prototype.hasOwnProperty.call(i, e) && t(i[e]))
|
|
1846
1846
|
return e;
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function qr(i, t) {
|
|
1849
1849
|
for (let e = 0; e < i.length; e++)
|
|
1850
1850
|
if (t(i[e]))
|
|
1851
1851
|
return e;
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function zr(i) {
|
|
1854
1854
|
return (t, e = {}) => {
|
|
1855
1855
|
const s = t.match(i.matchPattern);
|
|
1856
1856
|
if (!s) return null;
|
|
@@ -1862,23 +1862,23 @@ function qr(i) {
|
|
|
1862
1862
|
return { value: r, rest: l };
|
|
1863
1863
|
};
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1865
|
+
const Wr = /^(\d+)(th|st|nd|rd)?/i, Kr = /\d+/i, Gr = {
|
|
1866
1866
|
narrow: /^(b|a)/i,
|
|
1867
1867
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1868
1868
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1869
|
-
}, Gr = {
|
|
1870
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1871
1869
|
}, Yr = {
|
|
1870
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1871
|
+
}, Zr = {
|
|
1872
1872
|
narrow: /^[1234]/i,
|
|
1873
1873
|
abbreviated: /^q[1234]/i,
|
|
1874
1874
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1875
|
-
}, Zr = {
|
|
1876
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1877
1875
|
}, Xr = {
|
|
1876
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1877
|
+
}, Jr = {
|
|
1878
1878
|
narrow: /^[jfmasond]/i,
|
|
1879
1879
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1880
1880
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1881
|
-
},
|
|
1881
|
+
}, Qr = {
|
|
1882
1882
|
narrow: [
|
|
1883
1883
|
/^j/i,
|
|
1884
1884
|
/^f/i,
|
|
@@ -1907,18 +1907,18 @@ const zr = /^(\d+)(th|st|nd|rd)?/i, Wr = /\d+/i, Kr = {
|
|
|
1907
1907
|
/^n/i,
|
|
1908
1908
|
/^d/i
|
|
1909
1909
|
]
|
|
1910
|
-
},
|
|
1910
|
+
}, to = {
|
|
1911
1911
|
narrow: /^[smtwf]/i,
|
|
1912
1912
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1913
1913
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1914
1914
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1915
|
-
},
|
|
1915
|
+
}, eo = {
|
|
1916
1916
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1917
1917
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1918
|
-
},
|
|
1918
|
+
}, io = {
|
|
1919
1919
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1920
1920
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1921
|
-
},
|
|
1921
|
+
}, so = {
|
|
1922
1922
|
any: {
|
|
1923
1923
|
am: /^a/i,
|
|
1924
1924
|
pm: /^p/i,
|
|
@@ -1929,80 +1929,80 @@ const zr = /^(\d+)(th|st|nd|rd)?/i, Wr = /\d+/i, Kr = {
|
|
|
1929
1929
|
evening: /evening/i,
|
|
1930
1930
|
night: /night/i
|
|
1931
1931
|
}
|
|
1932
|
-
},
|
|
1933
|
-
ordinalNumber:
|
|
1934
|
-
matchPattern:
|
|
1935
|
-
parsePattern:
|
|
1932
|
+
}, ao = {
|
|
1933
|
+
ordinalNumber: zr({
|
|
1934
|
+
matchPattern: Wr,
|
|
1935
|
+
parsePattern: Kr,
|
|
1936
1936
|
valueCallback: (i) => parseInt(i, 10)
|
|
1937
1937
|
}),
|
|
1938
|
-
era:
|
|
1939
|
-
matchPatterns:
|
|
1938
|
+
era: yi({
|
|
1939
|
+
matchPatterns: Gr,
|
|
1940
1940
|
defaultMatchWidth: "wide",
|
|
1941
|
-
parsePatterns:
|
|
1941
|
+
parsePatterns: Yr,
|
|
1942
1942
|
defaultParseWidth: "any"
|
|
1943
1943
|
}),
|
|
1944
|
-
quarter:
|
|
1945
|
-
matchPatterns:
|
|
1944
|
+
quarter: yi({
|
|
1945
|
+
matchPatterns: Zr,
|
|
1946
1946
|
defaultMatchWidth: "wide",
|
|
1947
|
-
parsePatterns:
|
|
1947
|
+
parsePatterns: Xr,
|
|
1948
1948
|
defaultParseWidth: "any",
|
|
1949
1949
|
valueCallback: (i) => i + 1
|
|
1950
1950
|
}),
|
|
1951
|
-
month:
|
|
1952
|
-
matchPatterns:
|
|
1951
|
+
month: yi({
|
|
1952
|
+
matchPatterns: Jr,
|
|
1953
1953
|
defaultMatchWidth: "wide",
|
|
1954
|
-
parsePatterns:
|
|
1954
|
+
parsePatterns: Qr,
|
|
1955
1955
|
defaultParseWidth: "any"
|
|
1956
1956
|
}),
|
|
1957
|
-
day:
|
|
1958
|
-
matchPatterns:
|
|
1957
|
+
day: yi({
|
|
1958
|
+
matchPatterns: to,
|
|
1959
1959
|
defaultMatchWidth: "wide",
|
|
1960
|
-
parsePatterns:
|
|
1960
|
+
parsePatterns: eo,
|
|
1961
1961
|
defaultParseWidth: "any"
|
|
1962
1962
|
}),
|
|
1963
|
-
dayPeriod:
|
|
1964
|
-
matchPatterns:
|
|
1963
|
+
dayPeriod: yi({
|
|
1964
|
+
matchPatterns: io,
|
|
1965
1965
|
defaultMatchWidth: "any",
|
|
1966
|
-
parsePatterns:
|
|
1966
|
+
parsePatterns: so,
|
|
1967
1967
|
defaultParseWidth: "any"
|
|
1968
1968
|
})
|
|
1969
|
-
},
|
|
1969
|
+
}, no = {
|
|
1970
1970
|
code: "en-US",
|
|
1971
|
-
formatDistance:
|
|
1972
|
-
formatLong:
|
|
1973
|
-
formatRelative:
|
|
1974
|
-
localize:
|
|
1975
|
-
match:
|
|
1971
|
+
formatDistance: Nr,
|
|
1972
|
+
formatLong: Pr,
|
|
1973
|
+
formatRelative: Ir,
|
|
1974
|
+
localize: Ur,
|
|
1975
|
+
match: ao,
|
|
1976
1976
|
options: {
|
|
1977
1977
|
weekStartsOn: 0,
|
|
1978
1978
|
firstWeekContainsDate: 1
|
|
1979
1979
|
}
|
|
1980
1980
|
};
|
|
1981
|
-
function
|
|
1981
|
+
function ro(i, t) {
|
|
1982
1982
|
const e = Bt(i, void 0);
|
|
1983
|
-
return
|
|
1983
|
+
return $r(e, Cr(e)) + 1;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const e = Bt(i, void 0), s = +is(e) -
|
|
1987
|
-
return Math.round(s /
|
|
1985
|
+
function oo(i, t) {
|
|
1986
|
+
const e = Bt(i, void 0), s = +is(e) - +_r(e);
|
|
1987
|
+
return Math.round(s / za) + 1;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function Ga(i, t) {
|
|
1990
1990
|
var e, s, a, n;
|
|
1991
1991
|
const r = Bt(i, t == null ? void 0 : t.in), l = r.getFullYear(), d = hs(), 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, g = ie((t == null ? void 0 : t.in) || i, 0);
|
|
1992
1992
|
g.setFullYear(l + 1, 0, p), g.setHours(0, 0, 0, 0);
|
|
1993
|
-
const f =
|
|
1993
|
+
const f = Oi(g, t), k = ie((t == null ? void 0 : t.in) || i, 0);
|
|
1994
1994
|
k.setFullYear(l, 0, p), k.setHours(0, 0, 0, 0);
|
|
1995
|
-
const b =
|
|
1995
|
+
const b = Oi(k, t);
|
|
1996
1996
|
return +r >= +f ? l + 1 : +r >= +b ? l : l - 1;
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function lo(i, t) {
|
|
1999
1999
|
var e, s, a, n;
|
|
2000
|
-
const r = hs(), 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 =
|
|
2001
|
-
return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0),
|
|
2000
|
+
const r = hs(), 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 = Ga(i, t), p = ie((t == null ? void 0 : t.in) || i, 0);
|
|
2001
|
+
return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0), Oi(p, t);
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2004
|
-
const e = Bt(i, t == null ? void 0 : t.in), s = +
|
|
2005
|
-
return Math.round(s /
|
|
2003
|
+
function Ya(i, t) {
|
|
2004
|
+
const e = Bt(i, t == null ? void 0 : t.in), s = +Oi(e, t) - +lo(e, t);
|
|
2005
|
+
return Math.round(s / za) + 1;
|
|
2006
2006
|
}
|
|
2007
2007
|
function H(i, t) {
|
|
2008
2008
|
const e = i < 0 ? "-" : "", s = Math.abs(i).toString().padStart(t, "0");
|
|
@@ -2098,7 +2098,7 @@ const ve = {
|
|
|
2098
2098
|
},
|
|
2099
2099
|
// Local week-numbering year
|
|
2100
2100
|
Y: function(i, t, e, s) {
|
|
2101
|
-
const a =
|
|
2101
|
+
const a = Ga(i, s), n = a > 0 ? a : 1 - a;
|
|
2102
2102
|
if (t === "YY") {
|
|
2103
2103
|
const r = n % 100;
|
|
2104
2104
|
return H(r, 2);
|
|
@@ -2107,7 +2107,7 @@ const ve = {
|
|
|
2107
2107
|
},
|
|
2108
2108
|
// ISO week-numbering year
|
|
2109
2109
|
R: function(i, t) {
|
|
2110
|
-
const e =
|
|
2110
|
+
const e = Wa(i);
|
|
2111
2111
|
return H(e, t.length);
|
|
2112
2112
|
},
|
|
2113
2113
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -2252,12 +2252,12 @@ const ve = {
|
|
|
2252
2252
|
},
|
|
2253
2253
|
// Local week of year
|
|
2254
2254
|
w: function(i, t, e, s) {
|
|
2255
|
-
const a =
|
|
2255
|
+
const a = Ya(i, s);
|
|
2256
2256
|
return t === "wo" ? e.ordinalNumber(a, { unit: "week" }) : H(a, t.length);
|
|
2257
2257
|
},
|
|
2258
2258
|
// ISO week of year
|
|
2259
2259
|
I: function(i, t, e) {
|
|
2260
|
-
const s =
|
|
2260
|
+
const s = oo(i);
|
|
2261
2261
|
return t === "Io" ? e.ordinalNumber(s, { unit: "week" }) : H(s, t.length);
|
|
2262
2262
|
},
|
|
2263
2263
|
// Day of the month
|
|
@@ -2266,7 +2266,7 @@ const ve = {
|
|
|
2266
2266
|
},
|
|
2267
2267
|
// Day of year
|
|
2268
2268
|
D: function(i, t, e) {
|
|
2269
|
-
const s =
|
|
2269
|
+
const s = ro(i);
|
|
2270
2270
|
return t === "Do" ? e.ordinalNumber(s, { unit: "dayOfYear" }) : H(s, t.length);
|
|
2271
2271
|
},
|
|
2272
2272
|
// Day of week
|
|
@@ -2550,7 +2550,7 @@ const ve = {
|
|
|
2550
2550
|
// so this token always has the same output as `XX`
|
|
2551
2551
|
case "XXXX":
|
|
2552
2552
|
case "XX":
|
|
2553
|
-
return
|
|
2553
|
+
return Oe(s);
|
|
2554
2554
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2555
2555
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2556
2556
|
// so this token always has the same output as `XXX`
|
|
@@ -2558,7 +2558,7 @@ const ve = {
|
|
|
2558
2558
|
case "XXX":
|
|
2559
2559
|
// Hours and minutes with `:` delimiter
|
|
2560
2560
|
default:
|
|
2561
|
-
return
|
|
2561
|
+
return Oe(s, ":");
|
|
2562
2562
|
}
|
|
2563
2563
|
},
|
|
2564
2564
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -2573,7 +2573,7 @@ const ve = {
|
|
|
2573
2573
|
// so this token always has the same output as `xx`
|
|
2574
2574
|
case "xxxx":
|
|
2575
2575
|
case "xx":
|
|
2576
|
-
return
|
|
2576
|
+
return Oe(s);
|
|
2577
2577
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2578
2578
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2579
2579
|
// so this token always has the same output as `xxx`
|
|
@@ -2581,7 +2581,7 @@ const ve = {
|
|
|
2581
2581
|
case "xxx":
|
|
2582
2582
|
// Hours and minutes with `:` delimiter
|
|
2583
2583
|
default:
|
|
2584
|
-
return
|
|
2584
|
+
return Oe(s, ":");
|
|
2585
2585
|
}
|
|
2586
2586
|
},
|
|
2587
2587
|
// Timezone (GMT)
|
|
@@ -2596,7 +2596,7 @@ const ve = {
|
|
|
2596
2596
|
// Long
|
|
2597
2597
|
case "OOOO":
|
|
2598
2598
|
default:
|
|
2599
|
-
return "GMT" +
|
|
2599
|
+
return "GMT" + Oe(s, ":");
|
|
2600
2600
|
}
|
|
2601
2601
|
},
|
|
2602
2602
|
// Timezone (specific non-location)
|
|
@@ -2611,7 +2611,7 @@ const ve = {
|
|
|
2611
2611
|
// Long
|
|
2612
2612
|
case "zzzz":
|
|
2613
2613
|
default:
|
|
2614
|
-
return "GMT" +
|
|
2614
|
+
return "GMT" + Oe(s, ":");
|
|
2615
2615
|
}
|
|
2616
2616
|
},
|
|
2617
2617
|
// Seconds timestamp
|
|
@@ -2629,9 +2629,9 @@ function ma(i, t = "") {
|
|
|
2629
2629
|
return n === 0 ? e + String(a) : e + String(a) + t + H(n, 2);
|
|
2630
2630
|
}
|
|
2631
2631
|
function fa(i, t) {
|
|
2632
|
-
return i % 60 === 0 ? (i > 0 ? "-" : "+") + H(Math.abs(i) / 60, 2) :
|
|
2632
|
+
return i % 60 === 0 ? (i > 0 ? "-" : "+") + H(Math.abs(i) / 60, 2) : Oe(i, t);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2634
|
+
function Oe(i, t = "") {
|
|
2635
2635
|
const e = i > 0 ? "-" : "+", s = Math.abs(i), a = H(Math.trunc(s / 60), 2), n = H(s % 60, 2);
|
|
2636
2636
|
return e + a + t + n;
|
|
2637
2637
|
}
|
|
@@ -2647,7 +2647,7 @@ const ga = (i, t) => {
|
|
|
2647
2647
|
default:
|
|
2648
2648
|
return t.date({ width: "full" });
|
|
2649
2649
|
}
|
|
2650
|
-
},
|
|
2650
|
+
}, Za = (i, t) => {
|
|
2651
2651
|
switch (i) {
|
|
2652
2652
|
case "p":
|
|
2653
2653
|
return t.time({ width: "short" });
|
|
@@ -2659,7 +2659,7 @@ const ga = (i, t) => {
|
|
|
2659
2659
|
default:
|
|
2660
2660
|
return t.time({ width: "full" });
|
|
2661
2661
|
}
|
|
2662
|
-
},
|
|
2662
|
+
}, ho = (i, t) => {
|
|
2663
2663
|
const e = i.match(/(P+)(p+)?/) || [], s = e[1], a = e[2];
|
|
2664
2664
|
if (!a)
|
|
2665
2665
|
return ga(i, t);
|
|
@@ -2679,47 +2679,47 @@ const ga = (i, t) => {
|
|
|
2679
2679
|
n = t.dateTime({ width: "full" });
|
|
2680
2680
|
break;
|
|
2681
2681
|
}
|
|
2682
|
-
return n.replace("{{date}}", ga(s, t)).replace("{{time}}",
|
|
2683
|
-
},
|
|
2684
|
-
p:
|
|
2685
|
-
P:
|
|
2686
|
-
},
|
|
2687
|
-
function mo(i) {
|
|
2688
|
-
return co.test(i);
|
|
2689
|
-
}
|
|
2682
|
+
return n.replace("{{date}}", ga(s, t)).replace("{{time}}", Za(a, t));
|
|
2683
|
+
}, co = {
|
|
2684
|
+
p: Za,
|
|
2685
|
+
P: ho
|
|
2686
|
+
}, po = /^D+$/, uo = /^Y+$/, mo = ["D", "DD", "YY", "YYYY"];
|
|
2690
2687
|
function fo(i) {
|
|
2691
2688
|
return po.test(i);
|
|
2692
2689
|
}
|
|
2693
|
-
function go(i
|
|
2694
|
-
|
|
2695
|
-
if (console.warn(s), uo.includes(i)) throw new RangeError(s);
|
|
2690
|
+
function go(i) {
|
|
2691
|
+
return uo.test(i);
|
|
2696
2692
|
}
|
|
2697
2693
|
function vo(i, t, e) {
|
|
2694
|
+
const s = bo(i, t, e);
|
|
2695
|
+
if (console.warn(s), mo.includes(i)) throw new RangeError(s);
|
|
2696
|
+
}
|
|
2697
|
+
function bo(i, t, e) {
|
|
2698
2698
|
const s = i[0] === "Y" ? "years" : "days of the month";
|
|
2699
2699
|
return `Use \`${i.toLowerCase()}\` instead of \`${i}\` (in \`${t}\`) for formatting ${s} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2700
2700
|
}
|
|
2701
|
-
const
|
|
2702
|
-
function
|
|
2701
|
+
const yo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ko = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $o = /^'([^]*?)'?$/, _o = /''/g, wo = /[a-zA-Z]/;
|
|
2702
|
+
function xo(i, t, e) {
|
|
2703
2703
|
var s, a, n, r;
|
|
2704
|
-
const l = hs(), d = l.locale ??
|
|
2705
|
-
if (!
|
|
2704
|
+
const l = hs(), d = l.locale ?? no, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, g = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, f = Bt(i, void 0);
|
|
2705
|
+
if (!xr(f))
|
|
2706
2706
|
throw new RangeError("Invalid time value");
|
|
2707
|
-
let k = t.match(
|
|
2707
|
+
let k = t.match(ko).map((y) => {
|
|
2708
2708
|
const w = y[0];
|
|
2709
2709
|
if (w === "p" || w === "P") {
|
|
2710
|
-
const C =
|
|
2710
|
+
const C = co[w];
|
|
2711
2711
|
return C(y, d.formatLong);
|
|
2712
2712
|
}
|
|
2713
2713
|
return y;
|
|
2714
|
-
}).join("").match(
|
|
2714
|
+
}).join("").match(yo).map((y) => {
|
|
2715
2715
|
if (y === "''")
|
|
2716
2716
|
return { isToken: !1, value: "'" };
|
|
2717
2717
|
const w = y[0];
|
|
2718
2718
|
if (w === "'")
|
|
2719
|
-
return { isToken: !1, value:
|
|
2719
|
+
return { isToken: !1, value: So(y) };
|
|
2720
2720
|
if (ua[w])
|
|
2721
2721
|
return { isToken: !0, value: y };
|
|
2722
|
-
if (w.match(
|
|
2722
|
+
if (w.match(wo))
|
|
2723
2723
|
throw new RangeError(
|
|
2724
2724
|
"Format string contains an unescaped latin alphabet character `" + w + "`"
|
|
2725
2725
|
);
|
|
@@ -2734,20 +2734,20 @@ function wo(i, t, e) {
|
|
|
2734
2734
|
return k.map((y) => {
|
|
2735
2735
|
if (!y.isToken) return y.value;
|
|
2736
2736
|
const w = y.value;
|
|
2737
|
-
(
|
|
2737
|
+
(go(w) || fo(w)) && vo(w, t, String(i));
|
|
2738
2738
|
const C = ua[w[0]];
|
|
2739
2739
|
return C(f, w, d.localize, b);
|
|
2740
2740
|
}).join("");
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2743
|
-
const t = i.match(
|
|
2744
|
-
return t ? t[1].replace(
|
|
2742
|
+
function So(i) {
|
|
2743
|
+
const t = i.match($o);
|
|
2744
|
+
return t ? t[1].replace(_o, "'") : i;
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function Co(i, t) {
|
|
2747
2747
|
const e = Bt(i, void 0).getDay();
|
|
2748
2748
|
return e === 0 ? 7 : e;
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function To(i, t, e = "long") {
|
|
2751
2751
|
return new Intl.DateTimeFormat("en-US", {
|
|
2752
2752
|
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
2753
2753
|
hour: "numeric",
|
|
@@ -2755,40 +2755,40 @@ function Co(i, t, e = "long") {
|
|
|
2755
2755
|
timeZoneName: e
|
|
2756
2756
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
2757
2757
|
}
|
|
2758
|
-
const va = {},
|
|
2759
|
-
function
|
|
2758
|
+
const va = {}, _i = {};
|
|
2759
|
+
function Me(i, t) {
|
|
2760
2760
|
try {
|
|
2761
2761
|
const e = (va[i] || (va[i] = new Intl.DateTimeFormat("en-US", {
|
|
2762
2762
|
timeZone: i,
|
|
2763
2763
|
timeZoneName: "longOffset"
|
|
2764
2764
|
}).format))(t).split("GMT")[1];
|
|
2765
|
-
return e in
|
|
2765
|
+
return e in _i ? _i[e] : ba(e, e.split(":"));
|
|
2766
2766
|
} catch {
|
|
2767
|
-
if (i in
|
|
2768
|
-
const e = i == null ? void 0 : i.match(
|
|
2767
|
+
if (i in _i) return _i[i];
|
|
2768
|
+
const e = i == null ? void 0 : i.match(No);
|
|
2769
2769
|
return e ? ba(i, e.slice(1)) : NaN;
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
|
-
const
|
|
2772
|
+
const No = /([+-]\d\d):?(\d\d)?/;
|
|
2773
2773
|
function ba(i, t) {
|
|
2774
2774
|
const e = +(t[0] || 0), s = +(t[1] || 0), a = +(t[2] || 0) / 60;
|
|
2775
|
-
return
|
|
2775
|
+
return _i[i] = e * 60 + s > 0 ? e * 60 + s + a : e * 60 - s - a;
|
|
2776
2776
|
}
|
|
2777
|
-
let
|
|
2777
|
+
let wi = class xi extends Date {
|
|
2778
2778
|
//#region static
|
|
2779
2779
|
constructor(...t) {
|
|
2780
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(
|
|
2780
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Me(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)), Xa(this), Is(this)) : this.setTime(Date.now());
|
|
2781
2781
|
}
|
|
2782
2782
|
static tz(t, ...e) {
|
|
2783
|
-
return e.length ? new
|
|
2783
|
+
return e.length ? new xi(...e, t) : new xi(Date.now(), t);
|
|
2784
2784
|
}
|
|
2785
2785
|
//#endregion
|
|
2786
2786
|
//#region time zone
|
|
2787
2787
|
withTimeZone(t) {
|
|
2788
|
-
return new
|
|
2788
|
+
return new xi(+this, t);
|
|
2789
2789
|
}
|
|
2790
2790
|
getTimezoneOffset() {
|
|
2791
|
-
const t = -
|
|
2791
|
+
const t = -Me(this.timeZone, this);
|
|
2792
2792
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
2793
2793
|
}
|
|
2794
2794
|
//#endregion
|
|
@@ -2799,7 +2799,7 @@ let _i = class wi extends Date {
|
|
|
2799
2799
|
//#endregion
|
|
2800
2800
|
//#region date-fns integration
|
|
2801
2801
|
[Symbol.for("constructDateFrom")](t) {
|
|
2802
|
-
return new
|
|
2802
|
+
return new xi(+new Date(t), this.timeZone);
|
|
2803
2803
|
}
|
|
2804
2804
|
//#endregion
|
|
2805
2805
|
};
|
|
@@ -2807,22 +2807,22 @@ const ya = /^(get|set)(?!UTC)/;
|
|
|
2807
2807
|
Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
|
|
2808
2808
|
if (!ya.test(i)) return;
|
|
2809
2809
|
const t = i.replace(ya, "$1UTC");
|
|
2810
|
-
|
|
2810
|
+
wi.prototype[t] && (i.startsWith("get") ? wi.prototype[i] = function() {
|
|
2811
2811
|
return this.internal[t]();
|
|
2812
|
-
} : (
|
|
2813
|
-
return Date.prototype[t].apply(this.internal, arguments),
|
|
2814
|
-
},
|
|
2812
|
+
} : (wi.prototype[i] = function() {
|
|
2813
|
+
return Date.prototype[t].apply(this.internal, arguments), Ao(this), +this;
|
|
2814
|
+
}, wi.prototype[t] = function() {
|
|
2815
2815
|
return Date.prototype[t].apply(this, arguments), Is(this), +this;
|
|
2816
2816
|
}));
|
|
2817
2817
|
});
|
|
2818
2818
|
function Is(i) {
|
|
2819
|
-
i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-
|
|
2819
|
+
i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Me(i.timeZone, i) * 60));
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2822
|
-
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()),
|
|
2821
|
+
function Ao(i) {
|
|
2822
|
+
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()), Xa(i);
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2825
|
-
const t =
|
|
2824
|
+
function Xa(i) {
|
|
2825
|
+
const t = Me(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
|
|
2826
2826
|
s.setUTCHours(s.getUTCHours() - 1);
|
|
2827
2827
|
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();
|
|
2828
2828
|
r && l && i.internal.setUTCMinutes(i.internal.getUTCMinutes() + r);
|
|
@@ -2830,19 +2830,19 @@ function Za(i) {
|
|
|
2830
2830
|
d && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + d);
|
|
2831
2831
|
const p = /* @__PURE__ */ new Date(+i);
|
|
2832
2832
|
p.setUTCSeconds(0);
|
|
2833
|
-
const g = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(
|
|
2833
|
+
const g = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Me(i.timeZone, i) * 60)) % 60;
|
|
2834
2834
|
(f || g) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + g));
|
|
2835
|
-
const k =
|
|
2835
|
+
const k = Me(i.timeZone, i), b = k > 0 ? Math.floor(k) : Math.ceil(k), y = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = y - d;
|
|
2836
2836
|
if (w && C) {
|
|
2837
2837
|
Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
|
|
2838
|
-
const P =
|
|
2838
|
+
const P = Me(i.timeZone, i), T = P > 0 ? Math.floor(P) : Math.ceil(P), j = b - T;
|
|
2839
2839
|
j && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + j), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + j));
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
|
-
let Ds = class
|
|
2842
|
+
let Ds = class Si extends wi {
|
|
2843
2843
|
//#region static
|
|
2844
2844
|
static tz(t, ...e) {
|
|
2845
|
-
return e.length ? new
|
|
2845
|
+
return e.length ? new Si(...e, t) : new Si(Date.now(), t);
|
|
2846
2846
|
}
|
|
2847
2847
|
//#endregion
|
|
2848
2848
|
//#region representation
|
|
@@ -2859,7 +2859,7 @@ let Ds = class xi extends _i {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
toTimeString() {
|
|
2861
2861
|
const t = this.internal.toUTCString().split(" ")[4], [e, s, a] = this.tzComponents();
|
|
2862
|
-
return `${t} GMT${e}${s}${a} (${
|
|
2862
|
+
return `${t} GMT${e}${s}${a} (${To(this.timeZone, this)})`;
|
|
2863
2863
|
}
|
|
2864
2864
|
toLocaleString(t, e) {
|
|
2865
2865
|
return Date.prototype.toLocaleString.call(this, t, {
|
|
@@ -2887,16 +2887,16 @@ let Ds = class xi extends _i {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
//#endregion
|
|
2889
2889
|
withTimeZone(t) {
|
|
2890
|
-
return new
|
|
2890
|
+
return new Si(+this, t);
|
|
2891
2891
|
}
|
|
2892
2892
|
//#region date-fns integration
|
|
2893
2893
|
[Symbol.for("constructDateFrom")](t) {
|
|
2894
|
-
return new
|
|
2894
|
+
return new Si(+new Date(t), this.timeZone);
|
|
2895
2895
|
}
|
|
2896
2896
|
//#endregion
|
|
2897
2897
|
};
|
|
2898
2898
|
window.pktTz = window.pktTz === void 0 ? "Europe/Oslo" : window.pktTz;
|
|
2899
|
-
const
|
|
2899
|
+
const Eo = (i = window.pktTz) => {
|
|
2900
2900
|
const t = new Ds((/* @__PURE__ */ new Date()).toISOString(), i);
|
|
2901
2901
|
return t.setHours(0, 0, 0, 0), isNaN(t.getTime()) ? /* @__PURE__ */ new Date() : new Date(t.getFullYear(), t.getMonth(), t.getDate());
|
|
2902
2902
|
};
|
|
@@ -2923,7 +2923,7 @@ const nt = (i) => {
|
|
|
2923
2923
|
return isNaN(t.getTime()) ? null : t;
|
|
2924
2924
|
}, ka = (i, t) => {
|
|
2925
2925
|
const e = ce(i);
|
|
2926
|
-
return isNaN(e.getTime()) ? "" :
|
|
2926
|
+
return isNaN(e.getTime()) ? "" : xo(e, t);
|
|
2927
2927
|
}, ce = (i = "", t) => {
|
|
2928
2928
|
const e = typeof i == "string" ? _e(i) : i;
|
|
2929
2929
|
return !e || isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : e;
|
|
@@ -2932,53 +2932,53 @@ const nt = (i) => {
|
|
|
2932
2932
|
return /* @__PURE__ */ new Date();
|
|
2933
2933
|
const s = new Date(i, t, e);
|
|
2934
2934
|
return isNaN(s.getTime()) ? /* @__PURE__ */ new Date() : s;
|
|
2935
|
-
},
|
|
2935
|
+
}, ki = (i) => {
|
|
2936
2936
|
let t;
|
|
2937
2937
|
return typeof i == "number" ? t = new Ds(i, window.pktTz) : t = new Ds(i, window.pktTz), t.setHours(12, 0, 0, 0), t;
|
|
2938
|
-
},
|
|
2938
|
+
}, Oo = (i) => !i || isNaN(i.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(i), Po = (i, t, e) => {
|
|
2939
2939
|
if (!i || isNaN(i.getTime())) return !1;
|
|
2940
2940
|
const s = t ? ce(t) : null, a = e ? ce(e) : null;
|
|
2941
2941
|
return !(s && i < s || a && i > a);
|
|
2942
|
-
},
|
|
2942
|
+
}, Mo = (i, t) => {
|
|
2943
2943
|
if (!i || isNaN(i.getTime()) || !Array.isArray(t)) return !1;
|
|
2944
2944
|
const e = nt(i);
|
|
2945
2945
|
return t.includes(e);
|
|
2946
|
-
},
|
|
2946
|
+
}, Io = (i, t) => {
|
|
2947
2947
|
if (!i || isNaN(i.getTime()) || !Array.isArray(t)) return !1;
|
|
2948
2948
|
const e = i.getDay().toString();
|
|
2949
2949
|
return t.includes(e);
|
|
2950
|
-
},
|
|
2950
|
+
}, Ja = (i, t, e, s, a) => !(!i || isNaN(i.getTime()) || !Po(i, t, e) || s && Mo(i, s) || a && Io(i, a)), Do = (i, t, e, s, a) => i.filter((n) => {
|
|
2951
2951
|
const r = we(n);
|
|
2952
|
-
return r &&
|
|
2953
|
-
}),
|
|
2952
|
+
return r && Ja(r, t, e, s, a);
|
|
2953
|
+
}), Ro = (i) => i.slice().sort((t, e) => {
|
|
2954
2954
|
const s = we(t), a = we(e);
|
|
2955
2955
|
return !s || !a ? 0 : s.getTime() - a.getTime();
|
|
2956
|
-
}),
|
|
2956
|
+
}), Lo = (i, t) => {
|
|
2957
2957
|
const e = we(i), s = we(t);
|
|
2958
2958
|
return !e || !s ? !1 : e <= s;
|
|
2959
|
-
},
|
|
2959
|
+
}, Qa = (i) => {
|
|
2960
2960
|
if (Array.isArray(i)) return i;
|
|
2961
2961
|
if (typeof i == "string") return i.split(",");
|
|
2962
|
-
},
|
|
2962
|
+
}, Bo = (i) => i ? _e(i) : null, Vo = (i) => {
|
|
2963
2963
|
if (typeof i == "string")
|
|
2964
2964
|
return i.split(",").map((t) => _e(t));
|
|
2965
2965
|
if (Array.isArray(i))
|
|
2966
2966
|
return i.map((t) => _e(t));
|
|
2967
|
-
},
|
|
2968
|
-
csvToArray:
|
|
2969
|
-
stringToDate:
|
|
2970
|
-
stringsToDate:
|
|
2971
|
-
},
|
|
2972
|
-
props:
|
|
2967
|
+
}, hi = {
|
|
2968
|
+
csvToArray: Qa,
|
|
2969
|
+
stringToDate: Bo,
|
|
2970
|
+
stringsToDate: Vo
|
|
2971
|
+
}, jo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, Ee = {
|
|
2972
|
+
props: jo
|
|
2973
2973
|
};
|
|
2974
|
-
var
|
|
2975
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
2974
|
+
var Fo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, W = (i, t, e, s) => {
|
|
2975
|
+
for (var a = s > 1 ? void 0 : s ? Uo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
2976
2976
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
2977
|
-
return s && a &&
|
|
2977
|
+
return s && a && Fo(t, e, a), a;
|
|
2978
2978
|
};
|
|
2979
2979
|
let q = class extends G {
|
|
2980
2980
|
constructor() {
|
|
2981
|
-
super(...arguments), this.multiple =
|
|
2981
|
+
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;
|
|
2982
2982
|
}
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Runs on mount, used to set up various values and whatever you need to run
|
|
@@ -3018,9 +3018,9 @@ let q = class extends G {
|
|
|
3018
3018
|
setCurrentMonth() {
|
|
3019
3019
|
if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
|
|
3020
3020
|
const t = _e(this.selected[this.selected.length - 1]);
|
|
3021
|
-
this.currentmonth = isNaN(t.getTime()) ?
|
|
3022
|
-
} else this.currentmonth === null && (this.currentmonth =
|
|
3023
|
-
(!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth =
|
|
3021
|
+
this.currentmonth = isNaN(t.getTime()) ? ki(/* @__PURE__ */ new Date()) : t;
|
|
3022
|
+
} else this.currentmonth === null && (this.currentmonth = ki(/* @__PURE__ */ new Date()));
|
|
3023
|
+
(!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = ki(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
|
|
3024
3024
|
}
|
|
3025
3025
|
handleKeydown(t) {
|
|
3026
3026
|
switch (t.key) {
|
|
@@ -3177,7 +3177,7 @@ let q = class extends G {
|
|
|
3177
3177
|
}
|
|
3178
3178
|
renderDayView(t, e) {
|
|
3179
3179
|
var s;
|
|
3180
|
-
const a = be(this.year, this.month, t), n = nt(a), r = n === nt(e), l = this.selected.includes(n), d =
|
|
3180
|
+
const a = be(this.year, this.month, t), n = nt(a), r = n === nt(e), l = this.selected.includes(n), d = Oo(a), p = this.isExcluded(a) || !l && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, g = this.focusedDate ? this.focusedDate === n && !p ? "0" : "-1" : !p && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
|
|
3181
3181
|
g === "0" && (this.tabIndexSet = t), this.selectableDates.push({ currentDateISO: n, isDisabled: p, tabindex: g });
|
|
3182
3182
|
const f = {
|
|
3183
3183
|
"pkt-cal-today": r,
|
|
@@ -3225,9 +3225,9 @@ let q = class extends G {
|
|
|
3225
3225
|
</td>`;
|
|
3226
3226
|
}
|
|
3227
3227
|
renderCalendarBody() {
|
|
3228
|
-
const t =
|
|
3228
|
+
const t = Eo(), e = be(this.year, this.month, 1), s = be(this.year, this.month + 1, 0), a = (e.getDay() + 6) % 7, n = s.getDate(), r = Math.ceil((n + a) / 7), l = be(this.year, this.month, 0).getDate();
|
|
3229
3229
|
let d = 1;
|
|
3230
|
-
this.week =
|
|
3230
|
+
this.week = Ya(be(this.year, this.month, 1));
|
|
3231
3231
|
const p = [];
|
|
3232
3232
|
for (let g = 0; g < r; g++) {
|
|
3233
3233
|
const f = [];
|
|
@@ -3267,7 +3267,7 @@ let q = class extends G {
|
|
|
3267
3267
|
const e = this.excludedates.map(
|
|
3268
3268
|
(s) => typeof s == "string" ? s : nt(s)
|
|
3269
3269
|
);
|
|
3270
|
-
return !
|
|
3270
|
+
return !Ja(
|
|
3271
3271
|
t,
|
|
3272
3272
|
this.earliest,
|
|
3273
3273
|
this.latest,
|
|
@@ -3296,7 +3296,7 @@ let q = class extends G {
|
|
|
3296
3296
|
this.changeMonth(e, t);
|
|
3297
3297
|
}
|
|
3298
3298
|
changeMonth(t, e) {
|
|
3299
|
-
this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth =
|
|
3299
|
+
this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth = ki(new Date(this.year, this.month, 1)), this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [];
|
|
3300
3300
|
}
|
|
3301
3301
|
isRangeAllowed(t) {
|
|
3302
3302
|
let e = !0;
|
|
@@ -3309,7 +3309,7 @@ let q = class extends G {
|
|
|
3309
3309
|
for (let a = 0; a < s.length; a++)
|
|
3310
3310
|
this.excludedates.forEach((n) => {
|
|
3311
3311
|
n > this._selected[0] && n < t && (e = !1);
|
|
3312
|
-
}), this.excludeweekdays.includes(
|
|
3312
|
+
}), this.excludeweekdays.includes(Co(s[a]).toString()) && (e = !1);
|
|
3313
3313
|
}
|
|
3314
3314
|
return e;
|
|
3315
3315
|
}
|
|
@@ -3361,7 +3361,7 @@ let q = class extends G {
|
|
|
3361
3361
|
), Promise.resolve();
|
|
3362
3362
|
}
|
|
3363
3363
|
focusOnCurrentDate() {
|
|
3364
|
-
const t = nt(
|
|
3364
|
+
const t = nt(ki(/* @__PURE__ */ new Date())), e = this.querySelector(`button[data-date="${t}"]`);
|
|
3365
3365
|
if (e instanceof HTMLButtonElement)
|
|
3366
3366
|
this.focusedDate = t, e.focus();
|
|
3367
3367
|
else {
|
|
@@ -3387,97 +3387,97 @@ let q = class extends G {
|
|
|
3387
3387
|
);
|
|
3388
3388
|
}
|
|
3389
3389
|
};
|
|
3390
|
-
|
|
3390
|
+
W([
|
|
3391
3391
|
o({ type: Boolean })
|
|
3392
3392
|
], q.prototype, "multiple", 2);
|
|
3393
|
-
|
|
3393
|
+
W([
|
|
3394
3394
|
o({ type: Number })
|
|
3395
3395
|
], q.prototype, "maxMultiple", 2);
|
|
3396
|
-
|
|
3396
|
+
W([
|
|
3397
3397
|
o({ type: Boolean })
|
|
3398
3398
|
], q.prototype, "range", 2);
|
|
3399
|
-
|
|
3399
|
+
W([
|
|
3400
3400
|
o({ type: Boolean })
|
|
3401
3401
|
], q.prototype, "weeknumbers", 2);
|
|
3402
|
-
|
|
3402
|
+
W([
|
|
3403
3403
|
o({ type: Boolean })
|
|
3404
3404
|
], q.prototype, "withcontrols", 2);
|
|
3405
|
-
|
|
3406
|
-
o({ converter:
|
|
3405
|
+
W([
|
|
3406
|
+
o({ converter: hi.csvToArray })
|
|
3407
3407
|
], q.prototype, "selected", 2);
|
|
3408
|
-
|
|
3408
|
+
W([
|
|
3409
3409
|
o({ type: String })
|
|
3410
3410
|
], q.prototype, "earliest", 2);
|
|
3411
|
-
|
|
3411
|
+
W([
|
|
3412
3412
|
o({ type: String })
|
|
3413
3413
|
], q.prototype, "latest", 2);
|
|
3414
|
-
|
|
3415
|
-
o({ converter:
|
|
3414
|
+
W([
|
|
3415
|
+
o({ converter: hi.stringsToDate })
|
|
3416
3416
|
], q.prototype, "excludedates", 2);
|
|
3417
|
-
|
|
3418
|
-
o({ converter:
|
|
3417
|
+
W([
|
|
3418
|
+
o({ converter: hi.csvToArray })
|
|
3419
3419
|
], q.prototype, "excludeweekdays", 2);
|
|
3420
|
-
|
|
3421
|
-
o({ converter:
|
|
3420
|
+
W([
|
|
3421
|
+
o({ converter: hi.stringToDate })
|
|
3422
3422
|
], q.prototype, "currentmonth", 2);
|
|
3423
|
-
|
|
3423
|
+
W([
|
|
3424
3424
|
o({ type: Array })
|
|
3425
3425
|
], q.prototype, "dayStrings", 2);
|
|
3426
|
-
|
|
3426
|
+
W([
|
|
3427
3427
|
o({ type: Array })
|
|
3428
3428
|
], q.prototype, "dayStringsLong", 2);
|
|
3429
|
-
|
|
3429
|
+
W([
|
|
3430
3430
|
o({ type: Array })
|
|
3431
3431
|
], q.prototype, "monthStrings", 2);
|
|
3432
|
-
|
|
3432
|
+
W([
|
|
3433
3433
|
o({ type: String })
|
|
3434
3434
|
], q.prototype, "weekString", 2);
|
|
3435
|
-
|
|
3435
|
+
W([
|
|
3436
3436
|
o({ type: String })
|
|
3437
3437
|
], q.prototype, "prevMonthString", 2);
|
|
3438
|
-
|
|
3438
|
+
W([
|
|
3439
3439
|
o({ type: String })
|
|
3440
3440
|
], q.prototype, "nextMonthString", 2);
|
|
3441
|
-
|
|
3441
|
+
W([
|
|
3442
3442
|
o({ type: Array })
|
|
3443
3443
|
], q.prototype, "_selected", 2);
|
|
3444
|
-
|
|
3444
|
+
W([
|
|
3445
3445
|
o({ type: Number })
|
|
3446
3446
|
], q.prototype, "year", 2);
|
|
3447
|
-
|
|
3447
|
+
W([
|
|
3448
3448
|
o({ type: Number })
|
|
3449
3449
|
], q.prototype, "month", 2);
|
|
3450
|
-
|
|
3450
|
+
W([
|
|
3451
3451
|
o({ type: Number })
|
|
3452
3452
|
], q.prototype, "week", 2);
|
|
3453
|
-
|
|
3453
|
+
W([
|
|
3454
3454
|
o({ type: Date })
|
|
3455
3455
|
], q.prototype, "rangeHovered", 2);
|
|
3456
|
-
|
|
3456
|
+
W([
|
|
3457
3457
|
R()
|
|
3458
3458
|
], q.prototype, "inRange", 2);
|
|
3459
|
-
|
|
3459
|
+
W([
|
|
3460
3460
|
R()
|
|
3461
3461
|
], q.prototype, "focusedDate", 2);
|
|
3462
|
-
|
|
3462
|
+
W([
|
|
3463
3463
|
R()
|
|
3464
3464
|
], q.prototype, "selectableDates", 2);
|
|
3465
|
-
|
|
3465
|
+
W([
|
|
3466
3466
|
R()
|
|
3467
3467
|
], q.prototype, "currentmonthtouched", 2);
|
|
3468
|
-
|
|
3468
|
+
W([
|
|
3469
3469
|
R()
|
|
3470
3470
|
], q.prototype, "tabIndexSet", 2);
|
|
3471
|
-
q =
|
|
3471
|
+
q = W([
|
|
3472
3472
|
B("pkt-calendar")
|
|
3473
3473
|
], q);
|
|
3474
|
-
const
|
|
3475
|
-
props:
|
|
3474
|
+
const Ho = { size: { default: "medium" }, skin: { default: "blue" }, closeTag: { default: !1 }, type: { default: "button" } }, Ki = {
|
|
3475
|
+
props: Ho
|
|
3476
3476
|
};
|
|
3477
|
-
var
|
|
3478
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
3477
|
+
var qo = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, ne = (i, t, e, s) => {
|
|
3478
|
+
for (var a = s > 1 ? void 0 : s ? zo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
3479
3479
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
3480
|
-
return s && a &&
|
|
3480
|
+
return s && a && qo(t, e, a), a;
|
|
3481
3481
|
};
|
|
3482
3482
|
let qt = class extends G {
|
|
3483
3483
|
constructor() {
|
|
@@ -3487,7 +3487,7 @@ let qt = class extends G {
|
|
|
3487
3487
|
), this.dispatchEvent(
|
|
3488
3488
|
new CustomEvent("on-close", { detail: { origin: t }, bubbles: !0, composed: !0 })
|
|
3489
3489
|
);
|
|
3490
|
-
}, this.slotController = new
|
|
3490
|
+
}, this.slotController = new rt(this, this.defaultSlot), this._isClosed = !1;
|
|
3491
3491
|
}
|
|
3492
3492
|
/**
|
|
3493
3493
|
* Lifecycle
|
|
@@ -3565,12 +3565,12 @@ ne([
|
|
|
3565
3565
|
qt = ne([
|
|
3566
3566
|
B("pkt-tag")
|
|
3567
3567
|
], qt);
|
|
3568
|
-
var
|
|
3569
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
3568
|
+
var Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Li = (i, t, e, s) => {
|
|
3569
|
+
for (var a = s > 1 ? void 0 : s ? Ko(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
3570
3570
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
3571
|
-
return s && a &&
|
|
3571
|
+
return s && a && Wo(t, e, a), a;
|
|
3572
3572
|
};
|
|
3573
|
-
let
|
|
3573
|
+
let Le = class extends os {
|
|
3574
3574
|
constructor() {
|
|
3575
3575
|
super(...arguments), this.size = void 0, this.level = 2, this.visuallyHidden = !1, this.align = void 0;
|
|
3576
3576
|
}
|
|
@@ -3624,26 +3624,26 @@ let Be = class extends os {
|
|
|
3624
3624
|
};
|
|
3625
3625
|
Li([
|
|
3626
3626
|
o({ type: String, reflect: !0 })
|
|
3627
|
-
],
|
|
3627
|
+
], Le.prototype, "size", 2);
|
|
3628
3628
|
Li([
|
|
3629
3629
|
o({ type: Number, reflect: !0 })
|
|
3630
|
-
],
|
|
3630
|
+
], Le.prototype, "level", 2);
|
|
3631
3631
|
Li([
|
|
3632
3632
|
o({ type: Boolean, reflect: !0 })
|
|
3633
|
-
],
|
|
3633
|
+
], Le.prototype, "visuallyHidden", 2);
|
|
3634
3634
|
Li([
|
|
3635
3635
|
o({ type: String, reflect: !0 })
|
|
3636
|
-
],
|
|
3637
|
-
|
|
3636
|
+
], Le.prototype, "align", 2);
|
|
3637
|
+
Le = Li([
|
|
3638
3638
|
B("pkt-heading")
|
|
3639
|
-
],
|
|
3640
|
-
const
|
|
3641
|
-
props:
|
|
3639
|
+
], Le);
|
|
3640
|
+
const Go = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Je = {
|
|
3641
|
+
props: Go
|
|
3642
3642
|
};
|
|
3643
|
-
var
|
|
3644
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
3643
|
+
var Yo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, mt = (i, t, e, s) => {
|
|
3644
|
+
for (var a = s > 1 ? void 0 : s ? Zo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
3645
3645
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
3646
|
-
return s && a &&
|
|
3646
|
+
return s && a && Yo(t, e, a), a;
|
|
3647
3647
|
};
|
|
3648
3648
|
let ht = class extends G {
|
|
3649
3649
|
//Constructor
|
|
@@ -3651,7 +3651,7 @@ let ht = class extends G {
|
|
|
3651
3651
|
super(), this.defaultSlot = N(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = Je.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
|
|
3652
3652
|
src: "",
|
|
3653
3653
|
alt: ""
|
|
3654
|
-
}, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = Je.props.padding.default, this.skin = Je.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new
|
|
3654
|
+
}, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = Je.props.padding.default, this.skin = Je.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new rt(this, this.defaultSlot);
|
|
3655
3655
|
}
|
|
3656
3656
|
connectedCallback() {
|
|
3657
3657
|
super.connectedCallback();
|
|
@@ -3868,7 +3868,7 @@ const $a = (i, t, e) => {
|
|
|
3868
3868
|
const s = /* @__PURE__ */ new Map();
|
|
3869
3869
|
for (let a = t; a <= e; a++) s.set(i[a], a);
|
|
3870
3870
|
return s;
|
|
3871
|
-
}, Vs = Fe(class extends
|
|
3871
|
+
}, Vs = Fe(class extends li {
|
|
3872
3872
|
constructor(i) {
|
|
3873
3873
|
if (super(i), i.type !== Kt.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
3874
3874
|
}
|
|
@@ -3884,43 +3884,43 @@ const $a = (i, t, e) => {
|
|
|
3884
3884
|
return this.dt(i, t, e).values;
|
|
3885
3885
|
}
|
|
3886
3886
|
update(i, [t, e, s]) {
|
|
3887
|
-
const a =
|
|
3887
|
+
const a = Jn(i), { values: n, keys: r } = this.dt(t, e, s);
|
|
3888
3888
|
if (!Array.isArray(a)) return this.ut = r, n;
|
|
3889
3889
|
const l = this.ut ?? (this.ut = []), d = [];
|
|
3890
3890
|
let p, g, f = 0, k = a.length - 1, b = 0, y = n.length - 1;
|
|
3891
3891
|
for (; f <= k && b <= y; ) if (a[f] === null) f++;
|
|
3892
3892
|
else if (a[k] === null) k--;
|
|
3893
|
-
else if (l[f] === r[b]) d[b] =
|
|
3894
|
-
else if (l[k] === r[y]) d[y] =
|
|
3895
|
-
else if (l[f] === r[y]) d[y] =
|
|
3896
|
-
else if (l[k] === r[b]) d[b] =
|
|
3893
|
+
else if (l[f] === r[b]) d[b] = Ae(a[f], n[b]), f++, b++;
|
|
3894
|
+
else if (l[k] === r[y]) d[y] = Ae(a[k], n[y]), k--, y--;
|
|
3895
|
+
else if (l[f] === r[y]) d[y] = Ae(a[f], n[y]), vi(i, d[y + 1], a[f]), f++, y--;
|
|
3896
|
+
else if (l[k] === r[b]) d[b] = Ae(a[k], n[b]), vi(i, a[f], a[k]), k--, b++;
|
|
3897
3897
|
else if (p === void 0 && (p = $a(r, b, y), g = $a(l, f, k)), p.has(l[f])) if (p.has(l[k])) {
|
|
3898
3898
|
const w = g.get(r[b]), C = w !== void 0 ? a[w] : null;
|
|
3899
3899
|
if (C === null) {
|
|
3900
|
-
const P =
|
|
3901
|
-
|
|
3902
|
-
} else d[b] =
|
|
3900
|
+
const P = vi(i, a[f]);
|
|
3901
|
+
Ae(P, n[b]), d[b] = P;
|
|
3902
|
+
} else d[b] = Ae(C, n[b]), vi(i, a[f], C), a[w] = null;
|
|
3903
3903
|
b++;
|
|
3904
3904
|
} else ys(a[k]), k--;
|
|
3905
3905
|
else ys(a[f]), f++;
|
|
3906
3906
|
for (; b <= y; ) {
|
|
3907
|
-
const w =
|
|
3908
|
-
|
|
3907
|
+
const w = vi(i, d[y + 1]);
|
|
3908
|
+
Ae(w, n[b]), d[b++] = w;
|
|
3909
3909
|
}
|
|
3910
3910
|
for (; f <= k; ) {
|
|
3911
3911
|
const w = a[f++];
|
|
3912
3912
|
w !== null && ys(w);
|
|
3913
3913
|
}
|
|
3914
|
-
return this.ut = r,
|
|
3914
|
+
return this.ut = r, Ua(i, d), $t;
|
|
3915
3915
|
}
|
|
3916
3916
|
}), _a = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), ke = () => {
|
|
3917
3917
|
const i = _a(), t = _a();
|
|
3918
3918
|
return i.slice(0, 8) + "-" + i.slice(8, 12) + "-4" + i.slice(13) + "-a" + t.slice(1, 4) + "-" + t.slice(4);
|
|
3919
|
-
},
|
|
3920
|
-
props:
|
|
3919
|
+
}, Xo = { helptextDropdownButton: { default: "Les mer <span class='pkt-sr-only'>om feltet</span>" }, counter: { default: !1 }, optionalTag: { default: !1 }, optionalText: { default: "Valgfritt" }, requiredTag: { default: !1 }, requiredText: { default: "Må fylles ut" }, hasError: { default: !1 }, disabled: { default: !1 }, inline: { default: !1 }, hasFieldset: { default: !1 }, useWrapper: { default: !0 } }, Dt = {
|
|
3920
|
+
props: Xo
|
|
3921
3921
|
};
|
|
3922
|
-
var
|
|
3923
|
-
function
|
|
3922
|
+
var Jo = {}, wa;
|
|
3923
|
+
function Qo() {
|
|
3924
3924
|
return wa || (wa = 1, (function() {
|
|
3925
3925
|
(function(i) {
|
|
3926
3926
|
const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), C = {
|
|
@@ -3983,7 +3983,7 @@ function Jo() {
|
|
|
3983
3983
|
};
|
|
3984
3984
|
function T(m) {
|
|
3985
3985
|
const c = a.get(m), { form: v } = c;
|
|
3986
|
-
he(m, v, c),
|
|
3986
|
+
he(m, v, c), kt(m, c.labels);
|
|
3987
3987
|
}
|
|
3988
3988
|
const j = (m, c = !1) => {
|
|
3989
3989
|
const v = document.createTreeWalker(m, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -3994,11 +3994,11 @@ function Jo() {
|
|
|
3994
3994
|
let _ = v.nextNode();
|
|
3995
3995
|
const I = !c || m.disabled;
|
|
3996
3996
|
for (; _; )
|
|
3997
|
-
_.formDisabledCallback && I &&
|
|
3997
|
+
_.formDisabledCallback && I && Ot(_, m.disabled), _ = v.nextNode();
|
|
3998
3998
|
}, A = { attributes: !0, attributeFilter: ["disabled", "name"] }, z = de() ? new MutationObserver((m) => {
|
|
3999
3999
|
for (const c of m) {
|
|
4000
4000
|
const v = c.target;
|
|
4001
|
-
if (c.attributeName === "disabled" && (v.constructor.formAssociated ?
|
|
4001
|
+
if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Ot(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && j(v)), c.attributeName === "name" && v.constructor.formAssociated) {
|
|
4002
4002
|
const _ = a.get(v), I = p.get(v);
|
|
4003
4003
|
_.setFormValue(I);
|
|
4004
4004
|
}
|
|
@@ -4008,11 +4008,11 @@ function Jo() {
|
|
|
4008
4008
|
m.forEach((c) => {
|
|
4009
4009
|
const { addedNodes: v, removedNodes: _ } = c, I = Array.from(v), L = Array.from(_);
|
|
4010
4010
|
I.forEach((F) => {
|
|
4011
|
-
var
|
|
4011
|
+
var Mt;
|
|
4012
4012
|
if (a.has(F) && F.constructor.formAssociated && T(F), g.has(F)) {
|
|
4013
4013
|
const pt = g.get(F);
|
|
4014
|
-
Object.keys(C).filter((
|
|
4015
|
-
st(F, C[
|
|
4014
|
+
Object.keys(C).filter((It) => pt[It] !== null).forEach((It) => {
|
|
4015
|
+
st(F, C[It], pt[It]);
|
|
4016
4016
|
}), g.delete(F);
|
|
4017
4017
|
}
|
|
4018
4018
|
if (w.has(F)) {
|
|
@@ -4020,34 +4020,34 @@ function Jo() {
|
|
|
4020
4020
|
st(F, "internals-valid", pt.validity.valid.toString()), st(F, "internals-invalid", (!pt.validity.valid).toString()), st(F, "aria-invalid", (!pt.validity.valid).toString()), w.delete(F);
|
|
4021
4021
|
}
|
|
4022
4022
|
if (F.localName === "form") {
|
|
4023
|
-
const pt = d.get(F),
|
|
4023
|
+
const pt = d.get(F), It = document.createTreeWalker(F, NodeFilter.SHOW_ELEMENT, {
|
|
4024
4024
|
acceptNode(gs) {
|
|
4025
4025
|
return a.has(gs) && gs.constructor.formAssociated && !(pt && pt.has(gs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
4026
4026
|
}
|
|
4027
4027
|
});
|
|
4028
|
-
let
|
|
4029
|
-
for (;
|
|
4030
|
-
T(
|
|
4028
|
+
let mi = It.nextNode();
|
|
4029
|
+
for (; mi; )
|
|
4030
|
+
T(mi), mi = It.nextNode();
|
|
4031
4031
|
}
|
|
4032
|
-
F.localName === "fieldset" && ((
|
|
4032
|
+
F.localName === "fieldset" && ((Mt = z.observe) === null || Mt === void 0 || Mt.call(z, F, A), j(F, !0));
|
|
4033
4033
|
}), L.forEach((F) => {
|
|
4034
|
-
const
|
|
4035
|
-
|
|
4034
|
+
const Mt = a.get(F);
|
|
4035
|
+
Mt && s.get(Mt) && Pt(Mt), l.has(F) && l.get(F).disconnect();
|
|
4036
4036
|
});
|
|
4037
4037
|
});
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function At(m) {
|
|
4040
4040
|
m.forEach((c) => {
|
|
4041
4041
|
const { removedNodes: v } = c;
|
|
4042
4042
|
v.forEach((_) => {
|
|
4043
4043
|
const I = b.get(c.target);
|
|
4044
|
-
a.has(_) &&
|
|
4044
|
+
a.has(_) && Te(_), I.disconnect();
|
|
4045
4045
|
});
|
|
4046
4046
|
});
|
|
4047
4047
|
}
|
|
4048
|
-
const
|
|
4048
|
+
const Et = (m) => {
|
|
4049
4049
|
var c, v;
|
|
4050
|
-
const _ = new MutationObserver(
|
|
4050
|
+
const _ = new MutationObserver(At);
|
|
4051
4051
|
!((c = window == null ? void 0 : window.ShadyDOM) === null || c === void 0) && c.inUse && m.mode && m.host && (m = m.host), (v = _.observe) === null || v === void 0 || v.call(_, m, { childList: !0 }), b.set(m, _);
|
|
4052
4052
|
};
|
|
4053
4053
|
de() && new MutationObserver(Z);
|
|
@@ -4056,9 +4056,9 @@ function Jo() {
|
|
|
4056
4056
|
subtree: !0
|
|
4057
4057
|
}, st = (m, c, v) => {
|
|
4058
4058
|
m.getAttribute(c) !== v && m.setAttribute(c, v);
|
|
4059
|
-
},
|
|
4059
|
+
}, Ot = (m, c) => {
|
|
4060
4060
|
m.toggleAttribute("internals-disabled", c), c ? st(m, "aria-disabled", "true") : m.removeAttribute("aria-disabled"), m.formDisabledCallback && m.formDisabledCallback.apply(m, [c]);
|
|
4061
|
-
},
|
|
4061
|
+
}, Pt = (m) => {
|
|
4062
4062
|
s.get(m).forEach((c) => {
|
|
4063
4063
|
c.remove();
|
|
4064
4064
|
}), s.set(m, []);
|
|
@@ -4068,7 +4068,7 @@ function Jo() {
|
|
|
4068
4068
|
}, D = (m, c) => {
|
|
4069
4069
|
var v;
|
|
4070
4070
|
s.set(c, []), (v = z.observe) === null || v === void 0 || v.call(z, m, A);
|
|
4071
|
-
},
|
|
4071
|
+
}, kt = (m, c) => {
|
|
4072
4072
|
if (c.length) {
|
|
4073
4073
|
Array.from(c).forEach((_) => _.addEventListener("click", m.click.bind(m)));
|
|
4074
4074
|
let v = c[0].id;
|
|
@@ -4081,7 +4081,7 @@ function Jo() {
|
|
|
4081
4081
|
Qt(Ht(m.target));
|
|
4082
4082
|
}, te = (m) => {
|
|
4083
4083
|
Qt(Ht(m.target));
|
|
4084
|
-
},
|
|
4084
|
+
}, Se = (m) => {
|
|
4085
4085
|
const c = ["button[type=submit]", "input[type=submit]", "button:not([type])"].map((v) => `${v}:not([disabled])`).map((v) => `${v}:not([form])${m.id ? `,${v}[form='${m.id}']` : ""}`).join(",");
|
|
4086
4086
|
m.addEventListener("click", (v) => {
|
|
4087
4087
|
if (v.target.closest(c)) {
|
|
@@ -4103,7 +4103,7 @@ function Jo() {
|
|
|
4103
4103
|
_.add(m);
|
|
4104
4104
|
else {
|
|
4105
4105
|
const I = /* @__PURE__ */ new Set();
|
|
4106
|
-
I.add(m), d.set(c, I),
|
|
4106
|
+
I.add(m), d.set(c, I), Se(c), c.addEventListener("reset", ze), c.addEventListener("input", le), c.addEventListener("change", te);
|
|
4107
4107
|
}
|
|
4108
4108
|
r.set(c, { ref: m, internals: v }), m.constructor.formAssociated && m.formAssociatedCallback && setTimeout(() => {
|
|
4109
4109
|
m.formAssociatedCallback.apply(m, [c]);
|
|
@@ -4112,18 +4112,18 @@ function Jo() {
|
|
|
4112
4112
|
}, Ht = (m) => {
|
|
4113
4113
|
let c = m.parentNode;
|
|
4114
4114
|
return c && c.tagName !== "FORM" && (c = Ht(c)), c;
|
|
4115
|
-
},
|
|
4115
|
+
}, ot = (m, c, v = DOMException) => {
|
|
4116
4116
|
if (!m.constructor.formAssociated)
|
|
4117
4117
|
throw new v(c);
|
|
4118
|
-
},
|
|
4118
|
+
}, Ce = (m, c, v) => {
|
|
4119
4119
|
const _ = d.get(m);
|
|
4120
4120
|
return _ && _.size && _.forEach((I) => {
|
|
4121
4121
|
a.get(I)[v]() || (c = !1);
|
|
4122
4122
|
}), c;
|
|
4123
|
-
},
|
|
4123
|
+
}, Te = (m) => {
|
|
4124
4124
|
if (m.constructor.formAssociated) {
|
|
4125
4125
|
const c = a.get(m), { labels: v, form: _ } = c;
|
|
4126
|
-
|
|
4126
|
+
kt(m, v), he(m, _, c);
|
|
4127
4127
|
}
|
|
4128
4128
|
};
|
|
4129
4129
|
function de() {
|
|
@@ -4143,7 +4143,7 @@ function Jo() {
|
|
|
4143
4143
|
function Ke(m, c) {
|
|
4144
4144
|
m.toggleAttribute(c, !0), m.part && m.part.add(c);
|
|
4145
4145
|
}
|
|
4146
|
-
class
|
|
4146
|
+
class ui extends Set {
|
|
4147
4147
|
static get isPolyfilled() {
|
|
4148
4148
|
return !0;
|
|
4149
4149
|
}
|
|
@@ -4210,19 +4210,19 @@ function Jo() {
|
|
|
4210
4210
|
HTMLFormElement.prototype.reportValidity = _;
|
|
4211
4211
|
function v(...L) {
|
|
4212
4212
|
let F = m.apply(this, L);
|
|
4213
|
-
return
|
|
4213
|
+
return Ce(this, F, "checkValidity");
|
|
4214
4214
|
}
|
|
4215
4215
|
function _(...L) {
|
|
4216
4216
|
let F = c.apply(this, L);
|
|
4217
|
-
return
|
|
4217
|
+
return Ce(this, F, "reportValidity");
|
|
4218
4218
|
}
|
|
4219
4219
|
const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
|
|
4220
4220
|
Object.defineProperty(HTMLFormElement.prototype, "elements", {
|
|
4221
4221
|
get(...L) {
|
|
4222
|
-
const F = I.call(this, ...L),
|
|
4223
|
-
if (
|
|
4222
|
+
const F = I.call(this, ...L), Mt = Array.from(d.get(this) || []);
|
|
4223
|
+
if (Mt.length === 0)
|
|
4224
4224
|
return F;
|
|
4225
|
-
const pt = Array.from(F).concat(
|
|
4225
|
+
const pt = Array.from(F).concat(Mt).sort((It, mi) => It.compareDocumentPosition ? It.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
|
|
4226
4226
|
return new qi(pt);
|
|
4227
4227
|
}
|
|
4228
4228
|
});
|
|
@@ -4235,11 +4235,11 @@ function Jo() {
|
|
|
4235
4235
|
if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
|
|
4236
4236
|
throw new TypeError("Illegal constructor");
|
|
4237
4237
|
const v = c.getRootNode(), _ = new ps();
|
|
4238
|
-
this.states = new
|
|
4238
|
+
this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), P(c, this), D(c, this), Object.seal(this), v instanceof DocumentFragment && Et(v);
|
|
4239
4239
|
}
|
|
4240
4240
|
checkValidity() {
|
|
4241
4241
|
const c = t.get(this);
|
|
4242
|
-
if (
|
|
4242
|
+
if (ot(c, "Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate)
|
|
4243
4243
|
return !0;
|
|
4244
4244
|
const v = e.get(this);
|
|
4245
4245
|
if (!v.valid) {
|
|
@@ -4254,19 +4254,19 @@ function Jo() {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
get form() {
|
|
4256
4256
|
const c = t.get(this);
|
|
4257
|
-
|
|
4257
|
+
ot(c, "Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");
|
|
4258
4258
|
let v;
|
|
4259
4259
|
return c.constructor.formAssociated === !0 && (v = Ht(c)), v;
|
|
4260
4260
|
}
|
|
4261
4261
|
get labels() {
|
|
4262
4262
|
const c = t.get(this);
|
|
4263
|
-
|
|
4263
|
+
ot(c, "Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");
|
|
4264
4264
|
const v = c.getAttribute("id"), _ = c.getRootNode();
|
|
4265
4265
|
return _ && v ? _.querySelectorAll(`[for="${v}"]`) : [];
|
|
4266
4266
|
}
|
|
4267
4267
|
reportValidity() {
|
|
4268
4268
|
const c = t.get(this);
|
|
4269
|
-
if (
|
|
4269
|
+
if (ot(c, "Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate)
|
|
4270
4270
|
return !0;
|
|
4271
4271
|
const v = this.checkValidity(), _ = k.get(this);
|
|
4272
4272
|
if (_ && !c.constructor.formAssociated)
|
|
@@ -4275,7 +4275,7 @@ function Jo() {
|
|
|
4275
4275
|
}
|
|
4276
4276
|
setFormValue(c) {
|
|
4277
4277
|
const v = t.get(this);
|
|
4278
|
-
if (
|
|
4278
|
+
if (ot(v, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), Pt(this), c != null && !(c instanceof FormData)) {
|
|
4279
4279
|
if (v.getAttribute("name")) {
|
|
4280
4280
|
const _ = at(v, this);
|
|
4281
4281
|
_.value = c;
|
|
@@ -4290,16 +4290,16 @@ function Jo() {
|
|
|
4290
4290
|
}
|
|
4291
4291
|
setValidity(c, v, _) {
|
|
4292
4292
|
const I = t.get(this);
|
|
4293
|
-
if (
|
|
4293
|
+
if (ot(I, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
|
|
4294
4294
|
throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
|
|
4295
4295
|
k.set(this, _);
|
|
4296
4296
|
const L = e.get(this), F = {};
|
|
4297
|
-
for (const
|
|
4298
|
-
F[
|
|
4297
|
+
for (const It in c)
|
|
4298
|
+
F[It] = c[It];
|
|
4299
4299
|
Object.keys(F).length === 0 && Fi(L);
|
|
4300
|
-
const
|
|
4301
|
-
delete
|
|
4302
|
-
const { valid: pt } = us(L,
|
|
4300
|
+
const Mt = Object.assign(Object.assign({}, L), F);
|
|
4301
|
+
delete Mt.valid;
|
|
4302
|
+
const { valid: pt } = us(L, Mt, this.form);
|
|
4303
4303
|
if (!pt && !v)
|
|
4304
4304
|
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.");
|
|
4305
4305
|
n.set(this, pt ? "" : v), I.isConnected ? (I.toggleAttribute("internals-invalid", !pt), I.toggleAttribute("internals-valid", pt), st(I, "aria-invalid", `${!pt}`)) : w.set(I, this);
|
|
@@ -4310,18 +4310,18 @@ function Jo() {
|
|
|
4310
4310
|
}
|
|
4311
4311
|
get validationMessage() {
|
|
4312
4312
|
const c = t.get(this);
|
|
4313
|
-
return
|
|
4313
|
+
return ot(c, "Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."), n.get(this);
|
|
4314
4314
|
}
|
|
4315
4315
|
get validity() {
|
|
4316
4316
|
const c = t.get(this);
|
|
4317
|
-
return
|
|
4317
|
+
return ot(c, "Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."), e.get(this);
|
|
4318
4318
|
}
|
|
4319
4319
|
get willValidate() {
|
|
4320
4320
|
const c = t.get(this);
|
|
4321
|
-
return
|
|
4321
|
+
return ot(c, "Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."), !(c.disabled || c.hasAttribute("disabled") || c.hasAttribute("readonly"));
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function hn() {
|
|
4325
4325
|
if (typeof window > "u" || !window.ElementInternals || !HTMLElement.prototype.attachInternals)
|
|
4326
4326
|
return !1;
|
|
4327
4327
|
class m extends HTMLElement {
|
|
@@ -4347,9 +4347,9 @@ function Jo() {
|
|
|
4347
4347
|
}
|
|
4348
4348
|
let Us = !1, Hs = !1;
|
|
4349
4349
|
function fs(m) {
|
|
4350
|
-
Hs || (Hs = !0, window.CustomStateSet =
|
|
4350
|
+
Hs || (Hs = !0, window.CustomStateSet = ui, m && (HTMLElement.prototype.attachInternals = function(...c) {
|
|
4351
4351
|
const v = m.call(this, c);
|
|
4352
|
-
return v.states = new
|
|
4352
|
+
return v.states = new ui(this), v;
|
|
4353
4353
|
}));
|
|
4354
4354
|
}
|
|
4355
4355
|
function qs(m = !0) {
|
|
@@ -4360,7 +4360,7 @@ function Jo() {
|
|
|
4360
4360
|
if (_.formAssociated) {
|
|
4361
4361
|
const L = _.prototype.connectedCallback;
|
|
4362
4362
|
_.prototype.connectedCallback = function() {
|
|
4363
|
-
y.has(this) || (y.set(this, !0), this.hasAttribute("disabled") &&
|
|
4363
|
+
y.has(this) || (y.set(this, !0), this.hasAttribute("disabled") && Ot(this, !0)), L != null && L.apply(this), Te(this);
|
|
4364
4364
|
};
|
|
4365
4365
|
}
|
|
4366
4366
|
c.call(this, v, _, I);
|
|
@@ -4389,19 +4389,19 @@ function Jo() {
|
|
|
4389
4389
|
de() && typeof document < "u" && new MutationObserver(Z).observe(document.documentElement, Q), typeof HTMLFormElement < "u" && zi(), (m || typeof window < "u" && !window.CustomStateSet) && fs();
|
|
4390
4390
|
}
|
|
4391
4391
|
}
|
|
4392
|
-
return customElements.polyfillWrapFlushCallback || (
|
|
4392
|
+
return customElements.polyfillWrapFlushCallback || (hn() ? typeof window < "u" && !window.CustomStateSet && fs(HTMLElement.prototype.attachInternals) : qs(!1)), i.forceCustomStateSetPolyfill = fs, i.forceElementInternalsPolyfill = qs, Object.defineProperty(i, "__esModule", { value: !0 }), i;
|
|
4393
4393
|
})({});
|
|
4394
|
-
})()),
|
|
4394
|
+
})()), Jo;
|
|
4395
4395
|
}
|
|
4396
|
-
|
|
4397
|
-
var
|
|
4396
|
+
Qo();
|
|
4397
|
+
var tl = Object.defineProperty, V = (i, t, e, s) => {
|
|
4398
4398
|
for (var a = void 0, n = i.length - 1, r; n >= 0; n--)
|
|
4399
4399
|
(r = i[n]) && (a = r(t, e, a) || a);
|
|
4400
|
-
return a &&
|
|
4400
|
+
return a && tl(t, e, a), a;
|
|
4401
4401
|
};
|
|
4402
4402
|
let M = class extends G {
|
|
4403
4403
|
constructor() {
|
|
4404
|
-
super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = ke(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton =
|
|
4404
|
+
super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = ke(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Dt.props.helptextDropdownButton.default, this.label = null, this.optionalText = vt.forms.labels.optional, this.requiredText = vt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
|
|
4405
4405
|
}
|
|
4406
4406
|
static get formAssociated() {
|
|
4407
4407
|
return !0;
|
|
@@ -4619,7 +4619,7 @@ V([
|
|
|
4619
4619
|
V([
|
|
4620
4620
|
R()
|
|
4621
4621
|
], M.prototype, "touched");
|
|
4622
|
-
let
|
|
4622
|
+
let tn = class {
|
|
4623
4623
|
constructor(t) {
|
|
4624
4624
|
this.nodes = [], this.options = [], this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
|
|
4625
4625
|
}
|
|
@@ -4654,14 +4654,14 @@ let Qa = class {
|
|
|
4654
4654
|
}), e && this.createOptions();
|
|
4655
4655
|
}
|
|
4656
4656
|
};
|
|
4657
|
-
var
|
|
4658
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
4657
|
+
var el = Object.defineProperty, il = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
|
|
4658
|
+
for (var a = s > 1 ? void 0 : s ? il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4659
4659
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4660
|
-
return s && a &&
|
|
4660
|
+
return s && a && el(t, e, a), a;
|
|
4661
4661
|
};
|
|
4662
4662
|
let pe = class extends G {
|
|
4663
4663
|
constructor() {
|
|
4664
|
-
super(), this.defaultSlot = N(), this.forId = ke(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton =
|
|
4664
|
+
super(), this.defaultSlot = N(), this.forId = ke(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Dt.props.helptextDropdownButton.default, this.isHelpTextOpen = !1, this.filledSlots = /* @__PURE__ */ new Set(), this.slotController = new rt(this, this.defaultSlot);
|
|
4665
4665
|
}
|
|
4666
4666
|
updateSlots(t) {
|
|
4667
4667
|
this.filledSlots = new Set(t);
|
|
@@ -4730,12 +4730,12 @@ He([
|
|
|
4730
4730
|
pe = He([
|
|
4731
4731
|
B("pkt-helptext")
|
|
4732
4732
|
], pe);
|
|
4733
|
-
var
|
|
4734
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
4733
|
+
var sl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, X = (i, t, e, s) => {
|
|
4734
|
+
for (var a = s > 1 ? void 0 : s ? al(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4735
4735
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4736
|
-
return s && a &&
|
|
4736
|
+
return s && a && sl(t, e, a), a;
|
|
4737
4737
|
};
|
|
4738
|
-
const
|
|
4738
|
+
const nl = {
|
|
4739
4739
|
fromAttribute(i) {
|
|
4740
4740
|
return i == null ? !1 : i === "" || i === "true" || i === !0 ? !0 : i === "false" || i === !1 ? !1 : !!i;
|
|
4741
4741
|
},
|
|
@@ -4745,7 +4745,7 @@ const al = {
|
|
|
4745
4745
|
};
|
|
4746
4746
|
let Y = class extends G {
|
|
4747
4747
|
constructor() {
|
|
4748
|
-
super(), this.defaultSlot = N(), this.helptextSlot = N(), this.forId = ke(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter =
|
|
4748
|
+
super(), this.defaultSlot = N(), this.helptextSlot = N(), this.forId = ke(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = Dt.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = Dt.props.optionalTag.default, this.optionalText = Dt.props.optionalText.default, this.requiredTag = Dt.props.requiredTag.default, this.requiredText = Dt.props.requiredText.default, this.tagText = null, this.hasError = Dt.props.hasError.default, this.errorMessage = "", this.disabled = Dt.props.disabled.default, this.inline = Dt.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = Dt.props.hasFieldset.default, this.role = "group", this.useWrapper = Dt.props.useWrapper.default, this.slotController = new rt(this, this.defaultSlot, this.helptextSlot);
|
|
4749
4749
|
}
|
|
4750
4750
|
updated(t) {
|
|
4751
4751
|
super.updated(t);
|
|
@@ -4786,7 +4786,7 @@ let Y = class extends G {
|
|
|
4786
4786
|
.forId=${this.forId}
|
|
4787
4787
|
.helptext=${this.helptext}
|
|
4788
4788
|
.helptextDropdown=${this.helptextDropdown}
|
|
4789
|
-
.helptextDropdownButton=${this.helptextDropdownButton ||
|
|
4789
|
+
.helptextDropdownButton=${this.helptextDropdownButton || Dt.props.helptextDropdownButton.default}
|
|
4790
4790
|
@toggleHelpText=${(f) => {
|
|
4791
4791
|
this.toggleDropdown(f);
|
|
4792
4792
|
}}
|
|
@@ -4901,15 +4901,15 @@ X([
|
|
|
4901
4901
|
o({ type: String, reflect: !0 })
|
|
4902
4902
|
], Y.prototype, "role", 2);
|
|
4903
4903
|
X([
|
|
4904
|
-
o({ type: Boolean, reflect: !0, converter:
|
|
4904
|
+
o({ type: Boolean, reflect: !0, converter: nl })
|
|
4905
4905
|
], Y.prototype, "useWrapper", 2);
|
|
4906
4906
|
Y = X([
|
|
4907
4907
|
B("pkt-input-wrapper")
|
|
4908
4908
|
], Y);
|
|
4909
|
-
var
|
|
4910
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
4909
|
+
var rl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, gt = (i, t, e, s) => {
|
|
4910
|
+
for (var a = s > 1 ? void 0 : s ? ol(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4911
4911
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4912
|
-
return s && a &&
|
|
4912
|
+
return s && a && rl(t, e, a), a;
|
|
4913
4913
|
};
|
|
4914
4914
|
let ut = class extends G {
|
|
4915
4915
|
constructor() {
|
|
@@ -5257,17 +5257,17 @@ gt([
|
|
|
5257
5257
|
ut = gt([
|
|
5258
5258
|
B("pkt-listbox")
|
|
5259
5259
|
], ut);
|
|
5260
|
-
const
|
|
5261
|
-
props:
|
|
5260
|
+
const ll = { displayValueAs: { default: "label" } }, hl = {
|
|
5261
|
+
props: ll
|
|
5262
5262
|
};
|
|
5263
|
-
var
|
|
5264
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
5263
|
+
var dl = Object.defineProperty, cl = Object.getOwnPropertyDescriptor, it = (i, t, e, s) => {
|
|
5264
|
+
for (var a = s > 1 ? void 0 : s ? cl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
5265
5265
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
5266
|
-
return s && a &&
|
|
5266
|
+
return s && a && dl(t, e, a), a;
|
|
5267
5267
|
};
|
|
5268
5268
|
let J = class extends M {
|
|
5269
5269
|
constructor() {
|
|
5270
|
-
super(), this.helptextSlot = N(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs =
|
|
5270
|
+
super(), this.helptextSlot = N(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = hl.props.displayValueAs.default, this.tagPlacement = null, this._options = [], this._isOptionsOpen = !1, this._value = [], this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._editingSingleValue = !1, this.inputRef = N(), this.arrowRef = N(), this.listboxRef = N(), this.focusRef = N(), this.optionTagRef = N(), this.optionsController = new tn(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
|
|
5271
5271
|
}
|
|
5272
5272
|
// Lifecycle methods
|
|
5273
5273
|
connectedCallback() {
|
|
@@ -5771,7 +5771,7 @@ it([
|
|
|
5771
5771
|
J = it([
|
|
5772
5772
|
B("pkt-combobox")
|
|
5773
5773
|
], J);
|
|
5774
|
-
const
|
|
5774
|
+
const pl = {
|
|
5775
5775
|
i18n: {
|
|
5776
5776
|
nb: {
|
|
5777
5777
|
contentPresentation: {
|
|
@@ -5824,13 +5824,13 @@ const cl = {
|
|
|
5824
5824
|
}
|
|
5825
5825
|
}
|
|
5826
5826
|
};
|
|
5827
|
-
var
|
|
5828
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
5827
|
+
var ul = Object.defineProperty, ml = Object.getOwnPropertyDescriptor, re = (i, t, e, s) => {
|
|
5828
|
+
for (var a = s > 1 ? void 0 : s ? ml(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
5829
5829
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
5830
|
-
return s && a &&
|
|
5830
|
+
return s && a && ul(t, e, a), a;
|
|
5831
5831
|
};
|
|
5832
5832
|
let Ss = null;
|
|
5833
|
-
function
|
|
5833
|
+
function fl() {
|
|
5834
5834
|
return Ss || (Ss = new Promise((i, t) => {
|
|
5835
5835
|
if (document.querySelector("#oslo-consent-script")) {
|
|
5836
5836
|
i();
|
|
@@ -5847,7 +5847,7 @@ let zt = class extends G {
|
|
|
5847
5847
|
super(), this.devMode = !1, this.hotjarId = null, this.googleAnalyticsId = null, this.cookieDomain = null, this.cookieSecure = null, this.cookieExpiryDays = null, this.triggerType = "button", this.triggerText = null, this.i18nLanguage = "nb";
|
|
5848
5848
|
}
|
|
5849
5849
|
connectedCallback() {
|
|
5850
|
-
super.connectedCallback(), this.triggerText = this.triggerText ||
|
|
5850
|
+
super.connectedCallback(), this.triggerText = this.triggerText || pl.i18n[this.i18nLanguage].contentPresentation.buttons.settings;
|
|
5851
5851
|
}
|
|
5852
5852
|
disconnectedCallback() {
|
|
5853
5853
|
var t;
|
|
@@ -5873,7 +5873,7 @@ let zt = class extends G {
|
|
|
5873
5873
|
);
|
|
5874
5874
|
}
|
|
5875
5875
|
async firstUpdated(t) {
|
|
5876
|
-
window.cookieBanner_googleAnalyticsId = this.googleAnalyticsId, window.cookieBanner_hotjarId = this.hotjarId, this.cookieDomain && (window.cookieBanner_cookieDomain = this.cookieDomain), this.cookieSecure && (window.cookieBanner_cookieSecure = this.cookieSecure), this.cookieExpiryDays && (window.cookieBanner_cookieExpiryDays = this.cookieExpiryDays), this.devMode && (window.cookieBanner_devMode = this.devMode), await
|
|
5876
|
+
window.cookieBanner_googleAnalyticsId = this.googleAnalyticsId, window.cookieBanner_hotjarId = this.hotjarId, this.cookieDomain && (window.cookieBanner_cookieDomain = this.cookieDomain), this.cookieSecure && (window.cookieBanner_cookieSecure = this.cookieSecure), this.cookieExpiryDays && (window.cookieBanner_cookieExpiryDays = this.cookieExpiryDays), this.devMode && (window.cookieBanner_devMode = this.devMode), await fl(), this.triggerInit();
|
|
5877
5877
|
}
|
|
5878
5878
|
triggerInit() {
|
|
5879
5879
|
window.document.dispatchEvent(
|
|
@@ -5938,10 +5938,10 @@ re([
|
|
|
5938
5938
|
zt = re([
|
|
5939
5939
|
B("pkt-consent")
|
|
5940
5940
|
], zt);
|
|
5941
|
-
var
|
|
5942
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
5941
|
+
var gl = Object.defineProperty, vl = Object.getOwnPropertyDescriptor, yt = (i, t, e, s) => {
|
|
5942
|
+
for (var a = s > 1 ? void 0 : s ? vl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
5943
5943
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
5944
|
-
return s && a &&
|
|
5944
|
+
return s && a && gl(t, e, a), a;
|
|
5945
5945
|
};
|
|
5946
5946
|
let ft = class extends M {
|
|
5947
5947
|
constructor() {
|
|
@@ -6028,52 +6028,52 @@ let ft = class extends M {
|
|
|
6028
6028
|
t.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this.checked = this.inputRef.value.matches(":checked"), this.valueChecked(this.checked));
|
|
6029
6029
|
}
|
|
6030
6030
|
};
|
|
6031
|
-
|
|
6031
|
+
yt([
|
|
6032
6032
|
o({ type: String, reflect: !0 })
|
|
6033
6033
|
], ft.prototype, "value", 2);
|
|
6034
|
-
|
|
6034
|
+
yt([
|
|
6035
6035
|
o({ type: String })
|
|
6036
6036
|
], ft.prototype, "checkHelptext", 2);
|
|
6037
|
-
|
|
6037
|
+
yt([
|
|
6038
6038
|
o({ type: Boolean })
|
|
6039
6039
|
], ft.prototype, "defaultChecked", 2);
|
|
6040
|
-
|
|
6040
|
+
yt([
|
|
6041
6041
|
o({ type: Boolean })
|
|
6042
6042
|
], ft.prototype, "hasTile", 2);
|
|
6043
|
-
|
|
6043
|
+
yt([
|
|
6044
6044
|
o({ type: Boolean })
|
|
6045
6045
|
], ft.prototype, "isSwitch", 2);
|
|
6046
|
-
|
|
6046
|
+
yt([
|
|
6047
6047
|
o({ type: String })
|
|
6048
6048
|
], ft.prototype, "labelPosition", 2);
|
|
6049
|
-
|
|
6049
|
+
yt([
|
|
6050
6050
|
o({ type: Boolean })
|
|
6051
6051
|
], ft.prototype, "hideLabel", 2);
|
|
6052
|
-
|
|
6052
|
+
yt([
|
|
6053
6053
|
o({ type: Boolean, reflect: !0 })
|
|
6054
6054
|
], ft.prototype, "checked", 2);
|
|
6055
|
-
|
|
6055
|
+
yt([
|
|
6056
6056
|
o({ type: String, reflect: !0 })
|
|
6057
6057
|
], ft.prototype, "type", 2);
|
|
6058
|
-
|
|
6058
|
+
yt([
|
|
6059
6059
|
o({ type: String })
|
|
6060
6060
|
], ft.prototype, "tagText", 2);
|
|
6061
|
-
|
|
6061
|
+
yt([
|
|
6062
6062
|
o({ type: Boolean })
|
|
6063
6063
|
], ft.prototype, "optionalTag", 2);
|
|
6064
|
-
|
|
6064
|
+
yt([
|
|
6065
6065
|
o({ type: String })
|
|
6066
6066
|
], ft.prototype, "optionalText", 2);
|
|
6067
|
-
|
|
6067
|
+
yt([
|
|
6068
6068
|
o({ type: Boolean })
|
|
6069
6069
|
], ft.prototype, "requiredTag", 2);
|
|
6070
|
-
|
|
6070
|
+
yt([
|
|
6071
6071
|
o({ type: String })
|
|
6072
6072
|
], ft.prototype, "requiredText", 2);
|
|
6073
|
-
ft =
|
|
6073
|
+
ft = yt([
|
|
6074
6074
|
B("pkt-checkbox")
|
|
6075
6075
|
], ft);
|
|
6076
|
-
const
|
|
6076
|
+
const bl = (i) => new Promise((t) => setTimeout(t, i)), Be = {
|
|
6077
6077
|
/**
|
|
6078
6078
|
* Detects if the current device is iOS (iPhone, iPad, iPod)
|
|
6079
6079
|
* Handles modern iPad Safari which uses desktop user agent since iOS 13
|
|
@@ -6111,29 +6111,29 @@ const vl = (i) => new Promise((t) => setTimeout(t, i)), Ve = {
|
|
|
6111
6111
|
* Validates that a range has valid order (start <= end)
|
|
6112
6112
|
*/
|
|
6113
6113
|
validateRangeOrder(i) {
|
|
6114
|
-
return !i || i.length !== 2 ? !0 :
|
|
6114
|
+
return !i || i.length !== 2 ? !0 : Lo(i[0], i[1]);
|
|
6115
6115
|
},
|
|
6116
6116
|
/**
|
|
6117
6117
|
* Sorts date strings chronologically
|
|
6118
6118
|
*/
|
|
6119
6119
|
sortDates(i) {
|
|
6120
|
-
return
|
|
6120
|
+
return Ro(i);
|
|
6121
6121
|
},
|
|
6122
6122
|
/**
|
|
6123
6123
|
* Filters dates to only include selectable ones based on constraints
|
|
6124
6124
|
*/
|
|
6125
6125
|
filterSelectableDates(i, t, e, s, a) {
|
|
6126
|
-
return
|
|
6126
|
+
return Do(i, t, e, s, a);
|
|
6127
6127
|
}
|
|
6128
|
-
},
|
|
6128
|
+
}, yl = {
|
|
6129
6129
|
/**
|
|
6130
6130
|
* Determines the appropriate input type based on device
|
|
6131
6131
|
* Mobile Safari does not play well with type="date" amd custom datepickers
|
|
6132
6132
|
*/
|
|
6133
6133
|
getInputType() {
|
|
6134
|
-
return
|
|
6134
|
+
return Be.isIOS() ? "text" : "date";
|
|
6135
6135
|
}
|
|
6136
|
-
},
|
|
6136
|
+
}, Pi = {
|
|
6137
6137
|
/**
|
|
6138
6138
|
* Submits the form that contains the given element
|
|
6139
6139
|
*/
|
|
@@ -6185,7 +6185,7 @@ const vl = (i) => new Promise((t) => setTimeout(t, i)), Ve = {
|
|
|
6185
6185
|
let l = e ? "calc(100% - 30px)" : "100%";
|
|
6186
6186
|
a && a.top + r > window.innerHeight && a.top - r > 0 && (l = `calc(100% - ${n}px - ${r}px)`), i.value.style.top = l;
|
|
6187
6187
|
}
|
|
6188
|
-
},
|
|
6188
|
+
}, Mi = {
|
|
6189
6189
|
/**
|
|
6190
6190
|
* Generates input classes for datepicker
|
|
6191
6191
|
*/
|
|
@@ -6246,7 +6246,7 @@ const vl = (i) => new Promise((t) => setTimeout(t, i)), Ve = {
|
|
|
6246
6246
|
l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
|
|
6247
6247
|
} else t[0] && s();
|
|
6248
6248
|
}
|
|
6249
|
-
},
|
|
6249
|
+
}, Ie = {
|
|
6250
6250
|
/**
|
|
6251
6251
|
* Handles common keyboard interactions for datepicker inputs
|
|
6252
6252
|
*/
|
|
@@ -6262,10 +6262,10 @@ const vl = (i) => new Promise((t) => setTimeout(t, i)), Ve = {
|
|
|
6262
6262
|
(e === "Enter" || e === " " || e === "Space") && (i.preventDefault(), t(i));
|
|
6263
6263
|
}
|
|
6264
6264
|
};
|
|
6265
|
-
var
|
|
6266
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6265
|
+
var kl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, Bi = (i, t, e, s) => {
|
|
6266
|
+
for (var a = s > 1 ? void 0 : s ? $l(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6267
6267
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6268
|
-
return s && a &&
|
|
6268
|
+
return s && a && kl(t, e, a), a;
|
|
6269
6269
|
};
|
|
6270
6270
|
let si = class extends G {
|
|
6271
6271
|
constructor() {
|
|
@@ -6313,15 +6313,15 @@ Bi([
|
|
|
6313
6313
|
si = Bi([
|
|
6314
6314
|
B("pkt-date-tags")
|
|
6315
6315
|
], si);
|
|
6316
|
-
const
|
|
6317
|
-
props:
|
|
6316
|
+
const _l = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
|
|
6317
|
+
props: _l
|
|
6318
6318
|
};
|
|
6319
|
-
var
|
|
6320
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6319
|
+
var wl = Object.defineProperty, xl = Object.getOwnPropertyDescriptor, Vt = (i, t, e, s) => {
|
|
6320
|
+
for (var a = s > 1 ? void 0 : s ? xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6321
6321
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6322
|
-
return s && a &&
|
|
6322
|
+
return s && a && wl(t, e, a), a;
|
|
6323
6323
|
};
|
|
6324
|
-
let
|
|
6324
|
+
let _t = class extends G {
|
|
6325
6325
|
constructor() {
|
|
6326
6326
|
super(...arguments), this.open = !1, this.multiple = !1, this.range = !1, this.weeknumbers = !1, this.withcontrols = !1, this.maxMultiple = null, this.selected = [], this.earliest = null, this.latest = null, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.popupRef = N(), this.calendarRef = N(), this.handleDocumentClick = (t) => {
|
|
6327
6327
|
if (!this.open) return;
|
|
@@ -6401,49 +6401,49 @@ let wt = class extends G {
|
|
|
6401
6401
|
};
|
|
6402
6402
|
Vt([
|
|
6403
6403
|
o({ type: Boolean, reflect: !0 })
|
|
6404
|
-
],
|
|
6404
|
+
], _t.prototype, "open", 2);
|
|
6405
6405
|
Vt([
|
|
6406
6406
|
o({ type: Boolean })
|
|
6407
|
-
],
|
|
6407
|
+
], _t.prototype, "multiple", 2);
|
|
6408
6408
|
Vt([
|
|
6409
6409
|
o({ type: Boolean })
|
|
6410
|
-
],
|
|
6410
|
+
], _t.prototype, "range", 2);
|
|
6411
6411
|
Vt([
|
|
6412
6412
|
o({ type: Boolean })
|
|
6413
|
-
],
|
|
6413
|
+
], _t.prototype, "weeknumbers", 2);
|
|
6414
6414
|
Vt([
|
|
6415
6415
|
o({ type: Boolean })
|
|
6416
|
-
],
|
|
6416
|
+
], _t.prototype, "withcontrols", 2);
|
|
6417
6417
|
Vt([
|
|
6418
6418
|
o({ type: Number })
|
|
6419
|
-
],
|
|
6419
|
+
], _t.prototype, "maxMultiple", 2);
|
|
6420
6420
|
Vt([
|
|
6421
6421
|
o({ type: Array })
|
|
6422
|
-
],
|
|
6422
|
+
], _t.prototype, "selected", 2);
|
|
6423
6423
|
Vt([
|
|
6424
6424
|
o({ type: String })
|
|
6425
|
-
],
|
|
6425
|
+
], _t.prototype, "earliest", 2);
|
|
6426
6426
|
Vt([
|
|
6427
6427
|
o({ type: String })
|
|
6428
|
-
],
|
|
6428
|
+
], _t.prototype, "latest", 2);
|
|
6429
6429
|
Vt([
|
|
6430
6430
|
o({ type: Array })
|
|
6431
|
-
],
|
|
6431
|
+
], _t.prototype, "excludedates", 2);
|
|
6432
6432
|
Vt([
|
|
6433
6433
|
o({ type: Array })
|
|
6434
|
-
],
|
|
6434
|
+
], _t.prototype, "excludeweekdays", 2);
|
|
6435
6435
|
Vt([
|
|
6436
6436
|
o({ type: String })
|
|
6437
|
-
],
|
|
6438
|
-
|
|
6437
|
+
], _t.prototype, "currentmonth", 2);
|
|
6438
|
+
_t = Vt([
|
|
6439
6439
|
B("pkt-datepicker-popup")
|
|
6440
|
-
],
|
|
6441
|
-
var
|
|
6442
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6440
|
+
], _t);
|
|
6441
|
+
var Sl = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, Wt = (i, t, e, s) => {
|
|
6442
|
+
for (var a = s > 1 ? void 0 : s ? Cl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6443
6443
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6444
|
-
return s && a &&
|
|
6444
|
+
return s && a && Sl(t, e, a), a;
|
|
6445
6445
|
};
|
|
6446
|
-
let
|
|
6446
|
+
let Rt = class extends G {
|
|
6447
6447
|
constructor() {
|
|
6448
6448
|
super(...arguments), this.value = "", this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.strings = { calendar: { buttonAltText: "Åpne kalender" } }, this.inputRef = N(), this.btnRef = N();
|
|
6449
6449
|
}
|
|
@@ -6532,10 +6532,10 @@ let Dt = class extends G {
|
|
|
6532
6532
|
t.preventDefault(), this.dispatchToggleCalendar(t);
|
|
6533
6533
|
}}
|
|
6534
6534
|
?disabled=${this.disabled}
|
|
6535
|
-
@keydown=${(t) =>
|
|
6535
|
+
@keydown=${(t) => Ie.handleInputKeydown(
|
|
6536
6536
|
t,
|
|
6537
6537
|
(e) => this.dispatchToggleCalendar(e),
|
|
6538
|
-
() =>
|
|
6538
|
+
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
6539
6539
|
var e;
|
|
6540
6540
|
return (e = this.inputRef.value) == null ? void 0 : e.blur();
|
|
6541
6541
|
}),
|
|
@@ -6549,7 +6549,7 @@ let Dt = class extends G {
|
|
|
6549
6549
|
this.dispatchInput(t), t.stopImmediatePropagation();
|
|
6550
6550
|
}}
|
|
6551
6551
|
@focus=${() => {
|
|
6552
|
-
this.dispatchFocus(),
|
|
6552
|
+
this.dispatchFocus(), Be.isIOS() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6553
6553
|
}}
|
|
6554
6554
|
@blur=${(t) => {
|
|
6555
6555
|
this.dispatchBlur(t), this.dispatchManageValidity(t.target), this.dispatchEvent(
|
|
@@ -6566,10 +6566,10 @@ let Dt = class extends G {
|
|
|
6566
6566
|
${E(this.inputRef)}
|
|
6567
6567
|
/>
|
|
6568
6568
|
<button
|
|
6569
|
-
class="${O(
|
|
6569
|
+
class="${O(Mi.getButtonClasses())}"
|
|
6570
6570
|
type="button"
|
|
6571
6571
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6572
|
-
@keydown=${(t) =>
|
|
6572
|
+
@keydown=${(t) => Ie.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6573
6573
|
?disabled=${this.disabled}
|
|
6574
6574
|
${E(this.btnRef)}
|
|
6575
6575
|
>
|
|
@@ -6582,46 +6582,46 @@ let Dt = class extends G {
|
|
|
6582
6582
|
};
|
|
6583
6583
|
Wt([
|
|
6584
6584
|
o({ type: String })
|
|
6585
|
-
],
|
|
6585
|
+
], Rt.prototype, "value", 2);
|
|
6586
6586
|
Wt([
|
|
6587
6587
|
o({ type: String })
|
|
6588
|
-
],
|
|
6588
|
+
], Rt.prototype, "inputType", 2);
|
|
6589
6589
|
Wt([
|
|
6590
6590
|
o({ type: String })
|
|
6591
|
-
],
|
|
6591
|
+
], Rt.prototype, "id", 2);
|
|
6592
6592
|
Wt([
|
|
6593
6593
|
o({ type: String })
|
|
6594
|
-
],
|
|
6594
|
+
], Rt.prototype, "min", 2);
|
|
6595
6595
|
Wt([
|
|
6596
6596
|
o({ type: String })
|
|
6597
|
-
],
|
|
6597
|
+
], Rt.prototype, "max", 2);
|
|
6598
6598
|
Wt([
|
|
6599
6599
|
o({ type: String })
|
|
6600
|
-
],
|
|
6600
|
+
], Rt.prototype, "placeholder", 2);
|
|
6601
6601
|
Wt([
|
|
6602
6602
|
o({ type: Boolean })
|
|
6603
|
-
],
|
|
6603
|
+
], Rt.prototype, "readonly", 2);
|
|
6604
6604
|
Wt([
|
|
6605
6605
|
o({ type: Boolean })
|
|
6606
|
-
],
|
|
6606
|
+
], Rt.prototype, "disabled", 2);
|
|
6607
6607
|
Wt([
|
|
6608
6608
|
o({ type: Object })
|
|
6609
|
-
],
|
|
6609
|
+
], Rt.prototype, "inputClasses", 2);
|
|
6610
6610
|
Wt([
|
|
6611
6611
|
o({ type: Object })
|
|
6612
|
-
],
|
|
6612
|
+
], Rt.prototype, "internals", 2);
|
|
6613
6613
|
Wt([
|
|
6614
6614
|
o({ type: Object })
|
|
6615
|
-
],
|
|
6616
|
-
|
|
6615
|
+
], Rt.prototype, "strings", 2);
|
|
6616
|
+
Rt = Wt([
|
|
6617
6617
|
B("pkt-datepicker-single")
|
|
6618
|
-
],
|
|
6619
|
-
var
|
|
6620
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6618
|
+
], Rt);
|
|
6619
|
+
var Tl = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
|
|
6620
|
+
for (var a = s > 1 ? void 0 : s ? Nl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6621
6621
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6622
|
-
return s && a &&
|
|
6622
|
+
return s && a && Tl(t, e, a), a;
|
|
6623
6623
|
};
|
|
6624
|
-
let
|
|
6624
|
+
let wt = class extends G {
|
|
6625
6625
|
constructor() {
|
|
6626
6626
|
super(...arguments), this.value = [], this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.showRangeLabels = !1, this.inputClasses = {}, this.strings = { generic: { from: "Fra", to: "Til" } }, this.inputRef = N(), this.inputRefTo = N(), this.btnRef = N();
|
|
6627
6627
|
}
|
|
@@ -6694,7 +6694,7 @@ let xt = class extends G {
|
|
|
6694
6694
|
return this;
|
|
6695
6695
|
}
|
|
6696
6696
|
render() {
|
|
6697
|
-
const t =
|
|
6697
|
+
const t = Mi.getRangeLabelClasses(this.showRangeLabels);
|
|
6698
6698
|
return u`
|
|
6699
6699
|
<div class="pkt-input__container">
|
|
6700
6700
|
${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
|
|
@@ -6714,10 +6714,10 @@ let xt = class extends G {
|
|
|
6714
6714
|
@touchend=${(e) => {
|
|
6715
6715
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6716
6716
|
}}
|
|
6717
|
-
@keydown=${(e) =>
|
|
6717
|
+
@keydown=${(e) => Ie.handleInputKeydown(
|
|
6718
6718
|
e,
|
|
6719
6719
|
(s) => this.dispatchToggleCalendar(s),
|
|
6720
|
-
() =>
|
|
6720
|
+
() => Pi.submitFormOrFallback(
|
|
6721
6721
|
this.internals,
|
|
6722
6722
|
() => {
|
|
6723
6723
|
var s;
|
|
@@ -6737,7 +6737,7 @@ let xt = class extends G {
|
|
|
6737
6737
|
this.dispatchInput(e), e.stopImmediatePropagation();
|
|
6738
6738
|
}}
|
|
6739
6739
|
@focus=${() => {
|
|
6740
|
-
this.dispatchFocus(),
|
|
6740
|
+
this.dispatchFocus(), Be.isIOS() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6741
6741
|
}}
|
|
6742
6742
|
@blur=${(e) => {
|
|
6743
6743
|
this.dispatchEvent(
|
|
@@ -6778,10 +6778,10 @@ let xt = class extends G {
|
|
|
6778
6778
|
@touchend=${(e) => {
|
|
6779
6779
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6780
6780
|
}}
|
|
6781
|
-
@keydown=${(e) =>
|
|
6781
|
+
@keydown=${(e) => Ie.handleInputKeydown(
|
|
6782
6782
|
e,
|
|
6783
6783
|
(s) => this.dispatchToggleCalendar(s),
|
|
6784
|
-
() =>
|
|
6784
|
+
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
6785
6785
|
var s;
|
|
6786
6786
|
return (s = this.inputRefTo.value) == null ? void 0 : s.blur();
|
|
6787
6787
|
}),
|
|
@@ -6795,7 +6795,7 @@ let xt = class extends G {
|
|
|
6795
6795
|
this.dispatchInput(e), e.stopImmediatePropagation();
|
|
6796
6796
|
}}
|
|
6797
6797
|
@focus=${() => {
|
|
6798
|
-
this.dispatchFocus(),
|
|
6798
|
+
this.dispatchFocus(), Be.isIOS() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6799
6799
|
}}
|
|
6800
6800
|
@blur=${(e) => {
|
|
6801
6801
|
this.dispatchBlur(e), e.target.value && (this.dispatchManageValidity(e.target), this.dispatchEvent(
|
|
@@ -6818,10 +6818,10 @@ let xt = class extends G {
|
|
|
6818
6818
|
${E(this.inputRefTo)}
|
|
6819
6819
|
/>
|
|
6820
6820
|
<button
|
|
6821
|
-
class="${O(
|
|
6821
|
+
class="${O(Mi.getButtonClasses())}"
|
|
6822
6822
|
type="button"
|
|
6823
6823
|
@click=${(e) => this.dispatchToggleCalendar(e)}
|
|
6824
|
-
@keydown=${(e) =>
|
|
6824
|
+
@keydown=${(e) => Ie.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
|
|
6825
6825
|
?disabled=${this.disabled}
|
|
6826
6826
|
${E(this.btnRef)}
|
|
6827
6827
|
>
|
|
@@ -6834,49 +6834,49 @@ let xt = class extends G {
|
|
|
6834
6834
|
};
|
|
6835
6835
|
jt([
|
|
6836
6836
|
o({ type: Array })
|
|
6837
|
-
],
|
|
6837
|
+
], wt.prototype, "value", 2);
|
|
6838
6838
|
jt([
|
|
6839
6839
|
o({ type: String })
|
|
6840
|
-
],
|
|
6840
|
+
], wt.prototype, "inputType", 2);
|
|
6841
6841
|
jt([
|
|
6842
6842
|
o({ type: String })
|
|
6843
|
-
],
|
|
6843
|
+
], wt.prototype, "id", 2);
|
|
6844
6844
|
jt([
|
|
6845
6845
|
o({ type: String })
|
|
6846
|
-
],
|
|
6846
|
+
], wt.prototype, "min", 2);
|
|
6847
6847
|
jt([
|
|
6848
6848
|
o({ type: String })
|
|
6849
|
-
],
|
|
6849
|
+
], wt.prototype, "max", 2);
|
|
6850
6850
|
jt([
|
|
6851
6851
|
o({ type: String })
|
|
6852
|
-
],
|
|
6852
|
+
], wt.prototype, "placeholder", 2);
|
|
6853
6853
|
jt([
|
|
6854
6854
|
o({ type: Boolean })
|
|
6855
|
-
],
|
|
6855
|
+
], wt.prototype, "readonly", 2);
|
|
6856
6856
|
jt([
|
|
6857
6857
|
o({ type: Boolean })
|
|
6858
|
-
],
|
|
6858
|
+
], wt.prototype, "disabled", 2);
|
|
6859
6859
|
jt([
|
|
6860
6860
|
o({ type: Boolean })
|
|
6861
|
-
],
|
|
6861
|
+
], wt.prototype, "showRangeLabels", 2);
|
|
6862
6862
|
jt([
|
|
6863
6863
|
o({ type: Object })
|
|
6864
|
-
],
|
|
6864
|
+
], wt.prototype, "inputClasses", 2);
|
|
6865
6865
|
jt([
|
|
6866
6866
|
o({ type: Object })
|
|
6867
|
-
],
|
|
6867
|
+
], wt.prototype, "internals", 2);
|
|
6868
6868
|
jt([
|
|
6869
6869
|
o({ type: Object })
|
|
6870
|
-
],
|
|
6871
|
-
|
|
6870
|
+
], wt.prototype, "strings", 2);
|
|
6871
|
+
wt = jt([
|
|
6872
6872
|
B("pkt-datepicker-range")
|
|
6873
|
-
],
|
|
6874
|
-
var
|
|
6875
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6873
|
+
], wt);
|
|
6874
|
+
var Al = Object.defineProperty, El = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
|
|
6875
|
+
for (var a = s > 1 ? void 0 : s ? El(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6876
6876
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6877
|
-
return s && a &&
|
|
6877
|
+
return s && a && Al(t, e, a), a;
|
|
6878
6878
|
};
|
|
6879
|
-
let
|
|
6879
|
+
let xt = class extends G {
|
|
6880
6880
|
constructor() {
|
|
6881
6881
|
super(...arguments), this.value = [], this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.strings = { calendar: { buttonAltText: "Åpne kalender" } }, this.inputRef = N(), this.btnRef = N();
|
|
6882
6882
|
}
|
|
@@ -6973,12 +6973,12 @@ let St = class extends G {
|
|
|
6973
6973
|
this.dispatchInput(t), t.stopImmediatePropagation();
|
|
6974
6974
|
}}
|
|
6975
6975
|
@focus=${() => {
|
|
6976
|
-
this.dispatchFocus(),
|
|
6976
|
+
this.dispatchFocus(), Be.isIOS() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6977
6977
|
}}
|
|
6978
|
-
@keydown=${(t) =>
|
|
6978
|
+
@keydown=${(t) => Ie.handleInputKeydown(
|
|
6979
6979
|
t,
|
|
6980
6980
|
(e) => this.dispatchToggleCalendar(e),
|
|
6981
|
-
() =>
|
|
6981
|
+
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
6982
6982
|
var e;
|
|
6983
6983
|
return (e = this.inputRef.value) == null ? void 0 : e.blur();
|
|
6984
6984
|
}),
|
|
@@ -6992,10 +6992,10 @@ let St = class extends G {
|
|
|
6992
6992
|
${E(this.inputRef)}
|
|
6993
6993
|
/>
|
|
6994
6994
|
<button
|
|
6995
|
-
class="${O(
|
|
6995
|
+
class="${O(Mi.getButtonClasses())}"
|
|
6996
6996
|
type="button"
|
|
6997
6997
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6998
|
-
@keydown=${(t) =>
|
|
6998
|
+
@keydown=${(t) => Ie.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6999
6999
|
?disabled=${this.disabled}
|
|
7000
7000
|
${E(this.btnRef)}
|
|
7001
7001
|
>
|
|
@@ -7008,57 +7008,57 @@ let St = class extends G {
|
|
|
7008
7008
|
};
|
|
7009
7009
|
Ft([
|
|
7010
7010
|
o({ type: Array })
|
|
7011
|
-
],
|
|
7011
|
+
], xt.prototype, "value", 2);
|
|
7012
7012
|
Ft([
|
|
7013
7013
|
o({ type: String })
|
|
7014
|
-
],
|
|
7014
|
+
], xt.prototype, "inputType", 2);
|
|
7015
7015
|
Ft([
|
|
7016
7016
|
o({ type: String })
|
|
7017
|
-
],
|
|
7017
|
+
], xt.prototype, "id", 2);
|
|
7018
7018
|
Ft([
|
|
7019
7019
|
o({ type: String })
|
|
7020
|
-
],
|
|
7020
|
+
], xt.prototype, "min", 2);
|
|
7021
7021
|
Ft([
|
|
7022
7022
|
o({ type: String })
|
|
7023
|
-
],
|
|
7023
|
+
], xt.prototype, "max", 2);
|
|
7024
7024
|
Ft([
|
|
7025
7025
|
o({ type: String })
|
|
7026
|
-
],
|
|
7026
|
+
], xt.prototype, "placeholder", 2);
|
|
7027
7027
|
Ft([
|
|
7028
7028
|
o({ type: Boolean })
|
|
7029
|
-
],
|
|
7029
|
+
], xt.prototype, "readonly", 2);
|
|
7030
7030
|
Ft([
|
|
7031
7031
|
o({ type: Boolean })
|
|
7032
|
-
],
|
|
7032
|
+
], xt.prototype, "disabled", 2);
|
|
7033
7033
|
Ft([
|
|
7034
7034
|
o({ type: Number })
|
|
7035
|
-
],
|
|
7035
|
+
], xt.prototype, "maxlength", 2);
|
|
7036
7036
|
Ft([
|
|
7037
7037
|
o({ type: Object })
|
|
7038
|
-
],
|
|
7038
|
+
], xt.prototype, "inputClasses", 2);
|
|
7039
7039
|
Ft([
|
|
7040
7040
|
o({ type: Object })
|
|
7041
|
-
],
|
|
7041
|
+
], xt.prototype, "internals", 2);
|
|
7042
7042
|
Ft([
|
|
7043
7043
|
o({ type: Object })
|
|
7044
|
-
],
|
|
7045
|
-
|
|
7044
|
+
], xt.prototype, "strings", 2);
|
|
7045
|
+
xt = Ft([
|
|
7046
7046
|
B("pkt-datepicker-multiple")
|
|
7047
|
-
],
|
|
7048
|
-
var
|
|
7049
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7047
|
+
], xt);
|
|
7048
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
|
|
7049
|
+
for (var a = s > 1 ? void 0 : s ? Pl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7050
7050
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7051
|
-
return s && a &&
|
|
7051
|
+
return s && a && Ol(t, e, a), a;
|
|
7052
7052
|
};
|
|
7053
7053
|
let tt = class extends M {
|
|
7054
7054
|
/**
|
|
7055
7055
|
* Housekeeping / lifecycle methods
|
|
7056
7056
|
*/
|
|
7057
7057
|
constructor() {
|
|
7058
|
-
super(), this._valueProperty = "", this.datepickerPopupRef = N(), this._value = [], this.label = "Datovelger", this.dateformat =
|
|
7058
|
+
super(), this._valueProperty = "", this.datepickerPopupRef = N(), 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 = N(), this.popupRef = N(), this.helptextSlot = N(), this.singleInputRef = N(), this.rangeInputRef = N(), this.multipleInputRef = N(), this.addToSelected = (i) => {
|
|
7059
7059
|
const t = this.datepickerPopupRef.value;
|
|
7060
7060
|
return t && typeof t.addToSelected == "function" ? t.addToSelected(i, this.min, this.max) : ss.addToSelected(i, this.calRef, this.min, this.max);
|
|
7061
|
-
}, this.slotController = new
|
|
7061
|
+
}, this.slotController = new rt(this, this.helptextSlot);
|
|
7062
7062
|
}
|
|
7063
7063
|
get value() {
|
|
7064
7064
|
return this._valueProperty;
|
|
@@ -7071,7 +7071,7 @@ let tt = class extends M {
|
|
|
7071
7071
|
* Computed properties
|
|
7072
7072
|
*/
|
|
7073
7073
|
get inputType() {
|
|
7074
|
-
return
|
|
7074
|
+
return yl.getInputType();
|
|
7075
7075
|
}
|
|
7076
7076
|
connectedCallback() {
|
|
7077
7077
|
super.connectedCallback(), this.timezone && this.timezone !== window.pktTz && (window.pktTz = this.timezone), this.name = ee.normalizeNameForMultiple(this.name, this.multiple, this.range) || this.name;
|
|
@@ -7205,7 +7205,7 @@ let tt = class extends M {
|
|
|
7205
7205
|
}}
|
|
7206
7206
|
@manage-validity=${(i) => this.manageValidity(i.detail)}
|
|
7207
7207
|
@validate-date-input=${(i) => {
|
|
7208
|
-
|
|
7208
|
+
Pi.validateDateInput(i.detail, this.internals, this.min, this.max, this.strings);
|
|
7209
7209
|
}}
|
|
7210
7210
|
@handle-date-select=${(i) => {
|
|
7211
7211
|
var t, e;
|
|
@@ -7283,7 +7283,7 @@ let tt = class extends M {
|
|
|
7283
7283
|
`;
|
|
7284
7284
|
}
|
|
7285
7285
|
render() {
|
|
7286
|
-
return this.inputClasses =
|
|
7286
|
+
return this.inputClasses = Mi.getInputClasses(
|
|
7287
7287
|
this.fullwidth,
|
|
7288
7288
|
this.showRangeLabels,
|
|
7289
7289
|
this.multiple,
|
|
@@ -7347,10 +7347,10 @@ let tt = class extends M {
|
|
|
7347
7347
|
var i;
|
|
7348
7348
|
const t = this.datepickerPopupRef.value;
|
|
7349
7349
|
if (this.calendarOpen = !0, t && typeof t.show == "function") {
|
|
7350
|
-
t.show(),
|
|
7350
|
+
t.show(), Be.isIOS() && t.focusOnCurrentDate();
|
|
7351
7351
|
return;
|
|
7352
7352
|
}
|
|
7353
|
-
await
|
|
7353
|
+
await bl(20), this.handleCalendarPosition(), Be.isIOS() && ((i = this.calRef.value) == null || i.focusOnCurrentDate());
|
|
7354
7354
|
}
|
|
7355
7355
|
hideCalendar() {
|
|
7356
7356
|
const i = this.datepickerPopupRef.value;
|
|
@@ -7407,10 +7407,10 @@ dt([
|
|
|
7407
7407
|
o({ type: Boolean, reflect: !0 })
|
|
7408
7408
|
], tt.prototype, "withcontrols", 2);
|
|
7409
7409
|
dt([
|
|
7410
|
-
o({ converter:
|
|
7410
|
+
o({ converter: hi.csvToArray })
|
|
7411
7411
|
], tt.prototype, "excludedates", 2);
|
|
7412
7412
|
dt([
|
|
7413
|
-
o({ converter:
|
|
7413
|
+
o({ converter: hi.csvToArray })
|
|
7414
7414
|
], tt.prototype, "excludeweekdays", 2);
|
|
7415
7415
|
dt([
|
|
7416
7416
|
o({ type: String })
|
|
@@ -7427,17 +7427,17 @@ dt([
|
|
|
7427
7427
|
tt = dt([
|
|
7428
7428
|
B("pkt-datepicker")
|
|
7429
7429
|
], tt);
|
|
7430
|
-
const
|
|
7431
|
-
props:
|
|
7430
|
+
const Ml = { href: { default: "#" }, target: { default: "_self" } }, xa = {
|
|
7431
|
+
props: Ml
|
|
7432
7432
|
};
|
|
7433
|
-
var
|
|
7434
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7433
|
+
var Il = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, di = (i, t, e, s) => {
|
|
7434
|
+
for (var a = s > 1 ? void 0 : s ? Dl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7435
7435
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7436
|
-
return s && a &&
|
|
7436
|
+
return s && a && Il(t, e, a), a;
|
|
7437
7437
|
};
|
|
7438
7438
|
let xe = class extends G {
|
|
7439
7439
|
constructor() {
|
|
7440
|
-
super(), this.defaultSlot = N(), this.href = xa.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = xa.props.target.default, this.slotController = new
|
|
7440
|
+
super(), this.defaultSlot = N(), this.href = xa.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = xa.props.target.default, this.slotController = new rt(this, this.defaultSlot);
|
|
7441
7441
|
}
|
|
7442
7442
|
render() {
|
|
7443
7443
|
const t = {
|
|
@@ -7455,32 +7455,32 @@ let xe = class extends G {
|
|
|
7455
7455
|
>`;
|
|
7456
7456
|
}
|
|
7457
7457
|
};
|
|
7458
|
-
|
|
7458
|
+
di([
|
|
7459
7459
|
o({ type: String, reflect: !0 })
|
|
7460
7460
|
], xe.prototype, "href", 2);
|
|
7461
|
-
|
|
7461
|
+
di([
|
|
7462
7462
|
o({ type: String, reflect: !0 })
|
|
7463
7463
|
], xe.prototype, "iconName", 2);
|
|
7464
|
-
|
|
7464
|
+
di([
|
|
7465
7465
|
o({ type: String, reflect: !0 })
|
|
7466
7466
|
], xe.prototype, "iconPosition", 2);
|
|
7467
|
-
|
|
7467
|
+
di([
|
|
7468
7468
|
o({ type: Boolean, reflect: !0 })
|
|
7469
7469
|
], xe.prototype, "external", 2);
|
|
7470
|
-
|
|
7470
|
+
di([
|
|
7471
7471
|
o({ type: String, reflect: !0 })
|
|
7472
7472
|
], xe.prototype, "target", 2);
|
|
7473
|
-
xe =
|
|
7473
|
+
xe = di([
|
|
7474
7474
|
B("pkt-link")
|
|
7475
7475
|
], xe);
|
|
7476
|
-
var
|
|
7477
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7476
|
+
var Rl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
|
|
7477
|
+
for (var a = s > 1 ? void 0 : s ? Ll(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7478
7478
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7479
|
-
return s && a &&
|
|
7479
|
+
return s && a && Rl(t, e, a), a;
|
|
7480
7480
|
};
|
|
7481
7481
|
let ue = class extends G {
|
|
7482
7482
|
constructor() {
|
|
7483
|
-
super(), this.defaultSlot = N(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new
|
|
7483
|
+
super(), this.defaultSlot = N(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
|
|
7484
7484
|
}
|
|
7485
7485
|
render() {
|
|
7486
7486
|
const t = ["pkt-linkcard", this.skin && `pkt-linkcard--${this.skin}`].filter(Boolean).join(" "), e = ["pkt-linkcard__title", this.external && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
|
|
@@ -7520,15 +7520,15 @@ qe([
|
|
|
7520
7520
|
ue = qe([
|
|
7521
7521
|
B("pkt-linkcard")
|
|
7522
7522
|
], ue);
|
|
7523
|
-
var
|
|
7524
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7523
|
+
var Bl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, me = (i, t, e, s) => {
|
|
7524
|
+
for (var a = s > 1 ? void 0 : s ? Vl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7525
7525
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7526
|
-
return s && a &&
|
|
7526
|
+
return s && a && Bl(t, e, a), a;
|
|
7527
7527
|
};
|
|
7528
|
-
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.
|
|
7528
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.12/animations/";
|
|
7529
7529
|
let Zt = class extends G {
|
|
7530
7530
|
constructor() {
|
|
7531
|
-
super(), this.defaultSlot = N(), 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
|
|
7531
|
+
super(), this.defaultSlot = N(), 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);
|
|
7532
7532
|
}
|
|
7533
7533
|
connectedCallback() {
|
|
7534
7534
|
super.connectedCallback(), this._shouldDisplayLoader = this.delay === 0, this.delay > 0 && this.setupLoader();
|
|
@@ -7605,23 +7605,23 @@ me([
|
|
|
7605
7605
|
Zt = me([
|
|
7606
7606
|
B("pkt-loader")
|
|
7607
7607
|
], Zt);
|
|
7608
|
-
const
|
|
7609
|
-
props:
|
|
7608
|
+
const jl = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Ts = {
|
|
7609
|
+
props: jl
|
|
7610
7610
|
};
|
|
7611
|
-
var
|
|
7612
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7611
|
+
var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, ci = (i, t, e, s) => {
|
|
7612
|
+
for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7613
7613
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7614
|
-
return s && a &&
|
|
7614
|
+
return s && a && Fl(t, e, a), a;
|
|
7615
7615
|
};
|
|
7616
|
-
let
|
|
7616
|
+
let Ve = class extends G {
|
|
7617
7617
|
constructor() {
|
|
7618
7618
|
super(), this.defaultSlot = N(), this.closable = Ts.props.closable.default, this.compact = Ts.props.compact.default, this.title = "", this.skin = Ts.props.skin.default, this._isClosed = !1, this.close = (i) => {
|
|
7619
7619
|
this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: i }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: i }, bubbles: !0 }));
|
|
7620
|
-
}, this.slotController = new
|
|
7620
|
+
}, this.slotController = new rt(this, this.defaultSlot), this._isClosed = !1;
|
|
7621
7621
|
}
|
|
7622
7622
|
// Lifecycle
|
|
7623
7623
|
updated(i) {
|
|
7624
|
-
super.updated(i), i.has("_isClosed") &&
|
|
7624
|
+
super.updated(i), i.has("_isClosed") && qa(this, "pkt-hide", this._isClosed);
|
|
7625
7625
|
}
|
|
7626
7626
|
// Render
|
|
7627
7627
|
render() {
|
|
@@ -7647,33 +7647,33 @@ let Se = class extends G {
|
|
|
7647
7647
|
</div>`;
|
|
7648
7648
|
}
|
|
7649
7649
|
};
|
|
7650
|
-
|
|
7650
|
+
ci([
|
|
7651
7651
|
o({ type: Boolean, reflect: !0 })
|
|
7652
|
-
],
|
|
7653
|
-
|
|
7652
|
+
], Ve.prototype, "closable", 2);
|
|
7653
|
+
ci([
|
|
7654
7654
|
o({ type: Boolean, reflect: !0 })
|
|
7655
|
-
],
|
|
7656
|
-
|
|
7655
|
+
], Ve.prototype, "compact", 2);
|
|
7656
|
+
ci([
|
|
7657
7657
|
o({ type: String, reflect: !0 })
|
|
7658
|
-
],
|
|
7659
|
-
|
|
7658
|
+
], Ve.prototype, "title", 2);
|
|
7659
|
+
ci([
|
|
7660
7660
|
o({ type: String, reflect: !0 })
|
|
7661
|
-
],
|
|
7662
|
-
|
|
7661
|
+
], Ve.prototype, "skin", 2);
|
|
7662
|
+
ci([
|
|
7663
7663
|
R()
|
|
7664
|
-
],
|
|
7665
|
-
|
|
7664
|
+
], Ve.prototype, "_isClosed", 2);
|
|
7665
|
+
Ve = ci([
|
|
7666
7666
|
B("pkt-messagebox")
|
|
7667
|
-
],
|
|
7668
|
-
const
|
|
7669
|
-
props:
|
|
7667
|
+
], Ve);
|
|
7668
|
+
const Hl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, Ns = {
|
|
7669
|
+
props: Hl
|
|
7670
7670
|
};
|
|
7671
|
-
var
|
|
7672
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7671
|
+
var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, Jt = (i, t, e, s) => {
|
|
7672
|
+
for (var a = s > 1 ? void 0 : s ? zl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7673
7673
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7674
|
-
return s && a &&
|
|
7674
|
+
return s && a && ql(t, e, a), a;
|
|
7675
7675
|
};
|
|
7676
|
-
let
|
|
7676
|
+
let Lt = class extends G {
|
|
7677
7677
|
constructor() {
|
|
7678
7678
|
super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = Ns.props.hideCloseButton.default, this.closeOnBackdropClick = Ns.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = Ns.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = N(), this.dialogRef = N(), this._isOpen = !1, this.close = (t, e = !1) => {
|
|
7679
7679
|
var s;
|
|
@@ -7693,7 +7693,7 @@ let Rt = class extends G {
|
|
|
7693
7693
|
}), s && document.body.classList.add("pkt-modal--open"), this.dispatchEvent(
|
|
7694
7694
|
new CustomEvent("showModal", { detail: { origin: t }, bubbles: !0, composed: !0 })
|
|
7695
7695
|
), this.requestUpdate();
|
|
7696
|
-
}, this.slotController = new
|
|
7696
|
+
}, this.slotController = new rt(this, this.defaultSlot), this._isOpen = !1;
|
|
7697
7697
|
}
|
|
7698
7698
|
async connectedCallback() {
|
|
7699
7699
|
super.connectedCallback(), document.addEventListener("keydown", this.handleKeyDown.bind(this)), document.addEventListener("click", this.handleBackdropClick.bind(this));
|
|
@@ -7779,43 +7779,43 @@ let Rt = class extends G {
|
|
|
7779
7779
|
};
|
|
7780
7780
|
Jt([
|
|
7781
7781
|
o({ type: String })
|
|
7782
|
-
],
|
|
7782
|
+
], Lt.prototype, "headingText", 2);
|
|
7783
7783
|
Jt([
|
|
7784
7784
|
o({ type: Boolean })
|
|
7785
|
-
],
|
|
7785
|
+
], Lt.prototype, "removePadding", 2);
|
|
7786
7786
|
Jt([
|
|
7787
7787
|
o({ type: Boolean })
|
|
7788
|
-
],
|
|
7788
|
+
], Lt.prototype, "hideCloseButton", 2);
|
|
7789
7789
|
Jt([
|
|
7790
7790
|
o({ type: Boolean })
|
|
7791
|
-
],
|
|
7791
|
+
], Lt.prototype, "closeOnBackdropClick", 2);
|
|
7792
7792
|
Jt([
|
|
7793
7793
|
o({ type: String })
|
|
7794
|
-
],
|
|
7794
|
+
], Lt.prototype, "closeButtonSkin", 2);
|
|
7795
7795
|
Jt([
|
|
7796
7796
|
o({ type: String })
|
|
7797
|
-
],
|
|
7797
|
+
], Lt.prototype, "size", 2);
|
|
7798
7798
|
Jt([
|
|
7799
7799
|
o({ type: String })
|
|
7800
|
-
],
|
|
7800
|
+
], Lt.prototype, "variant", 2);
|
|
7801
7801
|
Jt([
|
|
7802
7802
|
o({ type: String })
|
|
7803
|
-
],
|
|
7803
|
+
], Lt.prototype, "drawerPosition", 2);
|
|
7804
7804
|
Jt([
|
|
7805
7805
|
o({ type: Boolean })
|
|
7806
|
-
],
|
|
7806
|
+
], Lt.prototype, "transparentBackdrop", 2);
|
|
7807
7807
|
Jt([
|
|
7808
7808
|
R()
|
|
7809
|
-
],
|
|
7810
|
-
|
|
7809
|
+
], Lt.prototype, "_isOpen", 2);
|
|
7810
|
+
Lt = Jt([
|
|
7811
7811
|
B("pkt-modal")
|
|
7812
|
-
],
|
|
7812
|
+
], Lt);
|
|
7813
7813
|
/**
|
|
7814
7814
|
* @license
|
|
7815
7815
|
* Copyright 2018 Google LLC
|
|
7816
7816
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7817
7817
|
*/
|
|
7818
|
-
const
|
|
7818
|
+
const en = "important", Wl = " !" + en, Kl = Fe(class extends li {
|
|
7819
7819
|
constructor(i) {
|
|
7820
7820
|
var t;
|
|
7821
7821
|
if (super(i), i.type !== Kt.ATTRIBUTE || i.name !== "style" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
@@ -7834,17 +7834,17 @@ const tn = "important", zl = " !" + tn, Wl = Fe(class extends oi {
|
|
|
7834
7834
|
const a = t[s];
|
|
7835
7835
|
if (a != null) {
|
|
7836
7836
|
this.ft.add(s);
|
|
7837
|
-
const n = typeof a == "string" && a.endsWith(
|
|
7838
|
-
s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ?
|
|
7837
|
+
const n = typeof a == "string" && a.endsWith(Wl);
|
|
7838
|
+
s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ? en : "") : e[s] = a;
|
|
7839
7839
|
}
|
|
7840
7840
|
}
|
|
7841
|
-
return
|
|
7841
|
+
return $t;
|
|
7842
7842
|
}
|
|
7843
7843
|
});
|
|
7844
|
-
var
|
|
7845
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7844
|
+
var Gl = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
|
|
7845
|
+
for (var a = s > 1 ? void 0 : s ? Yl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7846
7846
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7847
|
-
return s && a &&
|
|
7847
|
+
return s && a && Gl(t, e, a), a;
|
|
7848
7848
|
};
|
|
7849
7849
|
let et = class extends G {
|
|
7850
7850
|
constructor() {
|
|
@@ -7874,7 +7874,7 @@ let et = class extends G {
|
|
|
7874
7874
|
return u` <div
|
|
7875
7875
|
class="pkt-progressbar__container"
|
|
7876
7876
|
.ref=${this.progressBarRef}
|
|
7877
|
-
style=${
|
|
7877
|
+
style=${Kl({
|
|
7878
7878
|
"--pkt-progress-label-width": `${this.labelWidth}px`,
|
|
7879
7879
|
"--pkt-progress-width": `${s}%`
|
|
7880
7880
|
})}
|
|
@@ -7960,12 +7960,12 @@ ct([
|
|
|
7960
7960
|
et = ct([
|
|
7961
7961
|
B("pkt-progressbar")
|
|
7962
7962
|
], et);
|
|
7963
|
-
var
|
|
7964
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7963
|
+
var Zl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, Ut = (i, t, e, s) => {
|
|
7964
|
+
for (var a = s > 1 ? void 0 : s ? Xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7965
7965
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7966
|
-
return s && a &&
|
|
7966
|
+
return s && a && Zl(t, e, a), a;
|
|
7967
7967
|
};
|
|
7968
|
-
let
|
|
7968
|
+
let St = class extends M {
|
|
7969
7969
|
constructor() {
|
|
7970
7970
|
super(...arguments), this.inputRef = N(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.checked = null, this.type = "radio", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut", this._checked = !1;
|
|
7971
7971
|
}
|
|
@@ -8026,49 +8026,49 @@ let Ct = class extends M {
|
|
|
8026
8026
|
};
|
|
8027
8027
|
Ut([
|
|
8028
8028
|
o({ type: String, reflect: !0 })
|
|
8029
|
-
],
|
|
8029
|
+
], St.prototype, "value", 2);
|
|
8030
8030
|
Ut([
|
|
8031
8031
|
o({ type: String })
|
|
8032
|
-
],
|
|
8032
|
+
], St.prototype, "checkHelptext", 2);
|
|
8033
8033
|
Ut([
|
|
8034
8034
|
o({ type: Boolean })
|
|
8035
|
-
],
|
|
8035
|
+
], St.prototype, "defaultChecked", 2);
|
|
8036
8036
|
Ut([
|
|
8037
8037
|
o({ type: Boolean })
|
|
8038
|
-
],
|
|
8038
|
+
], St.prototype, "hasTile", 2);
|
|
8039
8039
|
Ut([
|
|
8040
8040
|
o({ type: Boolean, reflect: !0 })
|
|
8041
|
-
],
|
|
8041
|
+
], St.prototype, "checked", 2);
|
|
8042
8042
|
Ut([
|
|
8043
8043
|
o({ type: String, reflect: !0 })
|
|
8044
|
-
],
|
|
8044
|
+
], St.prototype, "type", 2);
|
|
8045
8045
|
Ut([
|
|
8046
8046
|
o({ type: String })
|
|
8047
|
-
],
|
|
8047
|
+
], St.prototype, "tagText", 2);
|
|
8048
8048
|
Ut([
|
|
8049
8049
|
o({ type: Boolean })
|
|
8050
|
-
],
|
|
8050
|
+
], St.prototype, "optionalTag", 2);
|
|
8051
8051
|
Ut([
|
|
8052
8052
|
o({ type: String })
|
|
8053
|
-
],
|
|
8053
|
+
], St.prototype, "optionalText", 2);
|
|
8054
8054
|
Ut([
|
|
8055
8055
|
o({ type: Boolean })
|
|
8056
|
-
],
|
|
8056
|
+
], St.prototype, "requiredTag", 2);
|
|
8057
8057
|
Ut([
|
|
8058
8058
|
o({ type: String })
|
|
8059
|
-
],
|
|
8059
|
+
], St.prototype, "requiredText", 2);
|
|
8060
8060
|
Ut([
|
|
8061
8061
|
R()
|
|
8062
|
-
],
|
|
8063
|
-
|
|
8062
|
+
], St.prototype, "_checked", 2);
|
|
8063
|
+
St = Ut([
|
|
8064
8064
|
B("pkt-radiobutton")
|
|
8065
|
-
],
|
|
8065
|
+
], St);
|
|
8066
8066
|
/**
|
|
8067
8067
|
* @license
|
|
8068
8068
|
* Copyright 2021 Google LLC
|
|
8069
8069
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8070
8070
|
*/
|
|
8071
|
-
let
|
|
8071
|
+
let sn = class extends Event {
|
|
8072
8072
|
constructor(t, e, s, a) {
|
|
8073
8073
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = a ?? !1;
|
|
8074
8074
|
}
|
|
@@ -8100,7 +8100,7 @@ let Sa = class {
|
|
|
8100
8100
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
8101
8101
|
}
|
|
8102
8102
|
dispatchRequest() {
|
|
8103
|
-
this.host.dispatchEvent(new
|
|
8103
|
+
this.host.dispatchEvent(new sn(this.context, this.host, this.t, this.subscribe));
|
|
8104
8104
|
}
|
|
8105
8105
|
};
|
|
8106
8106
|
/**
|
|
@@ -8108,7 +8108,7 @@ let Sa = class {
|
|
|
8108
8108
|
* Copyright 2021 Google LLC
|
|
8109
8109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8110
8110
|
*/
|
|
8111
|
-
class
|
|
8111
|
+
class Jl {
|
|
8112
8112
|
get value() {
|
|
8113
8113
|
return this.o;
|
|
8114
8114
|
}
|
|
@@ -8141,11 +8141,11 @@ class Xl {
|
|
|
8141
8141
|
* Copyright 2021 Google LLC
|
|
8142
8142
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8143
8143
|
*/
|
|
8144
|
-
let
|
|
8144
|
+
let Ql = class extends Event {
|
|
8145
8145
|
constructor(i, t) {
|
|
8146
8146
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = i, this.contextTarget = t;
|
|
8147
8147
|
}
|
|
8148
|
-
}, Ca = class extends
|
|
8148
|
+
}, Ca = class extends Jl {
|
|
8149
8149
|
constructor(t, e, s) {
|
|
8150
8150
|
var a, n;
|
|
8151
8151
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (r) => {
|
|
@@ -8155,7 +8155,7 @@ let Jl = class extends Event {
|
|
|
8155
8155
|
}, this.onProviderRequest = (r) => {
|
|
8156
8156
|
if (r.context !== this.context || (r.contextTarget ?? r.composedPath()[0]) === this.host) return;
|
|
8157
8157
|
const l = /* @__PURE__ */ new Set();
|
|
8158
|
-
for (const [d, { consumerHost: p }] of this.subscriptions) l.has(d) || (l.add(d), p.dispatchEvent(new
|
|
8158
|
+
for (const [d, { consumerHost: p }] of this.subscriptions) l.has(d) || (l.add(d), p.dispatchEvent(new sn(this.context, p, d, !0)));
|
|
8159
8159
|
r.stopPropagation();
|
|
8160
8160
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (a = this.host).addController) == null || n.call(a, this);
|
|
8161
8161
|
}
|
|
@@ -8163,7 +8163,7 @@ let Jl = class extends Event {
|
|
|
8163
8163
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
8164
8164
|
}
|
|
8165
8165
|
hostConnected() {
|
|
8166
|
-
this.host.dispatchEvent(new
|
|
8166
|
+
this.host.dispatchEvent(new Ql(this.context, this.host));
|
|
8167
8167
|
}
|
|
8168
8168
|
};
|
|
8169
8169
|
/**
|
|
@@ -8171,7 +8171,7 @@ let Jl = class extends Event {
|
|
|
8171
8171
|
* Copyright 2017 Google LLC
|
|
8172
8172
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8173
8173
|
*/
|
|
8174
|
-
function
|
|
8174
|
+
function th({ context: i }) {
|
|
8175
8175
|
return (t, e) => {
|
|
8176
8176
|
const s = /* @__PURE__ */ new WeakMap();
|
|
8177
8177
|
if (typeof e == "object") return { get() {
|
|
@@ -8209,7 +8209,7 @@ function Ql({ context: i }) {
|
|
|
8209
8209
|
* Copyright 2022 Google LLC
|
|
8210
8210
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8211
8211
|
*/
|
|
8212
|
-
function
|
|
8212
|
+
function eh({ context: i, subscribe: t }) {
|
|
8213
8213
|
return (e, s) => {
|
|
8214
8214
|
typeof s == "object" ? s.addInitializer((function() {
|
|
8215
8215
|
new Sa(this, { context: i, callback: (a) => {
|
|
@@ -8222,11 +8222,11 @@ function th({ context: i, subscribe: t }) {
|
|
|
8222
8222
|
}));
|
|
8223
8223
|
};
|
|
8224
8224
|
}
|
|
8225
|
-
const
|
|
8226
|
-
var
|
|
8227
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8225
|
+
const an = Symbol("pkt-tabs-context");
|
|
8226
|
+
var ih = Object.defineProperty, sh = Object.getOwnPropertyDescriptor, pi = (i, t, e, s) => {
|
|
8227
|
+
for (var a = s > 1 ? void 0 : s ? sh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8228
8228
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8229
|
-
return s && a &&
|
|
8229
|
+
return s && a && ih(t, e, a), a;
|
|
8230
8230
|
};
|
|
8231
8231
|
let je = class extends G {
|
|
8232
8232
|
constructor() {
|
|
@@ -8235,7 +8235,7 @@ let je = class extends G {
|
|
|
8235
8235
|
registerTab: this.registerTab.bind(this),
|
|
8236
8236
|
handleClick: this.handleClick.bind(this),
|
|
8237
8237
|
handleKeyUp: this.handleKeyUp.bind(this)
|
|
8238
|
-
}, this.slotController = new
|
|
8238
|
+
}, this.slotController = new rt(this, this.defaultSlot);
|
|
8239
8239
|
}
|
|
8240
8240
|
get useArrowNav() {
|
|
8241
8241
|
return this.arrowNav && !this.disableArrowNav;
|
|
@@ -8278,33 +8278,33 @@ let je = class extends G {
|
|
|
8278
8278
|
`;
|
|
8279
8279
|
}
|
|
8280
8280
|
};
|
|
8281
|
-
|
|
8281
|
+
pi([
|
|
8282
8282
|
o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
|
|
8283
8283
|
], je.prototype, "arrowNav", 2);
|
|
8284
|
-
|
|
8284
|
+
pi([
|
|
8285
8285
|
o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
|
|
8286
8286
|
], je.prototype, "disableArrowNav", 2);
|
|
8287
|
-
|
|
8287
|
+
pi([
|
|
8288
8288
|
R()
|
|
8289
8289
|
], je.prototype, "tabRefs", 2);
|
|
8290
|
-
|
|
8290
|
+
pi([
|
|
8291
8291
|
R()
|
|
8292
8292
|
], je.prototype, "tabCount", 2);
|
|
8293
|
-
|
|
8294
|
-
|
|
8293
|
+
pi([
|
|
8294
|
+
th({ context: an }),
|
|
8295
8295
|
R()
|
|
8296
8296
|
], je.prototype, "context", 2);
|
|
8297
|
-
je =
|
|
8297
|
+
je = pi([
|
|
8298
8298
|
B("pkt-tabs")
|
|
8299
8299
|
], je);
|
|
8300
|
-
var
|
|
8301
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8300
|
+
var ah = Object.defineProperty, nh = Object.getOwnPropertyDescriptor, fe = (i, t, e, s) => {
|
|
8301
|
+
for (var a = s > 1 ? void 0 : s ? nh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8302
8302
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8303
|
-
return s && a &&
|
|
8303
|
+
return s && a && ah(t, e, a), a;
|
|
8304
8304
|
};
|
|
8305
8305
|
let se = class extends G {
|
|
8306
8306
|
constructor() {
|
|
8307
|
-
super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = N(), this.defaultSlot = N(), this.slotController = new
|
|
8307
|
+
super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = N(), this.defaultSlot = N(), this.slotController = new rt(this, this.defaultSlot);
|
|
8308
8308
|
}
|
|
8309
8309
|
connectedCallback() {
|
|
8310
8310
|
super.connectedCallback(), this.updateComplete.then(() => {
|
|
@@ -8377,7 +8377,7 @@ fe([
|
|
|
8377
8377
|
o({ type: Number, reflect: !0 })
|
|
8378
8378
|
], se.prototype, "index", 2);
|
|
8379
8379
|
fe([
|
|
8380
|
-
|
|
8380
|
+
eh({ context: an, subscribe: !0 }),
|
|
8381
8381
|
o({ attribute: !1 })
|
|
8382
8382
|
], se.prototype, "context", 2);
|
|
8383
8383
|
se = fe([
|
|
@@ -8388,33 +8388,33 @@ se = fe([
|
|
|
8388
8388
|
* Copyright 2020 Google LLC
|
|
8389
8389
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8390
8390
|
*/
|
|
8391
|
-
const
|
|
8391
|
+
const rh = Fe(class extends li {
|
|
8392
8392
|
constructor(i) {
|
|
8393
8393
|
if (super(i), i.type !== Kt.PROPERTY && i.type !== Kt.ATTRIBUTE && i.type !== Kt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
8394
|
-
if (!
|
|
8394
|
+
if (!Fa(i)) throw Error("`live` bindings can only contain a single expression");
|
|
8395
8395
|
}
|
|
8396
8396
|
render(i) {
|
|
8397
8397
|
return i;
|
|
8398
8398
|
}
|
|
8399
8399
|
update(i, [t]) {
|
|
8400
|
-
if (t ===
|
|
8400
|
+
if (t === $t || t === $) return t;
|
|
8401
8401
|
const e = i.element, s = i.name;
|
|
8402
8402
|
if (i.type === Kt.PROPERTY) {
|
|
8403
|
-
if (t === e[s]) return
|
|
8403
|
+
if (t === e[s]) return $t;
|
|
8404
8404
|
} else if (i.type === Kt.BOOLEAN_ATTRIBUTE) {
|
|
8405
|
-
if (!!t === e.hasAttribute(s)) return
|
|
8406
|
-
} else if (i.type === Kt.ATTRIBUTE && e.getAttribute(s) === t + "") return
|
|
8407
|
-
return
|
|
8405
|
+
if (!!t === e.hasAttribute(s)) return $t;
|
|
8406
|
+
} else if (i.type === Kt.ATTRIBUTE && e.getAttribute(s) === t + "") return $t;
|
|
8407
|
+
return Ua(i), t;
|
|
8408
8408
|
}
|
|
8409
8409
|
});
|
|
8410
|
-
var
|
|
8411
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8410
|
+
var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, Vi = (i, t, e, s) => {
|
|
8411
|
+
for (var a = s > 1 ? void 0 : s ? lh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8412
8412
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8413
|
-
return s && a &&
|
|
8413
|
+
return s && a && oh(t, e, a), a;
|
|
8414
8414
|
};
|
|
8415
8415
|
let ai = class extends M {
|
|
8416
8416
|
constructor() {
|
|
8417
|
-
super(), this.inputRef = N(), this.helptextSlot = N(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new
|
|
8417
|
+
super(), this.inputRef = N(), this.helptextSlot = N(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
|
|
8418
8418
|
}
|
|
8419
8419
|
attributeChangedCallback(t, e, s) {
|
|
8420
8420
|
t === "value" && this.value !== e && (this.counterCurrent = s ? s.length : 0, this.valueChanged(s, e)), super.attributeChangedCallback(t, e, s);
|
|
@@ -8459,7 +8459,7 @@ let ai = class extends M {
|
|
|
8459
8459
|
id=${this.id + "-input"}
|
|
8460
8460
|
name=${(this.name || this.id) + "-input"}
|
|
8461
8461
|
placeholder=${S(this.placeholder)}
|
|
8462
|
-
.value=${
|
|
8462
|
+
.value=${rh(this.value)}
|
|
8463
8463
|
minlength=${S(this.minlength)}
|
|
8464
8464
|
maxlength=${S(this.maxlength)}
|
|
8465
8465
|
?readonly=${this.readonly}
|
|
@@ -8500,14 +8500,14 @@ Vi([
|
|
|
8500
8500
|
ai = Vi([
|
|
8501
8501
|
B("pkt-textarea")
|
|
8502
8502
|
], ai);
|
|
8503
|
-
var
|
|
8504
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8503
|
+
var hh = Object.defineProperty, dh = Object.getOwnPropertyDescriptor, oe = (i, t, e, s) => {
|
|
8504
|
+
for (var a = s > 1 ? void 0 : s ? dh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8505
8505
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8506
|
-
return s && a &&
|
|
8506
|
+
return s && a && hh(t, e, a), a;
|
|
8507
8507
|
};
|
|
8508
8508
|
let Xt = class extends M {
|
|
8509
8509
|
constructor() {
|
|
8510
|
-
super(), this.inputRef = N(), this.helptextSlot = N(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new
|
|
8510
|
+
super(), this.inputRef = N(), this.helptextSlot = N(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
|
|
8511
8511
|
}
|
|
8512
8512
|
attributeChangedCallback(t, e, s) {
|
|
8513
8513
|
t === "value" && this.value !== e && (this.counterCurrent = s ? s.length : 0, this.valueChanged(s, e)), super.attributeChangedCallback(t, e, s);
|
|
@@ -8638,14 +8638,14 @@ oe([
|
|
|
8638
8638
|
Xt = oe([
|
|
8639
8639
|
B("pkt-textinput")
|
|
8640
8640
|
], Xt);
|
|
8641
|
-
var
|
|
8642
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8641
|
+
var ch = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, ds = (i, t, e, s) => {
|
|
8642
|
+
for (var a = s > 1 ? void 0 : s ? ph(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8643
8643
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8644
|
-
return s && a &&
|
|
8644
|
+
return s && a && ch(t, e, a), a;
|
|
8645
8645
|
};
|
|
8646
|
-
let
|
|
8646
|
+
let Ii = class extends M {
|
|
8647
8647
|
constructor() {
|
|
8648
|
-
super(), this.inputRef = N(), this.helptextSlot = N(), this._optionsProp = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new
|
|
8648
|
+
super(), this.inputRef = N(), this.helptextSlot = N(), this._optionsProp = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new tn(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
|
|
8649
8649
|
}
|
|
8650
8650
|
// Getter and setter for options to expose the actual parsed options
|
|
8651
8651
|
get options() {
|
|
@@ -8790,24 +8790,24 @@ let Mi = class extends M {
|
|
|
8790
8790
|
};
|
|
8791
8791
|
ds([
|
|
8792
8792
|
o({ type: Array, attribute: "options" })
|
|
8793
|
-
],
|
|
8793
|
+
], Ii.prototype, "_optionsProp", 2);
|
|
8794
8794
|
ds([
|
|
8795
8795
|
o({ type: String })
|
|
8796
|
-
],
|
|
8796
|
+
], Ii.prototype, "value", 2);
|
|
8797
8797
|
ds([
|
|
8798
8798
|
R()
|
|
8799
|
-
],
|
|
8800
|
-
|
|
8799
|
+
], Ii.prototype, "_options", 2);
|
|
8800
|
+
Ii = ds([
|
|
8801
8801
|
B("pkt-select")
|
|
8802
|
-
],
|
|
8803
|
-
var
|
|
8804
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8802
|
+
], Ii);
|
|
8803
|
+
var uh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, ji = (i, t, e, s) => {
|
|
8804
|
+
for (var a = s > 1 ? void 0 : s ? mh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8805
8805
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8806
|
-
return s && a &&
|
|
8806
|
+
return s && a && uh(t, e, a), a;
|
|
8807
8807
|
};
|
|
8808
8808
|
let ni = class extends G {
|
|
8809
8809
|
constructor() {
|
|
8810
|
-
super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = N(), this.namedSlot = N(), this.slotController = new
|
|
8810
|
+
super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = N(), this.namedSlot = N(), this.slotController = new rt(this, this.defaultSlot, this.namedSlot);
|
|
8811
8811
|
}
|
|
8812
8812
|
/**
|
|
8813
8813
|
* Runs on mount, used to set up various values and whatever you need to run
|
|
@@ -8880,7 +8880,7 @@ ji([
|
|
|
8880
8880
|
o({ type: String })
|
|
8881
8881
|
], ni.prototype, "string", 2);
|
|
8882
8882
|
ji([
|
|
8883
|
-
o({ converter:
|
|
8883
|
+
o({ converter: Qa })
|
|
8884
8884
|
], ni.prototype, "strings", 2);
|
|
8885
8885
|
ji([
|
|
8886
8886
|
o({ type: Boolean })
|
|
@@ -8891,13 +8891,13 @@ ji([
|
|
|
8891
8891
|
ni = ji([
|
|
8892
8892
|
B("pkt-component")
|
|
8893
8893
|
], ni);
|
|
8894
|
-
const U =
|
|
8894
|
+
const U = Tt({
|
|
8895
8895
|
tagName: "pkt-icon",
|
|
8896
|
-
elementClass:
|
|
8897
|
-
react:
|
|
8896
|
+
elementClass: Re,
|
|
8897
|
+
react: lt,
|
|
8898
8898
|
displayName: "PktIcon",
|
|
8899
8899
|
events: {}
|
|
8900
|
-
}),
|
|
8900
|
+
}), fh = K(
|
|
8901
8901
|
({
|
|
8902
8902
|
defaultOpen: i = !1,
|
|
8903
8903
|
id: t,
|
|
@@ -8911,7 +8911,7 @@ const U = yt({
|
|
|
8911
8911
|
onClick: p,
|
|
8912
8912
|
onToggle: g
|
|
8913
8913
|
}, f) => {
|
|
8914
|
-
const [k, b] =
|
|
8914
|
+
const [k, b] = oi(i), { name: y } = vn(), w = l || y, C = n !== void 0 ? n : k;
|
|
8915
8915
|
as(() => {
|
|
8916
8916
|
n === void 0 && b(i);
|
|
8917
8917
|
}, [i, n]);
|
|
@@ -8949,8 +8949,8 @@ const U = yt({
|
|
|
8949
8949
|
);
|
|
8950
8950
|
}
|
|
8951
8951
|
);
|
|
8952
|
-
|
|
8953
|
-
function
|
|
8952
|
+
fh.displayName = "PktAccordionItem";
|
|
8953
|
+
function gh(i) {
|
|
8954
8954
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
8955
8955
|
}
|
|
8956
8956
|
var As = { exports: {} };
|
|
@@ -8960,7 +8960,7 @@ var As = { exports: {} };
|
|
|
8960
8960
|
http://jedwatson.github.io/classnames
|
|
8961
8961
|
*/
|
|
8962
8962
|
var Ta;
|
|
8963
|
-
function
|
|
8963
|
+
function vh() {
|
|
8964
8964
|
return Ta || (Ta = 1, (function(i) {
|
|
8965
8965
|
(function() {
|
|
8966
8966
|
var t = {}.hasOwnProperty;
|
|
@@ -8992,8 +8992,8 @@ function gh() {
|
|
|
8992
8992
|
})();
|
|
8993
8993
|
})(As)), As.exports;
|
|
8994
8994
|
}
|
|
8995
|
-
var
|
|
8996
|
-
const
|
|
8995
|
+
var bh = vh();
|
|
8996
|
+
const Ct = /* @__PURE__ */ gh(bh), nn = ({
|
|
8997
8997
|
children: i,
|
|
8998
8998
|
closeAlert: t,
|
|
8999
8999
|
compact: e,
|
|
@@ -9005,7 +9005,7 @@ const Lt = /* @__PURE__ */ fh(vh), an = ({
|
|
|
9005
9005
|
skin: d = "info",
|
|
9006
9006
|
...p
|
|
9007
9007
|
}) => {
|
|
9008
|
-
const [g, f] =
|
|
9008
|
+
const [g, f] = oi(!1), k = {
|
|
9009
9009
|
"pkt-alert": !0,
|
|
9010
9010
|
"pkt-alert--compact": e,
|
|
9011
9011
|
[`pkt-alert--${d}`]: d,
|
|
@@ -9014,10 +9014,10 @@ const Lt = /* @__PURE__ */ fh(vh), an = ({
|
|
|
9014
9014
|
"pkt-alert__grid": !0,
|
|
9015
9015
|
"pkt-alert__noTitle": !s,
|
|
9016
9016
|
"pkt-alert__noDate": !a
|
|
9017
|
-
}, y =
|
|
9017
|
+
}, y = Ea(() => {
|
|
9018
9018
|
f(!0), p.onClose && p.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
|
|
9019
9019
|
}, [p.onClose, f]);
|
|
9020
|
-
return /* @__PURE__ */ h("div", { ...p, "aria-live": n || r, role: l, className:
|
|
9020
|
+
return /* @__PURE__ */ h("div", { ...p, "aria-live": n || r, role: l, className: Ct(k), children: /* @__PURE__ */ x("div", { className: Ct(b), children: [
|
|
9021
9021
|
/* @__PURE__ */ h(
|
|
9022
9022
|
U,
|
|
9023
9023
|
{
|
|
@@ -9048,15 +9048,15 @@ const Lt = /* @__PURE__ */ fh(vh), an = ({
|
|
|
9048
9048
|
] })
|
|
9049
9049
|
] }) });
|
|
9050
9050
|
};
|
|
9051
|
-
|
|
9052
|
-
const
|
|
9051
|
+
nn.displayName = "PktAlert";
|
|
9052
|
+
const yh = Tt({
|
|
9053
9053
|
tagName: "pkt-backlink",
|
|
9054
9054
|
elementClass: ii,
|
|
9055
|
-
react:
|
|
9055
|
+
react: lt,
|
|
9056
9056
|
displayName: "PktBackLink"
|
|
9057
9057
|
});
|
|
9058
|
-
|
|
9059
|
-
const Kd =
|
|
9058
|
+
yh.displayName = "PktBackLink";
|
|
9059
|
+
const Kd = K(
|
|
9060
9060
|
({ breadcrumbs: i, navigationType: t, className: e, ...s }, a) => {
|
|
9061
9061
|
const n = i, r = n[n.length - 2], l = [e, "pkt-breadcrumbs"].filter(Boolean).join(" ");
|
|
9062
9062
|
return /* @__PURE__ */ x("nav", { ref: a, "aria-label": "brødsmulemeny", className: l, children: [
|
|
@@ -9093,8 +9093,8 @@ const Kd = W(
|
|
|
9093
9093
|
] });
|
|
9094
9094
|
}
|
|
9095
9095
|
);
|
|
9096
|
-
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.
|
|
9097
|
-
const ri =
|
|
9096
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.12/animations/";
|
|
9097
|
+
const ri = K(
|
|
9098
9098
|
({
|
|
9099
9099
|
children: i,
|
|
9100
9100
|
className: t,
|
|
@@ -9142,17 +9142,17 @@ const ri = W(
|
|
|
9142
9142
|
}
|
|
9143
9143
|
);
|
|
9144
9144
|
ri.displayName = "PktButton";
|
|
9145
|
-
const
|
|
9145
|
+
const kh = Tt({
|
|
9146
9146
|
tagName: "pkt-card",
|
|
9147
9147
|
elementClass: ht,
|
|
9148
|
-
react:
|
|
9148
|
+
react: lt,
|
|
9149
9149
|
displayName: "PktCard",
|
|
9150
9150
|
events: {}
|
|
9151
|
-
}),
|
|
9152
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9151
|
+
}), $h = K(
|
|
9152
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(kh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9153
9153
|
);
|
|
9154
|
-
|
|
9155
|
-
const
|
|
9154
|
+
$h.displayName = "PktCard";
|
|
9155
|
+
const _h = K(
|
|
9156
9156
|
({
|
|
9157
9157
|
id: i,
|
|
9158
9158
|
hasTile: t = !1,
|
|
@@ -9182,7 +9182,7 @@ const $h = W(
|
|
|
9182
9182
|
"pkt-input-check__input",
|
|
9183
9183
|
t ? "pkt-input-check__input--tile" : "",
|
|
9184
9184
|
e && t ? "pkt-input-check__input--tile-disabled" : ""
|
|
9185
|
-
].filter(Boolean).join(" "), Z = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "),
|
|
9185
|
+
].filter(Boolean).join(" "), Z = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), At = () => /* @__PURE__ */ x(Gt, { children: [
|
|
9186
9186
|
C && /* @__PURE__ */ h("span", { className: Z + " pkt-tag--gray", children: C }),
|
|
9187
9187
|
k && /* @__PURE__ */ h("span", { className: Z + " pkt-tag--blue-light", children: b }),
|
|
9188
9188
|
y && /* @__PURE__ */ h("span", { className: Z + " pkt-tag--beige", children: w })
|
|
@@ -9191,7 +9191,7 @@ const $h = W(
|
|
|
9191
9191
|
p === "left" && /* @__PURE__ */ x("label", { className: A, htmlFor: i, children: [
|
|
9192
9192
|
s,
|
|
9193
9193
|
" ",
|
|
9194
|
-
|
|
9194
|
+
At(),
|
|
9195
9195
|
a && /* @__PURE__ */ h("div", { className: "pkt-input-check__input-helptext", children: a })
|
|
9196
9196
|
] }),
|
|
9197
9197
|
/* @__PURE__ */ h(
|
|
@@ -9210,17 +9210,17 @@ const $h = W(
|
|
|
9210
9210
|
p === "right" && /* @__PURE__ */ x("label", { className: A, htmlFor: i, children: [
|
|
9211
9211
|
s,
|
|
9212
9212
|
" ",
|
|
9213
|
-
|
|
9213
|
+
At(),
|
|
9214
9214
|
a && /* @__PURE__ */ h("div", { className: "pkt-input-check__input-helptext", children: a })
|
|
9215
9215
|
] })
|
|
9216
9216
|
] }) });
|
|
9217
9217
|
}
|
|
9218
9218
|
);
|
|
9219
|
-
|
|
9220
|
-
const
|
|
9219
|
+
_h.displayName = "PktCheckbox";
|
|
9220
|
+
const wh = Tt({
|
|
9221
9221
|
tagName: "pkt-combobox",
|
|
9222
9222
|
elementClass: J,
|
|
9223
|
-
react:
|
|
9223
|
+
react: lt,
|
|
9224
9224
|
displayName: "PktCombobox",
|
|
9225
9225
|
events: {
|
|
9226
9226
|
onClick: "click",
|
|
@@ -9231,25 +9231,25 @@ const _h = yt({
|
|
|
9231
9231
|
onValueChange: "value-change",
|
|
9232
9232
|
onToggleHelpText: "toggleHelpText"
|
|
9233
9233
|
}
|
|
9234
|
-
}),
|
|
9234
|
+
}), xh = K(({ children: i, helptext: t, ...e }, s) => /* @__PURE__ */ x(wh, { ...e, ref: s, children: [
|
|
9235
9235
|
t && /* @__PURE__ */ h("div", { slot: "helptext", className: "pkt-contents", children: t }),
|
|
9236
9236
|
i
|
|
9237
9237
|
] }));
|
|
9238
|
-
|
|
9239
|
-
const js =
|
|
9238
|
+
xh.displayName = "PktCombobox";
|
|
9239
|
+
const js = Tt({
|
|
9240
9240
|
tagName: "pkt-consent",
|
|
9241
9241
|
elementClass: zt,
|
|
9242
|
-
react:
|
|
9242
|
+
react: lt,
|
|
9243
9243
|
displayName: "PktConsent",
|
|
9244
9244
|
events: {
|
|
9245
9245
|
onToggleConsent: "toggle-consent"
|
|
9246
9246
|
}
|
|
9247
9247
|
});
|
|
9248
9248
|
js.displayName = "PktConsent";
|
|
9249
|
-
const
|
|
9249
|
+
const Sh = Tt({
|
|
9250
9250
|
tagName: "pkt-datepicker",
|
|
9251
9251
|
elementClass: tt,
|
|
9252
|
-
react:
|
|
9252
|
+
react: lt,
|
|
9253
9253
|
displayName: "PktDatepicker",
|
|
9254
9254
|
events: {
|
|
9255
9255
|
onChange: "change",
|
|
@@ -9258,10 +9258,10 @@ const xh = yt({
|
|
|
9258
9258
|
onValueChange: "value-change",
|
|
9259
9259
|
onToggleHelpText: "toggleHelpText"
|
|
9260
9260
|
}
|
|
9261
|
-
}),
|
|
9262
|
-
({ helptext: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9261
|
+
}), Ch = K(
|
|
9262
|
+
({ helptext: i, ...t }, e) => /* @__PURE__ */ h(Sh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", slot: "helptext", children: i }) })
|
|
9263
9263
|
);
|
|
9264
|
-
|
|
9264
|
+
Ch.displayName = "PktDatepicker";
|
|
9265
9265
|
const Gd = ({
|
|
9266
9266
|
columnOne: i,
|
|
9267
9267
|
columnTwo: t,
|
|
@@ -9464,7 +9464,7 @@ const Gd = ({
|
|
|
9464
9464
|
}
|
|
9465
9465
|
) })
|
|
9466
9466
|
] }) }) });
|
|
9467
|
-
}, Zd =
|
|
9467
|
+
}, Zd = K(
|
|
9468
9468
|
({
|
|
9469
9469
|
className: i,
|
|
9470
9470
|
logoLink: t = "https://www.oslo.kommune.no/",
|
|
@@ -9485,24 +9485,24 @@ const Gd = ({
|
|
|
9485
9485
|
children: C,
|
|
9486
9486
|
...P
|
|
9487
9487
|
}, T) => {
|
|
9488
|
-
const j =
|
|
9488
|
+
const j = lt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
|
|
9489
9489
|
year: "numeric",
|
|
9490
9490
|
month: "long",
|
|
9491
9491
|
day: "numeric"
|
|
9492
|
-
}) : "", [n]), [A, z] =
|
|
9493
|
-
|
|
9494
|
-
document && (document.removeEventListener("mouseup",
|
|
9492
|
+
}) : "", [n]), [A, z] = lt.useState(!1), [Z, At] = lt.useState(0), [Et, Q] = lt.useState(!1), st = lt.useRef(null);
|
|
9493
|
+
lt.useEffect(() => (document && (document.addEventListener("mouseup", Pt), window.addEventListener("scroll", at)), () => {
|
|
9494
|
+
document && (document.removeEventListener("mouseup", Pt), window.removeEventListener("scroll", at));
|
|
9495
9495
|
}));
|
|
9496
|
-
const
|
|
9497
|
-
Q(!
|
|
9498
|
-
},
|
|
9496
|
+
const Ot = () => {
|
|
9497
|
+
Q(!Et);
|
|
9498
|
+
}, Pt = (D) => {
|
|
9499
9499
|
st.current && !st.current.contains(D.target) && Q(!1);
|
|
9500
9500
|
}, at = () => {
|
|
9501
9501
|
if (a) {
|
|
9502
9502
|
const D = window.pageYOffset || document.documentElement.scrollTop;
|
|
9503
9503
|
if (D < 0 || Math.abs(D - Z) < 60)
|
|
9504
9504
|
return;
|
|
9505
|
-
z(D > Z),
|
|
9505
|
+
z(D > Z), At(D);
|
|
9506
9506
|
}
|
|
9507
9507
|
};
|
|
9508
9508
|
return /* @__PURE__ */ x(
|
|
@@ -9512,7 +9512,7 @@ const Gd = ({
|
|
|
9512
9512
|
id: "pkt-header",
|
|
9513
9513
|
"data-testid": "pkt-header",
|
|
9514
9514
|
"aria-label": "Topp",
|
|
9515
|
-
className:
|
|
9515
|
+
className: Ct(i, "pkt-header", {
|
|
9516
9516
|
"pkt-header--fixed": s,
|
|
9517
9517
|
"pkt-header--scroll-to-hide": a,
|
|
9518
9518
|
"pkt-header--hidden": A
|
|
@@ -9526,7 +9526,7 @@ const Gd = ({
|
|
|
9526
9526
|
name: "oslologo",
|
|
9527
9527
|
className: "pkt-header__logo-svg",
|
|
9528
9528
|
"aria-hidden": "true",
|
|
9529
|
-
path: "https://punkt-cdn.oslo.kommune.no/13.
|
|
9529
|
+
path: "https://punkt-cdn.oslo.kommune.no/13.12/logos/"
|
|
9530
9530
|
}
|
|
9531
9531
|
) }) : /* @__PURE__ */ h(
|
|
9532
9532
|
"button",
|
|
@@ -9540,7 +9540,7 @@ const Gd = ({
|
|
|
9540
9540
|
name: "oslologo",
|
|
9541
9541
|
className: "pkt-header__logo-svg",
|
|
9542
9542
|
"aria-hidden": "true",
|
|
9543
|
-
path: "https://punkt-cdn.oslo.kommune.no/13.
|
|
9543
|
+
path: "https://punkt-cdn.oslo.kommune.no/13.12/logos/"
|
|
9544
9544
|
}
|
|
9545
9545
|
)
|
|
9546
9546
|
}
|
|
@@ -9563,7 +9563,7 @@ const Gd = ({
|
|
|
9563
9563
|
"li",
|
|
9564
9564
|
{
|
|
9565
9565
|
"data-testid": "usermenu",
|
|
9566
|
-
className: `pkt-header--has-dropdown ${
|
|
9566
|
+
className: `pkt-header--has-dropdown ${Et && !A ? "pkt-header--open-dropdown" : ""}`,
|
|
9567
9567
|
ref: st,
|
|
9568
9568
|
children: [
|
|
9569
9569
|
/* @__PURE__ */ x(
|
|
@@ -9573,8 +9573,8 @@ const Gd = ({
|
|
|
9573
9573
|
type: "button",
|
|
9574
9574
|
role: "button",
|
|
9575
9575
|
"aria-controls": "pktUserDropdown",
|
|
9576
|
-
"aria-expanded":
|
|
9577
|
-
onClick:
|
|
9576
|
+
"aria-expanded": Et,
|
|
9577
|
+
onClick: Ot,
|
|
9578
9578
|
children: [
|
|
9579
9579
|
/* @__PURE__ */ h(U, { name: "user", className: "pkt-btn__icon" }),
|
|
9580
9580
|
/* @__PURE__ */ h("span", { className: "pkt-header__user-fullname", translate: "no", children: (l == null ? void 0 : l.name) || (n == null ? void 0 : n.name) }),
|
|
@@ -9593,13 +9593,13 @@ const Gd = ({
|
|
|
9593
9593
|
/* @__PURE__ */ h("time", { children: j })
|
|
9594
9594
|
] })
|
|
9595
9595
|
] }),
|
|
9596
|
-
r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((D,
|
|
9596
|
+
r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((D, kt) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ x("a", { href: D.target, className: "pkt-link", children: [
|
|
9597
9597
|
D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
|
|
9598
9598
|
D.title
|
|
9599
9599
|
] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: [
|
|
9600
9600
|
D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
|
|
9601
9601
|
D.title
|
|
9602
|
-
] }) }, `userMenu-${
|
|
9602
|
+
] }) }, `userMenu-${kt}`)) }) }),
|
|
9603
9603
|
(l || g) && /* @__PURE__ */ x("li", { children: [
|
|
9604
9604
|
l && /* @__PURE__ */ x(Gt, { children: [
|
|
9605
9605
|
/* @__PURE__ */ h("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
@@ -9615,19 +9615,19 @@ const Gd = ({
|
|
|
9615
9615
|
] }) }) })
|
|
9616
9616
|
] }),
|
|
9617
9617
|
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: (d || !k) && /* @__PURE__ */ x(Gt, { children: [
|
|
9618
|
-
d == null ? void 0 : d.map((D,
|
|
9618
|
+
d == null ? void 0 : d.map((D, kt) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ x("a", { href: D.target, className: "pkt-link", children: [
|
|
9619
9619
|
D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
|
|
9620
9620
|
D.title
|
|
9621
9621
|
] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: [
|
|
9622
9622
|
D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
|
|
9623
9623
|
D.title
|
|
9624
|
-
] }) }, `userOptions-${
|
|
9624
|
+
] }) }, `userOptions-${kt}`)),
|
|
9625
9625
|
!k && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: y, children: [
|
|
9626
9626
|
/* @__PURE__ */ h(U, { name: "exit", className: "pkt-link__icon" }),
|
|
9627
9627
|
"Logg ut"
|
|
9628
9628
|
] }) })
|
|
9629
9629
|
] }) }) }),
|
|
9630
|
-
p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((D,
|
|
9630
|
+
p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((D, kt) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ h("a", { href: D.target, className: "pkt-link", children: D.title }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: D.title }) }, `userMenuFooter-${kt}`)) }) })
|
|
9631
9631
|
] })
|
|
9632
9632
|
]
|
|
9633
9633
|
}
|
|
@@ -9650,34 +9650,34 @@ const Gd = ({
|
|
|
9650
9650
|
}
|
|
9651
9651
|
);
|
|
9652
9652
|
}
|
|
9653
|
-
),
|
|
9653
|
+
), Th = Tt({
|
|
9654
9654
|
tagName: "pkt-heading",
|
|
9655
|
-
elementClass:
|
|
9656
|
-
react:
|
|
9655
|
+
elementClass: Le,
|
|
9656
|
+
react: lt,
|
|
9657
9657
|
displayName: "PktHeading"
|
|
9658
|
-
}),
|
|
9659
|
-
|
|
9660
|
-
const
|
|
9658
|
+
}), Nh = K(({ children: i, ...t }, e) => /* @__PURE__ */ h(Th, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
|
|
9659
|
+
Nh.displayName = "PktHeading";
|
|
9660
|
+
const Ah = Tt({
|
|
9661
9661
|
tagName: "pkt-helptext",
|
|
9662
9662
|
elementClass: pe,
|
|
9663
|
-
react:
|
|
9663
|
+
react: lt,
|
|
9664
9664
|
displayName: "PktHelptext",
|
|
9665
9665
|
events: {
|
|
9666
9666
|
onToggleHelpText: "toggleHelpText"
|
|
9667
9667
|
}
|
|
9668
|
-
}),
|
|
9669
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9668
|
+
}), Eh = K(
|
|
9669
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Ah, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9670
9670
|
);
|
|
9671
|
-
|
|
9672
|
-
const
|
|
9671
|
+
Eh.displayName = "PktHelptext";
|
|
9672
|
+
const Oh = K(
|
|
9673
9673
|
({ label: i, id: t, children: e, ...s }, a) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
|
|
9674
9674
|
/* @__PURE__ */ h("label", { htmlFor: t, className: "pkt-form-label", children: i }),
|
|
9675
9675
|
/* @__PURE__ */ h("input", { className: "pkt-form-input", id: t, ...s, ref: a }),
|
|
9676
9676
|
e
|
|
9677
9677
|
] })
|
|
9678
9678
|
);
|
|
9679
|
-
|
|
9680
|
-
const cs =
|
|
9679
|
+
Oh.displayName = "PktInput";
|
|
9680
|
+
const cs = K(
|
|
9681
9681
|
({
|
|
9682
9682
|
forId: i,
|
|
9683
9683
|
label: t,
|
|
@@ -9702,28 +9702,28 @@ const cs = W(
|
|
|
9702
9702
|
className: A = "",
|
|
9703
9703
|
hasFieldset: z = !1,
|
|
9704
9704
|
role: Z = "group",
|
|
9705
|
-
counterPosition:
|
|
9706
|
-
},
|
|
9707
|
-
const [Q, st] =
|
|
9705
|
+
counterPosition: At = "bottom"
|
|
9706
|
+
}, Et) => {
|
|
9707
|
+
const [Q, st] = oi(!1), Ot = P || (e ? `${i}-helptext` : void 0), Pt = !!n, at = Pt && At === "top", D = Pt && At === "bottom", kt = () => st((ot) => !ot), Qt = [
|
|
9708
9708
|
"pkt-inputwrapper",
|
|
9709
9709
|
A,
|
|
9710
9710
|
b ? "pkt-inputwrapper--error" : "",
|
|
9711
9711
|
w ? "pkt-inputwrapper--disabled" : "",
|
|
9712
9712
|
C ? "pkt-inputwrapper--inline" : ""
|
|
9713
|
-
].filter(Boolean).join(" "), le = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () =>
|
|
9713
|
+
].filter(Boolean).join(" "), le = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Pt ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
9714
9714
|
r,
|
|
9715
9715
|
l ? `/${l}` : ""
|
|
9716
|
-
] }) : null,
|
|
9716
|
+
] }) : null, Se = () => /* @__PURE__ */ x(Gt, { children: [
|
|
9717
9717
|
k && /* @__PURE__ */ h("span", { className: le + " pkt-tag--gray", children: k }),
|
|
9718
9718
|
d && /* @__PURE__ */ h("span", { className: le + " pkt-tag--blue-light", children: p }),
|
|
9719
9719
|
g && /* @__PURE__ */ h("span", { className: le + " pkt-tag--beige", children: f })
|
|
9720
9720
|
] }), ze = () => {
|
|
9721
|
-
const
|
|
9721
|
+
const ot = /* @__PURE__ */ x(Gt, { children: [
|
|
9722
9722
|
t,
|
|
9723
9723
|
" ",
|
|
9724
|
-
|
|
9724
|
+
Se()
|
|
9725
9725
|
] });
|
|
9726
|
-
return T ? z ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children:
|
|
9726
|
+
return T ? z ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Ot, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Ot, id: `${i}-label`, children: t });
|
|
9727
9727
|
}, he = () => !e && !s ? null : /* @__PURE__ */ x(Gt, { children: [
|
|
9728
9728
|
e && T && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
|
|
9729
9729
|
s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
|
|
@@ -9735,7 +9735,7 @@ const cs = W(
|
|
|
9735
9735
|
variant: "icon-right",
|
|
9736
9736
|
iconName: Q ? "chevron-thin-up" : "chevron-thin-down",
|
|
9737
9737
|
className: "pkt-link pkt-link--icon-right",
|
|
9738
|
-
onClick:
|
|
9738
|
+
onClick: kt,
|
|
9739
9739
|
children: /* @__PURE__ */ h(
|
|
9740
9740
|
"span",
|
|
9741
9741
|
{
|
|
@@ -9760,74 +9760,96 @@ const cs = W(
|
|
|
9760
9760
|
at && /* @__PURE__ */ h(te, {}),
|
|
9761
9761
|
j,
|
|
9762
9762
|
D && /* @__PURE__ */ h(te, {}),
|
|
9763
|
-
b && y && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ h(
|
|
9763
|
+
b && y && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ h(nn, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: y }) })
|
|
9764
9764
|
] });
|
|
9765
|
-
return /* @__PURE__ */ h("div", { className: Qt, ref:
|
|
9765
|
+
return /* @__PURE__ */ h("div", { className: Qt, ref: Et, role: Z, children: z ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Ot, children: Ht }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ht }) });
|
|
9766
9766
|
}
|
|
9767
9767
|
);
|
|
9768
9768
|
cs.displayName = "PktInputWrapper";
|
|
9769
|
-
const
|
|
9769
|
+
const Ph = Tt({
|
|
9770
9770
|
tagName: "pkt-link",
|
|
9771
9771
|
elementClass: xe,
|
|
9772
|
-
react:
|
|
9772
|
+
react: lt,
|
|
9773
9773
|
displayName: "PktLink"
|
|
9774
|
-
}),
|
|
9775
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9774
|
+
}), Mh = K(
|
|
9775
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Ph, { ...t, ref: e, children: /* @__PURE__ */ h("span", { className: "pkt-contents", children: i }) })
|
|
9776
9776
|
);
|
|
9777
|
-
|
|
9778
|
-
const
|
|
9777
|
+
Mh.displayName = "PktLink";
|
|
9778
|
+
const Ih = Tt({
|
|
9779
9779
|
tagName: "pkt-linkcard",
|
|
9780
9780
|
elementClass: ue,
|
|
9781
|
-
react:
|
|
9781
|
+
react: lt,
|
|
9782
9782
|
displayName: "PktLinkCard",
|
|
9783
9783
|
events: {}
|
|
9784
|
-
}),
|
|
9785
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9784
|
+
}), Dh = K(
|
|
9785
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Ih, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9786
9786
|
);
|
|
9787
|
-
|
|
9788
|
-
const
|
|
9787
|
+
Dh.displayName = "PktLinkCard";
|
|
9788
|
+
const Rh = Tt({
|
|
9789
9789
|
tagName: "pkt-loader",
|
|
9790
9790
|
elementClass: Zt,
|
|
9791
|
-
react:
|
|
9791
|
+
react: lt,
|
|
9792
9792
|
displayName: "PktLoader",
|
|
9793
9793
|
events: {}
|
|
9794
|
-
}),
|
|
9795
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9796
|
-
);
|
|
9797
|
-
Rh.displayName = "PktLoader";
|
|
9798
|
-
const Lh = yt({
|
|
9799
|
-
tagName: "pkt-messagebox",
|
|
9800
|
-
elementClass: Se,
|
|
9801
|
-
react: rt,
|
|
9802
|
-
displayName: "PktMessagebox",
|
|
9803
|
-
events: {
|
|
9804
|
-
onClose: "close"
|
|
9805
|
-
}
|
|
9806
|
-
}), Bh = W(
|
|
9807
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(Lh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9794
|
+
}), Lh = K(
|
|
9795
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Rh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9808
9796
|
);
|
|
9797
|
+
Lh.displayName = "PktLoader";
|
|
9798
|
+
const Bh = ({
|
|
9799
|
+
children: i,
|
|
9800
|
+
className: t,
|
|
9801
|
+
skin: e,
|
|
9802
|
+
title: s,
|
|
9803
|
+
compact: a,
|
|
9804
|
+
closable: n,
|
|
9805
|
+
onClose: r,
|
|
9806
|
+
...l
|
|
9807
|
+
}) => {
|
|
9808
|
+
const [d, p] = oi(!1), g = {
|
|
9809
|
+
"pkt-messagebox": !0,
|
|
9810
|
+
"pkt-messagebox--compact": a,
|
|
9811
|
+
[`pkt-messagebox--${e}`]: e,
|
|
9812
|
+
"pkt-messagebox--closable": n,
|
|
9813
|
+
"pkt-hide": d
|
|
9814
|
+
}, f = pn(), k = Ea(() => {
|
|
9815
|
+
p(!0), r && r();
|
|
9816
|
+
}, [p, r]);
|
|
9817
|
+
return /* @__PURE__ */ x("div", { ...l, className: Ct(g, t), ref: f, children: [
|
|
9818
|
+
n && /* @__PURE__ */ h("div", { className: '"pkt-messagebox__close"', children: /* @__PURE__ */ h(
|
|
9819
|
+
"button",
|
|
9820
|
+
{
|
|
9821
|
+
onClick: k,
|
|
9822
|
+
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
9823
|
+
"aria-label": "Lukk",
|
|
9824
|
+
children: /* @__PURE__ */ h(U, { name: "close", className: "pkt-link__icon" })
|
|
9825
|
+
}
|
|
9826
|
+
) }),
|
|
9827
|
+
/* @__PURE__ */ h("div", { className: "pkt-messagebox__title", children: s }),
|
|
9828
|
+
/* @__PURE__ */ h("div", { className: "pkt-messagebox__text", children: i })
|
|
9829
|
+
] });
|
|
9830
|
+
};
|
|
9809
9831
|
Bh.displayName = "PktMessagebox";
|
|
9810
|
-
const Vh =
|
|
9832
|
+
const Vh = Tt({
|
|
9811
9833
|
tagName: "pkt-modal",
|
|
9812
|
-
elementClass:
|
|
9813
|
-
react:
|
|
9834
|
+
elementClass: Lt,
|
|
9835
|
+
react: lt,
|
|
9814
9836
|
displayName: "PktModal",
|
|
9815
9837
|
events: {}
|
|
9816
|
-
}), jh =
|
|
9838
|
+
}), jh = K(
|
|
9817
9839
|
({ children: i, ...t }, e) => /* @__PURE__ */ h(Vh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9818
9840
|
);
|
|
9819
9841
|
jh.displayName = "PktModal";
|
|
9820
|
-
const Fh =
|
|
9842
|
+
const Fh = Tt({
|
|
9821
9843
|
tagName: "pkt-progressbar",
|
|
9822
9844
|
elementClass: et,
|
|
9823
|
-
react:
|
|
9845
|
+
react: lt,
|
|
9824
9846
|
displayName: "PktProgressbar",
|
|
9825
9847
|
events: {}
|
|
9826
|
-
}), Uh =
|
|
9848
|
+
}), Uh = K(
|
|
9827
9849
|
({ children: i, ...t }, e) => /* @__PURE__ */ h(Fh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9828
9850
|
);
|
|
9829
9851
|
Uh.displayName = "PktProgressbar";
|
|
9830
|
-
const Hh =
|
|
9852
|
+
const Hh = K(
|
|
9831
9853
|
({
|
|
9832
9854
|
id: i,
|
|
9833
9855
|
name: t,
|
|
@@ -9882,7 +9904,7 @@ const Hh = W(
|
|
|
9882
9904
|
}
|
|
9883
9905
|
);
|
|
9884
9906
|
Hh.displayName = "PktRadioButton";
|
|
9885
|
-
const Xd =
|
|
9907
|
+
const Xd = K(
|
|
9886
9908
|
({
|
|
9887
9909
|
appearance: i = "local",
|
|
9888
9910
|
disabled: t = !1,
|
|
@@ -9948,7 +9970,7 @@ const Xd = W(
|
|
|
9948
9970
|
}
|
|
9949
9971
|
)
|
|
9950
9972
|
] }),
|
|
9951
|
-
l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((A, z) => /* @__PURE__ */ h("li", { children:
|
|
9973
|
+
l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((A, z) => /* @__PURE__ */ h("li", { children: un(
|
|
9952
9974
|
A.href ? "a" : A.onClick ? "button" : "div",
|
|
9953
9975
|
{
|
|
9954
9976
|
href: A.href,
|
|
@@ -9965,7 +9987,7 @@ const Xd = W(
|
|
|
9965
9987
|
] })
|
|
9966
9988
|
);
|
|
9967
9989
|
}
|
|
9968
|
-
), Jd =
|
|
9990
|
+
), Jd = K(
|
|
9969
9991
|
({
|
|
9970
9992
|
ariaDescribedby: i,
|
|
9971
9993
|
ariaLabelledby: t,
|
|
@@ -10033,16 +10055,16 @@ const Xd = W(
|
|
|
10033
10055
|
] }), Wh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
10034
10056
|
/* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
|
|
10035
10057
|
/* @__PURE__ */ h("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
|
|
10036
|
-
] }), Qd = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className:
|
|
10058
|
+
] }), Qd = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: Ct("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
|
|
10037
10059
|
/* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
|
|
10038
10060
|
/* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
|
|
10039
|
-
/* @__PURE__ */ h("span", { className:
|
|
10061
|
+
/* @__PURE__ */ h("span", { className: Ct("pkt-step__indicator"), children: e === "current" ? zh : e === "completed" ? Wh : qh }),
|
|
10040
10062
|
/* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
|
|
10041
10063
|
/* @__PURE__ */ x("div", { className: "pkt-step__wrapper", children: [
|
|
10042
10064
|
/* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
|
|
10043
10065
|
/* @__PURE__ */ h("div", { className: "pkt-step__content", children: i })
|
|
10044
10066
|
] })
|
|
10045
|
-
] }), tc =
|
|
10067
|
+
] }), tc = K(
|
|
10046
10068
|
({
|
|
10047
10069
|
activeStep: i,
|
|
10048
10070
|
className: t,
|
|
@@ -10052,12 +10074,12 @@ const Xd = W(
|
|
|
10052
10074
|
orientation: n = "vertical",
|
|
10053
10075
|
...r
|
|
10054
10076
|
}, l) => {
|
|
10055
|
-
const d =
|
|
10077
|
+
const d = Ct(
|
|
10056
10078
|
t,
|
|
10057
10079
|
"pkt-stepper",
|
|
10058
10080
|
n === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
|
|
10059
|
-
), p = Es.map(e, (g, f) =>
|
|
10060
|
-
className:
|
|
10081
|
+
), p = Es.map(e, (g, f) => mn(g) ? fn(g, {
|
|
10082
|
+
className: Ct(g.props.className, {
|
|
10061
10083
|
"pkt-step--hideStep": s && f !== i,
|
|
10062
10084
|
"pkt-step--hideContent": a && f !== i
|
|
10063
10085
|
})
|
|
@@ -10075,7 +10097,7 @@ const Xd = W(
|
|
|
10075
10097
|
"table",
|
|
10076
10098
|
{
|
|
10077
10099
|
"data-testid": "pkt-table",
|
|
10078
|
-
className:
|
|
10100
|
+
className: Ct(i, "pkt-table", {
|
|
10079
10101
|
"pkt-table--responsive": s,
|
|
10080
10102
|
"pkt-table--compact": t,
|
|
10081
10103
|
"pkt-table--basic": e === "basic",
|
|
@@ -10085,29 +10107,29 @@ const Xd = W(
|
|
|
10085
10107
|
...n,
|
|
10086
10108
|
children: a
|
|
10087
10109
|
}
|
|
10088
|
-
), ic = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className:
|
|
10110
|
+
), ic = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: Ct(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), sc = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
|
|
10089
10111
|
"td",
|
|
10090
10112
|
{
|
|
10091
|
-
className:
|
|
10113
|
+
className: Ct(t, "pkt-table__data-cell", {}),
|
|
10092
10114
|
"data-label": e,
|
|
10093
10115
|
role: "cell",
|
|
10094
10116
|
"data-testid": "pkt-table__data-cell",
|
|
10095
10117
|
...s,
|
|
10096
10118
|
children: i
|
|
10097
10119
|
}
|
|
10098
|
-
), ac = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className:
|
|
10120
|
+
), ac = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: Ct(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: Ct(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: Ct(i, "pkt-table__row", {}), role: "row", ...e, children: t }), Kh = Tt({
|
|
10099
10121
|
tagName: "pkt-tag",
|
|
10100
10122
|
elementClass: qt,
|
|
10101
|
-
react:
|
|
10123
|
+
react: dn,
|
|
10102
10124
|
displayName: "PktTag",
|
|
10103
10125
|
events: {
|
|
10104
10126
|
onClose: "close"
|
|
10105
10127
|
}
|
|
10106
|
-
}),
|
|
10128
|
+
}), rn = K(
|
|
10107
10129
|
({ children: i, ...t }, e) => /* @__PURE__ */ h(Kh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
10108
10130
|
);
|
|
10109
|
-
|
|
10110
|
-
const
|
|
10131
|
+
rn.displayName = "PktTag";
|
|
10132
|
+
const on = K(
|
|
10111
10133
|
({ children: i, active: t, href: e, onClick: s, icon: a, controls: n, tag: r, tagSkin: l, index: d = 0 }, p) => {
|
|
10112
10134
|
const { arrowNav: g, registerTabRef: f, handleKeyPress: k, selectTab: b } = Gh(), w = {
|
|
10113
10135
|
"aria-selected": g ? !!t : void 0,
|
|
@@ -10124,20 +10146,20 @@ const rn = W(
|
|
|
10124
10146
|
}, C = /* @__PURE__ */ x(Gt, { children: [
|
|
10125
10147
|
a && /* @__PURE__ */ h(U, { name: a, className: "pkt-icon--small" }),
|
|
10126
10148
|
i,
|
|
10127
|
-
r && /* @__PURE__ */ h(
|
|
10149
|
+
r && /* @__PURE__ */ h(rn, { skin: l, size: "small", children: r })
|
|
10128
10150
|
] });
|
|
10129
10151
|
return e ? /* @__PURE__ */ h("a", { ...w, href: e, className: `pkt-tabs__link ${t ? "active" : ""}`, children: C }) : /* @__PURE__ */ h("button", { ...w, type: "button", className: `pkt-tabs__button pkt-link-button ${t ? "active" : ""}`, children: C });
|
|
10130
10152
|
}
|
|
10131
10153
|
);
|
|
10132
|
-
|
|
10133
|
-
const
|
|
10134
|
-
const i = Aa(
|
|
10154
|
+
on.displayName = "PktTabItem";
|
|
10155
|
+
const ln = Na(null), Gh = () => {
|
|
10156
|
+
const i = Aa(ln);
|
|
10135
10157
|
if (!i)
|
|
10136
10158
|
throw new Error("TabItem must be used within a Tabs component");
|
|
10137
10159
|
return i;
|
|
10138
|
-
}, oc =
|
|
10160
|
+
}, oc = K(
|
|
10139
10161
|
({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
|
|
10140
|
-
const r =
|
|
10162
|
+
const r = gn([]), l = i && !t, p = a && Es.count(a) > 0 ? Es.count(a) : (e == null ? void 0 : e.length) || 0;
|
|
10141
10163
|
as(() => {
|
|
10142
10164
|
r.current = r.current.slice(0, p);
|
|
10143
10165
|
}, [p]);
|
|
@@ -10152,7 +10174,7 @@ const on = Na(null), Gh = () => {
|
|
|
10152
10174
|
}, b = e == null ? void 0 : e.map((y, w) => {
|
|
10153
10175
|
var C, P;
|
|
10154
10176
|
return /* @__PURE__ */ h(
|
|
10155
|
-
|
|
10177
|
+
on,
|
|
10156
10178
|
{
|
|
10157
10179
|
active: y.active,
|
|
10158
10180
|
href: y.href,
|
|
@@ -10167,9 +10189,9 @@ const on = Na(null), Gh = () => {
|
|
|
10167
10189
|
w
|
|
10168
10190
|
);
|
|
10169
10191
|
});
|
|
10170
|
-
return /* @__PURE__ */ h(
|
|
10192
|
+
return /* @__PURE__ */ h(ln.Provider, { value: { arrowNav: l, registerTabRef: k, handleKeyPress: f, selectTab: g }, children: /* @__PURE__ */ h("div", { className: "pkt-tabs", ref: n, children: /* @__PURE__ */ h("div", { className: "pkt-tabs__list", role: l ? "tablist" : "navigation", children: a || b }) }) });
|
|
10171
10193
|
}
|
|
10172
|
-
), lc =
|
|
10194
|
+
), lc = K(
|
|
10173
10195
|
({
|
|
10174
10196
|
id: i,
|
|
10175
10197
|
ariaDescribedby: t,
|
|
@@ -10194,20 +10216,20 @@ const on = Na(null), Gh = () => {
|
|
|
10194
10216
|
tagText: A = null,
|
|
10195
10217
|
placeholder: z,
|
|
10196
10218
|
rows: Z,
|
|
10197
|
-
useWrapper:
|
|
10198
|
-
onChange:
|
|
10219
|
+
useWrapper: At = !0,
|
|
10220
|
+
onChange: Et,
|
|
10199
10221
|
value: Q,
|
|
10200
10222
|
autoComplete: st = "off",
|
|
10201
|
-
minLength:
|
|
10202
|
-
maxLength:
|
|
10223
|
+
minLength: Ot,
|
|
10224
|
+
maxLength: Pt,
|
|
10203
10225
|
readOnly: at = !1,
|
|
10204
10226
|
skipForwardTestid: D = !1,
|
|
10205
|
-
|
|
10227
|
+
...kt
|
|
10206
10228
|
}, Qt) => {
|
|
10207
|
-
const le = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`,
|
|
10208
|
-
var
|
|
10209
|
-
if (s && Ht(((de = (
|
|
10210
|
-
return
|
|
10229
|
+
const le = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, Se = `${te}-label`, ze = e || Se, [he, Ht] = oi(0), ot = (Ce) => {
|
|
10230
|
+
var Te, de;
|
|
10231
|
+
if (s && Ht(((de = (Te = Ce.currentTarget) == null ? void 0 : Te.value) == null ? void 0 : de.length) || 0), Et)
|
|
10232
|
+
return Et(Ce);
|
|
10211
10233
|
};
|
|
10212
10234
|
return as(() => {
|
|
10213
10235
|
Q !== void 0 && Ht((Q == null ? void 0 : Q.length) || 0);
|
|
@@ -10230,7 +10252,7 @@ const on = Na(null), Gh = () => {
|
|
|
10230
10252
|
requiredTag: T,
|
|
10231
10253
|
requiredText: j,
|
|
10232
10254
|
tagText: A,
|
|
10233
|
-
useWrapper:
|
|
10255
|
+
useWrapper: At,
|
|
10234
10256
|
counter: s,
|
|
10235
10257
|
counterCurrent: he,
|
|
10236
10258
|
counterMaxLength: a,
|
|
@@ -10247,19 +10269,19 @@ const on = Na(null), Gh = () => {
|
|
|
10247
10269
|
"aria-labelledby": ze,
|
|
10248
10270
|
"aria-invalid": d,
|
|
10249
10271
|
"aria-errormessage": `${i}-error`,
|
|
10250
|
-
|
|
10251
|
-
onChange:
|
|
10272
|
+
...kt,
|
|
10273
|
+
onChange: ot,
|
|
10252
10274
|
value: Q,
|
|
10253
10275
|
autoComplete: st,
|
|
10254
|
-
minLength:
|
|
10255
|
-
maxLength:
|
|
10276
|
+
minLength: Ot,
|
|
10277
|
+
maxLength: Pt,
|
|
10256
10278
|
"data-skip-forward-testid": D ? "true" : void 0
|
|
10257
10279
|
}
|
|
10258
10280
|
)
|
|
10259
10281
|
}
|
|
10260
10282
|
);
|
|
10261
10283
|
}
|
|
10262
|
-
), hc =
|
|
10284
|
+
), hc = K(
|
|
10263
10285
|
({
|
|
10264
10286
|
id: i,
|
|
10265
10287
|
ariaDescribedby: t,
|
|
@@ -10284,29 +10306,29 @@ const on = Na(null), Gh = () => {
|
|
|
10284
10306
|
requiredTag: A = !1,
|
|
10285
10307
|
requiredText: z,
|
|
10286
10308
|
tagText: Z = null,
|
|
10287
|
-
placeholder:
|
|
10288
|
-
prefix:
|
|
10309
|
+
placeholder: At,
|
|
10310
|
+
prefix: Et,
|
|
10289
10311
|
suffix: Q,
|
|
10290
10312
|
type: st = "text",
|
|
10291
|
-
useWrapper:
|
|
10292
|
-
omitSearchIcon:
|
|
10313
|
+
useWrapper: Ot = !0,
|
|
10314
|
+
omitSearchIcon: Pt = !1,
|
|
10293
10315
|
value: at,
|
|
10294
10316
|
minLength: D,
|
|
10295
|
-
maxLength:
|
|
10317
|
+
maxLength: kt,
|
|
10296
10318
|
min: Qt,
|
|
10297
10319
|
max: le,
|
|
10298
10320
|
step: te,
|
|
10299
|
-
size:
|
|
10321
|
+
size: Se,
|
|
10300
10322
|
readonly: ze,
|
|
10301
10323
|
required: he,
|
|
10302
10324
|
dataTestid: Ht,
|
|
10303
|
-
onChange:
|
|
10304
|
-
skipForwardTestid:
|
|
10305
|
-
...
|
|
10325
|
+
onChange: ot,
|
|
10326
|
+
skipForwardTestid: Ce = !1,
|
|
10327
|
+
...Te
|
|
10306
10328
|
}, de) => {
|
|
10307
|
-
const ps = [r, "pkt-textinput"].join(" "), Fi = st === "search" && !b && !
|
|
10329
|
+
const ps = [r, "pkt-textinput"].join(" "), Fi = st === "search" && !b && !Pt, us = st === "date" && at ? at.slice(0, 10) : at, [Ui, We] = oi((at == null ? void 0 : at.length) || 0), Ke = `${i}`, ui = `${Ke}-label`, Hi = e || ui, ms = (ge) => {
|
|
10308
10330
|
var qi, zi;
|
|
10309
|
-
a && We(((zi = (qi = ge.currentTarget) == null ? void 0 : qi.value) == null ? void 0 : zi.length) || 0),
|
|
10331
|
+
a && We(((zi = (qi = ge.currentTarget) == null ? void 0 : qi.value) == null ? void 0 : zi.length) || 0), ot && ot(ge);
|
|
10310
10332
|
};
|
|
10311
10333
|
return as(() => {
|
|
10312
10334
|
at !== void 0 && We((at == null ? void 0 : at.length) || 0);
|
|
@@ -10329,7 +10351,7 @@ const on = Na(null), Gh = () => {
|
|
|
10329
10351
|
requiredTag: A,
|
|
10330
10352
|
requiredText: z,
|
|
10331
10353
|
tagText: Z,
|
|
10332
|
-
useWrapper:
|
|
10354
|
+
useWrapper: Ot,
|
|
10333
10355
|
counter: a,
|
|
10334
10356
|
counterCurrent: Ui,
|
|
10335
10357
|
counterMaxLength: n,
|
|
@@ -10338,20 +10360,20 @@ const on = Na(null), Gh = () => {
|
|
|
10338
10360
|
{
|
|
10339
10361
|
className: "pkt-input__container",
|
|
10340
10362
|
"data-testid": Ht,
|
|
10341
|
-
"data-skip-forward-testid":
|
|
10363
|
+
"data-skip-forward-testid": Ce ? "true" : void 0,
|
|
10342
10364
|
children: [
|
|
10343
|
-
|
|
10365
|
+
Et && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: Et }),
|
|
10344
10366
|
/* @__PURE__ */ h(
|
|
10345
10367
|
"input",
|
|
10346
10368
|
{
|
|
10347
|
-
...
|
|
10369
|
+
...Te,
|
|
10348
10370
|
ref: de,
|
|
10349
10371
|
className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Ui > n ? "pkt-input--counter-error" : ""}`,
|
|
10350
10372
|
type: st,
|
|
10351
10373
|
name: `${P || i}`,
|
|
10352
10374
|
value: us,
|
|
10353
10375
|
id: Ke,
|
|
10354
|
-
placeholder:
|
|
10376
|
+
placeholder: At,
|
|
10355
10377
|
autoComplete: s,
|
|
10356
10378
|
disabled: l,
|
|
10357
10379
|
"aria-invalid": p,
|
|
@@ -10362,8 +10384,8 @@ const on = Na(null), Gh = () => {
|
|
|
10362
10384
|
onChange: ms,
|
|
10363
10385
|
step: te,
|
|
10364
10386
|
minLength: D,
|
|
10365
|
-
maxLength:
|
|
10366
|
-
size:
|
|
10387
|
+
maxLength: kt,
|
|
10388
|
+
size: Se,
|
|
10367
10389
|
required: he
|
|
10368
10390
|
}
|
|
10369
10391
|
),
|
|
@@ -10382,28 +10404,28 @@ const on = Na(null), Gh = () => {
|
|
|
10382
10404
|
}
|
|
10383
10405
|
);
|
|
10384
10406
|
export {
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10407
|
+
bn as PktAccordion,
|
|
10408
|
+
fh as PktAccordionItem,
|
|
10409
|
+
nn as PktAlert,
|
|
10410
|
+
yh as PktBackLink,
|
|
10389
10411
|
Kd as PktBreadcrumbs,
|
|
10390
10412
|
ri as PktButton,
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10413
|
+
$h as PktCard,
|
|
10414
|
+
_h as PktCheckbox,
|
|
10415
|
+
xh as PktCombobox,
|
|
10394
10416
|
js as PktConsent,
|
|
10395
|
-
|
|
10417
|
+
Ch as PktDatepicker,
|
|
10396
10418
|
Gd as PktFooter,
|
|
10397
10419
|
Yd as PktFooterSimple,
|
|
10398
10420
|
Zd as PktHeader,
|
|
10399
|
-
|
|
10400
|
-
|
|
10421
|
+
Nh as PktHeading,
|
|
10422
|
+
Eh as PktHelptext,
|
|
10401
10423
|
U as PktIcon,
|
|
10402
|
-
|
|
10424
|
+
Oh as PktInput,
|
|
10403
10425
|
cs as PktInputWrapper,
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10426
|
+
Mh as PktLink,
|
|
10427
|
+
Dh as PktLinkCard,
|
|
10428
|
+
Lh as PktLoader,
|
|
10407
10429
|
Bh as PktMessagebox,
|
|
10408
10430
|
jh as PktModal,
|
|
10409
10431
|
Uh as PktProgressbar,
|
|
@@ -10412,7 +10434,7 @@ export {
|
|
|
10412
10434
|
Jd as PktSelect,
|
|
10413
10435
|
Qd as PktStep,
|
|
10414
10436
|
tc as PktStepper,
|
|
10415
|
-
|
|
10437
|
+
on as PktTabItem,
|
|
10416
10438
|
ec as PktTable,
|
|
10417
10439
|
ic as PktTableBody,
|
|
10418
10440
|
sc as PktTableDataCell,
|
|
@@ -10420,7 +10442,7 @@ export {
|
|
|
10420
10442
|
nc as PktTableHeaderCell,
|
|
10421
10443
|
rc as PktTableRow,
|
|
10422
10444
|
oc as PktTabs,
|
|
10423
|
-
|
|
10445
|
+
rn as PktTag,
|
|
10424
10446
|
lc as PktTextarea,
|
|
10425
10447
|
hc as PktTextinput
|
|
10426
10448
|
};
|