@oslokommune/punkt-react 13.5.0 → 13.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/punkt-react.es.js +97 -97
- package/dist/punkt-react.umd.js +75 -75
- package/package.json +3 -3
package/dist/punkt-react.es.js
CHANGED
|
@@ -115,10 +115,10 @@ function rW() {
|
|
|
115
115
|
{
|
|
116
116
|
var pt = te.ReactDebugCurrentFrame, zt = pt.getStackAddendum();
|
|
117
117
|
zt !== "" && (Me += "%s", nt = nt.concat([zt]));
|
|
118
|
-
var
|
|
118
|
+
var Bt = nt.map(function(Gt) {
|
|
119
119
|
return String(Gt);
|
|
120
120
|
});
|
|
121
|
-
|
|
121
|
+
Bt.unshift("Warning: " + Me), Function.prototype.apply.call(console[ee], console, Bt);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
var W = !1, Y = !1, J = !1, ne = !1, he = !1, le;
|
|
@@ -175,9 +175,9 @@ function rW() {
|
|
|
175
175
|
var pt = ee.displayName || null;
|
|
176
176
|
return pt !== null ? pt : Fe(ee.type) || "Memo";
|
|
177
177
|
case N: {
|
|
178
|
-
var zt = ee,
|
|
178
|
+
var zt = ee, Bt = zt._payload, Gt = zt._init;
|
|
179
179
|
try {
|
|
180
|
-
return Fe(Gt(
|
|
180
|
+
return Fe(Gt(Bt));
|
|
181
181
|
} catch {
|
|
182
182
|
return null;
|
|
183
183
|
}
|
|
@@ -278,8 +278,8 @@ function rW() {
|
|
|
278
278
|
xt = !0;
|
|
279
279
|
var zt = Error.prepareStackTrace;
|
|
280
280
|
Error.prepareStackTrace = void 0;
|
|
281
|
-
var
|
|
282
|
-
|
|
281
|
+
var Bt;
|
|
282
|
+
Bt = lt.current, lt.current = null, Qe();
|
|
283
283
|
try {
|
|
284
284
|
if (Me) {
|
|
285
285
|
var Gt = function() {
|
|
@@ -332,7 +332,7 @@ function rW() {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
} finally {
|
|
335
|
-
xt = !1, lt.current =
|
|
335
|
+
xt = !1, lt.current = Bt, mt(), Error.prepareStackTrace = zt;
|
|
336
336
|
}
|
|
337
337
|
var Ki = ee ? ee.displayName || ee.name : "", kr = Ki ? ft(Ki) : "";
|
|
338
338
|
return typeof ee == "function" && en.set(ee, kr), kr;
|
|
@@ -364,9 +364,9 @@ function rW() {
|
|
|
364
364
|
case x:
|
|
365
365
|
return Vn(ee.type, Me, nt);
|
|
366
366
|
case N: {
|
|
367
|
-
var pt = ee, zt = pt._payload,
|
|
367
|
+
var pt = ee, zt = pt._payload, Bt = pt._init;
|
|
368
368
|
try {
|
|
369
|
-
return Vn(
|
|
369
|
+
return Vn(Bt(zt), Me, nt);
|
|
370
370
|
} catch {
|
|
371
371
|
}
|
|
372
372
|
}
|
|
@@ -383,9 +383,9 @@ function rW() {
|
|
|
383
383
|
}
|
|
384
384
|
function Er(ee, Me, nt, pt, zt) {
|
|
385
385
|
{
|
|
386
|
-
var
|
|
386
|
+
var Bt = Function.call.bind(kn);
|
|
387
387
|
for (var Gt in ee)
|
|
388
|
-
if (
|
|
388
|
+
if (Bt(ee, Gt)) {
|
|
389
389
|
var tn = void 0;
|
|
390
390
|
try {
|
|
391
391
|
if (typeof ee[Gt] != "function") {
|
|
@@ -471,7 +471,7 @@ function rW() {
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var Dr = function(ee, Me, nt, pt, zt,
|
|
474
|
+
var Dr = function(ee, Me, nt, pt, zt, Bt, Gt) {
|
|
475
475
|
var tn = {
|
|
476
476
|
// This tag allows us to uniquely identify this as a React Element
|
|
477
477
|
$$typeof: t,
|
|
@@ -481,7 +481,7 @@ function rW() {
|
|
|
481
481
|
ref: nt,
|
|
482
482
|
props: Gt,
|
|
483
483
|
// Record the component responsible for creating this element.
|
|
484
|
-
_owner:
|
|
484
|
+
_owner: Bt
|
|
485
485
|
};
|
|
486
486
|
return tn._store = {}, Object.defineProperty(tn._store, "validated", {
|
|
487
487
|
configurable: !1,
|
|
@@ -502,14 +502,14 @@ function rW() {
|
|
|
502
502
|
};
|
|
503
503
|
function bn(ee, Me, nt, pt, zt) {
|
|
504
504
|
{
|
|
505
|
-
var
|
|
505
|
+
var Bt, Gt = {}, tn = null, Sr = null;
|
|
506
506
|
nt !== void 0 && (ae(nt), tn = "" + nt), Dt(Me) && (ae(Me.key), tn = "" + Me.key), Ze(Me) && (Sr = Me.ref, jt(Me, zt));
|
|
507
|
-
for (
|
|
508
|
-
kn.call(Me,
|
|
507
|
+
for (Bt in Me)
|
|
508
|
+
kn.call(Me, Bt) && !$e.hasOwnProperty(Bt) && (Gt[Bt] = Me[Bt]);
|
|
509
509
|
if (ee && ee.defaultProps) {
|
|
510
510
|
var Zn = ee.defaultProps;
|
|
511
|
-
for (
|
|
512
|
-
Gt[
|
|
511
|
+
for (Bt in Zn)
|
|
512
|
+
Gt[Bt] === void 0 && (Gt[Bt] = Zn[Bt]);
|
|
513
513
|
}
|
|
514
514
|
if (tn || Sr) {
|
|
515
515
|
var Jn = typeof ee == "function" ? ee.displayName || ee.name || "Unknown" : ee;
|
|
@@ -586,7 +586,7 @@ Check the top-level render call using <` + nt + ">.");
|
|
|
586
586
|
else if (ee) {
|
|
587
587
|
var zt = $(ee);
|
|
588
588
|
if (typeof zt == "function" && zt !== ee.entries)
|
|
589
|
-
for (var
|
|
589
|
+
for (var Bt = zt.call(ee), Gt; !(Gt = Bt.next()).done; )
|
|
590
590
|
ha(Gt.value) && Is(Gt.value, Me);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
@@ -629,7 +629,7 @@ Check the top-level render call using <` + nt + ">.");
|
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
var _a = {};
|
|
632
|
-
function na(ee, Me, nt, pt, zt,
|
|
632
|
+
function na(ee, Me, nt, pt, zt, Bt) {
|
|
633
633
|
{
|
|
634
634
|
var Gt = Ae(ee);
|
|
635
635
|
if (!Gt) {
|
|
@@ -640,7 +640,7 @@ Check the top-level render call using <` + nt + ">.");
|
|
|
640
640
|
var Zn;
|
|
641
641
|
ee === null ? Zn = "null" : ln(ee) ? Zn = "array" : ee !== void 0 && ee.$$typeof === t ? (Zn = "<" + (Fe(ee.type) || "Unknown") + " />", tn = " Did you accidentally export a JSX literal instead of a component?") : Zn = typeof ee, U("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Zn, tn);
|
|
642
642
|
}
|
|
643
|
-
var Jn = bn(ee, Me, nt, zt,
|
|
643
|
+
var Jn = bn(ee, Me, nt, zt, Bt);
|
|
644
644
|
if (Jn == null)
|
|
645
645
|
return Jn;
|
|
646
646
|
if (Gt) {
|
|
@@ -2254,7 +2254,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
2254
2254
|
}
|
|
2255
2255
|
return Q.useContext(F);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function Bt(F) {
|
|
2258
2258
|
var Q = pt();
|
|
2259
2259
|
return Q.useState(F);
|
|
2260
2260
|
}
|
|
@@ -2795,7 +2795,7 @@ Check the top-level render call using <` + ve + ">.");
|
|
|
2795
2795
|
toArray: Is,
|
|
2796
2796
|
only: Yi
|
|
2797
2797
|
};
|
|
2798
|
-
t.Children = to, t.Component = Qe, t.Fragment = d, t.Profiler = y, t.PureComponent = xt, t.StrictMode = f, t.Suspense = x, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Je, t.act = Co, t.cloneElement = _u, t.createContext = wi, t.createElement = Cl, t.createFactory = Cu, t.createRef = Ht, t.forwardRef = ko, t.isValidElement = Dn, t.lazy = So, t.memo = nt, t.startTransition = Su, t.unstable_act = Co, t.useCallback = Fr, t.useContext = zt, t.useDebugValue = Tt, t.useDeferredValue = Xi, t.useEffect = Sr, t.useId = Os, t.useImperativeHandle = kr, t.useInsertionEffect = Zn, t.useLayoutEffect = Jn, t.useMemo = Ki, t.useReducer = Gt, t.useRef = tn, t.useState =
|
|
2798
|
+
t.Children = to, t.Component = Qe, t.Fragment = d, t.Profiler = y, t.PureComponent = xt, t.StrictMode = f, t.Suspense = x, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Je, t.act = Co, t.cloneElement = _u, t.createContext = wi, t.createElement = Cl, t.createFactory = Cu, t.createRef = Ht, t.forwardRef = ko, t.isValidElement = Dn, t.lazy = So, t.memo = nt, t.startTransition = Su, t.unstable_act = Co, t.useCallback = Fr, t.useContext = zt, t.useDebugValue = Tt, t.useDeferredValue = Xi, t.useEffect = Sr, t.useId = Os, t.useImperativeHandle = kr, t.useInsertionEffect = Zn, t.useLayoutEffect = Jn, t.useMemo = Ki, t.useReducer = Gt, t.useRef = tn, t.useState = Bt, t.useSyncExternalStore = yl, t.useTransition = Xt, t.version = a, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2799
2799
|
}();
|
|
2800
2800
|
}(bS, bS.exports)), bS.exports;
|
|
2801
2801
|
}
|
|
@@ -3930,7 +3930,7 @@ function OW() {
|
|
|
3930
3930
|
}
|
|
3931
3931
|
return s.tag === 3 ? p : null;
|
|
3932
3932
|
}
|
|
3933
|
-
function
|
|
3933
|
+
function Bt(i) {
|
|
3934
3934
|
if (i.tag === 13) {
|
|
3935
3935
|
var s = i.memoizedState;
|
|
3936
3936
|
if (s === null && (i = i.alternate, i !== null && (s = i.memoizedState)), s !== null) return s.dehydrated;
|
|
@@ -4214,7 +4214,7 @@ function OW() {
|
|
|
4214
4214
|
var p = zt(s);
|
|
4215
4215
|
if (p !== null) {
|
|
4216
4216
|
if (s = p.tag, s === 13) {
|
|
4217
|
-
if (s =
|
|
4217
|
+
if (s = Bt(p), s !== null) {
|
|
4218
4218
|
i.blockedOn = s, _l(i.priority, function() {
|
|
4219
4219
|
_o(p);
|
|
4220
4220
|
});
|
|
@@ -4302,7 +4302,7 @@ function OW() {
|
|
|
4302
4302
|
function _u(i, s, p, b) {
|
|
4303
4303
|
if (Cl = null, i = gr(b), i = Ml(i), i !== null) if (s = zt(i), s === null) i = null;
|
|
4304
4304
|
else if (p = s.tag, p === 13) {
|
|
4305
|
-
if (i =
|
|
4305
|
+
if (i = Bt(s), i !== null) return i;
|
|
4306
4306
|
i = null;
|
|
4307
4307
|
} else if (p === 3) {
|
|
4308
4308
|
if (s.stateNode.current.memoizedState.isDehydrated) return s.tag === 3 ? s.stateNode.containerInfo : null;
|
|
@@ -9037,7 +9037,7 @@ function LW() {
|
|
|
9037
9037
|
}
|
|
9038
9038
|
}
|
|
9039
9039
|
}
|
|
9040
|
-
var _a = Symbol.for("react.element"), na = Symbol.for("react.portal"), Eo = Symbol.for("react.fragment"), _i = Symbol.for("react.strict_mode"), So = Symbol.for("react.profiler"), ko = Symbol.for("react.provider"), ee = Symbol.for("react.context"), Me = Symbol.for("react.forward_ref"), nt = Symbol.for("react.suspense"), pt = Symbol.for("react.suspense_list"), zt = Symbol.for("react.memo"),
|
|
9040
|
+
var _a = Symbol.for("react.element"), na = Symbol.for("react.portal"), Eo = Symbol.for("react.fragment"), _i = Symbol.for("react.strict_mode"), So = Symbol.for("react.profiler"), ko = Symbol.for("react.provider"), ee = Symbol.for("react.context"), Me = Symbol.for("react.forward_ref"), nt = Symbol.for("react.suspense"), pt = Symbol.for("react.suspense_list"), zt = Symbol.for("react.memo"), Bt = Symbol.for("react.lazy"), Gt = Symbol.for("react.scope"), tn = Symbol.for("react.debug_trace_mode"), Sr = Symbol.for("react.offscreen"), Zn = Symbol.for("react.legacy_hidden"), Jn = Symbol.for("react.cache"), Fr = Symbol.for("react.tracing_marker"), Ki = Symbol.iterator, kr = "@@iterator";
|
|
9041
9041
|
function Tt(n) {
|
|
9042
9042
|
if (n === null || typeof n != "object")
|
|
9043
9043
|
return null;
|
|
@@ -9225,7 +9225,7 @@ function LW() {
|
|
|
9225
9225
|
return vu(n.render);
|
|
9226
9226
|
case zt:
|
|
9227
9227
|
return ai(n.type, r, l);
|
|
9228
|
-
case
|
|
9228
|
+
case Bt: {
|
|
9229
9229
|
var c = n, g = c._payload, v = c._init;
|
|
9230
9230
|
try {
|
|
9231
9231
|
return ai(v(g), r, l);
|
|
@@ -9314,7 +9314,7 @@ Error generating stack: ` + c.message + `
|
|
|
9314
9314
|
case zt:
|
|
9315
9315
|
var c = n.displayName || null;
|
|
9316
9316
|
return c !== null ? c : vn(n.type) || "Memo";
|
|
9317
|
-
case
|
|
9317
|
+
case Bt: {
|
|
9318
9318
|
var g = n, v = g._payload, w = g._init;
|
|
9319
9319
|
try {
|
|
9320
9320
|
return vn(w(v));
|
|
@@ -14997,7 +14997,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
14997
14997
|
// We need to do this after the Hot Reloading check above,
|
|
14998
14998
|
// because hot reloading has different semantics than prod because
|
|
14999
14999
|
// it doesn't resuspend. So we can't let the call below suspend.
|
|
15000
|
-
typeof dt == "object" && dt !== null && dt.$$typeof ===
|
|
15000
|
+
typeof dt == "object" && dt !== null && dt.$$typeof === Bt && e2(dt) === De.type)) {
|
|
15001
15001
|
var st = g(De, ge.props);
|
|
15002
15002
|
return st.ref = Cb(fe, De, ge), st.return = fe, st._debugSource = ge._source, st._debugOwner = ge._owner, st;
|
|
15003
15003
|
}
|
|
@@ -15037,7 +15037,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15037
15037
|
var st = J_(De, fe.mode, ge);
|
|
15038
15038
|
return st.return = fe, st;
|
|
15039
15039
|
}
|
|
15040
|
-
case
|
|
15040
|
+
case Bt: {
|
|
15041
15041
|
var Pt = De._payload, Kt = De._init;
|
|
15042
15042
|
return se(fe, Kt(Pt), ge);
|
|
15043
15043
|
}
|
|
@@ -15060,7 +15060,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15060
15060
|
return ge.key === dt ? I(fe, De, ge, Ge) : null;
|
|
15061
15061
|
case na:
|
|
15062
15062
|
return ge.key === dt ? B(fe, De, ge, Ge) : null;
|
|
15063
|
-
case
|
|
15063
|
+
case Bt: {
|
|
15064
15064
|
var st = ge._payload, Pt = ge._init;
|
|
15065
15065
|
return ie(fe, De, Pt(st), Ge);
|
|
15066
15066
|
}
|
|
@@ -15086,7 +15086,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15086
15086
|
var Kt = fe.get(Ge.key === null ? ge : Ge.key) || null;
|
|
15087
15087
|
return B(De, Kt, Ge, dt);
|
|
15088
15088
|
}
|
|
15089
|
-
case
|
|
15089
|
+
case Bt:
|
|
15090
15090
|
var nr = Ge._payload, Mn = Ge._init;
|
|
15091
15091
|
return me(fe, De, ge, Mn(nr), dt);
|
|
15092
15092
|
}
|
|
@@ -15119,7 +15119,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15119
15119
|
}
|
|
15120
15120
|
f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", Ge);
|
|
15121
15121
|
break;
|
|
15122
|
-
case
|
|
15122
|
+
case Bt:
|
|
15123
15123
|
var dt = fe._payload, st = fe._init;
|
|
15124
15124
|
Ee(st(dt), De, ge);
|
|
15125
15125
|
break;
|
|
@@ -15252,7 +15252,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15252
15252
|
// We need to do this after the Hot Reloading check above,
|
|
15253
15253
|
// because hot reloading has different semantics than prod because
|
|
15254
15254
|
// it doesn't resuspend. So we can't let the call below suspend.
|
|
15255
|
-
typeof Pt == "object" && Pt !== null && Pt.$$typeof ===
|
|
15255
|
+
typeof Pt == "object" && Pt !== null && Pt.$$typeof === Bt && e2(Pt) === st.type) {
|
|
15256
15256
|
l(fe, st.sibling);
|
|
15257
15257
|
var nr = g(st, ge.props);
|
|
15258
15258
|
return nr.ref = Cb(fe, st, ge), nr.return = fe, nr._debugSource = ge._source, nr._debugOwner = ge._owner, nr;
|
|
@@ -15297,7 +15297,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15297
15297
|
return w(Lt(fe, De, ge, Ge));
|
|
15298
15298
|
case na:
|
|
15299
15299
|
return w(fn(fe, De, ge, Ge));
|
|
15300
|
-
case
|
|
15300
|
+
case Bt:
|
|
15301
15301
|
var st = ge._payload, Pt = ge._init;
|
|
15302
15302
|
return un(fe, De, Pt(st), Ge);
|
|
15303
15303
|
}
|
|
@@ -17608,7 +17608,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17608
17608
|
function nI(n, r, l, c, g) {
|
|
17609
17609
|
if (r.type !== r.elementType) {
|
|
17610
17610
|
var v = r.elementType;
|
|
17611
|
-
if (v.$$typeof ===
|
|
17611
|
+
if (v.$$typeof === Bt) {
|
|
17612
17612
|
var w = v, A = w._payload, I = w._init;
|
|
17613
17613
|
try {
|
|
17614
17614
|
v = I(A);
|
|
@@ -17880,7 +17880,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17880
17880
|
}
|
|
17881
17881
|
}
|
|
17882
17882
|
var me = "";
|
|
17883
|
-
throw I !== null && typeof I == "object" && I.$$typeof ===
|
|
17883
|
+
throw I !== null && typeof I == "object" && I.$$typeof === Bt && (me = " Did you wrap a component in React.lazy() more than once?"), new Error("Element type is invalid. Received a promise that resolves to: " + I + ". " + ("Lazy element type must resolve to a class or function." + me));
|
|
17884
17884
|
}
|
|
17885
17885
|
function pH(n, r, l, c, g) {
|
|
17886
17886
|
zE(n, r), r.tag = _;
|
|
@@ -20901,16 +20901,16 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
20901
20901
|
break;
|
|
20902
20902
|
}
|
|
20903
20903
|
case E: {
|
|
20904
|
-
(typeof c == "function" || v ===
|
|
20904
|
+
(typeof c == "function" || v === Bt) && (g = !0);
|
|
20905
20905
|
break;
|
|
20906
20906
|
}
|
|
20907
20907
|
case z: {
|
|
20908
|
-
(v === Me || v ===
|
|
20908
|
+
(v === Me || v === Bt) && (g = !0);
|
|
20909
20909
|
break;
|
|
20910
20910
|
}
|
|
20911
20911
|
case J:
|
|
20912
20912
|
case ne: {
|
|
20913
|
-
(v === zt || v ===
|
|
20913
|
+
(v === zt || v === Bt) && (g = !0);
|
|
20914
20914
|
break;
|
|
20915
20915
|
}
|
|
20916
20916
|
default:
|
|
@@ -21159,7 +21159,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
21159
21159
|
case zt:
|
|
21160
21160
|
w = J;
|
|
21161
21161
|
break e;
|
|
21162
|
-
case
|
|
21162
|
+
case Bt:
|
|
21163
21163
|
w = he, A = null;
|
|
21164
21164
|
break e;
|
|
21165
21165
|
}
|
|
@@ -22360,7 +22360,7 @@ ph = Bv([
|
|
|
22360
22360
|
* Copyright 2018 Google LLC
|
|
22361
22361
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22362
22362
|
*/
|
|
22363
|
-
const
|
|
22363
|
+
const $t = (e) => e ?? Ke;
|
|
22364
22364
|
var tV = Object.defineProperty, nV = Object.getOwnPropertyDescriptor, Zo = (e, t, a, o) => {
|
|
22365
22365
|
for (var u = o > 1 ? void 0 : o ? nV(t, a) : t, d = e.length - 1, f; d >= 0; d--)
|
|
22366
22366
|
(f = e[d]) && (u = (o ? f(t, a, u) : f(u)) || u);
|
|
@@ -22410,14 +22410,14 @@ let bo = class extends ka {
|
|
|
22410
22410
|
class=${Jt(a)}
|
|
22411
22411
|
type=${this.type}
|
|
22412
22412
|
?disabled=${!!this.disabled}
|
|
22413
|
-
aria-busy=${
|
|
22414
|
-
aria-disabled=${
|
|
22415
|
-
form=${
|
|
22413
|
+
aria-busy=${$t(this.isLoading ? "true" : void 0)}
|
|
22414
|
+
aria-disabled=${$t(this.disabled || this.isLoading ? "true" : void 0)}
|
|
22415
|
+
form=${$t(t)}
|
|
22416
22416
|
>
|
|
22417
22417
|
${this.isLoading ? ke`<pkt-icon
|
|
22418
22418
|
class="pkt-btn__icon pkt-btn__spinner"
|
|
22419
22419
|
name="spinner-blue"
|
|
22420
|
-
path=${
|
|
22420
|
+
path=${$t(this.loadingAnimationPath)}
|
|
22421
22421
|
></pkt-icon>` : Ke}
|
|
22422
22422
|
${this.variant !== "label-only" ? ke`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : Ke}
|
|
22423
22423
|
<span class="pkt-btn__text" ${dn(this.defaultSlot)}></span>
|
|
@@ -22670,7 +22670,7 @@ let Dp = class extends ka {
|
|
|
22670
22670
|
id=${this.id}
|
|
22671
22671
|
?open=${this.isOpen}
|
|
22672
22672
|
${dn(this.accordionItemRef)}
|
|
22673
|
-
name=${
|
|
22673
|
+
name=${$t(this.name)}
|
|
22674
22674
|
>
|
|
22675
22675
|
<summary class="pkt-accordion-item__title" id=${`pkt-accordion-item-summary-${this.id}`}>
|
|
22676
22676
|
${this.title}
|
|
@@ -22730,7 +22730,7 @@ let cm = class extends ka {
|
|
|
22730
22730
|
class="pkt-back-link"
|
|
22731
22731
|
aria-label=${this.ariaLabel || "Gå tilbake til forrige side"}
|
|
22732
22732
|
>
|
|
22733
|
-
<a href=${
|
|
22733
|
+
<a href=${$t(this.href || "/")} class="pkt-link pkt-link--icon-left"
|
|
22734
22734
|
><pkt-icon
|
|
22735
22735
|
class="pkt-back-link__icon pkt-icon pkt-link__icon"
|
|
22736
22736
|
name="chevron-thin-left"
|
|
@@ -24751,8 +24751,8 @@ let fl = class extends ka {
|
|
|
24751
24751
|
class=${Jt(a)}
|
|
24752
24752
|
type=${this.type}
|
|
24753
24753
|
@click=${this.close}
|
|
24754
|
-
aria-label=${
|
|
24755
|
-
aria-description=${
|
|
24754
|
+
aria-label=${$t(this.ariaLabel || void 0)}
|
|
24755
|
+
aria-description=${$t(this._ariaDescription || void 0)}
|
|
24756
24756
|
>
|
|
24757
24757
|
${this.iconName && ke`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
24758
24758
|
<span ${dn(this.defaultSlot)}></span>
|
|
@@ -24809,7 +24809,7 @@ let fh = class extends zS {
|
|
|
24809
24809
|
super.connectedCallback(), this.setAttribute("role", "heading"), this.setAttribute("aria-level", String(this.level)), this.updateHostClasses();
|
|
24810
24810
|
}
|
|
24811
24811
|
attributeChangedCallback(t, a, o) {
|
|
24812
|
-
super.attributeChangedCallback(t, a, o), t === "level" && o && this.setLevel(Number(o)), (t === "size" || t === "visuallyHidden" || t === "align") && this.updateHostClasses();
|
|
24812
|
+
super.attributeChangedCallback(t, a, o), t === "level" && o && this.setLevel(Number(o)), t === "visuallyHidden" && (this.visuallyHidden = o !== null && o !== "false"), (t === "size" || t === "visuallyHidden" || t === "align") && this.updateHostClasses();
|
|
24813
24813
|
}
|
|
24814
24814
|
updated(t) {
|
|
24815
24815
|
super.updated(t), t.has("level") && this.setLevel(this.level), (t.has("size") || t.has("visuallyHidden") || t.has("align")) && this.updateHostClasses();
|
|
@@ -24902,7 +24902,7 @@ let ja = class extends ka {
|
|
|
24902
24902
|
return ke`
|
|
24903
24903
|
<article
|
|
24904
24904
|
class=${Jt(o)}
|
|
24905
|
-
aria-label=${
|
|
24905
|
+
aria-label=${$t(this.clickCardLink ? u : d)}
|
|
24906
24906
|
>
|
|
24907
24907
|
${this.renderImage()}
|
|
24908
24908
|
<div class="pkt-card__wrapper">
|
|
@@ -25001,8 +25001,8 @@ let ja = class extends ka {
|
|
|
25001
25001
|
role="listitem"
|
|
25002
25002
|
textStyle="normal-text"
|
|
25003
25003
|
size="medium"
|
|
25004
|
-
skin=${
|
|
25005
|
-
iconName=${
|
|
25004
|
+
skin=${$t(a.skin)}
|
|
25005
|
+
iconName=${$t(a.iconName)}
|
|
25006
25006
|
>
|
|
25007
25007
|
<span>${a.text}</span>
|
|
25008
25008
|
</pkt-tag>
|
|
@@ -26043,7 +26043,7 @@ let Or = class extends ka {
|
|
|
26043
26043
|
${this.label}
|
|
26044
26044
|
</label>`, f = () => ke`
|
|
26045
26045
|
<pkt-helptext
|
|
26046
|
-
class="${
|
|
26046
|
+
class="${$t(this.useWrapper ? void 0 : "pkt-hide")}"
|
|
26047
26047
|
.forId=${this.forId}
|
|
26048
26048
|
.helptext=${this.helptext}
|
|
26049
26049
|
.helptextDropdown=${this.helptextDropdown}
|
|
@@ -26197,7 +26197,7 @@ let yi = class extends ka {
|
|
|
26197
26197
|
"pkt-txt-16-light": !0
|
|
26198
26198
|
})}
|
|
26199
26199
|
role="listbox"
|
|
26200
|
-
aria-label=${
|
|
26200
|
+
aria-label=${$t(this.label)}
|
|
26201
26201
|
>
|
|
26202
26202
|
<div class="pkt-listbox__banners">
|
|
26203
26203
|
${this.renderMaximumReachedBanner()} ${this.renderUserMessage()}
|
|
@@ -26592,8 +26592,8 @@ let Yr = class extends cn {
|
|
|
26592
26592
|
<pkt-input-wrapper
|
|
26593
26593
|
.label=${this.label}
|
|
26594
26594
|
.helptext=${this.helptext}
|
|
26595
|
-
.helptextDropdown=${
|
|
26596
|
-
.helptextDropdownButton=${
|
|
26595
|
+
.helptextDropdown=${$t(this.helptextDropdown)}
|
|
26596
|
+
.helptextDropdownButton=${$t(this.helptextDropdownButton)}
|
|
26597
26597
|
?fullwidth=${this.fullwidth}
|
|
26598
26598
|
?hasError=${this.hasError}
|
|
26599
26599
|
?inline=${this.inline}
|
|
@@ -26660,7 +26660,7 @@ let Yr = class extends cn {
|
|
|
26660
26660
|
?isMultiSelect=${this.multiple}
|
|
26661
26661
|
?allowUserInput=${this.allowUserInput && !this._maxIsReached}
|
|
26662
26662
|
?maxIsReached=${this._maxIsReached}
|
|
26663
|
-
.customUserInput=${
|
|
26663
|
+
.customUserInput=${$t(this._addValueText)}
|
|
26664
26664
|
.userMessage=${this._userInfoMessage}
|
|
26665
26665
|
@search=${this.handleSearch}
|
|
26666
26666
|
@option-toggle=${this.handleOptionToggled}
|
|
@@ -26691,11 +26691,11 @@ let Yr = class extends cn {
|
|
|
26691
26691
|
@blur=${this.handleBlur}
|
|
26692
26692
|
autocomplete="off"
|
|
26693
26693
|
role="combobox"
|
|
26694
|
-
aria-label=${
|
|
26694
|
+
aria-label=${$t(this.label)}
|
|
26695
26695
|
aria-autocomplete=${this.typeahead ? "both" : "list"}
|
|
26696
26696
|
aria-controls="${this.id}-listbox"
|
|
26697
|
-
aria-multiselectable=${
|
|
26698
|
-
aria-activedescendant=${
|
|
26697
|
+
aria-multiselectable=${$t(this.multiple ? "true" : void 0)}
|
|
26698
|
+
aria-activedescendant=${$t(
|
|
26699
26699
|
this._value[0] && this.findValueInOptions(this._value[0]) ? `${this.id}-listbox-${this.findIndexInOptions(this._value[0])}` : void 0
|
|
26700
26700
|
)}
|
|
26701
26701
|
${dn(this.inputRef)}
|
|
@@ -27426,9 +27426,9 @@ let ta = class extends cn {
|
|
|
27426
27426
|
.type=${this.inputType}
|
|
27427
27427
|
id="${this.id}-input"
|
|
27428
27428
|
.value=${this._value[0] ?? ""}
|
|
27429
|
-
min=${
|
|
27430
|
-
max=${
|
|
27431
|
-
placeholder=${
|
|
27429
|
+
min=${$t(this.min)}
|
|
27430
|
+
max=${$t(this.max)}
|
|
27431
|
+
placeholder=${$t(this.placeholder)}
|
|
27432
27432
|
?readonly=${this.readonly}
|
|
27433
27433
|
aria-describedby="${this.id}-helptext"
|
|
27434
27434
|
@click=${(e) => {
|
|
@@ -27471,9 +27471,9 @@ let ta = class extends cn {
|
|
|
27471
27471
|
.type=${this.inputType}
|
|
27472
27472
|
id="${this.id}-input"
|
|
27473
27473
|
.value=${this._value[0] ?? ""}
|
|
27474
|
-
min=${
|
|
27475
|
-
max=${
|
|
27476
|
-
placeholder=${
|
|
27474
|
+
min=${$t(this.min)}
|
|
27475
|
+
max=${$t(this.max)}
|
|
27476
|
+
placeholder=${$t(this.placeholder)}
|
|
27477
27477
|
?readonly=${this.readonly}
|
|
27478
27478
|
?disabled=${this.disabled}
|
|
27479
27479
|
@click=${(t) => {
|
|
@@ -27515,9 +27515,9 @@ let ta = class extends cn {
|
|
|
27515
27515
|
id="${this.id}-to"
|
|
27516
27516
|
aria-labelledby="${this.id}-to-label"
|
|
27517
27517
|
.value=${this._value[1] ?? ""}
|
|
27518
|
-
min=${
|
|
27519
|
-
max=${
|
|
27520
|
-
placeholder=${
|
|
27518
|
+
min=${$t(this.min)}
|
|
27519
|
+
max=${$t(this.max)}
|
|
27520
|
+
placeholder=${$t(this.placeholder)}
|
|
27521
27521
|
?readonly=${this.readonly}
|
|
27522
27522
|
?disabled=${this.disabled}
|
|
27523
27523
|
@click=${(t) => {
|
|
@@ -27567,9 +27567,9 @@ let ta = class extends cn {
|
|
|
27567
27567
|
class=${Jt(this.inputClasses)}
|
|
27568
27568
|
.type=${this.inputType}
|
|
27569
27569
|
id="${this.id}-input"
|
|
27570
|
-
min=${
|
|
27571
|
-
max=${
|
|
27572
|
-
placeholder=${
|
|
27570
|
+
min=${$t(this.min)}
|
|
27571
|
+
max=${$t(this.max)}
|
|
27572
|
+
placeholder=${$t(this.placeholder)}
|
|
27573
27573
|
?readonly=${this.readonly}
|
|
27574
27574
|
?disabled=${this.disabled || this.maxlength && this._value.length >= this.maxlength}
|
|
27575
27575
|
@click=${(e) => {
|
|
@@ -27878,7 +27878,7 @@ let vd = class extends ka {
|
|
|
27878
27878
|
href=${this.href}
|
|
27879
27879
|
class=${t}
|
|
27880
27880
|
target=${this.openInNewTab ? "_blank" : "_self"}
|
|
27881
|
-
rel=${this.openInNewTab
|
|
27881
|
+
rel=${$t(this.openInNewTab ? "noopener noreferrer" : void 0)}
|
|
27882
27882
|
>
|
|
27883
27883
|
${this.iconName && ke`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
27884
27884
|
${this.title && ke`<div class=${a}>${this.title}</div>`}
|
|
@@ -28541,10 +28541,10 @@ let dm = class extends cn {
|
|
|
28541
28541
|
class=${t}
|
|
28542
28542
|
id=${this.id + "-input"}
|
|
28543
28543
|
name=${(this.name || this.id) + "-input"}
|
|
28544
|
-
placeholder=${
|
|
28544
|
+
placeholder=${$t(this.placeholder)}
|
|
28545
28545
|
.value=${D6(this.value)}
|
|
28546
|
-
minlength=${
|
|
28547
|
-
maxlength=${
|
|
28546
|
+
minlength=${$t(this.minlength)}
|
|
28547
|
+
maxlength=${$t(this.maxlength)}
|
|
28548
28548
|
?readonly=${this.readonly}
|
|
28549
28549
|
autocomplete=${this.autocomplete}
|
|
28550
28550
|
aria-labelledby=${a}
|
|
@@ -28639,14 +28639,14 @@ let fu = class extends cn {
|
|
|
28639
28639
|
type=${this.type}
|
|
28640
28640
|
name=${(this.name || this.id) + "-input"}
|
|
28641
28641
|
id=${this.id + "-input"}
|
|
28642
|
-
placeholder=${
|
|
28642
|
+
placeholder=${$t(this.placeholder)}
|
|
28643
28643
|
aria-labelledby=${o}
|
|
28644
28644
|
autocomplete=${this.autocomplete || "off"}
|
|
28645
|
-
minlength=${
|
|
28646
|
-
maxlength=${
|
|
28647
|
-
min=${
|
|
28648
|
-
max=${
|
|
28649
|
-
step=${
|
|
28645
|
+
minlength=${$t(this.minlength || void 0)}
|
|
28646
|
+
maxlength=${$t(this.maxlength || void 0)}
|
|
28647
|
+
min=${$t(this.min || void 0)}
|
|
28648
|
+
max=${$t(this.max || void 0)}
|
|
28649
|
+
step=${$t(this.step || void 0)}
|
|
28650
28650
|
?readonly=${this.readonly}
|
|
28651
28651
|
size=${this.size || Ke}
|
|
28652
28652
|
.value=${this.value}
|
|
@@ -28801,23 +28801,23 @@ let Iv = class extends cn {
|
|
|
28801
28801
|
?optionalTag=${this.optionalTag}
|
|
28802
28802
|
?requiredTag=${this.requiredTag}
|
|
28803
28803
|
?useWrapper=${this.useWrapper}
|
|
28804
|
-
ariaDescribedBy=${
|
|
28804
|
+
ariaDescribedBy=${$t(this.ariaDescribedBy)}
|
|
28805
28805
|
class="pkt-select"
|
|
28806
|
-
errorMessage=${
|
|
28806
|
+
errorMessage=${$t(this.errorMessage)}
|
|
28807
28807
|
forId=${this.id + "-input"}
|
|
28808
|
-
helptext=${
|
|
28809
|
-
helptextDropdown=${
|
|
28810
|
-
helptextDropdownButton=${
|
|
28811
|
-
label=${
|
|
28812
|
-
optionalText=${
|
|
28813
|
-
requiredText=${
|
|
28814
|
-
tagText=${
|
|
28808
|
+
helptext=${$t(this.helptext)}
|
|
28809
|
+
helptextDropdown=${$t(this.helptextDropdown)}
|
|
28810
|
+
helptextDropdownButton=${$t(this.helptextDropdownButton)}
|
|
28811
|
+
label=${$t(this.label)}
|
|
28812
|
+
optionalText=${$t(this.optionalText)}
|
|
28813
|
+
requiredText=${$t(this.requiredText)}
|
|
28814
|
+
tagText=${$t(this.tagText)}
|
|
28815
28815
|
>
|
|
28816
28816
|
<select
|
|
28817
28817
|
class=${t}
|
|
28818
28818
|
aria-invalid=${this.hasError}
|
|
28819
28819
|
aria-errormessage=${`${this.id}-error`}
|
|
28820
|
-
aria-labelledby=${
|
|
28820
|
+
aria-labelledby=${$t(this.ariaLabelledby)}
|
|
28821
28821
|
?disabled=${this.disabled}
|
|
28822
28822
|
id=${this.id + "-input"}
|
|
28823
28823
|
name=${(this.name || this.id) + "-input"}
|
|
@@ -33003,10 +33003,10 @@ Expected it to be ${T}.`;
|
|
|
33003
33003
|
return T == null ? void 0 : T.parsers[0];
|
|
33004
33004
|
}
|
|
33005
33005
|
var ee = ko, Me = "inline", nt = { area: "none", base: "none", basefont: "none", datalist: "none", head: "none", link: "none", meta: "none", noembed: "none", noframes: "none", param: "block", rp: "none", script: "block", style: "none", template: "inline", title: "none", html: "block", body: "block", address: "block", blockquote: "block", center: "block", dialog: "block", div: "block", figure: "block", figcaption: "block", footer: "block", form: "block", header: "block", hr: "block", legend: "block", listing: "block", main: "block", p: "block", plaintext: "block", pre: "block", search: "block", xmp: "block", slot: "contents", ruby: "ruby", rt: "ruby-text", article: "block", aside: "block", h1: "block", h2: "block", h3: "block", h4: "block", h5: "block", h6: "block", hgroup: "block", nav: "block", section: "block", dir: "block", dd: "block", dl: "block", dt: "block", menu: "block", ol: "block", ul: "block", li: "list-item", table: "table", caption: "table-caption", colgroup: "table-column-group", col: "table-column", thead: "table-header-group", tbody: "table-row-group", tfoot: "table-footer-group", tr: "table-row", td: "table-cell", th: "table-cell", input: "inline-block", button: "inline-block", fieldset: "block", details: "block", summary: "block", marquee: "inline-block", source: "block", track: "block", meter: "inline-block", progress: "inline-block", object: "inline-block", video: "inline-block", audio: "inline-block", select: "inline-block", option: "block", optgroup: "block" }, pt = "normal", zt = { listing: "pre", plaintext: "pre", pre: "pre", xmp: "pre", nobr: "nowrap", table: "initial", textarea: "pre-wrap" };
|
|
33006
|
-
function
|
|
33006
|
+
function Bt(h) {
|
|
33007
33007
|
return h.type === "element" && !h.hasExplicitNamespace && !["html", "svg"].includes(h.namespace);
|
|
33008
33008
|
}
|
|
33009
|
-
var Gt =
|
|
33009
|
+
var Gt = Bt, tn = (h) => U(!1, h, /^[\t\f\r ]*\n/gu, ""), Sr = (h) => tn(bn.trimEnd(h)), Zn = (h) => {
|
|
33010
33010
|
let m = h, k = bn.getLeadingWhitespace(m);
|
|
33011
33011
|
k && (m = m.slice(k.length));
|
|
33012
33012
|
let T = bn.getTrailingWhitespace(m);
|