@warp-ds/elements 1.0.0-alpha.6 → 1.0.0-alpha.7
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.
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var k = (o, e, t) => (
|
|
1
|
+
var $r = Object.defineProperty;
|
|
2
|
+
var zr = (o, e, t) => e in o ? $r(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var k = (o, e, t) => (zr(o, typeof e != "symbol" ? e + "" : e, t), t), _r = (o, e, t) => {
|
|
4
4
|
if (!e.has(o))
|
|
5
5
|
throw TypeError("Cannot " + t);
|
|
6
6
|
};
|
|
7
|
-
var J = (o, e, t) => (
|
|
7
|
+
var J = (o, e, t) => (_r(o, e, "read from private field"), t ? t.call(o) : e.get(o)), Re = (o, e, t) => {
|
|
8
8
|
if (e.has(o))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
e instanceof WeakSet ? e.add(o) : e.set(o, t);
|
|
11
11
|
};
|
|
12
|
-
import st from "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&inline";
|
|
13
12
|
(function() {
|
|
14
13
|
const e = document.createElement("link").relList;
|
|
15
14
|
if (e && e.supports && e.supports("modulepreload"))
|
|
@@ -39,8 +38,8 @@ import st from "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&i
|
|
|
39
38
|
* Copyright 2019 Google LLC
|
|
40
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
40
|
*/
|
|
42
|
-
const
|
|
43
|
-
class
|
|
41
|
+
const Sr = !1, Ae = window, Do = Ae.ShadowRoot && (Ae.ShadyCSS === void 0 || Ae.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ho = Symbol(), st = /* @__PURE__ */ new WeakMap();
|
|
42
|
+
class Nt {
|
|
44
43
|
constructor(e, t, r) {
|
|
45
44
|
if (this._$cssResult$ = !0, r !== Ho)
|
|
46
45
|
throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -51,7 +50,7 @@ class Tt {
|
|
|
51
50
|
const t = this._strings;
|
|
52
51
|
if (Do && e === void 0) {
|
|
53
52
|
const r = t !== void 0 && t.length === 1;
|
|
54
|
-
r && (e =
|
|
53
|
+
r && (e = st.get(t)), e === void 0 && ((this._styleSheet = e = new CSSStyleSheet()).replaceSync(this.cssText), r && st.set(t, e));
|
|
55
54
|
}
|
|
56
55
|
return e;
|
|
57
56
|
}
|
|
@@ -59,40 +58,40 @@ class Tt {
|
|
|
59
58
|
return this.cssText;
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
|
-
const
|
|
61
|
+
const Cr = (o) => {
|
|
63
62
|
if (o._$cssResult$ === !0)
|
|
64
63
|
return o.cssText;
|
|
65
64
|
if (typeof o == "number")
|
|
66
65
|
return o;
|
|
67
66
|
throw new Error(`Value passed to 'css' function must be a 'css' function result: ${o}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`);
|
|
68
|
-
},
|
|
69
|
-
const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r +
|
|
70
|
-
return new
|
|
71
|
-
},
|
|
67
|
+
}, Er = (o) => new Nt(typeof o == "string" ? o : String(o), void 0, Ho), R = (o, ...e) => {
|
|
68
|
+
const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r + Cr(i) + o[a + 1], o[0]);
|
|
69
|
+
return new Nt(t, o, Ho);
|
|
70
|
+
}, Rr = (o, e) => {
|
|
72
71
|
Do ? o.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
|
|
73
72
|
const r = document.createElement("style"), i = Ae.litNonce;
|
|
74
73
|
i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, o.appendChild(r);
|
|
75
74
|
});
|
|
76
|
-
},
|
|
75
|
+
}, Ar = (o) => {
|
|
77
76
|
let e = "";
|
|
78
77
|
for (const t of o.cssRules)
|
|
79
78
|
e += t.cssText;
|
|
80
|
-
return
|
|
81
|
-
},
|
|
79
|
+
return Er(e);
|
|
80
|
+
}, dt = Do || Sr ? (o) => o : (o) => o instanceof CSSStyleSheet ? Ar(o) : o;
|
|
82
81
|
/**
|
|
83
82
|
* @license
|
|
84
83
|
* Copyright 2017 Google LLC
|
|
85
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
86
85
|
*/
|
|
87
|
-
var to, ro, io,
|
|
86
|
+
var to, ro, io, Tt;
|
|
88
87
|
const B = window;
|
|
89
|
-
let
|
|
90
|
-
const
|
|
88
|
+
let Ut, ee;
|
|
89
|
+
const ut = B.trustedTypes, qr = ut ? ut.emptyScript : "", qe = B.reactiveElementPolyfillSupportDevMode;
|
|
91
90
|
{
|
|
92
91
|
const o = (to = B.litIssuedWarnings) !== null && to !== void 0 ? to : B.litIssuedWarnings = /* @__PURE__ */ new Set();
|
|
93
92
|
ee = (e, t) => {
|
|
94
93
|
t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
|
|
95
|
-
}, ee("dev-mode", "Lit is in dev mode. Not recommended for production!"), ((ro = B.ShadyDOM) === null || ro === void 0 ? void 0 : ro.inUse) && qe === void 0 && ee("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."),
|
|
94
|
+
}, ee("dev-mode", "Lit is in dev mode. Not recommended for production!"), ((ro = B.ShadyDOM) === null || ro === void 0 ? void 0 : ro.inUse) && qe === void 0 && ee("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."), Ut = (e) => ({
|
|
96
95
|
then: (t, r) => {
|
|
97
96
|
ee("request-update-promise", `The \`requestUpdate\` method should no longer return a Promise but does so on \`${e}\`. Use \`updateComplete\` instead.`), t !== void 0 && t(!1);
|
|
98
97
|
}
|
|
@@ -102,11 +101,11 @@ const no = (o) => {
|
|
|
102
101
|
!B.emitLitDebugLogEvents || B.dispatchEvent(new CustomEvent("lit-debug", {
|
|
103
102
|
detail: o
|
|
104
103
|
}));
|
|
105
|
-
},
|
|
104
|
+
}, Ot = (o, e) => o, So = {
|
|
106
105
|
toAttribute(o, e) {
|
|
107
106
|
switch (e) {
|
|
108
107
|
case Boolean:
|
|
109
|
-
o = o ?
|
|
108
|
+
o = o ? qr : null;
|
|
110
109
|
break;
|
|
111
110
|
case Object:
|
|
112
111
|
case Array:
|
|
@@ -135,12 +134,12 @@ const no = (o) => {
|
|
|
135
134
|
}
|
|
136
135
|
return t;
|
|
137
136
|
}
|
|
138
|
-
},
|
|
137
|
+
}, Ft = (o, e) => e !== o && (e === e || o === o), ao = {
|
|
139
138
|
attribute: !0,
|
|
140
139
|
type: String,
|
|
141
140
|
converter: So,
|
|
142
141
|
reflect: !1,
|
|
143
|
-
hasChanged:
|
|
142
|
+
hasChanged: Ft
|
|
144
143
|
}, Co = "finalized";
|
|
145
144
|
class V extends HTMLElement {
|
|
146
145
|
constructor() {
|
|
@@ -186,7 +185,7 @@ class V extends HTMLElement {
|
|
|
186
185
|
return !1;
|
|
187
186
|
this[Co] = !0;
|
|
188
187
|
const e = Object.getPrototypeOf(this);
|
|
189
|
-
if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(
|
|
188
|
+
if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(Ot("properties"))) {
|
|
190
189
|
const t = this.properties, r = [
|
|
191
190
|
...Object.getOwnPropertyNames(t),
|
|
192
191
|
...Object.getOwnPropertySymbols(t)
|
|
@@ -208,9 +207,9 @@ class V extends HTMLElement {
|
|
|
208
207
|
if (Array.isArray(e)) {
|
|
209
208
|
const r = new Set(e.flat(1 / 0).reverse());
|
|
210
209
|
for (const i of r)
|
|
211
|
-
t.unshift(
|
|
210
|
+
t.unshift(dt(i));
|
|
212
211
|
} else
|
|
213
|
-
e !== void 0 && t.push(
|
|
212
|
+
e !== void 0 && t.push(dt(e));
|
|
214
213
|
return t;
|
|
215
214
|
}
|
|
216
215
|
static __attributeNameForProperty(e, t) {
|
|
@@ -237,7 +236,7 @@ class V extends HTMLElement {
|
|
|
237
236
|
createRenderRoot() {
|
|
238
237
|
var e;
|
|
239
238
|
const t = (e = this.shadowRoot) !== null && e !== void 0 ? e : this.attachShadow(this.constructor.shadowRootOptions);
|
|
240
|
-
return
|
|
239
|
+
return Rr(t, this.constructor.elementStyles), t;
|
|
241
240
|
}
|
|
242
241
|
connectedCallback() {
|
|
243
242
|
var e;
|
|
@@ -279,7 +278,7 @@ class V extends HTMLElement {
|
|
|
279
278
|
}
|
|
280
279
|
requestUpdate(e, t, r) {
|
|
281
280
|
let i = !0;
|
|
282
|
-
return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged ||
|
|
281
|
+
return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged || Ft)(this[e], t) ? (this._$changedProperties.has(e) || this._$changedProperties.set(e, t), r.reflect === !0 && this.__reflectingProperty !== e && (this.__reflectingProperties === void 0 && (this.__reflectingProperties = /* @__PURE__ */ new Map()), this.__reflectingProperties.set(e, r))) : i = !1), !this.isUpdatePending && i && (this.__updatePromise = this.__enqueueUpdate()), Ut(this.localName);
|
|
283
282
|
}
|
|
284
283
|
async __enqueueUpdate() {
|
|
285
284
|
this.isUpdatePending = !0;
|
|
@@ -348,8 +347,8 @@ class V extends HTMLElement {
|
|
|
348
347
|
firstUpdated(e) {
|
|
349
348
|
}
|
|
350
349
|
}
|
|
351
|
-
|
|
352
|
-
V[
|
|
350
|
+
Tt = Co;
|
|
351
|
+
V[Tt] = !0;
|
|
353
352
|
V.elementProperties = /* @__PURE__ */ new Map();
|
|
354
353
|
V.elementStyles = [];
|
|
355
354
|
V.shadowRootOptions = { mode: "open" };
|
|
@@ -357,7 +356,7 @@ qe == null || qe({ ReactiveElement: V });
|
|
|
357
356
|
{
|
|
358
357
|
V.enabledWarnings = ["change-in-update"];
|
|
359
358
|
const o = function(e) {
|
|
360
|
-
e.hasOwnProperty(
|
|
359
|
+
e.hasOwnProperty(Ot("enabledWarnings")) || (e.enabledWarnings = e.enabledWarnings.slice());
|
|
361
360
|
};
|
|
362
361
|
V.enableWarning = function(e) {
|
|
363
362
|
o(this), this.enabledWarnings.indexOf(e) < 0 && this.enabledWarnings.push(e);
|
|
@@ -380,28 +379,28 @@ const q = window, m = (o) => {
|
|
|
380
379
|
detail: o
|
|
381
380
|
}));
|
|
382
381
|
};
|
|
383
|
-
let
|
|
382
|
+
let Mr = 0, Ue;
|
|
384
383
|
(lo = q.litIssuedWarnings) !== null && lo !== void 0 || (q.litIssuedWarnings = /* @__PURE__ */ new Set()), Ue = (o, e) => {
|
|
385
384
|
e += o ? ` See https://lit.dev/msg/${o} for more information.` : "", q.litIssuedWarnings.has(e) || (console.warn(e), q.litIssuedWarnings.add(e));
|
|
386
385
|
}, Ue("dev-mode", "Lit is in dev mode. Not recommended for production!");
|
|
387
|
-
const O = ((co = q.ShadyDOM) === null || co === void 0 ? void 0 : co.inUse) && ((so = q.ShadyDOM) === null || so === void 0 ? void 0 : so.noPatch) === !0 ? q.ShadyDOM.wrap : (o) => o, ue = q.trustedTypes,
|
|
386
|
+
const O = ((co = q.ShadyDOM) === null || co === void 0 ? void 0 : co.inUse) && ((so = q.ShadyDOM) === null || so === void 0 ? void 0 : so.noPatch) === !0 ? q.ShadyDOM.wrap : (o) => o, ue = q.trustedTypes, bt = ue ? ue.createPolicy("lit-html", {
|
|
388
387
|
createHTML: (o) => o
|
|
389
|
-
}) : void 0,
|
|
388
|
+
}) : void 0, Pr = (o) => o, Ye = (o, e, t) => Pr, jr = (o) => {
|
|
390
389
|
if (ie !== Ye)
|
|
391
390
|
throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");
|
|
392
391
|
ie = o;
|
|
393
|
-
},
|
|
392
|
+
}, Nr = () => {
|
|
394
393
|
ie = Ye;
|
|
395
|
-
}, Eo = (o, e, t) => ie(o, e, t), Oe = "$lit$", I = `lit$${String(Math.random()).slice(9)}$`, Wo = "?" + I,
|
|
396
|
-
\f\r]`,
|
|
397
|
-
\f\r"'\`<>=]`,
|
|
394
|
+
}, Eo = (o, e, t) => ie(o, e, t), Oe = "$lit$", I = `lit$${String(Math.random()).slice(9)}$`, Wo = "?" + I, Tr = `<${Wo}>`, xe = document, ke = (o = "") => xe.createComment(o), we = (o) => o === null || typeof o != "object" && typeof o != "function", Lt = Array.isArray, It = (o) => Lt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", bo = `[
|
|
395
|
+
\f\r]`, Ur = `[^
|
|
396
|
+
\f\r"'\`<>=]`, Or = `[^\\s"'>=/]`, me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = 1, go = 2, Fr = 3, ht = /-->/g, pt = />/g, te = new RegExp(`>|${bo}(?:(${Or}+)(${bo}*=${bo}*(?:${Ur}|("|')|))|$)`, "g"), Lr = 0, mt = 1, Ir = 2, ft = 3, ho = /'/g, po = /"/g, Bt = /^(?:script|style|textarea|title)$/i, Vt = 1, Fe = 2, Ko = 1, Le = 2, Br = 3, Vr = 4, Dr = 5, Yo = 6, Hr = 7, Dt = (o) => (e, ...t) => (e.some((r) => r === void 0) && console.warn(`Some template strings are undefined.
|
|
398
397
|
This is probably caused by illegal octal escape sequences.`), {
|
|
399
398
|
_$litType$: o,
|
|
400
399
|
strings: e,
|
|
401
400
|
values: t
|
|
402
|
-
}), p =
|
|
401
|
+
}), p = Dt(Vt), Ze = Dt(Fe), K = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), ce = xe.createTreeWalker(xe, 129, null, !1);
|
|
403
402
|
let ie = Ye;
|
|
404
|
-
const
|
|
403
|
+
const Ht = (o, e) => {
|
|
405
404
|
const t = o.length - 1, r = [];
|
|
406
405
|
let i = e === Fe ? "<svg>" : "", a, n = me;
|
|
407
406
|
for (let s = 0; s < t; s++) {
|
|
@@ -409,19 +408,19 @@ const Wt = (o, e) => {
|
|
|
409
408
|
let b = -1, d, g = 0, u;
|
|
410
409
|
for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); )
|
|
411
410
|
if (g = n.lastIndex, n === me) {
|
|
412
|
-
if (u[
|
|
411
|
+
if (u[gt] === "!--")
|
|
412
|
+
n = ht;
|
|
413
|
+
else if (u[gt] !== void 0)
|
|
413
414
|
n = pt;
|
|
414
|
-
else if (u[ht] !== void 0)
|
|
415
|
-
n = mt;
|
|
416
415
|
else if (u[go] !== void 0)
|
|
417
|
-
|
|
418
|
-
else if (u[
|
|
416
|
+
Bt.test(u[go]) && (a = new RegExp(`</${u[go]}`, "g")), n = te;
|
|
417
|
+
else if (u[Fr] !== void 0)
|
|
419
418
|
throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions");
|
|
420
419
|
} else
|
|
421
|
-
n === te ? u[
|
|
420
|
+
n === te ? u[Lr] === ">" ? (n = a != null ? a : me, b = -1) : u[mt] === void 0 ? b = -2 : (b = n.lastIndex - u[Ir].length, d = u[mt], n = u[ft] === void 0 ? te : u[ft] === '"' ? po : ho) : n === po || n === ho ? n = te : n === ht || n === pt ? n = me : (n = te, a = void 0);
|
|
422
421
|
console.assert(b === -1 || n === te || n === ho || n === po, "unexpected parse state B");
|
|
423
422
|
const h = n === te && o[s + 1].startsWith("/>") ? " " : "";
|
|
424
|
-
i += n === me ? c +
|
|
423
|
+
i += n === me ? c + Tr : b >= 0 ? (r.push(d), c.slice(0, b) + Oe + c.slice(b) + I + h) : c + I + (b === -2 ? (r.push(void 0), s) : h);
|
|
425
424
|
}
|
|
426
425
|
const l = i + (o[t] || "<?>") + (e === Fe ? "</svg>" : "");
|
|
427
426
|
if (!Array.isArray(o) || !o.hasOwnProperty("raw")) {
|
|
@@ -441,7 +440,7 @@ const Wt = (o, e) => {
|
|
|
441
440
|
`), new Error(s);
|
|
442
441
|
}
|
|
443
442
|
return [
|
|
444
|
-
|
|
443
|
+
bt !== void 0 ? bt.createHTML(l) : l,
|
|
445
444
|
r
|
|
446
445
|
];
|
|
447
446
|
};
|
|
@@ -449,7 +448,7 @@ class ye {
|
|
|
449
448
|
constructor({ strings: e, ["_$litType$"]: t }, r) {
|
|
450
449
|
this.parts = [];
|
|
451
450
|
let i, a = 0, n = 0;
|
|
452
|
-
const l = e.length - 1, s = this.parts, [c, b] =
|
|
451
|
+
const l = e.length - 1, s = this.parts, [c, b] = Ht(e, t);
|
|
453
452
|
if (this.el = ye.createElement(c, r), ce.currentNode = this.el.content, t === Fe) {
|
|
454
453
|
const d = this.el.content, g = d.firstChild;
|
|
455
454
|
g.remove(), d.append(...g.childNodes);
|
|
@@ -477,7 +476,7 @@ class ye {
|
|
|
477
476
|
index: a,
|
|
478
477
|
name: v[2],
|
|
479
478
|
strings: f,
|
|
480
|
-
ctor: v[1] === "." ?
|
|
479
|
+
ctor: v[1] === "." ? Kt : v[1] === "?" ? Yt : v[1] === "@" ? Zt : _e
|
|
481
480
|
});
|
|
482
481
|
} else
|
|
483
482
|
s.push({
|
|
@@ -488,7 +487,7 @@ class ye {
|
|
|
488
487
|
for (const g of d)
|
|
489
488
|
i.removeAttribute(g);
|
|
490
489
|
}
|
|
491
|
-
if (
|
|
490
|
+
if (Bt.test(i.tagName)) {
|
|
492
491
|
const d = i.textContent.split(I), g = d.length - 1;
|
|
493
492
|
if (g > 0) {
|
|
494
493
|
i.textContent = ue ? ue.emptyScript : "";
|
|
@@ -503,7 +502,7 @@ class ye {
|
|
|
503
502
|
else {
|
|
504
503
|
let g = -1;
|
|
505
504
|
for (; (g = i.data.indexOf(I, g + 1)) !== -1; )
|
|
506
|
-
s.push({ type:
|
|
505
|
+
s.push({ type: Hr, index: a }), g += I.length - 1;
|
|
507
506
|
}
|
|
508
507
|
a++;
|
|
509
508
|
}
|
|
@@ -528,7 +527,7 @@ function ne(o, e, t = o, r) {
|
|
|
528
527
|
const c = we(e) ? void 0 : e._$litDirective$;
|
|
529
528
|
return (s == null ? void 0 : s.constructor) !== c && ((a = s == null ? void 0 : s._$notifyDirectiveConnectionChanged) === null || a === void 0 || a.call(s, !1), c === void 0 ? s = void 0 : (s = new c(o), s._$initialize(o, t, r)), r !== void 0 ? ((n = (l = t).__directives) !== null && n !== void 0 ? n : l.__directives = [])[r] = s : t.__directive = s), s !== void 0 && (e = ne(o, s._$resolve(o, e.values), s, r)), e;
|
|
530
529
|
}
|
|
531
|
-
class
|
|
530
|
+
class Wt {
|
|
532
531
|
constructor(e, t) {
|
|
533
532
|
this._parts = [], this._$disconnectableChildren = void 0, this._$template = e, this._$parent = t;
|
|
534
533
|
}
|
|
@@ -546,7 +545,7 @@ class Kt {
|
|
|
546
545
|
for (; c !== void 0; ) {
|
|
547
546
|
if (l === c.index) {
|
|
548
547
|
let b;
|
|
549
|
-
c.type === Le ? b = new he(n, n.nextSibling, this, e) : c.type === Ko ? b = new c.ctor(n, c.name, c.strings, this, e) : c.type === Yo && (b = new
|
|
548
|
+
c.type === Le ? b = new he(n, n.nextSibling, this, e) : c.type === Ko ? b = new c.ctor(n, c.name, c.strings, this, e) : c.type === Yo && (b = new Xt(n, this, e)), this._parts.push(b), c = i[++s];
|
|
550
549
|
}
|
|
551
550
|
l !== (c == null ? void 0 : c.index) && (n = ce.nextNode(), l++);
|
|
552
551
|
}
|
|
@@ -606,7 +605,7 @@ class he {
|
|
|
606
605
|
}
|
|
607
606
|
this._commitNode(e);
|
|
608
607
|
} else
|
|
609
|
-
|
|
608
|
+
It(e) ? this._commitIterable(e) : this._commitText(e);
|
|
610
609
|
}
|
|
611
610
|
_insert(e, t = this._$endNode) {
|
|
612
611
|
return O(O(this._$startNode).parentNode).insertBefore(e, t);
|
|
@@ -663,7 +662,7 @@ class he {
|
|
|
663
662
|
values: r
|
|
664
663
|
}), this._$committedValue._update(r);
|
|
665
664
|
else {
|
|
666
|
-
const n = new
|
|
665
|
+
const n = new Wt(a, this), l = n._clone(this.options);
|
|
667
666
|
m == null || m({
|
|
668
667
|
kind: "template instantiated",
|
|
669
668
|
template: a,
|
|
@@ -684,11 +683,11 @@ class he {
|
|
|
684
683
|
}
|
|
685
684
|
}
|
|
686
685
|
_$getTemplate(e) {
|
|
687
|
-
let t =
|
|
688
|
-
return t === void 0 &&
|
|
686
|
+
let t = vt.get(e.strings);
|
|
687
|
+
return t === void 0 && vt.set(e.strings, t = new ye(e)), t;
|
|
689
688
|
}
|
|
690
689
|
_commitIterable(e) {
|
|
691
|
-
|
|
690
|
+
Lt(this._$committedValue) || (this._$committedValue = [], this._$clear());
|
|
692
691
|
const t = this._$committedValue;
|
|
693
692
|
let r = 0, i;
|
|
694
693
|
for (const a of e)
|
|
@@ -744,9 +743,9 @@ class _e {
|
|
|
744
743
|
}), O(this.element).setAttribute(this.name, e != null ? e : ""));
|
|
745
744
|
}
|
|
746
745
|
}
|
|
747
|
-
class
|
|
746
|
+
class Kt extends _e {
|
|
748
747
|
constructor() {
|
|
749
|
-
super(...arguments), this.type =
|
|
748
|
+
super(...arguments), this.type = Br;
|
|
750
749
|
}
|
|
751
750
|
_commitValue(e) {
|
|
752
751
|
this._sanitizer === void 0 && (this._sanitizer = ie(this.element, this.name, "property")), e = this._sanitizer(e), m == null || m({
|
|
@@ -758,10 +757,10 @@ class Yt extends _e {
|
|
|
758
757
|
}), this.element[this.name] = e === z ? void 0 : e;
|
|
759
758
|
}
|
|
760
759
|
}
|
|
761
|
-
const
|
|
762
|
-
class
|
|
760
|
+
const Wr = ue ? ue.emptyScript : "";
|
|
761
|
+
class Yt extends _e {
|
|
763
762
|
constructor() {
|
|
764
|
-
super(...arguments), this.type =
|
|
763
|
+
super(...arguments), this.type = Vr;
|
|
765
764
|
}
|
|
766
765
|
_commitValue(e) {
|
|
767
766
|
m == null || m({
|
|
@@ -770,12 +769,12 @@ class Zt extends _e {
|
|
|
770
769
|
name: this.name,
|
|
771
770
|
value: !!(e && e !== z),
|
|
772
771
|
options: this.options
|
|
773
|
-
}), e && e !== z ? O(this.element).setAttribute(this.name,
|
|
772
|
+
}), e && e !== z ? O(this.element).setAttribute(this.name, Wr) : O(this.element).removeAttribute(this.name);
|
|
774
773
|
}
|
|
775
774
|
}
|
|
776
|
-
class
|
|
775
|
+
class Zt extends _e {
|
|
777
776
|
constructor(e, t, r, i, a) {
|
|
778
|
-
if (super(e, t, r, i, a), this.type =
|
|
777
|
+
if (super(e, t, r, i, a), this.type = Dr, this.strings !== void 0)
|
|
779
778
|
throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`);
|
|
780
779
|
}
|
|
781
780
|
_$setValue(e, t = this) {
|
|
@@ -799,7 +798,7 @@ class Xt extends _e {
|
|
|
799
798
|
typeof this._$committedValue == "function" ? this._$committedValue.call((r = (t = this.options) === null || t === void 0 ? void 0 : t.host) !== null && r !== void 0 ? r : this.element, e) : this._$committedValue.handleEvent(e);
|
|
800
799
|
}
|
|
801
800
|
}
|
|
802
|
-
class
|
|
801
|
+
class Xt {
|
|
803
802
|
constructor(e, t, r) {
|
|
804
803
|
this.element = e, this.type = Yo, this._$disconnectableChildren = void 0, this._$parent = t, this.options = r;
|
|
805
804
|
}
|
|
@@ -815,21 +814,21 @@ class Gt {
|
|
|
815
814
|
}), ne(this, e);
|
|
816
815
|
}
|
|
817
816
|
}
|
|
818
|
-
const
|
|
817
|
+
const Kr = {
|
|
819
818
|
_boundAttributeSuffix: Oe,
|
|
820
819
|
_marker: I,
|
|
821
820
|
_markerMatch: Wo,
|
|
822
|
-
_HTML_RESULT:
|
|
823
|
-
_getTemplateHtml:
|
|
824
|
-
_TemplateInstance:
|
|
825
|
-
_isIterable:
|
|
821
|
+
_HTML_RESULT: Vt,
|
|
822
|
+
_getTemplateHtml: Ht,
|
|
823
|
+
_TemplateInstance: Wt,
|
|
824
|
+
_isIterable: It,
|
|
826
825
|
_resolveDirective: ne,
|
|
827
826
|
_ChildPart: he,
|
|
828
827
|
_AttributePart: _e,
|
|
829
|
-
_BooleanAttributePart:
|
|
830
|
-
_EventPart:
|
|
831
|
-
_PropertyPart:
|
|
832
|
-
_ElementPart:
|
|
828
|
+
_BooleanAttributePart: Yt,
|
|
829
|
+
_EventPart: Zt,
|
|
830
|
+
_PropertyPart: Kt,
|
|
831
|
+
_ElementPart: Xt
|
|
833
832
|
}, mo = q.litHtmlPolyfillSupportDevMode;
|
|
834
833
|
mo == null || mo(ye, he);
|
|
835
834
|
((uo = q.litHtmlVersions) !== null && uo !== void 0 ? uo : q.litHtmlVersions = []).push("2.6.1");
|
|
@@ -838,7 +837,7 @@ const Me = (o, e, t) => {
|
|
|
838
837
|
var r, i;
|
|
839
838
|
if (e == null)
|
|
840
839
|
throw new TypeError(`The container to render into may not be ${e}`);
|
|
841
|
-
const a =
|
|
840
|
+
const a = Mr++, n = (r = t == null ? void 0 : t.renderBefore) !== null && r !== void 0 ? r : e;
|
|
842
841
|
let l = n._$litPart$;
|
|
843
842
|
if (m == null || m({
|
|
844
843
|
kind: "begin render",
|
|
@@ -860,7 +859,7 @@ const Me = (o, e, t) => {
|
|
|
860
859
|
part: l
|
|
861
860
|
}), l;
|
|
862
861
|
};
|
|
863
|
-
Me.setSanitizer =
|
|
862
|
+
Me.setSanitizer = jr, Me.createSanitizer = Eo, Me._testOnlyClearSanitizerFactoryDoNotCallOrElse = Nr;
|
|
864
863
|
/**
|
|
865
864
|
* @license
|
|
866
865
|
* Copyright 2017 Google LLC
|
|
@@ -954,7 +953,7 @@ class Jo {
|
|
|
954
953
|
* Copyright 2017 Google LLC
|
|
955
954
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
956
955
|
*/
|
|
957
|
-
const
|
|
956
|
+
const Yr = 1;
|
|
958
957
|
class Qo extends Jo {
|
|
959
958
|
constructor(e) {
|
|
960
959
|
if (super(e), this._value = z, e.type !== Xo.CHILD)
|
|
@@ -979,9 +978,9 @@ class Qo extends Jo {
|
|
|
979
978
|
}
|
|
980
979
|
}
|
|
981
980
|
Qo.directiveName = "unsafeHTML";
|
|
982
|
-
Qo.resultType =
|
|
981
|
+
Qo.resultType = Yr;
|
|
983
982
|
const et = Go(Qo);
|
|
984
|
-
function
|
|
983
|
+
function Zr(o) {
|
|
985
984
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
986
985
|
}
|
|
987
986
|
var Ro = { exports: {} };
|
|
@@ -1078,13 +1077,13 @@ var Ro = { exports: {} };
|
|
|
1078
1077
|
!v && M && (x = P);
|
|
1079
1078
|
const G = (T && P != "--" || A && P == "--") && P == x;
|
|
1080
1079
|
v && !G && (E = A = M = T = !1), M && (u = !0), T && (h = !0), T && !M && --y;
|
|
1081
|
-
const eo = u && A && ["script", "style"].includes(x) || M && x == "--", at = u || h, lt = X || S.pendingWhitespace,
|
|
1080
|
+
const eo = u && A && ["script", "style"].includes(x) || M && x == "--", at = u || h, lt = X || S.pendingWhitespace, vr = /^=([^!=]|$)/.test(C) || /^"/.test(C) && /(^|[^!=])=$/.test(S.tokenValue), xr = at && (vr || /^>/.test(C));
|
|
1082
1081
|
if (v || f)
|
|
1083
1082
|
g.push(X);
|
|
1084
|
-
else if (lt && !
|
|
1083
|
+
else if (lt && !xr) {
|
|
1085
1084
|
const oo = (lt.match(/\n/g) || []).length, pe = Math.max(0, g.lastIndexOf(`
|
|
1086
|
-
`)),
|
|
1087
|
-
|
|
1085
|
+
`)), kr = g.slice(pe).reduce((wr, yr) => wr + yr.length, 0), ct = b.repeat(y + Number(at && !E));
|
|
1086
|
+
kr + C.length > d ? g.push(`
|
|
1088
1087
|
`, ct) : oo ? g.push(...Array(oo).fill(`
|
|
1089
1088
|
`), ct) : g.push(" ");
|
|
1090
1089
|
}
|
|
@@ -1096,8 +1095,8 @@ var Ro = { exports: {} };
|
|
|
1096
1095
|
}
|
|
1097
1096
|
e.default = s, o.exports = Object.assign(e.default, e);
|
|
1098
1097
|
})(Ro, Ro.exports);
|
|
1099
|
-
const
|
|
1100
|
-
class
|
|
1098
|
+
const Xr = /* @__PURE__ */ Zr(Ro.exports);
|
|
1099
|
+
class Gt extends $ {
|
|
1101
1100
|
static get properties() {
|
|
1102
1101
|
return {
|
|
1103
1102
|
source: { attribute: !1 }
|
|
@@ -1105,7 +1104,7 @@ class Jt extends $ {
|
|
|
1105
1104
|
}
|
|
1106
1105
|
firstUpdated() {
|
|
1107
1106
|
let t = this.shadowRoot.querySelector("slot").assignedNodes().map((i) => i.nodeType === Node.TEXT_NODE ? i.textContent : i.outerHTML).join("").trim();
|
|
1108
|
-
t =
|
|
1107
|
+
t = Xr(t);
|
|
1109
1108
|
const r = window == null ? void 0 : window.Prism.highlight(t, window.Prism.languages.markup, "html");
|
|
1110
1109
|
this.source = r;
|
|
1111
1110
|
}
|
|
@@ -1120,7 +1119,7 @@ class Jt extends $ {
|
|
|
1120
1119
|
<pre><code>${et(this.source)}</code></pre>`;
|
|
1121
1120
|
}
|
|
1122
1121
|
}
|
|
1123
|
-
k(
|
|
1122
|
+
k(Gt, "styles", R`
|
|
1124
1123
|
:host {
|
|
1125
1124
|
display: block;
|
|
1126
1125
|
margin-top: 20px;
|
|
@@ -1140,8 +1139,8 @@ k(Jt, "styles", R`
|
|
|
1140
1139
|
display: none;
|
|
1141
1140
|
}
|
|
1142
1141
|
`);
|
|
1143
|
-
customElements.define("syntax-highlight",
|
|
1144
|
-
const
|
|
1142
|
+
customElements.define("syntax-highlight", Gt);
|
|
1143
|
+
const Gr = () => p`<svg
|
|
1145
1144
|
aria-label="Rødt utropstegn"
|
|
1146
1145
|
role="img"
|
|
1147
1146
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1149,8 +1148,8 @@ const Jr = () => p`<svg
|
|
|
1149
1148
|
height="16"
|
|
1150
1149
|
fill="none"
|
|
1151
1150
|
>
|
|
1152
|
-
${
|
|
1153
|
-
</svg>`,
|
|
1151
|
+
${oi}
|
|
1152
|
+
</svg>`, Jr = () => p`<svg
|
|
1154
1153
|
aria-label="Grønt hake"
|
|
1155
1154
|
role="img"
|
|
1156
1155
|
width="16"
|
|
@@ -1158,8 +1157,8 @@ const Jr = () => p`<svg
|
|
|
1158
1157
|
fill="none"
|
|
1159
1158
|
xmlns="http://www.w3.org/2000/svg"
|
|
1160
1159
|
>
|
|
1161
|
-
${
|
|
1162
|
-
</svg> `,
|
|
1160
|
+
${ti}
|
|
1161
|
+
</svg> `, Qr = () => p`<svg
|
|
1163
1162
|
aria-label="Gult utropstegn"
|
|
1164
1163
|
role="img"
|
|
1165
1164
|
width="16"
|
|
@@ -1167,8 +1166,8 @@ const Jr = () => p`<svg
|
|
|
1167
1166
|
fill="none"
|
|
1168
1167
|
xmlns="http://www.w3.org/2000/svg"
|
|
1169
1168
|
>
|
|
1170
|
-
${
|
|
1171
|
-
</svg> `,
|
|
1169
|
+
${ri}
|
|
1170
|
+
</svg> `, ei = () => p`<svg
|
|
1172
1171
|
aria-label="Info"
|
|
1173
1172
|
role="img"
|
|
1174
1173
|
width="16"
|
|
@@ -1176,8 +1175,8 @@ const Jr = () => p`<svg
|
|
|
1176
1175
|
fill="none"
|
|
1177
1176
|
xmlns="http://www.w3.org/2000/svg"
|
|
1178
1177
|
>
|
|
1179
|
-
${
|
|
1180
|
-
</svg>`,
|
|
1178
|
+
${ii}
|
|
1179
|
+
</svg>`, oi = Ze`<path
|
|
1181
1180
|
d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
|
|
1182
1181
|
fill="currentColor"
|
|
1183
1182
|
/>
|
|
@@ -1187,13 +1186,13 @@ clip-rule="evenodd"
|
|
|
1187
1186
|
d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
|
|
1188
1187
|
fill="#fff"
|
|
1189
1188
|
/>
|
|
1190
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
1189
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ti = Ze`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
1191
1190
|
<path
|
|
1192
1191
|
fill-rule="evenodd"
|
|
1193
1192
|
clip-rule="evenodd"
|
|
1194
1193
|
d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
|
|
1195
1194
|
fill="#fff"
|
|
1196
|
-
/>`,
|
|
1195
|
+
/>`, ri = Ze`<path
|
|
1197
1196
|
d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
|
|
1198
1197
|
fill="currentColor"
|
|
1199
1198
|
/>
|
|
@@ -1203,37 +1202,37 @@ clip-rule="evenodd"
|
|
|
1203
1202
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
1204
1203
|
fill="#fff"
|
|
1205
1204
|
/>
|
|
1206
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
1205
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ii = Ze`<circle cx="8" cy="8" r="8" fill="currentColor" />
|
|
1207
1206
|
<path
|
|
1208
1207
|
fill-rule="evenodd"
|
|
1209
1208
|
clip-rule="evenodd"
|
|
1210
1209
|
d="M7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
|
|
1211
1210
|
fill="#fff"
|
|
1212
|
-
/>`,
|
|
1211
|
+
/>`, xt = {
|
|
1213
1212
|
negative: {
|
|
1214
1213
|
color: "red",
|
|
1215
|
-
icon:
|
|
1214
|
+
icon: Gr(),
|
|
1216
1215
|
bgColor: "bg-red-50",
|
|
1217
1216
|
borderColor: "border-red-300",
|
|
1218
1217
|
textColor: "text-red-600"
|
|
1219
1218
|
},
|
|
1220
1219
|
positive: {
|
|
1221
1220
|
color: "green",
|
|
1222
|
-
icon:
|
|
1221
|
+
icon: Jr(),
|
|
1223
1222
|
bgColor: "bg-green-50",
|
|
1224
1223
|
borderColor: "border-green-300",
|
|
1225
1224
|
textColor: "text-green-600"
|
|
1226
1225
|
},
|
|
1227
1226
|
warning: {
|
|
1228
1227
|
color: "yellow",
|
|
1229
|
-
icon:
|
|
1228
|
+
icon: Qr(),
|
|
1230
1229
|
bgColor: "bg-yellow-50",
|
|
1231
1230
|
borderColor: "border-yellow-300",
|
|
1232
1231
|
textColor: "text-yellow-600"
|
|
1233
1232
|
},
|
|
1234
1233
|
info: {
|
|
1235
1234
|
color: "aqua",
|
|
1236
|
-
icon:
|
|
1235
|
+
icon: ei(),
|
|
1237
1236
|
bgColor: "bg-aqua-50",
|
|
1238
1237
|
borderColor: "border-aqua-300",
|
|
1239
1238
|
textColor: "text-aqua-600"
|
|
@@ -1244,14 +1243,14 @@ class Ao extends $ {
|
|
|
1244
1243
|
super(), this.show = !1, this.role = "alert";
|
|
1245
1244
|
}
|
|
1246
1245
|
connectedCallback() {
|
|
1247
|
-
if (super.connectedCallback(), !this.variant || !Object.keys(
|
|
1246
|
+
if (super.connectedCallback(), !this.variant || !Object.keys(xt).includes(this.variant))
|
|
1248
1247
|
throw new Error(
|
|
1249
1248
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
1250
1249
|
negative, positive, warning, info.`
|
|
1251
1250
|
);
|
|
1252
1251
|
}
|
|
1253
1252
|
get _style() {
|
|
1254
|
-
return this.variant ?
|
|
1253
|
+
return this.variant ? xt[this.variant] : {};
|
|
1255
1254
|
}
|
|
1256
1255
|
render() {
|
|
1257
1256
|
const { color: e, icon: t, bgColor: r, borderColor: i, textColor: a } = this._style;
|
|
@@ -1875,7 +1874,7 @@ const Q = {
|
|
|
1875
1874
|
cardOutline: "f-card-outline absolute rounded-8 inset-0 transition-all border-2",
|
|
1876
1875
|
cardOutlineUnselected: "border-transparent",
|
|
1877
1876
|
cardOutlineSelected: "border-blue-600 hover:border-blue-700"
|
|
1878
|
-
},
|
|
1877
|
+
}, kt = {
|
|
1879
1878
|
toasterContainer: "fixed fixed-ios-fix bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
|
|
1880
1879
|
toaster: "f-toaster grid f-grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
|
|
1881
1880
|
}, j = {
|
|
@@ -1893,13 +1892,13 @@ const Q = {
|
|
|
1893
1892
|
toastIconLoading: "animate-bounce",
|
|
1894
1893
|
toastContent: "self-center mr-8 py-4 last-child:mb-0",
|
|
1895
1894
|
toastClose: "ml-auto p-8"
|
|
1896
|
-
},
|
|
1897
|
-
wrapper:
|
|
1895
|
+
}, ni = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", Jt = "absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ", ai = {
|
|
1896
|
+
wrapper: Jt + "right-0",
|
|
1898
1897
|
wrapperWithLabel: "w-max pr-12",
|
|
1899
1898
|
wrapperWithIcon: "w-40",
|
|
1900
1899
|
label: "field-label pb-0 text-12"
|
|
1901
|
-
},
|
|
1902
|
-
wrapper:
|
|
1900
|
+
}, li = {
|
|
1901
|
+
wrapper: Jt + "left-0",
|
|
1903
1902
|
wrapperWithLabel: "w-max pl-12",
|
|
1904
1903
|
wrapperWithIcon: "w-40",
|
|
1905
1904
|
label: "field-label pb-0 text-secondary text-12"
|
|
@@ -1936,7 +1935,7 @@ var ot = function() {
|
|
|
1936
1935
|
* Copyright 2018 Google LLC
|
|
1937
1936
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1938
1937
|
*/
|
|
1939
|
-
class
|
|
1938
|
+
class ci extends Jo {
|
|
1940
1939
|
constructor(e) {
|
|
1941
1940
|
var t;
|
|
1942
1941
|
if (super(e), e.type !== Xo.ATTRIBUTE || e.name !== "class" || ((t = e.strings) === null || t === void 0 ? void 0 : t.length) > 2)
|
|
@@ -1964,18 +1963,18 @@ class si extends Jo {
|
|
|
1964
1963
|
return K;
|
|
1965
1964
|
}
|
|
1966
1965
|
}
|
|
1967
|
-
const tt = Go(
|
|
1966
|
+
const tt = Go(ci), si = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1968
1967
|
function Xe(o) {
|
|
1969
1968
|
return class extends o {
|
|
1970
1969
|
static createProperty(e, t) {
|
|
1971
1970
|
let r = t;
|
|
1972
1971
|
(typeof (t == null ? void 0 : t.attribute) > "u" || (t == null ? void 0 : t.attribute) === !0) && (r = Object.assign({}, t, {
|
|
1973
|
-
attribute:
|
|
1972
|
+
attribute: si(e.toString())
|
|
1974
1973
|
})), super.createProperty(e, r);
|
|
1975
1974
|
}
|
|
1976
1975
|
};
|
|
1977
1976
|
}
|
|
1978
|
-
function
|
|
1977
|
+
function wt(o) {
|
|
1979
1978
|
const e = [];
|
|
1980
1979
|
for (const [t, r] of Object.entries(o))
|
|
1981
1980
|
r && e.push(t);
|
|
@@ -1989,7 +1988,7 @@ function L(o) {
|
|
|
1989
1988
|
e[i] = r;
|
|
1990
1989
|
return tt(e);
|
|
1991
1990
|
}
|
|
1992
|
-
function
|
|
1991
|
+
function di() {
|
|
1993
1992
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
1994
1993
|
}
|
|
1995
1994
|
const wo = [
|
|
@@ -2018,7 +2017,7 @@ ${wo.join(
|
|
|
2018
2017
|
}
|
|
2019
2018
|
get _classes() {
|
|
2020
2019
|
const e = this.variant === "primary", t = this.variant === "secondary", r = this.variant === "negative", i = this.variant === "utility", a = this.variant === "pill", n = this.variant === "link";
|
|
2021
|
-
return
|
|
2020
|
+
return ot(
|
|
2022
2021
|
{
|
|
2023
2022
|
[U.buttonSecondary]: !wo.find((l) => this.variant === l) || t,
|
|
2024
2023
|
[U.buttonPrimary]: e,
|
|
@@ -2067,7 +2066,7 @@ k(Pe, "shadowRootOptions", { ...$.shadowRootOptions, delegatesFocus: !0 }), k(Pe
|
|
|
2067
2066
|
target: { type: String, reflect: !0 },
|
|
2068
2067
|
rel: { type: String, reflect: !0 },
|
|
2069
2068
|
buttonClass: { type: String, reflect: !0 }
|
|
2070
|
-
}), k(Pe, "styles",
|
|
2069
|
+
}), k(Pe, "styles", R`
|
|
2071
2070
|
/* /* layer: preflights */
|
|
2072
2071
|
|
|
2073
2072
|
/*
|
|
@@ -2634,14 +2633,14 @@ video {
|
|
|
2634
2633
|
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}
|
|
2635
2634
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
2636
2635
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
2637
|
-
`
|
|
2636
|
+
`);
|
|
2638
2637
|
customElements.get("w-button") || customElements.define("w-button", Pe);
|
|
2639
2638
|
/**
|
|
2640
2639
|
* @license
|
|
2641
2640
|
* Copyright 2018 Google LLC
|
|
2642
2641
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2643
2642
|
*/
|
|
2644
|
-
const _ = (o) => o != null ? o : z,
|
|
2643
|
+
const _ = (o) => o != null ? o : z, yt = {
|
|
2645
2644
|
ENTER: "Enter",
|
|
2646
2645
|
SPACE: " "
|
|
2647
2646
|
};
|
|
@@ -2673,7 +2672,7 @@ class qo extends $ {
|
|
|
2673
2672
|
return p`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
2674
2673
|
}
|
|
2675
2674
|
keypressed(e) {
|
|
2676
|
-
!this.clickable || e.altKey || e.ctrlKey || (e.key ===
|
|
2675
|
+
!this.clickable || e.altKey || e.ctrlKey || (e.key === yt.ENTER || e.key === yt.SPACE) && (e.preventDefault(), this.click());
|
|
2677
2676
|
}
|
|
2678
2677
|
render() {
|
|
2679
2678
|
return p`
|
|
@@ -3285,7 +3284,7 @@ customElements.get("w-card") || customElements.define("w-card", qo);
|
|
|
3285
3284
|
function je(o, e, t) {
|
|
3286
3285
|
return o ? e() : t == null ? void 0 : t();
|
|
3287
3286
|
}
|
|
3288
|
-
var Ke,
|
|
3287
|
+
var Ke, Qt, se, Ne, de, Te;
|
|
3289
3288
|
class Mo extends Xe($) {
|
|
3290
3289
|
constructor() {
|
|
3291
3290
|
super();
|
|
@@ -3295,7 +3294,7 @@ class Mo extends Xe($) {
|
|
|
3295
3294
|
this._options = this.innerHTML;
|
|
3296
3295
|
}
|
|
3297
3296
|
render() {
|
|
3298
|
-
return p`<div class="${J(this, Ke,
|
|
3297
|
+
return p`<div class="${J(this, Ke, Qt)}">
|
|
3299
3298
|
${je(
|
|
3300
3299
|
this.label,
|
|
3301
3300
|
() => p`<label for="${J(this, se, Ne)}">
|
|
@@ -3324,7 +3323,7 @@ class Mo extends Xe($) {
|
|
|
3324
3323
|
</div>`;
|
|
3325
3324
|
}
|
|
3326
3325
|
}
|
|
3327
|
-
Ke = new WeakSet(),
|
|
3326
|
+
Ke = new WeakSet(), Qt = function() {
|
|
3328
3327
|
return ot("input mb-0", {
|
|
3329
3328
|
"input--is-invalid": this.invalid
|
|
3330
3329
|
});
|
|
@@ -4509,13 +4508,13 @@ video {
|
|
|
4509
4508
|
}
|
|
4510
4509
|
`);
|
|
4511
4510
|
customElements.get("w-box") || customElements.define("w-box", Po);
|
|
4512
|
-
function
|
|
4511
|
+
function ui(o, e) {
|
|
4513
4512
|
return o.flatMap((t) => [t, e]).slice(0, -1);
|
|
4514
4513
|
}
|
|
4515
|
-
const
|
|
4516
|
-
class
|
|
4514
|
+
const bi = p`<span class="select-none" aria-hidden="true">/</span>`;
|
|
4515
|
+
class er extends $ {
|
|
4517
4516
|
connectedCallback() {
|
|
4518
|
-
super.connectedCallback(), this._children =
|
|
4517
|
+
super.connectedCallback(), this._children = ui(Array.from(this.children), bi);
|
|
4519
4518
|
}
|
|
4520
4519
|
render() {
|
|
4521
4520
|
return p`
|
|
@@ -4526,7 +4525,7 @@ class or extends $ {
|
|
|
4526
4525
|
`;
|
|
4527
4526
|
}
|
|
4528
4527
|
}
|
|
4529
|
-
k(
|
|
4528
|
+
k(er, "styles", R`
|
|
4530
4529
|
/* /* layer: preflights */
|
|
4531
4530
|
|
|
4532
4531
|
/*
|
|
@@ -5096,49 +5095,49 @@ video {
|
|
|
5096
5095
|
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
5097
5096
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
5098
5097
|
`);
|
|
5099
|
-
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs",
|
|
5098
|
+
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", er);
|
|
5100
5099
|
const rt = typeof window < "u";
|
|
5101
|
-
let
|
|
5100
|
+
let or = !0;
|
|
5102
5101
|
if (rt) {
|
|
5103
|
-
const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) =>
|
|
5102
|
+
const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) => or = !t;
|
|
5104
5103
|
o.addEventListener && o.addEventListener("change", e), e(o);
|
|
5105
5104
|
}
|
|
5106
|
-
const
|
|
5105
|
+
const tr = (o) => {
|
|
5107
5106
|
o.style.transition = null, o.style.backfaceVisibility = null, o.style.overflow = null;
|
|
5108
|
-
},
|
|
5109
|
-
const e =
|
|
5107
|
+
}, rr = (o) => {
|
|
5108
|
+
const e = or ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
5110
5109
|
o.style.transition = `height ${e}`, o.style.backfaceVisibility = "hidden", o.style.overflow = "hidden";
|
|
5111
|
-
},
|
|
5110
|
+
}, gi = (o, e) => () => {
|
|
5112
5111
|
o.style.height = "auto", o.style.overflow = null, e && e();
|
|
5113
|
-
},
|
|
5112
|
+
}, hi = (o) => () => {
|
|
5114
5113
|
o && o();
|
|
5115
|
-
},
|
|
5114
|
+
}, ir = (o, e) => {
|
|
5116
5115
|
const t = (() => {
|
|
5117
5116
|
if (!e)
|
|
5118
5117
|
return new Promise((a) => {
|
|
5119
5118
|
e = a;
|
|
5120
5119
|
});
|
|
5121
|
-
})(), r =
|
|
5122
|
-
|
|
5120
|
+
})(), r = gi(o, e);
|
|
5121
|
+
tr(o), o.style.height = "auto";
|
|
5123
5122
|
let i = o.scrollHeight;
|
|
5124
5123
|
if (rt && requestAnimationFrame(() => {
|
|
5125
|
-
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out",
|
|
5124
|
+
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out", rr(o), requestAnimationFrame(() => o.style.height = i + "px");
|
|
5126
5125
|
}), t)
|
|
5127
5126
|
return t;
|
|
5128
|
-
},
|
|
5127
|
+
}, nr = (o, e) => {
|
|
5129
5128
|
const t = (() => {
|
|
5130
5129
|
if (!e)
|
|
5131
5130
|
return new Promise((a) => {
|
|
5132
5131
|
e = a;
|
|
5133
5132
|
});
|
|
5134
|
-
})(), r =
|
|
5135
|
-
|
|
5133
|
+
})(), r = hi(e);
|
|
5134
|
+
tr(o);
|
|
5136
5135
|
let i = o.scrollHeight;
|
|
5137
5136
|
if (rt && requestAnimationFrame(() => {
|
|
5138
|
-
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in",
|
|
5137
|
+
o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in", rr(o), requestAnimationFrame(() => o.style.height = "0px");
|
|
5139
5138
|
}), t)
|
|
5140
5139
|
return t;
|
|
5141
|
-
},
|
|
5140
|
+
}, pi = (o) => p`<svg
|
|
5142
5141
|
role="img"
|
|
5143
5142
|
aria-label="${o.typeLabel}"
|
|
5144
5143
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5154,7 +5153,7 @@ const rr = (o) => {
|
|
|
5154
5153
|
stroke-width="1.5"
|
|
5155
5154
|
d="M5.5 9l2 1.5L11 6"
|
|
5156
5155
|
/>
|
|
5157
|
-
</svg>`,
|
|
5156
|
+
</svg>`, mi = (o) => p`
|
|
5158
5157
|
<svg
|
|
5159
5158
|
role="img"
|
|
5160
5159
|
aria-label="${o.typeLabel}"
|
|
@@ -5177,7 +5176,7 @@ const rr = (o) => {
|
|
|
5177
5176
|
/>
|
|
5178
5177
|
<circle cx="8" cy="11.8" r=".8" fill="currentColor" />
|
|
5179
5178
|
</svg>
|
|
5180
|
-
`,
|
|
5179
|
+
`, fi = () => p`
|
|
5181
5180
|
<svg
|
|
5182
5181
|
role="img"
|
|
5183
5182
|
aria-label="Lukk"
|
|
@@ -5194,7 +5193,7 @@ const rr = (o) => {
|
|
|
5194
5193
|
clipRule="evenodd"
|
|
5195
5194
|
/>
|
|
5196
5195
|
</svg>
|
|
5197
|
-
`,
|
|
5196
|
+
`, $t = (o) => {
|
|
5198
5197
|
const e = {};
|
|
5199
5198
|
for (const [t, r] of Object.entries(o))
|
|
5200
5199
|
for (const i of t.split(" "))
|
|
@@ -5212,10 +5211,10 @@ class jo extends $ {
|
|
|
5212
5211
|
super.disconnectedCallback();
|
|
5213
5212
|
}
|
|
5214
5213
|
updated() {
|
|
5215
|
-
!this._expanded && this._wrapper &&
|
|
5214
|
+
!this._expanded && this._wrapper && ir(this._wrapper, () => this._expanded = !0);
|
|
5216
5215
|
}
|
|
5217
5216
|
get _primaryClasses() {
|
|
5218
|
-
return
|
|
5217
|
+
return $t({
|
|
5219
5218
|
[j.toast]: !0,
|
|
5220
5219
|
[j.toastPositive]: this.type === "success",
|
|
5221
5220
|
[j.toastWarning]: this.type === "warning",
|
|
@@ -5224,7 +5223,7 @@ class jo extends $ {
|
|
|
5224
5223
|
});
|
|
5225
5224
|
}
|
|
5226
5225
|
get _iconClasses() {
|
|
5227
|
-
return
|
|
5226
|
+
return $t({
|
|
5228
5227
|
[j.toastIcon]: !0,
|
|
5229
5228
|
[j.toastIconPositive]: this.type == "success",
|
|
5230
5229
|
[j.toastIconWarning]: this.type === "warning",
|
|
@@ -5255,11 +5254,11 @@ class jo extends $ {
|
|
|
5255
5254
|
return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
|
|
5256
5255
|
}
|
|
5257
5256
|
get _iconMarkup() {
|
|
5258
|
-
return this._success ?
|
|
5257
|
+
return this._success ? pi({ typeLabel: this._typeLabel }) : mi({ typeLabel: this._typeLabel, isInfo: this._info });
|
|
5259
5258
|
}
|
|
5260
5259
|
async collapse() {
|
|
5261
5260
|
return new Promise((e) => {
|
|
5262
|
-
this._expanded && this._wrapper ?
|
|
5261
|
+
this._expanded && this._wrapper ? nr(this._wrapper, e) : e();
|
|
5263
5262
|
});
|
|
5264
5263
|
}
|
|
5265
5264
|
close() {
|
|
@@ -5279,7 +5278,7 @@ class jo extends $ {
|
|
|
5279
5278
|
</div>
|
|
5280
5279
|
${je(
|
|
5281
5280
|
this.canclose === !0,
|
|
5282
|
-
() => p`<button class="${j.toastClose}" @click="${this.close}">${
|
|
5281
|
+
() => p`<button class="${j.toastClose}" @click="${this.close}">${fi()}</button>`
|
|
5283
5282
|
)}
|
|
5284
5283
|
</div>
|
|
5285
5284
|
</section>` : p``;
|
|
@@ -5869,12 +5868,12 @@ customElements.get("w-toast") || customElements.define("w-toast", jo);
|
|
|
5869
5868
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5870
5869
|
*/
|
|
5871
5870
|
var yo, $o;
|
|
5872
|
-
const { _ChildPart:
|
|
5871
|
+
const { _ChildPart: vi } = Kr, W = ((yo = window.ShadyDOM) === null || yo === void 0 ? void 0 : yo.inUse) && (($o = window.ShadyDOM) === null || $o === void 0 ? void 0 : $o.noPatch) === !0 ? window.ShadyDOM.wrap : (o) => o, zt = () => document.createComment(""), fe = (o, e, t) => {
|
|
5873
5872
|
var r;
|
|
5874
5873
|
const i = W(o._$startNode).parentNode, a = e === void 0 ? o._$endNode : e._$startNode;
|
|
5875
5874
|
if (t === void 0) {
|
|
5876
|
-
const n = W(i).insertBefore(
|
|
5877
|
-
t = new
|
|
5875
|
+
const n = W(i).insertBefore(zt(), a), l = W(i).insertBefore(zt(), a);
|
|
5876
|
+
t = new vi(n, l, o, o.options);
|
|
5878
5877
|
} else {
|
|
5879
5878
|
const n = W(t._$endNode).nextSibling, l = t._$parent, s = l !== o;
|
|
5880
5879
|
if (s) {
|
|
@@ -5891,7 +5890,7 @@ const { _ChildPart: xi } = Yr, W = ((yo = window.ShadyDOM) === null || yo === vo
|
|
|
5891
5890
|
}
|
|
5892
5891
|
}
|
|
5893
5892
|
return t;
|
|
5894
|
-
}, re = (o, e, t = o) => (o._$setValue(e, t), o),
|
|
5893
|
+
}, re = (o, e, t = o) => (o._$setValue(e, t), o), xi = {}, ki = (o, e = xi) => o._$committedValue = e, wi = (o) => o._$committedValue, zo = (o) => {
|
|
5895
5894
|
var e;
|
|
5896
5895
|
(e = o._$notifyConnectionChanged) === null || e === void 0 || e.call(o, !1, !0);
|
|
5897
5896
|
let t = o._$startNode;
|
|
@@ -5906,13 +5905,13 @@ const { _ChildPart: xi } = Yr, W = ((yo = window.ShadyDOM) === null || yo === vo
|
|
|
5906
5905
|
* Copyright 2017 Google LLC
|
|
5907
5906
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5908
5907
|
*/
|
|
5909
|
-
const
|
|
5908
|
+
const _t = (o, e, t) => {
|
|
5910
5909
|
const r = /* @__PURE__ */ new Map();
|
|
5911
5910
|
for (let i = e; i <= t; i++)
|
|
5912
5911
|
r.set(o[i], i);
|
|
5913
5912
|
return r;
|
|
5914
5913
|
};
|
|
5915
|
-
class
|
|
5914
|
+
class yi extends Jo {
|
|
5916
5915
|
constructor(e) {
|
|
5917
5916
|
if (super(e), e.type !== Xo.CHILD)
|
|
5918
5917
|
throw new Error("repeat() can only be used in text expressions");
|
|
@@ -5934,7 +5933,7 @@ class $i extends Jo {
|
|
|
5934
5933
|
}
|
|
5935
5934
|
update(e, [t, r, i]) {
|
|
5936
5935
|
var a;
|
|
5937
|
-
const n =
|
|
5936
|
+
const n = wi(e), { values: l, keys: s } = this._getValuesAndKeys(t, r, i);
|
|
5938
5937
|
if (!Array.isArray(n))
|
|
5939
5938
|
return this._itemKeys = s, l;
|
|
5940
5939
|
const c = (a = this._itemKeys) !== null && a !== void 0 ? a : this._itemKeys = [], b = [];
|
|
@@ -5952,7 +5951,7 @@ class $i extends Jo {
|
|
|
5952
5951
|
b[v] = re(n[u], l[v]), fe(e, b[v + 1], n[u]), u++, v--;
|
|
5953
5952
|
else if (c[h] === s[f])
|
|
5954
5953
|
b[f] = re(n[h], l[f]), fe(e, n[u], n[h]), h--, f++;
|
|
5955
|
-
else if (d === void 0 && (d =
|
|
5954
|
+
else if (d === void 0 && (d = _t(s, f, v), g = _t(c, u, h)), !d.has(c[u]))
|
|
5956
5955
|
zo(n[u]), u++;
|
|
5957
5956
|
else if (!d.has(c[h]))
|
|
5958
5957
|
zo(n[h]), h--;
|
|
@@ -5973,10 +5972,10 @@ class $i extends Jo {
|
|
|
5973
5972
|
const x = n[u++];
|
|
5974
5973
|
x !== null && zo(x);
|
|
5975
5974
|
}
|
|
5976
|
-
return this._itemKeys = s,
|
|
5975
|
+
return this._itemKeys = s, ki(e, b), K;
|
|
5977
5976
|
}
|
|
5978
5977
|
}
|
|
5979
|
-
const
|
|
5978
|
+
const ar = Go(yi);
|
|
5980
5979
|
class Ie extends $ {
|
|
5981
5980
|
constructor() {
|
|
5982
5981
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
@@ -6036,9 +6035,9 @@ class Ie extends $ {
|
|
|
6036
6035
|
}
|
|
6037
6036
|
render() {
|
|
6038
6037
|
return p`
|
|
6039
|
-
<aside class="${
|
|
6040
|
-
<div class="${
|
|
6041
|
-
${
|
|
6038
|
+
<aside class="${kt.toasterContainer}">
|
|
6039
|
+
<div class="${kt.toaster}" id="w-toast-container-list">
|
|
6040
|
+
${ar(
|
|
6042
6041
|
this._toastsArray,
|
|
6043
6042
|
(e) => e.id,
|
|
6044
6043
|
(e) => p` <w-toast
|
|
@@ -6633,7 +6632,7 @@ video {
|
|
|
6633
6632
|
_toasts: { state: !0 }
|
|
6634
6633
|
});
|
|
6635
6634
|
customElements.get("w-toast-container") || customElements.define("w-toast-container", Ie);
|
|
6636
|
-
function
|
|
6635
|
+
function $i(o, e) {
|
|
6637
6636
|
if (!be)
|
|
6638
6637
|
return;
|
|
6639
6638
|
const t = customElements.get("w-toast-container").init(), r = {
|
|
@@ -6645,10 +6644,10 @@ function zi(o, e) {
|
|
|
6645
6644
|
};
|
|
6646
6645
|
return t.set(r), r;
|
|
6647
6646
|
}
|
|
6648
|
-
function
|
|
6647
|
+
function zi(o) {
|
|
6649
6648
|
return be ? customElements.get("w-toast-container").init().del(o) : void 0;
|
|
6650
6649
|
}
|
|
6651
|
-
function
|
|
6650
|
+
function _i(o, e) {
|
|
6652
6651
|
if (!be)
|
|
6653
6652
|
return;
|
|
6654
6653
|
const t = customElements.get("w-toast-container").init();
|
|
@@ -6681,7 +6680,7 @@ class No extends $ {
|
|
|
6681
6680
|
const e = this._messages.filter((t) => !this._hiddenMessageIds.includes(t.id));
|
|
6682
6681
|
return p`
|
|
6683
6682
|
<aside class=${`${e.length === 0 ? "hidden" : "mb-16"}`}>
|
|
6684
|
-
${
|
|
6683
|
+
${ar(
|
|
6685
6684
|
e,
|
|
6686
6685
|
({ id: t }) => `broadcast-${t}`,
|
|
6687
6686
|
({ id: t, message: r }) => p`<w-toast
|
|
@@ -7297,7 +7296,7 @@ function Ce(o) {
|
|
|
7297
7296
|
function it(o) {
|
|
7298
7297
|
return o === "y" ? "height" : "width";
|
|
7299
7298
|
}
|
|
7300
|
-
function
|
|
7299
|
+
function St(o, e, t) {
|
|
7301
7300
|
let {
|
|
7302
7301
|
reference: r,
|
|
7303
7302
|
floating: i
|
|
@@ -7345,7 +7344,7 @@ function Ct(o, e, t) {
|
|
|
7345
7344
|
}
|
|
7346
7345
|
return g;
|
|
7347
7346
|
}
|
|
7348
|
-
const
|
|
7347
|
+
const Si = async (o, e, t) => {
|
|
7349
7348
|
const {
|
|
7350
7349
|
placement: r = "bottom",
|
|
7351
7350
|
strategy: i = "absolute",
|
|
@@ -7366,7 +7365,7 @@ const Ci = async (o, e, t) => {
|
|
|
7366
7365
|
}), {
|
|
7367
7366
|
x: c,
|
|
7368
7367
|
y: b
|
|
7369
|
-
} =
|
|
7368
|
+
} = St(s, r, l), d = r, g = {}, u = 0;
|
|
7370
7369
|
for (let h = 0; h < a.length; h++) {
|
|
7371
7370
|
const {
|
|
7372
7371
|
name: f,
|
|
@@ -7404,7 +7403,7 @@ const Ci = async (o, e, t) => {
|
|
|
7404
7403
|
}) : w.rects), {
|
|
7405
7404
|
x: c,
|
|
7406
7405
|
y: b
|
|
7407
|
-
} =
|
|
7406
|
+
} = St(s, d, l)), h = -1;
|
|
7408
7407
|
continue;
|
|
7409
7408
|
}
|
|
7410
7409
|
}
|
|
@@ -7416,7 +7415,7 @@ const Ci = async (o, e, t) => {
|
|
|
7416
7415
|
middlewareData: g
|
|
7417
7416
|
};
|
|
7418
7417
|
};
|
|
7419
|
-
function
|
|
7418
|
+
function Ci(o) {
|
|
7420
7419
|
return {
|
|
7421
7420
|
top: 0,
|
|
7422
7421
|
right: 0,
|
|
@@ -7425,8 +7424,8 @@ function Ei(o) {
|
|
|
7425
7424
|
...o
|
|
7426
7425
|
};
|
|
7427
7426
|
}
|
|
7428
|
-
function
|
|
7429
|
-
return typeof o != "number" ?
|
|
7427
|
+
function lr(o) {
|
|
7428
|
+
return typeof o != "number" ? Ci(o) : {
|
|
7430
7429
|
top: o,
|
|
7431
7430
|
right: o,
|
|
7432
7431
|
bottom: o,
|
|
@@ -7442,7 +7441,7 @@ function Be(o) {
|
|
|
7442
7441
|
bottom: o.y + o.height
|
|
7443
7442
|
};
|
|
7444
7443
|
}
|
|
7445
|
-
async function
|
|
7444
|
+
async function cr(o, e) {
|
|
7446
7445
|
var t;
|
|
7447
7446
|
e === void 0 && (e = {});
|
|
7448
7447
|
const {
|
|
@@ -7458,7 +7457,7 @@ async function sr(o, e) {
|
|
|
7458
7457
|
elementContext: d = "floating",
|
|
7459
7458
|
altBoundary: g = !1,
|
|
7460
7459
|
padding: u = 0
|
|
7461
|
-
} = e, h =
|
|
7460
|
+
} = e, h = lr(u), v = l[g ? d === "floating" ? "reference" : "floating" : d], x = Be(await a.getClippingRect({
|
|
7462
7461
|
element: (t = await (a.isElement == null ? void 0 : a.isElement(v))) == null || t ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
|
|
7463
7462
|
boundary: c,
|
|
7464
7463
|
rootBoundary: b,
|
|
@@ -7479,11 +7478,11 @@ async function sr(o, e) {
|
|
|
7479
7478
|
right: y.right - x.right + h.right
|
|
7480
7479
|
};
|
|
7481
7480
|
}
|
|
7482
|
-
const
|
|
7481
|
+
const Ei = Math.min, Ri = Math.max;
|
|
7483
7482
|
function To(o, e, t) {
|
|
7484
|
-
return
|
|
7483
|
+
return Ri(o, Ei(e, t));
|
|
7485
7484
|
}
|
|
7486
|
-
const
|
|
7485
|
+
const Ai = (o) => ({
|
|
7487
7486
|
name: "arrow",
|
|
7488
7487
|
options: o,
|
|
7489
7488
|
async fn(e) {
|
|
@@ -7499,7 +7498,7 @@ const qi = (o) => ({
|
|
|
7499
7498
|
} = e;
|
|
7500
7499
|
if (t == null)
|
|
7501
7500
|
return process.env.NODE_ENV !== "production" && console.warn("Floating UI: No `element` was passed to the `arrow` middleware."), {};
|
|
7502
|
-
const c =
|
|
7501
|
+
const c = lr(r), b = {
|
|
7503
7502
|
x: i,
|
|
7504
7503
|
y: a
|
|
7505
7504
|
}, d = Ce(n), g = Ge(n), u = it(d), h = await s.getDimensions(t), f = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = l.reference[u] + l.reference[d] - b[d] - l.floating[u], y = b[d] - l.reference[d], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(t));
|
|
@@ -7514,16 +7513,16 @@ const qi = (o) => ({
|
|
|
7514
7513
|
}
|
|
7515
7514
|
};
|
|
7516
7515
|
}
|
|
7517
|
-
}),
|
|
7516
|
+
}), qi = {
|
|
7518
7517
|
left: "right",
|
|
7519
7518
|
right: "left",
|
|
7520
7519
|
bottom: "top",
|
|
7521
7520
|
top: "bottom"
|
|
7522
7521
|
};
|
|
7523
7522
|
function Ve(o) {
|
|
7524
|
-
return o.replace(/left|right|bottom|top/g, (e) =>
|
|
7523
|
+
return o.replace(/left|right|bottom|top/g, (e) => qi[e]);
|
|
7525
7524
|
}
|
|
7526
|
-
function
|
|
7525
|
+
function Mi(o, e, t) {
|
|
7527
7526
|
t === void 0 && (t = !1);
|
|
7528
7527
|
const r = Ge(o), i = Ce(o), a = it(i);
|
|
7529
7528
|
let n = i === "x" ? r === (t ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
@@ -7532,18 +7531,18 @@ function Pi(o, e, t) {
|
|
|
7532
7531
|
cross: Ve(n)
|
|
7533
7532
|
};
|
|
7534
7533
|
}
|
|
7535
|
-
const
|
|
7534
|
+
const Pi = {
|
|
7536
7535
|
start: "end",
|
|
7537
7536
|
end: "start"
|
|
7538
7537
|
};
|
|
7539
|
-
function
|
|
7540
|
-
return o.replace(/start|end/g, (e) =>
|
|
7538
|
+
function Ct(o) {
|
|
7539
|
+
return o.replace(/start|end/g, (e) => Pi[e]);
|
|
7541
7540
|
}
|
|
7542
|
-
function
|
|
7541
|
+
function ji(o) {
|
|
7543
7542
|
const e = Ve(o);
|
|
7544
|
-
return [
|
|
7543
|
+
return [Ct(o), e, Ct(e)];
|
|
7545
7544
|
}
|
|
7546
|
-
const
|
|
7545
|
+
const Ni = function(o) {
|
|
7547
7546
|
return o === void 0 && (o = {}), {
|
|
7548
7547
|
name: "flip",
|
|
7549
7548
|
options: o,
|
|
@@ -7563,13 +7562,13 @@ const Ti = function(o) {
|
|
|
7563
7562
|
fallbackStrategy: g = "bestFit",
|
|
7564
7563
|
flipAlignment: u = !0,
|
|
7565
7564
|
...h
|
|
7566
|
-
} = o, f = Se(r), x = d || (f === n || !u ? [Ve(n)] :
|
|
7565
|
+
} = o, f = Se(r), x = d || (f === n || !u ? [Ve(n)] : ji(n)), y = [n, ...x], S = await cr(e, h), w = [];
|
|
7567
7566
|
let F = ((t = i.flip) == null ? void 0 : t.overflows) || [];
|
|
7568
7567
|
if (c && w.push(S[f]), b) {
|
|
7569
7568
|
const {
|
|
7570
7569
|
main: E,
|
|
7571
7570
|
cross: A
|
|
7572
|
-
} =
|
|
7571
|
+
} = Mi(r, a, await (l.isRTL == null ? void 0 : l.isRTL(s.floating)));
|
|
7573
7572
|
w.push(S[E], S[A]);
|
|
7574
7573
|
}
|
|
7575
7574
|
if (F = [...F, {
|
|
@@ -7611,7 +7610,7 @@ const Ti = function(o) {
|
|
|
7611
7610
|
}
|
|
7612
7611
|
};
|
|
7613
7612
|
};
|
|
7614
|
-
async function
|
|
7613
|
+
async function Ti(o, e) {
|
|
7615
7614
|
const {
|
|
7616
7615
|
placement: t,
|
|
7617
7616
|
platform: r,
|
|
@@ -7639,7 +7638,7 @@ async function Ui(o, e) {
|
|
|
7639
7638
|
y: u * b
|
|
7640
7639
|
};
|
|
7641
7640
|
}
|
|
7642
|
-
const
|
|
7641
|
+
const Ui = function(o) {
|
|
7643
7642
|
return o === void 0 && (o = 0), {
|
|
7644
7643
|
name: "offset",
|
|
7645
7644
|
options: o,
|
|
@@ -7647,7 +7646,7 @@ const Oi = function(o) {
|
|
|
7647
7646
|
const {
|
|
7648
7647
|
x: t,
|
|
7649
7648
|
y: r
|
|
7650
|
-
} = e, i = await
|
|
7649
|
+
} = e, i = await Ti(e, o);
|
|
7651
7650
|
return {
|
|
7652
7651
|
x: t + i.x,
|
|
7653
7652
|
y: r + i.y,
|
|
@@ -7656,10 +7655,10 @@ const Oi = function(o) {
|
|
|
7656
7655
|
}
|
|
7657
7656
|
};
|
|
7658
7657
|
};
|
|
7659
|
-
function
|
|
7658
|
+
function Oi(o) {
|
|
7660
7659
|
return o === "x" ? "y" : "x";
|
|
7661
7660
|
}
|
|
7662
|
-
const
|
|
7661
|
+
const Fi = function(o) {
|
|
7663
7662
|
return o === void 0 && (o = {}), {
|
|
7664
7663
|
name: "shift",
|
|
7665
7664
|
options: o,
|
|
@@ -7687,7 +7686,7 @@ const Li = function(o) {
|
|
|
7687
7686
|
} = o, c = {
|
|
7688
7687
|
x: t,
|
|
7689
7688
|
y: r
|
|
7690
|
-
}, b = await
|
|
7689
|
+
}, b = await cr(e, s), d = Ce(Se(i)), g = Oi(d);
|
|
7691
7690
|
let u = c[d], h = c[g];
|
|
7692
7691
|
if (a) {
|
|
7693
7692
|
const v = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = u + b[v], S = u - b[x];
|
|
@@ -7712,13 +7711,13 @@ const Li = function(o) {
|
|
|
7712
7711
|
}
|
|
7713
7712
|
};
|
|
7714
7713
|
};
|
|
7715
|
-
function
|
|
7714
|
+
function sr(o) {
|
|
7716
7715
|
return o && o.document && o.location && o.alert && o.setInterval;
|
|
7717
7716
|
}
|
|
7718
7717
|
function Z(o) {
|
|
7719
7718
|
if (o == null)
|
|
7720
7719
|
return window;
|
|
7721
|
-
if (!
|
|
7720
|
+
if (!sr(o)) {
|
|
7722
7721
|
const e = o.ownerDocument;
|
|
7723
7722
|
return e && e.defaultView || window;
|
|
7724
7723
|
}
|
|
@@ -7728,9 +7727,9 @@ function Ee(o) {
|
|
|
7728
7727
|
return Z(o).getComputedStyle(o);
|
|
7729
7728
|
}
|
|
7730
7729
|
function Y(o) {
|
|
7731
|
-
return
|
|
7730
|
+
return sr(o) ? "" : o ? (o.nodeName || "").toLowerCase() : "";
|
|
7732
7731
|
}
|
|
7733
|
-
function
|
|
7732
|
+
function dr() {
|
|
7734
7733
|
const o = navigator.userAgentData;
|
|
7735
7734
|
return o != null && o.brands ? o.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
|
|
7736
7735
|
}
|
|
@@ -7740,7 +7739,7 @@ function D(o) {
|
|
|
7740
7739
|
function ge(o) {
|
|
7741
7740
|
return o instanceof Z(o).Element;
|
|
7742
7741
|
}
|
|
7743
|
-
function
|
|
7742
|
+
function Li(o) {
|
|
7744
7743
|
return o instanceof Z(o).Node;
|
|
7745
7744
|
}
|
|
7746
7745
|
function nt(o) {
|
|
@@ -7757,24 +7756,24 @@ function Je(o) {
|
|
|
7757
7756
|
} = Ee(o);
|
|
7758
7757
|
return /auto|scroll|overlay|hidden/.test(e + r + t);
|
|
7759
7758
|
}
|
|
7760
|
-
function
|
|
7759
|
+
function Ii(o) {
|
|
7761
7760
|
return ["table", "td", "th"].includes(Y(o));
|
|
7762
7761
|
}
|
|
7763
|
-
function
|
|
7764
|
-
const e = /firefox/i.test(
|
|
7762
|
+
function ur(o) {
|
|
7763
|
+
const e = /firefox/i.test(dr()), t = Ee(o);
|
|
7765
7764
|
return t.transform !== "none" || t.perspective !== "none" || t.contain === "paint" || ["transform", "perspective"].includes(t.willChange) || e && t.willChange === "filter" || e && (t.filter ? t.filter !== "none" : !1);
|
|
7766
7765
|
}
|
|
7767
|
-
function
|
|
7768
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
7766
|
+
function br() {
|
|
7767
|
+
return !/^((?!chrome|android).)*safari/i.test(dr());
|
|
7769
7768
|
}
|
|
7770
|
-
const
|
|
7769
|
+
const Et = Math.min, ve = Math.max, De = Math.round;
|
|
7771
7770
|
function ae(o, e, t) {
|
|
7772
7771
|
var r, i, a, n;
|
|
7773
7772
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
7774
7773
|
const l = o.getBoundingClientRect();
|
|
7775
7774
|
let s = 1, c = 1;
|
|
7776
7775
|
e && D(o) && (s = o.offsetWidth > 0 && De(l.width) / o.offsetWidth || 1, c = o.offsetHeight > 0 && De(l.height) / o.offsetHeight || 1);
|
|
7777
|
-
const b = ge(o) ? Z(o) : window, d = !
|
|
7776
|
+
const b = ge(o) ? Z(o) : window, d = !br() && t, g = (l.left + (d && (r = (i = b.visualViewport) == null ? void 0 : i.offsetLeft) != null ? r : 0)) / s, u = (l.top + (d && (a = (n = b.visualViewport) == null ? void 0 : n.offsetTop) != null ? a : 0)) / c, h = l.width / s, f = l.height / c;
|
|
7778
7777
|
return {
|
|
7779
7778
|
width: h,
|
|
7780
7779
|
height: f,
|
|
@@ -7787,7 +7786,7 @@ function ae(o, e, t) {
|
|
|
7787
7786
|
};
|
|
7788
7787
|
}
|
|
7789
7788
|
function oe(o) {
|
|
7790
|
-
return ((
|
|
7789
|
+
return ((Li(o) ? o.ownerDocument : o.document) || window.document).documentElement;
|
|
7791
7790
|
}
|
|
7792
7791
|
function Qe(o) {
|
|
7793
7792
|
return ge(o) ? {
|
|
@@ -7798,17 +7797,17 @@ function Qe(o) {
|
|
|
7798
7797
|
scrollTop: o.pageYOffset
|
|
7799
7798
|
};
|
|
7800
7799
|
}
|
|
7801
|
-
function
|
|
7800
|
+
function gr(o) {
|
|
7802
7801
|
return ae(oe(o)).left + Qe(o).scrollLeft;
|
|
7803
7802
|
}
|
|
7804
|
-
function
|
|
7803
|
+
function Bi(o) {
|
|
7805
7804
|
const e = ae(o);
|
|
7806
7805
|
return De(e.width) !== o.offsetWidth || De(e.height) !== o.offsetHeight;
|
|
7807
7806
|
}
|
|
7808
|
-
function
|
|
7807
|
+
function Vi(o, e, t) {
|
|
7809
7808
|
const r = D(e), i = oe(e), a = ae(
|
|
7810
7809
|
o,
|
|
7811
|
-
r &&
|
|
7810
|
+
r && Bi(e),
|
|
7812
7811
|
t === "fixed"
|
|
7813
7812
|
);
|
|
7814
7813
|
let n = {
|
|
@@ -7824,7 +7823,7 @@ function Di(o, e, t) {
|
|
|
7824
7823
|
const s = ae(e, !0);
|
|
7825
7824
|
l.x = s.x + e.clientLeft, l.y = s.y + e.clientTop;
|
|
7826
7825
|
} else
|
|
7827
|
-
i && (l.x =
|
|
7826
|
+
i && (l.x = gr(i));
|
|
7828
7827
|
return {
|
|
7829
7828
|
x: a.left + n.scrollLeft - l.x,
|
|
7830
7829
|
y: a.top + n.scrollTop - l.y,
|
|
@@ -7832,16 +7831,16 @@ function Di(o, e, t) {
|
|
|
7832
7831
|
height: a.height
|
|
7833
7832
|
};
|
|
7834
7833
|
}
|
|
7835
|
-
function
|
|
7834
|
+
function hr(o) {
|
|
7836
7835
|
return Y(o) === "html" ? o : o.assignedSlot || o.parentNode || (nt(o) ? o.host : null) || oe(o);
|
|
7837
7836
|
}
|
|
7838
|
-
function
|
|
7837
|
+
function Rt(o) {
|
|
7839
7838
|
return !D(o) || getComputedStyle(o).position === "fixed" ? null : o.offsetParent;
|
|
7840
7839
|
}
|
|
7841
|
-
function
|
|
7842
|
-
let e =
|
|
7840
|
+
function Di(o) {
|
|
7841
|
+
let e = hr(o);
|
|
7843
7842
|
for (nt(e) && (e = e.host); D(e) && !["html", "body"].includes(Y(e)); ) {
|
|
7844
|
-
if (
|
|
7843
|
+
if (ur(e))
|
|
7845
7844
|
return e;
|
|
7846
7845
|
e = e.parentNode;
|
|
7847
7846
|
}
|
|
@@ -7849,12 +7848,12 @@ function Hi(o) {
|
|
|
7849
7848
|
}
|
|
7850
7849
|
function Uo(o) {
|
|
7851
7850
|
const e = Z(o);
|
|
7852
|
-
let t =
|
|
7853
|
-
for (; t &&
|
|
7854
|
-
t =
|
|
7855
|
-
return t && (Y(t) === "html" || Y(t) === "body" && getComputedStyle(t).position === "static" && !
|
|
7851
|
+
let t = Rt(o);
|
|
7852
|
+
for (; t && Ii(t) && getComputedStyle(t).position === "static"; )
|
|
7853
|
+
t = Rt(t);
|
|
7854
|
+
return t && (Y(t) === "html" || Y(t) === "body" && getComputedStyle(t).position === "static" && !ur(t)) ? e : t || Di(o) || e;
|
|
7856
7855
|
}
|
|
7857
|
-
function
|
|
7856
|
+
function At(o) {
|
|
7858
7857
|
if (D(o))
|
|
7859
7858
|
return {
|
|
7860
7859
|
width: o.offsetWidth,
|
|
@@ -7866,7 +7865,7 @@ function qt(o) {
|
|
|
7866
7865
|
height: e.height
|
|
7867
7866
|
};
|
|
7868
7867
|
}
|
|
7869
|
-
function
|
|
7868
|
+
function Hi(o) {
|
|
7870
7869
|
let {
|
|
7871
7870
|
rect: e,
|
|
7872
7871
|
offsetParent: t,
|
|
@@ -7893,12 +7892,12 @@ function Wi(o) {
|
|
|
7893
7892
|
y: e.y - n.scrollTop + l.y
|
|
7894
7893
|
};
|
|
7895
7894
|
}
|
|
7896
|
-
function
|
|
7895
|
+
function Wi(o, e) {
|
|
7897
7896
|
const t = Z(o), r = oe(o), i = t.visualViewport;
|
|
7898
7897
|
let a = r.clientWidth, n = r.clientHeight, l = 0, s = 0;
|
|
7899
7898
|
if (i) {
|
|
7900
7899
|
a = i.width, n = i.height;
|
|
7901
|
-
const c =
|
|
7900
|
+
const c = br();
|
|
7902
7901
|
(c || !c && e === "fixed") && (l = i.offsetLeft, s = i.offsetTop);
|
|
7903
7902
|
}
|
|
7904
7903
|
return {
|
|
@@ -7908,10 +7907,10 @@ function Ki(o, e) {
|
|
|
7908
7907
|
y: s
|
|
7909
7908
|
};
|
|
7910
7909
|
}
|
|
7911
|
-
function
|
|
7910
|
+
function Ki(o) {
|
|
7912
7911
|
var e;
|
|
7913
7912
|
const t = oe(o), r = Qe(o), i = (e = o.ownerDocument) == null ? void 0 : e.body, a = ve(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), n = ve(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
|
|
7914
|
-
let l = -r.scrollLeft +
|
|
7913
|
+
let l = -r.scrollLeft + gr(o);
|
|
7915
7914
|
const s = -r.scrollTop;
|
|
7916
7915
|
return Ee(i || t).direction === "rtl" && (l += ve(t.clientWidth, i ? i.clientWidth : 0) - a), {
|
|
7917
7916
|
width: a,
|
|
@@ -7920,17 +7919,17 @@ function Yi(o) {
|
|
|
7920
7919
|
y: s
|
|
7921
7920
|
};
|
|
7922
7921
|
}
|
|
7923
|
-
function
|
|
7924
|
-
const e =
|
|
7925
|
-
return ["html", "body", "#document"].includes(Y(e)) ? o.ownerDocument.body : D(e) && Je(e) ? e :
|
|
7922
|
+
function pr(o) {
|
|
7923
|
+
const e = hr(o);
|
|
7924
|
+
return ["html", "body", "#document"].includes(Y(e)) ? o.ownerDocument.body : D(e) && Je(e) ? e : pr(e);
|
|
7926
7925
|
}
|
|
7927
|
-
function
|
|
7926
|
+
function mr(o, e) {
|
|
7928
7927
|
var t;
|
|
7929
7928
|
e === void 0 && (e = []);
|
|
7930
|
-
const r =
|
|
7931
|
-
return i ? l : l.concat(
|
|
7929
|
+
const r = pr(o), i = r === ((t = o.ownerDocument) == null ? void 0 : t.body), a = Z(r), n = i ? [a].concat(a.visualViewport || [], Je(r) ? r : []) : r, l = e.concat(n);
|
|
7930
|
+
return i ? l : l.concat(mr(n));
|
|
7932
7931
|
}
|
|
7933
|
-
function
|
|
7932
|
+
function Yi(o, e) {
|
|
7934
7933
|
const t = e.getRootNode == null ? void 0 : e.getRootNode();
|
|
7935
7934
|
if (o.contains(e))
|
|
7936
7935
|
return !0;
|
|
@@ -7944,7 +7943,7 @@ function Zi(o, e) {
|
|
|
7944
7943
|
}
|
|
7945
7944
|
return !1;
|
|
7946
7945
|
}
|
|
7947
|
-
function
|
|
7946
|
+
function Zi(o, e) {
|
|
7948
7947
|
const t = ae(o, !1, e === "fixed"), r = t.top + o.clientTop, i = t.left + o.clientLeft;
|
|
7949
7948
|
return {
|
|
7950
7949
|
top: r,
|
|
@@ -7957,24 +7956,24 @@ function Xi(o, e) {
|
|
|
7957
7956
|
height: o.clientHeight
|
|
7958
7957
|
};
|
|
7959
7958
|
}
|
|
7960
|
-
function
|
|
7961
|
-
return e === "viewport" ? Be(
|
|
7959
|
+
function qt(o, e, t) {
|
|
7960
|
+
return e === "viewport" ? Be(Wi(o, t)) : ge(e) ? Zi(e, t) : Be(Ki(oe(o)));
|
|
7962
7961
|
}
|
|
7963
|
-
function
|
|
7964
|
-
const e =
|
|
7965
|
-
return ge(r) ? e.filter((i) => ge(i) &&
|
|
7962
|
+
function Xi(o) {
|
|
7963
|
+
const e = mr(o), r = ["absolute", "fixed"].includes(Ee(o).position) && D(o) ? Uo(o) : o;
|
|
7964
|
+
return ge(r) ? e.filter((i) => ge(i) && Yi(i, r) && Y(i) !== "body") : [];
|
|
7966
7965
|
}
|
|
7967
|
-
function
|
|
7966
|
+
function Gi(o) {
|
|
7968
7967
|
let {
|
|
7969
7968
|
element: e,
|
|
7970
7969
|
boundary: t,
|
|
7971
7970
|
rootBoundary: r,
|
|
7972
7971
|
strategy: i
|
|
7973
7972
|
} = o;
|
|
7974
|
-
const n = [...t === "clippingAncestors" ?
|
|
7975
|
-
const d =
|
|
7976
|
-
return c.top = ve(d.top, c.top), c.right =
|
|
7977
|
-
},
|
|
7973
|
+
const n = [...t === "clippingAncestors" ? Xi(e) : [].concat(t), r], l = n[0], s = n.reduce((c, b) => {
|
|
7974
|
+
const d = qt(e, b, i);
|
|
7975
|
+
return c.top = ve(d.top, c.top), c.right = Et(d.right, c.right), c.bottom = Et(d.bottom, c.bottom), c.left = ve(d.left, c.left), c;
|
|
7976
|
+
}, qt(e, l, i));
|
|
7978
7977
|
return {
|
|
7979
7978
|
width: s.right - s.left,
|
|
7980
7979
|
height: s.bottom - s.top,
|
|
@@ -7982,11 +7981,11 @@ function Ji(o) {
|
|
|
7982
7981
|
y: s.top
|
|
7983
7982
|
};
|
|
7984
7983
|
}
|
|
7985
|
-
const
|
|
7986
|
-
getClippingRect:
|
|
7987
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
7984
|
+
const Ji = {
|
|
7985
|
+
getClippingRect: Gi,
|
|
7986
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Hi,
|
|
7988
7987
|
isElement: ge,
|
|
7989
|
-
getDimensions:
|
|
7988
|
+
getDimensions: At,
|
|
7990
7989
|
getOffsetParent: Uo,
|
|
7991
7990
|
getDocumentElement: oe,
|
|
7992
7991
|
getElementRects: (o) => {
|
|
@@ -7996,9 +7995,9 @@ const Qi = {
|
|
|
7996
7995
|
strategy: r
|
|
7997
7996
|
} = o;
|
|
7998
7997
|
return {
|
|
7999
|
-
reference:
|
|
7998
|
+
reference: Vi(e, Uo(t), r),
|
|
8000
7999
|
floating: {
|
|
8001
|
-
...
|
|
8000
|
+
...At(t),
|
|
8002
8001
|
x: 0,
|
|
8003
8002
|
y: 0
|
|
8004
8003
|
}
|
|
@@ -8006,45 +8005,45 @@ const Qi = {
|
|
|
8006
8005
|
},
|
|
8007
8006
|
getClientRects: (o) => Array.from(o.getClientRects()),
|
|
8008
8007
|
isRTL: (o) => Ee(o).direction === "rtl"
|
|
8009
|
-
},
|
|
8010
|
-
platform:
|
|
8008
|
+
}, Qi = (o, e, t) => Si(o, e, {
|
|
8009
|
+
platform: Ji,
|
|
8011
8010
|
...t
|
|
8012
8011
|
}), $e = "top", ze = "bottom", He = "left", We = "right", _o = {
|
|
8013
8012
|
[$e]: ze,
|
|
8014
8013
|
[ze]: $e,
|
|
8015
8014
|
[He]: We,
|
|
8016
8015
|
[We]: He
|
|
8017
|
-
},
|
|
8016
|
+
}, en = {
|
|
8018
8017
|
[$e]: "\u2191",
|
|
8019
8018
|
[ze]: "\u2193",
|
|
8020
8019
|
[He]: "\u2190",
|
|
8021
8020
|
[We]: "\u2192"
|
|
8022
|
-
},
|
|
8021
|
+
}, on = {
|
|
8023
8022
|
[He]: -45,
|
|
8024
8023
|
[$e]: 45,
|
|
8025
8024
|
[We]: 135,
|
|
8026
8025
|
[ze]: -135
|
|
8027
|
-
},
|
|
8028
|
-
function
|
|
8026
|
+
}, Mt = "calc(50% - 7px)", tn = (o) => [$e, ze].includes(o);
|
|
8027
|
+
function rn({ actualDirection: o, directionName: e, arrowEl: t }) {
|
|
8029
8028
|
if (!t)
|
|
8030
8029
|
return;
|
|
8031
8030
|
o = e;
|
|
8032
|
-
const r =
|
|
8033
|
-
t.style.left = r ?
|
|
8031
|
+
const r = tn(e);
|
|
8032
|
+
t.style.left = r ? Mt : "", t.style.top = r ? "" : Mt;
|
|
8034
8033
|
}
|
|
8035
|
-
async function
|
|
8034
|
+
async function nn(o) {
|
|
8036
8035
|
var i, a;
|
|
8037
8036
|
if (!o.isShowing)
|
|
8038
8037
|
return;
|
|
8039
8038
|
if (await ((i = o == null ? void 0 : o.waitForDOM) == null ? void 0 : i.call(o)), o.isCallout)
|
|
8040
|
-
return
|
|
8041
|
-
const e = await
|
|
8039
|
+
return rn(o);
|
|
8040
|
+
const e = await Qi(o.targetEl, o.attentionEl, {
|
|
8042
8041
|
placement: o.directionName,
|
|
8043
8042
|
middleware: [
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8043
|
+
Ni(),
|
|
8044
|
+
Ui(8),
|
|
8045
|
+
Fi({ padding: 16 }),
|
|
8046
|
+
Ai({ element: o.noArrow ? void 0 : o.arrowEl })
|
|
8048
8047
|
]
|
|
8049
8048
|
});
|
|
8050
8049
|
o.actualDirection = e.placement, Object.assign(((a = o.attentionEl) == null ? void 0 : a.style) || {}, {
|
|
@@ -8088,11 +8087,11 @@ ${JSON.stringify(
|
|
|
8088
8087
|
attentionEl: this._attentionEl,
|
|
8089
8088
|
targetEl: this._targetEl,
|
|
8090
8089
|
noArrow: this.noArrow
|
|
8091
|
-
},
|
|
8090
|
+
}, nn(this.attentionState);
|
|
8092
8091
|
}
|
|
8093
8092
|
setAriaLabels() {
|
|
8094
8093
|
if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
|
|
8095
|
-
const e = this._messageEl.id || (this._messageEl.id =
|
|
8094
|
+
const e = this._messageEl.id || (this._messageEl.id = di());
|
|
8096
8095
|
this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", e);
|
|
8097
8096
|
}
|
|
8098
8097
|
}
|
|
@@ -8109,7 +8108,7 @@ ${JSON.stringify(
|
|
|
8109
8108
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
8110
8109
|
}
|
|
8111
8110
|
get _wrapperClasses() {
|
|
8112
|
-
return
|
|
8111
|
+
return wt({
|
|
8113
8112
|
[Q.base]: !0,
|
|
8114
8113
|
[Q.tooltip]: this.tooltip,
|
|
8115
8114
|
[Q.callout]: this.callout,
|
|
@@ -8117,7 +8116,7 @@ ${JSON.stringify(
|
|
|
8117
8116
|
});
|
|
8118
8117
|
}
|
|
8119
8118
|
get _arrowClasses() {
|
|
8120
|
-
return
|
|
8119
|
+
return wt({
|
|
8121
8120
|
[Q.arrowBase]: !0,
|
|
8122
8121
|
["-top-8"]: this._arrowDirection === "top",
|
|
8123
8122
|
["-right-8"]: this._arrowDirection === "right",
|
|
@@ -8132,9 +8131,9 @@ ${JSON.stringify(
|
|
|
8132
8131
|
return this.noArrow ? "" : p`<div
|
|
8133
8132
|
id="arrow"
|
|
8134
8133
|
role="img"
|
|
8135
|
-
aria-label=${
|
|
8134
|
+
aria-label=${en[this._arrowDirection]}
|
|
8136
8135
|
class="${this._arrowClasses}"
|
|
8137
|
-
style="transform:rotate(${
|
|
8136
|
+
style="transform:rotate(${on[this._arrowDirection]}deg);
|
|
8138
8137
|
margin-${this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
8139
8138
|
/>`;
|
|
8140
8139
|
}
|
|
@@ -9443,12 +9442,12 @@ video {
|
|
|
9443
9442
|
`
|
|
9444
9443
|
]);
|
|
9445
9444
|
customElements.get("w-textfield") || customElements.define("w-textfield", Fo);
|
|
9446
|
-
class
|
|
9445
|
+
class Pt extends $ {
|
|
9447
9446
|
render() {
|
|
9448
9447
|
return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
|
|
9449
9448
|
}
|
|
9450
9449
|
}
|
|
9451
|
-
customElements.get("f-icon-chevron-down16",
|
|
9450
|
+
customElements.get("f-icon-chevron-down16", Pt) || customElements.define("f-icon-chevron-down16", Pt);
|
|
9452
9451
|
class Lo extends Xe($) {
|
|
9453
9452
|
constructor() {
|
|
9454
9453
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
@@ -9480,7 +9479,7 @@ class Lo extends Xe($) {
|
|
|
9480
9479
|
aria-expanded="${this.expanded}"
|
|
9481
9480
|
class=${L({
|
|
9482
9481
|
[this.buttonClass || ""]: !0,
|
|
9483
|
-
[
|
|
9482
|
+
[ni + " hover:underline focus:underline"]: !0,
|
|
9484
9483
|
["w-full text-left relative " + le.box]: this.box,
|
|
9485
9484
|
"hover:text-aqua-700 active:text-aqua-800": this.info
|
|
9486
9485
|
})}
|
|
@@ -10121,7 +10120,7 @@ video {
|
|
|
10121
10120
|
`
|
|
10122
10121
|
]);
|
|
10123
10122
|
customElements.get("w-expandable") || customElements.define("w-expandable", Lo);
|
|
10124
|
-
const
|
|
10123
|
+
const an = p`
|
|
10125
10124
|
<svg
|
|
10126
10125
|
role="img"
|
|
10127
10126
|
aria-label="X"
|
|
@@ -10138,7 +10137,7 @@ const ln = p`
|
|
|
10138
10137
|
clipRule="evenodd"
|
|
10139
10138
|
/>
|
|
10140
10139
|
</svg>
|
|
10141
|
-
`,
|
|
10140
|
+
`, ln = p`
|
|
10142
10141
|
<svg
|
|
10143
10142
|
role="img"
|
|
10144
10143
|
aria-label="Forstørrelsesglass"
|
|
@@ -10166,7 +10165,7 @@ const ln = p`
|
|
|
10166
10165
|
`;
|
|
10167
10166
|
class Io extends $ {
|
|
10168
10167
|
get _classBase() {
|
|
10169
|
-
return this.slot === "suffix" ?
|
|
10168
|
+
return this.slot === "suffix" ? ai : li;
|
|
10170
10169
|
}
|
|
10171
10170
|
get _classes() {
|
|
10172
10171
|
return L({
|
|
@@ -10178,14 +10177,14 @@ class Io extends $ {
|
|
|
10178
10177
|
get _searchButton() {
|
|
10179
10178
|
return p`
|
|
10180
10179
|
<button aria-label="${_(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
10181
|
-
${
|
|
10180
|
+
${ln}
|
|
10182
10181
|
</button>
|
|
10183
10182
|
`;
|
|
10184
10183
|
}
|
|
10185
10184
|
get _clearButton() {
|
|
10186
10185
|
return p`
|
|
10187
10186
|
<button aria-label="${_(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
10188
|
-
${
|
|
10187
|
+
${an}
|
|
10189
10188
|
</button>
|
|
10190
10189
|
`;
|
|
10191
10190
|
}
|
|
@@ -10780,7 +10779,7 @@ video {
|
|
|
10780
10779
|
label: { type: String }
|
|
10781
10780
|
});
|
|
10782
10781
|
customElements.get("w-affix") || customElements.define("w-affix", Io);
|
|
10783
|
-
const
|
|
10782
|
+
const fr = R`
|
|
10784
10783
|
@import "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css";
|
|
10785
10784
|
`;
|
|
10786
10785
|
class Bo extends $ {
|
|
@@ -10796,7 +10795,7 @@ class Bo extends $ {
|
|
|
10796
10795
|
this._mounted = !0;
|
|
10797
10796
|
return;
|
|
10798
10797
|
}
|
|
10799
|
-
this.show &&
|
|
10798
|
+
this.show && ir(this._wrapper), !this.show && !this._removeElement && nr(this._wrapper, () => this._removeElement = !0);
|
|
10800
10799
|
}
|
|
10801
10800
|
}
|
|
10802
10801
|
get _wrapper() {
|
|
@@ -10815,7 +10814,7 @@ k(Bo, "properties", {
|
|
|
10815
10814
|
},
|
|
10816
10815
|
_removeElement: { type: Boolean, state: !0 }
|
|
10817
10816
|
}), k(Bo, "styles", [
|
|
10818
|
-
|
|
10817
|
+
fr,
|
|
10819
10818
|
R`
|
|
10820
10819
|
/* /* layer: preflights */
|
|
10821
10820
|
|
|
@@ -11403,7 +11402,7 @@ class Vo extends $ {
|
|
|
11403
11402
|
}
|
|
11404
11403
|
k(Vo, "properties", {
|
|
11405
11404
|
level: { type: Number }
|
|
11406
|
-
}), k(Vo, "styles", [
|
|
11405
|
+
}), k(Vo, "styles", [fr, R`
|
|
11407
11406
|
/* /* layer: preflights */
|
|
11408
11407
|
|
|
11409
11408
|
/*
|
|
@@ -11970,11 +11969,11 @@ video {
|
|
|
11970
11969
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
|
|
11971
11970
|
`]);
|
|
11972
11971
|
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Vo);
|
|
11973
|
-
class
|
|
11972
|
+
class jt extends $ {
|
|
11974
11973
|
render() {
|
|
11975
11974
|
return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><title>Håndveske</title><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 14.5V3a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v11.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.222 6H3.777a2 2 0 0 0-1.986 1.766l-.53 4.5A2 2 0 0 0 3.25 14.5h9.502a2 2 0 0 0 1.986-2.234l-.53-4.5A2 2 0 0 0 12.222 6Z"></path></svg>`;
|
|
11976
11975
|
}
|
|
11977
11976
|
}
|
|
11978
|
-
customElements.get("f-icon-bag16",
|
|
11979
|
-
be && (window.WarpToastContainer = Ie, window.toast =
|
|
11980
|
-
//# sourceMappingURL=scripts.
|
|
11977
|
+
customElements.get("f-icon-bag16", jt) || customElements.define("f-icon-bag16", jt);
|
|
11978
|
+
be && (window.WarpToastContainer = Ie, window.toast = $i, window.updateToast = _i, window.removeToast = zi);
|
|
11979
|
+
//# sourceMappingURL=scripts.19dc1416.js.map
|