@warp-ds/elements 1.0.0-alpha.25 → 1.0.0-alpha.27
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 +740 -654
- package/package.json +3 -3
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,44 +619,44 @@ 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"
|
|
638
638
|
}, j = {
|
|
639
639
|
// Buttontypes
|
|
640
|
-
buttonSecondary: "py-10 px-14 border-2 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
|
|
640
|
+
buttonSecondary: "py-10 px-14 border-2 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
|
|
641
641
|
// .button, .button--secondary, .button--default. using tailwind ease-in-out instead of fabric transition-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96)
|
|
642
|
-
buttonPrimary: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",
|
|
642
|
+
buttonPrimary: "py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",
|
|
643
643
|
// .button--primary, .button--cta
|
|
644
|
-
buttonFlat: "py-12 px-16 border-0! font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background! i-text-$color-button-quiet-text! hover:i-bg-$color-button-quiet-background-hover! active:i-bg-$color-button-quiet-background-active!",
|
|
644
|
+
buttonFlat: "py-12 px-16 border-0! font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background! i-text-$color-button-quiet-text! hover:i-bg-$color-button-quiet-background-hover! active:i-bg-$color-button-quiet-background-active!",
|
|
645
645
|
// .button--quiet, .button--flat
|
|
646
|
-
buttonDestructive: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover! active:i-bg-$color-button-negative-background-active!",
|
|
646
|
+
buttonDestructive: "py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover! active:i-bg-$color-button-negative-background-active!",
|
|
647
647
|
// .button--destructive
|
|
648
|
-
buttonDestructiveFlat: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-quiet-background! i-text-$color-button-negative-quiet-text! hover:i-bg-$color-button-negative-quiet-background-hover! active:i-bg-$color-button-negative-quiet-background-active!",
|
|
648
|
+
buttonDestructiveFlat: "py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-quiet-background! i-text-$color-button-negative-quiet-text! hover:i-bg-$color-button-negative-quiet-background-hover! active:i-bg-$color-button-negative-quiet-background-active!",
|
|
649
649
|
// .button--destructive-flat
|
|
650
|
-
buttonUtility: "px-[15px] py-[11px] font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out border rounded-4 i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover! active:i-border-$color-button-utility-border-active!",
|
|
650
|
+
buttonUtility: "px-[15px] py-[11px] font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out border rounded-4 i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover! active:i-border-$color-button-utility-border-active!",
|
|
651
651
|
// .button--utility
|
|
652
|
-
buttonUtilityFlat: "py-12 px-16 bg-transparent border-0 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover rounded-4",
|
|
652
|
+
buttonUtilityFlat: "py-12 px-16 bg-transparent border-0 font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover rounded-4",
|
|
653
653
|
// .button--utility-flat
|
|
654
|
-
buttonPill: "font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out rounded-full! min-h-[44px] min-w-[44px] border-0! p-4 i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover acive:i-bg-$color-button-pill-background-active inline-flex items-center justify-center hover:bg-clip-padding",
|
|
654
|
+
buttonPill: "font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out rounded-full! min-h-[44px] min-w-[44px] border-0! p-4 i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover acive:i-bg-$color-button-pill-background-active inline-flex items-center justify-center hover:bg-clip-padding",
|
|
655
655
|
// .button--pill missing: hover:background-color: rgba(var(--f-blue-600-rgb), 0.1) , and: hover:border-color: hsla(0, 0%, 100%, 0.4);
|
|
656
|
-
buttonLink: "leading-24 max-w-max focusable ease-in-out inline s-text-link active:underline hover:underline",
|
|
656
|
+
buttonLink: "leading-[24] max-w-max bg-transparent focusable ease-in-out inline s-text-link active:underline hover:underline",
|
|
657
657
|
//.button--link /* Buttons pretending to be links, (Should rather inherit the actual link setup in the future?) */
|
|
658
658
|
// Sizestuff
|
|
659
|
-
buttonSmall: "px-16 py-6 text-xs
|
|
659
|
+
buttonSmall: "px-16 py-6 text-xs!",
|
|
660
660
|
// .button--small
|
|
661
661
|
buttonSmallOverride: "py-8",
|
|
662
662
|
// .button--small.button--primary, .button--small.button--destructive, .button--small.button--destructive-flat, .button--small.button--order, .button--small.button--quiet
|
|
@@ -669,14 +669,14 @@ const L = {
|
|
|
669
669
|
buttonSmallButtonLink: "p-0",
|
|
670
670
|
// .button--small.button--link
|
|
671
671
|
// Disabled
|
|
672
|
-
buttonIsDisabled: "py-10 px-14 font-bold leading-24 max-w-max justify-center transition-colors ease-in-out i-bg-$color-button-disabled-background! i-text-$color-button-disabled-text cursor-default pointer-events-none",
|
|
672
|
+
buttonIsDisabled: "py-10 px-14 font-bold leading-[24] max-w-max justify-center transition-colors ease-in-out i-bg-$color-button-disabled-background! i-text-$color-button-disabled-text cursor-default pointer-events-none",
|
|
673
673
|
// .button:disabled, .button--is-disabled
|
|
674
674
|
// Progress indicator
|
|
675
|
-
buttonInProgress: "py-10 px-14 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out animate-inprogress i-text-$color-button-loading-text! pointer-events-none i-bg-$color-button-loading-background!",
|
|
675
|
+
buttonInProgress: "py-10 px-14 border-0 font-bold rounded-8 leading-[24] max-w-max focusable justify-center transition-colors ease-in-out animate-inprogress i-text-$color-button-loading-text! pointer-events-none i-bg-$color-button-loading-background!",
|
|
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] bg-transparent", 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){
|
|
@@ -927,8 +936,9 @@ w(ar, "styles", q`
|
|
|
927
936
|
.caret-current{caret-color:currentColor;}
|
|
928
937
|
.before\\:opacity-25::before,
|
|
929
938
|
.opacity-25{opacity:25%;}
|
|
930
|
-
.flex
|
|
939
|
+
.before\\:flex\\!::before,
|
|
931
940
|
.flex\\!{display:flex !important;}
|
|
941
|
+
.flex{display:flex;}
|
|
932
942
|
.inline-flex{display:inline-flex;}
|
|
933
943
|
.inline-flex\\!{display:inline-flex !important;}
|
|
934
944
|
.grid{display:grid;}
|
|
@@ -1266,6 +1276,7 @@ w(ar, "styles", q`
|
|
|
1266
1276
|
.focus\\:outline-none:focus,
|
|
1267
1277
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
1268
1278
|
.items-end{align-items:flex-end;}
|
|
1279
|
+
.before\\:items-center::before,
|
|
1269
1280
|
.items-center{align-items:center;}
|
|
1270
1281
|
.self-center{align-self:center;}
|
|
1271
1282
|
.inset-0{inset:0rem;}
|
|
@@ -1293,6 +1304,7 @@ w(ar, "styles", q`
|
|
|
1293
1304
|
.top-20{top:2rem;}
|
|
1294
1305
|
.top-4{top:0.4rem;}
|
|
1295
1306
|
.justify-end{justify-content:flex-end;}
|
|
1307
|
+
.before\\:justify-center::before,
|
|
1296
1308
|
.justify-center{justify-content:center;}
|
|
1297
1309
|
.justify-between{justify-content:space-between;}
|
|
1298
1310
|
.justify-items-center{justify-items:center;}
|
|
@@ -1471,7 +1483,7 @@ w(ar, "styles", q`
|
|
|
1471
1483
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
1472
1484
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
1473
1485
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
1474
|
-
.leading
|
|
1486
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
1475
1487
|
@media (min-width: 480px){
|
|
1476
1488
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
1477
1489
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -1505,14 +1517,14 @@ w(ar, "styles", q`
|
|
|
1505
1517
|
margin-bottom: 0px !important;
|
|
1506
1518
|
}
|
|
1507
1519
|
`);
|
|
1508
|
-
customElements.get("w-alert") || customElements.define("w-alert",
|
|
1520
|
+
customElements.get("w-alert") || customElements.define("w-alert", nr);
|
|
1509
1521
|
/**
|
|
1510
1522
|
* @license
|
|
1511
1523
|
* Copyright 2017 Google LLC
|
|
1512
1524
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1513
1525
|
*/
|
|
1514
|
-
const
|
|
1515
|
-
let
|
|
1526
|
+
const jr = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zr = (r) => (...o) => ({ _$litDirective$: r, values: o });
|
|
1527
|
+
let Ar = class {
|
|
1516
1528
|
constructor(o) {
|
|
1517
1529
|
}
|
|
1518
1530
|
get _$AU() {
|
|
@@ -1533,10 +1545,10 @@ let qr = class {
|
|
|
1533
1545
|
* Copyright 2018 Google LLC
|
|
1534
1546
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1535
1547
|
*/
|
|
1536
|
-
const
|
|
1548
|
+
const $e = Zr(class extends Ar {
|
|
1537
1549
|
constructor(r) {
|
|
1538
1550
|
var o;
|
|
1539
|
-
if (super(r), r.type !==
|
|
1551
|
+
if (super(r), r.type !== jr.ATTRIBUTE || r.name !== "class" || ((o = r.strings) === null || o === void 0 ? void 0 : o.length) > 2)
|
|
1540
1552
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1541
1553
|
}
|
|
1542
1554
|
render(r) {
|
|
@@ -1558,37 +1570,37 @@ const me = _r(class extends qr {
|
|
|
1558
1570
|
const c = !!o[i];
|
|
1559
1571
|
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
1572
|
}
|
|
1561
|
-
return
|
|
1573
|
+
return N;
|
|
1562
1574
|
}
|
|
1563
|
-
}),
|
|
1564
|
-
function
|
|
1575
|
+
}), st = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1576
|
+
function _o(r) {
|
|
1565
1577
|
return class extends r {
|
|
1566
1578
|
static createProperty(o, e) {
|
|
1567
1579
|
let t = e;
|
|
1568
1580
|
(typeof (e == null ? void 0 : e.attribute) > "u" || (e == null ? void 0 : e.attribute) === !0) && (t = Object.assign({}, e, {
|
|
1569
|
-
attribute:
|
|
1581
|
+
attribute: st(o.toString())
|
|
1570
1582
|
})), super.createProperty(o, t);
|
|
1571
1583
|
}
|
|
1572
1584
|
};
|
|
1573
1585
|
}
|
|
1574
|
-
function
|
|
1586
|
+
function Wr(r) {
|
|
1575
1587
|
const o = [];
|
|
1576
1588
|
for (const [e, t] of Object.entries(r))
|
|
1577
1589
|
t && o.push(e);
|
|
1578
1590
|
return o.join(" ");
|
|
1579
1591
|
}
|
|
1580
|
-
const
|
|
1592
|
+
const ko = typeof window < "u";
|
|
1581
1593
|
function Z(r) {
|
|
1582
1594
|
const o = {};
|
|
1583
1595
|
for (const [e, t] of Object.entries(r))
|
|
1584
1596
|
for (const a of e.split(" "))
|
|
1585
1597
|
o[a] = t;
|
|
1586
|
-
return
|
|
1598
|
+
return $e(o);
|
|
1587
1599
|
}
|
|
1588
|
-
function
|
|
1600
|
+
function ut() {
|
|
1589
1601
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
1590
1602
|
}
|
|
1591
|
-
const
|
|
1603
|
+
const ir = [
|
|
1592
1604
|
"primary",
|
|
1593
1605
|
"secondary",
|
|
1594
1606
|
"negative",
|
|
@@ -1596,15 +1608,15 @@ const or = [
|
|
|
1596
1608
|
"pill",
|
|
1597
1609
|
"link"
|
|
1598
1610
|
];
|
|
1599
|
-
class
|
|
1611
|
+
class Co extends _o(k) {
|
|
1600
1612
|
constructor() {
|
|
1601
1613
|
super(), this.variant = "secondary";
|
|
1602
1614
|
}
|
|
1603
1615
|
connectedCallback() {
|
|
1604
|
-
if (super.connectedCallback(), !
|
|
1616
|
+
if (super.connectedCallback(), !ir.includes(this.variant))
|
|
1605
1617
|
throw new Error(
|
|
1606
1618
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
1607
|
-
${
|
|
1619
|
+
${ir.join(
|
|
1608
1620
|
", "
|
|
1609
1621
|
)}.`
|
|
1610
1622
|
);
|
|
@@ -1614,9 +1626,9 @@ ${or.join(
|
|
|
1614
1626
|
}
|
|
1615
1627
|
get _classes() {
|
|
1616
1628
|
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
|
|
1629
|
+
return O(
|
|
1618
1630
|
{
|
|
1619
|
-
[j.buttonSecondary]: e && !this.quiet || !
|
|
1631
|
+
[j.buttonSecondary]: e && !this.quiet || !ir.find((l) => this.variant === l),
|
|
1620
1632
|
// primary buttons
|
|
1621
1633
|
[j.buttonPrimary]: o,
|
|
1622
1634
|
[j.buttonDestructive]: t && !this.quiet,
|
|
@@ -1655,7 +1667,7 @@ ${or.join(
|
|
|
1655
1667
|
/>` : null}`;
|
|
1656
1668
|
}
|
|
1657
1669
|
}
|
|
1658
|
-
w(
|
|
1670
|
+
w(Co, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Co, "properties", {
|
|
1659
1671
|
type: { type: "button" | "submit" | "reset", reflect: !0 },
|
|
1660
1672
|
autofocus: { type: Boolean, reflect: !0 },
|
|
1661
1673
|
variant: { type: String, reflect: !0 },
|
|
@@ -1666,10 +1678,10 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
1666
1678
|
target: { type: String, reflect: !0 },
|
|
1667
1679
|
rel: { type: String, reflect: !0 },
|
|
1668
1680
|
buttonClass: { type: String, reflect: !0 }
|
|
1669
|
-
}), w(
|
|
1681
|
+
}), w(Co, "styles", q`
|
|
1670
1682
|
/* layer: preflights */
|
|
1671
1683
|
*,::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:
|
|
1684
|
+
*,: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
1685
|
/* layer: shortcuts */
|
|
1674
1686
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
1675
1687
|
@media (min-width: 480px){
|
|
@@ -1737,8 +1749,9 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
1737
1749
|
.caret-current{caret-color:currentColor;}
|
|
1738
1750
|
.before\\:opacity-25::before,
|
|
1739
1751
|
.opacity-25{opacity:25%;}
|
|
1740
|
-
.flex
|
|
1752
|
+
.before\\:flex\\!::before,
|
|
1741
1753
|
.flex\\!{display:flex !important;}
|
|
1754
|
+
.flex{display:flex;}
|
|
1742
1755
|
.inline-flex{display:inline-flex;}
|
|
1743
1756
|
.inline-flex\\!{display:inline-flex !important;}
|
|
1744
1757
|
.grid{display:grid;}
|
|
@@ -2076,6 +2089,7 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
2076
2089
|
.focus\\:outline-none:focus,
|
|
2077
2090
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
2078
2091
|
.items-end{align-items:flex-end;}
|
|
2092
|
+
.before\\:items-center::before,
|
|
2079
2093
|
.items-center{align-items:center;}
|
|
2080
2094
|
.self-center{align-self:center;}
|
|
2081
2095
|
.inset-0{inset:0rem;}
|
|
@@ -2103,6 +2117,7 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
2103
2117
|
.top-20{top:2rem;}
|
|
2104
2118
|
.top-4{top:0.4rem;}
|
|
2105
2119
|
.justify-end{justify-content:flex-end;}
|
|
2120
|
+
.before\\:justify-center::before,
|
|
2106
2121
|
.justify-center{justify-content:center;}
|
|
2107
2122
|
.justify-between{justify-content:space-between;}
|
|
2108
2123
|
.justify-items-center{justify-items:center;}
|
|
@@ -2280,7 +2295,7 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
2280
2295
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
2281
2296
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
2282
2297
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
2283
|
-
.leading
|
|
2298
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
2284
2299
|
@media (min-width: 480px){
|
|
2285
2300
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
2286
2301
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -2305,37 +2320,37 @@ w(Zo, "shadowRootOptions", { ...k.shadowRootOptions, delegatesFocus: !0 }), w(Zo
|
|
|
2305
2320
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
2306
2321
|
}
|
|
2307
2322
|
`);
|
|
2308
|
-
customElements.get("w-button") || customElements.define("w-button",
|
|
2323
|
+
customElements.get("w-button") || customElements.define("w-button", Co);
|
|
2309
2324
|
/**
|
|
2310
2325
|
* @license
|
|
2311
2326
|
* Copyright 2018 Google LLC
|
|
2312
2327
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2313
2328
|
*/
|
|
2314
|
-
const x = (r) => r ?? f,
|
|
2329
|
+
const x = (r) => r ?? f, Gr = {
|
|
2315
2330
|
ENTER: "Enter",
|
|
2316
2331
|
SPACE: " "
|
|
2317
2332
|
};
|
|
2318
|
-
class
|
|
2333
|
+
class br extends k {
|
|
2319
2334
|
constructor() {
|
|
2320
2335
|
super(), this.selected = !1, this.flat = !1, this.clickable = !1;
|
|
2321
2336
|
}
|
|
2322
2337
|
get _outerClasses() {
|
|
2323
2338
|
return Z({
|
|
2324
|
-
[
|
|
2325
|
-
[
|
|
2326
|
-
[
|
|
2327
|
-
[
|
|
2328
|
-
[this.selected ?
|
|
2339
|
+
[M.card]: !0,
|
|
2340
|
+
[M.cardShadow]: !this.flat,
|
|
2341
|
+
[M.cardSelected]: this.selected,
|
|
2342
|
+
[M.cardFlat]: this.flat,
|
|
2343
|
+
[this.selected ? M.cardFlatSelected : M.cardFlatUnselected]: this.flat
|
|
2329
2344
|
});
|
|
2330
2345
|
}
|
|
2331
2346
|
get _innerClasses() {
|
|
2332
2347
|
return Z({
|
|
2333
|
-
[
|
|
2334
|
-
[this.selected ?
|
|
2348
|
+
[M.cardOutline]: !0,
|
|
2349
|
+
[this.selected ? M.cardOutlineSelected : M.cardOutlineUnselected]: !0
|
|
2335
2350
|
});
|
|
2336
2351
|
}
|
|
2337
2352
|
get uuButton() {
|
|
2338
|
-
return s`<button class=
|
|
2353
|
+
return s`<button class="${M.a11y}" aria-pressed="${this.selected}" tabindex="-1">
|
|
2339
2354
|
Velg
|
|
2340
2355
|
</button>`;
|
|
2341
2356
|
}
|
|
@@ -2343,7 +2358,7 @@ class ir extends k {
|
|
|
2343
2358
|
return s`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
2344
2359
|
}
|
|
2345
2360
|
keypressed(o) {
|
|
2346
|
-
!this.clickable || o.altKey || o.ctrlKey || (o.key ===
|
|
2361
|
+
!this.clickable || o.altKey || o.ctrlKey || (o.key === Gr.ENTER || o.key === Gr.SPACE) && (o.preventDefault(), this.click());
|
|
2347
2362
|
}
|
|
2348
2363
|
render() {
|
|
2349
2364
|
return s`
|
|
@@ -2360,11 +2375,11 @@ class ir extends k {
|
|
|
2360
2375
|
`;
|
|
2361
2376
|
}
|
|
2362
2377
|
}
|
|
2363
|
-
w(
|
|
2378
|
+
w(br, "styles", [
|
|
2364
2379
|
q`
|
|
2365
2380
|
/* layer: preflights */
|
|
2366
2381
|
*,::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:
|
|
2382
|
+
*,: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
2383
|
/* layer: shortcuts */
|
|
2369
2384
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
2370
2385
|
@media (min-width: 480px){
|
|
@@ -2432,8 +2447,9 @@ w(ir, "styles", [
|
|
|
2432
2447
|
.caret-current{caret-color:currentColor;}
|
|
2433
2448
|
.before\\:opacity-25::before,
|
|
2434
2449
|
.opacity-25{opacity:25%;}
|
|
2435
|
-
.flex
|
|
2450
|
+
.before\\:flex\\!::before,
|
|
2436
2451
|
.flex\\!{display:flex !important;}
|
|
2452
|
+
.flex{display:flex;}
|
|
2437
2453
|
.inline-flex{display:inline-flex;}
|
|
2438
2454
|
.inline-flex\\!{display:inline-flex !important;}
|
|
2439
2455
|
.grid{display:grid;}
|
|
@@ -2771,6 +2787,7 @@ w(ir, "styles", [
|
|
|
2771
2787
|
.focus\\:outline-none:focus,
|
|
2772
2788
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
2773
2789
|
.items-end{align-items:flex-end;}
|
|
2790
|
+
.before\\:items-center::before,
|
|
2774
2791
|
.items-center{align-items:center;}
|
|
2775
2792
|
.self-center{align-self:center;}
|
|
2776
2793
|
.inset-0{inset:0rem;}
|
|
@@ -2798,6 +2815,7 @@ w(ir, "styles", [
|
|
|
2798
2815
|
.top-20{top:2rem;}
|
|
2799
2816
|
.top-4{top:0.4rem;}
|
|
2800
2817
|
.justify-end{justify-content:flex-end;}
|
|
2818
|
+
.before\\:justify-center::before,
|
|
2801
2819
|
.justify-center{justify-content:center;}
|
|
2802
2820
|
.justify-between{justify-content:space-between;}
|
|
2803
2821
|
.justify-items-center{justify-items:center;}
|
|
@@ -2975,7 +2993,7 @@ w(ir, "styles", [
|
|
|
2975
2993
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
2976
2994
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
2977
2995
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
2978
|
-
.leading
|
|
2996
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
2979
2997
|
@media (min-width: 480px){
|
|
2980
2998
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
2981
2999
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -3011,18 +3029,18 @@ w(ir, "styles", [
|
|
|
3011
3029
|
display: block;
|
|
3012
3030
|
}
|
|
3013
3031
|
`
|
|
3014
|
-
]), w(
|
|
3032
|
+
]), w(br, "properties", {
|
|
3015
3033
|
selected: { type: Boolean, reflect: !0 },
|
|
3016
3034
|
flat: { type: Boolean },
|
|
3017
3035
|
clickable: { type: Boolean }
|
|
3018
3036
|
});
|
|
3019
|
-
customElements.get("w-card") || customElements.define("w-card",
|
|
3037
|
+
customElements.get("w-card") || customElements.define("w-card", br);
|
|
3020
3038
|
/**
|
|
3021
3039
|
* @license
|
|
3022
3040
|
* Copyright 2021 Google LLC
|
|
3023
3041
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3024
3042
|
*/
|
|
3025
|
-
function
|
|
3043
|
+
function So(r, o, e) {
|
|
3026
3044
|
return r ? o() : e == null ? void 0 : e();
|
|
3027
3045
|
}
|
|
3028
3046
|
/**
|
|
@@ -3030,15 +3048,15 @@ function Ao(r, o, e) {
|
|
|
3030
3048
|
* Copyright 2017 Google LLC
|
|
3031
3049
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3032
3050
|
*/
|
|
3033
|
-
let
|
|
3051
|
+
let gr = class extends Ar {
|
|
3034
3052
|
constructor(o) {
|
|
3035
|
-
if (super(o), this.et = f, o.type !==
|
|
3053
|
+
if (super(o), this.et = f, o.type !== jr.CHILD)
|
|
3036
3054
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
3037
3055
|
}
|
|
3038
3056
|
render(o) {
|
|
3039
3057
|
if (o === f || o == null)
|
|
3040
3058
|
return this.ft = void 0, this.et = o;
|
|
3041
|
-
if (o ===
|
|
3059
|
+
if (o === N)
|
|
3042
3060
|
return o;
|
|
3043
3061
|
if (typeof o != "string")
|
|
3044
3062
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
@@ -3049,56 +3067,93 @@ let cr = class extends qr {
|
|
|
3049
3067
|
return e.raw = e, this.ft = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
3050
3068
|
}
|
|
3051
3069
|
};
|
|
3052
|
-
|
|
3053
|
-
const
|
|
3054
|
-
var
|
|
3055
|
-
class
|
|
3070
|
+
gr.directiveName = "unsafeHTML", gr.resultType = 1;
|
|
3071
|
+
const ye = Zr(gr);
|
|
3072
|
+
var Do, ze, Uo, _e, Fo, qe, Vo, Xe, io, Eo, co, Mo;
|
|
3073
|
+
class sr extends _o(k) {
|
|
3056
3074
|
constructor() {
|
|
3057
3075
|
super();
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3076
|
+
U(this, Do);
|
|
3077
|
+
U(this, Uo);
|
|
3078
|
+
U(this, Fo);
|
|
3079
|
+
U(this, Vo);
|
|
3080
|
+
U(this, io);
|
|
3081
|
+
U(this, co);
|
|
3061
3082
|
this._options = this.innerHTML;
|
|
3062
3083
|
}
|
|
3063
3084
|
render() {
|
|
3064
|
-
return s`<div class="${
|
|
3065
|
-
${
|
|
3085
|
+
return s`<div class="${ro.wrapper}">
|
|
3086
|
+
${So(
|
|
3066
3087
|
this.label,
|
|
3067
|
-
() => s`<label for="${
|
|
3088
|
+
() => s`<label class="${C(this, Uo, _e)}" for="${C(this, io, Eo)}">
|
|
3068
3089
|
${this.label}
|
|
3069
|
-
${
|
|
3090
|
+
${So(
|
|
3070
3091
|
this.optional,
|
|
3071
|
-
() => s`<span
|
|
3092
|
+
() => s`<span class="${G.optional}">(valgfritt)</span>`
|
|
3072
3093
|
)}</label
|
|
3073
3094
|
>`
|
|
3074
3095
|
)}
|
|
3075
|
-
<div class="
|
|
3096
|
+
<div class="${ro.selectWrapper}">
|
|
3076
3097
|
<select
|
|
3077
|
-
|
|
3098
|
+
class="${C(this, Do, ze)}"
|
|
3099
|
+
id="${C(this, io, Eo)}"
|
|
3078
3100
|
?autofocus=${this.autoFocus}
|
|
3079
|
-
aria-describedby="${x(
|
|
3101
|
+
aria-describedby="${x(C(this, co, Mo))}"
|
|
3080
3102
|
aria-invalid="${x(this.invalid)}"
|
|
3081
|
-
aria-errormessage="${x(this.invalid &&
|
|
3103
|
+
aria-errormessage="${x(this.invalid && C(this, co, Mo))}"
|
|
3082
3104
|
>
|
|
3083
|
-
${
|
|
3105
|
+
${ye(this._options)}
|
|
3084
3106
|
</select>
|
|
3107
|
+
<div class="${C(this, Vo, Xe)}">
|
|
3108
|
+
<svg
|
|
3109
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3110
|
+
width="16"
|
|
3111
|
+
height="16"
|
|
3112
|
+
fill="none"
|
|
3113
|
+
viewBox="0 0 16 16"
|
|
3114
|
+
>
|
|
3115
|
+
<path
|
|
3116
|
+
stroke="currentColor"
|
|
3117
|
+
strokeLinecap="round"
|
|
3118
|
+
strokeLinejoin="round"
|
|
3119
|
+
strokeWidth="1.5"
|
|
3120
|
+
d="M2.5 5.5L8 11L13.5 5.5"
|
|
3121
|
+
/>
|
|
3122
|
+
</svg>
|
|
3123
|
+
</div>
|
|
3085
3124
|
</div>
|
|
3086
|
-
${
|
|
3125
|
+
${So(
|
|
3087
3126
|
this.always || this.invalid,
|
|
3088
|
-
() => s`<div id="${
|
|
3127
|
+
() => s`<div id="${C(this, co, Mo)}" class="${C(this, Fo, qe)}">${this.hint}</div>`
|
|
3089
3128
|
)}
|
|
3090
3129
|
</div>`;
|
|
3091
3130
|
}
|
|
3092
3131
|
}
|
|
3093
|
-
|
|
3094
|
-
return
|
|
3095
|
-
|
|
3132
|
+
Do = new WeakSet(), ze = function() {
|
|
3133
|
+
return O({
|
|
3134
|
+
[ro.default]: !0,
|
|
3135
|
+
[ro.invalid]: this.invalid
|
|
3136
|
+
});
|
|
3137
|
+
}, Uo = new WeakSet(), _e = function() {
|
|
3138
|
+
return O({
|
|
3139
|
+
[G.label]: !0,
|
|
3140
|
+
[G.labelInvalid]: this.invalid
|
|
3096
3141
|
});
|
|
3097
|
-
},
|
|
3142
|
+
}, Fo = new WeakSet(), qe = function() {
|
|
3143
|
+
return O({
|
|
3144
|
+
[Bo.helpText]: !0,
|
|
3145
|
+
[Bo.helpTextInvalid]: this.invalid
|
|
3146
|
+
});
|
|
3147
|
+
}, Vo = new WeakSet(), Xe = function() {
|
|
3148
|
+
return O({
|
|
3149
|
+
[ro.chevron]: !0,
|
|
3150
|
+
[ro.chevronDisabled]: this.disabled
|
|
3151
|
+
});
|
|
3152
|
+
}, io = new WeakSet(), Eo = function() {
|
|
3098
3153
|
return "select_id";
|
|
3099
|
-
},
|
|
3100
|
-
return this.hint ? `${
|
|
3101
|
-
}, w(
|
|
3154
|
+
}, co = new WeakSet(), Mo = function() {
|
|
3155
|
+
return this.hint ? `${C(this, io, Eo)}__hint` : void 0;
|
|
3156
|
+
}, w(sr, "properties", {
|
|
3102
3157
|
// Whether the element should receive focus on render
|
|
3103
3158
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
3104
3159
|
// Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
|
|
@@ -3112,10 +3167,10 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3112
3167
|
// Whether to show optional text
|
|
3113
3168
|
optional: { type: Boolean, reflect: !0 },
|
|
3114
3169
|
_options: { state: !0 }
|
|
3115
|
-
}), w(
|
|
3170
|
+
}), w(sr, "styles", q`
|
|
3116
3171
|
/* layer: preflights */
|
|
3117
3172
|
*,::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:
|
|
3173
|
+
*,: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
3174
|
/* layer: shortcuts */
|
|
3120
3175
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3121
3176
|
@media (min-width: 480px){
|
|
@@ -3183,9 +3238,9 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3183
3238
|
.caret-current{caret-color:currentColor;}
|
|
3184
3239
|
.before\\:opacity-25::before,
|
|
3185
3240
|
.opacity-25{opacity:25%;}
|
|
3186
|
-
.
|
|
3187
|
-
.flex{display:flex;}
|
|
3241
|
+
.before\\:flex\\!::before,
|
|
3188
3242
|
.flex\\!{display:flex !important;}
|
|
3243
|
+
.flex{display:flex;}
|
|
3189
3244
|
.inline-flex{display:inline-flex;}
|
|
3190
3245
|
.inline-flex\\!{display:inline-flex !important;}
|
|
3191
3246
|
.grid{display:grid;}
|
|
@@ -3523,6 +3578,7 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3523
3578
|
.focus\\:outline-none:focus,
|
|
3524
3579
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
3525
3580
|
.items-end{align-items:flex-end;}
|
|
3581
|
+
.before\\:items-center::before,
|
|
3526
3582
|
.items-center{align-items:center;}
|
|
3527
3583
|
.self-center{align-self:center;}
|
|
3528
3584
|
.inset-0{inset:0rem;}
|
|
@@ -3550,6 +3606,7 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3550
3606
|
.top-20{top:2rem;}
|
|
3551
3607
|
.top-4{top:0.4rem;}
|
|
3552
3608
|
.justify-end{justify-content:flex-end;}
|
|
3609
|
+
.before\\:justify-center::before,
|
|
3553
3610
|
.justify-center{justify-content:center;}
|
|
3554
3611
|
.justify-between{justify-content:space-between;}
|
|
3555
3612
|
.justify-items-center{justify-items:center;}
|
|
@@ -3722,13 +3779,12 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3722
3779
|
.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
|
|
3723
3780
|
.duration-300{transition-duration:300ms;}
|
|
3724
3781
|
.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
3782
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3783
|
+
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
3728
3784
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
3729
3785
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
3730
3786
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
3731
|
-
.leading
|
|
3787
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
3732
3788
|
@media (min-width: 480px){
|
|
3733
3789
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
3734
3790
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -3753,15 +3809,15 @@ Oo = new WeakSet(), fe = function() {
|
|
|
3753
3809
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
3754
3810
|
}
|
|
3755
3811
|
`);
|
|
3756
|
-
customElements.get("w-select") || customElements.define("w-select",
|
|
3757
|
-
class
|
|
3812
|
+
customElements.get("w-select") || customElements.define("w-select", sr);
|
|
3813
|
+
class ur extends k {
|
|
3758
3814
|
get _class() {
|
|
3759
3815
|
return Z({
|
|
3760
|
-
[
|
|
3761
|
-
[
|
|
3762
|
-
[
|
|
3763
|
-
[
|
|
3764
|
-
[
|
|
3816
|
+
[B.box]: !0,
|
|
3817
|
+
[B.bleed]: this.bleed,
|
|
3818
|
+
[B.info]: this.info,
|
|
3819
|
+
[B.neutral]: this.neutral,
|
|
3820
|
+
[B.bordered]: this.bordered
|
|
3765
3821
|
});
|
|
3766
3822
|
}
|
|
3767
3823
|
render() {
|
|
@@ -3772,7 +3828,7 @@ class dr extends k {
|
|
|
3772
3828
|
`;
|
|
3773
3829
|
}
|
|
3774
3830
|
}
|
|
3775
|
-
w(
|
|
3831
|
+
w(ur, "properties", {
|
|
3776
3832
|
bleed: { type: Boolean },
|
|
3777
3833
|
bordered: { type: Boolean },
|
|
3778
3834
|
info: { type: Boolean },
|
|
@@ -3781,10 +3837,10 @@ w(dr, "properties", {
|
|
|
3781
3837
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
3782
3838
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
3783
3839
|
// https://stackoverflow.com/a/61631668
|
|
3784
|
-
w(
|
|
3840
|
+
w(ur, "styles", q`
|
|
3785
3841
|
/* layer: preflights */
|
|
3786
3842
|
*,::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:
|
|
3843
|
+
*,: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
3844
|
/* layer: shortcuts */
|
|
3789
3845
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3790
3846
|
@media (min-width: 480px){
|
|
@@ -3852,8 +3908,9 @@ w(dr, "styles", q`
|
|
|
3852
3908
|
.caret-current{caret-color:currentColor;}
|
|
3853
3909
|
.before\\:opacity-25::before,
|
|
3854
3910
|
.opacity-25{opacity:25%;}
|
|
3855
|
-
.flex
|
|
3911
|
+
.before\\:flex\\!::before,
|
|
3856
3912
|
.flex\\!{display:flex !important;}
|
|
3913
|
+
.flex{display:flex;}
|
|
3857
3914
|
.inline-flex{display:inline-flex;}
|
|
3858
3915
|
.inline-flex\\!{display:inline-flex !important;}
|
|
3859
3916
|
.grid{display:grid;}
|
|
@@ -4191,6 +4248,7 @@ w(dr, "styles", q`
|
|
|
4191
4248
|
.focus\\:outline-none:focus,
|
|
4192
4249
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
4193
4250
|
.items-end{align-items:flex-end;}
|
|
4251
|
+
.before\\:items-center::before,
|
|
4194
4252
|
.items-center{align-items:center;}
|
|
4195
4253
|
.self-center{align-self:center;}
|
|
4196
4254
|
.inset-0{inset:0rem;}
|
|
@@ -4218,6 +4276,7 @@ w(dr, "styles", q`
|
|
|
4218
4276
|
.top-20{top:2rem;}
|
|
4219
4277
|
.top-4{top:0.4rem;}
|
|
4220
4278
|
.justify-end{justify-content:flex-end;}
|
|
4279
|
+
.before\\:justify-center::before,
|
|
4221
4280
|
.justify-center{justify-content:center;}
|
|
4222
4281
|
.justify-between{justify-content:space-between;}
|
|
4223
4282
|
.justify-items-center{justify-items:center;}
|
|
@@ -4395,7 +4454,7 @@ w(dr, "styles", q`
|
|
|
4395
4454
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
4396
4455
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
4397
4456
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
4398
|
-
.leading
|
|
4457
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
4399
4458
|
@media (min-width: 480px){
|
|
4400
4459
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
4401
4460
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -4426,12 +4485,12 @@ w(dr, "styles", q`
|
|
|
4426
4485
|
margin-bottom: 0 !important;
|
|
4427
4486
|
}
|
|
4428
4487
|
`);
|
|
4429
|
-
customElements.get("w-box") || customElements.define("w-box",
|
|
4430
|
-
function
|
|
4488
|
+
customElements.get("w-box") || customElements.define("w-box", ur);
|
|
4489
|
+
function vt(r, o) {
|
|
4431
4490
|
return r.flatMap((e) => [e, o]).slice(0, -1);
|
|
4432
4491
|
}
|
|
4433
|
-
const
|
|
4434
|
-
class
|
|
4492
|
+
const pt = s`<span class=${to.separator} aria-hidden='true'>/</span>`;
|
|
4493
|
+
class vr extends _o(k) {
|
|
4435
4494
|
constructor() {
|
|
4436
4495
|
super(), this.ariaLabel = "Her er du";
|
|
4437
4496
|
}
|
|
@@ -4440,27 +4499,27 @@ class nr extends $o(k) {
|
|
|
4440
4499
|
const e = Array.from(this.children).flat(1 / 0).filter((t) => t).map((t, a) => {
|
|
4441
4500
|
if (typeof t == "string") {
|
|
4442
4501
|
const i = a === children.length - 1;
|
|
4443
|
-
return s`<span class=${
|
|
4502
|
+
return s`<span class=${to.text} aria-current=${i ? "page" : void 0}>${t}</span>`;
|
|
4444
4503
|
}
|
|
4445
|
-
return t.classList.add(t.tagName === "A" ?
|
|
4504
|
+
return t.classList.add(t.tagName === "A" ? to.link : to.text), t;
|
|
4446
4505
|
});
|
|
4447
|
-
this._children =
|
|
4506
|
+
this._children = vt(e, pt);
|
|
4448
4507
|
}
|
|
4449
4508
|
render() {
|
|
4450
4509
|
return s`
|
|
4451
4510
|
<nav aria-label=${this.ariaLabel}>
|
|
4452
|
-
<h2 class=${
|
|
4453
|
-
<div class=${
|
|
4511
|
+
<h2 class=${to.a11y}>${this.ariaLabel}</h2>
|
|
4512
|
+
<div class=${to.wrapper}>
|
|
4454
4513
|
${this._children}
|
|
4455
4514
|
</div>
|
|
4456
4515
|
</nav>
|
|
4457
4516
|
`;
|
|
4458
4517
|
}
|
|
4459
4518
|
}
|
|
4460
|
-
w(
|
|
4519
|
+
w(vr, "styles", q`
|
|
4461
4520
|
/* layer: preflights */
|
|
4462
4521
|
*,::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:
|
|
4522
|
+
*,: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
4523
|
/* layer: shortcuts */
|
|
4465
4524
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
4466
4525
|
@media (min-width: 480px){
|
|
@@ -4528,8 +4587,9 @@ w(nr, "styles", q`
|
|
|
4528
4587
|
.caret-current{caret-color:currentColor;}
|
|
4529
4588
|
.before\\:opacity-25::before,
|
|
4530
4589
|
.opacity-25{opacity:25%;}
|
|
4531
|
-
.flex
|
|
4590
|
+
.before\\:flex\\!::before,
|
|
4532
4591
|
.flex\\!{display:flex !important;}
|
|
4592
|
+
.flex{display:flex;}
|
|
4533
4593
|
.inline-flex{display:inline-flex;}
|
|
4534
4594
|
.inline-flex\\!{display:inline-flex !important;}
|
|
4535
4595
|
.grid{display:grid;}
|
|
@@ -4867,6 +4927,7 @@ w(nr, "styles", q`
|
|
|
4867
4927
|
.focus\\:outline-none:focus,
|
|
4868
4928
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
4869
4929
|
.items-end{align-items:flex-end;}
|
|
4930
|
+
.before\\:items-center::before,
|
|
4870
4931
|
.items-center{align-items:center;}
|
|
4871
4932
|
.self-center{align-self:center;}
|
|
4872
4933
|
.inset-0{inset:0rem;}
|
|
@@ -4894,6 +4955,7 @@ w(nr, "styles", q`
|
|
|
4894
4955
|
.top-20{top:2rem;}
|
|
4895
4956
|
.top-4{top:0.4rem;}
|
|
4896
4957
|
.justify-end{justify-content:flex-end;}
|
|
4958
|
+
.before\\:justify-center::before,
|
|
4897
4959
|
.justify-center{justify-content:center;}
|
|
4898
4960
|
.justify-between{justify-content:space-between;}
|
|
4899
4961
|
.justify-items-center{justify-items:center;}
|
|
@@ -5071,7 +5133,7 @@ w(nr, "styles", q`
|
|
|
5071
5133
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
5072
5134
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
5073
5135
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
5074
|
-
.leading
|
|
5136
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
5075
5137
|
@media (min-width: 480px){
|
|
5076
5138
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
5077
5139
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -5095,52 +5157,52 @@ w(nr, "styles", q`
|
|
|
5095
5157
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
5096
5158
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
5097
5159
|
}
|
|
5098
|
-
`), w(
|
|
5160
|
+
`), w(vr, "properties", {
|
|
5099
5161
|
ariaLabel: { type: String }
|
|
5100
5162
|
});
|
|
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 }) =>
|
|
5163
|
+
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", vr);
|
|
5164
|
+
const Cr = typeof window < "u";
|
|
5165
|
+
let Ye = !0;
|
|
5166
|
+
if (Cr) {
|
|
5167
|
+
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) => Ye = !e;
|
|
5106
5168
|
r.addEventListener && r.addEventListener("change", o), o(r);
|
|
5107
5169
|
}
|
|
5108
|
-
const
|
|
5170
|
+
const je = (r) => {
|
|
5109
5171
|
r.style.transition = null, r.style.backfaceVisibility = null, r.style.overflow = null;
|
|
5110
|
-
},
|
|
5111
|
-
const o =
|
|
5172
|
+
}, Ze = (r) => {
|
|
5173
|
+
const o = Ye ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
5112
5174
|
r.style.transition = `height ${o}`, r.style.backfaceVisibility = "hidden", r.style.overflow = "hidden";
|
|
5113
|
-
},
|
|
5175
|
+
}, ht = (r, o) => () => {
|
|
5114
5176
|
r.style.height = "auto", r.style.overflow = null, o && o();
|
|
5115
|
-
},
|
|
5177
|
+
}, wt = (r) => () => {
|
|
5116
5178
|
r && r();
|
|
5117
|
-
},
|
|
5179
|
+
}, Ae = (r, o) => {
|
|
5118
5180
|
const e = (() => {
|
|
5119
5181
|
if (!o)
|
|
5120
5182
|
return new Promise((i) => {
|
|
5121
5183
|
o = i;
|
|
5122
5184
|
});
|
|
5123
|
-
})(), t =
|
|
5124
|
-
|
|
5185
|
+
})(), t = ht(r, o);
|
|
5186
|
+
je(r), r.style.height = "auto";
|
|
5125
5187
|
let a = r.scrollHeight;
|
|
5126
|
-
if (
|
|
5127
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out",
|
|
5188
|
+
if (Cr && requestAnimationFrame(() => {
|
|
5189
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out", Ze(r), requestAnimationFrame(() => r.style.height = a + "px");
|
|
5128
5190
|
}), e)
|
|
5129
5191
|
return e;
|
|
5130
|
-
},
|
|
5192
|
+
}, Ce = (r, o) => {
|
|
5131
5193
|
const e = (() => {
|
|
5132
5194
|
if (!o)
|
|
5133
5195
|
return new Promise((i) => {
|
|
5134
5196
|
o = i;
|
|
5135
5197
|
});
|
|
5136
|
-
})(), t =
|
|
5137
|
-
|
|
5198
|
+
})(), t = wt(o);
|
|
5199
|
+
je(r);
|
|
5138
5200
|
let a = r.scrollHeight;
|
|
5139
|
-
if (
|
|
5140
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in",
|
|
5201
|
+
if (Cr && requestAnimationFrame(() => {
|
|
5202
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in", Ze(r), requestAnimationFrame(() => r.style.height = "0px");
|
|
5141
5203
|
}), e)
|
|
5142
5204
|
return e;
|
|
5143
|
-
},
|
|
5205
|
+
}, mt = () => s`
|
|
5144
5206
|
<svg
|
|
5145
5207
|
role="img"
|
|
5146
5208
|
aria-label="Lukk"
|
|
@@ -5150,9 +5212,9 @@ const $e = (r) => {
|
|
|
5150
5212
|
fill="none"
|
|
5151
5213
|
viewBox="0 0 16 16"
|
|
5152
5214
|
>
|
|
5153
|
-
${
|
|
5215
|
+
${$t}
|
|
5154
5216
|
</svg>
|
|
5155
|
-
`,
|
|
5217
|
+
`, xt = (r) => s`<svg
|
|
5156
5218
|
aria-label="${r.typeLabel}"
|
|
5157
5219
|
role="img"
|
|
5158
5220
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -5160,8 +5222,8 @@ const $e = (r) => {
|
|
|
5160
5222
|
height="16"
|
|
5161
5223
|
fill="none"
|
|
5162
5224
|
>
|
|
5163
|
-
${
|
|
5164
|
-
</svg>`,
|
|
5225
|
+
${yt}
|
|
5226
|
+
</svg>`, ft = (r) => s`<svg
|
|
5165
5227
|
aria-label="${r.typeLabel}"
|
|
5166
5228
|
role="img"
|
|
5167
5229
|
width="16"
|
|
@@ -5169,8 +5231,8 @@ const $e = (r) => {
|
|
|
5169
5231
|
fill="none"
|
|
5170
5232
|
xmlns="http://www.w3.org/2000/svg"
|
|
5171
5233
|
>
|
|
5172
|
-
${
|
|
5173
|
-
</svg> `,
|
|
5234
|
+
${zt}
|
|
5235
|
+
</svg> `, kt = (r) => s`<svg
|
|
5174
5236
|
aria-label="${r.typeLabel}"
|
|
5175
5237
|
role="img"
|
|
5176
5238
|
width="16"
|
|
@@ -5178,14 +5240,14 @@ const $e = (r) => {
|
|
|
5178
5240
|
fill="none"
|
|
5179
5241
|
xmlns="http://www.w3.org/2000/svg"
|
|
5180
5242
|
>
|
|
5181
|
-
${
|
|
5182
|
-
</svg> `,
|
|
5243
|
+
${_t}
|
|
5244
|
+
</svg> `, $t = D`
|
|
5183
5245
|
<path
|
|
5184
5246
|
fill="currentColor"
|
|
5185
5247
|
fill-rule="evenodd"
|
|
5186
5248
|
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
5249
|
clipRule="evenodd"
|
|
5188
|
-
/>`,
|
|
5250
|
+
/>`, yt = D`
|
|
5189
5251
|
<path
|
|
5190
5252
|
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
5253
|
fill="currentColor"
|
|
@@ -5196,13 +5258,13 @@ const $e = (r) => {
|
|
|
5196
5258
|
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
5259
|
fill="#fff"
|
|
5198
5260
|
/>
|
|
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" />`,
|
|
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" />`, zt = D`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
5200
5262
|
<path
|
|
5201
5263
|
fill-rule="evenodd"
|
|
5202
5264
|
clip-rule="evenodd"
|
|
5203
5265
|
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
5266
|
fill="#fff"
|
|
5205
|
-
/>`,
|
|
5267
|
+
/>`, _t = D`
|
|
5206
5268
|
<path
|
|
5207
5269
|
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
5270
|
fill="currentColor"
|
|
@@ -5213,18 +5275,18 @@ const $e = (r) => {
|
|
|
5213
5275
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
5214
5276
|
fill="#fff"
|
|
5215
5277
|
/>
|
|
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" />`,
|
|
5278
|
+
<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
5279
|
const o = {};
|
|
5218
5280
|
for (const [e, t] of Object.entries(r))
|
|
5219
5281
|
for (const a of e.split(" "))
|
|
5220
5282
|
o[a] = t;
|
|
5221
|
-
return
|
|
5222
|
-
},
|
|
5283
|
+
return $e(o);
|
|
5284
|
+
}, E = {
|
|
5223
5285
|
success: "success",
|
|
5224
5286
|
error: "error",
|
|
5225
5287
|
warning: "warning"
|
|
5226
5288
|
};
|
|
5227
|
-
class
|
|
5289
|
+
class pr extends k {
|
|
5228
5290
|
constructor() {
|
|
5229
5291
|
super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
|
|
5230
5292
|
}
|
|
@@ -5235,22 +5297,22 @@ class br extends k {
|
|
|
5235
5297
|
super.disconnectedCallback();
|
|
5236
5298
|
}
|
|
5237
5299
|
updated() {
|
|
5238
|
-
!this._expanded && this._wrapper &&
|
|
5300
|
+
!this._expanded && this._wrapper && Ae(this._wrapper, () => this._expanded = !0);
|
|
5239
5301
|
}
|
|
5240
5302
|
get _primaryClasses() {
|
|
5241
|
-
return
|
|
5242
|
-
[
|
|
5243
|
-
[
|
|
5244
|
-
[
|
|
5245
|
-
[
|
|
5303
|
+
return Jr({
|
|
5304
|
+
[S.toast]: !0,
|
|
5305
|
+
[S.positive]: this.type === E.success,
|
|
5306
|
+
[S.warning]: this.type === E.warning,
|
|
5307
|
+
[S.negative]: this.type === E.error
|
|
5246
5308
|
});
|
|
5247
5309
|
}
|
|
5248
5310
|
get _iconClasses() {
|
|
5249
|
-
return
|
|
5250
|
-
[
|
|
5251
|
-
[
|
|
5252
|
-
[
|
|
5253
|
-
[
|
|
5311
|
+
return Jr({
|
|
5312
|
+
[S.icon]: !0,
|
|
5313
|
+
[S.iconPositive]: this.type == E.success,
|
|
5314
|
+
[S.iconWarning]: this.type === E.warning,
|
|
5315
|
+
[S.iconNegative]: this.type === E.error
|
|
5254
5316
|
});
|
|
5255
5317
|
}
|
|
5256
5318
|
get _wrapper() {
|
|
@@ -5258,13 +5320,13 @@ class br extends k {
|
|
|
5258
5320
|
return ((o = this.renderRoot) == null ? void 0 : o.querySelector("section")) ?? null;
|
|
5259
5321
|
}
|
|
5260
5322
|
get _success() {
|
|
5261
|
-
return this.type ===
|
|
5323
|
+
return this.type === E.success;
|
|
5262
5324
|
}
|
|
5263
5325
|
get _warning() {
|
|
5264
|
-
return this.type ===
|
|
5326
|
+
return this.type === E.warning;
|
|
5265
5327
|
}
|
|
5266
5328
|
get _error() {
|
|
5267
|
-
return this.type ===
|
|
5329
|
+
return this.type === E.error;
|
|
5268
5330
|
}
|
|
5269
5331
|
get _role() {
|
|
5270
5332
|
return this._error || this._warning ? "alert" : "status";
|
|
@@ -5273,11 +5335,11 @@ class br extends k {
|
|
|
5273
5335
|
return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
|
|
5274
5336
|
}
|
|
5275
5337
|
get _iconMarkup() {
|
|
5276
|
-
return this.type ===
|
|
5338
|
+
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
5339
|
}
|
|
5278
5340
|
async collapse() {
|
|
5279
5341
|
return new Promise((o) => {
|
|
5280
|
-
this._expanded && this._wrapper ?
|
|
5342
|
+
this._expanded && this._wrapper ? Ce(this._wrapper, o) : o();
|
|
5281
5343
|
});
|
|
5282
5344
|
}
|
|
5283
5345
|
close() {
|
|
@@ -5289,25 +5351,25 @@ class br extends k {
|
|
|
5289
5351
|
this.updateComplete.then(() => this.dispatchEvent(o));
|
|
5290
5352
|
}
|
|
5291
5353
|
render() {
|
|
5292
|
-
return this.text ? s` <section class="${
|
|
5354
|
+
return this.text ? s` <section class="${S.wrapper}" aria-label="${this._typeLabel}">
|
|
5293
5355
|
<div class="${this._primaryClasses}">
|
|
5294
5356
|
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
5295
|
-
<div role="${this._role}" class="${
|
|
5357
|
+
<div role="${this._role}" class="${S.content}">
|
|
5296
5358
|
<p>${this.text}</p>
|
|
5297
5359
|
</div>
|
|
5298
|
-
${
|
|
5360
|
+
${So(
|
|
5299
5361
|
this.canclose === !0,
|
|
5300
|
-
() => s`<button class="${
|
|
5362
|
+
() => s`<button class="${S.close}" @click="${this.close}">${mt()}</button>`
|
|
5301
5363
|
)}
|
|
5302
5364
|
</div>
|
|
5303
5365
|
</section>` : s``;
|
|
5304
5366
|
}
|
|
5305
5367
|
}
|
|
5306
|
-
w(
|
|
5368
|
+
w(pr, "styles", [
|
|
5307
5369
|
q`
|
|
5308
5370
|
/* layer: preflights */
|
|
5309
5371
|
*,::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:
|
|
5372
|
+
*,: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
5373
|
/* layer: shortcuts */
|
|
5312
5374
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
5313
5375
|
@media (min-width: 480px){
|
|
@@ -5375,9 +5437,9 @@ w(br, "styles", [
|
|
|
5375
5437
|
.caret-current{caret-color:currentColor;}
|
|
5376
5438
|
.before\\:opacity-25::before,
|
|
5377
5439
|
.opacity-25{opacity:25%;}
|
|
5378
|
-
.
|
|
5379
|
-
.flex{display:flex;}
|
|
5440
|
+
.before\\:flex\\!::before,
|
|
5380
5441
|
.flex\\!{display:flex !important;}
|
|
5442
|
+
.flex{display:flex;}
|
|
5381
5443
|
.inline-flex{display:inline-flex;}
|
|
5382
5444
|
.inline-flex\\!{display:inline-flex !important;}
|
|
5383
5445
|
.grid{display:grid;}
|
|
@@ -5715,6 +5777,7 @@ w(br, "styles", [
|
|
|
5715
5777
|
.focus\\:outline-none:focus,
|
|
5716
5778
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
5717
5779
|
.items-end{align-items:flex-end;}
|
|
5780
|
+
.before\\:items-center::before,
|
|
5718
5781
|
.items-center{align-items:center;}
|
|
5719
5782
|
.self-center{align-self:center;}
|
|
5720
5783
|
.inset-0{inset:0rem;}
|
|
@@ -5742,6 +5805,7 @@ w(br, "styles", [
|
|
|
5742
5805
|
.top-20{top:2rem;}
|
|
5743
5806
|
.top-4{top:0.4rem;}
|
|
5744
5807
|
.justify-end{justify-content:flex-end;}
|
|
5808
|
+
.before\\:justify-center::before,
|
|
5745
5809
|
.justify-center{justify-content:center;}
|
|
5746
5810
|
.justify-between{justify-content:space-between;}
|
|
5747
5811
|
.justify-items-center{justify-items:center;}
|
|
@@ -5919,7 +5983,7 @@ w(br, "styles", [
|
|
|
5919
5983
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
5920
5984
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
5921
5985
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
5922
|
-
.leading
|
|
5986
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
5923
5987
|
@media (min-width: 480px){
|
|
5924
5988
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
5925
5989
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -5947,24 +6011,24 @@ w(br, "styles", [
|
|
|
5947
6011
|
display: block;
|
|
5948
6012
|
}
|
|
5949
6013
|
`
|
|
5950
|
-
]), w(
|
|
6014
|
+
]), w(pr, "properties", {
|
|
5951
6015
|
id: { type: String, attribute: !0, reflect: !0 },
|
|
5952
6016
|
type: { type: String, attribute: !0, reflect: !0 },
|
|
5953
6017
|
text: { type: String, attribute: !0, reflect: !0 },
|
|
5954
6018
|
canclose: { type: Boolean, attribute: !0, reflect: !0 }
|
|
5955
6019
|
});
|
|
5956
|
-
customElements.get("w-toast") || customElements.define("w-toast",
|
|
6020
|
+
customElements.get("w-toast") || customElements.define("w-toast", pr);
|
|
5957
6021
|
/**
|
|
5958
6022
|
* @license
|
|
5959
6023
|
* Copyright 2020 Google LLC
|
|
5960
6024
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5961
6025
|
*/
|
|
5962
|
-
const { I:
|
|
6026
|
+
const { I: qt } = Qe, Kr = () => document.createComment(""), ho = (r, o, e) => {
|
|
5963
6027
|
var t;
|
|
5964
6028
|
const a = r._$AA.parentNode, i = o === void 0 ? r._$AB : o._$AA;
|
|
5965
6029
|
if (e === void 0) {
|
|
5966
|
-
const c = a.insertBefore(
|
|
5967
|
-
e = new
|
|
6030
|
+
const c = a.insertBefore(Kr(), i), l = a.insertBefore(Kr(), i);
|
|
6031
|
+
e = new qt(c, l, r, r.options);
|
|
5968
6032
|
} else {
|
|
5969
6033
|
const c = e._$AB.nextSibling, l = e._$AM, d = l !== r;
|
|
5970
6034
|
if (d) {
|
|
@@ -5980,7 +6044,7 @@ const { I: xt } = Ue, Vr = () => document.createComment(""), so = (r, o, e) => {
|
|
|
5980
6044
|
}
|
|
5981
6045
|
}
|
|
5982
6046
|
return e;
|
|
5983
|
-
},
|
|
6047
|
+
}, 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
6048
|
var o;
|
|
5985
6049
|
(o = r._$AP) === null || o === void 0 || o.call(r, !1, !0);
|
|
5986
6050
|
let e = r._$AA;
|
|
@@ -5995,14 +6059,14 @@ const { I: xt } = Ue, Vr = () => document.createComment(""), so = (r, o, e) => {
|
|
|
5995
6059
|
* Copyright 2017 Google LLC
|
|
5996
6060
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5997
6061
|
*/
|
|
5998
|
-
const
|
|
6062
|
+
const Qr = (r, o, e) => {
|
|
5999
6063
|
const t = /* @__PURE__ */ new Map();
|
|
6000
6064
|
for (let a = o; a <= e; a++)
|
|
6001
6065
|
t.set(r[a], a);
|
|
6002
6066
|
return t;
|
|
6003
|
-
},
|
|
6067
|
+
}, Se = Zr(class extends Ar {
|
|
6004
6068
|
constructor(r) {
|
|
6005
|
-
if (super(r), r.type !==
|
|
6069
|
+
if (super(r), r.type !== jr.CHILD)
|
|
6006
6070
|
throw Error("repeat() can only be used in text expressions");
|
|
6007
6071
|
}
|
|
6008
6072
|
dt(r, o, e) {
|
|
@@ -6019,7 +6083,7 @@ const Wr = (r, o, e) => {
|
|
|
6019
6083
|
}
|
|
6020
6084
|
update(r, [o, e, t]) {
|
|
6021
6085
|
var a;
|
|
6022
|
-
const i =
|
|
6086
|
+
const i = jt(r), { values: c, keys: l } = this.dt(o, e, t);
|
|
6023
6087
|
if (!Array.isArray(i))
|
|
6024
6088
|
return this.ht = l, c;
|
|
6025
6089
|
const d = (a = this.ht) !== null && a !== void 0 ? a : this.ht = [], n = [];
|
|
@@ -6030,38 +6094,38 @@ const Wr = (r, o, e) => {
|
|
|
6030
6094
|
else if (i[u] === null)
|
|
6031
6095
|
u--;
|
|
6032
6096
|
else if (d[g] === l[p])
|
|
6033
|
-
n[p] =
|
|
6097
|
+
n[p] = W(i[g], c[p]), g++, p++;
|
|
6034
6098
|
else if (d[u] === l[h])
|
|
6035
|
-
n[h] =
|
|
6099
|
+
n[h] = W(i[u], c[h]), u--, h--;
|
|
6036
6100
|
else if (d[g] === l[h])
|
|
6037
|
-
n[h] =
|
|
6101
|
+
n[h] = W(i[g], c[h]), ho(r, n[h + 1], i[g]), g++, h--;
|
|
6038
6102
|
else if (d[u] === l[p])
|
|
6039
|
-
n[p] =
|
|
6040
|
-
else if (v === void 0 && (v =
|
|
6103
|
+
n[p] = W(i[u], c[p]), ho(r, i[g], i[u]), u--, p++;
|
|
6104
|
+
else if (v === void 0 && (v = Qr(l, p, h), b = Qr(d, g, u)), v.has(d[g]))
|
|
6041
6105
|
if (v.has(d[u])) {
|
|
6042
6106
|
const m = b.get(l[p]), $ = m !== void 0 ? i[m] : null;
|
|
6043
6107
|
if ($ === null) {
|
|
6044
|
-
const y =
|
|
6045
|
-
|
|
6108
|
+
const y = ho(r, i[g]);
|
|
6109
|
+
W(y, c[p]), n[p] = y;
|
|
6046
6110
|
} else
|
|
6047
|
-
n[p] =
|
|
6111
|
+
n[p] = W($, c[p]), ho(r, i[g], $), i[m] = null;
|
|
6048
6112
|
p++;
|
|
6049
6113
|
} else
|
|
6050
|
-
|
|
6114
|
+
cr(i[u]), u--;
|
|
6051
6115
|
else
|
|
6052
|
-
|
|
6116
|
+
cr(i[g]), g++;
|
|
6053
6117
|
for (; p <= h; ) {
|
|
6054
|
-
const m =
|
|
6055
|
-
|
|
6118
|
+
const m = ho(r, n[h + 1]);
|
|
6119
|
+
W(m, c[p]), n[p++] = m;
|
|
6056
6120
|
}
|
|
6057
6121
|
for (; g <= u; ) {
|
|
6058
6122
|
const m = i[g++];
|
|
6059
|
-
m !== null &&
|
|
6123
|
+
m !== null && cr(m);
|
|
6060
6124
|
}
|
|
6061
|
-
return this.ht = l,
|
|
6125
|
+
return this.ht = l, Yt(r, n), N;
|
|
6062
6126
|
}
|
|
6063
6127
|
});
|
|
6064
|
-
class
|
|
6128
|
+
class hr extends k {
|
|
6065
6129
|
constructor() {
|
|
6066
6130
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
6067
6131
|
}
|
|
@@ -6135,13 +6199,13 @@ class gr extends k {
|
|
|
6135
6199
|
}
|
|
6136
6200
|
render() {
|
|
6137
6201
|
return s`
|
|
6138
|
-
<aside class="${
|
|
6139
|
-
<div class="${
|
|
6140
|
-
${
|
|
6202
|
+
<aside class="${ar.container}">
|
|
6203
|
+
<div class="${ar.toaster}" id="w-toast-container-list">
|
|
6204
|
+
${Se(
|
|
6141
6205
|
this._toastsArray,
|
|
6142
6206
|
(o) => o.id,
|
|
6143
6207
|
(o) => s` <w-toast
|
|
6144
|
-
class="${
|
|
6208
|
+
class="${ar.content}"
|
|
6145
6209
|
id="${o.id}"
|
|
6146
6210
|
type="${o.type}"
|
|
6147
6211
|
text="${o.text}"
|
|
@@ -6155,11 +6219,11 @@ class gr extends k {
|
|
|
6155
6219
|
`;
|
|
6156
6220
|
}
|
|
6157
6221
|
}
|
|
6158
|
-
w(
|
|
6222
|
+
w(hr, "styles", [
|
|
6159
6223
|
q`
|
|
6160
6224
|
/* layer: preflights */
|
|
6161
6225
|
*,::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:
|
|
6226
|
+
*,: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
6227
|
/* layer: shortcuts */
|
|
6164
6228
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
6165
6229
|
@media (min-width: 480px){
|
|
@@ -6227,9 +6291,9 @@ w(gr, "styles", [
|
|
|
6227
6291
|
.caret-current{caret-color:currentColor;}
|
|
6228
6292
|
.before\\:opacity-25::before,
|
|
6229
6293
|
.opacity-25{opacity:25%;}
|
|
6230
|
-
.
|
|
6231
|
-
.flex{display:flex;}
|
|
6294
|
+
.before\\:flex\\!::before,
|
|
6232
6295
|
.flex\\!{display:flex !important;}
|
|
6296
|
+
.flex{display:flex;}
|
|
6233
6297
|
.inline-flex{display:inline-flex;}
|
|
6234
6298
|
.inline-flex\\!{display:inline-flex !important;}
|
|
6235
6299
|
.grid{display:grid;}
|
|
@@ -6567,6 +6631,7 @@ w(gr, "styles", [
|
|
|
6567
6631
|
.focus\\:outline-none:focus,
|
|
6568
6632
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
6569
6633
|
.items-end{align-items:flex-end;}
|
|
6634
|
+
.before\\:items-center::before,
|
|
6570
6635
|
.items-center{align-items:center;}
|
|
6571
6636
|
.self-center{align-self:center;}
|
|
6572
6637
|
.inset-0{inset:0rem;}
|
|
@@ -6594,6 +6659,7 @@ w(gr, "styles", [
|
|
|
6594
6659
|
.top-20{top:2rem;}
|
|
6595
6660
|
.top-4{top:0.4rem;}
|
|
6596
6661
|
.justify-end{justify-content:flex-end;}
|
|
6662
|
+
.before\\:justify-center::before,
|
|
6597
6663
|
.justify-center{justify-content:center;}
|
|
6598
6664
|
.justify-between{justify-content:space-between;}
|
|
6599
6665
|
.justify-items-center{justify-items:center;}
|
|
@@ -6771,7 +6837,7 @@ w(gr, "styles", [
|
|
|
6771
6837
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
6772
6838
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
6773
6839
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
6774
|
-
.leading
|
|
6840
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
6775
6841
|
@media (min-width: 480px){
|
|
6776
6842
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
6777
6843
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -6799,12 +6865,12 @@ w(gr, "styles", [
|
|
|
6799
6865
|
display: block;
|
|
6800
6866
|
}
|
|
6801
6867
|
`
|
|
6802
|
-
]), w(
|
|
6868
|
+
]), w(hr, "properties", {
|
|
6803
6869
|
_toasts: { state: !0 }
|
|
6804
6870
|
});
|
|
6805
|
-
customElements.get("w-toast-container") || customElements.define("w-toast-container",
|
|
6806
|
-
function
|
|
6807
|
-
if (!
|
|
6871
|
+
customElements.get("w-toast-container") || customElements.define("w-toast-container", hr);
|
|
6872
|
+
function ba(r, o) {
|
|
6873
|
+
if (!ko)
|
|
6808
6874
|
return;
|
|
6809
6875
|
const e = customElements.get("w-toast-container").init(), t = {
|
|
6810
6876
|
id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
|
|
@@ -6815,25 +6881,25 @@ function ta(r, o) {
|
|
|
6815
6881
|
};
|
|
6816
6882
|
return e.set(t), t;
|
|
6817
6883
|
}
|
|
6818
|
-
function
|
|
6819
|
-
return
|
|
6884
|
+
function ga(r) {
|
|
6885
|
+
return ko ? customElements.get("w-toast-container").init().del(r) : void 0;
|
|
6820
6886
|
}
|
|
6821
|
-
function
|
|
6822
|
-
if (!
|
|
6887
|
+
function sa(r, o) {
|
|
6888
|
+
if (!ko)
|
|
6823
6889
|
return;
|
|
6824
6890
|
const e = customElements.get("w-toast-container").init();
|
|
6825
6891
|
return e.set({ ...e.get(r), ...o }), e.get(r);
|
|
6826
6892
|
}
|
|
6827
|
-
class
|
|
6893
|
+
class wr extends k {
|
|
6828
6894
|
constructor() {
|
|
6829
|
-
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url =
|
|
6895
|
+
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = ko ? window.location.href : "";
|
|
6830
6896
|
}
|
|
6831
6897
|
async connectedCallback() {
|
|
6832
6898
|
if (super.connectedCallback(), !this.api) {
|
|
6833
6899
|
console.error('Broadcast "api" attribute invalid or undefined');
|
|
6834
6900
|
return;
|
|
6835
6901
|
}
|
|
6836
|
-
|
|
6902
|
+
ko && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
|
|
6837
6903
|
}
|
|
6838
6904
|
async _fetchMessage() {
|
|
6839
6905
|
const o = `${this.api}?path=${this.url}`;
|
|
@@ -6851,7 +6917,7 @@ class sr extends k {
|
|
|
6851
6917
|
const o = this._messages.filter((e) => !this._hiddenMessageIds.includes(e.id));
|
|
6852
6918
|
return s`
|
|
6853
6919
|
<aside class=${`${o.length === 0 ? "hidden" : "mb-16"}`}>
|
|
6854
|
-
${
|
|
6920
|
+
${Se(
|
|
6855
6921
|
o,
|
|
6856
6922
|
({ id: e }) => `broadcast-${e}`,
|
|
6857
6923
|
({ id: e, message: t }) => s`<w-toast
|
|
@@ -6867,7 +6933,7 @@ class sr extends k {
|
|
|
6867
6933
|
`;
|
|
6868
6934
|
}
|
|
6869
6935
|
}
|
|
6870
|
-
w(
|
|
6936
|
+
w(wr, "properties", {
|
|
6871
6937
|
_messages: {
|
|
6872
6938
|
state: !0,
|
|
6873
6939
|
hasChanged(o, e) {
|
|
@@ -6884,10 +6950,10 @@ w(sr, "properties", {
|
|
|
6884
6950
|
interval: { type: Number, attribute: !0, reflect: !0 },
|
|
6885
6951
|
url: { type: String, attribute: !0, reflect: !0 },
|
|
6886
6952
|
api: { type: String, attribute: !0, reflect: !0 }
|
|
6887
|
-
}), w(
|
|
6953
|
+
}), w(wr, "styles", q`
|
|
6888
6954
|
/* layer: preflights */
|
|
6889
6955
|
*,::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:
|
|
6956
|
+
*,: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
6957
|
/* layer: shortcuts */
|
|
6892
6958
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
6893
6959
|
@media (min-width: 480px){
|
|
@@ -6955,8 +7021,9 @@ w(sr, "properties", {
|
|
|
6955
7021
|
.caret-current{caret-color:currentColor;}
|
|
6956
7022
|
.before\\:opacity-25::before,
|
|
6957
7023
|
.opacity-25{opacity:25%;}
|
|
6958
|
-
.flex
|
|
7024
|
+
.before\\:flex\\!::before,
|
|
6959
7025
|
.flex\\!{display:flex !important;}
|
|
7026
|
+
.flex{display:flex;}
|
|
6960
7027
|
.inline-flex{display:inline-flex;}
|
|
6961
7028
|
.inline-flex\\!{display:inline-flex !important;}
|
|
6962
7029
|
.grid{display:grid;}
|
|
@@ -7294,6 +7361,7 @@ w(sr, "properties", {
|
|
|
7294
7361
|
.focus\\:outline-none:focus,
|
|
7295
7362
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
7296
7363
|
.items-end{align-items:flex-end;}
|
|
7364
|
+
.before\\:items-center::before,
|
|
7297
7365
|
.items-center{align-items:center;}
|
|
7298
7366
|
.self-center{align-self:center;}
|
|
7299
7367
|
.inset-0{inset:0rem;}
|
|
@@ -7321,6 +7389,7 @@ w(sr, "properties", {
|
|
|
7321
7389
|
.top-20{top:2rem;}
|
|
7322
7390
|
.top-4{top:0.4rem;}
|
|
7323
7391
|
.justify-end{justify-content:flex-end;}
|
|
7392
|
+
.before\\:justify-center::before,
|
|
7324
7393
|
.justify-center{justify-content:center;}
|
|
7325
7394
|
.justify-between{justify-content:space-between;}
|
|
7326
7395
|
.justify-items-center{justify-items:center;}
|
|
@@ -7499,7 +7568,7 @@ w(sr, "properties", {
|
|
|
7499
7568
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
7500
7569
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
7501
7570
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
7502
|
-
.leading
|
|
7571
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
7503
7572
|
@media (min-width: 480px){
|
|
7504
7573
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
7505
7574
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -7524,24 +7593,24 @@ w(sr, "properties", {
|
|
|
7524
7593
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
7525
7594
|
}
|
|
7526
7595
|
`);
|
|
7527
|
-
customElements.get("w-broadcast") || customElements.define("w-broadcast",
|
|
7528
|
-
function
|
|
7596
|
+
customElements.get("w-broadcast") || customElements.define("w-broadcast", wr);
|
|
7597
|
+
function qo(r) {
|
|
7529
7598
|
return r.split("-")[0];
|
|
7530
7599
|
}
|
|
7531
|
-
function
|
|
7600
|
+
function Wo(r) {
|
|
7532
7601
|
return r.split("-")[1];
|
|
7533
7602
|
}
|
|
7534
|
-
function
|
|
7535
|
-
return ["top", "bottom"].includes(
|
|
7603
|
+
function Xo(r) {
|
|
7604
|
+
return ["top", "bottom"].includes(qo(r)) ? "x" : "y";
|
|
7536
7605
|
}
|
|
7537
|
-
function
|
|
7606
|
+
function Sr(r) {
|
|
7538
7607
|
return r === "y" ? "height" : "width";
|
|
7539
7608
|
}
|
|
7540
|
-
function
|
|
7609
|
+
function oe(r, o, e) {
|
|
7541
7610
|
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 =
|
|
7611
|
+
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
7612
|
let b;
|
|
7544
|
-
switch (
|
|
7613
|
+
switch (qo(o)) {
|
|
7545
7614
|
case "top":
|
|
7546
7615
|
b = { x: i, y: t.y - a.height };
|
|
7547
7616
|
break;
|
|
@@ -7557,7 +7626,7 @@ function Gr(r, o, e) {
|
|
|
7557
7626
|
default:
|
|
7558
7627
|
b = { x: t.x, y: t.y };
|
|
7559
7628
|
}
|
|
7560
|
-
switch (
|
|
7629
|
+
switch (Wo(o)) {
|
|
7561
7630
|
case "start":
|
|
7562
7631
|
b[l] -= n * (e && v ? -1 : 1);
|
|
7563
7632
|
break;
|
|
@@ -7566,268 +7635,268 @@ function Gr(r, o, e) {
|
|
|
7566
7635
|
}
|
|
7567
7636
|
return b;
|
|
7568
7637
|
}
|
|
7569
|
-
const
|
|
7638
|
+
const Zt = async (r, o, e) => {
|
|
7570
7639
|
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 } =
|
|
7640
|
+
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
7641
|
for (let p = 0; p < i.length; p++) {
|
|
7573
7642
|
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 } =
|
|
7643
|
+
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
7644
|
}
|
|
7576
7645
|
return { x: n, y: v, placement: b, strategy: a, middlewareData: g };
|
|
7577
7646
|
};
|
|
7578
|
-
function
|
|
7647
|
+
function Ee(r) {
|
|
7579
7648
|
return typeof r != "number" ? function(o) {
|
|
7580
7649
|
return { top: 0, right: 0, bottom: 0, left: 0, ...o };
|
|
7581
7650
|
}(r) : { top: r, right: r, bottom: r, left: r };
|
|
7582
7651
|
}
|
|
7583
|
-
function
|
|
7652
|
+
function Po(r) {
|
|
7584
7653
|
return { ...r, top: r.y, left: r.x, right: r.x + r.width, bottom: r.y + r.height };
|
|
7585
7654
|
}
|
|
7586
|
-
async function
|
|
7655
|
+
async function Me(r, o) {
|
|
7587
7656
|
var e;
|
|
7588
7657
|
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 =
|
|
7658
|
+
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
7659
|
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
7660
|
}
|
|
7592
|
-
const
|
|
7593
|
-
function
|
|
7594
|
-
return
|
|
7661
|
+
const At = Math.min, Ct = Math.max;
|
|
7662
|
+
function mr(r, o, e) {
|
|
7663
|
+
return Ct(r, At(o, e));
|
|
7595
7664
|
}
|
|
7596
|
-
const
|
|
7665
|
+
const St = (r) => ({ name: "arrow", options: r, async fn(o) {
|
|
7597
7666
|
const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: i, placement: c, rects: l, platform: d } = o;
|
|
7598
7667
|
if (e == null)
|
|
7599
7668
|
return {};
|
|
7600
|
-
const n =
|
|
7669
|
+
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
7670
|
let z = X ? b === "y" ? X.clientHeight || 0 : X.clientWidth || 0 : 0;
|
|
7602
7671
|
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) =>
|
|
7672
|
+
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];
|
|
7673
|
+
return { [b]: v[b] - (oo ? _ < Q ? Q - _ : so - _ : 0), data: { [b]: A, centerOffset: _ - A } };
|
|
7674
|
+
} }), Et = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
7675
|
+
function No(r) {
|
|
7676
|
+
return r.replace(/left|right|bottom|top/g, (o) => Et[o]);
|
|
7608
7677
|
}
|
|
7609
|
-
function
|
|
7678
|
+
function Mt(r, o, e) {
|
|
7610
7679
|
e === void 0 && (e = !1);
|
|
7611
|
-
const t =
|
|
7680
|
+
const t = Wo(r), a = Xo(r), i = Sr(a);
|
|
7612
7681
|
let c = a === "x" ? t === (e ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
|
|
7613
|
-
return o.reference[i] > o.floating[i] && (c =
|
|
7682
|
+
return o.reference[i] > o.floating[i] && (c = No(c)), { main: c, cross: No(c) };
|
|
7614
7683
|
}
|
|
7615
|
-
const
|
|
7616
|
-
function
|
|
7617
|
-
return r.replace(/start|end/g, (o) =>
|
|
7684
|
+
const Lt = { start: "end", end: "start" };
|
|
7685
|
+
function re(r) {
|
|
7686
|
+
return r.replace(/start|end/g, (o) => Lt[o]);
|
|
7618
7687
|
}
|
|
7619
|
-
const
|
|
7620
|
-
|
|
7621
|
-
const
|
|
7688
|
+
const Tt = ["top", "right", "bottom", "left"];
|
|
7689
|
+
Tt.reduce((r, o) => r.concat(o, o + "-start", o + "-end"), []);
|
|
7690
|
+
const Rt = function(r) {
|
|
7622
7691
|
return r === void 0 && (r = {}), { name: "flip", options: r, async fn(o) {
|
|
7623
7692
|
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
|
|
7693
|
+
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(_) {
|
|
7694
|
+
const A = No(_);
|
|
7695
|
+
return [re(_), A, re(A)];
|
|
7696
|
+
}(c)), $ = [c, ...m], y = await Me(o, p), X = [];
|
|
7628
7697
|
let z = ((e = a.flip) == null ? void 0 : e.overflows) || [];
|
|
7629
7698
|
if (n && X.push(y[h]), v) {
|
|
7630
|
-
const { main: _, cross: A } =
|
|
7699
|
+
const { main: _, cross: A } = Mt(t, i, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
7631
7700
|
X.push(y[_], y[A]);
|
|
7632
7701
|
}
|
|
7633
7702
|
if (z = [...z, { placement: t, overflows: X }], !X.every((_) => _ <= 0)) {
|
|
7634
|
-
var
|
|
7635
|
-
const _ = ((
|
|
7703
|
+
var jo, Q;
|
|
7704
|
+
const _ = ((jo = (Q = a.flip) == null ? void 0 : Q.index) != null ? jo : 0) + 1, A = $[_];
|
|
7636
7705
|
if (A)
|
|
7637
7706
|
return { data: { index: _, overflows: z }, reset: { placement: A } };
|
|
7638
|
-
let
|
|
7707
|
+
let oo = "bottom";
|
|
7639
7708
|
switch (g) {
|
|
7640
7709
|
case "bestFit": {
|
|
7641
|
-
var
|
|
7642
|
-
const
|
|
7643
|
-
|
|
7710
|
+
var so;
|
|
7711
|
+
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;
|
|
7712
|
+
Mr && (oo = Mr);
|
|
7644
7713
|
break;
|
|
7645
7714
|
}
|
|
7646
7715
|
case "initialPlacement":
|
|
7647
|
-
|
|
7716
|
+
oo = c;
|
|
7648
7717
|
}
|
|
7649
|
-
if (t !==
|
|
7650
|
-
return { reset: { placement:
|
|
7718
|
+
if (t !== oo)
|
|
7719
|
+
return { reset: { placement: oo } };
|
|
7651
7720
|
}
|
|
7652
7721
|
return {};
|
|
7653
7722
|
} };
|
|
7654
|
-
},
|
|
7723
|
+
}, Bt = function(r) {
|
|
7655
7724
|
return r === void 0 && (r = 0), { name: "offset", options: r, async fn(o) {
|
|
7656
7725
|
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 =
|
|
7726
|
+
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
7727
|
let { mainAxis: $, crossAxis: y, alignmentAxis: X } = typeof m == "number" ? { mainAxis: m, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...m };
|
|
7659
7728
|
return g && typeof X == "number" && (y = g === "end" ? -1 * X : X), u ? { x: y * h, y: $ * p } : { x: $ * p, y: y * h };
|
|
7660
7729
|
}(o, r);
|
|
7661
7730
|
return { x: e + a.x, y: t + a.y, data: a };
|
|
7662
7731
|
} };
|
|
7663
7732
|
};
|
|
7664
|
-
function
|
|
7733
|
+
function Pt(r) {
|
|
7665
7734
|
return r === "x" ? "y" : "x";
|
|
7666
7735
|
}
|
|
7667
|
-
const
|
|
7736
|
+
const Nt = function(r) {
|
|
7668
7737
|
return r === void 0 && (r = {}), { name: "shift", options: r, async fn(o) {
|
|
7669
7738
|
const { x: e, y: t, placement: a } = o, { mainAxis: i = !0, crossAxis: c = !1, limiter: l = { fn: (m) => {
|
|
7670
7739
|
let { x: $, y } = m;
|
|
7671
7740
|
return { x: $, y };
|
|
7672
|
-
} }, ...d } = r, n = { x: e, y: t }, v = await
|
|
7741
|
+
} }, ...d } = r, n = { x: e, y: t }, v = await Me(o, d), b = Xo(qo(a)), g = Pt(b);
|
|
7673
7742
|
let u = n[b], p = n[g];
|
|
7674
7743
|
if (i) {
|
|
7675
7744
|
const m = b === "y" ? "bottom" : "right";
|
|
7676
|
-
u =
|
|
7745
|
+
u = mr(u + v[b === "y" ? "top" : "left"], u, u - v[m]);
|
|
7677
7746
|
}
|
|
7678
7747
|
if (c) {
|
|
7679
7748
|
const m = g === "y" ? "bottom" : "right";
|
|
7680
|
-
p =
|
|
7749
|
+
p = mr(p + v[g === "y" ? "top" : "left"], p, p - v[m]);
|
|
7681
7750
|
}
|
|
7682
7751
|
const h = l.fn({ ...o, [b]: u, [g]: p });
|
|
7683
7752
|
return { ...h, data: { x: h.x - e, y: h.y - t } };
|
|
7684
7753
|
} };
|
|
7685
7754
|
};
|
|
7686
|
-
function
|
|
7755
|
+
function Le(r) {
|
|
7687
7756
|
return r && r.document && r.location && r.alert && r.setInterval;
|
|
7688
7757
|
}
|
|
7689
|
-
function
|
|
7758
|
+
function I(r) {
|
|
7690
7759
|
if (r == null)
|
|
7691
7760
|
return window;
|
|
7692
|
-
if (!
|
|
7761
|
+
if (!Le(r)) {
|
|
7693
7762
|
const o = r.ownerDocument;
|
|
7694
7763
|
return o && o.defaultView || window;
|
|
7695
7764
|
}
|
|
7696
7765
|
return r;
|
|
7697
7766
|
}
|
|
7698
|
-
function
|
|
7699
|
-
return
|
|
7767
|
+
function Yo(r) {
|
|
7768
|
+
return I(r).getComputedStyle(r);
|
|
7700
7769
|
}
|
|
7701
|
-
function
|
|
7702
|
-
return
|
|
7770
|
+
function P(r) {
|
|
7771
|
+
return Le(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
|
|
7703
7772
|
}
|
|
7704
|
-
function
|
|
7773
|
+
function Te() {
|
|
7705
7774
|
const r = navigator.userAgentData;
|
|
7706
7775
|
return r != null && r.brands ? r.brands.map((o) => o.brand + "/" + o.version).join(" ") : navigator.userAgent;
|
|
7707
7776
|
}
|
|
7708
|
-
function
|
|
7709
|
-
return r instanceof
|
|
7777
|
+
function L(r) {
|
|
7778
|
+
return r instanceof I(r).HTMLElement;
|
|
7710
7779
|
}
|
|
7711
|
-
function
|
|
7712
|
-
return r instanceof
|
|
7780
|
+
function bo(r) {
|
|
7781
|
+
return r instanceof I(r).Element;
|
|
7713
7782
|
}
|
|
7714
|
-
function
|
|
7715
|
-
return typeof ShadowRoot > "u" ? !1 : r instanceof
|
|
7783
|
+
function Er(r) {
|
|
7784
|
+
return typeof ShadowRoot > "u" ? !1 : r instanceof I(r).ShadowRoot || r instanceof ShadowRoot;
|
|
7716
7785
|
}
|
|
7717
|
-
function
|
|
7718
|
-
const { overflow: o, overflowX: e, overflowY: t } =
|
|
7786
|
+
function Go(r) {
|
|
7787
|
+
const { overflow: o, overflowX: e, overflowY: t } = Yo(r);
|
|
7719
7788
|
return /auto|scroll|overlay|hidden/.test(o + t + e);
|
|
7720
7789
|
}
|
|
7721
|
-
function
|
|
7722
|
-
return ["table", "td", "th"].includes(
|
|
7790
|
+
function It(r) {
|
|
7791
|
+
return ["table", "td", "th"].includes(P(r));
|
|
7723
7792
|
}
|
|
7724
|
-
function
|
|
7725
|
-
const o = /firefox/i.test(
|
|
7793
|
+
function ee(r) {
|
|
7794
|
+
const o = /firefox/i.test(Te()), e = Yo(r);
|
|
7726
7795
|
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
7796
|
}
|
|
7728
|
-
function
|
|
7729
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
7797
|
+
function Re() {
|
|
7798
|
+
return !/^((?!chrome|android).)*safari/i.test(Te());
|
|
7730
7799
|
}
|
|
7731
|
-
const
|
|
7732
|
-
function
|
|
7800
|
+
const te = Math.min, wo = Math.max, Io = Math.round;
|
|
7801
|
+
function J(r, o, e) {
|
|
7733
7802
|
var t, a, i, c;
|
|
7734
7803
|
o === void 0 && (o = !1), e === void 0 && (e = !1);
|
|
7735
7804
|
const l = r.getBoundingClientRect();
|
|
7736
7805
|
let d = 1, n = 1;
|
|
7737
|
-
o &&
|
|
7738
|
-
const v =
|
|
7806
|
+
o && L(r) && (d = r.offsetWidth > 0 && Io(l.width) / r.offsetWidth || 1, n = r.offsetHeight > 0 && Io(l.height) / r.offsetHeight || 1);
|
|
7807
|
+
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
7808
|
return { width: p, height: h, top: u, right: g + p, bottom: u + h, left: g, x: g, y: u };
|
|
7740
7809
|
}
|
|
7741
|
-
function
|
|
7742
|
-
return (o = r, (o instanceof
|
|
7810
|
+
function H(r) {
|
|
7811
|
+
return (o = r, (o instanceof I(o).Node ? r.ownerDocument : r.document) || window.document).documentElement;
|
|
7743
7812
|
var o;
|
|
7744
7813
|
}
|
|
7745
|
-
function
|
|
7746
|
-
return
|
|
7814
|
+
function Jo(r) {
|
|
7815
|
+
return bo(r) ? { scrollLeft: r.scrollLeft, scrollTop: r.scrollTop } : { scrollLeft: r.pageXOffset, scrollTop: r.pageYOffset };
|
|
7747
7816
|
}
|
|
7748
|
-
function
|
|
7749
|
-
return
|
|
7817
|
+
function Be(r) {
|
|
7818
|
+
return J(H(r)).left + Jo(r).scrollLeft;
|
|
7750
7819
|
}
|
|
7751
|
-
function
|
|
7752
|
-
const t =
|
|
7753
|
-
const n =
|
|
7754
|
-
return
|
|
7820
|
+
function Ot(r, o, e) {
|
|
7821
|
+
const t = L(o), a = H(o), i = J(r, t && function(d) {
|
|
7822
|
+
const n = J(d);
|
|
7823
|
+
return Io(n.width) !== d.offsetWidth || Io(n.height) !== d.offsetHeight;
|
|
7755
7824
|
}(o), e === "fixed");
|
|
7756
7825
|
let c = { scrollLeft: 0, scrollTop: 0 };
|
|
7757
7826
|
const l = { x: 0, y: 0 };
|
|
7758
7827
|
if (t || !t && e !== "fixed")
|
|
7759
|
-
if ((
|
|
7760
|
-
const d =
|
|
7828
|
+
if ((P(o) !== "body" || Go(a)) && (c = Jo(o)), L(o)) {
|
|
7829
|
+
const d = J(o, !0);
|
|
7761
7830
|
l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
|
|
7762
7831
|
} else
|
|
7763
|
-
a && (l.x =
|
|
7832
|
+
a && (l.x = Be(a));
|
|
7764
7833
|
return { x: i.left + c.scrollLeft - l.x, y: i.top + c.scrollTop - l.y, width: i.width, height: i.height };
|
|
7765
7834
|
}
|
|
7766
|
-
function
|
|
7767
|
-
return
|
|
7835
|
+
function Pe(r) {
|
|
7836
|
+
return P(r) === "html" ? r : r.assignedSlot || r.parentNode || (Er(r) ? r.host : null) || H(r);
|
|
7768
7837
|
}
|
|
7769
|
-
function
|
|
7770
|
-
return
|
|
7838
|
+
function ae(r) {
|
|
7839
|
+
return L(r) && getComputedStyle(r).position !== "fixed" ? r.offsetParent : null;
|
|
7771
7840
|
}
|
|
7772
|
-
function
|
|
7773
|
-
const o =
|
|
7774
|
-
let e =
|
|
7775
|
-
for (; e &&
|
|
7776
|
-
e =
|
|
7777
|
-
return e && (
|
|
7778
|
-
let a =
|
|
7779
|
-
for (
|
|
7780
|
-
if (
|
|
7841
|
+
function xr(r) {
|
|
7842
|
+
const o = I(r);
|
|
7843
|
+
let e = ae(r);
|
|
7844
|
+
for (; e && It(e) && getComputedStyle(e).position === "static"; )
|
|
7845
|
+
e = ae(e);
|
|
7846
|
+
return e && (P(e) === "html" || P(e) === "body" && getComputedStyle(e).position === "static" && !ee(e)) ? o : e || function(t) {
|
|
7847
|
+
let a = Pe(t);
|
|
7848
|
+
for (Er(a) && (a = a.host); L(a) && !["html", "body"].includes(P(a)); ) {
|
|
7849
|
+
if (ee(a))
|
|
7781
7850
|
return a;
|
|
7782
7851
|
a = a.parentNode;
|
|
7783
7852
|
}
|
|
7784
7853
|
return null;
|
|
7785
7854
|
}(r) || o;
|
|
7786
7855
|
}
|
|
7787
|
-
function
|
|
7788
|
-
if (
|
|
7856
|
+
function ie(r) {
|
|
7857
|
+
if (L(r))
|
|
7789
7858
|
return { width: r.offsetWidth, height: r.offsetHeight };
|
|
7790
|
-
const o =
|
|
7859
|
+
const o = J(r);
|
|
7791
7860
|
return { width: o.width, height: o.height };
|
|
7792
7861
|
}
|
|
7793
|
-
function
|
|
7794
|
-
const o =
|
|
7795
|
-
return ["html", "body", "#document"].includes(
|
|
7862
|
+
function Ne(r) {
|
|
7863
|
+
const o = Pe(r);
|
|
7864
|
+
return ["html", "body", "#document"].includes(P(o)) ? r.ownerDocument.body : L(o) && Go(o) ? o : Ne(o);
|
|
7796
7865
|
}
|
|
7797
|
-
function
|
|
7866
|
+
function Ie(r, o) {
|
|
7798
7867
|
var e;
|
|
7799
7868
|
o === void 0 && (o = []);
|
|
7800
|
-
const t =
|
|
7801
|
-
return a ? l : l.concat(
|
|
7869
|
+
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);
|
|
7870
|
+
return a ? l : l.concat(Ie(c));
|
|
7802
7871
|
}
|
|
7803
|
-
function
|
|
7804
|
-
return o === "viewport" ?
|
|
7805
|
-
const i =
|
|
7872
|
+
function ce(r, o, e) {
|
|
7873
|
+
return o === "viewport" ? Po(function(t, a) {
|
|
7874
|
+
const i = I(t), c = H(t), l = i.visualViewport;
|
|
7806
7875
|
let d = c.clientWidth, n = c.clientHeight, v = 0, b = 0;
|
|
7807
7876
|
if (l) {
|
|
7808
7877
|
d = l.width, n = l.height;
|
|
7809
|
-
const g =
|
|
7878
|
+
const g = Re();
|
|
7810
7879
|
(g || !g && a === "fixed") && (v = l.offsetLeft, b = l.offsetTop);
|
|
7811
7880
|
}
|
|
7812
7881
|
return { width: d, height: n, x: v, y: b };
|
|
7813
|
-
}(r, e)) :
|
|
7814
|
-
const i =
|
|
7882
|
+
}(r, e)) : bo(o) ? function(t, a) {
|
|
7883
|
+
const i = J(t, !1, a === "fixed"), c = i.top + t.clientTop, l = i.left + t.clientLeft;
|
|
7815
7884
|
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) :
|
|
7885
|
+
}(o, e) : Po(function(t) {
|
|
7817
7886
|
var a;
|
|
7818
|
-
const i =
|
|
7819
|
-
let v = -c.scrollLeft +
|
|
7887
|
+
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);
|
|
7888
|
+
let v = -c.scrollLeft + Be(t);
|
|
7820
7889
|
const b = -c.scrollTop;
|
|
7821
|
-
return
|
|
7822
|
-
}(
|
|
7890
|
+
return Yo(l || i).direction === "rtl" && (v += wo(i.clientWidth, l ? l.clientWidth : 0) - d), { width: d, height: n, x: v, y: b };
|
|
7891
|
+
}(H(r)));
|
|
7823
7892
|
}
|
|
7824
|
-
function
|
|
7825
|
-
const o =
|
|
7826
|
-
return
|
|
7893
|
+
function Ht(r) {
|
|
7894
|
+
const o = Ie(r), e = ["absolute", "fixed"].includes(Yo(r).position) && L(r) ? xr(r) : r;
|
|
7895
|
+
return bo(e) ? o.filter((t) => bo(t) && function(a, i) {
|
|
7827
7896
|
const c = i.getRootNode == null ? void 0 : i.getRootNode();
|
|
7828
7897
|
if (a.contains(i))
|
|
7829
7898
|
return !0;
|
|
7830
|
-
if (c &&
|
|
7899
|
+
if (c && Er(c)) {
|
|
7831
7900
|
let l = i;
|
|
7832
7901
|
do {
|
|
7833
7902
|
if (l && a === l)
|
|
@@ -7836,68 +7905,68 @@ function Tt(r) {
|
|
|
7836
7905
|
} while (l);
|
|
7837
7906
|
}
|
|
7838
7907
|
return !1;
|
|
7839
|
-
}(t, e) &&
|
|
7908
|
+
}(t, e) && P(t) !== "body") : [];
|
|
7840
7909
|
}
|
|
7841
|
-
const
|
|
7910
|
+
const Dt = { getClippingRect: function(r) {
|
|
7842
7911
|
let { element: o, boundary: e, rootBoundary: t, strategy: a } = r;
|
|
7843
|
-
const i = [...e === "clippingAncestors" ?
|
|
7844
|
-
const v =
|
|
7845
|
-
return d.top =
|
|
7846
|
-
},
|
|
7912
|
+
const i = [...e === "clippingAncestors" ? Ht(o) : [].concat(e), t], c = i[0], l = i.reduce((d, n) => {
|
|
7913
|
+
const v = ce(o, n, a);
|
|
7914
|
+
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;
|
|
7915
|
+
}, ce(o, c, a));
|
|
7847
7916
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
7848
7917
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(r) {
|
|
7849
7918
|
let { rect: o, offsetParent: e, strategy: t } = r;
|
|
7850
|
-
const a =
|
|
7919
|
+
const a = L(e), i = H(e);
|
|
7851
7920
|
if (e === i)
|
|
7852
7921
|
return o;
|
|
7853
7922
|
let c = { scrollLeft: 0, scrollTop: 0 };
|
|
7854
7923
|
const l = { x: 0, y: 0 };
|
|
7855
|
-
if ((a || !a && t !== "fixed") && ((
|
|
7856
|
-
const d =
|
|
7924
|
+
if ((a || !a && t !== "fixed") && ((P(e) !== "body" || Go(i)) && (c = Jo(e)), L(e))) {
|
|
7925
|
+
const d = J(e, !0);
|
|
7857
7926
|
l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
|
|
7858
7927
|
}
|
|
7859
7928
|
return { ...o, x: o.x - c.scrollLeft + l.x, y: o.y - c.scrollTop + l.y };
|
|
7860
|
-
}, isElement:
|
|
7929
|
+
}, isElement: bo, getDimensions: ie, getOffsetParent: xr, getDocumentElement: H, getElementRects: (r) => {
|
|
7861
7930
|
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
|
|
7931
|
+
return { reference: Ot(o, xr(e), t), floating: { ...ie(e), x: 0, y: 0 } };
|
|
7932
|
+
}, 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 = {
|
|
7933
|
+
[$o]: yo,
|
|
7934
|
+
[yo]: $o,
|
|
7935
|
+
[Oo]: Ho,
|
|
7936
|
+
[Ho]: Oo
|
|
7937
|
+
}, Ft = {
|
|
7938
|
+
[$o]: "↑",
|
|
7939
|
+
[yo]: "↓",
|
|
7940
|
+
[Oo]: "←",
|
|
7941
|
+
[Ho]: "→"
|
|
7942
|
+
}, Vt = {
|
|
7943
|
+
[Oo]: -45,
|
|
7944
|
+
[$o]: 45,
|
|
7945
|
+
[Ho]: 135,
|
|
7946
|
+
[yo]: -135
|
|
7947
|
+
}, le = "calc(50% - 7px)", Wt = (r) => [$o, yo].includes(r);
|
|
7948
|
+
function Gt({ actualDirection: r, directionName: o, arrowEl: e }) {
|
|
7880
7949
|
if (!e)
|
|
7881
7950
|
return;
|
|
7882
7951
|
r = o;
|
|
7883
|
-
const t =
|
|
7884
|
-
e.style.left = t ?
|
|
7952
|
+
const t = Wt(o);
|
|
7953
|
+
e.style.left = t ? le : "", e.style.top = t ? "" : le;
|
|
7885
7954
|
}
|
|
7886
|
-
async function
|
|
7955
|
+
async function Jt(r) {
|
|
7887
7956
|
var a, i;
|
|
7888
7957
|
if (!r.isShowing)
|
|
7889
7958
|
return;
|
|
7890
7959
|
if (await ((a = r == null ? void 0 : r.waitForDOM) == null ? void 0 : a.call(r)), r.isCallout)
|
|
7891
|
-
return
|
|
7892
|
-
const o = await
|
|
7960
|
+
return Gt(r);
|
|
7961
|
+
const o = await Ut(r.targetEl, r.attentionEl, {
|
|
7893
7962
|
placement: r.directionName,
|
|
7894
7963
|
middleware: [
|
|
7895
7964
|
// Should we make this configurable, but have these as sane defaults?
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7965
|
+
Rt(),
|
|
7966
|
+
Bt(8),
|
|
7967
|
+
Nt({ padding: 16 }),
|
|
7899
7968
|
// @ts-ignore
|
|
7900
|
-
|
|
7969
|
+
St({ element: r.noArrow ? void 0 : r.arrowEl })
|
|
7901
7970
|
// FIXME
|
|
7902
7971
|
]
|
|
7903
7972
|
});
|
|
@@ -7909,16 +7978,16 @@ async function Ht(r) {
|
|
|
7909
7978
|
let { x: e, y: t } = o.middlewareData.arrow;
|
|
7910
7979
|
r.arrowEl && (r.arrowEl.style.left = e ? e + "px" : "", r.arrowEl.style.top = t ? t + "px" : "");
|
|
7911
7980
|
}
|
|
7912
|
-
class
|
|
7981
|
+
class fr extends _o(k) {
|
|
7913
7982
|
constructor() {
|
|
7914
7983
|
super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
|
|
7915
7984
|
}
|
|
7916
7985
|
connectedCallback() {
|
|
7917
|
-
if (super.connectedCallback(), !this.placement || !Object.keys(
|
|
7986
|
+
if (super.connectedCallback(), !this.placement || !Object.keys(lr).includes(this.placement))
|
|
7918
7987
|
throw new Error(
|
|
7919
7988
|
`Invalid "placement" attribute. Set its value to one of the following:
|
|
7920
7989
|
${JSON.stringify(
|
|
7921
|
-
Object.keys(
|
|
7990
|
+
Object.keys(lr)
|
|
7922
7991
|
)}`
|
|
7923
7992
|
);
|
|
7924
7993
|
setTimeout(() => this.requestUpdate(), 0);
|
|
@@ -7930,7 +7999,7 @@ ${JSON.stringify(
|
|
|
7930
7999
|
this.placement = o;
|
|
7931
8000
|
}
|
|
7932
8001
|
get _arrowDirection() {
|
|
7933
|
-
return
|
|
8002
|
+
return lr[this.placement];
|
|
7934
8003
|
}
|
|
7935
8004
|
updated() {
|
|
7936
8005
|
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 +8011,11 @@ ${JSON.stringify(
|
|
|
7942
8011
|
attentionEl: this._attentionEl,
|
|
7943
8012
|
targetEl: this._targetEl,
|
|
7944
8013
|
noArrow: this.noArrow
|
|
7945
|
-
},
|
|
8014
|
+
}, Jt(this.attentionState);
|
|
7946
8015
|
}
|
|
7947
8016
|
setAriaLabels() {
|
|
7948
8017
|
if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
|
|
7949
|
-
const o = this._messageEl.id || (this._messageEl.id =
|
|
8018
|
+
const o = this._messageEl.id || (this._messageEl.id = ut());
|
|
7950
8019
|
this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", o);
|
|
7951
8020
|
}
|
|
7952
8021
|
}
|
|
@@ -7963,29 +8032,29 @@ ${JSON.stringify(
|
|
|
7963
8032
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
7964
8033
|
}
|
|
7965
8034
|
get _wrapperClasses() {
|
|
7966
|
-
return
|
|
7967
|
-
[
|
|
7968
|
-
[
|
|
7969
|
-
[
|
|
7970
|
-
[
|
|
8035
|
+
return Wr({
|
|
8036
|
+
[T.base]: !0,
|
|
8037
|
+
[T.tooltip]: this.tooltip,
|
|
8038
|
+
[T.callout]: this.callout,
|
|
8039
|
+
[T.popover]: this.popover
|
|
7971
8040
|
});
|
|
7972
8041
|
}
|
|
7973
8042
|
get _arrowClasses() {
|
|
7974
|
-
return
|
|
7975
|
-
[
|
|
7976
|
-
[
|
|
7977
|
-
[
|
|
7978
|
-
[
|
|
7979
|
-
[
|
|
8043
|
+
return Wr({
|
|
8044
|
+
[T.arrowBase]: !0,
|
|
8045
|
+
[T[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
|
|
8046
|
+
[T.arrowTooltip]: this.tooltip,
|
|
8047
|
+
[T.arrowCallout]: this.callout,
|
|
8048
|
+
[T.arrowPopover]: this.popover
|
|
7980
8049
|
});
|
|
7981
8050
|
}
|
|
7982
8051
|
get _arrowHtml() {
|
|
7983
8052
|
return this.noArrow ? "" : s`<div
|
|
7984
8053
|
id="arrow"
|
|
7985
8054
|
role="img"
|
|
7986
|
-
aria-label=${
|
|
8055
|
+
aria-label=${Ft[this._arrowDirection]}
|
|
7987
8056
|
class="${this._arrowClasses}"
|
|
7988
|
-
style="transform:rotate(${
|
|
8057
|
+
style="transform:rotate(${Vt[this._arrowDirection]}deg);
|
|
7989
8058
|
margin-${// border alignment is off by a fraction of a pixel, this fixes it
|
|
7990
8059
|
this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
7991
8060
|
/>`;
|
|
@@ -8014,7 +8083,7 @@ ${JSON.stringify(
|
|
|
8014
8083
|
`;
|
|
8015
8084
|
}
|
|
8016
8085
|
}
|
|
8017
|
-
w(
|
|
8086
|
+
w(fr, "properties", {
|
|
8018
8087
|
// Whether Attention element should be visible.
|
|
8019
8088
|
show: { type: Boolean, reflect: !0 },
|
|
8020
8089
|
// Placement according to the target element
|
|
@@ -8028,11 +8097,11 @@ w(pr, "properties", {
|
|
|
8028
8097
|
popover: { type: Boolean, reflect: !0 },
|
|
8029
8098
|
// Render Attention element without an arrow
|
|
8030
8099
|
noArrow: { type: Boolean, reflect: !0 }
|
|
8031
|
-
}), w(
|
|
8100
|
+
}), w(fr, "styles", [
|
|
8032
8101
|
q`
|
|
8033
8102
|
/* layer: preflights */
|
|
8034
8103
|
*,::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:
|
|
8104
|
+
*,: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
8105
|
/* layer: shortcuts */
|
|
8037
8106
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
8038
8107
|
@media (min-width: 480px){
|
|
@@ -8100,8 +8169,9 @@ w(pr, "properties", {
|
|
|
8100
8169
|
.caret-current{caret-color:currentColor;}
|
|
8101
8170
|
.before\\:opacity-25::before,
|
|
8102
8171
|
.opacity-25{opacity:25%;}
|
|
8103
|
-
.flex
|
|
8172
|
+
.before\\:flex\\!::before,
|
|
8104
8173
|
.flex\\!{display:flex !important;}
|
|
8174
|
+
.flex{display:flex;}
|
|
8105
8175
|
.inline-flex{display:inline-flex;}
|
|
8106
8176
|
.inline-flex\\!{display:inline-flex !important;}
|
|
8107
8177
|
.grid{display:grid;}
|
|
@@ -8439,6 +8509,7 @@ w(pr, "properties", {
|
|
|
8439
8509
|
.focus\\:outline-none:focus,
|
|
8440
8510
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
8441
8511
|
.items-end{align-items:flex-end;}
|
|
8512
|
+
.before\\:items-center::before,
|
|
8442
8513
|
.items-center{align-items:center;}
|
|
8443
8514
|
.self-center{align-self:center;}
|
|
8444
8515
|
.inset-0{inset:0rem;}
|
|
@@ -8466,6 +8537,7 @@ w(pr, "properties", {
|
|
|
8466
8537
|
.top-20{top:2rem;}
|
|
8467
8538
|
.top-4{top:0.4rem;}
|
|
8468
8539
|
.justify-end{justify-content:flex-end;}
|
|
8540
|
+
.before\\:justify-center::before,
|
|
8469
8541
|
.justify-center{justify-content:center;}
|
|
8470
8542
|
.justify-between{justify-content:space-between;}
|
|
8471
8543
|
.justify-items-center{justify-items:center;}
|
|
@@ -8643,7 +8715,7 @@ w(pr, "properties", {
|
|
|
8643
8715
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
8644
8716
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
8645
8717
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
8646
|
-
.leading
|
|
8718
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
8647
8719
|
@media (min-width: 480px){
|
|
8648
8720
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
8649
8721
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -8680,31 +8752,31 @@ w(pr, "properties", {
|
|
|
8680
8752
|
}
|
|
8681
8753
|
`
|
|
8682
8754
|
]);
|
|
8683
|
-
customElements.get("w-attention") || customElements.define("w-attention",
|
|
8684
|
-
class
|
|
8755
|
+
customElements.get("w-attention") || customElements.define("w-attention", fr);
|
|
8756
|
+
class kr extends k {
|
|
8685
8757
|
constructor() {
|
|
8686
8758
|
super(), this.type = "text";
|
|
8687
8759
|
}
|
|
8688
8760
|
get _inputStyles() {
|
|
8689
8761
|
return Z({
|
|
8690
|
-
[
|
|
8691
|
-
[
|
|
8692
|
-
[
|
|
8693
|
-
[
|
|
8694
|
-
[
|
|
8695
|
-
[
|
|
8762
|
+
[V.default]: !0,
|
|
8763
|
+
[V.invalid]: this.invalid,
|
|
8764
|
+
[V.disabled]: this.disabled,
|
|
8765
|
+
[V.readOnly]: this.readOnly,
|
|
8766
|
+
[V.suffix]: this._hasSuffix,
|
|
8767
|
+
[V.prefix]: this._hasPrefix
|
|
8696
8768
|
});
|
|
8697
8769
|
}
|
|
8698
8770
|
get _helpTextStyles() {
|
|
8699
8771
|
return Z({
|
|
8700
|
-
[
|
|
8701
|
-
[
|
|
8772
|
+
[Bo.helpText]: !0,
|
|
8773
|
+
[Bo.helpTextInvalid]: this.invalid
|
|
8702
8774
|
});
|
|
8703
8775
|
}
|
|
8704
8776
|
get _labelStyles() {
|
|
8705
8777
|
return Z({
|
|
8706
|
-
[
|
|
8707
|
-
[
|
|
8778
|
+
[G.label]: !0,
|
|
8779
|
+
[G.labelInvalid]: this.invalid
|
|
8708
8780
|
});
|
|
8709
8781
|
}
|
|
8710
8782
|
get _label() {
|
|
@@ -8741,7 +8813,7 @@ class hr extends k {
|
|
|
8741
8813
|
render() {
|
|
8742
8814
|
return s`
|
|
8743
8815
|
${this._label}
|
|
8744
|
-
<div class="${
|
|
8816
|
+
<div class="${V.wrapper}">
|
|
8745
8817
|
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
8746
8818
|
<input
|
|
8747
8819
|
class="${this._inputStyles}"
|
|
@@ -8772,7 +8844,7 @@ class hr extends k {
|
|
|
8772
8844
|
`;
|
|
8773
8845
|
}
|
|
8774
8846
|
}
|
|
8775
|
-
w(
|
|
8847
|
+
w(kr, "properties", {
|
|
8776
8848
|
disabled: { type: Boolean },
|
|
8777
8849
|
invalid: { type: Boolean },
|
|
8778
8850
|
id: { type: String },
|
|
@@ -8796,11 +8868,11 @@ w(hr, "properties", {
|
|
|
8796
8868
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
8797
8869
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
8798
8870
|
// https://stackoverflow.com/a/61631668
|
|
8799
|
-
w(
|
|
8871
|
+
w(kr, "styles", [
|
|
8800
8872
|
q`
|
|
8801
8873
|
/* layer: preflights */
|
|
8802
8874
|
*,::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:
|
|
8875
|
+
*,: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
8876
|
/* layer: shortcuts */
|
|
8805
8877
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
8806
8878
|
@media (min-width: 480px){
|
|
@@ -8868,9 +8940,9 @@ w(hr, "styles", [
|
|
|
8868
8940
|
.caret-current{caret-color:currentColor;}
|
|
8869
8941
|
.before\\:opacity-25::before,
|
|
8870
8942
|
.opacity-25{opacity:25%;}
|
|
8871
|
-
.
|
|
8872
|
-
.flex{display:flex;}
|
|
8943
|
+
.before\\:flex\\!::before,
|
|
8873
8944
|
.flex\\!{display:flex !important;}
|
|
8945
|
+
.flex{display:flex;}
|
|
8874
8946
|
.inline-flex{display:inline-flex;}
|
|
8875
8947
|
.inline-flex\\!{display:inline-flex !important;}
|
|
8876
8948
|
.grid{display:grid;}
|
|
@@ -9208,6 +9280,7 @@ w(hr, "styles", [
|
|
|
9208
9280
|
.focus\\:outline-none:focus,
|
|
9209
9281
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
9210
9282
|
.items-end{align-items:flex-end;}
|
|
9283
|
+
.before\\:items-center::before,
|
|
9211
9284
|
.items-center{align-items:center;}
|
|
9212
9285
|
.self-center{align-self:center;}
|
|
9213
9286
|
.inset-0{inset:0rem;}
|
|
@@ -9235,6 +9308,7 @@ w(hr, "styles", [
|
|
|
9235
9308
|
.top-20{top:2rem;}
|
|
9236
9309
|
.top-4{top:0.4rem;}
|
|
9237
9310
|
.justify-end{justify-content:flex-end;}
|
|
9311
|
+
.before\\:justify-center::before,
|
|
9238
9312
|
.justify-center{justify-content:center;}
|
|
9239
9313
|
.justify-between{justify-content:space-between;}
|
|
9240
9314
|
.justify-items-center{justify-items:center;}
|
|
@@ -9412,7 +9486,7 @@ w(hr, "styles", [
|
|
|
9412
9486
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
9413
9487
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
9414
9488
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
9415
|
-
.leading
|
|
9489
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
9416
9490
|
@media (min-width: 480px){
|
|
9417
9491
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
9418
9492
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -9444,14 +9518,14 @@ w(hr, "styles", [
|
|
|
9444
9518
|
}
|
|
9445
9519
|
`
|
|
9446
9520
|
]);
|
|
9447
|
-
customElements.get("w-textfield") || customElements.define("w-textfield",
|
|
9448
|
-
class
|
|
9521
|
+
customElements.get("w-textfield") || customElements.define("w-textfield", kr);
|
|
9522
|
+
class de extends k {
|
|
9449
9523
|
render() {
|
|
9450
9524
|
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
9525
|
}
|
|
9452
9526
|
}
|
|
9453
|
-
customElements.get("f-icon-chevron-down16",
|
|
9454
|
-
class
|
|
9527
|
+
customElements.get("f-icon-chevron-down16", de) || customElements.define("f-icon-chevron-down16", de);
|
|
9528
|
+
class $r extends _o(k) {
|
|
9455
9529
|
constructor() {
|
|
9456
9530
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
9457
9531
|
}
|
|
@@ -9462,7 +9536,7 @@ class wr extends $o(k) {
|
|
|
9462
9536
|
return s`<div
|
|
9463
9537
|
class=${Z({
|
|
9464
9538
|
[this.contentClass || ""]: !0,
|
|
9465
|
-
[
|
|
9539
|
+
[B.box]: this.box,
|
|
9466
9540
|
[Y.paddingTop]: this._hasTitle && this.box
|
|
9467
9541
|
})}
|
|
9468
9542
|
>
|
|
@@ -9517,7 +9591,7 @@ class wr extends $o(k) {
|
|
|
9517
9591
|
</div>`;
|
|
9518
9592
|
}
|
|
9519
9593
|
}
|
|
9520
|
-
w(
|
|
9594
|
+
w($r, "properties", {
|
|
9521
9595
|
expanded: { type: Boolean, reflect: !0 },
|
|
9522
9596
|
title: { type: String },
|
|
9523
9597
|
info: { type: Boolean },
|
|
@@ -9533,11 +9607,11 @@ w(wr, "properties", {
|
|
|
9533
9607
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
9534
9608
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
9535
9609
|
// https://stackoverflow.com/a/61631668
|
|
9536
|
-
w(
|
|
9610
|
+
w($r, "styles", [
|
|
9537
9611
|
q`
|
|
9538
9612
|
/* layer: preflights */
|
|
9539
9613
|
*,::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:
|
|
9614
|
+
*,: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
9615
|
/* layer: shortcuts */
|
|
9542
9616
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
9543
9617
|
@media (min-width: 480px){
|
|
@@ -9605,8 +9679,9 @@ w(wr, "styles", [
|
|
|
9605
9679
|
.caret-current{caret-color:currentColor;}
|
|
9606
9680
|
.before\\:opacity-25::before,
|
|
9607
9681
|
.opacity-25{opacity:25%;}
|
|
9608
|
-
.flex
|
|
9682
|
+
.before\\:flex\\!::before,
|
|
9609
9683
|
.flex\\!{display:flex !important;}
|
|
9684
|
+
.flex{display:flex;}
|
|
9610
9685
|
.inline-flex{display:inline-flex;}
|
|
9611
9686
|
.inline-flex\\!{display:inline-flex !important;}
|
|
9612
9687
|
.grid{display:grid;}
|
|
@@ -9944,6 +10019,7 @@ w(wr, "styles", [
|
|
|
9944
10019
|
.focus\\:outline-none:focus,
|
|
9945
10020
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
9946
10021
|
.items-end{align-items:flex-end;}
|
|
10022
|
+
.before\\:items-center::before,
|
|
9947
10023
|
.items-center{align-items:center;}
|
|
9948
10024
|
.self-center{align-self:center;}
|
|
9949
10025
|
.inset-0{inset:0rem;}
|
|
@@ -9971,6 +10047,7 @@ w(wr, "styles", [
|
|
|
9971
10047
|
.top-20{top:2rem;}
|
|
9972
10048
|
.top-4{top:0.4rem;}
|
|
9973
10049
|
.justify-end{justify-content:flex-end;}
|
|
10050
|
+
.before\\:justify-center::before,
|
|
9974
10051
|
.justify-center{justify-content:center;}
|
|
9975
10052
|
.justify-between{justify-content:space-between;}
|
|
9976
10053
|
.justify-items-center{justify-items:center;}
|
|
@@ -10148,7 +10225,7 @@ w(wr, "styles", [
|
|
|
10148
10225
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
10149
10226
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
10150
10227
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
10151
|
-
.leading
|
|
10228
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
10152
10229
|
@media (min-width: 480px){
|
|
10153
10230
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
10154
10231
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -10180,8 +10257,8 @@ w(wr, "styles", [
|
|
|
10180
10257
|
}
|
|
10181
10258
|
`
|
|
10182
10259
|
]);
|
|
10183
|
-
customElements.get("w-expandable") || customElements.define("w-expandable",
|
|
10184
|
-
const
|
|
10260
|
+
customElements.get("w-expandable") || customElements.define("w-expandable", $r);
|
|
10261
|
+
const Kt = s`
|
|
10185
10262
|
<svg
|
|
10186
10263
|
role="img"
|
|
10187
10264
|
aria-label="X"
|
|
@@ -10198,7 +10275,7 @@ const Dt = s`
|
|
|
10198
10275
|
clipRule="evenodd"
|
|
10199
10276
|
/>
|
|
10200
10277
|
</svg>
|
|
10201
|
-
`,
|
|
10278
|
+
`, Qt = s`
|
|
10202
10279
|
<svg
|
|
10203
10280
|
role="img"
|
|
10204
10281
|
aria-label="Forstørrelsesglass"
|
|
@@ -10224,9 +10301,9 @@ const Dt = s`
|
|
|
10224
10301
|
</defs>
|
|
10225
10302
|
</svg>
|
|
10226
10303
|
`;
|
|
10227
|
-
class
|
|
10304
|
+
class yr extends k {
|
|
10228
10305
|
get _classBase() {
|
|
10229
|
-
return this.slot === "suffix" ?
|
|
10306
|
+
return this.slot === "suffix" ? et : tt;
|
|
10230
10307
|
}
|
|
10231
10308
|
get _classes() {
|
|
10232
10309
|
return Z({
|
|
@@ -10238,14 +10315,14 @@ class mr extends k {
|
|
|
10238
10315
|
get _searchButton() {
|
|
10239
10316
|
return s`
|
|
10240
10317
|
<button aria-label="${x(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
10241
|
-
${
|
|
10318
|
+
${Qt}
|
|
10242
10319
|
</button>
|
|
10243
10320
|
`;
|
|
10244
10321
|
}
|
|
10245
10322
|
get _clearButton() {
|
|
10246
10323
|
return s`
|
|
10247
10324
|
<button aria-label="${x(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
10248
|
-
${
|
|
10325
|
+
${Kt}
|
|
10249
10326
|
</button>
|
|
10250
10327
|
`;
|
|
10251
10328
|
}
|
|
@@ -10268,10 +10345,10 @@ class mr extends k {
|
|
|
10268
10345
|
return s`${this._markup}`;
|
|
10269
10346
|
}
|
|
10270
10347
|
}
|
|
10271
|
-
w(
|
|
10348
|
+
w(yr, "styles", q`
|
|
10272
10349
|
/* layer: preflights */
|
|
10273
10350
|
*,::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:
|
|
10351
|
+
*,: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
10352
|
/* layer: shortcuts */
|
|
10276
10353
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
10277
10354
|
@media (min-width: 480px){
|
|
@@ -10339,8 +10416,9 @@ w(mr, "styles", q`
|
|
|
10339
10416
|
.caret-current{caret-color:currentColor;}
|
|
10340
10417
|
.before\\:opacity-25::before,
|
|
10341
10418
|
.opacity-25{opacity:25%;}
|
|
10342
|
-
.flex
|
|
10419
|
+
.before\\:flex\\!::before,
|
|
10343
10420
|
.flex\\!{display:flex !important;}
|
|
10421
|
+
.flex{display:flex;}
|
|
10344
10422
|
.inline-flex{display:inline-flex;}
|
|
10345
10423
|
.inline-flex\\!{display:inline-flex !important;}
|
|
10346
10424
|
.grid{display:grid;}
|
|
@@ -10678,6 +10756,7 @@ w(mr, "styles", q`
|
|
|
10678
10756
|
.focus\\:outline-none:focus,
|
|
10679
10757
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
10680
10758
|
.items-end{align-items:flex-end;}
|
|
10759
|
+
.before\\:items-center::before,
|
|
10681
10760
|
.items-center{align-items:center;}
|
|
10682
10761
|
.self-center{align-self:center;}
|
|
10683
10762
|
.inset-0{inset:0rem;}
|
|
@@ -10705,6 +10784,7 @@ w(mr, "styles", q`
|
|
|
10705
10784
|
.top-20{top:2rem;}
|
|
10706
10785
|
.top-4{top:0.4rem;}
|
|
10707
10786
|
.justify-end{justify-content:flex-end;}
|
|
10787
|
+
.before\\:justify-center::before,
|
|
10708
10788
|
.justify-center{justify-content:center;}
|
|
10709
10789
|
.justify-between{justify-content:space-between;}
|
|
10710
10790
|
.justify-items-center{justify-items:center;}
|
|
@@ -10882,7 +10962,7 @@ w(mr, "styles", q`
|
|
|
10882
10962
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
10883
10963
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
10884
10964
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
10885
|
-
.leading
|
|
10965
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
10886
10966
|
@media (min-width: 480px){
|
|
10887
10967
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
10888
10968
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -10906,17 +10986,17 @@ w(mr, "styles", q`
|
|
|
10906
10986
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
10907
10987
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
10908
10988
|
}
|
|
10909
|
-
`), w(
|
|
10989
|
+
`), w(yr, "properties", {
|
|
10910
10990
|
ariaLabel: { type: String, attribute: "aria-label" },
|
|
10911
10991
|
clear: { type: Boolean },
|
|
10912
10992
|
search: { type: Boolean },
|
|
10913
10993
|
label: { type: String }
|
|
10914
10994
|
});
|
|
10915
|
-
customElements.get("w-affix") || customElements.define("w-affix",
|
|
10916
|
-
const
|
|
10995
|
+
customElements.get("w-affix") || customElements.define("w-affix", yr);
|
|
10996
|
+
const Oe = q`
|
|
10917
10997
|
@import "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css";
|
|
10918
10998
|
`;
|
|
10919
|
-
class
|
|
10999
|
+
class zr extends k {
|
|
10920
11000
|
constructor() {
|
|
10921
11001
|
super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
|
|
10922
11002
|
}
|
|
@@ -10929,7 +11009,7 @@ class xr extends k {
|
|
|
10929
11009
|
this._mounted = !0;
|
|
10930
11010
|
return;
|
|
10931
11011
|
}
|
|
10932
|
-
this.show &&
|
|
11012
|
+
this.show && Ae(this._wrapper), !this.show && !this._removeElement && Ce(this._wrapper, () => this._removeElement = !0);
|
|
10933
11013
|
}
|
|
10934
11014
|
}
|
|
10935
11015
|
get _wrapper() {
|
|
@@ -10941,18 +11021,18 @@ class xr extends k {
|
|
|
10941
11021
|
</div>`;
|
|
10942
11022
|
}
|
|
10943
11023
|
}
|
|
10944
|
-
w(
|
|
11024
|
+
w(zr, "properties", {
|
|
10945
11025
|
show: {
|
|
10946
11026
|
type: Boolean,
|
|
10947
11027
|
reflect: !0
|
|
10948
11028
|
},
|
|
10949
11029
|
_removeElement: { type: Boolean, state: !0 }
|
|
10950
|
-
}), w(
|
|
10951
|
-
|
|
11030
|
+
}), w(zr, "styles", [
|
|
11031
|
+
Oe,
|
|
10952
11032
|
q`
|
|
10953
11033
|
/* layer: preflights */
|
|
10954
11034
|
*,::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:
|
|
11035
|
+
*,: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
11036
|
/* layer: shortcuts */
|
|
10957
11037
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
10958
11038
|
@media (min-width: 480px){
|
|
@@ -11020,8 +11100,9 @@ w(xr, "properties", {
|
|
|
11020
11100
|
.caret-current{caret-color:currentColor;}
|
|
11021
11101
|
.before\\:opacity-25::before,
|
|
11022
11102
|
.opacity-25{opacity:25%;}
|
|
11023
|
-
.flex
|
|
11103
|
+
.before\\:flex\\!::before,
|
|
11024
11104
|
.flex\\!{display:flex !important;}
|
|
11105
|
+
.flex{display:flex;}
|
|
11025
11106
|
.inline-flex{display:inline-flex;}
|
|
11026
11107
|
.inline-flex\\!{display:inline-flex !important;}
|
|
11027
11108
|
.grid{display:grid;}
|
|
@@ -11359,6 +11440,7 @@ w(xr, "properties", {
|
|
|
11359
11440
|
.focus\\:outline-none:focus,
|
|
11360
11441
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
11361
11442
|
.items-end{align-items:flex-end;}
|
|
11443
|
+
.before\\:items-center::before,
|
|
11362
11444
|
.items-center{align-items:center;}
|
|
11363
11445
|
.self-center{align-self:center;}
|
|
11364
11446
|
.inset-0{inset:0rem;}
|
|
@@ -11386,6 +11468,7 @@ w(xr, "properties", {
|
|
|
11386
11468
|
.top-20{top:2rem;}
|
|
11387
11469
|
.top-4{top:0.4rem;}
|
|
11388
11470
|
.justify-end{justify-content:flex-end;}
|
|
11471
|
+
.before\\:justify-center::before,
|
|
11389
11472
|
.justify-center{justify-content:center;}
|
|
11390
11473
|
.justify-between{justify-content:space-between;}
|
|
11391
11474
|
.justify-items-center{justify-items:center;}
|
|
@@ -11563,7 +11646,7 @@ w(xr, "properties", {
|
|
|
11563
11646
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
11564
11647
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
11565
11648
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
11566
|
-
.leading
|
|
11649
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
11567
11650
|
@media (min-width: 480px){
|
|
11568
11651
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
11569
11652
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -11592,8 +11675,8 @@ w(xr, "properties", {
|
|
|
11592
11675
|
}
|
|
11593
11676
|
`
|
|
11594
11677
|
]);
|
|
11595
|
-
customElements.get("w-expand-transition") || customElements.define("w-expand-transition",
|
|
11596
|
-
class
|
|
11678
|
+
customElements.get("w-expand-transition") || customElements.define("w-expand-transition", zr);
|
|
11679
|
+
class _r extends k {
|
|
11597
11680
|
get _markup() {
|
|
11598
11681
|
return `<h${this.level}
|
|
11599
11682
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -11603,15 +11686,15 @@ class fr extends k {
|
|
|
11603
11686
|
`;
|
|
11604
11687
|
}
|
|
11605
11688
|
render() {
|
|
11606
|
-
return this.level ?
|
|
11689
|
+
return this.level ? ye(this._markup) : s`<slot></slot>`;
|
|
11607
11690
|
}
|
|
11608
11691
|
}
|
|
11609
|
-
w(
|
|
11692
|
+
w(_r, "properties", {
|
|
11610
11693
|
level: { type: Number }
|
|
11611
|
-
}), w(
|
|
11694
|
+
}), w(_r, "styles", [Oe, q`
|
|
11612
11695
|
/* layer: preflights */
|
|
11613
11696
|
*,::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:
|
|
11697
|
+
*,: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
11698
|
/* layer: shortcuts */
|
|
11616
11699
|
.h4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
11617
11700
|
@media (min-width: 480px){
|
|
@@ -11679,8 +11762,9 @@ w(fr, "properties", {
|
|
|
11679
11762
|
.caret-current{caret-color:currentColor;}
|
|
11680
11763
|
.before\\:opacity-25::before,
|
|
11681
11764
|
.opacity-25{opacity:25%;}
|
|
11682
|
-
.flex
|
|
11765
|
+
.before\\:flex\\!::before,
|
|
11683
11766
|
.flex\\!{display:flex !important;}
|
|
11767
|
+
.flex{display:flex;}
|
|
11684
11768
|
.inline-flex{display:inline-flex;}
|
|
11685
11769
|
.inline-flex\\!{display:inline-flex !important;}
|
|
11686
11770
|
.grid{display:grid;}
|
|
@@ -12018,6 +12102,7 @@ w(fr, "properties", {
|
|
|
12018
12102
|
.focus\\:outline-none:focus,
|
|
12019
12103
|
.outline-none{outline:2px solid transparent;outline-offset:2px;}
|
|
12020
12104
|
.items-end{align-items:flex-end;}
|
|
12105
|
+
.before\\:items-center::before,
|
|
12021
12106
|
.items-center{align-items:center;}
|
|
12022
12107
|
.self-center{align-self:center;}
|
|
12023
12108
|
.inset-0{inset:0rem;}
|
|
@@ -12045,6 +12130,7 @@ w(fr, "properties", {
|
|
|
12045
12130
|
.top-20{top:2rem;}
|
|
12046
12131
|
.top-4{top:0.4rem;}
|
|
12047
12132
|
.justify-end{justify-content:flex-end;}
|
|
12133
|
+
.before\\:justify-center::before,
|
|
12048
12134
|
.justify-center{justify-content:center;}
|
|
12049
12135
|
.justify-between{justify-content:space-between;}
|
|
12050
12136
|
.justify-items-center{justify-items:center;}
|
|
@@ -12222,7 +12308,7 @@ w(fr, "properties", {
|
|
|
12222
12308
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
12223
12309
|
.text-xs\\!{font-size:var(--w-font-size-xs) !important;line-height:var(--w-line-height-xs) !important;}
|
|
12224
12310
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
12225
|
-
.leading
|
|
12311
|
+
.leading-\\[24\\]{line-height:2.4rem;}
|
|
12226
12312
|
@media (min-width: 480px){
|
|
12227
12313
|
.sm\\:border-b-0{border-bottom-width:0;}
|
|
12228
12314
|
.sm\\:rounded-8{border-radius:8px;}
|
|
@@ -12247,24 +12333,24 @@ w(fr, "properties", {
|
|
|
12247
12333
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
12248
12334
|
}
|
|
12249
12335
|
`]);
|
|
12250
|
-
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading",
|
|
12336
|
+
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", _r);
|
|
12251
12337
|
export {
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12338
|
+
zr as ExpandTransition,
|
|
12339
|
+
_r as UnstyledHeading,
|
|
12340
|
+
yr as WarpAffix,
|
|
12341
|
+
nr as WarpAlert,
|
|
12342
|
+
fr as WarpAttention,
|
|
12343
|
+
ur as WarpBox,
|
|
12344
|
+
vr as WarpBreadcrumbs,
|
|
12345
|
+
wr as WarpBroadcast,
|
|
12346
|
+
Co as WarpButton,
|
|
12347
|
+
br as WarpCard,
|
|
12348
|
+
$r as WarpExpandable,
|
|
12349
|
+
sr as WarpSelect,
|
|
12350
|
+
kr as WarpTextField,
|
|
12351
|
+
pr as WarpToast,
|
|
12352
|
+
hr as WarpToastContainer,
|
|
12353
|
+
ga as removeToast,
|
|
12354
|
+
ba as toast,
|
|
12355
|
+
sa as updateToast
|
|
12270
12356
|
};
|