@warp-ds/elements 1.0.0-alpha.25 → 1.0.0-alpha.26
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/index.js +653 -608
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var w = (r, o, e) => (
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var Ue = (r, o, e) => o in r ? De(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
|
|
3
|
+
var w = (r, o, e) => (Ue(r, typeof o != "symbol" ? o + "" : o, e), e), Fe = (r, o, e) => {
|
|
4
4
|
if (!o.has(r))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var C = (r, o, e) => (Fe(r, o, "read from private field"), e ? e.call(r) : o.get(r)), U = (r, o, e) => {
|
|
8
8
|
if (o.has(r))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
o instanceof WeakSet ? o.add(r) : o.set(r, e);
|
|
@@ -14,19 +14,19 @@ var I = (r, o, e) => (Pe(r, o, "read from private field"), e ? e.call(r) : o.get
|
|
|
14
14
|
* Copyright 2019 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
18
|
-
let
|
|
17
|
+
const Ao = window, qr = Ao.ShadowRoot && (Ao.ShadyCSS === void 0 || Ao.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xr = Symbol(), Lr = /* @__PURE__ */ new WeakMap();
|
|
18
|
+
let ne = class {
|
|
19
19
|
constructor(o, e, t) {
|
|
20
|
-
if (this._$cssResult$ = !0, t !==
|
|
20
|
+
if (this._$cssResult$ = !0, t !== Xr)
|
|
21
21
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
22
22
|
this.cssText = o, this.t = e;
|
|
23
23
|
}
|
|
24
24
|
get styleSheet() {
|
|
25
25
|
let o = this.o;
|
|
26
26
|
const e = this.t;
|
|
27
|
-
if (
|
|
27
|
+
if (qr && o === void 0) {
|
|
28
28
|
const t = e !== void 0 && e.length === 1;
|
|
29
|
-
t && (o =
|
|
29
|
+
t && (o = Lr.get(e)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), t && Lr.set(e, o));
|
|
30
30
|
}
|
|
31
31
|
return o;
|
|
32
32
|
}
|
|
@@ -34,7 +34,7 @@ let ie = class {
|
|
|
34
34
|
return this.cssText;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const Ve = (r) => new ne(typeof r == "string" ? r : r + "", void 0, Xr), q = (r, ...o) => {
|
|
38
38
|
const e = r.length === 1 ? r[0] : o.reduce((t, a, i) => t + ((c) => {
|
|
39
39
|
if (c._$cssResult$ === !0)
|
|
40
40
|
return c.cssText;
|
|
@@ -42,28 +42,28 @@ const Ne = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $r), q = (r,
|
|
|
42
42
|
return c;
|
|
43
43
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + c + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
44
44
|
})(a) + r[i + 1], r[0]);
|
|
45
|
-
return new
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
const t = document.createElement("style"), a =
|
|
45
|
+
return new ne(e, r, Xr);
|
|
46
|
+
}, We = (r, o) => {
|
|
47
|
+
qr ? r.adoptedStyleSheets = o.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : o.forEach((e) => {
|
|
48
|
+
const t = document.createElement("style"), a = Ao.litNonce;
|
|
49
49
|
a !== void 0 && t.setAttribute("nonce", a), t.textContent = e.cssText, r.appendChild(t);
|
|
50
50
|
});
|
|
51
|
-
},
|
|
51
|
+
}, Tr = qr ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((o) => {
|
|
52
52
|
let e = "";
|
|
53
53
|
for (const t of o.cssRules)
|
|
54
54
|
e += t.cssText;
|
|
55
|
-
return
|
|
55
|
+
return Ve(e);
|
|
56
56
|
})(r) : r;
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
61
|
*/
|
|
62
|
-
var
|
|
63
|
-
const
|
|
62
|
+
var Ko;
|
|
63
|
+
const Lo = window, Rr = Lo.trustedTypes, Ge = Rr ? Rr.emptyScript : "", Br = Lo.reactiveElementPolyfillSupport, dr = { toAttribute(r, o) {
|
|
64
64
|
switch (o) {
|
|
65
65
|
case Boolean:
|
|
66
|
-
r = r ?
|
|
66
|
+
r = r ? Ge : null;
|
|
67
67
|
break;
|
|
68
68
|
case Object:
|
|
69
69
|
case Array:
|
|
@@ -88,8 +88,8 @@ const Eo = window, Sr = Eo.trustedTypes, Oe = Sr ? Sr.emptyScript : "", Er = Eo.
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return e;
|
|
91
|
-
} },
|
|
92
|
-
let
|
|
91
|
+
} }, be = (r, o) => o !== r && (o == o || r == r), Qo = { attribute: !0, type: String, converter: dr, reflect: !1, hasChanged: be };
|
|
92
|
+
let eo = class extends HTMLElement {
|
|
93
93
|
constructor() {
|
|
94
94
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
95
95
|
}
|
|
@@ -105,7 +105,7 @@ let K = class extends HTMLElement {
|
|
|
105
105
|
a !== void 0 && (this._$Ev.set(a, t), o.push(a));
|
|
106
106
|
}), o;
|
|
107
107
|
}
|
|
108
|
-
static createProperty(o, e =
|
|
108
|
+
static createProperty(o, e = Qo) {
|
|
109
109
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(o, e), !e.noAccessor && !this.prototype.hasOwnProperty(o)) {
|
|
110
110
|
const t = typeof o == "symbol" ? Symbol() : "__" + o, a = this.getPropertyDescriptor(o, t, e);
|
|
111
111
|
a !== void 0 && Object.defineProperty(this.prototype, o, a);
|
|
@@ -120,7 +120,7 @@ let K = class extends HTMLElement {
|
|
|
120
120
|
}, configurable: !0, enumerable: !0 };
|
|
121
121
|
}
|
|
122
122
|
static getPropertyOptions(o) {
|
|
123
|
-
return this.elementProperties.get(o) ||
|
|
123
|
+
return this.elementProperties.get(o) || Qo;
|
|
124
124
|
}
|
|
125
125
|
static finalize() {
|
|
126
126
|
if (this.hasOwnProperty("finalized"))
|
|
@@ -139,9 +139,9 @@ let K = class extends HTMLElement {
|
|
|
139
139
|
if (Array.isArray(o)) {
|
|
140
140
|
const t = new Set(o.flat(1 / 0).reverse());
|
|
141
141
|
for (const a of t)
|
|
142
|
-
e.unshift(
|
|
142
|
+
e.unshift(Tr(a));
|
|
143
143
|
} else
|
|
144
|
-
o !== void 0 && e.push(
|
|
144
|
+
o !== void 0 && e.push(Tr(o));
|
|
145
145
|
return e;
|
|
146
146
|
}
|
|
147
147
|
static _$Ep(o, e) {
|
|
@@ -168,7 +168,7 @@ let K = class extends HTMLElement {
|
|
|
168
168
|
createRenderRoot() {
|
|
169
169
|
var o;
|
|
170
170
|
const e = (o = this.shadowRoot) !== null && o !== void 0 ? o : this.attachShadow(this.constructor.shadowRootOptions);
|
|
171
|
-
return
|
|
171
|
+
return We(e, this.constructor.elementStyles), e;
|
|
172
172
|
}
|
|
173
173
|
connectedCallback() {
|
|
174
174
|
var o;
|
|
@@ -189,11 +189,11 @@ let K = class extends HTMLElement {
|
|
|
189
189
|
attributeChangedCallback(o, e, t) {
|
|
190
190
|
this._$AK(o, t);
|
|
191
191
|
}
|
|
192
|
-
_$EO(o, e, t =
|
|
192
|
+
_$EO(o, e, t = Qo) {
|
|
193
193
|
var a;
|
|
194
194
|
const i = this.constructor._$Ep(o, t);
|
|
195
195
|
if (i !== void 0 && t.reflect === !0) {
|
|
196
|
-
const c = (((a = t.converter) === null || a === void 0 ? void 0 : a.toAttribute) !== void 0 ? t.converter :
|
|
196
|
+
const c = (((a = t.converter) === null || a === void 0 ? void 0 : a.toAttribute) !== void 0 ? t.converter : dr).toAttribute(e, t.type);
|
|
197
197
|
this._$El = o, c == null ? this.removeAttribute(i) : this.setAttribute(i, c), this._$El = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
@@ -201,13 +201,13 @@ let K = class extends HTMLElement {
|
|
|
201
201
|
var t;
|
|
202
202
|
const a = this.constructor, i = a._$Ev.get(o);
|
|
203
203
|
if (i !== void 0 && this._$El !== i) {
|
|
204
|
-
const c = a.getPropertyOptions(i), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((t = c.converter) === null || t === void 0 ? void 0 : t.fromAttribute) !== void 0 ? c.converter :
|
|
204
|
+
const c = a.getPropertyOptions(i), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((t = c.converter) === null || t === void 0 ? void 0 : t.fromAttribute) !== void 0 ? c.converter : dr;
|
|
205
205
|
this._$El = i, this[i] = l.fromAttribute(e, c.type), this._$El = null;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
requestUpdate(o, e, t) {
|
|
209
209
|
let a = !0;
|
|
210
|
-
o !== void 0 && (((t = t || this.constructor.getPropertyOptions(o)).hasChanged ||
|
|
210
|
+
o !== void 0 && (((t = t || this.constructor.getPropertyOptions(o)).hasChanged || be)(this[o], e) ? (this._$AL.has(o) || this._$AL.set(o, e), t.reflect === !0 && this._$El !== o && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(o, t))) : a = !1), !this.isUpdatePending && a && (this._$E_ = this._$Ej());
|
|
211
211
|
}
|
|
212
212
|
async _$Ej() {
|
|
213
213
|
this.isUpdatePending = !0;
|
|
@@ -268,91 +268,91 @@ let K = class extends HTMLElement {
|
|
|
268
268
|
firstUpdated(o) {
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
|
|
271
|
+
eo.finalized = !0, eo.elementProperties = /* @__PURE__ */ new Map(), eo.elementStyles = [], eo.shadowRootOptions = { mode: "open" }, Br == null || Br({ ReactiveElement: eo }), ((Ko = Lo.reactiveElementVersions) !== null && Ko !== void 0 ? Ko : Lo.reactiveElementVersions = []).push("1.6.1");
|
|
272
272
|
/**
|
|
273
273
|
* @license
|
|
274
274
|
* Copyright 2017 Google LLC
|
|
275
275
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
276
276
|
*/
|
|
277
|
-
var
|
|
278
|
-
const
|
|
279
|
-
\f\r]`,
|
|
280
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
277
|
+
var or;
|
|
278
|
+
const To = window, lo = To.trustedTypes, Pr = lo ? lo.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ro = "$lit$", R = `lit$${(Math.random() + "").slice(9)}$`, Yr = "?" + R, Je = `<${Yr}>`, no = document, mo = () => no.createComment(""), xo = (r) => r === null || typeof r != "object" && typeof r != "function", ge = Array.isArray, se = (r) => ge(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", rr = `[
|
|
279
|
+
\f\r]`, vo = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Nr = /-->/g, Ir = />/g, F = RegExp(`>|${rr}(?:([^\\s"'>=/]+)(${rr}*=${rr}*(?:[^
|
|
280
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Or = /'/g, Hr = /"/g, ue = /^(?:script|style|textarea|title)$/i, ve = (r) => (o, ...e) => ({ _$litType$: r, strings: o, values: e }), s = ve(1), D = ve(2), N = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), Dr = /* @__PURE__ */ new WeakMap(), ao = no.createTreeWalker(no, 129, null, !1), pe = (r, o) => {
|
|
281
281
|
const e = r.length - 1, t = [];
|
|
282
|
-
let a, i = o === 2 ? "<svg>" : "", c =
|
|
282
|
+
let a, i = o === 2 ? "<svg>" : "", c = vo;
|
|
283
283
|
for (let d = 0; d < e; d++) {
|
|
284
284
|
const n = r[d];
|
|
285
285
|
let v, b, g = -1, u = 0;
|
|
286
286
|
for (; u < n.length && (c.lastIndex = u, b = c.exec(n), b !== null); )
|
|
287
|
-
u = c.lastIndex, c ===
|
|
288
|
-
const p = c ===
|
|
289
|
-
i += c ===
|
|
287
|
+
u = c.lastIndex, c === vo ? b[1] === "!--" ? c = Nr : b[1] !== void 0 ? c = Ir : b[2] !== void 0 ? (ue.test(b[2]) && (a = RegExp("</" + b[2], "g")), c = F) : b[3] !== void 0 && (c = F) : c === F ? b[0] === ">" ? (c = a ?? vo, g = -1) : b[1] === void 0 ? g = -2 : (g = c.lastIndex - b[2].length, v = b[1], c = b[3] === void 0 ? F : b[3] === '"' ? Hr : Or) : c === Hr || c === Or ? c = F : c === Nr || c === Ir ? c = vo : (c = F, a = void 0);
|
|
288
|
+
const p = c === F && r[d + 1].startsWith("/>") ? " " : "";
|
|
289
|
+
i += c === vo ? n + Je : g >= 0 ? (t.push(v), n.slice(0, g) + Ro + n.slice(g) + R + p) : n + R + (g === -2 ? (t.push(void 0), d) : p);
|
|
290
290
|
}
|
|
291
291
|
const l = i + (r[e] || "<?>") + (o === 2 ? "</svg>" : "");
|
|
292
292
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
293
293
|
throw Error("invalid template strings array");
|
|
294
|
-
return [
|
|
294
|
+
return [Pr !== void 0 ? Pr.createHTML(l) : l, t];
|
|
295
295
|
};
|
|
296
|
-
class
|
|
296
|
+
class fo {
|
|
297
297
|
constructor({ strings: o, _$litType$: e }, t) {
|
|
298
298
|
let a;
|
|
299
299
|
this.parts = [];
|
|
300
300
|
let i = 0, c = 0;
|
|
301
|
-
const l = o.length - 1, d = this.parts, [n, v] =
|
|
302
|
-
if (this.el =
|
|
301
|
+
const l = o.length - 1, d = this.parts, [n, v] = pe(o, e);
|
|
302
|
+
if (this.el = fo.createElement(n, t), ao.currentNode = this.el.content, e === 2) {
|
|
303
303
|
const b = this.el.content, g = b.firstChild;
|
|
304
304
|
g.remove(), b.append(...g.childNodes);
|
|
305
305
|
}
|
|
306
|
-
for (; (a =
|
|
306
|
+
for (; (a = ao.nextNode()) !== null && d.length < l; ) {
|
|
307
307
|
if (a.nodeType === 1) {
|
|
308
308
|
if (a.hasAttributes()) {
|
|
309
309
|
const b = [];
|
|
310
310
|
for (const g of a.getAttributeNames())
|
|
311
|
-
if (g.endsWith(
|
|
311
|
+
if (g.endsWith(Ro) || g.startsWith(R)) {
|
|
312
312
|
const u = v[c++];
|
|
313
313
|
if (b.push(g), u !== void 0) {
|
|
314
|
-
const p = a.getAttribute(u.toLowerCase() +
|
|
315
|
-
d.push({ type: 1, index: i, name: h[2], strings: p, ctor: h[1] === "." ?
|
|
314
|
+
const p = a.getAttribute(u.toLowerCase() + Ro).split(R), h = /([.?@])?(.*)/.exec(u);
|
|
315
|
+
d.push({ type: 1, index: i, name: h[2], strings: p, ctor: h[1] === "." ? we : h[1] === "?" ? me : h[1] === "@" ? xe : zo });
|
|
316
316
|
} else
|
|
317
317
|
d.push({ type: 6, index: i });
|
|
318
318
|
}
|
|
319
319
|
for (const g of b)
|
|
320
320
|
a.removeAttribute(g);
|
|
321
321
|
}
|
|
322
|
-
if (
|
|
323
|
-
const b = a.textContent.split(
|
|
322
|
+
if (ue.test(a.tagName)) {
|
|
323
|
+
const b = a.textContent.split(R), g = b.length - 1;
|
|
324
324
|
if (g > 0) {
|
|
325
|
-
a.textContent =
|
|
325
|
+
a.textContent = lo ? lo.emptyScript : "";
|
|
326
326
|
for (let u = 0; u < g; u++)
|
|
327
|
-
a.append(b[u],
|
|
328
|
-
a.append(b[g],
|
|
327
|
+
a.append(b[u], mo()), ao.nextNode(), d.push({ type: 2, index: ++i });
|
|
328
|
+
a.append(b[g], mo());
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
} else if (a.nodeType === 8)
|
|
332
|
-
if (a.data ===
|
|
332
|
+
if (a.data === Yr)
|
|
333
333
|
d.push({ type: 2, index: i });
|
|
334
334
|
else {
|
|
335
335
|
let b = -1;
|
|
336
|
-
for (; (b = a.data.indexOf(
|
|
337
|
-
d.push({ type: 7, index: i }), b +=
|
|
336
|
+
for (; (b = a.data.indexOf(R, b + 1)) !== -1; )
|
|
337
|
+
d.push({ type: 7, index: i }), b += R.length - 1;
|
|
338
338
|
}
|
|
339
339
|
i++;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
static createElement(o, e) {
|
|
343
|
-
const t =
|
|
343
|
+
const t = no.createElement("template");
|
|
344
344
|
return t.innerHTML = o, t;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function K(r, o, e = r, t) {
|
|
348
348
|
var a, i, c, l;
|
|
349
|
-
if (o ===
|
|
349
|
+
if (o === N)
|
|
350
350
|
return o;
|
|
351
351
|
let d = t !== void 0 ? (a = e._$Co) === null || a === void 0 ? void 0 : a[t] : e._$Cl;
|
|
352
|
-
const n =
|
|
353
|
-
return (d == null ? void 0 : d.constructor) !== n && ((i = d == null ? void 0 : d._$AO) === null || i === void 0 || i.call(d, !1), n === void 0 ? d = void 0 : (d = new n(r), d._$AT(r, e, t)), t !== void 0 ? ((c = (l = e)._$Co) !== null && c !== void 0 ? c : l._$Co = [])[t] = d : e._$Cl = d), d !== void 0 && (o =
|
|
352
|
+
const n = xo(o) ? void 0 : o._$litDirective$;
|
|
353
|
+
return (d == null ? void 0 : d.constructor) !== n && ((i = d == null ? void 0 : d._$AO) === null || i === void 0 || i.call(d, !1), n === void 0 ? d = void 0 : (d = new n(r), d._$AT(r, e, t)), t !== void 0 ? ((c = (l = e)._$Co) !== null && c !== void 0 ? c : l._$Co = [])[t] = d : e._$Cl = d), d !== void 0 && (o = K(r, d._$AS(r, o.values), d, t)), o;
|
|
354
354
|
}
|
|
355
|
-
let
|
|
355
|
+
let he = class {
|
|
356
356
|
constructor(o, e) {
|
|
357
357
|
this._$AV = [], this._$AN = void 0, this._$AD = o, this._$AM = e;
|
|
358
358
|
}
|
|
@@ -364,15 +364,15 @@ let se = class {
|
|
|
364
364
|
}
|
|
365
365
|
u(o) {
|
|
366
366
|
var e;
|
|
367
|
-
const { el: { content: t }, parts: a } = this._$AD, i = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e :
|
|
368
|
-
|
|
369
|
-
let c =
|
|
367
|
+
const { el: { content: t }, parts: a } = this._$AD, i = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e : no).importNode(t, !0);
|
|
368
|
+
ao.currentNode = i;
|
|
369
|
+
let c = ao.nextNode(), l = 0, d = 0, n = a[0];
|
|
370
370
|
for (; n !== void 0; ) {
|
|
371
371
|
if (l === n.index) {
|
|
372
372
|
let v;
|
|
373
|
-
n.type === 2 ? v = new
|
|
373
|
+
n.type === 2 ? v = new go(c, c.nextSibling, this, o) : n.type === 1 ? v = new n.ctor(c, n.name, n.strings, this, o) : n.type === 6 && (v = new fe(c, this, o)), this._$AV.push(v), n = a[++d];
|
|
374
374
|
}
|
|
375
|
-
l !== (n == null ? void 0 : n.index) && (c =
|
|
375
|
+
l !== (n == null ? void 0 : n.index) && (c = ao.nextNode(), l++);
|
|
376
376
|
}
|
|
377
377
|
return i;
|
|
378
378
|
}
|
|
@@ -382,7 +382,7 @@ let se = class {
|
|
|
382
382
|
t !== void 0 && (t.strings !== void 0 ? (t._$AI(o, t, e), e += t.strings.length - 2) : t._$AI(o[e])), e++;
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
|
-
class
|
|
385
|
+
class go {
|
|
386
386
|
constructor(o, e, t, a) {
|
|
387
387
|
var i;
|
|
388
388
|
this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = o, this._$AB = e, this._$AM = t, this.options = a, this._$Cp = (i = a == null ? void 0 : a.isConnected) === null || i === void 0 || i;
|
|
@@ -403,7 +403,7 @@ class co {
|
|
|
403
403
|
return this._$AB;
|
|
404
404
|
}
|
|
405
405
|
_$AI(o, e = this) {
|
|
406
|
-
o =
|
|
406
|
+
o = K(this, o, e), xo(o) ? o === f || o == null || o === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : o !== this._$AH && o !== N && this._(o) : o._$litType$ !== void 0 ? this.g(o) : o.nodeType !== void 0 ? this.$(o) : se(o) ? this.T(o) : this._(o);
|
|
407
407
|
}
|
|
408
408
|
k(o) {
|
|
409
409
|
return this._$AA.parentNode.insertBefore(o, this._$AB);
|
|
@@ -412,28 +412,28 @@ class co {
|
|
|
412
412
|
this._$AH !== o && (this._$AR(), this._$AH = this.k(o));
|
|
413
413
|
}
|
|
414
414
|
_(o) {
|
|
415
|
-
this._$AH !== f &&
|
|
415
|
+
this._$AH !== f && xo(this._$AH) ? this._$AA.nextSibling.data = o : this.$(no.createTextNode(o)), this._$AH = o;
|
|
416
416
|
}
|
|
417
417
|
g(o) {
|
|
418
418
|
var e;
|
|
419
|
-
const { values: t, _$litType$: a } = o, i = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el =
|
|
419
|
+
const { values: t, _$litType$: a } = o, i = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el = fo.createElement(a.h, this.options)), a);
|
|
420
420
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === i)
|
|
421
421
|
this._$AH.v(t);
|
|
422
422
|
else {
|
|
423
|
-
const c = new
|
|
423
|
+
const c = new he(i, this), l = c.u(this.options);
|
|
424
424
|
c.v(t), this.$(l), this._$AH = c;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
_$AC(o) {
|
|
428
|
-
let e =
|
|
429
|
-
return e === void 0 &&
|
|
428
|
+
let e = Dr.get(o.strings);
|
|
429
|
+
return e === void 0 && Dr.set(o.strings, e = new fo(o)), e;
|
|
430
430
|
}
|
|
431
431
|
T(o) {
|
|
432
|
-
|
|
432
|
+
ge(this._$AH) || (this._$AH = [], this._$AR());
|
|
433
433
|
const e = this._$AH;
|
|
434
434
|
let t, a = 0;
|
|
435
435
|
for (const i of o)
|
|
436
|
-
a === e.length ? e.push(t = new
|
|
436
|
+
a === e.length ? e.push(t = new go(this.k(mo()), this.k(mo()), this, this.options)) : t = e[a], t._$AI(i), a++;
|
|
437
437
|
a < e.length && (this._$AR(t && t._$AB.nextSibling, a), e.length = a);
|
|
438
438
|
}
|
|
439
439
|
_$AR(o = this._$AA.nextSibling, e) {
|
|
@@ -448,7 +448,7 @@ class co {
|
|
|
448
448
|
this._$AM === void 0 && (this._$Cp = o, (e = this._$AP) === null || e === void 0 || e.call(this, o));
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
let
|
|
451
|
+
let zo = class {
|
|
452
452
|
constructor(o, e, t, a, i) {
|
|
453
453
|
this.type = 1, this._$AH = f, this._$AN = void 0, this.element = o, this.name = e, this._$AM = a, this.options = i, t.length > 2 || t[0] !== "" || t[1] !== "" ? (this._$AH = Array(t.length - 1).fill(new String()), this.strings = t) : this._$AH = f;
|
|
454
454
|
}
|
|
@@ -462,12 +462,12 @@ let ko = class {
|
|
|
462
462
|
const i = this.strings;
|
|
463
463
|
let c = !1;
|
|
464
464
|
if (i === void 0)
|
|
465
|
-
o =
|
|
465
|
+
o = K(this, o, e, 0), c = !xo(o) || o !== this._$AH && o !== N, c && (this._$AH = o);
|
|
466
466
|
else {
|
|
467
467
|
const l = o;
|
|
468
468
|
let d, n;
|
|
469
469
|
for (o = i[0], d = 0; d < i.length - 1; d++)
|
|
470
|
-
n =
|
|
470
|
+
n = K(this, l[t + d], e, d), n === N && (n = this._$AH[d]), c || (c = !xo(n) || n !== this._$AH[d]), n === f ? o = f : o !== f && (o += (n ?? "") + i[d + 1]), this._$AH[d] = n;
|
|
471
471
|
}
|
|
472
472
|
c && !a && this.j(o);
|
|
473
473
|
}
|
|
@@ -475,7 +475,7 @@ let ko = class {
|
|
|
475
475
|
o === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, o ?? "");
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
|
-
class
|
|
478
|
+
class we extends zo {
|
|
479
479
|
constructor() {
|
|
480
480
|
super(...arguments), this.type = 3;
|
|
481
481
|
}
|
|
@@ -483,22 +483,22 @@ class ue extends ko {
|
|
|
483
483
|
this.element[this.name] = o === f ? void 0 : o;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
class
|
|
486
|
+
const Ke = lo ? lo.emptyScript : "";
|
|
487
|
+
class me extends zo {
|
|
488
488
|
constructor() {
|
|
489
489
|
super(...arguments), this.type = 4;
|
|
490
490
|
}
|
|
491
491
|
j(o) {
|
|
492
|
-
o && o !== f ? this.element.setAttribute(this.name,
|
|
492
|
+
o && o !== f ? this.element.setAttribute(this.name, Ke) : this.element.removeAttribute(this.name);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
let
|
|
495
|
+
let xe = class extends zo {
|
|
496
496
|
constructor(o, e, t, a, i) {
|
|
497
497
|
super(o, e, t, a, i), this.type = 5;
|
|
498
498
|
}
|
|
499
499
|
_$AI(o, e = this) {
|
|
500
500
|
var t;
|
|
501
|
-
if ((o = (t =
|
|
501
|
+
if ((o = (t = K(this, o, e, 0)) !== null && t !== void 0 ? t : f) === N)
|
|
502
502
|
return;
|
|
503
503
|
const a = this._$AH, i = o === f && a !== f || o.capture !== a.capture || o.once !== a.once || o.passive !== a.passive, c = o !== f && (a === f || i);
|
|
504
504
|
i && this.element.removeEventListener(this.name, this, a), c && this.element.addEventListener(this.name, this, o), this._$AH = o;
|
|
@@ -507,7 +507,7 @@ let pe = class extends ko {
|
|
|
507
507
|
var e, t;
|
|
508
508
|
typeof this._$AH == "function" ? this._$AH.call((t = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && t !== void 0 ? t : this.element, o) : this._$AH.handleEvent(o);
|
|
509
509
|
}
|
|
510
|
-
},
|
|
510
|
+
}, fe = class {
|
|
511
511
|
constructor(o, e, t) {
|
|
512
512
|
this.element = o, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = t;
|
|
513
513
|
}
|
|
@@ -515,18 +515,18 @@ let pe = class extends ko {
|
|
|
515
515
|
return this._$AM._$AU;
|
|
516
516
|
}
|
|
517
517
|
_$AI(o) {
|
|
518
|
-
|
|
518
|
+
K(this, o);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
const
|
|
521
|
+
const Qe = { O: Ro, P: R, A: Yr, C: 1, M: pe, L: he, D: se, R: K, I: go, V: zo, H: me, N: xe, U: we, F: fe }, Ur = To.litHtmlPolyfillSupport;
|
|
522
|
+
Ur == null || Ur(fo, go), ((or = To.litHtmlVersions) !== null && or !== void 0 ? or : To.litHtmlVersions = []).push("2.7.2");
|
|
523
|
+
const ot = (r, o, e) => {
|
|
524
524
|
var t, a;
|
|
525
525
|
const i = (t = e == null ? void 0 : e.renderBefore) !== null && t !== void 0 ? t : o;
|
|
526
526
|
let c = i._$litPart$;
|
|
527
527
|
if (c === void 0) {
|
|
528
528
|
const l = (a = e == null ? void 0 : e.renderBefore) !== null && a !== void 0 ? a : null;
|
|
529
|
-
i._$litPart$ = c = new
|
|
529
|
+
i._$litPart$ = c = new go(o.insertBefore(mo(), l), l, void 0, e ?? {});
|
|
530
530
|
}
|
|
531
531
|
return c._$AI(r), c;
|
|
532
532
|
};
|
|
@@ -535,8 +535,8 @@ const Fe = (r, o, e) => {
|
|
|
535
535
|
* Copyright 2017 Google LLC
|
|
536
536
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
537
537
|
*/
|
|
538
|
-
var
|
|
539
|
-
let k = class extends
|
|
538
|
+
var er, tr;
|
|
539
|
+
let k = class extends eo {
|
|
540
540
|
constructor() {
|
|
541
541
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
542
542
|
}
|
|
@@ -547,7 +547,7 @@ let k = class extends K {
|
|
|
547
547
|
}
|
|
548
548
|
update(o) {
|
|
549
549
|
const e = this.render();
|
|
550
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(o), this._$Do =
|
|
550
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(o), this._$Do = ot(e, this.renderRoot, this.renderOptions);
|
|
551
551
|
}
|
|
552
552
|
connectedCallback() {
|
|
553
553
|
var o;
|
|
@@ -558,14 +558,14 @@ let k = class extends K {
|
|
|
558
558
|
super.disconnectedCallback(), (o = this._$Do) === null || o === void 0 || o.setConnected(!1);
|
|
559
559
|
}
|
|
560
560
|
render() {
|
|
561
|
-
return
|
|
561
|
+
return N;
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
|
-
k.finalized = !0, k._$litElement$ = !0, (
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
((
|
|
568
|
-
const
|
|
564
|
+
k.finalized = !0, k._$litElement$ = !0, (er = globalThis.litElementHydrateSupport) === null || er === void 0 || er.call(globalThis, { LitElement: k });
|
|
565
|
+
const Fr = globalThis.litElementPolyfillSupport;
|
|
566
|
+
Fr == null || Fr({ LitElement: k });
|
|
567
|
+
((tr = globalThis.litElementVersions) !== null && tr !== void 0 ? tr : globalThis.litElementVersions = []).push("3.3.1");
|
|
568
|
+
const T = {
|
|
569
569
|
base: "border-2 relative",
|
|
570
570
|
tooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",
|
|
571
571
|
callout: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",
|
|
@@ -580,7 +580,7 @@ const L = {
|
|
|
580
580
|
arrowPopover: "i-bg-$color-popover-background i-border-$color-popover-background",
|
|
581
581
|
content: "last-child:mb-0",
|
|
582
582
|
notCallout: "absolute z-50"
|
|
583
|
-
},
|
|
583
|
+
}, B = {
|
|
584
584
|
box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
|
|
585
585
|
// Relative here enables w-clickable
|
|
586
586
|
bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",
|
|
@@ -591,7 +591,7 @@ const L = {
|
|
|
591
591
|
infoClickable: "hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",
|
|
592
592
|
neutralClickable: "hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",
|
|
593
593
|
borderedClickable: "hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"
|
|
594
|
-
},
|
|
594
|
+
}, M = {
|
|
595
595
|
card: "cursor-pointer overflow-hidden relative transition-all",
|
|
596
596
|
cardShadow: "rounded-8 i-shadow-$shadow-card hover:i-shadow-$shadow-card-hover hover:i-bg-$color-card-background-hover tap-highlight-transparent",
|
|
597
597
|
cardFlat: "border-2 rounded-4",
|
|
@@ -602,11 +602,11 @@ const L = {
|
|
|
602
602
|
cardOutlineUnselected: "i-border-$color-card-border",
|
|
603
603
|
cardOutlineSelected: "i-border-$color-card-border-active hover:i-border-$color-card-border-active-hover",
|
|
604
604
|
a11y: "sr-only"
|
|
605
|
-
},
|
|
605
|
+
}, ar = {
|
|
606
606
|
container: "fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
|
|
607
607
|
content: "w-full",
|
|
608
608
|
toaster: "grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
|
|
609
|
-
},
|
|
609
|
+
}, S = {
|
|
610
610
|
wrapper: "relative overflow-hidden w-full",
|
|
611
611
|
toast: "flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",
|
|
612
612
|
positive: "i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",
|
|
@@ -619,19 +619,19 @@ const L = {
|
|
|
619
619
|
iconLoading: "animate-bounce",
|
|
620
620
|
content: "self-center mr-8 py-4 last-child:mb-0",
|
|
621
621
|
close: "bg-transparent ml-auto p-[8px]"
|
|
622
|
-
},
|
|
622
|
+
}, rt = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", Y = {
|
|
623
623
|
expandable: "will-change-height",
|
|
624
624
|
expandableTitle: "font-bold i-text-$color-expandable-title-text",
|
|
625
|
-
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " +
|
|
626
|
-
expandableBleed:
|
|
625
|
+
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " + B.box,
|
|
626
|
+
expandableBleed: B.bleed,
|
|
627
627
|
chevron: "inline-block align-middle transform transition-transform transform-gpu i-text-$color-expandable-icon",
|
|
628
628
|
chevronNonBox: "relative left-8",
|
|
629
629
|
chevronBox: "absolute right-16",
|
|
630
630
|
chevronExpanded: "-rotate-180",
|
|
631
631
|
expansion: "overflow-hidden",
|
|
632
632
|
expansionNotExpanded: "h-0 invisible",
|
|
633
|
-
button:
|
|
634
|
-
buttonBox: "w-full text-left relative inline-flex! items-center " +
|
|
633
|
+
button: rt + " hover:underline focus:underline",
|
|
634
|
+
buttonBox: "w-full text-left relative inline-flex! items-center " + B.box,
|
|
635
635
|
paddingTop: "pt-0",
|
|
636
636
|
title: "flex justify-between items-center",
|
|
637
637
|
titleType: "h4"
|
|
@@ -676,7 +676,7 @@ const L = {
|
|
|
676
676
|
// .button--in-progress, a.button--in-progress:visited
|
|
677
677
|
linkAsButton: "inline-block hover:no-underline",
|
|
678
678
|
a11y: "sr-only"
|
|
679
|
-
},
|
|
679
|
+
}, po = {
|
|
680
680
|
alert: "flex p-16 border border-l-4 rounded-4",
|
|
681
681
|
willChangeHeight: "will-change-height",
|
|
682
682
|
textWrapper: "last-child:mb-0 text-s",
|
|
@@ -690,7 +690,7 @@ const L = {
|
|
|
690
690
|
warningIcon: "i-text-$color-alert-warning-icon",
|
|
691
691
|
info: "i-border-$color-alert-info-subtle-border i-bg-$color-alert-info-background i-text-$color-alert-info-text i-border-l-$color-alert-info-border",
|
|
692
692
|
infoIcon: "i-text-$color-alert-info-icon"
|
|
693
|
-
},
|
|
693
|
+
}, V = {
|
|
694
694
|
default: "block text-m mb-0 leading-m i-text-$color-input-text-filled i-bg-$color-input-background i-border-$color-input-border hover:i-border-$color-input-border-hover active:i-border-$color-input-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] caret-current",
|
|
695
695
|
textArea: "min-h-[42] sm:min-h-[45]",
|
|
696
696
|
disabled: "i-bg-$color-input-background-disabled i-border-$color-input-border-disabled hover:i-border-$color-input-border-disabled! i-text-$color-input-text-disabled pointer-events-none",
|
|
@@ -700,31 +700,40 @@ const L = {
|
|
|
700
700
|
wrapper: "relative",
|
|
701
701
|
suffix: "pr-40",
|
|
702
702
|
prefix: "pl-40"
|
|
703
|
-
},
|
|
703
|
+
}, ro = {
|
|
704
|
+
default: "block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current",
|
|
705
|
+
disabled: "i-bg-$color-select-background-disabled i-border-$color-select-border-disabled hover:i-border-$color-select-border-disabled! active:i-border-$color-select-border-disabled! i-text-$color-select-text-disabled pointer-events-none",
|
|
706
|
+
invalid: "i-border-$color-select-border-negative",
|
|
707
|
+
readOnly: "pl-0 bg-transparent border-0 pointer-events-none before:hidden",
|
|
708
|
+
wrapper: "relative",
|
|
709
|
+
selectWrapper: "relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",
|
|
710
|
+
chevron: "absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon",
|
|
711
|
+
chevronDisabled: "opacity-25"
|
|
712
|
+
}, G = {
|
|
704
713
|
label: "antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",
|
|
705
714
|
labelInvalid: "i-text-$color-label-text-negative",
|
|
706
715
|
optional: "pl-8 font-normal text-s i-text-$color-label-optional-text"
|
|
707
|
-
},
|
|
716
|
+
}, Bo = {
|
|
708
717
|
helpText: "text-xs mt-4 block i-text-$color-helptext-text",
|
|
709
718
|
helpTextValid: "i-text-$color-helptext-text-positive",
|
|
710
719
|
helpTextInvalid: "i-text-$color-helptext-text-negative"
|
|
711
|
-
},
|
|
712
|
-
wrapper:
|
|
720
|
+
}, ke = "absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] ", et = {
|
|
721
|
+
wrapper: ke + "right-0",
|
|
713
722
|
wrapperWithLabel: "w-max pr-12",
|
|
714
723
|
wrapperWithIcon: "w-40",
|
|
715
|
-
label: `${
|
|
716
|
-
},
|
|
717
|
-
wrapper:
|
|
724
|
+
label: `${G.label} pb-0! text-xs!`
|
|
725
|
+
}, tt = {
|
|
726
|
+
wrapper: ke + "left-0",
|
|
718
727
|
wrapperWithLabel: "w-max pl-12",
|
|
719
728
|
wrapperWithIcon: "w-40",
|
|
720
|
-
label: `${
|
|
721
|
-
},
|
|
729
|
+
label: `${G.label} pb-0! text-xs!`
|
|
730
|
+
}, to = {
|
|
722
731
|
wrapper: "flex space-x-8",
|
|
723
732
|
text: "i-text-$color-breadcrumbs-text",
|
|
724
733
|
link: "i-text-$color-breadcrumbs-link-text",
|
|
725
734
|
separator: "select-none i-text-$color-breadcrumbs-icon",
|
|
726
735
|
a11y: "sr-only"
|
|
727
|
-
},
|
|
736
|
+
}, at = () => s`<svg
|
|
728
737
|
aria-label="Rødt utropstegn"
|
|
729
738
|
role="img"
|
|
730
739
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -732,8 +741,8 @@ const L = {
|
|
|
732
741
|
height="16"
|
|
733
742
|
fill="none"
|
|
734
743
|
>
|
|
735
|
-
${
|
|
736
|
-
</svg>`,
|
|
744
|
+
${dt}
|
|
745
|
+
</svg>`, it = () => s`<svg
|
|
737
746
|
aria-label="Grønt hake"
|
|
738
747
|
role="img"
|
|
739
748
|
width="16"
|
|
@@ -741,8 +750,8 @@ const L = {
|
|
|
741
750
|
fill="none"
|
|
742
751
|
xmlns="http://www.w3.org/2000/svg"
|
|
743
752
|
>
|
|
744
|
-
${
|
|
745
|
-
</svg> `,
|
|
753
|
+
${nt}
|
|
754
|
+
</svg> `, ct = () => s`<svg
|
|
746
755
|
aria-label="Gult utropstegn"
|
|
747
756
|
role="img"
|
|
748
757
|
width="16"
|
|
@@ -750,8 +759,8 @@ const L = {
|
|
|
750
759
|
fill="none"
|
|
751
760
|
xmlns="http://www.w3.org/2000/svg"
|
|
752
761
|
>
|
|
753
|
-
${
|
|
754
|
-
</svg> `,
|
|
762
|
+
${bt}
|
|
763
|
+
</svg> `, lt = () => s`<svg
|
|
755
764
|
aria-label="Info"
|
|
756
765
|
role="img"
|
|
757
766
|
width="16"
|
|
@@ -759,8 +768,8 @@ const L = {
|
|
|
759
768
|
fill="none"
|
|
760
769
|
xmlns="http://www.w3.org/2000/svg"
|
|
761
770
|
>
|
|
762
|
-
${
|
|
763
|
-
</svg>`,
|
|
771
|
+
${gt}
|
|
772
|
+
</svg>`, dt = D`<path
|
|
764
773
|
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"
|
|
765
774
|
fill="currentColor"
|
|
766
775
|
/>
|
|
@@ -770,13 +779,13 @@ clip-rule="evenodd"
|
|
|
770
779
|
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"
|
|
771
780
|
fill="#fff"
|
|
772
781
|
/>
|
|
773
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
782
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, nt = D`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
774
783
|
<path
|
|
775
784
|
fill-rule="evenodd"
|
|
776
785
|
clip-rule="evenodd"
|
|
777
786
|
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"
|
|
778
787
|
fill="#fff"
|
|
779
|
-
/>`,
|
|
788
|
+
/>`, bt = D`<path
|
|
780
789
|
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"
|
|
781
790
|
fill="currentColor"
|
|
782
791
|
/>
|
|
@@ -786,61 +795,61 @@ clip-rule="evenodd"
|
|
|
786
795
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
787
796
|
fill="#fff"
|
|
788
797
|
/>
|
|
789
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
798
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, gt = D`<circle cx="8" cy="8" r="8" fill="currentColor" />
|
|
790
799
|
<path
|
|
791
800
|
fill-rule="evenodd"
|
|
792
801
|
clip-rule="evenodd"
|
|
793
802
|
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"
|
|
794
803
|
fill="#fff"
|
|
795
804
|
/>`;
|
|
796
|
-
var
|
|
805
|
+
var O = function() {
|
|
797
806
|
for (var r = [], o = arguments.length; o--; )
|
|
798
807
|
r[o] = arguments[o];
|
|
799
808
|
return r.reduce(function(e, t) {
|
|
800
|
-
return e.concat(typeof t == "string" ? t : Array.isArray(t) ?
|
|
809
|
+
return e.concat(typeof t == "string" ? t : Array.isArray(t) ? O.apply(void 0, t) : typeof t == "object" && t ? Object.keys(t).map(function(a) {
|
|
801
810
|
return t[a] ? a : "";
|
|
802
811
|
}) : "");
|
|
803
812
|
}, []).join(" ");
|
|
804
813
|
};
|
|
805
|
-
const
|
|
806
|
-
negative:
|
|
807
|
-
positive:
|
|
808
|
-
warning:
|
|
809
|
-
info:
|
|
814
|
+
const Vr = {
|
|
815
|
+
negative: at(),
|
|
816
|
+
positive: it(),
|
|
817
|
+
warning: ct(),
|
|
818
|
+
info: lt()
|
|
810
819
|
};
|
|
811
|
-
class
|
|
820
|
+
class nr extends k {
|
|
812
821
|
constructor() {
|
|
813
822
|
super(), this.show = !1, this.role = "alert";
|
|
814
823
|
}
|
|
815
824
|
connectedCallback() {
|
|
816
|
-
if (super.connectedCallback(), !this.variant || !Object.keys(
|
|
825
|
+
if (super.connectedCallback(), !this.variant || !Object.keys(Vr).includes(this.variant))
|
|
817
826
|
throw new Error(
|
|
818
827
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
819
828
|
negative, positive, warning, info.`
|
|
820
829
|
);
|
|
821
830
|
}
|
|
822
831
|
get _wrapperClasses() {
|
|
823
|
-
return
|
|
824
|
-
[
|
|
825
|
-
[
|
|
832
|
+
return O({
|
|
833
|
+
[po.alert]: !0,
|
|
834
|
+
[po[this.variant]]: !0
|
|
826
835
|
});
|
|
827
836
|
}
|
|
828
837
|
get _iconClasses() {
|
|
829
|
-
const o =
|
|
830
|
-
return
|
|
831
|
-
[
|
|
838
|
+
const o = po[`${this.variant}Icon`];
|
|
839
|
+
return O({
|
|
840
|
+
[po.icon]: !0,
|
|
832
841
|
[o]: !0
|
|
833
842
|
});
|
|
834
843
|
}
|
|
835
844
|
get _icon() {
|
|
836
|
-
return this.variant ?
|
|
845
|
+
return this.variant ? Vr[this.variant] : {};
|
|
837
846
|
}
|
|
838
847
|
render() {
|
|
839
848
|
return s`
|
|
840
849
|
<w-expand-transition ?show=${this.show}>
|
|
841
850
|
<div role=${this.role} class=${this._wrapperClasses}>
|
|
842
851
|
<div class=${this._iconClasses}>${this._icon}</div>
|
|
843
|
-
<div class=${
|
|
852
|
+
<div class=${po.textWrapper}>
|
|
844
853
|
<slot></slot>
|
|
845
854
|
</div>
|
|
846
855
|
</div>
|
|
@@ -848,7 +857,7 @@ negative, positive, warning, info.`
|
|
|
848
857
|
`;
|
|
849
858
|
}
|
|
850
859
|
}
|
|
851
|
-
w(
|
|
860
|
+
w(nr, "properties", {
|
|
852
861
|
variant: { type: String, reflect: !0 },
|
|
853
862
|
show: { type: Boolean, reflect: !0 },
|
|
854
863
|
role: { type: String, reflect: !0 }
|
|
@@ -856,10 +865,10 @@ w(ar, "properties", {
|
|
|
856
865
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
857
866
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
858
867
|
// https://stackoverflow.com/a/61631668
|
|
859
|
-
w(
|
|
868
|
+
w(nr, "styles", q`
|
|
860
869
|
/* layer: preflights */
|
|
861
870
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
862
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
871
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
863
872
|
/* layer: shortcuts */
|
|
864
873
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
865
874
|
@media (min-width: 480px){
|
|
@@ -1505,14 +1514,14 @@ w(ar, "styles", q`
|
|
|
1505
1514
|
margin-bottom: 0px !important;
|
|
1506
1515
|
}
|
|
1507
1516
|
`);
|
|
1508
|
-
customElements.get("w-alert") || customElements.define("w-alert",
|
|
1517
|
+
customElements.get("w-alert") || customElements.define("w-alert", nr);
|
|
1509
1518
|
/**
|
|
1510
1519
|
* @license
|
|
1511
1520
|
* Copyright 2017 Google LLC
|
|
1512
1521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1513
1522
|
*/
|
|
1514
|
-
const
|
|
1515
|
-
let
|
|
1523
|
+
const jr = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zr = (r) => (...o) => ({ _$litDirective$: r, values: o });
|
|
1524
|
+
let Ar = class {
|
|
1516
1525
|
constructor(o) {
|
|
1517
1526
|
}
|
|
1518
1527
|
get _$AU() {
|
|
@@ -1533,10 +1542,10 @@ let qr = class {
|
|
|
1533
1542
|
* Copyright 2018 Google LLC
|
|
1534
1543
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1535
1544
|
*/
|
|
1536
|
-
const
|
|
1545
|
+
const $e = Zr(class extends Ar {
|
|
1537
1546
|
constructor(r) {
|
|
1538
1547
|
var o;
|
|
1539
|
-
if (super(r), r.type !==
|
|
1548
|
+
if (super(r), r.type !== jr.ATTRIBUTE || r.name !== "class" || ((o = r.strings) === null || o === void 0 ? void 0 : o.length) > 2)
|
|
1540
1549
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1541
1550
|
}
|
|
1542
1551
|
render(r) {
|
|
@@ -1558,37 +1567,37 @@ const me = _r(class extends qr {
|
|
|
1558
1567
|
const c = !!o[i];
|
|
1559
1568
|
c === this.it.has(i) || !((t = this.nt) === null || t === void 0) && t.has(i) || (c ? (a.add(i), this.it.add(i)) : (a.remove(i), this.it.delete(i)));
|
|
1560
1569
|
}
|
|
1561
|
-
return
|
|
1570
|
+
return N;
|
|
1562
1571
|
}
|
|
1563
|
-
}),
|
|
1564
|
-
function
|
|
1572
|
+
}), st = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1573
|
+
function _o(r) {
|
|
1565
1574
|
return class extends r {
|
|
1566
1575
|
static createProperty(o, e) {
|
|
1567
1576
|
let t = e;
|
|
1568
1577
|
(typeof (e == null ? void 0 : e.attribute) > "u" || (e == null ? void 0 : e.attribute) === !0) && (t = Object.assign({}, e, {
|
|
1569
|
-
attribute:
|
|
1578
|
+
attribute: st(o.toString())
|
|
1570
1579
|
})), super.createProperty(o, t);
|
|
1571
1580
|
}
|
|
1572
1581
|
};
|
|
1573
1582
|
}
|
|
1574
|
-
function
|
|
1583
|
+
function Wr(r) {
|
|
1575
1584
|
const o = [];
|
|
1576
1585
|
for (const [e, t] of Object.entries(r))
|
|
1577
1586
|
t && o.push(e);
|
|
1578
1587
|
return o.join(" ");
|
|
1579
1588
|
}
|
|
1580
|
-
const
|
|
1589
|
+
const ko = typeof window < "u";
|
|
1581
1590
|
function Z(r) {
|
|
1582
1591
|
const o = {};
|
|
1583
1592
|
for (const [e, t] of Object.entries(r))
|
|
1584
1593
|
for (const a of e.split(" "))
|
|
1585
1594
|
o[a] = t;
|
|
1586
|
-
return
|
|
1595
|
+
return $e(o);
|
|
1587
1596
|
}
|
|
1588
|
-
function
|
|
1597
|
+
function ut() {
|
|
1589
1598
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
1590
1599
|
}
|
|
1591
|
-
const
|
|
1600
|
+
const ir = [
|
|
1592
1601
|
"primary",
|
|
1593
1602
|
"secondary",
|
|
1594
1603
|
"negative",
|
|
@@ -1596,15 +1605,15 @@ const or = [
|
|
|
1596
1605
|
"pill",
|
|
1597
1606
|
"link"
|
|
1598
1607
|
];
|
|
1599
|
-
class
|
|
1608
|
+
class Co extends _o(k) {
|
|
1600
1609
|
constructor() {
|
|
1601
1610
|
super(), this.variant = "secondary";
|
|
1602
1611
|
}
|
|
1603
1612
|
connectedCallback() {
|
|
1604
|
-
if (super.connectedCallback(), !
|
|
1613
|
+
if (super.connectedCallback(), !ir.includes(this.variant))
|
|
1605
1614
|
throw new Error(
|
|
1606
1615
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
1607
|
-
${
|
|
1616
|
+
${ir.join(
|
|
1608
1617
|
", "
|
|
1609
1618
|
)}.`
|
|
1610
1619
|
);
|
|
@@ -1614,9 +1623,9 @@ ${or.join(
|
|
|
1614
1623
|
}
|
|
1615
1624
|
get _classes() {
|
|
1616
1625
|
const o = this.variant === "primary", e = this.variant === "secondary", t = this.variant === "negative", a = this.variant === "utility", i = this.variant === "pill", c = this.variant === "link";
|
|
1617
|
-
return
|
|
1626
|
+
return O(
|
|
1618
1627
|
{
|
|
1619
|
-
[j.buttonSecondary]: e && !this.quiet || !
|
|
1628
|
+
[j.buttonSecondary]: e && !this.quiet || !ir.find((l) => this.variant === l),
|
|
1620
1629
|
// primary buttons
|
|
1621
1630
|
[j.buttonPrimary]: o,
|
|
1622
1631
|
[j.buttonDestructive]: t && !this.quiet,
|
|
@@ -1655,7 +1664,7 @@ ${or.join(
|
|
|
1655
1664
|
/>` : null}`;
|
|
1656
1665
|
}
|
|
1657
1666
|
}
|
|
1658
|
-
w(
|
|
1667
|
+
w(Co, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Co, "properties", {
|
|
1659
1668
|
type: { type: "button" | "submit" | "reset", reflect: !0 },
|
|
1660
1669
|
autofocus: { type: Boolean, reflect: !0 },
|
|
1661
1670
|
variant: { type: String, reflect: !0 },
|
|
@@ -1666,10 +1675,10 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
1666
1675
|
target: { type: String, reflect: !0 },
|
|
1667
1676
|
rel: { type: String, reflect: !0 },
|
|
1668
1677
|
buttonClass: { type: String, reflect: !0 }
|
|
1669
|
-
}), w(
|
|
1678
|
+
}), w(Co, "styles", q`
|
|
1670
1679
|
/* layer: preflights */
|
|
1671
1680
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
1672
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
1681
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
1673
1682
|
/* layer: shortcuts */
|
|
1674
1683
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
1675
1684
|
@media (min-width: 480px){
|
|
@@ -2305,37 +2314,37 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
2305
2314
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
2306
2315
|
}
|
|
2307
2316
|
`);
|
|
2308
|
-
customElements.get("w-button") || customElements.define("w-button",
|
|
2317
|
+
customElements.get("w-button") || customElements.define("w-button", Co);
|
|
2309
2318
|
/**
|
|
2310
2319
|
* @license
|
|
2311
2320
|
* Copyright 2018 Google LLC
|
|
2312
2321
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2313
2322
|
*/
|
|
2314
|
-
const x = (r) => r ?? f,
|
|
2323
|
+
const x = (r) => r ?? f, Gr = {
|
|
2315
2324
|
ENTER: "Enter",
|
|
2316
2325
|
SPACE: " "
|
|
2317
2326
|
};
|
|
2318
|
-
class
|
|
2327
|
+
class br extends k {
|
|
2319
2328
|
constructor() {
|
|
2320
2329
|
super(), this.selected = !1, this.flat = !1, this.clickable = !1;
|
|
2321
2330
|
}
|
|
2322
2331
|
get _outerClasses() {
|
|
2323
2332
|
return Z({
|
|
2324
|
-
[
|
|
2325
|
-
[
|
|
2326
|
-
[
|
|
2327
|
-
[
|
|
2328
|
-
[this.selected ?
|
|
2333
|
+
[M.card]: !0,
|
|
2334
|
+
[M.cardShadow]: !this.flat,
|
|
2335
|
+
[M.cardSelected]: this.selected,
|
|
2336
|
+
[M.cardFlat]: this.flat,
|
|
2337
|
+
[this.selected ? M.cardFlatSelected : M.cardFlatUnselected]: this.flat
|
|
2329
2338
|
});
|
|
2330
2339
|
}
|
|
2331
2340
|
get _innerClasses() {
|
|
2332
2341
|
return Z({
|
|
2333
|
-
[
|
|
2334
|
-
[this.selected ?
|
|
2342
|
+
[M.cardOutline]: !0,
|
|
2343
|
+
[this.selected ? M.cardOutlineSelected : M.cardOutlineUnselected]: !0
|
|
2335
2344
|
});
|
|
2336
2345
|
}
|
|
2337
2346
|
get uuButton() {
|
|
2338
|
-
return s`<button class=
|
|
2347
|
+
return s`<button class="${M.a11y}" aria-pressed="${this.selected}" tabindex="-1">
|
|
2339
2348
|
Velg
|
|
2340
2349
|
</button>`;
|
|
2341
2350
|
}
|
|
@@ -2343,7 +2352,7 @@ class ir extends k {
|
|
|
2343
2352
|
return s`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
2344
2353
|
}
|
|
2345
2354
|
keypressed(o) {
|
|
2346
|
-
!this.clickable || o.altKey || o.ctrlKey || (o.key ===
|
|
2355
|
+
!this.clickable || o.altKey || o.ctrlKey || (o.key === Gr.ENTER || o.key === Gr.SPACE) && (o.preventDefault(), this.click());
|
|
2347
2356
|
}
|
|
2348
2357
|
render() {
|
|
2349
2358
|
return s`
|
|
@@ -2360,11 +2369,11 @@ class ir extends k {
|
|
|
2360
2369
|
`;
|
|
2361
2370
|
}
|
|
2362
2371
|
}
|
|
2363
|
-
w(
|
|
2372
|
+
w(br, "styles", [
|
|
2364
2373
|
q`
|
|
2365
2374
|
/* layer: preflights */
|
|
2366
2375
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
2367
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
2376
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
2368
2377
|
/* layer: shortcuts */
|
|
2369
2378
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
2370
2379
|
@media (min-width: 480px){
|
|
@@ -3011,18 +3020,18 @@ w(ir, "styles", [
|
|
|
3011
3020
|
display: block;
|
|
3012
3021
|
}
|
|
3013
3022
|
`
|
|
3014
|
-
]), w(
|
|
3023
|
+
]), w(br, "properties", {
|
|
3015
3024
|
selected: { type: Boolean, reflect: !0 },
|
|
3016
3025
|
flat: { type: Boolean },
|
|
3017
3026
|
clickable: { type: Boolean }
|
|
3018
3027
|
});
|
|
3019
|
-
customElements.get("w-card") || customElements.define("w-card",
|
|
3028
|
+
customElements.get("w-card") || customElements.define("w-card", br);
|
|
3020
3029
|
/**
|
|
3021
3030
|
* @license
|
|
3022
3031
|
* Copyright 2021 Google LLC
|
|
3023
3032
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3024
3033
|
*/
|
|
3025
|
-
function
|
|
3034
|
+
function So(r, o, e) {
|
|
3026
3035
|
return r ? o() : e == null ? void 0 : e();
|
|
3027
3036
|
}
|
|
3028
3037
|
/**
|
|
@@ -3030,15 +3039,15 @@ function Ao(r, o, e) {
|
|
|
3030
3039
|
* Copyright 2017 Google LLC
|
|
3031
3040
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3032
3041
|
*/
|
|
3033
|
-
let
|
|
3042
|
+
let gr = class extends Ar {
|
|
3034
3043
|
constructor(o) {
|
|
3035
|
-
if (super(o), this.et = f, o.type !==
|
|
3044
|
+
if (super(o), this.et = f, o.type !== jr.CHILD)
|
|
3036
3045
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
3037
3046
|
}
|
|
3038
3047
|
render(o) {
|
|
3039
3048
|
if (o === f || o == null)
|
|
3040
3049
|
return this.ft = void 0, this.et = o;
|
|
3041
|
-
if (o ===
|
|
3050
|
+
if (o === N)
|
|
3042
3051
|
return o;
|
|
3043
3052
|
if (typeof o != "string")
|
|
3044
3053
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
@@ -3049,56 +3058,93 @@ let cr = class extends qr {
|
|
|
3049
3058
|
return e.raw = e, this.ft = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
3050
3059
|
}
|
|
3051
3060
|
};
|
|
3052
|
-
|
|
3053
|
-
const
|
|
3054
|
-
var
|
|
3055
|
-
class
|
|
3061
|
+
gr.directiveName = "unsafeHTML", gr.resultType = 1;
|
|
3062
|
+
const ye = Zr(gr);
|
|
3063
|
+
var Do, ze, Uo, _e, Fo, qe, Vo, Xe, io, Eo, co, Mo;
|
|
3064
|
+
class sr extends _o(k) {
|
|
3056
3065
|
constructor() {
|
|
3057
3066
|
super();
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3067
|
+
U(this, Do);
|
|
3068
|
+
U(this, Uo);
|
|
3069
|
+
U(this, Fo);
|
|
3070
|
+
U(this, Vo);
|
|
3071
|
+
U(this, io);
|
|
3072
|
+
U(this, co);
|
|
3061
3073
|
this._options = this.innerHTML;
|
|
3062
3074
|
}
|
|
3063
3075
|
render() {
|
|
3064
|
-
return s`<div class="${
|
|
3065
|
-
${
|
|
3076
|
+
return s`<div class="${ro.wrapper}">
|
|
3077
|
+
${So(
|
|
3066
3078
|
this.label,
|
|
3067
|
-
() => s`<label for="${
|
|
3079
|
+
() => s`<label class="${C(this, Uo, _e)}" for="${C(this, io, Eo)}">
|
|
3068
3080
|
${this.label}
|
|
3069
|
-
${
|
|
3081
|
+
${So(
|
|
3070
3082
|
this.optional,
|
|
3071
|
-
() => s`<span
|
|
3083
|
+
() => s`<span class="${G.optional}">(valgfritt)</span>`
|
|
3072
3084
|
)}</label
|
|
3073
3085
|
>`
|
|
3074
3086
|
)}
|
|
3075
|
-
<div class="
|
|
3087
|
+
<div class="${ro.selectWrapper}">
|
|
3076
3088
|
<select
|
|
3077
|
-
|
|
3089
|
+
class="${C(this, Do, ze)}"
|
|
3090
|
+
id="${C(this, io, Eo)}"
|
|
3078
3091
|
?autofocus=${this.autoFocus}
|
|
3079
|
-
aria-describedby="${x(
|
|
3092
|
+
aria-describedby="${x(C(this, co, Mo))}"
|
|
3080
3093
|
aria-invalid="${x(this.invalid)}"
|
|
3081
|
-
aria-errormessage="${x(this.invalid &&
|
|
3094
|
+
aria-errormessage="${x(this.invalid && C(this, co, Mo))}"
|
|
3082
3095
|
>
|
|
3083
|
-
${
|
|
3096
|
+
${ye(this._options)}
|
|
3084
3097
|
</select>
|
|
3098
|
+
<div class="${C(this, Vo, Xe)}">
|
|
3099
|
+
<svg
|
|
3100
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3101
|
+
width="16"
|
|
3102
|
+
height="16"
|
|
3103
|
+
fill="none"
|
|
3104
|
+
viewBox="0 0 16 16"
|
|
3105
|
+
>
|
|
3106
|
+
<path
|
|
3107
|
+
stroke="currentColor"
|
|
3108
|
+
strokeLinecap="round"
|
|
3109
|
+
strokeLinejoin="round"
|
|
3110
|
+
strokeWidth="1.5"
|
|
3111
|
+
d="M2.5 5.5L8 11L13.5 5.5"
|
|
3112
|
+
/>
|
|
3113
|
+
</svg>
|
|
3114
|
+
</div>
|
|
3085
3115
|
</div>
|
|
3086
|
-
${
|
|
3116
|
+
${So(
|
|
3087
3117
|
this.always || this.invalid,
|
|
3088
|
-
() => s`<div id="${
|
|
3118
|
+
() => s`<div id="${C(this, co, Mo)}" class="${C(this, Fo, qe)}">${this.hint}</div>`
|
|
3089
3119
|
)}
|
|
3090
3120
|
</div>`;
|
|
3091
3121
|
}
|
|
3092
3122
|
}
|
|
3093
|
-
|
|
3094
|
-
return
|
|
3095
|
-
|
|
3123
|
+
Do = new WeakSet(), ze = function() {
|
|
3124
|
+
return O({
|
|
3125
|
+
[ro.default]: !0,
|
|
3126
|
+
[ro.invalid]: this.invalid
|
|
3096
3127
|
});
|
|
3097
|
-
},
|
|
3128
|
+
}, Uo = new WeakSet(), _e = function() {
|
|
3129
|
+
return O({
|
|
3130
|
+
[G.label]: !0,
|
|
3131
|
+
[G.labelInvalid]: this.invalid
|
|
3132
|
+
});
|
|
3133
|
+
}, Fo = new WeakSet(), qe = function() {
|
|
3134
|
+
return O({
|
|
3135
|
+
[Bo.helpText]: !0,
|
|
3136
|
+
[Bo.helpTextInvalid]: this.invalid
|
|
3137
|
+
});
|
|
3138
|
+
}, Vo = new WeakSet(), Xe = function() {
|
|
3139
|
+
return O({
|
|
3140
|
+
[ro.chevron]: !0,
|
|
3141
|
+
[ro.chevronDisabled]: this.disabled
|
|
3142
|
+
});
|
|
3143
|
+
}, io = new WeakSet(), Eo = function() {
|
|
3098
3144
|
return "select_id";
|
|
3099
|
-
},
|
|
3100
|
-
return this.hint ? `${
|
|
3101
|
-
}, w(
|
|
3145
|
+
}, co = new WeakSet(), Mo = function() {
|
|
3146
|
+
return this.hint ? `${C(this, io, Eo)}__hint` : void 0;
|
|
3147
|
+
}, w(sr, "properties", {
|
|
3102
3148
|
// Whether the element should receive focus on render
|
|
3103
3149
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
3104
3150
|
// Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
|
|
@@ -3112,10 +3158,10 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3112
3158
|
// Whether to show optional text
|
|
3113
3159
|
optional: { type: Boolean, reflect: !0 },
|
|
3114
3160
|
_options: { state: !0 }
|
|
3115
|
-
}), w(
|
|
3161
|
+
}), w(sr, "styles", q`
|
|
3116
3162
|
/* layer: preflights */
|
|
3117
3163
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
3118
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
3164
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
3119
3165
|
/* layer: shortcuts */
|
|
3120
3166
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3121
3167
|
@media (min-width: 480px){
|
|
@@ -3722,9 +3768,8 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3722
3768
|
.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
3723
3769
|
.duration-300{transition-duration:300ms;}
|
|
3724
3770
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
3725
|
-
.text-14,
|
|
3726
|
-
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
3727
3771
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3772
|
+
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
3728
3773
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
3729
3774
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
3730
3775
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -3753,15 +3798,15 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3753
3798
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
3754
3799
|
}
|
|
3755
3800
|
`);
|
|
3756
|
-
customElements.get("w-select") || customElements.define("w-select",
|
|
3757
|
-
class
|
|
3801
|
+
customElements.get("w-select") || customElements.define("w-select", sr);
|
|
3802
|
+
class ur extends k {
|
|
3758
3803
|
get _class() {
|
|
3759
3804
|
return Z({
|
|
3760
|
-
[
|
|
3761
|
-
[
|
|
3762
|
-
[
|
|
3763
|
-
[
|
|
3764
|
-
[
|
|
3805
|
+
[B.box]: !0,
|
|
3806
|
+
[B.bleed]: this.bleed,
|
|
3807
|
+
[B.info]: this.info,
|
|
3808
|
+
[B.neutral]: this.neutral,
|
|
3809
|
+
[B.bordered]: this.bordered
|
|
3765
3810
|
});
|
|
3766
3811
|
}
|
|
3767
3812
|
render() {
|
|
@@ -3772,7 +3817,7 @@ class dr extends k {
|
|
|
3772
3817
|
`;
|
|
3773
3818
|
}
|
|
3774
3819
|
}
|
|
3775
|
-
w(
|
|
3820
|
+
w(ur, "properties", {
|
|
3776
3821
|
bleed: { type: Boolean },
|
|
3777
3822
|
bordered: { type: Boolean },
|
|
3778
3823
|
info: { type: Boolean },
|
|
@@ -3781,10 +3826,10 @@ w(dr, "properties", {
|
|
|
3781
3826
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
3782
3827
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
3783
3828
|
// https://stackoverflow.com/a/61631668
|
|
3784
|
-
w(
|
|
3829
|
+
w(ur, "styles", q`
|
|
3785
3830
|
/* layer: preflights */
|
|
3786
3831
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
3787
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
3832
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
3788
3833
|
/* layer: shortcuts */
|
|
3789
3834
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3790
3835
|
@media (min-width: 480px){
|
|
@@ -4426,12 +4471,12 @@ w(dr, "styles", q`
|
|
|
4426
4471
|
margin-bottom: 0 !important;
|
|
4427
4472
|
}
|
|
4428
4473
|
`);
|
|
4429
|
-
customElements.get("w-box") || customElements.define("w-box",
|
|
4430
|
-
function
|
|
4474
|
+
customElements.get("w-box") || customElements.define("w-box", ur);
|
|
4475
|
+
function vt(r, o) {
|
|
4431
4476
|
return r.flatMap((e) => [e, o]).slice(0, -1);
|
|
4432
4477
|
}
|
|
4433
|
-
const
|
|
4434
|
-
class
|
|
4478
|
+
const pt = s`<span class=${to.separator} aria-hidden='true'>/</span>`;
|
|
4479
|
+
class vr extends _o(k) {
|
|
4435
4480
|
constructor() {
|
|
4436
4481
|
super(), this.ariaLabel = "Her er du";
|
|
4437
4482
|
}
|
|
@@ -4440,27 +4485,27 @@ class nr extends $o(k) {
|
|
|
4440
4485
|
const e = Array.from(this.children).flat(1 / 0).filter((t) => t).map((t, a) => {
|
|
4441
4486
|
if (typeof t == "string") {
|
|
4442
4487
|
const i = a === children.length - 1;
|
|
4443
|
-
return s`<span class=${
|
|
4488
|
+
return s`<span class=${to.text} aria-current=${i ? "page" : void 0}>${t}</span>`;
|
|
4444
4489
|
}
|
|
4445
|
-
return t.classList.add(t.tagName === "A" ?
|
|
4490
|
+
return t.classList.add(t.tagName === "A" ? to.link : to.text), t;
|
|
4446
4491
|
});
|
|
4447
|
-
this._children =
|
|
4492
|
+
this._children = vt(e, pt);
|
|
4448
4493
|
}
|
|
4449
4494
|
render() {
|
|
4450
4495
|
return s`
|
|
4451
4496
|
<nav aria-label=${this.ariaLabel}>
|
|
4452
|
-
<h2 class=${
|
|
4453
|
-
<div class=${
|
|
4497
|
+
<h2 class=${to.a11y}>${this.ariaLabel}</h2>
|
|
4498
|
+
<div class=${to.wrapper}>
|
|
4454
4499
|
${this._children}
|
|
4455
4500
|
</div>
|
|
4456
4501
|
</nav>
|
|
4457
4502
|
`;
|
|
4458
4503
|
}
|
|
4459
4504
|
}
|
|
4460
|
-
w(
|
|
4505
|
+
w(vr, "styles", q`
|
|
4461
4506
|
/* layer: preflights */
|
|
4462
4507
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
4463
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
4508
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
4464
4509
|
/* layer: shortcuts */
|
|
4465
4510
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
4466
4511
|
@media (min-width: 480px){
|
|
@@ -5095,52 +5140,52 @@ w(nr, "styles", q`
|
|
|
5095
5140
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
5096
5141
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
5097
5142
|
}
|
|
5098
|
-
`), w(
|
|
5143
|
+
`), w(vr, "properties", {
|
|
5099
5144
|
ariaLabel: { type: String }
|
|
5100
5145
|
});
|
|
5101
|
-
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs",
|
|
5102
|
-
const
|
|
5103
|
-
let
|
|
5104
|
-
if (
|
|
5105
|
-
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) =>
|
|
5146
|
+
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", vr);
|
|
5147
|
+
const Cr = typeof window < "u";
|
|
5148
|
+
let Ye = !0;
|
|
5149
|
+
if (Cr) {
|
|
5150
|
+
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) => Ye = !e;
|
|
5106
5151
|
r.addEventListener && r.addEventListener("change", o), o(r);
|
|
5107
5152
|
}
|
|
5108
|
-
const
|
|
5153
|
+
const je = (r) => {
|
|
5109
5154
|
r.style.transition = null, r.style.backfaceVisibility = null, r.style.overflow = null;
|
|
5110
|
-
},
|
|
5111
|
-
const o =
|
|
5155
|
+
}, Ze = (r) => {
|
|
5156
|
+
const o = Ye ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
5112
5157
|
r.style.transition = `height ${o}`, r.style.backfaceVisibility = "hidden", r.style.overflow = "hidden";
|
|
5113
|
-
},
|
|
5158
|
+
}, ht = (r, o) => () => {
|
|
5114
5159
|
r.style.height = "auto", r.style.overflow = null, o && o();
|
|
5115
|
-
},
|
|
5160
|
+
}, wt = (r) => () => {
|
|
5116
5161
|
r && r();
|
|
5117
|
-
},
|
|
5162
|
+
}, Ae = (r, o) => {
|
|
5118
5163
|
const e = (() => {
|
|
5119
5164
|
if (!o)
|
|
5120
5165
|
return new Promise((i) => {
|
|
5121
5166
|
o = i;
|
|
5122
5167
|
});
|
|
5123
|
-
})(), t =
|
|
5124
|
-
|
|
5168
|
+
})(), t = ht(r, o);
|
|
5169
|
+
je(r), r.style.height = "auto";
|
|
5125
5170
|
let a = r.scrollHeight;
|
|
5126
|
-
if (
|
|
5127
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out",
|
|
5171
|
+
if (Cr && requestAnimationFrame(() => {
|
|
5172
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out", Ze(r), requestAnimationFrame(() => r.style.height = a + "px");
|
|
5128
5173
|
}), e)
|
|
5129
5174
|
return e;
|
|
5130
|
-
},
|
|
5175
|
+
}, Ce = (r, o) => {
|
|
5131
5176
|
const e = (() => {
|
|
5132
5177
|
if (!o)
|
|
5133
5178
|
return new Promise((i) => {
|
|
5134
5179
|
o = i;
|
|
5135
5180
|
});
|
|
5136
|
-
})(), t =
|
|
5137
|
-
|
|
5181
|
+
})(), t = wt(o);
|
|
5182
|
+
je(r);
|
|
5138
5183
|
let a = r.scrollHeight;
|
|
5139
|
-
if (
|
|
5140
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in",
|
|
5184
|
+
if (Cr && requestAnimationFrame(() => {
|
|
5185
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in", Ze(r), requestAnimationFrame(() => r.style.height = "0px");
|
|
5141
5186
|
}), e)
|
|
5142
5187
|
return e;
|
|
5143
|
-
},
|
|
5188
|
+
}, mt = () => s`
|
|
5144
5189
|
<svg
|
|
5145
5190
|
role="img"
|
|
5146
5191
|
aria-label="Lukk"
|
|
@@ -5150,9 +5195,9 @@ const $e = (r) => {
|
|
|
5150
5195
|
fill="none"
|
|
5151
5196
|
viewBox="0 0 16 16"
|
|
5152
5197
|
>
|
|
5153
|
-
${
|
|
5198
|
+
${$t}
|
|
5154
5199
|
</svg>
|
|
5155
|
-
`,
|
|
5200
|
+
`, xt = (r) => s`<svg
|
|
5156
5201
|
aria-label="${r.typeLabel}"
|
|
5157
5202
|
role="img"
|
|
5158
5203
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5160,8 +5205,8 @@ const $e = (r) => {
|
|
|
5160
5205
|
height="16"
|
|
5161
5206
|
fill="none"
|
|
5162
5207
|
>
|
|
5163
|
-
${
|
|
5164
|
-
</svg>`,
|
|
5208
|
+
${yt}
|
|
5209
|
+
</svg>`, ft = (r) => s`<svg
|
|
5165
5210
|
aria-label="${r.typeLabel}"
|
|
5166
5211
|
role="img"
|
|
5167
5212
|
width="16"
|
|
@@ -5169,8 +5214,8 @@ const $e = (r) => {
|
|
|
5169
5214
|
fill="none"
|
|
5170
5215
|
xmlns="http://www.w3.org/2000/svg"
|
|
5171
5216
|
>
|
|
5172
|
-
${
|
|
5173
|
-
</svg> `,
|
|
5217
|
+
${zt}
|
|
5218
|
+
</svg> `, kt = (r) => s`<svg
|
|
5174
5219
|
aria-label="${r.typeLabel}"
|
|
5175
5220
|
role="img"
|
|
5176
5221
|
width="16"
|
|
@@ -5178,14 +5223,14 @@ const $e = (r) => {
|
|
|
5178
5223
|
fill="none"
|
|
5179
5224
|
xmlns="http://www.w3.org/2000/svg"
|
|
5180
5225
|
>
|
|
5181
|
-
${
|
|
5182
|
-
</svg> `,
|
|
5226
|
+
${_t}
|
|
5227
|
+
</svg> `, $t = D`
|
|
5183
5228
|
<path
|
|
5184
5229
|
fill="currentColor"
|
|
5185
5230
|
fill-rule="evenodd"
|
|
5186
5231
|
d="M4.03 2.97a.75.75 0 00-1.06 1.06L6.94 8l-3.97 3.97a.75.75 0 101.06 1.06L8 9.06l3.97 3.97a.75.75 0 101.06-1.06L9.06 8l3.97-3.97a.75.75 0 00-1.06-1.06L8 6.94 4.03 2.97z"
|
|
5187
5232
|
clipRule="evenodd"
|
|
5188
|
-
/>`,
|
|
5233
|
+
/>`, yt = D`
|
|
5189
5234
|
<path
|
|
5190
5235
|
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"
|
|
5191
5236
|
fill="currentColor"
|
|
@@ -5196,13 +5241,13 @@ const $e = (r) => {
|
|
|
5196
5241
|
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"
|
|
5197
5242
|
fill="#fff"
|
|
5198
5243
|
/>
|
|
5199
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
5244
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, zt = D`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
5200
5245
|
<path
|
|
5201
5246
|
fill-rule="evenodd"
|
|
5202
5247
|
clip-rule="evenodd"
|
|
5203
5248
|
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"
|
|
5204
5249
|
fill="#fff"
|
|
5205
|
-
/>`,
|
|
5250
|
+
/>`, _t = D`
|
|
5206
5251
|
<path
|
|
5207
5252
|
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"
|
|
5208
5253
|
fill="currentColor"
|
|
@@ -5213,18 +5258,18 @@ const $e = (r) => {
|
|
|
5213
5258
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
5214
5259
|
fill="#fff"
|
|
5215
5260
|
/>
|
|
5216
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
5261
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Jr = (r) => {
|
|
5217
5262
|
const o = {};
|
|
5218
5263
|
for (const [e, t] of Object.entries(r))
|
|
5219
5264
|
for (const a of e.split(" "))
|
|
5220
5265
|
o[a] = t;
|
|
5221
|
-
return
|
|
5222
|
-
},
|
|
5266
|
+
return $e(o);
|
|
5267
|
+
}, E = {
|
|
5223
5268
|
success: "success",
|
|
5224
5269
|
error: "error",
|
|
5225
5270
|
warning: "warning"
|
|
5226
5271
|
};
|
|
5227
|
-
class
|
|
5272
|
+
class pr extends k {
|
|
5228
5273
|
constructor() {
|
|
5229
5274
|
super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
|
|
5230
5275
|
}
|
|
@@ -5235,22 +5280,22 @@ class br extends k {
|
|
|
5235
5280
|
super.disconnectedCallback();
|
|
5236
5281
|
}
|
|
5237
5282
|
updated() {
|
|
5238
|
-
!this._expanded && this._wrapper &&
|
|
5283
|
+
!this._expanded && this._wrapper && Ae(this._wrapper, () => this._expanded = !0);
|
|
5239
5284
|
}
|
|
5240
5285
|
get _primaryClasses() {
|
|
5241
|
-
return
|
|
5242
|
-
[
|
|
5243
|
-
[
|
|
5244
|
-
[
|
|
5245
|
-
[
|
|
5286
|
+
return Jr({
|
|
5287
|
+
[S.toast]: !0,
|
|
5288
|
+
[S.positive]: this.type === E.success,
|
|
5289
|
+
[S.warning]: this.type === E.warning,
|
|
5290
|
+
[S.negative]: this.type === E.error
|
|
5246
5291
|
});
|
|
5247
5292
|
}
|
|
5248
5293
|
get _iconClasses() {
|
|
5249
|
-
return
|
|
5250
|
-
[
|
|
5251
|
-
[
|
|
5252
|
-
[
|
|
5253
|
-
[
|
|
5294
|
+
return Jr({
|
|
5295
|
+
[S.icon]: !0,
|
|
5296
|
+
[S.iconPositive]: this.type == E.success,
|
|
5297
|
+
[S.iconWarning]: this.type === E.warning,
|
|
5298
|
+
[S.iconNegative]: this.type === E.error
|
|
5254
5299
|
});
|
|
5255
5300
|
}
|
|
5256
5301
|
get _wrapper() {
|
|
@@ -5258,13 +5303,13 @@ class br extends k {
|
|
|
5258
5303
|
return ((o = this.renderRoot) == null ? void 0 : o.querySelector("section")) ?? null;
|
|
5259
5304
|
}
|
|
5260
5305
|
get _success() {
|
|
5261
|
-
return this.type ===
|
|
5306
|
+
return this.type === E.success;
|
|
5262
5307
|
}
|
|
5263
5308
|
get _warning() {
|
|
5264
|
-
return this.type ===
|
|
5309
|
+
return this.type === E.warning;
|
|
5265
5310
|
}
|
|
5266
5311
|
get _error() {
|
|
5267
|
-
return this.type ===
|
|
5312
|
+
return this.type === E.error;
|
|
5268
5313
|
}
|
|
5269
5314
|
get _role() {
|
|
5270
5315
|
return this._error || this._warning ? "alert" : "status";
|
|
@@ -5273,11 +5318,11 @@ class br extends k {
|
|
|
5273
5318
|
return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
|
|
5274
5319
|
}
|
|
5275
5320
|
get _iconMarkup() {
|
|
5276
|
-
return this.type ===
|
|
5321
|
+
return this.type === E.success ? ft({ typeLabel: this._typeLabel }) : this.type === E.warning ? kt({ typeLabel: this._typeLabel }) : xt({ typeLabel: this._typeLabel, isInfo: this._info });
|
|
5277
5322
|
}
|
|
5278
5323
|
async collapse() {
|
|
5279
5324
|
return new Promise((o) => {
|
|
5280
|
-
this._expanded && this._wrapper ?
|
|
5325
|
+
this._expanded && this._wrapper ? Ce(this._wrapper, o) : o();
|
|
5281
5326
|
});
|
|
5282
5327
|
}
|
|
5283
5328
|
close() {
|
|
@@ -5289,25 +5334,25 @@ class br extends k {
|
|
|
5289
5334
|
this.updateComplete.then(() => this.dispatchEvent(o));
|
|
5290
5335
|
}
|
|
5291
5336
|
render() {
|
|
5292
|
-
return this.text ? s` <section class="${
|
|
5337
|
+
return this.text ? s` <section class="${S.wrapper}" aria-label="${this._typeLabel}">
|
|
5293
5338
|
<div class="${this._primaryClasses}">
|
|
5294
5339
|
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
5295
|
-
<div role="${this._role}" class="${
|
|
5340
|
+
<div role="${this._role}" class="${S.content}">
|
|
5296
5341
|
<p>${this.text}</p>
|
|
5297
5342
|
</div>
|
|
5298
|
-
${
|
|
5343
|
+
${So(
|
|
5299
5344
|
this.canclose === !0,
|
|
5300
|
-
() => s`<button class="${
|
|
5345
|
+
() => s`<button class="${S.close}" @click="${this.close}">${mt()}</button>`
|
|
5301
5346
|
)}
|
|
5302
5347
|
</div>
|
|
5303
5348
|
</section>` : s``;
|
|
5304
5349
|
}
|
|
5305
5350
|
}
|
|
5306
|
-
w(
|
|
5351
|
+
w(pr, "styles", [
|
|
5307
5352
|
q`
|
|
5308
5353
|
/* layer: preflights */
|
|
5309
5354
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
5310
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
5355
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
5311
5356
|
/* layer: shortcuts */
|
|
5312
5357
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
5313
5358
|
@media (min-width: 480px){
|
|
@@ -5947,24 +5992,24 @@ w(br, "styles", [
|
|
|
5947
5992
|
display: block;
|
|
5948
5993
|
}
|
|
5949
5994
|
`
|
|
5950
|
-
]), w(
|
|
5995
|
+
]), w(pr, "properties", {
|
|
5951
5996
|
id: { type: String, attribute: !0, reflect: !0 },
|
|
5952
5997
|
type: { type: String, attribute: !0, reflect: !0 },
|
|
5953
5998
|
text: { type: String, attribute: !0, reflect: !0 },
|
|
5954
5999
|
canclose: { type: Boolean, attribute: !0, reflect: !0 }
|
|
5955
6000
|
});
|
|
5956
|
-
customElements.get("w-toast") || customElements.define("w-toast",
|
|
6001
|
+
customElements.get("w-toast") || customElements.define("w-toast", pr);
|
|
5957
6002
|
/**
|
|
5958
6003
|
* @license
|
|
5959
6004
|
* Copyright 2020 Google LLC
|
|
5960
6005
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5961
6006
|
*/
|
|
5962
|
-
const { I:
|
|
6007
|
+
const { I: qt } = Qe, Kr = () => document.createComment(""), ho = (r, o, e) => {
|
|
5963
6008
|
var t;
|
|
5964
6009
|
const a = r._$AA.parentNode, i = o === void 0 ? r._$AB : o._$AA;
|
|
5965
6010
|
if (e === void 0) {
|
|
5966
|
-
const c = a.insertBefore(
|
|
5967
|
-
e = new
|
|
6011
|
+
const c = a.insertBefore(Kr(), i), l = a.insertBefore(Kr(), i);
|
|
6012
|
+
e = new qt(c, l, r, r.options);
|
|
5968
6013
|
} else {
|
|
5969
6014
|
const c = e._$AB.nextSibling, l = e._$AM, d = l !== r;
|
|
5970
6015
|
if (d) {
|
|
@@ -5980,7 +6025,7 @@ const { I: xt } = Ue, Vr = () => document.createComment(""), so = (r, o, e) => {
|
|
|
5980
6025
|
}
|
|
5981
6026
|
}
|
|
5982
6027
|
return e;
|
|
5983
|
-
},
|
|
6028
|
+
}, W = (r, o, e = r) => (r._$AI(o, e), r), Xt = {}, Yt = (r, o = Xt) => r._$AH = o, jt = (r) => r._$AH, cr = (r) => {
|
|
5984
6029
|
var o;
|
|
5985
6030
|
(o = r._$AP) === null || o === void 0 || o.call(r, !1, !0);
|
|
5986
6031
|
let e = r._$AA;
|
|
@@ -5995,14 +6040,14 @@ const { I: xt } = Ue, Vr = () => document.createComment(""), so = (r, o, e) => {
|
|
|
5995
6040
|
* Copyright 2017 Google LLC
|
|
5996
6041
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5997
6042
|
*/
|
|
5998
|
-
const
|
|
6043
|
+
const Qr = (r, o, e) => {
|
|
5999
6044
|
const t = /* @__PURE__ */ new Map();
|
|
6000
6045
|
for (let a = o; a <= e; a++)
|
|
6001
6046
|
t.set(r[a], a);
|
|
6002
6047
|
return t;
|
|
6003
|
-
},
|
|
6048
|
+
}, Se = Zr(class extends Ar {
|
|
6004
6049
|
constructor(r) {
|
|
6005
|
-
if (super(r), r.type !==
|
|
6050
|
+
if (super(r), r.type !== jr.CHILD)
|
|
6006
6051
|
throw Error("repeat() can only be used in text expressions");
|
|
6007
6052
|
}
|
|
6008
6053
|
dt(r, o, e) {
|
|
@@ -6019,7 +6064,7 @@ const Wr = (r, o, e) => {
|
|
|
6019
6064
|
}
|
|
6020
6065
|
update(r, [o, e, t]) {
|
|
6021
6066
|
var a;
|
|
6022
|
-
const i =
|
|
6067
|
+
const i = jt(r), { values: c, keys: l } = this.dt(o, e, t);
|
|
6023
6068
|
if (!Array.isArray(i))
|
|
6024
6069
|
return this.ht = l, c;
|
|
6025
6070
|
const d = (a = this.ht) !== null && a !== void 0 ? a : this.ht = [], n = [];
|
|
@@ -6030,38 +6075,38 @@ const Wr = (r, o, e) => {
|
|
|
6030
6075
|
else if (i[u] === null)
|
|
6031
6076
|
u--;
|
|
6032
6077
|
else if (d[g] === l[p])
|
|
6033
|
-
n[p] =
|
|
6078
|
+
n[p] = W(i[g], c[p]), g++, p++;
|
|
6034
6079
|
else if (d[u] === l[h])
|
|
6035
|
-
n[h] =
|
|
6080
|
+
n[h] = W(i[u], c[h]), u--, h--;
|
|
6036
6081
|
else if (d[g] === l[h])
|
|
6037
|
-
n[h] =
|
|
6082
|
+
n[h] = W(i[g], c[h]), ho(r, n[h + 1], i[g]), g++, h--;
|
|
6038
6083
|
else if (d[u] === l[p])
|
|
6039
|
-
n[p] =
|
|
6040
|
-
else if (v === void 0 && (v =
|
|
6084
|
+
n[p] = W(i[u], c[p]), ho(r, i[g], i[u]), u--, p++;
|
|
6085
|
+
else if (v === void 0 && (v = Qr(l, p, h), b = Qr(d, g, u)), v.has(d[g]))
|
|
6041
6086
|
if (v.has(d[u])) {
|
|
6042
6087
|
const m = b.get(l[p]), $ = m !== void 0 ? i[m] : null;
|
|
6043
6088
|
if ($ === null) {
|
|
6044
|
-
const y =
|
|
6045
|
-
|
|
6089
|
+
const y = ho(r, i[g]);
|
|
6090
|
+
W(y, c[p]), n[p] = y;
|
|
6046
6091
|
} else
|
|
6047
|
-
n[p] =
|
|
6092
|
+
n[p] = W($, c[p]), ho(r, i[g], $), i[m] = null;
|
|
6048
6093
|
p++;
|
|
6049
6094
|
} else
|
|
6050
|
-
|
|
6095
|
+
cr(i[u]), u--;
|
|
6051
6096
|
else
|
|
6052
|
-
|
|
6097
|
+
cr(i[g]), g++;
|
|
6053
6098
|
for (; p <= h; ) {
|
|
6054
|
-
const m =
|
|
6055
|
-
|
|
6099
|
+
const m = ho(r, n[h + 1]);
|
|
6100
|
+
W(m, c[p]), n[p++] = m;
|
|
6056
6101
|
}
|
|
6057
6102
|
for (; g <= u; ) {
|
|
6058
6103
|
const m = i[g++];
|
|
6059
|
-
m !== null &&
|
|
6104
|
+
m !== null && cr(m);
|
|
6060
6105
|
}
|
|
6061
|
-
return this.ht = l,
|
|
6106
|
+
return this.ht = l, Yt(r, n), N;
|
|
6062
6107
|
}
|
|
6063
6108
|
});
|
|
6064
|
-
class
|
|
6109
|
+
class hr extends k {
|
|
6065
6110
|
constructor() {
|
|
6066
6111
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
6067
6112
|
}
|
|
@@ -6135,13 +6180,13 @@ class gr extends k {
|
|
|
6135
6180
|
}
|
|
6136
6181
|
render() {
|
|
6137
6182
|
return s`
|
|
6138
|
-
<aside class="${
|
|
6139
|
-
<div class="${
|
|
6140
|
-
${
|
|
6183
|
+
<aside class="${ar.container}">
|
|
6184
|
+
<div class="${ar.toaster}" id="w-toast-container-list">
|
|
6185
|
+
${Se(
|
|
6141
6186
|
this._toastsArray,
|
|
6142
6187
|
(o) => o.id,
|
|
6143
6188
|
(o) => s` <w-toast
|
|
6144
|
-
class="${
|
|
6189
|
+
class="${ar.content}"
|
|
6145
6190
|
id="${o.id}"
|
|
6146
6191
|
type="${o.type}"
|
|
6147
6192
|
text="${o.text}"
|
|
@@ -6155,11 +6200,11 @@ class gr extends k {
|
|
|
6155
6200
|
`;
|
|
6156
6201
|
}
|
|
6157
6202
|
}
|
|
6158
|
-
w(
|
|
6203
|
+
w(hr, "styles", [
|
|
6159
6204
|
q`
|
|
6160
6205
|
/* layer: preflights */
|
|
6161
6206
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
6162
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
6207
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
6163
6208
|
/* layer: shortcuts */
|
|
6164
6209
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
6165
6210
|
@media (min-width: 480px){
|
|
@@ -6799,12 +6844,12 @@ w(gr, "styles", [
|
|
|
6799
6844
|
display: block;
|
|
6800
6845
|
}
|
|
6801
6846
|
`
|
|
6802
|
-
]), w(
|
|
6847
|
+
]), w(hr, "properties", {
|
|
6803
6848
|
_toasts: { state: !0 }
|
|
6804
6849
|
});
|
|
6805
|
-
customElements.get("w-toast-container") || customElements.define("w-toast-container",
|
|
6806
|
-
function
|
|
6807
|
-
if (!
|
|
6850
|
+
customElements.get("w-toast-container") || customElements.define("w-toast-container", hr);
|
|
6851
|
+
function ba(r, o) {
|
|
6852
|
+
if (!ko)
|
|
6808
6853
|
return;
|
|
6809
6854
|
const e = customElements.get("w-toast-container").init(), t = {
|
|
6810
6855
|
id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
|
|
@@ -6815,25 +6860,25 @@ function ta(r, o) {
|
|
|
6815
6860
|
};
|
|
6816
6861
|
return e.set(t), t;
|
|
6817
6862
|
}
|
|
6818
|
-
function
|
|
6819
|
-
return
|
|
6863
|
+
function ga(r) {
|
|
6864
|
+
return ko ? customElements.get("w-toast-container").init().del(r) : void 0;
|
|
6820
6865
|
}
|
|
6821
|
-
function
|
|
6822
|
-
if (!
|
|
6866
|
+
function sa(r, o) {
|
|
6867
|
+
if (!ko)
|
|
6823
6868
|
return;
|
|
6824
6869
|
const e = customElements.get("w-toast-container").init();
|
|
6825
6870
|
return e.set({ ...e.get(r), ...o }), e.get(r);
|
|
6826
6871
|
}
|
|
6827
|
-
class
|
|
6872
|
+
class wr extends k {
|
|
6828
6873
|
constructor() {
|
|
6829
|
-
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url =
|
|
6874
|
+
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = ko ? window.location.href : "";
|
|
6830
6875
|
}
|
|
6831
6876
|
async connectedCallback() {
|
|
6832
6877
|
if (super.connectedCallback(), !this.api) {
|
|
6833
6878
|
console.error('Broadcast "api" attribute invalid or undefined');
|
|
6834
6879
|
return;
|
|
6835
6880
|
}
|
|
6836
|
-
|
|
6881
|
+
ko && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
|
|
6837
6882
|
}
|
|
6838
6883
|
async _fetchMessage() {
|
|
6839
6884
|
const o = `${this.api}?path=${this.url}`;
|
|
@@ -6851,7 +6896,7 @@ class sr extends k {
|
|
|
6851
6896
|
const o = this._messages.filter((e) => !this._hiddenMessageIds.includes(e.id));
|
|
6852
6897
|
return s`
|
|
6853
6898
|
<aside class=${`${o.length === 0 ? "hidden" : "mb-16"}`}>
|
|
6854
|
-
${
|
|
6899
|
+
${Se(
|
|
6855
6900
|
o,
|
|
6856
6901
|
({ id: e }) => `broadcast-${e}`,
|
|
6857
6902
|
({ id: e, message: t }) => s`<w-toast
|
|
@@ -6867,7 +6912,7 @@ class sr extends k {
|
|
|
6867
6912
|
`;
|
|
6868
6913
|
}
|
|
6869
6914
|
}
|
|
6870
|
-
w(
|
|
6915
|
+
w(wr, "properties", {
|
|
6871
6916
|
_messages: {
|
|
6872
6917
|
state: !0,
|
|
6873
6918
|
hasChanged(o, e) {
|
|
@@ -6884,10 +6929,10 @@ w(sr, "properties", {
|
|
|
6884
6929
|
interval: { type: Number, attribute: !0, reflect: !0 },
|
|
6885
6930
|
url: { type: String, attribute: !0, reflect: !0 },
|
|
6886
6931
|
api: { type: String, attribute: !0, reflect: !0 }
|
|
6887
|
-
}), w(
|
|
6932
|
+
}), w(wr, "styles", q`
|
|
6888
6933
|
/* layer: preflights */
|
|
6889
6934
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
6890
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
6935
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
6891
6936
|
/* layer: shortcuts */
|
|
6892
6937
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
6893
6938
|
@media (min-width: 480px){
|
|
@@ -7524,24 +7569,24 @@ w(sr, "properties", {
|
|
|
7524
7569
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
7525
7570
|
}
|
|
7526
7571
|
`);
|
|
7527
|
-
customElements.get("w-broadcast") || customElements.define("w-broadcast",
|
|
7528
|
-
function
|
|
7572
|
+
customElements.get("w-broadcast") || customElements.define("w-broadcast", wr);
|
|
7573
|
+
function qo(r) {
|
|
7529
7574
|
return r.split("-")[0];
|
|
7530
7575
|
}
|
|
7531
|
-
function
|
|
7576
|
+
function Wo(r) {
|
|
7532
7577
|
return r.split("-")[1];
|
|
7533
7578
|
}
|
|
7534
|
-
function
|
|
7535
|
-
return ["top", "bottom"].includes(
|
|
7579
|
+
function Xo(r) {
|
|
7580
|
+
return ["top", "bottom"].includes(qo(r)) ? "x" : "y";
|
|
7536
7581
|
}
|
|
7537
|
-
function
|
|
7582
|
+
function Sr(r) {
|
|
7538
7583
|
return r === "y" ? "height" : "width";
|
|
7539
7584
|
}
|
|
7540
|
-
function
|
|
7585
|
+
function oe(r, o, e) {
|
|
7541
7586
|
let { reference: t, floating: a } = r;
|
|
7542
|
-
const i = t.x + t.width / 2 - a.width / 2, c = t.y + t.height / 2 - a.height / 2, l =
|
|
7587
|
+
const i = t.x + t.width / 2 - a.width / 2, c = t.y + t.height / 2 - a.height / 2, l = Xo(o), d = Sr(l), n = t[d] / 2 - a[d] / 2, v = l === "x";
|
|
7543
7588
|
let b;
|
|
7544
|
-
switch (
|
|
7589
|
+
switch (qo(o)) {
|
|
7545
7590
|
case "top":
|
|
7546
7591
|
b = { x: i, y: t.y - a.height };
|
|
7547
7592
|
break;
|
|
@@ -7557,7 +7602,7 @@ function Gr(r, o, e) {
|
|
|
7557
7602
|
default:
|
|
7558
7603
|
b = { x: t.x, y: t.y };
|
|
7559
7604
|
}
|
|
7560
|
-
switch (
|
|
7605
|
+
switch (Wo(o)) {
|
|
7561
7606
|
case "start":
|
|
7562
7607
|
b[l] -= n * (e && v ? -1 : 1);
|
|
7563
7608
|
break;
|
|
@@ -7566,268 +7611,268 @@ function Gr(r, o, e) {
|
|
|
7566
7611
|
}
|
|
7567
7612
|
return b;
|
|
7568
7613
|
}
|
|
7569
|
-
const
|
|
7614
|
+
const Zt = async (r, o, e) => {
|
|
7570
7615
|
const { placement: t = "bottom", strategy: a = "absolute", middleware: i = [], platform: c } = e, l = await (c.isRTL == null ? void 0 : c.isRTL(o));
|
|
7571
|
-
let d = await c.getElementRects({ reference: r, floating: o, strategy: a }), { x: n, y: v } =
|
|
7616
|
+
let d = await c.getElementRects({ reference: r, floating: o, strategy: a }), { x: n, y: v } = oe(d, t, l), b = t, g = {}, u = 0;
|
|
7572
7617
|
for (let p = 0; p < i.length; p++) {
|
|
7573
7618
|
const { name: h, fn: m } = i[p], { x: $, y, data: X, reset: z } = await m({ x: n, y: v, initialPlacement: t, placement: b, strategy: a, middlewareData: g, rects: d, platform: c, elements: { reference: r, floating: o } });
|
|
7574
|
-
n = $ ?? n, v = y ?? v, g = { ...g, [h]: { ...g[h], ...X } }, z && u <= 50 && (u++, typeof z == "object" && (z.placement && (b = z.placement), z.rects && (d = z.rects === !0 ? await c.getElementRects({ reference: r, floating: o, strategy: a }) : z.rects), { x: n, y: v } =
|
|
7619
|
+
n = $ ?? n, v = y ?? v, g = { ...g, [h]: { ...g[h], ...X } }, z && u <= 50 && (u++, typeof z == "object" && (z.placement && (b = z.placement), z.rects && (d = z.rects === !0 ? await c.getElementRects({ reference: r, floating: o, strategy: a }) : z.rects), { x: n, y: v } = oe(d, b, l)), p = -1);
|
|
7575
7620
|
}
|
|
7576
7621
|
return { x: n, y: v, placement: b, strategy: a, middlewareData: g };
|
|
7577
7622
|
};
|
|
7578
|
-
function
|
|
7623
|
+
function Ee(r) {
|
|
7579
7624
|
return typeof r != "number" ? function(o) {
|
|
7580
7625
|
return { top: 0, right: 0, bottom: 0, left: 0, ...o };
|
|
7581
7626
|
}(r) : { top: r, right: r, bottom: r, left: r };
|
|
7582
7627
|
}
|
|
7583
|
-
function
|
|
7628
|
+
function Po(r) {
|
|
7584
7629
|
return { ...r, top: r.y, left: r.x, right: r.x + r.width, bottom: r.y + r.height };
|
|
7585
7630
|
}
|
|
7586
|
-
async function
|
|
7631
|
+
async function Me(r, o) {
|
|
7587
7632
|
var e;
|
|
7588
7633
|
o === void 0 && (o = {});
|
|
7589
|
-
const { x: t, y: a, platform: i, rects: c, elements: l, strategy: d } = r, { boundary: n = "clippingAncestors", rootBoundary: v = "viewport", elementContext: b = "floating", altBoundary: g = !1, padding: u = 0 } = o, p =
|
|
7634
|
+
const { x: t, y: a, platform: i, rects: c, elements: l, strategy: d } = r, { boundary: n = "clippingAncestors", rootBoundary: v = "viewport", elementContext: b = "floating", altBoundary: g = !1, padding: u = 0 } = o, p = Ee(u), h = l[g ? b === "floating" ? "reference" : "floating" : b], m = Po(await i.getClippingRect({ element: (e = await (i.isElement == null ? void 0 : i.isElement(h))) == null || e ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)), boundary: n, rootBoundary: v, strategy: d })), $ = Po(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: b === "floating" ? { ...c.floating, x: t, y: a } : c.reference, offsetParent: await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), strategy: d }) : c[b]);
|
|
7590
7635
|
return { top: m.top - $.top + p.top, bottom: $.bottom - m.bottom + p.bottom, left: m.left - $.left + p.left, right: $.right - m.right + p.right };
|
|
7591
7636
|
}
|
|
7592
|
-
const
|
|
7593
|
-
function
|
|
7594
|
-
return
|
|
7637
|
+
const At = Math.min, Ct = Math.max;
|
|
7638
|
+
function mr(r, o, e) {
|
|
7639
|
+
return Ct(r, At(o, e));
|
|
7595
7640
|
}
|
|
7596
|
-
const
|
|
7641
|
+
const St = (r) => ({ name: "arrow", options: r, async fn(o) {
|
|
7597
7642
|
const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: i, placement: c, rects: l, platform: d } = o;
|
|
7598
7643
|
if (e == null)
|
|
7599
7644
|
return {};
|
|
7600
|
-
const n =
|
|
7645
|
+
const n = Ee(t), v = { x: a, y: i }, b = Xo(c), g = Wo(c), u = Sr(b), p = await d.getDimensions(e), h = b === "y" ? "top" : "left", m = b === "y" ? "bottom" : "right", $ = l.reference[u] + l.reference[b] - v[b] - l.floating[u], y = v[b] - l.reference[b], X = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(e));
|
|
7601
7646
|
let z = X ? b === "y" ? X.clientHeight || 0 : X.clientWidth || 0 : 0;
|
|
7602
7647
|
z === 0 && (z = l.floating[u]);
|
|
7603
|
-
const
|
|
7604
|
-
return { [b]: v[b] - (
|
|
7605
|
-
} }),
|
|
7606
|
-
function
|
|
7607
|
-
return r.replace(/left|right|bottom|top/g, (o) =>
|
|
7648
|
+
const jo = $ / 2 - y / 2, Q = n[h], so = z - p[u] - n[m], _ = z / 2 - p[u] / 2 + jo, A = mr(Q, _, so), oo = (g === "start" ? n[h] : n[m]) > 0 && _ !== A && l.reference[u] <= l.floating[u];
|
|
7649
|
+
return { [b]: v[b] - (oo ? _ < Q ? Q - _ : so - _ : 0), data: { [b]: A, centerOffset: _ - A } };
|
|
7650
|
+
} }), Et = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
7651
|
+
function No(r) {
|
|
7652
|
+
return r.replace(/left|right|bottom|top/g, (o) => Et[o]);
|
|
7608
7653
|
}
|
|
7609
|
-
function
|
|
7654
|
+
function Mt(r, o, e) {
|
|
7610
7655
|
e === void 0 && (e = !1);
|
|
7611
|
-
const t =
|
|
7656
|
+
const t = Wo(r), a = Xo(r), i = Sr(a);
|
|
7612
7657
|
let c = a === "x" ? t === (e ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
|
|
7613
|
-
return o.reference[i] > o.floating[i] && (c =
|
|
7658
|
+
return o.reference[i] > o.floating[i] && (c = No(c)), { main: c, cross: No(c) };
|
|
7614
7659
|
}
|
|
7615
|
-
const
|
|
7616
|
-
function
|
|
7617
|
-
return r.replace(/start|end/g, (o) =>
|
|
7660
|
+
const Lt = { start: "end", end: "start" };
|
|
7661
|
+
function re(r) {
|
|
7662
|
+
return r.replace(/start|end/g, (o) => Lt[o]);
|
|
7618
7663
|
}
|
|
7619
|
-
const
|
|
7620
|
-
|
|
7621
|
-
const
|
|
7664
|
+
const Tt = ["top", "right", "bottom", "left"];
|
|
7665
|
+
Tt.reduce((r, o) => r.concat(o, o + "-start", o + "-end"), []);
|
|
7666
|
+
const Rt = function(r) {
|
|
7622
7667
|
return r === void 0 && (r = {}), { name: "flip", options: r, async fn(o) {
|
|
7623
7668
|
var e;
|
|
7624
|
-
const { placement: t, middlewareData: a, rects: i, initialPlacement: c, platform: l, elements: d } = o, { mainAxis: n = !0, crossAxis: v = !0, fallbackPlacements: b, fallbackStrategy: g = "bestFit", flipAlignment: u = !0, ...p } = r, h =
|
|
7625
|
-
const A =
|
|
7626
|
-
return [
|
|
7627
|
-
}(c)), $ = [c, ...m], y = await
|
|
7669
|
+
const { placement: t, middlewareData: a, rects: i, initialPlacement: c, platform: l, elements: d } = o, { mainAxis: n = !0, crossAxis: v = !0, fallbackPlacements: b, fallbackStrategy: g = "bestFit", flipAlignment: u = !0, ...p } = r, h = qo(t), m = b || (h === c || !u ? [No(c)] : function(_) {
|
|
7670
|
+
const A = No(_);
|
|
7671
|
+
return [re(_), A, re(A)];
|
|
7672
|
+
}(c)), $ = [c, ...m], y = await Me(o, p), X = [];
|
|
7628
7673
|
let z = ((e = a.flip) == null ? void 0 : e.overflows) || [];
|
|
7629
7674
|
if (n && X.push(y[h]), v) {
|
|
7630
|
-
const { main: _, cross: A } =
|
|
7675
|
+
const { main: _, cross: A } = Mt(t, i, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
7631
7676
|
X.push(y[_], y[A]);
|
|
7632
7677
|
}
|
|
7633
7678
|
if (z = [...z, { placement: t, overflows: X }], !X.every((_) => _ <= 0)) {
|
|
7634
|
-
var
|
|
7635
|
-
const _ = ((
|
|
7679
|
+
var jo, Q;
|
|
7680
|
+
const _ = ((jo = (Q = a.flip) == null ? void 0 : Q.index) != null ? jo : 0) + 1, A = $[_];
|
|
7636
7681
|
if (A)
|
|
7637
7682
|
return { data: { index: _, overflows: z }, reset: { placement: A } };
|
|
7638
|
-
let
|
|
7683
|
+
let oo = "bottom";
|
|
7639
7684
|
switch (g) {
|
|
7640
7685
|
case "bestFit": {
|
|
7641
|
-
var
|
|
7642
|
-
const
|
|
7643
|
-
|
|
7686
|
+
var so;
|
|
7687
|
+
const Mr = (so = z.map((Zo) => [Zo, Zo.overflows.filter((uo) => uo > 0).reduce((uo, He) => uo + He, 0)]).sort((Zo, uo) => Zo[1] - uo[1])[0]) == null ? void 0 : so[0].placement;
|
|
7688
|
+
Mr && (oo = Mr);
|
|
7644
7689
|
break;
|
|
7645
7690
|
}
|
|
7646
7691
|
case "initialPlacement":
|
|
7647
|
-
|
|
7692
|
+
oo = c;
|
|
7648
7693
|
}
|
|
7649
|
-
if (t !==
|
|
7650
|
-
return { reset: { placement:
|
|
7694
|
+
if (t !== oo)
|
|
7695
|
+
return { reset: { placement: oo } };
|
|
7651
7696
|
}
|
|
7652
7697
|
return {};
|
|
7653
7698
|
} };
|
|
7654
|
-
},
|
|
7699
|
+
}, Bt = function(r) {
|
|
7655
7700
|
return r === void 0 && (r = 0), { name: "offset", options: r, async fn(o) {
|
|
7656
7701
|
const { x: e, y: t } = o, a = await async function(i, c) {
|
|
7657
|
-
const { placement: l, platform: d, elements: n } = i, v = await (d.isRTL == null ? void 0 : d.isRTL(n.floating)), b =
|
|
7702
|
+
const { placement: l, platform: d, elements: n } = i, v = await (d.isRTL == null ? void 0 : d.isRTL(n.floating)), b = qo(l), g = Wo(l), u = Xo(l) === "x", p = ["left", "top"].includes(b) ? -1 : 1, h = v && u ? -1 : 1, m = typeof c == "function" ? c(i) : c;
|
|
7658
7703
|
let { mainAxis: $, crossAxis: y, alignmentAxis: X } = typeof m == "number" ? { mainAxis: m, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...m };
|
|
7659
7704
|
return g && typeof X == "number" && (y = g === "end" ? -1 * X : X), u ? { x: y * h, y: $ * p } : { x: $ * p, y: y * h };
|
|
7660
7705
|
}(o, r);
|
|
7661
7706
|
return { x: e + a.x, y: t + a.y, data: a };
|
|
7662
7707
|
} };
|
|
7663
7708
|
};
|
|
7664
|
-
function
|
|
7709
|
+
function Pt(r) {
|
|
7665
7710
|
return r === "x" ? "y" : "x";
|
|
7666
7711
|
}
|
|
7667
|
-
const
|
|
7712
|
+
const Nt = function(r) {
|
|
7668
7713
|
return r === void 0 && (r = {}), { name: "shift", options: r, async fn(o) {
|
|
7669
7714
|
const { x: e, y: t, placement: a } = o, { mainAxis: i = !0, crossAxis: c = !1, limiter: l = { fn: (m) => {
|
|
7670
7715
|
let { x: $, y } = m;
|
|
7671
7716
|
return { x: $, y };
|
|
7672
|
-
} }, ...d } = r, n = { x: e, y: t }, v = await
|
|
7717
|
+
} }, ...d } = r, n = { x: e, y: t }, v = await Me(o, d), b = Xo(qo(a)), g = Pt(b);
|
|
7673
7718
|
let u = n[b], p = n[g];
|
|
7674
7719
|
if (i) {
|
|
7675
7720
|
const m = b === "y" ? "bottom" : "right";
|
|
7676
|
-
u =
|
|
7721
|
+
u = mr(u + v[b === "y" ? "top" : "left"], u, u - v[m]);
|
|
7677
7722
|
}
|
|
7678
7723
|
if (c) {
|
|
7679
7724
|
const m = g === "y" ? "bottom" : "right";
|
|
7680
|
-
p =
|
|
7725
|
+
p = mr(p + v[g === "y" ? "top" : "left"], p, p - v[m]);
|
|
7681
7726
|
}
|
|
7682
7727
|
const h = l.fn({ ...o, [b]: u, [g]: p });
|
|
7683
7728
|
return { ...h, data: { x: h.x - e, y: h.y - t } };
|
|
7684
7729
|
} };
|
|
7685
7730
|
};
|
|
7686
|
-
function
|
|
7731
|
+
function Le(r) {
|
|
7687
7732
|
return r && r.document && r.location && r.alert && r.setInterval;
|
|
7688
7733
|
}
|
|
7689
|
-
function
|
|
7734
|
+
function I(r) {
|
|
7690
7735
|
if (r == null)
|
|
7691
7736
|
return window;
|
|
7692
|
-
if (!
|
|
7737
|
+
if (!Le(r)) {
|
|
7693
7738
|
const o = r.ownerDocument;
|
|
7694
7739
|
return o && o.defaultView || window;
|
|
7695
7740
|
}
|
|
7696
7741
|
return r;
|
|
7697
7742
|
}
|
|
7698
|
-
function
|
|
7699
|
-
return
|
|
7743
|
+
function Yo(r) {
|
|
7744
|
+
return I(r).getComputedStyle(r);
|
|
7700
7745
|
}
|
|
7701
|
-
function
|
|
7702
|
-
return
|
|
7746
|
+
function P(r) {
|
|
7747
|
+
return Le(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
|
|
7703
7748
|
}
|
|
7704
|
-
function
|
|
7749
|
+
function Te() {
|
|
7705
7750
|
const r = navigator.userAgentData;
|
|
7706
7751
|
return r != null && r.brands ? r.brands.map((o) => o.brand + "/" + o.version).join(" ") : navigator.userAgent;
|
|
7707
7752
|
}
|
|
7708
|
-
function
|
|
7709
|
-
return r instanceof
|
|
7753
|
+
function L(r) {
|
|
7754
|
+
return r instanceof I(r).HTMLElement;
|
|
7710
7755
|
}
|
|
7711
|
-
function
|
|
7712
|
-
return r instanceof
|
|
7756
|
+
function bo(r) {
|
|
7757
|
+
return r instanceof I(r).Element;
|
|
7713
7758
|
}
|
|
7714
|
-
function
|
|
7715
|
-
return typeof ShadowRoot > "u" ? !1 : r instanceof
|
|
7759
|
+
function Er(r) {
|
|
7760
|
+
return typeof ShadowRoot > "u" ? !1 : r instanceof I(r).ShadowRoot || r instanceof ShadowRoot;
|
|
7716
7761
|
}
|
|
7717
|
-
function
|
|
7718
|
-
const { overflow: o, overflowX: e, overflowY: t } =
|
|
7762
|
+
function Go(r) {
|
|
7763
|
+
const { overflow: o, overflowX: e, overflowY: t } = Yo(r);
|
|
7719
7764
|
return /auto|scroll|overlay|hidden/.test(o + t + e);
|
|
7720
7765
|
}
|
|
7721
|
-
function
|
|
7722
|
-
return ["table", "td", "th"].includes(
|
|
7766
|
+
function It(r) {
|
|
7767
|
+
return ["table", "td", "th"].includes(P(r));
|
|
7723
7768
|
}
|
|
7724
|
-
function
|
|
7725
|
-
const o = /firefox/i.test(
|
|
7769
|
+
function ee(r) {
|
|
7770
|
+
const o = /firefox/i.test(Te()), e = Yo(r);
|
|
7726
7771
|
return e.transform !== "none" || e.perspective !== "none" || e.contain === "paint" || ["transform", "perspective"].includes(e.willChange) || o && e.willChange === "filter" || o && !!e.filter && e.filter !== "none";
|
|
7727
7772
|
}
|
|
7728
|
-
function
|
|
7729
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
7773
|
+
function Re() {
|
|
7774
|
+
return !/^((?!chrome|android).)*safari/i.test(Te());
|
|
7730
7775
|
}
|
|
7731
|
-
const
|
|
7732
|
-
function
|
|
7776
|
+
const te = Math.min, wo = Math.max, Io = Math.round;
|
|
7777
|
+
function J(r, o, e) {
|
|
7733
7778
|
var t, a, i, c;
|
|
7734
7779
|
o === void 0 && (o = !1), e === void 0 && (e = !1);
|
|
7735
7780
|
const l = r.getBoundingClientRect();
|
|
7736
7781
|
let d = 1, n = 1;
|
|
7737
|
-
o &&
|
|
7738
|
-
const v =
|
|
7782
|
+
o && L(r) && (d = r.offsetWidth > 0 && Io(l.width) / r.offsetWidth || 1, n = r.offsetHeight > 0 && Io(l.height) / r.offsetHeight || 1);
|
|
7783
|
+
const v = bo(r) ? I(r) : window, b = !Re() && e, g = (l.left + (b && (t = (a = v.visualViewport) == null ? void 0 : a.offsetLeft) != null ? t : 0)) / d, u = (l.top + (b && (i = (c = v.visualViewport) == null ? void 0 : c.offsetTop) != null ? i : 0)) / n, p = l.width / d, h = l.height / n;
|
|
7739
7784
|
return { width: p, height: h, top: u, right: g + p, bottom: u + h, left: g, x: g, y: u };
|
|
7740
7785
|
}
|
|
7741
|
-
function
|
|
7742
|
-
return (o = r, (o instanceof
|
|
7786
|
+
function H(r) {
|
|
7787
|
+
return (o = r, (o instanceof I(o).Node ? r.ownerDocument : r.document) || window.document).documentElement;
|
|
7743
7788
|
var o;
|
|
7744
7789
|
}
|
|
7745
|
-
function
|
|
7746
|
-
return
|
|
7790
|
+
function Jo(r) {
|
|
7791
|
+
return bo(r) ? { scrollLeft: r.scrollLeft, scrollTop: r.scrollTop } : { scrollLeft: r.pageXOffset, scrollTop: r.pageYOffset };
|
|
7747
7792
|
}
|
|
7748
|
-
function
|
|
7749
|
-
return
|
|
7793
|
+
function Be(r) {
|
|
7794
|
+
return J(H(r)).left + Jo(r).scrollLeft;
|
|
7750
7795
|
}
|
|
7751
|
-
function
|
|
7752
|
-
const t =
|
|
7753
|
-
const n =
|
|
7754
|
-
return
|
|
7796
|
+
function Ot(r, o, e) {
|
|
7797
|
+
const t = L(o), a = H(o), i = J(r, t && function(d) {
|
|
7798
|
+
const n = J(d);
|
|
7799
|
+
return Io(n.width) !== d.offsetWidth || Io(n.height) !== d.offsetHeight;
|
|
7755
7800
|
}(o), e === "fixed");
|
|
7756
7801
|
let c = { scrollLeft: 0, scrollTop: 0 };
|
|
7757
7802
|
const l = { x: 0, y: 0 };
|
|
7758
7803
|
if (t || !t && e !== "fixed")
|
|
7759
|
-
if ((
|
|
7760
|
-
const d =
|
|
7804
|
+
if ((P(o) !== "body" || Go(a)) && (c = Jo(o)), L(o)) {
|
|
7805
|
+
const d = J(o, !0);
|
|
7761
7806
|
l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
|
|
7762
7807
|
} else
|
|
7763
|
-
a && (l.x =
|
|
7808
|
+
a && (l.x = Be(a));
|
|
7764
7809
|
return { x: i.left + c.scrollLeft - l.x, y: i.top + c.scrollTop - l.y, width: i.width, height: i.height };
|
|
7765
7810
|
}
|
|
7766
|
-
function
|
|
7767
|
-
return
|
|
7811
|
+
function Pe(r) {
|
|
7812
|
+
return P(r) === "html" ? r : r.assignedSlot || r.parentNode || (Er(r) ? r.host : null) || H(r);
|
|
7768
7813
|
}
|
|
7769
|
-
function
|
|
7770
|
-
return
|
|
7814
|
+
function ae(r) {
|
|
7815
|
+
return L(r) && getComputedStyle(r).position !== "fixed" ? r.offsetParent : null;
|
|
7771
7816
|
}
|
|
7772
|
-
function
|
|
7773
|
-
const o =
|
|
7774
|
-
let e =
|
|
7775
|
-
for (; e &&
|
|
7776
|
-
e =
|
|
7777
|
-
return e && (
|
|
7778
|
-
let a =
|
|
7779
|
-
for (
|
|
7780
|
-
if (
|
|
7817
|
+
function xr(r) {
|
|
7818
|
+
const o = I(r);
|
|
7819
|
+
let e = ae(r);
|
|
7820
|
+
for (; e && It(e) && getComputedStyle(e).position === "static"; )
|
|
7821
|
+
e = ae(e);
|
|
7822
|
+
return e && (P(e) === "html" || P(e) === "body" && getComputedStyle(e).position === "static" && !ee(e)) ? o : e || function(t) {
|
|
7823
|
+
let a = Pe(t);
|
|
7824
|
+
for (Er(a) && (a = a.host); L(a) && !["html", "body"].includes(P(a)); ) {
|
|
7825
|
+
if (ee(a))
|
|
7781
7826
|
return a;
|
|
7782
7827
|
a = a.parentNode;
|
|
7783
7828
|
}
|
|
7784
7829
|
return null;
|
|
7785
7830
|
}(r) || o;
|
|
7786
7831
|
}
|
|
7787
|
-
function
|
|
7788
|
-
if (
|
|
7832
|
+
function ie(r) {
|
|
7833
|
+
if (L(r))
|
|
7789
7834
|
return { width: r.offsetWidth, height: r.offsetHeight };
|
|
7790
|
-
const o =
|
|
7835
|
+
const o = J(r);
|
|
7791
7836
|
return { width: o.width, height: o.height };
|
|
7792
7837
|
}
|
|
7793
|
-
function
|
|
7794
|
-
const o =
|
|
7795
|
-
return ["html", "body", "#document"].includes(
|
|
7838
|
+
function Ne(r) {
|
|
7839
|
+
const o = Pe(r);
|
|
7840
|
+
return ["html", "body", "#document"].includes(P(o)) ? r.ownerDocument.body : L(o) && Go(o) ? o : Ne(o);
|
|
7796
7841
|
}
|
|
7797
|
-
function
|
|
7842
|
+
function Ie(r, o) {
|
|
7798
7843
|
var e;
|
|
7799
7844
|
o === void 0 && (o = []);
|
|
7800
|
-
const t =
|
|
7801
|
-
return a ? l : l.concat(
|
|
7845
|
+
const t = Ne(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), i = I(t), c = a ? [i].concat(i.visualViewport || [], Go(t) ? t : []) : t, l = o.concat(c);
|
|
7846
|
+
return a ? l : l.concat(Ie(c));
|
|
7802
7847
|
}
|
|
7803
|
-
function
|
|
7804
|
-
return o === "viewport" ?
|
|
7805
|
-
const i =
|
|
7848
|
+
function ce(r, o, e) {
|
|
7849
|
+
return o === "viewport" ? Po(function(t, a) {
|
|
7850
|
+
const i = I(t), c = H(t), l = i.visualViewport;
|
|
7806
7851
|
let d = c.clientWidth, n = c.clientHeight, v = 0, b = 0;
|
|
7807
7852
|
if (l) {
|
|
7808
7853
|
d = l.width, n = l.height;
|
|
7809
|
-
const g =
|
|
7854
|
+
const g = Re();
|
|
7810
7855
|
(g || !g && a === "fixed") && (v = l.offsetLeft, b = l.offsetTop);
|
|
7811
7856
|
}
|
|
7812
7857
|
return { width: d, height: n, x: v, y: b };
|
|
7813
|
-
}(r, e)) :
|
|
7814
|
-
const i =
|
|
7858
|
+
}(r, e)) : bo(o) ? function(t, a) {
|
|
7859
|
+
const i = J(t, !1, a === "fixed"), c = i.top + t.clientTop, l = i.left + t.clientLeft;
|
|
7815
7860
|
return { top: c, left: l, x: l, y: c, right: l + t.clientWidth, bottom: c + t.clientHeight, width: t.clientWidth, height: t.clientHeight };
|
|
7816
|
-
}(o, e) :
|
|
7861
|
+
}(o, e) : Po(function(t) {
|
|
7817
7862
|
var a;
|
|
7818
|
-
const i =
|
|
7819
|
-
let v = -c.scrollLeft +
|
|
7863
|
+
const i = H(t), c = Jo(t), l = (a = t.ownerDocument) == null ? void 0 : a.body, d = wo(i.scrollWidth, i.clientWidth, l ? l.scrollWidth : 0, l ? l.clientWidth : 0), n = wo(i.scrollHeight, i.clientHeight, l ? l.scrollHeight : 0, l ? l.clientHeight : 0);
|
|
7864
|
+
let v = -c.scrollLeft + Be(t);
|
|
7820
7865
|
const b = -c.scrollTop;
|
|
7821
|
-
return
|
|
7822
|
-
}(
|
|
7866
|
+
return Yo(l || i).direction === "rtl" && (v += wo(i.clientWidth, l ? l.clientWidth : 0) - d), { width: d, height: n, x: v, y: b };
|
|
7867
|
+
}(H(r)));
|
|
7823
7868
|
}
|
|
7824
|
-
function
|
|
7825
|
-
const o =
|
|
7826
|
-
return
|
|
7869
|
+
function Ht(r) {
|
|
7870
|
+
const o = Ie(r), e = ["absolute", "fixed"].includes(Yo(r).position) && L(r) ? xr(r) : r;
|
|
7871
|
+
return bo(e) ? o.filter((t) => bo(t) && function(a, i) {
|
|
7827
7872
|
const c = i.getRootNode == null ? void 0 : i.getRootNode();
|
|
7828
7873
|
if (a.contains(i))
|
|
7829
7874
|
return !0;
|
|
7830
|
-
if (c &&
|
|
7875
|
+
if (c && Er(c)) {
|
|
7831
7876
|
let l = i;
|
|
7832
7877
|
do {
|
|
7833
7878
|
if (l && a === l)
|
|
@@ -7836,68 +7881,68 @@ function Tt(r) {
|
|
|
7836
7881
|
} while (l);
|
|
7837
7882
|
}
|
|
7838
7883
|
return !1;
|
|
7839
|
-
}(t, e) &&
|
|
7884
|
+
}(t, e) && P(t) !== "body") : [];
|
|
7840
7885
|
}
|
|
7841
|
-
const
|
|
7886
|
+
const Dt = { getClippingRect: function(r) {
|
|
7842
7887
|
let { element: o, boundary: e, rootBoundary: t, strategy: a } = r;
|
|
7843
|
-
const i = [...e === "clippingAncestors" ?
|
|
7844
|
-
const v =
|
|
7845
|
-
return d.top =
|
|
7846
|
-
},
|
|
7888
|
+
const i = [...e === "clippingAncestors" ? Ht(o) : [].concat(e), t], c = i[0], l = i.reduce((d, n) => {
|
|
7889
|
+
const v = ce(o, n, a);
|
|
7890
|
+
return d.top = wo(v.top, d.top), d.right = te(v.right, d.right), d.bottom = te(v.bottom, d.bottom), d.left = wo(v.left, d.left), d;
|
|
7891
|
+
}, ce(o, c, a));
|
|
7847
7892
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
7848
7893
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(r) {
|
|
7849
7894
|
let { rect: o, offsetParent: e, strategy: t } = r;
|
|
7850
|
-
const a =
|
|
7895
|
+
const a = L(e), i = H(e);
|
|
7851
7896
|
if (e === i)
|
|
7852
7897
|
return o;
|
|
7853
7898
|
let c = { scrollLeft: 0, scrollTop: 0 };
|
|
7854
7899
|
const l = { x: 0, y: 0 };
|
|
7855
|
-
if ((a || !a && t !== "fixed") && ((
|
|
7856
|
-
const d =
|
|
7900
|
+
if ((a || !a && t !== "fixed") && ((P(e) !== "body" || Go(i)) && (c = Jo(e)), L(e))) {
|
|
7901
|
+
const d = J(e, !0);
|
|
7857
7902
|
l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
|
|
7858
7903
|
}
|
|
7859
7904
|
return { ...o, x: o.x - c.scrollLeft + l.x, y: o.y - c.scrollTop + l.y };
|
|
7860
|
-
}, isElement:
|
|
7905
|
+
}, isElement: bo, getDimensions: ie, getOffsetParent: xr, getDocumentElement: H, getElementRects: (r) => {
|
|
7861
7906
|
let { reference: o, floating: e, strategy: t } = r;
|
|
7862
|
-
return { reference:
|
|
7863
|
-
}, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) =>
|
|
7864
|
-
[
|
|
7865
|
-
[
|
|
7866
|
-
[
|
|
7867
|
-
[
|
|
7868
|
-
},
|
|
7869
|
-
[
|
|
7870
|
-
[
|
|
7871
|
-
[
|
|
7872
|
-
[
|
|
7873
|
-
},
|
|
7874
|
-
[
|
|
7875
|
-
[
|
|
7876
|
-
[
|
|
7877
|
-
[
|
|
7878
|
-
},
|
|
7879
|
-
function
|
|
7907
|
+
return { reference: Ot(o, xr(e), t), floating: { ...ie(e), x: 0, y: 0 } };
|
|
7908
|
+
}, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) => Yo(r).direction === "rtl" }, Ut = (r, o, e) => Zt(r, o, { platform: Dt, ...e }), $o = "top", yo = "bottom", Oo = "left", Ho = "right", lr = {
|
|
7909
|
+
[$o]: yo,
|
|
7910
|
+
[yo]: $o,
|
|
7911
|
+
[Oo]: Ho,
|
|
7912
|
+
[Ho]: Oo
|
|
7913
|
+
}, Ft = {
|
|
7914
|
+
[$o]: "↑",
|
|
7915
|
+
[yo]: "↓",
|
|
7916
|
+
[Oo]: "←",
|
|
7917
|
+
[Ho]: "→"
|
|
7918
|
+
}, Vt = {
|
|
7919
|
+
[Oo]: -45,
|
|
7920
|
+
[$o]: 45,
|
|
7921
|
+
[Ho]: 135,
|
|
7922
|
+
[yo]: -135
|
|
7923
|
+
}, le = "calc(50% - 7px)", Wt = (r) => [$o, yo].includes(r);
|
|
7924
|
+
function Gt({ actualDirection: r, directionName: o, arrowEl: e }) {
|
|
7880
7925
|
if (!e)
|
|
7881
7926
|
return;
|
|
7882
7927
|
r = o;
|
|
7883
|
-
const t =
|
|
7884
|
-
e.style.left = t ?
|
|
7928
|
+
const t = Wt(o);
|
|
7929
|
+
e.style.left = t ? le : "", e.style.top = t ? "" : le;
|
|
7885
7930
|
}
|
|
7886
|
-
async function
|
|
7931
|
+
async function Jt(r) {
|
|
7887
7932
|
var a, i;
|
|
7888
7933
|
if (!r.isShowing)
|
|
7889
7934
|
return;
|
|
7890
7935
|
if (await ((a = r == null ? void 0 : r.waitForDOM) == null ? void 0 : a.call(r)), r.isCallout)
|
|
7891
|
-
return
|
|
7892
|
-
const o = await
|
|
7936
|
+
return Gt(r);
|
|
7937
|
+
const o = await Ut(r.targetEl, r.attentionEl, {
|
|
7893
7938
|
placement: r.directionName,
|
|
7894
7939
|
middleware: [
|
|
7895
7940
|
// Should we make this configurable, but have these as sane defaults?
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7941
|
+
Rt(),
|
|
7942
|
+
Bt(8),
|
|
7943
|
+
Nt({ padding: 16 }),
|
|
7899
7944
|
// @ts-ignore
|
|
7900
|
-
|
|
7945
|
+
St({ element: r.noArrow ? void 0 : r.arrowEl })
|
|
7901
7946
|
// FIXME
|
|
7902
7947
|
]
|
|
7903
7948
|
});
|
|
@@ -7909,16 +7954,16 @@ async function Ht(r) {
|
|
|
7909
7954
|
let { x: e, y: t } = o.middlewareData.arrow;
|
|
7910
7955
|
r.arrowEl && (r.arrowEl.style.left = e ? e + "px" : "", r.arrowEl.style.top = t ? t + "px" : "");
|
|
7911
7956
|
}
|
|
7912
|
-
class
|
|
7957
|
+
class fr extends _o(k) {
|
|
7913
7958
|
constructor() {
|
|
7914
7959
|
super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
|
|
7915
7960
|
}
|
|
7916
7961
|
connectedCallback() {
|
|
7917
|
-
if (super.connectedCallback(), !this.placement || !Object.keys(
|
|
7962
|
+
if (super.connectedCallback(), !this.placement || !Object.keys(lr).includes(this.placement))
|
|
7918
7963
|
throw new Error(
|
|
7919
7964
|
`Invalid "placement" attribute. Set its value to one of the following:
|
|
7920
7965
|
${JSON.stringify(
|
|
7921
|
-
Object.keys(
|
|
7966
|
+
Object.keys(lr)
|
|
7922
7967
|
)}`
|
|
7923
7968
|
);
|
|
7924
7969
|
setTimeout(() => this.requestUpdate(), 0);
|
|
@@ -7930,7 +7975,7 @@ ${JSON.stringify(
|
|
|
7930
7975
|
this.placement = o;
|
|
7931
7976
|
}
|
|
7932
7977
|
get _arrowDirection() {
|
|
7933
|
-
return
|
|
7978
|
+
return lr[this.placement];
|
|
7934
7979
|
}
|
|
7935
7980
|
updated() {
|
|
7936
7981
|
this.callout || this._attentionEl.style.setProperty("--attention-visibility", this.show ? "" : "hidden"), this.tooltip || this._attentionEl.style.setProperty("--attention-display", this.show ? "block" : "none"), this.attentionState = {
|
|
@@ -7942,11 +7987,11 @@ ${JSON.stringify(
|
|
|
7942
7987
|
attentionEl: this._attentionEl,
|
|
7943
7988
|
targetEl: this._targetEl,
|
|
7944
7989
|
noArrow: this.noArrow
|
|
7945
|
-
},
|
|
7990
|
+
}, Jt(this.attentionState);
|
|
7946
7991
|
}
|
|
7947
7992
|
setAriaLabels() {
|
|
7948
7993
|
if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
|
|
7949
|
-
const o = this._messageEl.id || (this._messageEl.id =
|
|
7994
|
+
const o = this._messageEl.id || (this._messageEl.id = ut());
|
|
7950
7995
|
this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", o);
|
|
7951
7996
|
}
|
|
7952
7997
|
}
|
|
@@ -7963,29 +8008,29 @@ ${JSON.stringify(
|
|
|
7963
8008
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
7964
8009
|
}
|
|
7965
8010
|
get _wrapperClasses() {
|
|
7966
|
-
return
|
|
7967
|
-
[
|
|
7968
|
-
[
|
|
7969
|
-
[
|
|
7970
|
-
[
|
|
8011
|
+
return Wr({
|
|
8012
|
+
[T.base]: !0,
|
|
8013
|
+
[T.tooltip]: this.tooltip,
|
|
8014
|
+
[T.callout]: this.callout,
|
|
8015
|
+
[T.popover]: this.popover
|
|
7971
8016
|
});
|
|
7972
8017
|
}
|
|
7973
8018
|
get _arrowClasses() {
|
|
7974
|
-
return
|
|
7975
|
-
[
|
|
7976
|
-
[
|
|
7977
|
-
[
|
|
7978
|
-
[
|
|
7979
|
-
[
|
|
8019
|
+
return Wr({
|
|
8020
|
+
[T.arrowBase]: !0,
|
|
8021
|
+
[T[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
|
|
8022
|
+
[T.arrowTooltip]: this.tooltip,
|
|
8023
|
+
[T.arrowCallout]: this.callout,
|
|
8024
|
+
[T.arrowPopover]: this.popover
|
|
7980
8025
|
});
|
|
7981
8026
|
}
|
|
7982
8027
|
get _arrowHtml() {
|
|
7983
8028
|
return this.noArrow ? "" : s`<div
|
|
7984
8029
|
id="arrow"
|
|
7985
8030
|
role="img"
|
|
7986
|
-
aria-label=${
|
|
8031
|
+
aria-label=${Ft[this._arrowDirection]}
|
|
7987
8032
|
class="${this._arrowClasses}"
|
|
7988
|
-
style="transform:rotate(${
|
|
8033
|
+
style="transform:rotate(${Vt[this._arrowDirection]}deg);
|
|
7989
8034
|
margin-${// border alignment is off by a fraction of a pixel, this fixes it
|
|
7990
8035
|
this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
7991
8036
|
/>`;
|
|
@@ -8014,7 +8059,7 @@ ${JSON.stringify(
|
|
|
8014
8059
|
`;
|
|
8015
8060
|
}
|
|
8016
8061
|
}
|
|
8017
|
-
w(
|
|
8062
|
+
w(fr, "properties", {
|
|
8018
8063
|
// Whether Attention element should be visible.
|
|
8019
8064
|
show: { type: Boolean, reflect: !0 },
|
|
8020
8065
|
// Placement according to the target element
|
|
@@ -8028,11 +8073,11 @@ w(pr, "properties", {
|
|
|
8028
8073
|
popover: { type: Boolean, reflect: !0 },
|
|
8029
8074
|
// Render Attention element without an arrow
|
|
8030
8075
|
noArrow: { type: Boolean, reflect: !0 }
|
|
8031
|
-
}), w(
|
|
8076
|
+
}), w(fr, "styles", [
|
|
8032
8077
|
q`
|
|
8033
8078
|
/* layer: preflights */
|
|
8034
8079
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
8035
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
8080
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
8036
8081
|
/* layer: shortcuts */
|
|
8037
8082
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
8038
8083
|
@media (min-width: 480px){
|
|
@@ -8680,31 +8725,31 @@ w(pr, "properties", {
|
|
|
8680
8725
|
}
|
|
8681
8726
|
`
|
|
8682
8727
|
]);
|
|
8683
|
-
customElements.get("w-attention") || customElements.define("w-attention",
|
|
8684
|
-
class
|
|
8728
|
+
customElements.get("w-attention") || customElements.define("w-attention", fr);
|
|
8729
|
+
class kr extends k {
|
|
8685
8730
|
constructor() {
|
|
8686
8731
|
super(), this.type = "text";
|
|
8687
8732
|
}
|
|
8688
8733
|
get _inputStyles() {
|
|
8689
8734
|
return Z({
|
|
8690
|
-
[
|
|
8691
|
-
[
|
|
8692
|
-
[
|
|
8693
|
-
[
|
|
8694
|
-
[
|
|
8695
|
-
[
|
|
8735
|
+
[V.default]: !0,
|
|
8736
|
+
[V.invalid]: this.invalid,
|
|
8737
|
+
[V.disabled]: this.disabled,
|
|
8738
|
+
[V.readOnly]: this.readOnly,
|
|
8739
|
+
[V.suffix]: this._hasSuffix,
|
|
8740
|
+
[V.prefix]: this._hasPrefix
|
|
8696
8741
|
});
|
|
8697
8742
|
}
|
|
8698
8743
|
get _helpTextStyles() {
|
|
8699
8744
|
return Z({
|
|
8700
|
-
[
|
|
8701
|
-
[
|
|
8745
|
+
[Bo.helpText]: !0,
|
|
8746
|
+
[Bo.helpTextInvalid]: this.invalid
|
|
8702
8747
|
});
|
|
8703
8748
|
}
|
|
8704
8749
|
get _labelStyles() {
|
|
8705
8750
|
return Z({
|
|
8706
|
-
[
|
|
8707
|
-
[
|
|
8751
|
+
[G.label]: !0,
|
|
8752
|
+
[G.labelInvalid]: this.invalid
|
|
8708
8753
|
});
|
|
8709
8754
|
}
|
|
8710
8755
|
get _label() {
|
|
@@ -8741,7 +8786,7 @@ class hr extends k {
|
|
|
8741
8786
|
render() {
|
|
8742
8787
|
return s`
|
|
8743
8788
|
${this._label}
|
|
8744
|
-
<div class="${
|
|
8789
|
+
<div class="${V.wrapper}">
|
|
8745
8790
|
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
8746
8791
|
<input
|
|
8747
8792
|
class="${this._inputStyles}"
|
|
@@ -8772,7 +8817,7 @@ class hr extends k {
|
|
|
8772
8817
|
`;
|
|
8773
8818
|
}
|
|
8774
8819
|
}
|
|
8775
|
-
w(
|
|
8820
|
+
w(kr, "properties", {
|
|
8776
8821
|
disabled: { type: Boolean },
|
|
8777
8822
|
invalid: { type: Boolean },
|
|
8778
8823
|
id: { type: String },
|
|
@@ -8796,11 +8841,11 @@ w(hr, "properties", {
|
|
|
8796
8841
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
8797
8842
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
8798
8843
|
// https://stackoverflow.com/a/61631668
|
|
8799
|
-
w(
|
|
8844
|
+
w(kr, "styles", [
|
|
8800
8845
|
q`
|
|
8801
8846
|
/* layer: preflights */
|
|
8802
8847
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
8803
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
8848
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
8804
8849
|
/* layer: shortcuts */
|
|
8805
8850
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
8806
8851
|
@media (min-width: 480px){
|
|
@@ -9444,14 +9489,14 @@ w(hr, "styles", [
|
|
|
9444
9489
|
}
|
|
9445
9490
|
`
|
|
9446
9491
|
]);
|
|
9447
|
-
customElements.get("w-textfield") || customElements.define("w-textfield",
|
|
9448
|
-
class
|
|
9492
|
+
customElements.get("w-textfield") || customElements.define("w-textfield", kr);
|
|
9493
|
+
class de extends k {
|
|
9449
9494
|
render() {
|
|
9450
9495
|
return s`<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>`;
|
|
9451
9496
|
}
|
|
9452
9497
|
}
|
|
9453
|
-
customElements.get("f-icon-chevron-down16",
|
|
9454
|
-
class
|
|
9498
|
+
customElements.get("f-icon-chevron-down16", de) || customElements.define("f-icon-chevron-down16", de);
|
|
9499
|
+
class $r extends _o(k) {
|
|
9455
9500
|
constructor() {
|
|
9456
9501
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
9457
9502
|
}
|
|
@@ -9462,7 +9507,7 @@ class wr extends $o(k) {
|
|
|
9462
9507
|
return s`<div
|
|
9463
9508
|
class=${Z({
|
|
9464
9509
|
[this.contentClass || ""]: !0,
|
|
9465
|
-
[
|
|
9510
|
+
[B.box]: this.box,
|
|
9466
9511
|
[Y.paddingTop]: this._hasTitle && this.box
|
|
9467
9512
|
})}
|
|
9468
9513
|
>
|
|
@@ -9517,7 +9562,7 @@ class wr extends $o(k) {
|
|
|
9517
9562
|
</div>`;
|
|
9518
9563
|
}
|
|
9519
9564
|
}
|
|
9520
|
-
w(
|
|
9565
|
+
w($r, "properties", {
|
|
9521
9566
|
expanded: { type: Boolean, reflect: !0 },
|
|
9522
9567
|
title: { type: String },
|
|
9523
9568
|
info: { type: Boolean },
|
|
@@ -9533,11 +9578,11 @@ w(wr, "properties", {
|
|
|
9533
9578
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
9534
9579
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
9535
9580
|
// https://stackoverflow.com/a/61631668
|
|
9536
|
-
w(
|
|
9581
|
+
w($r, "styles", [
|
|
9537
9582
|
q`
|
|
9538
9583
|
/* layer: preflights */
|
|
9539
9584
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
9540
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
9585
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
9541
9586
|
/* layer: shortcuts */
|
|
9542
9587
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
9543
9588
|
@media (min-width: 480px){
|
|
@@ -10180,8 +10225,8 @@ w(wr, "styles", [
|
|
|
10180
10225
|
}
|
|
10181
10226
|
`
|
|
10182
10227
|
]);
|
|
10183
|
-
customElements.get("w-expandable") || customElements.define("w-expandable",
|
|
10184
|
-
const
|
|
10228
|
+
customElements.get("w-expandable") || customElements.define("w-expandable", $r);
|
|
10229
|
+
const Kt = s`
|
|
10185
10230
|
<svg
|
|
10186
10231
|
role="img"
|
|
10187
10232
|
aria-label="X"
|
|
@@ -10198,7 +10243,7 @@ const Dt = s`
|
|
|
10198
10243
|
clipRule="evenodd"
|
|
10199
10244
|
/>
|
|
10200
10245
|
</svg>
|
|
10201
|
-
`,
|
|
10246
|
+
`, Qt = s`
|
|
10202
10247
|
<svg
|
|
10203
10248
|
role="img"
|
|
10204
10249
|
aria-label="Forstørrelsesglass"
|
|
@@ -10224,9 +10269,9 @@ const Dt = s`
|
|
|
10224
10269
|
</defs>
|
|
10225
10270
|
</svg>
|
|
10226
10271
|
`;
|
|
10227
|
-
class
|
|
10272
|
+
class yr extends k {
|
|
10228
10273
|
get _classBase() {
|
|
10229
|
-
return this.slot === "suffix" ?
|
|
10274
|
+
return this.slot === "suffix" ? et : tt;
|
|
10230
10275
|
}
|
|
10231
10276
|
get _classes() {
|
|
10232
10277
|
return Z({
|
|
@@ -10238,14 +10283,14 @@ class mr extends k {
|
|
|
10238
10283
|
get _searchButton() {
|
|
10239
10284
|
return s`
|
|
10240
10285
|
<button aria-label="${x(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
10241
|
-
${
|
|
10286
|
+
${Qt}
|
|
10242
10287
|
</button>
|
|
10243
10288
|
`;
|
|
10244
10289
|
}
|
|
10245
10290
|
get _clearButton() {
|
|
10246
10291
|
return s`
|
|
10247
10292
|
<button aria-label="${x(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
10248
|
-
${
|
|
10293
|
+
${Kt}
|
|
10249
10294
|
</button>
|
|
10250
10295
|
`;
|
|
10251
10296
|
}
|
|
@@ -10268,10 +10313,10 @@ class mr extends k {
|
|
|
10268
10313
|
return s`${this._markup}`;
|
|
10269
10314
|
}
|
|
10270
10315
|
}
|
|
10271
|
-
w(
|
|
10316
|
+
w(yr, "styles", q`
|
|
10272
10317
|
/* layer: preflights */
|
|
10273
10318
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
10274
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
10319
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
10275
10320
|
/* layer: shortcuts */
|
|
10276
10321
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
10277
10322
|
@media (min-width: 480px){
|
|
@@ -10906,17 +10951,17 @@ w(mr, "styles", q`
|
|
|
10906
10951
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
10907
10952
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
10908
10953
|
}
|
|
10909
|
-
`), w(
|
|
10954
|
+
`), w(yr, "properties", {
|
|
10910
10955
|
ariaLabel: { type: String, attribute: "aria-label" },
|
|
10911
10956
|
clear: { type: Boolean },
|
|
10912
10957
|
search: { type: Boolean },
|
|
10913
10958
|
label: { type: String }
|
|
10914
10959
|
});
|
|
10915
|
-
customElements.get("w-affix") || customElements.define("w-affix",
|
|
10916
|
-
const
|
|
10960
|
+
customElements.get("w-affix") || customElements.define("w-affix", yr);
|
|
10961
|
+
const Oe = q`
|
|
10917
10962
|
@import "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css";
|
|
10918
10963
|
`;
|
|
10919
|
-
class
|
|
10964
|
+
class zr extends k {
|
|
10920
10965
|
constructor() {
|
|
10921
10966
|
super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
|
|
10922
10967
|
}
|
|
@@ -10929,7 +10974,7 @@ class xr extends k {
|
|
|
10929
10974
|
this._mounted = !0;
|
|
10930
10975
|
return;
|
|
10931
10976
|
}
|
|
10932
|
-
this.show &&
|
|
10977
|
+
this.show && Ae(this._wrapper), !this.show && !this._removeElement && Ce(this._wrapper, () => this._removeElement = !0);
|
|
10933
10978
|
}
|
|
10934
10979
|
}
|
|
10935
10980
|
get _wrapper() {
|
|
@@ -10941,18 +10986,18 @@ class xr extends k {
|
|
|
10941
10986
|
</div>`;
|
|
10942
10987
|
}
|
|
10943
10988
|
}
|
|
10944
|
-
w(
|
|
10989
|
+
w(zr, "properties", {
|
|
10945
10990
|
show: {
|
|
10946
10991
|
type: Boolean,
|
|
10947
10992
|
reflect: !0
|
|
10948
10993
|
},
|
|
10949
10994
|
_removeElement: { type: Boolean, state: !0 }
|
|
10950
|
-
}), w(
|
|
10951
|
-
|
|
10995
|
+
}), w(zr, "styles", [
|
|
10996
|
+
Oe,
|
|
10952
10997
|
q`
|
|
10953
10998
|
/* layer: preflights */
|
|
10954
10999
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
10955
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
11000
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
10956
11001
|
/* layer: shortcuts */
|
|
10957
11002
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
10958
11003
|
@media (min-width: 480px){
|
|
@@ -11592,8 +11637,8 @@ w(xr, "properties", {
|
|
|
11592
11637
|
}
|
|
11593
11638
|
`
|
|
11594
11639
|
]);
|
|
11595
|
-
customElements.get("w-expand-transition") || customElements.define("w-expand-transition",
|
|
11596
|
-
class
|
|
11640
|
+
customElements.get("w-expand-transition") || customElements.define("w-expand-transition", zr);
|
|
11641
|
+
class _r extends k {
|
|
11597
11642
|
get _markup() {
|
|
11598
11643
|
return `<h${this.level}
|
|
11599
11644
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -11603,15 +11648,15 @@ class fr extends k {
|
|
|
11603
11648
|
`;
|
|
11604
11649
|
}
|
|
11605
11650
|
render() {
|
|
11606
|
-
return this.level ?
|
|
11651
|
+
return this.level ? ye(this._markup) : s`<slot></slot>`;
|
|
11607
11652
|
}
|
|
11608
11653
|
}
|
|
11609
|
-
w(
|
|
11654
|
+
w(_r, "properties", {
|
|
11610
11655
|
level: { type: Number }
|
|
11611
|
-
}), w(
|
|
11656
|
+
}), w(_r, "styles", [Oe, q`
|
|
11612
11657
|
/* layer: preflights */
|
|
11613
11658
|
*,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
|
|
11614
|
-
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:
|
|
11659
|
+
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}html{font-size:62.5%}body{background-color:var(--w-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-color-text)}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
|
|
11615
11660
|
/* layer: shortcuts */
|
|
11616
11661
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
11617
11662
|
@media (min-width: 480px){
|
|
@@ -12247,24 +12292,24 @@ w(fr, "properties", {
|
|
|
12247
12292
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
12248
12293
|
}
|
|
12249
12294
|
`]);
|
|
12250
|
-
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading",
|
|
12295
|
+
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", _r);
|
|
12251
12296
|
export {
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12297
|
+
zr as ExpandTransition,
|
|
12298
|
+
_r as UnstyledHeading,
|
|
12299
|
+
yr as WarpAffix,
|
|
12300
|
+
nr as WarpAlert,
|
|
12301
|
+
fr as WarpAttention,
|
|
12302
|
+
ur as WarpBox,
|
|
12303
|
+
vr as WarpBreadcrumbs,
|
|
12304
|
+
wr as WarpBroadcast,
|
|
12305
|
+
Co as WarpButton,
|
|
12306
|
+
br as WarpCard,
|
|
12307
|
+
$r as WarpExpandable,
|
|
12308
|
+
sr as WarpSelect,
|
|
12309
|
+
kr as WarpTextField,
|
|
12310
|
+
pr as WarpToast,
|
|
12311
|
+
hr as WarpToastContainer,
|
|
12312
|
+
ga as removeToast,
|
|
12313
|
+
ba as toast,
|
|
12314
|
+
sa as updateToast
|
|
12270
12315
|
};
|