@oslokommune/punkt-react 12.39.4 → 12.39.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/punkt-react.es.js +150 -150
- package/dist/punkt-react.umd.js +1 -1
- package/package.json +4 -4
package/dist/punkt-react.es.js
CHANGED
|
@@ -130,7 +130,7 @@ function QO() {
|
|
|
130
130
|
// with.
|
|
131
131
|
W.$$typeof === ke || W.getModuleId !== void 0));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function qe(W, Ae, Xe) {
|
|
134
134
|
var ut = W.displayName;
|
|
135
135
|
if (ut)
|
|
136
136
|
return ut;
|
|
@@ -170,7 +170,7 @@ function QO() {
|
|
|
170
170
|
var Xe = W;
|
|
171
171
|
return Ge(Xe._context) + ".Provider";
|
|
172
172
|
case C:
|
|
173
|
-
return
|
|
173
|
+
return qe(W, W.render, "ForwardRef");
|
|
174
174
|
case N:
|
|
175
175
|
var ut = W.displayName || null;
|
|
176
176
|
return ut !== null ? ut : tt(W.type) || "Memo";
|
|
@@ -724,7 +724,7 @@ const XO = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
724
724
|
*/
|
|
725
725
|
const uw = globalThis, cw = uw.trustedTypes, lE = cw ? cw.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, tA = "$lit$", gf = `lit$${Math.random().toFixed(9).slice(2)}$`, nA = "?" + gf, JO = `<${nA}>`, nh = document, gy = () => nh.createComment(""), vy = (n) => n === null || typeof n != "object" && typeof n != "function", IS = Array.isArray, ZO = (n) => IS(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", BD = `[
|
|
726
726
|
\f\r]`, Kv = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, uE = /-->/g, cE = />/g, Hp = RegExp(`>|${BD}(?:([^\\s"'>=/]+)(${BD}*=${BD}*(?:[^
|
|
727
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dE = /'/g, fE = /"/g, rA = /^(?:script|style|textarea|title)$/i, eL = (n) => (r, ...i) => ({ _$litType$: n, strings: r, values: i }), be = eL(1), qo = Symbol.for("lit-noChange"),
|
|
727
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dE = /'/g, fE = /"/g, rA = /^(?:script|style|textarea|title)$/i, eL = (n) => (r, ...i) => ({ _$litType$: n, strings: r, values: i }), be = eL(1), qo = Symbol.for("lit-noChange"), Ve = Symbol.for("lit-nothing"), pE = /* @__PURE__ */ new WeakMap(), Jp = nh.createTreeWalker(nh, 129);
|
|
728
728
|
function aA(n, r) {
|
|
729
729
|
if (!IS(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
730
730
|
return lE !== void 0 ? lE.createHTML(r) : r;
|
|
@@ -819,7 +819,7 @@ class ng {
|
|
|
819
819
|
return ((r = this._$AM) == null ? void 0 : r._$AU) ?? this._$Cv;
|
|
820
820
|
}
|
|
821
821
|
constructor(r, i, l, d) {
|
|
822
|
-
this.type = 2, this._$AH =
|
|
822
|
+
this.type = 2, this._$AH = Ve, this._$AN = void 0, this._$AA = r, this._$AB = i, this._$AM = l, this.options = d, this._$Cv = (d == null ? void 0 : d.isConnected) ?? !0;
|
|
823
823
|
}
|
|
824
824
|
get parentNode() {
|
|
825
825
|
let r = this._$AA.parentNode;
|
|
@@ -833,7 +833,7 @@ class ng {
|
|
|
833
833
|
return this._$AB;
|
|
834
834
|
}
|
|
835
835
|
_$AI(r, i = this) {
|
|
836
|
-
r = Gm(this, r, i), vy(r) ? r ===
|
|
836
|
+
r = Gm(this, r, i), vy(r) ? r === Ve || r == null || r === "" ? (this._$AH !== Ve && this._$AR(), this._$AH = Ve) : r !== this._$AH && r !== qo && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : ZO(r) ? this.k(r) : this._(r);
|
|
837
837
|
}
|
|
838
838
|
O(r) {
|
|
839
839
|
return this._$AA.parentNode.insertBefore(r, this._$AB);
|
|
@@ -842,7 +842,7 @@ class ng {
|
|
|
842
842
|
this._$AH !== r && (this._$AR(), this._$AH = this.O(r));
|
|
843
843
|
}
|
|
844
844
|
_(r) {
|
|
845
|
-
this._$AH !==
|
|
845
|
+
this._$AH !== Ve && vy(this._$AH) ? this._$AA.nextSibling.data = r : this.T(nh.createTextNode(r)), this._$AH = r;
|
|
846
846
|
}
|
|
847
847
|
$(r) {
|
|
848
848
|
var i;
|
|
@@ -884,7 +884,7 @@ class Sw {
|
|
|
884
884
|
return this._$AM._$AU;
|
|
885
885
|
}
|
|
886
886
|
constructor(r, i, l, d, h) {
|
|
887
|
-
this.type = 1, this._$AH =
|
|
887
|
+
this.type = 1, this._$AH = Ve, this._$AN = void 0, this.element = r, this.name = i, this._$AM = d, this.options = h, l.length > 2 || l[0] !== "" || l[1] !== "" ? (this._$AH = Array(l.length - 1).fill(new String()), this.strings = l) : this._$AH = Ve;
|
|
888
888
|
}
|
|
889
889
|
_$AI(r, i = this, l, d) {
|
|
890
890
|
const h = this.strings;
|
|
@@ -893,12 +893,12 @@ class Sw {
|
|
|
893
893
|
else {
|
|
894
894
|
const D = r;
|
|
895
895
|
let C, T;
|
|
896
|
-
for (r = h[0], C = 0; C < h.length - 1; C++) T = Gm(this, D[l + C], i, C), T === qo && (T = this._$AH[C]), m || (m = !vy(T) || T !== this._$AH[C]), T ===
|
|
896
|
+
for (r = h[0], C = 0; C < h.length - 1; C++) T = Gm(this, D[l + C], i, C), T === qo && (T = this._$AH[C]), m || (m = !vy(T) || T !== this._$AH[C]), T === Ve ? r = Ve : r !== Ve && (r += (T ?? "") + h[C + 1]), this._$AH[C] = T;
|
|
897
897
|
}
|
|
898
898
|
m && !d && this.j(r);
|
|
899
899
|
}
|
|
900
900
|
j(r) {
|
|
901
|
-
r ===
|
|
901
|
+
r === Ve ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
class rL extends Sw {
|
|
@@ -906,7 +906,7 @@ class rL extends Sw {
|
|
|
906
906
|
super(...arguments), this.type = 3;
|
|
907
907
|
}
|
|
908
908
|
j(r) {
|
|
909
|
-
this.element[this.name] = r ===
|
|
909
|
+
this.element[this.name] = r === Ve ? void 0 : r;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
class aL extends Sw {
|
|
@@ -914,7 +914,7 @@ class aL extends Sw {
|
|
|
914
914
|
super(...arguments), this.type = 4;
|
|
915
915
|
}
|
|
916
916
|
j(r) {
|
|
917
|
-
this.element.toggleAttribute(this.name, !!r && r !==
|
|
917
|
+
this.element.toggleAttribute(this.name, !!r && r !== Ve);
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
class iL extends Sw {
|
|
@@ -922,8 +922,8 @@ class iL extends Sw {
|
|
|
922
922
|
super(r, i, l, d, h), this.type = 5;
|
|
923
923
|
}
|
|
924
924
|
_$AI(r, i = this) {
|
|
925
|
-
if ((r = Gm(this, r, i, 0) ??
|
|
926
|
-
const l = this._$AH, d = r ===
|
|
925
|
+
if ((r = Gm(this, r, i, 0) ?? Ve) === qo) return;
|
|
926
|
+
const l = this._$AH, d = r === Ve && l !== Ve || r.capture !== l.capture || r.once !== l.once || r.passive !== l.passive, h = r !== Ve && (l === Ve || d);
|
|
927
927
|
d && this.element.removeEventListener(this.name, this, l), h && this.element.addEventListener(this.name, this, r), this._$AH = r;
|
|
928
928
|
}
|
|
929
929
|
handleEvent(r) {
|
|
@@ -1363,7 +1363,7 @@ function wL() {
|
|
|
1363
1363
|
function Ye(Q) {
|
|
1364
1364
|
return typeof Q == "object" && Q !== null && Q.$$typeof === n;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function qe(Q) {
|
|
1367
1367
|
var he = { "=": "=0", ":": "=2" };
|
|
1368
1368
|
return "$" + Q.replace(/[=:]/g, function(it) {
|
|
1369
1369
|
return he[it];
|
|
@@ -1371,7 +1371,7 @@ function wL() {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
var Ge = /\/+/g;
|
|
1373
1373
|
function tt(Q, he) {
|
|
1374
|
-
return typeof Q == "object" && Q !== null && Q.key != null ?
|
|
1374
|
+
return typeof Q == "object" && Q !== null && Q.key != null ? qe("" + Q.key) : he.toString(36);
|
|
1375
1375
|
}
|
|
1376
1376
|
function Ue(Q, he, it, nt, wt) {
|
|
1377
1377
|
var pt = typeof Q;
|
|
@@ -1562,7 +1562,7 @@ function DL() {
|
|
|
1562
1562
|
var V = ce.getCurrentStack;
|
|
1563
1563
|
return V && (F += V() || ""), F;
|
|
1564
1564
|
};
|
|
1565
|
-
var Ye = !1,
|
|
1565
|
+
var Ye = !1, qe = !1, Ge = !1, tt = !1, Ue = !1, ct = {
|
|
1566
1566
|
ReactCurrentDispatcher: G,
|
|
1567
1567
|
ReactCurrentBatchConfig: re,
|
|
1568
1568
|
ReactCurrentOwner: ae
|
|
@@ -2189,7 +2189,7 @@ Your code should look like:
|
|
|
2189
2189
|
var W;
|
|
2190
2190
|
W = Symbol.for("react.module.reference");
|
|
2191
2191
|
function Ae(F) {
|
|
2192
|
-
return !!(typeof F == "string" || typeof F == "function" || F === h || F === D || Ue || F === m || F === N || F === R || tt || F === K || Ye ||
|
|
2192
|
+
return !!(typeof F == "string" || typeof F == "function" || F === h || F === D || Ue || F === m || F === N || F === R || tt || F === K || Ye || qe || Ge || typeof F == "object" && F !== null && (F.$$typeof === I || F.$$typeof === B || F.$$typeof === C || F.$$typeof === T || F.$$typeof === $ || // This needs to include all possible module reference object
|
|
2193
2193
|
// types supported by any Flight configuration anywhere since
|
|
2194
2194
|
// we don't know which Flight build this will end up being used
|
|
2195
2195
|
// with.
|
|
@@ -2857,7 +2857,7 @@ function SL() {
|
|
|
2857
2857
|
I = !1, K && (K = !1, Ce(Te), Te = -1), B = !0;
|
|
2858
2858
|
var xe = R;
|
|
2859
2859
|
try {
|
|
2860
|
-
for (G(Re), N = i(C); N !== null && (!(N.expirationTime > Re) || fe && !
|
|
2860
|
+
for (G(Re), N = i(C); N !== null && (!(N.expirationTime > Re) || fe && !qe()); ) {
|
|
2861
2861
|
var Q = N.callback;
|
|
2862
2862
|
if (typeof Q == "function") {
|
|
2863
2863
|
N.callback = null, R = N.priorityLevel;
|
|
@@ -2877,7 +2877,7 @@ function SL() {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
2879
|
var ae = !1, ce = null, Te = -1, ke = 5, Ye = -1;
|
|
2880
|
-
function
|
|
2880
|
+
function qe() {
|
|
2881
2881
|
return !(n.unstable_now() - Ye < ke);
|
|
2882
2882
|
}
|
|
2883
2883
|
function Ge() {
|
|
@@ -2978,7 +2978,7 @@ function SL() {
|
|
|
2978
2978
|
he = 5e3;
|
|
2979
2979
|
}
|
|
2980
2980
|
return he = xe + he, fe = { id: $++, callback: Re, priorityLevel: fe, startTime: xe, expirationTime: he, sortIndex: -1 }, xe > Q ? (fe.sortIndex = xe, r(T, fe), i(C) === null && fe === i(T) && (K ? (Ce(Te), Te = -1) : K = !0, Oe(re, xe - Q))) : (fe.sortIndex = he, r(C, fe), I || B || (I = !0, Be(q))), fe;
|
|
2981
|
-
}, n.unstable_shouldYield =
|
|
2981
|
+
}, n.unstable_shouldYield = qe, n.unstable_wrapCallback = function(fe) {
|
|
2982
2982
|
var Re = R;
|
|
2983
2983
|
return function() {
|
|
2984
2984
|
var xe = R;
|
|
@@ -3057,7 +3057,7 @@ function CL() {
|
|
|
3057
3057
|
return Y.now() - Ce;
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
|
-
var J = 1073741823, G = -1, re = 250, q = 5e3, ae = 1e4, ce = J, Te = [], ke = [], Ye = 1,
|
|
3060
|
+
var J = 1073741823, G = -1, re = 250, q = 5e3, ae = 1e4, ce = J, Te = [], ke = [], Ye = 1, qe = null, Ge = N, tt = !1, Ue = !1, ct = !1, Be = typeof setTimeout == "function" ? setTimeout : null, Oe = typeof clearTimeout == "function" ? clearTimeout : null, fe = typeof setImmediate < "u" ? setImmediate : null;
|
|
3061
3061
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
3062
3062
|
function Re(_e) {
|
|
3063
3063
|
for (var Ne = d(ke); Ne !== null; ) {
|
|
@@ -3086,22 +3086,22 @@ function CL() {
|
|
|
3086
3086
|
var xt;
|
|
3087
3087
|
if (!r) return he(_e, Ne);
|
|
3088
3088
|
} finally {
|
|
3089
|
-
|
|
3089
|
+
qe = null, Ge = We, tt = !1;
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
3092
|
function he(_e, Ne) {
|
|
3093
3093
|
var We = Ne;
|
|
3094
|
-
for (Re(We),
|
|
3095
|
-
var xt =
|
|
3094
|
+
for (Re(We), qe = d(Te); qe !== null && !(qe.expirationTime > We && (!_e || gr())); ) {
|
|
3095
|
+
var xt = qe.callback;
|
|
3096
3096
|
if (typeof xt == "function") {
|
|
3097
|
-
|
|
3098
|
-
var jt =
|
|
3099
|
-
We = n.unstable_now(), typeof kn == "function" ?
|
|
3097
|
+
qe.callback = null, Ge = qe.priorityLevel;
|
|
3098
|
+
var jt = qe.expirationTime <= We, kn = xt(jt);
|
|
3099
|
+
We = n.unstable_now(), typeof kn == "function" ? qe.callback = kn : qe === d(Te) && h(Te), Re(We);
|
|
3100
3100
|
} else
|
|
3101
3101
|
h(Te);
|
|
3102
|
-
|
|
3102
|
+
qe = d(Te);
|
|
3103
3103
|
}
|
|
3104
|
-
if (
|
|
3104
|
+
if (qe !== null)
|
|
3105
3105
|
return !0;
|
|
3106
3106
|
var Sn = d(ke);
|
|
3107
3107
|
return Sn !== null && de(xe, Sn.startTime - We), !1;
|
|
@@ -3372,7 +3372,7 @@ function xL() {
|
|
|
3372
3372
|
var b = Y.hasOwnProperty(o) ? Y[o] : null;
|
|
3373
3373
|
(b !== null ? b.type !== 0 : v || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (I(o, c, b, v) && (c = null), v || b === null ? R(o) && (c === null ? a.removeAttribute(o) : a.setAttribute(o, "" + c)) : b.mustUseProperty ? a[b.propertyName] = c === null ? b.type === 3 ? !1 : "" : c : (o = b.attributeName, v = b.attributeNamespace, c === null ? a.removeAttribute(o) : (b = b.type, c = b === 3 || b === 4 && c === !0 ? "" : "" + c, v ? a.setAttributeNS(v, o, c) : a.setAttribute(o, c))));
|
|
3374
3374
|
}
|
|
3375
|
-
var re = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, q = Symbol.for("react.element"), ae = Symbol.for("react.portal"), ce = Symbol.for("react.fragment"), Te = Symbol.for("react.strict_mode"), ke = Symbol.for("react.profiler"), Ye = Symbol.for("react.provider"),
|
|
3375
|
+
var re = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, q = Symbol.for("react.element"), ae = Symbol.for("react.portal"), ce = Symbol.for("react.fragment"), Te = Symbol.for("react.strict_mode"), ke = Symbol.for("react.profiler"), Ye = Symbol.for("react.provider"), qe = Symbol.for("react.context"), Ge = Symbol.for("react.forward_ref"), tt = Symbol.for("react.suspense"), Ue = Symbol.for("react.suspense_list"), ct = Symbol.for("react.memo"), Be = Symbol.for("react.lazy"), Oe = Symbol.for("react.offscreen"), fe = Symbol.iterator;
|
|
3376
3376
|
function Re(a) {
|
|
3377
3377
|
return a === null || typeof a != "object" ? null : (a = fe && a[fe] || a["@@iterator"], typeof a == "function" ? a : null);
|
|
3378
3378
|
}
|
|
@@ -3484,7 +3484,7 @@ function xL() {
|
|
|
3484
3484
|
return "SuspenseList";
|
|
3485
3485
|
}
|
|
3486
3486
|
if (typeof a == "object") switch (a.$$typeof) {
|
|
3487
|
-
case
|
|
3487
|
+
case qe:
|
|
3488
3488
|
return (a.displayName || "Context") + ".Consumer";
|
|
3489
3489
|
case Ye:
|
|
3490
3490
|
return (a._context.displayName || "Context") + ".Provider";
|
|
@@ -8141,7 +8141,7 @@ Error generating stack: ` + S.message + `
|
|
|
8141
8141
|
case Ye:
|
|
8142
8142
|
P = 10;
|
|
8143
8143
|
break e;
|
|
8144
|
-
case
|
|
8144
|
+
case qe:
|
|
8145
8145
|
P = 9;
|
|
8146
8146
|
break e;
|
|
8147
8147
|
case Ge:
|
|
@@ -8477,7 +8477,7 @@ function _L() {
|
|
|
8477
8477
|
y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
|
|
8478
8478
|
}
|
|
8479
8479
|
}
|
|
8480
|
-
var C = 0, T = 1, $ = 2, N = 3, R = 4, B = 5, I = 6, K = 7, Y = 8, Ce = 9, J = 10, G = 11, re = 12, q = 13, ae = 14, ce = 15, Te = 16, ke = 17, Ye = 18,
|
|
8480
|
+
var C = 0, T = 1, $ = 2, N = 3, R = 4, B = 5, I = 6, K = 7, Y = 8, Ce = 9, J = 10, G = 11, re = 12, q = 13, ae = 14, ce = 15, Te = 16, ke = 17, Ye = 18, qe = 19, Ge = 21, tt = 22, Ue = 23, ct = 24, Be = 25, Oe = !0, fe = !1, Re = !1, xe = !1, Q = !1, he = !0, it = !0, nt = !0, wt = !0, pt = /* @__PURE__ */ new Set(), yt = {}, gt = {};
|
|
8481
8481
|
function Nt(e, t) {
|
|
8482
8482
|
un(e, t), un(e + "Capture", t);
|
|
8483
8483
|
}
|
|
@@ -9222,7 +9222,7 @@ function _L() {
|
|
|
9222
9222
|
return qa("Lazy");
|
|
9223
9223
|
case q:
|
|
9224
9224
|
return qa("Suspense");
|
|
9225
|
-
case
|
|
9225
|
+
case qe:
|
|
9226
9226
|
return qa("SuspenseList");
|
|
9227
9227
|
case C:
|
|
9228
9228
|
case $:
|
|
@@ -9348,7 +9348,7 @@ Error generating stack: ` + u.message + `
|
|
|
9348
9348
|
return "Scope";
|
|
9349
9349
|
case q:
|
|
9350
9350
|
return "Suspense";
|
|
9351
|
-
case
|
|
9351
|
+
case qe:
|
|
9352
9352
|
return "SuspenseList";
|
|
9353
9353
|
case Be:
|
|
9354
9354
|
return "TracingMarker";
|
|
@@ -15766,7 +15766,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15766
15766
|
if (u === null || KC(u) || d0(u))
|
|
15767
15767
|
return t;
|
|
15768
15768
|
}
|
|
15769
|
-
} else if (t.tag ===
|
|
15769
|
+
} else if (t.tag === qe && // revealOrder undefined can't be trusted because it don't
|
|
15770
15770
|
// keep track of whether it suspended or not.
|
|
15771
15771
|
t.memoizedProps.revealOrder !== void 0) {
|
|
15772
15772
|
var p = (t.flags & vt) !== St;
|
|
@@ -18138,7 +18138,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18138
18138
|
if (u.tag === q) {
|
|
18139
18139
|
var p = u.memoizedState;
|
|
18140
18140
|
p !== null && E1(u, s, e);
|
|
18141
|
-
} else if (u.tag ===
|
|
18141
|
+
} else if (u.tag === qe)
|
|
18142
18142
|
E1(u, s, e);
|
|
18143
18143
|
else if (u.child !== null) {
|
|
18144
18144
|
u.child.return = u, u = u.child;
|
|
@@ -18407,7 +18407,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18407
18407
|
rf(t, km(Gl.current));
|
|
18408
18408
|
break;
|
|
18409
18409
|
}
|
|
18410
|
-
case
|
|
18410
|
+
case qe: {
|
|
18411
18411
|
var ee = (e.flags & vt) !== St, ue = Oi(s, t.childLanes);
|
|
18412
18412
|
if (ee) {
|
|
18413
18413
|
if (ue)
|
|
@@ -18504,7 +18504,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18504
18504
|
var De = t.type, le = t.pendingProps, Ie = t.elementType === De ? le : Ql(De, le);
|
|
18505
18505
|
return o3(e, t, De, Ie, s);
|
|
18506
18506
|
}
|
|
18507
|
-
case
|
|
18507
|
+
case qe:
|
|
18508
18508
|
return A1(e, t, s);
|
|
18509
18509
|
case Ge:
|
|
18510
18510
|
break;
|
|
@@ -18717,7 +18717,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18717
18717
|
var Lt = t.type;
|
|
18718
18718
|
return Wu(Lt) && Rb(t), fi(t), null;
|
|
18719
18719
|
}
|
|
18720
|
-
case
|
|
18720
|
+
case qe: {
|
|
18721
18721
|
wm(t);
|
|
18722
18722
|
var Gt = t.memoizedState;
|
|
18723
18723
|
if (Gt === null)
|
|
@@ -18811,7 +18811,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18811
18811
|
var _ = t.flags;
|
|
18812
18812
|
return _ & Wa ? (t.flags = _ & -65537 | vt, (t.mode & xn) !== Ct && k2(t), t) : null;
|
|
18813
18813
|
}
|
|
18814
|
-
case
|
|
18814
|
+
case qe:
|
|
18815
18815
|
return wm(t), null;
|
|
18816
18816
|
case R:
|
|
18817
18817
|
return bm(t), null;
|
|
@@ -18848,7 +18848,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18848
18848
|
case q:
|
|
18849
18849
|
wm(t);
|
|
18850
18850
|
break;
|
|
18851
|
-
case
|
|
18851
|
+
case qe:
|
|
18852
18852
|
wm(t);
|
|
18853
18853
|
break;
|
|
18854
18854
|
case J:
|
|
@@ -19178,7 +19178,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19178
19178
|
W3(e, s);
|
|
19179
19179
|
break;
|
|
19180
19180
|
}
|
|
19181
|
-
case
|
|
19181
|
+
case qe:
|
|
19182
19182
|
case ke:
|
|
19183
19183
|
case Ge:
|
|
19184
19184
|
case tt:
|
|
@@ -19653,7 +19653,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19653
19653
|
}
|
|
19654
19654
|
return;
|
|
19655
19655
|
}
|
|
19656
|
-
case
|
|
19656
|
+
case qe: {
|
|
19657
19657
|
eu(t, e), Ju(e), p & pn && G1(e);
|
|
19658
19658
|
return;
|
|
19659
19659
|
}
|
|
@@ -20680,7 +20680,7 @@ Error message:
|
|
|
20680
20680
|
var p = e.memoizedState;
|
|
20681
20681
|
p !== null && (s = p.retryLane);
|
|
20682
20682
|
break;
|
|
20683
|
-
case
|
|
20683
|
+
case qe:
|
|
20684
20684
|
u = e.stateNode;
|
|
20685
20685
|
break;
|
|
20686
20686
|
default:
|
|
@@ -21179,7 +21179,7 @@ Check the render method of \`` + O + "`.");
|
|
|
21179
21179
|
return p.elementType = Xe, p.lanes = s, p;
|
|
21180
21180
|
}
|
|
21181
21181
|
function uO(e, t, s, u) {
|
|
21182
|
-
var p = gs(
|
|
21182
|
+
var p = gs(qe, e, u, t);
|
|
21183
21183
|
return p.elementType = ut, p.lanes = s, p;
|
|
21184
21184
|
}
|
|
21185
21185
|
function x_(e, t, s, u) {
|
|
@@ -22002,11 +22002,11 @@ const EL = (n) => {
|
|
|
22002
22002
|
let Fe = ye.nextNode();
|
|
22003
22003
|
const _e = !Z || de.disabled;
|
|
22004
22004
|
for (; Fe; )
|
|
22005
|
-
Fe.formDisabledCallback && _e &&
|
|
22005
|
+
Fe.formDisabledCallback && _e && qe(Fe, de.disabled), Fe = ye.nextNode();
|
|
22006
22006
|
}, re = { attributes: !0, attributeFilter: ["disabled", "name"] }, q = pt() ? new MutationObserver((de) => {
|
|
22007
22007
|
for (const Z of de) {
|
|
22008
22008
|
const ye = Z.target;
|
|
22009
|
-
if (Z.attributeName === "disabled" && (ye.constructor.formAssociated ?
|
|
22009
|
+
if (Z.attributeName === "disabled" && (ye.constructor.formAssociated ? qe(ye, ye.hasAttribute("disabled")) : ye.localName === "fieldset" && G(ye)), Z.attributeName === "name" && ye.constructor.formAssociated) {
|
|
22010
22010
|
const Fe = d.get(ye), _e = T.get(ye);
|
|
22011
22011
|
Fe.setFormValue(_e);
|
|
22012
22012
|
}
|
|
@@ -22064,7 +22064,7 @@ const EL = (n) => {
|
|
|
22064
22064
|
subtree: !0
|
|
22065
22065
|
}, Ye = (de, Z, ye) => {
|
|
22066
22066
|
de.getAttribute(Z) !== ye && de.setAttribute(Z, ye);
|
|
22067
|
-
},
|
|
22067
|
+
}, qe = (de, Z) => {
|
|
22068
22068
|
de.toggleAttribute("internals-disabled", Z), Z ? Ye(de, "aria-disabled", "true") : de.removeAttribute("aria-disabled"), de.formDisabledCallback && de.formDisabledCallback.apply(de, [Z]);
|
|
22069
22069
|
}, Ge = (de) => {
|
|
22070
22070
|
l.get(de).forEach((Z) => {
|
|
@@ -22368,7 +22368,7 @@ const EL = (n) => {
|
|
|
22368
22368
|
if (Fe.formAssociated) {
|
|
22369
22369
|
const Ne = Fe.prototype.connectedCallback;
|
|
22370
22370
|
Fe.prototype.connectedCallback = function() {
|
|
22371
|
-
I.has(this) || (I.set(this, !0), this.hasAttribute("disabled") &&
|
|
22371
|
+
I.has(this) || (I.set(this, !0), this.hasAttribute("disabled") && qe(this, !0)), Ne != null && Ne.apply(this), wt(this);
|
|
22372
22372
|
};
|
|
22373
22373
|
}
|
|
22374
22374
|
Z.call(this, ye, Fe, _e);
|
|
@@ -22688,12 +22688,12 @@ let UL = class {
|
|
|
22688
22688
|
};
|
|
22689
22689
|
const UD = /* @__PURE__ */ new WeakMap(), Kt = lh(class extends zL {
|
|
22690
22690
|
render(n) {
|
|
22691
|
-
return
|
|
22691
|
+
return Ve;
|
|
22692
22692
|
}
|
|
22693
22693
|
update(n, [r]) {
|
|
22694
22694
|
var i;
|
|
22695
22695
|
const l = r !== this.G;
|
|
22696
|
-
return l && this.G !== void 0 && this.rt(void 0), (l || this.lt !== this.ct) && (this.G = r, this.ht = (i = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)),
|
|
22696
|
+
return l && this.G !== void 0 && this.rt(void 0), (l || this.lt !== this.ct) && (this.G = r, this.ht = (i = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)), Ve;
|
|
22697
22697
|
}
|
|
22698
22698
|
rt(n) {
|
|
22699
22699
|
if (this.isConnected || (n = void 0), typeof this.G == "function") {
|
|
@@ -22724,10 +22724,10 @@ function mA(n, r, i) {
|
|
|
22724
22724
|
*/
|
|
22725
22725
|
let pw = class extends rg {
|
|
22726
22726
|
constructor(r) {
|
|
22727
|
-
if (super(r), this.it =
|
|
22727
|
+
if (super(r), this.it = Ve, r.type !== nu.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
22728
22728
|
}
|
|
22729
22729
|
render(r) {
|
|
22730
|
-
if (r ===
|
|
22730
|
+
if (r === Ve || r == null) return this._t = void 0, this.it = r;
|
|
22731
22731
|
if (r === qo) return r;
|
|
22732
22732
|
if (typeof r != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
22733
22733
|
if (r === this.it) return this._t;
|
|
@@ -22875,12 +22875,12 @@ let ru = class extends Gr {
|
|
|
22875
22875
|
>
|
|
22876
22876
|
</pkt-button>
|
|
22877
22877
|
</div>
|
|
22878
|
-
` :
|
|
22879
|
-
${this.title ? be`<div class="pkt-alert__title">${this.title}</div>` :
|
|
22878
|
+
` : Ve}
|
|
22879
|
+
${this.title ? be`<div class="pkt-alert__title">${this.title}</div>` : Ve}
|
|
22880
22880
|
|
|
22881
22881
|
<div class="pkt-alert__text" ${Kt(this.defaultSlot)}></div>
|
|
22882
22882
|
|
|
22883
|
-
${this.date ? be`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` :
|
|
22883
|
+
${this.date ? be`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : Ve}
|
|
22884
22884
|
</div>
|
|
22885
22885
|
</div>
|
|
22886
22886
|
`;
|
|
@@ -23021,7 +23021,7 @@ const tB = kf;
|
|
|
23021
23021
|
* Copyright 2018 Google LLC
|
|
23022
23022
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23023
23023
|
*/
|
|
23024
|
-
const Tn = (n) => n ??
|
|
23024
|
+
const Tn = (n) => n ?? Ve;
|
|
23025
23025
|
var nB = Object.defineProperty, rB = Object.getOwnPropertyDescriptor, xw = (n, r, i, l) => {
|
|
23026
23026
|
for (var d = l > 1 ? void 0 : l ? rB(r, i) : r, h = n.length - 1, m; h >= 0; h--)
|
|
23027
23027
|
(m = n[h]) && (d = (l ? m(r, i, d) : m(d)) || d);
|
|
@@ -23094,10 +23094,10 @@ let qi = class extends Gr {
|
|
|
23094
23094
|
class="pkt-btn__icon pkt-btn__spinner"
|
|
23095
23095
|
name="spinner-blue"
|
|
23096
23096
|
path=${this.loadingAnimationPath}
|
|
23097
|
-
></pkt-icon>` :
|
|
23098
|
-
${this.variant !== "label-only" ? be`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` :
|
|
23097
|
+
></pkt-icon>` : Ve}
|
|
23098
|
+
${this.variant !== "label-only" ? be`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : Ve}
|
|
23099
23099
|
<span class="pkt-btn__text" ${Kt(this.defaultSlot)}></span>
|
|
23100
|
-
${this.variant === "icons-right-and-left" ? be`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` :
|
|
23100
|
+
${this.variant === "icons-right-and-left" ? be`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` : Ve}
|
|
23101
23101
|
</div>
|
|
23102
23102
|
`;
|
|
23103
23103
|
}
|
|
@@ -24699,7 +24699,7 @@ let lr = class extends Gr {
|
|
|
24699
24699
|
render() {
|
|
24700
24700
|
return be`
|
|
24701
24701
|
<div
|
|
24702
|
-
class="pkt-calendar ${this.weeknumbers ? "pkt-cal-weeknumbers" :
|
|
24702
|
+
class="pkt-calendar ${this.weeknumbers ? "pkt-cal-weeknumbers" : Ve}"
|
|
24703
24703
|
@focusout=${this.closeEvent}
|
|
24704
24704
|
@keydown=${(n) => {
|
|
24705
24705
|
n.key === "Escape" && (n.preventDefault(), this.close());
|
|
@@ -24714,7 +24714,7 @@ let lr = class extends Gr {
|
|
|
24714
24714
|
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), this.isNextMonthAllowed() && this.prevMonth());
|
|
24715
24715
|
}}
|
|
24716
24716
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isPrevMonthAllowed() ? "" : "pkt-hide"}"
|
|
24717
|
-
.data-disabled=${this.isPrevMonthAllowed() ?
|
|
24717
|
+
.data-disabled=${this.isPrevMonthAllowed() ? Ve : "disabled"}
|
|
24718
24718
|
?aria-disabled=${!this.isPrevMonthAllowed()}
|
|
24719
24719
|
tabindex=${this.isPrevMonthAllowed() ? "0" : "-1"}
|
|
24720
24720
|
>
|
|
@@ -24731,7 +24731,7 @@ let lr = class extends Gr {
|
|
|
24731
24731
|
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), this.isNextMonthAllowed() && this.nextMonth());
|
|
24732
24732
|
}}
|
|
24733
24733
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isNextMonthAllowed() ? "" : "pkt-hide"}"
|
|
24734
|
-
.data-disabled=${this.isNextMonthAllowed() ?
|
|
24734
|
+
.data-disabled=${this.isNextMonthAllowed() ? Ve : "disabled"}
|
|
24735
24735
|
?aria-disabled=${!this.isNextMonthAllowed()}
|
|
24736
24736
|
tabindex=${this.isNextMonthAllowed() ? "0" : "-1"}
|
|
24737
24737
|
>
|
|
@@ -24827,7 +24827,7 @@ let lr = class extends Gr {
|
|
|
24827
24827
|
}}
|
|
24828
24828
|
aria-label="${C}"
|
|
24829
24829
|
tabindex=${(l = this.selectableDates.find((R) => R.currentDateISO === h)) == null ? void 0 : l.tabindex}
|
|
24830
|
-
data-disabled=${T ? "disabled" :
|
|
24830
|
+
data-disabled=${T ? "disabled" : Ve}
|
|
24831
24831
|
data-date=${h}
|
|
24832
24832
|
@keydown=${(R) => {
|
|
24833
24833
|
(R.key === "Enter" || R.key === " ") && (R.preventDefault(), this.handleDateSelect(d));
|
|
@@ -25238,10 +25238,10 @@ let ja = class extends Gr {
|
|
|
25238
25238
|
>
|
|
25239
25239
|
${this.renderImage()}
|
|
25240
25240
|
<div class="pkt-card__wrapper">
|
|
25241
|
-
${this.tagPosition === "top" ? this.renderTags() :
|
|
25241
|
+
${this.tagPosition === "top" ? this.renderTags() : Ve}
|
|
25242
25242
|
${this.renderHeader()}
|
|
25243
25243
|
${this.renderSlot()}
|
|
25244
|
-
${this.tagPosition === "bottom" ? this.renderTags() :
|
|
25244
|
+
${this.tagPosition === "bottom" ? this.renderTags() : Ve}
|
|
25245
25245
|
${this.renderCreditline()}
|
|
25246
25246
|
</div>
|
|
25247
25247
|
</article>
|
|
@@ -25274,7 +25274,7 @@ let ja = class extends Gr {
|
|
|
25274
25274
|
>
|
|
25275
25275
|
${this.heading}
|
|
25276
25276
|
</pkt-heading>
|
|
25277
|
-
` :
|
|
25277
|
+
` : Ve}
|
|
25278
25278
|
`;
|
|
25279
25279
|
}
|
|
25280
25280
|
renderLinkHeading() {
|
|
@@ -25293,12 +25293,12 @@ let ja = class extends Gr {
|
|
|
25293
25293
|
>${this.heading}</a
|
|
25294
25294
|
>
|
|
25295
25295
|
</pkt-heading>
|
|
25296
|
-
` :
|
|
25296
|
+
` : Ve}
|
|
25297
25297
|
`;
|
|
25298
25298
|
}
|
|
25299
25299
|
renderSubheading() {
|
|
25300
25300
|
return be`
|
|
25301
|
-
${this.subheading ? be` <p class="pkt-card__subheading ">${this.subheading}</p> ` :
|
|
25301
|
+
${this.subheading ? be` <p class="pkt-card__subheading ">${this.subheading}</p> ` : Ve}
|
|
25302
25302
|
`;
|
|
25303
25303
|
}
|
|
25304
25304
|
// Render header
|
|
@@ -25312,7 +25312,7 @@ let ja = class extends Gr {
|
|
|
25312
25312
|
${this.renderLinkHeading()}
|
|
25313
25313
|
${this.renderSubheading()}
|
|
25314
25314
|
</header>
|
|
25315
|
-
` :
|
|
25315
|
+
` : Ve}
|
|
25316
25316
|
`;
|
|
25317
25317
|
}
|
|
25318
25318
|
renderTags() {
|
|
@@ -25341,7 +25341,7 @@ let ja = class extends Gr {
|
|
|
25341
25341
|
`
|
|
25342
25342
|
)}
|
|
25343
25343
|
</div>
|
|
25344
|
-
` :
|
|
25344
|
+
` : Ve}
|
|
25345
25345
|
`;
|
|
25346
25346
|
}
|
|
25347
25347
|
renderSlot() {
|
|
@@ -25353,10 +25353,10 @@ let ja = class extends Gr {
|
|
|
25353
25353
|
return be`
|
|
25354
25354
|
${this.author || this.date ? be`
|
|
25355
25355
|
<footer class="pkt-card__creditline">
|
|
25356
|
-
${this.author ? be`<span class="pkt-card__creditline-author">${this.author}</span>` :
|
|
25357
|
-
${this.date ? be`<span class="pkt-card__creditline-date">${this.date}</span>` :
|
|
25356
|
+
${this.author ? be`<span class="pkt-card__creditline-author">${this.author}</span>` : Ve}
|
|
25357
|
+
${this.date ? be`<span class="pkt-card__creditline-date">${this.date}</span>` : Ve}
|
|
25358
25358
|
</footer>
|
|
25359
|
-
` :
|
|
25359
|
+
` : Ve}
|
|
25360
25360
|
`;
|
|
25361
25361
|
}
|
|
25362
25362
|
};
|
|
@@ -25797,7 +25797,7 @@ let wf = class extends Gr {
|
|
|
25797
25797
|
>
|
|
25798
25798
|
${nw(this.helptextDropdown)}
|
|
25799
25799
|
</div>
|
|
25800
|
-
</div>` :
|
|
25800
|
+
</div>` : Ve;
|
|
25801
25801
|
return be`${be`<div class="pkt-inputwrapper__helptext-container">
|
|
25802
25802
|
<div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
|
|
25803
25803
|
<div class="pkt-contents" ${Kt(this.defaultSlot)} name="helptext"></div>
|
|
@@ -25852,9 +25852,9 @@ let Sr = class extends Gr {
|
|
|
25852
25852
|
"pkt-tag--thin-text": !0,
|
|
25853
25853
|
"pkt-tag--blue-light": this.optionalTag,
|
|
25854
25854
|
"pkt-tag--beige": !this.optionalTag && this.requiredTag
|
|
25855
|
-
}, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` :
|
|
25856
|
-
>${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText :
|
|
25857
|
-
>` :
|
|
25855
|
+
}, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : Ve, d = () => this.optionalTag || this.requiredTag ? be`<span class=${Mt(i)}
|
|
25856
|
+
>${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : Ve}</span
|
|
25857
|
+
>` : Ve, h = () => this.useWrapper ? this.hasFieldset ? be`<legend
|
|
25858
25858
|
class="pkt-inputwrapper__legend"
|
|
25859
25859
|
id="${this.forId}-label"
|
|
25860
25860
|
@click=${this.handleLabelClick}
|
|
@@ -25874,7 +25874,7 @@ let Sr = class extends Gr {
|
|
|
25874
25874
|
id="${this.forId}-label"
|
|
25875
25875
|
>
|
|
25876
25876
|
${this.label}
|
|
25877
|
-
</label>`, m = () => !this.helptext && !this.hasHelptextSlot && !this.helptextDropdown ?
|
|
25877
|
+
</label>`, m = () => !this.helptext && !this.hasHelptextSlot && !this.helptextDropdown ? Ve : be`
|
|
25878
25878
|
<pkt-helptext
|
|
25879
25879
|
.forId=${this.forId}
|
|
25880
25880
|
.helptext=${this.helptext}
|
|
@@ -25887,9 +25887,9 @@ let Sr = class extends Gr {
|
|
|
25887
25887
|
name="helptext"
|
|
25888
25888
|
></pkt-helptext>
|
|
25889
25889
|
`, D = () => this.counter ? be`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
25890
|
-
${this.counterError ? this.counterError :
|
|
25891
|
-
${this.counterMaxLength ? `/${this.counterMaxLength}` :
|
|
25892
|
-
</div>` :
|
|
25890
|
+
${this.counterError ? this.counterError : Ve} ${this.counterCurrent || 0}
|
|
25891
|
+
${this.counterMaxLength ? `/${this.counterMaxLength}` : Ve}
|
|
25892
|
+
</div>` : Ve, C = () => this.hasError && this.errorMessage ? be`<div
|
|
25893
25893
|
role="alert"
|
|
25894
25894
|
class="pkt-alert pkt-alert--error pkt-alert--compact"
|
|
25895
25895
|
aria-live="assertive"
|
|
@@ -25898,11 +25898,11 @@ let Sr = class extends Gr {
|
|
|
25898
25898
|
>
|
|
25899
25899
|
<pkt-icon name="alert-error" class="pkt-alert__icon"></pkt-icon>
|
|
25900
25900
|
<div class="pkt-alert__text">${nw(this.errorMessage)}</div>
|
|
25901
|
-
</div>` :
|
|
25901
|
+
</div>` : Ve, T = () => be`
|
|
25902
25902
|
${h()} ${m()}
|
|
25903
|
-
${this.counterPosition === "top" ? D() :
|
|
25903
|
+
${this.counterPosition === "top" ? D() : Ve}
|
|
25904
25904
|
<div class="pkt-contents" ${Kt(this.defaultSlot)}></div>
|
|
25905
|
-
${this.counterPosition === "bottom" ? D() :
|
|
25905
|
+
${this.counterPosition === "bottom" ? D() : Ve} ${C()}
|
|
25906
25906
|
`, $ = () => this.hasFieldset ? be`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${l}">
|
|
25907
25907
|
${T()}
|
|
25908
25908
|
</fieldset>` : be`<div class="pkt-inputwrapper__fieldset">${T()}</div>`;
|
|
@@ -26051,7 +26051,7 @@ let yi = class extends Gr {
|
|
|
26051
26051
|
aria-labelledby=${this.id + "-option-label-" + i}
|
|
26052
26052
|
?disabled=${this.disabled || r.disabled || this.maxIsReached && !r.selected}
|
|
26053
26053
|
/>
|
|
26054
|
-
` : r.selected ? be`<pkt-icon name="check-big"></pkt-icon>` :
|
|
26054
|
+
` : r.selected ? be`<pkt-icon name="check-big"></pkt-icon>` : Ve;
|
|
26055
26055
|
}
|
|
26056
26056
|
renderList() {
|
|
26057
26057
|
return be`
|
|
@@ -26080,12 +26080,12 @@ let yi = class extends Gr {
|
|
|
26080
26080
|
>
|
|
26081
26081
|
${this.renderCheckboxOrCheckIcon(r, i)}
|
|
26082
26082
|
<span class="pkt-listbox__option-label" id=${this.id + "-option-label-" + i}>
|
|
26083
|
-
${r.prefix ? be`<span class="pkt-listbox__option-prefix">${r.prefix}</span>` :
|
|
26083
|
+
${r.prefix ? be`<span class="pkt-listbox__option-prefix">${r.prefix}</span>` : Ve}
|
|
26084
26084
|
${r.label || r.value}
|
|
26085
26085
|
</span>
|
|
26086
26086
|
${r.description ? be`<span class="pkt-listbox__option-description pkt-txt-14-light"
|
|
26087
26087
|
>${r.description}</span
|
|
26088
|
-
>` :
|
|
26088
|
+
>` : Ve}
|
|
26089
26089
|
</li>
|
|
26090
26090
|
`
|
|
26091
26091
|
)}
|
|
@@ -26107,14 +26107,14 @@ let yi = class extends Gr {
|
|
|
26107
26107
|
<pkt-icon class="pkt-listbox__banner-icon" name="plus-sign" size="large"></pkt-icon>
|
|
26108
26108
|
Legg til “${this.customUserInput}”
|
|
26109
26109
|
</div>
|
|
26110
|
-
` :
|
|
26110
|
+
` : Ve;
|
|
26111
26111
|
}
|
|
26112
26112
|
renderMaximumReachedBanner() {
|
|
26113
26113
|
return this._selectedOptions = this.options.filter((r) => r.selected).length, this.isMultiSelect && this._selectedOptions > 0 && this.maxLength > 0 ? be`
|
|
26114
26114
|
<div class="pkt-listbox__banner pkt-listbox__banner--maximum-reached">
|
|
26115
26115
|
${this._selectedOptions} av maks ${this.maxLength} mulige er valgt.
|
|
26116
26116
|
</div>
|
|
26117
|
-
` :
|
|
26117
|
+
` : Ve;
|
|
26118
26118
|
}
|
|
26119
26119
|
renderUserMessage() {
|
|
26120
26120
|
return this.userMessage ? be`<div class="pkt-listbox__banner pkt-listbox__banner--user-message">
|
|
@@ -26124,7 +26124,7 @@ let yi = class extends Gr {
|
|
|
26124
26124
|
size="large"
|
|
26125
26125
|
></pkt-icon>
|
|
26126
26126
|
${this.userMessage}
|
|
26127
|
-
</div>` :
|
|
26127
|
+
</div>` : Ve;
|
|
26128
26128
|
}
|
|
26129
26129
|
renderSearch() {
|
|
26130
26130
|
return this.includeSearch ? be`
|
|
@@ -26147,7 +26147,7 @@ let yi = class extends Gr {
|
|
|
26147
26147
|
role="searchbox"
|
|
26148
26148
|
/>
|
|
26149
26149
|
</div>
|
|
26150
|
-
` :
|
|
26150
|
+
` : Ve;
|
|
26151
26151
|
}
|
|
26152
26152
|
// Event handlers
|
|
26153
26153
|
handleSearchInput(r) {
|
|
@@ -26435,7 +26435,7 @@ let na = class extends fn {
|
|
|
26435
26435
|
tabindex="-1"
|
|
26436
26436
|
@click=${this.handleInputClick}
|
|
26437
26437
|
>
|
|
26438
|
-
${this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ? be`<span class="pkt-combobox__placeholder">${this.placeholder}</span>` : this.tagPlacement !== "outside" ? this.renderSingleOrMultipleValues() :
|
|
26438
|
+
${this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ? be`<span class="pkt-combobox__placeholder">${this.placeholder}</span>` : this.tagPlacement !== "outside" ? this.renderSingleOrMultipleValues() : Ve}
|
|
26439
26439
|
${this.renderInputField()}
|
|
26440
26440
|
<div
|
|
26441
26441
|
class="pkt-btn pkt-btn--tertiary pkt-combobox__arrow"
|
|
@@ -26487,7 +26487,7 @@ let na = class extends fn {
|
|
|
26487
26487
|
|
|
26488
26488
|
${this.tagPlacement === "outside" && this.multiple ? be`<div class="pkt-combobox__tags-outside">
|
|
26489
26489
|
${this.renderSingleOrMultipleValues()}
|
|
26490
|
-
</div>` :
|
|
26490
|
+
</div>` : Ve}
|
|
26491
26491
|
</pkt-input-wrapper>
|
|
26492
26492
|
`;
|
|
26493
26493
|
}
|
|
@@ -27026,13 +27026,13 @@ let il = class extends fn {
|
|
|
27026
27026
|
}), d = () => be`
|
|
27027
27027
|
<label class=${l} for=${this.id + "-internal"}>
|
|
27028
27028
|
${this.label}
|
|
27029
|
-
${this.checkHelptext ? be`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` :
|
|
27029
|
+
${this.checkHelptext ? be`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : Ve}
|
|
27030
27030
|
</label>
|
|
27031
27031
|
`;
|
|
27032
27032
|
return be`
|
|
27033
27033
|
<div class="pkt-input-check">
|
|
27034
27034
|
<div class=${r}>
|
|
27035
|
-
${this.labelPosition === "left" ? d() :
|
|
27035
|
+
${this.labelPosition === "left" ? d() : Ve}
|
|
27036
27036
|
<input
|
|
27037
27037
|
id=${this.id + "-internal"}
|
|
27038
27038
|
class=${i}
|
|
@@ -27046,7 +27046,7 @@ let il = class extends fn {
|
|
|
27046
27046
|
?checked=${this.checked}
|
|
27047
27047
|
role=${this.isSwitch ? "switch" : "checkbox"}
|
|
27048
27048
|
/>
|
|
27049
|
-
${this.labelPosition === "right" ? d() :
|
|
27049
|
+
${this.labelPosition === "right" ? d() : Ve}
|
|
27050
27050
|
</div>
|
|
27051
27051
|
</div>
|
|
27052
27052
|
`;
|
|
@@ -27202,7 +27202,7 @@ let ra = class extends fn {
|
|
|
27202
27202
|
"pkt-hide": !this.showRangeLabels
|
|
27203
27203
|
};
|
|
27204
27204
|
return be`
|
|
27205
|
-
${this.showRangeLabels ? be` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` :
|
|
27205
|
+
${this.showRangeLabels ? be` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : Ve}
|
|
27206
27206
|
<input
|
|
27207
27207
|
class=${Mt(this.inputClasses)}
|
|
27208
27208
|
.type=${this.inputType}
|
|
@@ -27243,7 +27243,7 @@ let ra = class extends fn {
|
|
|
27243
27243
|
<div class="${Mt(r)}" id="${this.id}-to-label">
|
|
27244
27244
|
${this.strings.generic.to}
|
|
27245
27245
|
</div>
|
|
27246
|
-
${this.showRangeLabels ?
|
|
27246
|
+
${this.showRangeLabels ? Ve : be` <div class="pkt-input-separator">–</div> `}
|
|
27247
27247
|
<input
|
|
27248
27248
|
class=${Mt(this.inputClasses)}
|
|
27249
27249
|
.type=${this.inputType}
|
|
@@ -27351,7 +27351,7 @@ let ra = class extends fn {
|
|
|
27351
27351
|
><time datetime="${r}">${qE(r, this.dateformat)}</time></pkt-tag
|
|
27352
27352
|
>
|
|
27353
27353
|
`
|
|
27354
|
-
) :
|
|
27354
|
+
) : Ve}
|
|
27355
27355
|
</div>
|
|
27356
27356
|
`;
|
|
27357
27357
|
}
|
|
@@ -27425,7 +27425,7 @@ let ra = class extends fn {
|
|
|
27425
27425
|
class="pkt-datepicker"
|
|
27426
27426
|
>
|
|
27427
27427
|
<div class="pkt-contents" ${Kt(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
27428
|
-
${this.multiple ? this.renderTags() :
|
|
27428
|
+
${this.multiple ? this.renderTags() : Ve}
|
|
27429
27429
|
<div
|
|
27430
27430
|
class="pkt-datepicker__inputs ${this.range && this.showRangeLabels ? "pkt-input__range-inputs" : ""}"
|
|
27431
27431
|
>
|
|
@@ -27617,7 +27617,7 @@ let Sf = class extends Gr {
|
|
|
27617
27617
|
class=${Mt(r)}
|
|
27618
27618
|
href=${this.href}
|
|
27619
27619
|
.target=${this.target}
|
|
27620
|
-
.rel=${this.external ? "noopener noreferrer" :
|
|
27620
|
+
.rel=${this.external ? "noopener noreferrer" : Ve}
|
|
27621
27621
|
>${this.iconName ? be`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${Kt(this.defaultSlot)}>Link</span></a
|
|
27622
27622
|
>`;
|
|
27623
27623
|
}
|
|
@@ -27720,7 +27720,7 @@ let iu = class extends Gr {
|
|
|
27720
27720
|
class="pkt-loader__svg pkt-loader__${this.variant}"
|
|
27721
27721
|
></pkt-icon>
|
|
27722
27722
|
${this.message && be`<p>${this.message}</p>`}
|
|
27723
|
-
</div>` :
|
|
27723
|
+
</div>` : Ve}
|
|
27724
27724
|
<div class=${r} ${Kt(this.defaultSlot)}></div>
|
|
27725
27725
|
</div>`;
|
|
27726
27726
|
}
|
|
@@ -27812,8 +27812,8 @@ let Cf = class extends Gr {
|
|
|
27812
27812
|
>
|
|
27813
27813
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
27814
27814
|
</button>
|
|
27815
|
-
</div>` :
|
|
27816
|
-
${this.title ? be`<div class="pkt-messagebox__title">${this.title}</div>` :
|
|
27815
|
+
</div>` : Ve}
|
|
27816
|
+
${this.title ? be`<div class="pkt-messagebox__title">${this.title}</div>` : Ve}
|
|
27817
27817
|
<div class="pkt-messagebox__text" ${Kt(this.defaultSlot)}></div>
|
|
27818
27818
|
</div>`;
|
|
27819
27819
|
}
|
|
@@ -27938,7 +27938,7 @@ let ws = class extends Gr {
|
|
|
27938
27938
|
${this.headingText ? be`<h1 id="pkt-modal__headingText" class=${Mt(i)}>
|
|
27939
27939
|
${this.headingText}
|
|
27940
27940
|
</h1>` : be`<div class="pkt-modal__headingText"></div>`}
|
|
27941
|
-
${this.hideCloseButton ?
|
|
27941
|
+
${this.hideCloseButton ? be`<div class="pkt-modal__noCloseButton"></div>` : be`<div class="${Mt(h)}">
|
|
27942
27942
|
<pkt-button
|
|
27943
27943
|
@click=${(D) => this.close(D)}
|
|
27944
27944
|
class=${Mt(m)}
|
|
@@ -27949,7 +27949,7 @@ let ws = class extends Gr {
|
|
|
27949
27949
|
Lukk
|
|
27950
27950
|
</pkt-button>
|
|
27951
27951
|
</div>`}
|
|
27952
|
-
</div>` :
|
|
27952
|
+
</div>` : Ve}
|
|
27953
27953
|
<div class="pkt-modal__container">
|
|
27954
27954
|
<div
|
|
27955
27955
|
id="pkt-modal__content"
|
|
@@ -28064,7 +28064,7 @@ let da = class extends Gr {
|
|
|
28064
28064
|
"--pkt-progress-width": `${l}%`
|
|
28065
28065
|
})}
|
|
28066
28066
|
>
|
|
28067
|
-
${this.title ? be`<p id=${`${this.progressBarId}-title`} class=${m}>${this.title}</p>` :
|
|
28067
|
+
${this.title ? be`<p id=${`${this.progressBarId}-title`} class=${m}>${this.title}</p>` : Ve}
|
|
28068
28068
|
|
|
28069
28069
|
<div class="pkt-progressbar__bar-wrapper">
|
|
28070
28070
|
<div class=${h}></div>
|
|
@@ -28074,7 +28074,7 @@ let da = class extends Gr {
|
|
|
28074
28074
|
<span class=${C} ${Kt(this.labelRef)}>
|
|
28075
28075
|
${this.statusType === "percentage" ? `${l}%` : d}
|
|
28076
28076
|
</span>
|
|
28077
|
-
</div>` :
|
|
28077
|
+
</div>` : Ve}
|
|
28078
28078
|
</div>`;
|
|
28079
28079
|
}
|
|
28080
28080
|
// methods
|
|
@@ -28192,7 +28192,7 @@ let ac = class extends fn {
|
|
|
28192
28192
|
/>
|
|
28193
28193
|
<label class="pkt-input-check__input-label" for=${this.id + "-internal"}>
|
|
28194
28194
|
${this.label}
|
|
28195
|
-
${this.checkHelptext ? be`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` :
|
|
28195
|
+
${this.checkHelptext ? be`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : Ve}
|
|
28196
28196
|
</label>
|
|
28197
28197
|
</div>
|
|
28198
28198
|
</div>
|
|
@@ -28240,7 +28240,7 @@ const kI = lh(class extends rg {
|
|
|
28240
28240
|
return n;
|
|
28241
28241
|
}
|
|
28242
28242
|
update(n, [r]) {
|
|
28243
|
-
if (r === qo || r ===
|
|
28243
|
+
if (r === qo || r === Ve) return r;
|
|
28244
28244
|
const i = n.element, l = n.name;
|
|
28245
28245
|
if (n.type === nu.PROPERTY) {
|
|
28246
28246
|
if (r === i[l]) return qo;
|
|
@@ -28390,7 +28390,7 @@ let ol = class extends fn {
|
|
|
28390
28390
|
>
|
|
28391
28391
|
<div class="pkt-contents" ${Kt(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
28392
28392
|
<div class="pkt-input__container">
|
|
28393
|
-
${this.prefix ? be`<div class="pkt-input-prefix">${this.prefix}</div>` :
|
|
28393
|
+
${this.prefix ? be`<div class="pkt-input-prefix">${this.prefix}</div>` : Ve}
|
|
28394
28394
|
<input
|
|
28395
28395
|
${Kt(this.inputRef)}
|
|
28396
28396
|
class=${i}
|
|
@@ -28403,7 +28403,7 @@ let ol = class extends fn {
|
|
|
28403
28403
|
minlength=${Tn(this.minlength)}
|
|
28404
28404
|
maxlength=${Tn(this.maxlength)}
|
|
28405
28405
|
?readonly=${this.readonly}
|
|
28406
|
-
size=${this.size ||
|
|
28406
|
+
size=${this.size || Ve}
|
|
28407
28407
|
.value=${this.value}
|
|
28408
28408
|
?disabled=${this.disabled}
|
|
28409
28409
|
aria-invalid=${this.hasError}
|
|
@@ -28433,14 +28433,14 @@ let ol = class extends fn {
|
|
|
28433
28433
|
${this.iconNameRight ? be`<pkt-icon
|
|
28434
28434
|
class="pkt-input-suffix-icon"
|
|
28435
28435
|
name=${this.iconNameRight}
|
|
28436
|
-
></pkt-icon>` :
|
|
28436
|
+
></pkt-icon>` : Ve}
|
|
28437
28437
|
${r ? be`<pkt-icon
|
|
28438
28438
|
class="pkt-input-suffix-icon"
|
|
28439
28439
|
name="magnifying-glass-big"
|
|
28440
|
-
></pkt-icon>` :
|
|
28441
|
-
</div>` :
|
|
28442
|
-
${!this.suffix && this.iconNameRight ? be`<pkt-icon class="pkt-input-icon" name=${this.iconNameRight}></pkt-icon>` :
|
|
28443
|
-
${!this.suffix && r ? be`<pkt-icon class="pkt-input-icon" name="magnifying-glass-big"></pkt-icon>` :
|
|
28440
|
+
></pkt-icon>` : Ve}
|
|
28441
|
+
</div>` : Ve}
|
|
28442
|
+
${!this.suffix && this.iconNameRight ? be`<pkt-icon class="pkt-input-icon" name=${this.iconNameRight}></pkt-icon>` : Ve}
|
|
28443
|
+
${!this.suffix && r ? be`<pkt-icon class="pkt-input-icon" name="magnifying-glass-big"></pkt-icon>` : Ve}
|
|
28444
28444
|
</div>
|
|
28445
28445
|
</pkt-input-wrapper>
|
|
28446
28446
|
`;
|
|
@@ -29072,7 +29072,7 @@ const ou = /* @__PURE__ */ Dw(UI), JH = Ir(
|
|
|
29072
29072
|
Ht.useEffect(() => (document && (document.addEventListener("mouseup", Ge), window.addEventListener("scroll", tt)), () => {
|
|
29073
29073
|
document && (document.removeEventListener("mouseup", Ge), window.removeEventListener("scroll", tt));
|
|
29074
29074
|
}));
|
|
29075
|
-
const
|
|
29075
|
+
const qe = () => {
|
|
29076
29076
|
ke(!Te);
|
|
29077
29077
|
}, Ge = (Ue) => {
|
|
29078
29078
|
Ye.current && !Ye.current.contains(Ue.target) && ke(!1);
|
|
@@ -29153,7 +29153,7 @@ const ou = /* @__PURE__ */ Dw(UI), JH = Ir(
|
|
|
29153
29153
|
role: "button",
|
|
29154
29154
|
"aria-controls": "pktUserDropdown",
|
|
29155
29155
|
"aria-expanded": Te,
|
|
29156
|
-
onClick:
|
|
29156
|
+
onClick: qe,
|
|
29157
29157
|
children: [
|
|
29158
29158
|
/* @__PURE__ */ L.jsx($r, { name: "user", className: "pkt-btn__icon" }),
|
|
29159
29159
|
/* @__PURE__ */ L.jsx("span", { className: "pkt-header__user-fullname", translate: "no", children: (D == null ? void 0 : D.name) || (h == null ? void 0 : h.name) }),
|
|
@@ -29547,7 +29547,7 @@ function d4() {
|
|
|
29547
29547
|
}
|
|
29548
29548
|
}
|
|
29549
29549
|
}
|
|
29550
|
-
var ae = N, ce = $, Te = h, ke = B, Ye = D,
|
|
29550
|
+
var ae = N, ce = $, Te = h, ke = B, Ye = D, qe = Ce, Ge = Y, tt = m, Ue = T, ct = C, Be = I, Oe = K, fe = !1, Re = !1;
|
|
29551
29551
|
function xe(rt) {
|
|
29552
29552
|
return fe || (fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
29553
29553
|
}
|
|
@@ -29590,7 +29590,7 @@ function d4() {
|
|
|
29590
29590
|
function Rt(rt) {
|
|
29591
29591
|
return q(rt) === K;
|
|
29592
29592
|
}
|
|
29593
|
-
tr.ContextConsumer = ae, tr.ContextProvider = ce, tr.Element = Te, tr.ForwardRef = ke, tr.Fragment = Ye, tr.Lazy =
|
|
29593
|
+
tr.ContextConsumer = ae, tr.ContextProvider = ce, tr.Element = Te, tr.ForwardRef = ke, tr.Fragment = Ye, tr.Lazy = qe, tr.Memo = Ge, tr.Portal = tt, tr.Profiler = Ue, tr.StrictMode = ct, tr.Suspense = Be, tr.SuspenseList = Oe, tr.isAsyncMode = xe, tr.isConcurrentMode = Q, tr.isContextConsumer = he, tr.isContextProvider = it, tr.isElement = nt, tr.isForwardRef = wt, tr.isFragment = pt, tr.isLazy = yt, tr.isMemo = gt, tr.isPortal = Nt, tr.isProfiler = un, tr.isStrictMode = Zt, tr.isSuspense = Wn, tr.isSuspenseList = Rt, tr.isValidElementType = re, tr.typeOf = q;
|
|
29594
29594
|
}()), tr;
|
|
29595
29595
|
}
|
|
29596
29596
|
process.env.NODE_ENV === "production" ? hS.exports = c4() : hS.exports = d4();
|
|
@@ -29828,8 +29828,8 @@ var R4 = function(r, i, l, d, h) {
|
|
|
29828
29828
|
});
|
|
29829
29829
|
var ce = P4(K)(q);
|
|
29830
29830
|
if (ce.forEach(function(ke) {
|
|
29831
|
-
var Ye = A4(ke, Object.keys(T).includes(ke), T[ke], Object.keys(N).includes(ke), N[ke], r, i, l),
|
|
29832
|
-
tt && (re = !0), J +=
|
|
29831
|
+
var Ye = A4(ke, Object.keys(T).includes(ke), T[ke], Object.keys(N).includes(ke), N[ke], r, i, l), qe = Ye.attributeFormattedInline, Ge = Ye.attributeFormattedMultiline, tt = Ye.isMultilineAttribute;
|
|
29832
|
+
tt && (re = !0), J += qe, G += Ge;
|
|
29833
29833
|
}), G += `
|
|
29834
29834
|
`.concat(ld(i, Y)), B4(ce, J, re, r, i, Y, B) ? Ce = G : Ce = J, D && D.length > 0) {
|
|
29835
29835
|
var Te = i + 1;
|
|
@@ -30841,8 +30841,8 @@ function Rw(n, r) {
|
|
|
30841
30841
|
ce ? m.push(Te, q) : m.push(ke, ae);
|
|
30842
30842
|
break;
|
|
30843
30843
|
}
|
|
30844
|
-
let Ye = Ce[Y + 2],
|
|
30845
|
-
Qk({ ind: R, mode: nc, doc: [G, re, Ye] }, [], K, T.length > 0, i, !0) ? m.push(
|
|
30844
|
+
let Ye = Ce[Y + 2], qe = { ind: R, mode: B, doc: { ...I, [DS]: Y + 2 } };
|
|
30845
|
+
Qk({ ind: R, mode: nc, doc: [G, re, Ye] }, [], K, T.length > 0, i, !0) ? m.push(qe, Te, q) : ce ? m.push(qe, ke, q) : m.push(qe, ke, ae);
|
|
30846
30846
|
break;
|
|
30847
30847
|
}
|
|
30848
30848
|
case ks:
|
|
@@ -32248,7 +32248,7 @@ var c5 = Xp(aF, 0), d5 = { parse: Xp(A6), formatAST: Xp(F6), formatDoc: Xp($6),
|
|
|
32248
32248
|
C(Y, { languages: () => kc, options: () => kg, parsers: () => Yf, printers: () => Lr });
|
|
32249
32249
|
var Ce = (f, g, k, x) => {
|
|
32250
32250
|
if (!(f && g == null)) return g.replaceAll ? g.replaceAll(k, x) : k.global ? g.replace(k, x) : g.split(k).join(x);
|
|
32251
|
-
}, J = Ce, G = "string", re = "array", q = "cursor", ae = "indent", ce = "align", Te = "trim", ke = "group", Ye = "fill",
|
|
32251
|
+
}, J = Ce, G = "string", re = "array", q = "cursor", ae = "indent", ce = "align", Te = "trim", ke = "group", Ye = "fill", qe = "if-break", Ge = "indent-if-break", tt = "line-suffix", Ue = "line-suffix-boundary", ct = "line", Be = "label", Oe = "break-parent", fe = /* @__PURE__ */ new Set([q, ae, ce, Te, ke, Ye, qe, Ge, tt, Ue, ct, Be, Oe]), Re = (f, g, k) => {
|
|
32252
32252
|
if (!(f && g == null)) return Array.isArray(g) || typeof g == "string" ? g[k < 0 ? g.length + k : k] : g.at(k);
|
|
32253
32253
|
}, xe = Re;
|
|
32254
32254
|
function Q(f) {
|
|
@@ -32292,7 +32292,7 @@ Expected it to be ${x}.`;
|
|
|
32292
32292
|
return g(M.map(x));
|
|
32293
32293
|
case Ye:
|
|
32294
32294
|
return g({ ...M, parts: M.parts.map(x) });
|
|
32295
|
-
case
|
|
32295
|
+
case qe:
|
|
32296
32296
|
return g({ ...M, breakContents: x(M.breakContents), flatContents: x(M.flatContents) });
|
|
32297
32297
|
case ke: {
|
|
32298
32298
|
let { expandedStates: U, contents: ve } = M;
|
|
@@ -32341,7 +32341,7 @@ Expected it to be ${x}.`;
|
|
|
32341
32341
|
return { type: Ye, parts: f };
|
|
32342
32342
|
}
|
|
32343
32343
|
function gr(f, g = "", k = {}) {
|
|
32344
|
-
return { type:
|
|
32344
|
+
return { type: qe, breakContents: f, flatContents: g, groupId: k.groupId };
|
|
32345
32345
|
}
|
|
32346
32346
|
function Yi(f, g) {
|
|
32347
32347
|
return { type: Ge, contents: f, groupId: g.groupId, negate: g.negate };
|
|
@@ -35167,19 +35167,19 @@ function P5(n, r, i, l, d, h, m, D, C) {
|
|
|
35167
35167
|
if (Te) {
|
|
35168
35168
|
var ke = ce.split(`
|
|
35169
35169
|
`);
|
|
35170
|
-
ke.forEach(function(Ye,
|
|
35170
|
+
ke.forEach(function(Ye, qe) {
|
|
35171
35171
|
var Ge = l && N.length + h, tt = {
|
|
35172
35172
|
type: "text",
|
|
35173
35173
|
value: "".concat(Ye, `
|
|
35174
35174
|
`)
|
|
35175
35175
|
};
|
|
35176
|
-
if (
|
|
35176
|
+
if (qe === 0) {
|
|
35177
35177
|
var Ue = $.slice(R + 1, B).concat(lw({
|
|
35178
35178
|
children: [tt],
|
|
35179
35179
|
className: ae.properties.className
|
|
35180
35180
|
})), ct = Y(Ue, Ge);
|
|
35181
35181
|
N.push(ct);
|
|
35182
|
-
} else if (
|
|
35182
|
+
} else if (qe === ke.length - 1) {
|
|
35183
35183
|
var Be = $[B + 1] && $[B + 1].children && $[B + 1].children[0], Oe = {
|
|
35184
35184
|
type: "text",
|
|
35185
35185
|
value: "".concat(Ye)
|
|
@@ -35252,7 +35252,7 @@ function O5(n, r) {
|
|
|
35252
35252
|
var d = l.language, h = l.children, m = l.style, D = m === void 0 ? r : m, C = l.customStyle, T = C === void 0 ? {} : C, $ = l.codeTagProps, N = $ === void 0 ? {
|
|
35253
35253
|
className: d ? "language-".concat(d) : void 0,
|
|
35254
35254
|
style: vf(vf({}, D['code[class*="language-"]']), D['code[class*="language-'.concat(d, '"]')])
|
|
35255
|
-
} : $, R = l.useInlineStyles, B = R === void 0 ? !0 : R, I = l.showLineNumbers, K = I === void 0 ? !1 : I, Y = l.showInlineLineNumbers, Ce = Y === void 0 ? !0 : Y, J = l.startingLineNumber, G = J === void 0 ? 1 : J, re = l.lineNumberContainerStyle, q = l.lineNumberStyle, ae = q === void 0 ? {} : q, ce = l.wrapLines, Te = l.wrapLongLines, ke = Te === void 0 ? !1 : Te, Ye = l.lineProps,
|
|
35255
|
+
} : $, R = l.useInlineStyles, B = R === void 0 ? !0 : R, I = l.showLineNumbers, K = I === void 0 ? !1 : I, Y = l.showInlineLineNumbers, Ce = Y === void 0 ? !0 : Y, J = l.startingLineNumber, G = J === void 0 ? 1 : J, re = l.lineNumberContainerStyle, q = l.lineNumberStyle, ae = q === void 0 ? {} : q, ce = l.wrapLines, Te = l.wrapLongLines, ke = Te === void 0 ? !1 : Te, Ye = l.lineProps, qe = Ye === void 0 ? {} : Ye, Ge = l.renderer, tt = l.PreTag, Ue = tt === void 0 ? "pre" : tt, ct = l.CodeTag, Be = ct === void 0 ? "code" : ct, Oe = l.code, fe = Oe === void 0 ? (Array.isArray(h) ? h[0] : h) || "" : Oe, Re = l.astGenerator, xe = h5(l, _5);
|
|
35256
35256
|
Re = Re || n;
|
|
35257
35257
|
var Q = K ? /* @__PURE__ */ Ht.createElement(F5, {
|
|
35258
35258
|
containerStyle: re,
|
|
@@ -35288,7 +35288,7 @@ function O5(n, r) {
|
|
|
35288
35288
|
var yt = pt.value.length;
|
|
35289
35289
|
yt === 1 && pt.value[0].type === "text" && (yt = pt.value[0].value.split(`
|
|
35290
35290
|
`).length);
|
|
35291
|
-
var gt = yt + G, Nt = P5(pt, ce,
|
|
35291
|
+
var gt = yt + G, Nt = P5(pt, ce, qe, K, Ce, G, gt, ae, ke);
|
|
35292
35292
|
return /* @__PURE__ */ Ht.createElement(Ue, nt, /* @__PURE__ */ Ht.createElement(Be, N, !Ce && Q, Ge({
|
|
35293
35293
|
rows: Nt,
|
|
35294
35294
|
stylesheet: D,
|
|
@@ -36142,7 +36142,7 @@ function TU(n, r) {
|
|
|
36142
36142
|
return (i.position.indent || i.position.start) && (i.indent = i.position.indent || [], i.position = i.position.start), AU(n, i);
|
|
36143
36143
|
}
|
|
36144
36144
|
function AU(n, r) {
|
|
36145
|
-
var i = r.additional, l = r.nonTerminated, d = r.text, h = r.reference, m = r.warning, D = r.textContext, C = r.referenceContext, T = r.warningContext, $ = r.position, N = r.indent || [], R = n.length, B = 0, I = -1, K = $.column || 1, Y = $.line || 1, Ce = "", J = [], G, re, q, ae, ce, Te, ke, Ye,
|
|
36145
|
+
var i = r.additional, l = r.nonTerminated, d = r.text, h = r.reference, m = r.warning, D = r.textContext, C = r.referenceContext, T = r.warningContext, $ = r.position, N = r.indent || [], R = n.length, B = 0, I = -1, K = $.column || 1, Y = $.line || 1, Ce = "", J = [], G, re, q, ae, ce, Te, ke, Ye, qe, Ge, tt, Ue, ct, Be, Oe, fe, Re, xe, Q;
|
|
36146
36146
|
for (typeof i == "string" && (i = i.charCodeAt(0)), fe = he(), Ye = m ? it : vU, B--, R++; ++B < R; )
|
|
36147
36147
|
if (ce === XT && (K = N[I] || 1), ce = n.charCodeAt(B), ce === JT) {
|
|
36148
36148
|
if (ke = n.charCodeAt(B + 1), ke === yU || ke === XT || ke === bU || ke === kU || ke === JT || ke === DU || ke !== ke || i && ke === i) {
|
|
@@ -36151,7 +36151,7 @@ function AU(n, r) {
|
|
|
36151
36151
|
}
|
|
36152
36152
|
for (ct = B + 1, Ue = ct, Q = ct, ke === CU ? (Q = ++Ue, ke = n.charCodeAt(Q), ke === xU || ke === _U ? (Be = mC, Q = ++Ue) : Be = gC) : Be = jm, G = "", tt = "", ae = "", Oe = Mw[Be], Q--; ++Q < R && (ke = n.charCodeAt(Q), !!Oe(ke)); )
|
|
36153
36153
|
ae += Bm(ke), Be === jm && gU.call(GT, ae) && (G = ae, tt = GT[ae]);
|
|
36154
|
-
q = n.charCodeAt(Q) === wU, q && (Q++, re = Be === jm ? hU(ae) : !1, re && (G = ae, tt = re)), xe = 1 + Q - ct, !q && !l || (ae ? Be === jm ? (q && !tt ? Ye(JF, 1) : (G !== ae && (Q = Ue + G.length, xe = 1 + Q - Ue, q = !1), q || (
|
|
36154
|
+
q = n.charCodeAt(Q) === wU, q && (Q++, re = Be === jm ? hU(ae) : !1, re && (G = ae, tt = re)), xe = 1 + Q - ct, !q && !l || (ae ? Be === jm ? (q && !tt ? Ye(JF, 1) : (G !== ae && (Q = Ue + G.length, xe = 1 + Q - Ue, q = !1), q || (qe = G ? GF : QF, r.attribute ? (ke = n.charCodeAt(Q), ke === SU ? (Ye(qe, xe), tt = null) : YF(ke) ? tt = null : Ye(qe, xe)) : Ye(qe, xe))), Te = tt) : (q || Ye(KF, xe), Te = parseInt(ae, vC[Be]), FU(Te) ? (Ye(ZF, xe), Te = Bm(EU)) : Te in KT ? (Ye(OS, xe), Te = KT[Te]) : (Ge = "", $U(Te) && Ye(OS, xe), Te > 65535 && (Te -= 65536, Ge += Bm(Te >>> 10 | 55296), Te = 56320 | Te & 1023), Te = Ge + Bm(Te))) : Be !== jm && Ye(XF, xe)), Te ? (nt(), fe = he(), B = Q - 1, K += Q - ct + 1, J.push(Te), Re = he(), Re.offset++, h && h.call(
|
|
36155
36155
|
C,
|
|
36156
36156
|
Te,
|
|
36157
36157
|
{ start: fe, end: Re },
|
|
@@ -36537,8 +36537,8 @@ var e$ = { exports: {} };
|
|
|
36537
36537
|
re.hasOwnProperty(Te) || (ce[Te] = ae[Te]);
|
|
36538
36538
|
}
|
|
36539
36539
|
var Ye = q[J];
|
|
36540
|
-
return q[J] = ce, D.languages.DFS(D.languages, function(
|
|
36541
|
-
Ge === Ye &&
|
|
36540
|
+
return q[J] = ce, D.languages.DFS(D.languages, function(qe, Ge) {
|
|
36541
|
+
Ge === Ye && qe != J && (this[qe] = ce);
|
|
36542
36542
|
}), ce;
|
|
36543
36543
|
},
|
|
36544
36544
|
// Traverse a language definition with Depth First Search
|
|
@@ -36645,10 +36645,10 @@ var e$ = { exports: {} };
|
|
|
36645
36645
|
return;
|
|
36646
36646
|
}
|
|
36647
36647
|
if (G && l.Worker) {
|
|
36648
|
-
var
|
|
36649
|
-
|
|
36648
|
+
var qe = new Worker(D.filename);
|
|
36649
|
+
qe.onmessage = function(Ge) {
|
|
36650
36650
|
Ye(Ge.data);
|
|
36651
|
-
},
|
|
36651
|
+
}, qe.postMessage(JSON.stringify({
|
|
36652
36652
|
language: ke.language,
|
|
36653
36653
|
code: ke.code,
|
|
36654
36654
|
immediateClose: !0
|
|
@@ -36805,12 +36805,12 @@ var e$ = { exports: {} };
|
|
|
36805
36805
|
for (var Ye = 0; Ye < ke.length; ++Ye) {
|
|
36806
36806
|
if (ce && ce.cause == Te + "," + Ye)
|
|
36807
36807
|
return;
|
|
36808
|
-
var
|
|
36809
|
-
if (Ue && !
|
|
36810
|
-
var Be =
|
|
36811
|
-
|
|
36808
|
+
var qe = ke[Ye], Ge = qe.inside, tt = !!qe.lookbehind, Ue = !!qe.greedy, ct = qe.alias;
|
|
36809
|
+
if (Ue && !qe.pattern.global) {
|
|
36810
|
+
var Be = qe.pattern.toString().match(/[imsuy]*$/)[0];
|
|
36811
|
+
qe.pattern = RegExp(qe.pattern.source, Be + "g");
|
|
36812
36812
|
}
|
|
36813
|
-
for (var Oe =
|
|
36813
|
+
for (var Oe = qe.pattern || qe, fe = q.next, Re = ae; fe !== G.tail && !(ce && Re >= ce.reach); Re += fe.value.length, fe = fe.next) {
|
|
36814
36814
|
var xe = fe.value;
|
|
36815
36815
|
if (G.length > J.length)
|
|
36816
36816
|
return;
|
|
@@ -39038,7 +39038,7 @@ const lH = ({ specs: n, children: r, fullWidth: i }) => {
|
|
|
39038
39038
|
navigator.clipboard.writeText(Oe).then(() => {
|
|
39039
39039
|
K(Be), console.log("Copied to clipboard", Be);
|
|
39040
39040
|
});
|
|
39041
|
-
}, ke = (Be) => Array.isArray(Be) && Be.length === 0, Ye = (Be) => Be && typeof Be == "object" && !Object.keys(Be).length,
|
|
39041
|
+
}, ke = (Be) => Array.isArray(Be) && Be.length === 0, Ye = (Be) => Be && typeof Be == "object" && !Object.keys(Be).length, qe = (Be, Oe) => /* @__PURE__ */ L.jsxs("div", { className: "pkt-preview__copy", children: [
|
|
39042
39042
|
I === Be && /* @__PURE__ */ L.jsx("span", { className: "pkt-preview__copied", children: "Kode kopiert til utklippstavle" }),
|
|
39043
39043
|
/* @__PURE__ */ L.jsx(
|
|
39044
39044
|
oh,
|
|
@@ -39120,11 +39120,11 @@ const lH = ({ specs: n, children: r, fullWidth: i }) => {
|
|
|
39120
39120
|
] }),
|
|
39121
39121
|
/* @__PURE__ */ L.jsxs("div", { className: `pkt-preview__code ${J[1].active ? "" : "pkt-hide"}`, children: [
|
|
39122
39122
|
/* @__PURE__ */ L.jsx(Cy, { language: "jsx", style: ZT, children: R }),
|
|
39123
|
-
|
|
39123
|
+
qe("jsx", R)
|
|
39124
39124
|
] }),
|
|
39125
39125
|
/* @__PURE__ */ L.jsxs("div", { className: `pkt-preview__code ${J[2].active ? "" : "pkt-hide"}`, children: [
|
|
39126
39126
|
/* @__PURE__ */ L.jsx(Cy, { language: "html", style: ZT, children: $ }),
|
|
39127
|
-
|
|
39127
|
+
qe("html", $)
|
|
39128
39128
|
] }),
|
|
39129
39129
|
/* @__PURE__ */ L.jsx("div", { className: `pkt-preview__specs ${J[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ L.jsx(iH, { specs: n }) })
|
|
39130
39130
|
] });
|
package/dist/punkt-react.umd.js
CHANGED
|
@@ -1161,7 +1161,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1161
1161
|
${this.headingText?be`<h1 id="pkt-modal__headingText" class=${It(i)}>
|
|
1162
1162
|
${this.headingText}
|
|
1163
1163
|
</h1>`:be`<div class="pkt-modal__headingText"></div>`}
|
|
1164
|
-
${this.hideCloseButton?
|
|
1164
|
+
${this.hideCloseButton?be`<div class="pkt-modal__noCloseButton"></div>`:be`<div class="${It(h)}">
|
|
1165
1165
|
<pkt-button
|
|
1166
1166
|
@click=${D=>this.close(D)}
|
|
1167
1167
|
class=${It(m)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "12.39.
|
|
3
|
+
"version": "12.39.5",
|
|
4
4
|
"description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@lit-labs/ssr-dom-shim": "^1.2.1",
|
|
40
40
|
"@lit/react": "^1.0.7",
|
|
41
|
-
"@oslokommune/punkt-elements": "^12.39.
|
|
41
|
+
"@oslokommune/punkt-elements": "^12.39.5",
|
|
42
42
|
"angular-html-parser": "^6.0.2",
|
|
43
43
|
"html-format": "^1.1.7",
|
|
44
44
|
"prettier": "^3.3.3",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
51
51
|
"@oslokommune/punkt-assets": "^12.39.2",
|
|
52
|
-
"@oslokommune/punkt-css": "^12.39.
|
|
52
|
+
"@oslokommune/punkt-css": "^12.39.5",
|
|
53
53
|
"@testing-library/jest-dom": "^6.5.0",
|
|
54
54
|
"@testing-library/react": "^16.0.1",
|
|
55
55
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
113
113
|
},
|
|
114
114
|
"license": "MIT",
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "1c97e7a7a152408f9574d3e95d5a4497a04317f6"
|
|
116
116
|
}
|