@warp-ds/elements 1.1.0 → 1.1.1-next.1
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
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Z = (r, o, e) => (
|
|
1
|
+
var zt = Object.defineProperty;
|
|
2
|
+
var _t = (r, o, e) => o in r ? zt(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
|
|
3
|
+
var Z = (r, o, e) => (_t(r, typeof o != "symbol" ? o + "" : o, e), e), qt = (r, o, e) => {
|
|
4
4
|
if (!o.has(r))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var G = (r, o, e) => (qt(r, o, "read from private field"), e ? e.call(r) : o.get(r)), mo = (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 {
|
|
12
|
+
import { LitElement as H, css as Q, html as $ } 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 nr = window, Mo = nr.trustedTypes, be = Mo ? Mo.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, br = "$lit$",
|
|
20
|
-
\f\r]`, No = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ge = />/g,
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g,
|
|
22
|
-
function
|
|
18
|
+
var Yr;
|
|
19
|
+
const nr = window, Mo = nr.trustedTypes, be = Mo ? Mo.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, br = "$lit$", io = `lit$${(Math.random() + "").slice(9)}$`, oe = "?" + io, Yt = `<${oe}>`, qo = document, sr = () => qo.createComment(""), Ho = (r) => r === null || typeof r != "object" && typeof r != "function", Ce = Array.isArray, Me = (r) => Ce(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Xr = `[
|
|
20
|
+
\f\r]`, No = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ge = />/g, fo = RegExp(`>|${Xr}(?:([^\\s"'>=/]+)(${Xr}*=${Xr}*(?:[^
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g, Te = /^(?:script|style|textarea|title)$/i, po = Symbol.for("lit-noChange"), B = Symbol.for("lit-nothing"), pe = /* @__PURE__ */ new WeakMap(), zo = qo.createTreeWalker(qo, 129, null, !1);
|
|
22
|
+
function Le(r, o) {
|
|
23
23
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
24
24
|
throw Error("invalid template strings array");
|
|
25
25
|
return be !== void 0 ? be.createHTML(o) : o;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const Oe = (r, o) => {
|
|
28
28
|
const e = r.length - 1, t = [];
|
|
29
29
|
let a, c = o === 2 ? "<svg>" : "", i = No;
|
|
30
30
|
for (let l = 0; l < e; l++) {
|
|
31
31
|
const n = r[l];
|
|
32
|
-
let b, v, u = -1,
|
|
33
|
-
for (;
|
|
34
|
-
|
|
35
|
-
const g = i ===
|
|
36
|
-
c += i === No ? n +
|
|
32
|
+
let b, v, u = -1, p = 0;
|
|
33
|
+
for (; p < n.length && (i.lastIndex = p, v = i.exec(n), v !== null); )
|
|
34
|
+
p = i.lastIndex, i === No ? v[1] === "!--" ? i = se : v[1] !== void 0 ? i = ge : v[2] !== void 0 ? (Te.test(v[2]) && (a = RegExp("</" + v[2], "g")), i = fo) : v[3] !== void 0 && (i = fo) : i === fo ? 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 ? fo : v[3] === '"' ? ve : ue) : i === ve || i === ue ? i = fo : i === se || i === ge ? i = No : (i = fo, a = void 0);
|
|
35
|
+
const g = i === fo && r[l + 1].startsWith("/>") ? " " : "";
|
|
36
|
+
c += i === No ? n + Yt : u >= 0 ? (t.push(b), n.slice(0, u) + br + n.slice(u) + io + g) : n + io + (u === -2 ? (t.push(void 0), l) : g);
|
|
37
37
|
}
|
|
38
|
-
return [
|
|
38
|
+
return [Le(r, c + (r[e] || "<?>") + (o === 2 ? "</svg>" : "")), t];
|
|
39
39
|
};
|
|
40
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, n = this.parts, [b, v] =
|
|
46
|
-
if (this.el = Qo.createElement(b, t),
|
|
47
|
-
const u = this.el.content,
|
|
48
|
-
|
|
45
|
+
const l = o.length - 1, n = this.parts, [b, v] = Oe(o, e);
|
|
46
|
+
if (this.el = Qo.createElement(b, t), zo.currentNode = this.el.content, e === 2) {
|
|
47
|
+
const u = this.el.content, p = u.firstChild;
|
|
48
|
+
p.remove(), u.append(...p.childNodes);
|
|
49
49
|
}
|
|
50
|
-
for (; (a =
|
|
50
|
+
for (; (a = zo.nextNode()) !== null && n.length < l; ) {
|
|
51
51
|
if (a.nodeType === 1) {
|
|
52
52
|
if (a.hasAttributes()) {
|
|
53
53
|
const u = [];
|
|
54
|
-
for (const
|
|
55
|
-
if (
|
|
54
|
+
for (const p of a.getAttributeNames())
|
|
55
|
+
if (p.endsWith(br) || p.startsWith(io)) {
|
|
56
56
|
const g = v[i++];
|
|
57
|
-
if (u.push(
|
|
58
|
-
const
|
|
59
|
-
n.push({ type: 1, index: c, name: x[2], strings:
|
|
57
|
+
if (u.push(p), g !== void 0) {
|
|
58
|
+
const h = a.getAttribute(g.toLowerCase() + br).split(io), x = /([.?@])?(.*)/.exec(g);
|
|
59
|
+
n.push({ type: 1, index: c, name: x[2], strings: h, ctor: x[1] === "." ? De : x[1] === "?" ? Re : x[1] === "@" ? Pe : Go });
|
|
60
60
|
} else
|
|
61
61
|
n.push({ type: 6, index: c });
|
|
62
62
|
}
|
|
63
|
-
for (const
|
|
64
|
-
a.removeAttribute(
|
|
63
|
+
for (const p of u)
|
|
64
|
+
a.removeAttribute(p);
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
67
|
-
const u = a.textContent.split(
|
|
68
|
-
if (
|
|
66
|
+
if (Te.test(a.tagName)) {
|
|
67
|
+
const u = a.textContent.split(io), p = u.length - 1;
|
|
68
|
+
if (p > 0) {
|
|
69
69
|
a.textContent = Mo ? Mo.emptyScript : "";
|
|
70
|
-
for (let g = 0; g <
|
|
71
|
-
a.append(u[g], sr()),
|
|
72
|
-
a.append(u[
|
|
70
|
+
for (let g = 0; g < p; g++)
|
|
71
|
+
a.append(u[g], sr()), zo.nextNode(), n.push({ type: 2, index: ++c });
|
|
72
|
+
a.append(u[p], sr());
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
} else if (a.nodeType === 8)
|
|
@@ -77,26 +77,26 @@ class Qo {
|
|
|
77
77
|
n.push({ type: 2, index: c });
|
|
78
78
|
else {
|
|
79
79
|
let u = -1;
|
|
80
|
-
for (; (u = a.data.indexOf(
|
|
81
|
-
n.push({ type: 7, index: c }), u +=
|
|
80
|
+
for (; (u = a.data.indexOf(io, u + 1)) !== -1; )
|
|
81
|
+
n.push({ type: 7, index: c }), u += io.length - 1;
|
|
82
82
|
}
|
|
83
83
|
c++;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
static createElement(o, e) {
|
|
87
|
-
const t =
|
|
87
|
+
const t = qo.createElement("template");
|
|
88
88
|
return t.innerHTML = o, t;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
function Yo(r, o, e = r, t) {
|
|
92
92
|
var a, c, i, l;
|
|
93
|
-
if (o ===
|
|
93
|
+
if (o === po)
|
|
94
94
|
return o;
|
|
95
95
|
let n = t !== void 0 ? (a = e._$Co) === null || a === void 0 ? void 0 : a[t] : e._$Cl;
|
|
96
96
|
const b = Ho(o) ? void 0 : o._$litDirective$;
|
|
97
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 Ne {
|
|
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 De {
|
|
|
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 =
|
|
111
|
+
const { el: { content: t }, parts: a } = this._$AD, c = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e : qo).importNode(t, !0);
|
|
112
|
+
zo.currentNode = c;
|
|
113
|
+
let i = zo.nextNode(), l = 0, n = 0, b = a[0];
|
|
114
114
|
for (; b !== void 0; ) {
|
|
115
115
|
if (l === b.index) {
|
|
116
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
|
|
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 Ie(i, this, o)), this._$AV.push(v), b = a[++n];
|
|
118
118
|
}
|
|
119
|
-
l !== (b == null ? void 0 : b.index) && (i =
|
|
119
|
+
l !== (b == null ? void 0 : b.index) && (i = zo.nextNode(), l++);
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return zo.currentNode = qo, c;
|
|
122
122
|
}
|
|
123
123
|
v(o) {
|
|
124
124
|
let e = 0;
|
|
@@ -126,10 +126,10 @@ class De {
|
|
|
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 re = class
|
|
129
|
+
let re = class Be {
|
|
130
130
|
constructor(o, e, t, a) {
|
|
131
131
|
var c;
|
|
132
|
-
this.type = 2, this._$AH =
|
|
132
|
+
this.type = 2, this._$AH = B, 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 re = class Re {
|
|
|
147
147
|
return this._$AB;
|
|
148
148
|
}
|
|
149
149
|
_$AI(o, e = this) {
|
|
150
|
-
o = Yo(this, o, e), Ho(o) ? o ===
|
|
150
|
+
o = Yo(this, o, e), Ho(o) ? o === B || o == null || o === "" ? (this._$AH !== B && this._$AR(), this._$AH = B) : o !== this._$AH && o !== po && this._(o) : o._$litType$ !== void 0 ? this.g(o) : o.nodeType !== void 0 ? this.$(o) : Me(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 re = class Re {
|
|
|
156
156
|
this._$AH !== o && (this._$AR(), this._$AH = this.k(o));
|
|
157
157
|
}
|
|
158
158
|
_(o) {
|
|
159
|
-
this._$AH !==
|
|
159
|
+
this._$AH !== B && Ho(this._$AH) ? this._$AA.nextSibling.data = o : this.$(qo.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 = Qo.createElement(
|
|
163
|
+
const { values: t, _$litType$: a } = o, c = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el = Qo.createElement(Le(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 Ne(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 = pe.get(o.strings);
|
|
173
|
+
return e === void 0 && pe.set(o.strings, e = new Qo(o)), e;
|
|
174
174
|
}
|
|
175
175
|
T(o) {
|
|
176
|
-
|
|
176
|
+
Ce(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 Be(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 re = class Re {
|
|
|
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 Go {
|
|
196
196
|
constructor(o, e, t, a, c) {
|
|
197
|
-
this.type = 1, this._$AH =
|
|
197
|
+
this.type = 1, this._$AH = B, 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 = B;
|
|
198
198
|
}
|
|
199
199
|
get tagName() {
|
|
200
200
|
return this.element.tagName;
|
|
@@ -206,44 +206,44 @@ class Jo {
|
|
|
206
206
|
const c = this.strings;
|
|
207
207
|
let i = !1;
|
|
208
208
|
if (c === void 0)
|
|
209
|
-
o = Yo(this, o, e, 0), i = !Ho(o) || o !== this._$AH && o !==
|
|
209
|
+
o = Yo(this, o, e, 0), i = !Ho(o) || o !== this._$AH && o !== po, i && (this._$AH = o);
|
|
210
210
|
else {
|
|
211
211
|
const l = o;
|
|
212
212
|
let n, b;
|
|
213
213
|
for (o = c[0], n = 0; n < c.length - 1; n++)
|
|
214
|
-
b = Yo(this, l[t + n], e, n), b ===
|
|
214
|
+
b = Yo(this, l[t + n], e, n), b === po && (b = this._$AH[n]), i || (i = !Ho(b) || b !== this._$AH[n]), b === B ? o = B : o !== B && (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 === B ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, o ?? "");
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
let
|
|
222
|
+
let De = class extends Go {
|
|
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 === B ? void 0 : o;
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
|
-
const
|
|
231
|
-
let
|
|
230
|
+
const Xt = Mo ? Mo.emptyScript : "";
|
|
231
|
+
let Re = class extends Go {
|
|
232
232
|
constructor() {
|
|
233
233
|
super(...arguments), this.type = 4;
|
|
234
234
|
}
|
|
235
235
|
j(o) {
|
|
236
|
-
o && o !==
|
|
236
|
+
o && o !== B ? this.element.setAttribute(this.name, Xt) : this.element.removeAttribute(this.name);
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, Pe = class extends Go {
|
|
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 = Yo(this, o, e, 0)) !== null && t !== void 0 ? t :
|
|
244
|
+
if ((o = (t = Yo(this, o, e, 0)) !== null && t !== void 0 ? t : B) === po)
|
|
245
245
|
return;
|
|
246
|
-
const a = this._$AH, c = o ===
|
|
246
|
+
const a = this._$AH, c = o === B && a !== B || o.capture !== a.capture || o.once !== a.once || o.passive !== a.passive, i = o !== B && (a === B || 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 Ie = class extends Jo {
|
|
|
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 Ie {
|
|
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
|
}
|
|
@@ -262,14 +262,14 @@ class Qe {
|
|
|
262
262
|
Yo(this, o);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
const
|
|
266
|
-
|
|
265
|
+
const jt = { O: br, P: io, A: oe, C: 1, M: Oe, L: Ne, D: Me, R: Yo, I: re, V: Go, H: Re, N: Pe, U: De, F: Ie }, he = nr.litHtmlPolyfillSupport;
|
|
266
|
+
he == null || he(Qo, re), ((Yr = nr.litHtmlVersions) !== null && Yr !== void 0 ? Yr : 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 N = (r) => r ?? B, co = {
|
|
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 B = (r) => r ?? N, io = {
|
|
|
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
|
+
}, ko = {
|
|
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 B = (r) => r ?? N, io = {
|
|
|
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
|
+
}, lo = {
|
|
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 B = (r) => r ?? N, io = {
|
|
|
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
|
+
}, ro = {
|
|
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",
|
|
@@ -338,19 +338,19 @@ const B = (r) => r ?? N, io = {
|
|
|
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
|
+
}, Zt = "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 " + lo.box,
|
|
345
|
+
expandableBleed: lo.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: Zt + " hover:underline focus:underline",
|
|
353
|
+
buttonBox: "w-full text-left relative inline-flex items-center " + lo.box,
|
|
354
354
|
paddingTop: "pt-0",
|
|
355
355
|
title: "flex justify-between items-center",
|
|
356
356
|
titleType: "h4"
|
|
@@ -373,7 +373,7 @@ const B = (r) => r ?? N, io = {
|
|
|
373
373
|
negative: `border-0 rounded-8 ${go}`,
|
|
374
374
|
pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${go}`,
|
|
375
375
|
link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${O.link}`
|
|
376
|
-
},
|
|
376
|
+
}, f = {
|
|
377
377
|
xsmall: "py-6 px-16",
|
|
378
378
|
small: "py-8 px-16",
|
|
379
379
|
medium: "py-10 px-14",
|
|
@@ -382,8 +382,8 @@ const B = (r) => r ?? N, io = {
|
|
|
382
382
|
smallUtility: "py-[7px] px-[15px]",
|
|
383
383
|
pill: "min-h-[44px] min-w-[44px]",
|
|
384
384
|
pillSmall: "min-h-32 min-w-32",
|
|
385
|
-
|
|
386
|
-
},
|
|
385
|
+
link: "p-0"
|
|
386
|
+
}, k = {
|
|
387
387
|
medium: "text-m leading-[24]",
|
|
388
388
|
xsmall: "text-xs"
|
|
389
389
|
}, m = {
|
|
@@ -394,79 +394,79 @@ const B = (r) => r ?? N, io = {
|
|
|
394
394
|
negativeQuiet: `border-0 rounded-8 ${go}`,
|
|
395
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
|
+
}, Y = {
|
|
398
398
|
// Buttontypes
|
|
399
|
-
secondary: `${
|
|
399
|
+
secondary: `${f.medium} ${k.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: `${f.medium} ${k.medium} ${S.secondary} ${O.secondary}`,
|
|
402
|
+
secondaryDisabled: `${f.medium} ${k.medium} ${S.secondary} ${m.isDisabled}`,
|
|
403
|
+
secondarySmall: `${k.xsmall} ${f.xsmall} ${S.secondary} ${O.secondary}`,
|
|
404
|
+
secondarySmallDisabled: `${k.xsmall} ${f.xsmall} ${S.secondary} ${m.isDisabled}`,
|
|
405
|
+
secondaryQuiet: `${f.medium} ${k.medium} ${m.quiet} ${O.quiet}`,
|
|
406
|
+
secondaryQuietDisabled: `${f.medium} ${k.medium} ${m.quiet} ${m.isDisabled}`,
|
|
407
|
+
secondarySmallQuiet: `${k.xsmall} ${f.xsmall} ${m.quiet} ${O.quiet}`,
|
|
408
|
+
secondarySmallQuietDisabled: `${k.xsmall} ${f.xsmall} ${m.quiet} ${m.isDisabled}`,
|
|
409
|
+
secondaryLoading: `${f.medium} ${k.medium} ${S.secondary} ${m.inProgress}`,
|
|
410
|
+
secondarySmallLoading: `${k.xsmall} ${f.xsmall} ${S.secondary} ${m.inProgress}`,
|
|
411
|
+
secondarySmallQuietLoading: `${k.xsmall} ${f.xsmall} ${m.quiet} ${m.inProgress}`,
|
|
412
|
+
secondaryQuietLoading: `${f.medium} ${k.medium} ${m.quiet} ${m.inProgress}`,
|
|
413
|
+
primary: `${f.large} ${k.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: `${f.large} ${k.medium} ${m.isDisabled} ${S.primary}`,
|
|
416
|
+
primarySmall: `${f.small} ${k.xsmall} ${S.primary} ${O.primary}`,
|
|
417
|
+
primarySmallDisabled: `${f.small} ${k.xsmall} ${m.isDisabled} ${S.primary} `,
|
|
418
|
+
primaryQuiet: `${f.large} ${k.medium} ${m.quiet} ${O.quiet}`,
|
|
419
|
+
primaryQuietDisabled: `${f.large} ${k.medium} ${m.quiet} ${m.isDisabled}`,
|
|
420
|
+
primarySmallQuiet: `${f.small} ${k.xsmall} ${m.quiet} ${O.quiet}`,
|
|
421
|
+
primarySmallQuietDisabled: `${f.small} ${k.xsmall} ${m.quiet} ${m.isDisabled}`,
|
|
422
|
+
primaryLoading: `${f.large} ${k.medium} ${m.inProgress} ${S.primary}`,
|
|
423
|
+
primarySmallLoading: `${f.small} ${k.xsmall} ${m.inProgress} ${S.primary}`,
|
|
424
|
+
primarySmallQuietLoading: `${f.small} ${k.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,
|
|
425
|
+
primaryQuietLoading: `${f.large} ${k.medium} ${m.quiet} ${m.inProgress}`,
|
|
426
|
+
utility: `${f.utility} ${k.medium} ${S.utility} ${O.utility}`,
|
|
427
427
|
// .button--utility
|
|
428
|
-
utilityDisabled: `${
|
|
429
|
-
utilityQuiet: `${
|
|
428
|
+
utilityDisabled: `${f.utility} ${k.medium} ${S.utility} ${m.isDisabled}`,
|
|
429
|
+
utilityQuiet: `${f.large} ${k.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: `${f.large} ${k.medium} ${m.utilityQuiet} ${m.isDisabled}`,
|
|
432
|
+
utilitySmall: `${f.smallUtility} ${k.xsmall} ${S.utility} ${O.utility}`,
|
|
433
|
+
utilitySmallDisabled: `${f.smallUtility} ${k.xsmall} ${S.utility} ${m.isDisabled}`,
|
|
434
|
+
utilitySmallQuiet: `${f.smallUtility} ${k.xsmall} ${m.utilityQuiet} ${O.utilityQuiet}`,
|
|
435
|
+
utilitySmallQuietDisabled: `${f.smallUtility} ${k.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,
|
|
436
|
+
utilityLoading: `${f.large} ${k.medium} ${S.utility} ${m.inProgress}`,
|
|
437
|
+
utilitySmallLoading: `${f.smallUtility} ${k.xsmall} ${S.utility} ${m.inProgress}`,
|
|
438
|
+
utilityQuietLoading: `${f.large} ${k.medium} ${m.inProgress} ${m.utilityQuiet}`,
|
|
439
|
+
utilitySmallQuietLoading: `${f.smallUtility} ${k.xsmall} ${m.inProgress} ${m.utilityQuiet}`,
|
|
440
|
+
negative: `${f.large} ${k.medium} ${S.negative} ${O.destructive}`,
|
|
441
441
|
// .button--destructive
|
|
442
|
-
negativeDisabled: `${
|
|
443
|
-
negativeQuiet: `${
|
|
442
|
+
negativeDisabled: `${f.large} ${k.medium} ${S.negative} ${m.isDisabled}`,
|
|
443
|
+
negativeQuiet: `${f.large} ${k.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: `${f.large} ${k.medium} ${m.negativeQuiet}${m.isDisabled}`,
|
|
446
|
+
negativeSmall: `${f.small} ${k.xsmall} ${S.negative} ${O.destructive}`,
|
|
447
|
+
negativeSmallDisabled: `${f.small} ${k.xsmall} ${S.negative} ${m.isDisabled}`,
|
|
448
|
+
negativeSmallQuiet: `${f.small} ${k.xsmall} ${m.negativeQuiet} ${O.negativeQuiet}`,
|
|
449
|
+
negativeSmallQuietDisabled: `${f.small} ${k.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,
|
|
450
|
+
negativeLoading: `${f.large} ${k.medium} ${S.negative} ${m.inProgress}`,
|
|
451
|
+
negativeSmallLoading: `${f.small} ${k.xsmall} ${m.inProgress} ${S.negative}`,
|
|
452
|
+
negativeQuietLoading: `${f.large} ${k.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,
|
|
453
|
+
negativeSmallQuietLoading: `${f.small} ${k.xsmall} ${m.negativeQuiet} ${m.inProgress}`,
|
|
454
|
+
pill: `${f.pill} ${k.medium} ${S.pill} ${O.pill}`,
|
|
455
455
|
// .button--pill
|
|
456
|
-
pillSmall: `${
|
|
457
|
-
pillLoading: `${
|
|
458
|
-
pillSmallLoading: `${
|
|
459
|
-
link: `${
|
|
460
|
-
linkSmall: `${
|
|
456
|
+
pillSmall: `${f.pillSmall} ${k.xsmall} ${S.pill} ${O.pill}`,
|
|
457
|
+
pillLoading: `${f.pill} ${k.medium} ${S.pill} ${m.inProgress}`,
|
|
458
|
+
pillSmallLoading: `${f.pillSmall} ${k.xsmall} ${S.pill} ${m.inProgress}`,
|
|
459
|
+
link: `${f.link} ${k.medium} ${S.link}`,
|
|
460
|
+
linkSmall: `${f.link} ${k.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
|
+
}, Bo = {
|
|
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",
|
|
469
|
-
title: "
|
|
469
|
+
title: "text-s",
|
|
470
470
|
icon: "w-16 mr-8 min-w-16",
|
|
471
471
|
negative: "i-border-$color-alert-negative-subtle-border i-bg-$color-alert-negative-background i-text-$color-alert-negative-text i-border-l-$color-alert-negative-border",
|
|
472
472
|
negativeIcon: "i-text-$color-alert-negative-icon",
|
|
@@ -476,7 +476,7 @@ const B = (r) => r ?? N, io = {
|
|
|
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
|
+
}, $o = {
|
|
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 B = (r) => r ?? N, io = {
|
|
|
486
486
|
wrapper: "relative",
|
|
487
487
|
suffix: "pr-40",
|
|
488
488
|
prefix: "pl-40"
|
|
489
|
-
},
|
|
489
|
+
}, Zo = {
|
|
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",
|
|
@@ -503,13 +503,13 @@ const B = (r) => r ?? N, io = {
|
|
|
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
|
+
}, He = "absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ", St = {
|
|
507
|
+
wrapper: He + "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
|
+
}, Et = {
|
|
512
|
+
wrapper: He + "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"
|
|
@@ -519,49 +519,7 @@ const B = (r) => r ?? N, io = {
|
|
|
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
|
-
}
|
|
523
|
-
<svg
|
|
524
|
-
role="img"
|
|
525
|
-
aria-label="X"
|
|
526
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
527
|
-
width="16"
|
|
528
|
-
height="16"
|
|
529
|
-
fill="none"
|
|
530
|
-
viewBox="0 0 16 16"
|
|
531
|
-
>
|
|
532
|
-
<path
|
|
533
|
-
fill="currentColor"
|
|
534
|
-
fillRule="evenodd"
|
|
535
|
-
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"
|
|
536
|
-
clipRule="evenodd"
|
|
537
|
-
/>
|
|
538
|
-
</svg>
|
|
539
|
-
`, Mt = f`
|
|
540
|
-
<svg
|
|
541
|
-
role="img"
|
|
542
|
-
aria-label="Forstørrelsesglass"
|
|
543
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
544
|
-
width="16"
|
|
545
|
-
height="16"
|
|
546
|
-
fill="none"
|
|
547
|
-
viewBox="0 0 16 16"
|
|
548
|
-
>
|
|
549
|
-
<g
|
|
550
|
-
stroke="currentColor"
|
|
551
|
-
strokeLinecap="round"
|
|
552
|
-
strokeLinejoin="round"
|
|
553
|
-
strokeWidth="1.5"
|
|
554
|
-
clipPath="url(#nra-cclip0)"
|
|
555
|
-
>
|
|
556
|
-
<path d="M8.796 11.803A5.684 5.684 0 104.349 1.341a5.684 5.684 0 004.447 10.462zM11 11l4 4" />
|
|
557
|
-
</g>
|
|
558
|
-
<defs>
|
|
559
|
-
<clipPath id="nra-cclip0">
|
|
560
|
-
<path fill="currentColor" d="M0 0h16v16H0z" />
|
|
561
|
-
</clipPath>
|
|
562
|
-
</defs>
|
|
563
|
-
</svg>
|
|
564
|
-
`;
|
|
522
|
+
};
|
|
565
523
|
/**
|
|
566
524
|
* @license
|
|
567
525
|
* Copyright 2017 Google LLC
|
|
@@ -589,7 +547,7 @@ let ae = class {
|
|
|
589
547
|
* Copyright 2018 Google LLC
|
|
590
548
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
591
549
|
*/
|
|
592
|
-
const
|
|
550
|
+
const Qe = te(class extends ae {
|
|
593
551
|
constructor(r) {
|
|
594
552
|
var o;
|
|
595
553
|
if (super(r), r.type !== ee.ATTRIBUTE || r.name !== "class" || ((o = r.strings) === null || o === void 0 ? void 0 : o.length) > 2)
|
|
@@ -614,20 +572,20 @@ const Fe = te(class extends ae {
|
|
|
614
572
|
const i = !!o[c];
|
|
615
573
|
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
574
|
}
|
|
617
|
-
return
|
|
575
|
+
return po;
|
|
618
576
|
}
|
|
619
|
-
}),
|
|
577
|
+
}), At = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
620
578
|
function Ko(r) {
|
|
621
579
|
return class extends r {
|
|
622
580
|
static createProperty(o, e) {
|
|
623
581
|
let t = e;
|
|
624
582
|
(typeof (e == null ? void 0 : e.attribute) > "u" || (e == null ? void 0 : e.attribute) === !0) && (t = Object.assign({}, e, {
|
|
625
|
-
attribute:
|
|
583
|
+
attribute: At(o.toString())
|
|
626
584
|
})), super.createProperty(o, t);
|
|
627
585
|
}
|
|
628
586
|
};
|
|
629
587
|
}
|
|
630
|
-
function
|
|
588
|
+
function Ar(r) {
|
|
631
589
|
const o = [];
|
|
632
590
|
for (const [e, t] of Object.entries(r))
|
|
633
591
|
t && o.push(e);
|
|
@@ -638,14 +596,14 @@ function V(r) {
|
|
|
638
596
|
for (const [e, t] of Object.entries(r))
|
|
639
597
|
for (const a of e.split(" "))
|
|
640
598
|
o[a] = t;
|
|
641
|
-
return
|
|
599
|
+
return Qe(o);
|
|
642
600
|
}
|
|
643
|
-
function
|
|
601
|
+
function Ct() {
|
|
644
602
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
645
603
|
}
|
|
646
|
-
class Cr extends
|
|
604
|
+
class Cr extends H {
|
|
647
605
|
get _classBase() {
|
|
648
|
-
return this.slot === "suffix" ?
|
|
606
|
+
return this.slot === "suffix" ? St : Et;
|
|
649
607
|
}
|
|
650
608
|
get _classes() {
|
|
651
609
|
return V({
|
|
@@ -655,21 +613,21 @@ class Cr extends I {
|
|
|
655
613
|
});
|
|
656
614
|
}
|
|
657
615
|
get _searchButton() {
|
|
658
|
-
return
|
|
659
|
-
<button aria-label="${
|
|
660
|
-
|
|
616
|
+
return $`
|
|
617
|
+
<button aria-label="${N(this.ariaLabel)}" class="${this._classes}" type="submit">
|
|
618
|
+
<w-icon-search-16></w-icon-search-16>
|
|
661
619
|
</button>
|
|
662
620
|
`;
|
|
663
621
|
}
|
|
664
622
|
get _clearButton() {
|
|
665
|
-
return
|
|
666
|
-
<button aria-label="${
|
|
667
|
-
|
|
623
|
+
return $`
|
|
624
|
+
<button aria-label="${N(this.ariaLabel)}" class="${this._classes}" type="reset">
|
|
625
|
+
<w-icon-close-16></w-icon-close-16>
|
|
668
626
|
</button>
|
|
669
627
|
`;
|
|
670
628
|
}
|
|
671
629
|
get _text() {
|
|
672
|
-
return
|
|
630
|
+
return $`
|
|
673
631
|
<div class="${this._classes}">
|
|
674
632
|
<span class="${this._classBase.label}">${this.label}</span>
|
|
675
633
|
</div>
|
|
@@ -684,7 +642,7 @@ class Cr extends I {
|
|
|
684
642
|
return this._clearButton;
|
|
685
643
|
}
|
|
686
644
|
render() {
|
|
687
|
-
return
|
|
645
|
+
return $`${this._markup}`;
|
|
688
646
|
}
|
|
689
647
|
}
|
|
690
648
|
Z(Cr, "styles", Q`
|
|
@@ -1260,6 +1218,7 @@ Z(Cr, "styles", Q`
|
|
|
1260
1218
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
1261
1219
|
.pb-32{padding-bottom:3.2rem;}
|
|
1262
1220
|
.pb-4{padding-bottom:0.4rem;}
|
|
1221
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
1263
1222
|
.pb-8{padding-bottom:0.8rem;}
|
|
1264
1223
|
.pl-0{padding-left:0rem;}
|
|
1265
1224
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -1275,6 +1234,7 @@ Z(Cr, "styles", Q`
|
|
|
1275
1234
|
.pr-40{padding-right:4rem;}
|
|
1276
1235
|
.pt-0{padding-top:0rem;}
|
|
1277
1236
|
.pt-1{padding-top:0.1rem;}
|
|
1237
|
+
.pt-4{padding-top:0.4rem;}
|
|
1278
1238
|
.pt-8{padding-top:0.8rem;}
|
|
1279
1239
|
.invisible{visibility:hidden;}
|
|
1280
1240
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -1309,6 +1269,7 @@ Z(Cr, "styles", Q`
|
|
|
1309
1269
|
.duration-300{transition-duration:300ms;}
|
|
1310
1270
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
1311
1271
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
1272
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
1312
1273
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
1313
1274
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
1314
1275
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -1343,75 +1304,6 @@ Z(Cr, "styles", Q`
|
|
|
1343
1304
|
label: { type: String }
|
|
1344
1305
|
});
|
|
1345
1306
|
customElements.get("w-affix") || customElements.define("w-affix", Cr);
|
|
1346
|
-
const Bt = () => f`<svg
|
|
1347
|
-
aria-label="Rødt utropstegn"
|
|
1348
|
-
role="img"
|
|
1349
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1350
|
-
width="16"
|
|
1351
|
-
height="16"
|
|
1352
|
-
fill="none"
|
|
1353
|
-
>
|
|
1354
|
-
${Pt}
|
|
1355
|
-
</svg>`, Nt = () => f`<svg
|
|
1356
|
-
aria-label="Grønt hake"
|
|
1357
|
-
role="img"
|
|
1358
|
-
width="16"
|
|
1359
|
-
height="16"
|
|
1360
|
-
fill="none"
|
|
1361
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1362
|
-
>
|
|
1363
|
-
${It}
|
|
1364
|
-
</svg> `, Dt = () => f`<svg
|
|
1365
|
-
aria-label="Gult utropstegn"
|
|
1366
|
-
role="img"
|
|
1367
|
-
width="16"
|
|
1368
|
-
height="16"
|
|
1369
|
-
fill="none"
|
|
1370
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1371
|
-
>
|
|
1372
|
-
${Ht}
|
|
1373
|
-
</svg> `, Rt = () => f`<svg
|
|
1374
|
-
aria-label="Info"
|
|
1375
|
-
role="img"
|
|
1376
|
-
width="16"
|
|
1377
|
-
height="16"
|
|
1378
|
-
fill="none"
|
|
1379
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1380
|
-
>
|
|
1381
|
-
${Qt}
|
|
1382
|
-
</svg>`, Pt = po`<path
|
|
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
|
-
fill="currentColor"
|
|
1385
|
-
/>
|
|
1386
|
-
<path
|
|
1387
|
-
fill-rule="evenodd"
|
|
1388
|
-
clip-rule="evenodd"
|
|
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
|
-
fill="#fff"
|
|
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" />`, It = po`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
|
|
1393
|
-
<path
|
|
1394
|
-
fill-rule="evenodd"
|
|
1395
|
-
clip-rule="evenodd"
|
|
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
|
-
fill="#fff"
|
|
1398
|
-
/>`, Ht = po`<path
|
|
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
|
-
fill="currentColor"
|
|
1401
|
-
/>
|
|
1402
|
-
<path
|
|
1403
|
-
fill-rule="evenodd"
|
|
1404
|
-
clip-rule="evenodd"
|
|
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
|
-
fill="#fff"
|
|
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" />`, Qt = po`<circle cx="8" cy="8" r="8" fill="currentColor" />
|
|
1409
|
-
<path
|
|
1410
|
-
fill-rule="evenodd"
|
|
1411
|
-
clip-rule="evenodd"
|
|
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
|
-
fill="#fff"
|
|
1414
|
-
/>`;
|
|
1415
1307
|
var uo = function() {
|
|
1416
1308
|
for (var r = [], o = arguments.length; o--; )
|
|
1417
1309
|
r[o] = arguments[o];
|
|
@@ -1421,18 +1313,18 @@ var uo = function() {
|
|
|
1421
1313
|
}) : "");
|
|
1422
1314
|
}, []).join(" ");
|
|
1423
1315
|
};
|
|
1424
|
-
const
|
|
1425
|
-
negative:
|
|
1426
|
-
positive:
|
|
1427
|
-
warning:
|
|
1428
|
-
info:
|
|
1316
|
+
const Do = {
|
|
1317
|
+
negative: "negative",
|
|
1318
|
+
positive: "positive",
|
|
1319
|
+
warning: "warning",
|
|
1320
|
+
info: "info"
|
|
1429
1321
|
};
|
|
1430
|
-
class
|
|
1322
|
+
class Mr extends H {
|
|
1431
1323
|
constructor() {
|
|
1432
1324
|
super(), this.show = !1, this.role = "alert";
|
|
1433
1325
|
}
|
|
1434
1326
|
connectedCallback() {
|
|
1435
|
-
if (super.connectedCallback(), !this.variant || !
|
|
1327
|
+
if (super.connectedCallback(), !this.variant || !Do[this.variant])
|
|
1436
1328
|
throw new Error(
|
|
1437
1329
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
1438
1330
|
negative, positive, warning, info.`
|
|
@@ -1440,26 +1332,26 @@ negative, positive, warning, info.`
|
|
|
1440
1332
|
}
|
|
1441
1333
|
get _wrapperClasses() {
|
|
1442
1334
|
return uo({
|
|
1443
|
-
[
|
|
1444
|
-
[
|
|
1335
|
+
[Bo.alert]: !0,
|
|
1336
|
+
[Bo[this.variant]]: !0
|
|
1445
1337
|
});
|
|
1446
1338
|
}
|
|
1447
1339
|
get _iconClasses() {
|
|
1448
|
-
const o =
|
|
1340
|
+
const o = Bo[`${this.variant}Icon`];
|
|
1449
1341
|
return uo({
|
|
1450
|
-
[
|
|
1342
|
+
[Bo.icon]: !0,
|
|
1451
1343
|
[o]: !0
|
|
1452
1344
|
});
|
|
1453
1345
|
}
|
|
1454
1346
|
get _icon() {
|
|
1455
|
-
return this.variant ?
|
|
1347
|
+
return this.variant === Do.info ? $`<w-icon-alert-info-16></w-icon-alert-info-16>` : this.variant === Do.warning ? $`<w-icon-alert-warning-16></w-icon-alert-warning-16>` : this.variant === Do.negative ? $`<w-icon-alert-error-16></w-icon-alert-error-16>` : this.variant === Do.positive ? $`<w-icon-alert-success-16></w-icon-alert-success-16>` : "";
|
|
1456
1348
|
}
|
|
1457
1349
|
render() {
|
|
1458
|
-
return
|
|
1350
|
+
return $`
|
|
1459
1351
|
<w-expand-transition ?show=${this.show}>
|
|
1460
1352
|
<div role=${this.role} class=${this._wrapperClasses}>
|
|
1461
1353
|
<div class=${this._iconClasses}>${this._icon}</div>
|
|
1462
|
-
<div class=${
|
|
1354
|
+
<div class=${Bo.textWrapper}>
|
|
1463
1355
|
<slot></slot>
|
|
1464
1356
|
</div>
|
|
1465
1357
|
</div>
|
|
@@ -1467,7 +1359,7 @@ negative, positive, warning, info.`
|
|
|
1467
1359
|
`;
|
|
1468
1360
|
}
|
|
1469
1361
|
}
|
|
1470
|
-
Z(
|
|
1362
|
+
Z(Mr, "properties", {
|
|
1471
1363
|
variant: { type: String, reflect: !0 },
|
|
1472
1364
|
show: { type: Boolean, reflect: !0 },
|
|
1473
1365
|
role: { type: String, reflect: !0 }
|
|
@@ -1475,7 +1367,7 @@ Z(Lr, "properties", {
|
|
|
1475
1367
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
1476
1368
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
1477
1369
|
// https://stackoverflow.com/a/61631668
|
|
1478
|
-
Z(
|
|
1370
|
+
Z(Mr, "styles", Q`
|
|
1479
1371
|
/* layer: preflights */
|
|
1480
1372
|
*,::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
1373
|
*,: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}
|
|
@@ -2048,6 +1940,7 @@ Z(Lr, "styles", Q`
|
|
|
2048
1940
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
2049
1941
|
.pb-32{padding-bottom:3.2rem;}
|
|
2050
1942
|
.pb-4{padding-bottom:0.4rem;}
|
|
1943
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
2051
1944
|
.pb-8{padding-bottom:0.8rem;}
|
|
2052
1945
|
.pl-0{padding-left:0rem;}
|
|
2053
1946
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -2063,6 +1956,7 @@ Z(Lr, "styles", Q`
|
|
|
2063
1956
|
.pr-40{padding-right:4rem;}
|
|
2064
1957
|
.pt-0{padding-top:0rem;}
|
|
2065
1958
|
.pt-1{padding-top:0.1rem;}
|
|
1959
|
+
.pt-4{padding-top:0.4rem;}
|
|
2066
1960
|
.pt-8{padding-top:0.8rem;}
|
|
2067
1961
|
.invisible{visibility:hidden;}
|
|
2068
1962
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -2099,6 +1993,7 @@ Z(Lr, "styles", Q`
|
|
|
2099
1993
|
.text-14,
|
|
2100
1994
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
2101
1995
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
1996
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
2102
1997
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
2103
1998
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
2104
1999
|
.leading-\\[24\\]{line-height:2.4rem;}
|
|
@@ -2135,7 +2030,7 @@ Z(Lr, "styles", Q`
|
|
|
2135
2030
|
margin-bottom: 0px !important;
|
|
2136
2031
|
}
|
|
2137
2032
|
`);
|
|
2138
|
-
customElements.get("w-alert") || customElements.define("w-alert",
|
|
2033
|
+
customElements.get("w-alert") || customElements.define("w-alert", Mr);
|
|
2139
2034
|
function or(r) {
|
|
2140
2035
|
return r.split("-")[0];
|
|
2141
2036
|
}
|
|
@@ -2148,7 +2043,7 @@ function rr(r) {
|
|
|
2148
2043
|
function ce(r) {
|
|
2149
2044
|
return r === "y" ? "height" : "width";
|
|
2150
2045
|
}
|
|
2151
|
-
function
|
|
2046
|
+
function we(r, o, e) {
|
|
2152
2047
|
let { reference: t, floating: a } = r;
|
|
2153
2048
|
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
2049
|
let u;
|
|
@@ -2177,16 +2072,16 @@ function xe(r, o, e) {
|
|
|
2177
2072
|
}
|
|
2178
2073
|
return u;
|
|
2179
2074
|
}
|
|
2180
|
-
const
|
|
2075
|
+
const Mt = async (r, o, e) => {
|
|
2181
2076
|
const { placement: t = "bottom", strategy: a = "absolute", middleware: c = [], platform: i } = e, l = await (i.isRTL == null ? void 0 : i.isRTL(o));
|
|
2182
|
-
let n = await i.getElementRects({ reference: r, floating: o, strategy: a }), { x: b, y: v } =
|
|
2183
|
-
for (let
|
|
2184
|
-
const { name: x, fn: z } = c[
|
|
2185
|
-
b =
|
|
2077
|
+
let n = await i.getElementRects({ reference: r, floating: o, strategy: a }), { x: b, y: v } = we(n, t, l), u = t, p = {}, g = 0;
|
|
2078
|
+
for (let h = 0; h < c.length; h++) {
|
|
2079
|
+
const { name: x, fn: z } = c[h], { x: A, y: T, data: D, reset: L } = await z({ x: b, y: v, initialPlacement: t, placement: u, strategy: a, middlewareData: p, rects: n, platform: i, elements: { reference: r, floating: o } });
|
|
2080
|
+
b = A ?? b, v = T ?? v, p = { ...p, [x]: { ...p[x], ...D } }, L && g <= 50 && (g++, typeof L == "object" && (L.placement && (u = L.placement), L.rects && (n = L.rects === !0 ? await i.getElementRects({ reference: r, floating: o, strategy: a }) : L.rects), { x: b, y: v } = we(n, u, l)), h = -1);
|
|
2186
2081
|
}
|
|
2187
|
-
return { x: b, y: v, placement: u, strategy: a, middlewareData:
|
|
2082
|
+
return { x: b, y: v, placement: u, strategy: a, middlewareData: p };
|
|
2188
2083
|
};
|
|
2189
|
-
function
|
|
2084
|
+
function Ue(r) {
|
|
2190
2085
|
return typeof r != "number" ? function(o) {
|
|
2191
2086
|
return { top: 0, right: 0, bottom: 0, left: 0, ...o };
|
|
2192
2087
|
}(r) : { top: r, right: r, bottom: r, left: r };
|
|
@@ -2194,246 +2089,246 @@ function We(r) {
|
|
|
2194
2089
|
function ur(r) {
|
|
2195
2090
|
return { ...r, top: r.y, left: r.x, right: r.x + r.width, bottom: r.y + r.height };
|
|
2196
2091
|
}
|
|
2197
|
-
async function
|
|
2092
|
+
async function Fe(r, o) {
|
|
2198
2093
|
var e;
|
|
2199
2094
|
o === void 0 && (o = {});
|
|
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:
|
|
2201
|
-
return { top: z.top -
|
|
2095
|
+
const { x: t, y: a, platform: c, rects: i, elements: l, strategy: n } = r, { boundary: b = "clippingAncestors", rootBoundary: v = "viewport", elementContext: u = "floating", altBoundary: p = !1, padding: g = 0 } = o, h = Ue(g), x = l[p ? 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 })), A = 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]);
|
|
2096
|
+
return { top: z.top - A.top + h.top, bottom: A.bottom - z.bottom + h.bottom, left: z.left - A.left + h.left, right: A.right - z.right + h.right };
|
|
2202
2097
|
}
|
|
2203
|
-
const
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
2098
|
+
const Tt = Math.min, Lt = Math.max;
|
|
2099
|
+
function Tr(r, o, e) {
|
|
2100
|
+
return Lt(r, Tt(o, e));
|
|
2206
2101
|
}
|
|
2207
|
-
const
|
|
2102
|
+
const Ot = (r) => ({ name: "arrow", options: r, async fn(o) {
|
|
2208
2103
|
const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: c, placement: i, rects: l, platform: n } = o;
|
|
2209
2104
|
if (e == null)
|
|
2210
2105
|
return {};
|
|
2211
|
-
const b =
|
|
2212
|
-
let
|
|
2213
|
-
|
|
2214
|
-
const
|
|
2215
|
-
return { [u]: v[u] - (
|
|
2216
|
-
} }),
|
|
2106
|
+
const b = Ue(t), v = { x: a, y: c }, u = rr(i), p = zr(i), g = ce(u), h = await n.getDimensions(e), x = u === "y" ? "top" : "left", z = u === "y" ? "bottom" : "right", A = l.reference[g] + l.reference[u] - v[u] - l.floating[g], T = v[u] - l.reference[u], D = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(e));
|
|
2107
|
+
let L = D ? u === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0;
|
|
2108
|
+
L === 0 && (L = l.floating[g]);
|
|
2109
|
+
const ao = A / 2 - T / 2, W = b[x], C = L - h[g] - b[z], R = L / 2 - h[g] / 2 + ao, F = Tr(W, R, C), oo = (p === "start" ? b[x] : b[z]) > 0 && R !== F && l.reference[g] <= l.floating[g];
|
|
2110
|
+
return { [u]: v[u] - (oo ? R < W ? W - R : C - R : 0), data: { [u]: F, centerOffset: R - F } };
|
|
2111
|
+
} }), Nt = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
2217
2112
|
function vr(r) {
|
|
2218
|
-
return r.replace(/left|right|bottom|top/g, (o) =>
|
|
2113
|
+
return r.replace(/left|right|bottom|top/g, (o) => Nt[o]);
|
|
2219
2114
|
}
|
|
2220
|
-
function
|
|
2115
|
+
function Bt(r, o, e) {
|
|
2221
2116
|
e === void 0 && (e = !1);
|
|
2222
2117
|
const t = zr(r), a = rr(r), c = ce(a);
|
|
2223
2118
|
let i = a === "x" ? t === (e ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
|
|
2224
2119
|
return o.reference[c] > o.floating[c] && (i = vr(i)), { main: i, cross: vr(i) };
|
|
2225
2120
|
}
|
|
2226
|
-
const
|
|
2227
|
-
function
|
|
2228
|
-
return r.replace(/start|end/g, (o) =>
|
|
2121
|
+
const Dt = { start: "end", end: "start" };
|
|
2122
|
+
function xe(r) {
|
|
2123
|
+
return r.replace(/start|end/g, (o) => Dt[o]);
|
|
2229
2124
|
}
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2232
|
-
const
|
|
2125
|
+
const Rt = ["top", "right", "bottom", "left"];
|
|
2126
|
+
Rt.reduce((r, o) => r.concat(o, o + "-start", o + "-end"), []);
|
|
2127
|
+
const Pt = function(r) {
|
|
2233
2128
|
return r === void 0 && (r = {}), { name: "flip", options: r, async fn(o) {
|
|
2234
2129
|
var e;
|
|
2235
|
-
const { placement: t, middlewareData: a, rects: c, initialPlacement: i, platform: l, elements: n } = o, { mainAxis: b = !0, crossAxis: v = !0, fallbackPlacements: u, fallbackStrategy:
|
|
2130
|
+
const { placement: t, middlewareData: a, rects: c, initialPlacement: i, platform: l, elements: n } = o, { mainAxis: b = !0, crossAxis: v = !0, fallbackPlacements: u, fallbackStrategy: p = "bestFit", flipAlignment: g = !0, ...h } = r, x = or(t), z = u || (x === i || !g ? [vr(i)] : function(R) {
|
|
2236
2131
|
const F = vr(R);
|
|
2237
|
-
return [
|
|
2238
|
-
}(i)),
|
|
2239
|
-
let
|
|
2240
|
-
if (b && D.push(
|
|
2241
|
-
const { main: R, cross: F } =
|
|
2242
|
-
D.push(
|
|
2132
|
+
return [xe(R), F, xe(F)];
|
|
2133
|
+
}(i)), A = [i, ...z], T = await Fe(o, h), D = [];
|
|
2134
|
+
let L = ((e = a.flip) == null ? void 0 : e.overflows) || [];
|
|
2135
|
+
if (b && D.push(T[x]), v) {
|
|
2136
|
+
const { main: R, cross: F } = Bt(t, c, await (l.isRTL == null ? void 0 : l.isRTL(n.floating)));
|
|
2137
|
+
D.push(T[R], T[F]);
|
|
2243
2138
|
}
|
|
2244
|
-
if (
|
|
2245
|
-
var
|
|
2246
|
-
const R = ((
|
|
2139
|
+
if (L = [...L, { placement: t, overflows: D }], !D.every((R) => R <= 0)) {
|
|
2140
|
+
var ao, W;
|
|
2141
|
+
const R = ((ao = (W = a.flip) == null ? void 0 : W.index) != null ? ao : 0) + 1, F = A[R];
|
|
2247
2142
|
if (F)
|
|
2248
|
-
return { data: { index: R, overflows:
|
|
2249
|
-
let
|
|
2250
|
-
switch (
|
|
2143
|
+
return { data: { index: R, overflows: L }, reset: { placement: F } };
|
|
2144
|
+
let oo = "bottom";
|
|
2145
|
+
switch (p) {
|
|
2251
2146
|
case "bestFit": {
|
|
2252
2147
|
var C;
|
|
2253
|
-
const d = (C =
|
|
2254
|
-
d && (
|
|
2148
|
+
const d = (C = L.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;
|
|
2149
|
+
d && (oo = d);
|
|
2255
2150
|
break;
|
|
2256
2151
|
}
|
|
2257
2152
|
case "initialPlacement":
|
|
2258
|
-
|
|
2153
|
+
oo = i;
|
|
2259
2154
|
}
|
|
2260
|
-
if (t !==
|
|
2261
|
-
return { reset: { placement:
|
|
2155
|
+
if (t !== oo)
|
|
2156
|
+
return { reset: { placement: oo } };
|
|
2262
2157
|
}
|
|
2263
2158
|
return {};
|
|
2264
2159
|
} };
|
|
2265
|
-
},
|
|
2160
|
+
}, It = function(r) {
|
|
2266
2161
|
return r === void 0 && (r = 0), { name: "offset", options: r, async fn(o) {
|
|
2267
2162
|
const { x: e, y: t } = o, a = await async function(c, i) {
|
|
2268
|
-
const { placement: l, platform: n, elements: b } = c, v = await (n.isRTL == null ? void 0 : n.isRTL(b.floating)), u = or(l),
|
|
2269
|
-
let { mainAxis:
|
|
2270
|
-
return
|
|
2163
|
+
const { placement: l, platform: n, elements: b } = c, v = await (n.isRTL == null ? void 0 : n.isRTL(b.floating)), u = or(l), p = zr(l), g = rr(l) === "x", h = ["left", "top"].includes(u) ? -1 : 1, x = v && g ? -1 : 1, z = typeof i == "function" ? i(c) : i;
|
|
2164
|
+
let { mainAxis: A, crossAxis: T, alignmentAxis: D } = typeof z == "number" ? { mainAxis: z, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...z };
|
|
2165
|
+
return p && typeof D == "number" && (T = p === "end" ? -1 * D : D), g ? { x: T * x, y: A * h } : { x: A * h, y: T * x };
|
|
2271
2166
|
}(o, r);
|
|
2272
2167
|
return { x: e + a.x, y: t + a.y, data: a };
|
|
2273
2168
|
} };
|
|
2274
2169
|
};
|
|
2275
|
-
function
|
|
2170
|
+
function Ht(r) {
|
|
2276
2171
|
return r === "x" ? "y" : "x";
|
|
2277
2172
|
}
|
|
2278
|
-
const
|
|
2173
|
+
const Qt = function(r) {
|
|
2279
2174
|
return r === void 0 && (r = {}), { name: "shift", options: r, async fn(o) {
|
|
2280
2175
|
const { x: e, y: t, placement: a } = o, { mainAxis: c = !0, crossAxis: i = !1, limiter: l = { fn: (z) => {
|
|
2281
|
-
let { x:
|
|
2282
|
-
return { x:
|
|
2283
|
-
} }, ...n } = r, b = { x: e, y: t }, v = await
|
|
2284
|
-
let g = b[u],
|
|
2176
|
+
let { x: A, y: T } = z;
|
|
2177
|
+
return { x: A, y: T };
|
|
2178
|
+
} }, ...n } = r, b = { x: e, y: t }, v = await Fe(o, n), u = rr(or(a)), p = Ht(u);
|
|
2179
|
+
let g = b[u], h = b[p];
|
|
2285
2180
|
if (c) {
|
|
2286
2181
|
const z = u === "y" ? "bottom" : "right";
|
|
2287
|
-
g =
|
|
2182
|
+
g = Tr(g + v[u === "y" ? "top" : "left"], g, g - v[z]);
|
|
2288
2183
|
}
|
|
2289
2184
|
if (i) {
|
|
2290
|
-
const z =
|
|
2291
|
-
|
|
2185
|
+
const z = p === "y" ? "bottom" : "right";
|
|
2186
|
+
h = Tr(h + v[p === "y" ? "top" : "left"], h, h - v[z]);
|
|
2292
2187
|
}
|
|
2293
|
-
const x = l.fn({ ...o, [u]: g, [
|
|
2188
|
+
const x = l.fn({ ...o, [u]: g, [p]: h });
|
|
2294
2189
|
return { ...x, data: { x: x.x - e, y: x.y - t } };
|
|
2295
2190
|
} };
|
|
2296
2191
|
};
|
|
2297
|
-
function
|
|
2192
|
+
function We(r) {
|
|
2298
2193
|
return r && r.document && r.location && r.alert && r.setInterval;
|
|
2299
2194
|
}
|
|
2300
|
-
function
|
|
2195
|
+
function bo(r) {
|
|
2301
2196
|
if (r == null)
|
|
2302
2197
|
return window;
|
|
2303
|
-
if (!
|
|
2198
|
+
if (!We(r)) {
|
|
2304
2199
|
const o = r.ownerDocument;
|
|
2305
2200
|
return o && o.defaultView || window;
|
|
2306
2201
|
}
|
|
2307
2202
|
return r;
|
|
2308
2203
|
}
|
|
2309
2204
|
function er(r) {
|
|
2310
|
-
return
|
|
2205
|
+
return bo(r).getComputedStyle(r);
|
|
2311
2206
|
}
|
|
2312
|
-
function
|
|
2313
|
-
return
|
|
2207
|
+
function no(r) {
|
|
2208
|
+
return We(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
|
|
2314
2209
|
}
|
|
2315
|
-
function
|
|
2210
|
+
function Ve() {
|
|
2316
2211
|
const r = navigator.userAgentData;
|
|
2317
2212
|
return r != null && r.brands ? r.brands.map((o) => o.brand + "/" + o.version).join(" ") : navigator.userAgent;
|
|
2318
2213
|
}
|
|
2319
|
-
function
|
|
2320
|
-
return r instanceof
|
|
2214
|
+
function to(r) {
|
|
2215
|
+
return r instanceof bo(r).HTMLElement;
|
|
2321
2216
|
}
|
|
2322
2217
|
function To(r) {
|
|
2323
|
-
return r instanceof
|
|
2218
|
+
return r instanceof bo(r).Element;
|
|
2324
2219
|
}
|
|
2325
2220
|
function ie(r) {
|
|
2326
|
-
return typeof ShadowRoot > "u" ? !1 : r instanceof
|
|
2221
|
+
return typeof ShadowRoot > "u" ? !1 : r instanceof bo(r).ShadowRoot || r instanceof ShadowRoot;
|
|
2327
2222
|
}
|
|
2328
2223
|
function _r(r) {
|
|
2329
2224
|
const { overflow: o, overflowX: e, overflowY: t } = er(r);
|
|
2330
2225
|
return /auto|scroll|overlay|hidden/.test(o + t + e);
|
|
2331
2226
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return ["table", "td", "th"].includes(
|
|
2227
|
+
function Ut(r) {
|
|
2228
|
+
return ["table", "td", "th"].includes(no(r));
|
|
2334
2229
|
}
|
|
2335
|
-
function
|
|
2336
|
-
const o = /firefox/i.test(
|
|
2230
|
+
function me(r) {
|
|
2231
|
+
const o = /firefox/i.test(Ve()), e = er(r);
|
|
2337
2232
|
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
2233
|
}
|
|
2339
|
-
function
|
|
2340
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
2234
|
+
function Je() {
|
|
2235
|
+
return !/^((?!chrome|android).)*safari/i.test(Ve());
|
|
2341
2236
|
}
|
|
2342
|
-
const
|
|
2343
|
-
function
|
|
2237
|
+
const fe = Math.min, Io = Math.max, pr = Math.round;
|
|
2238
|
+
function _o(r, o, e) {
|
|
2344
2239
|
var t, a, c, i;
|
|
2345
2240
|
o === void 0 && (o = !1), e === void 0 && (e = !1);
|
|
2346
2241
|
const l = r.getBoundingClientRect();
|
|
2347
2242
|
let n = 1, b = 1;
|
|
2348
|
-
o &&
|
|
2349
|
-
const v = To(r) ?
|
|
2350
|
-
return { width:
|
|
2243
|
+
o && to(r) && (n = r.offsetWidth > 0 && pr(l.width) / r.offsetWidth || 1, b = r.offsetHeight > 0 && pr(l.height) / r.offsetHeight || 1);
|
|
2244
|
+
const v = To(r) ? bo(r) : window, u = !Je() && e, p = (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, h = l.width / n, x = l.height / b;
|
|
2245
|
+
return { width: h, height: x, top: g, right: p + h, bottom: g + x, left: p, x: p, y: g };
|
|
2351
2246
|
}
|
|
2352
2247
|
function vo(r) {
|
|
2353
|
-
return (o = r, (o instanceof
|
|
2248
|
+
return (o = r, (o instanceof bo(o).Node ? r.ownerDocument : r.document) || window.document).documentElement;
|
|
2354
2249
|
var o;
|
|
2355
2250
|
}
|
|
2356
2251
|
function qr(r) {
|
|
2357
2252
|
return To(r) ? { scrollLeft: r.scrollLeft, scrollTop: r.scrollTop } : { scrollLeft: r.pageXOffset, scrollTop: r.pageYOffset };
|
|
2358
2253
|
}
|
|
2359
|
-
function
|
|
2360
|
-
return
|
|
2254
|
+
function Ge(r) {
|
|
2255
|
+
return _o(vo(r)).left + qr(r).scrollLeft;
|
|
2361
2256
|
}
|
|
2362
|
-
function
|
|
2363
|
-
const t =
|
|
2364
|
-
const b =
|
|
2365
|
-
return
|
|
2257
|
+
function Ft(r, o, e) {
|
|
2258
|
+
const t = to(o), a = vo(o), c = _o(r, t && function(n) {
|
|
2259
|
+
const b = _o(n);
|
|
2260
|
+
return pr(b.width) !== n.offsetWidth || pr(b.height) !== n.offsetHeight;
|
|
2366
2261
|
}(o), e === "fixed");
|
|
2367
2262
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2368
2263
|
const l = { x: 0, y: 0 };
|
|
2369
2264
|
if (t || !t && e !== "fixed")
|
|
2370
|
-
if ((
|
|
2371
|
-
const n =
|
|
2265
|
+
if ((no(o) !== "body" || _r(a)) && (i = qr(o)), to(o)) {
|
|
2266
|
+
const n = _o(o, !0);
|
|
2372
2267
|
l.x = n.x + o.clientLeft, l.y = n.y + o.clientTop;
|
|
2373
2268
|
} else
|
|
2374
|
-
a && (l.x =
|
|
2269
|
+
a && (l.x = Ge(a));
|
|
2375
2270
|
return { x: c.left + i.scrollLeft - l.x, y: c.top + i.scrollTop - l.y, width: c.width, height: c.height };
|
|
2376
2271
|
}
|
|
2377
|
-
function
|
|
2378
|
-
return
|
|
2272
|
+
function Ke(r) {
|
|
2273
|
+
return no(r) === "html" ? r : r.assignedSlot || r.parentNode || (ie(r) ? r.host : null) || vo(r);
|
|
2379
2274
|
}
|
|
2380
|
-
function
|
|
2381
|
-
return
|
|
2275
|
+
function ke(r) {
|
|
2276
|
+
return to(r) && getComputedStyle(r).position !== "fixed" ? r.offsetParent : null;
|
|
2382
2277
|
}
|
|
2383
|
-
function
|
|
2384
|
-
const o =
|
|
2385
|
-
let e =
|
|
2386
|
-
for (; e &&
|
|
2387
|
-
e =
|
|
2388
|
-
return e && (
|
|
2389
|
-
let a =
|
|
2390
|
-
for (ie(a) && (a = a.host);
|
|
2391
|
-
if (
|
|
2278
|
+
function Lr(r) {
|
|
2279
|
+
const o = bo(r);
|
|
2280
|
+
let e = ke(r);
|
|
2281
|
+
for (; e && Ut(e) && getComputedStyle(e).position === "static"; )
|
|
2282
|
+
e = ke(e);
|
|
2283
|
+
return e && (no(e) === "html" || no(e) === "body" && getComputedStyle(e).position === "static" && !me(e)) ? o : e || function(t) {
|
|
2284
|
+
let a = Ke(t);
|
|
2285
|
+
for (ie(a) && (a = a.host); to(a) && !["html", "body"].includes(no(a)); ) {
|
|
2286
|
+
if (me(a))
|
|
2392
2287
|
return a;
|
|
2393
2288
|
a = a.parentNode;
|
|
2394
2289
|
}
|
|
2395
2290
|
return null;
|
|
2396
2291
|
}(r) || o;
|
|
2397
2292
|
}
|
|
2398
|
-
function
|
|
2399
|
-
if (
|
|
2293
|
+
function $e(r) {
|
|
2294
|
+
if (to(r))
|
|
2400
2295
|
return { width: r.offsetWidth, height: r.offsetHeight };
|
|
2401
|
-
const o =
|
|
2296
|
+
const o = _o(r);
|
|
2402
2297
|
return { width: o.width, height: o.height };
|
|
2403
2298
|
}
|
|
2404
|
-
function
|
|
2405
|
-
const o =
|
|
2406
|
-
return ["html", "body", "#document"].includes(
|
|
2299
|
+
function ot(r) {
|
|
2300
|
+
const o = Ke(r);
|
|
2301
|
+
return ["html", "body", "#document"].includes(no(o)) ? r.ownerDocument.body : to(o) && _r(o) ? o : ot(o);
|
|
2407
2302
|
}
|
|
2408
|
-
function
|
|
2303
|
+
function rt(r, o) {
|
|
2409
2304
|
var e;
|
|
2410
2305
|
o === void 0 && (o = []);
|
|
2411
|
-
const t =
|
|
2412
|
-
return a ? l : l.concat(
|
|
2306
|
+
const t = ot(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), c = bo(t), i = a ? [c].concat(c.visualViewport || [], _r(t) ? t : []) : t, l = o.concat(i);
|
|
2307
|
+
return a ? l : l.concat(rt(i));
|
|
2413
2308
|
}
|
|
2414
|
-
function
|
|
2309
|
+
function ye(r, o, e) {
|
|
2415
2310
|
return o === "viewport" ? ur(function(t, a) {
|
|
2416
|
-
const c =
|
|
2311
|
+
const c = bo(t), i = vo(t), l = c.visualViewport;
|
|
2417
2312
|
let n = i.clientWidth, b = i.clientHeight, v = 0, u = 0;
|
|
2418
2313
|
if (l) {
|
|
2419
2314
|
n = l.width, b = l.height;
|
|
2420
|
-
const
|
|
2421
|
-
(
|
|
2315
|
+
const p = Je();
|
|
2316
|
+
(p || !p && a === "fixed") && (v = l.offsetLeft, u = l.offsetTop);
|
|
2422
2317
|
}
|
|
2423
2318
|
return { width: n, height: b, x: v, y: u };
|
|
2424
2319
|
}(r, e)) : To(o) ? function(t, a) {
|
|
2425
|
-
const c =
|
|
2320
|
+
const c = _o(t, !1, a === "fixed"), i = c.top + t.clientTop, l = c.left + t.clientLeft;
|
|
2426
2321
|
return { top: i, left: l, x: l, y: i, right: l + t.clientWidth, bottom: i + t.clientHeight, width: t.clientWidth, height: t.clientHeight };
|
|
2427
2322
|
}(o, e) : ur(function(t) {
|
|
2428
2323
|
var a;
|
|
2429
2324
|
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 +
|
|
2325
|
+
let v = -i.scrollLeft + Ge(t);
|
|
2431
2326
|
const u = -i.scrollTop;
|
|
2432
2327
|
return er(l || c).direction === "rtl" && (v += Io(c.clientWidth, l ? l.clientWidth : 0) - n), { width: n, height: b, x: v, y: u };
|
|
2433
2328
|
}(vo(r)));
|
|
2434
2329
|
}
|
|
2435
|
-
function
|
|
2436
|
-
const o =
|
|
2330
|
+
function Wt(r) {
|
|
2331
|
+
const o = rt(r), e = ["absolute", "fixed"].includes(er(r).position) && to(r) ? Lr(r) : r;
|
|
2437
2332
|
return To(e) ? o.filter((t) => To(t) && function(a, c) {
|
|
2438
2333
|
const i = c.getRootNode == null ? void 0 : c.getRootNode();
|
|
2439
2334
|
if (a.contains(c))
|
|
@@ -2447,68 +2342,68 @@ function la(r) {
|
|
|
2447
2342
|
} while (l);
|
|
2448
2343
|
}
|
|
2449
2344
|
return !1;
|
|
2450
|
-
}(t, e) &&
|
|
2345
|
+
}(t, e) && no(t) !== "body") : [];
|
|
2451
2346
|
}
|
|
2452
|
-
const
|
|
2347
|
+
const Vt = { getClippingRect: function(r) {
|
|
2453
2348
|
let { element: o, boundary: e, rootBoundary: t, strategy: a } = r;
|
|
2454
|
-
const c = [...e === "clippingAncestors" ?
|
|
2455
|
-
const v =
|
|
2456
|
-
return n.top = Io(v.top, n.top), n.right =
|
|
2457
|
-
},
|
|
2349
|
+
const c = [...e === "clippingAncestors" ? Wt(o) : [].concat(e), t], i = c[0], l = c.reduce((n, b) => {
|
|
2350
|
+
const v = ye(o, b, a);
|
|
2351
|
+
return n.top = Io(v.top, n.top), n.right = fe(v.right, n.right), n.bottom = fe(v.bottom, n.bottom), n.left = Io(v.left, n.left), n;
|
|
2352
|
+
}, ye(o, i, a));
|
|
2458
2353
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
2459
2354
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(r) {
|
|
2460
2355
|
let { rect: o, offsetParent: e, strategy: t } = r;
|
|
2461
|
-
const a =
|
|
2356
|
+
const a = to(e), c = vo(e);
|
|
2462
2357
|
if (e === c)
|
|
2463
2358
|
return o;
|
|
2464
2359
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2465
2360
|
const l = { x: 0, y: 0 };
|
|
2466
|
-
if ((a || !a && t !== "fixed") && ((
|
|
2467
|
-
const n =
|
|
2361
|
+
if ((a || !a && t !== "fixed") && ((no(e) !== "body" || _r(c)) && (i = qr(e)), to(e))) {
|
|
2362
|
+
const n = _o(e, !0);
|
|
2468
2363
|
l.x = n.x + e.clientLeft, l.y = n.y + e.clientTop;
|
|
2469
2364
|
}
|
|
2470
2365
|
return { ...o, x: o.x - i.scrollLeft + l.x, y: o.y - i.scrollTop + l.y };
|
|
2471
|
-
}, isElement: To, getDimensions:
|
|
2366
|
+
}, isElement: To, getDimensions: $e, getOffsetParent: Lr, getDocumentElement: vo, getElementRects: (r) => {
|
|
2472
2367
|
let { reference: o, floating: e, strategy: t } = r;
|
|
2473
|
-
return { reference:
|
|
2474
|
-
}, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) => er(r).direction === "rtl" },
|
|
2368
|
+
return { reference: Ft(o, Lr(e), t), floating: { ...$e(e), x: 0, y: 0 } };
|
|
2369
|
+
}, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) => er(r).direction === "rtl" }, Jt = (r, o, e) => Mt(r, o, { platform: Vt, ...e }), Uo = "top", Fo = "bottom", hr = "left", wr = "right", Zr = {
|
|
2475
2370
|
[Uo]: Fo,
|
|
2476
2371
|
[Fo]: Uo,
|
|
2477
|
-
[
|
|
2478
|
-
[wr]:
|
|
2479
|
-
},
|
|
2372
|
+
[hr]: wr,
|
|
2373
|
+
[wr]: hr
|
|
2374
|
+
}, Gt = {
|
|
2480
2375
|
[Uo]: "↑",
|
|
2481
2376
|
[Fo]: "↓",
|
|
2482
|
-
[
|
|
2377
|
+
[hr]: "←",
|
|
2483
2378
|
[wr]: "→"
|
|
2484
|
-
},
|
|
2485
|
-
[
|
|
2379
|
+
}, Kt = {
|
|
2380
|
+
[hr]: -45,
|
|
2486
2381
|
[Uo]: 45,
|
|
2487
2382
|
[wr]: 135,
|
|
2488
2383
|
[Fo]: -135
|
|
2489
|
-
},
|
|
2490
|
-
function
|
|
2384
|
+
}, ze = "calc(50% - 7px)", oa = (r) => [Uo, Fo].includes(r);
|
|
2385
|
+
function ra({ actualDirection: r, directionName: o, arrowEl: e }) {
|
|
2491
2386
|
if (!e)
|
|
2492
2387
|
return;
|
|
2493
2388
|
r = o;
|
|
2494
|
-
const t =
|
|
2495
|
-
e.style.left = t ?
|
|
2389
|
+
const t = oa(o);
|
|
2390
|
+
e.style.left = t ? ze : "", e.style.top = t ? "" : ze;
|
|
2496
2391
|
}
|
|
2497
|
-
async function
|
|
2392
|
+
async function ea(r) {
|
|
2498
2393
|
var a, c;
|
|
2499
2394
|
if (!r.isShowing)
|
|
2500
2395
|
return;
|
|
2501
2396
|
if (await ((a = r == null ? void 0 : r.waitForDOM) == null ? void 0 : a.call(r)), r.isCallout)
|
|
2502
|
-
return
|
|
2503
|
-
const o = await
|
|
2397
|
+
return ra(r);
|
|
2398
|
+
const o = await Jt(r.targetEl, r.attentionEl, {
|
|
2504
2399
|
placement: r.directionName,
|
|
2505
2400
|
middleware: [
|
|
2506
2401
|
// Should we make this configurable, but have these as sane defaults?
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2402
|
+
Pt(),
|
|
2403
|
+
It(8),
|
|
2404
|
+
Qt({ padding: 16 }),
|
|
2510
2405
|
// @ts-ignore
|
|
2511
|
-
|
|
2406
|
+
Ot({ element: r.noArrow ? void 0 : r.arrowEl })
|
|
2512
2407
|
// FIXME
|
|
2513
2408
|
]
|
|
2514
2409
|
});
|
|
@@ -2520,7 +2415,7 @@ async function va(r) {
|
|
|
2520
2415
|
let { x: e, y: t } = o.middlewareData.arrow;
|
|
2521
2416
|
r.arrowEl && (r.arrowEl.style.left = e ? e + "px" : "", r.arrowEl.style.top = t ? t + "px" : "");
|
|
2522
2417
|
}
|
|
2523
|
-
class Or extends Ko(
|
|
2418
|
+
class Or extends Ko(H) {
|
|
2524
2419
|
constructor() {
|
|
2525
2420
|
super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
|
|
2526
2421
|
}
|
|
@@ -2553,11 +2448,11 @@ ${JSON.stringify(
|
|
|
2553
2448
|
attentionEl: this._attentionEl,
|
|
2554
2449
|
targetEl: this._targetEl,
|
|
2555
2450
|
noArrow: this.noArrow
|
|
2556
|
-
},
|
|
2451
|
+
}, ea(this.attentionState);
|
|
2557
2452
|
}
|
|
2558
2453
|
setAriaLabels() {
|
|
2559
2454
|
if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
|
|
2560
|
-
const o = this._messageEl.id || (this._messageEl.id =
|
|
2455
|
+
const o = this._messageEl.id || (this._messageEl.id = Ct());
|
|
2561
2456
|
this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", o);
|
|
2562
2457
|
}
|
|
2563
2458
|
}
|
|
@@ -2574,37 +2469,37 @@ ${JSON.stringify(
|
|
|
2574
2469
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
2575
2470
|
}
|
|
2576
2471
|
get _wrapperClasses() {
|
|
2577
|
-
return
|
|
2578
|
-
[
|
|
2579
|
-
[
|
|
2580
|
-
[
|
|
2581
|
-
[
|
|
2472
|
+
return Ar({
|
|
2473
|
+
[co.base]: !0,
|
|
2474
|
+
[co.tooltip]: this.tooltip,
|
|
2475
|
+
[co.callout]: this.callout,
|
|
2476
|
+
[co.popover]: this.popover
|
|
2582
2477
|
});
|
|
2583
2478
|
}
|
|
2584
2479
|
get _arrowClasses() {
|
|
2585
|
-
return
|
|
2586
|
-
[
|
|
2587
|
-
[
|
|
2588
|
-
[
|
|
2589
|
-
[
|
|
2590
|
-
[
|
|
2480
|
+
return Ar({
|
|
2481
|
+
[co.arrowBase]: !0,
|
|
2482
|
+
[co[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
|
|
2483
|
+
[co.arrowTooltip]: this.tooltip,
|
|
2484
|
+
[co.arrowCallout]: this.callout,
|
|
2485
|
+
[co.arrowPopover]: this.popover
|
|
2591
2486
|
});
|
|
2592
2487
|
}
|
|
2593
2488
|
get _arrowHtml() {
|
|
2594
|
-
return this.noArrow ? "" :
|
|
2489
|
+
return this.noArrow ? "" : $`<div
|
|
2595
2490
|
id="arrow"
|
|
2596
2491
|
role="img"
|
|
2597
|
-
aria-label=${
|
|
2492
|
+
aria-label=${Gt[this._arrowDirection]}
|
|
2598
2493
|
class="${this._arrowClasses}"
|
|
2599
|
-
style="transform:rotate(${
|
|
2494
|
+
style="transform:rotate(${Kt[this._arrowDirection]}deg);
|
|
2600
2495
|
margin-${// border alignment is off by a fraction of a pixel, this fixes it
|
|
2601
2496
|
this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
2602
2497
|
/>`;
|
|
2603
2498
|
}
|
|
2604
2499
|
render() {
|
|
2605
|
-
return
|
|
2606
|
-
<div class=${
|
|
2607
|
-
${this.placement === "right" || this.placement === "bottom" ?
|
|
2500
|
+
return $`
|
|
2501
|
+
<div class=${N(this.className ? this.className : void 0)}>
|
|
2502
|
+
${this.placement === "right" || this.placement === "bottom" ? $`
|
|
2608
2503
|
<slot name="target"></slot>
|
|
2609
2504
|
<div id="attention" class="${this._wrapperClasses}">
|
|
2610
2505
|
<div>
|
|
@@ -2612,7 +2507,7 @@ ${JSON.stringify(
|
|
|
2612
2507
|
<slot name="message"></slot>
|
|
2613
2508
|
</div>
|
|
2614
2509
|
</div>
|
|
2615
|
-
` :
|
|
2510
|
+
` : $`
|
|
2616
2511
|
<div id="attention" class="${this._wrapperClasses}">
|
|
2617
2512
|
<div>
|
|
2618
2513
|
<slot name="message"></slot>
|
|
@@ -3214,6 +3109,7 @@ Z(Or, "properties", {
|
|
|
3214
3109
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
3215
3110
|
.pb-32{padding-bottom:3.2rem;}
|
|
3216
3111
|
.pb-4{padding-bottom:0.4rem;}
|
|
3112
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
3217
3113
|
.pb-8{padding-bottom:0.8rem;}
|
|
3218
3114
|
.pl-0{padding-left:0rem;}
|
|
3219
3115
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -3229,6 +3125,7 @@ Z(Or, "properties", {
|
|
|
3229
3125
|
.pr-40{padding-right:4rem;}
|
|
3230
3126
|
.pt-0{padding-top:0rem;}
|
|
3231
3127
|
.pt-1{padding-top:0.1rem;}
|
|
3128
|
+
.pt-4{padding-top:0.4rem;}
|
|
3232
3129
|
.pt-8{padding-top:0.8rem;}
|
|
3233
3130
|
.invisible{visibility:hidden;}
|
|
3234
3131
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -3263,6 +3160,7 @@ Z(Or, "properties", {
|
|
|
3263
3160
|
.duration-300{transition-duration:300ms;}
|
|
3264
3161
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
3265
3162
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3163
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
3266
3164
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
3267
3165
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
3268
3166
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -3308,33 +3206,33 @@ Z(Or, "properties", {
|
|
|
3308
3206
|
`
|
|
3309
3207
|
]);
|
|
3310
3208
|
customElements.get("w-attention") || customElements.define("w-attention", Or);
|
|
3311
|
-
class
|
|
3209
|
+
class Nr extends H {
|
|
3312
3210
|
constructor() {
|
|
3313
3211
|
super(), this.variant = "neutral";
|
|
3314
3212
|
}
|
|
3315
3213
|
get _class() {
|
|
3316
|
-
return
|
|
3317
|
-
[
|
|
3318
|
-
[
|
|
3319
|
-
[
|
|
3320
|
-
[
|
|
3321
|
-
[
|
|
3322
|
-
[
|
|
3323
|
-
[
|
|
3214
|
+
return Ar({
|
|
3215
|
+
[ko.base]: !0,
|
|
3216
|
+
[ko[this.variant]]: !0,
|
|
3217
|
+
[ko.positionBase]: !!this.position,
|
|
3218
|
+
[ko.positionTL]: this.position === "top-left",
|
|
3219
|
+
[ko.positionTR]: this.position === "top-right",
|
|
3220
|
+
[ko.positionBR]: this.position === "bottom-right",
|
|
3221
|
+
[ko.positionBL]: this.position === "bottom-left"
|
|
3324
3222
|
});
|
|
3325
3223
|
}
|
|
3326
3224
|
render() {
|
|
3327
|
-
return
|
|
3225
|
+
return $`
|
|
3328
3226
|
<div class="${this._class}">
|
|
3329
3227
|
<slot></slot>
|
|
3330
3228
|
</div>
|
|
3331
3229
|
`;
|
|
3332
3230
|
}
|
|
3333
3231
|
}
|
|
3334
|
-
Z(
|
|
3232
|
+
Z(Nr, "properties", {
|
|
3335
3233
|
variant: { type: "neutral" | "info" | "positive" | "warning" | "negative" | "disabled" | "notification" | "price" },
|
|
3336
3234
|
position: { type: "top-left" | "top-right" | "bottom-right" | "bottom-left" }
|
|
3337
|
-
}), Z(
|
|
3235
|
+
}), Z(Nr, "styles", Q`
|
|
3338
3236
|
/* layer: preflights */
|
|
3339
3237
|
*,::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
3238
|
*,: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}
|
|
@@ -3907,6 +3805,7 @@ Z(Br, "properties", {
|
|
|
3907
3805
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
3908
3806
|
.pb-32{padding-bottom:3.2rem;}
|
|
3909
3807
|
.pb-4{padding-bottom:0.4rem;}
|
|
3808
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
3910
3809
|
.pb-8{padding-bottom:0.8rem;}
|
|
3911
3810
|
.pl-0{padding-left:0rem;}
|
|
3912
3811
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -3922,6 +3821,7 @@ Z(Br, "properties", {
|
|
|
3922
3821
|
.pr-40{padding-right:4rem;}
|
|
3923
3822
|
.pt-0{padding-top:0rem;}
|
|
3924
3823
|
.pt-1{padding-top:0.1rem;}
|
|
3824
|
+
.pt-4{padding-top:0.4rem;}
|
|
3925
3825
|
.pt-8{padding-top:0.8rem;}
|
|
3926
3826
|
.invisible{visibility:hidden;}
|
|
3927
3827
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -3956,6 +3856,7 @@ Z(Br, "properties", {
|
|
|
3956
3856
|
.duration-300{transition-duration:300ms;}
|
|
3957
3857
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
3958
3858
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
3859
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
3959
3860
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
3960
3861
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
3961
3862
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -3984,26 +3885,26 @@ Z(Br, "properties", {
|
|
|
3984
3885
|
.sm\\:pt-32{padding-top:3.2rem;}
|
|
3985
3886
|
}
|
|
3986
3887
|
`);
|
|
3987
|
-
customElements.get("w-badge") || customElements.define("w-badge",
|
|
3988
|
-
class
|
|
3888
|
+
customElements.get("w-badge") || customElements.define("w-badge", Nr);
|
|
3889
|
+
class Br extends H {
|
|
3989
3890
|
get _class() {
|
|
3990
3891
|
return V({
|
|
3991
|
-
[
|
|
3992
|
-
[
|
|
3993
|
-
[
|
|
3994
|
-
[
|
|
3995
|
-
[
|
|
3892
|
+
[lo.box]: !0,
|
|
3893
|
+
[lo.bleed]: this.bleed,
|
|
3894
|
+
[lo.info]: this.info,
|
|
3895
|
+
[lo.neutral]: this.neutral,
|
|
3896
|
+
[lo.bordered]: this.bordered
|
|
3996
3897
|
});
|
|
3997
3898
|
}
|
|
3998
3899
|
render() {
|
|
3999
|
-
return
|
|
3900
|
+
return $`
|
|
4000
3901
|
<div class="${this._class}">
|
|
4001
3902
|
<slot></slot>
|
|
4002
3903
|
</div>
|
|
4003
3904
|
`;
|
|
4004
3905
|
}
|
|
4005
3906
|
}
|
|
4006
|
-
Z(
|
|
3907
|
+
Z(Br, "properties", {
|
|
4007
3908
|
bleed: { type: Boolean },
|
|
4008
3909
|
bordered: { type: Boolean },
|
|
4009
3910
|
info: { type: Boolean },
|
|
@@ -4012,7 +3913,7 @@ Z(Nr, "properties", {
|
|
|
4012
3913
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
4013
3914
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
4014
3915
|
// https://stackoverflow.com/a/61631668
|
|
4015
|
-
Z(
|
|
3916
|
+
Z(Br, "styles", Q`
|
|
4016
3917
|
/* layer: preflights */
|
|
4017
3918
|
*,::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
3919
|
*,: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}
|
|
@@ -4585,6 +4486,7 @@ Z(Nr, "styles", Q`
|
|
|
4585
4486
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
4586
4487
|
.pb-32{padding-bottom:3.2rem;}
|
|
4587
4488
|
.pb-4{padding-bottom:0.4rem;}
|
|
4489
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
4588
4490
|
.pb-8{padding-bottom:0.8rem;}
|
|
4589
4491
|
.pl-0{padding-left:0rem;}
|
|
4590
4492
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -4600,6 +4502,7 @@ Z(Nr, "styles", Q`
|
|
|
4600
4502
|
.pr-40{padding-right:4rem;}
|
|
4601
4503
|
.pt-0{padding-top:0rem;}
|
|
4602
4504
|
.pt-1{padding-top:0.1rem;}
|
|
4505
|
+
.pt-4{padding-top:0.4rem;}
|
|
4603
4506
|
.pt-8{padding-top:0.8rem;}
|
|
4604
4507
|
.invisible{visibility:hidden;}
|
|
4605
4508
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -4634,6 +4537,7 @@ Z(Nr, "styles", Q`
|
|
|
4634
4537
|
.duration-300{transition-duration:300ms;}
|
|
4635
4538
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
4636
4539
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
4540
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
4637
4541
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
4638
4542
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
4639
4543
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -4668,15 +4572,15 @@ Z(Nr, "styles", Q`
|
|
|
4668
4572
|
margin-bottom: 0 !important;
|
|
4669
4573
|
}
|
|
4670
4574
|
`);
|
|
4671
|
-
customElements.get("w-box") || customElements.define("w-box",
|
|
4672
|
-
function
|
|
4575
|
+
customElements.get("w-box") || customElements.define("w-box", Br);
|
|
4576
|
+
function ta(r, o) {
|
|
4673
4577
|
return r.flatMap((e) => [e, o]).slice(0, -1);
|
|
4674
4578
|
}
|
|
4675
4579
|
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4676
|
-
function
|
|
4580
|
+
function aa(r) {
|
|
4677
4581
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
4678
4582
|
}
|
|
4679
|
-
var
|
|
4583
|
+
var et = {}, tt = {};
|
|
4680
4584
|
(function(r) {
|
|
4681
4585
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.errorMessages = r.ErrorType = void 0;
|
|
4682
4586
|
var o;
|
|
@@ -4698,10 +4602,10 @@ var at = {}, ct = {};
|
|
|
4698
4602
|
],
|
|
4699
4603
|
[o.EndOfString, "malformed escape sequence at end of string"]
|
|
4700
4604
|
]);
|
|
4701
|
-
})(
|
|
4605
|
+
})(tt);
|
|
4702
4606
|
(function(r) {
|
|
4703
4607
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.unraw = r.errorMessages = r.ErrorType = void 0;
|
|
4704
|
-
const o =
|
|
4608
|
+
const o = tt;
|
|
4705
4609
|
Object.defineProperty(r, "ErrorType", { enumerable: !0, get: function() {
|
|
4706
4610
|
return o.ErrorType;
|
|
4707
4611
|
} }), Object.defineProperty(r, "errorMessages", { enumerable: !0, get: function() {
|
|
@@ -4710,20 +4614,20 @@ var at = {}, ct = {};
|
|
|
4710
4614
|
function e(g) {
|
|
4711
4615
|
return !g.match(/[^a-f0-9]/i) ? parseInt(g, 16) : NaN;
|
|
4712
4616
|
}
|
|
4713
|
-
function t(g,
|
|
4617
|
+
function t(g, h, x) {
|
|
4714
4618
|
const z = e(g);
|
|
4715
4619
|
if (Number.isNaN(z) || x !== void 0 && x !== g.length)
|
|
4716
|
-
throw new SyntaxError(o.errorMessages.get(
|
|
4620
|
+
throw new SyntaxError(o.errorMessages.get(h));
|
|
4717
4621
|
return z;
|
|
4718
4622
|
}
|
|
4719
4623
|
function a(g) {
|
|
4720
|
-
const
|
|
4721
|
-
return String.fromCharCode(
|
|
4624
|
+
const h = t(g, o.ErrorType.MalformedHexadecimal, 2);
|
|
4625
|
+
return String.fromCharCode(h);
|
|
4722
4626
|
}
|
|
4723
|
-
function c(g,
|
|
4627
|
+
function c(g, h) {
|
|
4724
4628
|
const x = t(g, o.ErrorType.MalformedUnicode, 4);
|
|
4725
|
-
if (
|
|
4726
|
-
const z = t(
|
|
4629
|
+
if (h !== void 0) {
|
|
4630
|
+
const z = t(h, o.ErrorType.MalformedUnicode, 4);
|
|
4727
4631
|
return String.fromCharCode(x, z);
|
|
4728
4632
|
}
|
|
4729
4633
|
return String.fromCharCode(x);
|
|
@@ -4734,15 +4638,15 @@ var at = {}, ct = {};
|
|
|
4734
4638
|
function l(g) {
|
|
4735
4639
|
if (!i(g))
|
|
4736
4640
|
throw new SyntaxError(o.errorMessages.get(o.ErrorType.MalformedUnicode));
|
|
4737
|
-
const
|
|
4641
|
+
const h = g.slice(1, -1), x = t(h, o.ErrorType.MalformedUnicode);
|
|
4738
4642
|
try {
|
|
4739
4643
|
return String.fromCodePoint(x);
|
|
4740
4644
|
} catch (z) {
|
|
4741
4645
|
throw z instanceof RangeError ? new SyntaxError(o.errorMessages.get(o.ErrorType.CodePointLimit)) : z;
|
|
4742
4646
|
}
|
|
4743
4647
|
}
|
|
4744
|
-
function n(g,
|
|
4745
|
-
if (
|
|
4648
|
+
function n(g, h = !1) {
|
|
4649
|
+
if (h)
|
|
4746
4650
|
throw new SyntaxError(o.errorMessages.get(o.ErrorType.OctalDeprecation));
|
|
4747
4651
|
const x = parseInt(g, 8);
|
|
4748
4652
|
return String.fromCharCode(x);
|
|
@@ -4761,31 +4665,31 @@ var at = {}, ct = {};
|
|
|
4761
4665
|
return b.get(g) || g;
|
|
4762
4666
|
}
|
|
4763
4667
|
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
|
|
4765
|
-
return g.replace(u, function(x, z,
|
|
4668
|
+
function p(g, h = !1) {
|
|
4669
|
+
return g.replace(u, function(x, z, A, T, D, L, ao, W, C) {
|
|
4766
4670
|
if (z !== void 0)
|
|
4767
4671
|
return "\\";
|
|
4768
|
-
if (
|
|
4769
|
-
return a(
|
|
4770
|
-
if (
|
|
4771
|
-
return l(
|
|
4672
|
+
if (A !== void 0)
|
|
4673
|
+
return a(A);
|
|
4674
|
+
if (T !== void 0)
|
|
4675
|
+
return l(T);
|
|
4772
4676
|
if (D !== void 0)
|
|
4773
|
-
return c(D,
|
|
4774
|
-
if (
|
|
4775
|
-
return c(
|
|
4677
|
+
return c(D, L);
|
|
4678
|
+
if (ao !== void 0)
|
|
4679
|
+
return c(ao);
|
|
4776
4680
|
if (W === "0")
|
|
4777
4681
|
return "\0";
|
|
4778
4682
|
if (W !== void 0)
|
|
4779
|
-
return n(W, !
|
|
4683
|
+
return n(W, !h);
|
|
4780
4684
|
if (C !== void 0)
|
|
4781
4685
|
return v(C);
|
|
4782
4686
|
throw new SyntaxError(o.errorMessages.get(o.ErrorType.EndOfString));
|
|
4783
4687
|
});
|
|
4784
4688
|
}
|
|
4785
|
-
r.unraw =
|
|
4786
|
-
})(
|
|
4787
|
-
const
|
|
4788
|
-
var Wo = {},
|
|
4689
|
+
r.unraw = p, r.default = p;
|
|
4690
|
+
})(et);
|
|
4691
|
+
const ca = /* @__PURE__ */ aa(et);
|
|
4692
|
+
var Wo = {}, at = {}, ct = { exports: {} };
|
|
4789
4693
|
(function(r) {
|
|
4790
4694
|
(function(o, e) {
|
|
4791
4695
|
r.exports ? r.exports = e() : o.moo = e();
|
|
@@ -4834,11 +4738,11 @@ var Wo = {}, it = {}, lt = { exports: {} };
|
|
|
4834
4738
|
function u(d, s) {
|
|
4835
4739
|
return d.length > s ? d : Array(s - d.length + 1).join(" ") + d;
|
|
4836
4740
|
}
|
|
4837
|
-
function
|
|
4741
|
+
function p(d, s) {
|
|
4838
4742
|
for (var w = d.length, y = 0; ; ) {
|
|
4839
|
-
var
|
|
4743
|
+
var X = d.lastIndexOf(`
|
|
4840
4744
|
`, w - 1);
|
|
4841
|
-
if (
|
|
4745
|
+
if (X === -1 || (y++, w = X, y === s) || w === 0)
|
|
4842
4746
|
break;
|
|
4843
4747
|
}
|
|
4844
4748
|
var _ = y < s ? 0 : w + 1;
|
|
@@ -4847,25 +4751,25 @@ var Wo = {}, it = {}, lt = { exports: {} };
|
|
|
4847
4751
|
}
|
|
4848
4752
|
function g(d) {
|
|
4849
4753
|
for (var s = Object.getOwnPropertyNames(d), w = [], y = 0; y < s.length; y++) {
|
|
4850
|
-
var
|
|
4851
|
-
if (
|
|
4852
|
-
for (var
|
|
4853
|
-
w.push({ include: j[
|
|
4754
|
+
var X = s[y], _ = d[X], j = [].concat(_);
|
|
4755
|
+
if (X === "include") {
|
|
4756
|
+
for (var M = 0; M < j.length; M++)
|
|
4757
|
+
w.push({ include: j[M] });
|
|
4854
4758
|
continue;
|
|
4855
4759
|
}
|
|
4856
|
-
var
|
|
4760
|
+
var E = [];
|
|
4857
4761
|
j.forEach(function(q) {
|
|
4858
|
-
c(q) ? (
|
|
4859
|
-
}),
|
|
4762
|
+
c(q) ? (E.length && w.push(x(X, E)), w.push(x(X, q)), E = []) : E.push(q);
|
|
4763
|
+
}), E.length && w.push(x(X, E));
|
|
4860
4764
|
}
|
|
4861
4765
|
return w;
|
|
4862
4766
|
}
|
|
4863
|
-
function
|
|
4767
|
+
function h(d) {
|
|
4864
4768
|
for (var s = [], w = 0; w < d.length; w++) {
|
|
4865
4769
|
var y = d[w];
|
|
4866
4770
|
if (y.include) {
|
|
4867
|
-
for (var
|
|
4868
|
-
s.push({ include:
|
|
4771
|
+
for (var X = [].concat(y.include), _ = 0; _ < X.length; _++)
|
|
4772
|
+
s.push({ include: X[_] });
|
|
4869
4773
|
continue;
|
|
4870
4774
|
}
|
|
4871
4775
|
if (!y.type)
|
|
@@ -4893,20 +4797,20 @@ var Wo = {}, it = {}, lt = { exports: {} };
|
|
|
4893
4797
|
o.call(s, y) && (w[y] = s[y]);
|
|
4894
4798
|
if (typeof w.type == "string" && d !== w.type)
|
|
4895
4799
|
throw new Error("Type transform cannot be a string (type '" + w.type + "' for token '" + d + "')");
|
|
4896
|
-
var
|
|
4897
|
-
return w.match = Array.isArray(
|
|
4800
|
+
var X = w.match;
|
|
4801
|
+
return w.match = Array.isArray(X) ? X : X ? [X] : [], w.match.sort(function(_, j) {
|
|
4898
4802
|
return a(_) && a(j) ? 0 : a(j) ? -1 : a(_) ? 1 : j.length - _.length;
|
|
4899
4803
|
}), w;
|
|
4900
4804
|
}
|
|
4901
4805
|
function z(d) {
|
|
4902
|
-
return Array.isArray(d) ?
|
|
4806
|
+
return Array.isArray(d) ? h(d) : g(d);
|
|
4903
4807
|
}
|
|
4904
|
-
var
|
|
4905
|
-
function
|
|
4906
|
-
for (var w = null, y = /* @__PURE__ */ Object.create(null),
|
|
4907
|
-
d[
|
|
4908
|
-
for (var
|
|
4909
|
-
var q = d[
|
|
4808
|
+
var A = x("error", { lineBreaks: !0, shouldThrow: !0 });
|
|
4809
|
+
function T(d, s) {
|
|
4810
|
+
for (var w = null, y = /* @__PURE__ */ Object.create(null), X = !0, _ = null, j = [], M = [], E = 0; E < d.length; E++)
|
|
4811
|
+
d[E].fallback && (X = !1);
|
|
4812
|
+
for (var E = 0; E < d.length; E++) {
|
|
4813
|
+
var q = d[E];
|
|
4910
4814
|
if (q.include)
|
|
4911
4815
|
throw new Error("Inheritance is not allowed in stateless lexers");
|
|
4912
4816
|
if (q.error || q.fallback) {
|
|
@@ -4914,11 +4818,11 @@ var Wo = {}, it = {}, lt = { exports: {} };
|
|
|
4914
4818
|
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
4819
|
w = q;
|
|
4916
4820
|
}
|
|
4917
|
-
var
|
|
4918
|
-
if (
|
|
4919
|
-
for (;
|
|
4920
|
-
var
|
|
4921
|
-
y[
|
|
4821
|
+
var I = q.match.slice();
|
|
4822
|
+
if (X)
|
|
4823
|
+
for (; I.length && typeof I[0] == "string" && I[0].length === 1; ) {
|
|
4824
|
+
var ho = I.shift();
|
|
4825
|
+
y[ho.charCodeAt(0)] = q;
|
|
4922
4826
|
}
|
|
4923
4827
|
if (q.pop || q.push || q.next) {
|
|
4924
4828
|
if (!s)
|
|
@@ -4926,96 +4830,96 @@ var Wo = {}, it = {}, lt = { exports: {} };
|
|
|
4926
4830
|
if (q.fallback)
|
|
4927
4831
|
throw new Error("State-switching options are not allowed on fallback tokens (for token '" + q.defaultType + "')");
|
|
4928
4832
|
}
|
|
4929
|
-
if (
|
|
4930
|
-
|
|
4931
|
-
for (var
|
|
4932
|
-
var
|
|
4933
|
-
if (a(
|
|
4833
|
+
if (I.length !== 0) {
|
|
4834
|
+
X = !1, j.push(q);
|
|
4835
|
+
for (var wo = 0; wo < I.length; wo++) {
|
|
4836
|
+
var xo = I[wo];
|
|
4837
|
+
if (a(xo)) {
|
|
4934
4838
|
if (_ === null)
|
|
4935
|
-
_ =
|
|
4936
|
-
else if (_ !==
|
|
4839
|
+
_ = xo.unicode;
|
|
4840
|
+
else if (_ !== xo.unicode && q.fallback === !1)
|
|
4937
4841
|
throw new Error("If one rule is /u then all must be");
|
|
4938
4842
|
}
|
|
4939
4843
|
}
|
|
4940
|
-
var
|
|
4941
|
-
if (
|
|
4942
|
-
throw new Error("RegExp matches empty string: " +
|
|
4943
|
-
var
|
|
4944
|
-
if (
|
|
4945
|
-
throw new Error("RegExp has capture groups: " +
|
|
4844
|
+
var Xo = b(I.map(v)), J = new RegExp(Xo);
|
|
4845
|
+
if (J.test(""))
|
|
4846
|
+
throw new Error("RegExp matches empty string: " + J);
|
|
4847
|
+
var Lo = l(Xo);
|
|
4848
|
+
if (Lo > 0)
|
|
4849
|
+
throw new Error("RegExp has capture groups: " + J + `
|
|
4946
4850
|
Use (?: … ) instead`);
|
|
4947
|
-
if (!q.lineBreaks &&
|
|
4851
|
+
if (!q.lineBreaks && J.test(`
|
|
4948
4852
|
`))
|
|
4949
|
-
throw new Error("Rule should declare lineBreaks: " +
|
|
4950
|
-
|
|
4853
|
+
throw new Error("Rule should declare lineBreaks: " + J);
|
|
4854
|
+
M.push(n(Xo));
|
|
4951
4855
|
}
|
|
4952
4856
|
}
|
|
4953
|
-
var
|
|
4954
|
-
_ === !0 && (
|
|
4955
|
-
var
|
|
4956
|
-
return { regexp:
|
|
4857
|
+
var jo = w && w.fallback, Oo = t && !jo ? "ym" : "gm", tr = t || jo ? "" : "|";
|
|
4858
|
+
_ === !0 && (Oo += "u");
|
|
4859
|
+
var yt = new RegExp(b(M) + tr, Oo);
|
|
4860
|
+
return { regexp: yt, groups: j, fast: y, error: w || A };
|
|
4957
4861
|
}
|
|
4958
4862
|
function D(d) {
|
|
4959
|
-
var s =
|
|
4863
|
+
var s = T(z(d));
|
|
4960
4864
|
return new C({ start: s }, "start");
|
|
4961
4865
|
}
|
|
4962
|
-
function
|
|
4866
|
+
function L(d, s, w) {
|
|
4963
4867
|
var y = d && (d.push || d.next);
|
|
4964
4868
|
if (y && !w[y])
|
|
4965
4869
|
throw new Error("Missing state '" + y + "' (in token '" + d.defaultType + "' of state '" + s + "')");
|
|
4966
4870
|
if (d && d.pop && +d.pop != 1)
|
|
4967
4871
|
throw new Error("pop must be 1 (in token '" + d.defaultType + "' of state '" + s + "')");
|
|
4968
4872
|
}
|
|
4969
|
-
function
|
|
4873
|
+
function ao(d, s) {
|
|
4970
4874
|
var w = d.$all ? z(d.$all) : [];
|
|
4971
4875
|
delete d.$all;
|
|
4972
4876
|
var y = Object.getOwnPropertyNames(d);
|
|
4973
4877
|
s || (s = y[0]);
|
|
4974
|
-
for (var
|
|
4878
|
+
for (var X = /* @__PURE__ */ Object.create(null), _ = 0; _ < y.length; _++) {
|
|
4975
4879
|
var j = y[_];
|
|
4976
|
-
|
|
4880
|
+
X[j] = z(d[j]).concat(w);
|
|
4977
4881
|
}
|
|
4978
4882
|
for (var _ = 0; _ < y.length; _++)
|
|
4979
|
-
for (var j = y[_],
|
|
4980
|
-
var
|
|
4981
|
-
if (
|
|
4982
|
-
var
|
|
4983
|
-
if (
|
|
4984
|
-
|
|
4985
|
-
var
|
|
4986
|
-
if (!
|
|
4987
|
-
throw new Error("Cannot include nonexistent state '" +
|
|
4988
|
-
for (var
|
|
4989
|
-
var
|
|
4990
|
-
|
|
4883
|
+
for (var j = y[_], M = X[j], E = /* @__PURE__ */ Object.create(null), q = 0; q < M.length; q++) {
|
|
4884
|
+
var I = M[q];
|
|
4885
|
+
if (I.include) {
|
|
4886
|
+
var ho = [q, 1];
|
|
4887
|
+
if (I.include !== j && !E[I.include]) {
|
|
4888
|
+
E[I.include] = !0;
|
|
4889
|
+
var wo = X[I.include];
|
|
4890
|
+
if (!wo)
|
|
4891
|
+
throw new Error("Cannot include nonexistent state '" + I.include + "' (in state '" + j + "')");
|
|
4892
|
+
for (var xo = 0; xo < wo.length; xo++) {
|
|
4893
|
+
var Xo = wo[xo];
|
|
4894
|
+
M.indexOf(Xo) === -1 && ho.push(Xo);
|
|
4991
4895
|
}
|
|
4992
4896
|
}
|
|
4993
|
-
|
|
4897
|
+
M.splice.apply(M, ho), q--;
|
|
4994
4898
|
}
|
|
4995
4899
|
}
|
|
4996
|
-
for (var
|
|
4900
|
+
for (var J = /* @__PURE__ */ Object.create(null), _ = 0; _ < y.length; _++) {
|
|
4997
4901
|
var j = y[_];
|
|
4998
|
-
|
|
4902
|
+
J[j] = T(X[j], !0);
|
|
4999
4903
|
}
|
|
5000
4904
|
for (var _ = 0; _ < y.length; _++) {
|
|
5001
|
-
for (var
|
|
5002
|
-
|
|
5003
|
-
for (var tr = Object.getOwnPropertyNames(
|
|
5004
|
-
|
|
4905
|
+
for (var Lo = y[_], jo = J[Lo], Oo = jo.groups, q = 0; q < Oo.length; q++)
|
|
4906
|
+
L(Oo[q], Lo, J);
|
|
4907
|
+
for (var tr = Object.getOwnPropertyNames(jo.fast), q = 0; q < tr.length; q++)
|
|
4908
|
+
L(jo.fast[tr[q]], Lo, J);
|
|
5005
4909
|
}
|
|
5006
|
-
return new C(
|
|
4910
|
+
return new C(J, s);
|
|
5007
4911
|
}
|
|
5008
4912
|
function W(d) {
|
|
5009
|
-
for (var s = typeof Map < "u", w = s ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), y = Object.getOwnPropertyNames(d),
|
|
5010
|
-
var _ = y[
|
|
5011
|
-
|
|
5012
|
-
if (typeof
|
|
4913
|
+
for (var s = typeof Map < "u", w = s ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), y = Object.getOwnPropertyNames(d), X = 0; X < y.length; X++) {
|
|
4914
|
+
var _ = y[X], j = d[_], M = Array.isArray(j) ? j : [j];
|
|
4915
|
+
M.forEach(function(E) {
|
|
4916
|
+
if (typeof E != "string")
|
|
5013
4917
|
throw new Error("keyword must be string (in keyword '" + _ + "')");
|
|
5014
|
-
s ? w.set(
|
|
4918
|
+
s ? w.set(E, _) : w[E] = _;
|
|
5015
4919
|
});
|
|
5016
4920
|
}
|
|
5017
|
-
return function(
|
|
5018
|
-
return s ? w.get(
|
|
4921
|
+
return function(E) {
|
|
4922
|
+
return s ? w.get(E) : w[E];
|
|
5019
4923
|
};
|
|
5020
4924
|
}
|
|
5021
4925
|
var C = function(d, s) {
|
|
@@ -5072,22 +4976,22 @@ Use (?: … ) instead`);
|
|
|
5072
4976
|
return this._token(j, w.charAt(d), d);
|
|
5073
4977
|
var y = this.re;
|
|
5074
4978
|
y.lastIndex = d;
|
|
5075
|
-
var
|
|
5076
|
-
if (
|
|
4979
|
+
var X = R(y, w), _ = this.error;
|
|
4980
|
+
if (X == null)
|
|
5077
4981
|
return this._token(_, w.slice(d, w.length), d);
|
|
5078
|
-
var j = this._getGroup(
|
|
5079
|
-
return _.fallback &&
|
|
4982
|
+
var j = this._getGroup(X), M = X[0];
|
|
4983
|
+
return _.fallback && X.index !== d ? (this.queuedGroup = j, this.queuedText = M, this._token(_, w.slice(d, X.index), d)) : this._token(j, M, d);
|
|
5080
4984
|
}
|
|
5081
4985
|
}, C.prototype._token = function(d, s, w) {
|
|
5082
4986
|
var y = 0;
|
|
5083
4987
|
if (d.lineBreaks) {
|
|
5084
|
-
var
|
|
4988
|
+
var X = /\n/g, _ = 1;
|
|
5085
4989
|
if (s === `
|
|
5086
4990
|
`)
|
|
5087
4991
|
y = 1;
|
|
5088
4992
|
else
|
|
5089
|
-
for (;
|
|
5090
|
-
y++, _ =
|
|
4993
|
+
for (; X.exec(s); )
|
|
4994
|
+
y++, _ = X.lastIndex;
|
|
5091
4995
|
}
|
|
5092
4996
|
var j = {
|
|
5093
4997
|
type: typeof d.type == "function" && d.type(s) || d.defaultType,
|
|
@@ -5098,23 +5002,23 @@ Use (?: … ) instead`);
|
|
|
5098
5002
|
lineBreaks: y,
|
|
5099
5003
|
line: this.line,
|
|
5100
5004
|
col: this.col
|
|
5101
|
-
},
|
|
5102
|
-
if (this.index +=
|
|
5103
|
-
var
|
|
5104
|
-
throw
|
|
5005
|
+
}, M = s.length;
|
|
5006
|
+
if (this.index += M, this.line += y, y !== 0 ? this.col = M - _ + 1 : this.col += M, d.shouldThrow) {
|
|
5007
|
+
var E = new Error(this.formatError(j, "invalid syntax"));
|
|
5008
|
+
throw E;
|
|
5105
5009
|
}
|
|
5106
5010
|
return d.pop ? this.popState() : d.push ? this.pushState(d.push) : d.next && this.setState(d.next), j;
|
|
5107
5011
|
}, typeof Symbol < "u" && Symbol.iterator) {
|
|
5108
|
-
var
|
|
5012
|
+
var oo = function(d) {
|
|
5109
5013
|
this.lexer = d;
|
|
5110
5014
|
};
|
|
5111
|
-
|
|
5015
|
+
oo.prototype.next = function() {
|
|
5112
5016
|
var d = this.lexer.next();
|
|
5113
5017
|
return { value: d, done: !d };
|
|
5114
|
-
},
|
|
5018
|
+
}, oo.prototype[Symbol.iterator] = function() {
|
|
5115
5019
|
return this;
|
|
5116
5020
|
}, C.prototype[Symbol.iterator] = function() {
|
|
5117
|
-
return new
|
|
5021
|
+
return new oo(this);
|
|
5118
5022
|
};
|
|
5119
5023
|
}
|
|
5120
5024
|
return C.prototype.formatError = function(d, s) {
|
|
@@ -5127,16 +5031,16 @@ Use (?: … ) instead`);
|
|
|
5127
5031
|
line: this.line,
|
|
5128
5032
|
col: this.col
|
|
5129
5033
|
};
|
|
5130
|
-
var y = 2,
|
|
5034
|
+
var y = 2, X = Math.max(d.line - y, 1), _ = d.line + y, j = String(_).length, M = p(
|
|
5131
5035
|
this.buffer,
|
|
5132
5036
|
this.line - d.line + y + 1
|
|
5133
|
-
).slice(0, 5),
|
|
5134
|
-
|
|
5135
|
-
for (var q = 0; q <
|
|
5136
|
-
var
|
|
5137
|
-
|
|
5037
|
+
).slice(0, 5), E = [];
|
|
5038
|
+
E.push(s + " at line " + d.line + " col " + d.col + ":"), E.push("");
|
|
5039
|
+
for (var q = 0; q < M.length; q++) {
|
|
5040
|
+
var I = M[q], ho = X + q;
|
|
5041
|
+
E.push(u(String(ho), j) + " " + I), ho === d.line && E.push(u("", j + d.col + 1) + "^");
|
|
5138
5042
|
}
|
|
5139
|
-
return
|
|
5043
|
+
return E.join(`
|
|
5140
5044
|
`);
|
|
5141
5045
|
}, C.prototype.clone = function() {
|
|
5142
5046
|
return new C(this.states, this.state);
|
|
@@ -5144,20 +5048,20 @@ Use (?: … ) instead`);
|
|
|
5144
5048
|
return !0;
|
|
5145
5049
|
}, {
|
|
5146
5050
|
compile: D,
|
|
5147
|
-
states:
|
|
5051
|
+
states: ao,
|
|
5148
5052
|
error: Object.freeze({ error: !0 }),
|
|
5149
5053
|
fallback: Object.freeze({ fallback: !0 }),
|
|
5150
5054
|
keywords: W
|
|
5151
5055
|
};
|
|
5152
5056
|
});
|
|
5153
|
-
})(
|
|
5154
|
-
var
|
|
5057
|
+
})(ct);
|
|
5058
|
+
var ia = ct.exports;
|
|
5155
5059
|
(function(r) {
|
|
5156
5060
|
var o = Dr && Dr.__importDefault || function(t) {
|
|
5157
5061
|
return t && t.__esModule ? t : { default: t };
|
|
5158
5062
|
};
|
|
5159
5063
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.lexer = r.states = void 0;
|
|
5160
|
-
const e = o(
|
|
5064
|
+
const e = o(ia);
|
|
5161
5065
|
r.states = {
|
|
5162
5066
|
body: {
|
|
5163
5067
|
doubleapos: { match: "''", value: () => "'" },
|
|
@@ -5211,17 +5115,17 @@ var xa = lt.exports;
|
|
|
5211
5115
|
end: { match: /\s*\}/u, pop: 1 }
|
|
5212
5116
|
}
|
|
5213
5117
|
}, r.lexer = e.default.states(r.states);
|
|
5214
|
-
})(
|
|
5118
|
+
})(at);
|
|
5215
5119
|
Object.defineProperty(Wo, "__esModule", { value: !0 });
|
|
5216
|
-
var
|
|
5217
|
-
const
|
|
5120
|
+
var it = Wo.parse = Wo.ParseError = void 0;
|
|
5121
|
+
const lt = at, ar = (r) => ({
|
|
5218
5122
|
offset: r.offset,
|
|
5219
5123
|
line: r.line,
|
|
5220
5124
|
col: r.col,
|
|
5221
5125
|
text: r.text,
|
|
5222
5126
|
lineBreaks: r.lineBreaks
|
|
5223
5127
|
}), Sr = (r) => r === "plural" || r === "select" || r === "selectordinal";
|
|
5224
|
-
function
|
|
5128
|
+
function la(r, o) {
|
|
5225
5129
|
let e = "", t = "";
|
|
5226
5130
|
for (const c of o) {
|
|
5227
5131
|
const i = c.ctx.text;
|
|
@@ -5244,25 +5148,25 @@ function ma(r, o) {
|
|
|
5244
5148
|
ctx: Object.assign({}, o[0].ctx, { text: t })
|
|
5245
5149
|
}];
|
|
5246
5150
|
}
|
|
5247
|
-
const
|
|
5151
|
+
const da = [
|
|
5248
5152
|
"number",
|
|
5249
5153
|
"date",
|
|
5250
5154
|
"time",
|
|
5251
5155
|
"spellout",
|
|
5252
5156
|
"ordinal",
|
|
5253
5157
|
"duration"
|
|
5254
|
-
],
|
|
5158
|
+
], _e = ["zero", "one", "two", "few", "many", "other"];
|
|
5255
5159
|
class P extends Error {
|
|
5256
5160
|
/** @internal */
|
|
5257
5161
|
constructor(o, e) {
|
|
5258
|
-
super(
|
|
5162
|
+
super(lt.lexer.formatError(o, e));
|
|
5259
5163
|
}
|
|
5260
5164
|
}
|
|
5261
5165
|
Wo.ParseError = P;
|
|
5262
|
-
class
|
|
5166
|
+
class na {
|
|
5263
5167
|
constructor(o, e) {
|
|
5264
5168
|
var t, a, c, i;
|
|
5265
|
-
this.lexer =
|
|
5169
|
+
this.lexer = lt.lexer.reset(o), this.cardinalKeys = (t = e == null ? void 0 : e.cardinal) !== null && t !== void 0 ? t : _e, this.ordinalKeys = (a = e == null ? void 0 : e.ordinal) !== null && a !== void 0 ? a : _e, 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
5170
|
}
|
|
5267
5171
|
parse() {
|
|
5268
5172
|
return this.parseBody(!1, !0);
|
|
@@ -5310,7 +5214,7 @@ class ka {
|
|
|
5310
5214
|
const t = ar(o), a = this.lexer.next();
|
|
5311
5215
|
if (!a)
|
|
5312
5216
|
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") && !
|
|
5217
|
+
if (t.text += a.text, t.lineBreaks += a.lineBreaks, this.strict && (a.type === "func-simple" || a.type === "func-args") && !da.includes(a.value)) {
|
|
5314
5218
|
const c = `Invalid strict mode function arg type: ${a.value}`;
|
|
5315
5219
|
throw new P(o, c);
|
|
5316
5220
|
}
|
|
@@ -5338,7 +5242,7 @@ class ka {
|
|
|
5338
5242
|
throw new P(a, i);
|
|
5339
5243
|
}
|
|
5340
5244
|
let c = this.parseBody(this.strict ? !1 : e);
|
|
5341
|
-
return this.strict && c.length > 0 && (c =
|
|
5245
|
+
return this.strict && c.length > 0 && (c = la(o, c)), {
|
|
5342
5246
|
type: "function",
|
|
5343
5247
|
arg: o.value,
|
|
5344
5248
|
key: a.value,
|
|
@@ -5382,11 +5286,11 @@ class ka {
|
|
|
5382
5286
|
throw new P(null, "Unexpected message end");
|
|
5383
5287
|
}
|
|
5384
5288
|
}
|
|
5385
|
-
function
|
|
5386
|
-
return new
|
|
5289
|
+
function ba(r, o = {}) {
|
|
5290
|
+
return new na(r, o).parse();
|
|
5387
5291
|
}
|
|
5388
|
-
|
|
5389
|
-
function
|
|
5292
|
+
it = Wo.parse = ba;
|
|
5293
|
+
function dt(r, o) {
|
|
5390
5294
|
return r.filter((e) => e.type !== "content").length ? r.map((e) => {
|
|
5391
5295
|
var c;
|
|
5392
5296
|
if (e.type === "content")
|
|
@@ -5401,7 +5305,7 @@ function bt(r, o) {
|
|
|
5401
5305
|
}
|
|
5402
5306
|
const t = e.pluralOffset, a = {};
|
|
5403
5307
|
return e.cases.forEach((i) => {
|
|
5404
|
-
a[i.key.replace(/^=(.)+/, "$1")] =
|
|
5308
|
+
a[i.key.replace(/^=(.)+/, "$1")] = dt(
|
|
5405
5309
|
i.tokens,
|
|
5406
5310
|
o
|
|
5407
5311
|
);
|
|
@@ -5415,25 +5319,25 @@ function bt(r, o) {
|
|
|
5415
5319
|
];
|
|
5416
5320
|
}) : r.map((e) => o(e.value)).join("");
|
|
5417
5321
|
}
|
|
5418
|
-
function
|
|
5322
|
+
function sa(r, o = (e) => e) {
|
|
5419
5323
|
try {
|
|
5420
|
-
return
|
|
5324
|
+
return dt(it(r), o);
|
|
5421
5325
|
} catch (e) {
|
|
5422
5326
|
return console.error(`${e.message}
|
|
5423
5327
|
|
|
5424
5328
|
Message: ${r}`), r;
|
|
5425
5329
|
}
|
|
5426
5330
|
}
|
|
5427
|
-
const
|
|
5331
|
+
const eo = (r) => typeof r == "string", ga = (r) => typeof r == "function", qe = /* @__PURE__ */ new Map();
|
|
5428
5332
|
function le(r) {
|
|
5429
5333
|
return [...Array.isArray(r) ? r : [r], "en"];
|
|
5430
5334
|
}
|
|
5431
|
-
function
|
|
5335
|
+
function nt(r, o, e) {
|
|
5432
5336
|
const t = le(r);
|
|
5433
5337
|
return xr(
|
|
5434
5338
|
() => mr("date", t, e),
|
|
5435
5339
|
() => new Intl.DateTimeFormat(t, e)
|
|
5436
|
-
).format(
|
|
5340
|
+
).format(eo(o) ? new Date(o) : o);
|
|
5437
5341
|
}
|
|
5438
5342
|
function Rr(r, o, e) {
|
|
5439
5343
|
const t = le(r);
|
|
@@ -5454,16 +5358,16 @@ function Ye(r, o, e, { offset: t = 0, ...a }) {
|
|
|
5454
5358
|
}
|
|
5455
5359
|
function xr(r, o) {
|
|
5456
5360
|
const e = r();
|
|
5457
|
-
let t =
|
|
5458
|
-
return t || (t = o(),
|
|
5361
|
+
let t = qe.get(e);
|
|
5362
|
+
return t || (t = o(), qe.set(e, t)), t;
|
|
5459
5363
|
}
|
|
5460
5364
|
function mr(r, o, e) {
|
|
5461
5365
|
const t = o.join("-");
|
|
5462
5366
|
return `${r}-${t}-${JSON.stringify(e)}`;
|
|
5463
5367
|
}
|
|
5464
|
-
const
|
|
5368
|
+
const bt = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g, ua = (r, o, e = {}) => {
|
|
5465
5369
|
o = o || r;
|
|
5466
|
-
const t = (c) =>
|
|
5370
|
+
const t = (c) => eo(c) ? e[c] || { style: c } : c, a = (c, i) => {
|
|
5467
5371
|
const l = Object.keys(e).length ? t("number") : {}, n = Rr(o, c, l);
|
|
5468
5372
|
return i.replace("#", n);
|
|
5469
5373
|
};
|
|
@@ -5478,30 +5382,30 @@ const gt = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g, _a = (r, o, e = {}) => {
|
|
|
5478
5382
|
},
|
|
5479
5383
|
select: (c, i) => i[c] ?? i.other,
|
|
5480
5384
|
number: (c, i) => Rr(o, c, t(i)),
|
|
5481
|
-
date: (c, i) =>
|
|
5385
|
+
date: (c, i) => nt(o, c, t(i)),
|
|
5482
5386
|
undefined: (c) => c
|
|
5483
5387
|
};
|
|
5484
5388
|
};
|
|
5485
|
-
function
|
|
5389
|
+
function va(r, o, e) {
|
|
5486
5390
|
return (t, a = {}) => {
|
|
5487
|
-
const c =
|
|
5488
|
-
if (
|
|
5391
|
+
const c = ua(o, e, a), i = (n) => Array.isArray(n) ? n.reduce((b, v) => {
|
|
5392
|
+
if (eo(v))
|
|
5489
5393
|
return b + v;
|
|
5490
|
-
const [u,
|
|
5491
|
-
let
|
|
5492
|
-
g != null && !
|
|
5493
|
-
|
|
5494
|
-
}) :
|
|
5495
|
-
const x = c[
|
|
5394
|
+
const [u, p, g] = v;
|
|
5395
|
+
let h = {};
|
|
5396
|
+
g != null && !eo(g) ? Object.keys(g).forEach((z) => {
|
|
5397
|
+
h[z] = i(g[z]);
|
|
5398
|
+
}) : h = g;
|
|
5399
|
+
const x = c[p](t[u], h);
|
|
5496
5400
|
return x == null ? b : b + x;
|
|
5497
5401
|
}, "") : n, l = i(r);
|
|
5498
|
-
return
|
|
5402
|
+
return eo(l) && bt.test(l) ? ca(l.trim()) : eo(l) ? l.trim() : l;
|
|
5499
5403
|
};
|
|
5500
5404
|
}
|
|
5501
|
-
var
|
|
5502
|
-
class
|
|
5405
|
+
var pa = Object.defineProperty, ha = (r, o, e) => o in r ? pa(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, wa = (r, o, e) => (ha(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
5406
|
+
class xa {
|
|
5503
5407
|
constructor() {
|
|
5504
|
-
|
|
5408
|
+
wa(this, "_events", {});
|
|
5505
5409
|
}
|
|
5506
5410
|
on(o, e) {
|
|
5507
5411
|
return this._hasEvent(o) || (this._events[o] = []), this._events[o].push(e), () => this.removeListener(o, e);
|
|
@@ -5519,10 +5423,10 @@ class Za {
|
|
|
5519
5423
|
return Array.isArray(this._events[o]);
|
|
5520
5424
|
}
|
|
5521
5425
|
}
|
|
5522
|
-
var
|
|
5523
|
-
class
|
|
5426
|
+
var ma = Object.defineProperty, fa = (r, o, e) => o in r ? ma(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, So = (r, o, e) => (fa(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
5427
|
+
class ka extends xa {
|
|
5524
5428
|
constructor(o) {
|
|
5525
|
-
super(),
|
|
5429
|
+
super(), So(this, "_locale"), So(this, "_locales"), So(this, "_localeData"), So(this, "_messages"), So(this, "_missing"), So(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
5430
|
}
|
|
5527
5431
|
get locale() {
|
|
5528
5432
|
return this._locale;
|
|
@@ -5568,50 +5472,50 @@ class Ea extends Za {
|
|
|
5568
5472
|
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
5473
|
}
|
|
5570
5474
|
_(o, e = {}, { message: t, formats: a } = {}) {
|
|
5571
|
-
|
|
5475
|
+
eo(o) || (e = o.values || e, t = o.message, o = o.id);
|
|
5572
5476
|
const c = !this.messages[o], i = this._missing;
|
|
5573
5477
|
if (i && c)
|
|
5574
|
-
return
|
|
5478
|
+
return ga(i) ? i(this._locale, o) : i;
|
|
5575
5479
|
c && this.emit("missing", { id: o, locale: this._locale });
|
|
5576
5480
|
let l = this.messages[o] || t || o;
|
|
5577
|
-
return process.env.NODE_ENV !== "production" && (l =
|
|
5481
|
+
return process.env.NODE_ENV !== "production" && (l = eo(l) ? sa(l) : l), eo(l) && bt.test(l) ? JSON.parse(`"${l}"`) : eo(l) ? l : va(
|
|
5578
5482
|
l,
|
|
5579
5483
|
this._locale,
|
|
5580
5484
|
this._locales
|
|
5581
5485
|
)(e, a);
|
|
5582
5486
|
}
|
|
5583
5487
|
date(o, e) {
|
|
5584
|
-
return
|
|
5488
|
+
return nt(this._locales || this._locale, o, e);
|
|
5585
5489
|
}
|
|
5586
5490
|
number(o, e) {
|
|
5587
5491
|
return Rr(this._locales || this._locale, o, e);
|
|
5588
5492
|
}
|
|
5589
5493
|
}
|
|
5590
|
-
function
|
|
5591
|
-
return new
|
|
5494
|
+
function $a(r = {}) {
|
|
5495
|
+
return new ka(r);
|
|
5592
5496
|
}
|
|
5593
|
-
const Vo =
|
|
5497
|
+
const Vo = $a(), ya = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}'), za = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}'), _a = JSON.parse('{"breadcrumbs.ariaLabel":"Olet tässä"}'), qa = ["en", "nb", "fi"], st = "en", Xe = (r) => qa.find(
|
|
5594
5498
|
(o) => r === o || r.toLowerCase().includes(o)
|
|
5595
|
-
) ||
|
|
5596
|
-
function
|
|
5499
|
+
) || st;
|
|
5500
|
+
function Ya() {
|
|
5597
5501
|
if (typeof window > "u") {
|
|
5598
5502
|
const r = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
|
|
5599
|
-
return
|
|
5503
|
+
return Xe(r);
|
|
5600
5504
|
}
|
|
5601
5505
|
try {
|
|
5602
5506
|
const r = document.documentElement.lang;
|
|
5603
|
-
return
|
|
5507
|
+
return Xe(r);
|
|
5604
5508
|
} catch (r) {
|
|
5605
|
-
return console.warn("could not detect locale, falling back to source locale", r),
|
|
5509
|
+
return console.warn("could not detect locale, falling back to source locale", r), st;
|
|
5606
5510
|
}
|
|
5607
5511
|
}
|
|
5608
|
-
const
|
|
5609
|
-
const t =
|
|
5512
|
+
const Xa = (r, o, e, t) => r === "nb" ? e : r === "fi" ? t : o, de = (r, o, e) => {
|
|
5513
|
+
const t = Ya(), a = Xa(t, r, o, e);
|
|
5610
5514
|
Vo.load(t, a), Vo.activate(t);
|
|
5611
|
-
},
|
|
5612
|
-
class Pr extends Ko(
|
|
5515
|
+
}, ja = $`<span class=${Eo.separator} aria-hidden='true'>/</span>`;
|
|
5516
|
+
class Pr extends Ko(H) {
|
|
5613
5517
|
constructor() {
|
|
5614
|
-
super(), de(
|
|
5518
|
+
super(), de(ya, za, _a), this.ariaLabel = Vo._(
|
|
5615
5519
|
{
|
|
5616
5520
|
id: "breadcrumbs.ariaLabel",
|
|
5617
5521
|
message: "You are here",
|
|
@@ -5624,14 +5528,14 @@ class Pr extends Ko(I) {
|
|
|
5624
5528
|
const e = Array.from(this.children).flat(1 / 0).filter((t) => t).map((t, a) => {
|
|
5625
5529
|
if (typeof t == "string") {
|
|
5626
5530
|
const c = a === children.length - 1;
|
|
5627
|
-
return
|
|
5531
|
+
return $`<span class=${Eo.text} aria-current=${c ? "page" : void 0}>${t}</span>`;
|
|
5628
5532
|
}
|
|
5629
5533
|
return t.classList.add(t.tagName === "A" ? Eo.link : Eo.text), t;
|
|
5630
5534
|
});
|
|
5631
|
-
this._children =
|
|
5535
|
+
this._children = ta(e, ja);
|
|
5632
5536
|
}
|
|
5633
5537
|
render() {
|
|
5634
|
-
return
|
|
5538
|
+
return $`
|
|
5635
5539
|
<nav aria-label=${this.ariaLabel}>
|
|
5636
5540
|
<h2 class=${Eo.a11y}>${this.ariaLabel}</h2>
|
|
5637
5541
|
<div class=${Eo.wrapper}>
|
|
@@ -6214,6 +6118,7 @@ Z(Pr, "styles", Q`
|
|
|
6214
6118
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
6215
6119
|
.pb-32{padding-bottom:3.2rem;}
|
|
6216
6120
|
.pb-4{padding-bottom:0.4rem;}
|
|
6121
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
6217
6122
|
.pb-8{padding-bottom:0.8rem;}
|
|
6218
6123
|
.pl-0{padding-left:0rem;}
|
|
6219
6124
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -6229,6 +6134,7 @@ Z(Pr, "styles", Q`
|
|
|
6229
6134
|
.pr-40{padding-right:4rem;}
|
|
6230
6135
|
.pt-0{padding-top:0rem;}
|
|
6231
6136
|
.pt-1{padding-top:0.1rem;}
|
|
6137
|
+
.pt-4{padding-top:0.4rem;}
|
|
6232
6138
|
.pt-8{padding-top:0.8rem;}
|
|
6233
6139
|
.invisible{visibility:hidden;}
|
|
6234
6140
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -6263,6 +6169,7 @@ Z(Pr, "styles", Q`
|
|
|
6263
6169
|
.duration-300{transition-duration:300ms;}
|
|
6264
6170
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
6265
6171
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
6172
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
6266
6173
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
6267
6174
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
6268
6175
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -6299,12 +6206,12 @@ customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", Pr
|
|
|
6299
6206
|
* Copyright 2020 Google LLC
|
|
6300
6207
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6301
6208
|
*/
|
|
6302
|
-
const { I:
|
|
6209
|
+
const { I: Za } = jt, je = () => document.createComment(""), Ro = (r, o, e) => {
|
|
6303
6210
|
var t;
|
|
6304
6211
|
const a = r._$AA.parentNode, c = o === void 0 ? r._$AB : o._$AA;
|
|
6305
6212
|
if (e === void 0) {
|
|
6306
|
-
const i = a.insertBefore(
|
|
6307
|
-
e = new
|
|
6213
|
+
const i = a.insertBefore(je(), c), l = a.insertBefore(je(), c);
|
|
6214
|
+
e = new Za(i, l, r, r.options);
|
|
6308
6215
|
} else {
|
|
6309
6216
|
const i = e._$AB.nextSibling, l = e._$AM, n = l !== r;
|
|
6310
6217
|
if (n) {
|
|
@@ -6320,7 +6227,7 @@ const { I: Ra } = St, Ze = () => document.createComment(""), Ro = (r, o, e) => {
|
|
|
6320
6227
|
}
|
|
6321
6228
|
}
|
|
6322
6229
|
return e;
|
|
6323
|
-
},
|
|
6230
|
+
}, yo = (r, o, e = r) => (r._$AI(o, e), r), Sa = {}, Ea = (r, o = Sa) => r._$AH = o, Aa = (r) => r._$AH, Er = (r) => {
|
|
6324
6231
|
var o;
|
|
6325
6232
|
(o = r._$AP) === null || o === void 0 || o.call(r, !1, !0);
|
|
6326
6233
|
let e = r._$AA;
|
|
@@ -6335,12 +6242,12 @@ const { I: Ra } = St, Ze = () => document.createComment(""), Ro = (r, o, e) => {
|
|
|
6335
6242
|
* Copyright 2017 Google LLC
|
|
6336
6243
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6337
6244
|
*/
|
|
6338
|
-
const
|
|
6245
|
+
const Ze = (r, o, e) => {
|
|
6339
6246
|
const t = /* @__PURE__ */ new Map();
|
|
6340
6247
|
for (let a = o; a <= e; a++)
|
|
6341
6248
|
t.set(r[a], a);
|
|
6342
6249
|
return t;
|
|
6343
|
-
},
|
|
6250
|
+
}, gt = te(class extends ae {
|
|
6344
6251
|
constructor(r) {
|
|
6345
6252
|
if (super(r), r.type !== ee.CHILD)
|
|
6346
6253
|
throw Error("repeat() can only be used in text expressions");
|
|
@@ -6359,58 +6266,58 @@ const Se = (r, o, e) => {
|
|
|
6359
6266
|
}
|
|
6360
6267
|
update(r, [o, e, t]) {
|
|
6361
6268
|
var a;
|
|
6362
|
-
const c =
|
|
6269
|
+
const c = Aa(r), { values: i, keys: l } = this.dt(o, e, t);
|
|
6363
6270
|
if (!Array.isArray(c))
|
|
6364
6271
|
return this.ht = l, i;
|
|
6365
6272
|
const n = (a = this.ht) !== null && a !== void 0 ? a : this.ht = [], b = [];
|
|
6366
|
-
let v, u,
|
|
6367
|
-
for (;
|
|
6368
|
-
if (c[
|
|
6369
|
-
|
|
6273
|
+
let v, u, p = 0, g = c.length - 1, h = 0, x = i.length - 1;
|
|
6274
|
+
for (; p <= g && h <= x; )
|
|
6275
|
+
if (c[p] === null)
|
|
6276
|
+
p++;
|
|
6370
6277
|
else if (c[g] === null)
|
|
6371
6278
|
g--;
|
|
6372
|
-
else if (n[
|
|
6373
|
-
b[
|
|
6279
|
+
else if (n[p] === l[h])
|
|
6280
|
+
b[h] = yo(c[p], i[h]), p++, h++;
|
|
6374
6281
|
else if (n[g] === l[x])
|
|
6375
|
-
b[x] =
|
|
6376
|
-
else if (n[
|
|
6377
|
-
b[x] =
|
|
6378
|
-
else if (n[g] === l[
|
|
6379
|
-
b[
|
|
6380
|
-
else if (v === void 0 && (v =
|
|
6282
|
+
b[x] = yo(c[g], i[x]), g--, x--;
|
|
6283
|
+
else if (n[p] === l[x])
|
|
6284
|
+
b[x] = yo(c[p], i[x]), Ro(r, b[x + 1], c[p]), p++, x--;
|
|
6285
|
+
else if (n[g] === l[h])
|
|
6286
|
+
b[h] = yo(c[g], i[h]), Ro(r, c[p], c[g]), g--, h++;
|
|
6287
|
+
else if (v === void 0 && (v = Ze(l, h, x), u = Ze(n, p, g)), v.has(n[p]))
|
|
6381
6288
|
if (v.has(n[g])) {
|
|
6382
|
-
const z = u.get(l[
|
|
6383
|
-
if (
|
|
6384
|
-
const
|
|
6385
|
-
|
|
6289
|
+
const z = u.get(l[h]), A = z !== void 0 ? c[z] : null;
|
|
6290
|
+
if (A === null) {
|
|
6291
|
+
const T = Ro(r, c[p]);
|
|
6292
|
+
yo(T, i[h]), b[h] = T;
|
|
6386
6293
|
} else
|
|
6387
|
-
b[
|
|
6388
|
-
|
|
6294
|
+
b[h] = yo(A, i[h]), Ro(r, c[p], A), c[z] = null;
|
|
6295
|
+
h++;
|
|
6389
6296
|
} else
|
|
6390
|
-
|
|
6297
|
+
Er(c[g]), g--;
|
|
6391
6298
|
else
|
|
6392
|
-
|
|
6393
|
-
for (;
|
|
6299
|
+
Er(c[p]), p++;
|
|
6300
|
+
for (; h <= x; ) {
|
|
6394
6301
|
const z = Ro(r, b[x + 1]);
|
|
6395
|
-
|
|
6302
|
+
yo(z, i[h]), b[h++] = z;
|
|
6396
6303
|
}
|
|
6397
|
-
for (;
|
|
6398
|
-
const z = c[
|
|
6399
|
-
z !== null &&
|
|
6304
|
+
for (; p <= g; ) {
|
|
6305
|
+
const z = c[p++];
|
|
6306
|
+
z !== null && Er(z);
|
|
6400
6307
|
}
|
|
6401
|
-
return this.ht = l,
|
|
6308
|
+
return this.ht = l, Ea(r, b), po;
|
|
6402
6309
|
}
|
|
6403
|
-
}),
|
|
6404
|
-
class Ir extends
|
|
6310
|
+
}), Jo = typeof window < "u";
|
|
6311
|
+
class Ir extends H {
|
|
6405
6312
|
constructor() {
|
|
6406
|
-
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url =
|
|
6313
|
+
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = Jo ? window.location.href : "";
|
|
6407
6314
|
}
|
|
6408
6315
|
async connectedCallback() {
|
|
6409
6316
|
if (super.connectedCallback(), !this.api) {
|
|
6410
6317
|
console.error('Broadcast "api" attribute invalid or undefined');
|
|
6411
6318
|
return;
|
|
6412
6319
|
}
|
|
6413
|
-
|
|
6320
|
+
Jo && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
|
|
6414
6321
|
}
|
|
6415
6322
|
async _fetchMessage() {
|
|
6416
6323
|
const o = `${this.api}?path=${this.url}`;
|
|
@@ -6426,12 +6333,12 @@ class Ir extends I {
|
|
|
6426
6333
|
}
|
|
6427
6334
|
render() {
|
|
6428
6335
|
const o = this._messages.filter((e) => !this._hiddenMessageIds.includes(e.id));
|
|
6429
|
-
return
|
|
6336
|
+
return $`
|
|
6430
6337
|
<aside class=${`${o.length === 0 ? "hidden" : "mb-16"}`}>
|
|
6431
|
-
${
|
|
6338
|
+
${gt(
|
|
6432
6339
|
o,
|
|
6433
6340
|
({ id: e }) => `broadcast-${e}`,
|
|
6434
|
-
({ id: e, message: t }) =>
|
|
6341
|
+
({ id: e, message: t }) => $`<w-toast
|
|
6435
6342
|
id="broadcast-${e}"
|
|
6436
6343
|
type="warning"
|
|
6437
6344
|
text="${t}"
|
|
@@ -7035,6 +6942,7 @@ Z(Ir, "properties", {
|
|
|
7035
6942
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
7036
6943
|
.pb-32{padding-bottom:3.2rem;}
|
|
7037
6944
|
.pb-4{padding-bottom:0.4rem;}
|
|
6945
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
7038
6946
|
.pb-8{padding-bottom:0.8rem;}
|
|
7039
6947
|
.pl-0{padding-left:0rem;}
|
|
7040
6948
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -7050,6 +6958,7 @@ Z(Ir, "properties", {
|
|
|
7050
6958
|
.pr-40{padding-right:4rem;}
|
|
7051
6959
|
.pt-0{padding-top:0rem;}
|
|
7052
6960
|
.pt-1{padding-top:0.1rem;}
|
|
6961
|
+
.pt-4{padding-top:0.4rem;}
|
|
7053
6962
|
.pt-8{padding-top:0.8rem;}
|
|
7054
6963
|
.invisible{visibility:hidden;}
|
|
7055
6964
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -7084,6 +6993,7 @@ Z(Ir, "properties", {
|
|
|
7084
6993
|
.duration-300{transition-duration:300ms;}
|
|
7085
6994
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
7086
6995
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
6996
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
7087
6997
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
7088
6998
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
7089
6999
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -7113,7 +7023,7 @@ Z(Ir, "properties", {
|
|
|
7113
7023
|
}
|
|
7114
7024
|
`);
|
|
7115
7025
|
customElements.get("w-broadcast") || customElements.define("w-broadcast", Ir);
|
|
7116
|
-
const
|
|
7026
|
+
const Ca = JSON.parse('{"button.aria.loading":"Loading..."}'), Ma = JSON.parse('{"button.aria.loading":"Laster..."}'), Ta = JSON.parse('{"button.aria.loading":"Ladataan..."}'), Se = [
|
|
7117
7027
|
"primary",
|
|
7118
7028
|
"secondary",
|
|
7119
7029
|
"negative",
|
|
@@ -7121,19 +7031,19 @@ const Qa = JSON.parse('{"button.aria.loading":"Loading..."}'), Ua = JSON.parse('
|
|
|
7121
7031
|
"pill",
|
|
7122
7032
|
"link"
|
|
7123
7033
|
];
|
|
7124
|
-
class cr extends Ko(
|
|
7034
|
+
class cr extends Ko(H) {
|
|
7125
7035
|
constructor() {
|
|
7126
|
-
super(), de(
|
|
7036
|
+
super(), de(Ca, Ma, Ta), this.variant = "secondary", this.ariaValueTextLoading = Vo._({
|
|
7127
7037
|
id: "button.aria.loading",
|
|
7128
7038
|
message: "Loading...",
|
|
7129
7039
|
comment: "Screenreader message for buttons that are loading"
|
|
7130
7040
|
});
|
|
7131
7041
|
}
|
|
7132
7042
|
connectedCallback() {
|
|
7133
|
-
if (super.connectedCallback(), !
|
|
7043
|
+
if (super.connectedCallback(), !Se.includes(this.variant))
|
|
7134
7044
|
throw new Error(
|
|
7135
7045
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
7136
|
-
${
|
|
7046
|
+
${Se.join(
|
|
7137
7047
|
", "
|
|
7138
7048
|
)}.`
|
|
7139
7049
|
);
|
|
@@ -7145,66 +7055,66 @@ ${Ae.join(
|
|
|
7145
7055
|
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";
|
|
7146
7056
|
return uo(
|
|
7147
7057
|
{
|
|
7148
|
-
[
|
|
7149
|
-
[
|
|
7150
|
-
[
|
|
7151
|
-
[
|
|
7152
|
-
[
|
|
7153
|
-
[
|
|
7154
|
-
[
|
|
7155
|
-
[
|
|
7156
|
-
[
|
|
7157
|
-
[
|
|
7158
|
-
[
|
|
7159
|
-
[
|
|
7160
|
-
[
|
|
7161
|
-
[
|
|
7162
|
-
[
|
|
7163
|
-
[
|
|
7164
|
-
[
|
|
7165
|
-
[
|
|
7166
|
-
[
|
|
7167
|
-
[
|
|
7168
|
-
[
|
|
7169
|
-
[
|
|
7170
|
-
[
|
|
7171
|
-
[
|
|
7172
|
-
[
|
|
7173
|
-
[
|
|
7174
|
-
[
|
|
7175
|
-
[
|
|
7176
|
-
[
|
|
7177
|
-
[
|
|
7178
|
-
[
|
|
7179
|
-
[
|
|
7180
|
-
[
|
|
7181
|
-
[
|
|
7182
|
-
[
|
|
7183
|
-
[
|
|
7184
|
-
[
|
|
7185
|
-
[
|
|
7186
|
-
[
|
|
7187
|
-
[
|
|
7188
|
-
[
|
|
7058
|
+
[Y.secondary]: e && !this.small && !this.quiet && !this.loading,
|
|
7059
|
+
[Y.secondarySmall]: e && this.small && !this.quiet && !this.loading,
|
|
7060
|
+
[Y.secondarySmallLoading]: e && this.small && !this.quiet && this.loading,
|
|
7061
|
+
[Y.secondarySmallQuiet]: e && this.small && this.quiet && !this.loading,
|
|
7062
|
+
[Y.secondarySmallQuietLoading]: e && this.small && this.quiet && this.loading,
|
|
7063
|
+
[Y.secondaryQuiet]: e && !this.small && this.quiet && !this.loading,
|
|
7064
|
+
[Y.secondaryQuietLoading]: e && !this.small && this.quiet && this.loading,
|
|
7065
|
+
[Y.secondaryLoading]: e && !this.small && !this.quiet && this.loading,
|
|
7066
|
+
[Y.primary]: o && !this.small && !this.quiet && !this.loading,
|
|
7067
|
+
[Y.primarySmall]: o && this.small && !this.quiet && !this.loading,
|
|
7068
|
+
[Y.primarySmallQuiet]: o && this.small && this.quiet && !this.loading,
|
|
7069
|
+
[Y.primarySmallLoading]: o && this.small && !this.quiet && this.loading,
|
|
7070
|
+
[Y.primarySmallQuietLoading]: o && this.small && this.quiet && this.loading,
|
|
7071
|
+
[Y.primaryQuiet]: o && !this.small && this.quiet && !this.loading,
|
|
7072
|
+
[Y.primaryQuietLoading]: o && !this.small && this.quiet && this.loading,
|
|
7073
|
+
[Y.primaryLoading]: o && !this.small && !this.quiet && this.loading,
|
|
7074
|
+
[Y.utility]: a && !this.small && !this.quiet && !this.loading,
|
|
7075
|
+
[Y.utilitySmall]: a && this.small && !this.quiet && !this.loading,
|
|
7076
|
+
[Y.utilitySmallQuiet]: a && this.small && this.quiet && !this.loading,
|
|
7077
|
+
[Y.utilitySmallLoading]: a && this.small && !this.quiet && this.loading,
|
|
7078
|
+
[Y.utilitySmallQuietLoading]: a && this.small && this.quiet && this.loading,
|
|
7079
|
+
[Y.utilityQuiet]: a && !this.small && this.quiet && !this.loading,
|
|
7080
|
+
[Y.utilityQuietLoading]: a && !this.small && this.quiet && this.loading,
|
|
7081
|
+
[Y.utilityLoading]: a && !this.small && !this.quiet && this.loading,
|
|
7082
|
+
[Y.negative]: t && !this.small && !this.quiet && !this.loading,
|
|
7083
|
+
[Y.negativeSmall]: t && this.small && !this.quiet && !this.loading,
|
|
7084
|
+
[Y.negativeSmallQuiet]: t && this.small && this.quiet && !this.loading,
|
|
7085
|
+
[Y.negativeSmallLoading]: t && this.small && !this.quiet && this.loading,
|
|
7086
|
+
[Y.negativeSmallQuietLoading]: t && this.small && this.quiet && this.loading,
|
|
7087
|
+
[Y.negativeQuiet]: t && !this.small && this.quiet && !this.loading,
|
|
7088
|
+
[Y.negativeQuietLoading]: t && !this.small && this.quiet && this.loading,
|
|
7089
|
+
[Y.negativeLoading]: t && !this.small && !this.quiet && this.loading,
|
|
7090
|
+
[Y.pill]: c && !this.small && !this.loading,
|
|
7091
|
+
[Y.pillSmall]: c && this.small && !this.loading,
|
|
7092
|
+
[Y.pillLoading]: c && !this.small && this.loading,
|
|
7093
|
+
[Y.pillSmallLoading]: c && this.small && this.loading,
|
|
7094
|
+
[Y.link]: i && !this.small,
|
|
7095
|
+
[Y.linkSmall]: i && this.small,
|
|
7096
|
+
[Y.linkAsButton]: !!this.href,
|
|
7097
|
+
[Y.fullWidth]: this.fullWidth,
|
|
7098
|
+
[Y.contentWidth]: !this.fullWidth
|
|
7189
7099
|
},
|
|
7190
7100
|
this.buttonClass
|
|
7191
7101
|
);
|
|
7192
7102
|
}
|
|
7193
7103
|
render() {
|
|
7194
|
-
return
|
|
7104
|
+
return $` ${this.href ? $`<a
|
|
7195
7105
|
href=${this.href}
|
|
7196
7106
|
target=${this.target}
|
|
7197
7107
|
rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
|
|
7198
7108
|
class=${this._classes}
|
|
7199
7109
|
>
|
|
7200
7110
|
<slot></slot>
|
|
7201
|
-
</a>` :
|
|
7111
|
+
</a>` : $`<button
|
|
7202
7112
|
type=${this.type || "button"}
|
|
7203
7113
|
class=${this._classes}
|
|
7204
7114
|
>
|
|
7205
7115
|
<slot></slot>
|
|
7206
7116
|
</button>`}
|
|
7207
|
-
${this.loading ?
|
|
7117
|
+
${this.loading ? $`<span
|
|
7208
7118
|
class="sr-only"
|
|
7209
7119
|
role="progressbar"
|
|
7210
7120
|
aria-valuenow="{0}"
|
|
@@ -7213,7 +7123,7 @@ ${Ae.join(
|
|
|
7213
7123
|
}
|
|
7214
7124
|
}
|
|
7215
7125
|
Z(cr, "shadowRootOptions", {
|
|
7216
|
-
...
|
|
7126
|
+
...H.shadowRootOptions,
|
|
7217
7127
|
delegatesFocus: !0
|
|
7218
7128
|
}), Z(cr, "properties", {
|
|
7219
7129
|
type: { type: "button" | "submit" | "reset", reflect: !0 },
|
|
@@ -7800,6 +7710,7 @@ Z(cr, "shadowRootOptions", {
|
|
|
7800
7710
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
7801
7711
|
.pb-32{padding-bottom:3.2rem;}
|
|
7802
7712
|
.pb-4{padding-bottom:0.4rem;}
|
|
7713
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
7803
7714
|
.pb-8{padding-bottom:0.8rem;}
|
|
7804
7715
|
.pl-0{padding-left:0rem;}
|
|
7805
7716
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -7815,6 +7726,7 @@ Z(cr, "shadowRootOptions", {
|
|
|
7815
7726
|
.pr-40{padding-right:4rem;}
|
|
7816
7727
|
.pt-0{padding-top:0rem;}
|
|
7817
7728
|
.pt-1{padding-top:0.1rem;}
|
|
7729
|
+
.pt-4{padding-top:0.4rem;}
|
|
7818
7730
|
.pt-8{padding-top:0.8rem;}
|
|
7819
7731
|
.invisible{visibility:hidden;}
|
|
7820
7732
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -7849,6 +7761,7 @@ Z(cr, "shadowRootOptions", {
|
|
|
7849
7761
|
.duration-300{transition-duration:300ms;}
|
|
7850
7762
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
7851
7763
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
7764
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
7852
7765
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
7853
7766
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
7854
7767
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -7882,40 +7795,40 @@ const Ee = {
|
|
|
7882
7795
|
ENTER: "Enter",
|
|
7883
7796
|
SPACE: " "
|
|
7884
7797
|
};
|
|
7885
|
-
class Hr extends
|
|
7798
|
+
class Hr extends H {
|
|
7886
7799
|
constructor() {
|
|
7887
7800
|
super(), this.selected = !1, this.flat = !1, this.clickable = !1;
|
|
7888
7801
|
}
|
|
7889
7802
|
get _outerClasses() {
|
|
7890
7803
|
return V({
|
|
7891
|
-
[
|
|
7892
|
-
[
|
|
7893
|
-
[
|
|
7894
|
-
[
|
|
7895
|
-
[this.selected ?
|
|
7804
|
+
[ro.card]: !0,
|
|
7805
|
+
[ro.cardShadow]: !this.flat,
|
|
7806
|
+
[ro.cardSelected]: this.selected,
|
|
7807
|
+
[ro.cardFlat]: this.flat,
|
|
7808
|
+
[this.selected ? ro.cardFlatSelected : ro.cardFlatUnselected]: this.flat
|
|
7896
7809
|
});
|
|
7897
7810
|
}
|
|
7898
7811
|
get _innerClasses() {
|
|
7899
7812
|
return V({
|
|
7900
|
-
[
|
|
7901
|
-
[this.selected ?
|
|
7813
|
+
[ro.cardOutline]: !0,
|
|
7814
|
+
[this.selected ? ro.cardOutlineSelected : ro.cardOutlineUnselected]: !0
|
|
7902
7815
|
});
|
|
7903
7816
|
}
|
|
7904
7817
|
get uuButton() {
|
|
7905
|
-
return
|
|
7818
|
+
return $`<button class="${ro.a11y}" aria-pressed="${this.selected}" tabindex="-1">
|
|
7906
7819
|
Velg
|
|
7907
7820
|
</button>`;
|
|
7908
7821
|
}
|
|
7909
7822
|
get uuSpan() {
|
|
7910
|
-
return
|
|
7823
|
+
return $`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
7911
7824
|
}
|
|
7912
7825
|
keypressed(o) {
|
|
7913
7826
|
!this.clickable || o.altKey || o.ctrlKey || (o.key === Ee.ENTER || o.key === Ee.SPACE) && (o.preventDefault(), this.click());
|
|
7914
7827
|
}
|
|
7915
7828
|
render() {
|
|
7916
|
-
return
|
|
7829
|
+
return $`
|
|
7917
7830
|
<div
|
|
7918
|
-
tabindex=${
|
|
7831
|
+
tabindex=${N(this.clickable ? "0" : void 0)}
|
|
7919
7832
|
class="${this._outerClasses}"
|
|
7920
7833
|
@keydown=${this.keypressed}
|
|
7921
7834
|
>
|
|
@@ -8501,6 +8414,7 @@ Z(Hr, "styles", [
|
|
|
8501
8414
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
8502
8415
|
.pb-32{padding-bottom:3.2rem;}
|
|
8503
8416
|
.pb-4{padding-bottom:0.4rem;}
|
|
8417
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
8504
8418
|
.pb-8{padding-bottom:0.8rem;}
|
|
8505
8419
|
.pl-0{padding-left:0rem;}
|
|
8506
8420
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -8516,6 +8430,7 @@ Z(Hr, "styles", [
|
|
|
8516
8430
|
.pr-40{padding-right:4rem;}
|
|
8517
8431
|
.pt-0{padding-top:0rem;}
|
|
8518
8432
|
.pt-1{padding-top:0.1rem;}
|
|
8433
|
+
.pt-4{padding-top:0.4rem;}
|
|
8519
8434
|
.pt-8{padding-top:0.8rem;}
|
|
8520
8435
|
.invisible{visibility:hidden;}
|
|
8521
8436
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -8550,6 +8465,7 @@ Z(Hr, "styles", [
|
|
|
8550
8465
|
.duration-300{transition-duration:300ms;}
|
|
8551
8466
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
8552
8467
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
8468
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
8553
8469
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
8554
8470
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
8555
8471
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -8595,13 +8511,7 @@ Z(Hr, "styles", [
|
|
|
8595
8511
|
clickable: { type: Boolean }
|
|
8596
8512
|
});
|
|
8597
8513
|
customElements.get("w-card") || customElements.define("w-card", Hr);
|
|
8598
|
-
class
|
|
8599
|
-
render() {
|
|
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>`;
|
|
8601
|
-
}
|
|
8602
|
-
}
|
|
8603
|
-
customElements.get("w-icon-chevron-down16", Ce) || customElements.define("w-icon-chevron-down16", Ce);
|
|
8604
|
-
class Qr extends Ko(I) {
|
|
8514
|
+
class Qr extends Ko(H) {
|
|
8605
8515
|
constructor() {
|
|
8606
8516
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
8607
8517
|
}
|
|
@@ -8609,10 +8519,10 @@ class Qr extends Ko(I) {
|
|
|
8609
8519
|
this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
|
|
8610
8520
|
}
|
|
8611
8521
|
get _expandableSlot() {
|
|
8612
|
-
return
|
|
8522
|
+
return $`<div
|
|
8613
8523
|
class=${V({
|
|
8614
8524
|
[this.contentClass || ""]: !0,
|
|
8615
|
-
[
|
|
8525
|
+
[lo.box]: this.box,
|
|
8616
8526
|
[U.paddingTop]: this._hasTitle && this.box
|
|
8617
8527
|
})}
|
|
8618
8528
|
>
|
|
@@ -8620,14 +8530,14 @@ class Qr extends Ko(I) {
|
|
|
8620
8530
|
</div>`;
|
|
8621
8531
|
}
|
|
8622
8532
|
render() {
|
|
8623
|
-
return
|
|
8533
|
+
return $` <div
|
|
8624
8534
|
class=${V({
|
|
8625
8535
|
[U.expandable]: !0,
|
|
8626
8536
|
[U.expandableBox]: this.box,
|
|
8627
8537
|
[U.expandableBleed]: this.bleed
|
|
8628
8538
|
})}
|
|
8629
8539
|
>
|
|
8630
|
-
${this._hasTitle ?
|
|
8540
|
+
${this._hasTitle ? $`<w-unstyled-heading level=${this.headingLevel}>
|
|
8631
8541
|
<button
|
|
8632
8542
|
type="button"
|
|
8633
8543
|
aria-expanded="${this.expanded}"
|
|
@@ -8639,8 +8549,8 @@ class Qr extends Ko(I) {
|
|
|
8639
8549
|
@click=${() => this.expanded = !this.expanded}
|
|
8640
8550
|
>
|
|
8641
8551
|
<div class="${U.title}">
|
|
8642
|
-
${this.title ?
|
|
8643
|
-
${this.noChevron ? "" :
|
|
8552
|
+
${this.title ? $`<span class="${U.titleType}">${this.title}</span>` : $`<slot name="title"></slot>`}
|
|
8553
|
+
${this.noChevron ? "" : $`<div
|
|
8644
8554
|
class=${V({
|
|
8645
8555
|
[U.chevron]: !0,
|
|
8646
8556
|
[U.chevronExpanded]: this.expanded,
|
|
@@ -8648,19 +8558,19 @@ class Qr extends Ko(I) {
|
|
|
8648
8558
|
[U.chevronNonBox]: !this.box
|
|
8649
8559
|
})}
|
|
8650
8560
|
>
|
|
8651
|
-
<w-icon-chevron-
|
|
8561
|
+
<w-icon-chevron-down-16></w-icon-chevron-down-16>
|
|
8652
8562
|
</div>`}
|
|
8653
8563
|
</div>
|
|
8654
8564
|
</button>
|
|
8655
8565
|
</w-unstyled-heading>` : ""}
|
|
8656
|
-
${this.animated ?
|
|
8566
|
+
${this.animated ? $`<w-expand-transition ?show=${this.expanded}>
|
|
8657
8567
|
${this._expandableSlot}
|
|
8658
|
-
</w-expand-transition>` :
|
|
8568
|
+
</w-expand-transition>` : $`<div
|
|
8659
8569
|
class=${V({
|
|
8660
8570
|
[U.expansion]: !0,
|
|
8661
8571
|
[U.expansionNotExpanded]: !this.expanded
|
|
8662
8572
|
})}
|
|
8663
|
-
aria-hidden=${
|
|
8573
|
+
aria-hidden=${N(this.expanded ? void 0 : !0)}
|
|
8664
8574
|
>
|
|
8665
8575
|
${this._expandableSlot}
|
|
8666
8576
|
</div>`}
|
|
@@ -9257,6 +9167,7 @@ Z(Qr, "styles", [
|
|
|
9257
9167
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
9258
9168
|
.pb-32{padding-bottom:3.2rem;}
|
|
9259
9169
|
.pb-4{padding-bottom:0.4rem;}
|
|
9170
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
9260
9171
|
.pb-8{padding-bottom:0.8rem;}
|
|
9261
9172
|
.pl-0{padding-left:0rem;}
|
|
9262
9173
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -9272,6 +9183,7 @@ Z(Qr, "styles", [
|
|
|
9272
9183
|
.pr-40{padding-right:4rem;}
|
|
9273
9184
|
.pt-0{padding-top:0rem;}
|
|
9274
9185
|
.pt-1{padding-top:0.1rem;}
|
|
9186
|
+
.pt-4{padding-top:0.4rem;}
|
|
9275
9187
|
.pt-8{padding-top:0.8rem;}
|
|
9276
9188
|
.invisible{visibility:hidden;}
|
|
9277
9189
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -9306,6 +9218,7 @@ Z(Qr, "styles", [
|
|
|
9306
9218
|
.duration-300{transition-duration:300ms;}
|
|
9307
9219
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
9308
9220
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
9221
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
9309
9222
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
9310
9223
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
9311
9224
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -9357,13 +9270,13 @@ function ir(r, o, e) {
|
|
|
9357
9270
|
*/
|
|
9358
9271
|
class Ur extends ae {
|
|
9359
9272
|
constructor(o) {
|
|
9360
|
-
if (super(o), this.et =
|
|
9273
|
+
if (super(o), this.et = B, o.type !== ee.CHILD)
|
|
9361
9274
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
9362
9275
|
}
|
|
9363
9276
|
render(o) {
|
|
9364
|
-
if (o ===
|
|
9277
|
+
if (o === B || o == null)
|
|
9365
9278
|
return this.ft = void 0, this.et = o;
|
|
9366
|
-
if (o ===
|
|
9279
|
+
if (o === po)
|
|
9367
9280
|
return o;
|
|
9368
9281
|
if (typeof o != "string")
|
|
9369
9282
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
@@ -9375,28 +9288,28 @@ class Ur extends ae {
|
|
|
9375
9288
|
}
|
|
9376
9289
|
}
|
|
9377
9290
|
Ur.directiveName = "unsafeHTML", Ur.resultType = 1;
|
|
9378
|
-
const
|
|
9379
|
-
var fr,
|
|
9380
|
-
class Fr extends Ko(
|
|
9291
|
+
const ut = te(Ur), La = JSON.parse('{"select.label.optional":"(optional)"}'), Oa = JSON.parse('{"select.label.optional":"(valgfritt)"}'), Na = JSON.parse('{"select.label.optional":"(valinnainen)"}');
|
|
9292
|
+
var fr, vt, kr, pt, $r, ht, yr, wt, Ao, lr, Co, dr;
|
|
9293
|
+
class Fr extends Ko(H) {
|
|
9381
9294
|
constructor() {
|
|
9382
9295
|
super();
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
de(
|
|
9296
|
+
mo(this, fr);
|
|
9297
|
+
mo(this, kr);
|
|
9298
|
+
mo(this, $r);
|
|
9299
|
+
mo(this, yr);
|
|
9300
|
+
mo(this, Ao);
|
|
9301
|
+
mo(this, Co);
|
|
9302
|
+
de(La, Oa, Na), this._options = this.innerHTML;
|
|
9390
9303
|
}
|
|
9391
9304
|
render() {
|
|
9392
|
-
return
|
|
9305
|
+
return $`<div class="${Zo.wrapper}">
|
|
9393
9306
|
${ir(
|
|
9394
9307
|
this.label,
|
|
9395
|
-
() =>
|
|
9308
|
+
() => $`<label class="${G(this, kr, pt)}" for="${G(this, Ao, lr)}">
|
|
9396
9309
|
${this.label}
|
|
9397
9310
|
${ir(
|
|
9398
9311
|
this.optional,
|
|
9399
|
-
() =>
|
|
9312
|
+
() => $`<span class="${Po.optional}"
|
|
9400
9313
|
>${Vo._({
|
|
9401
9314
|
id: "select.label.optional",
|
|
9402
9315
|
message: "(optional)",
|
|
@@ -9406,42 +9319,28 @@ class Fr extends Ko(I) {
|
|
|
9406
9319
|
)}</label
|
|
9407
9320
|
>`
|
|
9408
9321
|
)}
|
|
9409
|
-
<div class="${
|
|
9322
|
+
<div class="${Zo.selectWrapper}">
|
|
9410
9323
|
<select
|
|
9411
|
-
class="${
|
|
9412
|
-
id="${
|
|
9324
|
+
class="${G(this, fr, vt)}"
|
|
9325
|
+
id="${G(this, Ao, lr)}"
|
|
9413
9326
|
?autofocus=${this.autoFocus}
|
|
9414
|
-
aria-describedby="${
|
|
9415
|
-
aria-invalid="${
|
|
9416
|
-
aria-errormessage="${
|
|
9417
|
-
this.invalid &&
|
|
9327
|
+
aria-describedby="${N(G(this, Co, dr))}"
|
|
9328
|
+
aria-invalid="${N(this.invalid)}"
|
|
9329
|
+
aria-errormessage="${N(
|
|
9330
|
+
this.invalid && G(this, Co, dr)
|
|
9418
9331
|
)}"
|
|
9419
9332
|
>
|
|
9420
|
-
${
|
|
9333
|
+
${ut(this._options)}
|
|
9421
9334
|
</select>
|
|
9422
|
-
<div class="${
|
|
9423
|
-
<
|
|
9424
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9425
|
-
width="16"
|
|
9426
|
-
height="16"
|
|
9427
|
-
fill="none"
|
|
9428
|
-
viewBox="0 0 16 16"
|
|
9429
|
-
>
|
|
9430
|
-
<path
|
|
9431
|
-
stroke="currentColor"
|
|
9432
|
-
strokeLinecap="round"
|
|
9433
|
-
strokeLinejoin="round"
|
|
9434
|
-
strokeWidth="1.5"
|
|
9435
|
-
d="M2.5 5.5L8 11L13.5 5.5"
|
|
9436
|
-
/>
|
|
9437
|
-
</svg>
|
|
9335
|
+
<div class="${G(this, yr, wt)}">
|
|
9336
|
+
<w-icon-chevron-down-16></w-icon-chevron-down-16>
|
|
9438
9337
|
</div>
|
|
9439
9338
|
</div>
|
|
9440
9339
|
${ir(
|
|
9441
9340
|
this.always || this.invalid,
|
|
9442
|
-
() =>
|
|
9443
|
-
id="${
|
|
9444
|
-
class="${
|
|
9341
|
+
() => $`<div
|
|
9342
|
+
id="${G(this, Co, dr)}"
|
|
9343
|
+
class="${G(this, $r, ht)}"
|
|
9445
9344
|
>
|
|
9446
9345
|
${this.hint}
|
|
9447
9346
|
</div>`
|
|
@@ -9449,30 +9348,30 @@ class Fr extends Ko(I) {
|
|
|
9449
9348
|
</div>`;
|
|
9450
9349
|
}
|
|
9451
9350
|
}
|
|
9452
|
-
fr = new WeakSet(),
|
|
9351
|
+
fr = new WeakSet(), vt = function() {
|
|
9453
9352
|
return uo({
|
|
9454
|
-
[
|
|
9455
|
-
[
|
|
9353
|
+
[Zo.default]: !0,
|
|
9354
|
+
[Zo.invalid]: this.invalid
|
|
9456
9355
|
});
|
|
9457
|
-
}, kr = new WeakSet(),
|
|
9356
|
+
}, kr = new WeakSet(), pt = function() {
|
|
9458
9357
|
return uo({
|
|
9459
9358
|
[Po.label]: !0,
|
|
9460
9359
|
[Po.labelInvalid]: this.invalid
|
|
9461
9360
|
});
|
|
9462
|
-
}, $r = new WeakSet(),
|
|
9361
|
+
}, $r = new WeakSet(), ht = function() {
|
|
9463
9362
|
return uo({
|
|
9464
9363
|
[gr.helpText]: !0,
|
|
9465
9364
|
[gr.helpTextInvalid]: this.invalid
|
|
9466
9365
|
});
|
|
9467
|
-
}, yr = new WeakSet(),
|
|
9366
|
+
}, yr = new WeakSet(), wt = function() {
|
|
9468
9367
|
return uo({
|
|
9469
|
-
[
|
|
9470
|
-
[
|
|
9368
|
+
[Zo.chevron]: !0,
|
|
9369
|
+
[Zo.chevronDisabled]: this.disabled
|
|
9471
9370
|
});
|
|
9472
|
-
},
|
|
9371
|
+
}, Ao = new WeakSet(), lr = function() {
|
|
9473
9372
|
return "select_id";
|
|
9474
|
-
},
|
|
9475
|
-
return this.hint ? `${
|
|
9373
|
+
}, Co = new WeakSet(), dr = function() {
|
|
9374
|
+
return this.hint ? `${G(this, Ao, lr)}__hint` : void 0;
|
|
9476
9375
|
}, Z(Fr, "properties", {
|
|
9477
9376
|
// Whether the element should receive focus on render
|
|
9478
9377
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
@@ -10060,6 +9959,7 @@ fr = new WeakSet(), pt = function() {
|
|
|
10060
9959
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
10061
9960
|
.pb-32{padding-bottom:3.2rem;}
|
|
10062
9961
|
.pb-4{padding-bottom:0.4rem;}
|
|
9962
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
10063
9963
|
.pb-8{padding-bottom:0.8rem;}
|
|
10064
9964
|
.pl-0{padding-left:0rem;}
|
|
10065
9965
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -10075,6 +9975,7 @@ fr = new WeakSet(), pt = function() {
|
|
|
10075
9975
|
.pr-40{padding-right:4rem;}
|
|
10076
9976
|
.pt-0{padding-top:0rem;}
|
|
10077
9977
|
.pt-1{padding-top:0.1rem;}
|
|
9978
|
+
.pt-4{padding-top:0.4rem;}
|
|
10078
9979
|
.pt-8{padding-top:0.8rem;}
|
|
10079
9980
|
.invisible{visibility:hidden;}
|
|
10080
9981
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -10109,6 +10010,7 @@ fr = new WeakSet(), pt = function() {
|
|
|
10109
10010
|
.duration-300{transition-duration:300ms;}
|
|
10110
10011
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
10111
10012
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
10013
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
10112
10014
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
10113
10015
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
10114
10016
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -10138,18 +10040,18 @@ fr = new WeakSet(), pt = function() {
|
|
|
10138
10040
|
};
|
|
10139
10041
|
`);
|
|
10140
10042
|
customElements.get("w-select") || customElements.define("w-select", Fr);
|
|
10141
|
-
class Wr extends
|
|
10043
|
+
class Wr extends H {
|
|
10142
10044
|
constructor() {
|
|
10143
10045
|
super(), this.type = "text";
|
|
10144
10046
|
}
|
|
10145
10047
|
get _inputStyles() {
|
|
10146
10048
|
return V({
|
|
10147
|
-
[
|
|
10148
|
-
[
|
|
10149
|
-
[
|
|
10150
|
-
[
|
|
10151
|
-
[
|
|
10152
|
-
[
|
|
10049
|
+
[$o.default]: !0,
|
|
10050
|
+
[$o.invalid]: this.invalid,
|
|
10051
|
+
[$o.disabled]: this.disabled,
|
|
10052
|
+
[$o.readOnly]: this.readOnly,
|
|
10053
|
+
[$o.suffix]: this._hasSuffix,
|
|
10054
|
+
[$o.prefix]: this._hasPrefix
|
|
10153
10055
|
});
|
|
10154
10056
|
}
|
|
10155
10057
|
get _helpTextStyles() {
|
|
@@ -10166,7 +10068,7 @@ class Wr extends I {
|
|
|
10166
10068
|
}
|
|
10167
10069
|
get _label() {
|
|
10168
10070
|
if (this.label)
|
|
10169
|
-
return
|
|
10071
|
+
return $`<label for="${this._id}" class=${this._labelStyles}>${this.label}</label>`;
|
|
10170
10072
|
}
|
|
10171
10073
|
get _helpId() {
|
|
10172
10074
|
if (this.helpText)
|
|
@@ -10196,25 +10098,25 @@ class Wr extends I {
|
|
|
10196
10098
|
this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length && (this._hasSuffix = !0);
|
|
10197
10099
|
}
|
|
10198
10100
|
render() {
|
|
10199
|
-
return
|
|
10101
|
+
return $`
|
|
10200
10102
|
${this._label}
|
|
10201
|
-
<div class="${
|
|
10103
|
+
<div class="${$o.wrapper}">
|
|
10202
10104
|
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
10203
10105
|
<input
|
|
10204
10106
|
class="${this._inputStyles}"
|
|
10205
10107
|
type="${this.type}"
|
|
10206
|
-
min="${
|
|
10207
|
-
max="${
|
|
10208
|
-
size="${
|
|
10209
|
-
minlength="${
|
|
10210
|
-
maxlength="${
|
|
10211
|
-
name="${
|
|
10212
|
-
pattern="${
|
|
10213
|
-
placeholder="${
|
|
10214
|
-
value="${
|
|
10215
|
-
aria-describedby="${
|
|
10216
|
-
aria-errormessage="${
|
|
10217
|
-
aria-invalid="${
|
|
10108
|
+
min="${N(this.min)}"
|
|
10109
|
+
max="${N(this.max)}"
|
|
10110
|
+
size="${N(this.size)}"
|
|
10111
|
+
minlength="${N(this.minLength)}"
|
|
10112
|
+
maxlength="${N(this.maxLength)}"
|
|
10113
|
+
name="${N(this.name)}"
|
|
10114
|
+
pattern="${N(this.pattern)}"
|
|
10115
|
+
placeholder="${N(this.placeholder)}"
|
|
10116
|
+
value="${N(this.value)}"
|
|
10117
|
+
aria-describedby="${N(this._helpId)}"
|
|
10118
|
+
aria-errormessage="${N(this._error)}"
|
|
10119
|
+
aria-invalid="${N(this.invalid)}"
|
|
10218
10120
|
id="${this._id}"
|
|
10219
10121
|
?disabled="${this.disabled}"
|
|
10220
10122
|
?readonly="${this.readOnly}"
|
|
@@ -10225,7 +10127,7 @@ class Wr extends I {
|
|
|
10225
10127
|
/>
|
|
10226
10128
|
<slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
|
|
10227
10129
|
</div>
|
|
10228
|
-
${this.helpText &&
|
|
10130
|
+
${this.helpText && $`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
|
|
10229
10131
|
`;
|
|
10230
10132
|
}
|
|
10231
10133
|
}
|
|
@@ -10827,6 +10729,7 @@ Z(Wr, "styles", [
|
|
|
10827
10729
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
10828
10730
|
.pb-32{padding-bottom:3.2rem;}
|
|
10829
10731
|
.pb-4{padding-bottom:0.4rem;}
|
|
10732
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
10830
10733
|
.pb-8{padding-bottom:0.8rem;}
|
|
10831
10734
|
.pl-0{padding-left:0rem;}
|
|
10832
10735
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -10842,6 +10745,7 @@ Z(Wr, "styles", [
|
|
|
10842
10745
|
.pr-40{padding-right:4rem;}
|
|
10843
10746
|
.pt-0{padding-top:0rem;}
|
|
10844
10747
|
.pt-1{padding-top:0.1rem;}
|
|
10748
|
+
.pt-4{padding-top:0.4rem;}
|
|
10845
10749
|
.pt-8{padding-top:0.8rem;}
|
|
10846
10750
|
.invisible{visibility:hidden;}
|
|
10847
10751
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -10876,6 +10780,7 @@ Z(Wr, "styles", [
|
|
|
10876
10780
|
.duration-300{transition-duration:300ms;}
|
|
10877
10781
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
10878
10782
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
10783
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
10879
10784
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
10880
10785
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
10881
10786
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -10912,8 +10817,8 @@ Z(Wr, "styles", [
|
|
|
10912
10817
|
`
|
|
10913
10818
|
]);
|
|
10914
10819
|
customElements.get("w-textfield") || customElements.define("w-textfield", Wr);
|
|
10915
|
-
function
|
|
10916
|
-
if (!
|
|
10820
|
+
function Fa(r, o) {
|
|
10821
|
+
if (!Jo)
|
|
10917
10822
|
return;
|
|
10918
10823
|
const e = customElements.get("w-toast-container").init(), t = {
|
|
10919
10824
|
id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
|
|
@@ -10924,141 +10829,68 @@ function vc(r, o) {
|
|
|
10924
10829
|
};
|
|
10925
10830
|
return e.set(t), t;
|
|
10926
10831
|
}
|
|
10927
|
-
function
|
|
10928
|
-
return
|
|
10832
|
+
function Wa(r) {
|
|
10833
|
+
return Jo ? customElements.get("w-toast-container").init().del(r) : void 0;
|
|
10929
10834
|
}
|
|
10930
|
-
function
|
|
10931
|
-
if (!
|
|
10835
|
+
function Va(r, o) {
|
|
10836
|
+
if (!Jo)
|
|
10932
10837
|
return;
|
|
10933
10838
|
const e = customElements.get("w-toast-container").init();
|
|
10934
10839
|
return e.set({ ...e.get(r), ...o }), e.get(r);
|
|
10935
10840
|
}
|
|
10936
10841
|
const ne = typeof window < "u";
|
|
10937
|
-
let
|
|
10842
|
+
let xt = !0;
|
|
10938
10843
|
if (ne) {
|
|
10939
|
-
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) =>
|
|
10844
|
+
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) => xt = !e;
|
|
10940
10845
|
r.addEventListener && r.addEventListener("change", o), o(r);
|
|
10941
10846
|
}
|
|
10942
|
-
const
|
|
10847
|
+
const mt = (r) => {
|
|
10943
10848
|
r.style.transition = null, r.style.backfaceVisibility = null, r.style.overflow = null;
|
|
10944
|
-
},
|
|
10945
|
-
const o =
|
|
10849
|
+
}, ft = (r) => {
|
|
10850
|
+
const o = xt ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
10946
10851
|
r.style.transition = `height ${o}`, r.style.backfaceVisibility = "hidden", r.style.overflow = "hidden";
|
|
10947
|
-
},
|
|
10852
|
+
}, Ba = (r, o) => () => {
|
|
10948
10853
|
r.style.height = "auto", r.style.overflow = null, o && o();
|
|
10949
|
-
},
|
|
10854
|
+
}, Da = (r) => () => {
|
|
10950
10855
|
r && r();
|
|
10951
|
-
},
|
|
10856
|
+
}, kt = (r, o) => {
|
|
10952
10857
|
const e = (() => {
|
|
10953
10858
|
if (!o)
|
|
10954
10859
|
return new Promise((c) => {
|
|
10955
10860
|
o = c;
|
|
10956
10861
|
});
|
|
10957
|
-
})(), t =
|
|
10958
|
-
|
|
10862
|
+
})(), t = Ba(r, o);
|
|
10863
|
+
mt(r), r.style.height = "auto";
|
|
10959
10864
|
let a = r.scrollHeight;
|
|
10960
10865
|
if (ne && requestAnimationFrame(() => {
|
|
10961
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out",
|
|
10866
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out", ft(r), requestAnimationFrame(() => r.style.height = a + "px");
|
|
10962
10867
|
}), e)
|
|
10963
10868
|
return e;
|
|
10964
|
-
},
|
|
10869
|
+
}, $t = (r, o) => {
|
|
10965
10870
|
const e = (() => {
|
|
10966
10871
|
if (!o)
|
|
10967
10872
|
return new Promise((c) => {
|
|
10968
10873
|
o = c;
|
|
10969
10874
|
});
|
|
10970
|
-
})(), t =
|
|
10971
|
-
|
|
10875
|
+
})(), t = Da(o);
|
|
10876
|
+
mt(r);
|
|
10972
10877
|
let a = r.scrollHeight;
|
|
10973
10878
|
if (ne && requestAnimationFrame(() => {
|
|
10974
|
-
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in",
|
|
10879
|
+
r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in", ft(r), requestAnimationFrame(() => r.style.height = "0px");
|
|
10975
10880
|
}), e)
|
|
10976
10881
|
return e;
|
|
10977
|
-
},
|
|
10978
|
-
<svg
|
|
10979
|
-
role="img"
|
|
10980
|
-
aria-label="Lukk"
|
|
10981
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10982
|
-
width="16"
|
|
10983
|
-
height="16"
|
|
10984
|
-
fill="none"
|
|
10985
|
-
viewBox="0 0 16 16"
|
|
10986
|
-
>
|
|
10987
|
-
${ac}
|
|
10988
|
-
</svg>
|
|
10989
|
-
`, rc = (r) => f`<svg
|
|
10990
|
-
aria-label="${r.typeLabel}"
|
|
10991
|
-
role="img"
|
|
10992
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10993
|
-
width="16"
|
|
10994
|
-
height="16"
|
|
10995
|
-
fill="none"
|
|
10996
|
-
>
|
|
10997
|
-
${cc}
|
|
10998
|
-
</svg>`, ec = (r) => f`<svg
|
|
10999
|
-
aria-label="${r.typeLabel}"
|
|
11000
|
-
role="img"
|
|
11001
|
-
width="16"
|
|
11002
|
-
height="16"
|
|
11003
|
-
fill="none"
|
|
11004
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11005
|
-
>
|
|
11006
|
-
${ic}
|
|
11007
|
-
</svg> `, tc = (r) => f`<svg
|
|
11008
|
-
aria-label="${r.typeLabel}"
|
|
11009
|
-
role="img"
|
|
11010
|
-
width="16"
|
|
11011
|
-
height="16"
|
|
11012
|
-
fill="none"
|
|
11013
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11014
|
-
>
|
|
11015
|
-
${lc}
|
|
11016
|
-
</svg> `, ac = po`
|
|
11017
|
-
<path
|
|
11018
|
-
fill="currentColor"
|
|
11019
|
-
fill-rule="evenodd"
|
|
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"
|
|
11021
|
-
clipRule="evenodd"
|
|
11022
|
-
/>`, cc = po`
|
|
11023
|
-
<path
|
|
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"
|
|
11025
|
-
fill="currentColor"
|
|
11026
|
-
/>
|
|
11027
|
-
<path
|
|
11028
|
-
fill-rule="evenodd"
|
|
11029
|
-
clip-rule="evenodd"
|
|
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"
|
|
11031
|
-
fill="#fff"
|
|
11032
|
-
/>
|
|
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" />
|
|
11034
|
-
<path
|
|
11035
|
-
fill-rule="evenodd"
|
|
11036
|
-
clip-rule="evenodd"
|
|
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"
|
|
11038
|
-
fill="#fff"
|
|
11039
|
-
/>`, lc = po`
|
|
11040
|
-
<path
|
|
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"
|
|
11042
|
-
fill="currentColor"
|
|
11043
|
-
/>
|
|
11044
|
-
<path
|
|
11045
|
-
fill-rule="evenodd"
|
|
11046
|
-
clip-rule="evenodd"
|
|
11047
|
-
d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
|
|
11048
|
-
fill="#fff"
|
|
11049
|
-
/>
|
|
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) => {
|
|
10882
|
+
}, Ae = (r) => {
|
|
11051
10883
|
const o = {};
|
|
11052
10884
|
for (const [e, t] of Object.entries(r))
|
|
11053
10885
|
for (const a of e.split(" "))
|
|
11054
10886
|
o[a] = t;
|
|
11055
|
-
return
|
|
11056
|
-
},
|
|
10887
|
+
return Qe(o);
|
|
10888
|
+
}, so = {
|
|
11057
10889
|
success: "success",
|
|
11058
10890
|
error: "error",
|
|
11059
10891
|
warning: "warning"
|
|
11060
10892
|
};
|
|
11061
|
-
class Vr extends
|
|
10893
|
+
class Vr extends H {
|
|
11062
10894
|
constructor() {
|
|
11063
10895
|
super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
|
|
11064
10896
|
}
|
|
@@ -11069,49 +10901,46 @@ class Vr extends I {
|
|
|
11069
10901
|
super.disconnectedCallback();
|
|
11070
10902
|
}
|
|
11071
10903
|
updated() {
|
|
11072
|
-
!this._expanded && this._wrapper &&
|
|
10904
|
+
!this._expanded && this._wrapper && kt(this._wrapper, () => this._expanded = !0);
|
|
11073
10905
|
}
|
|
11074
10906
|
get _primaryClasses() {
|
|
11075
|
-
return
|
|
10907
|
+
return Ae({
|
|
11076
10908
|
[K.toast]: !0,
|
|
11077
|
-
[K.positive]: this.type ===
|
|
11078
|
-
[K.warning]: this.type ===
|
|
11079
|
-
[K.negative]: this.type ===
|
|
10909
|
+
[K.positive]: this.type === so.success,
|
|
10910
|
+
[K.warning]: this.type === so.warning,
|
|
10911
|
+
[K.negative]: this.type === so.error
|
|
11080
10912
|
});
|
|
11081
10913
|
}
|
|
11082
10914
|
get _iconClasses() {
|
|
11083
|
-
return
|
|
10915
|
+
return Ae({
|
|
11084
10916
|
[K.icon]: !0,
|
|
11085
|
-
[K.iconPositive]: this.type ==
|
|
11086
|
-
[K.iconWarning]: this.type ===
|
|
11087
|
-
[K.iconNegative]: this.type ===
|
|
10917
|
+
[K.iconPositive]: this.type == so.success,
|
|
10918
|
+
[K.iconWarning]: this.type === so.warning,
|
|
10919
|
+
[K.iconNegative]: this.type === so.error
|
|
11088
10920
|
});
|
|
11089
10921
|
}
|
|
11090
10922
|
get _wrapper() {
|
|
11091
10923
|
var o;
|
|
11092
10924
|
return ((o = this.renderRoot) == null ? void 0 : o.querySelector("section")) ?? null;
|
|
11093
10925
|
}
|
|
11094
|
-
get _success() {
|
|
11095
|
-
return this.type === oo.success;
|
|
11096
|
-
}
|
|
11097
10926
|
get _warning() {
|
|
11098
|
-
return this.type ===
|
|
10927
|
+
return this.type === so.warning;
|
|
11099
10928
|
}
|
|
11100
10929
|
get _error() {
|
|
11101
|
-
return this.type ===
|
|
10930
|
+
return this.type === so.error;
|
|
11102
10931
|
}
|
|
11103
10932
|
get _role() {
|
|
11104
10933
|
return this._error || this._warning ? "alert" : "status";
|
|
11105
10934
|
}
|
|
11106
10935
|
get _typeLabel() {
|
|
11107
|
-
return this.
|
|
10936
|
+
return this._warning ? "Varsel" : this._error ? "Feil" : "Vellykket";
|
|
11108
10937
|
}
|
|
11109
10938
|
get _iconMarkup() {
|
|
11110
|
-
return this.
|
|
10939
|
+
return this._warning ? $`<w-icon-alert-warning-16></w-icon-alert-warning-16>` : this._error ? $`<w-icon-alert-error-16></w-icon-alert-error-16>` : $`<w-icon-alert-success-16></w-icon-alert-success-16>`;
|
|
11111
10940
|
}
|
|
11112
10941
|
async collapse() {
|
|
11113
10942
|
return new Promise((o) => {
|
|
11114
|
-
this._expanded && this._wrapper ?
|
|
10943
|
+
this._expanded && this._wrapper ? $t(this._wrapper, o) : o();
|
|
11115
10944
|
});
|
|
11116
10945
|
}
|
|
11117
10946
|
close() {
|
|
@@ -11123,7 +10952,7 @@ class Vr extends I {
|
|
|
11123
10952
|
this.updateComplete.then(() => this.dispatchEvent(o));
|
|
11124
10953
|
}
|
|
11125
10954
|
render() {
|
|
11126
|
-
return this.text ?
|
|
10955
|
+
return this.text ? $` <section class="${K.wrapper}" aria-label="${this._typeLabel}">
|
|
11127
10956
|
<div class="${this._primaryClasses}">
|
|
11128
10957
|
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
11129
10958
|
<div role="${this._role}" class="${K.content}">
|
|
@@ -11131,10 +10960,14 @@ class Vr extends I {
|
|
|
11131
10960
|
</div>
|
|
11132
10961
|
${ir(
|
|
11133
10962
|
this.canclose === !0,
|
|
11134
|
-
() =>
|
|
10963
|
+
() => $`
|
|
10964
|
+
<button class="${K.close}" @click="${this.close}">
|
|
10965
|
+
<w-icon-close-16></w-icon-close-16>
|
|
10966
|
+
</button>
|
|
10967
|
+
`
|
|
11135
10968
|
)}
|
|
11136
10969
|
</div>
|
|
11137
|
-
</section>` :
|
|
10970
|
+
</section>` : $``;
|
|
11138
10971
|
}
|
|
11139
10972
|
}
|
|
11140
10973
|
Z(Vr, "styles", [
|
|
@@ -11711,6 +11544,7 @@ Z(Vr, "styles", [
|
|
|
11711
11544
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
11712
11545
|
.pb-32{padding-bottom:3.2rem;}
|
|
11713
11546
|
.pb-4{padding-bottom:0.4rem;}
|
|
11547
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
11714
11548
|
.pb-8{padding-bottom:0.8rem;}
|
|
11715
11549
|
.pl-0{padding-left:0rem;}
|
|
11716
11550
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -11726,6 +11560,7 @@ Z(Vr, "styles", [
|
|
|
11726
11560
|
.pr-40{padding-right:4rem;}
|
|
11727
11561
|
.pt-0{padding-top:0rem;}
|
|
11728
11562
|
.pt-1{padding-top:0.1rem;}
|
|
11563
|
+
.pt-4{padding-top:0.4rem;}
|
|
11729
11564
|
.pt-8{padding-top:0.8rem;}
|
|
11730
11565
|
.invisible{visibility:hidden;}
|
|
11731
11566
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -11760,6 +11595,7 @@ Z(Vr, "styles", [
|
|
|
11760
11595
|
.duration-300{transition-duration:300ms;}
|
|
11761
11596
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
11762
11597
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
11598
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
11763
11599
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
11764
11600
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
11765
11601
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -11798,7 +11634,7 @@ Z(Vr, "styles", [
|
|
|
11798
11634
|
canclose: { type: Boolean, attribute: !0, reflect: !0 }
|
|
11799
11635
|
});
|
|
11800
11636
|
customElements.get("w-toast") || customElements.define("w-toast", Vr);
|
|
11801
|
-
class
|
|
11637
|
+
class Jr extends H {
|
|
11802
11638
|
constructor() {
|
|
11803
11639
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
11804
11640
|
}
|
|
@@ -11871,13 +11707,13 @@ class Gr extends I {
|
|
|
11871
11707
|
return this._toasts = new Map(Array.from(this._toasts)), t;
|
|
11872
11708
|
}
|
|
11873
11709
|
render() {
|
|
11874
|
-
return
|
|
11710
|
+
return $`
|
|
11875
11711
|
<aside class="${jr.container}">
|
|
11876
11712
|
<div class="${jr.toaster}" id="w-toast-container-list">
|
|
11877
|
-
${
|
|
11713
|
+
${gt(
|
|
11878
11714
|
this._toastsArray,
|
|
11879
11715
|
(o) => o.id,
|
|
11880
|
-
(o) =>
|
|
11716
|
+
(o) => $` <w-toast
|
|
11881
11717
|
class="${jr.content}"
|
|
11882
11718
|
id="${o.id}"
|
|
11883
11719
|
type="${o.type}"
|
|
@@ -11892,7 +11728,7 @@ class Gr extends I {
|
|
|
11892
11728
|
`;
|
|
11893
11729
|
}
|
|
11894
11730
|
}
|
|
11895
|
-
Z(
|
|
11731
|
+
Z(Jr, "styles", [
|
|
11896
11732
|
Q`
|
|
11897
11733
|
/* layer: preflights */
|
|
11898
11734
|
*,::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;}
|
|
@@ -12466,6 +12302,7 @@ Z(Gr, "styles", [
|
|
|
12466
12302
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
12467
12303
|
.pb-32{padding-bottom:3.2rem;}
|
|
12468
12304
|
.pb-4{padding-bottom:0.4rem;}
|
|
12305
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
12469
12306
|
.pb-8{padding-bottom:0.8rem;}
|
|
12470
12307
|
.pl-0{padding-left:0rem;}
|
|
12471
12308
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -12481,6 +12318,7 @@ Z(Gr, "styles", [
|
|
|
12481
12318
|
.pr-40{padding-right:4rem;}
|
|
12482
12319
|
.pt-0{padding-top:0rem;}
|
|
12483
12320
|
.pt-1{padding-top:0.1rem;}
|
|
12321
|
+
.pt-4{padding-top:0.4rem;}
|
|
12484
12322
|
.pt-8{padding-top:0.8rem;}
|
|
12485
12323
|
.invisible{visibility:hidden;}
|
|
12486
12324
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -12515,6 +12353,7 @@ Z(Gr, "styles", [
|
|
|
12515
12353
|
.duration-300{transition-duration:300ms;}
|
|
12516
12354
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
12517
12355
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
12356
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
12518
12357
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
12519
12358
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
12520
12359
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -12546,11 +12385,11 @@ Z(Gr, "styles", [
|
|
|
12546
12385
|
display: block;
|
|
12547
12386
|
}
|
|
12548
12387
|
`
|
|
12549
|
-
]), Z(
|
|
12388
|
+
]), Z(Jr, "properties", {
|
|
12550
12389
|
_toasts: { state: !0 }
|
|
12551
12390
|
});
|
|
12552
|
-
customElements.get("w-toast-container") || customElements.define("w-toast-container",
|
|
12553
|
-
class
|
|
12391
|
+
customElements.get("w-toast-container") || customElements.define("w-toast-container", Jr);
|
|
12392
|
+
class Gr extends H {
|
|
12554
12393
|
constructor() {
|
|
12555
12394
|
super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
|
|
12556
12395
|
}
|
|
@@ -12563,25 +12402,25 @@ class Jr extends I {
|
|
|
12563
12402
|
this._mounted = !0;
|
|
12564
12403
|
return;
|
|
12565
12404
|
}
|
|
12566
|
-
this.show &&
|
|
12405
|
+
this.show && kt(this._wrapper), !this.show && !this._removeElement && $t(this._wrapper, () => this._removeElement = !0);
|
|
12567
12406
|
}
|
|
12568
12407
|
}
|
|
12569
12408
|
get _wrapper() {
|
|
12570
12409
|
return this ?? null;
|
|
12571
12410
|
}
|
|
12572
12411
|
render() {
|
|
12573
|
-
return
|
|
12574
|
-
${this._removeElement ?
|
|
12412
|
+
return $`<div aria-hidden=${N(this.show ? void 0 : "true")}>
|
|
12413
|
+
${this._removeElement ? $`` : $`<slot></slot>`}
|
|
12575
12414
|
</div>`;
|
|
12576
12415
|
}
|
|
12577
12416
|
}
|
|
12578
|
-
Z(
|
|
12417
|
+
Z(Gr, "properties", {
|
|
12579
12418
|
show: {
|
|
12580
12419
|
type: Boolean,
|
|
12581
12420
|
reflect: !0
|
|
12582
12421
|
},
|
|
12583
12422
|
_removeElement: { type: Boolean, state: !0 }
|
|
12584
|
-
}), Z(
|
|
12423
|
+
}), Z(Gr, "styles", [
|
|
12585
12424
|
Q`
|
|
12586
12425
|
/* layer: preflights */
|
|
12587
12426
|
*,::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;}
|
|
@@ -13155,6 +12994,7 @@ Z(Jr, "properties", {
|
|
|
13155
12994
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
13156
12995
|
.pb-32{padding-bottom:3.2rem;}
|
|
13157
12996
|
.pb-4{padding-bottom:0.4rem;}
|
|
12997
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
13158
12998
|
.pb-8{padding-bottom:0.8rem;}
|
|
13159
12999
|
.pl-0{padding-left:0rem;}
|
|
13160
13000
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -13170,6 +13010,7 @@ Z(Jr, "properties", {
|
|
|
13170
13010
|
.pr-40{padding-right:4rem;}
|
|
13171
13011
|
.pt-0{padding-top:0rem;}
|
|
13172
13012
|
.pt-1{padding-top:0.1rem;}
|
|
13013
|
+
.pt-4{padding-top:0.4rem;}
|
|
13173
13014
|
.pt-8{padding-top:0.8rem;}
|
|
13174
13015
|
.invisible{visibility:hidden;}
|
|
13175
13016
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -13204,6 +13045,7 @@ Z(Jr, "properties", {
|
|
|
13204
13045
|
.duration-300{transition-duration:300ms;}
|
|
13205
13046
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
13206
13047
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
13048
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
13207
13049
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
13208
13050
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
13209
13051
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -13236,8 +13078,8 @@ Z(Jr, "properties", {
|
|
|
13236
13078
|
}
|
|
13237
13079
|
`
|
|
13238
13080
|
]);
|
|
13239
|
-
customElements.get("w-expand-transition") || customElements.define("w-expand-transition",
|
|
13240
|
-
class Kr extends
|
|
13081
|
+
customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Gr);
|
|
13082
|
+
class Kr extends H {
|
|
13241
13083
|
get _markup() {
|
|
13242
13084
|
return `<h${this.level}
|
|
13243
13085
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -13247,7 +13089,7 @@ class Kr extends I {
|
|
|
13247
13089
|
`;
|
|
13248
13090
|
}
|
|
13249
13091
|
render() {
|
|
13250
|
-
return this.level ?
|
|
13092
|
+
return this.level ? ut(this._markup) : $`<slot></slot>`;
|
|
13251
13093
|
}
|
|
13252
13094
|
}
|
|
13253
13095
|
Z(Kr, "properties", {
|
|
@@ -13826,6 +13668,7 @@ Z(Kr, "properties", {
|
|
|
13826
13668
|
.last\\:pr-1:last-child{padding-right:0.1rem;}
|
|
13827
13669
|
.pb-32{padding-bottom:3.2rem;}
|
|
13828
13670
|
.pb-4{padding-bottom:0.4rem;}
|
|
13671
|
+
.pb-6{padding-bottom:0.6rem;}
|
|
13829
13672
|
.pb-8{padding-bottom:0.8rem;}
|
|
13830
13673
|
.pl-0{padding-left:0rem;}
|
|
13831
13674
|
.pl-1{padding-left:0.1rem;}
|
|
@@ -13841,6 +13684,7 @@ Z(Kr, "properties", {
|
|
|
13841
13684
|
.pr-40{padding-right:4rem;}
|
|
13842
13685
|
.pt-0{padding-top:0rem;}
|
|
13843
13686
|
.pt-1{padding-top:0.1rem;}
|
|
13687
|
+
.pt-4{padding-top:0.4rem;}
|
|
13844
13688
|
.pt-8{padding-top:0.8rem;}
|
|
13845
13689
|
.invisible{visibility:hidden;}
|
|
13846
13690
|
.backface-hidden{backface-visibility:hidden;}
|
|
@@ -13875,6 +13719,7 @@ Z(Kr, "properties", {
|
|
|
13875
13719
|
.duration-300{transition-duration:300ms;}
|
|
13876
13720
|
.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);}
|
|
13877
13721
|
.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);}
|
|
13722
|
+
.text-m\\!{font-size:var(--w-font-size-m) !important;line-height:var(--w-line-height-m) !important;}
|
|
13878
13723
|
.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);}
|
|
13879
13724
|
.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);}
|
|
13880
13725
|
.leading-m{line-height:var(--w-line-height-m);}
|
|
@@ -13906,13 +13751,13 @@ Z(Kr, "properties", {
|
|
|
13906
13751
|
]);
|
|
13907
13752
|
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Kr);
|
|
13908
13753
|
export {
|
|
13909
|
-
|
|
13754
|
+
Gr as ExpandTransition,
|
|
13910
13755
|
Kr as UnstyledHeading,
|
|
13911
13756
|
Cr as WarpAffix,
|
|
13912
|
-
|
|
13757
|
+
Mr as WarpAlert,
|
|
13913
13758
|
Or as WarpAttention,
|
|
13914
|
-
|
|
13915
|
-
|
|
13759
|
+
Nr as WarpBadge,
|
|
13760
|
+
Br as WarpBox,
|
|
13916
13761
|
Pr as WarpBreadcrumbs,
|
|
13917
13762
|
Ir as WarpBroadcast,
|
|
13918
13763
|
cr as WarpButton,
|
|
@@ -13921,8 +13766,8 @@ export {
|
|
|
13921
13766
|
Fr as WarpSelect,
|
|
13922
13767
|
Wr as WarpTextField,
|
|
13923
13768
|
Vr as WarpToast,
|
|
13924
|
-
|
|
13925
|
-
|
|
13926
|
-
|
|
13927
|
-
|
|
13769
|
+
Jr as WarpToastContainer,
|
|
13770
|
+
Wa as removeToast,
|
|
13771
|
+
Fa as toast,
|
|
13772
|
+
Va as updateToast
|
|
13928
13773
|
};
|