@warp-ds/elements 1.1.0-next.1 → 1.1.0
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 +1864 -903
- package/dist/packages/breadcrumbs/locales/en/messages.d.mts +1 -0
- package/dist/packages/breadcrumbs/locales/fi/messages.d.mts +1 -0
- package/dist/packages/breadcrumbs/locales/nb/messages.d.mts +1 -0
- package/dist/packages/button/index.d.ts +1 -0
- package/dist/packages/button/locales/en/messages.d.mts +1 -0
- package/dist/packages/button/locales/fi/messages.d.mts +1 -0
- package/dist/packages/button/locales/nb/messages.d.mts +1 -0
- package/dist/packages/i18n.d.ts +9 -0
- package/dist/packages/select/locales/en/messages.d.mts +1 -0
- package/dist/packages/select/locales/fi/messages.d.mts +1 -0
- package/dist/packages/select/locales/nb/messages.d.mts +1 -0
- package/dist/packages/toast/toast-container.d.ts +3 -3
- package/dist/packages/utils/unstyled-heading.d.ts +1 -1
- package/package.json +11 -4
- package/dist/dist/elements.min.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var qt = Object.defineProperty;
|
|
2
|
+
var Xt = (r, o, e) => o in r ? qt(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
|
|
3
|
+
var Z = (r, o, e) => (Xt(r, typeof o != "symbol" ? o + "" : o, e), e), Yt = (r, o, e) => {
|
|
4
4
|
if (!o.has(r))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var J = (r, o, e) => (Yt(r, o, "read from private field"), e ? e.call(r) : o.get(r)), fo = (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);
|
|
11
11
|
};
|
|
12
|
-
import { html as
|
|
12
|
+
import { html as f, LitElement as I, css as Q, svg as po } from "lit";
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
const
|
|
20
|
-
\f\r]`,
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
22
|
-
function
|
|
18
|
+
var Xr;
|
|
19
|
+
const nr = window, Mo = nr.trustedTypes, be = Mo ? Mo.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, br = "$lit$", lo = `lit$${(Math.random() + "").slice(9)}$`, oe = "?" + lo, jt = `<${oe}>`, Xo = document, sr = () => Xo.createComment(""), Ho = (r) => r === null || typeof r != "object" && typeof r != "function", Me = Array.isArray, Te = (r) => Me(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Yr = `[
|
|
20
|
+
\f\r]`, No = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ge = />/g, ko = RegExp(`>|${Yr}(?:([^\\s"'>=/]+)(${Yr}*=${Yr}*(?:[^
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g, Oe = /^(?:script|style|textarea|title)$/i, ho = Symbol.for("lit-noChange"), N = Symbol.for("lit-nothing"), he = /* @__PURE__ */ new WeakMap(), _o = Xo.createTreeWalker(Xo, 129, null, !1);
|
|
22
|
+
function Be(r, o) {
|
|
23
23
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
24
24
|
throw Error("invalid template strings array");
|
|
25
|
-
return
|
|
25
|
+
return be !== void 0 ? be.createHTML(o) : o;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const Ne = (r, o) => {
|
|
28
28
|
const e = r.length - 1, t = [];
|
|
29
|
-
let a, c = o === 2 ? "<svg>" : "", i =
|
|
29
|
+
let a, c = o === 2 ? "<svg>" : "", i = No;
|
|
30
30
|
for (let l = 0; l < e; l++) {
|
|
31
|
-
const
|
|
32
|
-
let
|
|
33
|
-
for (;
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
c += i ===
|
|
37
|
-
}
|
|
38
|
-
return [
|
|
31
|
+
const n = r[l];
|
|
32
|
+
let b, v, u = -1, h = 0;
|
|
33
|
+
for (; h < n.length && (i.lastIndex = h, v = i.exec(n), v !== null); )
|
|
34
|
+
h = i.lastIndex, i === No ? v[1] === "!--" ? i = se : v[1] !== void 0 ? i = ge : v[2] !== void 0 ? (Oe.test(v[2]) && (a = RegExp("</" + v[2], "g")), i = ko) : v[3] !== void 0 && (i = ko) : i === ko ? v[0] === ">" ? (i = a ?? No, u = -1) : v[1] === void 0 ? u = -2 : (u = i.lastIndex - v[2].length, b = v[1], i = v[3] === void 0 ? ko : v[3] === '"' ? ve : ue) : i === ve || i === ue ? i = ko : i === se || i === ge ? i = No : (i = ko, a = void 0);
|
|
35
|
+
const g = i === ko && r[l + 1].startsWith("/>") ? " " : "";
|
|
36
|
+
c += i === No ? n + jt : u >= 0 ? (t.push(b), n.slice(0, u) + br + n.slice(u) + lo + g) : n + lo + (u === -2 ? (t.push(void 0), l) : g);
|
|
37
|
+
}
|
|
38
|
+
return [Be(r, c + (r[e] || "<?>") + (o === 2 ? "</svg>" : "")), t];
|
|
39
39
|
};
|
|
40
|
-
class
|
|
40
|
+
class Qo {
|
|
41
41
|
constructor({ strings: o, _$litType$: e }, t) {
|
|
42
42
|
let a;
|
|
43
43
|
this.parts = [];
|
|
44
44
|
let c = 0, i = 0;
|
|
45
|
-
const l = o.length - 1,
|
|
46
|
-
if (this.el =
|
|
47
|
-
const
|
|
48
|
-
|
|
45
|
+
const l = o.length - 1, n = this.parts, [b, v] = Ne(o, e);
|
|
46
|
+
if (this.el = Qo.createElement(b, t), _o.currentNode = this.el.content, e === 2) {
|
|
47
|
+
const u = this.el.content, h = u.firstChild;
|
|
48
|
+
h.remove(), u.append(...h.childNodes);
|
|
49
49
|
}
|
|
50
|
-
for (; (a =
|
|
50
|
+
for (; (a = _o.nextNode()) !== null && n.length < l; ) {
|
|
51
51
|
if (a.nodeType === 1) {
|
|
52
52
|
if (a.hasAttributes()) {
|
|
53
|
-
const
|
|
54
|
-
for (const
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
const
|
|
59
|
-
|
|
53
|
+
const u = [];
|
|
54
|
+
for (const h of a.getAttributeNames())
|
|
55
|
+
if (h.endsWith(br) || h.startsWith(lo)) {
|
|
56
|
+
const g = v[i++];
|
|
57
|
+
if (u.push(h), g !== void 0) {
|
|
58
|
+
const p = a.getAttribute(g.toLowerCase() + br).split(lo), x = /([.?@])?(.*)/.exec(g);
|
|
59
|
+
n.push({ type: 1, index: c, name: x[2], strings: p, ctor: x[1] === "." ? Pe : x[1] === "?" ? Ie : x[1] === "@" ? He : Jo });
|
|
60
60
|
} else
|
|
61
|
-
|
|
61
|
+
n.push({ type: 6, index: c });
|
|
62
62
|
}
|
|
63
|
-
for (const
|
|
64
|
-
a.removeAttribute(
|
|
63
|
+
for (const h of u)
|
|
64
|
+
a.removeAttribute(h);
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
a.textContent =
|
|
70
|
-
for (let
|
|
71
|
-
a.append(
|
|
72
|
-
a.append(
|
|
66
|
+
if (Oe.test(a.tagName)) {
|
|
67
|
+
const u = a.textContent.split(lo), h = u.length - 1;
|
|
68
|
+
if (h > 0) {
|
|
69
|
+
a.textContent = Mo ? Mo.emptyScript : "";
|
|
70
|
+
for (let g = 0; g < h; g++)
|
|
71
|
+
a.append(u[g], sr()), _o.nextNode(), n.push({ type: 2, index: ++c });
|
|
72
|
+
a.append(u[h], sr());
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
} else if (a.nodeType === 8)
|
|
76
|
-
if (a.data ===
|
|
77
|
-
|
|
76
|
+
if (a.data === oe)
|
|
77
|
+
n.push({ type: 2, index: c });
|
|
78
78
|
else {
|
|
79
|
-
let
|
|
80
|
-
for (; (
|
|
81
|
-
|
|
79
|
+
let u = -1;
|
|
80
|
+
for (; (u = a.data.indexOf(lo, u + 1)) !== -1; )
|
|
81
|
+
n.push({ type: 7, index: c }), u += lo.length - 1;
|
|
82
82
|
}
|
|
83
83
|
c++;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
static createElement(o, e) {
|
|
87
|
-
const t =
|
|
87
|
+
const t = Xo.createElement("template");
|
|
88
88
|
return t.innerHTML = o, t;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Yo(r, o, e = r, t) {
|
|
92
92
|
var a, c, i, l;
|
|
93
|
-
if (o ===
|
|
93
|
+
if (o === ho)
|
|
94
94
|
return o;
|
|
95
|
-
let
|
|
96
|
-
const
|
|
97
|
-
return (
|
|
95
|
+
let n = t !== void 0 ? (a = e._$Co) === null || a === void 0 ? void 0 : a[t] : e._$Cl;
|
|
96
|
+
const b = Ho(o) ? void 0 : o._$litDirective$;
|
|
97
|
+
return (n == null ? void 0 : n.constructor) !== b && ((c = n == null ? void 0 : n._$AO) === null || c === void 0 || c.call(n, !1), b === void 0 ? n = void 0 : (n = new b(r), n._$AT(r, e, t)), t !== void 0 ? ((i = (l = e)._$Co) !== null && i !== void 0 ? i : l._$Co = [])[t] = n : e._$Cl = n), n !== void 0 && (o = Yo(r, n._$AS(r, o.values), n, t)), o;
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class De {
|
|
100
100
|
constructor(o, e) {
|
|
101
101
|
this._$AV = [], this._$AN = void 0, this._$AD = o, this._$AM = e;
|
|
102
102
|
}
|
|
@@ -108,17 +108,17 @@ class le {
|
|
|
108
108
|
}
|
|
109
109
|
u(o) {
|
|
110
110
|
var e;
|
|
111
|
-
const { el: { content: t }, parts: a } = this._$AD, c = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e :
|
|
112
|
-
|
|
113
|
-
let i =
|
|
114
|
-
for (;
|
|
115
|
-
if (l ===
|
|
116
|
-
let
|
|
117
|
-
|
|
111
|
+
const { el: { content: t }, parts: a } = this._$AD, c = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e : Xo).importNode(t, !0);
|
|
112
|
+
_o.currentNode = c;
|
|
113
|
+
let i = _o.nextNode(), l = 0, n = 0, b = a[0];
|
|
114
|
+
for (; b !== void 0; ) {
|
|
115
|
+
if (l === b.index) {
|
|
116
|
+
let v;
|
|
117
|
+
b.type === 2 ? v = new re(i, i.nextSibling, this, o) : b.type === 1 ? v = new b.ctor(i, b.name, b.strings, this, o) : b.type === 6 && (v = new Qe(i, this, o)), this._$AV.push(v), b = a[++n];
|
|
118
118
|
}
|
|
119
|
-
l !== (
|
|
119
|
+
l !== (b == null ? void 0 : b.index) && (i = _o.nextNode(), l++);
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return _o.currentNode = Xo, c;
|
|
122
122
|
}
|
|
123
123
|
v(o) {
|
|
124
124
|
let e = 0;
|
|
@@ -126,10 +126,10 @@ class le {
|
|
|
126
126
|
t !== void 0 && (t.strings !== void 0 ? (t._$AI(o, t, e), e += t.strings.length - 2) : t._$AI(o[e])), e++;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
let
|
|
129
|
+
let re = class Re {
|
|
130
130
|
constructor(o, e, t, a) {
|
|
131
131
|
var c;
|
|
132
|
-
this.type = 2, this._$AH =
|
|
132
|
+
this.type = 2, this._$AH = N, this._$AN = void 0, this._$AA = o, this._$AB = e, this._$AM = t, this.options = a, this._$Cp = (c = a == null ? void 0 : a.isConnected) === null || c === void 0 || c;
|
|
133
133
|
}
|
|
134
134
|
get _$AU() {
|
|
135
135
|
var o, e;
|
|
@@ -147,7 +147,7 @@ let _r = class de {
|
|
|
147
147
|
return this._$AB;
|
|
148
148
|
}
|
|
149
149
|
_$AI(o, e = this) {
|
|
150
|
-
o =
|
|
150
|
+
o = Yo(this, o, e), Ho(o) ? o === N || o == null || o === "" ? (this._$AH !== N && this._$AR(), this._$AH = N) : o !== this._$AH && o !== ho && this._(o) : o._$litType$ !== void 0 ? this.g(o) : o.nodeType !== void 0 ? this.$(o) : Te(o) ? this.T(o) : this._(o);
|
|
151
151
|
}
|
|
152
152
|
k(o) {
|
|
153
153
|
return this._$AA.parentNode.insertBefore(o, this._$AB);
|
|
@@ -156,28 +156,28 @@ let _r = class de {
|
|
|
156
156
|
this._$AH !== o && (this._$AR(), this._$AH = this.k(o));
|
|
157
157
|
}
|
|
158
158
|
_(o) {
|
|
159
|
-
this._$AH !==
|
|
159
|
+
this._$AH !== N && Ho(this._$AH) ? this._$AA.nextSibling.data = o : this.$(Xo.createTextNode(o)), this._$AH = o;
|
|
160
160
|
}
|
|
161
161
|
g(o) {
|
|
162
162
|
var e;
|
|
163
|
-
const { values: t, _$litType$: a } = o, c = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el =
|
|
163
|
+
const { values: t, _$litType$: a } = o, c = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el = Qo.createElement(Be(a.h, a.h[0]), this.options)), a);
|
|
164
164
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === c)
|
|
165
165
|
this._$AH.v(t);
|
|
166
166
|
else {
|
|
167
|
-
const i = new
|
|
167
|
+
const i = new De(c, this), l = i.u(this.options);
|
|
168
168
|
i.v(t), this.$(l), this._$AH = i;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
_$AC(o) {
|
|
172
|
-
let e =
|
|
173
|
-
return e === void 0 &&
|
|
172
|
+
let e = he.get(o.strings);
|
|
173
|
+
return e === void 0 && he.set(o.strings, e = new Qo(o)), e;
|
|
174
174
|
}
|
|
175
175
|
T(o) {
|
|
176
|
-
|
|
176
|
+
Me(this._$AH) || (this._$AH = [], this._$AR());
|
|
177
177
|
const e = this._$AH;
|
|
178
178
|
let t, a = 0;
|
|
179
179
|
for (const c of o)
|
|
180
|
-
a === e.length ? e.push(t = new
|
|
180
|
+
a === e.length ? e.push(t = new Re(this.k(sr()), this.k(sr()), this, this.options)) : t = e[a], t._$AI(c), a++;
|
|
181
181
|
a < e.length && (this._$AR(t && t._$AB.nextSibling, a), e.length = a);
|
|
182
182
|
}
|
|
183
183
|
_$AR(o = this._$AA.nextSibling, e) {
|
|
@@ -192,9 +192,9 @@ let _r = class de {
|
|
|
192
192
|
this._$AM === void 0 && (this._$Cp = o, (e = this._$AP) === null || e === void 0 || e.call(this, o));
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
|
-
class
|
|
195
|
+
class Jo {
|
|
196
196
|
constructor(o, e, t, a, c) {
|
|
197
|
-
this.type = 1, this._$AH =
|
|
197
|
+
this.type = 1, this._$AH = N, this._$AN = void 0, this.element = o, this.name = e, this._$AM = a, this.options = c, t.length > 2 || t[0] !== "" || t[1] !== "" ? (this._$AH = Array(t.length - 1).fill(new String()), this.strings = t) : this._$AH = N;
|
|
198
198
|
}
|
|
199
199
|
get tagName() {
|
|
200
200
|
return this.element.tagName;
|
|
@@ -206,44 +206,44 @@ class Yo {
|
|
|
206
206
|
const c = this.strings;
|
|
207
207
|
let i = !1;
|
|
208
208
|
if (c === void 0)
|
|
209
|
-
o =
|
|
209
|
+
o = Yo(this, o, e, 0), i = !Ho(o) || o !== this._$AH && o !== ho, i && (this._$AH = o);
|
|
210
210
|
else {
|
|
211
211
|
const l = o;
|
|
212
|
-
let
|
|
213
|
-
for (o = c[0],
|
|
214
|
-
|
|
212
|
+
let n, b;
|
|
213
|
+
for (o = c[0], n = 0; n < c.length - 1; n++)
|
|
214
|
+
b = Yo(this, l[t + n], e, n), b === ho && (b = this._$AH[n]), i || (i = !Ho(b) || b !== this._$AH[n]), b === N ? o = N : o !== N && (o += (b ?? "") + c[n + 1]), this._$AH[n] = b;
|
|
215
215
|
}
|
|
216
216
|
i && !a && this.j(o);
|
|
217
217
|
}
|
|
218
218
|
j(o) {
|
|
219
|
-
o ===
|
|
219
|
+
o === N ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, o ?? "");
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
let
|
|
222
|
+
let Pe = class extends Jo {
|
|
223
223
|
constructor() {
|
|
224
224
|
super(...arguments), this.type = 3;
|
|
225
225
|
}
|
|
226
226
|
j(o) {
|
|
227
|
-
this.element[this.name] = o ===
|
|
227
|
+
this.element[this.name] = o === N ? void 0 : o;
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
|
-
const
|
|
231
|
-
let
|
|
230
|
+
const Zt = Mo ? Mo.emptyScript : "";
|
|
231
|
+
let Ie = class extends Jo {
|
|
232
232
|
constructor() {
|
|
233
233
|
super(...arguments), this.type = 4;
|
|
234
234
|
}
|
|
235
235
|
j(o) {
|
|
236
|
-
o && o !==
|
|
236
|
+
o && o !== N ? this.element.setAttribute(this.name, Zt) : this.element.removeAttribute(this.name);
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, He = class extends Jo {
|
|
239
239
|
constructor(o, e, t, a, c) {
|
|
240
240
|
super(o, e, t, a, c), this.type = 5;
|
|
241
241
|
}
|
|
242
242
|
_$AI(o, e = this) {
|
|
243
243
|
var t;
|
|
244
|
-
if ((o = (t =
|
|
244
|
+
if ((o = (t = Yo(this, o, e, 0)) !== null && t !== void 0 ? t : N) === ho)
|
|
245
245
|
return;
|
|
246
|
-
const a = this._$AH, c = o ===
|
|
246
|
+
const a = this._$AH, c = o === N && a !== N || o.capture !== a.capture || o.once !== a.once || o.passive !== a.passive, i = o !== N && (a === N || c);
|
|
247
247
|
c && this.element.removeEventListener(this.name, this, a), i && this.element.addEventListener(this.name, this, o), this._$AH = o;
|
|
248
248
|
}
|
|
249
249
|
handleEvent(o) {
|
|
@@ -251,7 +251,7 @@ let be = class extends Yo {
|
|
|
251
251
|
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);
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
class
|
|
254
|
+
class Qe {
|
|
255
255
|
constructor(o, e, t) {
|
|
256
256
|
this.element = o, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = t;
|
|
257
257
|
}
|
|
@@ -259,17 +259,17 @@ class se {
|
|
|
259
259
|
return this._$AM._$AU;
|
|
260
260
|
}
|
|
261
261
|
_$AI(o) {
|
|
262
|
-
|
|
262
|
+
Yo(this, o);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
const
|
|
266
|
-
|
|
265
|
+
const St = { O: br, P: lo, A: oe, C: 1, M: Ne, L: De, D: Te, R: Yo, I: re, V: Jo, H: Ie, N: He, U: Pe, F: Qe }, pe = nr.litHtmlPolyfillSupport;
|
|
266
|
+
pe == null || pe(Qo, re), ((Xr = nr.litHtmlVersions) !== null && Xr !== void 0 ? Xr : nr.litHtmlVersions = []).push("2.7.5");
|
|
267
267
|
/**
|
|
268
268
|
* @license
|
|
269
269
|
* Copyright 2018 Google LLC
|
|
270
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
271
|
*/
|
|
272
|
-
const
|
|
272
|
+
const B = (r) => r ?? N, io = {
|
|
273
273
|
base: "border-2 relative",
|
|
274
274
|
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",
|
|
275
275
|
callout: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",
|
|
@@ -284,7 +284,7 @@ const q = (r) => r ?? _, I = {
|
|
|
284
284
|
arrowPopover: "i-bg-$color-popover-background i-border-$color-popover-background",
|
|
285
285
|
content: "last-child:mb-0",
|
|
286
286
|
notCallout: "absolute z-50"
|
|
287
|
-
},
|
|
287
|
+
}, $o = {
|
|
288
288
|
base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
|
|
289
289
|
neutral: "i-bg-$color-badge-neutral-background i-text-$color-badge-neutral-text",
|
|
290
290
|
info: "i-bg-$color-badge-info-background i-text-$color-badge-info-text",
|
|
@@ -299,7 +299,7 @@ const q = (r) => r ?? _, I = {
|
|
|
299
299
|
positionTR: "rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0",
|
|
300
300
|
positionBR: "rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0",
|
|
301
301
|
positionBL: "rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0"
|
|
302
|
-
},
|
|
302
|
+
}, no = {
|
|
303
303
|
box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
|
|
304
304
|
// Relative here enables w-clickable
|
|
305
305
|
bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",
|
|
@@ -310,7 +310,7 @@ const q = (r) => r ?? _, I = {
|
|
|
310
310
|
infoClickable: "hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",
|
|
311
311
|
neutralClickable: "hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",
|
|
312
312
|
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"
|
|
313
|
-
},
|
|
313
|
+
}, eo = {
|
|
314
314
|
card: "cursor-pointer overflow-hidden relative transition-all",
|
|
315
315
|
cardShadow: "rounded-8 i-shadow-$shadow-card hover:i-shadow-$shadow-card-hover hover:i-bg-$color-card-background-hover tap-highlight-transparent",
|
|
316
316
|
cardFlat: "border-2 rounded-4",
|
|
@@ -321,11 +321,11 @@ const q = (r) => r ?? _, I = {
|
|
|
321
321
|
cardOutlineUnselected: "i-border-$color-card-border",
|
|
322
322
|
cardOutlineSelected: "i-border-$color-card-border-selected hover:i-border-$color-card-border-selected-hover",
|
|
323
323
|
a11y: "sr-only"
|
|
324
|
-
},
|
|
324
|
+
}, jr = {
|
|
325
325
|
container: "fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
|
|
326
326
|
content: "w-full",
|
|
327
327
|
toaster: "grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
|
|
328
|
-
},
|
|
328
|
+
}, K = {
|
|
329
329
|
wrapper: "relative overflow-hidden w-full",
|
|
330
330
|
toast: "flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",
|
|
331
331
|
positive: "i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",
|
|
@@ -338,23 +338,23 @@ const q = (r) => r ?? _, I = {
|
|
|
338
338
|
iconLoading: "animate-bounce",
|
|
339
339
|
content: "self-center mr-8 py-4 last-child:mb-0",
|
|
340
340
|
close: "bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"
|
|
341
|
-
},
|
|
341
|
+
}, At = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", U = {
|
|
342
342
|
expandable: "will-change-height",
|
|
343
343
|
expandableTitle: "font-bold i-text-$color-expandable-title-text",
|
|
344
|
-
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " +
|
|
345
|
-
expandableBleed:
|
|
344
|
+
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " + no.box,
|
|
345
|
+
expandableBleed: no.bleed,
|
|
346
346
|
chevron: "inline-block align-middle transform transition-transform transform-gpu i-text-$color-expandable-icon",
|
|
347
347
|
chevronNonBox: "relative left-8",
|
|
348
348
|
chevronBox: "absolute right-16",
|
|
349
349
|
chevronExpanded: "-rotate-180",
|
|
350
350
|
expansion: "overflow-hidden",
|
|
351
351
|
expansionNotExpanded: "h-0 invisible",
|
|
352
|
-
button:
|
|
353
|
-
buttonBox: "w-full text-left relative inline-flex items-center " +
|
|
352
|
+
button: At + " hover:underline focus:underline",
|
|
353
|
+
buttonBox: "w-full text-left relative inline-flex items-center " + no.box,
|
|
354
354
|
paddingTop: "pt-0",
|
|
355
355
|
title: "flex justify-between items-center",
|
|
356
356
|
titleType: "h4"
|
|
357
|
-
},
|
|
357
|
+
}, go = "font-bold focusable justify-center transition-colors ease-in-out", O = {
|
|
358
358
|
primary: "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",
|
|
359
359
|
secondary: "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",
|
|
360
360
|
utility: "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",
|
|
@@ -366,14 +366,14 @@ const q = (r) => r ?? _, I = {
|
|
|
366
366
|
negativeQuiet: "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",
|
|
367
367
|
loading: "i-text-$color-button-loading-text i-bg-$color-button-loading-background",
|
|
368
368
|
link: "i-text-$color-button-link-text"
|
|
369
|
-
},
|
|
370
|
-
primary: `border-0 rounded-8 ${
|
|
371
|
-
secondary: `border-2 rounded-8 ${
|
|
372
|
-
utility: `border rounded-4 ${
|
|
373
|
-
negative: `border-0 rounded-8 ${
|
|
374
|
-
pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${
|
|
375
|
-
link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${
|
|
376
|
-
},
|
|
369
|
+
}, S = {
|
|
370
|
+
primary: `border-0 rounded-8 ${go}`,
|
|
371
|
+
secondary: `border-2 rounded-8 ${go}`,
|
|
372
|
+
utility: `border rounded-4 ${go}`,
|
|
373
|
+
negative: `border-0 rounded-8 ${go}`,
|
|
374
|
+
pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${go}`,
|
|
375
|
+
link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${O.link}`
|
|
376
|
+
}, k = {
|
|
377
377
|
xsmall: "py-6 px-16",
|
|
378
378
|
small: "py-8 px-16",
|
|
379
379
|
medium: "py-10 px-14",
|
|
@@ -383,86 +383,86 @@ const q = (r) => r ?? _, I = {
|
|
|
383
383
|
pill: "min-h-[44px] min-w-[44px]",
|
|
384
384
|
pillSmall: "min-h-32 min-w-32",
|
|
385
385
|
linkSmall: "p-0"
|
|
386
|
-
},
|
|
386
|
+
}, $ = {
|
|
387
387
|
medium: "text-m leading-[24]",
|
|
388
388
|
xsmall: "text-xs"
|
|
389
|
-
},
|
|
390
|
-
inProgress: `border-transparent animate-inprogress pointer-events-none ${
|
|
389
|
+
}, m = {
|
|
390
|
+
inProgress: `border-transparent animate-inprogress pointer-events-none ${O.loading}`,
|
|
391
391
|
// .button--in-progress, a.button--in-progress:visited
|
|
392
|
-
quiet: `border-0 rounded-8 ${
|
|
393
|
-
utilityQuiet: `border-0 rounded-4 ${
|
|
394
|
-
negativeQuiet: `border-0 rounded-8 ${
|
|
395
|
-
isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${
|
|
392
|
+
quiet: `border-0 rounded-8 ${go}`,
|
|
393
|
+
utilityQuiet: `border-0 rounded-4 ${go}`,
|
|
394
|
+
negativeQuiet: `border-0 rounded-8 ${go}`,
|
|
395
|
+
isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${O.disabled}`
|
|
396
396
|
// .button:disabled, .button--is-disabled
|
|
397
|
-
},
|
|
397
|
+
}, X = {
|
|
398
398
|
// Buttontypes
|
|
399
|
-
secondary: `${
|
|
399
|
+
secondary: `${k.medium} ${$.medium} ${S.secondary} ${O.secondary}`,
|
|
400
400
|
// .button--secondary, .button--default, .button
|
|
401
|
-
secondaryHref: `${
|
|
402
|
-
secondaryDisabled: `${
|
|
403
|
-
secondarySmall: `${
|
|
404
|
-
secondarySmallDisabled: `${
|
|
405
|
-
secondaryQuiet: `${
|
|
406
|
-
secondaryQuietDisabled: `${
|
|
407
|
-
secondarySmallQuiet: `${
|
|
408
|
-
secondarySmallQuietDisabled: `${
|
|
409
|
-
secondaryLoading: `${
|
|
410
|
-
secondarySmallLoading: `${
|
|
411
|
-
secondarySmallQuietLoading: `${
|
|
412
|
-
secondaryQuietLoading: `${
|
|
413
|
-
primary: `${
|
|
401
|
+
secondaryHref: `${k.medium} ${$.medium} ${S.secondary} ${O.secondary}`,
|
|
402
|
+
secondaryDisabled: `${k.medium} ${$.medium} ${S.secondary} ${m.isDisabled}`,
|
|
403
|
+
secondarySmall: `${$.xsmall} ${k.xsmall} ${S.secondary} ${O.secondary}`,
|
|
404
|
+
secondarySmallDisabled: `${$.xsmall} ${k.xsmall} ${S.secondary} ${m.isDisabled}`,
|
|
405
|
+
secondaryQuiet: `${k.medium} ${$.medium} ${m.quiet} ${O.quiet}`,
|
|
406
|
+
secondaryQuietDisabled: `${k.medium} ${$.medium} ${m.quiet} ${m.isDisabled}`,
|
|
407
|
+
secondarySmallQuiet: `${$.xsmall} ${k.xsmall} ${m.quiet} ${O.quiet}`,
|
|
408
|
+
secondarySmallQuietDisabled: `${$.xsmall} ${k.xsmall} ${m.quiet} ${m.isDisabled}`,
|
|
409
|
+
secondaryLoading: `${k.medium} ${$.medium} ${S.secondary} ${m.inProgress}`,
|
|
410
|
+
secondarySmallLoading: `${$.xsmall} ${k.xsmall} ${S.secondary} ${m.inProgress}`,
|
|
411
|
+
secondarySmallQuietLoading: `${$.xsmall} ${k.xsmall} ${m.quiet} ${m.inProgress}`,
|
|
412
|
+
secondaryQuietLoading: `${k.medium} ${$.medium} ${m.quiet} ${m.inProgress}`,
|
|
413
|
+
primary: `${k.large} ${$.medium} ${S.primary} ${O.primary}`,
|
|
414
414
|
// .button--primary, .button--cta
|
|
415
|
-
primaryDisabled: `${
|
|
416
|
-
primarySmall: `${
|
|
417
|
-
primarySmallDisabled: `${
|
|
418
|
-
primaryQuiet: `${
|
|
419
|
-
primaryQuietDisabled: `${
|
|
420
|
-
primarySmallQuiet: `${
|
|
421
|
-
primarySmallQuietDisabled: `${
|
|
422
|
-
primaryLoading: `${
|
|
423
|
-
primarySmallLoading: `${
|
|
424
|
-
primarySmallQuietLoading: `${
|
|
425
|
-
primaryQuietLoading: `${
|
|
426
|
-
utility: `${
|
|
415
|
+
primaryDisabled: `${k.large} ${$.medium} ${m.isDisabled} ${S.primary}`,
|
|
416
|
+
primarySmall: `${k.small} ${$.xsmall} ${S.primary} ${O.primary}`,
|
|
417
|
+
primarySmallDisabled: `${k.small} ${$.xsmall} ${m.isDisabled} ${S.primary} `,
|
|
418
|
+
primaryQuiet: `${k.large} ${$.medium} ${m.quiet} ${O.quiet}`,
|
|
419
|
+
primaryQuietDisabled: `${k.large} ${$.medium} ${m.quiet} ${m.isDisabled}`,
|
|
420
|
+
primarySmallQuiet: `${k.small} ${$.xsmall} ${m.quiet} ${O.quiet}`,
|
|
421
|
+
primarySmallQuietDisabled: `${k.small} ${$.xsmall} ${m.quiet} ${m.isDisabled}`,
|
|
422
|
+
primaryLoading: `${k.large} ${$.medium} ${m.inProgress} ${S.primary}`,
|
|
423
|
+
primarySmallLoading: `${k.small} ${$.xsmall} ${m.inProgress} ${S.primary}`,
|
|
424
|
+
primarySmallQuietLoading: `${k.small} ${$.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,
|
|
425
|
+
primaryQuietLoading: `${k.large} ${$.medium} ${m.quiet} ${m.inProgress}`,
|
|
426
|
+
utility: `${k.utility} ${$.medium} ${S.utility} ${O.utility}`,
|
|
427
427
|
// .button--utility
|
|
428
|
-
utilityDisabled: `${
|
|
429
|
-
utilityQuiet: `${
|
|
428
|
+
utilityDisabled: `${k.utility} ${$.medium} ${S.utility} ${m.isDisabled}`,
|
|
429
|
+
utilityQuiet: `${k.large} ${$.medium} ${m.utilityQuiet} ${O.utilityQuiet}`,
|
|
430
430
|
// .button--utility-flat
|
|
431
|
-
utilityQuietDisabled: `${
|
|
432
|
-
utilitySmall: `${
|
|
433
|
-
utilitySmallDisabled: `${
|
|
434
|
-
utilitySmallQuiet: `${
|
|
435
|
-
utilitySmallQuietDisabled: `${
|
|
436
|
-
utilityLoading: `${
|
|
437
|
-
utilitySmallLoading: `${
|
|
438
|
-
utilityQuietLoading: `${
|
|
439
|
-
utilitySmallQuietLoading: `${
|
|
440
|
-
negative: `${
|
|
431
|
+
utilityQuietDisabled: `${k.large} ${$.medium} ${m.utilityQuiet} ${m.isDisabled}`,
|
|
432
|
+
utilitySmall: `${k.smallUtility} ${$.xsmall} ${S.utility} ${O.utility}`,
|
|
433
|
+
utilitySmallDisabled: `${k.smallUtility} ${$.xsmall} ${S.utility} ${m.isDisabled}`,
|
|
434
|
+
utilitySmallQuiet: `${k.smallUtility} ${$.xsmall} ${m.utilityQuiet} ${O.utilityQuiet}`,
|
|
435
|
+
utilitySmallQuietDisabled: `${k.smallUtility} ${$.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,
|
|
436
|
+
utilityLoading: `${k.large} ${$.medium} ${S.utility} ${m.inProgress}`,
|
|
437
|
+
utilitySmallLoading: `${k.smallUtility} ${$.xsmall} ${S.utility} ${m.inProgress}`,
|
|
438
|
+
utilityQuietLoading: `${k.large} ${$.medium} ${m.inProgress} ${m.utilityQuiet}`,
|
|
439
|
+
utilitySmallQuietLoading: `${k.smallUtility} ${$.xsmall} ${m.inProgress} ${m.utilityQuiet}`,
|
|
440
|
+
negative: `${k.large} ${$.medium} ${S.negative} ${O.destructive}`,
|
|
441
441
|
// .button--destructive
|
|
442
|
-
negativeDisabled: `${
|
|
443
|
-
negativeQuiet: `${
|
|
442
|
+
negativeDisabled: `${k.large} ${$.medium} ${S.negative} ${m.isDisabled}`,
|
|
443
|
+
negativeQuiet: `${k.large} ${$.medium} ${m.negativeQuiet} ${O.negativeQuiet}`,
|
|
444
444
|
// .button--destructive-flat
|
|
445
|
-
negativeQuietDisabled: `${
|
|
446
|
-
negativeSmall: `${
|
|
447
|
-
negativeSmallDisabled: `${
|
|
448
|
-
negativeSmallQuiet: `${
|
|
449
|
-
negativeSmallQuietDisabled: `${
|
|
450
|
-
negativeLoading: `${
|
|
451
|
-
negativeSmallLoading: `${
|
|
452
|
-
negativeQuietLoading: `${
|
|
453
|
-
negativeSmallQuietLoading: `${
|
|
454
|
-
pill: `${
|
|
445
|
+
negativeQuietDisabled: `${k.large} ${$.medium} ${m.negativeQuiet}${m.isDisabled}`,
|
|
446
|
+
negativeSmall: `${k.small} ${$.xsmall} ${S.negative} ${O.destructive}`,
|
|
447
|
+
negativeSmallDisabled: `${k.small} ${$.xsmall} ${S.negative} ${m.isDisabled}`,
|
|
448
|
+
negativeSmallQuiet: `${k.small} ${$.xsmall} ${m.negativeQuiet} ${O.negativeQuiet}`,
|
|
449
|
+
negativeSmallQuietDisabled: `${k.small} ${$.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,
|
|
450
|
+
negativeLoading: `${k.large} ${$.medium} ${S.negative} ${m.inProgress}`,
|
|
451
|
+
negativeSmallLoading: `${k.small} ${$.xsmall} ${m.inProgress} ${S.negative}`,
|
|
452
|
+
negativeQuietLoading: `${k.large} ${$.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,
|
|
453
|
+
negativeSmallQuietLoading: `${k.small} ${$.xsmall} ${m.negativeQuiet} ${m.inProgress}`,
|
|
454
|
+
pill: `${k.pill} ${$.medium} ${S.pill} ${O.pill}`,
|
|
455
455
|
// .button--pill
|
|
456
|
-
pillSmall: `${
|
|
457
|
-
pillLoading: `${
|
|
458
|
-
pillSmallLoading: `${
|
|
459
|
-
link: `${
|
|
460
|
-
linkSmall: `${
|
|
456
|
+
pillSmall: `${k.pillSmall} ${$.xsmall} ${S.pill} ${O.pill}`,
|
|
457
|
+
pillLoading: `${k.pill} ${$.medium} ${S.pill} ${m.inProgress}`,
|
|
458
|
+
pillSmallLoading: `${k.pillSmall} ${$.xsmall} ${S.pill} ${m.inProgress}`,
|
|
459
|
+
link: `${k.medium} ${$.medium} ${S.link}`,
|
|
460
|
+
linkSmall: `${k.linkSmall} ${$.xsmall} ${S.link}`,
|
|
461
461
|
linkAsButton: "inline-block hover:no-underline",
|
|
462
462
|
a11y: "sr-only",
|
|
463
463
|
fullWidth: "w-full max-w-full",
|
|
464
464
|
contentWidth: "max-w-max"
|
|
465
|
-
},
|
|
465
|
+
}, Do = {
|
|
466
466
|
alert: "flex p-16 border border-l-4 rounded-4",
|
|
467
467
|
willChangeHeight: "will-change-height",
|
|
468
468
|
textWrapper: "last-child:mb-0 text-s",
|
|
@@ -476,7 +476,7 @@ const q = (r) => r ?? _, I = {
|
|
|
476
476
|
warningIcon: "i-text-$color-alert-warning-icon",
|
|
477
477
|
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",
|
|
478
478
|
infoIcon: "i-text-$color-alert-info-icon"
|
|
479
|
-
},
|
|
479
|
+
}, yo = {
|
|
480
480
|
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",
|
|
481
481
|
textArea: "min-h-[42] sm:min-h-[45]",
|
|
482
482
|
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",
|
|
@@ -486,7 +486,7 @@ const q = (r) => r ?? _, I = {
|
|
|
486
486
|
wrapper: "relative",
|
|
487
487
|
suffix: "pr-40",
|
|
488
488
|
prefix: "pl-40"
|
|
489
|
-
},
|
|
489
|
+
}, So = {
|
|
490
490
|
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",
|
|
491
491
|
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",
|
|
492
492
|
invalid: "i-border-$color-select-border-negative",
|
|
@@ -495,31 +495,31 @@ const q = (r) => r ?? _, I = {
|
|
|
495
495
|
selectWrapper: "relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",
|
|
496
496
|
chevron: "absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",
|
|
497
497
|
chevronDisabled: "opacity-25"
|
|
498
|
-
},
|
|
498
|
+
}, Po = {
|
|
499
499
|
label: "antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",
|
|
500
500
|
labelInvalid: "i-text-$color-label-text-negative",
|
|
501
501
|
optional: "pl-8 font-normal text-s i-text-$color-label-optional-text"
|
|
502
|
-
},
|
|
502
|
+
}, gr = {
|
|
503
503
|
helpText: "text-xs mt-4 block i-text-$color-helptext-text",
|
|
504
504
|
helpTextValid: "i-text-$color-helptext-text-positive",
|
|
505
505
|
helpTextInvalid: "i-text-$color-helptext-text-negative"
|
|
506
|
-
},
|
|
507
|
-
wrapper:
|
|
506
|
+
}, Ue = "absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ", Et = {
|
|
507
|
+
wrapper: Ue + "right-0",
|
|
508
508
|
wrapperWithLabel: "w-max pr-12",
|
|
509
509
|
wrapperWithIcon: "w-40",
|
|
510
510
|
label: "antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"
|
|
511
|
-
},
|
|
512
|
-
wrapper:
|
|
511
|
+
}, Ct = {
|
|
512
|
+
wrapper: Ue + "left-0",
|
|
513
513
|
wrapperWithLabel: "w-max pl-12",
|
|
514
514
|
wrapperWithIcon: "w-40",
|
|
515
515
|
label: "antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"
|
|
516
|
-
},
|
|
516
|
+
}, Eo = {
|
|
517
517
|
wrapper: "flex space-x-8",
|
|
518
518
|
text: "i-text-$color-breadcrumbs-text",
|
|
519
519
|
link: "i-text-$color-breadcrumbs-link-text",
|
|
520
520
|
separator: "select-none i-text-$color-breadcrumbs-icon",
|
|
521
521
|
a11y: "sr-only"
|
|
522
|
-
},
|
|
522
|
+
}, Lt = f`
|
|
523
523
|
<svg
|
|
524
524
|
role="img"
|
|
525
525
|
aria-label="X"
|
|
@@ -536,7 +536,7 @@ const q = (r) => r ?? _, I = {
|
|
|
536
536
|
clipRule="evenodd"
|
|
537
537
|
/>
|
|
538
538
|
</svg>
|
|
539
|
-
`,
|
|
539
|
+
`, Mt = f`
|
|
540
540
|
<svg
|
|
541
541
|
role="img"
|
|
542
542
|
aria-label="Forstørrelsesglass"
|
|
@@ -567,8 +567,8 @@ const q = (r) => r ?? _, I = {
|
|
|
567
567
|
* Copyright 2017 Google LLC
|
|
568
568
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
569
|
*/
|
|
570
|
-
const
|
|
571
|
-
let
|
|
570
|
+
const ee = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, te = (r) => (...o) => ({ _$litDirective$: r, values: o });
|
|
571
|
+
let ae = class {
|
|
572
572
|
constructor(o) {
|
|
573
573
|
}
|
|
574
574
|
get _$AU() {
|
|
@@ -589,10 +589,10 @@ let jr = class {
|
|
|
589
589
|
* Copyright 2018 Google LLC
|
|
590
590
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
591
591
|
*/
|
|
592
|
-
const
|
|
592
|
+
const Fe = te(class extends ae {
|
|
593
593
|
constructor(r) {
|
|
594
594
|
var o;
|
|
595
|
-
if (super(r), r.type !==
|
|
595
|
+
if (super(r), r.type !== ee.ATTRIBUTE || r.name !== "class" || ((o = r.strings) === null || o === void 0 ? void 0 : o.length) > 2)
|
|
596
596
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
597
597
|
}
|
|
598
598
|
render(r) {
|
|
@@ -614,62 +614,62 @@ const ve = Yr(class extends jr {
|
|
|
614
614
|
const i = !!o[c];
|
|
615
615
|
i === this.it.has(c) || !((t = this.nt) === null || t === void 0) && t.has(c) || (i ? (a.add(c), this.it.add(c)) : (a.remove(c), this.it.delete(c)));
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return ho;
|
|
618
618
|
}
|
|
619
|
-
}),
|
|
620
|
-
function
|
|
619
|
+
}), Tt = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
620
|
+
function Ko(r) {
|
|
621
621
|
return class extends r {
|
|
622
622
|
static createProperty(o, e) {
|
|
623
623
|
let t = e;
|
|
624
624
|
(typeof (e == null ? void 0 : e.attribute) > "u" || (e == null ? void 0 : e.attribute) === !0) && (t = Object.assign({}, e, {
|
|
625
|
-
attribute:
|
|
625
|
+
attribute: Tt(o.toString())
|
|
626
626
|
})), super.createProperty(o, t);
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Er(r) {
|
|
631
631
|
const o = [];
|
|
632
632
|
for (const [e, t] of Object.entries(r))
|
|
633
633
|
t && o.push(e);
|
|
634
634
|
return o.join(" ");
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function V(r) {
|
|
637
637
|
const o = {};
|
|
638
638
|
for (const [e, t] of Object.entries(r))
|
|
639
639
|
for (const a of e.split(" "))
|
|
640
640
|
o[a] = t;
|
|
641
|
-
return
|
|
641
|
+
return Fe(o);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Ot() {
|
|
644
644
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
645
645
|
}
|
|
646
|
-
class
|
|
646
|
+
class Cr extends I {
|
|
647
647
|
get _classBase() {
|
|
648
|
-
return this.slot === "suffix" ?
|
|
648
|
+
return this.slot === "suffix" ? Et : Ct;
|
|
649
649
|
}
|
|
650
650
|
get _classes() {
|
|
651
|
-
return
|
|
651
|
+
return V({
|
|
652
652
|
[this._classBase.wrapper]: !0,
|
|
653
653
|
[this._classBase.wrapperWithLabel]: this.label,
|
|
654
654
|
[this._classBase.wrapperWithIcon]: !this.label
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
get _searchButton() {
|
|
658
|
-
return
|
|
659
|
-
<button aria-label="${
|
|
660
|
-
${
|
|
658
|
+
return f`
|
|
659
|
+
<button aria-label="${B(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
660
|
+
${Mt}
|
|
661
661
|
</button>
|
|
662
662
|
`;
|
|
663
663
|
}
|
|
664
664
|
get _clearButton() {
|
|
665
|
-
return
|
|
666
|
-
<button aria-label="${
|
|
667
|
-
${
|
|
665
|
+
return f`
|
|
666
|
+
<button aria-label="${B(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
667
|
+
${Lt}
|
|
668
668
|
</button>
|
|
669
669
|
`;
|
|
670
670
|
}
|
|
671
671
|
get _text() {
|
|
672
|
-
return
|
|
672
|
+
return f`
|
|
673
673
|
<div class="${this._classes}">
|
|
674
674
|
<span class="${this._classBase.label}">${this.label}</span>
|
|
675
675
|
</div>
|
|
@@ -684,10 +684,10 @@ class lr extends Y {
|
|
|
684
684
|
return this._clearButton;
|
|
685
685
|
}
|
|
686
686
|
render() {
|
|
687
|
-
return
|
|
687
|
+
return f`${this._markup}`;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
|
|
690
|
+
Z(Cr, "styles", Q`
|
|
691
691
|
/* layer: preflights */
|
|
692
692
|
*,::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;}
|
|
693
693
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -1336,14 +1336,14 @@ f(lr, "styles", A`
|
|
|
1336
1336
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
1337
1337
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
1338
1338
|
}
|
|
1339
|
-
`),
|
|
1339
|
+
`), Z(Cr, "properties", {
|
|
1340
1340
|
ariaLabel: { type: String, attribute: "aria-label" },
|
|
1341
1341
|
clear: { type: Boolean },
|
|
1342
1342
|
search: { type: Boolean },
|
|
1343
1343
|
label: { type: String }
|
|
1344
1344
|
});
|
|
1345
|
-
customElements.get("w-affix") || customElements.define("w-affix",
|
|
1346
|
-
const
|
|
1345
|
+
customElements.get("w-affix") || customElements.define("w-affix", Cr);
|
|
1346
|
+
const Bt = () => f`<svg
|
|
1347
1347
|
aria-label="Rødt utropstegn"
|
|
1348
1348
|
role="img"
|
|
1349
1349
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1351,8 +1351,8 @@ const Ve = () => v`<svg
|
|
|
1351
1351
|
height="16"
|
|
1352
1352
|
fill="none"
|
|
1353
1353
|
>
|
|
1354
|
-
${
|
|
1355
|
-
</svg>`,
|
|
1354
|
+
${Pt}
|
|
1355
|
+
</svg>`, Nt = () => f`<svg
|
|
1356
1356
|
aria-label="Grønt hake"
|
|
1357
1357
|
role="img"
|
|
1358
1358
|
width="16"
|
|
@@ -1360,8 +1360,8 @@ const Ve = () => v`<svg
|
|
|
1360
1360
|
fill="none"
|
|
1361
1361
|
xmlns="http://www.w3.org/2000/svg"
|
|
1362
1362
|
>
|
|
1363
|
-
${
|
|
1364
|
-
</svg> `,
|
|
1363
|
+
${It}
|
|
1364
|
+
</svg> `, Dt = () => f`<svg
|
|
1365
1365
|
aria-label="Gult utropstegn"
|
|
1366
1366
|
role="img"
|
|
1367
1367
|
width="16"
|
|
@@ -1369,8 +1369,8 @@ const Ve = () => v`<svg
|
|
|
1369
1369
|
fill="none"
|
|
1370
1370
|
xmlns="http://www.w3.org/2000/svg"
|
|
1371
1371
|
>
|
|
1372
|
-
${
|
|
1373
|
-
</svg> `,
|
|
1372
|
+
${Ht}
|
|
1373
|
+
</svg> `, Rt = () => f`<svg
|
|
1374
1374
|
aria-label="Info"
|
|
1375
1375
|
role="img"
|
|
1376
1376
|
width="16"
|
|
@@ -1378,8 +1378,8 @@ const Ve = () => v`<svg
|
|
|
1378
1378
|
fill="none"
|
|
1379
1379
|
xmlns="http://www.w3.org/2000/svg"
|
|
1380
1380
|
>
|
|
1381
|
-
${
|
|
1382
|
-
</svg>`,
|
|
1381
|
+
${Qt}
|
|
1382
|
+
</svg>`, Pt = po`<path
|
|
1383
1383
|
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"
|
|
1384
1384
|
fill="currentColor"
|
|
1385
1385
|
/>
|
|
@@ -1389,13 +1389,13 @@ clip-rule="evenodd"
|
|
|
1389
1389
|
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"
|
|
1390
1390
|
fill="#fff"
|
|
1391
1391
|
/>
|
|
1392
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
1392
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, It = po`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
1393
1393
|
<path
|
|
1394
1394
|
fill-rule="evenodd"
|
|
1395
1395
|
clip-rule="evenodd"
|
|
1396
1396
|
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"
|
|
1397
1397
|
fill="#fff"
|
|
1398
|
-
/>`,
|
|
1398
|
+
/>`, Ht = po`<path
|
|
1399
1399
|
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"
|
|
1400
1400
|
fill="currentColor"
|
|
1401
1401
|
/>
|
|
@@ -1405,61 +1405,61 @@ clip-rule="evenodd"
|
|
|
1405
1405
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
1406
1406
|
fill="#fff"
|
|
1407
1407
|
/>
|
|
1408
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
1408
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Qt = po`<circle cx="8" cy="8" r="8" fill="currentColor" />
|
|
1409
1409
|
<path
|
|
1410
1410
|
fill-rule="evenodd"
|
|
1411
1411
|
clip-rule="evenodd"
|
|
1412
1412
|
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"
|
|
1413
1413
|
fill="#fff"
|
|
1414
1414
|
/>`;
|
|
1415
|
-
var
|
|
1415
|
+
var uo = function() {
|
|
1416
1416
|
for (var r = [], o = arguments.length; o--; )
|
|
1417
1417
|
r[o] = arguments[o];
|
|
1418
1418
|
return r.reduce(function(e, t) {
|
|
1419
|
-
return e.concat(typeof t == "string" ? t : Array.isArray(t) ?
|
|
1419
|
+
return e.concat(typeof t == "string" ? t : Array.isArray(t) ? uo.apply(void 0, t) : typeof t == "object" && t ? Object.keys(t).map(function(a) {
|
|
1420
1420
|
return t[a] ? a : "";
|
|
1421
1421
|
}) : "");
|
|
1422
1422
|
}, []).join(" ");
|
|
1423
1423
|
};
|
|
1424
|
-
const
|
|
1425
|
-
negative:
|
|
1426
|
-
positive:
|
|
1427
|
-
warning:
|
|
1428
|
-
info:
|
|
1424
|
+
const we = {
|
|
1425
|
+
negative: Bt(),
|
|
1426
|
+
positive: Nt(),
|
|
1427
|
+
warning: Dt(),
|
|
1428
|
+
info: Rt()
|
|
1429
1429
|
};
|
|
1430
|
-
class
|
|
1430
|
+
class Lr extends I {
|
|
1431
1431
|
constructor() {
|
|
1432
1432
|
super(), this.show = !1, this.role = "alert";
|
|
1433
1433
|
}
|
|
1434
1434
|
connectedCallback() {
|
|
1435
|
-
if (super.connectedCallback(), !this.variant || !Object.keys(
|
|
1435
|
+
if (super.connectedCallback(), !this.variant || !Object.keys(we).includes(this.variant))
|
|
1436
1436
|
throw new Error(
|
|
1437
1437
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
1438
1438
|
negative, positive, warning, info.`
|
|
1439
1439
|
);
|
|
1440
1440
|
}
|
|
1441
1441
|
get _wrapperClasses() {
|
|
1442
|
-
return
|
|
1443
|
-
[
|
|
1444
|
-
[
|
|
1442
|
+
return uo({
|
|
1443
|
+
[Do.alert]: !0,
|
|
1444
|
+
[Do[this.variant]]: !0
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
get _iconClasses() {
|
|
1448
|
-
const o =
|
|
1449
|
-
return
|
|
1450
|
-
[
|
|
1448
|
+
const o = Do[`${this.variant}Icon`];
|
|
1449
|
+
return uo({
|
|
1450
|
+
[Do.icon]: !0,
|
|
1451
1451
|
[o]: !0
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
1454
1454
|
get _icon() {
|
|
1455
|
-
return this.variant ?
|
|
1455
|
+
return this.variant ? we[this.variant] : {};
|
|
1456
1456
|
}
|
|
1457
1457
|
render() {
|
|
1458
|
-
return
|
|
1458
|
+
return f`
|
|
1459
1459
|
<w-expand-transition ?show=${this.show}>
|
|
1460
1460
|
<div role=${this.role} class=${this._wrapperClasses}>
|
|
1461
1461
|
<div class=${this._iconClasses}>${this._icon}</div>
|
|
1462
|
-
<div class=${
|
|
1462
|
+
<div class=${Do.textWrapper}>
|
|
1463
1463
|
<slot></slot>
|
|
1464
1464
|
</div>
|
|
1465
1465
|
</div>
|
|
@@ -1467,7 +1467,7 @@ negative, positive, warning, info.`
|
|
|
1467
1467
|
`;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
|
|
1470
|
+
Z(Lr, "properties", {
|
|
1471
1471
|
variant: { type: String, reflect: !0 },
|
|
1472
1472
|
show: { type: Boolean, reflect: !0 },
|
|
1473
1473
|
role: { type: String, reflect: !0 }
|
|
@@ -1475,7 +1475,7 @@ f(dr, "properties", {
|
|
|
1475
1475
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
1476
1476
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
1477
1477
|
// https://stackoverflow.com/a/61631668
|
|
1478
|
-
|
|
1478
|
+
Z(Lr, "styles", Q`
|
|
1479
1479
|
/* layer: preflights */
|
|
1480
1480
|
*,::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;}
|
|
1481
1481
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -2135,310 +2135,310 @@ f(dr, "styles", A`
|
|
|
2135
2135
|
margin-bottom: 0px !important;
|
|
2136
2136
|
}
|
|
2137
2137
|
`);
|
|
2138
|
-
customElements.get("w-alert") || customElements.define("w-alert",
|
|
2139
|
-
function
|
|
2138
|
+
customElements.get("w-alert") || customElements.define("w-alert", Lr);
|
|
2139
|
+
function or(r) {
|
|
2140
2140
|
return r.split("-")[0];
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2142
|
+
function zr(r) {
|
|
2143
2143
|
return r.split("-")[1];
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
return ["top", "bottom"].includes(
|
|
2145
|
+
function rr(r) {
|
|
2146
|
+
return ["top", "bottom"].includes(or(r)) ? "x" : "y";
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function ce(r) {
|
|
2149
2149
|
return r === "y" ? "height" : "width";
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function xe(r, o, e) {
|
|
2152
2152
|
let { reference: t, floating: a } = r;
|
|
2153
|
-
const c = t.x + t.width / 2 - a.width / 2, i = t.y + t.height / 2 - a.height / 2, l =
|
|
2154
|
-
let
|
|
2155
|
-
switch (
|
|
2153
|
+
const c = t.x + t.width / 2 - a.width / 2, i = t.y + t.height / 2 - a.height / 2, l = rr(o), n = ce(l), b = t[n] / 2 - a[n] / 2, v = l === "x";
|
|
2154
|
+
let u;
|
|
2155
|
+
switch (or(o)) {
|
|
2156
2156
|
case "top":
|
|
2157
|
-
|
|
2157
|
+
u = { x: c, y: t.y - a.height };
|
|
2158
2158
|
break;
|
|
2159
2159
|
case "bottom":
|
|
2160
|
-
|
|
2160
|
+
u = { x: c, y: t.y + t.height };
|
|
2161
2161
|
break;
|
|
2162
2162
|
case "right":
|
|
2163
|
-
|
|
2163
|
+
u = { x: t.x + t.width, y: i };
|
|
2164
2164
|
break;
|
|
2165
2165
|
case "left":
|
|
2166
|
-
|
|
2166
|
+
u = { x: t.x - a.width, y: i };
|
|
2167
2167
|
break;
|
|
2168
2168
|
default:
|
|
2169
|
-
|
|
2169
|
+
u = { x: t.x, y: t.y };
|
|
2170
2170
|
}
|
|
2171
|
-
switch (
|
|
2171
|
+
switch (zr(o)) {
|
|
2172
2172
|
case "start":
|
|
2173
|
-
|
|
2173
|
+
u[l] -= b * (e && v ? -1 : 1);
|
|
2174
2174
|
break;
|
|
2175
2175
|
case "end":
|
|
2176
|
-
|
|
2176
|
+
u[l] += b * (e && v ? -1 : 1);
|
|
2177
2177
|
}
|
|
2178
|
-
return
|
|
2178
|
+
return u;
|
|
2179
2179
|
}
|
|
2180
|
-
const
|
|
2180
|
+
const Ut = async (r, o, e) => {
|
|
2181
2181
|
const { placement: t = "bottom", strategy: a = "absolute", middleware: c = [], platform: i } = e, l = await (i.isRTL == null ? void 0 : i.isRTL(o));
|
|
2182
|
-
let
|
|
2183
|
-
for (let
|
|
2184
|
-
const { name:
|
|
2185
|
-
|
|
2182
|
+
let n = await i.getElementRects({ reference: r, floating: o, strategy: a }), { x: b, y: v } = xe(n, t, l), u = t, h = {}, g = 0;
|
|
2183
|
+
for (let p = 0; p < c.length; p++) {
|
|
2184
|
+
const { name: x, fn: z } = c[p], { x: E, y: M, data: D, reset: T } = await z({ x: b, y: v, initialPlacement: t, placement: u, strategy: a, middlewareData: h, rects: n, platform: i, elements: { reference: r, floating: o } });
|
|
2185
|
+
b = E ?? b, v = M ?? v, h = { ...h, [x]: { ...h[x], ...D } }, T && g <= 50 && (g++, typeof T == "object" && (T.placement && (u = T.placement), T.rects && (n = T.rects === !0 ? await i.getElementRects({ reference: r, floating: o, strategy: a }) : T.rects), { x: b, y: v } = xe(n, u, l)), p = -1);
|
|
2186
2186
|
}
|
|
2187
|
-
return { x:
|
|
2187
|
+
return { x: b, y: v, placement: u, strategy: a, middlewareData: h };
|
|
2188
2188
|
};
|
|
2189
|
-
function
|
|
2189
|
+
function We(r) {
|
|
2190
2190
|
return typeof r != "number" ? function(o) {
|
|
2191
2191
|
return { top: 0, right: 0, bottom: 0, left: 0, ...o };
|
|
2192
2192
|
}(r) : { top: r, right: r, bottom: r, left: r };
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function ur(r) {
|
|
2195
2195
|
return { ...r, top: r.y, left: r.x, right: r.x + r.width, bottom: r.y + r.height };
|
|
2196
2196
|
}
|
|
2197
|
-
async function
|
|
2197
|
+
async function Ve(r, o) {
|
|
2198
2198
|
var e;
|
|
2199
2199
|
o === void 0 && (o = {});
|
|
2200
|
-
const { x: t, y: a, platform: c, rects: i, elements: l, strategy:
|
|
2201
|
-
return { top:
|
|
2200
|
+
const { x: t, y: a, platform: c, rects: i, elements: l, strategy: n } = r, { boundary: b = "clippingAncestors", rootBoundary: v = "viewport", elementContext: u = "floating", altBoundary: h = !1, padding: g = 0 } = o, p = We(g), x = l[h ? u === "floating" ? "reference" : "floating" : u], z = ur(await c.getClippingRect({ element: (e = await (c.isElement == null ? void 0 : c.isElement(x))) == null || e ? x : x.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(l.floating)), boundary: b, rootBoundary: v, strategy: n })), E = ur(c.convertOffsetParentRelativeRectToViewportRelativeRect ? await c.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: u === "floating" ? { ...i.floating, x: t, y: a } : i.reference, offsetParent: await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l.floating)), strategy: n }) : i[u]);
|
|
2201
|
+
return { top: z.top - E.top + p.top, bottom: E.bottom - z.bottom + p.bottom, left: z.left - E.left + p.left, right: E.right - z.right + p.right };
|
|
2202
2202
|
}
|
|
2203
|
-
const
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
2203
|
+
const Ft = Math.min, Wt = Math.max;
|
|
2204
|
+
function Mr(r, o, e) {
|
|
2205
|
+
return Wt(r, Ft(o, e));
|
|
2206
2206
|
}
|
|
2207
|
-
const
|
|
2208
|
-
const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: c, placement: i, rects: l, platform:
|
|
2207
|
+
const Vt = (r) => ({ name: "arrow", options: r, async fn(o) {
|
|
2208
|
+
const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: c, placement: i, rects: l, platform: n } = o;
|
|
2209
2209
|
if (e == null)
|
|
2210
2210
|
return {};
|
|
2211
|
-
const
|
|
2212
|
-
let
|
|
2213
|
-
|
|
2214
|
-
const
|
|
2215
|
-
return { [
|
|
2216
|
-
} }),
|
|
2217
|
-
function
|
|
2218
|
-
return r.replace(/left|right|bottom|top/g, (o) =>
|
|
2211
|
+
const b = We(t), v = { x: a, y: c }, u = rr(i), h = zr(i), g = ce(u), p = await n.getDimensions(e), x = u === "y" ? "top" : "left", z = u === "y" ? "bottom" : "right", E = l.reference[g] + l.reference[u] - v[u] - l.floating[g], M = v[u] - l.reference[u], D = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(e));
|
|
2212
|
+
let T = D ? u === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0;
|
|
2213
|
+
T === 0 && (T = l.floating[g]);
|
|
2214
|
+
const co = E / 2 - M / 2, W = b[x], C = T - p[g] - b[z], R = T / 2 - p[g] / 2 + co, F = Mr(W, R, C), ro = (h === "start" ? b[x] : b[z]) > 0 && R !== F && l.reference[g] <= l.floating[g];
|
|
2215
|
+
return { [u]: v[u] - (ro ? R < W ? W - R : C - R : 0), data: { [u]: F, centerOffset: R - F } };
|
|
2216
|
+
} }), Gt = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
2217
|
+
function vr(r) {
|
|
2218
|
+
return r.replace(/left|right|bottom|top/g, (o) => Gt[o]);
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2220
|
+
function Jt(r, o, e) {
|
|
2221
2221
|
e === void 0 && (e = !1);
|
|
2222
|
-
const t =
|
|
2222
|
+
const t = zr(r), a = rr(r), c = ce(a);
|
|
2223
2223
|
let i = a === "x" ? t === (e ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
|
|
2224
|
-
return o.reference[c] > o.floating[c] && (i =
|
|
2224
|
+
return o.reference[c] > o.floating[c] && (i = vr(i)), { main: i, cross: vr(i) };
|
|
2225
2225
|
}
|
|
2226
|
-
const
|
|
2227
|
-
function
|
|
2228
|
-
return r.replace(/start|end/g, (o) =>
|
|
2226
|
+
const Kt = { start: "end", end: "start" };
|
|
2227
|
+
function me(r) {
|
|
2228
|
+
return r.replace(/start|end/g, (o) => Kt[o]);
|
|
2229
2229
|
}
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2232
|
-
const
|
|
2230
|
+
const oa = ["top", "right", "bottom", "left"];
|
|
2231
|
+
oa.reduce((r, o) => r.concat(o, o + "-start", o + "-end"), []);
|
|
2232
|
+
const ra = function(r) {
|
|
2233
2233
|
return r === void 0 && (r = {}), { name: "flip", options: r, async fn(o) {
|
|
2234
2234
|
var e;
|
|
2235
|
-
const { placement: t, middlewareData: a, rects: c, initialPlacement: i, platform: l, elements:
|
|
2236
|
-
const
|
|
2237
|
-
return [
|
|
2238
|
-
}(i)),
|
|
2239
|
-
let
|
|
2240
|
-
if (
|
|
2241
|
-
const { main:
|
|
2242
|
-
|
|
2235
|
+
const { placement: t, middlewareData: a, rects: c, initialPlacement: i, platform: l, elements: n } = o, { mainAxis: b = !0, crossAxis: v = !0, fallbackPlacements: u, fallbackStrategy: h = "bestFit", flipAlignment: g = !0, ...p } = r, x = or(t), z = u || (x === i || !g ? [vr(i)] : function(R) {
|
|
2236
|
+
const F = vr(R);
|
|
2237
|
+
return [me(R), F, me(F)];
|
|
2238
|
+
}(i)), E = [i, ...z], M = await Ve(o, p), D = [];
|
|
2239
|
+
let T = ((e = a.flip) == null ? void 0 : e.overflows) || [];
|
|
2240
|
+
if (b && D.push(M[x]), v) {
|
|
2241
|
+
const { main: R, cross: F } = Jt(t, c, await (l.isRTL == null ? void 0 : l.isRTL(n.floating)));
|
|
2242
|
+
D.push(M[R], M[F]);
|
|
2243
2243
|
}
|
|
2244
|
-
if (
|
|
2245
|
-
var
|
|
2246
|
-
const
|
|
2247
|
-
if (
|
|
2248
|
-
return { data: { index:
|
|
2249
|
-
let
|
|
2250
|
-
switch (
|
|
2244
|
+
if (T = [...T, { placement: t, overflows: D }], !D.every((R) => R <= 0)) {
|
|
2245
|
+
var co, W;
|
|
2246
|
+
const R = ((co = (W = a.flip) == null ? void 0 : W.index) != null ? co : 0) + 1, F = E[R];
|
|
2247
|
+
if (F)
|
|
2248
|
+
return { data: { index: R, overflows: T }, reset: { placement: F } };
|
|
2249
|
+
let ro = "bottom";
|
|
2250
|
+
switch (h) {
|
|
2251
2251
|
case "bestFit": {
|
|
2252
|
-
var
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2252
|
+
var C;
|
|
2253
|
+
const d = (C = T.map((s) => [s, s.overflows.filter((w) => w > 0).reduce((w, y) => w + y, 0)]).sort((s, w) => s[1] - w[1])[0]) == null ? void 0 : C[0].placement;
|
|
2254
|
+
d && (ro = d);
|
|
2255
2255
|
break;
|
|
2256
2256
|
}
|
|
2257
2257
|
case "initialPlacement":
|
|
2258
|
-
|
|
2258
|
+
ro = i;
|
|
2259
2259
|
}
|
|
2260
|
-
if (t !==
|
|
2261
|
-
return { reset: { placement:
|
|
2260
|
+
if (t !== ro)
|
|
2261
|
+
return { reset: { placement: ro } };
|
|
2262
2262
|
}
|
|
2263
2263
|
return {};
|
|
2264
2264
|
} };
|
|
2265
|
-
},
|
|
2265
|
+
}, ea = function(r) {
|
|
2266
2266
|
return r === void 0 && (r = 0), { name: "offset", options: r, async fn(o) {
|
|
2267
2267
|
const { x: e, y: t } = o, a = await async function(c, i) {
|
|
2268
|
-
const { placement: l, platform:
|
|
2269
|
-
let { mainAxis:
|
|
2270
|
-
return
|
|
2268
|
+
const { placement: l, platform: n, elements: b } = c, v = await (n.isRTL == null ? void 0 : n.isRTL(b.floating)), u = or(l), h = zr(l), g = rr(l) === "x", p = ["left", "top"].includes(u) ? -1 : 1, x = v && g ? -1 : 1, z = typeof i == "function" ? i(c) : i;
|
|
2269
|
+
let { mainAxis: E, crossAxis: M, alignmentAxis: D } = typeof z == "number" ? { mainAxis: z, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...z };
|
|
2270
|
+
return h && typeof D == "number" && (M = h === "end" ? -1 * D : D), g ? { x: M * x, y: E * p } : { x: E * p, y: M * x };
|
|
2271
2271
|
}(o, r);
|
|
2272
2272
|
return { x: e + a.x, y: t + a.y, data: a };
|
|
2273
2273
|
} };
|
|
2274
2274
|
};
|
|
2275
|
-
function
|
|
2275
|
+
function ta(r) {
|
|
2276
2276
|
return r === "x" ? "y" : "x";
|
|
2277
2277
|
}
|
|
2278
|
-
const
|
|
2278
|
+
const aa = function(r) {
|
|
2279
2279
|
return r === void 0 && (r = {}), { name: "shift", options: r, async fn(o) {
|
|
2280
|
-
const { x: e, y: t, placement: a } = o, { mainAxis: c = !0, crossAxis: i = !1, limiter: l = { fn: (
|
|
2281
|
-
let { x:
|
|
2282
|
-
return { x:
|
|
2283
|
-
} }, ...
|
|
2284
|
-
let
|
|
2280
|
+
const { x: e, y: t, placement: a } = o, { mainAxis: c = !0, crossAxis: i = !1, limiter: l = { fn: (z) => {
|
|
2281
|
+
let { x: E, y: M } = z;
|
|
2282
|
+
return { x: E, y: M };
|
|
2283
|
+
} }, ...n } = r, b = { x: e, y: t }, v = await Ve(o, n), u = rr(or(a)), h = ta(u);
|
|
2284
|
+
let g = b[u], p = b[h];
|
|
2285
2285
|
if (c) {
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2286
|
+
const z = u === "y" ? "bottom" : "right";
|
|
2287
|
+
g = Mr(g + v[u === "y" ? "top" : "left"], g, g - v[z]);
|
|
2288
2288
|
}
|
|
2289
2289
|
if (i) {
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2290
|
+
const z = h === "y" ? "bottom" : "right";
|
|
2291
|
+
p = Mr(p + v[h === "y" ? "top" : "left"], p, p - v[z]);
|
|
2292
2292
|
}
|
|
2293
|
-
const
|
|
2294
|
-
return { ...
|
|
2293
|
+
const x = l.fn({ ...o, [u]: g, [h]: p });
|
|
2294
|
+
return { ...x, data: { x: x.x - e, y: x.y - t } };
|
|
2295
2295
|
} };
|
|
2296
2296
|
};
|
|
2297
|
-
function
|
|
2297
|
+
function Ge(r) {
|
|
2298
2298
|
return r && r.document && r.location && r.alert && r.setInterval;
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function so(r) {
|
|
2301
2301
|
if (r == null)
|
|
2302
2302
|
return window;
|
|
2303
|
-
if (!
|
|
2303
|
+
if (!Ge(r)) {
|
|
2304
2304
|
const o = r.ownerDocument;
|
|
2305
2305
|
return o && o.defaultView || window;
|
|
2306
2306
|
}
|
|
2307
2307
|
return r;
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2310
|
-
return
|
|
2309
|
+
function er(r) {
|
|
2310
|
+
return so(r).getComputedStyle(r);
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2313
|
-
return
|
|
2312
|
+
function bo(r) {
|
|
2313
|
+
return Ge(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function Je() {
|
|
2316
2316
|
const r = navigator.userAgentData;
|
|
2317
2317
|
return r != null && r.brands ? r.brands.map((o) => o.brand + "/" + o.version).join(" ") : navigator.userAgent;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2320
|
-
return r instanceof
|
|
2319
|
+
function ao(r) {
|
|
2320
|
+
return r instanceof so(r).HTMLElement;
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2323
|
-
return r instanceof
|
|
2322
|
+
function To(r) {
|
|
2323
|
+
return r instanceof so(r).Element;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2326
|
-
return typeof ShadowRoot > "u" ? !1 : r instanceof
|
|
2325
|
+
function ie(r) {
|
|
2326
|
+
return typeof ShadowRoot > "u" ? !1 : r instanceof so(r).ShadowRoot || r instanceof ShadowRoot;
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2329
|
-
const { overflow: o, overflowX: e, overflowY: t } =
|
|
2328
|
+
function _r(r) {
|
|
2329
|
+
const { overflow: o, overflowX: e, overflowY: t } = er(r);
|
|
2330
2330
|
return /auto|scroll|overlay|hidden/.test(o + t + e);
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return ["table", "td", "th"].includes(
|
|
2332
|
+
function ca(r) {
|
|
2333
|
+
return ["table", "td", "th"].includes(bo(r));
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2336
|
-
const o = /firefox/i.test(
|
|
2335
|
+
function fe(r) {
|
|
2336
|
+
const o = /firefox/i.test(Je()), e = er(r);
|
|
2337
2337
|
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";
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2340
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
2339
|
+
function Ke() {
|
|
2340
|
+
return !/^((?!chrome|android).)*safari/i.test(Je());
|
|
2341
2341
|
}
|
|
2342
|
-
const
|
|
2343
|
-
function
|
|
2342
|
+
const ke = Math.min, Io = Math.max, hr = Math.round;
|
|
2343
|
+
function qo(r, o, e) {
|
|
2344
2344
|
var t, a, c, i;
|
|
2345
2345
|
o === void 0 && (o = !1), e === void 0 && (e = !1);
|
|
2346
2346
|
const l = r.getBoundingClientRect();
|
|
2347
|
-
let
|
|
2348
|
-
o &&
|
|
2349
|
-
const
|
|
2350
|
-
return { width:
|
|
2347
|
+
let n = 1, b = 1;
|
|
2348
|
+
o && ao(r) && (n = r.offsetWidth > 0 && hr(l.width) / r.offsetWidth || 1, b = r.offsetHeight > 0 && hr(l.height) / r.offsetHeight || 1);
|
|
2349
|
+
const v = To(r) ? so(r) : window, u = !Ke() && e, h = (l.left + (u && (t = (a = v.visualViewport) == null ? void 0 : a.offsetLeft) != null ? t : 0)) / n, g = (l.top + (u && (c = (i = v.visualViewport) == null ? void 0 : i.offsetTop) != null ? c : 0)) / b, p = l.width / n, x = l.height / b;
|
|
2350
|
+
return { width: p, height: x, top: g, right: h + p, bottom: g + x, left: h, x: h, y: g };
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2353
|
-
return (o = r, (o instanceof
|
|
2352
|
+
function vo(r) {
|
|
2353
|
+
return (o = r, (o instanceof so(o).Node ? r.ownerDocument : r.document) || window.document).documentElement;
|
|
2354
2354
|
var o;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2357
|
-
return
|
|
2356
|
+
function qr(r) {
|
|
2357
|
+
return To(r) ? { scrollLeft: r.scrollLeft, scrollTop: r.scrollTop } : { scrollLeft: r.pageXOffset, scrollTop: r.pageYOffset };
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2360
|
-
return
|
|
2359
|
+
function ot(r) {
|
|
2360
|
+
return qo(vo(r)).left + qr(r).scrollLeft;
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2363
|
-
const t =
|
|
2364
|
-
const
|
|
2365
|
-
return
|
|
2362
|
+
function ia(r, o, e) {
|
|
2363
|
+
const t = ao(o), a = vo(o), c = qo(r, t && function(n) {
|
|
2364
|
+
const b = qo(n);
|
|
2365
|
+
return hr(b.width) !== n.offsetWidth || hr(b.height) !== n.offsetHeight;
|
|
2366
2366
|
}(o), e === "fixed");
|
|
2367
2367
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2368
2368
|
const l = { x: 0, y: 0 };
|
|
2369
2369
|
if (t || !t && e !== "fixed")
|
|
2370
|
-
if ((
|
|
2371
|
-
const
|
|
2372
|
-
l.x =
|
|
2370
|
+
if ((bo(o) !== "body" || _r(a)) && (i = qr(o)), ao(o)) {
|
|
2371
|
+
const n = qo(o, !0);
|
|
2372
|
+
l.x = n.x + o.clientLeft, l.y = n.y + o.clientTop;
|
|
2373
2373
|
} else
|
|
2374
|
-
a && (l.x =
|
|
2374
|
+
a && (l.x = ot(a));
|
|
2375
2375
|
return { x: c.left + i.scrollLeft - l.x, y: c.top + i.scrollTop - l.y, width: c.width, height: c.height };
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2378
|
-
return
|
|
2377
|
+
function rt(r) {
|
|
2378
|
+
return bo(r) === "html" ? r : r.assignedSlot || r.parentNode || (ie(r) ? r.host : null) || vo(r);
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2381
|
-
return
|
|
2380
|
+
function $e(r) {
|
|
2381
|
+
return ao(r) && getComputedStyle(r).position !== "fixed" ? r.offsetParent : null;
|
|
2382
2382
|
}
|
|
2383
|
-
function
|
|
2384
|
-
const o =
|
|
2385
|
-
let e =
|
|
2386
|
-
for (; e &&
|
|
2387
|
-
e =
|
|
2388
|
-
return e && (
|
|
2389
|
-
let a =
|
|
2390
|
-
for (
|
|
2391
|
-
if (
|
|
2383
|
+
function Tr(r) {
|
|
2384
|
+
const o = so(r);
|
|
2385
|
+
let e = $e(r);
|
|
2386
|
+
for (; e && ca(e) && getComputedStyle(e).position === "static"; )
|
|
2387
|
+
e = $e(e);
|
|
2388
|
+
return e && (bo(e) === "html" || bo(e) === "body" && getComputedStyle(e).position === "static" && !fe(e)) ? o : e || function(t) {
|
|
2389
|
+
let a = rt(t);
|
|
2390
|
+
for (ie(a) && (a = a.host); ao(a) && !["html", "body"].includes(bo(a)); ) {
|
|
2391
|
+
if (fe(a))
|
|
2392
2392
|
return a;
|
|
2393
2393
|
a = a.parentNode;
|
|
2394
2394
|
}
|
|
2395
2395
|
return null;
|
|
2396
2396
|
}(r) || o;
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2399
|
-
if (
|
|
2398
|
+
function ye(r) {
|
|
2399
|
+
if (ao(r))
|
|
2400
2400
|
return { width: r.offsetWidth, height: r.offsetHeight };
|
|
2401
|
-
const o =
|
|
2401
|
+
const o = qo(r);
|
|
2402
2402
|
return { width: o.width, height: o.height };
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2405
|
-
const o =
|
|
2406
|
-
return ["html", "body", "#document"].includes(
|
|
2404
|
+
function et(r) {
|
|
2405
|
+
const o = rt(r);
|
|
2406
|
+
return ["html", "body", "#document"].includes(bo(o)) ? r.ownerDocument.body : ao(o) && _r(o) ? o : et(o);
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function tt(r, o) {
|
|
2409
2409
|
var e;
|
|
2410
2410
|
o === void 0 && (o = []);
|
|
2411
|
-
const t =
|
|
2412
|
-
return a ? l : l.concat(
|
|
2411
|
+
const t = et(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), c = so(t), i = a ? [c].concat(c.visualViewport || [], _r(t) ? t : []) : t, l = o.concat(i);
|
|
2412
|
+
return a ? l : l.concat(tt(i));
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2415
|
-
return o === "viewport" ?
|
|
2416
|
-
const c =
|
|
2417
|
-
let
|
|
2414
|
+
function ze(r, o, e) {
|
|
2415
|
+
return o === "viewport" ? ur(function(t, a) {
|
|
2416
|
+
const c = so(t), i = vo(t), l = c.visualViewport;
|
|
2417
|
+
let n = i.clientWidth, b = i.clientHeight, v = 0, u = 0;
|
|
2418
2418
|
if (l) {
|
|
2419
|
-
|
|
2420
|
-
const
|
|
2421
|
-
(
|
|
2419
|
+
n = l.width, b = l.height;
|
|
2420
|
+
const h = Ke();
|
|
2421
|
+
(h || !h && a === "fixed") && (v = l.offsetLeft, u = l.offsetTop);
|
|
2422
2422
|
}
|
|
2423
|
-
return { width:
|
|
2424
|
-
}(r, e)) :
|
|
2425
|
-
const c =
|
|
2423
|
+
return { width: n, height: b, x: v, y: u };
|
|
2424
|
+
}(r, e)) : To(o) ? function(t, a) {
|
|
2425
|
+
const c = qo(t, !1, a === "fixed"), i = c.top + t.clientTop, l = c.left + t.clientLeft;
|
|
2426
2426
|
return { top: i, left: l, x: l, y: i, right: l + t.clientWidth, bottom: i + t.clientHeight, width: t.clientWidth, height: t.clientHeight };
|
|
2427
|
-
}(o, e) :
|
|
2427
|
+
}(o, e) : ur(function(t) {
|
|
2428
2428
|
var a;
|
|
2429
|
-
const c =
|
|
2430
|
-
let
|
|
2431
|
-
const
|
|
2432
|
-
return
|
|
2433
|
-
}(
|
|
2429
|
+
const c = vo(t), i = qr(t), l = (a = t.ownerDocument) == null ? void 0 : a.body, n = Io(c.scrollWidth, c.clientWidth, l ? l.scrollWidth : 0, l ? l.clientWidth : 0), b = Io(c.scrollHeight, c.clientHeight, l ? l.scrollHeight : 0, l ? l.clientHeight : 0);
|
|
2430
|
+
let v = -i.scrollLeft + ot(t);
|
|
2431
|
+
const u = -i.scrollTop;
|
|
2432
|
+
return er(l || c).direction === "rtl" && (v += Io(c.clientWidth, l ? l.clientWidth : 0) - n), { width: n, height: b, x: v, y: u };
|
|
2433
|
+
}(vo(r)));
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2436
|
-
const o =
|
|
2437
|
-
return
|
|
2435
|
+
function la(r) {
|
|
2436
|
+
const o = tt(r), e = ["absolute", "fixed"].includes(er(r).position) && ao(r) ? Tr(r) : r;
|
|
2437
|
+
return To(e) ? o.filter((t) => To(t) && function(a, c) {
|
|
2438
2438
|
const i = c.getRootNode == null ? void 0 : c.getRootNode();
|
|
2439
2439
|
if (a.contains(c))
|
|
2440
2440
|
return !0;
|
|
2441
|
-
if (i &&
|
|
2441
|
+
if (i && ie(i)) {
|
|
2442
2442
|
let l = c;
|
|
2443
2443
|
do {
|
|
2444
2444
|
if (l && a === l)
|
|
@@ -2447,68 +2447,68 @@ function xt(r) {
|
|
|
2447
2447
|
} while (l);
|
|
2448
2448
|
}
|
|
2449
2449
|
return !1;
|
|
2450
|
-
}(t, e) &&
|
|
2450
|
+
}(t, e) && bo(t) !== "body") : [];
|
|
2451
2451
|
}
|
|
2452
|
-
const
|
|
2452
|
+
const da = { getClippingRect: function(r) {
|
|
2453
2453
|
let { element: o, boundary: e, rootBoundary: t, strategy: a } = r;
|
|
2454
|
-
const c = [...e === "clippingAncestors" ?
|
|
2455
|
-
const
|
|
2456
|
-
return
|
|
2457
|
-
},
|
|
2454
|
+
const c = [...e === "clippingAncestors" ? la(o) : [].concat(e), t], i = c[0], l = c.reduce((n, b) => {
|
|
2455
|
+
const v = ze(o, b, a);
|
|
2456
|
+
return n.top = Io(v.top, n.top), n.right = ke(v.right, n.right), n.bottom = ke(v.bottom, n.bottom), n.left = Io(v.left, n.left), n;
|
|
2457
|
+
}, ze(o, i, a));
|
|
2458
2458
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
2459
2459
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(r) {
|
|
2460
2460
|
let { rect: o, offsetParent: e, strategy: t } = r;
|
|
2461
|
-
const a =
|
|
2461
|
+
const a = ao(e), c = vo(e);
|
|
2462
2462
|
if (e === c)
|
|
2463
2463
|
return o;
|
|
2464
2464
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2465
2465
|
const l = { x: 0, y: 0 };
|
|
2466
|
-
if ((a || !a && t !== "fixed") && ((
|
|
2467
|
-
const
|
|
2468
|
-
l.x =
|
|
2466
|
+
if ((a || !a && t !== "fixed") && ((bo(e) !== "body" || _r(c)) && (i = qr(e)), ao(e))) {
|
|
2467
|
+
const n = qo(e, !0);
|
|
2468
|
+
l.x = n.x + e.clientLeft, l.y = n.y + e.clientTop;
|
|
2469
2469
|
}
|
|
2470
2470
|
return { ...o, x: o.x - i.scrollLeft + l.x, y: o.y - i.scrollTop + l.y };
|
|
2471
|
-
}, isElement:
|
|
2471
|
+
}, isElement: To, getDimensions: ye, getOffsetParent: Tr, getDocumentElement: vo, getElementRects: (r) => {
|
|
2472
2472
|
let { reference: o, floating: e, strategy: t } = r;
|
|
2473
|
-
return { reference:
|
|
2474
|
-
}, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) =>
|
|
2475
|
-
[
|
|
2476
|
-
[
|
|
2477
|
-
[
|
|
2478
|
-
[
|
|
2479
|
-
},
|
|
2480
|
-
[
|
|
2481
|
-
[
|
|
2482
|
-
[
|
|
2483
|
-
[
|
|
2484
|
-
},
|
|
2485
|
-
[
|
|
2486
|
-
[
|
|
2487
|
-
[
|
|
2488
|
-
[
|
|
2489
|
-
},
|
|
2490
|
-
function
|
|
2473
|
+
return { reference: ia(o, Tr(e), t), floating: { ...ye(e), x: 0, y: 0 } };
|
|
2474
|
+
}, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) => er(r).direction === "rtl" }, na = (r, o, e) => Ut(r, o, { platform: da, ...e }), Uo = "top", Fo = "bottom", pr = "left", wr = "right", Zr = {
|
|
2475
|
+
[Uo]: Fo,
|
|
2476
|
+
[Fo]: Uo,
|
|
2477
|
+
[pr]: wr,
|
|
2478
|
+
[wr]: pr
|
|
2479
|
+
}, ba = {
|
|
2480
|
+
[Uo]: "↑",
|
|
2481
|
+
[Fo]: "↓",
|
|
2482
|
+
[pr]: "←",
|
|
2483
|
+
[wr]: "→"
|
|
2484
|
+
}, sa = {
|
|
2485
|
+
[pr]: -45,
|
|
2486
|
+
[Uo]: 45,
|
|
2487
|
+
[wr]: 135,
|
|
2488
|
+
[Fo]: -135
|
|
2489
|
+
}, _e = "calc(50% - 7px)", ga = (r) => [Uo, Fo].includes(r);
|
|
2490
|
+
function ua({ actualDirection: r, directionName: o, arrowEl: e }) {
|
|
2491
2491
|
if (!e)
|
|
2492
2492
|
return;
|
|
2493
2493
|
r = o;
|
|
2494
|
-
const t =
|
|
2495
|
-
e.style.left = t ?
|
|
2494
|
+
const t = ga(o);
|
|
2495
|
+
e.style.left = t ? _e : "", e.style.top = t ? "" : _e;
|
|
2496
2496
|
}
|
|
2497
|
-
async function
|
|
2497
|
+
async function va(r) {
|
|
2498
2498
|
var a, c;
|
|
2499
2499
|
if (!r.isShowing)
|
|
2500
2500
|
return;
|
|
2501
2501
|
if (await ((a = r == null ? void 0 : r.waitForDOM) == null ? void 0 : a.call(r)), r.isCallout)
|
|
2502
|
-
return
|
|
2503
|
-
const o = await
|
|
2502
|
+
return ua(r);
|
|
2503
|
+
const o = await na(r.targetEl, r.attentionEl, {
|
|
2504
2504
|
placement: r.directionName,
|
|
2505
2505
|
middleware: [
|
|
2506
2506
|
// Should we make this configurable, but have these as sane defaults?
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2507
|
+
ra(),
|
|
2508
|
+
ea(8),
|
|
2509
|
+
aa({ padding: 16 }),
|
|
2510
2510
|
// @ts-ignore
|
|
2511
|
-
|
|
2511
|
+
Vt({ element: r.noArrow ? void 0 : r.arrowEl })
|
|
2512
2512
|
// FIXME
|
|
2513
2513
|
]
|
|
2514
2514
|
});
|
|
@@ -2520,16 +2520,16 @@ async function qt(r) {
|
|
|
2520
2520
|
let { x: e, y: t } = o.middlewareData.arrow;
|
|
2521
2521
|
r.arrowEl && (r.arrowEl.style.left = e ? e + "px" : "", r.arrowEl.style.top = t ? t + "px" : "");
|
|
2522
2522
|
}
|
|
2523
|
-
class
|
|
2523
|
+
class Or extends Ko(I) {
|
|
2524
2524
|
constructor() {
|
|
2525
2525
|
super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
|
|
2526
2526
|
}
|
|
2527
2527
|
connectedCallback() {
|
|
2528
|
-
if (super.connectedCallback(), !this.placement || !Object.keys(
|
|
2528
|
+
if (super.connectedCallback(), !this.placement || !Object.keys(Zr).includes(this.placement))
|
|
2529
2529
|
throw new Error(
|
|
2530
2530
|
`Invalid "placement" attribute. Set its value to one of the following:
|
|
2531
2531
|
${JSON.stringify(
|
|
2532
|
-
Object.keys(
|
|
2532
|
+
Object.keys(Zr)
|
|
2533
2533
|
)}`
|
|
2534
2534
|
);
|
|
2535
2535
|
setTimeout(() => this.requestUpdate(), 0);
|
|
@@ -2541,7 +2541,7 @@ ${JSON.stringify(
|
|
|
2541
2541
|
this.placement = o;
|
|
2542
2542
|
}
|
|
2543
2543
|
get _arrowDirection() {
|
|
2544
|
-
return
|
|
2544
|
+
return Zr[this.placement];
|
|
2545
2545
|
}
|
|
2546
2546
|
updated() {
|
|
2547
2547
|
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 = {
|
|
@@ -2553,11 +2553,11 @@ ${JSON.stringify(
|
|
|
2553
2553
|
attentionEl: this._attentionEl,
|
|
2554
2554
|
targetEl: this._targetEl,
|
|
2555
2555
|
noArrow: this.noArrow
|
|
2556
|
-
},
|
|
2556
|
+
}, va(this.attentionState);
|
|
2557
2557
|
}
|
|
2558
2558
|
setAriaLabels() {
|
|
2559
2559
|
if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
|
|
2560
|
-
const o = this._messageEl.id || (this._messageEl.id =
|
|
2560
|
+
const o = this._messageEl.id || (this._messageEl.id = Ot());
|
|
2561
2561
|
this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", o);
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
@@ -2574,37 +2574,37 @@ ${JSON.stringify(
|
|
|
2574
2574
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
2575
2575
|
}
|
|
2576
2576
|
get _wrapperClasses() {
|
|
2577
|
-
return
|
|
2578
|
-
[
|
|
2579
|
-
[
|
|
2580
|
-
[
|
|
2581
|
-
[
|
|
2577
|
+
return Er({
|
|
2578
|
+
[io.base]: !0,
|
|
2579
|
+
[io.tooltip]: this.tooltip,
|
|
2580
|
+
[io.callout]: this.callout,
|
|
2581
|
+
[io.popover]: this.popover
|
|
2582
2582
|
});
|
|
2583
2583
|
}
|
|
2584
2584
|
get _arrowClasses() {
|
|
2585
|
-
return
|
|
2586
|
-
[
|
|
2587
|
-
[
|
|
2588
|
-
[
|
|
2589
|
-
[
|
|
2590
|
-
[
|
|
2585
|
+
return Er({
|
|
2586
|
+
[io.arrowBase]: !0,
|
|
2587
|
+
[io[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
|
|
2588
|
+
[io.arrowTooltip]: this.tooltip,
|
|
2589
|
+
[io.arrowCallout]: this.callout,
|
|
2590
|
+
[io.arrowPopover]: this.popover
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
2593
|
get _arrowHtml() {
|
|
2594
|
-
return this.noArrow ? "" :
|
|
2594
|
+
return this.noArrow ? "" : f`<div
|
|
2595
2595
|
id="arrow"
|
|
2596
2596
|
role="img"
|
|
2597
|
-
aria-label=${
|
|
2597
|
+
aria-label=${ba[this._arrowDirection]}
|
|
2598
2598
|
class="${this._arrowClasses}"
|
|
2599
|
-
style="transform:rotate(${
|
|
2599
|
+
style="transform:rotate(${sa[this._arrowDirection]}deg);
|
|
2600
2600
|
margin-${// border alignment is off by a fraction of a pixel, this fixes it
|
|
2601
2601
|
this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
2602
2602
|
/>`;
|
|
2603
2603
|
}
|
|
2604
2604
|
render() {
|
|
2605
|
-
return
|
|
2606
|
-
<div class=${
|
|
2607
|
-
${this.placement === "right" || this.placement === "bottom" ?
|
|
2605
|
+
return f`
|
|
2606
|
+
<div class=${B(this.className ? this.className : void 0)}>
|
|
2607
|
+
${this.placement === "right" || this.placement === "bottom" ? f`
|
|
2608
2608
|
<slot name="target"></slot>
|
|
2609
2609
|
<div id="attention" class="${this._wrapperClasses}">
|
|
2610
2610
|
<div>
|
|
@@ -2612,7 +2612,7 @@ ${JSON.stringify(
|
|
|
2612
2612
|
<slot name="message"></slot>
|
|
2613
2613
|
</div>
|
|
2614
2614
|
</div>
|
|
2615
|
-
` :
|
|
2615
|
+
` : f`
|
|
2616
2616
|
<div id="attention" class="${this._wrapperClasses}">
|
|
2617
2617
|
<div>
|
|
2618
2618
|
<slot name="message"></slot>
|
|
@@ -2625,7 +2625,7 @@ ${JSON.stringify(
|
|
|
2625
2625
|
`;
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
|
-
|
|
2628
|
+
Z(Or, "properties", {
|
|
2629
2629
|
// Whether Attention element should be visible.
|
|
2630
2630
|
show: { type: Boolean, reflect: !0 },
|
|
2631
2631
|
// Placement according to the target element
|
|
@@ -2639,8 +2639,8 @@ f(gr, "properties", {
|
|
|
2639
2639
|
popover: { type: Boolean, reflect: !0 },
|
|
2640
2640
|
// Render Attention element without an arrow
|
|
2641
2641
|
noArrow: { type: Boolean, reflect: !0 }
|
|
2642
|
-
}),
|
|
2643
|
-
|
|
2642
|
+
}), Z(Or, "styles", [
|
|
2643
|
+
Q`
|
|
2644
2644
|
/* layer: preflights */
|
|
2645
2645
|
*,::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;}
|
|
2646
2646
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -3307,34 +3307,34 @@ f(gr, "properties", {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
`
|
|
3309
3309
|
]);
|
|
3310
|
-
customElements.get("w-attention") || customElements.define("w-attention",
|
|
3311
|
-
class
|
|
3310
|
+
customElements.get("w-attention") || customElements.define("w-attention", Or);
|
|
3311
|
+
class Br extends I {
|
|
3312
3312
|
constructor() {
|
|
3313
3313
|
super(), this.variant = "neutral";
|
|
3314
3314
|
}
|
|
3315
3315
|
get _class() {
|
|
3316
|
-
return
|
|
3317
|
-
[
|
|
3318
|
-
[
|
|
3319
|
-
[
|
|
3320
|
-
[
|
|
3321
|
-
[
|
|
3322
|
-
[
|
|
3323
|
-
[
|
|
3316
|
+
return Er({
|
|
3317
|
+
[$o.base]: !0,
|
|
3318
|
+
[$o[this.variant]]: !0,
|
|
3319
|
+
[$o.positionBase]: !!this.position,
|
|
3320
|
+
[$o.positionTL]: this.position === "top-left",
|
|
3321
|
+
[$o.positionTR]: this.position === "top-right",
|
|
3322
|
+
[$o.positionBR]: this.position === "bottom-right",
|
|
3323
|
+
[$o.positionBL]: this.position === "bottom-left"
|
|
3324
3324
|
});
|
|
3325
3325
|
}
|
|
3326
3326
|
render() {
|
|
3327
|
-
return
|
|
3327
|
+
return f`
|
|
3328
3328
|
<div class="${this._class}">
|
|
3329
3329
|
<slot></slot>
|
|
3330
3330
|
</div>
|
|
3331
3331
|
`;
|
|
3332
3332
|
}
|
|
3333
3333
|
}
|
|
3334
|
-
|
|
3334
|
+
Z(Br, "properties", {
|
|
3335
3335
|
variant: { type: "neutral" | "info" | "positive" | "warning" | "negative" | "disabled" | "notification" | "price" },
|
|
3336
3336
|
position: { type: "top-left" | "top-right" | "bottom-right" | "bottom-left" }
|
|
3337
|
-
}),
|
|
3337
|
+
}), Z(Br, "styles", Q`
|
|
3338
3338
|
/* layer: preflights */
|
|
3339
3339
|
*,::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;}
|
|
3340
3340
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -3984,26 +3984,26 @@ f(sr, "properties", {
|
|
|
3984
3984
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
3985
3985
|
}
|
|
3986
3986
|
`);
|
|
3987
|
-
customElements.get("w-badge") || customElements.define("w-badge",
|
|
3988
|
-
class
|
|
3987
|
+
customElements.get("w-badge") || customElements.define("w-badge", Br);
|
|
3988
|
+
class Nr extends I {
|
|
3989
3989
|
get _class() {
|
|
3990
|
-
return
|
|
3991
|
-
[
|
|
3992
|
-
[
|
|
3993
|
-
[
|
|
3994
|
-
[
|
|
3995
|
-
[
|
|
3990
|
+
return V({
|
|
3991
|
+
[no.box]: !0,
|
|
3992
|
+
[no.bleed]: this.bleed,
|
|
3993
|
+
[no.info]: this.info,
|
|
3994
|
+
[no.neutral]: this.neutral,
|
|
3995
|
+
[no.bordered]: this.bordered
|
|
3996
3996
|
});
|
|
3997
3997
|
}
|
|
3998
3998
|
render() {
|
|
3999
|
-
return
|
|
3999
|
+
return f`
|
|
4000
4000
|
<div class="${this._class}">
|
|
4001
4001
|
<slot></slot>
|
|
4002
4002
|
</div>
|
|
4003
4003
|
`;
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
|
|
4006
|
+
Z(Nr, "properties", {
|
|
4007
4007
|
bleed: { type: Boolean },
|
|
4008
4008
|
bordered: { type: Boolean },
|
|
4009
4009
|
info: { type: Boolean },
|
|
@@ -4012,7 +4012,7 @@ f(ur, "properties", {
|
|
|
4012
4012
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
4013
4013
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
4014
4014
|
// https://stackoverflow.com/a/61631668
|
|
4015
|
-
|
|
4015
|
+
Z(Nr, "styles", Q`
|
|
4016
4016
|
/* layer: preflights */
|
|
4017
4017
|
*,::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;}
|
|
4018
4018
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -4668,38 +4668,980 @@ f(ur, "styles", A`
|
|
|
4668
4668
|
margin-bottom: 0 !important;
|
|
4669
4669
|
}
|
|
4670
4670
|
`);
|
|
4671
|
-
customElements.get("w-box") || customElements.define("w-box",
|
|
4672
|
-
function
|
|
4671
|
+
customElements.get("w-box") || customElements.define("w-box", Nr);
|
|
4672
|
+
function ha(r, o) {
|
|
4673
4673
|
return r.flatMap((e) => [e, o]).slice(0, -1);
|
|
4674
4674
|
}
|
|
4675
|
-
|
|
4676
|
-
|
|
4675
|
+
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4676
|
+
function pa(r) {
|
|
4677
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
4678
|
+
}
|
|
4679
|
+
var at = {}, ct = {};
|
|
4680
|
+
(function(r) {
|
|
4681
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.errorMessages = r.ErrorType = void 0;
|
|
4682
|
+
var o;
|
|
4683
|
+
(function(e) {
|
|
4684
|
+
e.MalformedUnicode = "MALFORMED_UNICODE", e.MalformedHexadecimal = "MALFORMED_HEXADECIMAL", e.CodePointLimit = "CODE_POINT_LIMIT", e.OctalDeprecation = "OCTAL_DEPRECATION", e.EndOfString = "END_OF_STRING";
|
|
4685
|
+
})(o = r.ErrorType || (r.ErrorType = {})), r.errorMessages = /* @__PURE__ */ new Map([
|
|
4686
|
+
[o.MalformedUnicode, "malformed Unicode character escape sequence"],
|
|
4687
|
+
[
|
|
4688
|
+
o.MalformedHexadecimal,
|
|
4689
|
+
"malformed hexadecimal character escape sequence"
|
|
4690
|
+
],
|
|
4691
|
+
[
|
|
4692
|
+
o.CodePointLimit,
|
|
4693
|
+
"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"
|
|
4694
|
+
],
|
|
4695
|
+
[
|
|
4696
|
+
o.OctalDeprecation,
|
|
4697
|
+
'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'
|
|
4698
|
+
],
|
|
4699
|
+
[o.EndOfString, "malformed escape sequence at end of string"]
|
|
4700
|
+
]);
|
|
4701
|
+
})(ct);
|
|
4702
|
+
(function(r) {
|
|
4703
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.unraw = r.errorMessages = r.ErrorType = void 0;
|
|
4704
|
+
const o = ct;
|
|
4705
|
+
Object.defineProperty(r, "ErrorType", { enumerable: !0, get: function() {
|
|
4706
|
+
return o.ErrorType;
|
|
4707
|
+
} }), Object.defineProperty(r, "errorMessages", { enumerable: !0, get: function() {
|
|
4708
|
+
return o.errorMessages;
|
|
4709
|
+
} });
|
|
4710
|
+
function e(g) {
|
|
4711
|
+
return !g.match(/[^a-f0-9]/i) ? parseInt(g, 16) : NaN;
|
|
4712
|
+
}
|
|
4713
|
+
function t(g, p, x) {
|
|
4714
|
+
const z = e(g);
|
|
4715
|
+
if (Number.isNaN(z) || x !== void 0 && x !== g.length)
|
|
4716
|
+
throw new SyntaxError(o.errorMessages.get(p));
|
|
4717
|
+
return z;
|
|
4718
|
+
}
|
|
4719
|
+
function a(g) {
|
|
4720
|
+
const p = t(g, o.ErrorType.MalformedHexadecimal, 2);
|
|
4721
|
+
return String.fromCharCode(p);
|
|
4722
|
+
}
|
|
4723
|
+
function c(g, p) {
|
|
4724
|
+
const x = t(g, o.ErrorType.MalformedUnicode, 4);
|
|
4725
|
+
if (p !== void 0) {
|
|
4726
|
+
const z = t(p, o.ErrorType.MalformedUnicode, 4);
|
|
4727
|
+
return String.fromCharCode(x, z);
|
|
4728
|
+
}
|
|
4729
|
+
return String.fromCharCode(x);
|
|
4730
|
+
}
|
|
4731
|
+
function i(g) {
|
|
4732
|
+
return g.charAt(0) === "{" && g.charAt(g.length - 1) === "}";
|
|
4733
|
+
}
|
|
4734
|
+
function l(g) {
|
|
4735
|
+
if (!i(g))
|
|
4736
|
+
throw new SyntaxError(o.errorMessages.get(o.ErrorType.MalformedUnicode));
|
|
4737
|
+
const p = g.slice(1, -1), x = t(p, o.ErrorType.MalformedUnicode);
|
|
4738
|
+
try {
|
|
4739
|
+
return String.fromCodePoint(x);
|
|
4740
|
+
} catch (z) {
|
|
4741
|
+
throw z instanceof RangeError ? new SyntaxError(o.errorMessages.get(o.ErrorType.CodePointLimit)) : z;
|
|
4742
|
+
}
|
|
4743
|
+
}
|
|
4744
|
+
function n(g, p = !1) {
|
|
4745
|
+
if (p)
|
|
4746
|
+
throw new SyntaxError(o.errorMessages.get(o.ErrorType.OctalDeprecation));
|
|
4747
|
+
const x = parseInt(g, 8);
|
|
4748
|
+
return String.fromCharCode(x);
|
|
4749
|
+
}
|
|
4750
|
+
const b = /* @__PURE__ */ new Map([
|
|
4751
|
+
["b", "\b"],
|
|
4752
|
+
["f", "\f"],
|
|
4753
|
+
["n", `
|
|
4754
|
+
`],
|
|
4755
|
+
["r", "\r"],
|
|
4756
|
+
["t", " "],
|
|
4757
|
+
["v", "\v"],
|
|
4758
|
+
["0", "\0"]
|
|
4759
|
+
]);
|
|
4760
|
+
function v(g) {
|
|
4761
|
+
return b.get(g) || g;
|
|
4762
|
+
}
|
|
4763
|
+
const u = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
|
|
4764
|
+
function h(g, p = !1) {
|
|
4765
|
+
return g.replace(u, function(x, z, E, M, D, T, co, W, C) {
|
|
4766
|
+
if (z !== void 0)
|
|
4767
|
+
return "\\";
|
|
4768
|
+
if (E !== void 0)
|
|
4769
|
+
return a(E);
|
|
4770
|
+
if (M !== void 0)
|
|
4771
|
+
return l(M);
|
|
4772
|
+
if (D !== void 0)
|
|
4773
|
+
return c(D, T);
|
|
4774
|
+
if (co !== void 0)
|
|
4775
|
+
return c(co);
|
|
4776
|
+
if (W === "0")
|
|
4777
|
+
return "\0";
|
|
4778
|
+
if (W !== void 0)
|
|
4779
|
+
return n(W, !p);
|
|
4780
|
+
if (C !== void 0)
|
|
4781
|
+
return v(C);
|
|
4782
|
+
throw new SyntaxError(o.errorMessages.get(o.ErrorType.EndOfString));
|
|
4783
|
+
});
|
|
4784
|
+
}
|
|
4785
|
+
r.unraw = h, r.default = h;
|
|
4786
|
+
})(at);
|
|
4787
|
+
const wa = /* @__PURE__ */ pa(at);
|
|
4788
|
+
var Wo = {}, it = {}, lt = { exports: {} };
|
|
4789
|
+
(function(r) {
|
|
4790
|
+
(function(o, e) {
|
|
4791
|
+
r.exports ? r.exports = e() : o.moo = e();
|
|
4792
|
+
})(Dr, function() {
|
|
4793
|
+
var o = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = typeof new RegExp().sticky == "boolean";
|
|
4794
|
+
function a(d) {
|
|
4795
|
+
return d && e.call(d) === "[object RegExp]";
|
|
4796
|
+
}
|
|
4797
|
+
function c(d) {
|
|
4798
|
+
return d && typeof d == "object" && !a(d) && !Array.isArray(d);
|
|
4799
|
+
}
|
|
4800
|
+
function i(d) {
|
|
4801
|
+
return d.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
4802
|
+
}
|
|
4803
|
+
function l(d) {
|
|
4804
|
+
var s = new RegExp("|" + d);
|
|
4805
|
+
return s.exec("").length - 1;
|
|
4806
|
+
}
|
|
4807
|
+
function n(d) {
|
|
4808
|
+
return "(" + d + ")";
|
|
4809
|
+
}
|
|
4810
|
+
function b(d) {
|
|
4811
|
+
if (!d.length)
|
|
4812
|
+
return "(?!)";
|
|
4813
|
+
var s = d.map(function(w) {
|
|
4814
|
+
return "(?:" + w + ")";
|
|
4815
|
+
}).join("|");
|
|
4816
|
+
return "(?:" + s + ")";
|
|
4817
|
+
}
|
|
4818
|
+
function v(d) {
|
|
4819
|
+
if (typeof d == "string")
|
|
4820
|
+
return "(?:" + i(d) + ")";
|
|
4821
|
+
if (a(d)) {
|
|
4822
|
+
if (d.ignoreCase)
|
|
4823
|
+
throw new Error("RegExp /i flag not allowed");
|
|
4824
|
+
if (d.global)
|
|
4825
|
+
throw new Error("RegExp /g flag is implied");
|
|
4826
|
+
if (d.sticky)
|
|
4827
|
+
throw new Error("RegExp /y flag is implied");
|
|
4828
|
+
if (d.multiline)
|
|
4829
|
+
throw new Error("RegExp /m flag is implied");
|
|
4830
|
+
return d.source;
|
|
4831
|
+
} else
|
|
4832
|
+
throw new Error("Not a pattern: " + d);
|
|
4833
|
+
}
|
|
4834
|
+
function u(d, s) {
|
|
4835
|
+
return d.length > s ? d : Array(s - d.length + 1).join(" ") + d;
|
|
4836
|
+
}
|
|
4837
|
+
function h(d, s) {
|
|
4838
|
+
for (var w = d.length, y = 0; ; ) {
|
|
4839
|
+
var Y = d.lastIndexOf(`
|
|
4840
|
+
`, w - 1);
|
|
4841
|
+
if (Y === -1 || (y++, w = Y, y === s) || w === 0)
|
|
4842
|
+
break;
|
|
4843
|
+
}
|
|
4844
|
+
var _ = y < s ? 0 : w + 1;
|
|
4845
|
+
return d.substring(_).split(`
|
|
4846
|
+
`);
|
|
4847
|
+
}
|
|
4848
|
+
function g(d) {
|
|
4849
|
+
for (var s = Object.getOwnPropertyNames(d), w = [], y = 0; y < s.length; y++) {
|
|
4850
|
+
var Y = s[y], _ = d[Y], j = [].concat(_);
|
|
4851
|
+
if (Y === "include") {
|
|
4852
|
+
for (var L = 0; L < j.length; L++)
|
|
4853
|
+
w.push({ include: j[L] });
|
|
4854
|
+
continue;
|
|
4855
|
+
}
|
|
4856
|
+
var A = [];
|
|
4857
|
+
j.forEach(function(q) {
|
|
4858
|
+
c(q) ? (A.length && w.push(x(Y, A)), w.push(x(Y, q)), A = []) : A.push(q);
|
|
4859
|
+
}), A.length && w.push(x(Y, A));
|
|
4860
|
+
}
|
|
4861
|
+
return w;
|
|
4862
|
+
}
|
|
4863
|
+
function p(d) {
|
|
4864
|
+
for (var s = [], w = 0; w < d.length; w++) {
|
|
4865
|
+
var y = d[w];
|
|
4866
|
+
if (y.include) {
|
|
4867
|
+
for (var Y = [].concat(y.include), _ = 0; _ < Y.length; _++)
|
|
4868
|
+
s.push({ include: Y[_] });
|
|
4869
|
+
continue;
|
|
4870
|
+
}
|
|
4871
|
+
if (!y.type)
|
|
4872
|
+
throw new Error("Rule has no type: " + JSON.stringify(y));
|
|
4873
|
+
s.push(x(y.type, y));
|
|
4874
|
+
}
|
|
4875
|
+
return s;
|
|
4876
|
+
}
|
|
4877
|
+
function x(d, s) {
|
|
4878
|
+
if (c(s) || (s = { match: s }), s.include)
|
|
4879
|
+
throw new Error("Matching rules cannot also include states");
|
|
4880
|
+
var w = {
|
|
4881
|
+
defaultType: d,
|
|
4882
|
+
lineBreaks: !!s.error || !!s.fallback,
|
|
4883
|
+
pop: !1,
|
|
4884
|
+
next: null,
|
|
4885
|
+
push: null,
|
|
4886
|
+
error: !1,
|
|
4887
|
+
fallback: !1,
|
|
4888
|
+
value: null,
|
|
4889
|
+
type: null,
|
|
4890
|
+
shouldThrow: !1
|
|
4891
|
+
};
|
|
4892
|
+
for (var y in s)
|
|
4893
|
+
o.call(s, y) && (w[y] = s[y]);
|
|
4894
|
+
if (typeof w.type == "string" && d !== w.type)
|
|
4895
|
+
throw new Error("Type transform cannot be a string (type '" + w.type + "' for token '" + d + "')");
|
|
4896
|
+
var Y = w.match;
|
|
4897
|
+
return w.match = Array.isArray(Y) ? Y : Y ? [Y] : [], w.match.sort(function(_, j) {
|
|
4898
|
+
return a(_) && a(j) ? 0 : a(j) ? -1 : a(_) ? 1 : j.length - _.length;
|
|
4899
|
+
}), w;
|
|
4900
|
+
}
|
|
4901
|
+
function z(d) {
|
|
4902
|
+
return Array.isArray(d) ? p(d) : g(d);
|
|
4903
|
+
}
|
|
4904
|
+
var E = x("error", { lineBreaks: !0, shouldThrow: !0 });
|
|
4905
|
+
function M(d, s) {
|
|
4906
|
+
for (var w = null, y = /* @__PURE__ */ Object.create(null), Y = !0, _ = null, j = [], L = [], A = 0; A < d.length; A++)
|
|
4907
|
+
d[A].fallback && (Y = !1);
|
|
4908
|
+
for (var A = 0; A < d.length; A++) {
|
|
4909
|
+
var q = d[A];
|
|
4910
|
+
if (q.include)
|
|
4911
|
+
throw new Error("Inheritance is not allowed in stateless lexers");
|
|
4912
|
+
if (q.error || q.fallback) {
|
|
4913
|
+
if (w)
|
|
4914
|
+
throw !q.fallback == !w.fallback ? new Error("Multiple " + (q.fallback ? "fallback" : "error") + " rules not allowed (for token '" + q.defaultType + "')") : new Error("fallback and error are mutually exclusive (for token '" + q.defaultType + "')");
|
|
4915
|
+
w = q;
|
|
4916
|
+
}
|
|
4917
|
+
var H = q.match.slice();
|
|
4918
|
+
if (Y)
|
|
4919
|
+
for (; H.length && typeof H[0] == "string" && H[0].length === 1; ) {
|
|
4920
|
+
var wo = H.shift();
|
|
4921
|
+
y[wo.charCodeAt(0)] = q;
|
|
4922
|
+
}
|
|
4923
|
+
if (q.pop || q.push || q.next) {
|
|
4924
|
+
if (!s)
|
|
4925
|
+
throw new Error("State-switching options are not allowed in stateless lexers (for token '" + q.defaultType + "')");
|
|
4926
|
+
if (q.fallback)
|
|
4927
|
+
throw new Error("State-switching options are not allowed on fallback tokens (for token '" + q.defaultType + "')");
|
|
4928
|
+
}
|
|
4929
|
+
if (H.length !== 0) {
|
|
4930
|
+
Y = !1, j.push(q);
|
|
4931
|
+
for (var xo = 0; xo < H.length; xo++) {
|
|
4932
|
+
var mo = H[xo];
|
|
4933
|
+
if (a(mo)) {
|
|
4934
|
+
if (_ === null)
|
|
4935
|
+
_ = mo.unicode;
|
|
4936
|
+
else if (_ !== mo.unicode && q.fallback === !1)
|
|
4937
|
+
throw new Error("If one rule is /u then all must be");
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4940
|
+
var jo = b(H.map(v)), G = new RegExp(jo);
|
|
4941
|
+
if (G.test(""))
|
|
4942
|
+
throw new Error("RegExp matches empty string: " + G);
|
|
4943
|
+
var Oo = l(jo);
|
|
4944
|
+
if (Oo > 0)
|
|
4945
|
+
throw new Error("RegExp has capture groups: " + G + `
|
|
4946
|
+
Use (?: … ) instead`);
|
|
4947
|
+
if (!q.lineBreaks && G.test(`
|
|
4948
|
+
`))
|
|
4949
|
+
throw new Error("Rule should declare lineBreaks: " + G);
|
|
4950
|
+
L.push(n(jo));
|
|
4951
|
+
}
|
|
4952
|
+
}
|
|
4953
|
+
var Zo = w && w.fallback, Bo = t && !Zo ? "ym" : "gm", tr = t || Zo ? "" : "|";
|
|
4954
|
+
_ === !0 && (Bo += "u");
|
|
4955
|
+
var _t = new RegExp(b(L) + tr, Bo);
|
|
4956
|
+
return { regexp: _t, groups: j, fast: y, error: w || E };
|
|
4957
|
+
}
|
|
4958
|
+
function D(d) {
|
|
4959
|
+
var s = M(z(d));
|
|
4960
|
+
return new C({ start: s }, "start");
|
|
4961
|
+
}
|
|
4962
|
+
function T(d, s, w) {
|
|
4963
|
+
var y = d && (d.push || d.next);
|
|
4964
|
+
if (y && !w[y])
|
|
4965
|
+
throw new Error("Missing state '" + y + "' (in token '" + d.defaultType + "' of state '" + s + "')");
|
|
4966
|
+
if (d && d.pop && +d.pop != 1)
|
|
4967
|
+
throw new Error("pop must be 1 (in token '" + d.defaultType + "' of state '" + s + "')");
|
|
4968
|
+
}
|
|
4969
|
+
function co(d, s) {
|
|
4970
|
+
var w = d.$all ? z(d.$all) : [];
|
|
4971
|
+
delete d.$all;
|
|
4972
|
+
var y = Object.getOwnPropertyNames(d);
|
|
4973
|
+
s || (s = y[0]);
|
|
4974
|
+
for (var Y = /* @__PURE__ */ Object.create(null), _ = 0; _ < y.length; _++) {
|
|
4975
|
+
var j = y[_];
|
|
4976
|
+
Y[j] = z(d[j]).concat(w);
|
|
4977
|
+
}
|
|
4978
|
+
for (var _ = 0; _ < y.length; _++)
|
|
4979
|
+
for (var j = y[_], L = Y[j], A = /* @__PURE__ */ Object.create(null), q = 0; q < L.length; q++) {
|
|
4980
|
+
var H = L[q];
|
|
4981
|
+
if (H.include) {
|
|
4982
|
+
var wo = [q, 1];
|
|
4983
|
+
if (H.include !== j && !A[H.include]) {
|
|
4984
|
+
A[H.include] = !0;
|
|
4985
|
+
var xo = Y[H.include];
|
|
4986
|
+
if (!xo)
|
|
4987
|
+
throw new Error("Cannot include nonexistent state '" + H.include + "' (in state '" + j + "')");
|
|
4988
|
+
for (var mo = 0; mo < xo.length; mo++) {
|
|
4989
|
+
var jo = xo[mo];
|
|
4990
|
+
L.indexOf(jo) === -1 && wo.push(jo);
|
|
4991
|
+
}
|
|
4992
|
+
}
|
|
4993
|
+
L.splice.apply(L, wo), q--;
|
|
4994
|
+
}
|
|
4995
|
+
}
|
|
4996
|
+
for (var G = /* @__PURE__ */ Object.create(null), _ = 0; _ < y.length; _++) {
|
|
4997
|
+
var j = y[_];
|
|
4998
|
+
G[j] = M(Y[j], !0);
|
|
4999
|
+
}
|
|
5000
|
+
for (var _ = 0; _ < y.length; _++) {
|
|
5001
|
+
for (var Oo = y[_], Zo = G[Oo], Bo = Zo.groups, q = 0; q < Bo.length; q++)
|
|
5002
|
+
T(Bo[q], Oo, G);
|
|
5003
|
+
for (var tr = Object.getOwnPropertyNames(Zo.fast), q = 0; q < tr.length; q++)
|
|
5004
|
+
T(Zo.fast[tr[q]], Oo, G);
|
|
5005
|
+
}
|
|
5006
|
+
return new C(G, s);
|
|
5007
|
+
}
|
|
5008
|
+
function W(d) {
|
|
5009
|
+
for (var s = typeof Map < "u", w = s ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), y = Object.getOwnPropertyNames(d), Y = 0; Y < y.length; Y++) {
|
|
5010
|
+
var _ = y[Y], j = d[_], L = Array.isArray(j) ? j : [j];
|
|
5011
|
+
L.forEach(function(A) {
|
|
5012
|
+
if (typeof A != "string")
|
|
5013
|
+
throw new Error("keyword must be string (in keyword '" + _ + "')");
|
|
5014
|
+
s ? w.set(A, _) : w[A] = _;
|
|
5015
|
+
});
|
|
5016
|
+
}
|
|
5017
|
+
return function(A) {
|
|
5018
|
+
return s ? w.get(A) : w[A];
|
|
5019
|
+
};
|
|
5020
|
+
}
|
|
5021
|
+
var C = function(d, s) {
|
|
5022
|
+
this.startState = s, this.states = d, this.buffer = "", this.stack = [], this.reset();
|
|
5023
|
+
};
|
|
5024
|
+
C.prototype.reset = function(d, s) {
|
|
5025
|
+
return this.buffer = d || "", this.index = 0, this.line = s ? s.line : 1, this.col = s ? s.col : 1, this.queuedToken = s ? s.queuedToken : null, this.queuedText = s ? s.queuedText : "", this.queuedThrow = s ? s.queuedThrow : null, this.setState(s ? s.state : this.startState), this.stack = s && s.stack ? s.stack.slice() : [], this;
|
|
5026
|
+
}, C.prototype.save = function() {
|
|
5027
|
+
return {
|
|
5028
|
+
line: this.line,
|
|
5029
|
+
col: this.col,
|
|
5030
|
+
state: this.state,
|
|
5031
|
+
stack: this.stack.slice(),
|
|
5032
|
+
queuedToken: this.queuedToken,
|
|
5033
|
+
queuedText: this.queuedText,
|
|
5034
|
+
queuedThrow: this.queuedThrow
|
|
5035
|
+
};
|
|
5036
|
+
}, C.prototype.setState = function(d) {
|
|
5037
|
+
if (!(!d || this.state === d)) {
|
|
5038
|
+
this.state = d;
|
|
5039
|
+
var s = this.states[d];
|
|
5040
|
+
this.groups = s.groups, this.error = s.error, this.re = s.regexp, this.fast = s.fast;
|
|
5041
|
+
}
|
|
5042
|
+
}, C.prototype.popState = function() {
|
|
5043
|
+
this.setState(this.stack.pop());
|
|
5044
|
+
}, C.prototype.pushState = function(d) {
|
|
5045
|
+
this.stack.push(this.state), this.setState(d);
|
|
5046
|
+
};
|
|
5047
|
+
var R = t ? function(d, s) {
|
|
5048
|
+
return d.exec(s);
|
|
5049
|
+
} : function(d, s) {
|
|
5050
|
+
var w = d.exec(s);
|
|
5051
|
+
return w[0].length === 0 ? null : w;
|
|
5052
|
+
};
|
|
5053
|
+
C.prototype._getGroup = function(d) {
|
|
5054
|
+
for (var s = this.groups.length, w = 0; w < s; w++)
|
|
5055
|
+
if (d[w + 1] !== void 0)
|
|
5056
|
+
return this.groups[w];
|
|
5057
|
+
throw new Error("Cannot find token type for matched text");
|
|
5058
|
+
};
|
|
5059
|
+
function F() {
|
|
5060
|
+
return this.value;
|
|
5061
|
+
}
|
|
5062
|
+
if (C.prototype.next = function() {
|
|
5063
|
+
var d = this.index;
|
|
5064
|
+
if (this.queuedGroup) {
|
|
5065
|
+
var s = this._token(this.queuedGroup, this.queuedText, d);
|
|
5066
|
+
return this.queuedGroup = null, this.queuedText = "", s;
|
|
5067
|
+
}
|
|
5068
|
+
var w = this.buffer;
|
|
5069
|
+
if (d !== w.length) {
|
|
5070
|
+
var j = this.fast[w.charCodeAt(d)];
|
|
5071
|
+
if (j)
|
|
5072
|
+
return this._token(j, w.charAt(d), d);
|
|
5073
|
+
var y = this.re;
|
|
5074
|
+
y.lastIndex = d;
|
|
5075
|
+
var Y = R(y, w), _ = this.error;
|
|
5076
|
+
if (Y == null)
|
|
5077
|
+
return this._token(_, w.slice(d, w.length), d);
|
|
5078
|
+
var j = this._getGroup(Y), L = Y[0];
|
|
5079
|
+
return _.fallback && Y.index !== d ? (this.queuedGroup = j, this.queuedText = L, this._token(_, w.slice(d, Y.index), d)) : this._token(j, L, d);
|
|
5080
|
+
}
|
|
5081
|
+
}, C.prototype._token = function(d, s, w) {
|
|
5082
|
+
var y = 0;
|
|
5083
|
+
if (d.lineBreaks) {
|
|
5084
|
+
var Y = /\n/g, _ = 1;
|
|
5085
|
+
if (s === `
|
|
5086
|
+
`)
|
|
5087
|
+
y = 1;
|
|
5088
|
+
else
|
|
5089
|
+
for (; Y.exec(s); )
|
|
5090
|
+
y++, _ = Y.lastIndex;
|
|
5091
|
+
}
|
|
5092
|
+
var j = {
|
|
5093
|
+
type: typeof d.type == "function" && d.type(s) || d.defaultType,
|
|
5094
|
+
value: typeof d.value == "function" ? d.value(s) : s,
|
|
5095
|
+
text: s,
|
|
5096
|
+
toString: F,
|
|
5097
|
+
offset: w,
|
|
5098
|
+
lineBreaks: y,
|
|
5099
|
+
line: this.line,
|
|
5100
|
+
col: this.col
|
|
5101
|
+
}, L = s.length;
|
|
5102
|
+
if (this.index += L, this.line += y, y !== 0 ? this.col = L - _ + 1 : this.col += L, d.shouldThrow) {
|
|
5103
|
+
var A = new Error(this.formatError(j, "invalid syntax"));
|
|
5104
|
+
throw A;
|
|
5105
|
+
}
|
|
5106
|
+
return d.pop ? this.popState() : d.push ? this.pushState(d.push) : d.next && this.setState(d.next), j;
|
|
5107
|
+
}, typeof Symbol < "u" && Symbol.iterator) {
|
|
5108
|
+
var ro = function(d) {
|
|
5109
|
+
this.lexer = d;
|
|
5110
|
+
};
|
|
5111
|
+
ro.prototype.next = function() {
|
|
5112
|
+
var d = this.lexer.next();
|
|
5113
|
+
return { value: d, done: !d };
|
|
5114
|
+
}, ro.prototype[Symbol.iterator] = function() {
|
|
5115
|
+
return this;
|
|
5116
|
+
}, C.prototype[Symbol.iterator] = function() {
|
|
5117
|
+
return new ro(this);
|
|
5118
|
+
};
|
|
5119
|
+
}
|
|
5120
|
+
return C.prototype.formatError = function(d, s) {
|
|
5121
|
+
if (d == null)
|
|
5122
|
+
var w = this.buffer.slice(this.index), d = {
|
|
5123
|
+
text: w,
|
|
5124
|
+
offset: this.index,
|
|
5125
|
+
lineBreaks: w.indexOf(`
|
|
5126
|
+
`) === -1 ? 0 : 1,
|
|
5127
|
+
line: this.line,
|
|
5128
|
+
col: this.col
|
|
5129
|
+
};
|
|
5130
|
+
var y = 2, Y = Math.max(d.line - y, 1), _ = d.line + y, j = String(_).length, L = h(
|
|
5131
|
+
this.buffer,
|
|
5132
|
+
this.line - d.line + y + 1
|
|
5133
|
+
).slice(0, 5), A = [];
|
|
5134
|
+
A.push(s + " at line " + d.line + " col " + d.col + ":"), A.push("");
|
|
5135
|
+
for (var q = 0; q < L.length; q++) {
|
|
5136
|
+
var H = L[q], wo = Y + q;
|
|
5137
|
+
A.push(u(String(wo), j) + " " + H), wo === d.line && A.push(u("", j + d.col + 1) + "^");
|
|
5138
|
+
}
|
|
5139
|
+
return A.join(`
|
|
5140
|
+
`);
|
|
5141
|
+
}, C.prototype.clone = function() {
|
|
5142
|
+
return new C(this.states, this.state);
|
|
5143
|
+
}, C.prototype.has = function(d) {
|
|
5144
|
+
return !0;
|
|
5145
|
+
}, {
|
|
5146
|
+
compile: D,
|
|
5147
|
+
states: co,
|
|
5148
|
+
error: Object.freeze({ error: !0 }),
|
|
5149
|
+
fallback: Object.freeze({ fallback: !0 }),
|
|
5150
|
+
keywords: W
|
|
5151
|
+
};
|
|
5152
|
+
});
|
|
5153
|
+
})(lt);
|
|
5154
|
+
var xa = lt.exports;
|
|
5155
|
+
(function(r) {
|
|
5156
|
+
var o = Dr && Dr.__importDefault || function(t) {
|
|
5157
|
+
return t && t.__esModule ? t : { default: t };
|
|
5158
|
+
};
|
|
5159
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.lexer = r.states = void 0;
|
|
5160
|
+
const e = o(xa);
|
|
5161
|
+
r.states = {
|
|
5162
|
+
body: {
|
|
5163
|
+
doubleapos: { match: "''", value: () => "'" },
|
|
5164
|
+
quoted: {
|
|
5165
|
+
lineBreaks: !0,
|
|
5166
|
+
match: /'[{}#](?:[^]*?[^'])?'(?!')/u,
|
|
5167
|
+
value: (t) => t.slice(1, -1).replace(/''/g, "'")
|
|
5168
|
+
},
|
|
5169
|
+
argument: {
|
|
5170
|
+
lineBreaks: !0,
|
|
5171
|
+
match: /\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
|
|
5172
|
+
push: "arg",
|
|
5173
|
+
value: (t) => t.substring(1).trim()
|
|
5174
|
+
},
|
|
5175
|
+
octothorpe: "#",
|
|
5176
|
+
end: { match: "}", pop: 1 },
|
|
5177
|
+
content: { lineBreaks: !0, match: /[^][^{}#']*/u }
|
|
5178
|
+
},
|
|
5179
|
+
arg: {
|
|
5180
|
+
select: {
|
|
5181
|
+
lineBreaks: !0,
|
|
5182
|
+
match: /,\s*(?:plural|select|selectordinal)\s*,\s*/u,
|
|
5183
|
+
next: "select",
|
|
5184
|
+
value: (t) => t.split(",")[1].trim()
|
|
5185
|
+
},
|
|
5186
|
+
"func-args": {
|
|
5187
|
+
lineBreaks: !0,
|
|
5188
|
+
match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,
|
|
5189
|
+
next: "body",
|
|
5190
|
+
value: (t) => t.split(",")[1].trim()
|
|
5191
|
+
},
|
|
5192
|
+
"func-simple": {
|
|
5193
|
+
lineBreaks: !0,
|
|
5194
|
+
match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
|
|
5195
|
+
value: (t) => t.substring(1).trim()
|
|
5196
|
+
},
|
|
5197
|
+
end: { match: "}", pop: 1 }
|
|
5198
|
+
},
|
|
5199
|
+
select: {
|
|
5200
|
+
offset: {
|
|
5201
|
+
lineBreaks: !0,
|
|
5202
|
+
match: /\s*offset\s*:\s*\d+\s*/u,
|
|
5203
|
+
value: (t) => t.split(":")[1].trim()
|
|
5204
|
+
},
|
|
5205
|
+
case: {
|
|
5206
|
+
lineBreaks: !0,
|
|
5207
|
+
match: /\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,
|
|
5208
|
+
push: "body",
|
|
5209
|
+
value: (t) => t.substring(0, t.indexOf("{")).trim()
|
|
5210
|
+
},
|
|
5211
|
+
end: { match: /\s*\}/u, pop: 1 }
|
|
5212
|
+
}
|
|
5213
|
+
}, r.lexer = e.default.states(r.states);
|
|
5214
|
+
})(it);
|
|
5215
|
+
Object.defineProperty(Wo, "__esModule", { value: !0 });
|
|
5216
|
+
var dt = Wo.parse = Wo.ParseError = void 0;
|
|
5217
|
+
const nt = it, ar = (r) => ({
|
|
5218
|
+
offset: r.offset,
|
|
5219
|
+
line: r.line,
|
|
5220
|
+
col: r.col,
|
|
5221
|
+
text: r.text,
|
|
5222
|
+
lineBreaks: r.lineBreaks
|
|
5223
|
+
}), Sr = (r) => r === "plural" || r === "select" || r === "selectordinal";
|
|
5224
|
+
function ma(r, o) {
|
|
5225
|
+
let e = "", t = "";
|
|
5226
|
+
for (const c of o) {
|
|
5227
|
+
const i = c.ctx.text;
|
|
5228
|
+
switch (t += i, c.type) {
|
|
5229
|
+
case "content":
|
|
5230
|
+
e += c.value;
|
|
5231
|
+
break;
|
|
5232
|
+
case "argument":
|
|
5233
|
+
case "function":
|
|
5234
|
+
case "octothorpe":
|
|
5235
|
+
e += i;
|
|
5236
|
+
break;
|
|
5237
|
+
default:
|
|
5238
|
+
throw new P(r, `Unsupported part in strict mode function arg style: ${i}`);
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
5241
|
+
return [{
|
|
5242
|
+
type: "content",
|
|
5243
|
+
value: e.trim(),
|
|
5244
|
+
ctx: Object.assign({}, o[0].ctx, { text: t })
|
|
5245
|
+
}];
|
|
5246
|
+
}
|
|
5247
|
+
const fa = [
|
|
5248
|
+
"number",
|
|
5249
|
+
"date",
|
|
5250
|
+
"time",
|
|
5251
|
+
"spellout",
|
|
5252
|
+
"ordinal",
|
|
5253
|
+
"duration"
|
|
5254
|
+
], qe = ["zero", "one", "two", "few", "many", "other"];
|
|
5255
|
+
class P extends Error {
|
|
5256
|
+
/** @internal */
|
|
5257
|
+
constructor(o, e) {
|
|
5258
|
+
super(nt.lexer.formatError(o, e));
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5261
|
+
Wo.ParseError = P;
|
|
5262
|
+
class ka {
|
|
5263
|
+
constructor(o, e) {
|
|
5264
|
+
var t, a, c, i;
|
|
5265
|
+
this.lexer = nt.lexer.reset(o), this.cardinalKeys = (t = e == null ? void 0 : e.cardinal) !== null && t !== void 0 ? t : qe, this.ordinalKeys = (a = e == null ? void 0 : e.ordinal) !== null && a !== void 0 ? a : qe, this.strict = (c = e == null ? void 0 : e.strict) !== null && c !== void 0 ? c : !1, this.strictPluralKeys = (i = e == null ? void 0 : e.strictPluralKeys) !== null && i !== void 0 ? i : !0;
|
|
5266
|
+
}
|
|
5267
|
+
parse() {
|
|
5268
|
+
return this.parseBody(!1, !0);
|
|
5269
|
+
}
|
|
5270
|
+
checkSelectKey(o, e, t) {
|
|
5271
|
+
if (t[0] === "=") {
|
|
5272
|
+
if (e === "select")
|
|
5273
|
+
throw new P(o, `The case ${t} is not valid with select`);
|
|
5274
|
+
} else if (e !== "select") {
|
|
5275
|
+
const a = e === "plural" ? this.cardinalKeys : this.ordinalKeys;
|
|
5276
|
+
if (this.strictPluralKeys && a.length > 0 && !a.includes(t)) {
|
|
5277
|
+
const c = `The ${e} case ${t} is not valid in this locale`;
|
|
5278
|
+
throw new P(o, c);
|
|
5279
|
+
}
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5282
|
+
parseSelect({ value: o }, e, t, a) {
|
|
5283
|
+
const c = { type: a, arg: o, cases: [], ctx: t };
|
|
5284
|
+
a === "plural" || a === "selectordinal" ? e = !0 : this.strict && (e = !1);
|
|
5285
|
+
for (const i of this.lexer)
|
|
5286
|
+
switch (i.type) {
|
|
5287
|
+
case "offset":
|
|
5288
|
+
if (a === "select")
|
|
5289
|
+
throw new P(i, "Unexpected plural offset for select");
|
|
5290
|
+
if (c.cases.length > 0)
|
|
5291
|
+
throw new P(i, "Plural offset must be set before cases");
|
|
5292
|
+
c.pluralOffset = Number(i.value), t.text += i.text, t.lineBreaks += i.lineBreaks;
|
|
5293
|
+
break;
|
|
5294
|
+
case "case": {
|
|
5295
|
+
this.checkSelectKey(i, a, i.value), c.cases.push({
|
|
5296
|
+
key: i.value,
|
|
5297
|
+
tokens: this.parseBody(e),
|
|
5298
|
+
ctx: ar(i)
|
|
5299
|
+
});
|
|
5300
|
+
break;
|
|
5301
|
+
}
|
|
5302
|
+
case "end":
|
|
5303
|
+
return c;
|
|
5304
|
+
default:
|
|
5305
|
+
throw new P(i, `Unexpected lexer token: ${i.type}`);
|
|
5306
|
+
}
|
|
5307
|
+
throw new P(null, "Unexpected message end");
|
|
5308
|
+
}
|
|
5309
|
+
parseArgToken(o, e) {
|
|
5310
|
+
const t = ar(o), a = this.lexer.next();
|
|
5311
|
+
if (!a)
|
|
5312
|
+
throw new P(null, "Unexpected message end");
|
|
5313
|
+
if (t.text += a.text, t.lineBreaks += a.lineBreaks, this.strict && (a.type === "func-simple" || a.type === "func-args") && !fa.includes(a.value)) {
|
|
5314
|
+
const c = `Invalid strict mode function arg type: ${a.value}`;
|
|
5315
|
+
throw new P(o, c);
|
|
5316
|
+
}
|
|
5317
|
+
switch (a.type) {
|
|
5318
|
+
case "end":
|
|
5319
|
+
return { type: "argument", arg: o.value, ctx: t };
|
|
5320
|
+
case "func-simple": {
|
|
5321
|
+
const c = this.lexer.next();
|
|
5322
|
+
if (!c)
|
|
5323
|
+
throw new P(null, "Unexpected message end");
|
|
5324
|
+
if (c.type !== "end")
|
|
5325
|
+
throw new P(c, `Unexpected lexer token: ${c.type}`);
|
|
5326
|
+
if (t.text += c.text, Sr(a.value.toLowerCase()))
|
|
5327
|
+
throw new P(a, `Invalid type identifier: ${a.value}`);
|
|
5328
|
+
return {
|
|
5329
|
+
type: "function",
|
|
5330
|
+
arg: o.value,
|
|
5331
|
+
key: a.value,
|
|
5332
|
+
ctx: t
|
|
5333
|
+
};
|
|
5334
|
+
}
|
|
5335
|
+
case "func-args": {
|
|
5336
|
+
if (Sr(a.value.toLowerCase())) {
|
|
5337
|
+
const i = `Invalid type identifier: ${a.value}`;
|
|
5338
|
+
throw new P(a, i);
|
|
5339
|
+
}
|
|
5340
|
+
let c = this.parseBody(this.strict ? !1 : e);
|
|
5341
|
+
return this.strict && c.length > 0 && (c = ma(o, c)), {
|
|
5342
|
+
type: "function",
|
|
5343
|
+
arg: o.value,
|
|
5344
|
+
key: a.value,
|
|
5345
|
+
param: c,
|
|
5346
|
+
ctx: t
|
|
5347
|
+
};
|
|
5348
|
+
}
|
|
5349
|
+
case "select":
|
|
5350
|
+
if (Sr(a.value))
|
|
5351
|
+
return this.parseSelect(o, e, t, a.value);
|
|
5352
|
+
throw new P(a, `Unexpected select type ${a.value}`);
|
|
5353
|
+
default:
|
|
5354
|
+
throw new P(a, `Unexpected lexer token: ${a.type}`);
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
parseBody(o, e) {
|
|
5358
|
+
const t = [];
|
|
5359
|
+
let a = null;
|
|
5360
|
+
for (const c of this.lexer)
|
|
5361
|
+
if (c.type === "argument")
|
|
5362
|
+
a && (a = null), t.push(this.parseArgToken(c, o));
|
|
5363
|
+
else if (c.type === "octothorpe" && o)
|
|
5364
|
+
a && (a = null), t.push({ type: "octothorpe", ctx: ar(c) });
|
|
5365
|
+
else {
|
|
5366
|
+
if (c.type === "end" && !e)
|
|
5367
|
+
return t;
|
|
5368
|
+
{
|
|
5369
|
+
let i = c.value;
|
|
5370
|
+
if (!o && c.type === "quoted" && i[0] === "#") {
|
|
5371
|
+
if (i.includes("{")) {
|
|
5372
|
+
const l = `Unsupported escape pattern: ${i}`;
|
|
5373
|
+
throw new P(c, l);
|
|
5374
|
+
}
|
|
5375
|
+
i = c.text;
|
|
5376
|
+
}
|
|
5377
|
+
a ? (a.value += i, a.ctx.text += c.text, a.ctx.lineBreaks += c.lineBreaks) : (a = { type: "content", value: i, ctx: ar(c) }, t.push(a));
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
if (e)
|
|
5381
|
+
return t;
|
|
5382
|
+
throw new P(null, "Unexpected message end");
|
|
5383
|
+
}
|
|
5384
|
+
}
|
|
5385
|
+
function $a(r, o = {}) {
|
|
5386
|
+
return new ka(r, o).parse();
|
|
5387
|
+
}
|
|
5388
|
+
dt = Wo.parse = $a;
|
|
5389
|
+
function bt(r, o) {
|
|
5390
|
+
return r.filter((e) => e.type !== "content").length ? r.map((e) => {
|
|
5391
|
+
var c;
|
|
5392
|
+
if (e.type === "content")
|
|
5393
|
+
return o(e.value);
|
|
5394
|
+
if (e.type === "octothorpe")
|
|
5395
|
+
return "#";
|
|
5396
|
+
if (e.type === "argument")
|
|
5397
|
+
return [e.arg];
|
|
5398
|
+
if (e.type === "function") {
|
|
5399
|
+
const i = (c = e == null ? void 0 : e.param) == null ? void 0 : c[0];
|
|
5400
|
+
return i ? [e.arg, e.key, i.value.trim()] : [e.arg, e.key];
|
|
5401
|
+
}
|
|
5402
|
+
const t = e.pluralOffset, a = {};
|
|
5403
|
+
return e.cases.forEach((i) => {
|
|
5404
|
+
a[i.key.replace(/^=(.)+/, "$1")] = bt(
|
|
5405
|
+
i.tokens,
|
|
5406
|
+
o
|
|
5407
|
+
);
|
|
5408
|
+
}), [
|
|
5409
|
+
e.arg,
|
|
5410
|
+
e.type,
|
|
5411
|
+
{
|
|
5412
|
+
offset: t,
|
|
5413
|
+
...a
|
|
5414
|
+
}
|
|
5415
|
+
];
|
|
5416
|
+
}) : r.map((e) => o(e.value)).join("");
|
|
5417
|
+
}
|
|
5418
|
+
function ya(r, o = (e) => e) {
|
|
5419
|
+
try {
|
|
5420
|
+
return bt(dt(r), o);
|
|
5421
|
+
} catch (e) {
|
|
5422
|
+
return console.error(`${e.message}
|
|
5423
|
+
|
|
5424
|
+
Message: ${r}`), r;
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
const to = (r) => typeof r == "string", za = (r) => typeof r == "function", Xe = /* @__PURE__ */ new Map();
|
|
5428
|
+
function le(r) {
|
|
5429
|
+
return [...Array.isArray(r) ? r : [r], "en"];
|
|
5430
|
+
}
|
|
5431
|
+
function st(r, o, e) {
|
|
5432
|
+
const t = le(r);
|
|
5433
|
+
return xr(
|
|
5434
|
+
() => mr("date", t, e),
|
|
5435
|
+
() => new Intl.DateTimeFormat(t, e)
|
|
5436
|
+
).format(to(o) ? new Date(o) : o);
|
|
5437
|
+
}
|
|
5438
|
+
function Rr(r, o, e) {
|
|
5439
|
+
const t = le(r);
|
|
5440
|
+
return xr(
|
|
5441
|
+
() => mr("number", t, e),
|
|
5442
|
+
() => new Intl.NumberFormat(t, e)
|
|
5443
|
+
).format(o);
|
|
5444
|
+
}
|
|
5445
|
+
function Ye(r, o, e, { offset: t = 0, ...a }) {
|
|
5446
|
+
const c = le(r), i = o ? xr(
|
|
5447
|
+
() => mr("plural-ordinal", c),
|
|
5448
|
+
() => new Intl.PluralRules(c, { type: "ordinal" })
|
|
5449
|
+
) : xr(
|
|
5450
|
+
() => mr("plural-cardinal", c),
|
|
5451
|
+
() => new Intl.PluralRules(c, { type: "cardinal" })
|
|
5452
|
+
);
|
|
5453
|
+
return a[e] ?? a[i.select(e - t)] ?? a.other;
|
|
5454
|
+
}
|
|
5455
|
+
function xr(r, o) {
|
|
5456
|
+
const e = r();
|
|
5457
|
+
let t = Xe.get(e);
|
|
5458
|
+
return t || (t = o(), Xe.set(e, t)), t;
|
|
5459
|
+
}
|
|
5460
|
+
function mr(r, o, e) {
|
|
5461
|
+
const t = o.join("-");
|
|
5462
|
+
return `${r}-${t}-${JSON.stringify(e)}`;
|
|
5463
|
+
}
|
|
5464
|
+
const gt = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g, _a = (r, o, e = {}) => {
|
|
5465
|
+
o = o || r;
|
|
5466
|
+
const t = (c) => to(c) ? e[c] || { style: c } : c, a = (c, i) => {
|
|
5467
|
+
const l = Object.keys(e).length ? t("number") : {}, n = Rr(o, c, l);
|
|
5468
|
+
return i.replace("#", n);
|
|
5469
|
+
};
|
|
5470
|
+
return {
|
|
5471
|
+
plural: (c, i) => {
|
|
5472
|
+
const { offset: l = 0 } = i, n = Ye(o, !1, c, i);
|
|
5473
|
+
return a(c - l, n);
|
|
5474
|
+
},
|
|
5475
|
+
selectordinal: (c, i) => {
|
|
5476
|
+
const { offset: l = 0 } = i, n = Ye(o, !0, c, i);
|
|
5477
|
+
return a(c - l, n);
|
|
5478
|
+
},
|
|
5479
|
+
select: (c, i) => i[c] ?? i.other,
|
|
5480
|
+
number: (c, i) => Rr(o, c, t(i)),
|
|
5481
|
+
date: (c, i) => st(o, c, t(i)),
|
|
5482
|
+
undefined: (c) => c
|
|
5483
|
+
};
|
|
5484
|
+
};
|
|
5485
|
+
function qa(r, o, e) {
|
|
5486
|
+
return (t, a = {}) => {
|
|
5487
|
+
const c = _a(o, e, a), i = (n) => Array.isArray(n) ? n.reduce((b, v) => {
|
|
5488
|
+
if (to(v))
|
|
5489
|
+
return b + v;
|
|
5490
|
+
const [u, h, g] = v;
|
|
5491
|
+
let p = {};
|
|
5492
|
+
g != null && !to(g) ? Object.keys(g).forEach((z) => {
|
|
5493
|
+
p[z] = i(g[z]);
|
|
5494
|
+
}) : p = g;
|
|
5495
|
+
const x = c[h](t[u], p);
|
|
5496
|
+
return x == null ? b : b + x;
|
|
5497
|
+
}, "") : n, l = i(r);
|
|
5498
|
+
return to(l) && gt.test(l) ? wa(l.trim()) : to(l) ? l.trim() : l;
|
|
5499
|
+
};
|
|
5500
|
+
}
|
|
5501
|
+
var Xa = Object.defineProperty, Ya = (r, o, e) => o in r ? Xa(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, ja = (r, o, e) => (Ya(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
5502
|
+
class Za {
|
|
5503
|
+
constructor() {
|
|
5504
|
+
ja(this, "_events", {});
|
|
5505
|
+
}
|
|
5506
|
+
on(o, e) {
|
|
5507
|
+
return this._hasEvent(o) || (this._events[o] = []), this._events[o].push(e), () => this.removeListener(o, e);
|
|
5508
|
+
}
|
|
5509
|
+
removeListener(o, e) {
|
|
5510
|
+
if (!this._hasEvent(o))
|
|
5511
|
+
return;
|
|
5512
|
+
const t = this._events[o].indexOf(e);
|
|
5513
|
+
~t && this._events[o].splice(t, 1);
|
|
5514
|
+
}
|
|
5515
|
+
emit(o, ...e) {
|
|
5516
|
+
this._hasEvent(o) && this._events[o].map((t) => t.apply(this, e));
|
|
5517
|
+
}
|
|
5518
|
+
_hasEvent(o) {
|
|
5519
|
+
return Array.isArray(this._events[o]);
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5522
|
+
var Sa = Object.defineProperty, Aa = (r, o, e) => o in r ? Sa(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, Ao = (r, o, e) => (Aa(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
5523
|
+
class Ea extends Za {
|
|
5524
|
+
constructor(o) {
|
|
5525
|
+
super(), Ao(this, "_locale"), Ao(this, "_locales"), Ao(this, "_localeData"), Ao(this, "_messages"), Ao(this, "_missing"), Ao(this, "t", this._.bind(this)), this._messages = {}, this._localeData = {}, o.missing != null && (this._missing = o.missing), o.messages != null && this.load(o.messages), o.localeData != null && this.loadLocaleData(o.localeData), (o.locale != null || o.locales != null) && this.activate(o.locale, o.locales);
|
|
5526
|
+
}
|
|
5527
|
+
get locale() {
|
|
5528
|
+
return this._locale;
|
|
5529
|
+
}
|
|
5530
|
+
get locales() {
|
|
5531
|
+
return this._locales;
|
|
5532
|
+
}
|
|
5533
|
+
get messages() {
|
|
5534
|
+
return this._messages[this._locale] ?? {};
|
|
5535
|
+
}
|
|
5536
|
+
/**
|
|
5537
|
+
* @deprecated this has no effect. Please remove this from the code. Deprecated in v4
|
|
5538
|
+
*/
|
|
5539
|
+
get localeData() {
|
|
5540
|
+
return this._localeData[this._locale] ?? {};
|
|
5541
|
+
}
|
|
5542
|
+
_loadLocaleData(o, e) {
|
|
5543
|
+
this._localeData[o] == null ? this._localeData[o] = e : Object.assign(this._localeData[o], e);
|
|
5544
|
+
}
|
|
5545
|
+
/**
|
|
5546
|
+
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
|
|
5547
|
+
*/
|
|
5548
|
+
loadLocaleData(o, e) {
|
|
5549
|
+
e != null ? this._loadLocaleData(o, e) : Object.keys(o).forEach(
|
|
5550
|
+
(t) => this._loadLocaleData(t, o[t])
|
|
5551
|
+
), this.emit("change");
|
|
5552
|
+
}
|
|
5553
|
+
_load(o, e) {
|
|
5554
|
+
this._messages[o] == null ? this._messages[o] = e : Object.assign(this._messages[o], e);
|
|
5555
|
+
}
|
|
5556
|
+
load(o, e) {
|
|
5557
|
+
e != null ? this._load(o, e) : Object.keys(o).forEach(
|
|
5558
|
+
(t) => this._load(t, o[t])
|
|
5559
|
+
), this.emit("change");
|
|
5560
|
+
}
|
|
5561
|
+
/**
|
|
5562
|
+
* @param options {@link LoadAndActivateOptions}
|
|
5563
|
+
*/
|
|
5564
|
+
loadAndActivate({ locale: o, locales: e, messages: t }) {
|
|
5565
|
+
this._locale = o, this._locales = e || void 0, this._messages[this._locale] = t, this.emit("change");
|
|
5566
|
+
}
|
|
5567
|
+
activate(o, e) {
|
|
5568
|
+
process.env.NODE_ENV !== "production" && (this._messages[o] || console.warn(`Messages for locale "${o}" not loaded.`)), this._locale = o, this._locales = e, this.emit("change");
|
|
5569
|
+
}
|
|
5570
|
+
_(o, e = {}, { message: t, formats: a } = {}) {
|
|
5571
|
+
to(o) || (e = o.values || e, t = o.message, o = o.id);
|
|
5572
|
+
const c = !this.messages[o], i = this._missing;
|
|
5573
|
+
if (i && c)
|
|
5574
|
+
return za(i) ? i(this._locale, o) : i;
|
|
5575
|
+
c && this.emit("missing", { id: o, locale: this._locale });
|
|
5576
|
+
let l = this.messages[o] || t || o;
|
|
5577
|
+
return process.env.NODE_ENV !== "production" && (l = to(l) ? ya(l) : l), to(l) && gt.test(l) ? JSON.parse(`"${l}"`) : to(l) ? l : qa(
|
|
5578
|
+
l,
|
|
5579
|
+
this._locale,
|
|
5580
|
+
this._locales
|
|
5581
|
+
)(e, a);
|
|
5582
|
+
}
|
|
5583
|
+
date(o, e) {
|
|
5584
|
+
return st(this._locales || this._locale, o, e);
|
|
5585
|
+
}
|
|
5586
|
+
number(o, e) {
|
|
5587
|
+
return Rr(this._locales || this._locale, o, e);
|
|
5588
|
+
}
|
|
5589
|
+
}
|
|
5590
|
+
function Ca(r = {}) {
|
|
5591
|
+
return new Ea(r);
|
|
5592
|
+
}
|
|
5593
|
+
const Vo = Ca(), La = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}'), Ma = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}'), Ta = JSON.parse('{"breadcrumbs.ariaLabel":"Olet tässä"}'), Oa = ["en", "nb", "fi"], ut = "en", je = (r) => Oa.find(
|
|
5594
|
+
(o) => r === o || r.toLowerCase().includes(o)
|
|
5595
|
+
) || ut;
|
|
5596
|
+
function Ba() {
|
|
5597
|
+
if (typeof window > "u") {
|
|
5598
|
+
const r = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
|
|
5599
|
+
return je(r);
|
|
5600
|
+
}
|
|
5601
|
+
try {
|
|
5602
|
+
const r = document.documentElement.lang;
|
|
5603
|
+
return je(r);
|
|
5604
|
+
} catch (r) {
|
|
5605
|
+
return console.warn("could not detect locale, falling back to source locale", r), ut;
|
|
5606
|
+
}
|
|
5607
|
+
}
|
|
5608
|
+
const Na = (r, o, e, t) => r === "nb" ? e : r === "fi" ? t : o, de = (r, o, e) => {
|
|
5609
|
+
const t = Ba(), a = Na(t, r, o, e);
|
|
5610
|
+
Vo.load(t, a), Vo.activate(t);
|
|
5611
|
+
}, Da = f`<span class=${Eo.separator} aria-hidden='true'>/</span>`;
|
|
5612
|
+
class Pr extends Ko(I) {
|
|
4677
5613
|
constructor() {
|
|
4678
|
-
super(), this.ariaLabel =
|
|
5614
|
+
super(), de(La, Ma, Ta), this.ariaLabel = Vo._(
|
|
5615
|
+
{
|
|
5616
|
+
id: "breadcrumbs.ariaLabel",
|
|
5617
|
+
message: "You are here",
|
|
5618
|
+
comment: "Default screenreader message for the breadcrumb component"
|
|
5619
|
+
}
|
|
5620
|
+
);
|
|
4679
5621
|
}
|
|
4680
5622
|
connectedCallback() {
|
|
4681
5623
|
super.connectedCallback();
|
|
4682
5624
|
const e = Array.from(this.children).flat(1 / 0).filter((t) => t).map((t, a) => {
|
|
4683
5625
|
if (typeof t == "string") {
|
|
4684
5626
|
const c = a === children.length - 1;
|
|
4685
|
-
return
|
|
5627
|
+
return f`<span class=${Eo.text} aria-current=${c ? "page" : void 0}>${t}</span>`;
|
|
4686
5628
|
}
|
|
4687
|
-
return t.classList.add(t.tagName === "A" ?
|
|
5629
|
+
return t.classList.add(t.tagName === "A" ? Eo.link : Eo.text), t;
|
|
4688
5630
|
});
|
|
4689
|
-
this._children =
|
|
5631
|
+
this._children = ha(e, Da);
|
|
4690
5632
|
}
|
|
4691
5633
|
render() {
|
|
4692
|
-
return
|
|
5634
|
+
return f`
|
|
4693
5635
|
<nav aria-label=${this.ariaLabel}>
|
|
4694
|
-
<h2 class=${
|
|
4695
|
-
<div class=${
|
|
5636
|
+
<h2 class=${Eo.a11y}>${this.ariaLabel}</h2>
|
|
5637
|
+
<div class=${Eo.wrapper}>
|
|
4696
5638
|
${this._children}
|
|
4697
5639
|
</div>
|
|
4698
5640
|
</nav>
|
|
4699
5641
|
`;
|
|
4700
5642
|
}
|
|
4701
5643
|
}
|
|
4702
|
-
|
|
5644
|
+
Z(Pr, "styles", Q`
|
|
4703
5645
|
/* layer: preflights */
|
|
4704
5646
|
*,::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;}
|
|
4705
5647
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -5348,37 +6290,37 @@ f(vr, "styles", A`
|
|
|
5348
6290
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
5349
6291
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
5350
6292
|
}
|
|
5351
|
-
`),
|
|
6293
|
+
`), Z(Pr, "properties", {
|
|
5352
6294
|
ariaLabel: { type: String }
|
|
5353
6295
|
});
|
|
5354
|
-
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs",
|
|
6296
|
+
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", Pr);
|
|
5355
6297
|
/**
|
|
5356
6298
|
* @license
|
|
5357
6299
|
* Copyright 2020 Google LLC
|
|
5358
6300
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5359
6301
|
*/
|
|
5360
|
-
const { I:
|
|
6302
|
+
const { I: Ra } = St, Ze = () => document.createComment(""), Ro = (r, o, e) => {
|
|
5361
6303
|
var t;
|
|
5362
6304
|
const a = r._$AA.parentNode, c = o === void 0 ? r._$AB : o._$AA;
|
|
5363
6305
|
if (e === void 0) {
|
|
5364
|
-
const i = a.insertBefore(
|
|
5365
|
-
e = new
|
|
6306
|
+
const i = a.insertBefore(Ze(), c), l = a.insertBefore(Ze(), c);
|
|
6307
|
+
e = new Ra(i, l, r, r.options);
|
|
5366
6308
|
} else {
|
|
5367
|
-
const i = e._$AB.nextSibling, l = e._$AM,
|
|
5368
|
-
if (
|
|
5369
|
-
let
|
|
5370
|
-
(t = e._$AQ) === null || t === void 0 || t.call(e, r), e._$AM = r, e._$AP !== void 0 && (
|
|
6309
|
+
const i = e._$AB.nextSibling, l = e._$AM, n = l !== r;
|
|
6310
|
+
if (n) {
|
|
6311
|
+
let b;
|
|
6312
|
+
(t = e._$AQ) === null || t === void 0 || t.call(e, r), e._$AM = r, e._$AP !== void 0 && (b = r._$AU) !== l._$AU && e._$AP(b);
|
|
5371
6313
|
}
|
|
5372
|
-
if (i !== c ||
|
|
5373
|
-
let
|
|
5374
|
-
for (;
|
|
5375
|
-
const
|
|
5376
|
-
a.insertBefore(
|
|
6314
|
+
if (i !== c || n) {
|
|
6315
|
+
let b = e._$AA;
|
|
6316
|
+
for (; b !== i; ) {
|
|
6317
|
+
const v = b.nextSibling;
|
|
6318
|
+
a.insertBefore(b, c), b = v;
|
|
5377
6319
|
}
|
|
5378
6320
|
}
|
|
5379
6321
|
}
|
|
5380
6322
|
return e;
|
|
5381
|
-
},
|
|
6323
|
+
}, zo = (r, o, e = r) => (r._$AI(o, e), r), Pa = {}, Ia = (r, o = Pa) => r._$AH = o, Ha = (r) => r._$AH, Ar = (r) => {
|
|
5382
6324
|
var o;
|
|
5383
6325
|
(o = r._$AP) === null || o === void 0 || o.call(r, !1, !0);
|
|
5384
6326
|
let e = r._$AA;
|
|
@@ -5393,14 +6335,14 @@ const { I: Yt } = Ie, Vr = () => document.createComment(""), ko = (r, o, e) => {
|
|
|
5393
6335
|
* Copyright 2017 Google LLC
|
|
5394
6336
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5395
6337
|
*/
|
|
5396
|
-
const
|
|
6338
|
+
const Se = (r, o, e) => {
|
|
5397
6339
|
const t = /* @__PURE__ */ new Map();
|
|
5398
6340
|
for (let a = o; a <= e; a++)
|
|
5399
6341
|
t.set(r[a], a);
|
|
5400
6342
|
return t;
|
|
5401
|
-
},
|
|
6343
|
+
}, vt = te(class extends ae {
|
|
5402
6344
|
constructor(r) {
|
|
5403
|
-
if (super(r), r.type !==
|
|
6345
|
+
if (super(r), r.type !== ee.CHILD)
|
|
5404
6346
|
throw Error("repeat() can only be used in text expressions");
|
|
5405
6347
|
}
|
|
5406
6348
|
dt(r, o, e) {
|
|
@@ -5417,58 +6359,58 @@ const Gr = (r, o, e) => {
|
|
|
5417
6359
|
}
|
|
5418
6360
|
update(r, [o, e, t]) {
|
|
5419
6361
|
var a;
|
|
5420
|
-
const c =
|
|
6362
|
+
const c = Ha(r), { values: i, keys: l } = this.dt(o, e, t);
|
|
5421
6363
|
if (!Array.isArray(c))
|
|
5422
6364
|
return this.ht = l, i;
|
|
5423
|
-
const
|
|
5424
|
-
let
|
|
5425
|
-
for (;
|
|
5426
|
-
if (c[
|
|
5427
|
-
|
|
5428
|
-
else if (c[
|
|
5429
|
-
|
|
5430
|
-
else if (
|
|
5431
|
-
|
|
5432
|
-
else if (
|
|
5433
|
-
|
|
5434
|
-
else if (
|
|
5435
|
-
|
|
5436
|
-
else if (
|
|
5437
|
-
|
|
5438
|
-
else if (
|
|
5439
|
-
if (
|
|
5440
|
-
const
|
|
5441
|
-
if (
|
|
5442
|
-
const
|
|
5443
|
-
|
|
6365
|
+
const n = (a = this.ht) !== null && a !== void 0 ? a : this.ht = [], b = [];
|
|
6366
|
+
let v, u, h = 0, g = c.length - 1, p = 0, x = i.length - 1;
|
|
6367
|
+
for (; h <= g && p <= x; )
|
|
6368
|
+
if (c[h] === null)
|
|
6369
|
+
h++;
|
|
6370
|
+
else if (c[g] === null)
|
|
6371
|
+
g--;
|
|
6372
|
+
else if (n[h] === l[p])
|
|
6373
|
+
b[p] = zo(c[h], i[p]), h++, p++;
|
|
6374
|
+
else if (n[g] === l[x])
|
|
6375
|
+
b[x] = zo(c[g], i[x]), g--, x--;
|
|
6376
|
+
else if (n[h] === l[x])
|
|
6377
|
+
b[x] = zo(c[h], i[x]), Ro(r, b[x + 1], c[h]), h++, x--;
|
|
6378
|
+
else if (n[g] === l[p])
|
|
6379
|
+
b[p] = zo(c[g], i[p]), Ro(r, c[h], c[g]), g--, p++;
|
|
6380
|
+
else if (v === void 0 && (v = Se(l, p, x), u = Se(n, h, g)), v.has(n[h]))
|
|
6381
|
+
if (v.has(n[g])) {
|
|
6382
|
+
const z = u.get(l[p]), E = z !== void 0 ? c[z] : null;
|
|
6383
|
+
if (E === null) {
|
|
6384
|
+
const M = Ro(r, c[h]);
|
|
6385
|
+
zo(M, i[p]), b[p] = M;
|
|
5444
6386
|
} else
|
|
5445
|
-
|
|
5446
|
-
|
|
6387
|
+
b[p] = zo(E, i[p]), Ro(r, c[h], E), c[z] = null;
|
|
6388
|
+
p++;
|
|
5447
6389
|
} else
|
|
5448
|
-
|
|
6390
|
+
Ar(c[g]), g--;
|
|
5449
6391
|
else
|
|
5450
|
-
|
|
5451
|
-
for (;
|
|
5452
|
-
const
|
|
5453
|
-
|
|
6392
|
+
Ar(c[h]), h++;
|
|
6393
|
+
for (; p <= x; ) {
|
|
6394
|
+
const z = Ro(r, b[x + 1]);
|
|
6395
|
+
zo(z, i[p]), b[p++] = z;
|
|
5454
6396
|
}
|
|
5455
|
-
for (;
|
|
5456
|
-
const
|
|
5457
|
-
|
|
6397
|
+
for (; h <= g; ) {
|
|
6398
|
+
const z = c[h++];
|
|
6399
|
+
z !== null && Ar(z);
|
|
5458
6400
|
}
|
|
5459
|
-
return this.ht = l,
|
|
6401
|
+
return this.ht = l, Ia(r, b), ho;
|
|
5460
6402
|
}
|
|
5461
|
-
}),
|
|
5462
|
-
class
|
|
6403
|
+
}), Go = typeof window < "u";
|
|
6404
|
+
class Ir extends I {
|
|
5463
6405
|
constructor() {
|
|
5464
|
-
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url =
|
|
6406
|
+
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = Go ? window.location.href : "";
|
|
5465
6407
|
}
|
|
5466
6408
|
async connectedCallback() {
|
|
5467
6409
|
if (super.connectedCallback(), !this.api) {
|
|
5468
6410
|
console.error('Broadcast "api" attribute invalid or undefined');
|
|
5469
6411
|
return;
|
|
5470
6412
|
}
|
|
5471
|
-
|
|
6413
|
+
Go && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
|
|
5472
6414
|
}
|
|
5473
6415
|
async _fetchMessage() {
|
|
5474
6416
|
const o = `${this.api}?path=${this.url}`;
|
|
@@ -5484,12 +6426,12 @@ class pr extends Y {
|
|
|
5484
6426
|
}
|
|
5485
6427
|
render() {
|
|
5486
6428
|
const o = this._messages.filter((e) => !this._hiddenMessageIds.includes(e.id));
|
|
5487
|
-
return
|
|
6429
|
+
return f`
|
|
5488
6430
|
<aside class=${`${o.length === 0 ? "hidden" : "mb-16"}`}>
|
|
5489
|
-
${
|
|
6431
|
+
${vt(
|
|
5490
6432
|
o,
|
|
5491
6433
|
({ id: e }) => `broadcast-${e}`,
|
|
5492
|
-
({ id: e, message: t }) =>
|
|
6434
|
+
({ id: e, message: t }) => f`<w-toast
|
|
5493
6435
|
id="broadcast-${e}"
|
|
5494
6436
|
type="warning"
|
|
5495
6437
|
text="${t}"
|
|
@@ -5502,7 +6444,7 @@ class pr extends Y {
|
|
|
5502
6444
|
`;
|
|
5503
6445
|
}
|
|
5504
6446
|
}
|
|
5505
|
-
|
|
6447
|
+
Z(Ir, "properties", {
|
|
5506
6448
|
_messages: {
|
|
5507
6449
|
state: !0,
|
|
5508
6450
|
hasChanged(o, e) {
|
|
@@ -5519,7 +6461,7 @@ f(pr, "properties", {
|
|
|
5519
6461
|
interval: { type: Number, attribute: !0, reflect: !0 },
|
|
5520
6462
|
url: { type: String, attribute: !0, reflect: !0 },
|
|
5521
6463
|
api: { type: String, attribute: !0, reflect: !0 }
|
|
5522
|
-
}),
|
|
6464
|
+
}), Z(Ir, "styles", Q`
|
|
5523
6465
|
/* layer: preflights */
|
|
5524
6466
|
*,::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;}
|
|
5525
6467
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -6170,8 +7112,8 @@ f(pr, "properties", {
|
|
|
6170
7112
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
6171
7113
|
}
|
|
6172
7114
|
`);
|
|
6173
|
-
customElements.get("w-broadcast") || customElements.define("w-broadcast",
|
|
6174
|
-
const
|
|
7115
|
+
customElements.get("w-broadcast") || customElements.define("w-broadcast", Ir);
|
|
7116
|
+
const Qa = JSON.parse('{"button.aria.loading":"Loading..."}'), Ua = JSON.parse('{"button.aria.loading":"Laster..."}'), Fa = JSON.parse('{"button.aria.loading":"Ladataan..."}'), Ae = [
|
|
6175
7117
|
"primary",
|
|
6176
7118
|
"secondary",
|
|
6177
7119
|
"negative",
|
|
@@ -6179,15 +7121,19 @@ const Jr = [
|
|
|
6179
7121
|
"pill",
|
|
6180
7122
|
"link"
|
|
6181
7123
|
];
|
|
6182
|
-
class
|
|
7124
|
+
class cr extends Ko(I) {
|
|
6183
7125
|
constructor() {
|
|
6184
|
-
super(), this.variant = "secondary"
|
|
7126
|
+
super(), de(Qa, Ua, Fa), this.variant = "secondary", this.ariaValueTextLoading = Vo._({
|
|
7127
|
+
id: "button.aria.loading",
|
|
7128
|
+
message: "Loading...",
|
|
7129
|
+
comment: "Screenreader message for buttons that are loading"
|
|
7130
|
+
});
|
|
6185
7131
|
}
|
|
6186
7132
|
connectedCallback() {
|
|
6187
|
-
if (super.connectedCallback(), !
|
|
7133
|
+
if (super.connectedCallback(), !Ae.includes(this.variant))
|
|
6188
7134
|
throw new Error(
|
|
6189
7135
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
6190
|
-
${
|
|
7136
|
+
${Ae.join(
|
|
6191
7137
|
", "
|
|
6192
7138
|
)}.`
|
|
6193
7139
|
);
|
|
@@ -6197,74 +7143,79 @@ ${Jr.join(
|
|
|
6197
7143
|
}
|
|
6198
7144
|
get _classes() {
|
|
6199
7145
|
const o = this.variant === "primary", e = this.variant === "secondary", t = this.variant === "negative", a = this.variant === "utility", c = this.variant === "pill", i = this.variant === "link";
|
|
6200
|
-
return
|
|
7146
|
+
return uo(
|
|
6201
7147
|
{
|
|
6202
|
-
[
|
|
6203
|
-
[
|
|
6204
|
-
[
|
|
6205
|
-
[
|
|
6206
|
-
[
|
|
6207
|
-
[
|
|
6208
|
-
[
|
|
6209
|
-
[
|
|
6210
|
-
[
|
|
6211
|
-
[
|
|
6212
|
-
[
|
|
6213
|
-
[
|
|
6214
|
-
[
|
|
6215
|
-
[
|
|
6216
|
-
[
|
|
6217
|
-
[
|
|
6218
|
-
[
|
|
6219
|
-
[
|
|
6220
|
-
[
|
|
6221
|
-
[
|
|
6222
|
-
[
|
|
6223
|
-
[
|
|
6224
|
-
[
|
|
6225
|
-
[
|
|
6226
|
-
[
|
|
6227
|
-
[
|
|
6228
|
-
[
|
|
6229
|
-
[
|
|
6230
|
-
[
|
|
6231
|
-
[
|
|
6232
|
-
[
|
|
6233
|
-
[
|
|
6234
|
-
[
|
|
6235
|
-
[
|
|
6236
|
-
[
|
|
6237
|
-
[
|
|
6238
|
-
[
|
|
6239
|
-
[
|
|
6240
|
-
[
|
|
6241
|
-
[
|
|
6242
|
-
[
|
|
7148
|
+
[X.secondary]: e && !this.small && !this.quiet && !this.loading,
|
|
7149
|
+
[X.secondarySmall]: e && this.small && !this.quiet && !this.loading,
|
|
7150
|
+
[X.secondarySmallLoading]: e && this.small && !this.quiet && this.loading,
|
|
7151
|
+
[X.secondarySmallQuiet]: e && this.small && this.quiet && !this.loading,
|
|
7152
|
+
[X.secondarySmallQuietLoading]: e && this.small && this.quiet && this.loading,
|
|
7153
|
+
[X.secondaryQuiet]: e && !this.small && this.quiet && !this.loading,
|
|
7154
|
+
[X.secondaryQuietLoading]: e && !this.small && this.quiet && this.loading,
|
|
7155
|
+
[X.secondaryLoading]: e && !this.small && !this.quiet && this.loading,
|
|
7156
|
+
[X.primary]: o && !this.small && !this.quiet && !this.loading,
|
|
7157
|
+
[X.primarySmall]: o && this.small && !this.quiet && !this.loading,
|
|
7158
|
+
[X.primarySmallQuiet]: o && this.small && this.quiet && !this.loading,
|
|
7159
|
+
[X.primarySmallLoading]: o && this.small && !this.quiet && this.loading,
|
|
7160
|
+
[X.primarySmallQuietLoading]: o && this.small && this.quiet && this.loading,
|
|
7161
|
+
[X.primaryQuiet]: o && !this.small && this.quiet && !this.loading,
|
|
7162
|
+
[X.primaryQuietLoading]: o && !this.small && this.quiet && this.loading,
|
|
7163
|
+
[X.primaryLoading]: o && !this.small && !this.quiet && this.loading,
|
|
7164
|
+
[X.utility]: a && !this.small && !this.quiet && !this.loading,
|
|
7165
|
+
[X.utilitySmall]: a && this.small && !this.quiet && !this.loading,
|
|
7166
|
+
[X.utilitySmallQuiet]: a && this.small && this.quiet && !this.loading,
|
|
7167
|
+
[X.utilitySmallLoading]: a && this.small && !this.quiet && this.loading,
|
|
7168
|
+
[X.utilitySmallQuietLoading]: a && this.small && this.quiet && this.loading,
|
|
7169
|
+
[X.utilityQuiet]: a && !this.small && this.quiet && !this.loading,
|
|
7170
|
+
[X.utilityQuietLoading]: a && !this.small && this.quiet && this.loading,
|
|
7171
|
+
[X.utilityLoading]: a && !this.small && !this.quiet && this.loading,
|
|
7172
|
+
[X.negative]: t && !this.small && !this.quiet && !this.loading,
|
|
7173
|
+
[X.negativeSmall]: t && this.small && !this.quiet && !this.loading,
|
|
7174
|
+
[X.negativeSmallQuiet]: t && this.small && this.quiet && !this.loading,
|
|
7175
|
+
[X.negativeSmallLoading]: t && this.small && !this.quiet && this.loading,
|
|
7176
|
+
[X.negativeSmallQuietLoading]: t && this.small && this.quiet && this.loading,
|
|
7177
|
+
[X.negativeQuiet]: t && !this.small && this.quiet && !this.loading,
|
|
7178
|
+
[X.negativeQuietLoading]: t && !this.small && this.quiet && this.loading,
|
|
7179
|
+
[X.negativeLoading]: t && !this.small && !this.quiet && this.loading,
|
|
7180
|
+
[X.pill]: c && !this.small && !this.loading,
|
|
7181
|
+
[X.pillSmall]: c && this.small && !this.loading,
|
|
7182
|
+
[X.pillLoading]: c && !this.small && this.loading,
|
|
7183
|
+
[X.pillSmallLoading]: c && this.small && this.loading,
|
|
7184
|
+
[X.link]: i && !this.small,
|
|
7185
|
+
[X.linkSmall]: i && this.small,
|
|
7186
|
+
[X.linkAsButton]: !!this.href,
|
|
7187
|
+
[X.fullWidth]: this.fullWidth,
|
|
7188
|
+
[X.contentWidth]: !this.fullWidth
|
|
6243
7189
|
},
|
|
6244
7190
|
this.buttonClass
|
|
6245
7191
|
);
|
|
6246
7192
|
}
|
|
6247
7193
|
render() {
|
|
6248
|
-
return
|
|
6249
|
-
${this.href ? v`<a
|
|
7194
|
+
return f` ${this.href ? f`<a
|
|
6250
7195
|
href=${this.href}
|
|
6251
7196
|
target=${this.target}
|
|
6252
7197
|
rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
|
|
6253
7198
|
class=${this._classes}
|
|
6254
7199
|
>
|
|
6255
7200
|
<slot></slot>
|
|
6256
|
-
</a>` :
|
|
7201
|
+
</a>` : f`<button
|
|
7202
|
+
type=${this.type || "button"}
|
|
7203
|
+
class=${this._classes}
|
|
7204
|
+
>
|
|
6257
7205
|
<slot></slot>
|
|
6258
7206
|
</button>`}
|
|
6259
|
-
${this.loading ?
|
|
7207
|
+
${this.loading ? f`<span
|
|
6260
7208
|
class="sr-only"
|
|
6261
7209
|
role="progressbar"
|
|
6262
7210
|
aria-valuenow="{0}"
|
|
6263
|
-
aria-valuetext
|
|
7211
|
+
aria-valuetext=${this.ariaValueTextLoading}
|
|
6264
7212
|
/>` : null}`;
|
|
6265
7213
|
}
|
|
6266
7214
|
}
|
|
6267
|
-
|
|
7215
|
+
Z(cr, "shadowRootOptions", {
|
|
7216
|
+
...I.shadowRootOptions,
|
|
7217
|
+
delegatesFocus: !0
|
|
7218
|
+
}), Z(cr, "properties", {
|
|
6268
7219
|
type: { type: "button" | "submit" | "reset", reflect: !0 },
|
|
6269
7220
|
autofocus: { type: Boolean, reflect: !0 },
|
|
6270
7221
|
variant: { type: String, reflect: !0 },
|
|
@@ -6276,7 +7227,7 @@ f(Eo, "shadowRootOptions", { ...Y.shadowRootOptions, delegatesFocus: !0 }), f(Eo
|
|
|
6276
7227
|
rel: { type: String, reflect: !0 },
|
|
6277
7228
|
fullWidth: { type: Boolean, reflect: !0 },
|
|
6278
7229
|
buttonClass: { type: String, reflect: !0 }
|
|
6279
|
-
}),
|
|
7230
|
+
}), Z(cr, "styles", Q`
|
|
6280
7231
|
/* layer: preflights */
|
|
6281
7232
|
*,::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;}
|
|
6282
7233
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -6924,47 +7875,47 @@ f(Eo, "shadowRootOptions", { ...Y.shadowRootOptions, delegatesFocus: !0 }), f(Eo
|
|
|
6924
7875
|
.sm\\:px-32{padding-left:3.2rem;padding-right:3.2rem;}
|
|
6925
7876
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
6926
7877
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
6927
|
-
}
|
|
7878
|
+
};
|
|
6928
7879
|
`);
|
|
6929
|
-
customElements.get("w-button") || customElements.define("w-button",
|
|
6930
|
-
const
|
|
7880
|
+
customElements.get("w-button") || customElements.define("w-button", cr);
|
|
7881
|
+
const Ee = {
|
|
6931
7882
|
ENTER: "Enter",
|
|
6932
7883
|
SPACE: " "
|
|
6933
7884
|
};
|
|
6934
|
-
class
|
|
7885
|
+
class Hr extends I {
|
|
6935
7886
|
constructor() {
|
|
6936
7887
|
super(), this.selected = !1, this.flat = !1, this.clickable = !1;
|
|
6937
7888
|
}
|
|
6938
7889
|
get _outerClasses() {
|
|
6939
|
-
return
|
|
6940
|
-
[
|
|
6941
|
-
[
|
|
6942
|
-
[
|
|
6943
|
-
[
|
|
6944
|
-
[this.selected ?
|
|
7890
|
+
return V({
|
|
7891
|
+
[eo.card]: !0,
|
|
7892
|
+
[eo.cardShadow]: !this.flat,
|
|
7893
|
+
[eo.cardSelected]: this.selected,
|
|
7894
|
+
[eo.cardFlat]: this.flat,
|
|
7895
|
+
[this.selected ? eo.cardFlatSelected : eo.cardFlatUnselected]: this.flat
|
|
6945
7896
|
});
|
|
6946
7897
|
}
|
|
6947
7898
|
get _innerClasses() {
|
|
6948
|
-
return
|
|
6949
|
-
[
|
|
6950
|
-
[this.selected ?
|
|
7899
|
+
return V({
|
|
7900
|
+
[eo.cardOutline]: !0,
|
|
7901
|
+
[this.selected ? eo.cardOutlineSelected : eo.cardOutlineUnselected]: !0
|
|
6951
7902
|
});
|
|
6952
7903
|
}
|
|
6953
7904
|
get uuButton() {
|
|
6954
|
-
return
|
|
7905
|
+
return f`<button class="${eo.a11y}" aria-pressed="${this.selected}" tabindex="-1">
|
|
6955
7906
|
Velg
|
|
6956
7907
|
</button>`;
|
|
6957
7908
|
}
|
|
6958
7909
|
get uuSpan() {
|
|
6959
|
-
return
|
|
7910
|
+
return f`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
6960
7911
|
}
|
|
6961
7912
|
keypressed(o) {
|
|
6962
|
-
!this.clickable || o.altKey || o.ctrlKey || (o.key ===
|
|
7913
|
+
!this.clickable || o.altKey || o.ctrlKey || (o.key === Ee.ENTER || o.key === Ee.SPACE) && (o.preventDefault(), this.click());
|
|
6963
7914
|
}
|
|
6964
7915
|
render() {
|
|
6965
|
-
return
|
|
7916
|
+
return f`
|
|
6966
7917
|
<div
|
|
6967
|
-
tabindex=${
|
|
7918
|
+
tabindex=${B(this.clickable ? "0" : void 0)}
|
|
6968
7919
|
class="${this._outerClasses}"
|
|
6969
7920
|
@keydown=${this.keypressed}
|
|
6970
7921
|
>
|
|
@@ -6976,8 +7927,8 @@ class hr extends Y {
|
|
|
6976
7927
|
`;
|
|
6977
7928
|
}
|
|
6978
7929
|
}
|
|
6979
|
-
|
|
6980
|
-
|
|
7930
|
+
Z(Hr, "styles", [
|
|
7931
|
+
Q`
|
|
6981
7932
|
/* layer: preflights */
|
|
6982
7933
|
*,::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;}
|
|
6983
7934
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -7638,19 +8589,19 @@ f(hr, "styles", [
|
|
|
7638
8589
|
display: block;
|
|
7639
8590
|
}
|
|
7640
8591
|
`
|
|
7641
|
-
]),
|
|
8592
|
+
]), Z(Hr, "properties", {
|
|
7642
8593
|
selected: { type: Boolean, reflect: !0 },
|
|
7643
8594
|
flat: { type: Boolean },
|
|
7644
8595
|
clickable: { type: Boolean }
|
|
7645
8596
|
});
|
|
7646
|
-
customElements.get("w-card") || customElements.define("w-card",
|
|
7647
|
-
class
|
|
8597
|
+
customElements.get("w-card") || customElements.define("w-card", Hr);
|
|
8598
|
+
class Ce extends I {
|
|
7648
8599
|
render() {
|
|
7649
|
-
return
|
|
8600
|
+
return f`<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>`;
|
|
7650
8601
|
}
|
|
7651
8602
|
}
|
|
7652
|
-
customElements.get("w-icon-chevron-down16",
|
|
7653
|
-
class
|
|
8603
|
+
customElements.get("w-icon-chevron-down16", Ce) || customElements.define("w-icon-chevron-down16", Ce);
|
|
8604
|
+
class Qr extends Ko(I) {
|
|
7654
8605
|
constructor() {
|
|
7655
8606
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
7656
8607
|
}
|
|
@@ -7658,43 +8609,43 @@ class wr extends jo(Y) {
|
|
|
7658
8609
|
this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
|
|
7659
8610
|
}
|
|
7660
8611
|
get _expandableSlot() {
|
|
7661
|
-
return
|
|
7662
|
-
class=${
|
|
8612
|
+
return f`<div
|
|
8613
|
+
class=${V({
|
|
7663
8614
|
[this.contentClass || ""]: !0,
|
|
7664
|
-
[
|
|
7665
|
-
[
|
|
8615
|
+
[no.box]: this.box,
|
|
8616
|
+
[U.paddingTop]: this._hasTitle && this.box
|
|
7666
8617
|
})}
|
|
7667
8618
|
>
|
|
7668
8619
|
<slot></slot>
|
|
7669
8620
|
</div>`;
|
|
7670
8621
|
}
|
|
7671
8622
|
render() {
|
|
7672
|
-
return
|
|
7673
|
-
class=${
|
|
7674
|
-
[
|
|
7675
|
-
[
|
|
7676
|
-
[
|
|
8623
|
+
return f` <div
|
|
8624
|
+
class=${V({
|
|
8625
|
+
[U.expandable]: !0,
|
|
8626
|
+
[U.expandableBox]: this.box,
|
|
8627
|
+
[U.expandableBleed]: this.bleed
|
|
7677
8628
|
})}
|
|
7678
8629
|
>
|
|
7679
|
-
${this._hasTitle ?
|
|
8630
|
+
${this._hasTitle ? f`<w-unstyled-heading level=${this.headingLevel}>
|
|
7680
8631
|
<button
|
|
7681
8632
|
type="button"
|
|
7682
8633
|
aria-expanded="${this.expanded}"
|
|
7683
|
-
class=${
|
|
8634
|
+
class=${V({
|
|
7684
8635
|
[this.buttonClass || ""]: !0,
|
|
7685
|
-
[
|
|
7686
|
-
[
|
|
8636
|
+
[U.button]: !0,
|
|
8637
|
+
[U.buttonBox]: this.box
|
|
7687
8638
|
})}
|
|
7688
8639
|
@click=${() => this.expanded = !this.expanded}
|
|
7689
8640
|
>
|
|
7690
|
-
<div class="${
|
|
7691
|
-
${this.title ?
|
|
7692
|
-
${this.noChevron ? "" :
|
|
7693
|
-
class=${
|
|
7694
|
-
[
|
|
7695
|
-
[
|
|
7696
|
-
[
|
|
7697
|
-
[
|
|
8641
|
+
<div class="${U.title}">
|
|
8642
|
+
${this.title ? f`<span class="${U.titleType}">${this.title}</span>` : f`<slot name="title"></slot>`}
|
|
8643
|
+
${this.noChevron ? "" : f`<div
|
|
8644
|
+
class=${V({
|
|
8645
|
+
[U.chevron]: !0,
|
|
8646
|
+
[U.chevronExpanded]: this.expanded,
|
|
8647
|
+
[U.chevronBox]: this.box,
|
|
8648
|
+
[U.chevronNonBox]: !this.box
|
|
7698
8649
|
})}
|
|
7699
8650
|
>
|
|
7700
8651
|
<w-icon-chevron-down16></w-icon-chevron-down16>
|
|
@@ -7702,21 +8653,21 @@ class wr extends jo(Y) {
|
|
|
7702
8653
|
</div>
|
|
7703
8654
|
</button>
|
|
7704
8655
|
</w-unstyled-heading>` : ""}
|
|
7705
|
-
${this.animated ?
|
|
8656
|
+
${this.animated ? f`<w-expand-transition ?show=${this.expanded}>
|
|
7706
8657
|
${this._expandableSlot}
|
|
7707
|
-
</w-expand-transition>` :
|
|
7708
|
-
class=${
|
|
7709
|
-
[
|
|
7710
|
-
[
|
|
8658
|
+
</w-expand-transition>` : f`<div
|
|
8659
|
+
class=${V({
|
|
8660
|
+
[U.expansion]: !0,
|
|
8661
|
+
[U.expansionNotExpanded]: !this.expanded
|
|
7711
8662
|
})}
|
|
7712
|
-
aria-hidden=${
|
|
8663
|
+
aria-hidden=${B(this.expanded ? void 0 : !0)}
|
|
7713
8664
|
>
|
|
7714
8665
|
${this._expandableSlot}
|
|
7715
8666
|
</div>`}
|
|
7716
8667
|
</div>`;
|
|
7717
8668
|
}
|
|
7718
8669
|
}
|
|
7719
|
-
|
|
8670
|
+
Z(Qr, "properties", {
|
|
7720
8671
|
expanded: { type: Boolean, reflect: !0 },
|
|
7721
8672
|
title: { type: String },
|
|
7722
8673
|
info: { type: Boolean },
|
|
@@ -7732,8 +8683,8 @@ f(wr, "properties", {
|
|
|
7732
8683
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
7733
8684
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
7734
8685
|
// https://stackoverflow.com/a/61631668
|
|
7735
|
-
|
|
7736
|
-
|
|
8686
|
+
Z(Qr, "styles", [
|
|
8687
|
+
Q`
|
|
7737
8688
|
/* layer: preflights */
|
|
7738
8689
|
*,::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;}
|
|
7739
8690
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -8390,13 +9341,13 @@ f(wr, "styles", [
|
|
|
8390
9341
|
}
|
|
8391
9342
|
`
|
|
8392
9343
|
]);
|
|
8393
|
-
customElements.get("w-expandable") || customElements.define("w-expandable",
|
|
9344
|
+
customElements.get("w-expandable") || customElements.define("w-expandable", Qr);
|
|
8394
9345
|
/**
|
|
8395
9346
|
* @license
|
|
8396
9347
|
* Copyright 2021 Google LLC
|
|
8397
9348
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8398
9349
|
*/
|
|
8399
|
-
function
|
|
9350
|
+
function ir(r, o, e) {
|
|
8400
9351
|
return r ? o() : e == null ? void 0 : e();
|
|
8401
9352
|
}
|
|
8402
9353
|
/**
|
|
@@ -8404,15 +9355,15 @@ function Mo(r, o, e) {
|
|
|
8404
9355
|
* Copyright 2017 Google LLC
|
|
8405
9356
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8406
9357
|
*/
|
|
8407
|
-
class
|
|
9358
|
+
class Ur extends ae {
|
|
8408
9359
|
constructor(o) {
|
|
8409
|
-
if (super(o), this.et =
|
|
9360
|
+
if (super(o), this.et = N, o.type !== ee.CHILD)
|
|
8410
9361
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
8411
9362
|
}
|
|
8412
9363
|
render(o) {
|
|
8413
|
-
if (o ===
|
|
9364
|
+
if (o === N || o == null)
|
|
8414
9365
|
return this.ft = void 0, this.et = o;
|
|
8415
|
-
if (o ===
|
|
9366
|
+
if (o === ho)
|
|
8416
9367
|
return o;
|
|
8417
9368
|
if (typeof o != "string")
|
|
8418
9369
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
@@ -8423,50 +9374,58 @@ class xr extends jr {
|
|
|
8423
9374
|
return e.raw = e, this.ft = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
8424
9375
|
}
|
|
8425
9376
|
}
|
|
8426
|
-
|
|
8427
|
-
const
|
|
8428
|
-
var
|
|
8429
|
-
class
|
|
9377
|
+
Ur.directiveName = "unsafeHTML", Ur.resultType = 1;
|
|
9378
|
+
const ht = te(Ur), Wa = JSON.parse('{"select.label.optional":"(optional)"}'), Va = JSON.parse('{"select.label.optional":"(valgfritt)"}'), Ga = JSON.parse('{"select.label.optional":"(valinnainen)"}');
|
|
9379
|
+
var fr, pt, kr, wt, $r, xt, yr, mt, Co, lr, Lo, dr;
|
|
9380
|
+
class Fr extends Ko(I) {
|
|
8430
9381
|
constructor() {
|
|
8431
9382
|
super();
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
this._options = this.innerHTML;
|
|
9383
|
+
fo(this, fr);
|
|
9384
|
+
fo(this, kr);
|
|
9385
|
+
fo(this, $r);
|
|
9386
|
+
fo(this, yr);
|
|
9387
|
+
fo(this, Co);
|
|
9388
|
+
fo(this, Lo);
|
|
9389
|
+
de(Wa, Va, Ga), this._options = this.innerHTML;
|
|
8439
9390
|
}
|
|
8440
9391
|
render() {
|
|
8441
|
-
return
|
|
8442
|
-
${
|
|
9392
|
+
return f`<div class="${So.wrapper}">
|
|
9393
|
+
${ir(
|
|
8443
9394
|
this.label,
|
|
8444
|
-
() =>
|
|
9395
|
+
() => f`<label class="${J(this, kr, wt)}" for="${J(this, Co, lr)}">
|
|
8445
9396
|
${this.label}
|
|
8446
|
-
${
|
|
9397
|
+
${ir(
|
|
8447
9398
|
this.optional,
|
|
8448
|
-
() =>
|
|
9399
|
+
() => f`<span class="${Po.optional}"
|
|
9400
|
+
>${Vo._({
|
|
9401
|
+
id: "select.label.optional",
|
|
9402
|
+
message: "(optional)",
|
|
9403
|
+
comment: "Shown behind label when marked as optional"
|
|
9404
|
+
})}</span
|
|
9405
|
+
>`
|
|
8449
9406
|
)}</label
|
|
8450
9407
|
>`
|
|
8451
9408
|
)}
|
|
8452
|
-
<div class="${
|
|
9409
|
+
<div class="${So.selectWrapper}">
|
|
8453
9410
|
<select
|
|
8454
|
-
class="${
|
|
8455
|
-
id="${
|
|
9411
|
+
class="${J(this, fr, pt)}"
|
|
9412
|
+
id="${J(this, Co, lr)}"
|
|
8456
9413
|
?autofocus=${this.autoFocus}
|
|
8457
|
-
aria-describedby="${
|
|
8458
|
-
aria-invalid="${
|
|
8459
|
-
aria-errormessage="${
|
|
9414
|
+
aria-describedby="${B(J(this, Lo, dr))}"
|
|
9415
|
+
aria-invalid="${B(this.invalid)}"
|
|
9416
|
+
aria-errormessage="${B(
|
|
9417
|
+
this.invalid && J(this, Lo, dr)
|
|
9418
|
+
)}"
|
|
8460
9419
|
>
|
|
8461
|
-
${
|
|
9420
|
+
${ht(this._options)}
|
|
8462
9421
|
</select>
|
|
8463
|
-
<div class="${
|
|
9422
|
+
<div class="${J(this, yr, mt)}">
|
|
8464
9423
|
<svg
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
9424
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9425
|
+
width="16"
|
|
9426
|
+
height="16"
|
|
9427
|
+
fill="none"
|
|
9428
|
+
viewBox="0 0 16 16"
|
|
8470
9429
|
>
|
|
8471
9430
|
<path
|
|
8472
9431
|
stroke="currentColor"
|
|
@@ -8478,38 +9437,43 @@ class mr extends jo(Y) {
|
|
|
8478
9437
|
</svg>
|
|
8479
9438
|
</div>
|
|
8480
9439
|
</div>
|
|
8481
|
-
${
|
|
9440
|
+
${ir(
|
|
8482
9441
|
this.always || this.invalid,
|
|
8483
|
-
() =>
|
|
9442
|
+
() => f`<div
|
|
9443
|
+
id="${J(this, Lo, dr)}"
|
|
9444
|
+
class="${J(this, $r, xt)}"
|
|
9445
|
+
>
|
|
9446
|
+
${this.hint}
|
|
9447
|
+
</div>`
|
|
8484
9448
|
)}
|
|
8485
9449
|
</div>`;
|
|
8486
9450
|
}
|
|
8487
9451
|
}
|
|
8488
|
-
|
|
8489
|
-
return
|
|
8490
|
-
[
|
|
8491
|
-
[
|
|
9452
|
+
fr = new WeakSet(), pt = function() {
|
|
9453
|
+
return uo({
|
|
9454
|
+
[So.default]: !0,
|
|
9455
|
+
[So.invalid]: this.invalid
|
|
8492
9456
|
});
|
|
8493
|
-
},
|
|
8494
|
-
return
|
|
8495
|
-
[
|
|
8496
|
-
[
|
|
9457
|
+
}, kr = new WeakSet(), wt = function() {
|
|
9458
|
+
return uo({
|
|
9459
|
+
[Po.label]: !0,
|
|
9460
|
+
[Po.labelInvalid]: this.invalid
|
|
8497
9461
|
});
|
|
8498
|
-
},
|
|
8499
|
-
return
|
|
8500
|
-
[
|
|
8501
|
-
[
|
|
9462
|
+
}, $r = new WeakSet(), xt = function() {
|
|
9463
|
+
return uo({
|
|
9464
|
+
[gr.helpText]: !0,
|
|
9465
|
+
[gr.helpTextInvalid]: this.invalid
|
|
8502
9466
|
});
|
|
8503
|
-
},
|
|
8504
|
-
return
|
|
8505
|
-
[
|
|
8506
|
-
[
|
|
9467
|
+
}, yr = new WeakSet(), mt = function() {
|
|
9468
|
+
return uo({
|
|
9469
|
+
[So.chevron]: !0,
|
|
9470
|
+
[So.chevronDisabled]: this.disabled
|
|
8507
9471
|
});
|
|
8508
|
-
},
|
|
9472
|
+
}, Co = new WeakSet(), lr = function() {
|
|
8509
9473
|
return "select_id";
|
|
8510
|
-
},
|
|
8511
|
-
return this.hint ? `${
|
|
8512
|
-
},
|
|
9474
|
+
}, Lo = new WeakSet(), dr = function() {
|
|
9475
|
+
return this.hint ? `${J(this, Co, lr)}__hint` : void 0;
|
|
9476
|
+
}, Z(Fr, "properties", {
|
|
8513
9477
|
// Whether the element should receive focus on render
|
|
8514
9478
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
8515
9479
|
// Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
|
|
@@ -8523,7 +9487,7 @@ Wo = new WeakSet(), _e = function() {
|
|
|
8523
9487
|
// Whether to show optional text
|
|
8524
9488
|
optional: { type: Boolean, reflect: !0 },
|
|
8525
9489
|
_options: { state: !0 }
|
|
8526
|
-
}),
|
|
9490
|
+
}), Z(Fr, "styles", Q`
|
|
8527
9491
|
/* layer: preflights */
|
|
8528
9492
|
*,::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;}
|
|
8529
9493
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -9171,38 +10135,38 @@ Wo = new WeakSet(), _e = function() {
|
|
|
9171
10135
|
.sm\\:px-32{padding-left:3.2rem;padding-right:3.2rem;}
|
|
9172
10136
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
9173
10137
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
9174
|
-
}
|
|
10138
|
+
};
|
|
9175
10139
|
`);
|
|
9176
|
-
customElements.get("w-select") || customElements.define("w-select",
|
|
9177
|
-
class
|
|
10140
|
+
customElements.get("w-select") || customElements.define("w-select", Fr);
|
|
10141
|
+
class Wr extends I {
|
|
9178
10142
|
constructor() {
|
|
9179
10143
|
super(), this.type = "text";
|
|
9180
10144
|
}
|
|
9181
10145
|
get _inputStyles() {
|
|
9182
|
-
return
|
|
9183
|
-
[
|
|
9184
|
-
[
|
|
9185
|
-
[
|
|
9186
|
-
[
|
|
9187
|
-
[
|
|
9188
|
-
[
|
|
10146
|
+
return V({
|
|
10147
|
+
[yo.default]: !0,
|
|
10148
|
+
[yo.invalid]: this.invalid,
|
|
10149
|
+
[yo.disabled]: this.disabled,
|
|
10150
|
+
[yo.readOnly]: this.readOnly,
|
|
10151
|
+
[yo.suffix]: this._hasSuffix,
|
|
10152
|
+
[yo.prefix]: this._hasPrefix
|
|
9189
10153
|
});
|
|
9190
10154
|
}
|
|
9191
10155
|
get _helpTextStyles() {
|
|
9192
|
-
return
|
|
9193
|
-
[
|
|
9194
|
-
[
|
|
10156
|
+
return V({
|
|
10157
|
+
[gr.helpText]: !0,
|
|
10158
|
+
[gr.helpTextInvalid]: this.invalid
|
|
9195
10159
|
});
|
|
9196
10160
|
}
|
|
9197
10161
|
get _labelStyles() {
|
|
9198
|
-
return
|
|
9199
|
-
[
|
|
9200
|
-
[
|
|
10162
|
+
return V({
|
|
10163
|
+
[Po.label]: !0,
|
|
10164
|
+
[Po.labelInvalid]: this.invalid
|
|
9201
10165
|
});
|
|
9202
10166
|
}
|
|
9203
10167
|
get _label() {
|
|
9204
10168
|
if (this.label)
|
|
9205
|
-
return
|
|
10169
|
+
return f`<label for="${this._id}" class=${this._labelStyles}>${this.label}</label>`;
|
|
9206
10170
|
}
|
|
9207
10171
|
get _helpId() {
|
|
9208
10172
|
if (this.helpText)
|
|
@@ -9232,25 +10196,25 @@ class kr extends Y {
|
|
|
9232
10196
|
this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length && (this._hasSuffix = !0);
|
|
9233
10197
|
}
|
|
9234
10198
|
render() {
|
|
9235
|
-
return
|
|
10199
|
+
return f`
|
|
9236
10200
|
${this._label}
|
|
9237
|
-
<div class="${
|
|
10201
|
+
<div class="${yo.wrapper}">
|
|
9238
10202
|
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
9239
10203
|
<input
|
|
9240
10204
|
class="${this._inputStyles}"
|
|
9241
10205
|
type="${this.type}"
|
|
9242
|
-
min="${
|
|
9243
|
-
max="${
|
|
9244
|
-
size="${
|
|
9245
|
-
minlength="${
|
|
9246
|
-
maxlength="${
|
|
9247
|
-
name="${
|
|
9248
|
-
pattern="${
|
|
9249
|
-
placeholder="${
|
|
9250
|
-
value="${
|
|
9251
|
-
aria-describedby="${
|
|
9252
|
-
aria-errormessage="${
|
|
9253
|
-
aria-invalid="${
|
|
10206
|
+
min="${B(this.min)}"
|
|
10207
|
+
max="${B(this.max)}"
|
|
10208
|
+
size="${B(this.size)}"
|
|
10209
|
+
minlength="${B(this.minLength)}"
|
|
10210
|
+
maxlength="${B(this.maxLength)}"
|
|
10211
|
+
name="${B(this.name)}"
|
|
10212
|
+
pattern="${B(this.pattern)}"
|
|
10213
|
+
placeholder="${B(this.placeholder)}"
|
|
10214
|
+
value="${B(this.value)}"
|
|
10215
|
+
aria-describedby="${B(this._helpId)}"
|
|
10216
|
+
aria-errormessage="${B(this._error)}"
|
|
10217
|
+
aria-invalid="${B(this.invalid)}"
|
|
9254
10218
|
id="${this._id}"
|
|
9255
10219
|
?disabled="${this.disabled}"
|
|
9256
10220
|
?readonly="${this.readOnly}"
|
|
@@ -9261,11 +10225,11 @@ class kr extends Y {
|
|
|
9261
10225
|
/>
|
|
9262
10226
|
<slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
|
|
9263
10227
|
</div>
|
|
9264
|
-
${this.helpText &&
|
|
10228
|
+
${this.helpText && f`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
|
|
9265
10229
|
`;
|
|
9266
10230
|
}
|
|
9267
10231
|
}
|
|
9268
|
-
|
|
10232
|
+
Z(Wr, "properties", {
|
|
9269
10233
|
disabled: { type: Boolean },
|
|
9270
10234
|
invalid: { type: Boolean },
|
|
9271
10235
|
id: { type: String },
|
|
@@ -9289,8 +10253,8 @@ f(kr, "properties", {
|
|
|
9289
10253
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
9290
10254
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
9291
10255
|
// https://stackoverflow.com/a/61631668
|
|
9292
|
-
|
|
9293
|
-
|
|
10256
|
+
Z(Wr, "styles", [
|
|
10257
|
+
Q`
|
|
9294
10258
|
/* layer: preflights */
|
|
9295
10259
|
*,::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;}
|
|
9296
10260
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -9947,9 +10911,9 @@ f(kr, "styles", [
|
|
|
9947
10911
|
}
|
|
9948
10912
|
`
|
|
9949
10913
|
]);
|
|
9950
|
-
customElements.get("w-textfield") || customElements.define("w-textfield",
|
|
9951
|
-
function
|
|
9952
|
-
if (!
|
|
10914
|
+
customElements.get("w-textfield") || customElements.define("w-textfield", Wr);
|
|
10915
|
+
function vc(r, o) {
|
|
10916
|
+
if (!Go)
|
|
9953
10917
|
return;
|
|
9954
10918
|
const e = customElements.get("w-toast-container").init(), t = {
|
|
9955
10919
|
id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
|
|
@@ -9960,57 +10924,57 @@ function Wt(r, o) {
|
|
|
9960
10924
|
};
|
|
9961
10925
|
return e.set(t), t;
|
|
9962
10926
|
}
|
|
9963
|
-
function
|
|
9964
|
-
return
|
|
10927
|
+
function hc(r) {
|
|
10928
|
+
return Go ? customElements.get("w-toast-container").init().del(r) : void 0;
|
|
9965
10929
|
}
|
|
9966
|
-
function
|
|
9967
|
-
if (!
|
|
10930
|
+
function pc(r, o) {
|
|
10931
|
+
if (!Go)
|
|
9968
10932
|
return;
|
|
9969
10933
|
const e = customElements.get("w-toast-container").init();
|
|
9970
10934
|
return e.set({ ...e.get(r), ...o }), e.get(r);
|
|
9971
10935
|
}
|
|
9972
|
-
const
|
|
9973
|
-
let
|
|
9974
|
-
if (
|
|
9975
|
-
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) =>
|
|
10936
|
+
const ne = typeof window < "u";
|
|
10937
|
+
let ft = !0;
|
|
10938
|
+
if (ne) {
|
|
10939
|
+
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) => ft = !e;
|
|
9976
10940
|
r.addEventListener && r.addEventListener("change", o), o(r);
|
|
9977
10941
|
}
|
|
9978
|
-
const
|
|
10942
|
+
const kt = (r) => {
|
|
9979
10943
|
r.style.transition = null, r.style.backfaceVisibility = null, r.style.overflow = null;
|
|
9980
|
-
},
|
|
9981
|
-
const o =
|
|
10944
|
+
}, $t = (r) => {
|
|
10945
|
+
const o = ft ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
9982
10946
|
r.style.transition = `height ${o}`, r.style.backfaceVisibility = "hidden", r.style.overflow = "hidden";
|
|
9983
|
-
},
|
|
10947
|
+
}, Ja = (r, o) => () => {
|
|
9984
10948
|
r.style.height = "auto", r.style.overflow = null, o && o();
|
|
9985
|
-
},
|
|
10949
|
+
}, Ka = (r) => () => {
|
|
9986
10950
|
r && r();
|
|
9987
|
-
},
|
|
10951
|
+
}, yt = (r, o) => {
|
|
9988
10952
|
const e = (() => {
|
|
9989
10953
|
if (!o)
|
|
9990
10954
|
return new Promise((c) => {
|
|
9991
10955
|
o = c;
|
|
9992
10956
|
});
|
|
9993
|
-
})(), t =
|
|
9994
|
-
|
|
10957
|
+
})(), t = Ja(r, o);
|
|
10958
|
+
kt(r), r.style.height = "auto";
|
|
9995
10959
|
let a = r.scrollHeight;
|
|
9996
|
-
if (
|
|
9997
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out",
|
|
10960
|
+
if (ne && requestAnimationFrame(() => {
|
|
10961
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out", $t(r), requestAnimationFrame(() => r.style.height = a + "px");
|
|
9998
10962
|
}), e)
|
|
9999
10963
|
return e;
|
|
10000
|
-
},
|
|
10964
|
+
}, zt = (r, o) => {
|
|
10001
10965
|
const e = (() => {
|
|
10002
10966
|
if (!o)
|
|
10003
10967
|
return new Promise((c) => {
|
|
10004
10968
|
o = c;
|
|
10005
10969
|
});
|
|
10006
|
-
})(), t =
|
|
10007
|
-
|
|
10970
|
+
})(), t = Ka(o);
|
|
10971
|
+
kt(r);
|
|
10008
10972
|
let a = r.scrollHeight;
|
|
10009
|
-
if (
|
|
10010
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in",
|
|
10973
|
+
if (ne && requestAnimationFrame(() => {
|
|
10974
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in", $t(r), requestAnimationFrame(() => r.style.height = "0px");
|
|
10011
10975
|
}), e)
|
|
10012
10976
|
return e;
|
|
10013
|
-
},
|
|
10977
|
+
}, oc = () => f`
|
|
10014
10978
|
<svg
|
|
10015
10979
|
role="img"
|
|
10016
10980
|
aria-label="Lukk"
|
|
@@ -10020,9 +10984,9 @@ const Ae = (r) => {
|
|
|
10020
10984
|
fill="none"
|
|
10021
10985
|
viewBox="0 0 16 16"
|
|
10022
10986
|
>
|
|
10023
|
-
${
|
|
10987
|
+
${ac}
|
|
10024
10988
|
</svg>
|
|
10025
|
-
`,
|
|
10989
|
+
`, rc = (r) => f`<svg
|
|
10026
10990
|
aria-label="${r.typeLabel}"
|
|
10027
10991
|
role="img"
|
|
10028
10992
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -10030,8 +10994,8 @@ const Ae = (r) => {
|
|
|
10030
10994
|
height="16"
|
|
10031
10995
|
fill="none"
|
|
10032
10996
|
>
|
|
10033
|
-
${
|
|
10034
|
-
</svg>`,
|
|
10997
|
+
${cc}
|
|
10998
|
+
</svg>`, ec = (r) => f`<svg
|
|
10035
10999
|
aria-label="${r.typeLabel}"
|
|
10036
11000
|
role="img"
|
|
10037
11001
|
width="16"
|
|
@@ -10039,8 +11003,8 @@ const Ae = (r) => {
|
|
|
10039
11003
|
fill="none"
|
|
10040
11004
|
xmlns="http://www.w3.org/2000/svg"
|
|
10041
11005
|
>
|
|
10042
|
-
${
|
|
10043
|
-
</svg> `,
|
|
11006
|
+
${ic}
|
|
11007
|
+
</svg> `, tc = (r) => f`<svg
|
|
10044
11008
|
aria-label="${r.typeLabel}"
|
|
10045
11009
|
role="img"
|
|
10046
11010
|
width="16"
|
|
@@ -10048,14 +11012,14 @@ const Ae = (r) => {
|
|
|
10048
11012
|
fill="none"
|
|
10049
11013
|
xmlns="http://www.w3.org/2000/svg"
|
|
10050
11014
|
>
|
|
10051
|
-
${
|
|
10052
|
-
</svg> `,
|
|
11015
|
+
${lc}
|
|
11016
|
+
</svg> `, ac = po`
|
|
10053
11017
|
<path
|
|
10054
11018
|
fill="currentColor"
|
|
10055
11019
|
fill-rule="evenodd"
|
|
10056
11020
|
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"
|
|
10057
11021
|
clipRule="evenodd"
|
|
10058
|
-
/>`,
|
|
11022
|
+
/>`, cc = po`
|
|
10059
11023
|
<path
|
|
10060
11024
|
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"
|
|
10061
11025
|
fill="currentColor"
|
|
@@ -10066,13 +11030,13 @@ const Ae = (r) => {
|
|
|
10066
11030
|
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"
|
|
10067
11031
|
fill="#fff"
|
|
10068
11032
|
/>
|
|
10069
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
11033
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ic = po`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
10070
11034
|
<path
|
|
10071
11035
|
fill-rule="evenodd"
|
|
10072
11036
|
clip-rule="evenodd"
|
|
10073
11037
|
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"
|
|
10074
11038
|
fill="#fff"
|
|
10075
|
-
/>`,
|
|
11039
|
+
/>`, lc = po`
|
|
10076
11040
|
<path
|
|
10077
11041
|
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"
|
|
10078
11042
|
fill="currentColor"
|
|
@@ -10083,18 +11047,18 @@ const Ae = (r) => {
|
|
|
10083
11047
|
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
10084
11048
|
fill="#fff"
|
|
10085
11049
|
/>
|
|
10086
|
-
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,
|
|
11050
|
+
<path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Le = (r) => {
|
|
10087
11051
|
const o = {};
|
|
10088
11052
|
for (const [e, t] of Object.entries(r))
|
|
10089
11053
|
for (const a of e.split(" "))
|
|
10090
11054
|
o[a] = t;
|
|
10091
|
-
return
|
|
10092
|
-
},
|
|
11055
|
+
return Fe(o);
|
|
11056
|
+
}, oo = {
|
|
10093
11057
|
success: "success",
|
|
10094
11058
|
error: "error",
|
|
10095
11059
|
warning: "warning"
|
|
10096
11060
|
};
|
|
10097
|
-
class
|
|
11061
|
+
class Vr extends I {
|
|
10098
11062
|
constructor() {
|
|
10099
11063
|
super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
|
|
10100
11064
|
}
|
|
@@ -10105,22 +11069,22 @@ class fr extends Y {
|
|
|
10105
11069
|
super.disconnectedCallback();
|
|
10106
11070
|
}
|
|
10107
11071
|
updated() {
|
|
10108
|
-
!this._expanded && this._wrapper &&
|
|
11072
|
+
!this._expanded && this._wrapper && yt(this._wrapper, () => this._expanded = !0);
|
|
10109
11073
|
}
|
|
10110
11074
|
get _primaryClasses() {
|
|
10111
|
-
return
|
|
10112
|
-
[
|
|
10113
|
-
[
|
|
10114
|
-
[
|
|
10115
|
-
[
|
|
11075
|
+
return Le({
|
|
11076
|
+
[K.toast]: !0,
|
|
11077
|
+
[K.positive]: this.type === oo.success,
|
|
11078
|
+
[K.warning]: this.type === oo.warning,
|
|
11079
|
+
[K.negative]: this.type === oo.error
|
|
10116
11080
|
});
|
|
10117
11081
|
}
|
|
10118
11082
|
get _iconClasses() {
|
|
10119
|
-
return
|
|
10120
|
-
[
|
|
10121
|
-
[
|
|
10122
|
-
[
|
|
10123
|
-
[
|
|
11083
|
+
return Le({
|
|
11084
|
+
[K.icon]: !0,
|
|
11085
|
+
[K.iconPositive]: this.type == oo.success,
|
|
11086
|
+
[K.iconWarning]: this.type === oo.warning,
|
|
11087
|
+
[K.iconNegative]: this.type === oo.error
|
|
10124
11088
|
});
|
|
10125
11089
|
}
|
|
10126
11090
|
get _wrapper() {
|
|
@@ -10128,13 +11092,13 @@ class fr extends Y {
|
|
|
10128
11092
|
return ((o = this.renderRoot) == null ? void 0 : o.querySelector("section")) ?? null;
|
|
10129
11093
|
}
|
|
10130
11094
|
get _success() {
|
|
10131
|
-
return this.type ===
|
|
11095
|
+
return this.type === oo.success;
|
|
10132
11096
|
}
|
|
10133
11097
|
get _warning() {
|
|
10134
|
-
return this.type ===
|
|
11098
|
+
return this.type === oo.warning;
|
|
10135
11099
|
}
|
|
10136
11100
|
get _error() {
|
|
10137
|
-
return this.type ===
|
|
11101
|
+
return this.type === oo.error;
|
|
10138
11102
|
}
|
|
10139
11103
|
get _role() {
|
|
10140
11104
|
return this._error || this._warning ? "alert" : "status";
|
|
@@ -10143,11 +11107,11 @@ class fr extends Y {
|
|
|
10143
11107
|
return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
|
|
10144
11108
|
}
|
|
10145
11109
|
get _iconMarkup() {
|
|
10146
|
-
return this.type ===
|
|
11110
|
+
return this.type === oo.success ? ec({ typeLabel: this._typeLabel }) : this.type === oo.warning ? tc({ typeLabel: this._typeLabel }) : rc({ typeLabel: this._typeLabel, isInfo: this._info });
|
|
10147
11111
|
}
|
|
10148
11112
|
async collapse() {
|
|
10149
11113
|
return new Promise((o) => {
|
|
10150
|
-
this._expanded && this._wrapper ?
|
|
11114
|
+
this._expanded && this._wrapper ? zt(this._wrapper, o) : o();
|
|
10151
11115
|
});
|
|
10152
11116
|
}
|
|
10153
11117
|
close() {
|
|
@@ -10159,22 +11123,22 @@ class fr extends Y {
|
|
|
10159
11123
|
this.updateComplete.then(() => this.dispatchEvent(o));
|
|
10160
11124
|
}
|
|
10161
11125
|
render() {
|
|
10162
|
-
return this.text ?
|
|
11126
|
+
return this.text ? f` <section class="${K.wrapper}" aria-label="${this._typeLabel}">
|
|
10163
11127
|
<div class="${this._primaryClasses}">
|
|
10164
11128
|
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
10165
|
-
<div role="${this._role}" class="${
|
|
11129
|
+
<div role="${this._role}" class="${K.content}">
|
|
10166
11130
|
<p>${this.text}</p>
|
|
10167
11131
|
</div>
|
|
10168
|
-
${
|
|
11132
|
+
${ir(
|
|
10169
11133
|
this.canclose === !0,
|
|
10170
|
-
() =>
|
|
11134
|
+
() => f`<button class="${K.close}" @click="${this.close}">${oc()}</button>`
|
|
10171
11135
|
)}
|
|
10172
11136
|
</div>
|
|
10173
|
-
</section>` :
|
|
11137
|
+
</section>` : f``;
|
|
10174
11138
|
}
|
|
10175
11139
|
}
|
|
10176
|
-
|
|
10177
|
-
|
|
11140
|
+
Z(Vr, "styles", [
|
|
11141
|
+
Q`
|
|
10178
11142
|
/* layer: preflights */
|
|
10179
11143
|
*,::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;}
|
|
10180
11144
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -10827,14 +11791,14 @@ f(fr, "styles", [
|
|
|
10827
11791
|
display: block;
|
|
10828
11792
|
}
|
|
10829
11793
|
`
|
|
10830
|
-
]),
|
|
11794
|
+
]), Z(Vr, "properties", {
|
|
10831
11795
|
id: { type: String, attribute: !0, reflect: !0 },
|
|
10832
11796
|
type: { type: String, attribute: !0, reflect: !0 },
|
|
10833
11797
|
text: { type: String, attribute: !0, reflect: !0 },
|
|
10834
11798
|
canclose: { type: Boolean, attribute: !0, reflect: !0 }
|
|
10835
11799
|
});
|
|
10836
|
-
customElements.get("w-toast") || customElements.define("w-toast",
|
|
10837
|
-
class
|
|
11800
|
+
customElements.get("w-toast") || customElements.define("w-toast", Vr);
|
|
11801
|
+
class Gr extends I {
|
|
10838
11802
|
constructor() {
|
|
10839
11803
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
10840
11804
|
}
|
|
@@ -10907,14 +11871,14 @@ class $r extends Y {
|
|
|
10907
11871
|
return this._toasts = new Map(Array.from(this._toasts)), t;
|
|
10908
11872
|
}
|
|
10909
11873
|
render() {
|
|
10910
|
-
return
|
|
10911
|
-
<aside class="${
|
|
10912
|
-
<div class="${
|
|
10913
|
-
${
|
|
11874
|
+
return f`
|
|
11875
|
+
<aside class="${jr.container}">
|
|
11876
|
+
<div class="${jr.toaster}" id="w-toast-container-list">
|
|
11877
|
+
${vt(
|
|
10914
11878
|
this._toastsArray,
|
|
10915
11879
|
(o) => o.id,
|
|
10916
|
-
(o) =>
|
|
10917
|
-
class="${
|
|
11880
|
+
(o) => f` <w-toast
|
|
11881
|
+
class="${jr.content}"
|
|
10918
11882
|
id="${o.id}"
|
|
10919
11883
|
type="${o.type}"
|
|
10920
11884
|
text="${o.text}"
|
|
@@ -10928,8 +11892,8 @@ class $r extends Y {
|
|
|
10928
11892
|
`;
|
|
10929
11893
|
}
|
|
10930
11894
|
}
|
|
10931
|
-
|
|
10932
|
-
|
|
11895
|
+
Z(Gr, "styles", [
|
|
11896
|
+
Q`
|
|
10933
11897
|
/* layer: preflights */
|
|
10934
11898
|
*,::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;}
|
|
10935
11899
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -11582,15 +12546,11 @@ f($r, "styles", [
|
|
|
11582
12546
|
display: block;
|
|
11583
12547
|
}
|
|
11584
12548
|
`
|
|
11585
|
-
]),
|
|
12549
|
+
]), Z(Gr, "properties", {
|
|
11586
12550
|
_toasts: { state: !0 }
|
|
11587
12551
|
});
|
|
11588
|
-
customElements.get("w-toast-container") || customElements.define("w-toast-container",
|
|
11589
|
-
|
|
11590
|
-
@import "https://assets.finn.no/pkg/@warp-ds/fonts/v1/finn-no.css";
|
|
11591
|
-
@import "https://assets.finn.no/pkg/@warp-ds/css/v1/tokens/finn-no.css";
|
|
11592
|
-
`;
|
|
11593
|
-
class yr extends Y {
|
|
12552
|
+
customElements.get("w-toast-container") || customElements.define("w-toast-container", Gr);
|
|
12553
|
+
class Jr extends I {
|
|
11594
12554
|
constructor() {
|
|
11595
12555
|
super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
|
|
11596
12556
|
}
|
|
@@ -11603,27 +12563,26 @@ class yr extends Y {
|
|
|
11603
12563
|
this._mounted = !0;
|
|
11604
12564
|
return;
|
|
11605
12565
|
}
|
|
11606
|
-
this.show &&
|
|
12566
|
+
this.show && yt(this._wrapper), !this.show && !this._removeElement && zt(this._wrapper, () => this._removeElement = !0);
|
|
11607
12567
|
}
|
|
11608
12568
|
}
|
|
11609
12569
|
get _wrapper() {
|
|
11610
12570
|
return this ?? null;
|
|
11611
12571
|
}
|
|
11612
12572
|
render() {
|
|
11613
|
-
return
|
|
11614
|
-
${this._removeElement ?
|
|
12573
|
+
return f`<div aria-hidden=${B(this.show ? void 0 : "true")}>
|
|
12574
|
+
${this._removeElement ? f`` : f`<slot></slot>`}
|
|
11615
12575
|
</div>`;
|
|
11616
12576
|
}
|
|
11617
12577
|
}
|
|
11618
|
-
|
|
12578
|
+
Z(Jr, "properties", {
|
|
11619
12579
|
show: {
|
|
11620
12580
|
type: Boolean,
|
|
11621
12581
|
reflect: !0
|
|
11622
12582
|
},
|
|
11623
12583
|
_removeElement: { type: Boolean, state: !0 }
|
|
11624
|
-
}),
|
|
11625
|
-
|
|
11626
|
-
A`
|
|
12584
|
+
}), Z(Jr, "styles", [
|
|
12585
|
+
Q`
|
|
11627
12586
|
/* layer: preflights */
|
|
11628
12587
|
*,::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;}
|
|
11629
12588
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
@@ -12277,8 +13236,8 @@ f(yr, "properties", {
|
|
|
12277
13236
|
}
|
|
12278
13237
|
`
|
|
12279
13238
|
]);
|
|
12280
|
-
customElements.get("w-expand-transition") || customElements.define("w-expand-transition",
|
|
12281
|
-
class
|
|
13239
|
+
customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Jr);
|
|
13240
|
+
class Kr extends I {
|
|
12282
13241
|
get _markup() {
|
|
12283
13242
|
return `<h${this.level}
|
|
12284
13243
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -12288,13 +13247,14 @@ class zr extends Y {
|
|
|
12288
13247
|
`;
|
|
12289
13248
|
}
|
|
12290
13249
|
render() {
|
|
12291
|
-
return this.level ?
|
|
13250
|
+
return this.level ? ht(this._markup) : f`<slot></slot>`;
|
|
12292
13251
|
}
|
|
12293
13252
|
}
|
|
12294
|
-
|
|
13253
|
+
Z(Kr, "properties", {
|
|
12295
13254
|
level: { type: Number }
|
|
12296
|
-
}),
|
|
12297
|
-
|
|
13255
|
+
}), Z(Kr, "styles", [
|
|
13256
|
+
Q`
|
|
13257
|
+
/* layer: preflights */
|
|
12298
13258
|
*,::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;}
|
|
12299
13259
|
*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;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-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);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:var(--w-s-color-text-placeholder)}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}
|
|
12300
13260
|
/* layer: shortcuts */
|
|
@@ -12942,26 +13902,27 @@ f(zr, "properties", {
|
|
|
12942
13902
|
.sm\\:pb-32{padding-bottom:3.2rem;}
|
|
12943
13903
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
12944
13904
|
}
|
|
12945
|
-
|
|
12946
|
-
|
|
13905
|
+
`
|
|
13906
|
+
]);
|
|
13907
|
+
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Kr);
|
|
12947
13908
|
export {
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
13909
|
+
Jr as ExpandTransition,
|
|
13910
|
+
Kr as UnstyledHeading,
|
|
13911
|
+
Cr as WarpAffix,
|
|
13912
|
+
Lr as WarpAlert,
|
|
13913
|
+
Or as WarpAttention,
|
|
13914
|
+
Br as WarpBadge,
|
|
13915
|
+
Nr as WarpBox,
|
|
13916
|
+
Pr as WarpBreadcrumbs,
|
|
13917
|
+
Ir as WarpBroadcast,
|
|
13918
|
+
cr as WarpButton,
|
|
13919
|
+
Hr as WarpCard,
|
|
13920
|
+
Qr as WarpExpandable,
|
|
13921
|
+
Fr as WarpSelect,
|
|
13922
|
+
Wr as WarpTextField,
|
|
13923
|
+
Vr as WarpToast,
|
|
13924
|
+
Gr as WarpToastContainer,
|
|
13925
|
+
hc as removeToast,
|
|
13926
|
+
vc as toast,
|
|
13927
|
+
pc as updateToast
|
|
12967
13928
|
};
|