@openvoxproject/voxblocks 0.12.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/voxblocks.js +1924 -1351
- package/dist/types/components/combobox/vox-combobox.d.ts +56 -0
- package/dist/types/components/input/vox-input.d.ts +18 -1
- package/dist/types/components/range/vox-range.d.ts +36 -0
- package/dist/types/components/select/vox-select.d.ts +17 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/voxblocks.js +1387 -814
- package/package.json +1 -1
- package/src/components/combobox/vox-combobox.ts +394 -0
- package/src/components/input/vox-input.ts +52 -2
- package/src/components/range/vox-range.ts +194 -0
- package/src/components/select/vox-select.ts +68 -3
- package/src/index.ts +2 -0
package/dist/cdn/voxblocks.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
8
|
-
constructor(e,
|
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
|
10
|
-
this.cssText = e, this.t =
|
|
6
|
+
const st = globalThis, Nt = st.ShadowRoot && (st.ShadyCSS === void 0 || st.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rt = Symbol(), so = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let _o = class {
|
|
8
|
+
constructor(e, r, s) {
|
|
9
|
+
if (this._$cssResult$ = !0, s !== Rt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
|
+
this.cssText = e, this.t = r;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
const s =
|
|
17
|
-
s && (e =
|
|
14
|
+
const r = this.t;
|
|
15
|
+
if (Nt && e === void 0) {
|
|
16
|
+
const s = r !== void 0 && r.length === 1;
|
|
17
|
+
s && (e = so.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && so.set(r, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,77 +22,77 @@ let bo = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const
|
|
25
|
+
const Ro = (o) => new _o(typeof o == "string" ? o : o + "", void 0, Rt), d = (o, ...e) => {
|
|
26
|
+
const r = o.length === 1 ? o[0] : e.reduce((s, t, a) => s + ((i) => {
|
|
27
27
|
if (i._$cssResult$ === !0) return i.cssText;
|
|
28
28
|
if (typeof i == "number") return i;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(t) +
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
34
|
-
else for (const
|
|
35
|
-
const s = document.createElement("style"), t =
|
|
36
|
-
t !== void 0 && s.setAttribute("nonce", t), s.textContent =
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
let
|
|
40
|
-
for (const s of e.cssRules)
|
|
41
|
-
return
|
|
42
|
-
})(
|
|
30
|
+
})(t) + o[a + 1], o[0]);
|
|
31
|
+
return new _o(r, o, Rt);
|
|
32
|
+
}, Io = (o, e) => {
|
|
33
|
+
if (Nt) o.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
34
|
+
else for (const r of e) {
|
|
35
|
+
const s = document.createElement("style"), t = st.litNonce;
|
|
36
|
+
t !== void 0 && s.setAttribute("nonce", t), s.textContent = r.cssText, o.appendChild(s);
|
|
37
|
+
}
|
|
38
|
+
}, ao = Nt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((e) => {
|
|
39
|
+
let r = "";
|
|
40
|
+
for (const s of e.cssRules) r += s.cssText;
|
|
41
|
+
return Ro(r);
|
|
42
|
+
})(o) : o;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: qo, defineProperty: Uo, getOwnPropertyDescriptor: Zo, getOwnPropertyNames: Fo, getOwnPropertySymbols: Ko, getPrototypeOf: Go } = Object, z = globalThis, io = z.trustedTypes, Wo = io ? io.emptyScript : "", kt = z.reactiveElementPolyfillSupport, be = (o, e) => o, at = { toAttribute(o, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
|
|
51
|
+
o = o ? Wo : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
55
|
-
|
|
55
|
+
o = o == null ? o : JSON.stringify(o);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
58
|
-
}, fromAttribute(
|
|
59
|
-
let
|
|
57
|
+
return o;
|
|
58
|
+
}, fromAttribute(o, e) {
|
|
59
|
+
let r = o;
|
|
60
60
|
switch (e) {
|
|
61
61
|
case Boolean:
|
|
62
|
-
|
|
62
|
+
r = o !== null;
|
|
63
63
|
break;
|
|
64
64
|
case Number:
|
|
65
|
-
|
|
65
|
+
r = o === null ? null : Number(o);
|
|
66
66
|
break;
|
|
67
67
|
case Object:
|
|
68
68
|
case Array:
|
|
69
69
|
try {
|
|
70
|
-
|
|
70
|
+
r = JSON.parse(o);
|
|
71
71
|
} catch {
|
|
72
|
-
|
|
72
|
+
r = null;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
return
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
75
|
+
return r;
|
|
76
|
+
} }, It = (o, e) => !qo(o, e), no = { attribute: !0, type: String, converter: at, reflect: !1, useDefault: !1, hasChanged: It };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), z.litPropertyMetadata ?? (z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let se = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(e,
|
|
86
|
-
if (
|
|
87
|
-
const s = Symbol(), t = this.getPropertyDescriptor(e, s,
|
|
88
|
-
t !== void 0 &&
|
|
85
|
+
static createProperty(e, r = no) {
|
|
86
|
+
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
87
|
+
const s = Symbol(), t = this.getPropertyDescriptor(e, s, r);
|
|
88
|
+
t !== void 0 && Uo(this.prototype, e, t);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(e,
|
|
92
|
-
const { get: t, set: a } =
|
|
93
|
-
return this[
|
|
91
|
+
static getPropertyDescriptor(e, r, s) {
|
|
92
|
+
const { get: t, set: a } = Zo(this.prototype, e) ?? { get() {
|
|
93
|
+
return this[r];
|
|
94
94
|
}, set(i) {
|
|
95
|
-
this[
|
|
95
|
+
this[r] = i;
|
|
96
96
|
} };
|
|
97
97
|
return { get: t, set(i) {
|
|
98
98
|
const v = t == null ? void 0 : t.call(this);
|
|
@@ -100,41 +100,41 @@ let Y = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(e) {
|
|
103
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? no;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(be("elementProperties"))) return;
|
|
107
|
+
const e = Go(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const
|
|
114
|
-
for (const t of s) this.createProperty(t,
|
|
111
|
+
if (this.hasOwnProperty(be("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(be("properties"))) {
|
|
113
|
+
const r = this.properties, s = [...Fo(r), ...Ko(r)];
|
|
114
|
+
for (const t of s) this.createProperty(t, r[t]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
117
117
|
if (e !== null) {
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
118
|
+
const r = litPropertyMetadata.get(e);
|
|
119
|
+
if (r !== void 0) for (const [s, t] of r) this.elementProperties.set(s, t);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [
|
|
123
|
-
const t = this._$Eu(
|
|
124
|
-
t !== void 0 && this._$Eh.set(t,
|
|
122
|
+
for (const [r, s] of this.elementProperties) {
|
|
123
|
+
const t = this._$Eu(r, s);
|
|
124
|
+
t !== void 0 && this._$Eh.set(t, r);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
127
127
|
}
|
|
128
128
|
static finalizeStyles(e) {
|
|
129
|
-
const
|
|
129
|
+
const r = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
131
|
const s = new Set(e.flat(1 / 0).reverse());
|
|
132
|
-
for (const t of s)
|
|
133
|
-
} else e !== void 0 &&
|
|
134
|
-
return
|
|
132
|
+
for (const t of s) r.unshift(ao(t));
|
|
133
|
+
} else e !== void 0 && r.push(ao(e));
|
|
134
|
+
return r;
|
|
135
135
|
}
|
|
136
|
-
static _$Eu(e,
|
|
137
|
-
const s =
|
|
136
|
+
static _$Eu(e, r) {
|
|
137
|
+
const s = r.attribute;
|
|
138
138
|
return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
@@ -142,80 +142,80 @@ let Y = class extends HTMLElement {
|
|
|
142
142
|
}
|
|
143
143
|
_$Ev() {
|
|
144
144
|
var e;
|
|
145
|
-
this._$ES = new Promise((
|
|
145
|
+
this._$ES = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((r) => r(this));
|
|
146
146
|
}
|
|
147
147
|
addController(e) {
|
|
148
|
-
var
|
|
149
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((
|
|
148
|
+
var r;
|
|
149
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((r = e.hostConnected) == null || r.call(e));
|
|
150
150
|
}
|
|
151
151
|
removeController(e) {
|
|
152
|
-
var
|
|
153
|
-
(
|
|
152
|
+
var r;
|
|
153
|
+
(r = this._$EO) == null || r.delete(e);
|
|
154
154
|
}
|
|
155
155
|
_$E_() {
|
|
156
|
-
const e = /* @__PURE__ */ new Map(),
|
|
157
|
-
for (const s of
|
|
156
|
+
const e = /* @__PURE__ */ new Map(), r = this.constructor.elementProperties;
|
|
157
|
+
for (const s of r.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
|
|
158
158
|
e.size > 0 && (this._$Ep = e);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Io(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
166
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((
|
|
166
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((r) => {
|
|
167
167
|
var s;
|
|
168
|
-
return (s =
|
|
168
|
+
return (s = r.hostConnected) == null ? void 0 : s.call(r);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(e) {
|
|
172
172
|
}
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var e;
|
|
175
|
-
(e = this._$EO) == null || e.forEach((
|
|
175
|
+
(e = this._$EO) == null || e.forEach((r) => {
|
|
176
176
|
var s;
|
|
177
|
-
return (s =
|
|
177
|
+
return (s = r.hostDisconnected) == null ? void 0 : s.call(r);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(e,
|
|
180
|
+
attributeChangedCallback(e, r, s) {
|
|
181
181
|
this._$AK(e, s);
|
|
182
182
|
}
|
|
183
|
-
_$ET(e,
|
|
183
|
+
_$ET(e, r) {
|
|
184
184
|
var a;
|
|
185
185
|
const s = this.constructor.elementProperties.get(e), t = this.constructor._$Eu(e, s);
|
|
186
186
|
if (t !== void 0 && s.reflect === !0) {
|
|
187
|
-
const i = (((a = s.converter) == null ? void 0 : a.toAttribute) !== void 0 ? s.converter :
|
|
187
|
+
const i = (((a = s.converter) == null ? void 0 : a.toAttribute) !== void 0 ? s.converter : at).toAttribute(r, s.type);
|
|
188
188
|
this._$Em = e, i == null ? this.removeAttribute(t) : this.setAttribute(t, i), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
_$AK(e,
|
|
191
|
+
_$AK(e, r) {
|
|
192
192
|
var a, i;
|
|
193
193
|
const s = this.constructor, t = s._$Eh.get(e);
|
|
194
194
|
if (t !== void 0 && this._$Em !== t) {
|
|
195
|
-
const v = s.getPropertyOptions(t), u = typeof v.converter == "function" ? { fromAttribute: v.converter } : ((a = v.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? v.converter :
|
|
195
|
+
const v = s.getPropertyOptions(t), u = typeof v.converter == "function" ? { fromAttribute: v.converter } : ((a = v.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? v.converter : at;
|
|
196
196
|
this._$Em = t;
|
|
197
|
-
const f = u.fromAttribute(
|
|
197
|
+
const f = u.fromAttribute(r, v.type);
|
|
198
198
|
this[t] = f ?? ((i = this._$Ej) == null ? void 0 : i.get(t)) ?? f, this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
requestUpdate(e,
|
|
201
|
+
requestUpdate(e, r, s, t = !1, a) {
|
|
202
202
|
var i;
|
|
203
203
|
if (e !== void 0) {
|
|
204
204
|
const v = this.constructor;
|
|
205
|
-
if (t === !1 && (a = this[e]), s ?? (s = v.getPropertyOptions(e)), !((s.hasChanged ??
|
|
206
|
-
this.C(e,
|
|
205
|
+
if (t === !1 && (a = this[e]), s ?? (s = v.getPropertyOptions(e)), !((s.hasChanged ?? It)(a, r) || s.useDefault && s.reflect && a === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(v._$Eu(e, s)))) return;
|
|
206
|
+
this.C(e, r, s);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
209
209
|
}
|
|
210
|
-
C(e,
|
|
211
|
-
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, i ??
|
|
210
|
+
C(e, r, { useDefault: s, reflect: t, wrapped: a }, i) {
|
|
211
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, i ?? r ?? this[e]), a !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (r = void 0), this._$AL.set(e, r)), t === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
|
212
212
|
}
|
|
213
213
|
async _$EP() {
|
|
214
214
|
this.isUpdatePending = !0;
|
|
215
215
|
try {
|
|
216
216
|
await this._$ES;
|
|
217
|
-
} catch (
|
|
218
|
-
Promise.reject(
|
|
217
|
+
} catch (r) {
|
|
218
|
+
Promise.reject(r);
|
|
219
219
|
}
|
|
220
220
|
const e = this.scheduleUpdate();
|
|
221
221
|
return e != null && await e, !this.isUpdatePending;
|
|
@@ -238,22 +238,22 @@ let Y = class extends HTMLElement {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
let e = !1;
|
|
241
|
-
const
|
|
241
|
+
const r = this._$AL;
|
|
242
242
|
try {
|
|
243
|
-
e = this.shouldUpdate(
|
|
243
|
+
e = this.shouldUpdate(r), e ? (this.willUpdate(r), (s = this._$EO) == null || s.forEach((t) => {
|
|
244
244
|
var a;
|
|
245
245
|
return (a = t.hostUpdate) == null ? void 0 : a.call(t);
|
|
246
|
-
}), this.update(
|
|
246
|
+
}), this.update(r)) : this._$EM();
|
|
247
247
|
} catch (t) {
|
|
248
248
|
throw e = !1, this._$EM(), t;
|
|
249
249
|
}
|
|
250
|
-
e && this._$AE(
|
|
250
|
+
e && this._$AE(r);
|
|
251
251
|
}
|
|
252
252
|
willUpdate(e) {
|
|
253
253
|
}
|
|
254
254
|
_$AE(e) {
|
|
255
|
-
var
|
|
256
|
-
(
|
|
255
|
+
var r;
|
|
256
|
+
(r = this._$EO) == null || r.forEach((s) => {
|
|
257
257
|
var t;
|
|
258
258
|
return (t = s.hostUpdated) == null ? void 0 : t.call(s);
|
|
259
259
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
@@ -271,85 +271,85 @@ let Y = class extends HTMLElement {
|
|
|
271
271
|
return !0;
|
|
272
272
|
}
|
|
273
273
|
update(e) {
|
|
274
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((
|
|
274
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((r) => this._$ET(r, this[r]))), this._$EM();
|
|
275
275
|
}
|
|
276
276
|
updated(e) {
|
|
277
277
|
}
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
se.elementStyles = [], se.shadowRootOptions = { mode: "open" }, se[be("elementProperties")] = /* @__PURE__ */ new Map(), se[be("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: se }), (z.reactiveElementVersions ?? (z.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const
|
|
288
|
-
\f\r]`,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const ye = globalThis, lo = (o) => o, it = ye.trustedTypes, co = it ? it.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Co = "$lit$", j = `lit$${Math.random().toFixed(9).slice(2)}$`, Oo = "?" + j, Yo = `<${Oo}>`, Z = document, me = () => Z.createComment(""), we = (o) => o === null || typeof o != "object" && typeof o != "function", qt = Array.isArray, Jo = (o) => qt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Pt = `[
|
|
288
|
+
\f\r]`, ge = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ho = /-->/g, po = />/g, R = RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), vo = /'/g, uo = /"/g, Mo = /^(?:script|style|textarea|title)$/i, Ao = (o) => (e, ...r) => ({ _$litType$: o, strings: e, values: r }), l = Ao(1), c = Ao(2), C = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), xo = /* @__PURE__ */ new WeakMap(), q = Z.createTreeWalker(Z, 129);
|
|
290
|
+
function ko(o, e) {
|
|
291
|
+
if (!qt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return co !== void 0 ? co.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
const
|
|
296
|
-
let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i =
|
|
297
|
-
for (let v = 0; v <
|
|
298
|
-
const u =
|
|
299
|
-
let f,
|
|
300
|
-
for (;
|
|
301
|
-
const
|
|
302
|
-
a += i ===
|
|
303
|
-
}
|
|
304
|
-
return [
|
|
294
|
+
const Xo = (o, e) => {
|
|
295
|
+
const r = o.length - 1, s = [];
|
|
296
|
+
let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i = ge;
|
|
297
|
+
for (let v = 0; v < r; v++) {
|
|
298
|
+
const u = o[v];
|
|
299
|
+
let f, y, g = -1, E = 0;
|
|
300
|
+
for (; E < u.length && (i.lastIndex = E, y = i.exec(u), y !== null); ) E = i.lastIndex, i === ge ? y[1] === "!--" ? i = ho : y[1] !== void 0 ? i = po : y[2] !== void 0 ? (Mo.test(y[2]) && (t = RegExp("</" + y[2], "g")), i = R) : y[3] !== void 0 && (i = R) : i === R ? y[0] === ">" ? (i = t ?? ge, g = -1) : y[1] === void 0 ? g = -2 : (g = i.lastIndex - y[2].length, f = y[1], i = y[3] === void 0 ? R : y[3] === '"' ? uo : vo) : i === uo || i === vo ? i = R : i === ho || i === po ? i = ge : (i = R, t = void 0);
|
|
301
|
+
const V = i === R && o[v + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
a += i === ge ? u + Yo : g >= 0 ? (s.push(f), u.slice(0, g) + Co + u.slice(g) + j + V) : u + j + (g === -2 ? v : V);
|
|
303
|
+
}
|
|
304
|
+
return [ko(o, a + (o[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
307
|
-
constructor({ strings: e, _$litType$:
|
|
306
|
+
class $e {
|
|
307
|
+
constructor({ strings: e, _$litType$: r }, s) {
|
|
308
308
|
let t;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let a = 0, i = 0;
|
|
311
|
-
const v = e.length - 1, u = this.parts, [f,
|
|
312
|
-
if (this.el =
|
|
311
|
+
const v = e.length - 1, u = this.parts, [f, y] = Xo(e, r);
|
|
312
|
+
if (this.el = $e.createElement(f, s), q.currentNode = this.el.content, r === 2 || r === 3) {
|
|
313
313
|
const g = this.el.content.firstChild;
|
|
314
314
|
g.replaceWith(...g.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (t =
|
|
316
|
+
for (; (t = q.nextNode()) !== null && u.length < v; ) {
|
|
317
317
|
if (t.nodeType === 1) {
|
|
318
|
-
if (t.hasAttributes()) for (const g of t.getAttributeNames()) if (g.endsWith(
|
|
319
|
-
const
|
|
320
|
-
u.push({ type: 1, index: a, name:
|
|
321
|
-
} else g.startsWith(
|
|
322
|
-
if (
|
|
323
|
-
const g = t.textContent.split(
|
|
324
|
-
if (
|
|
325
|
-
t.textContent =
|
|
326
|
-
for (let
|
|
327
|
-
t.append(g[
|
|
318
|
+
if (t.hasAttributes()) for (const g of t.getAttributeNames()) if (g.endsWith(Co)) {
|
|
319
|
+
const E = y[i++], V = t.getAttribute(g).split(j), et = /([.?@])?(.*)/.exec(E);
|
|
320
|
+
u.push({ type: 1, index: a, name: et[2], strings: V, ctor: et[1] === "." ? er : et[1] === "?" ? tr : et[1] === "@" ? or : gt }), t.removeAttribute(g);
|
|
321
|
+
} else g.startsWith(j) && (u.push({ type: 6, index: a }), t.removeAttribute(g));
|
|
322
|
+
if (Mo.test(t.tagName)) {
|
|
323
|
+
const g = t.textContent.split(j), E = g.length - 1;
|
|
324
|
+
if (E > 0) {
|
|
325
|
+
t.textContent = it ? it.emptyScript : "";
|
|
326
|
+
for (let V = 0; V < E; V++) t.append(g[V], me()), q.nextNode(), u.push({ type: 2, index: ++a });
|
|
327
|
+
t.append(g[E], me());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (t.nodeType === 8) if (t.data ===
|
|
330
|
+
} else if (t.nodeType === 8) if (t.data === Oo) u.push({ type: 2, index: a });
|
|
331
331
|
else {
|
|
332
332
|
let g = -1;
|
|
333
|
-
for (; (g = t.data.indexOf(
|
|
333
|
+
for (; (g = t.data.indexOf(j, g + 1)) !== -1; ) u.push({ type: 7, index: a }), g += j.length - 1;
|
|
334
334
|
}
|
|
335
335
|
a++;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
static createElement(e,
|
|
339
|
-
const s =
|
|
338
|
+
static createElement(e, r) {
|
|
339
|
+
const s = Z.createElement("template");
|
|
340
340
|
return s.innerHTML = e, s;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function ae(o, e, r = o, s) {
|
|
344
344
|
var i, v;
|
|
345
|
-
if (e ===
|
|
346
|
-
let t = s !== void 0 ? (i =
|
|
347
|
-
const a =
|
|
348
|
-
return (t == null ? void 0 : t.constructor) !== a && ((v = t == null ? void 0 : t._$AO) == null || v.call(t, !1), a === void 0 ? t = void 0 : (t = new a(
|
|
345
|
+
if (e === C) return e;
|
|
346
|
+
let t = s !== void 0 ? (i = r._$Co) == null ? void 0 : i[s] : r._$Cl;
|
|
347
|
+
const a = we(e) ? void 0 : e._$litDirective$;
|
|
348
|
+
return (t == null ? void 0 : t.constructor) !== a && ((v = t == null ? void 0 : t._$AO) == null || v.call(t, !1), a === void 0 ? t = void 0 : (t = new a(o), t._$AT(o, r, s)), s !== void 0 ? (r._$Co ?? (r._$Co = []))[s] = t : r._$Cl = t), t !== void 0 && (e = ae(o, t._$AS(o, e.values), t, s)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
351
|
-
constructor(e,
|
|
352
|
-
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM =
|
|
350
|
+
class Qo {
|
|
351
|
+
constructor(e, r) {
|
|
352
|
+
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
|
|
353
353
|
}
|
|
354
354
|
get parentNode() {
|
|
355
355
|
return this._$AM.parentNode;
|
|
@@ -358,35 +358,35 @@ class Go {
|
|
|
358
358
|
return this._$AM._$AU;
|
|
359
359
|
}
|
|
360
360
|
u(e) {
|
|
361
|
-
const { el: { content:
|
|
362
|
-
|
|
363
|
-
let a =
|
|
361
|
+
const { el: { content: r }, parts: s } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? Z).importNode(r, !0);
|
|
362
|
+
q.currentNode = t;
|
|
363
|
+
let a = q.nextNode(), i = 0, v = 0, u = s[0];
|
|
364
364
|
for (; u !== void 0; ) {
|
|
365
365
|
if (i === u.index) {
|
|
366
366
|
let f;
|
|
367
|
-
u.type === 2 ? f = new
|
|
367
|
+
u.type === 2 ? f = new qe(a, a.nextSibling, this, e) : u.type === 1 ? f = new u.ctor(a, u.name, u.strings, this, e) : u.type === 6 && (f = new rr(a, this, e)), this._$AV.push(f), u = s[++v];
|
|
368
368
|
}
|
|
369
|
-
i !== (u == null ? void 0 : u.index) && (a =
|
|
369
|
+
i !== (u == null ? void 0 : u.index) && (a = q.nextNode(), i++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return q.currentNode = Z, t;
|
|
372
372
|
}
|
|
373
373
|
p(e) {
|
|
374
|
-
let
|
|
375
|
-
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s,
|
|
374
|
+
let r = 0;
|
|
375
|
+
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, r), r += s.strings.length - 2) : s._$AI(e[r])), r++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class qe {
|
|
379
379
|
get _$AU() {
|
|
380
380
|
var e;
|
|
381
381
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
382
382
|
}
|
|
383
|
-
constructor(e,
|
|
384
|
-
this.type = 2, this._$AH = x, this._$AN = void 0, this._$AA = e, this._$AB =
|
|
383
|
+
constructor(e, r, s, t) {
|
|
384
|
+
this.type = 2, this._$AH = x, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = s, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
|
|
385
385
|
}
|
|
386
386
|
get parentNode() {
|
|
387
387
|
let e = this._$AA.parentNode;
|
|
388
|
-
const
|
|
389
|
-
return
|
|
388
|
+
const r = this._$AM;
|
|
389
|
+
return r !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = r.parentNode), e;
|
|
390
390
|
}
|
|
391
391
|
get startNode() {
|
|
392
392
|
return this._$AA;
|
|
@@ -394,8 +394,8 @@ class De {
|
|
|
394
394
|
get endNode() {
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
|
-
_$AI(e,
|
|
398
|
-
e =
|
|
397
|
+
_$AI(e, r = this) {
|
|
398
|
+
e = ae(this, e, r), we(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== C && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Jo(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -404,58 +404,58 @@ class De {
|
|
|
404
404
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
405
405
|
}
|
|
406
406
|
_(e) {
|
|
407
|
-
this._$AH !== x &&
|
|
407
|
+
this._$AH !== x && we(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Z.createTextNode(e)), this._$AH = e;
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
410
|
var a;
|
|
411
|
-
const { values:
|
|
412
|
-
if (((a = this._$AH) == null ? void 0 : a._$AD) === t) this._$AH.p(
|
|
411
|
+
const { values: r, _$litType$: s } = e, t = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = $e.createElement(ko(s.h, s.h[0]), this.options)), s);
|
|
412
|
+
if (((a = this._$AH) == null ? void 0 : a._$AD) === t) this._$AH.p(r);
|
|
413
413
|
else {
|
|
414
|
-
const i = new
|
|
415
|
-
i.p(
|
|
414
|
+
const i = new Qo(t, this), v = i.u(this.options);
|
|
415
|
+
i.p(r), this.T(v), this._$AH = i;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let
|
|
420
|
-
return
|
|
419
|
+
let r = xo.get(e.strings);
|
|
420
|
+
return r === void 0 && xo.set(e.strings, r = new $e(e)), r;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
424
|
-
const
|
|
423
|
+
qt(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
|
+
const r = this._$AH;
|
|
425
425
|
let s, t = 0;
|
|
426
|
-
for (const a of e) t ===
|
|
427
|
-
t <
|
|
426
|
+
for (const a of e) t === r.length ? r.push(s = new qe(this.O(me()), this.O(me()), this, this.options)) : s = r[t], s._$AI(a), t++;
|
|
427
|
+
t < r.length && (this._$AR(s && s._$AB.nextSibling, t), r.length = t);
|
|
428
428
|
}
|
|
429
|
-
_$AR(e = this._$AA.nextSibling,
|
|
429
|
+
_$AR(e = this._$AA.nextSibling, r) {
|
|
430
430
|
var s;
|
|
431
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0,
|
|
432
|
-
const t =
|
|
433
|
-
|
|
431
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, r); e !== this._$AB; ) {
|
|
432
|
+
const t = lo(e).nextSibling;
|
|
433
|
+
lo(e).remove(), e = t;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
437
|
-
var
|
|
438
|
-
this._$AM === void 0 && (this._$Cv = e, (
|
|
437
|
+
var r;
|
|
438
|
+
this._$AM === void 0 && (this._$Cv = e, (r = this._$AP) == null || r.call(this, e));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class gt {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
445
445
|
get _$AU() {
|
|
446
446
|
return this._$AM._$AU;
|
|
447
447
|
}
|
|
448
|
-
constructor(e,
|
|
449
|
-
this.type = 1, this._$AH = x, this._$AN = void 0, this.element = e, this.name =
|
|
448
|
+
constructor(e, r, s, t, a) {
|
|
449
|
+
this.type = 1, this._$AH = x, this._$AN = void 0, this.element = e, this.name = r, this._$AM = t, this.options = a, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = x;
|
|
450
450
|
}
|
|
451
|
-
_$AI(e,
|
|
451
|
+
_$AI(e, r = this, s, t) {
|
|
452
452
|
const a = this.strings;
|
|
453
453
|
let i = !1;
|
|
454
|
-
if (a === void 0) e =
|
|
454
|
+
if (a === void 0) e = ae(this, e, r, 0), i = !we(e) || e !== this._$AH && e !== C, i && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
456
|
const v = e;
|
|
457
457
|
let u, f;
|
|
458
|
-
for (e = a[0], u = 0; u < a.length - 1; u++) f =
|
|
458
|
+
for (e = a[0], u = 0; u < a.length - 1; u++) f = ae(this, v[s + u], r, u), f === C && (f = this._$AH[u]), i || (i = !we(f) || f !== this._$AH[u]), f === x ? e = x : e !== x && (e += (f ?? "") + a[u + 1]), this._$AH[u] = f;
|
|
459
459
|
}
|
|
460
460
|
i && !t && this.j(e);
|
|
461
461
|
}
|
|
@@ -463,7 +463,7 @@ class pt {
|
|
|
463
463
|
e === x ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class er extends gt {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class Yo extends pt {
|
|
|
471
471
|
this.element[this.name] = e === x ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class tr extends gt {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,60 +479,60 @@ class Wo extends pt {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== x);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
483
|
-
constructor(e,
|
|
484
|
-
super(e,
|
|
482
|
+
class or extends gt {
|
|
483
|
+
constructor(e, r, s, t, a) {
|
|
484
|
+
super(e, r, s, t, a), this.type = 5;
|
|
485
485
|
}
|
|
486
|
-
_$AI(e,
|
|
487
|
-
if ((e =
|
|
486
|
+
_$AI(e, r = this) {
|
|
487
|
+
if ((e = ae(this, e, r, 0) ?? x) === C) return;
|
|
488
488
|
const s = this._$AH, t = e === x && s !== x || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, a = e !== x && (s === x || t);
|
|
489
489
|
t && this.element.removeEventListener(this.name, this, s), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
490
490
|
}
|
|
491
491
|
handleEvent(e) {
|
|
492
|
-
var
|
|
493
|
-
typeof this._$AH == "function" ? this._$AH.call(((
|
|
492
|
+
var r;
|
|
493
|
+
typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class
|
|
497
|
-
constructor(e,
|
|
498
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM =
|
|
496
|
+
class rr {
|
|
497
|
+
constructor(e, r, s) {
|
|
498
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
|
|
499
499
|
}
|
|
500
500
|
get _$AU() {
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(e) {
|
|
504
|
-
|
|
504
|
+
ae(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
const s = (
|
|
507
|
+
const Et = ye.litHtmlPolyfillSupport;
|
|
508
|
+
Et == null || Et($e, qe), (ye.litHtmlVersions ?? (ye.litHtmlVersions = [])).push("3.3.3");
|
|
509
|
+
const sr = (o, e, r) => {
|
|
510
|
+
const s = (r == null ? void 0 : r.renderBefore) ?? e;
|
|
511
511
|
let t = s._$litPart$;
|
|
512
512
|
if (t === void 0) {
|
|
513
|
-
const a = (
|
|
514
|
-
s._$litPart$ = t = new
|
|
513
|
+
const a = (r == null ? void 0 : r.renderBefore) ?? null;
|
|
514
|
+
s._$litPart$ = t = new qe(e.insertBefore(me(), a), a, void 0, r ?? {});
|
|
515
515
|
}
|
|
516
|
-
return t._$AI(
|
|
516
|
+
return t._$AI(o), t;
|
|
517
517
|
};
|
|
518
518
|
/**
|
|
519
519
|
* @license
|
|
520
520
|
* Copyright 2017 Google LLC
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
|
-
const
|
|
524
|
-
let
|
|
523
|
+
const U = globalThis;
|
|
524
|
+
let p = class extends se {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
528
528
|
createRenderRoot() {
|
|
529
|
-
var
|
|
529
|
+
var r;
|
|
530
530
|
const e = super.createRenderRoot();
|
|
531
|
-
return (
|
|
531
|
+
return (r = this.renderOptions).renderBefore ?? (r.renderBefore = e.firstChild), e;
|
|
532
532
|
}
|
|
533
533
|
update(e) {
|
|
534
|
-
const
|
|
535
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
534
|
+
const r = this.render();
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = sr(r, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -543,82 +543,82 @@ let h = class extends Y {
|
|
|
543
543
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
544
544
|
}
|
|
545
545
|
render() {
|
|
546
|
-
return
|
|
546
|
+
return C;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
(
|
|
549
|
+
var $o;
|
|
550
|
+
p._$litElement$ = !0, p.finalized = !0, ($o = U.litElementHydrateSupport) == null || $o.call(U, { LitElement: p });
|
|
551
|
+
const Lt = U.litElementPolyfillSupport;
|
|
552
|
+
Lt == null || Lt({ LitElement: p });
|
|
553
|
+
(U.litElementVersions ?? (U.litElementVersions = [])).push("4.2.2");
|
|
554
554
|
/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
557
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
558
558
|
*/
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
customElements.define(
|
|
562
|
-
}) : customElements.define(
|
|
559
|
+
const h = (o) => (e, r) => {
|
|
560
|
+
r !== void 0 ? r.addInitializer(() => {
|
|
561
|
+
customElements.define(o, e);
|
|
562
|
+
}) : customElements.define(o, e);
|
|
563
563
|
};
|
|
564
564
|
/**
|
|
565
565
|
* @license
|
|
566
566
|
* Copyright 2017 Google LLC
|
|
567
567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
568
568
|
*/
|
|
569
|
-
const
|
|
570
|
-
const { kind: s, metadata: t } =
|
|
569
|
+
const ar = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged: It }, ir = (o = ar, e, r) => {
|
|
570
|
+
const { kind: s, metadata: t } = r;
|
|
571
571
|
let a = globalThis.litPropertyMetadata.get(t);
|
|
572
|
-
if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()), s === "setter" && ((
|
|
573
|
-
const { name: i } =
|
|
572
|
+
if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()), s === "setter" && ((o = Object.create(o)).wrapped = !0), a.set(r.name, o), s === "accessor") {
|
|
573
|
+
const { name: i } = r;
|
|
574
574
|
return { set(v) {
|
|
575
575
|
const u = e.get.call(this);
|
|
576
|
-
e.set.call(this, v), this.requestUpdate(i, u,
|
|
576
|
+
e.set.call(this, v), this.requestUpdate(i, u, o, !0, v);
|
|
577
577
|
}, init(v) {
|
|
578
|
-
return v !== void 0 && this.C(i, void 0,
|
|
578
|
+
return v !== void 0 && this.C(i, void 0, o, v), v;
|
|
579
579
|
} };
|
|
580
580
|
}
|
|
581
581
|
if (s === "setter") {
|
|
582
|
-
const { name: i } =
|
|
582
|
+
const { name: i } = r;
|
|
583
583
|
return function(v) {
|
|
584
584
|
const u = this[i];
|
|
585
|
-
e.call(this, v), this.requestUpdate(i, u,
|
|
585
|
+
e.call(this, v), this.requestUpdate(i, u, o, !0, v);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
throw Error("Unsupported decorator location: " + s);
|
|
589
589
|
};
|
|
590
|
-
function n(
|
|
591
|
-
return (e,
|
|
590
|
+
function n(o) {
|
|
591
|
+
return (e, r) => typeof r == "object" ? ir(o, e, r) : ((s, t, a) => {
|
|
592
592
|
const i = t.hasOwnProperty(a);
|
|
593
593
|
return t.constructor.createProperty(a, s), i ? Object.getOwnPropertyDescriptor(t, a) : void 0;
|
|
594
|
-
})(
|
|
594
|
+
})(o, e, r);
|
|
595
595
|
}
|
|
596
596
|
/**
|
|
597
597
|
* @license
|
|
598
598
|
* Copyright 2017 Google LLC
|
|
599
599
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
600
600
|
*/
|
|
601
|
-
function
|
|
602
|
-
return n({ ...
|
|
601
|
+
function k(o) {
|
|
602
|
+
return n({ ...o, state: !0, attribute: !1 });
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* @license
|
|
606
606
|
* Copyright 2017 Google LLC
|
|
607
607
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
608
|
*/
|
|
609
|
-
const
|
|
609
|
+
const nr = (o, e, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(o, e, r), r);
|
|
610
610
|
/**
|
|
611
611
|
* @license
|
|
612
612
|
* Copyright 2017 Google LLC
|
|
613
613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
614
614
|
*/
|
|
615
|
-
function
|
|
616
|
-
return (
|
|
615
|
+
function ue(o, e) {
|
|
616
|
+
return (r, s, t) => {
|
|
617
617
|
const a = (i) => {
|
|
618
618
|
var v;
|
|
619
|
-
return ((v = i.renderRoot) == null ? void 0 : v.querySelector(
|
|
619
|
+
return ((v = i.renderRoot) == null ? void 0 : v.querySelector(o)) ?? null;
|
|
620
620
|
};
|
|
621
|
-
return
|
|
621
|
+
return nr(r, s, { get() {
|
|
622
622
|
return a(this);
|
|
623
623
|
} });
|
|
624
624
|
};
|
|
@@ -628,21 +628,21 @@ function Ht(r, e) {
|
|
|
628
628
|
* Copyright 2017 Google LLC
|
|
629
629
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
630
630
|
*/
|
|
631
|
-
const
|
|
632
|
-
class
|
|
631
|
+
const I = { ATTRIBUTE: 1, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Po = (o) => (...e) => ({ _$litDirective$: o, values: e });
|
|
632
|
+
class Eo {
|
|
633
633
|
constructor(e) {
|
|
634
634
|
}
|
|
635
635
|
get _$AU() {
|
|
636
636
|
return this._$AM._$AU;
|
|
637
637
|
}
|
|
638
|
-
_$AT(e,
|
|
639
|
-
this._$Ct = e, this._$AM =
|
|
638
|
+
_$AT(e, r, s) {
|
|
639
|
+
this._$Ct = e, this._$AM = r, this._$Ci = s;
|
|
640
640
|
}
|
|
641
|
-
_$AS(e,
|
|
642
|
-
return this.update(e,
|
|
641
|
+
_$AS(e, r) {
|
|
642
|
+
return this.update(e, r);
|
|
643
643
|
}
|
|
644
|
-
update(e,
|
|
645
|
-
return this.render(...
|
|
644
|
+
update(e, r) {
|
|
645
|
+
return this.render(...r);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
/**
|
|
@@ -650,28 +650,28 @@ class Oo {
|
|
|
650
650
|
* Copyright 2018 Google LLC
|
|
651
651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
652
652
|
*/
|
|
653
|
-
const
|
|
654
|
-
constructor(
|
|
653
|
+
const Lo = Po(class extends Eo {
|
|
654
|
+
constructor(o) {
|
|
655
655
|
var e;
|
|
656
|
-
if (super(
|
|
656
|
+
if (super(o), o.type !== I.ATTRIBUTE || o.name !== "class" || ((e = o.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
657
657
|
}
|
|
658
|
-
render(
|
|
659
|
-
return " " + Object.keys(
|
|
658
|
+
render(o) {
|
|
659
|
+
return " " + Object.keys(o).filter((e) => o[e]).join(" ") + " ";
|
|
660
660
|
}
|
|
661
|
-
update(
|
|
661
|
+
update(o, [e]) {
|
|
662
662
|
var s, t;
|
|
663
663
|
if (this.st === void 0) {
|
|
664
|
-
this.st = /* @__PURE__ */ new Set(),
|
|
664
|
+
this.st = /* @__PURE__ */ new Set(), o.strings !== void 0 && (this.nt = new Set(o.strings.join(" ").split(/\s/).filter((a) => a !== "")));
|
|
665
665
|
for (const a in e) e[a] && !((s = this.nt) != null && s.has(a)) && this.st.add(a);
|
|
666
666
|
return this.render(e);
|
|
667
667
|
}
|
|
668
|
-
const
|
|
669
|
-
for (const a of this.st) a in e || (
|
|
668
|
+
const r = o.element.classList;
|
|
669
|
+
for (const a of this.st) a in e || (r.remove(a), this.st.delete(a));
|
|
670
670
|
for (const a in e) {
|
|
671
671
|
const i = !!e[a];
|
|
672
|
-
i === this.st.has(a) || (t = this.nt) != null && t.has(a) || (i ? (
|
|
672
|
+
i === this.st.has(a) || (t = this.nt) != null && t.has(a) || (i ? (r.add(a), this.st.add(a)) : (r.remove(a), this.st.delete(a)));
|
|
673
673
|
}
|
|
674
|
-
return
|
|
674
|
+
return C;
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
677
|
/**
|
|
@@ -679,39 +679,39 @@ const rr = Co(class extends Oo {
|
|
|
679
679
|
* Copyright 2018 Google LLC
|
|
680
680
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
681
681
|
*/
|
|
682
|
-
const
|
|
683
|
-
var
|
|
684
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
685
|
-
(i =
|
|
686
|
-
return s && t &&
|
|
682
|
+
const b = (o) => o ?? x;
|
|
683
|
+
var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, X = (o, e, r, s) => {
|
|
684
|
+
for (var t = s > 1 ? void 0 : s ? cr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
685
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
686
|
+
return s && t && lr(e, r, t), t;
|
|
687
687
|
};
|
|
688
|
-
let
|
|
688
|
+
let L = class extends p {
|
|
689
689
|
constructor() {
|
|
690
690
|
super(...arguments), this.variant = "brand", this.size = "md", this.type = "button", this.disabled = !1;
|
|
691
691
|
}
|
|
692
692
|
render() {
|
|
693
|
-
const
|
|
693
|
+
const o = Lo({
|
|
694
694
|
button: !0,
|
|
695
695
|
[this.variant]: !0,
|
|
696
696
|
[this.size]: !0
|
|
697
697
|
});
|
|
698
698
|
return this.href !== void 0 && !this.disabled ? l`
|
|
699
699
|
<a
|
|
700
|
-
class=${
|
|
700
|
+
class=${o}
|
|
701
701
|
href=${this.href}
|
|
702
|
-
target=${
|
|
703
|
-
rel=${
|
|
702
|
+
target=${b(this.target)}
|
|
703
|
+
rel=${b(this.target === "_blank" ? "noreferrer" : void 0)}
|
|
704
704
|
>
|
|
705
705
|
<slot></slot>
|
|
706
706
|
</a>
|
|
707
707
|
` : l`
|
|
708
|
-
<button class=${
|
|
708
|
+
<button class=${o} type=${this.type} ?disabled=${this.disabled}>
|
|
709
709
|
<slot></slot>
|
|
710
710
|
</button>
|
|
711
711
|
`;
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
|
-
|
|
714
|
+
L.styles = d`
|
|
715
715
|
:host {
|
|
716
716
|
display: inline-block;
|
|
717
717
|
}
|
|
@@ -819,33 +819,33 @@ C.styles = d`
|
|
|
819
819
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
820
820
|
}
|
|
821
821
|
`;
|
|
822
|
-
|
|
822
|
+
X([
|
|
823
823
|
n()
|
|
824
|
-
],
|
|
825
|
-
|
|
824
|
+
], L.prototype, "variant", 2);
|
|
825
|
+
X([
|
|
826
826
|
n()
|
|
827
|
-
],
|
|
828
|
-
|
|
827
|
+
], L.prototype, "size", 2);
|
|
828
|
+
X([
|
|
829
829
|
n()
|
|
830
|
-
],
|
|
831
|
-
|
|
830
|
+
], L.prototype, "href", 2);
|
|
831
|
+
X([
|
|
832
832
|
n()
|
|
833
|
-
],
|
|
834
|
-
|
|
833
|
+
], L.prototype, "target", 2);
|
|
834
|
+
X([
|
|
835
835
|
n()
|
|
836
|
-
],
|
|
837
|
-
|
|
836
|
+
], L.prototype, "type", 2);
|
|
837
|
+
X([
|
|
838
838
|
n({ type: Boolean, reflect: !0 })
|
|
839
|
-
],
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
],
|
|
843
|
-
var
|
|
844
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
845
|
-
(i =
|
|
846
|
-
return s && t &&
|
|
839
|
+
], L.prototype, "disabled", 2);
|
|
840
|
+
L = X([
|
|
841
|
+
h("vox-button")
|
|
842
|
+
], L);
|
|
843
|
+
var dr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Ut = (o, e, r, s) => {
|
|
844
|
+
for (var t = s > 1 ? void 0 : s ? hr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
845
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
846
|
+
return s && t && dr(e, r, t), t;
|
|
847
847
|
};
|
|
848
|
-
let
|
|
848
|
+
let _e = class extends p {
|
|
849
849
|
constructor() {
|
|
850
850
|
super(...arguments), this.href = "#";
|
|
851
851
|
}
|
|
@@ -861,7 +861,7 @@ let xe = class extends h {
|
|
|
861
861
|
`;
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
|
-
|
|
864
|
+
_e.styles = d`
|
|
865
865
|
:host {
|
|
866
866
|
display: inline-block;
|
|
867
867
|
font-family: var(--vox-font-family-base);
|
|
@@ -898,60 +898,60 @@ xe.styles = d`
|
|
|
898
898
|
transform: translateX(3px);
|
|
899
899
|
}
|
|
900
900
|
`;
|
|
901
|
-
|
|
901
|
+
Ut([
|
|
902
902
|
n()
|
|
903
|
-
],
|
|
904
|
-
|
|
903
|
+
], _e.prototype, "href", 2);
|
|
904
|
+
Ut([
|
|
905
905
|
n()
|
|
906
|
-
],
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
],
|
|
910
|
-
var
|
|
911
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
912
|
-
(i =
|
|
913
|
-
return s && t &&
|
|
906
|
+
], _e.prototype, "target", 2);
|
|
907
|
+
_e = Ut([
|
|
908
|
+
h("vox-cta")
|
|
909
|
+
], _e);
|
|
910
|
+
var pr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, bt = (o, e, r, s) => {
|
|
911
|
+
for (var t = s > 1 ? void 0 : s ? vr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
912
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
913
|
+
return s && t && pr(e, r, t), t;
|
|
914
914
|
};
|
|
915
|
-
const
|
|
916
|
-
let
|
|
915
|
+
const fo = "vox-theme", tt = "data-vox-theme";
|
|
916
|
+
let ie = class extends p {
|
|
917
917
|
constructor() {
|
|
918
|
-
super(...arguments), this.lightLabel = "Switch to dark theme", this.darkLabel = "Switch to light theme", this.dark = !1, this.media = window.matchMedia("(prefers-color-scheme: dark)"), this.handleSystemChange = (
|
|
919
|
-
localStorage.getItem(
|
|
918
|
+
super(...arguments), this.lightLabel = "Switch to dark theme", this.darkLabel = "Switch to light theme", this.dark = !1, this.media = window.matchMedia("(prefers-color-scheme: dark)"), this.handleSystemChange = (o) => {
|
|
919
|
+
localStorage.getItem(fo) || document.documentElement.setAttribute(tt, o.matches ? "dark" : "light");
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
connectedCallback() {
|
|
923
923
|
super.connectedCallback(), this.syncFromDocument(), this.observer = new MutationObserver(() => this.syncFromDocument()), this.observer.observe(document.documentElement, {
|
|
924
924
|
attributes: !0,
|
|
925
|
-
attributeFilter: [
|
|
925
|
+
attributeFilter: [tt]
|
|
926
926
|
}), this.media.addEventListener("change", this.handleSystemChange);
|
|
927
927
|
}
|
|
928
928
|
disconnectedCallback() {
|
|
929
|
-
var
|
|
930
|
-
super.disconnectedCallback(), (
|
|
929
|
+
var o;
|
|
930
|
+
super.disconnectedCallback(), (o = this.observer) == null || o.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
|
|
931
931
|
}
|
|
932
932
|
syncFromDocument() {
|
|
933
|
-
const
|
|
934
|
-
this.dark =
|
|
933
|
+
const o = document.documentElement.getAttribute(tt) === "dark";
|
|
934
|
+
this.dark = o, this.toggleAttribute("dark", o);
|
|
935
935
|
}
|
|
936
936
|
handleClick() {
|
|
937
|
-
const
|
|
938
|
-
document.documentElement.setAttribute(
|
|
937
|
+
const o = this.dark ? "light" : "dark";
|
|
938
|
+
document.documentElement.setAttribute(tt, o), localStorage.setItem(fo, o), this.dispatchEvent(
|
|
939
939
|
new CustomEvent("vox-theme-change", {
|
|
940
|
-
detail: { theme:
|
|
940
|
+
detail: { theme: o },
|
|
941
941
|
bubbles: !0,
|
|
942
942
|
composed: !0
|
|
943
943
|
})
|
|
944
944
|
);
|
|
945
945
|
}
|
|
946
946
|
render() {
|
|
947
|
-
const
|
|
947
|
+
const o = this.dark ? this.darkLabel : this.lightLabel;
|
|
948
948
|
return l`
|
|
949
949
|
<button
|
|
950
950
|
type="button"
|
|
951
951
|
role="switch"
|
|
952
952
|
aria-checked=${this.dark}
|
|
953
|
-
aria-label=${
|
|
954
|
-
title=${
|
|
953
|
+
aria-label=${o}
|
|
954
|
+
title=${o}
|
|
955
955
|
@click=${this.handleClick}
|
|
956
956
|
>
|
|
957
957
|
<span class="track">
|
|
@@ -968,7 +968,7 @@ let J = class extends h {
|
|
|
968
968
|
`;
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
|
-
|
|
971
|
+
ie.styles = d`
|
|
972
972
|
:host {
|
|
973
973
|
display: inline-flex;
|
|
974
974
|
}
|
|
@@ -1027,19 +1027,19 @@ J.styles = d`
|
|
|
1027
1027
|
transform: translateX(20px);
|
|
1028
1028
|
}
|
|
1029
1029
|
`;
|
|
1030
|
-
|
|
1030
|
+
bt([
|
|
1031
1031
|
n({ attribute: "light-label" })
|
|
1032
|
-
],
|
|
1033
|
-
|
|
1032
|
+
], ie.prototype, "lightLabel", 2);
|
|
1033
|
+
bt([
|
|
1034
1034
|
n({ attribute: "dark-label" })
|
|
1035
|
-
],
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
],
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
],
|
|
1042
|
-
const
|
|
1035
|
+
], ie.prototype, "darkLabel", 2);
|
|
1036
|
+
bt([
|
|
1037
|
+
k()
|
|
1038
|
+
], ie.prototype, "dark", 2);
|
|
1039
|
+
ie = bt([
|
|
1040
|
+
h("vox-theme-toggle")
|
|
1041
|
+
], ie);
|
|
1042
|
+
const D = {
|
|
1043
1043
|
// Phase 1: shared UI baseline -----------------------------------------
|
|
1044
1044
|
search: c`<circle cx="21" cy="21" r="13"/><path d="M30.5 30.5 L41 41"/>`,
|
|
1045
1045
|
close: c`<path d="M14 14 L34 34 M34 14 L14 34"/>`,
|
|
@@ -1127,18 +1127,18 @@ const k = {
|
|
|
1127
1127
|
accessibility: c`<circle cx="24" cy="24" r="18"/><circle cx="24" cy="16" r="2.6" fill="currentColor" stroke="none"/><path d="M14 21 H34 M24 21 V32 M24 25 L18 34 M24 25 L30 34"/>`,
|
|
1128
1128
|
settings: c`<circle cx="24" cy="24" r="7"/><path d="M24 6 V12 M24 36 V42 M6 24 H12 M36 24 H42 M11 11 L15.2 15.2 M32.8 32.8 L37 37 M37 11 L32.8 15.2 M15.2 32.8 L11 37"/>`
|
|
1129
1129
|
};
|
|
1130
|
-
var
|
|
1131
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1132
|
-
(i =
|
|
1133
|
-
return s && t &&
|
|
1130
|
+
var ur = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, yt = (o, e, r, s) => {
|
|
1131
|
+
for (var t = s > 1 ? void 0 : s ? xr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
1132
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
1133
|
+
return s && t && ur(e, r, t), t;
|
|
1134
1134
|
};
|
|
1135
|
-
let
|
|
1135
|
+
let ne = class extends p {
|
|
1136
1136
|
constructor() {
|
|
1137
1137
|
super(...arguments), this.name = "info", this.size = "md";
|
|
1138
1138
|
}
|
|
1139
1139
|
render() {
|
|
1140
|
-
const
|
|
1141
|
-
return
|
|
1140
|
+
const o = D[this.name];
|
|
1141
|
+
return o ? l`
|
|
1142
1142
|
<svg
|
|
1143
1143
|
viewBox="0 0 48 48"
|
|
1144
1144
|
fill="none"
|
|
@@ -1150,12 +1150,12 @@ let Q = class extends h {
|
|
|
1150
1150
|
aria-hidden=${this.label ? x : "true"}
|
|
1151
1151
|
aria-label=${this.label ?? x}
|
|
1152
1152
|
>
|
|
1153
|
-
${
|
|
1153
|
+
${o}
|
|
1154
1154
|
</svg>
|
|
1155
1155
|
` : x;
|
|
1156
1156
|
}
|
|
1157
1157
|
};
|
|
1158
|
-
|
|
1158
|
+
ne.styles = d`
|
|
1159
1159
|
:host {
|
|
1160
1160
|
display: inline-flex;
|
|
1161
1161
|
flex: none;
|
|
@@ -1186,24 +1186,24 @@ Q.styles = d`
|
|
|
1186
1186
|
height: 48px;
|
|
1187
1187
|
}
|
|
1188
1188
|
`;
|
|
1189
|
-
|
|
1189
|
+
yt([
|
|
1190
1190
|
n()
|
|
1191
|
-
],
|
|
1192
|
-
|
|
1191
|
+
], ne.prototype, "name", 2);
|
|
1192
|
+
yt([
|
|
1193
1193
|
n({ reflect: !0 })
|
|
1194
|
-
],
|
|
1195
|
-
|
|
1194
|
+
], ne.prototype, "size", 2);
|
|
1195
|
+
yt([
|
|
1196
1196
|
n()
|
|
1197
|
-
],
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
],
|
|
1201
|
-
var
|
|
1202
|
-
for (var t = void 0, a =
|
|
1203
|
-
(i =
|
|
1204
|
-
return t &&
|
|
1197
|
+
], ne.prototype, "label", 2);
|
|
1198
|
+
ne = yt([
|
|
1199
|
+
h("vox-icon")
|
|
1200
|
+
], ne);
|
|
1201
|
+
var fr = Object.defineProperty, Ue = (o, e, r, s) => {
|
|
1202
|
+
for (var t = void 0, a = o.length - 1, i; a >= 0; a--)
|
|
1203
|
+
(i = o[a]) && (t = i(e, r, t) || t);
|
|
1204
|
+
return t && fr(e, r, t), t;
|
|
1205
1205
|
};
|
|
1206
|
-
const
|
|
1206
|
+
const ro = class ro extends p {
|
|
1207
1207
|
constructor() {
|
|
1208
1208
|
super(), this.name = "", this.label = "", this.note = "", this.disabled = !1, this.required = !1, this.internals = this.attachInternals();
|
|
1209
1209
|
}
|
|
@@ -1237,24 +1237,24 @@ const Jt = class Jt extends h {
|
|
|
1237
1237
|
return this.note ? l`<p class="note">${this.note}</p>` : x;
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
|
-
|
|
1241
|
-
let
|
|
1242
|
-
|
|
1240
|
+
ro.formAssociated = !0;
|
|
1241
|
+
let m = ro;
|
|
1242
|
+
Ue([
|
|
1243
1243
|
n()
|
|
1244
|
-
],
|
|
1245
|
-
|
|
1244
|
+
], m.prototype, "name");
|
|
1245
|
+
Ue([
|
|
1246
1246
|
n()
|
|
1247
|
-
],
|
|
1248
|
-
|
|
1247
|
+
], m.prototype, "label");
|
|
1248
|
+
Ue([
|
|
1249
1249
|
n()
|
|
1250
|
-
],
|
|
1251
|
-
|
|
1250
|
+
], m.prototype, "note");
|
|
1251
|
+
Ue([
|
|
1252
1252
|
n({ type: Boolean, reflect: !0 })
|
|
1253
|
-
],
|
|
1254
|
-
|
|
1253
|
+
], m.prototype, "disabled");
|
|
1254
|
+
Ue([
|
|
1255
1255
|
n({ type: Boolean, reflect: !0 })
|
|
1256
|
-
],
|
|
1257
|
-
const
|
|
1256
|
+
], m.prototype, "required");
|
|
1257
|
+
const Q = d`
|
|
1258
1258
|
:host {
|
|
1259
1259
|
display: block;
|
|
1260
1260
|
font-family: var(--vox-font-family-base);
|
|
@@ -1321,7 +1321,7 @@ const Te = d`
|
|
|
1321
1321
|
:host([data-vox-group='end']) .control {
|
|
1322
1322
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
1323
1323
|
}
|
|
1324
|
-
`,
|
|
1324
|
+
`, So = d`
|
|
1325
1325
|
:host {
|
|
1326
1326
|
display: block;
|
|
1327
1327
|
font-family: var(--vox-font-family-base);
|
|
@@ -1350,12 +1350,12 @@ const Te = d`
|
|
|
1350
1350
|
margin: 0;
|
|
1351
1351
|
}
|
|
1352
1352
|
`;
|
|
1353
|
-
var
|
|
1354
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1355
|
-
(i =
|
|
1356
|
-
return s && t &&
|
|
1353
|
+
var gr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, Zt = (o, e, r, s) => {
|
|
1354
|
+
for (var t = s > 1 ? void 0 : s ? br(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
1355
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
1356
|
+
return s && t && gr(e, r, t), t;
|
|
1357
1357
|
};
|
|
1358
|
-
let
|
|
1358
|
+
let Ce = class extends m {
|
|
1359
1359
|
constructor() {
|
|
1360
1360
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1361
1361
|
}
|
|
@@ -1369,8 +1369,8 @@ let fe = class extends y {
|
|
|
1369
1369
|
this.renderRoot.querySelector("input") ?? void 0
|
|
1370
1370
|
);
|
|
1371
1371
|
}
|
|
1372
|
-
handleChange(
|
|
1373
|
-
this.checked =
|
|
1372
|
+
handleChange(o) {
|
|
1373
|
+
this.checked = o.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1374
1374
|
}
|
|
1375
1375
|
render() {
|
|
1376
1376
|
return l`
|
|
@@ -1391,8 +1391,8 @@ let fe = class extends y {
|
|
|
1391
1391
|
`;
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1395
|
-
|
|
1394
|
+
Ce.styles = [
|
|
1395
|
+
So,
|
|
1396
1396
|
d`
|
|
1397
1397
|
.box {
|
|
1398
1398
|
flex: none;
|
|
@@ -1432,21 +1432,350 @@ fe.styles = [
|
|
|
1432
1432
|
}
|
|
1433
1433
|
`
|
|
1434
1434
|
];
|
|
1435
|
-
|
|
1435
|
+
Zt([
|
|
1436
1436
|
n({ type: Boolean, reflect: !0 })
|
|
1437
|
-
],
|
|
1438
|
-
|
|
1437
|
+
], Ce.prototype, "checked", 2);
|
|
1438
|
+
Zt([
|
|
1439
1439
|
n()
|
|
1440
|
-
],
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
],
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1440
|
+
], Ce.prototype, "value", 2);
|
|
1441
|
+
Ce = Zt([
|
|
1442
|
+
h("vox-checkbox")
|
|
1443
|
+
], Ce);
|
|
1444
|
+
/**
|
|
1445
|
+
* @license
|
|
1446
|
+
* Copyright 2020 Google LLC
|
|
1447
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1448
|
+
*/
|
|
1449
|
+
const yr = (o) => o.strings === void 0, mr = {}, wr = (o, e = mr) => o._$AH = e;
|
|
1450
|
+
/**
|
|
1451
|
+
* @license
|
|
1452
|
+
* Copyright 2020 Google LLC
|
|
1453
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1454
|
+
*/
|
|
1455
|
+
const mt = Po(class extends Eo {
|
|
1456
|
+
constructor(o) {
|
|
1457
|
+
if (super(o), o.type !== I.PROPERTY && o.type !== I.ATTRIBUTE && o.type !== I.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
1458
|
+
if (!yr(o)) throw Error("`live` bindings can only contain a single expression");
|
|
1459
|
+
}
|
|
1460
|
+
render(o) {
|
|
1461
|
+
return o;
|
|
1462
|
+
}
|
|
1463
|
+
update(o, [e]) {
|
|
1464
|
+
if (e === C || e === x) return e;
|
|
1465
|
+
const r = o.element, s = o.name;
|
|
1466
|
+
if (o.type === I.PROPERTY) {
|
|
1467
|
+
if (e === r[s]) return C;
|
|
1468
|
+
} else if (o.type === I.BOOLEAN_ATTRIBUTE) {
|
|
1469
|
+
if (!!e === r.hasAttribute(s)) return C;
|
|
1470
|
+
} else if (o.type === I.ATTRIBUTE && r.getAttribute(s) === e + "") return C;
|
|
1471
|
+
return wr(o), e;
|
|
1472
|
+
}
|
|
1473
|
+
});
|
|
1474
|
+
var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, M = (o, e, r, s) => {
|
|
1475
|
+
for (var t = s > 1 ? void 0 : s ? _r(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
1476
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
1477
|
+
return s && t && $r(e, r, t), t;
|
|
1448
1478
|
};
|
|
1449
|
-
let
|
|
1479
|
+
let $ = class extends m {
|
|
1480
|
+
constructor() {
|
|
1481
|
+
super(...arguments), this.value = "", this.allowCustom = !1, this.emptyText = "No matches", this.query = "", this.open = !1, this.activeIndex = -1, this.options = [];
|
|
1482
|
+
}
|
|
1483
|
+
get filtered() {
|
|
1484
|
+
const o = this.query.trim().toLowerCase();
|
|
1485
|
+
return !o || o === this.selectedLabel.toLowerCase() ? this.options : this.options.filter((e) => e.label.toLowerCase().includes(o));
|
|
1486
|
+
}
|
|
1487
|
+
get selectedLabel() {
|
|
1488
|
+
var o;
|
|
1489
|
+
return ((o = this.options.find((e) => e.value === this.value)) == null ? void 0 : o.label) ?? "";
|
|
1490
|
+
}
|
|
1491
|
+
willUpdate(o) {
|
|
1492
|
+
var e;
|
|
1493
|
+
o.has("value") && ((e = this.shadowRoot) == null ? void 0 : e.activeElement) === null && (this.query = this.selectedLabel);
|
|
1494
|
+
}
|
|
1495
|
+
formResetCallback() {
|
|
1496
|
+
this.value = "", this.query = "", this.close();
|
|
1497
|
+
}
|
|
1498
|
+
updated() {
|
|
1499
|
+
this.internals.setFormValue(this.value || null), this.internals.setValidity(
|
|
1500
|
+
this.required && !this.value ? { valueMissing: !0 } : {},
|
|
1501
|
+
"Please select an option.",
|
|
1502
|
+
this.inputEl
|
|
1503
|
+
);
|
|
1504
|
+
}
|
|
1505
|
+
focus(o) {
|
|
1506
|
+
var e;
|
|
1507
|
+
(e = this.inputEl) == null || e.focus(o);
|
|
1508
|
+
}
|
|
1509
|
+
readOptions() {
|
|
1510
|
+
this.options = [...this.querySelectorAll("option")].map((o) => {
|
|
1511
|
+
var e;
|
|
1512
|
+
return {
|
|
1513
|
+
value: o.value,
|
|
1514
|
+
label: ((e = o.textContent) == null ? void 0 : e.trim()) ?? "",
|
|
1515
|
+
disabled: o.disabled
|
|
1516
|
+
};
|
|
1517
|
+
}), this.value && !this.query && (this.query = this.selectedLabel);
|
|
1518
|
+
}
|
|
1519
|
+
openList() {
|
|
1520
|
+
if (this.open || this.disabled) return;
|
|
1521
|
+
this.open = !0;
|
|
1522
|
+
const o = this.filtered.findIndex((e) => e.value === this.value);
|
|
1523
|
+
this.activeIndex = o;
|
|
1524
|
+
}
|
|
1525
|
+
close() {
|
|
1526
|
+
this.open = !1, this.activeIndex = -1;
|
|
1527
|
+
}
|
|
1528
|
+
select(o) {
|
|
1529
|
+
o.disabled || (this.value = o.value, this.query = o.label, this.close(), this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
1530
|
+
}
|
|
1531
|
+
moveActive(o) {
|
|
1532
|
+
const e = this.filtered;
|
|
1533
|
+
if (e.length === 0 || e.filter((t) => !t.disabled).length === 0) return;
|
|
1534
|
+
let s = this.activeIndex;
|
|
1535
|
+
for (let t = 0; t < e.length && (s = (s + o + e.length) % e.length, !!e[s].disabled); t++)
|
|
1536
|
+
;
|
|
1537
|
+
this.activeIndex = s, this.scrollActiveIntoView();
|
|
1538
|
+
}
|
|
1539
|
+
scrollActiveIntoView() {
|
|
1540
|
+
this.updateComplete.then(() => {
|
|
1541
|
+
var o, e;
|
|
1542
|
+
(e = (o = this.listboxEl) == null ? void 0 : o.querySelector("[data-active]")) == null || e.scrollIntoView({ block: "nearest" });
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
handleInput(o) {
|
|
1546
|
+
this.query = o.target.value, this.openList(), this.activeIndex = -1, this.allowCustom && (this.value = this.query);
|
|
1547
|
+
}
|
|
1548
|
+
handleKeydown(o) {
|
|
1549
|
+
switch (o.key) {
|
|
1550
|
+
case "ArrowDown":
|
|
1551
|
+
o.preventDefault(), this.open ? this.moveActive(1) : (this.openList(), this.activeIndex === -1 && this.moveActive(1));
|
|
1552
|
+
break;
|
|
1553
|
+
case "ArrowUp":
|
|
1554
|
+
o.preventDefault(), this.open || (this.openList(), this.activeIndex = this.filtered.length), this.moveActive(-1);
|
|
1555
|
+
break;
|
|
1556
|
+
case "Home":
|
|
1557
|
+
if (!this.open) return;
|
|
1558
|
+
o.preventDefault(), this.activeIndex = -1, this.moveActive(1);
|
|
1559
|
+
break;
|
|
1560
|
+
case "End":
|
|
1561
|
+
if (!this.open) return;
|
|
1562
|
+
o.preventDefault(), this.activeIndex = this.filtered.length, this.moveActive(-1);
|
|
1563
|
+
break;
|
|
1564
|
+
case "Enter": {
|
|
1565
|
+
if (!this.open) return;
|
|
1566
|
+
const e = this.filtered[this.activeIndex];
|
|
1567
|
+
e && (o.preventDefault(), this.select(e));
|
|
1568
|
+
break;
|
|
1569
|
+
}
|
|
1570
|
+
case "Escape":
|
|
1571
|
+
o.preventDefault(), this.open ? this.close() : (this.value || this.query) && (this.query = "", this.value = "", this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
1572
|
+
break;
|
|
1573
|
+
case "Tab":
|
|
1574
|
+
this.close();
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
handleBlur() {
|
|
1579
|
+
if (this.close(), !this.allowCustom) {
|
|
1580
|
+
if (this.query === "") {
|
|
1581
|
+
this.value && (this.value = "", this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
1582
|
+
return;
|
|
1583
|
+
}
|
|
1584
|
+
this.query = this.selectedLabel;
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
optionId(o) {
|
|
1588
|
+
return `option-${o}`;
|
|
1589
|
+
}
|
|
1590
|
+
render() {
|
|
1591
|
+
const o = this.filtered, e = this.open && this.activeIndex >= 0 ? this.optionId(this.activeIndex) : void 0;
|
|
1592
|
+
return l`
|
|
1593
|
+
<div class="field">
|
|
1594
|
+
${this.renderLabel("combobox")}
|
|
1595
|
+
<div class="combo">
|
|
1596
|
+
<input
|
|
1597
|
+
id="combobox"
|
|
1598
|
+
class="control"
|
|
1599
|
+
type="text"
|
|
1600
|
+
role="combobox"
|
|
1601
|
+
.value=${mt(this.query)}
|
|
1602
|
+
placeholder=${b(this.placeholder)}
|
|
1603
|
+
autocomplete="off"
|
|
1604
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
1605
|
+
aria-controls="listbox"
|
|
1606
|
+
aria-autocomplete="list"
|
|
1607
|
+
aria-activedescendant=${b(e)}
|
|
1608
|
+
aria-label=${this.label ? x : "combobox"}
|
|
1609
|
+
?required=${this.required}
|
|
1610
|
+
?disabled=${this.disabled}
|
|
1611
|
+
@input=${this.handleInput}
|
|
1612
|
+
@keydown=${this.handleKeydown}
|
|
1613
|
+
@blur=${this.handleBlur}
|
|
1614
|
+
@mousedown=${this.openList}
|
|
1615
|
+
/>
|
|
1616
|
+
<ul
|
|
1617
|
+
class="listbox"
|
|
1618
|
+
id="listbox"
|
|
1619
|
+
role="listbox"
|
|
1620
|
+
aria-label=${this.label || "options"}
|
|
1621
|
+
?hidden=${!this.open}
|
|
1622
|
+
>
|
|
1623
|
+
${o.length === 0 ? l`<li class="empty" role="presentation">${this.emptyText}</li>` : o.map(
|
|
1624
|
+
(r, s) => l`
|
|
1625
|
+
<li
|
|
1626
|
+
id=${this.optionId(s)}
|
|
1627
|
+
class=${Lo({ option: !0 })}
|
|
1628
|
+
role="option"
|
|
1629
|
+
aria-selected=${r.value === this.value ? "true" : "false"}
|
|
1630
|
+
aria-disabled=${r.disabled ? "true" : "false"}
|
|
1631
|
+
?data-active=${s === this.activeIndex}
|
|
1632
|
+
@mousedown=${(t) => {
|
|
1633
|
+
t.preventDefault(), this.select(r);
|
|
1634
|
+
}}
|
|
1635
|
+
>
|
|
1636
|
+
${r.label}
|
|
1637
|
+
</li>
|
|
1638
|
+
`
|
|
1639
|
+
)}
|
|
1640
|
+
</ul>
|
|
1641
|
+
</div>
|
|
1642
|
+
${this.renderNote()}
|
|
1643
|
+
<span class="sr-only" role="status" aria-live="polite">
|
|
1644
|
+
${this.open ? `${o.length} ${o.length === 1 ? "option" : "options"} available` : ""}
|
|
1645
|
+
</span>
|
|
1646
|
+
</div>
|
|
1647
|
+
<div hidden><slot @slotchange=${this.readOptions}></slot></div>
|
|
1648
|
+
`;
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
$.styles = [
|
|
1652
|
+
Q,
|
|
1653
|
+
d`
|
|
1654
|
+
/*
|
|
1655
|
+
* The popup anchors to this shell, not to .field: an absolutely
|
|
1656
|
+
* positioned child of a flex container takes its static position from
|
|
1657
|
+
* the container's content-box origin, which would put it over the label.
|
|
1658
|
+
*/
|
|
1659
|
+
.combo {
|
|
1660
|
+
position: relative;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
.control {
|
|
1664
|
+
padding-right: var(--vox-space-8);
|
|
1665
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
1666
|
+
background-repeat: no-repeat;
|
|
1667
|
+
background-position: right var(--vox-space-3) center;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
.listbox {
|
|
1671
|
+
position: absolute;
|
|
1672
|
+
z-index: 20;
|
|
1673
|
+
top: calc(100% + var(--vox-space-1));
|
|
1674
|
+
left: 0;
|
|
1675
|
+
right: 0;
|
|
1676
|
+
margin: 0;
|
|
1677
|
+
padding: var(--vox-space-1);
|
|
1678
|
+
max-height: 15rem;
|
|
1679
|
+
overflow-y: auto;
|
|
1680
|
+
list-style: none;
|
|
1681
|
+
background-color: var(--vox-color-bg-elv);
|
|
1682
|
+
border: 1px solid var(--vox-color-border);
|
|
1683
|
+
border-radius: var(--vox-radius-md);
|
|
1684
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
.option {
|
|
1688
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
1689
|
+
border-radius: var(--vox-radius-sm);
|
|
1690
|
+
font-size: 14px;
|
|
1691
|
+
line-height: 1.5;
|
|
1692
|
+
color: var(--vox-color-text-1);
|
|
1693
|
+
cursor: pointer;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
/*
|
|
1697
|
+
* Focus stays on the input, so the active option is styled rather than
|
|
1698
|
+
* focused. Colour alone can't carry it (WCAG 1.4.1) — the selected
|
|
1699
|
+
* option also gets a check mark.
|
|
1700
|
+
*/
|
|
1701
|
+
.option[data-active] {
|
|
1702
|
+
background-color: var(--vox-color-brand-soft);
|
|
1703
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
1704
|
+
outline-offset: -2px;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.option[aria-selected='true'] {
|
|
1708
|
+
font-weight: 600;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
.option[aria-selected='true']::after {
|
|
1712
|
+
content: ' ✓';
|
|
1713
|
+
color: var(--vox-color-brand-1);
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
.option[aria-disabled='true'] {
|
|
1717
|
+
color: var(--vox-color-text-3);
|
|
1718
|
+
cursor: not-allowed;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
.empty {
|
|
1722
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
1723
|
+
font-size: 14px;
|
|
1724
|
+
color: var(--vox-color-text-2);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
/* Announced, never shown. */
|
|
1728
|
+
.sr-only {
|
|
1729
|
+
position: absolute;
|
|
1730
|
+
width: 1px;
|
|
1731
|
+
height: 1px;
|
|
1732
|
+
padding: 0;
|
|
1733
|
+
margin: -1px;
|
|
1734
|
+
overflow: hidden;
|
|
1735
|
+
clip-path: inset(50%);
|
|
1736
|
+
white-space: nowrap;
|
|
1737
|
+
}
|
|
1738
|
+
`
|
|
1739
|
+
];
|
|
1740
|
+
M([
|
|
1741
|
+
n()
|
|
1742
|
+
], $.prototype, "value", 2);
|
|
1743
|
+
M([
|
|
1744
|
+
n()
|
|
1745
|
+
], $.prototype, "placeholder", 2);
|
|
1746
|
+
M([
|
|
1747
|
+
n({ type: Boolean, attribute: "allow-custom" })
|
|
1748
|
+
], $.prototype, "allowCustom", 2);
|
|
1749
|
+
M([
|
|
1750
|
+
n({ attribute: "empty-text" })
|
|
1751
|
+
], $.prototype, "emptyText", 2);
|
|
1752
|
+
M([
|
|
1753
|
+
k()
|
|
1754
|
+
], $.prototype, "query", 2);
|
|
1755
|
+
M([
|
|
1756
|
+
k()
|
|
1757
|
+
], $.prototype, "open", 2);
|
|
1758
|
+
M([
|
|
1759
|
+
k()
|
|
1760
|
+
], $.prototype, "activeIndex", 2);
|
|
1761
|
+
M([
|
|
1762
|
+
k()
|
|
1763
|
+
], $.prototype, "options", 2);
|
|
1764
|
+
M([
|
|
1765
|
+
ue("input")
|
|
1766
|
+
], $.prototype, "inputEl", 2);
|
|
1767
|
+
M([
|
|
1768
|
+
ue(".listbox")
|
|
1769
|
+
], $.prototype, "listboxEl", 2);
|
|
1770
|
+
$ = M([
|
|
1771
|
+
h("vox-combobox")
|
|
1772
|
+
], $);
|
|
1773
|
+
var Cr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, xe = (o, e, r, s) => {
|
|
1774
|
+
for (var t = s > 1 ? void 0 : s ? Or(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
1775
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
1776
|
+
return s && t && Cr(e, r, t), t;
|
|
1777
|
+
};
|
|
1778
|
+
let H = class extends m {
|
|
1450
1779
|
constructor() {
|
|
1451
1780
|
super(...arguments), this.multiple = !1, this.buttonLabel = "Choose a file", this.fileNames = [];
|
|
1452
1781
|
}
|
|
@@ -1454,12 +1783,12 @@ let L = class extends y {
|
|
|
1454
1783
|
this.fileNames = [], this.inputEl && (this.inputEl.value = ""), this.internals.setFormValue(null);
|
|
1455
1784
|
}
|
|
1456
1785
|
handleChange() {
|
|
1457
|
-
const
|
|
1458
|
-
this.fileNames =
|
|
1786
|
+
const o = [...this.inputEl.files ?? []];
|
|
1787
|
+
this.fileNames = o.map((r) => r.name);
|
|
1459
1788
|
const e = new FormData();
|
|
1460
|
-
for (const
|
|
1461
|
-
this.internals.setFormValue(
|
|
1462
|
-
this.required &&
|
|
1789
|
+
for (const r of o) e.append(this.name, r);
|
|
1790
|
+
this.internals.setFormValue(o.length > 0 ? e : null), this.internals.setValidity(
|
|
1791
|
+
this.required && o.length === 0 ? { valueMissing: !0 } : {},
|
|
1463
1792
|
"Please select a file.",
|
|
1464
1793
|
this.inputEl
|
|
1465
1794
|
), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -1472,7 +1801,7 @@ let L = class extends y {
|
|
|
1472
1801
|
<input
|
|
1473
1802
|
id="file"
|
|
1474
1803
|
type="file"
|
|
1475
|
-
accept=${
|
|
1804
|
+
accept=${b(this.accept)}
|
|
1476
1805
|
?multiple=${this.multiple}
|
|
1477
1806
|
?disabled=${this.disabled}
|
|
1478
1807
|
@change=${this.handleChange}
|
|
@@ -1489,8 +1818,8 @@ let L = class extends y {
|
|
|
1489
1818
|
`;
|
|
1490
1819
|
}
|
|
1491
1820
|
};
|
|
1492
|
-
|
|
1493
|
-
|
|
1821
|
+
H.styles = [
|
|
1822
|
+
Q,
|
|
1494
1823
|
d`
|
|
1495
1824
|
input {
|
|
1496
1825
|
position: absolute;
|
|
@@ -1539,77 +1868,64 @@ L.styles = [
|
|
|
1539
1868
|
}
|
|
1540
1869
|
`
|
|
1541
1870
|
];
|
|
1542
|
-
|
|
1871
|
+
xe([
|
|
1543
1872
|
n()
|
|
1544
|
-
],
|
|
1545
|
-
|
|
1873
|
+
], H.prototype, "accept", 2);
|
|
1874
|
+
xe([
|
|
1546
1875
|
n({ type: Boolean })
|
|
1547
|
-
],
|
|
1548
|
-
|
|
1876
|
+
], H.prototype, "multiple", 2);
|
|
1877
|
+
xe([
|
|
1549
1878
|
n({ attribute: "button-label" })
|
|
1550
|
-
],
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
],
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
],
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
],
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
}
|
|
1579
|
-
update(r, [e]) {
|
|
1580
|
-
if (e === m || e === x) return e;
|
|
1581
|
-
const o = r.element, s = r.name;
|
|
1582
|
-
if (r.type === z.PROPERTY) {
|
|
1583
|
-
if (e === o[s]) return m;
|
|
1584
|
-
} else if (r.type === z.BOOLEAN_ATTRIBUTE) {
|
|
1585
|
-
if (!!e === o.hasAttribute(s)) return m;
|
|
1586
|
-
} else if (r.type === z.ATTRIBUTE && o.getAttribute(s) === e + "") return m;
|
|
1587
|
-
return yr(r), e;
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
var mr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, le = (r, e, o, s) => {
|
|
1591
|
-
for (var t = s > 1 ? void 0 : s ? $r(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1592
|
-
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1593
|
-
return s && t && mr(e, o, t), t;
|
|
1879
|
+
], H.prototype, "buttonLabel", 2);
|
|
1880
|
+
xe([
|
|
1881
|
+
k()
|
|
1882
|
+
], H.prototype, "fileNames", 2);
|
|
1883
|
+
xe([
|
|
1884
|
+
ue("input")
|
|
1885
|
+
], H.prototype, "inputEl", 2);
|
|
1886
|
+
H = xe([
|
|
1887
|
+
h("vox-file-input")
|
|
1888
|
+
], H);
|
|
1889
|
+
var Mr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, _ = (o, e, r, s) => {
|
|
1890
|
+
for (var t = s > 1 ? void 0 : s ? Ar(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
1891
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
1892
|
+
return s && t && Mr(e, r, t), t;
|
|
1893
|
+
};
|
|
1894
|
+
const kr = {
|
|
1895
|
+
text: "text input",
|
|
1896
|
+
email: "email address",
|
|
1897
|
+
number: "number",
|
|
1898
|
+
password: "password",
|
|
1899
|
+
search: "search",
|
|
1900
|
+
tel: "telephone number",
|
|
1901
|
+
url: "web address",
|
|
1902
|
+
date: "date",
|
|
1903
|
+
time: "time",
|
|
1904
|
+
"datetime-local": "date and time",
|
|
1905
|
+
month: "month",
|
|
1906
|
+
week: "week"
|
|
1594
1907
|
};
|
|
1595
|
-
let
|
|
1908
|
+
let w = class extends m {
|
|
1596
1909
|
constructor() {
|
|
1597
1910
|
super(...arguments), this.type = "text", this.value = "", this.readonly = !1;
|
|
1598
1911
|
}
|
|
1912
|
+
get accessibleName() {
|
|
1913
|
+
return kr[this.type] ?? `${this.type} input`;
|
|
1914
|
+
}
|
|
1599
1915
|
formResetCallback() {
|
|
1600
1916
|
this.value = "";
|
|
1601
1917
|
}
|
|
1602
1918
|
updated() {
|
|
1603
1919
|
this.internals.setFormValue(this.value);
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1920
|
+
const o = this.renderRoot.querySelector("input");
|
|
1921
|
+
o && this.syncValidity(o);
|
|
1606
1922
|
}
|
|
1607
|
-
focus(
|
|
1923
|
+
focus(o) {
|
|
1608
1924
|
var e;
|
|
1609
|
-
(e = this.renderRoot.querySelector("input")) == null || e.focus(
|
|
1925
|
+
(e = this.renderRoot.querySelector("input")) == null || e.focus(o);
|
|
1610
1926
|
}
|
|
1611
|
-
handleInput(
|
|
1612
|
-
this.value =
|
|
1927
|
+
handleInput(o) {
|
|
1928
|
+
this.value = o.target.value;
|
|
1613
1929
|
}
|
|
1614
1930
|
handleChange() {
|
|
1615
1931
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -1622,13 +1938,20 @@ let E = class extends y {
|
|
|
1622
1938
|
id="input"
|
|
1623
1939
|
class="control"
|
|
1624
1940
|
type=${this.type}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1941
|
+
min=${b(this.min)}
|
|
1942
|
+
max=${b(this.max)}
|
|
1943
|
+
step=${b(this.step)}
|
|
1944
|
+
.value=${mt(this.value)}
|
|
1945
|
+
placeholder=${b(this.placeholder)}
|
|
1946
|
+
autocomplete=${b(this.autocomplete)}
|
|
1947
|
+
pattern=${b(this.pattern)}
|
|
1948
|
+
minlength=${b(this.minlength)}
|
|
1949
|
+
maxlength=${b(this.maxlength)}
|
|
1950
|
+
inputmode=${b(this.inputmode)}
|
|
1628
1951
|
?required=${this.required}
|
|
1629
1952
|
?readonly=${this.readonly}
|
|
1630
1953
|
?disabled=${this.disabled}
|
|
1631
|
-
aria-label=${this.label ? x :
|
|
1954
|
+
aria-label=${this.label ? x : this.accessibleName}
|
|
1632
1955
|
@input=${this.handleInput}
|
|
1633
1956
|
@change=${this.handleChange}
|
|
1634
1957
|
/>
|
|
@@ -1637,36 +1960,57 @@ let E = class extends y {
|
|
|
1637
1960
|
`;
|
|
1638
1961
|
}
|
|
1639
1962
|
};
|
|
1640
|
-
|
|
1641
|
-
|
|
1963
|
+
w.styles = Q;
|
|
1964
|
+
_([
|
|
1642
1965
|
n()
|
|
1643
|
-
],
|
|
1644
|
-
|
|
1966
|
+
], w.prototype, "type", 2);
|
|
1967
|
+
_([
|
|
1645
1968
|
n()
|
|
1646
|
-
],
|
|
1647
|
-
|
|
1969
|
+
], w.prototype, "value", 2);
|
|
1970
|
+
_([
|
|
1648
1971
|
n()
|
|
1649
|
-
],
|
|
1650
|
-
|
|
1972
|
+
], w.prototype, "placeholder", 2);
|
|
1973
|
+
_([
|
|
1651
1974
|
n()
|
|
1652
|
-
],
|
|
1653
|
-
|
|
1975
|
+
], w.prototype, "autocomplete", 2);
|
|
1976
|
+
_([
|
|
1654
1977
|
n({ type: Boolean, reflect: !0 })
|
|
1655
|
-
],
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
],
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1978
|
+
], w.prototype, "readonly", 2);
|
|
1979
|
+
_([
|
|
1980
|
+
n()
|
|
1981
|
+
], w.prototype, "min", 2);
|
|
1982
|
+
_([
|
|
1983
|
+
n()
|
|
1984
|
+
], w.prototype, "max", 2);
|
|
1985
|
+
_([
|
|
1986
|
+
n()
|
|
1987
|
+
], w.prototype, "step", 2);
|
|
1988
|
+
_([
|
|
1989
|
+
n()
|
|
1990
|
+
], w.prototype, "pattern", 2);
|
|
1991
|
+
_([
|
|
1992
|
+
n()
|
|
1993
|
+
], w.prototype, "minlength", 2);
|
|
1994
|
+
_([
|
|
1995
|
+
n()
|
|
1996
|
+
], w.prototype, "maxlength", 2);
|
|
1997
|
+
_([
|
|
1998
|
+
n()
|
|
1999
|
+
], w.prototype, "inputmode", 2);
|
|
2000
|
+
w = _([
|
|
2001
|
+
h("vox-input")
|
|
2002
|
+
], w);
|
|
2003
|
+
var Pr = Object.getOwnPropertyDescriptor, Er = (o, e, r, s) => {
|
|
2004
|
+
for (var t = s > 1 ? void 0 : s ? Pr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2005
|
+
(i = o[a]) && (t = i(t) || t);
|
|
1662
2006
|
return t;
|
|
1663
2007
|
};
|
|
1664
|
-
let
|
|
1665
|
-
handleSlotChange(
|
|
1666
|
-
const e =
|
|
1667
|
-
e.forEach((
|
|
2008
|
+
let St = class extends p {
|
|
2009
|
+
handleSlotChange(o) {
|
|
2010
|
+
const e = o.target.assignedElements();
|
|
2011
|
+
e.forEach((r, s) => {
|
|
1668
2012
|
const t = s === 0 ? "start" : s === e.length - 1 ? "end" : "middle";
|
|
1669
|
-
|
|
2013
|
+
r.setAttribute("data-vox-group", t);
|
|
1670
2014
|
});
|
|
1671
2015
|
}
|
|
1672
2016
|
render() {
|
|
@@ -1677,7 +2021,7 @@ let Ot = class extends h {
|
|
|
1677
2021
|
`;
|
|
1678
2022
|
}
|
|
1679
2023
|
};
|
|
1680
|
-
|
|
2024
|
+
St.styles = d`
|
|
1681
2025
|
:host {
|
|
1682
2026
|
display: block;
|
|
1683
2027
|
font-family: var(--vox-font-family-base);
|
|
@@ -1719,15 +2063,15 @@ Ot.styles = d`
|
|
|
1719
2063
|
border-left: none;
|
|
1720
2064
|
}
|
|
1721
2065
|
`;
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
],
|
|
1725
|
-
var
|
|
1726
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1727
|
-
(i =
|
|
1728
|
-
return s && t &&
|
|
2066
|
+
St = Er([
|
|
2067
|
+
h("vox-input-group")
|
|
2068
|
+
], St);
|
|
2069
|
+
var Lr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, wt = (o, e, r, s) => {
|
|
2070
|
+
for (var t = s > 1 ? void 0 : s ? Sr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2071
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2072
|
+
return s && t && Lr(e, r, t), t;
|
|
1729
2073
|
};
|
|
1730
|
-
let
|
|
2074
|
+
let le = class extends p {
|
|
1731
2075
|
constructor() {
|
|
1732
2076
|
super(...arguments), this.value = "", this.checked = !1, this.disabled = !1;
|
|
1733
2077
|
}
|
|
@@ -1736,8 +2080,8 @@ let ee = class extends h {
|
|
|
1736
2080
|
new CustomEvent("vox-radio-select", { bubbles: !0, composed: !0 })
|
|
1737
2081
|
);
|
|
1738
2082
|
}
|
|
1739
|
-
handleKeydown(
|
|
1740
|
-
(
|
|
2083
|
+
handleKeydown(o) {
|
|
2084
|
+
(o.key === " " || o.key === "Enter") && (o.preventDefault(), this.select());
|
|
1741
2085
|
}
|
|
1742
2086
|
render() {
|
|
1743
2087
|
return l`
|
|
@@ -1756,7 +2100,7 @@ let ee = class extends h {
|
|
|
1756
2100
|
`;
|
|
1757
2101
|
}
|
|
1758
2102
|
};
|
|
1759
|
-
|
|
2103
|
+
le.styles = d`
|
|
1760
2104
|
:host {
|
|
1761
2105
|
display: block;
|
|
1762
2106
|
font-family: var(--vox-font-family-base);
|
|
@@ -1805,24 +2149,24 @@ ee.styles = d`
|
|
|
1805
2149
|
outline-offset: 2px;
|
|
1806
2150
|
}
|
|
1807
2151
|
`;
|
|
1808
|
-
|
|
2152
|
+
wt([
|
|
1809
2153
|
n()
|
|
1810
|
-
],
|
|
1811
|
-
|
|
2154
|
+
], le.prototype, "value", 2);
|
|
2155
|
+
wt([
|
|
1812
2156
|
n({ type: Boolean, reflect: !0 })
|
|
1813
|
-
],
|
|
1814
|
-
|
|
2157
|
+
], le.prototype, "checked", 2);
|
|
2158
|
+
wt([
|
|
1815
2159
|
n({ type: Boolean, reflect: !0 })
|
|
1816
|
-
],
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
],
|
|
1820
|
-
var
|
|
1821
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1822
|
-
(i =
|
|
1823
|
-
return s && t &&
|
|
2160
|
+
], le.prototype, "disabled", 2);
|
|
2161
|
+
le = wt([
|
|
2162
|
+
h("vox-radio")
|
|
2163
|
+
], le);
|
|
2164
|
+
var Vr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, Vo = (o, e, r, s) => {
|
|
2165
|
+
for (var t = s > 1 ? void 0 : s ? jr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2166
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2167
|
+
return s && t && Vr(e, r, t), t;
|
|
1824
2168
|
};
|
|
1825
|
-
let
|
|
2169
|
+
let nt = class extends m {
|
|
1826
2170
|
constructor() {
|
|
1827
2171
|
super(...arguments), this.value = "";
|
|
1828
2172
|
}
|
|
@@ -1840,31 +2184,31 @@ let tt = class extends y {
|
|
|
1840
2184
|
), this.syncRadios();
|
|
1841
2185
|
}
|
|
1842
2186
|
syncRadios() {
|
|
1843
|
-
const
|
|
1844
|
-
|
|
2187
|
+
const o = this.radios, e = o.some((r) => r.value === this.value && this.value !== "");
|
|
2188
|
+
o.forEach((r, s) => {
|
|
1845
2189
|
var a, i;
|
|
1846
|
-
|
|
1847
|
-
const t = e ?
|
|
1848
|
-
(i = (a =
|
|
2190
|
+
r.checked = this.value !== "" && r.value === this.value;
|
|
2191
|
+
const t = e ? r.checked : s === 0;
|
|
2192
|
+
(i = (a = r.shadowRoot) == null ? void 0 : a.querySelector(".radio")) == null || i.setAttribute("tabindex", t ? "0" : "-1");
|
|
1849
2193
|
});
|
|
1850
2194
|
}
|
|
1851
|
-
handleSelect(
|
|
1852
|
-
const e =
|
|
1853
|
-
!(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (
|
|
2195
|
+
handleSelect(o) {
|
|
2196
|
+
const e = o.target;
|
|
2197
|
+
!(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (o.stopPropagation(), this.value !== e.value && (this.value = e.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
|
|
1854
2198
|
}
|
|
1855
|
-
handleKeydown(
|
|
2199
|
+
handleKeydown(o) {
|
|
1856
2200
|
var v, u;
|
|
1857
|
-
const
|
|
2201
|
+
const r = {
|
|
1858
2202
|
ArrowDown: 1,
|
|
1859
2203
|
ArrowRight: 1,
|
|
1860
2204
|
ArrowUp: -1,
|
|
1861
2205
|
ArrowLeft: -1
|
|
1862
|
-
}[
|
|
1863
|
-
if (!
|
|
1864
|
-
|
|
2206
|
+
}[o.key];
|
|
2207
|
+
if (!r) return;
|
|
2208
|
+
o.preventDefault();
|
|
1865
2209
|
const s = this.radios.filter((f) => !f.disabled);
|
|
1866
2210
|
if (s.length === 0) return;
|
|
1867
|
-
const t = s.findIndex((f) => f.checked), a = (Math.max(t, 0) +
|
|
2211
|
+
const t = s.findIndex((f) => f.checked), a = (Math.max(t, 0) + r + s.length) % s.length, i = s[a];
|
|
1868
2212
|
i.select(), (u = (v = i.shadowRoot) == null ? void 0 : v.querySelector(".radio")) == null || u.focus();
|
|
1869
2213
|
}
|
|
1870
2214
|
render() {
|
|
@@ -1885,8 +2229,8 @@ let tt = class extends y {
|
|
|
1885
2229
|
`;
|
|
1886
2230
|
}
|
|
1887
2231
|
};
|
|
1888
|
-
|
|
1889
|
-
|
|
2232
|
+
nt.styles = [
|
|
2233
|
+
Q,
|
|
1890
2234
|
d`
|
|
1891
2235
|
.options {
|
|
1892
2236
|
display: flex;
|
|
@@ -1896,36 +2240,239 @@ tt.styles = [
|
|
|
1896
2240
|
}
|
|
1897
2241
|
`
|
|
1898
2242
|
];
|
|
1899
|
-
|
|
2243
|
+
Vo([
|
|
1900
2244
|
n()
|
|
1901
|
-
],
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
],
|
|
1905
|
-
var
|
|
1906
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1907
|
-
(i =
|
|
1908
|
-
return s && t &&
|
|
2245
|
+
], nt.prototype, "value", 2);
|
|
2246
|
+
nt = Vo([
|
|
2247
|
+
h("vox-radio-group")
|
|
2248
|
+
], nt);
|
|
2249
|
+
var zr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, B = (o, e, r, s) => {
|
|
2250
|
+
for (var t = s > 1 ? void 0 : s ? Dr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2251
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2252
|
+
return s && t && zr(e, r, t), t;
|
|
1909
2253
|
};
|
|
1910
|
-
let
|
|
2254
|
+
let A = class extends m {
|
|
1911
2255
|
constructor() {
|
|
1912
|
-
super(...arguments), this.value = "";
|
|
2256
|
+
super(...arguments), this.value = "", this.min = "0", this.max = "100", this.step = "1", this.showValue = !1, this.unit = "", this.defaultValue = "";
|
|
2257
|
+
}
|
|
2258
|
+
connectedCallback() {
|
|
2259
|
+
if (super.connectedCallback(), this.value === "") {
|
|
2260
|
+
const o = (Number(this.min) + Number(this.max)) / 2;
|
|
2261
|
+
this.value = String(Number.isFinite(o) ? o : this.min);
|
|
2262
|
+
}
|
|
2263
|
+
this.defaultValue = this.value;
|
|
1913
2264
|
}
|
|
1914
2265
|
formResetCallback() {
|
|
1915
|
-
this.value =
|
|
2266
|
+
this.value = this.defaultValue;
|
|
1916
2267
|
}
|
|
1917
2268
|
updated() {
|
|
1918
|
-
this.internals.setFormValue(this.value), this.
|
|
2269
|
+
this.internals.setFormValue(this.value), this.inputEl && this.syncValidity(this.inputEl);
|
|
2270
|
+
}
|
|
2271
|
+
focus(o) {
|
|
2272
|
+
var e;
|
|
2273
|
+
(e = this.inputEl) == null || e.focus(o);
|
|
2274
|
+
}
|
|
2275
|
+
handleInput(o) {
|
|
2276
|
+
this.value = o.target.value;
|
|
2277
|
+
}
|
|
2278
|
+
handleChange() {
|
|
2279
|
+
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
2280
|
+
}
|
|
2281
|
+
render() {
|
|
2282
|
+
const o = this.unit ? `${this.value}${this.unit}` : this.value;
|
|
2283
|
+
return l`
|
|
2284
|
+
<div class="field">
|
|
2285
|
+
${this.renderLabel("range")}
|
|
2286
|
+
<div class="row">
|
|
2287
|
+
<input
|
|
2288
|
+
id="range"
|
|
2289
|
+
class="control"
|
|
2290
|
+
type="range"
|
|
2291
|
+
min=${this.min}
|
|
2292
|
+
max=${this.max}
|
|
2293
|
+
step=${this.step}
|
|
2294
|
+
.value=${mt(this.value)}
|
|
2295
|
+
?disabled=${this.disabled}
|
|
2296
|
+
aria-label=${this.label ? x : "slider"}
|
|
2297
|
+
aria-valuetext=${b(this.unit ? o : void 0)}
|
|
2298
|
+
@input=${this.handleInput}
|
|
2299
|
+
@change=${this.handleChange}
|
|
2300
|
+
/>
|
|
2301
|
+
${this.showValue ? l`<span class="readout" aria-hidden="true">${o}</span>` : x}
|
|
2302
|
+
</div>
|
|
2303
|
+
${this.renderNote()}
|
|
2304
|
+
</div>
|
|
2305
|
+
`;
|
|
2306
|
+
}
|
|
2307
|
+
};
|
|
2308
|
+
A.styles = [
|
|
2309
|
+
Q,
|
|
2310
|
+
d`
|
|
2311
|
+
.row {
|
|
2312
|
+
display: flex;
|
|
2313
|
+
align-items: center;
|
|
2314
|
+
gap: var(--vox-space-3);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
.readout {
|
|
2318
|
+
flex: none;
|
|
2319
|
+
min-width: 3.5ch;
|
|
2320
|
+
font-size: 14px;
|
|
2321
|
+
font-variant-numeric: tabular-nums;
|
|
2322
|
+
color: var(--vox-color-text-2);
|
|
2323
|
+
text-align: right;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
input.control {
|
|
2327
|
+
appearance: none;
|
|
2328
|
+
-webkit-appearance: none;
|
|
2329
|
+
padding: 0;
|
|
2330
|
+
border: none;
|
|
2331
|
+
background: transparent;
|
|
2332
|
+
cursor: pointer;
|
|
2333
|
+
/* Room for the thumb's focus ring at both ends of the track. */
|
|
2334
|
+
height: 24px;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
input.control:focus {
|
|
2338
|
+
outline: none;
|
|
2339
|
+
border: none;
|
|
2340
|
+
box-shadow: none;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
input.control:disabled {
|
|
2344
|
+
cursor: not-allowed;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
/*
|
|
2348
|
+
* Track and thumb need vendor-prefixed selectors, and a browser drops
|
|
2349
|
+
* the whole rule if it doesn't recognise one — so no grouping here.
|
|
2350
|
+
*/
|
|
2351
|
+
input.control::-webkit-slider-runnable-track {
|
|
2352
|
+
height: 6px;
|
|
2353
|
+
border-radius: var(--vox-radius-full);
|
|
2354
|
+
/* 3:1 against the page background, per WCAG 1.4.11. */
|
|
2355
|
+
background-color: var(--vox-color-border);
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
input.control::-moz-range-track {
|
|
2359
|
+
height: 6px;
|
|
2360
|
+
border-radius: var(--vox-radius-full);
|
|
2361
|
+
background-color: var(--vox-color-border);
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
input.control::-webkit-slider-thumb {
|
|
2365
|
+
appearance: none;
|
|
2366
|
+
-webkit-appearance: none;
|
|
2367
|
+
width: 20px;
|
|
2368
|
+
height: 20px;
|
|
2369
|
+
margin-top: -7px;
|
|
2370
|
+
border: 2px solid var(--vox-color-bg);
|
|
2371
|
+
border-radius: var(--vox-radius-full);
|
|
2372
|
+
background-color: var(--vox-color-brand-1);
|
|
2373
|
+
transition: box-shadow var(--vox-transition-fast);
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
input.control::-moz-range-thumb {
|
|
2377
|
+
width: 20px;
|
|
2378
|
+
height: 20px;
|
|
2379
|
+
border: 2px solid var(--vox-color-bg);
|
|
2380
|
+
border-radius: var(--vox-radius-full);
|
|
2381
|
+
background-color: var(--vox-color-brand-1);
|
|
2382
|
+
transition: box-shadow var(--vox-transition-fast);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
input.control:focus-visible::-webkit-slider-thumb {
|
|
2386
|
+
box-shadow: 0 0 0 3px var(--vox-color-brand-soft);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
input.control:focus-visible::-moz-range-thumb {
|
|
2390
|
+
box-shadow: 0 0 0 3px var(--vox-color-brand-soft);
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2394
|
+
input.control::-webkit-slider-thumb,
|
|
2395
|
+
input.control::-moz-range-thumb {
|
|
2396
|
+
transition: none;
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
`
|
|
2400
|
+
];
|
|
2401
|
+
B([
|
|
2402
|
+
n()
|
|
2403
|
+
], A.prototype, "value", 2);
|
|
2404
|
+
B([
|
|
2405
|
+
n()
|
|
2406
|
+
], A.prototype, "min", 2);
|
|
2407
|
+
B([
|
|
2408
|
+
n()
|
|
2409
|
+
], A.prototype, "max", 2);
|
|
2410
|
+
B([
|
|
2411
|
+
n()
|
|
2412
|
+
], A.prototype, "step", 2);
|
|
2413
|
+
B([
|
|
2414
|
+
n({ type: Boolean, attribute: "show-value" })
|
|
2415
|
+
], A.prototype, "showValue", 2);
|
|
2416
|
+
B([
|
|
2417
|
+
n()
|
|
2418
|
+
], A.prototype, "unit", 2);
|
|
2419
|
+
B([
|
|
2420
|
+
ue("input")
|
|
2421
|
+
], A.prototype, "inputEl", 2);
|
|
2422
|
+
A = B([
|
|
2423
|
+
h("vox-range")
|
|
2424
|
+
], A);
|
|
2425
|
+
var Hr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, fe = (o, e, r, s) => {
|
|
2426
|
+
for (var t = s > 1 ? void 0 : s ? Tr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2427
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2428
|
+
return s && t && Hr(e, r, t), t;
|
|
2429
|
+
};
|
|
2430
|
+
let T = class extends m {
|
|
2431
|
+
constructor() {
|
|
2432
|
+
super(...arguments), this.value = "", this.multiple = !1, this.values = [];
|
|
2433
|
+
}
|
|
2434
|
+
formResetCallback() {
|
|
2435
|
+
this.value = "", this.values = [], this.syncOptions();
|
|
2436
|
+
}
|
|
2437
|
+
updated() {
|
|
2438
|
+
this.internals.setFormValue(this.multiple ? this.formData() : this.value), this.selectEl && this.syncValidity(this.selectEl);
|
|
2439
|
+
}
|
|
2440
|
+
focus(o) {
|
|
2441
|
+
var e;
|
|
2442
|
+
(e = this.selectEl) == null || e.focus(o);
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
* A multi-select submits one entry per selection, which only FormData can
|
|
2446
|
+
* express. Without a `name` there is nothing to key them on, so submit
|
|
2447
|
+
* nothing — matching a native select with no name.
|
|
2448
|
+
*/
|
|
2449
|
+
formData() {
|
|
2450
|
+
if (!this.name) return null;
|
|
2451
|
+
const o = new FormData();
|
|
2452
|
+
for (const e of this.values) o.append(this.name, e);
|
|
2453
|
+
return o;
|
|
1919
2454
|
}
|
|
1920
2455
|
syncOptions() {
|
|
1921
2456
|
if (!this.selectEl) return;
|
|
1922
|
-
const
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
2457
|
+
const o = this.renderRoot.querySelector("slot");
|
|
2458
|
+
if (o) {
|
|
2459
|
+
if (this.selectEl.replaceChildren(
|
|
2460
|
+
...o.assignedElements().filter((e) => e instanceof HTMLOptionElement || e instanceof HTMLOptGroupElement).map((e) => e.cloneNode(!0))
|
|
2461
|
+
), this.multiple) {
|
|
2462
|
+
const e = new Set(this.values);
|
|
2463
|
+
for (const r of this.selectEl.options)
|
|
2464
|
+
r.selected = e.has(r.value);
|
|
2465
|
+
this.values = this.selected();
|
|
2466
|
+
return;
|
|
2467
|
+
}
|
|
2468
|
+
this.value && (this.selectEl.value = this.value), this.value = this.selectEl.value;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
selected() {
|
|
2472
|
+
return [...this.selectEl.selectedOptions].map((o) => o.value);
|
|
1926
2473
|
}
|
|
1927
2474
|
handleChange() {
|
|
1928
|
-
this.value = this.selectEl.value, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
2475
|
+
this.multiple ? (this.values = this.selected(), this.value = this.values[0] ?? "") : this.value = this.selectEl.value, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1929
2476
|
}
|
|
1930
2477
|
render() {
|
|
1931
2478
|
return l`
|
|
@@ -1934,8 +2481,11 @@ let ge = class extends y {
|
|
|
1934
2481
|
<select
|
|
1935
2482
|
id="select"
|
|
1936
2483
|
class="control"
|
|
2484
|
+
?multiple=${this.multiple}
|
|
2485
|
+
size=${b(this.multiple ? this.size ?? 4 : void 0)}
|
|
1937
2486
|
?required=${this.required}
|
|
1938
2487
|
?disabled=${this.disabled}
|
|
2488
|
+
aria-label=${this.label ? x : "options"}
|
|
1939
2489
|
@change=${this.handleChange}
|
|
1940
2490
|
></select>
|
|
1941
2491
|
${this.renderNote()}
|
|
@@ -1944,8 +2494,8 @@ let ge = class extends y {
|
|
|
1944
2494
|
`;
|
|
1945
2495
|
}
|
|
1946
2496
|
};
|
|
1947
|
-
|
|
1948
|
-
|
|
2497
|
+
T.styles = [
|
|
2498
|
+
Q,
|
|
1949
2499
|
d`
|
|
1950
2500
|
select.control {
|
|
1951
2501
|
appearance: none;
|
|
@@ -1955,23 +2505,44 @@ ge.styles = [
|
|
|
1955
2505
|
background-position: right var(--vox-space-3) center;
|
|
1956
2506
|
cursor: pointer;
|
|
1957
2507
|
}
|
|
2508
|
+
|
|
2509
|
+
/* A list box has no collapsed affordance, so drop the chevron. */
|
|
2510
|
+
:host([multiple]) select.control {
|
|
2511
|
+
appearance: none;
|
|
2512
|
+
padding-right: var(--vox-space-3);
|
|
2513
|
+
background-image: none;
|
|
2514
|
+
cursor: default;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
:host([multiple]) select.control option {
|
|
2518
|
+
padding: var(--vox-space-1) var(--vox-space-2);
|
|
2519
|
+
}
|
|
1958
2520
|
`
|
|
1959
2521
|
];
|
|
1960
|
-
|
|
2522
|
+
fe([
|
|
1961
2523
|
n()
|
|
1962
|
-
],
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
],
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
],
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
2524
|
+
], T.prototype, "value", 2);
|
|
2525
|
+
fe([
|
|
2526
|
+
n({ type: Boolean, reflect: !0 })
|
|
2527
|
+
], T.prototype, "multiple", 2);
|
|
2528
|
+
fe([
|
|
2529
|
+
n({ type: Number })
|
|
2530
|
+
], T.prototype, "size", 2);
|
|
2531
|
+
fe([
|
|
2532
|
+
n({ type: Array })
|
|
2533
|
+
], T.prototype, "values", 2);
|
|
2534
|
+
fe([
|
|
2535
|
+
ue("select")
|
|
2536
|
+
], T.prototype, "selectEl", 2);
|
|
2537
|
+
T = fe([
|
|
2538
|
+
h("vox-select")
|
|
2539
|
+
], T);
|
|
2540
|
+
var Br = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, Ft = (o, e, r, s) => {
|
|
2541
|
+
for (var t = s > 1 ? void 0 : s ? Nr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2542
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2543
|
+
return s && t && Br(e, r, t), t;
|
|
1973
2544
|
};
|
|
1974
|
-
let
|
|
2545
|
+
let Oe = class extends m {
|
|
1975
2546
|
constructor() {
|
|
1976
2547
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1977
2548
|
}
|
|
@@ -1981,8 +2552,8 @@ let be = class extends y {
|
|
|
1981
2552
|
updated() {
|
|
1982
2553
|
this.internals.setFormValue(this.checked ? this.value : null);
|
|
1983
2554
|
}
|
|
1984
|
-
handleChange(
|
|
1985
|
-
this.checked =
|
|
2555
|
+
handleChange(o) {
|
|
2556
|
+
this.checked = o.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1986
2557
|
}
|
|
1987
2558
|
render() {
|
|
1988
2559
|
return l`
|
|
@@ -2000,8 +2571,8 @@ let be = class extends y {
|
|
|
2000
2571
|
`;
|
|
2001
2572
|
}
|
|
2002
2573
|
};
|
|
2003
|
-
|
|
2004
|
-
|
|
2574
|
+
Oe.styles = [
|
|
2575
|
+
So,
|
|
2005
2576
|
d`
|
|
2006
2577
|
.track {
|
|
2007
2578
|
flex: none;
|
|
@@ -2040,21 +2611,21 @@ be.styles = [
|
|
|
2040
2611
|
}
|
|
2041
2612
|
`
|
|
2042
2613
|
];
|
|
2043
|
-
|
|
2614
|
+
Ft([
|
|
2044
2615
|
n({ type: Boolean, reflect: !0 })
|
|
2045
|
-
],
|
|
2046
|
-
|
|
2616
|
+
], Oe.prototype, "checked", 2);
|
|
2617
|
+
Ft([
|
|
2047
2618
|
n()
|
|
2048
|
-
],
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
],
|
|
2052
|
-
var
|
|
2053
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2054
|
-
(i =
|
|
2055
|
-
return s && t &&
|
|
2619
|
+
], Oe.prototype, "value", 2);
|
|
2620
|
+
Oe = Ft([
|
|
2621
|
+
h("vox-switch")
|
|
2622
|
+
], Oe);
|
|
2623
|
+
var Rr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, Ze = (o, e, r, s) => {
|
|
2624
|
+
for (var t = s > 1 ? void 0 : s ? Ir(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2625
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2626
|
+
return s && t && Rr(e, r, t), t;
|
|
2056
2627
|
};
|
|
2057
|
-
let
|
|
2628
|
+
let F = class extends m {
|
|
2058
2629
|
constructor() {
|
|
2059
2630
|
super(...arguments), this.value = "", this.rows = 4, this.readonly = !1;
|
|
2060
2631
|
}
|
|
@@ -2063,15 +2634,15 @@ let T = class extends y {
|
|
|
2063
2634
|
}
|
|
2064
2635
|
updated() {
|
|
2065
2636
|
this.internals.setFormValue(this.value);
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2637
|
+
const o = this.renderRoot.querySelector("textarea");
|
|
2638
|
+
o && this.syncValidity(o);
|
|
2068
2639
|
}
|
|
2069
|
-
focus(
|
|
2640
|
+
focus(o) {
|
|
2070
2641
|
var e;
|
|
2071
|
-
(e = this.renderRoot.querySelector("textarea")) == null || e.focus(
|
|
2642
|
+
(e = this.renderRoot.querySelector("textarea")) == null || e.focus(o);
|
|
2072
2643
|
}
|
|
2073
|
-
handleInput(
|
|
2074
|
-
this.value =
|
|
2644
|
+
handleInput(o) {
|
|
2645
|
+
this.value = o.target.value;
|
|
2075
2646
|
}
|
|
2076
2647
|
handleChange() {
|
|
2077
2648
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -2084,8 +2655,8 @@ let T = class extends y {
|
|
|
2084
2655
|
id="textarea"
|
|
2085
2656
|
class="control"
|
|
2086
2657
|
rows=${this.rows}
|
|
2087
|
-
.value=${
|
|
2088
|
-
placeholder=${
|
|
2658
|
+
.value=${mt(this.value)}
|
|
2659
|
+
placeholder=${b(this.placeholder)}
|
|
2089
2660
|
?required=${this.required}
|
|
2090
2661
|
?readonly=${this.readonly}
|
|
2091
2662
|
?disabled=${this.disabled}
|
|
@@ -2097,8 +2668,8 @@ let T = class extends y {
|
|
|
2097
2668
|
`;
|
|
2098
2669
|
}
|
|
2099
2670
|
};
|
|
2100
|
-
|
|
2101
|
-
|
|
2671
|
+
F.styles = [
|
|
2672
|
+
Q,
|
|
2102
2673
|
d`
|
|
2103
2674
|
textarea.control {
|
|
2104
2675
|
resize: vertical;
|
|
@@ -2106,27 +2677,27 @@ T.styles = [
|
|
|
2106
2677
|
}
|
|
2107
2678
|
`
|
|
2108
2679
|
];
|
|
2109
|
-
|
|
2680
|
+
Ze([
|
|
2110
2681
|
n()
|
|
2111
|
-
],
|
|
2112
|
-
|
|
2682
|
+
], F.prototype, "value", 2);
|
|
2683
|
+
Ze([
|
|
2113
2684
|
n()
|
|
2114
|
-
],
|
|
2115
|
-
|
|
2685
|
+
], F.prototype, "placeholder", 2);
|
|
2686
|
+
Ze([
|
|
2116
2687
|
n({ type: Number })
|
|
2117
|
-
],
|
|
2118
|
-
|
|
2688
|
+
], F.prototype, "rows", 2);
|
|
2689
|
+
Ze([
|
|
2119
2690
|
n({ type: Boolean, reflect: !0 })
|
|
2120
|
-
],
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
],
|
|
2124
|
-
var
|
|
2125
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2126
|
-
(i =
|
|
2127
|
-
return s && t &&
|
|
2691
|
+
], F.prototype, "readonly", 2);
|
|
2692
|
+
F = Ze([
|
|
2693
|
+
h("vox-textarea")
|
|
2694
|
+
], F);
|
|
2695
|
+
var qr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, Fe = (o, e, r, s) => {
|
|
2696
|
+
for (var t = s > 1 ? void 0 : s ? Ur(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2697
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2698
|
+
return s && t && qr(e, r, t), t;
|
|
2128
2699
|
};
|
|
2129
|
-
let
|
|
2700
|
+
let K = class extends p {
|
|
2130
2701
|
constructor() {
|
|
2131
2702
|
super(...arguments), this.alt = "", this.initials = "", this.size = "md";
|
|
2132
2703
|
}
|
|
@@ -2138,7 +2709,7 @@ let B = class extends h {
|
|
|
2138
2709
|
`;
|
|
2139
2710
|
}
|
|
2140
2711
|
};
|
|
2141
|
-
|
|
2712
|
+
K.styles = d`
|
|
2142
2713
|
:host {
|
|
2143
2714
|
display: inline-block;
|
|
2144
2715
|
}
|
|
@@ -2186,32 +2757,32 @@ B.styles = d`
|
|
|
2186
2757
|
font-size: 28px;
|
|
2187
2758
|
}
|
|
2188
2759
|
`;
|
|
2189
|
-
|
|
2760
|
+
Fe([
|
|
2190
2761
|
n()
|
|
2191
|
-
],
|
|
2192
|
-
|
|
2762
|
+
], K.prototype, "src", 2);
|
|
2763
|
+
Fe([
|
|
2193
2764
|
n()
|
|
2194
|
-
],
|
|
2195
|
-
|
|
2765
|
+
], K.prototype, "alt", 2);
|
|
2766
|
+
Fe([
|
|
2196
2767
|
n()
|
|
2197
|
-
],
|
|
2198
|
-
|
|
2768
|
+
], K.prototype, "initials", 2);
|
|
2769
|
+
Fe([
|
|
2199
2770
|
n({ reflect: !0 })
|
|
2200
|
-
],
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
],
|
|
2204
|
-
var
|
|
2205
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2206
|
-
(i =
|
|
2207
|
-
return s && t &&
|
|
2771
|
+
], K.prototype, "size", 2);
|
|
2772
|
+
K = Fe([
|
|
2773
|
+
h("vox-avatar")
|
|
2774
|
+
], K);
|
|
2775
|
+
var Zr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, Kt = (o, e, r, s) => {
|
|
2776
|
+
for (var t = s > 1 ? void 0 : s ? Fr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2777
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2778
|
+
return s && t && Zr(e, r, t), t;
|
|
2208
2779
|
};
|
|
2209
|
-
let
|
|
2780
|
+
let Me = class extends p {
|
|
2210
2781
|
constructor() {
|
|
2211
2782
|
super(...arguments), this.heading = "", this.reverse = !1, this.hasActions = !1;
|
|
2212
2783
|
}
|
|
2213
|
-
handleActionsSlotChange(
|
|
2214
|
-
const e =
|
|
2784
|
+
handleActionsSlotChange(o) {
|
|
2785
|
+
const e = o.target;
|
|
2215
2786
|
this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2216
2787
|
}
|
|
2217
2788
|
render() {
|
|
@@ -2229,7 +2800,7 @@ let ye = class extends h {
|
|
|
2229
2800
|
`;
|
|
2230
2801
|
}
|
|
2231
2802
|
};
|
|
2232
|
-
|
|
2803
|
+
Me.styles = d`
|
|
2233
2804
|
:host {
|
|
2234
2805
|
display: block;
|
|
2235
2806
|
font-family: var(--vox-font-family-base);
|
|
@@ -2291,21 +2862,21 @@ ye.styles = d`
|
|
|
2291
2862
|
display: none;
|
|
2292
2863
|
}
|
|
2293
2864
|
`;
|
|
2294
|
-
|
|
2865
|
+
Kt([
|
|
2295
2866
|
n()
|
|
2296
|
-
],
|
|
2297
|
-
|
|
2867
|
+
], Me.prototype, "heading", 2);
|
|
2868
|
+
Kt([
|
|
2298
2869
|
n({ type: Boolean, reflect: !0 })
|
|
2299
|
-
],
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
],
|
|
2303
|
-
var
|
|
2304
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2305
|
-
(i =
|
|
2870
|
+
], Me.prototype, "reverse", 2);
|
|
2871
|
+
Me = Kt([
|
|
2872
|
+
h("vox-billboard")
|
|
2873
|
+
], Me);
|
|
2874
|
+
var Kr = Object.getOwnPropertyDescriptor, Gr = (o, e, r, s) => {
|
|
2875
|
+
for (var t = s > 1 ? void 0 : s ? Kr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2876
|
+
(i = o[a]) && (t = i(t) || t);
|
|
2306
2877
|
return t;
|
|
2307
2878
|
};
|
|
2308
|
-
let
|
|
2879
|
+
let Vt = class extends p {
|
|
2309
2880
|
render() {
|
|
2310
2881
|
return l`
|
|
2311
2882
|
<nav aria-label="Breadcrumbs">
|
|
@@ -2314,7 +2885,7 @@ let Mt = class extends h {
|
|
|
2314
2885
|
`;
|
|
2315
2886
|
}
|
|
2316
2887
|
};
|
|
2317
|
-
|
|
2888
|
+
Vt.styles = d`
|
|
2318
2889
|
:host {
|
|
2319
2890
|
display: block;
|
|
2320
2891
|
font-family: var(--vox-font-family-base);
|
|
@@ -2348,21 +2919,21 @@ Mt.styles = d`
|
|
|
2348
2919
|
color: var(--vox-color-text-3);
|
|
2349
2920
|
}
|
|
2350
2921
|
`;
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
],
|
|
2354
|
-
var
|
|
2355
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2356
|
-
(i =
|
|
2357
|
-
return s && t &&
|
|
2922
|
+
Vt = Gr([
|
|
2923
|
+
h("vox-breadcrumbs")
|
|
2924
|
+
], Vt);
|
|
2925
|
+
var Wr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, $t = (o, e, r, s) => {
|
|
2926
|
+
for (var t = s > 1 ? void 0 : s ? Yr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
2927
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
2928
|
+
return s && t && Wr(e, r, t), t;
|
|
2358
2929
|
};
|
|
2359
|
-
let
|
|
2930
|
+
let ce = class extends p {
|
|
2360
2931
|
constructor() {
|
|
2361
|
-
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (
|
|
2362
|
-
this.mobileOpen && !
|
|
2363
|
-
}, this.handleKeydown = (
|
|
2932
|
+
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (o) => {
|
|
2933
|
+
this.mobileOpen && !o.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
2934
|
+
}, this.handleKeydown = (o) => {
|
|
2364
2935
|
var e;
|
|
2365
|
-
|
|
2936
|
+
o.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".menu-toggle")) == null || e.focus());
|
|
2366
2937
|
}, this.toggleMobileMenu = () => {
|
|
2367
2938
|
this.mobileOpen = !this.mobileOpen;
|
|
2368
2939
|
}, this.closeMobileMenu = () => {
|
|
@@ -2400,7 +2971,7 @@ let te = class extends h {
|
|
|
2400
2971
|
stroke-linejoin="round"
|
|
2401
2972
|
aria-hidden="true"
|
|
2402
2973
|
>
|
|
2403
|
-
${this.mobileOpen ?
|
|
2974
|
+
${this.mobileOpen ? D.close : D.menu}
|
|
2404
2975
|
</svg>
|
|
2405
2976
|
</button>
|
|
2406
2977
|
<div id="nav-wrap" class="nav-wrap${this.mobileOpen ? " open" : ""}">
|
|
@@ -2415,7 +2986,7 @@ let te = class extends h {
|
|
|
2415
2986
|
`;
|
|
2416
2987
|
}
|
|
2417
2988
|
};
|
|
2418
|
-
|
|
2989
|
+
ce.styles = d`
|
|
2419
2990
|
:host {
|
|
2420
2991
|
display: block;
|
|
2421
2992
|
font-family: var(--vox-font-family-base);
|
|
@@ -2545,24 +3116,24 @@ te.styles = d`
|
|
|
2545
3116
|
}
|
|
2546
3117
|
}
|
|
2547
3118
|
`;
|
|
2548
|
-
|
|
3119
|
+
$t([
|
|
2549
3120
|
n({ attribute: "site-title" })
|
|
2550
|
-
],
|
|
2551
|
-
|
|
3121
|
+
], ce.prototype, "siteTitle", 2);
|
|
3122
|
+
$t([
|
|
2552
3123
|
n()
|
|
2553
|
-
],
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
],
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
],
|
|
2560
|
-
var
|
|
2561
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2562
|
-
(i =
|
|
2563
|
-
return s && t &&
|
|
3124
|
+
], ce.prototype, "href", 2);
|
|
3125
|
+
$t([
|
|
3126
|
+
k()
|
|
3127
|
+
], ce.prototype, "mobileOpen", 2);
|
|
3128
|
+
ce = $t([
|
|
3129
|
+
h("vox-header")
|
|
3130
|
+
], ce);
|
|
3131
|
+
var Jr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, Ke = (o, e, r, s) => {
|
|
3132
|
+
for (var t = s > 1 ? void 0 : s ? Xr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
3133
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
3134
|
+
return s && t && Jr(e, r, t), t;
|
|
2564
3135
|
};
|
|
2565
|
-
let
|
|
3136
|
+
let G = class extends p {
|
|
2566
3137
|
constructor() {
|
|
2567
3138
|
super(...arguments), this.previousLabel = "", this.nextLabel = "";
|
|
2568
3139
|
}
|
|
@@ -2585,7 +3156,7 @@ let N = class extends h {
|
|
|
2585
3156
|
`;
|
|
2586
3157
|
}
|
|
2587
3158
|
};
|
|
2588
|
-
|
|
3159
|
+
G.styles = d`
|
|
2589
3160
|
:host {
|
|
2590
3161
|
display: block;
|
|
2591
3162
|
font-family: var(--vox-font-family-base);
|
|
@@ -2635,37 +3206,37 @@ N.styles = d`
|
|
|
2635
3206
|
color: var(--vox-color-brand-1);
|
|
2636
3207
|
}
|
|
2637
3208
|
`;
|
|
2638
|
-
|
|
3209
|
+
Ke([
|
|
2639
3210
|
n({ attribute: "previous-href" })
|
|
2640
|
-
],
|
|
2641
|
-
|
|
3211
|
+
], G.prototype, "previousHref", 2);
|
|
3212
|
+
Ke([
|
|
2642
3213
|
n({ attribute: "previous-label" })
|
|
2643
|
-
],
|
|
2644
|
-
|
|
3214
|
+
], G.prototype, "previousLabel", 2);
|
|
3215
|
+
Ke([
|
|
2645
3216
|
n({ attribute: "next-href" })
|
|
2646
|
-
],
|
|
2647
|
-
|
|
3217
|
+
], G.prototype, "nextHref", 2);
|
|
3218
|
+
Ke([
|
|
2648
3219
|
n({ attribute: "next-label" })
|
|
2649
|
-
],
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
],
|
|
2653
|
-
var
|
|
2654
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2655
|
-
(i =
|
|
2656
|
-
return s && t &&
|
|
3220
|
+
], G.prototype, "nextLabel", 2);
|
|
3221
|
+
G = Ke([
|
|
3222
|
+
h("vox-series-nav")
|
|
3223
|
+
], G);
|
|
3224
|
+
var Qr = Object.defineProperty, es = Object.getOwnPropertyDescriptor, P = (o, e, r, s) => {
|
|
3225
|
+
for (var t = s > 1 ? void 0 : s ? es(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
3226
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
3227
|
+
return s && t && Qr(e, r, t), t;
|
|
2657
3228
|
};
|
|
2658
|
-
let
|
|
3229
|
+
let de = class extends p {
|
|
2659
3230
|
constructor() {
|
|
2660
|
-
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (
|
|
2661
|
-
this.mobileOpen && !
|
|
2662
|
-
}, this.handleKeydown = (
|
|
3231
|
+
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (o) => {
|
|
3232
|
+
this.mobileOpen && !o.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
3233
|
+
}, this.handleKeydown = (o) => {
|
|
2663
3234
|
var e;
|
|
2664
|
-
|
|
3235
|
+
o.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".toggle")) == null || e.focus());
|
|
2665
3236
|
}, this.toggleMobile = () => {
|
|
2666
3237
|
this.mobileOpen = !this.mobileOpen;
|
|
2667
|
-
}, this.handleNavClick = (
|
|
2668
|
-
|
|
3238
|
+
}, this.handleNavClick = (o) => {
|
|
3239
|
+
o.composedPath().some((e) => e instanceof HTMLAnchorElement) && (this.mobileOpen = !1);
|
|
2669
3240
|
};
|
|
2670
3241
|
}
|
|
2671
3242
|
connectedCallback() {
|
|
@@ -2694,7 +3265,7 @@ let oe = class extends h {
|
|
|
2694
3265
|
stroke-linejoin="round"
|
|
2695
3266
|
aria-hidden="true"
|
|
2696
3267
|
>
|
|
2697
|
-
${this.mobileOpen ?
|
|
3268
|
+
${this.mobileOpen ? D.close : D.menu}
|
|
2698
3269
|
</svg>
|
|
2699
3270
|
</button>
|
|
2700
3271
|
<nav
|
|
@@ -2708,7 +3279,7 @@ let oe = class extends h {
|
|
|
2708
3279
|
`;
|
|
2709
3280
|
}
|
|
2710
3281
|
};
|
|
2711
|
-
|
|
3282
|
+
de.styles = d`
|
|
2712
3283
|
:host {
|
|
2713
3284
|
display: block;
|
|
2714
3285
|
font-family: var(--vox-font-family-base);
|
|
@@ -2768,19 +3339,19 @@ oe.styles = d`
|
|
|
2768
3339
|
}
|
|
2769
3340
|
}
|
|
2770
3341
|
`;
|
|
2771
|
-
|
|
3342
|
+
P([
|
|
2772
3343
|
n()
|
|
2773
|
-
],
|
|
2774
|
-
|
|
3344
|
+
], de.prototype, "label", 2);
|
|
3345
|
+
P([
|
|
2775
3346
|
n({ attribute: "toggle-label" })
|
|
2776
|
-
],
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
],
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
],
|
|
2783
|
-
let
|
|
3347
|
+
], de.prototype, "toggleLabel", 2);
|
|
3348
|
+
P([
|
|
3349
|
+
k()
|
|
3350
|
+
], de.prototype, "mobileOpen", 2);
|
|
3351
|
+
de = P([
|
|
3352
|
+
h("vox-sidenav")
|
|
3353
|
+
], de);
|
|
3354
|
+
let Ae = class extends p {
|
|
2784
3355
|
constructor() {
|
|
2785
3356
|
super(...arguments), this.heading = "", this.open = !1;
|
|
2786
3357
|
}
|
|
@@ -2803,7 +3374,7 @@ let me = class extends h {
|
|
|
2803
3374
|
`;
|
|
2804
3375
|
}
|
|
2805
3376
|
};
|
|
2806
|
-
|
|
3377
|
+
Ae.styles = d`
|
|
2807
3378
|
:host {
|
|
2808
3379
|
display: block;
|
|
2809
3380
|
font-family: var(--vox-font-family-base);
|
|
@@ -2860,21 +3431,21 @@ me.styles = d`
|
|
|
2860
3431
|
display: flex;
|
|
2861
3432
|
}
|
|
2862
3433
|
`;
|
|
2863
|
-
|
|
3434
|
+
P([
|
|
2864
3435
|
n()
|
|
2865
|
-
],
|
|
2866
|
-
|
|
3436
|
+
], Ae.prototype, "heading", 2);
|
|
3437
|
+
P([
|
|
2867
3438
|
n({ type: Boolean, reflect: !0 })
|
|
2868
|
-
],
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
],
|
|
2872
|
-
let
|
|
3439
|
+
], Ae.prototype, "open", 2);
|
|
3440
|
+
Ae = P([
|
|
3441
|
+
h("vox-sidenav-group")
|
|
3442
|
+
], Ae);
|
|
3443
|
+
let ke = class extends p {
|
|
2873
3444
|
constructor() {
|
|
2874
3445
|
super(...arguments), this.href = "#", this.current = !1, this.hasIcon = !1;
|
|
2875
3446
|
}
|
|
2876
|
-
handleIconSlotChange(
|
|
2877
|
-
const e =
|
|
3447
|
+
handleIconSlotChange(o) {
|
|
3448
|
+
const e = o.target;
|
|
2878
3449
|
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2879
3450
|
}
|
|
2880
3451
|
render() {
|
|
@@ -2888,7 +3459,7 @@ let $e = class extends h {
|
|
|
2888
3459
|
`;
|
|
2889
3460
|
}
|
|
2890
3461
|
};
|
|
2891
|
-
|
|
3462
|
+
ke.styles = d`
|
|
2892
3463
|
:host {
|
|
2893
3464
|
display: block;
|
|
2894
3465
|
font-family: var(--vox-font-family-base);
|
|
@@ -2932,21 +3503,21 @@ $e.styles = d`
|
|
|
2932
3503
|
display: none;
|
|
2933
3504
|
}
|
|
2934
3505
|
`;
|
|
2935
|
-
|
|
3506
|
+
P([
|
|
2936
3507
|
n()
|
|
2937
|
-
],
|
|
2938
|
-
|
|
3508
|
+
], ke.prototype, "href", 2);
|
|
3509
|
+
P([
|
|
2939
3510
|
n({ type: Boolean, reflect: !0 })
|
|
2940
|
-
],
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
],
|
|
2944
|
-
var
|
|
2945
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2946
|
-
(i =
|
|
2947
|
-
return s && t &&
|
|
3511
|
+
], ke.prototype, "current", 2);
|
|
3512
|
+
ke = P([
|
|
3513
|
+
h("vox-sidenav-item")
|
|
3514
|
+
], ke);
|
|
3515
|
+
var ts = Object.defineProperty, os = Object.getOwnPropertyDescriptor, jo = (o, e, r, s) => {
|
|
3516
|
+
for (var t = s > 1 ? void 0 : s ? os(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
3517
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
3518
|
+
return s && t && ts(e, r, t), t;
|
|
2948
3519
|
};
|
|
2949
|
-
let
|
|
3520
|
+
let lt = class extends p {
|
|
2950
3521
|
constructor() {
|
|
2951
3522
|
super(...arguments), this.label = "Secondary";
|
|
2952
3523
|
}
|
|
@@ -2958,7 +3529,7 @@ let ot = class extends h {
|
|
|
2958
3529
|
`;
|
|
2959
3530
|
}
|
|
2960
3531
|
};
|
|
2961
|
-
|
|
3532
|
+
lt.styles = d`
|
|
2962
3533
|
:host {
|
|
2963
3534
|
display: block;
|
|
2964
3535
|
font-family: var(--vox-font-family-base);
|
|
@@ -2993,18 +3564,18 @@ ot.styles = d`
|
|
|
2993
3564
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2994
3565
|
}
|
|
2995
3566
|
`;
|
|
2996
|
-
|
|
3567
|
+
jo([
|
|
2997
3568
|
n()
|
|
2998
|
-
],
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
],
|
|
3002
|
-
var
|
|
3003
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3004
|
-
(i =
|
|
3005
|
-
return s && t &&
|
|
3569
|
+
], lt.prototype, "label", 2);
|
|
3570
|
+
lt = jo([
|
|
3571
|
+
h("vox-subnav")
|
|
3572
|
+
], lt);
|
|
3573
|
+
var rs = Object.defineProperty, ss = Object.getOwnPropertyDescriptor, ee = (o, e, r, s) => {
|
|
3574
|
+
for (var t = s > 1 ? void 0 : s ? ss(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
3575
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
3576
|
+
return s && t && rs(e, r, t), t;
|
|
3006
3577
|
};
|
|
3007
|
-
let
|
|
3578
|
+
let jt = class extends p {
|
|
3008
3579
|
get tabs() {
|
|
3009
3580
|
return [...this.querySelectorAll("vox-tab")];
|
|
3010
3581
|
}
|
|
@@ -3012,16 +3583,16 @@ let At = class extends h {
|
|
|
3012
3583
|
return [...this.querySelectorAll("vox-tab-panel")];
|
|
3013
3584
|
}
|
|
3014
3585
|
sync() {
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3017
|
-
const e =
|
|
3018
|
-
this.panels.forEach((
|
|
3019
|
-
|
|
3586
|
+
const o = this.tabs;
|
|
3587
|
+
o.length > 0 && !o.some((r) => r.selected) && (o[0].selected = !0);
|
|
3588
|
+
const e = o.find((r) => r.selected);
|
|
3589
|
+
this.panels.forEach((r) => {
|
|
3590
|
+
r.active = r.name === (e == null ? void 0 : e.panel);
|
|
3020
3591
|
});
|
|
3021
3592
|
}
|
|
3022
|
-
handleSelect(
|
|
3023
|
-
const e =
|
|
3024
|
-
e.tagName === "VOX-TAB" && (this.tabs.forEach((
|
|
3593
|
+
handleSelect(o) {
|
|
3594
|
+
const e = o.target;
|
|
3595
|
+
e.tagName === "VOX-TAB" && (this.tabs.forEach((r) => r.selected = r === e), this.sync(), this.dispatchEvent(
|
|
3025
3596
|
new CustomEvent("vox-tab-change", {
|
|
3026
3597
|
detail: { panel: e.panel },
|
|
3027
3598
|
bubbles: !0,
|
|
@@ -3029,11 +3600,11 @@ let At = class extends h {
|
|
|
3029
3600
|
})
|
|
3030
3601
|
));
|
|
3031
3602
|
}
|
|
3032
|
-
handleKeydown(
|
|
3033
|
-
const
|
|
3034
|
-
if (!
|
|
3035
|
-
|
|
3036
|
-
const s = this.tabs, t = s.findIndex((i) => i.selected), a = s[(t +
|
|
3603
|
+
handleKeydown(o) {
|
|
3604
|
+
const r = { ArrowRight: 1, ArrowLeft: -1 }[o.key];
|
|
3605
|
+
if (!r) return;
|
|
3606
|
+
o.preventDefault();
|
|
3607
|
+
const s = this.tabs, t = s.findIndex((i) => i.selected), a = s[(t + r + s.length) % s.length];
|
|
3037
3608
|
a.select(), a.focusTab();
|
|
3038
3609
|
}
|
|
3039
3610
|
render() {
|
|
@@ -3050,7 +3621,7 @@ let At = class extends h {
|
|
|
3050
3621
|
`;
|
|
3051
3622
|
}
|
|
3052
3623
|
};
|
|
3053
|
-
|
|
3624
|
+
jt.styles = d`
|
|
3054
3625
|
:host {
|
|
3055
3626
|
display: block;
|
|
3056
3627
|
}
|
|
@@ -3061,10 +3632,10 @@ At.styles = d`
|
|
|
3061
3632
|
border-bottom: 1px solid var(--vox-color-divider);
|
|
3062
3633
|
}
|
|
3063
3634
|
`;
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
],
|
|
3067
|
-
let
|
|
3635
|
+
jt = ee([
|
|
3636
|
+
h("vox-tabs")
|
|
3637
|
+
], jt);
|
|
3638
|
+
let Pe = class extends p {
|
|
3068
3639
|
constructor() {
|
|
3069
3640
|
super(...arguments), this.panel = "", this.selected = !1;
|
|
3070
3641
|
}
|
|
@@ -3074,8 +3645,8 @@ let we = class extends h {
|
|
|
3074
3645
|
);
|
|
3075
3646
|
}
|
|
3076
3647
|
focusTab() {
|
|
3077
|
-
var
|
|
3078
|
-
(
|
|
3648
|
+
var o;
|
|
3649
|
+
(o = this.renderRoot.querySelector(".tab")) == null || o.focus();
|
|
3079
3650
|
}
|
|
3080
3651
|
render() {
|
|
3081
3652
|
return l`
|
|
@@ -3091,7 +3662,7 @@ let we = class extends h {
|
|
|
3091
3662
|
`;
|
|
3092
3663
|
}
|
|
3093
3664
|
};
|
|
3094
|
-
|
|
3665
|
+
Pe.styles = d`
|
|
3095
3666
|
:host {
|
|
3096
3667
|
display: block;
|
|
3097
3668
|
font-family: var(--vox-font-family-base);
|
|
@@ -3126,16 +3697,16 @@ we.styles = d`
|
|
|
3126
3697
|
border-bottom-color: var(--vox-color-brand-1);
|
|
3127
3698
|
}
|
|
3128
3699
|
`;
|
|
3129
|
-
|
|
3700
|
+
ee([
|
|
3130
3701
|
n()
|
|
3131
|
-
],
|
|
3132
|
-
|
|
3702
|
+
], Pe.prototype, "panel", 2);
|
|
3703
|
+
ee([
|
|
3133
3704
|
n({ type: Boolean, reflect: !0 })
|
|
3134
|
-
],
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
],
|
|
3138
|
-
let
|
|
3705
|
+
], Pe.prototype, "selected", 2);
|
|
3706
|
+
Pe = ee([
|
|
3707
|
+
h("vox-tab")
|
|
3708
|
+
], Pe);
|
|
3709
|
+
let Ee = class extends p {
|
|
3139
3710
|
constructor() {
|
|
3140
3711
|
super(...arguments), this.name = "", this.active = !1;
|
|
3141
3712
|
}
|
|
@@ -3143,7 +3714,7 @@ let _e = class extends h {
|
|
|
3143
3714
|
return l`<div role="tabpanel"><slot></slot></div>`;
|
|
3144
3715
|
}
|
|
3145
3716
|
};
|
|
3146
|
-
|
|
3717
|
+
Ee.styles = d`
|
|
3147
3718
|
:host {
|
|
3148
3719
|
display: none;
|
|
3149
3720
|
font-family: var(--vox-font-family-base);
|
|
@@ -3157,21 +3728,21 @@ _e.styles = d`
|
|
|
3157
3728
|
display: block;
|
|
3158
3729
|
}
|
|
3159
3730
|
`;
|
|
3160
|
-
|
|
3731
|
+
ee([
|
|
3161
3732
|
n()
|
|
3162
|
-
],
|
|
3163
|
-
|
|
3733
|
+
], Ee.prototype, "name", 2);
|
|
3734
|
+
ee([
|
|
3164
3735
|
n({ type: Boolean, reflect: !0 })
|
|
3165
|
-
],
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
],
|
|
3169
|
-
var
|
|
3170
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3171
|
-
(i =
|
|
3172
|
-
return s && t &&
|
|
3736
|
+
], Ee.prototype, "active", 2);
|
|
3737
|
+
Ee = ee([
|
|
3738
|
+
h("vox-tab-panel")
|
|
3739
|
+
], Ee);
|
|
3740
|
+
var as = Object.defineProperty, is = Object.getOwnPropertyDescriptor, Ge = (o, e, r, s) => {
|
|
3741
|
+
for (var t = s > 1 ? void 0 : s ? is(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
3742
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
3743
|
+
return s && t && as(e, r, t), t;
|
|
3173
3744
|
};
|
|
3174
|
-
let
|
|
3745
|
+
let ct = class extends p {
|
|
3175
3746
|
constructor() {
|
|
3176
3747
|
super(...arguments), this.heading = "On this page";
|
|
3177
3748
|
}
|
|
@@ -3184,7 +3755,7 @@ let rt = class extends h {
|
|
|
3184
3755
|
`;
|
|
3185
3756
|
}
|
|
3186
3757
|
};
|
|
3187
|
-
|
|
3758
|
+
ct.styles = d`
|
|
3188
3759
|
:host {
|
|
3189
3760
|
display: block;
|
|
3190
3761
|
font-family: var(--vox-font-family-base);
|
|
@@ -3205,18 +3776,18 @@ rt.styles = d`
|
|
|
3205
3776
|
border-left: 1px solid var(--vox-color-divider);
|
|
3206
3777
|
}
|
|
3207
3778
|
`;
|
|
3208
|
-
|
|
3779
|
+
Ge([
|
|
3209
3780
|
n()
|
|
3210
|
-
],
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
],
|
|
3214
|
-
let
|
|
3781
|
+
], ct.prototype, "heading", 2);
|
|
3782
|
+
ct = Ge([
|
|
3783
|
+
h("vox-toc")
|
|
3784
|
+
], ct);
|
|
3785
|
+
let Le = class extends p {
|
|
3215
3786
|
constructor() {
|
|
3216
3787
|
super(...arguments), this.href = "#", this.current = !1, this.hasChildren = !1;
|
|
3217
3788
|
}
|
|
3218
|
-
handleChildrenSlotChange(
|
|
3219
|
-
const e =
|
|
3789
|
+
handleChildrenSlotChange(o) {
|
|
3790
|
+
const e = o.target;
|
|
3220
3791
|
this.hasChildren = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3221
3792
|
}
|
|
3222
3793
|
render() {
|
|
@@ -3230,7 +3801,7 @@ let Ce = class extends h {
|
|
|
3230
3801
|
`;
|
|
3231
3802
|
}
|
|
3232
3803
|
};
|
|
3233
|
-
|
|
3804
|
+
Le.styles = d`
|
|
3234
3805
|
:host {
|
|
3235
3806
|
display: block;
|
|
3236
3807
|
font-family: var(--vox-font-family-base);
|
|
@@ -3276,21 +3847,21 @@ Ce.styles = d`
|
|
|
3276
3847
|
display: none;
|
|
3277
3848
|
}
|
|
3278
3849
|
`;
|
|
3279
|
-
|
|
3850
|
+
Ge([
|
|
3280
3851
|
n()
|
|
3281
|
-
],
|
|
3282
|
-
|
|
3852
|
+
], Le.prototype, "href", 2);
|
|
3853
|
+
Ge([
|
|
3283
3854
|
n({ type: Boolean, reflect: !0 })
|
|
3284
|
-
],
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
],
|
|
3288
|
-
var
|
|
3289
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3290
|
-
(i =
|
|
3291
|
-
return s && t &&
|
|
3855
|
+
], Le.prototype, "current", 2);
|
|
3856
|
+
Le = Ge([
|
|
3857
|
+
h("vox-toc-item")
|
|
3858
|
+
], Le);
|
|
3859
|
+
var ns = Object.defineProperty, ls = Object.getOwnPropertyDescriptor, We = (o, e, r, s) => {
|
|
3860
|
+
for (var t = s > 1 ? void 0 : s ? ls(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
3861
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
3862
|
+
return s && t && ns(e, r, t), t;
|
|
3292
3863
|
};
|
|
3293
|
-
let
|
|
3864
|
+
let W = class extends p {
|
|
3294
3865
|
constructor() {
|
|
3295
3866
|
super(...arguments), this.heading = "", this.open = !1, this.lightDismiss = !1, this.hasFooter = !1;
|
|
3296
3867
|
}
|
|
@@ -3308,11 +3879,11 @@ let R = class extends h {
|
|
|
3308
3879
|
new CustomEvent("vox-close", { bubbles: !0, composed: !0 })
|
|
3309
3880
|
);
|
|
3310
3881
|
}
|
|
3311
|
-
handleClick(
|
|
3312
|
-
this.lightDismiss &&
|
|
3882
|
+
handleClick(o) {
|
|
3883
|
+
this.lightDismiss && o.target === this.dialogEl && this.close();
|
|
3313
3884
|
}
|
|
3314
|
-
handleFooterSlotChange(
|
|
3315
|
-
const e =
|
|
3885
|
+
handleFooterSlotChange(o) {
|
|
3886
|
+
const e = o.target;
|
|
3316
3887
|
this.hasFooter = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3317
3888
|
}
|
|
3318
3889
|
render() {
|
|
@@ -3338,7 +3909,7 @@ let R = class extends h {
|
|
|
3338
3909
|
`;
|
|
3339
3910
|
}
|
|
3340
3911
|
};
|
|
3341
|
-
|
|
3912
|
+
W.styles = d`
|
|
3342
3913
|
dialog {
|
|
3343
3914
|
box-sizing: border-box;
|
|
3344
3915
|
width: min(90vw, 480px);
|
|
@@ -3425,27 +3996,27 @@ R.styles = d`
|
|
|
3425
3996
|
margin-bottom: 0;
|
|
3426
3997
|
}
|
|
3427
3998
|
`;
|
|
3428
|
-
|
|
3999
|
+
We([
|
|
3429
4000
|
n()
|
|
3430
|
-
],
|
|
3431
|
-
|
|
4001
|
+
], W.prototype, "heading", 2);
|
|
4002
|
+
We([
|
|
3432
4003
|
n({ type: Boolean })
|
|
3433
|
-
],
|
|
3434
|
-
|
|
4004
|
+
], W.prototype, "open", 2);
|
|
4005
|
+
We([
|
|
3435
4006
|
n({ type: Boolean, attribute: "light-dismiss" })
|
|
3436
|
-
],
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
],
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
],
|
|
3443
|
-
var
|
|
3444
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3445
|
-
(i =
|
|
3446
|
-
return s && t &&
|
|
4007
|
+
], W.prototype, "lightDismiss", 2);
|
|
4008
|
+
We([
|
|
4009
|
+
ue("dialog")
|
|
4010
|
+
], W.prototype, "dialogEl", 2);
|
|
4011
|
+
W = We([
|
|
4012
|
+
h("vox-dialog")
|
|
4013
|
+
], W);
|
|
4014
|
+
var cs = Object.defineProperty, ds = Object.getOwnPropertyDescriptor, Gt = (o, e, r, s) => {
|
|
4015
|
+
for (var t = s > 1 ? void 0 : s ? ds(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4016
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4017
|
+
return s && t && cs(e, r, t), t;
|
|
3447
4018
|
};
|
|
3448
|
-
let
|
|
4019
|
+
let Se = class extends p {
|
|
3449
4020
|
constructor() {
|
|
3450
4021
|
super(...arguments), this.summary = "Show details", this.open = !1;
|
|
3451
4022
|
}
|
|
@@ -3472,7 +4043,7 @@ let Oe = class extends h {
|
|
|
3472
4043
|
`;
|
|
3473
4044
|
}
|
|
3474
4045
|
};
|
|
3475
|
-
|
|
4046
|
+
Se.styles = d`
|
|
3476
4047
|
:host {
|
|
3477
4048
|
display: block;
|
|
3478
4049
|
font-family: var(--vox-font-family-base);
|
|
@@ -3524,36 +4095,36 @@ Oe.styles = d`
|
|
|
3524
4095
|
display: none;
|
|
3525
4096
|
}
|
|
3526
4097
|
`;
|
|
3527
|
-
|
|
4098
|
+
Gt([
|
|
3528
4099
|
n()
|
|
3529
|
-
],
|
|
3530
|
-
|
|
4100
|
+
], Se.prototype, "summary", 2);
|
|
4101
|
+
Gt([
|
|
3531
4102
|
n({ type: Boolean, reflect: !0 })
|
|
3532
|
-
],
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
],
|
|
3536
|
-
var
|
|
3537
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3538
|
-
(i =
|
|
3539
|
-
return s && t &&
|
|
4103
|
+
], Se.prototype, "open", 2);
|
|
4104
|
+
Se = Gt([
|
|
4105
|
+
h("vox-disclosure")
|
|
4106
|
+
], Se);
|
|
4107
|
+
var hs = Object.defineProperty, ps = Object.getOwnPropertyDescriptor, Wt = (o, e, r, s) => {
|
|
4108
|
+
for (var t = s > 1 ? void 0 : s ? ps(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4109
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4110
|
+
return s && t && hs(e, r, t), t;
|
|
3540
4111
|
};
|
|
3541
|
-
let
|
|
4112
|
+
let Ve = class extends p {
|
|
3542
4113
|
constructor() {
|
|
3543
|
-
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (
|
|
3544
|
-
this.open && !
|
|
3545
|
-
}, this.handleKeydown = (
|
|
4114
|
+
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (o) => {
|
|
4115
|
+
this.open && !o.composedPath().includes(this) && (this.open = !1);
|
|
4116
|
+
}, this.handleKeydown = (o) => {
|
|
3546
4117
|
var e;
|
|
3547
|
-
if (
|
|
4118
|
+
if (o.key === "Escape" && this.open) {
|
|
3548
4119
|
this.open = !1, (e = this.renderRoot.querySelector(".trigger")) == null || e.focus();
|
|
3549
4120
|
return;
|
|
3550
4121
|
}
|
|
3551
|
-
if ((
|
|
3552
|
-
|
|
3553
|
-
const
|
|
3554
|
-
if (
|
|
3555
|
-
const s = document.activeElement, t =
|
|
3556
|
-
|
|
4122
|
+
if ((o.key === "ArrowDown" || o.key === "ArrowUp") && this.open) {
|
|
4123
|
+
o.preventDefault();
|
|
4124
|
+
const r = [...this.querySelectorAll("a, button")];
|
|
4125
|
+
if (r.length === 0) return;
|
|
4126
|
+
const s = document.activeElement, t = r.indexOf(s), a = o.key === "ArrowDown" ? 1 : -1;
|
|
4127
|
+
r[(Math.max(t, 0) + a + r.length) % r.length].focus();
|
|
3557
4128
|
}
|
|
3558
4129
|
};
|
|
3559
4130
|
}
|
|
@@ -3585,7 +4156,7 @@ let Me = class extends h {
|
|
|
3585
4156
|
`;
|
|
3586
4157
|
}
|
|
3587
4158
|
};
|
|
3588
|
-
|
|
4159
|
+
Ve.styles = d`
|
|
3589
4160
|
:host {
|
|
3590
4161
|
position: relative;
|
|
3591
4162
|
display: inline-block;
|
|
@@ -3684,30 +4255,30 @@ Me.styles = d`
|
|
|
3684
4255
|
border-top: 1px solid var(--vox-color-divider);
|
|
3685
4256
|
}
|
|
3686
4257
|
`;
|
|
3687
|
-
|
|
4258
|
+
Wt([
|
|
3688
4259
|
n()
|
|
3689
|
-
],
|
|
3690
|
-
|
|
4260
|
+
], Ve.prototype, "label", 2);
|
|
4261
|
+
Wt([
|
|
3691
4262
|
n({ type: Boolean, reflect: !0 })
|
|
3692
|
-
],
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
],
|
|
3696
|
-
var
|
|
3697
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3698
|
-
(i =
|
|
3699
|
-
return s && t &&
|
|
4263
|
+
], Ve.prototype, "open", 2);
|
|
4264
|
+
Ve = Wt([
|
|
4265
|
+
h("vox-dropdown")
|
|
4266
|
+
], Ve);
|
|
4267
|
+
var vs = Object.defineProperty, us = Object.getOwnPropertyDescriptor, Ye = (o, e, r, s) => {
|
|
4268
|
+
for (var t = s > 1 ? void 0 : s ? us(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4269
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4270
|
+
return s && t && vs(e, r, t), t;
|
|
3700
4271
|
};
|
|
3701
|
-
let
|
|
4272
|
+
let dt = class extends p {
|
|
3702
4273
|
constructor() {
|
|
3703
4274
|
super(...arguments), this.single = !1;
|
|
3704
4275
|
}
|
|
3705
|
-
handleToggle(
|
|
4276
|
+
handleToggle(o) {
|
|
3706
4277
|
if (!this.single) return;
|
|
3707
|
-
const e =
|
|
4278
|
+
const e = o.target;
|
|
3708
4279
|
e.open && this.querySelectorAll("vox-accordion-item").forEach(
|
|
3709
|
-
(
|
|
3710
|
-
|
|
4280
|
+
(r) => {
|
|
4281
|
+
r !== e && (r.open = !1);
|
|
3711
4282
|
}
|
|
3712
4283
|
);
|
|
3713
4284
|
}
|
|
@@ -3715,7 +4286,7 @@ let st = class extends h {
|
|
|
3715
4286
|
return l`<slot @vox-toggle=${this.handleToggle}></slot>`;
|
|
3716
4287
|
}
|
|
3717
4288
|
};
|
|
3718
|
-
|
|
4289
|
+
dt.styles = d`
|
|
3719
4290
|
:host {
|
|
3720
4291
|
display: block;
|
|
3721
4292
|
border: 1px solid var(--vox-color-divider);
|
|
@@ -3727,13 +4298,13 @@ st.styles = d`
|
|
|
3727
4298
|
border-top: 1px solid var(--vox-color-divider);
|
|
3728
4299
|
}
|
|
3729
4300
|
`;
|
|
3730
|
-
|
|
4301
|
+
Ye([
|
|
3731
4302
|
n({ type: Boolean })
|
|
3732
|
-
],
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
],
|
|
3736
|
-
let
|
|
4303
|
+
], dt.prototype, "single", 2);
|
|
4304
|
+
dt = Ye([
|
|
4305
|
+
h("vox-accordion")
|
|
4306
|
+
], dt);
|
|
4307
|
+
let je = class extends p {
|
|
3737
4308
|
constructor() {
|
|
3738
4309
|
super(...arguments), this.heading = "", this.open = !1;
|
|
3739
4310
|
}
|
|
@@ -3762,7 +4333,7 @@ let Ae = class extends h {
|
|
|
3762
4333
|
`;
|
|
3763
4334
|
}
|
|
3764
4335
|
};
|
|
3765
|
-
|
|
4336
|
+
je.styles = d`
|
|
3766
4337
|
:host {
|
|
3767
4338
|
display: block;
|
|
3768
4339
|
font-family: var(--vox-font-family-base);
|
|
@@ -3824,27 +4395,27 @@ Ae.styles = d`
|
|
|
3824
4395
|
margin-bottom: 0;
|
|
3825
4396
|
}
|
|
3826
4397
|
`;
|
|
3827
|
-
|
|
4398
|
+
Ye([
|
|
3828
4399
|
n()
|
|
3829
|
-
],
|
|
3830
|
-
|
|
4400
|
+
], je.prototype, "heading", 2);
|
|
4401
|
+
Ye([
|
|
3831
4402
|
n({ type: Boolean, reflect: !0 })
|
|
3832
|
-
],
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
],
|
|
3836
|
-
var
|
|
3837
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3838
|
-
(i =
|
|
3839
|
-
return s && t &&
|
|
4403
|
+
], je.prototype, "open", 2);
|
|
4404
|
+
je = Ye([
|
|
4405
|
+
h("vox-accordion-item")
|
|
4406
|
+
], je);
|
|
4407
|
+
var xs = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, Je = (o, e, r, s) => {
|
|
4408
|
+
for (var t = s > 1 ? void 0 : s ? fs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4409
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4410
|
+
return s && t && xs(e, r, t), t;
|
|
3840
4411
|
};
|
|
3841
|
-
const
|
|
4412
|
+
const gs = {
|
|
3842
4413
|
info: "info",
|
|
3843
4414
|
success: "check-circle",
|
|
3844
4415
|
warning: "warning",
|
|
3845
4416
|
danger: "x-circle"
|
|
3846
4417
|
};
|
|
3847
|
-
let
|
|
4418
|
+
let Y = class extends p {
|
|
3848
4419
|
constructor() {
|
|
3849
4420
|
super(...arguments), this.variant = "info", this.heading = "", this.dismissible = !1, this.open = !0;
|
|
3850
4421
|
}
|
|
@@ -3866,7 +4437,7 @@ let U = class extends h {
|
|
|
3866
4437
|
stroke-linejoin="round"
|
|
3867
4438
|
aria-hidden="true"
|
|
3868
4439
|
>
|
|
3869
|
-
${
|
|
4440
|
+
${D[gs[this.variant]]}
|
|
3870
4441
|
</svg>
|
|
3871
4442
|
<div class="body">
|
|
3872
4443
|
${this.heading ? l`<p class="heading">${this.heading}</p>` : x}
|
|
@@ -3883,7 +4454,7 @@ let U = class extends h {
|
|
|
3883
4454
|
`;
|
|
3884
4455
|
}
|
|
3885
4456
|
};
|
|
3886
|
-
|
|
4457
|
+
Y.styles = d`
|
|
3887
4458
|
:host {
|
|
3888
4459
|
display: block;
|
|
3889
4460
|
font-family: var(--vox-font-family-base);
|
|
@@ -4002,27 +4573,27 @@ U.styles = d`
|
|
|
4002
4573
|
margin-bottom: 0;
|
|
4003
4574
|
}
|
|
4004
4575
|
`;
|
|
4005
|
-
|
|
4576
|
+
Je([
|
|
4006
4577
|
n()
|
|
4007
|
-
],
|
|
4008
|
-
|
|
4578
|
+
], Y.prototype, "variant", 2);
|
|
4579
|
+
Je([
|
|
4009
4580
|
n()
|
|
4010
|
-
],
|
|
4011
|
-
|
|
4581
|
+
], Y.prototype, "heading", 2);
|
|
4582
|
+
Je([
|
|
4012
4583
|
n({ type: Boolean })
|
|
4013
|
-
],
|
|
4014
|
-
|
|
4584
|
+
], Y.prototype, "dismissible", 2);
|
|
4585
|
+
Je([
|
|
4015
4586
|
n({ type: Boolean, reflect: !0 })
|
|
4016
|
-
],
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
],
|
|
4020
|
-
var
|
|
4021
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4022
|
-
(i =
|
|
4023
|
-
return s && t &&
|
|
4587
|
+
], Y.prototype, "open", 2);
|
|
4588
|
+
Y = Je([
|
|
4589
|
+
h("vox-alert")
|
|
4590
|
+
], Y);
|
|
4591
|
+
var bs = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, zo = (o, e, r, s) => {
|
|
4592
|
+
for (var t = s > 1 ? void 0 : s ? ys(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4593
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4594
|
+
return s && t && bs(e, r, t), t;
|
|
4024
4595
|
};
|
|
4025
|
-
let
|
|
4596
|
+
let ht = class extends p {
|
|
4026
4597
|
constructor() {
|
|
4027
4598
|
super(...arguments), this.variant = "brand";
|
|
4028
4599
|
}
|
|
@@ -4030,7 +4601,7 @@ let at = class extends h {
|
|
|
4030
4601
|
return l`<span class="badge ${this.variant}"><slot></slot></span>`;
|
|
4031
4602
|
}
|
|
4032
4603
|
};
|
|
4033
|
-
|
|
4604
|
+
ht.styles = d`
|
|
4034
4605
|
:host {
|
|
4035
4606
|
display: inline-block;
|
|
4036
4607
|
}
|
|
@@ -4072,32 +4643,32 @@ at.styles = d`
|
|
|
4072
4643
|
color: var(--vox-color-text-2);
|
|
4073
4644
|
}
|
|
4074
4645
|
`;
|
|
4075
|
-
|
|
4646
|
+
zo([
|
|
4076
4647
|
n()
|
|
4077
|
-
],
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
],
|
|
4081
|
-
var
|
|
4082
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4083
|
-
(i =
|
|
4084
|
-
return s && t &&
|
|
4648
|
+
], ht.prototype, "variant", 2);
|
|
4649
|
+
ht = zo([
|
|
4650
|
+
h("vox-badge")
|
|
4651
|
+
], ht);
|
|
4652
|
+
var ms = Object.defineProperty, ws = Object.getOwnPropertyDescriptor, Yt = (o, e, r, s) => {
|
|
4653
|
+
for (var t = s > 1 ? void 0 : s ? ws(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4654
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4655
|
+
return s && t && ms(e, r, t), t;
|
|
4085
4656
|
};
|
|
4086
|
-
let
|
|
4657
|
+
let ze = class extends p {
|
|
4087
4658
|
constructor() {
|
|
4088
4659
|
super(...arguments), this.date = "";
|
|
4089
4660
|
}
|
|
4090
4661
|
render() {
|
|
4091
|
-
const
|
|
4662
|
+
const o = /* @__PURE__ */ new Date(`${this.date}T00:00:00`), e = !Number.isNaN(o.getTime()), r = e ? o.toLocaleString(this.locale, { month: "short" }) : "—", s = e ? o.getDate() : "–";
|
|
4092
4663
|
return l`
|
|
4093
4664
|
<time class="tile" datetime=${this.date}>
|
|
4094
|
-
<span class="month">${
|
|
4665
|
+
<span class="month">${r}</span>
|
|
4095
4666
|
<span class="day">${s}</span>
|
|
4096
4667
|
</time>
|
|
4097
4668
|
`;
|
|
4098
4669
|
}
|
|
4099
4670
|
};
|
|
4100
|
-
|
|
4671
|
+
ze.styles = d`
|
|
4101
4672
|
:host {
|
|
4102
4673
|
display: inline-block;
|
|
4103
4674
|
font-family: var(--vox-font-family-base);
|
|
@@ -4133,32 +4704,32 @@ Pe.styles = d`
|
|
|
4133
4704
|
color: var(--vox-color-text-1);
|
|
4134
4705
|
}
|
|
4135
4706
|
`;
|
|
4136
|
-
|
|
4707
|
+
Yt([
|
|
4137
4708
|
n()
|
|
4138
|
-
],
|
|
4139
|
-
|
|
4709
|
+
], ze.prototype, "date", 2);
|
|
4710
|
+
Yt([
|
|
4140
4711
|
n()
|
|
4141
|
-
],
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
],
|
|
4145
|
-
var
|
|
4146
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4147
|
-
(i =
|
|
4148
|
-
return s && t &&
|
|
4712
|
+
], ze.prototype, "locale", 2);
|
|
4713
|
+
ze = Yt([
|
|
4714
|
+
h("vox-calendar-tile")
|
|
4715
|
+
], ze);
|
|
4716
|
+
var $s = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Jt = (o, e, r, s) => {
|
|
4717
|
+
for (var t = s > 1 ? void 0 : s ? _s(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4718
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4719
|
+
return s && t && $s(e, r, t), t;
|
|
4149
4720
|
};
|
|
4150
|
-
const
|
|
4721
|
+
const Cs = {
|
|
4151
4722
|
info: "Info",
|
|
4152
4723
|
tip: "Tip",
|
|
4153
4724
|
warning: "Warning",
|
|
4154
4725
|
danger: "Danger"
|
|
4155
|
-
},
|
|
4726
|
+
}, Os = {
|
|
4156
4727
|
info: "info",
|
|
4157
4728
|
tip: "check-circle",
|
|
4158
4729
|
warning: "warning",
|
|
4159
4730
|
danger: "x-circle"
|
|
4160
4731
|
};
|
|
4161
|
-
let
|
|
4732
|
+
let De = class extends p {
|
|
4162
4733
|
constructor() {
|
|
4163
4734
|
super(...arguments), this.variant = "info";
|
|
4164
4735
|
}
|
|
@@ -4175,17 +4746,17 @@ let ke = class extends h {
|
|
|
4175
4746
|
stroke-linejoin="round"
|
|
4176
4747
|
aria-hidden="true"
|
|
4177
4748
|
>
|
|
4178
|
-
${
|
|
4749
|
+
${D[Os[this.variant]]}
|
|
4179
4750
|
</svg>
|
|
4180
4751
|
<div class="content">
|
|
4181
|
-
<p class="heading">${this.heading ??
|
|
4752
|
+
<p class="heading">${this.heading ?? Cs[this.variant]}</p>
|
|
4182
4753
|
<slot></slot>
|
|
4183
4754
|
</div>
|
|
4184
4755
|
</div>
|
|
4185
4756
|
`;
|
|
4186
4757
|
}
|
|
4187
4758
|
};
|
|
4188
|
-
|
|
4759
|
+
De.styles = d`
|
|
4189
4760
|
:host {
|
|
4190
4761
|
display: block;
|
|
4191
4762
|
}
|
|
@@ -4268,38 +4839,38 @@ ke.styles = d`
|
|
|
4268
4839
|
margin-bottom: 0;
|
|
4269
4840
|
}
|
|
4270
4841
|
`;
|
|
4271
|
-
|
|
4842
|
+
Jt([
|
|
4272
4843
|
n()
|
|
4273
|
-
],
|
|
4274
|
-
|
|
4844
|
+
], De.prototype, "variant", 2);
|
|
4845
|
+
Jt([
|
|
4275
4846
|
n()
|
|
4276
|
-
],
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
],
|
|
4280
|
-
var
|
|
4281
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4282
|
-
(i =
|
|
4283
|
-
return s && t &&
|
|
4847
|
+
], De.prototype, "heading", 2);
|
|
4848
|
+
De = Jt([
|
|
4849
|
+
h("vox-callout")
|
|
4850
|
+
], De);
|
|
4851
|
+
var Ms = Object.defineProperty, As = Object.getOwnPropertyDescriptor, _t = (o, e, r, s) => {
|
|
4852
|
+
for (var t = s > 1 ? void 0 : s ? As(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
4853
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
4854
|
+
return s && t && Ms(e, r, t), t;
|
|
4284
4855
|
};
|
|
4285
|
-
let
|
|
4856
|
+
let he = class extends p {
|
|
4286
4857
|
constructor() {
|
|
4287
4858
|
super(...arguments), this.heading = "", this.hasIcon = !1, this.hasBadge = !1, this.hasFooter = !1;
|
|
4288
4859
|
}
|
|
4289
|
-
handleIconSlotChange(
|
|
4290
|
-
const e =
|
|
4860
|
+
handleIconSlotChange(o) {
|
|
4861
|
+
const e = o.target;
|
|
4291
4862
|
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4292
4863
|
}
|
|
4293
|
-
handleBadgeSlotChange(
|
|
4294
|
-
const e =
|
|
4864
|
+
handleBadgeSlotChange(o) {
|
|
4865
|
+
const e = o.target;
|
|
4295
4866
|
this.hasBadge = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4296
4867
|
}
|
|
4297
|
-
handleFooterSlotChange(
|
|
4298
|
-
const e =
|
|
4868
|
+
handleFooterSlotChange(o) {
|
|
4869
|
+
const e = o.target;
|
|
4299
4870
|
this.hasFooter = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4300
4871
|
}
|
|
4301
4872
|
render() {
|
|
4302
|
-
const
|
|
4873
|
+
const o = l`
|
|
4303
4874
|
<div class="badge ${this.hasBadge ? "has-badge" : ""}">
|
|
4304
4875
|
<slot name="badge" @slotchange=${this.handleBadgeSlotChange}></slot>
|
|
4305
4876
|
</div>
|
|
@@ -4312,10 +4883,10 @@ let re = class extends h {
|
|
|
4312
4883
|
<slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
|
|
4313
4884
|
</div>
|
|
4314
4885
|
`;
|
|
4315
|
-
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? x}>${
|
|
4886
|
+
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? x}>${o}</a>` : l`<div class="card">${o}</div>`;
|
|
4316
4887
|
}
|
|
4317
4888
|
};
|
|
4318
|
-
|
|
4889
|
+
he.styles = d`
|
|
4319
4890
|
:host {
|
|
4320
4891
|
display: block;
|
|
4321
4892
|
}
|
|
@@ -4400,59 +4971,59 @@ re.styles = d`
|
|
|
4400
4971
|
display: none;
|
|
4401
4972
|
}
|
|
4402
4973
|
`;
|
|
4403
|
-
|
|
4974
|
+
_t([
|
|
4404
4975
|
n()
|
|
4405
|
-
],
|
|
4406
|
-
|
|
4976
|
+
], he.prototype, "heading", 2);
|
|
4977
|
+
_t([
|
|
4407
4978
|
n()
|
|
4408
|
-
],
|
|
4409
|
-
|
|
4979
|
+
], he.prototype, "href", 2);
|
|
4980
|
+
_t([
|
|
4410
4981
|
n()
|
|
4411
|
-
],
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
],
|
|
4415
|
-
function
|
|
4416
|
-
let
|
|
4417
|
-
for (;
|
|
4418
|
-
return
|
|
4982
|
+
], he.prototype, "target", 2);
|
|
4983
|
+
he = _t([
|
|
4984
|
+
h("vox-card")
|
|
4985
|
+
], he);
|
|
4986
|
+
function Do(o, e) {
|
|
4987
|
+
let r = e;
|
|
4988
|
+
for (; r < o.length && (o[r] === " " || o[r] === " "); ) r++;
|
|
4989
|
+
return r;
|
|
4419
4990
|
}
|
|
4420
|
-
function
|
|
4991
|
+
function te(o, e) {
|
|
4421
4992
|
return {
|
|
4422
|
-
re:
|
|
4423
|
-
type: (
|
|
4993
|
+
re: o,
|
|
4994
|
+
type: (r, s, t) => e.has(r) ? "keyword" : s[Do(s, t)] === "(" ? "function" : "plain"
|
|
4424
4995
|
};
|
|
4425
4996
|
}
|
|
4426
|
-
function
|
|
4997
|
+
function zt(o) {
|
|
4427
4998
|
return {
|
|
4428
|
-
re:
|
|
4429
|
-
type: (e,
|
|
4999
|
+
re: o,
|
|
5000
|
+
type: (e, r, s) => r[Do(r, s)] === ":" ? "property" : "string"
|
|
4430
5001
|
};
|
|
4431
5002
|
}
|
|
4432
|
-
const
|
|
4433
|
-
function
|
|
4434
|
-
const s =
|
|
4435
|
-
s && s.type === e ? s.text +=
|
|
5003
|
+
const Xe = /-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, N = /"(?:\\.|[^"\\])*"/y, oe = /'(?:\\.|[^'\\])*'/y, Ct = /#.*/y, ks = /\/\/.*/y, Ho = /\/\*[\s\S]*?\*\//y;
|
|
5004
|
+
function go(o, e, r) {
|
|
5005
|
+
const s = o[o.length - 1];
|
|
5006
|
+
s && s.type === e ? s.text += r : o.push({ type: e, text: r });
|
|
4436
5007
|
}
|
|
4437
|
-
function
|
|
4438
|
-
const
|
|
5008
|
+
function Ps(o, e) {
|
|
5009
|
+
const r = [];
|
|
4439
5010
|
let s = 0;
|
|
4440
|
-
for (; s <
|
|
5011
|
+
for (; s < o.length; ) {
|
|
4441
5012
|
let t = !1;
|
|
4442
5013
|
for (const a of e) {
|
|
4443
5014
|
a.re.lastIndex = s;
|
|
4444
|
-
const i = a.re.exec(
|
|
5015
|
+
const i = a.re.exec(o);
|
|
4445
5016
|
if (i && i.index === s && i[0].length > 0) {
|
|
4446
|
-
const v = i[0], u = typeof a.type == "function" ? a.type(v,
|
|
4447
|
-
|
|
5017
|
+
const v = i[0], u = typeof a.type == "function" ? a.type(v, o, s + v.length) : a.type;
|
|
5018
|
+
go(r, u, v), s += v.length, t = !0;
|
|
4448
5019
|
break;
|
|
4449
5020
|
}
|
|
4450
5021
|
}
|
|
4451
|
-
t || (
|
|
5022
|
+
t || (go(r, "plain", o[s]), s++);
|
|
4452
5023
|
}
|
|
4453
|
-
return
|
|
5024
|
+
return r;
|
|
4454
5025
|
}
|
|
4455
|
-
const
|
|
5026
|
+
const Es = /* @__PURE__ */ new Set([
|
|
4456
5027
|
"if",
|
|
4457
5028
|
"then",
|
|
4458
5029
|
"elif",
|
|
@@ -4488,14 +5059,14 @@ const $s = /* @__PURE__ */ new Set([
|
|
|
4488
5059
|
"unalias",
|
|
4489
5060
|
"true",
|
|
4490
5061
|
"false"
|
|
4491
|
-
]),
|
|
4492
|
-
{ re:
|
|
5062
|
+
]), ot = [
|
|
5063
|
+
{ re: Ct, type: "comment" },
|
|
4493
5064
|
{ re: /\$\{[^}]*\}|\$[A-Za-z_]\w*|\$[0-9@#?$!*_-]/y, type: "function" },
|
|
4494
|
-
{ re:
|
|
4495
|
-
{ re:
|
|
4496
|
-
{ re:
|
|
4497
|
-
|
|
4498
|
-
],
|
|
5065
|
+
{ re: N, type: "string" },
|
|
5066
|
+
{ re: oe, type: "string" },
|
|
5067
|
+
{ re: Xe, type: "number" },
|
|
5068
|
+
te(/[A-Za-z_][\w-]*/y, Es)
|
|
5069
|
+
], Ls = /* @__PURE__ */ new Set([
|
|
4499
5070
|
"true",
|
|
4500
5071
|
"false",
|
|
4501
5072
|
"yes",
|
|
@@ -4517,19 +5088,19 @@ const $s = /* @__PURE__ */ new Set([
|
|
|
4517
5088
|
"NULL",
|
|
4518
5089
|
"ON",
|
|
4519
5090
|
"OFF"
|
|
4520
|
-
]),
|
|
4521
|
-
{ re:
|
|
4522
|
-
|
|
4523
|
-
|
|
5091
|
+
]), bo = [
|
|
5092
|
+
{ re: Ct, type: "comment" },
|
|
5093
|
+
zt(N),
|
|
5094
|
+
zt(oe),
|
|
4524
5095
|
{ re: /[A-Za-z_][\w .-]*?(?=:(\s|$))/y, type: "property" },
|
|
4525
5096
|
{ re: /[&*!][A-Za-z_][\w:.]*/y, type: "function" },
|
|
4526
|
-
{ re:
|
|
4527
|
-
|
|
4528
|
-
],
|
|
4529
|
-
|
|
4530
|
-
{ re:
|
|
4531
|
-
|
|
4532
|
-
],
|
|
5097
|
+
{ re: Xe, type: "number" },
|
|
5098
|
+
te(/[A-Za-z_][\w-]*/y, Ls)
|
|
5099
|
+
], Ss = [
|
|
5100
|
+
zt(N),
|
|
5101
|
+
{ re: Xe, type: "number" },
|
|
5102
|
+
te(/[A-Za-z_]\w*/y, /* @__PURE__ */ new Set(["true", "false", "null"]))
|
|
5103
|
+
], Vs = /* @__PURE__ */ new Set([
|
|
4533
5104
|
"const",
|
|
4534
5105
|
"let",
|
|
4535
5106
|
"var",
|
|
@@ -4587,32 +5158,32 @@ const $s = /* @__PURE__ */ new Set([
|
|
|
4587
5158
|
"abstract",
|
|
4588
5159
|
"keyof",
|
|
4589
5160
|
"satisfies"
|
|
4590
|
-
]),
|
|
4591
|
-
{ re:
|
|
4592
|
-
{ re:
|
|
4593
|
-
{ re:
|
|
4594
|
-
{ re:
|
|
5161
|
+
]), rt = [
|
|
5162
|
+
{ re: ks, type: "comment" },
|
|
5163
|
+
{ re: Ho, type: "comment" },
|
|
5164
|
+
{ re: N, type: "string" },
|
|
5165
|
+
{ re: oe, type: "string" },
|
|
4595
5166
|
{ re: /`(?:\\.|[^`\\])*`/y, type: "string" },
|
|
4596
5167
|
{ re: /-?\b0[xXbBoO][0-9a-fA-F]+\b|-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, type: "number" },
|
|
4597
|
-
|
|
4598
|
-
],
|
|
4599
|
-
{ re:
|
|
4600
|
-
{ re:
|
|
4601
|
-
{ re:
|
|
5168
|
+
te(/[A-Za-z_$][\w$]*/y, Vs)
|
|
5169
|
+
], js = [
|
|
5170
|
+
{ re: Ho, type: "comment" },
|
|
5171
|
+
{ re: N, type: "string" },
|
|
5172
|
+
{ re: oe, type: "string" },
|
|
4602
5173
|
{ re: /@[\w-]+/y, type: "keyword" },
|
|
4603
5174
|
{ re: /!important/y, type: "keyword" },
|
|
4604
5175
|
{ re: /#[0-9a-fA-F]{3,8}\b/y, type: "number" },
|
|
4605
5176
|
{ re: /-?\b\d+\.?\d*[a-zA-Z%]*\b/y, type: "number" },
|
|
4606
5177
|
{ re: /[a-zA-Z-]+(?=\s*:)/y, type: "property" },
|
|
4607
|
-
|
|
4608
|
-
],
|
|
5178
|
+
te(/[a-zA-Z-]+/y, /* @__PURE__ */ new Set())
|
|
5179
|
+
], yo = [
|
|
4609
5180
|
{ re: /<!--[\s\S]*?-->/y, type: "comment" },
|
|
4610
5181
|
{ re: /<\/?[a-zA-Z][\w:-]*/y, type: "tag" },
|
|
4611
5182
|
{ re: /[a-zA-Z-][\w-]*(?=\s*=)/y, type: "property" },
|
|
4612
|
-
{ re:
|
|
4613
|
-
{ re:
|
|
5183
|
+
{ re: N, type: "string" },
|
|
5184
|
+
{ re: oe, type: "string" },
|
|
4614
5185
|
{ re: /&[\w#]+;/y, type: "keyword" }
|
|
4615
|
-
],
|
|
5186
|
+
], zs = /* @__PURE__ */ new Set([
|
|
4616
5187
|
"def",
|
|
4617
5188
|
"end",
|
|
4618
5189
|
"if",
|
|
@@ -4660,16 +5231,16 @@ const $s = /* @__PURE__ */ new Set([
|
|
|
4660
5231
|
"lambda",
|
|
4661
5232
|
"proc",
|
|
4662
5233
|
"new"
|
|
4663
|
-
]),
|
|
4664
|
-
{ re:
|
|
5234
|
+
]), mo = [
|
|
5235
|
+
{ re: Ct, type: "comment" },
|
|
4665
5236
|
{ re: /:[A-Za-z_]\w*[?!]?/y, type: "string" },
|
|
4666
5237
|
{ re: /@{1,2}[A-Za-z_]\w*|\$[A-Za-z_]\w*/y, type: "function" },
|
|
4667
|
-
{ re:
|
|
4668
|
-
{ re:
|
|
4669
|
-
{ re:
|
|
5238
|
+
{ re: N, type: "string" },
|
|
5239
|
+
{ re: oe, type: "string" },
|
|
5240
|
+
{ re: Xe, type: "number" },
|
|
4670
5241
|
{ re: /[A-Z]\w*/y, type: "property" },
|
|
4671
|
-
|
|
4672
|
-
],
|
|
5242
|
+
te(/[a-z_]\w*[?!]?/y, zs)
|
|
5243
|
+
], Ds = /* @__PURE__ */ new Set([
|
|
4673
5244
|
"class",
|
|
4674
5245
|
"define",
|
|
4675
5246
|
"node",
|
|
@@ -4725,35 +5296,35 @@ const $s = /* @__PURE__ */ new Set([
|
|
|
4725
5296
|
"Callable",
|
|
4726
5297
|
"Data",
|
|
4727
5298
|
"Scalar"
|
|
4728
|
-
]),
|
|
4729
|
-
{ re:
|
|
4730
|
-
{ re:
|
|
4731
|
-
{ re:
|
|
5299
|
+
]), wo = [
|
|
5300
|
+
{ re: Ct, type: "comment" },
|
|
5301
|
+
{ re: N, type: "string" },
|
|
5302
|
+
{ re: oe, type: "string" },
|
|
4732
5303
|
{ re: /\$[\w:]+/y, type: "function" },
|
|
4733
5304
|
{ re: /[a-zA-Z_][\w:]*(?=\s*\{)/y, type: "tag" },
|
|
4734
5305
|
{ re: /[a-z_]\w*(?=\s*=>)/y, type: "property" },
|
|
4735
|
-
{ re:
|
|
4736
|
-
|
|
4737
|
-
],
|
|
4738
|
-
bash:
|
|
4739
|
-
sh:
|
|
4740
|
-
shell:
|
|
4741
|
-
zsh:
|
|
4742
|
-
yaml:
|
|
4743
|
-
yml:
|
|
4744
|
-
json:
|
|
4745
|
-
javascript:
|
|
4746
|
-
js:
|
|
4747
|
-
typescript:
|
|
4748
|
-
ts:
|
|
4749
|
-
css:
|
|
4750
|
-
html:
|
|
4751
|
-
xml:
|
|
4752
|
-
ruby:
|
|
4753
|
-
rb:
|
|
4754
|
-
puppet:
|
|
4755
|
-
pp:
|
|
4756
|
-
},
|
|
5306
|
+
{ re: Xe, type: "number" },
|
|
5307
|
+
te(/[A-Za-z_][\w:]*/y, Ds)
|
|
5308
|
+
], Hs = {
|
|
5309
|
+
bash: ot,
|
|
5310
|
+
sh: ot,
|
|
5311
|
+
shell: ot,
|
|
5312
|
+
zsh: ot,
|
|
5313
|
+
yaml: bo,
|
|
5314
|
+
yml: bo,
|
|
5315
|
+
json: Ss,
|
|
5316
|
+
javascript: rt,
|
|
5317
|
+
js: rt,
|
|
5318
|
+
typescript: rt,
|
|
5319
|
+
ts: rt,
|
|
5320
|
+
css: js,
|
|
5321
|
+
html: yo,
|
|
5322
|
+
xml: yo,
|
|
5323
|
+
ruby: mo,
|
|
5324
|
+
rb: mo,
|
|
5325
|
+
puppet: wo,
|
|
5326
|
+
pp: wo
|
|
5327
|
+
}, Ts = {
|
|
4757
5328
|
bash: "Bash",
|
|
4758
5329
|
sh: "Shell",
|
|
4759
5330
|
shell: "Shell",
|
|
@@ -4775,68 +5346,68 @@ const $s = /* @__PURE__ */ new Set([
|
|
|
4775
5346
|
plaintext: "Plain Text",
|
|
4776
5347
|
text: "Plain Text"
|
|
4777
5348
|
};
|
|
4778
|
-
function
|
|
4779
|
-
const
|
|
4780
|
-
return
|
|
5349
|
+
function Bs(o, e) {
|
|
5350
|
+
const r = Hs[e];
|
|
5351
|
+
return r ? Ps(o, r) : [{ type: "plain", text: o }];
|
|
4781
5352
|
}
|
|
4782
|
-
var
|
|
4783
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4784
|
-
(i =
|
|
4785
|
-
return s && t &&
|
|
5353
|
+
var Ns = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, S = (o, e, r, s) => {
|
|
5354
|
+
for (var t = s > 1 ? void 0 : s ? Rs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
5355
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
5356
|
+
return s && t && Ns(e, r, t), t;
|
|
4786
5357
|
};
|
|
4787
|
-
function
|
|
4788
|
-
const e =
|
|
5358
|
+
function Is(o) {
|
|
5359
|
+
const e = o.split(`
|
|
4789
5360
|
`);
|
|
4790
5361
|
for (; e.length && e[0].trim() === ""; ) e.shift();
|
|
4791
5362
|
for (; e.length && e[e.length - 1].trim() === ""; ) e.pop();
|
|
4792
|
-
const
|
|
5363
|
+
const r = e.filter((t) => t.trim() !== "").map((t) => {
|
|
4793
5364
|
var a;
|
|
4794
5365
|
return ((a = t.match(/^[ \t]*/)) == null ? void 0 : a[0].length) ?? 0;
|
|
4795
|
-
}), s =
|
|
5366
|
+
}), s = r.length ? Math.min(...r) : 0;
|
|
4796
5367
|
return e.map((t) => t.slice(s)).join(`
|
|
4797
5368
|
`);
|
|
4798
5369
|
}
|
|
4799
|
-
function
|
|
5370
|
+
function qs(o) {
|
|
4800
5371
|
const e = [[]];
|
|
4801
|
-
for (const
|
|
4802
|
-
|
|
5372
|
+
for (const r of o)
|
|
5373
|
+
r.text.split(`
|
|
4803
5374
|
`).forEach((s, t) => {
|
|
4804
|
-
t > 0 && e.push([]), s && e[e.length - 1].push({ type:
|
|
5375
|
+
t > 0 && e.push([]), s && e[e.length - 1].push({ type: r.type, text: s });
|
|
4805
5376
|
});
|
|
4806
5377
|
return e;
|
|
4807
5378
|
}
|
|
4808
|
-
let
|
|
5379
|
+
let O = class extends p {
|
|
4809
5380
|
constructor() {
|
|
4810
5381
|
super(...arguments), this.language = "", this.filename = "", this.lineNumbers = !1, this.noCopy = !1, this.noHeader = !1, this.noBorder = !1, this._code = "", this._copied = !1;
|
|
4811
5382
|
}
|
|
4812
5383
|
disconnectedCallback() {
|
|
4813
5384
|
super.disconnectedCallback(), clearTimeout(this._copyResetTimer);
|
|
4814
5385
|
}
|
|
4815
|
-
_handleSlotChange(
|
|
4816
|
-
const
|
|
4817
|
-
this._code =
|
|
5386
|
+
_handleSlotChange(o) {
|
|
5387
|
+
const r = o.target.assignedNodes({ flatten: !0 }).map((s) => s.textContent ?? "").join("");
|
|
5388
|
+
this._code = Is(r);
|
|
4818
5389
|
}
|
|
4819
5390
|
async _copy() {
|
|
4820
|
-
var
|
|
5391
|
+
var o;
|
|
4821
5392
|
try {
|
|
4822
5393
|
await navigator.clipboard.writeText(this._code);
|
|
4823
5394
|
} catch {
|
|
4824
5395
|
const e = document.createElement("textarea");
|
|
4825
|
-
e.value = this._code, e.style.position = "fixed", e.style.opacity = "0", (
|
|
5396
|
+
e.value = this._code, e.style.position = "fixed", e.style.opacity = "0", (o = this.shadowRoot) == null || o.appendChild(e), e.select(), document.execCommand("copy"), e.remove();
|
|
4826
5397
|
}
|
|
4827
5398
|
this._copied = !0, clearTimeout(this._copyResetTimer), this._copyResetTimer = setTimeout(() => {
|
|
4828
5399
|
this._copied = !1;
|
|
4829
5400
|
}, 1500);
|
|
4830
5401
|
}
|
|
4831
5402
|
render() {
|
|
4832
|
-
const
|
|
5403
|
+
const o = Ts[this.language] ?? this.language, e = qs(Bs(this._code, this.language));
|
|
4833
5404
|
return l`
|
|
4834
5405
|
<div class="block">
|
|
4835
5406
|
${this.noHeader ? x : l`
|
|
4836
5407
|
<div class="header">
|
|
4837
5408
|
<span class="meta">
|
|
4838
5409
|
${this.filename ? l`<span class="filename">${this.filename}</span>` : x}
|
|
4839
|
-
${
|
|
5410
|
+
${o ? l`<span class="lang">${o}</span>` : x}
|
|
4840
5411
|
</span>
|
|
4841
5412
|
${this.noCopy ? x : l`
|
|
4842
5413
|
<button
|
|
@@ -4846,14 +5417,14 @@ let $ = class extends h {
|
|
|
4846
5417
|
aria-label=${this._copied ? "Copied" : "Copy code"}
|
|
4847
5418
|
>
|
|
4848
5419
|
<svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4849
|
-
${
|
|
5420
|
+
${D[this._copied ? "check" : "copy"]}
|
|
4850
5421
|
</svg>
|
|
4851
5422
|
</button>
|
|
4852
5423
|
`}
|
|
4853
5424
|
</div>
|
|
4854
5425
|
`}
|
|
4855
5426
|
<pre tabindex="0"><code>${e.map(
|
|
4856
|
-
(
|
|
5427
|
+
(r) => l`<span class="line">${r.map(
|
|
4857
5428
|
(s) => s.type === "plain" ? s.text : l`<span class="tok-${s.type}">${s.text}</span>`
|
|
4858
5429
|
)}</span>`
|
|
4859
5430
|
)}</code></pre>
|
|
@@ -4863,7 +5434,7 @@ let $ = class extends h {
|
|
|
4863
5434
|
`;
|
|
4864
5435
|
}
|
|
4865
5436
|
};
|
|
4866
|
-
|
|
5437
|
+
O.styles = d`
|
|
4867
5438
|
:host {
|
|
4868
5439
|
display: block;
|
|
4869
5440
|
font-family: var(--vox-font-family-base);
|
|
@@ -5024,48 +5595,48 @@ $.styles = d`
|
|
|
5024
5595
|
white-space: nowrap;
|
|
5025
5596
|
}
|
|
5026
5597
|
`;
|
|
5027
|
-
|
|
5598
|
+
S([
|
|
5028
5599
|
n()
|
|
5029
|
-
],
|
|
5030
|
-
|
|
5600
|
+
], O.prototype, "language", 2);
|
|
5601
|
+
S([
|
|
5031
5602
|
n()
|
|
5032
|
-
],
|
|
5033
|
-
|
|
5603
|
+
], O.prototype, "filename", 2);
|
|
5604
|
+
S([
|
|
5034
5605
|
n({ type: Boolean, attribute: "line-numbers", reflect: !0 })
|
|
5035
|
-
],
|
|
5036
|
-
|
|
5606
|
+
], O.prototype, "lineNumbers", 2);
|
|
5607
|
+
S([
|
|
5037
5608
|
n({ type: Boolean, attribute: "no-copy" })
|
|
5038
|
-
],
|
|
5039
|
-
|
|
5609
|
+
], O.prototype, "noCopy", 2);
|
|
5610
|
+
S([
|
|
5040
5611
|
n({ type: Boolean, attribute: "no-header" })
|
|
5041
|
-
],
|
|
5042
|
-
|
|
5612
|
+
], O.prototype, "noHeader", 2);
|
|
5613
|
+
S([
|
|
5043
5614
|
n({ type: Boolean, attribute: "no-border", reflect: !0 })
|
|
5044
|
-
],
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
],
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
],
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
],
|
|
5054
|
-
var
|
|
5055
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5056
|
-
(i =
|
|
5057
|
-
return s && t &&
|
|
5615
|
+
], O.prototype, "noBorder", 2);
|
|
5616
|
+
S([
|
|
5617
|
+
k()
|
|
5618
|
+
], O.prototype, "_code", 2);
|
|
5619
|
+
S([
|
|
5620
|
+
k()
|
|
5621
|
+
], O.prototype, "_copied", 2);
|
|
5622
|
+
O = S([
|
|
5623
|
+
h("vox-code-block")
|
|
5624
|
+
], O);
|
|
5625
|
+
var Us = Object.defineProperty, Zs = Object.getOwnPropertyDescriptor, To = (o, e, r, s) => {
|
|
5626
|
+
for (var t = s > 1 ? void 0 : s ? Zs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
5627
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
5628
|
+
return s && t && Us(e, r, t), t;
|
|
5058
5629
|
};
|
|
5059
|
-
let
|
|
5630
|
+
let pt = class extends p {
|
|
5060
5631
|
constructor() {
|
|
5061
5632
|
super(...arguments), this.heading = "", this.hasBody = !1, this.hasActions = !1;
|
|
5062
5633
|
}
|
|
5063
|
-
handleBodySlotChange(
|
|
5064
|
-
const e =
|
|
5634
|
+
handleBodySlotChange(o) {
|
|
5635
|
+
const e = o.target;
|
|
5065
5636
|
this.hasBody = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5066
5637
|
}
|
|
5067
|
-
handleActionsSlotChange(
|
|
5068
|
-
const e =
|
|
5638
|
+
handleActionsSlotChange(o) {
|
|
5639
|
+
const e = o.target;
|
|
5069
5640
|
this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5070
5641
|
}
|
|
5071
5642
|
render() {
|
|
@@ -5082,7 +5653,7 @@ let it = class extends h {
|
|
|
5082
5653
|
`;
|
|
5083
5654
|
}
|
|
5084
5655
|
};
|
|
5085
|
-
|
|
5656
|
+
pt.styles = d`
|
|
5086
5657
|
:host {
|
|
5087
5658
|
display: block;
|
|
5088
5659
|
font-family: var(--vox-font-family-base);
|
|
@@ -5137,18 +5708,18 @@ it.styles = d`
|
|
|
5137
5708
|
display: none;
|
|
5138
5709
|
}
|
|
5139
5710
|
`;
|
|
5140
|
-
|
|
5711
|
+
To([
|
|
5141
5712
|
n()
|
|
5142
|
-
],
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
],
|
|
5146
|
-
var
|
|
5147
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5148
|
-
(i =
|
|
5149
|
-
return s && t &&
|
|
5713
|
+
], pt.prototype, "heading", 2);
|
|
5714
|
+
pt = To([
|
|
5715
|
+
h("vox-cta-band")
|
|
5716
|
+
], pt);
|
|
5717
|
+
var Fs = Object.defineProperty, Ks = Object.getOwnPropertyDescriptor, Bo = (o, e, r, s) => {
|
|
5718
|
+
for (var t = s > 1 ? void 0 : s ? Ks(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
5719
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
5720
|
+
return s && t && Fs(e, r, t), t;
|
|
5150
5721
|
};
|
|
5151
|
-
let
|
|
5722
|
+
let vt = class extends p {
|
|
5152
5723
|
constructor() {
|
|
5153
5724
|
super(...arguments), this.heading = "";
|
|
5154
5725
|
}
|
|
@@ -5163,7 +5734,7 @@ let nt = class extends h {
|
|
|
5163
5734
|
`;
|
|
5164
5735
|
}
|
|
5165
5736
|
};
|
|
5166
|
-
|
|
5737
|
+
vt.styles = d`
|
|
5167
5738
|
:host {
|
|
5168
5739
|
display: block;
|
|
5169
5740
|
font-family: var(--vox-font-family-base);
|
|
@@ -5207,18 +5778,18 @@ nt.styles = d`
|
|
|
5207
5778
|
margin-top: var(--vox-space-4);
|
|
5208
5779
|
}
|
|
5209
5780
|
`;
|
|
5210
|
-
|
|
5781
|
+
Bo([
|
|
5211
5782
|
n()
|
|
5212
|
-
],
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
],
|
|
5216
|
-
var
|
|
5217
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5218
|
-
(i =
|
|
5219
|
-
return s && t &&
|
|
5783
|
+
], vt.prototype, "heading", 2);
|
|
5784
|
+
vt = Bo([
|
|
5785
|
+
h("vox-empty-state")
|
|
5786
|
+
], vt);
|
|
5787
|
+
var Gs = Object.defineProperty, Ws = Object.getOwnPropertyDescriptor, Xt = (o, e, r, s) => {
|
|
5788
|
+
for (var t = s > 1 ? void 0 : s ? Ws(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
5789
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
5790
|
+
return s && t && Gs(e, r, t), t;
|
|
5220
5791
|
};
|
|
5221
|
-
let
|
|
5792
|
+
let Dt = class extends p {
|
|
5222
5793
|
render() {
|
|
5223
5794
|
return l`
|
|
5224
5795
|
<footer>
|
|
@@ -5230,7 +5801,7 @@ let kt = class extends h {
|
|
|
5230
5801
|
`;
|
|
5231
5802
|
}
|
|
5232
5803
|
};
|
|
5233
|
-
|
|
5804
|
+
Dt.styles = d`
|
|
5234
5805
|
:host {
|
|
5235
5806
|
display: block;
|
|
5236
5807
|
font-family: var(--vox-font-family-base);
|
|
@@ -5258,10 +5829,10 @@ kt.styles = d`
|
|
|
5258
5829
|
color: var(--vox-color-text-3);
|
|
5259
5830
|
}
|
|
5260
5831
|
`;
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
],
|
|
5264
|
-
let
|
|
5832
|
+
Dt = Xt([
|
|
5833
|
+
h("vox-footer")
|
|
5834
|
+
], Dt);
|
|
5835
|
+
let ut = class extends p {
|
|
5265
5836
|
constructor() {
|
|
5266
5837
|
super(...arguments), this.heading = "";
|
|
5267
5838
|
}
|
|
@@ -5272,7 +5843,7 @@ let lt = class extends h {
|
|
|
5272
5843
|
`;
|
|
5273
5844
|
}
|
|
5274
5845
|
};
|
|
5275
|
-
|
|
5846
|
+
ut.styles = d`
|
|
5276
5847
|
:host {
|
|
5277
5848
|
display: block;
|
|
5278
5849
|
font-family: var(--vox-font-family-base);
|
|
@@ -5304,18 +5875,18 @@ lt.styles = d`
|
|
|
5304
5875
|
text-decoration: underline;
|
|
5305
5876
|
}
|
|
5306
5877
|
`;
|
|
5307
|
-
|
|
5878
|
+
Xt([
|
|
5308
5879
|
n()
|
|
5309
|
-
],
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
],
|
|
5313
|
-
var
|
|
5314
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5315
|
-
(i =
|
|
5316
|
-
return s && t &&
|
|
5880
|
+
], ut.prototype, "heading", 2);
|
|
5881
|
+
ut = Xt([
|
|
5882
|
+
h("vox-footer-column")
|
|
5883
|
+
], ut);
|
|
5884
|
+
var Ys = Object.defineProperty, Js = Object.getOwnPropertyDescriptor, Ot = (o, e, r, s) => {
|
|
5885
|
+
for (var t = s > 1 ? void 0 : s ? Js(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
5886
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
5887
|
+
return s && t && Ys(e, r, t), t;
|
|
5317
5888
|
};
|
|
5318
|
-
let
|
|
5889
|
+
let pe = class extends p {
|
|
5319
5890
|
constructor() {
|
|
5320
5891
|
super(...arguments), this.cols = 0, this.min = "240px", this.gap = "md";
|
|
5321
5892
|
}
|
|
@@ -5326,7 +5897,7 @@ let se = class extends h {
|
|
|
5326
5897
|
return l`<slot></slot>`;
|
|
5327
5898
|
}
|
|
5328
5899
|
};
|
|
5329
|
-
|
|
5900
|
+
pe.styles = d`
|
|
5330
5901
|
:host {
|
|
5331
5902
|
display: grid;
|
|
5332
5903
|
}
|
|
@@ -5343,29 +5914,29 @@ se.styles = d`
|
|
|
5343
5914
|
gap: var(--vox-space-6);
|
|
5344
5915
|
}
|
|
5345
5916
|
`;
|
|
5346
|
-
|
|
5917
|
+
Ot([
|
|
5347
5918
|
n({ type: Number })
|
|
5348
|
-
],
|
|
5349
|
-
|
|
5919
|
+
], pe.prototype, "cols", 2);
|
|
5920
|
+
Ot([
|
|
5350
5921
|
n()
|
|
5351
|
-
],
|
|
5352
|
-
|
|
5922
|
+
], pe.prototype, "min", 2);
|
|
5923
|
+
Ot([
|
|
5353
5924
|
n({ reflect: !0 })
|
|
5354
|
-
],
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
],
|
|
5358
|
-
var
|
|
5359
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5360
|
-
(i =
|
|
5361
|
-
return s && t &&
|
|
5925
|
+
], pe.prototype, "gap", 2);
|
|
5926
|
+
pe = Ot([
|
|
5927
|
+
h("vox-grid")
|
|
5928
|
+
], pe);
|
|
5929
|
+
var Xs = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, Qt = (o, e, r, s) => {
|
|
5930
|
+
for (var t = s > 1 ? void 0 : s ? Qs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
5931
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
5932
|
+
return s && t && Xs(e, r, t), t;
|
|
5362
5933
|
};
|
|
5363
|
-
let
|
|
5934
|
+
let He = class extends p {
|
|
5364
5935
|
constructor() {
|
|
5365
5936
|
super(...arguments), this.eyebrow = "", this.heading = "", this.hasActions = !1;
|
|
5366
5937
|
}
|
|
5367
|
-
handleActionsSlotChange(
|
|
5368
|
-
const e =
|
|
5938
|
+
handleActionsSlotChange(o) {
|
|
5939
|
+
const e = o.target;
|
|
5369
5940
|
this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5370
5941
|
}
|
|
5371
5942
|
render() {
|
|
@@ -5381,7 +5952,7 @@ let Le = class extends h {
|
|
|
5381
5952
|
`;
|
|
5382
5953
|
}
|
|
5383
5954
|
};
|
|
5384
|
-
|
|
5955
|
+
He.styles = d`
|
|
5385
5956
|
:host {
|
|
5386
5957
|
display: block;
|
|
5387
5958
|
font-family: var(--vox-font-family-base);
|
|
@@ -5438,41 +6009,41 @@ Le.styles = d`
|
|
|
5438
6009
|
display: none;
|
|
5439
6010
|
}
|
|
5440
6011
|
`;
|
|
5441
|
-
|
|
6012
|
+
Qt([
|
|
5442
6013
|
n()
|
|
5443
|
-
],
|
|
5444
|
-
|
|
6014
|
+
], He.prototype, "eyebrow", 2);
|
|
6015
|
+
Qt([
|
|
5445
6016
|
n()
|
|
5446
|
-
],
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
],
|
|
5450
|
-
var
|
|
5451
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5452
|
-
(i =
|
|
5453
|
-
return s && t &&
|
|
6017
|
+
], He.prototype, "heading", 2);
|
|
6018
|
+
He = Qt([
|
|
6019
|
+
h("vox-hero")
|
|
6020
|
+
], He);
|
|
6021
|
+
var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Mt = (o, e, r, s) => {
|
|
6022
|
+
for (var t = s > 1 ? void 0 : s ? ta(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6023
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6024
|
+
return s && t && ea(e, r, t), t;
|
|
5454
6025
|
};
|
|
5455
|
-
let
|
|
6026
|
+
let Ht = class extends p {
|
|
5456
6027
|
render() {
|
|
5457
6028
|
return l`<slot></slot>`;
|
|
5458
6029
|
}
|
|
5459
6030
|
};
|
|
5460
|
-
|
|
6031
|
+
Ht.styles = d`
|
|
5461
6032
|
:host {
|
|
5462
6033
|
display: grid;
|
|
5463
6034
|
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
|
|
5464
6035
|
gap: var(--vox-space-4);
|
|
5465
6036
|
}
|
|
5466
6037
|
`;
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
],
|
|
5470
|
-
let
|
|
6038
|
+
Ht = Mt([
|
|
6039
|
+
h("vox-link-hub")
|
|
6040
|
+
], Ht);
|
|
6041
|
+
let Te = class extends p {
|
|
5471
6042
|
constructor() {
|
|
5472
6043
|
super(...arguments), this.href = "#", this.heading = "", this.hasIcon = !1;
|
|
5473
6044
|
}
|
|
5474
|
-
handleIconSlotChange(
|
|
5475
|
-
const e =
|
|
6045
|
+
handleIconSlotChange(o) {
|
|
6046
|
+
const e = o.target;
|
|
5476
6047
|
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5477
6048
|
}
|
|
5478
6049
|
render() {
|
|
@@ -5493,7 +6064,7 @@ let Ee = class extends h {
|
|
|
5493
6064
|
`;
|
|
5494
6065
|
}
|
|
5495
6066
|
};
|
|
5496
|
-
|
|
6067
|
+
Te.styles = d`
|
|
5497
6068
|
:host {
|
|
5498
6069
|
display: block;
|
|
5499
6070
|
font-family: var(--vox-font-family-base);
|
|
@@ -5554,21 +6125,21 @@ Ee.styles = d`
|
|
|
5554
6125
|
color: var(--vox-color-text-2);
|
|
5555
6126
|
}
|
|
5556
6127
|
`;
|
|
5557
|
-
|
|
6128
|
+
Mt([
|
|
5558
6129
|
n()
|
|
5559
|
-
],
|
|
5560
|
-
|
|
6130
|
+
], Te.prototype, "href", 2);
|
|
6131
|
+
Mt([
|
|
5561
6132
|
n()
|
|
5562
|
-
],
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
],
|
|
5566
|
-
var
|
|
5567
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5568
|
-
(i =
|
|
5569
|
-
return s && t &&
|
|
6133
|
+
], Te.prototype, "heading", 2);
|
|
6134
|
+
Te = Mt([
|
|
6135
|
+
h("vox-link-hub-item")
|
|
6136
|
+
], Te);
|
|
6137
|
+
var oa = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, eo = (o, e, r, s) => {
|
|
6138
|
+
for (var t = s > 1 ? void 0 : s ? ra(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6139
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6140
|
+
return s && t && oa(e, r, t), t;
|
|
5570
6141
|
};
|
|
5571
|
-
let
|
|
6142
|
+
let Be = class extends p {
|
|
5572
6143
|
constructor() {
|
|
5573
6144
|
super(...arguments), this.size = "md", this.label = "Loading";
|
|
5574
6145
|
}
|
|
@@ -5581,7 +6152,7 @@ let Se = class extends h {
|
|
|
5581
6152
|
`;
|
|
5582
6153
|
}
|
|
5583
6154
|
};
|
|
5584
|
-
|
|
6155
|
+
Be.styles = d`
|
|
5585
6156
|
:host {
|
|
5586
6157
|
display: inline-block;
|
|
5587
6158
|
}
|
|
@@ -5634,21 +6205,21 @@ Se.styles = d`
|
|
|
5634
6205
|
white-space: nowrap;
|
|
5635
6206
|
}
|
|
5636
6207
|
`;
|
|
5637
|
-
|
|
6208
|
+
eo([
|
|
5638
6209
|
n({ reflect: !0 })
|
|
5639
|
-
],
|
|
5640
|
-
|
|
6210
|
+
], Be.prototype, "size", 2);
|
|
6211
|
+
eo([
|
|
5641
6212
|
n()
|
|
5642
|
-
],
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
],
|
|
5646
|
-
var
|
|
5647
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5648
|
-
(i =
|
|
5649
|
-
return s && t &&
|
|
6213
|
+
], Be.prototype, "label", 2);
|
|
6214
|
+
Be = eo([
|
|
6215
|
+
h("vox-loader")
|
|
6216
|
+
], Be);
|
|
6217
|
+
var sa = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, No = (o, e, r, s) => {
|
|
6218
|
+
for (var t = s > 1 ? void 0 : s ? aa(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6219
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6220
|
+
return s && t && sa(e, r, t), t;
|
|
5650
6221
|
};
|
|
5651
|
-
let
|
|
6222
|
+
let xt = class extends p {
|
|
5652
6223
|
constructor() {
|
|
5653
6224
|
super(...arguments), this.label = "Pagination";
|
|
5654
6225
|
}
|
|
@@ -5660,7 +6231,7 @@ let ct = class extends h {
|
|
|
5660
6231
|
`;
|
|
5661
6232
|
}
|
|
5662
6233
|
};
|
|
5663
|
-
|
|
6234
|
+
xt.styles = d`
|
|
5664
6235
|
:host {
|
|
5665
6236
|
display: block;
|
|
5666
6237
|
font-family: var(--vox-font-family-base);
|
|
@@ -5700,18 +6271,18 @@ ct.styles = d`
|
|
|
5700
6271
|
font-weight: 600;
|
|
5701
6272
|
}
|
|
5702
6273
|
`;
|
|
5703
|
-
|
|
6274
|
+
No([
|
|
5704
6275
|
n()
|
|
5705
|
-
],
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
],
|
|
5709
|
-
var
|
|
5710
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5711
|
-
(i =
|
|
5712
|
-
return s && t &&
|
|
6276
|
+
], xt.prototype, "label", 2);
|
|
6277
|
+
xt = No([
|
|
6278
|
+
h("vox-pagination")
|
|
6279
|
+
], xt);
|
|
6280
|
+
var ia = Object.defineProperty, na = Object.getOwnPropertyDescriptor, to = (o, e, r, s) => {
|
|
6281
|
+
for (var t = s > 1 ? void 0 : s ? na(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6282
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6283
|
+
return s && t && ia(e, r, t), t;
|
|
5713
6284
|
};
|
|
5714
|
-
let
|
|
6285
|
+
let Ne = class extends p {
|
|
5715
6286
|
constructor() {
|
|
5716
6287
|
super(...arguments), this.attribution = "", this.detail = "";
|
|
5717
6288
|
}
|
|
@@ -5729,7 +6300,7 @@ let je = class extends h {
|
|
|
5729
6300
|
`;
|
|
5730
6301
|
}
|
|
5731
6302
|
};
|
|
5732
|
-
|
|
6303
|
+
Ne.styles = d`
|
|
5733
6304
|
:host {
|
|
5734
6305
|
display: block;
|
|
5735
6306
|
font-family: var(--vox-font-family-base);
|
|
@@ -5771,26 +6342,26 @@ je.styles = d`
|
|
|
5771
6342
|
color: var(--vox-color-text-2);
|
|
5772
6343
|
}
|
|
5773
6344
|
`;
|
|
5774
|
-
|
|
6345
|
+
to([
|
|
5775
6346
|
n()
|
|
5776
|
-
],
|
|
5777
|
-
|
|
6347
|
+
], Ne.prototype, "attribution", 2);
|
|
6348
|
+
to([
|
|
5778
6349
|
n()
|
|
5779
|
-
],
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
],
|
|
5783
|
-
var
|
|
5784
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5785
|
-
(i =
|
|
5786
|
-
return s && t &&
|
|
6350
|
+
], Ne.prototype, "detail", 2);
|
|
6351
|
+
Ne = to([
|
|
6352
|
+
h("vox-quote")
|
|
6353
|
+
], Ne);
|
|
6354
|
+
var la = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, re = (o, e, r, s) => {
|
|
6355
|
+
for (var t = s > 1 ? void 0 : s ? ca(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6356
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6357
|
+
return s && t && la(e, r, t), t;
|
|
5787
6358
|
};
|
|
5788
|
-
let
|
|
6359
|
+
let ft = class extends p {
|
|
5789
6360
|
constructor() {
|
|
5790
6361
|
super(...arguments), this.heading = "", this.hasDescription = !1;
|
|
5791
6362
|
}
|
|
5792
|
-
handleDescriptionSlotChange(
|
|
5793
|
-
const e =
|
|
6363
|
+
handleDescriptionSlotChange(o) {
|
|
6364
|
+
const e = o.target;
|
|
5794
6365
|
this.hasDescription = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5795
6366
|
}
|
|
5796
6367
|
render() {
|
|
@@ -5808,7 +6379,7 @@ let dt = class extends h {
|
|
|
5808
6379
|
`;
|
|
5809
6380
|
}
|
|
5810
6381
|
};
|
|
5811
|
-
|
|
6382
|
+
ft.styles = d`
|
|
5812
6383
|
:host {
|
|
5813
6384
|
display: block;
|
|
5814
6385
|
font-family: var(--vox-font-family-base);
|
|
@@ -5840,22 +6411,22 @@ dt.styles = d`
|
|
|
5840
6411
|
margin-top: var(--vox-space-6);
|
|
5841
6412
|
}
|
|
5842
6413
|
`;
|
|
5843
|
-
|
|
6414
|
+
re([
|
|
5844
6415
|
n()
|
|
5845
|
-
],
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
],
|
|
5849
|
-
let
|
|
6416
|
+
], ft.prototype, "heading", 2);
|
|
6417
|
+
ft = re([
|
|
6418
|
+
h("vox-sponsor-tier")
|
|
6419
|
+
], ft);
|
|
6420
|
+
let J = class extends p {
|
|
5850
6421
|
constructor() {
|
|
5851
6422
|
super(...arguments), this.name = "", this.hasBody = !1;
|
|
5852
6423
|
}
|
|
5853
|
-
handleBodySlotChange(
|
|
5854
|
-
const e =
|
|
6424
|
+
handleBodySlotChange(o) {
|
|
6425
|
+
const e = o.target;
|
|
5855
6426
|
this.hasBody = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5856
6427
|
}
|
|
5857
6428
|
render() {
|
|
5858
|
-
const
|
|
6429
|
+
const o = l`
|
|
5859
6430
|
<div class="logo ${this.logo ? "has-logo" : ""}">
|
|
5860
6431
|
${this.logo ? l`<img src=${this.logo} alt=${this.name} />` : x}
|
|
5861
6432
|
</div>
|
|
@@ -5868,11 +6439,11 @@ let I = class extends h {
|
|
|
5868
6439
|
class="sponsor"
|
|
5869
6440
|
href=${this.href}
|
|
5870
6441
|
target=${this.target ?? x}
|
|
5871
|
-
>${
|
|
5872
|
-
>` : l`<div class="sponsor">${
|
|
6442
|
+
>${o}</a
|
|
6443
|
+
>` : l`<div class="sponsor">${o}</div>`;
|
|
5873
6444
|
}
|
|
5874
6445
|
};
|
|
5875
|
-
|
|
6446
|
+
J.styles = d`
|
|
5876
6447
|
:host {
|
|
5877
6448
|
display: block;
|
|
5878
6449
|
}
|
|
@@ -5938,27 +6509,27 @@ I.styles = d`
|
|
|
5938
6509
|
display: none;
|
|
5939
6510
|
}
|
|
5940
6511
|
`;
|
|
5941
|
-
|
|
6512
|
+
re([
|
|
5942
6513
|
n()
|
|
5943
|
-
],
|
|
5944
|
-
|
|
6514
|
+
], J.prototype, "name", 2);
|
|
6515
|
+
re([
|
|
5945
6516
|
n()
|
|
5946
|
-
],
|
|
5947
|
-
|
|
6517
|
+
], J.prototype, "href", 2);
|
|
6518
|
+
re([
|
|
5948
6519
|
n()
|
|
5949
|
-
],
|
|
5950
|
-
|
|
6520
|
+
], J.prototype, "logo", 2);
|
|
6521
|
+
re([
|
|
5951
6522
|
n()
|
|
5952
|
-
],
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
],
|
|
5956
|
-
var
|
|
5957
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5958
|
-
(i =
|
|
5959
|
-
return s && t &&
|
|
6523
|
+
], J.prototype, "target", 2);
|
|
6524
|
+
J = re([
|
|
6525
|
+
h("vox-sponsor")
|
|
6526
|
+
], J);
|
|
6527
|
+
var da = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, oo = (o, e, r, s) => {
|
|
6528
|
+
for (var t = s > 1 ? void 0 : s ? ha(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6529
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6530
|
+
return s && t && da(e, r, t), t;
|
|
5960
6531
|
};
|
|
5961
|
-
let
|
|
6532
|
+
let Re = class extends p {
|
|
5962
6533
|
constructor() {
|
|
5963
6534
|
super(...arguments), this.value = "", this.label = "";
|
|
5964
6535
|
}
|
|
@@ -5970,7 +6541,7 @@ let ze = class extends h {
|
|
|
5970
6541
|
`;
|
|
5971
6542
|
}
|
|
5972
6543
|
};
|
|
5973
|
-
|
|
6544
|
+
Re.styles = d`
|
|
5974
6545
|
:host {
|
|
5975
6546
|
display: block;
|
|
5976
6547
|
font-family: var(--vox-font-family-base);
|
|
@@ -5997,24 +6568,24 @@ ze.styles = d`
|
|
|
5997
6568
|
color: var(--vox-color-text-2);
|
|
5998
6569
|
}
|
|
5999
6570
|
`;
|
|
6000
|
-
|
|
6571
|
+
oo([
|
|
6001
6572
|
n()
|
|
6002
|
-
],
|
|
6003
|
-
|
|
6573
|
+
], Re.prototype, "value", 2);
|
|
6574
|
+
oo([
|
|
6004
6575
|
n()
|
|
6005
|
-
],
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
],
|
|
6009
|
-
var
|
|
6010
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
6011
|
-
(i =
|
|
6012
|
-
return s && t &&
|
|
6576
|
+
], Re.prototype, "label", 2);
|
|
6577
|
+
Re = oo([
|
|
6578
|
+
h("vox-stat")
|
|
6579
|
+
], Re);
|
|
6580
|
+
var pa = Object.defineProperty, va = Object.getOwnPropertyDescriptor, Qe = (o, e, r, s) => {
|
|
6581
|
+
for (var t = s > 1 ? void 0 : s ? va(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6582
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6583
|
+
return s && t && pa(e, r, t), t;
|
|
6013
6584
|
};
|
|
6014
|
-
let
|
|
6585
|
+
let Tt = class extends p {
|
|
6015
6586
|
numberSteps() {
|
|
6016
|
-
this.querySelectorAll("vox-step").forEach((
|
|
6017
|
-
|
|
6587
|
+
this.querySelectorAll("vox-step").forEach((o, e) => {
|
|
6588
|
+
o.number = e + 1;
|
|
6018
6589
|
});
|
|
6019
6590
|
}
|
|
6020
6591
|
render() {
|
|
@@ -6025,7 +6596,7 @@ let Et = class extends h {
|
|
|
6025
6596
|
`;
|
|
6026
6597
|
}
|
|
6027
6598
|
};
|
|
6028
|
-
|
|
6599
|
+
Tt.styles = d`
|
|
6029
6600
|
:host {
|
|
6030
6601
|
display: block;
|
|
6031
6602
|
}
|
|
@@ -6039,10 +6610,10 @@ Et.styles = d`
|
|
|
6039
6610
|
flex: 1 1 0;
|
|
6040
6611
|
}
|
|
6041
6612
|
`;
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
],
|
|
6045
|
-
let
|
|
6613
|
+
Tt = Qe([
|
|
6614
|
+
h("vox-step-indicator")
|
|
6615
|
+
], Tt);
|
|
6616
|
+
let ve = class extends p {
|
|
6046
6617
|
constructor() {
|
|
6047
6618
|
super(...arguments), this.label = "", this.state = "upcoming", this.number = 1;
|
|
6048
6619
|
}
|
|
@@ -6063,7 +6634,7 @@ let ae = class extends h {
|
|
|
6063
6634
|
`;
|
|
6064
6635
|
}
|
|
6065
6636
|
};
|
|
6066
|
-
|
|
6637
|
+
ve.styles = d`
|
|
6067
6638
|
:host {
|
|
6068
6639
|
display: block;
|
|
6069
6640
|
font-family: var(--vox-font-family-base);
|
|
@@ -6137,37 +6708,37 @@ ae.styles = d`
|
|
|
6137
6708
|
color: var(--vox-color-text-1);
|
|
6138
6709
|
}
|
|
6139
6710
|
`;
|
|
6140
|
-
|
|
6711
|
+
Qe([
|
|
6141
6712
|
n()
|
|
6142
|
-
],
|
|
6143
|
-
|
|
6713
|
+
], ve.prototype, "label", 2);
|
|
6714
|
+
Qe([
|
|
6144
6715
|
n({ reflect: !0 })
|
|
6145
|
-
],
|
|
6146
|
-
|
|
6716
|
+
], ve.prototype, "state", 2);
|
|
6717
|
+
Qe([
|
|
6147
6718
|
n({ type: Number })
|
|
6148
|
-
],
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
],
|
|
6152
|
-
var
|
|
6153
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
6154
|
-
(i =
|
|
6155
|
-
return s && t &&
|
|
6719
|
+
], ve.prototype, "number", 2);
|
|
6720
|
+
ve = Qe([
|
|
6721
|
+
h("vox-step")
|
|
6722
|
+
], ve);
|
|
6723
|
+
var ua = Object.defineProperty, xa = Object.getOwnPropertyDescriptor, At = (o, e, r, s) => {
|
|
6724
|
+
for (var t = s > 1 ? void 0 : s ? xa(e, r) : e, a = o.length - 1, i; a >= 0; a--)
|
|
6725
|
+
(i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
|
|
6726
|
+
return s && t && ua(e, r, t), t;
|
|
6156
6727
|
};
|
|
6157
|
-
let
|
|
6728
|
+
let Bt = class extends p {
|
|
6158
6729
|
render() {
|
|
6159
6730
|
return l`<slot></slot>`;
|
|
6160
6731
|
}
|
|
6161
6732
|
};
|
|
6162
|
-
|
|
6733
|
+
Bt.styles = d`
|
|
6163
6734
|
:host {
|
|
6164
6735
|
display: block;
|
|
6165
6736
|
}
|
|
6166
6737
|
`;
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
],
|
|
6170
|
-
let
|
|
6738
|
+
Bt = At([
|
|
6739
|
+
h("vox-timeline")
|
|
6740
|
+
], Bt);
|
|
6741
|
+
let Ie = class extends p {
|
|
6171
6742
|
constructor() {
|
|
6172
6743
|
super(...arguments), this.heading = "", this.date = "";
|
|
6173
6744
|
}
|
|
@@ -6182,7 +6753,7 @@ let Ve = class extends h {
|
|
|
6182
6753
|
`;
|
|
6183
6754
|
}
|
|
6184
6755
|
};
|
|
6185
|
-
|
|
6756
|
+
Ie.styles = d`
|
|
6186
6757
|
:host {
|
|
6187
6758
|
display: block;
|
|
6188
6759
|
font-family: var(--vox-font-family-base);
|
|
@@ -6232,70 +6803,72 @@ Ve.styles = d`
|
|
|
6232
6803
|
color: var(--vox-color-text-2);
|
|
6233
6804
|
}
|
|
6234
6805
|
`;
|
|
6235
|
-
|
|
6806
|
+
At([
|
|
6236
6807
|
n()
|
|
6237
|
-
],
|
|
6238
|
-
|
|
6808
|
+
], Ie.prototype, "heading", 2);
|
|
6809
|
+
At([
|
|
6239
6810
|
n()
|
|
6240
|
-
],
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
],
|
|
6811
|
+
], Ie.prototype, "date", 2);
|
|
6812
|
+
Ie = At([
|
|
6813
|
+
h("vox-timeline-item")
|
|
6814
|
+
], Ie);
|
|
6244
6815
|
export {
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6816
|
+
dt as VoxAccordion,
|
|
6817
|
+
je as VoxAccordionItem,
|
|
6818
|
+
Y as VoxAlert,
|
|
6819
|
+
K as VoxAvatar,
|
|
6820
|
+
ht as VoxBadge,
|
|
6821
|
+
Me as VoxBillboard,
|
|
6822
|
+
Vt as VoxBreadcrumbs,
|
|
6823
|
+
L as VoxButton,
|
|
6824
|
+
ze as VoxCalendarTile,
|
|
6825
|
+
De as VoxCallout,
|
|
6826
|
+
he as VoxCard,
|
|
6827
|
+
Ce as VoxCheckbox,
|
|
6828
|
+
O as VoxCodeBlock,
|
|
6829
|
+
$ as VoxCombobox,
|
|
6830
|
+
_e as VoxCta,
|
|
6831
|
+
pt as VoxCtaBand,
|
|
6832
|
+
W as VoxDialog,
|
|
6833
|
+
Se as VoxDisclosure,
|
|
6834
|
+
Ve as VoxDropdown,
|
|
6835
|
+
vt as VoxEmptyState,
|
|
6836
|
+
H as VoxFileInput,
|
|
6837
|
+
Dt as VoxFooter,
|
|
6838
|
+
ut as VoxFooterColumn,
|
|
6839
|
+
pe as VoxGrid,
|
|
6840
|
+
ce as VoxHeader,
|
|
6841
|
+
He as VoxHero,
|
|
6842
|
+
ne as VoxIcon,
|
|
6843
|
+
w as VoxInput,
|
|
6844
|
+
St as VoxInputGroup,
|
|
6845
|
+
Ht as VoxLinkHub,
|
|
6846
|
+
Te as VoxLinkHubItem,
|
|
6847
|
+
Be as VoxLoader,
|
|
6848
|
+
xt as VoxPagination,
|
|
6849
|
+
Ne as VoxQuote,
|
|
6850
|
+
le as VoxRadio,
|
|
6851
|
+
nt as VoxRadioGroup,
|
|
6852
|
+
A as VoxRange,
|
|
6853
|
+
T as VoxSelect,
|
|
6854
|
+
G as VoxSeriesNav,
|
|
6855
|
+
de as VoxSidenav,
|
|
6856
|
+
Ae as VoxSidenavGroup,
|
|
6857
|
+
ke as VoxSidenavItem,
|
|
6858
|
+
J as VoxSponsor,
|
|
6859
|
+
ft as VoxSponsorTier,
|
|
6860
|
+
Re as VoxStat,
|
|
6861
|
+
ve as VoxStep,
|
|
6862
|
+
Tt as VoxStepIndicator,
|
|
6863
|
+
lt as VoxSubnav,
|
|
6864
|
+
Oe as VoxSwitch,
|
|
6865
|
+
Pe as VoxTab,
|
|
6866
|
+
Ee as VoxTabPanel,
|
|
6867
|
+
jt as VoxTabs,
|
|
6868
|
+
F as VoxTextarea,
|
|
6869
|
+
ie as VoxThemeToggle,
|
|
6870
|
+
Bt as VoxTimeline,
|
|
6871
|
+
Ie as VoxTimelineItem,
|
|
6872
|
+
ct as VoxToc,
|
|
6873
|
+
Le as VoxTocItem
|
|
6301
6874
|
};
|