@openvoxproject/voxblocks 0.12.0 → 0.14.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/README.md +2 -2
- package/dist/cdn/voxblocks.css +1 -1
- package/dist/cdn/voxblocks.js +1417 -1610
- package/dist/types/components/datum/vox-datum.d.ts +25 -0
- package/dist/types/components/menu/vox-menu.d.ts +44 -0
- package/dist/types/components/record-list/vox-record-list.d.ts +53 -0
- package/dist/types/index.d.ts +5 -2
- package/dist/voxblocks.css +1 -1
- package/dist/voxblocks.js +1389 -1582
- package/package.json +1 -1
- package/src/components/datum/vox-datum.ts +76 -0
- package/src/components/dropdown/vox-dropdown.ts +6 -0
- package/src/components/menu/vox-menu.ts +203 -0
- package/src/components/record-list/vox-record-list.ts +263 -0
- package/src/index.ts +5 -2
- package/src/tokens/tokens.css +0 -17
- package/dist/types/components/code-block/languages.d.ts +0 -28
- package/dist/types/components/code-block/vox-code-block.d.ts +0 -34
- package/src/components/code-block/languages.ts +0 -259
- package/src/components/code-block/vox-code-block.ts +0 -302
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
|
|
6
|
+
const Ze = globalThis, kt = Ze.ShadowRoot && (Ze.ShadyCSS === void 0 || Ze.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Lt = Symbol(), Gt = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let lo = class {
|
|
8
8
|
constructor(e, o, s) {
|
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
|
9
|
+
if (this._$cssResult$ = !0, s !== Lt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = o;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
14
|
const o = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (kt && e === void 0) {
|
|
16
16
|
const s = o !== void 0 && o.length === 1;
|
|
17
|
-
s && (e =
|
|
17
|
+
s && (e = Gt.get(o)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Gt.set(o, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let bo = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const Mo = (r) => new lo(typeof r == "string" ? r : r + "", void 0, Lt), d = (r, ...e) => {
|
|
26
26
|
const o = r.length === 1 ? r[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
30
|
})(t) + r[a + 1], r[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new lo(o, r, Lt);
|
|
32
|
+
}, Po = (r, e) => {
|
|
33
|
+
if (kt) r.adoptedStyleSheets = e.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
|
|
34
34
|
else for (const o of e) {
|
|
35
|
-
const s = document.createElement("style"), t =
|
|
35
|
+
const s = document.createElement("style"), t = Ze.litNonce;
|
|
36
36
|
t !== void 0 && s.setAttribute("nonce", t), s.textContent = o.cssText, r.appendChild(s);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, Xt = kt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let o = "";
|
|
40
40
|
for (const s of e.cssRules) o += s.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Mo(o);
|
|
42
42
|
})(r) : r;
|
|
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: Ao, defineProperty: ko, getOwnPropertyDescriptor: Lo, getOwnPropertyNames: Eo, getOwnPropertySymbols: So, getPrototypeOf: jo } = Object, M = globalThis, Jt = M.trustedTypes, Vo = Jt ? Jt.emptyScript : "", gt = M.reactiveElementPolyfillSupport, ie = (r, e) => r, Ke = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? Vo : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,44 +73,44 @@ const { is: To, defineProperty: Bo, getOwnPropertyDescriptor: No, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return o;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, Et = (r, e) => !Ao(r, e), Yt = { attribute: !0, type: String, converter: Ke, reflect: !1, useDefault: !1, hasChanged: Et };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let q = 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, o =
|
|
85
|
+
static createProperty(e, o = Yt) {
|
|
86
86
|
if (o.state && (o.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((o = Object.create(o)).wrapped = !0), this.elementProperties.set(e, o), !o.noAccessor) {
|
|
87
87
|
const s = Symbol(), t = this.getPropertyDescriptor(e, s, o);
|
|
88
|
-
t !== void 0 &&
|
|
88
|
+
t !== void 0 && ko(this.prototype, e, t);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, o, s) {
|
|
92
|
-
const { get: t, set: a } =
|
|
92
|
+
const { get: t, set: a } = Lo(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[o];
|
|
94
94
|
}, set(i) {
|
|
95
95
|
this[o] = i;
|
|
96
96
|
} };
|
|
97
97
|
return { get: t, set(i) {
|
|
98
|
-
const
|
|
99
|
-
a == null || a.call(this, i), this.requestUpdate(e,
|
|
98
|
+
const u = t == null ? void 0 : t.call(this);
|
|
99
|
+
a == null || a.call(this, i), this.requestUpdate(e, u, s);
|
|
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) ?? Yt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(ie("elementProperties"))) return;
|
|
107
|
+
const e = jo(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 o = this.properties, s = [...
|
|
111
|
+
if (this.hasOwnProperty(ie("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
|
|
113
|
+
const o = this.properties, s = [...Eo(o), ...So(o)];
|
|
114
114
|
for (const t of s) this.createProperty(t, o[t]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let Y = class extends HTMLElement {
|
|
|
129
129
|
const o = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
131
|
const s = new Set(e.flat(1 / 0).reverse());
|
|
132
|
-
for (const t of s) o.unshift(
|
|
133
|
-
} else e !== void 0 && o.push(
|
|
132
|
+
for (const t of s) o.unshift(Xt(t));
|
|
133
|
+
} else e !== void 0 && o.push(Xt(e));
|
|
134
134
|
return o;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, o) {
|
|
@@ -159,7 +159,7 @@ let Y = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Po(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -184,7 +184,7 @@ let Y = class extends HTMLElement {
|
|
|
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 : Ke).toAttribute(o, s.type);
|
|
188
188
|
this._$Em = e, i == null ? this.removeAttribute(t) : this.setAttribute(t, i), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,17 +192,17 @@ let Y = class extends HTMLElement {
|
|
|
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
|
|
195
|
+
const u = s.getPropertyOptions(t), v = typeof u.converter == "function" ? { fromAttribute: u.converter } : ((a = u.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? u.converter : Ke;
|
|
196
196
|
this._$Em = t;
|
|
197
|
-
const f =
|
|
197
|
+
const f = v.fromAttribute(o, u.type);
|
|
198
198
|
this[t] = f ?? ((i = this._$Ej) == null ? void 0 : i.get(t)) ?? f, this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
requestUpdate(e, o, s, t = !1, a) {
|
|
202
202
|
var i;
|
|
203
203
|
if (e !== void 0) {
|
|
204
|
-
const
|
|
205
|
-
if (t === !1 && (a = this[e]), s ?? (s =
|
|
204
|
+
const u = this.constructor;
|
|
205
|
+
if (t === !1 && (a = this[e]), s ?? (s = u.getPropertyOptions(e)), !((s.hasChanged ?? Et)(a, o) || s.useDefault && s.reflect && a === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(u._$Eu(e, s)))) return;
|
|
206
206
|
this.C(e, o, s);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -233,8 +233,8 @@ let Y = class extends HTMLElement {
|
|
|
233
233
|
}
|
|
234
234
|
const t = this.constructor.elementProperties;
|
|
235
235
|
if (t.size > 0) for (const [a, i] of t) {
|
|
236
|
-
const { wrapped:
|
|
237
|
-
|
|
236
|
+
const { wrapped: u } = i, v = this[a];
|
|
237
|
+
u !== !0 || this._$AL.has(a) || v === void 0 || this.C(a, void 0, i, v);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
let e = !1;
|
|
@@ -278,76 +278,76 @@ let Y = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[ie("elementProperties")] = /* @__PURE__ */ new Map(), q[ie("finalized")] = /* @__PURE__ */ new Map(), gt == null || gt({ ReactiveElement: q }), (M.reactiveElementVersions ?? (M.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 ne = globalThis, Qt = (r) => r, We = ne.trustedTypes, eo = We ? We.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, co = "$lit$", O = `lit$${Math.random().toFixed(9).slice(2)}$`, ho = "?" + O, Do = `<${ho}>`, j = document, le = () => j.createComment(""), ce = (r) => r === null || typeof r != "object" && typeof r != "function", St = Array.isArray, zo = (r) => St(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", bt = `[
|
|
288
|
+
\f\r]`, ae = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, to = /-->/g, oo = />/g, k = RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ro = /'/g, so = /"/g, po = /^(?:script|style|textarea|title)$/i, vo = (r) => (e, ...o) => ({ _$litType$: r, strings: e, values: o }), l = vo(1), c = vo(2), y = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), ao = /* @__PURE__ */ new WeakMap(), E = j.createTreeWalker(j, 129);
|
|
290
|
+
function uo(r, e) {
|
|
291
|
+
if (!St(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return eo !== void 0 ? eo.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Ho = (r, e) => {
|
|
295
295
|
const o = r.length - 1, s = [];
|
|
296
|
-
let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i =
|
|
297
|
-
for (let
|
|
298
|
-
const
|
|
299
|
-
let f, b, g = -1,
|
|
300
|
-
for (;
|
|
301
|
-
const
|
|
302
|
-
a += i ===
|
|
303
|
-
}
|
|
304
|
-
return [
|
|
296
|
+
let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i = ae;
|
|
297
|
+
for (let u = 0; u < o; u++) {
|
|
298
|
+
const v = r[u];
|
|
299
|
+
let f, b, g = -1, w = 0;
|
|
300
|
+
for (; w < v.length && (i.lastIndex = w, b = i.exec(v), b !== null); ) w = i.lastIndex, i === ae ? b[1] === "!--" ? i = to : b[1] !== void 0 ? i = oo : b[2] !== void 0 ? (po.test(b[2]) && (t = RegExp("</" + b[2], "g")), i = k) : b[3] !== void 0 && (i = k) : i === k ? b[0] === ">" ? (i = t ?? ae, g = -1) : b[1] === void 0 ? g = -2 : (g = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? k : b[3] === '"' ? so : ro) : i === so || i === ro ? i = k : i === to || i === oo ? i = ae : (i = k, t = void 0);
|
|
301
|
+
const C = i === k && r[u + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
a += i === ae ? v + Do : g >= 0 ? (s.push(f), v.slice(0, g) + co + v.slice(g) + O + C) : v + O + (g === -2 ? u : C);
|
|
303
|
+
}
|
|
304
|
+
return [uo(r, a + (r[o] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
306
|
+
class de {
|
|
307
307
|
constructor({ strings: e, _$litType$: o }, s) {
|
|
308
308
|
let t;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let a = 0, i = 0;
|
|
311
|
-
const
|
|
312
|
-
if (this.el =
|
|
311
|
+
const u = e.length - 1, v = this.parts, [f, b] = Ho(e, o);
|
|
312
|
+
if (this.el = de.createElement(f, s), E.currentNode = this.el.content, o === 2 || o === 3) {
|
|
313
313
|
const g = this.el.content.firstChild;
|
|
314
314
|
g.replaceWith(...g.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (t =
|
|
316
|
+
for (; (t = E.nextNode()) !== null && v.length < u; ) {
|
|
317
317
|
if (t.nodeType === 1) {
|
|
318
|
-
if (t.hasAttributes()) for (const g of t.getAttributeNames()) if (g.endsWith(
|
|
319
|
-
const
|
|
320
|
-
|
|
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 w = b[i++], C = t.getAttribute(g).split(O), qe = /([.?@])?(.*)/.exec(w);
|
|
320
|
+
v.push({ type: 1, index: a, name: qe[2], strings: C, ctor: qe[1] === "." ? Bo : qe[1] === "?" ? No : qe[1] === "@" ? Ro : it }), t.removeAttribute(g);
|
|
321
|
+
} else g.startsWith(O) && (v.push({ type: 6, index: a }), t.removeAttribute(g));
|
|
322
|
+
if (po.test(t.tagName)) {
|
|
323
|
+
const g = t.textContent.split(O), w = g.length - 1;
|
|
324
|
+
if (w > 0) {
|
|
325
|
+
t.textContent = We ? We.emptyScript : "";
|
|
326
|
+
for (let C = 0; C < w; C++) t.append(g[C], le()), E.nextNode(), v.push({ type: 2, index: ++a });
|
|
327
|
+
t.append(g[w], le());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (t.nodeType === 8) if (t.data ===
|
|
330
|
+
} else if (t.nodeType === 8) if (t.data === ho) v.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(O, g + 1)) !== -1; ) v.push({ type: 7, index: a }), g += O.length - 1;
|
|
334
334
|
}
|
|
335
335
|
a++;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
static createElement(e, o) {
|
|
339
|
-
const s =
|
|
339
|
+
const s = j.createElement("template");
|
|
340
340
|
return s.innerHTML = e, s;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
var i,
|
|
345
|
-
if (e ===
|
|
343
|
+
function F(r, e, o = r, s) {
|
|
344
|
+
var i, u;
|
|
345
|
+
if (e === y) return e;
|
|
346
346
|
let t = s !== void 0 ? (i = o._$Co) == null ? void 0 : i[s] : o._$Cl;
|
|
347
|
-
const a =
|
|
348
|
-
return (t == null ? void 0 : t.constructor) !== a && ((
|
|
347
|
+
const a = ce(e) ? void 0 : e._$litDirective$;
|
|
348
|
+
return (t == null ? void 0 : t.constructor) !== a && ((u = t == null ? void 0 : t._$AO) == null || u.call(t, !1), a === void 0 ? t = void 0 : (t = new a(r), t._$AT(r, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = t : o._$Cl = t), t !== void 0 && (e = F(r, t._$AS(r, e.values), t, s)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class To {
|
|
351
351
|
constructor(e, o) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = o;
|
|
353
353
|
}
|
|
@@ -358,24 +358,24 @@ class Go {
|
|
|
358
358
|
return this._$AM._$AU;
|
|
359
359
|
}
|
|
360
360
|
u(e) {
|
|
361
|
-
const { el: { content: o }, parts: s } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ??
|
|
362
|
-
|
|
363
|
-
let a =
|
|
364
|
-
for (;
|
|
365
|
-
if (i ===
|
|
361
|
+
const { el: { content: o }, parts: s } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? j).importNode(o, !0);
|
|
362
|
+
E.currentNode = t;
|
|
363
|
+
let a = E.nextNode(), i = 0, u = 0, v = s[0];
|
|
364
|
+
for (; v !== void 0; ) {
|
|
365
|
+
if (i === v.index) {
|
|
366
366
|
let f;
|
|
367
|
-
|
|
367
|
+
v.type === 2 ? f = new Se(a, a.nextSibling, this, e) : v.type === 1 ? f = new v.ctor(a, v.name, v.strings, this, e) : v.type === 6 && (f = new Io(a, this, e)), this._$AV.push(f), v = s[++u];
|
|
368
368
|
}
|
|
369
|
-
i !== (
|
|
369
|
+
i !== (v == null ? void 0 : v.index) && (a = E.nextNode(), i++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return E.currentNode = j, t;
|
|
372
372
|
}
|
|
373
373
|
p(e) {
|
|
374
374
|
let o = 0;
|
|
375
375
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, o), o += s.strings.length - 2) : s._$AI(e[o])), o++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class Se {
|
|
379
379
|
get _$AU() {
|
|
380
380
|
var e;
|
|
381
381
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
@@ -395,7 +395,7 @@ class De {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, o = this) {
|
|
398
|
-
e =
|
|
398
|
+
e = F(this, e, o), ce(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== y && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : zo(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -404,33 +404,33 @@ 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 && ce(this._$AH) ? this._$AA.nextSibling.data = e : this.T(j.createTextNode(e)), this._$AH = e;
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
410
|
var a;
|
|
411
|
-
const { values: o, _$litType$: s } = e, t = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el =
|
|
411
|
+
const { values: o, _$litType$: s } = e, t = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = de.createElement(uo(s.h, s.h[0]), this.options)), s);
|
|
412
412
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === t) this._$AH.p(o);
|
|
413
413
|
else {
|
|
414
|
-
const i = new
|
|
415
|
-
i.p(o), this.T(
|
|
414
|
+
const i = new To(t, this), u = i.u(this.options);
|
|
415
|
+
i.p(o), this.T(u), this._$AH = i;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let o =
|
|
420
|
-
return o === void 0 &&
|
|
419
|
+
let o = ao.get(e.strings);
|
|
420
|
+
return o === void 0 && ao.set(e.strings, o = new de(e)), o;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
423
|
+
St(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
424
|
const o = this._$AH;
|
|
425
425
|
let s, t = 0;
|
|
426
|
-
for (const a of e) t === o.length ? o.push(s = new
|
|
426
|
+
for (const a of e) t === o.length ? o.push(s = new Se(this.O(le()), this.O(le()), this, this.options)) : s = o[t], s._$AI(a), t++;
|
|
427
427
|
t < o.length && (this._$AR(s && s._$AB.nextSibling, t), o.length = t);
|
|
428
428
|
}
|
|
429
429
|
_$AR(e = this._$AA.nextSibling, o) {
|
|
430
430
|
var s;
|
|
431
431
|
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, o); e !== this._$AB; ) {
|
|
432
|
-
const t =
|
|
433
|
-
|
|
432
|
+
const t = Qt(e).nextSibling;
|
|
433
|
+
Qt(e).remove(), e = t;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -438,7 +438,7 @@ class De {
|
|
|
438
438
|
this._$AM === void 0 && (this._$Cv = e, (o = this._$AP) == null || o.call(this, e));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class it {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
@@ -451,11 +451,11 @@ class pt {
|
|
|
451
451
|
_$AI(e, o = 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 = F(this, e, o, 0), i = !ce(e) || e !== this._$AH && e !== y, i && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
|
-
const
|
|
457
|
-
let
|
|
458
|
-
for (e = a[0],
|
|
456
|
+
const u = e;
|
|
457
|
+
let v, f;
|
|
458
|
+
for (e = a[0], v = 0; v < a.length - 1; v++) f = F(this, u[s + v], o, v), f === y && (f = this._$AH[v]), i || (i = !ce(f) || f !== this._$AH[v]), f === x ? e = x : e !== x && (e += (f ?? "") + a[v + 1]), this._$AH[v] = 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 Bo extends it {
|
|
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 No extends it {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,12 +479,12 @@ class Wo extends pt {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== x);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class Ro extends it {
|
|
483
483
|
constructor(e, o, s, t, a) {
|
|
484
484
|
super(e, o, s, t, a), this.type = 5;
|
|
485
485
|
}
|
|
486
486
|
_$AI(e, o = this) {
|
|
487
|
-
if ((e =
|
|
487
|
+
if ((e = F(this, e, o, 0) ?? x) === y) 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
|
}
|
|
@@ -493,7 +493,7 @@ class Xo extends pt {
|
|
|
493
493
|
typeof this._$AH == "function" ? this._$AH.call(((o = this.options) == null ? void 0 : o.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class
|
|
496
|
+
class Io {
|
|
497
497
|
constructor(e, o, s) {
|
|
498
498
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = o, this.options = s;
|
|
499
499
|
}
|
|
@@ -501,17 +501,17 @@ class Jo {
|
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(e) {
|
|
504
|
-
|
|
504
|
+
F(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
507
|
+
const mt = ne.litHtmlPolyfillSupport;
|
|
508
|
+
mt == null || mt(de, Se), (ne.litHtmlVersions ?? (ne.litHtmlVersions = [])).push("3.3.3");
|
|
509
|
+
const Uo = (r, e, o) => {
|
|
510
510
|
const s = (o == null ? void 0 : o.renderBefore) ?? e;
|
|
511
511
|
let t = s._$litPart$;
|
|
512
512
|
if (t === void 0) {
|
|
513
513
|
const a = (o == null ? void 0 : o.renderBefore) ?? null;
|
|
514
|
-
s._$litPart$ = t = new
|
|
514
|
+
s._$litPart$ = t = new Se(e.insertBefore(le(), a), a, void 0, o ?? {});
|
|
515
515
|
}
|
|
516
516
|
return t._$AI(r), t;
|
|
517
517
|
};
|
|
@@ -520,8 +520,8 @@ const Qo = (r, e, o) => {
|
|
|
520
520
|
* Copyright 2017 Google LLC
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
|
-
const
|
|
524
|
-
let
|
|
523
|
+
const S = globalThis;
|
|
524
|
+
let p = class extends q {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
@@ -532,7 +532,7 @@ let h = class extends Y {
|
|
|
532
532
|
}
|
|
533
533
|
update(e) {
|
|
534
534
|
const o = this.render();
|
|
535
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Uo(o, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -543,20 +543,20 @@ 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 y;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
(
|
|
549
|
+
var no;
|
|
550
|
+
p._$litElement$ = !0, p.finalized = !0, (no = S.litElementHydrateSupport) == null || no.call(S, { LitElement: p });
|
|
551
|
+
const yt = S.litElementPolyfillSupport;
|
|
552
|
+
yt == null || yt({ LitElement: p });
|
|
553
|
+
(S.litElementVersions ?? (S.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
|
|
559
|
+
const h = (r) => (e, o) => {
|
|
560
560
|
o !== void 0 ? o.addInitializer(() => {
|
|
561
561
|
customElements.define(r, e);
|
|
562
562
|
}) : customElements.define(r, e);
|
|
@@ -566,29 +566,29 @@ const p = (r) => (e, o) => {
|
|
|
566
566
|
* Copyright 2017 Google LLC
|
|
567
567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
568
568
|
*/
|
|
569
|
-
const
|
|
569
|
+
const qo = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: Et }, Fo = (r = qo, e, o) => {
|
|
570
570
|
const { kind: s, metadata: t } = o;
|
|
571
571
|
let a = globalThis.litPropertyMetadata.get(t);
|
|
572
572
|
if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), a.set(o.name, r), s === "accessor") {
|
|
573
573
|
const { name: i } = o;
|
|
574
|
-
return { set(
|
|
575
|
-
const
|
|
576
|
-
e.set.call(this,
|
|
577
|
-
}, init(
|
|
578
|
-
return
|
|
574
|
+
return { set(u) {
|
|
575
|
+
const v = e.get.call(this);
|
|
576
|
+
e.set.call(this, u), this.requestUpdate(i, v, r, !0, u);
|
|
577
|
+
}, init(u) {
|
|
578
|
+
return u !== void 0 && this.C(i, void 0, r, u), u;
|
|
579
579
|
} };
|
|
580
580
|
}
|
|
581
581
|
if (s === "setter") {
|
|
582
582
|
const { name: i } = o;
|
|
583
|
-
return function(
|
|
584
|
-
const
|
|
585
|
-
e.call(this,
|
|
583
|
+
return function(u) {
|
|
584
|
+
const v = this[i];
|
|
585
|
+
e.call(this, u), this.requestUpdate(i, v, r, !0, u);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
throw Error("Unsupported decorator location: " + s);
|
|
589
589
|
};
|
|
590
590
|
function n(r) {
|
|
591
|
-
return (e, o) => typeof o == "object" ?
|
|
591
|
+
return (e, o) => typeof o == "object" ? Fo(r, e, o) : ((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
|
})(r, e, o);
|
|
@@ -598,7 +598,7 @@ function n(r) {
|
|
|
598
598
|
* Copyright 2017 Google LLC
|
|
599
599
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
600
600
|
*/
|
|
601
|
-
function
|
|
601
|
+
function nt(r) {
|
|
602
602
|
return n({ ...r, state: !0, attribute: !1 });
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
@@ -606,19 +606,19 @@ function ie(r) {
|
|
|
606
606
|
* Copyright 2017 Google LLC
|
|
607
607
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
608
|
*/
|
|
609
|
-
const
|
|
609
|
+
const Zo = (r, e, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, o), o);
|
|
610
610
|
/**
|
|
611
611
|
* @license
|
|
612
612
|
* Copyright 2017 Google LLC
|
|
613
613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
614
614
|
*/
|
|
615
|
-
function
|
|
615
|
+
function jt(r, e) {
|
|
616
616
|
return (o, s, t) => {
|
|
617
617
|
const a = (i) => {
|
|
618
|
-
var
|
|
619
|
-
return ((
|
|
618
|
+
var u;
|
|
619
|
+
return ((u = i.renderRoot) == null ? void 0 : u.querySelector(r)) ?? null;
|
|
620
620
|
};
|
|
621
|
-
return
|
|
621
|
+
return Zo(o, s, { get() {
|
|
622
622
|
return a(this);
|
|
623
623
|
} });
|
|
624
624
|
};
|
|
@@ -628,8 +628,8 @@ 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 L = { ATTRIBUTE: 1, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, xo = (r) => (...e) => ({ _$litDirective$: r, values: e });
|
|
632
|
+
class fo {
|
|
633
633
|
constructor(e) {
|
|
634
634
|
}
|
|
635
635
|
get _$AU() {
|
|
@@ -650,10 +650,10 @@ class Oo {
|
|
|
650
650
|
* Copyright 2018 Google LLC
|
|
651
651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
652
652
|
*/
|
|
653
|
-
const
|
|
653
|
+
const Ko = xo(class extends fo {
|
|
654
654
|
constructor(r) {
|
|
655
655
|
var e;
|
|
656
|
-
if (super(r), r.type !==
|
|
656
|
+
if (super(r), r.type !== L.ATTRIBUTE || r.name !== "class" || ((e = r.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
658
|
render(r) {
|
|
659
659
|
return " " + Object.keys(r).filter((e) => r[e]).join(" ") + " ";
|
|
@@ -671,7 +671,7 @@ const rr = Co(class extends Oo {
|
|
|
671
671
|
const i = !!e[a];
|
|
672
672
|
i === this.st.has(a) || (t = this.nt) != null && t.has(a) || (i ? (o.add(a), this.st.add(a)) : (o.remove(a), this.st.delete(a)));
|
|
673
673
|
}
|
|
674
|
-
return
|
|
674
|
+
return y;
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
677
|
/**
|
|
@@ -679,18 +679,18 @@ 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 ?
|
|
682
|
+
const Z = (r) => r ?? x;
|
|
683
|
+
var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, R = (r, e, o, s) => {
|
|
684
|
+
for (var t = s > 1 ? void 0 : s ? Go(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
685
685
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
686
|
-
return s && t &&
|
|
686
|
+
return s && t && Wo(e, o, t), t;
|
|
687
687
|
};
|
|
688
|
-
let
|
|
688
|
+
let _ = 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 r =
|
|
693
|
+
const r = Ko({
|
|
694
694
|
button: !0,
|
|
695
695
|
[this.variant]: !0,
|
|
696
696
|
[this.size]: !0
|
|
@@ -699,8 +699,8 @@ let C = class extends h {
|
|
|
699
699
|
<a
|
|
700
700
|
class=${r}
|
|
701
701
|
href=${this.href}
|
|
702
|
-
target=${
|
|
703
|
-
rel=${
|
|
702
|
+
target=${Z(this.target)}
|
|
703
|
+
rel=${Z(this.target === "_blank" ? "noreferrer" : void 0)}
|
|
704
704
|
>
|
|
705
705
|
<slot></slot>
|
|
706
706
|
</a>
|
|
@@ -711,7 +711,7 @@ let C = class extends h {
|
|
|
711
711
|
`;
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
|
-
|
|
714
|
+
_.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
|
+
R([
|
|
823
823
|
n()
|
|
824
|
-
],
|
|
825
|
-
|
|
824
|
+
], _.prototype, "variant", 2);
|
|
825
|
+
R([
|
|
826
826
|
n()
|
|
827
|
-
],
|
|
828
|
-
|
|
827
|
+
], _.prototype, "size", 2);
|
|
828
|
+
R([
|
|
829
829
|
n()
|
|
830
|
-
],
|
|
831
|
-
|
|
830
|
+
], _.prototype, "href", 2);
|
|
831
|
+
R([
|
|
832
832
|
n()
|
|
833
|
-
],
|
|
834
|
-
|
|
833
|
+
], _.prototype, "target", 2);
|
|
834
|
+
R([
|
|
835
835
|
n()
|
|
836
|
-
],
|
|
837
|
-
|
|
836
|
+
], _.prototype, "type", 2);
|
|
837
|
+
R([
|
|
838
838
|
n({ type: Boolean, reflect: !0 })
|
|
839
|
-
],
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
],
|
|
843
|
-
var
|
|
844
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
839
|
+
], _.prototype, "disabled", 2);
|
|
840
|
+
_ = R([
|
|
841
|
+
h("vox-button")
|
|
842
|
+
], _);
|
|
843
|
+
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, Vt = (r, e, o, s) => {
|
|
844
|
+
for (var t = s > 1 ? void 0 : s ? Jo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
845
845
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
846
|
-
return s && t &&
|
|
846
|
+
return s && t && Xo(e, o, t), t;
|
|
847
847
|
};
|
|
848
|
-
let
|
|
848
|
+
let he = 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
|
+
he.styles = d`
|
|
865
865
|
:host {
|
|
866
866
|
display: inline-block;
|
|
867
867
|
font-family: var(--vox-font-family-base);
|
|
@@ -898,31 +898,31 @@ xe.styles = d`
|
|
|
898
898
|
transform: translateX(3px);
|
|
899
899
|
}
|
|
900
900
|
`;
|
|
901
|
-
|
|
901
|
+
Vt([
|
|
902
902
|
n()
|
|
903
|
-
],
|
|
904
|
-
|
|
903
|
+
], he.prototype, "href", 2);
|
|
904
|
+
Vt([
|
|
905
905
|
n()
|
|
906
|
-
],
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
],
|
|
910
|
-
var
|
|
911
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
906
|
+
], he.prototype, "target", 2);
|
|
907
|
+
he = Vt([
|
|
908
|
+
h("vox-cta")
|
|
909
|
+
], he);
|
|
910
|
+
var Yo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, lt = (r, e, o, s) => {
|
|
911
|
+
for (var t = s > 1 ? void 0 : s ? Qo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
912
912
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
913
|
-
return s && t &&
|
|
913
|
+
return s && t && Yo(e, o, t), t;
|
|
914
914
|
};
|
|
915
|
-
const
|
|
916
|
-
let
|
|
915
|
+
const io = "vox-theme", Fe = "data-vox-theme";
|
|
916
|
+
let K = class extends p {
|
|
917
917
|
constructor() {
|
|
918
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 = (r) => {
|
|
919
|
-
localStorage.getItem(
|
|
919
|
+
localStorage.getItem(io) || document.documentElement.setAttribute(Fe, r.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: [Fe]
|
|
926
926
|
}), this.media.addEventListener("change", this.handleSystemChange);
|
|
927
927
|
}
|
|
928
928
|
disconnectedCallback() {
|
|
@@ -930,12 +930,12 @@ let J = class extends h {
|
|
|
930
930
|
super.disconnectedCallback(), (r = this.observer) == null || r.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
|
|
931
931
|
}
|
|
932
932
|
syncFromDocument() {
|
|
933
|
-
const r = document.documentElement.getAttribute(
|
|
933
|
+
const r = document.documentElement.getAttribute(Fe) === "dark";
|
|
934
934
|
this.dark = r, this.toggleAttribute("dark", r);
|
|
935
935
|
}
|
|
936
936
|
handleClick() {
|
|
937
937
|
const r = this.dark ? "light" : "dark";
|
|
938
|
-
document.documentElement.setAttribute(
|
|
938
|
+
document.documentElement.setAttribute(Fe, r), localStorage.setItem(io, r), this.dispatchEvent(
|
|
939
939
|
new CustomEvent("vox-theme-change", {
|
|
940
940
|
detail: { theme: r },
|
|
941
941
|
bubbles: !0,
|
|
@@ -968,7 +968,7 @@ let J = class extends h {
|
|
|
968
968
|
`;
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
|
-
|
|
971
|
+
K.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
|
+
lt([
|
|
1031
1031
|
n({ attribute: "light-label" })
|
|
1032
|
-
],
|
|
1033
|
-
|
|
1032
|
+
], K.prototype, "lightLabel", 2);
|
|
1033
|
+
lt([
|
|
1034
1034
|
n({ attribute: "dark-label" })
|
|
1035
|
-
],
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
],
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
],
|
|
1042
|
-
const
|
|
1035
|
+
], K.prototype, "darkLabel", 2);
|
|
1036
|
+
lt([
|
|
1037
|
+
nt()
|
|
1038
|
+
], K.prototype, "dark", 2);
|
|
1039
|
+
K = lt([
|
|
1040
|
+
h("vox-theme-toggle")
|
|
1041
|
+
], K);
|
|
1042
|
+
const V = {
|
|
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,17 +1127,17 @@ 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 ?
|
|
1130
|
+
var er = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, ct = (r, e, o, s) => {
|
|
1131
|
+
for (var t = s > 1 ? void 0 : s ? tr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1132
1132
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1133
|
-
return s && t &&
|
|
1133
|
+
return s && t && er(e, o, t), t;
|
|
1134
1134
|
};
|
|
1135
|
-
let
|
|
1135
|
+
let W = class extends p {
|
|
1136
1136
|
constructor() {
|
|
1137
1137
|
super(...arguments), this.name = "info", this.size = "md";
|
|
1138
1138
|
}
|
|
1139
1139
|
render() {
|
|
1140
|
-
const r =
|
|
1140
|
+
const r = V[this.name];
|
|
1141
1141
|
return r ? l`
|
|
1142
1142
|
<svg
|
|
1143
1143
|
viewBox="0 0 48 48"
|
|
@@ -1155,7 +1155,7 @@ let Q = class extends h {
|
|
|
1155
1155
|
` : x;
|
|
1156
1156
|
}
|
|
1157
1157
|
};
|
|
1158
|
-
|
|
1158
|
+
W.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
|
+
ct([
|
|
1190
1190
|
n()
|
|
1191
|
-
],
|
|
1192
|
-
|
|
1191
|
+
], W.prototype, "name", 2);
|
|
1192
|
+
ct([
|
|
1193
1193
|
n({ reflect: !0 })
|
|
1194
|
-
],
|
|
1195
|
-
|
|
1194
|
+
], W.prototype, "size", 2);
|
|
1195
|
+
ct([
|
|
1196
1196
|
n()
|
|
1197
|
-
],
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
],
|
|
1201
|
-
var
|
|
1197
|
+
], W.prototype, "label", 2);
|
|
1198
|
+
W = ct([
|
|
1199
|
+
h("vox-icon")
|
|
1200
|
+
], W);
|
|
1201
|
+
var or = Object.defineProperty, je = (r, e, o, s) => {
|
|
1202
1202
|
for (var t = void 0, a = r.length - 1, i; a >= 0; a--)
|
|
1203
1203
|
(i = r[a]) && (t = i(e, o, t) || t);
|
|
1204
|
-
return t &&
|
|
1204
|
+
return t && or(e, o, t), t;
|
|
1205
1205
|
};
|
|
1206
|
-
const
|
|
1206
|
+
const Wt = class Wt 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
|
+
Wt.formAssociated = !0;
|
|
1241
|
+
let m = Wt;
|
|
1242
|
+
je([
|
|
1243
1243
|
n()
|
|
1244
|
-
],
|
|
1245
|
-
|
|
1244
|
+
], m.prototype, "name");
|
|
1245
|
+
je([
|
|
1246
1246
|
n()
|
|
1247
|
-
],
|
|
1248
|
-
|
|
1247
|
+
], m.prototype, "label");
|
|
1248
|
+
je([
|
|
1249
1249
|
n()
|
|
1250
|
-
],
|
|
1251
|
-
|
|
1250
|
+
], m.prototype, "note");
|
|
1251
|
+
je([
|
|
1252
1252
|
n({ type: Boolean, reflect: !0 })
|
|
1253
|
-
],
|
|
1254
|
-
|
|
1253
|
+
], m.prototype, "disabled");
|
|
1254
|
+
je([
|
|
1255
1255
|
n({ type: Boolean, reflect: !0 })
|
|
1256
|
-
],
|
|
1257
|
-
const
|
|
1256
|
+
], m.prototype, "required");
|
|
1257
|
+
const Ve = 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
|
+
`, go = 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 ?
|
|
1353
|
+
var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, Dt = (r, e, o, s) => {
|
|
1354
|
+
for (var t = s > 1 ? void 0 : s ? sr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1355
1355
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1356
|
-
return s && t &&
|
|
1356
|
+
return s && t && rr(e, o, t), t;
|
|
1357
1357
|
};
|
|
1358
|
-
let
|
|
1358
|
+
let pe = class extends m {
|
|
1359
1359
|
constructor() {
|
|
1360
1360
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1361
1361
|
}
|
|
@@ -1391,8 +1391,8 @@ let fe = class extends y {
|
|
|
1391
1391
|
`;
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1395
|
-
|
|
1394
|
+
pe.styles = [
|
|
1395
|
+
go,
|
|
1396
1396
|
d`
|
|
1397
1397
|
.box {
|
|
1398
1398
|
flex: none;
|
|
@@ -1432,21 +1432,21 @@ fe.styles = [
|
|
|
1432
1432
|
}
|
|
1433
1433
|
`
|
|
1434
1434
|
];
|
|
1435
|
-
|
|
1435
|
+
Dt([
|
|
1436
1436
|
n({ type: Boolean, reflect: !0 })
|
|
1437
|
-
],
|
|
1438
|
-
|
|
1437
|
+
], pe.prototype, "checked", 2);
|
|
1438
|
+
Dt([
|
|
1439
1439
|
n()
|
|
1440
|
-
],
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
],
|
|
1444
|
-
var
|
|
1445
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1440
|
+
], pe.prototype, "value", 2);
|
|
1441
|
+
pe = Dt([
|
|
1442
|
+
h("vox-checkbox")
|
|
1443
|
+
], pe);
|
|
1444
|
+
var ar = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, re = (r, e, o, s) => {
|
|
1445
|
+
for (var t = s > 1 ? void 0 : s ? ir(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1446
1446
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1447
|
-
return s && t &&
|
|
1447
|
+
return s && t && ar(e, o, t), t;
|
|
1448
1448
|
};
|
|
1449
|
-
let
|
|
1449
|
+
let P = class extends m {
|
|
1450
1450
|
constructor() {
|
|
1451
1451
|
super(...arguments), this.multiple = !1, this.buttonLabel = "Choose a file", this.fileNames = [];
|
|
1452
1452
|
}
|
|
@@ -1472,7 +1472,7 @@ let L = class extends y {
|
|
|
1472
1472
|
<input
|
|
1473
1473
|
id="file"
|
|
1474
1474
|
type="file"
|
|
1475
|
-
accept=${
|
|
1475
|
+
accept=${Z(this.accept)}
|
|
1476
1476
|
?multiple=${this.multiple}
|
|
1477
1477
|
?disabled=${this.disabled}
|
|
1478
1478
|
@change=${this.handleChange}
|
|
@@ -1489,8 +1489,8 @@ let L = class extends y {
|
|
|
1489
1489
|
`;
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
|
|
1493
|
-
|
|
1492
|
+
P.styles = [
|
|
1493
|
+
Ve,
|
|
1494
1494
|
d`
|
|
1495
1495
|
input {
|
|
1496
1496
|
position: absolute;
|
|
@@ -1539,60 +1539,60 @@ L.styles = [
|
|
|
1539
1539
|
}
|
|
1540
1540
|
`
|
|
1541
1541
|
];
|
|
1542
|
-
|
|
1542
|
+
re([
|
|
1543
1543
|
n()
|
|
1544
|
-
],
|
|
1545
|
-
|
|
1544
|
+
], P.prototype, "accept", 2);
|
|
1545
|
+
re([
|
|
1546
1546
|
n({ type: Boolean })
|
|
1547
|
-
],
|
|
1548
|
-
|
|
1547
|
+
], P.prototype, "multiple", 2);
|
|
1548
|
+
re([
|
|
1549
1549
|
n({ attribute: "button-label" })
|
|
1550
|
-
],
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
],
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
],
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
],
|
|
1550
|
+
], P.prototype, "buttonLabel", 2);
|
|
1551
|
+
re([
|
|
1552
|
+
nt()
|
|
1553
|
+
], P.prototype, "fileNames", 2);
|
|
1554
|
+
re([
|
|
1555
|
+
jt("input")
|
|
1556
|
+
], P.prototype, "inputEl", 2);
|
|
1557
|
+
P = re([
|
|
1558
|
+
h("vox-file-input")
|
|
1559
|
+
], P);
|
|
1560
1560
|
/**
|
|
1561
1561
|
* @license
|
|
1562
1562
|
* Copyright 2020 Google LLC
|
|
1563
1563
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1564
1564
|
*/
|
|
1565
|
-
const
|
|
1565
|
+
const nr = (r) => r.strings === void 0, lr = {}, cr = (r, e = lr) => r._$AH = e;
|
|
1566
1566
|
/**
|
|
1567
1567
|
* @license
|
|
1568
1568
|
* Copyright 2020 Google LLC
|
|
1569
1569
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1570
1570
|
*/
|
|
1571
|
-
const
|
|
1571
|
+
const bo = xo(class extends fo {
|
|
1572
1572
|
constructor(r) {
|
|
1573
|
-
if (super(r), r.type !==
|
|
1574
|
-
if (!
|
|
1573
|
+
if (super(r), r.type !== L.PROPERTY && r.type !== L.ATTRIBUTE && r.type !== L.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
1574
|
+
if (!nr(r)) throw Error("`live` bindings can only contain a single expression");
|
|
1575
1575
|
}
|
|
1576
1576
|
render(r) {
|
|
1577
1577
|
return r;
|
|
1578
1578
|
}
|
|
1579
1579
|
update(r, [e]) {
|
|
1580
|
-
if (e ===
|
|
1580
|
+
if (e === y || e === x) return e;
|
|
1581
1581
|
const o = r.element, s = r.name;
|
|
1582
|
-
if (r.type ===
|
|
1583
|
-
if (e === o[s]) return
|
|
1584
|
-
} else if (r.type ===
|
|
1585
|
-
if (!!e === o.hasAttribute(s)) return
|
|
1586
|
-
} else if (r.type ===
|
|
1587
|
-
return
|
|
1582
|
+
if (r.type === L.PROPERTY) {
|
|
1583
|
+
if (e === o[s]) return y;
|
|
1584
|
+
} else if (r.type === L.BOOLEAN_ATTRIBUTE) {
|
|
1585
|
+
if (!!e === o.hasAttribute(s)) return y;
|
|
1586
|
+
} else if (r.type === L.ATTRIBUTE && o.getAttribute(s) === e + "") return y;
|
|
1587
|
+
return cr(r), e;
|
|
1588
1588
|
}
|
|
1589
1589
|
});
|
|
1590
|
-
var
|
|
1591
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1590
|
+
var dr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, se = (r, e, o, s) => {
|
|
1591
|
+
for (var t = s > 1 ? void 0 : s ? hr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1592
1592
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1593
|
-
return s && t &&
|
|
1593
|
+
return s && t && dr(e, o, t), t;
|
|
1594
1594
|
};
|
|
1595
|
-
let
|
|
1595
|
+
let A = class extends m {
|
|
1596
1596
|
constructor() {
|
|
1597
1597
|
super(...arguments), this.type = "text", this.value = "", this.readonly = !1;
|
|
1598
1598
|
}
|
|
@@ -1622,9 +1622,9 @@ let E = class extends y {
|
|
|
1622
1622
|
id="input"
|
|
1623
1623
|
class="control"
|
|
1624
1624
|
type=${this.type}
|
|
1625
|
-
.value=${
|
|
1626
|
-
placeholder=${
|
|
1627
|
-
autocomplete=${
|
|
1625
|
+
.value=${bo(this.value)}
|
|
1626
|
+
placeholder=${Z(this.placeholder)}
|
|
1627
|
+
autocomplete=${Z(this.autocomplete)}
|
|
1628
1628
|
?required=${this.required}
|
|
1629
1629
|
?readonly=${this.readonly}
|
|
1630
1630
|
?disabled=${this.disabled}
|
|
@@ -1637,31 +1637,31 @@ let E = class extends y {
|
|
|
1637
1637
|
`;
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
|
-
|
|
1641
|
-
|
|
1640
|
+
A.styles = Ve;
|
|
1641
|
+
se([
|
|
1642
1642
|
n()
|
|
1643
|
-
],
|
|
1644
|
-
|
|
1643
|
+
], A.prototype, "type", 2);
|
|
1644
|
+
se([
|
|
1645
1645
|
n()
|
|
1646
|
-
],
|
|
1647
|
-
|
|
1646
|
+
], A.prototype, "value", 2);
|
|
1647
|
+
se([
|
|
1648
1648
|
n()
|
|
1649
|
-
],
|
|
1650
|
-
|
|
1649
|
+
], A.prototype, "placeholder", 2);
|
|
1650
|
+
se([
|
|
1651
1651
|
n()
|
|
1652
|
-
],
|
|
1653
|
-
|
|
1652
|
+
], A.prototype, "autocomplete", 2);
|
|
1653
|
+
se([
|
|
1654
1654
|
n({ type: Boolean, reflect: !0 })
|
|
1655
|
-
],
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
],
|
|
1659
|
-
var
|
|
1660
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1655
|
+
], A.prototype, "readonly", 2);
|
|
1656
|
+
A = se([
|
|
1657
|
+
h("vox-input")
|
|
1658
|
+
], A);
|
|
1659
|
+
var pr = Object.getOwnPropertyDescriptor, vr = (r, e, o, s) => {
|
|
1660
|
+
for (var t = s > 1 ? void 0 : s ? pr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1661
1661
|
(i = r[a]) && (t = i(t) || t);
|
|
1662
1662
|
return t;
|
|
1663
1663
|
};
|
|
1664
|
-
let
|
|
1664
|
+
let $t = class extends p {
|
|
1665
1665
|
handleSlotChange(r) {
|
|
1666
1666
|
const e = r.target.assignedElements();
|
|
1667
1667
|
e.forEach((o, s) => {
|
|
@@ -1677,7 +1677,7 @@ let Ot = class extends h {
|
|
|
1677
1677
|
`;
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
|
-
|
|
1680
|
+
$t.styles = d`
|
|
1681
1681
|
:host {
|
|
1682
1682
|
display: block;
|
|
1683
1683
|
font-family: var(--vox-font-family-base);
|
|
@@ -1719,15 +1719,15 @@ Ot.styles = d`
|
|
|
1719
1719
|
border-left: none;
|
|
1720
1720
|
}
|
|
1721
1721
|
`;
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
],
|
|
1725
|
-
var
|
|
1726
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1722
|
+
$t = vr([
|
|
1723
|
+
h("vox-input-group")
|
|
1724
|
+
], $t);
|
|
1725
|
+
var ur = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, dt = (r, e, o, s) => {
|
|
1726
|
+
for (var t = s > 1 ? void 0 : s ? xr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1727
1727
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1728
|
-
return s && t &&
|
|
1728
|
+
return s && t && ur(e, o, t), t;
|
|
1729
1729
|
};
|
|
1730
|
-
let
|
|
1730
|
+
let G = class extends p {
|
|
1731
1731
|
constructor() {
|
|
1732
1732
|
super(...arguments), this.value = "", this.checked = !1, this.disabled = !1;
|
|
1733
1733
|
}
|
|
@@ -1756,7 +1756,7 @@ let ee = class extends h {
|
|
|
1756
1756
|
`;
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
|
-
|
|
1759
|
+
G.styles = d`
|
|
1760
1760
|
:host {
|
|
1761
1761
|
display: block;
|
|
1762
1762
|
font-family: var(--vox-font-family-base);
|
|
@@ -1805,24 +1805,24 @@ ee.styles = d`
|
|
|
1805
1805
|
outline-offset: 2px;
|
|
1806
1806
|
}
|
|
1807
1807
|
`;
|
|
1808
|
-
|
|
1808
|
+
dt([
|
|
1809
1809
|
n()
|
|
1810
|
-
],
|
|
1811
|
-
|
|
1810
|
+
], G.prototype, "value", 2);
|
|
1811
|
+
dt([
|
|
1812
1812
|
n({ type: Boolean, reflect: !0 })
|
|
1813
|
-
],
|
|
1814
|
-
|
|
1813
|
+
], G.prototype, "checked", 2);
|
|
1814
|
+
dt([
|
|
1815
1815
|
n({ type: Boolean, reflect: !0 })
|
|
1816
|
-
],
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
],
|
|
1820
|
-
var
|
|
1821
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1816
|
+
], G.prototype, "disabled", 2);
|
|
1817
|
+
G = dt([
|
|
1818
|
+
h("vox-radio")
|
|
1819
|
+
], G);
|
|
1820
|
+
var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, mo = (r, e, o, s) => {
|
|
1821
|
+
for (var t = s > 1 ? void 0 : s ? gr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1822
1822
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1823
|
-
return s && t &&
|
|
1823
|
+
return s && t && fr(e, o, t), t;
|
|
1824
1824
|
};
|
|
1825
|
-
let
|
|
1825
|
+
let Ge = class extends m {
|
|
1826
1826
|
constructor() {
|
|
1827
1827
|
super(...arguments), this.value = "";
|
|
1828
1828
|
}
|
|
@@ -1853,7 +1853,7 @@ let tt = class extends y {
|
|
|
1853
1853
|
!(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (r.stopPropagation(), this.value !== e.value && (this.value = e.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
|
|
1854
1854
|
}
|
|
1855
1855
|
handleKeydown(r) {
|
|
1856
|
-
var
|
|
1856
|
+
var u, v;
|
|
1857
1857
|
const o = {
|
|
1858
1858
|
ArrowDown: 1,
|
|
1859
1859
|
ArrowRight: 1,
|
|
@@ -1865,7 +1865,7 @@ let tt = class extends y {
|
|
|
1865
1865
|
const s = this.radios.filter((f) => !f.disabled);
|
|
1866
1866
|
if (s.length === 0) return;
|
|
1867
1867
|
const t = s.findIndex((f) => f.checked), a = (Math.max(t, 0) + o + s.length) % s.length, i = s[a];
|
|
1868
|
-
i.select(), (
|
|
1868
|
+
i.select(), (v = (u = i.shadowRoot) == null ? void 0 : u.querySelector(".radio")) == null || v.focus();
|
|
1869
1869
|
}
|
|
1870
1870
|
render() {
|
|
1871
1871
|
return l`
|
|
@@ -1885,8 +1885,8 @@ let tt = class extends y {
|
|
|
1885
1885
|
`;
|
|
1886
1886
|
}
|
|
1887
1887
|
};
|
|
1888
|
-
|
|
1889
|
-
|
|
1888
|
+
Ge.styles = [
|
|
1889
|
+
Ve,
|
|
1890
1890
|
d`
|
|
1891
1891
|
.options {
|
|
1892
1892
|
display: flex;
|
|
@@ -1896,18 +1896,18 @@ tt.styles = [
|
|
|
1896
1896
|
}
|
|
1897
1897
|
`
|
|
1898
1898
|
];
|
|
1899
|
-
|
|
1899
|
+
mo([
|
|
1900
1900
|
n()
|
|
1901
|
-
],
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
],
|
|
1905
|
-
var
|
|
1906
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1901
|
+
], Ge.prototype, "value", 2);
|
|
1902
|
+
Ge = mo([
|
|
1903
|
+
h("vox-radio-group")
|
|
1904
|
+
], Ge);
|
|
1905
|
+
var br = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, zt = (r, e, o, s) => {
|
|
1906
|
+
for (var t = s > 1 ? void 0 : s ? mr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1907
1907
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1908
|
-
return s && t &&
|
|
1908
|
+
return s && t && br(e, o, t), t;
|
|
1909
1909
|
};
|
|
1910
|
-
let
|
|
1910
|
+
let ve = class extends m {
|
|
1911
1911
|
constructor() {
|
|
1912
1912
|
super(...arguments), this.value = "";
|
|
1913
1913
|
}
|
|
@@ -1944,8 +1944,8 @@ let ge = class extends y {
|
|
|
1944
1944
|
`;
|
|
1945
1945
|
}
|
|
1946
1946
|
};
|
|
1947
|
-
|
|
1948
|
-
|
|
1947
|
+
ve.styles = [
|
|
1948
|
+
Ve,
|
|
1949
1949
|
d`
|
|
1950
1950
|
select.control {
|
|
1951
1951
|
appearance: none;
|
|
@@ -1957,21 +1957,21 @@ ge.styles = [
|
|
|
1957
1957
|
}
|
|
1958
1958
|
`
|
|
1959
1959
|
];
|
|
1960
|
-
|
|
1960
|
+
zt([
|
|
1961
1961
|
n()
|
|
1962
|
-
],
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
],
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
],
|
|
1969
|
-
var
|
|
1970
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1962
|
+
], ve.prototype, "value", 2);
|
|
1963
|
+
zt([
|
|
1964
|
+
jt("select")
|
|
1965
|
+
], ve.prototype, "selectEl", 2);
|
|
1966
|
+
ve = zt([
|
|
1967
|
+
h("vox-select")
|
|
1968
|
+
], ve);
|
|
1969
|
+
var yr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, Ht = (r, e, o, s) => {
|
|
1970
|
+
for (var t = s > 1 ? void 0 : s ? $r(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1971
1971
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1972
|
-
return s && t &&
|
|
1972
|
+
return s && t && yr(e, o, t), t;
|
|
1973
1973
|
};
|
|
1974
|
-
let
|
|
1974
|
+
let ue = class extends m {
|
|
1975
1975
|
constructor() {
|
|
1976
1976
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1977
1977
|
}
|
|
@@ -2000,8 +2000,8 @@ let be = class extends y {
|
|
|
2000
2000
|
`;
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
|
-
|
|
2004
|
-
|
|
2003
|
+
ue.styles = [
|
|
2004
|
+
go,
|
|
2005
2005
|
d`
|
|
2006
2006
|
.track {
|
|
2007
2007
|
flex: none;
|
|
@@ -2040,21 +2040,21 @@ be.styles = [
|
|
|
2040
2040
|
}
|
|
2041
2041
|
`
|
|
2042
2042
|
];
|
|
2043
|
-
|
|
2043
|
+
Ht([
|
|
2044
2044
|
n({ type: Boolean, reflect: !0 })
|
|
2045
|
-
],
|
|
2046
|
-
|
|
2045
|
+
], ue.prototype, "checked", 2);
|
|
2046
|
+
Ht([
|
|
2047
2047
|
n()
|
|
2048
|
-
],
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
],
|
|
2052
|
-
var
|
|
2053
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2048
|
+
], ue.prototype, "value", 2);
|
|
2049
|
+
ue = Ht([
|
|
2050
|
+
h("vox-switch")
|
|
2051
|
+
], ue);
|
|
2052
|
+
var wr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, De = (r, e, o, s) => {
|
|
2053
|
+
for (var t = s > 1 ? void 0 : s ? _r(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2054
2054
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2055
|
-
return s && t &&
|
|
2055
|
+
return s && t && wr(e, o, t), t;
|
|
2056
2056
|
};
|
|
2057
|
-
let
|
|
2057
|
+
let D = class extends m {
|
|
2058
2058
|
constructor() {
|
|
2059
2059
|
super(...arguments), this.value = "", this.rows = 4, this.readonly = !1;
|
|
2060
2060
|
}
|
|
@@ -2084,8 +2084,8 @@ let T = class extends y {
|
|
|
2084
2084
|
id="textarea"
|
|
2085
2085
|
class="control"
|
|
2086
2086
|
rows=${this.rows}
|
|
2087
|
-
.value=${
|
|
2088
|
-
placeholder=${
|
|
2087
|
+
.value=${bo(this.value)}
|
|
2088
|
+
placeholder=${Z(this.placeholder)}
|
|
2089
2089
|
?required=${this.required}
|
|
2090
2090
|
?readonly=${this.readonly}
|
|
2091
2091
|
?disabled=${this.disabled}
|
|
@@ -2097,8 +2097,8 @@ let T = class extends y {
|
|
|
2097
2097
|
`;
|
|
2098
2098
|
}
|
|
2099
2099
|
};
|
|
2100
|
-
|
|
2101
|
-
|
|
2100
|
+
D.styles = [
|
|
2101
|
+
Ve,
|
|
2102
2102
|
d`
|
|
2103
2103
|
textarea.control {
|
|
2104
2104
|
resize: vertical;
|
|
@@ -2106,27 +2106,27 @@ T.styles = [
|
|
|
2106
2106
|
}
|
|
2107
2107
|
`
|
|
2108
2108
|
];
|
|
2109
|
-
|
|
2109
|
+
De([
|
|
2110
2110
|
n()
|
|
2111
|
-
],
|
|
2112
|
-
|
|
2111
|
+
], D.prototype, "value", 2);
|
|
2112
|
+
De([
|
|
2113
2113
|
n()
|
|
2114
|
-
],
|
|
2115
|
-
|
|
2114
|
+
], D.prototype, "placeholder", 2);
|
|
2115
|
+
De([
|
|
2116
2116
|
n({ type: Number })
|
|
2117
|
-
],
|
|
2118
|
-
|
|
2117
|
+
], D.prototype, "rows", 2);
|
|
2118
|
+
De([
|
|
2119
2119
|
n({ type: Boolean, reflect: !0 })
|
|
2120
|
-
],
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
],
|
|
2124
|
-
var
|
|
2125
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2120
|
+
], D.prototype, "readonly", 2);
|
|
2121
|
+
D = De([
|
|
2122
|
+
h("vox-textarea")
|
|
2123
|
+
], D);
|
|
2124
|
+
var Cr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, ze = (r, e, o, s) => {
|
|
2125
|
+
for (var t = s > 1 ? void 0 : s ? Or(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2126
2126
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2127
|
-
return s && t &&
|
|
2127
|
+
return s && t && Cr(e, o, t), t;
|
|
2128
2128
|
};
|
|
2129
|
-
let
|
|
2129
|
+
let z = class extends p {
|
|
2130
2130
|
constructor() {
|
|
2131
2131
|
super(...arguments), this.alt = "", this.initials = "", this.size = "md";
|
|
2132
2132
|
}
|
|
@@ -2138,7 +2138,7 @@ let B = class extends h {
|
|
|
2138
2138
|
`;
|
|
2139
2139
|
}
|
|
2140
2140
|
};
|
|
2141
|
-
|
|
2141
|
+
z.styles = d`
|
|
2142
2142
|
:host {
|
|
2143
2143
|
display: inline-block;
|
|
2144
2144
|
}
|
|
@@ -2186,27 +2186,27 @@ B.styles = d`
|
|
|
2186
2186
|
font-size: 28px;
|
|
2187
2187
|
}
|
|
2188
2188
|
`;
|
|
2189
|
-
|
|
2189
|
+
ze([
|
|
2190
2190
|
n()
|
|
2191
|
-
],
|
|
2192
|
-
|
|
2191
|
+
], z.prototype, "src", 2);
|
|
2192
|
+
ze([
|
|
2193
2193
|
n()
|
|
2194
|
-
],
|
|
2195
|
-
|
|
2194
|
+
], z.prototype, "alt", 2);
|
|
2195
|
+
ze([
|
|
2196
2196
|
n()
|
|
2197
|
-
],
|
|
2198
|
-
|
|
2197
|
+
], z.prototype, "initials", 2);
|
|
2198
|
+
ze([
|
|
2199
2199
|
n({ reflect: !0 })
|
|
2200
|
-
],
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
],
|
|
2204
|
-
var
|
|
2205
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2200
|
+
], z.prototype, "size", 2);
|
|
2201
|
+
z = ze([
|
|
2202
|
+
h("vox-avatar")
|
|
2203
|
+
], z);
|
|
2204
|
+
var Mr = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, Tt = (r, e, o, s) => {
|
|
2205
|
+
for (var t = s > 1 ? void 0 : s ? Pr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2206
2206
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2207
|
-
return s && t &&
|
|
2207
|
+
return s && t && Mr(e, o, t), t;
|
|
2208
2208
|
};
|
|
2209
|
-
let
|
|
2209
|
+
let xe = class extends p {
|
|
2210
2210
|
constructor() {
|
|
2211
2211
|
super(...arguments), this.heading = "", this.reverse = !1, this.hasActions = !1;
|
|
2212
2212
|
}
|
|
@@ -2229,7 +2229,7 @@ let ye = class extends h {
|
|
|
2229
2229
|
`;
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
|
-
|
|
2232
|
+
xe.styles = d`
|
|
2233
2233
|
:host {
|
|
2234
2234
|
display: block;
|
|
2235
2235
|
font-family: var(--vox-font-family-base);
|
|
@@ -2291,21 +2291,21 @@ ye.styles = d`
|
|
|
2291
2291
|
display: none;
|
|
2292
2292
|
}
|
|
2293
2293
|
`;
|
|
2294
|
-
|
|
2294
|
+
Tt([
|
|
2295
2295
|
n()
|
|
2296
|
-
],
|
|
2297
|
-
|
|
2296
|
+
], xe.prototype, "heading", 2);
|
|
2297
|
+
Tt([
|
|
2298
2298
|
n({ type: Boolean, reflect: !0 })
|
|
2299
|
-
],
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
],
|
|
2303
|
-
var
|
|
2304
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2299
|
+
], xe.prototype, "reverse", 2);
|
|
2300
|
+
xe = Tt([
|
|
2301
|
+
h("vox-billboard")
|
|
2302
|
+
], xe);
|
|
2303
|
+
var Ar = Object.getOwnPropertyDescriptor, kr = (r, e, o, s) => {
|
|
2304
|
+
for (var t = s > 1 ? void 0 : s ? Ar(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2305
2305
|
(i = r[a]) && (t = i(t) || t);
|
|
2306
2306
|
return t;
|
|
2307
2307
|
};
|
|
2308
|
-
let
|
|
2308
|
+
let wt = class extends p {
|
|
2309
2309
|
render() {
|
|
2310
2310
|
return l`
|
|
2311
2311
|
<nav aria-label="Breadcrumbs">
|
|
@@ -2314,7 +2314,7 @@ let Mt = class extends h {
|
|
|
2314
2314
|
`;
|
|
2315
2315
|
}
|
|
2316
2316
|
};
|
|
2317
|
-
|
|
2317
|
+
wt.styles = d`
|
|
2318
2318
|
:host {
|
|
2319
2319
|
display: block;
|
|
2320
2320
|
font-family: var(--vox-font-family-base);
|
|
@@ -2348,15 +2348,15 @@ Mt.styles = d`
|
|
|
2348
2348
|
color: var(--vox-color-text-3);
|
|
2349
2349
|
}
|
|
2350
2350
|
`;
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
],
|
|
2354
|
-
var
|
|
2355
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2351
|
+
wt = kr([
|
|
2352
|
+
h("vox-breadcrumbs")
|
|
2353
|
+
], wt);
|
|
2354
|
+
var Lr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, ht = (r, e, o, s) => {
|
|
2355
|
+
for (var t = s > 1 ? void 0 : s ? Er(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2356
2356
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2357
|
-
return s && t &&
|
|
2357
|
+
return s && t && Lr(e, o, t), t;
|
|
2358
2358
|
};
|
|
2359
|
-
let
|
|
2359
|
+
let X = class extends p {
|
|
2360
2360
|
constructor() {
|
|
2361
2361
|
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (r) => {
|
|
2362
2362
|
this.mobileOpen && !r.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
@@ -2400,7 +2400,7 @@ let te = class extends h {
|
|
|
2400
2400
|
stroke-linejoin="round"
|
|
2401
2401
|
aria-hidden="true"
|
|
2402
2402
|
>
|
|
2403
|
-
${this.mobileOpen ?
|
|
2403
|
+
${this.mobileOpen ? V.close : V.menu}
|
|
2404
2404
|
</svg>
|
|
2405
2405
|
</button>
|
|
2406
2406
|
<div id="nav-wrap" class="nav-wrap${this.mobileOpen ? " open" : ""}">
|
|
@@ -2415,7 +2415,7 @@ let te = class extends h {
|
|
|
2415
2415
|
`;
|
|
2416
2416
|
}
|
|
2417
2417
|
};
|
|
2418
|
-
|
|
2418
|
+
X.styles = d`
|
|
2419
2419
|
:host {
|
|
2420
2420
|
display: block;
|
|
2421
2421
|
font-family: var(--vox-font-family-base);
|
|
@@ -2545,24 +2545,24 @@ te.styles = d`
|
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
2547
|
`;
|
|
2548
|
-
|
|
2548
|
+
ht([
|
|
2549
2549
|
n({ attribute: "site-title" })
|
|
2550
|
-
],
|
|
2551
|
-
|
|
2550
|
+
], X.prototype, "siteTitle", 2);
|
|
2551
|
+
ht([
|
|
2552
2552
|
n()
|
|
2553
|
-
],
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
],
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
],
|
|
2560
|
-
var
|
|
2561
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2553
|
+
], X.prototype, "href", 2);
|
|
2554
|
+
ht([
|
|
2555
|
+
nt()
|
|
2556
|
+
], X.prototype, "mobileOpen", 2);
|
|
2557
|
+
X = ht([
|
|
2558
|
+
h("vox-header")
|
|
2559
|
+
], X);
|
|
2560
|
+
var Sr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, He = (r, e, o, s) => {
|
|
2561
|
+
for (var t = s > 1 ? void 0 : s ? jr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2562
2562
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2563
|
-
return s && t &&
|
|
2563
|
+
return s && t && Sr(e, o, t), t;
|
|
2564
2564
|
};
|
|
2565
|
-
let
|
|
2565
|
+
let H = class extends p {
|
|
2566
2566
|
constructor() {
|
|
2567
2567
|
super(...arguments), this.previousLabel = "", this.nextLabel = "";
|
|
2568
2568
|
}
|
|
@@ -2585,7 +2585,7 @@ let N = class extends h {
|
|
|
2585
2585
|
`;
|
|
2586
2586
|
}
|
|
2587
2587
|
};
|
|
2588
|
-
|
|
2588
|
+
H.styles = d`
|
|
2589
2589
|
:host {
|
|
2590
2590
|
display: block;
|
|
2591
2591
|
font-family: var(--vox-font-family-base);
|
|
@@ -2635,27 +2635,27 @@ N.styles = d`
|
|
|
2635
2635
|
color: var(--vox-color-brand-1);
|
|
2636
2636
|
}
|
|
2637
2637
|
`;
|
|
2638
|
-
|
|
2638
|
+
He([
|
|
2639
2639
|
n({ attribute: "previous-href" })
|
|
2640
|
-
],
|
|
2641
|
-
|
|
2640
|
+
], H.prototype, "previousHref", 2);
|
|
2641
|
+
He([
|
|
2642
2642
|
n({ attribute: "previous-label" })
|
|
2643
|
-
],
|
|
2644
|
-
|
|
2643
|
+
], H.prototype, "previousLabel", 2);
|
|
2644
|
+
He([
|
|
2645
2645
|
n({ attribute: "next-href" })
|
|
2646
|
-
],
|
|
2647
|
-
|
|
2646
|
+
], H.prototype, "nextHref", 2);
|
|
2647
|
+
He([
|
|
2648
2648
|
n({ attribute: "next-label" })
|
|
2649
|
-
],
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
],
|
|
2653
|
-
var
|
|
2654
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2649
|
+
], H.prototype, "nextLabel", 2);
|
|
2650
|
+
H = He([
|
|
2651
|
+
h("vox-series-nav")
|
|
2652
|
+
], H);
|
|
2653
|
+
var Vr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, $ = (r, e, o, s) => {
|
|
2654
|
+
for (var t = s > 1 ? void 0 : s ? Dr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2655
2655
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2656
|
-
return s && t &&
|
|
2656
|
+
return s && t && Vr(e, o, t), t;
|
|
2657
2657
|
};
|
|
2658
|
-
let
|
|
2658
|
+
let J = class extends p {
|
|
2659
2659
|
constructor() {
|
|
2660
2660
|
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (r) => {
|
|
2661
2661
|
this.mobileOpen && !r.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
@@ -2694,7 +2694,7 @@ let oe = class extends h {
|
|
|
2694
2694
|
stroke-linejoin="round"
|
|
2695
2695
|
aria-hidden="true"
|
|
2696
2696
|
>
|
|
2697
|
-
${this.mobileOpen ?
|
|
2697
|
+
${this.mobileOpen ? V.close : V.menu}
|
|
2698
2698
|
</svg>
|
|
2699
2699
|
</button>
|
|
2700
2700
|
<nav
|
|
@@ -2708,7 +2708,7 @@ let oe = class extends h {
|
|
|
2708
2708
|
`;
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
|
-
|
|
2711
|
+
J.styles = d`
|
|
2712
2712
|
:host {
|
|
2713
2713
|
display: block;
|
|
2714
2714
|
font-family: var(--vox-font-family-base);
|
|
@@ -2768,19 +2768,19 @@ oe.styles = d`
|
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
2770
2770
|
`;
|
|
2771
|
-
|
|
2771
|
+
$([
|
|
2772
2772
|
n()
|
|
2773
|
-
],
|
|
2774
|
-
|
|
2773
|
+
], J.prototype, "label", 2);
|
|
2774
|
+
$([
|
|
2775
2775
|
n({ attribute: "toggle-label" })
|
|
2776
|
-
],
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
],
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
],
|
|
2783
|
-
let
|
|
2776
|
+
], J.prototype, "toggleLabel", 2);
|
|
2777
|
+
$([
|
|
2778
|
+
nt()
|
|
2779
|
+
], J.prototype, "mobileOpen", 2);
|
|
2780
|
+
J = $([
|
|
2781
|
+
h("vox-sidenav")
|
|
2782
|
+
], J);
|
|
2783
|
+
let fe = class extends p {
|
|
2784
2784
|
constructor() {
|
|
2785
2785
|
super(...arguments), this.heading = "", this.open = !1;
|
|
2786
2786
|
}
|
|
@@ -2803,7 +2803,7 @@ let me = class extends h {
|
|
|
2803
2803
|
`;
|
|
2804
2804
|
}
|
|
2805
2805
|
};
|
|
2806
|
-
|
|
2806
|
+
fe.styles = d`
|
|
2807
2807
|
:host {
|
|
2808
2808
|
display: block;
|
|
2809
2809
|
font-family: var(--vox-font-family-base);
|
|
@@ -2860,16 +2860,16 @@ me.styles = d`
|
|
|
2860
2860
|
display: flex;
|
|
2861
2861
|
}
|
|
2862
2862
|
`;
|
|
2863
|
-
|
|
2863
|
+
$([
|
|
2864
2864
|
n()
|
|
2865
|
-
],
|
|
2866
|
-
|
|
2865
|
+
], fe.prototype, "heading", 2);
|
|
2866
|
+
$([
|
|
2867
2867
|
n({ type: Boolean, reflect: !0 })
|
|
2868
|
-
],
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
],
|
|
2872
|
-
let
|
|
2868
|
+
], fe.prototype, "open", 2);
|
|
2869
|
+
fe = $([
|
|
2870
|
+
h("vox-sidenav-group")
|
|
2871
|
+
], fe);
|
|
2872
|
+
let ge = class extends p {
|
|
2873
2873
|
constructor() {
|
|
2874
2874
|
super(...arguments), this.href = "#", this.current = !1, this.hasIcon = !1;
|
|
2875
2875
|
}
|
|
@@ -2888,7 +2888,7 @@ let $e = class extends h {
|
|
|
2888
2888
|
`;
|
|
2889
2889
|
}
|
|
2890
2890
|
};
|
|
2891
|
-
|
|
2891
|
+
ge.styles = d`
|
|
2892
2892
|
:host {
|
|
2893
2893
|
display: block;
|
|
2894
2894
|
font-family: var(--vox-font-family-base);
|
|
@@ -2932,21 +2932,21 @@ $e.styles = d`
|
|
|
2932
2932
|
display: none;
|
|
2933
2933
|
}
|
|
2934
2934
|
`;
|
|
2935
|
-
|
|
2935
|
+
$([
|
|
2936
2936
|
n()
|
|
2937
|
-
],
|
|
2938
|
-
|
|
2937
|
+
], ge.prototype, "href", 2);
|
|
2938
|
+
$([
|
|
2939
2939
|
n({ type: Boolean, reflect: !0 })
|
|
2940
|
-
],
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
],
|
|
2944
|
-
var
|
|
2945
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2940
|
+
], ge.prototype, "current", 2);
|
|
2941
|
+
ge = $([
|
|
2942
|
+
h("vox-sidenav-item")
|
|
2943
|
+
], ge);
|
|
2944
|
+
var zr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, yo = (r, e, o, s) => {
|
|
2945
|
+
for (var t = s > 1 ? void 0 : s ? Hr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2946
2946
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2947
|
-
return s && t &&
|
|
2947
|
+
return s && t && zr(e, o, t), t;
|
|
2948
2948
|
};
|
|
2949
|
-
let
|
|
2949
|
+
let Xe = class extends p {
|
|
2950
2950
|
constructor() {
|
|
2951
2951
|
super(...arguments), this.label = "Secondary";
|
|
2952
2952
|
}
|
|
@@ -2958,7 +2958,7 @@ let ot = class extends h {
|
|
|
2958
2958
|
`;
|
|
2959
2959
|
}
|
|
2960
2960
|
};
|
|
2961
|
-
|
|
2961
|
+
Xe.styles = d`
|
|
2962
2962
|
:host {
|
|
2963
2963
|
display: block;
|
|
2964
2964
|
font-family: var(--vox-font-family-base);
|
|
@@ -2993,18 +2993,18 @@ ot.styles = d`
|
|
|
2993
2993
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2994
2994
|
}
|
|
2995
2995
|
`;
|
|
2996
|
-
|
|
2996
|
+
yo([
|
|
2997
2997
|
n()
|
|
2998
|
-
],
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
],
|
|
3002
|
-
var
|
|
3003
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
2998
|
+
], Xe.prototype, "label", 2);
|
|
2999
|
+
Xe = yo([
|
|
3000
|
+
h("vox-subnav")
|
|
3001
|
+
], Xe);
|
|
3002
|
+
var Tr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, I = (r, e, o, s) => {
|
|
3003
|
+
for (var t = s > 1 ? void 0 : s ? Br(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3004
3004
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3005
|
-
return s && t &&
|
|
3005
|
+
return s && t && Tr(e, o, t), t;
|
|
3006
3006
|
};
|
|
3007
|
-
let
|
|
3007
|
+
let _t = class extends p {
|
|
3008
3008
|
get tabs() {
|
|
3009
3009
|
return [...this.querySelectorAll("vox-tab")];
|
|
3010
3010
|
}
|
|
@@ -3050,7 +3050,7 @@ let At = class extends h {
|
|
|
3050
3050
|
`;
|
|
3051
3051
|
}
|
|
3052
3052
|
};
|
|
3053
|
-
|
|
3053
|
+
_t.styles = d`
|
|
3054
3054
|
:host {
|
|
3055
3055
|
display: block;
|
|
3056
3056
|
}
|
|
@@ -3061,10 +3061,10 @@ At.styles = d`
|
|
|
3061
3061
|
border-bottom: 1px solid var(--vox-color-divider);
|
|
3062
3062
|
}
|
|
3063
3063
|
`;
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
],
|
|
3067
|
-
let
|
|
3064
|
+
_t = I([
|
|
3065
|
+
h("vox-tabs")
|
|
3066
|
+
], _t);
|
|
3067
|
+
let be = class extends p {
|
|
3068
3068
|
constructor() {
|
|
3069
3069
|
super(...arguments), this.panel = "", this.selected = !1;
|
|
3070
3070
|
}
|
|
@@ -3091,7 +3091,7 @@ let we = class extends h {
|
|
|
3091
3091
|
`;
|
|
3092
3092
|
}
|
|
3093
3093
|
};
|
|
3094
|
-
|
|
3094
|
+
be.styles = d`
|
|
3095
3095
|
:host {
|
|
3096
3096
|
display: block;
|
|
3097
3097
|
font-family: var(--vox-font-family-base);
|
|
@@ -3126,16 +3126,16 @@ we.styles = d`
|
|
|
3126
3126
|
border-bottom-color: var(--vox-color-brand-1);
|
|
3127
3127
|
}
|
|
3128
3128
|
`;
|
|
3129
|
-
|
|
3129
|
+
I([
|
|
3130
3130
|
n()
|
|
3131
|
-
],
|
|
3132
|
-
|
|
3131
|
+
], be.prototype, "panel", 2);
|
|
3132
|
+
I([
|
|
3133
3133
|
n({ type: Boolean, reflect: !0 })
|
|
3134
|
-
],
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
],
|
|
3138
|
-
let
|
|
3134
|
+
], be.prototype, "selected", 2);
|
|
3135
|
+
be = I([
|
|
3136
|
+
h("vox-tab")
|
|
3137
|
+
], be);
|
|
3138
|
+
let me = class extends p {
|
|
3139
3139
|
constructor() {
|
|
3140
3140
|
super(...arguments), this.name = "", this.active = !1;
|
|
3141
3141
|
}
|
|
@@ -3143,7 +3143,7 @@ let _e = class extends h {
|
|
|
3143
3143
|
return l`<div role="tabpanel"><slot></slot></div>`;
|
|
3144
3144
|
}
|
|
3145
3145
|
};
|
|
3146
|
-
|
|
3146
|
+
me.styles = d`
|
|
3147
3147
|
:host {
|
|
3148
3148
|
display: none;
|
|
3149
3149
|
font-family: var(--vox-font-family-base);
|
|
@@ -3157,21 +3157,21 @@ _e.styles = d`
|
|
|
3157
3157
|
display: block;
|
|
3158
3158
|
}
|
|
3159
3159
|
`;
|
|
3160
|
-
|
|
3160
|
+
I([
|
|
3161
3161
|
n()
|
|
3162
|
-
],
|
|
3163
|
-
|
|
3162
|
+
], me.prototype, "name", 2);
|
|
3163
|
+
I([
|
|
3164
3164
|
n({ type: Boolean, reflect: !0 })
|
|
3165
|
-
],
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
],
|
|
3169
|
-
var
|
|
3170
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3165
|
+
], me.prototype, "active", 2);
|
|
3166
|
+
me = I([
|
|
3167
|
+
h("vox-tab-panel")
|
|
3168
|
+
], me);
|
|
3169
|
+
var Nr = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, Te = (r, e, o, s) => {
|
|
3170
|
+
for (var t = s > 1 ? void 0 : s ? Rr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3171
3171
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3172
|
-
return s && t &&
|
|
3172
|
+
return s && t && Nr(e, o, t), t;
|
|
3173
3173
|
};
|
|
3174
|
-
let
|
|
3174
|
+
let Je = class extends p {
|
|
3175
3175
|
constructor() {
|
|
3176
3176
|
super(...arguments), this.heading = "On this page";
|
|
3177
3177
|
}
|
|
@@ -3184,7 +3184,7 @@ let rt = class extends h {
|
|
|
3184
3184
|
`;
|
|
3185
3185
|
}
|
|
3186
3186
|
};
|
|
3187
|
-
|
|
3187
|
+
Je.styles = d`
|
|
3188
3188
|
:host {
|
|
3189
3189
|
display: block;
|
|
3190
3190
|
font-family: var(--vox-font-family-base);
|
|
@@ -3205,13 +3205,13 @@ rt.styles = d`
|
|
|
3205
3205
|
border-left: 1px solid var(--vox-color-divider);
|
|
3206
3206
|
}
|
|
3207
3207
|
`;
|
|
3208
|
-
|
|
3208
|
+
Te([
|
|
3209
3209
|
n()
|
|
3210
|
-
],
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
],
|
|
3214
|
-
let
|
|
3210
|
+
], Je.prototype, "heading", 2);
|
|
3211
|
+
Je = Te([
|
|
3212
|
+
h("vox-toc")
|
|
3213
|
+
], Je);
|
|
3214
|
+
let ye = class extends p {
|
|
3215
3215
|
constructor() {
|
|
3216
3216
|
super(...arguments), this.href = "#", this.current = !1, this.hasChildren = !1;
|
|
3217
3217
|
}
|
|
@@ -3230,7 +3230,7 @@ let Ce = class extends h {
|
|
|
3230
3230
|
`;
|
|
3231
3231
|
}
|
|
3232
3232
|
};
|
|
3233
|
-
|
|
3233
|
+
ye.styles = d`
|
|
3234
3234
|
:host {
|
|
3235
3235
|
display: block;
|
|
3236
3236
|
font-family: var(--vox-font-family-base);
|
|
@@ -3276,21 +3276,21 @@ Ce.styles = d`
|
|
|
3276
3276
|
display: none;
|
|
3277
3277
|
}
|
|
3278
3278
|
`;
|
|
3279
|
-
|
|
3279
|
+
Te([
|
|
3280
3280
|
n()
|
|
3281
|
-
],
|
|
3282
|
-
|
|
3281
|
+
], ye.prototype, "href", 2);
|
|
3282
|
+
Te([
|
|
3283
3283
|
n({ type: Boolean, reflect: !0 })
|
|
3284
|
-
],
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
],
|
|
3288
|
-
var
|
|
3289
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3284
|
+
], ye.prototype, "current", 2);
|
|
3285
|
+
ye = Te([
|
|
3286
|
+
h("vox-toc-item")
|
|
3287
|
+
], ye);
|
|
3288
|
+
var Ir = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, Be = (r, e, o, s) => {
|
|
3289
|
+
for (var t = s > 1 ? void 0 : s ? Ur(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3290
3290
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3291
|
-
return s && t &&
|
|
3291
|
+
return s && t && Ir(e, o, t), t;
|
|
3292
3292
|
};
|
|
3293
|
-
let
|
|
3293
|
+
let T = class extends p {
|
|
3294
3294
|
constructor() {
|
|
3295
3295
|
super(...arguments), this.heading = "", this.open = !1, this.lightDismiss = !1, this.hasFooter = !1;
|
|
3296
3296
|
}
|
|
@@ -3338,7 +3338,7 @@ let R = class extends h {
|
|
|
3338
3338
|
`;
|
|
3339
3339
|
}
|
|
3340
3340
|
};
|
|
3341
|
-
|
|
3341
|
+
T.styles = d`
|
|
3342
3342
|
dialog {
|
|
3343
3343
|
box-sizing: border-box;
|
|
3344
3344
|
width: min(90vw, 480px);
|
|
@@ -3425,27 +3425,27 @@ R.styles = d`
|
|
|
3425
3425
|
margin-bottom: 0;
|
|
3426
3426
|
}
|
|
3427
3427
|
`;
|
|
3428
|
-
|
|
3428
|
+
Be([
|
|
3429
3429
|
n()
|
|
3430
|
-
],
|
|
3431
|
-
|
|
3430
|
+
], T.prototype, "heading", 2);
|
|
3431
|
+
Be([
|
|
3432
3432
|
n({ type: Boolean })
|
|
3433
|
-
],
|
|
3434
|
-
|
|
3433
|
+
], T.prototype, "open", 2);
|
|
3434
|
+
Be([
|
|
3435
3435
|
n({ type: Boolean, attribute: "light-dismiss" })
|
|
3436
|
-
],
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
],
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
],
|
|
3443
|
-
var
|
|
3444
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3436
|
+
], T.prototype, "lightDismiss", 2);
|
|
3437
|
+
Be([
|
|
3438
|
+
jt("dialog")
|
|
3439
|
+
], T.prototype, "dialogEl", 2);
|
|
3440
|
+
T = Be([
|
|
3441
|
+
h("vox-dialog")
|
|
3442
|
+
], T);
|
|
3443
|
+
var qr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, Bt = (r, e, o, s) => {
|
|
3444
|
+
for (var t = s > 1 ? void 0 : s ? Fr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3445
3445
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3446
|
-
return s && t &&
|
|
3446
|
+
return s && t && qr(e, o, t), t;
|
|
3447
3447
|
};
|
|
3448
|
-
let
|
|
3448
|
+
let $e = class extends p {
|
|
3449
3449
|
constructor() {
|
|
3450
3450
|
super(...arguments), this.summary = "Show details", this.open = !1;
|
|
3451
3451
|
}
|
|
@@ -3472,7 +3472,7 @@ let Oe = class extends h {
|
|
|
3472
3472
|
`;
|
|
3473
3473
|
}
|
|
3474
3474
|
};
|
|
3475
|
-
|
|
3475
|
+
$e.styles = d`
|
|
3476
3476
|
:host {
|
|
3477
3477
|
display: block;
|
|
3478
3478
|
font-family: var(--vox-font-family-base);
|
|
@@ -3524,21 +3524,21 @@ Oe.styles = d`
|
|
|
3524
3524
|
display: none;
|
|
3525
3525
|
}
|
|
3526
3526
|
`;
|
|
3527
|
-
|
|
3527
|
+
Bt([
|
|
3528
3528
|
n()
|
|
3529
|
-
],
|
|
3530
|
-
|
|
3529
|
+
], $e.prototype, "summary", 2);
|
|
3530
|
+
Bt([
|
|
3531
3531
|
n({ type: Boolean, reflect: !0 })
|
|
3532
|
-
],
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
],
|
|
3536
|
-
var
|
|
3537
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3532
|
+
], $e.prototype, "open", 2);
|
|
3533
|
+
$e = Bt([
|
|
3534
|
+
h("vox-disclosure")
|
|
3535
|
+
], $e);
|
|
3536
|
+
var Zr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, Nt = (r, e, o, s) => {
|
|
3537
|
+
for (var t = s > 1 ? void 0 : s ? Kr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3538
3538
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3539
|
-
return s && t &&
|
|
3539
|
+
return s && t && Zr(e, o, t), t;
|
|
3540
3540
|
};
|
|
3541
|
-
let
|
|
3541
|
+
let we = class extends p {
|
|
3542
3542
|
constructor() {
|
|
3543
3543
|
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (r) => {
|
|
3544
3544
|
this.open && !r.composedPath().includes(this) && (this.open = !1);
|
|
@@ -3585,10 +3585,16 @@ let Me = class extends h {
|
|
|
3585
3585
|
`;
|
|
3586
3586
|
}
|
|
3587
3587
|
};
|
|
3588
|
-
|
|
3588
|
+
we.styles = d`
|
|
3589
3589
|
:host {
|
|
3590
3590
|
position: relative;
|
|
3591
3591
|
display: inline-block;
|
|
3592
|
+
/* Without this, a flex/grid container's default stretch alignment
|
|
3593
|
+
grows the host to fill the cross axis while the trigger button
|
|
3594
|
+
inside stays content-sized — and since the menu's "top: 100%" is
|
|
3595
|
+
measured against the host's own box, it then opens far below the
|
|
3596
|
+
trigger instead of right under it. */
|
|
3597
|
+
align-self: flex-start;
|
|
3592
3598
|
font-family: var(--vox-font-family-base);
|
|
3593
3599
|
}
|
|
3594
3600
|
|
|
@@ -3684,95 +3690,253 @@ Me.styles = d`
|
|
|
3684
3690
|
border-top: 1px solid var(--vox-color-divider);
|
|
3685
3691
|
}
|
|
3686
3692
|
`;
|
|
3687
|
-
|
|
3693
|
+
Nt([
|
|
3688
3694
|
n()
|
|
3689
|
-
],
|
|
3690
|
-
|
|
3695
|
+
], we.prototype, "label", 2);
|
|
3696
|
+
Nt([
|
|
3691
3697
|
n({ type: Boolean, reflect: !0 })
|
|
3692
|
-
],
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
],
|
|
3696
|
-
var
|
|
3697
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3698
|
+
], we.prototype, "open", 2);
|
|
3699
|
+
we = Nt([
|
|
3700
|
+
h("vox-dropdown")
|
|
3701
|
+
], we);
|
|
3702
|
+
var Wr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, pt = (r, e, o, s) => {
|
|
3703
|
+
for (var t = s > 1 ? void 0 : s ? Gr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3698
3704
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3699
|
-
return s && t &&
|
|
3705
|
+
return s && t && Wr(e, o, t), t;
|
|
3700
3706
|
};
|
|
3701
|
-
let
|
|
3707
|
+
let Y = class extends p {
|
|
3702
3708
|
constructor() {
|
|
3703
|
-
super(...arguments), this.
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
o !== e && (o.open = !1);
|
|
3709
|
+
super(...arguments), this.placement = "bottom-end", this.open = !1, this.handleOutsideClick = (r) => {
|
|
3710
|
+
this.open && !r.composedPath().includes(this) && this.close();
|
|
3711
|
+
}, this.handleKeydown = (r) => {
|
|
3712
|
+
var e;
|
|
3713
|
+
if (r.key === "Escape" && this.open) {
|
|
3714
|
+
this.close(), (e = this.renderRoot.querySelector(".trigger")) == null || e.focus();
|
|
3715
|
+
return;
|
|
3711
3716
|
}
|
|
3712
|
-
|
|
3717
|
+
if ((r.key === "ArrowDown" || r.key === "ArrowUp") && this.open) {
|
|
3718
|
+
r.preventDefault();
|
|
3719
|
+
const o = [...this.querySelectorAll("a, button")].filter(
|
|
3720
|
+
(u) => u.slot !== "trigger"
|
|
3721
|
+
);
|
|
3722
|
+
if (o.length === 0) return;
|
|
3723
|
+
const s = document.activeElement, t = o.indexOf(s), a = r.key === "ArrowDown" ? 1 : -1;
|
|
3724
|
+
o[(Math.max(t, 0) + a + o.length) % o.length].focus();
|
|
3725
|
+
}
|
|
3726
|
+
};
|
|
3713
3727
|
}
|
|
3714
|
-
|
|
3715
|
-
|
|
3728
|
+
connectedCallback() {
|
|
3729
|
+
super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
|
|
3716
3730
|
}
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
:host {
|
|
3720
|
-
display: block;
|
|
3721
|
-
border: 1px solid var(--vox-color-divider);
|
|
3722
|
-
border-radius: var(--vox-radius-md);
|
|
3723
|
-
overflow: hidden;
|
|
3724
|
-
}
|
|
3725
|
-
|
|
3726
|
-
::slotted(vox-accordion-item:not(:first-child)) {
|
|
3727
|
-
border-top: 1px solid var(--vox-color-divider);
|
|
3728
|
-
}
|
|
3729
|
-
`;
|
|
3730
|
-
qe([
|
|
3731
|
-
n({ type: Boolean })
|
|
3732
|
-
], st.prototype, "single", 2);
|
|
3733
|
-
st = qe([
|
|
3734
|
-
p("vox-accordion")
|
|
3735
|
-
], st);
|
|
3736
|
-
let Ae = class extends h {
|
|
3737
|
-
constructor() {
|
|
3738
|
-
super(...arguments), this.heading = "", this.open = !1;
|
|
3731
|
+
disconnectedCallback() {
|
|
3732
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
|
|
3739
3733
|
}
|
|
3740
3734
|
toggle() {
|
|
3741
|
-
this.open
|
|
3742
|
-
|
|
3743
|
-
|
|
3735
|
+
this.open ? this.close() : this.open = !0;
|
|
3736
|
+
}
|
|
3737
|
+
close() {
|
|
3738
|
+
this.open && (this.open = !1, this.dispatchEvent(new CustomEvent("vox-close", { bubbles: !0, composed: !0 })));
|
|
3744
3739
|
}
|
|
3745
3740
|
render() {
|
|
3746
3741
|
return l`
|
|
3747
|
-
<
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
</h3>
|
|
3759
|
-
<div class="panel" ?hidden=${!this.open}>
|
|
3760
|
-
<slot></slot>
|
|
3742
|
+
<button
|
|
3743
|
+
class="trigger"
|
|
3744
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
3745
|
+
aria-haspopup="true"
|
|
3746
|
+
aria-label=${this.label ?? x}
|
|
3747
|
+
@click=${this.toggle}
|
|
3748
|
+
>
|
|
3749
|
+
<slot name="trigger"></slot>
|
|
3750
|
+
</button>
|
|
3751
|
+
<div class="menu" role="menu">
|
|
3752
|
+
<slot @click=${() => this.close()}></slot>
|
|
3761
3753
|
</div>
|
|
3762
3754
|
`;
|
|
3763
3755
|
}
|
|
3764
3756
|
};
|
|
3765
|
-
|
|
3757
|
+
Y.styles = d`
|
|
3766
3758
|
:host {
|
|
3767
|
-
|
|
3759
|
+
position: relative;
|
|
3760
|
+
display: inline-block;
|
|
3761
|
+
/* Without this, a flex/grid container's default stretch alignment
|
|
3762
|
+
grows the host to fill the cross axis (e.g. a tall sibling, or a
|
|
3763
|
+
container given a min-height for layout purposes) while the
|
|
3764
|
+
trigger button inside stays content-sized — and since the menu's
|
|
3765
|
+
"top: 100%" is measured against the host's own box, it then opens
|
|
3766
|
+
far below the trigger instead of right under it. */
|
|
3767
|
+
align-self: flex-start;
|
|
3768
3768
|
font-family: var(--vox-font-family-base);
|
|
3769
3769
|
}
|
|
3770
3770
|
|
|
3771
3771
|
.trigger {
|
|
3772
|
-
display: flex;
|
|
3772
|
+
display: inline-flex;
|
|
3773
3773
|
align-items: center;
|
|
3774
|
-
|
|
3775
|
-
|
|
3774
|
+
background: none;
|
|
3775
|
+
border: none;
|
|
3776
|
+
padding: 0;
|
|
3777
|
+
border-radius: var(--vox-radius-md);
|
|
3778
|
+
color: inherit;
|
|
3779
|
+
font: inherit;
|
|
3780
|
+
cursor: pointer;
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
.trigger:focus-visible {
|
|
3784
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
3785
|
+
outline-offset: 2px;
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
.menu {
|
|
3789
|
+
position: absolute;
|
|
3790
|
+
top: calc(100% + 4px);
|
|
3791
|
+
z-index: 10;
|
|
3792
|
+
min-width: 180px;
|
|
3793
|
+
display: none;
|
|
3794
|
+
flex-direction: column;
|
|
3795
|
+
padding: var(--vox-space-2);
|
|
3796
|
+
background-color: var(--vox-color-bg-elv);
|
|
3797
|
+
border: 1px solid var(--vox-color-divider);
|
|
3798
|
+
border-radius: var(--vox-radius-md);
|
|
3799
|
+
box-shadow: var(--vox-shadow-2);
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
:host([placement='bottom-start']) .menu {
|
|
3803
|
+
left: 0;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
:host([placement='bottom-end']) .menu {
|
|
3807
|
+
right: 0;
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
:host([open]) .menu {
|
|
3811
|
+
display: flex;
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
::slotted(a),
|
|
3815
|
+
::slotted(button) {
|
|
3816
|
+
display: block;
|
|
3817
|
+
width: 100%;
|
|
3818
|
+
box-sizing: border-box;
|
|
3819
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
3820
|
+
background: none;
|
|
3821
|
+
border: none;
|
|
3822
|
+
border-radius: var(--vox-radius-sm);
|
|
3823
|
+
color: var(--vox-color-text-1);
|
|
3824
|
+
font-family: inherit;
|
|
3825
|
+
font-size: 14px;
|
|
3826
|
+
text-align: left;
|
|
3827
|
+
text-decoration: none;
|
|
3828
|
+
cursor: pointer;
|
|
3829
|
+
white-space: nowrap;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
::slotted(a:hover),
|
|
3833
|
+
::slotted(button:hover),
|
|
3834
|
+
::slotted(a:focus-visible),
|
|
3835
|
+
::slotted(button:focus-visible) {
|
|
3836
|
+
background-color: var(--vox-color-brand-soft);
|
|
3837
|
+
color: var(--vox-color-brand-1);
|
|
3838
|
+
outline: none;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
::slotted(hr) {
|
|
3842
|
+
width: 100%;
|
|
3843
|
+
margin: var(--vox-space-1) 0;
|
|
3844
|
+
border: none;
|
|
3845
|
+
border-top: 1px solid var(--vox-color-divider);
|
|
3846
|
+
}
|
|
3847
|
+
`;
|
|
3848
|
+
pt([
|
|
3849
|
+
n()
|
|
3850
|
+
], Y.prototype, "label", 2);
|
|
3851
|
+
pt([
|
|
3852
|
+
n({ reflect: !0 })
|
|
3853
|
+
], Y.prototype, "placement", 2);
|
|
3854
|
+
pt([
|
|
3855
|
+
n({ type: Boolean, reflect: !0 })
|
|
3856
|
+
], Y.prototype, "open", 2);
|
|
3857
|
+
Y = pt([
|
|
3858
|
+
h("vox-menu")
|
|
3859
|
+
], Y);
|
|
3860
|
+
var Xr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, Ne = (r, e, o, s) => {
|
|
3861
|
+
for (var t = s > 1 ? void 0 : s ? Jr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3862
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3863
|
+
return s && t && Xr(e, o, t), t;
|
|
3864
|
+
};
|
|
3865
|
+
let Ye = class extends p {
|
|
3866
|
+
constructor() {
|
|
3867
|
+
super(...arguments), this.single = !1;
|
|
3868
|
+
}
|
|
3869
|
+
handleToggle(r) {
|
|
3870
|
+
if (!this.single) return;
|
|
3871
|
+
const e = r.target;
|
|
3872
|
+
e.open && this.querySelectorAll("vox-accordion-item").forEach(
|
|
3873
|
+
(o) => {
|
|
3874
|
+
o !== e && (o.open = !1);
|
|
3875
|
+
}
|
|
3876
|
+
);
|
|
3877
|
+
}
|
|
3878
|
+
render() {
|
|
3879
|
+
return l`<slot @vox-toggle=${this.handleToggle}></slot>`;
|
|
3880
|
+
}
|
|
3881
|
+
};
|
|
3882
|
+
Ye.styles = d`
|
|
3883
|
+
:host {
|
|
3884
|
+
display: block;
|
|
3885
|
+
border: 1px solid var(--vox-color-divider);
|
|
3886
|
+
border-radius: var(--vox-radius-md);
|
|
3887
|
+
overflow: hidden;
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
::slotted(vox-accordion-item:not(:first-child)) {
|
|
3891
|
+
border-top: 1px solid var(--vox-color-divider);
|
|
3892
|
+
}
|
|
3893
|
+
`;
|
|
3894
|
+
Ne([
|
|
3895
|
+
n({ type: Boolean })
|
|
3896
|
+
], Ye.prototype, "single", 2);
|
|
3897
|
+
Ye = Ne([
|
|
3898
|
+
h("vox-accordion")
|
|
3899
|
+
], Ye);
|
|
3900
|
+
let _e = class extends p {
|
|
3901
|
+
constructor() {
|
|
3902
|
+
super(...arguments), this.heading = "", this.open = !1;
|
|
3903
|
+
}
|
|
3904
|
+
toggle() {
|
|
3905
|
+
this.open = !this.open, this.dispatchEvent(
|
|
3906
|
+
new CustomEvent("vox-toggle", { bubbles: !0, composed: !0 })
|
|
3907
|
+
);
|
|
3908
|
+
}
|
|
3909
|
+
render() {
|
|
3910
|
+
return l`
|
|
3911
|
+
<h3 style="margin:0">
|
|
3912
|
+
<button
|
|
3913
|
+
class="trigger"
|
|
3914
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
3915
|
+
@click=${this.toggle}
|
|
3916
|
+
>
|
|
3917
|
+
${this.heading}
|
|
3918
|
+
<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
3919
|
+
<path d="m6 9 6 6 6-6" />
|
|
3920
|
+
</svg>
|
|
3921
|
+
</button>
|
|
3922
|
+
</h3>
|
|
3923
|
+
<div class="panel" ?hidden=${!this.open}>
|
|
3924
|
+
<slot></slot>
|
|
3925
|
+
</div>
|
|
3926
|
+
`;
|
|
3927
|
+
}
|
|
3928
|
+
};
|
|
3929
|
+
_e.styles = d`
|
|
3930
|
+
:host {
|
|
3931
|
+
display: block;
|
|
3932
|
+
font-family: var(--vox-font-family-base);
|
|
3933
|
+
}
|
|
3934
|
+
|
|
3935
|
+
.trigger {
|
|
3936
|
+
display: flex;
|
|
3937
|
+
align-items: center;
|
|
3938
|
+
justify-content: space-between;
|
|
3939
|
+
gap: var(--vox-space-3);
|
|
3776
3940
|
width: 100%;
|
|
3777
3941
|
padding: var(--vox-space-4);
|
|
3778
3942
|
background: none;
|
|
@@ -3824,27 +3988,27 @@ Ae.styles = d`
|
|
|
3824
3988
|
margin-bottom: 0;
|
|
3825
3989
|
}
|
|
3826
3990
|
`;
|
|
3827
|
-
|
|
3991
|
+
Ne([
|
|
3828
3992
|
n()
|
|
3829
|
-
],
|
|
3830
|
-
|
|
3993
|
+
], _e.prototype, "heading", 2);
|
|
3994
|
+
Ne([
|
|
3831
3995
|
n({ type: Boolean, reflect: !0 })
|
|
3832
|
-
],
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
],
|
|
3836
|
-
var
|
|
3837
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
3996
|
+
], _e.prototype, "open", 2);
|
|
3997
|
+
_e = Ne([
|
|
3998
|
+
h("vox-accordion-item")
|
|
3999
|
+
], _e);
|
|
4000
|
+
var Yr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, Re = (r, e, o, s) => {
|
|
4001
|
+
for (var t = s > 1 ? void 0 : s ? Qr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3838
4002
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3839
|
-
return s && t &&
|
|
4003
|
+
return s && t && Yr(e, o, t), t;
|
|
3840
4004
|
};
|
|
3841
|
-
const
|
|
4005
|
+
const es = {
|
|
3842
4006
|
info: "info",
|
|
3843
4007
|
success: "check-circle",
|
|
3844
4008
|
warning: "warning",
|
|
3845
4009
|
danger: "x-circle"
|
|
3846
4010
|
};
|
|
3847
|
-
let
|
|
4011
|
+
let B = class extends p {
|
|
3848
4012
|
constructor() {
|
|
3849
4013
|
super(...arguments), this.variant = "info", this.heading = "", this.dismissible = !1, this.open = !0;
|
|
3850
4014
|
}
|
|
@@ -3866,7 +4030,7 @@ let U = class extends h {
|
|
|
3866
4030
|
stroke-linejoin="round"
|
|
3867
4031
|
aria-hidden="true"
|
|
3868
4032
|
>
|
|
3869
|
-
${
|
|
4033
|
+
${V[es[this.variant]]}
|
|
3870
4034
|
</svg>
|
|
3871
4035
|
<div class="body">
|
|
3872
4036
|
${this.heading ? l`<p class="heading">${this.heading}</p>` : x}
|
|
@@ -3883,7 +4047,7 @@ let U = class extends h {
|
|
|
3883
4047
|
`;
|
|
3884
4048
|
}
|
|
3885
4049
|
};
|
|
3886
|
-
|
|
4050
|
+
B.styles = d`
|
|
3887
4051
|
:host {
|
|
3888
4052
|
display: block;
|
|
3889
4053
|
font-family: var(--vox-font-family-base);
|
|
@@ -4002,27 +4166,27 @@ U.styles = d`
|
|
|
4002
4166
|
margin-bottom: 0;
|
|
4003
4167
|
}
|
|
4004
4168
|
`;
|
|
4005
|
-
|
|
4169
|
+
Re([
|
|
4006
4170
|
n()
|
|
4007
|
-
],
|
|
4008
|
-
|
|
4171
|
+
], B.prototype, "variant", 2);
|
|
4172
|
+
Re([
|
|
4009
4173
|
n()
|
|
4010
|
-
],
|
|
4011
|
-
|
|
4174
|
+
], B.prototype, "heading", 2);
|
|
4175
|
+
Re([
|
|
4012
4176
|
n({ type: Boolean })
|
|
4013
|
-
],
|
|
4014
|
-
|
|
4177
|
+
], B.prototype, "dismissible", 2);
|
|
4178
|
+
Re([
|
|
4015
4179
|
n({ type: Boolean, reflect: !0 })
|
|
4016
|
-
],
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
],
|
|
4020
|
-
var
|
|
4021
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4180
|
+
], B.prototype, "open", 2);
|
|
4181
|
+
B = Re([
|
|
4182
|
+
h("vox-alert")
|
|
4183
|
+
], B);
|
|
4184
|
+
var ts = Object.defineProperty, os = Object.getOwnPropertyDescriptor, $o = (r, e, o, s) => {
|
|
4185
|
+
for (var t = s > 1 ? void 0 : s ? os(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4022
4186
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4023
|
-
return s && t &&
|
|
4187
|
+
return s && t && ts(e, o, t), t;
|
|
4024
4188
|
};
|
|
4025
|
-
let
|
|
4189
|
+
let Qe = class extends p {
|
|
4026
4190
|
constructor() {
|
|
4027
4191
|
super(...arguments), this.variant = "brand";
|
|
4028
4192
|
}
|
|
@@ -4030,7 +4194,7 @@ let at = class extends h {
|
|
|
4030
4194
|
return l`<span class="badge ${this.variant}"><slot></slot></span>`;
|
|
4031
4195
|
}
|
|
4032
4196
|
};
|
|
4033
|
-
|
|
4197
|
+
Qe.styles = d`
|
|
4034
4198
|
:host {
|
|
4035
4199
|
display: inline-block;
|
|
4036
4200
|
}
|
|
@@ -4072,18 +4236,18 @@ at.styles = d`
|
|
|
4072
4236
|
color: var(--vox-color-text-2);
|
|
4073
4237
|
}
|
|
4074
4238
|
`;
|
|
4075
|
-
|
|
4239
|
+
$o([
|
|
4076
4240
|
n()
|
|
4077
|
-
],
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
],
|
|
4081
|
-
var
|
|
4082
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4241
|
+
], Qe.prototype, "variant", 2);
|
|
4242
|
+
Qe = $o([
|
|
4243
|
+
h("vox-badge")
|
|
4244
|
+
], Qe);
|
|
4245
|
+
var rs = Object.defineProperty, ss = Object.getOwnPropertyDescriptor, Rt = (r, e, o, s) => {
|
|
4246
|
+
for (var t = s > 1 ? void 0 : s ? ss(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4083
4247
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4084
|
-
return s && t &&
|
|
4248
|
+
return s && t && rs(e, o, t), t;
|
|
4085
4249
|
};
|
|
4086
|
-
let
|
|
4250
|
+
let Ce = class extends p {
|
|
4087
4251
|
constructor() {
|
|
4088
4252
|
super(...arguments), this.date = "";
|
|
4089
4253
|
}
|
|
@@ -4097,7 +4261,7 @@ let Pe = class extends h {
|
|
|
4097
4261
|
`;
|
|
4098
4262
|
}
|
|
4099
4263
|
};
|
|
4100
|
-
|
|
4264
|
+
Ce.styles = d`
|
|
4101
4265
|
:host {
|
|
4102
4266
|
display: inline-block;
|
|
4103
4267
|
font-family: var(--vox-font-family-base);
|
|
@@ -4133,32 +4297,32 @@ Pe.styles = d`
|
|
|
4133
4297
|
color: var(--vox-color-text-1);
|
|
4134
4298
|
}
|
|
4135
4299
|
`;
|
|
4136
|
-
|
|
4300
|
+
Rt([
|
|
4137
4301
|
n()
|
|
4138
|
-
],
|
|
4139
|
-
|
|
4302
|
+
], Ce.prototype, "date", 2);
|
|
4303
|
+
Rt([
|
|
4140
4304
|
n()
|
|
4141
|
-
],
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
],
|
|
4145
|
-
var
|
|
4146
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4305
|
+
], Ce.prototype, "locale", 2);
|
|
4306
|
+
Ce = Rt([
|
|
4307
|
+
h("vox-calendar-tile")
|
|
4308
|
+
], Ce);
|
|
4309
|
+
var as = Object.defineProperty, is = Object.getOwnPropertyDescriptor, It = (r, e, o, s) => {
|
|
4310
|
+
for (var t = s > 1 ? void 0 : s ? is(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4147
4311
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4148
|
-
return s && t &&
|
|
4312
|
+
return s && t && as(e, o, t), t;
|
|
4149
4313
|
};
|
|
4150
|
-
const
|
|
4314
|
+
const ns = {
|
|
4151
4315
|
info: "Info",
|
|
4152
4316
|
tip: "Tip",
|
|
4153
4317
|
warning: "Warning",
|
|
4154
4318
|
danger: "Danger"
|
|
4155
|
-
},
|
|
4319
|
+
}, ls = {
|
|
4156
4320
|
info: "info",
|
|
4157
4321
|
tip: "check-circle",
|
|
4158
4322
|
warning: "warning",
|
|
4159
4323
|
danger: "x-circle"
|
|
4160
4324
|
};
|
|
4161
|
-
let
|
|
4325
|
+
let Oe = class extends p {
|
|
4162
4326
|
constructor() {
|
|
4163
4327
|
super(...arguments), this.variant = "info";
|
|
4164
4328
|
}
|
|
@@ -4175,17 +4339,17 @@ let ke = class extends h {
|
|
|
4175
4339
|
stroke-linejoin="round"
|
|
4176
4340
|
aria-hidden="true"
|
|
4177
4341
|
>
|
|
4178
|
-
${
|
|
4342
|
+
${V[ls[this.variant]]}
|
|
4179
4343
|
</svg>
|
|
4180
4344
|
<div class="content">
|
|
4181
|
-
<p class="heading">${this.heading ??
|
|
4345
|
+
<p class="heading">${this.heading ?? ns[this.variant]}</p>
|
|
4182
4346
|
<slot></slot>
|
|
4183
4347
|
</div>
|
|
4184
4348
|
</div>
|
|
4185
4349
|
`;
|
|
4186
4350
|
}
|
|
4187
4351
|
};
|
|
4188
|
-
|
|
4352
|
+
Oe.styles = d`
|
|
4189
4353
|
:host {
|
|
4190
4354
|
display: block;
|
|
4191
4355
|
}
|
|
@@ -4268,21 +4432,21 @@ ke.styles = d`
|
|
|
4268
4432
|
margin-bottom: 0;
|
|
4269
4433
|
}
|
|
4270
4434
|
`;
|
|
4271
|
-
|
|
4435
|
+
It([
|
|
4272
4436
|
n()
|
|
4273
|
-
],
|
|
4274
|
-
|
|
4437
|
+
], Oe.prototype, "variant", 2);
|
|
4438
|
+
It([
|
|
4275
4439
|
n()
|
|
4276
|
-
],
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
],
|
|
4280
|
-
var
|
|
4281
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4440
|
+
], Oe.prototype, "heading", 2);
|
|
4441
|
+
Oe = It([
|
|
4442
|
+
h("vox-callout")
|
|
4443
|
+
], Oe);
|
|
4444
|
+
var cs = Object.defineProperty, ds = Object.getOwnPropertyDescriptor, vt = (r, e, o, s) => {
|
|
4445
|
+
for (var t = s > 1 ? void 0 : s ? ds(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4282
4446
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4283
|
-
return s && t &&
|
|
4447
|
+
return s && t && cs(e, o, t), t;
|
|
4284
4448
|
};
|
|
4285
|
-
let
|
|
4449
|
+
let Q = class extends p {
|
|
4286
4450
|
constructor() {
|
|
4287
4451
|
super(...arguments), this.heading = "", this.hasIcon = !1, this.hasBadge = !1, this.hasFooter = !1;
|
|
4288
4452
|
}
|
|
@@ -4315,7 +4479,7 @@ let re = class extends h {
|
|
|
4315
4479
|
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? x}>${r}</a>` : l`<div class="card">${r}</div>`;
|
|
4316
4480
|
}
|
|
4317
4481
|
};
|
|
4318
|
-
|
|
4482
|
+
Q.styles = d`
|
|
4319
4483
|
:host {
|
|
4320
4484
|
display: block;
|
|
4321
4485
|
}
|
|
@@ -4400,663 +4564,24 @@ re.styles = d`
|
|
|
4400
4564
|
display: none;
|
|
4401
4565
|
}
|
|
4402
4566
|
`;
|
|
4403
|
-
|
|
4404
|
-
n()
|
|
4405
|
-
], re.prototype, "heading", 2);
|
|
4406
|
-
ft([
|
|
4407
|
-
n()
|
|
4408
|
-
], re.prototype, "href", 2);
|
|
4409
|
-
ft([
|
|
4567
|
+
vt([
|
|
4410
4568
|
n()
|
|
4411
|
-
],
|
|
4412
|
-
|
|
4413
|
-
p("vox-card")
|
|
4414
|
-
], re);
|
|
4415
|
-
function Eo(r, e) {
|
|
4416
|
-
let o = e;
|
|
4417
|
-
for (; o < r.length && (r[o] === " " || r[o] === " "); ) o++;
|
|
4418
|
-
return o;
|
|
4419
|
-
}
|
|
4420
|
-
function F(r, e) {
|
|
4421
|
-
return {
|
|
4422
|
-
re: r,
|
|
4423
|
-
type: (o, s, t) => e.has(o) ? "keyword" : s[Eo(s, t)] === "(" ? "function" : "plain"
|
|
4424
|
-
};
|
|
4425
|
-
}
|
|
4426
|
-
function Pt(r) {
|
|
4427
|
-
return {
|
|
4428
|
-
re: r,
|
|
4429
|
-
type: (e, o, s) => o[Eo(o, s)] === ":" ? "property" : "string"
|
|
4430
|
-
};
|
|
4431
|
-
}
|
|
4432
|
-
const Fe = /-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, S = /"(?:\\.|[^"\\])*"/y, K = /'(?:\\.|[^'\\])*'/y, gt = /#.*/y, ys = /\/\/.*/y, So = /\/\*[\s\S]*?\*\//y;
|
|
4433
|
-
function ho(r, e, o) {
|
|
4434
|
-
const s = r[r.length - 1];
|
|
4435
|
-
s && s.type === e ? s.text += o : r.push({ type: e, text: o });
|
|
4436
|
-
}
|
|
4437
|
-
function ms(r, e) {
|
|
4438
|
-
const o = [];
|
|
4439
|
-
let s = 0;
|
|
4440
|
-
for (; s < r.length; ) {
|
|
4441
|
-
let t = !1;
|
|
4442
|
-
for (const a of e) {
|
|
4443
|
-
a.re.lastIndex = s;
|
|
4444
|
-
const i = a.re.exec(r);
|
|
4445
|
-
if (i && i.index === s && i[0].length > 0) {
|
|
4446
|
-
const v = i[0], u = typeof a.type == "function" ? a.type(v, r, s + v.length) : a.type;
|
|
4447
|
-
ho(o, u, v), s += v.length, t = !0;
|
|
4448
|
-
break;
|
|
4449
|
-
}
|
|
4450
|
-
}
|
|
4451
|
-
t || (ho(o, "plain", r[s]), s++);
|
|
4452
|
-
}
|
|
4453
|
-
return o;
|
|
4454
|
-
}
|
|
4455
|
-
const $s = /* @__PURE__ */ new Set([
|
|
4456
|
-
"if",
|
|
4457
|
-
"then",
|
|
4458
|
-
"elif",
|
|
4459
|
-
"else",
|
|
4460
|
-
"fi",
|
|
4461
|
-
"for",
|
|
4462
|
-
"while",
|
|
4463
|
-
"until",
|
|
4464
|
-
"do",
|
|
4465
|
-
"done",
|
|
4466
|
-
"case",
|
|
4467
|
-
"esac",
|
|
4468
|
-
"in",
|
|
4469
|
-
"function",
|
|
4470
|
-
"select",
|
|
4471
|
-
"time",
|
|
4472
|
-
"return",
|
|
4473
|
-
"exit",
|
|
4474
|
-
"break",
|
|
4475
|
-
"continue",
|
|
4476
|
-
"local",
|
|
4477
|
-
"export",
|
|
4478
|
-
"readonly",
|
|
4479
|
-
"declare",
|
|
4480
|
-
"unset",
|
|
4481
|
-
"shift",
|
|
4482
|
-
"eval",
|
|
4483
|
-
"exec",
|
|
4484
|
-
"trap",
|
|
4485
|
-
"set",
|
|
4486
|
-
"source",
|
|
4487
|
-
"alias",
|
|
4488
|
-
"unalias",
|
|
4489
|
-
"true",
|
|
4490
|
-
"false"
|
|
4491
|
-
]), We = [
|
|
4492
|
-
{ re: gt, type: "comment" },
|
|
4493
|
-
{ re: /\$\{[^}]*\}|\$[A-Za-z_]\w*|\$[0-9@#?$!*_-]/y, type: "function" },
|
|
4494
|
-
{ re: S, type: "string" },
|
|
4495
|
-
{ re: K, type: "string" },
|
|
4496
|
-
{ re: Fe, type: "number" },
|
|
4497
|
-
F(/[A-Za-z_][\w-]*/y, $s)
|
|
4498
|
-
], ws = /* @__PURE__ */ new Set([
|
|
4499
|
-
"true",
|
|
4500
|
-
"false",
|
|
4501
|
-
"yes",
|
|
4502
|
-
"no",
|
|
4503
|
-
"null",
|
|
4504
|
-
"on",
|
|
4505
|
-
"off",
|
|
4506
|
-
"True",
|
|
4507
|
-
"False",
|
|
4508
|
-
"Yes",
|
|
4509
|
-
"No",
|
|
4510
|
-
"Null",
|
|
4511
|
-
"On",
|
|
4512
|
-
"Off",
|
|
4513
|
-
"TRUE",
|
|
4514
|
-
"FALSE",
|
|
4515
|
-
"YES",
|
|
4516
|
-
"NO",
|
|
4517
|
-
"NULL",
|
|
4518
|
-
"ON",
|
|
4519
|
-
"OFF"
|
|
4520
|
-
]), vo = [
|
|
4521
|
-
{ re: gt, type: "comment" },
|
|
4522
|
-
Pt(S),
|
|
4523
|
-
Pt(K),
|
|
4524
|
-
{ re: /[A-Za-z_][\w .-]*?(?=:(\s|$))/y, type: "property" },
|
|
4525
|
-
{ re: /[&*!][A-Za-z_][\w:.]*/y, type: "function" },
|
|
4526
|
-
{ re: Fe, type: "number" },
|
|
4527
|
-
F(/[A-Za-z_][\w-]*/y, ws)
|
|
4528
|
-
], _s = [
|
|
4529
|
-
Pt(S),
|
|
4530
|
-
{ re: Fe, type: "number" },
|
|
4531
|
-
F(/[A-Za-z_]\w*/y, /* @__PURE__ */ new Set(["true", "false", "null"]))
|
|
4532
|
-
], Cs = /* @__PURE__ */ new Set([
|
|
4533
|
-
"const",
|
|
4534
|
-
"let",
|
|
4535
|
-
"var",
|
|
4536
|
-
"function",
|
|
4537
|
-
"return",
|
|
4538
|
-
"if",
|
|
4539
|
-
"else",
|
|
4540
|
-
"for",
|
|
4541
|
-
"while",
|
|
4542
|
-
"do",
|
|
4543
|
-
"switch",
|
|
4544
|
-
"case",
|
|
4545
|
-
"default",
|
|
4546
|
-
"break",
|
|
4547
|
-
"continue",
|
|
4548
|
-
"class",
|
|
4549
|
-
"extends",
|
|
4550
|
-
"super",
|
|
4551
|
-
"new",
|
|
4552
|
-
"this",
|
|
4553
|
-
"import",
|
|
4554
|
-
"export",
|
|
4555
|
-
"from",
|
|
4556
|
-
"as",
|
|
4557
|
-
"async",
|
|
4558
|
-
"await",
|
|
4559
|
-
"try",
|
|
4560
|
-
"catch",
|
|
4561
|
-
"finally",
|
|
4562
|
-
"throw",
|
|
4563
|
-
"typeof",
|
|
4564
|
-
"instanceof",
|
|
4565
|
-
"in",
|
|
4566
|
-
"of",
|
|
4567
|
-
"yield",
|
|
4568
|
-
"static",
|
|
4569
|
-
"get",
|
|
4570
|
-
"set",
|
|
4571
|
-
"void",
|
|
4572
|
-
"delete",
|
|
4573
|
-
"null",
|
|
4574
|
-
"undefined",
|
|
4575
|
-
"true",
|
|
4576
|
-
"false",
|
|
4577
|
-
"public",
|
|
4578
|
-
"private",
|
|
4579
|
-
"protected",
|
|
4580
|
-
"readonly",
|
|
4581
|
-
"interface",
|
|
4582
|
-
"type",
|
|
4583
|
-
"enum",
|
|
4584
|
-
"implements",
|
|
4585
|
-
"namespace",
|
|
4586
|
-
"declare",
|
|
4587
|
-
"abstract",
|
|
4588
|
-
"keyof",
|
|
4589
|
-
"satisfies"
|
|
4590
|
-
]), Xe = [
|
|
4591
|
-
{ re: ys, type: "comment" },
|
|
4592
|
-
{ re: So, type: "comment" },
|
|
4593
|
-
{ re: S, type: "string" },
|
|
4594
|
-
{ re: K, type: "string" },
|
|
4595
|
-
{ re: /`(?:\\.|[^`\\])*`/y, type: "string" },
|
|
4596
|
-
{ re: /-?\b0[xXbBoO][0-9a-fA-F]+\b|-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, type: "number" },
|
|
4597
|
-
F(/[A-Za-z_$][\w$]*/y, Cs)
|
|
4598
|
-
], Os = [
|
|
4599
|
-
{ re: So, type: "comment" },
|
|
4600
|
-
{ re: S, type: "string" },
|
|
4601
|
-
{ re: K, type: "string" },
|
|
4602
|
-
{ re: /@[\w-]+/y, type: "keyword" },
|
|
4603
|
-
{ re: /!important/y, type: "keyword" },
|
|
4604
|
-
{ re: /#[0-9a-fA-F]{3,8}\b/y, type: "number" },
|
|
4605
|
-
{ re: /-?\b\d+\.?\d*[a-zA-Z%]*\b/y, type: "number" },
|
|
4606
|
-
{ re: /[a-zA-Z-]+(?=\s*:)/y, type: "property" },
|
|
4607
|
-
F(/[a-zA-Z-]+/y, /* @__PURE__ */ new Set())
|
|
4608
|
-
], uo = [
|
|
4609
|
-
{ re: /<!--[\s\S]*?-->/y, type: "comment" },
|
|
4610
|
-
{ re: /<\/?[a-zA-Z][\w:-]*/y, type: "tag" },
|
|
4611
|
-
{ re: /[a-zA-Z-][\w-]*(?=\s*=)/y, type: "property" },
|
|
4612
|
-
{ re: S, type: "string" },
|
|
4613
|
-
{ re: K, type: "string" },
|
|
4614
|
-
{ re: /&[\w#]+;/y, type: "keyword" }
|
|
4615
|
-
], Ms = /* @__PURE__ */ new Set([
|
|
4616
|
-
"def",
|
|
4617
|
-
"end",
|
|
4618
|
-
"if",
|
|
4619
|
-
"elsif",
|
|
4620
|
-
"else",
|
|
4621
|
-
"unless",
|
|
4622
|
-
"while",
|
|
4623
|
-
"until",
|
|
4624
|
-
"for",
|
|
4625
|
-
"in",
|
|
4626
|
-
"do",
|
|
4627
|
-
"class",
|
|
4628
|
-
"module",
|
|
4629
|
-
"begin",
|
|
4630
|
-
"rescue",
|
|
4631
|
-
"ensure",
|
|
4632
|
-
"raise",
|
|
4633
|
-
"return",
|
|
4634
|
-
"yield",
|
|
4635
|
-
"break",
|
|
4636
|
-
"next",
|
|
4637
|
-
"redo",
|
|
4638
|
-
"retry",
|
|
4639
|
-
"case",
|
|
4640
|
-
"when",
|
|
4641
|
-
"then",
|
|
4642
|
-
"and",
|
|
4643
|
-
"or",
|
|
4644
|
-
"not",
|
|
4645
|
-
"nil",
|
|
4646
|
-
"true",
|
|
4647
|
-
"false",
|
|
4648
|
-
"self",
|
|
4649
|
-
"super",
|
|
4650
|
-
"require",
|
|
4651
|
-
"require_relative",
|
|
4652
|
-
"include",
|
|
4653
|
-
"extend",
|
|
4654
|
-
"attr_accessor",
|
|
4655
|
-
"attr_reader",
|
|
4656
|
-
"attr_writer",
|
|
4657
|
-
"private",
|
|
4658
|
-
"protected",
|
|
4659
|
-
"public",
|
|
4660
|
-
"lambda",
|
|
4661
|
-
"proc",
|
|
4662
|
-
"new"
|
|
4663
|
-
]), xo = [
|
|
4664
|
-
{ re: gt, type: "comment" },
|
|
4665
|
-
{ re: /:[A-Za-z_]\w*[?!]?/y, type: "string" },
|
|
4666
|
-
{ re: /@{1,2}[A-Za-z_]\w*|\$[A-Za-z_]\w*/y, type: "function" },
|
|
4667
|
-
{ re: S, type: "string" },
|
|
4668
|
-
{ re: K, type: "string" },
|
|
4669
|
-
{ re: Fe, type: "number" },
|
|
4670
|
-
{ re: /[A-Z]\w*/y, type: "property" },
|
|
4671
|
-
F(/[a-z_]\w*[?!]?/y, Ms)
|
|
4672
|
-
], As = /* @__PURE__ */ new Set([
|
|
4673
|
-
"class",
|
|
4674
|
-
"define",
|
|
4675
|
-
"node",
|
|
4676
|
-
"inherits",
|
|
4677
|
-
"if",
|
|
4678
|
-
"elsif",
|
|
4679
|
-
"else",
|
|
4680
|
-
"unless",
|
|
4681
|
-
"case",
|
|
4682
|
-
"and",
|
|
4683
|
-
"or",
|
|
4684
|
-
"in",
|
|
4685
|
-
"undef",
|
|
4686
|
-
"true",
|
|
4687
|
-
"false",
|
|
4688
|
-
"default",
|
|
4689
|
-
"import",
|
|
4690
|
-
"include",
|
|
4691
|
-
"require",
|
|
4692
|
-
"contain",
|
|
4693
|
-
"function",
|
|
4694
|
-
"type",
|
|
4695
|
-
"application",
|
|
4696
|
-
"produces",
|
|
4697
|
-
"consumes",
|
|
4698
|
-
"private",
|
|
4699
|
-
"return",
|
|
4700
|
-
"break",
|
|
4701
|
-
"next",
|
|
4702
|
-
"each",
|
|
4703
|
-
"map",
|
|
4704
|
-
"filter",
|
|
4705
|
-
"reduce",
|
|
4706
|
-
"with",
|
|
4707
|
-
"String",
|
|
4708
|
-
"Integer",
|
|
4709
|
-
"Boolean",
|
|
4710
|
-
"Array",
|
|
4711
|
-
"Hash",
|
|
4712
|
-
"Optional",
|
|
4713
|
-
"Enum",
|
|
4714
|
-
"Variant",
|
|
4715
|
-
"Numeric",
|
|
4716
|
-
"Float",
|
|
4717
|
-
"Undef",
|
|
4718
|
-
"Any",
|
|
4719
|
-
"Pattern",
|
|
4720
|
-
"Regexp",
|
|
4721
|
-
"Sensitive",
|
|
4722
|
-
"Struct",
|
|
4723
|
-
"Tuple",
|
|
4724
|
-
"Type",
|
|
4725
|
-
"Callable",
|
|
4726
|
-
"Data",
|
|
4727
|
-
"Scalar"
|
|
4728
|
-
]), fo = [
|
|
4729
|
-
{ re: gt, type: "comment" },
|
|
4730
|
-
{ re: S, type: "string" },
|
|
4731
|
-
{ re: K, type: "string" },
|
|
4732
|
-
{ re: /\$[\w:]+/y, type: "function" },
|
|
4733
|
-
{ re: /[a-zA-Z_][\w:]*(?=\s*\{)/y, type: "tag" },
|
|
4734
|
-
{ re: /[a-z_]\w*(?=\s*=>)/y, type: "property" },
|
|
4735
|
-
{ re: Fe, type: "number" },
|
|
4736
|
-
F(/[A-Za-z_][\w:]*/y, As)
|
|
4737
|
-
], Ps = {
|
|
4738
|
-
bash: We,
|
|
4739
|
-
sh: We,
|
|
4740
|
-
shell: We,
|
|
4741
|
-
zsh: We,
|
|
4742
|
-
yaml: vo,
|
|
4743
|
-
yml: vo,
|
|
4744
|
-
json: _s,
|
|
4745
|
-
javascript: Xe,
|
|
4746
|
-
js: Xe,
|
|
4747
|
-
typescript: Xe,
|
|
4748
|
-
ts: Xe,
|
|
4749
|
-
css: Os,
|
|
4750
|
-
html: uo,
|
|
4751
|
-
xml: uo,
|
|
4752
|
-
ruby: xo,
|
|
4753
|
-
rb: xo,
|
|
4754
|
-
puppet: fo,
|
|
4755
|
-
pp: fo
|
|
4756
|
-
}, ks = {
|
|
4757
|
-
bash: "Bash",
|
|
4758
|
-
sh: "Shell",
|
|
4759
|
-
shell: "Shell",
|
|
4760
|
-
zsh: "Zsh",
|
|
4761
|
-
yaml: "YAML",
|
|
4762
|
-
yml: "YAML",
|
|
4763
|
-
json: "JSON",
|
|
4764
|
-
javascript: "JavaScript",
|
|
4765
|
-
js: "JavaScript",
|
|
4766
|
-
typescript: "TypeScript",
|
|
4767
|
-
ts: "TypeScript",
|
|
4768
|
-
css: "CSS",
|
|
4769
|
-
html: "HTML",
|
|
4770
|
-
xml: "XML",
|
|
4771
|
-
ruby: "Ruby",
|
|
4772
|
-
rb: "Ruby",
|
|
4773
|
-
puppet: "Puppet",
|
|
4774
|
-
pp: "Puppet",
|
|
4775
|
-
plaintext: "Plain Text",
|
|
4776
|
-
text: "Plain Text"
|
|
4777
|
-
};
|
|
4778
|
-
function Ls(r, e) {
|
|
4779
|
-
const o = Ps[e];
|
|
4780
|
-
return o ? ms(r, o) : [{ type: "plain", text: r }];
|
|
4781
|
-
}
|
|
4782
|
-
var Es = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, O = (r, e, o, s) => {
|
|
4783
|
-
for (var t = s > 1 ? void 0 : s ? Ss(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4784
|
-
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4785
|
-
return s && t && Es(e, o, t), t;
|
|
4786
|
-
};
|
|
4787
|
-
function js(r) {
|
|
4788
|
-
const e = r.split(`
|
|
4789
|
-
`);
|
|
4790
|
-
for (; e.length && e[0].trim() === ""; ) e.shift();
|
|
4791
|
-
for (; e.length && e[e.length - 1].trim() === ""; ) e.pop();
|
|
4792
|
-
const o = e.filter((t) => t.trim() !== "").map((t) => {
|
|
4793
|
-
var a;
|
|
4794
|
-
return ((a = t.match(/^[ \t]*/)) == null ? void 0 : a[0].length) ?? 0;
|
|
4795
|
-
}), s = o.length ? Math.min(...o) : 0;
|
|
4796
|
-
return e.map((t) => t.slice(s)).join(`
|
|
4797
|
-
`);
|
|
4798
|
-
}
|
|
4799
|
-
function zs(r) {
|
|
4800
|
-
const e = [[]];
|
|
4801
|
-
for (const o of r)
|
|
4802
|
-
o.text.split(`
|
|
4803
|
-
`).forEach((s, t) => {
|
|
4804
|
-
t > 0 && e.push([]), s && e[e.length - 1].push({ type: o.type, text: s });
|
|
4805
|
-
});
|
|
4806
|
-
return e;
|
|
4807
|
-
}
|
|
4808
|
-
let $ = class extends h {
|
|
4809
|
-
constructor() {
|
|
4810
|
-
super(...arguments), this.language = "", this.filename = "", this.lineNumbers = !1, this.noCopy = !1, this.noHeader = !1, this.noBorder = !1, this._code = "", this._copied = !1;
|
|
4811
|
-
}
|
|
4812
|
-
disconnectedCallback() {
|
|
4813
|
-
super.disconnectedCallback(), clearTimeout(this._copyResetTimer);
|
|
4814
|
-
}
|
|
4815
|
-
_handleSlotChange(r) {
|
|
4816
|
-
const o = r.target.assignedNodes({ flatten: !0 }).map((s) => s.textContent ?? "").join("");
|
|
4817
|
-
this._code = js(o);
|
|
4818
|
-
}
|
|
4819
|
-
async _copy() {
|
|
4820
|
-
var r;
|
|
4821
|
-
try {
|
|
4822
|
-
await navigator.clipboard.writeText(this._code);
|
|
4823
|
-
} catch {
|
|
4824
|
-
const e = document.createElement("textarea");
|
|
4825
|
-
e.value = this._code, e.style.position = "fixed", e.style.opacity = "0", (r = this.shadowRoot) == null || r.appendChild(e), e.select(), document.execCommand("copy"), e.remove();
|
|
4826
|
-
}
|
|
4827
|
-
this._copied = !0, clearTimeout(this._copyResetTimer), this._copyResetTimer = setTimeout(() => {
|
|
4828
|
-
this._copied = !1;
|
|
4829
|
-
}, 1500);
|
|
4830
|
-
}
|
|
4831
|
-
render() {
|
|
4832
|
-
const r = ks[this.language] ?? this.language, e = zs(Ls(this._code, this.language));
|
|
4833
|
-
return l`
|
|
4834
|
-
<div class="block">
|
|
4835
|
-
${this.noHeader ? x : l`
|
|
4836
|
-
<div class="header">
|
|
4837
|
-
<span class="meta">
|
|
4838
|
-
${this.filename ? l`<span class="filename">${this.filename}</span>` : x}
|
|
4839
|
-
${r ? l`<span class="lang">${r}</span>` : x}
|
|
4840
|
-
</span>
|
|
4841
|
-
${this.noCopy ? x : l`
|
|
4842
|
-
<button
|
|
4843
|
-
class="copy"
|
|
4844
|
-
type="button"
|
|
4845
|
-
@click=${this._copy}
|
|
4846
|
-
aria-label=${this._copied ? "Copied" : "Copy code"}
|
|
4847
|
-
>
|
|
4848
|
-
<svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4849
|
-
${k[this._copied ? "check" : "copy"]}
|
|
4850
|
-
</svg>
|
|
4851
|
-
</button>
|
|
4852
|
-
`}
|
|
4853
|
-
</div>
|
|
4854
|
-
`}
|
|
4855
|
-
<pre tabindex="0"><code>${e.map(
|
|
4856
|
-
(o) => l`<span class="line">${o.map(
|
|
4857
|
-
(s) => s.type === "plain" ? s.text : l`<span class="tok-${s.type}">${s.text}</span>`
|
|
4858
|
-
)}</span>`
|
|
4859
|
-
)}</code></pre>
|
|
4860
|
-
<span class="visually-hidden" aria-live="polite">${this._copied ? "Copied to clipboard" : ""}</span>
|
|
4861
|
-
</div>
|
|
4862
|
-
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
4863
|
-
`;
|
|
4864
|
-
}
|
|
4865
|
-
};
|
|
4866
|
-
$.styles = d`
|
|
4867
|
-
:host {
|
|
4868
|
-
display: block;
|
|
4869
|
-
font-family: var(--vox-font-family-base);
|
|
4870
|
-
}
|
|
4871
|
-
|
|
4872
|
-
.block {
|
|
4873
|
-
border: 1px solid var(--vox-color-border);
|
|
4874
|
-
border-radius: var(--vox-radius-md);
|
|
4875
|
-
background-color: var(--vox-color-bg-alt);
|
|
4876
|
-
overflow: hidden;
|
|
4877
|
-
}
|
|
4878
|
-
|
|
4879
|
-
:host([no-border]) .block {
|
|
4880
|
-
border: none;
|
|
4881
|
-
}
|
|
4882
|
-
|
|
4883
|
-
.header {
|
|
4884
|
-
display: flex;
|
|
4885
|
-
align-items: center;
|
|
4886
|
-
justify-content: space-between;
|
|
4887
|
-
gap: var(--vox-space-3);
|
|
4888
|
-
padding: var(--vox-space-2) var(--vox-space-2) var(--vox-space-2) var(--vox-space-4);
|
|
4889
|
-
border-bottom: 1px solid var(--vox-color-divider);
|
|
4890
|
-
font-size: 12px;
|
|
4891
|
-
}
|
|
4892
|
-
|
|
4893
|
-
.meta {
|
|
4894
|
-
display: flex;
|
|
4895
|
-
align-items: baseline;
|
|
4896
|
-
gap: var(--vox-space-3);
|
|
4897
|
-
min-width: 0;
|
|
4898
|
-
overflow: hidden;
|
|
4899
|
-
color: var(--vox-color-text-2);
|
|
4900
|
-
}
|
|
4901
|
-
|
|
4902
|
-
.filename {
|
|
4903
|
-
color: var(--vox-color-text-1);
|
|
4904
|
-
font-family: var(--vox-font-family-mono);
|
|
4905
|
-
font-weight: 600;
|
|
4906
|
-
white-space: nowrap;
|
|
4907
|
-
overflow: hidden;
|
|
4908
|
-
text-overflow: ellipsis;
|
|
4909
|
-
}
|
|
4910
|
-
|
|
4911
|
-
.lang {
|
|
4912
|
-
flex: none;
|
|
4913
|
-
text-transform: uppercase;
|
|
4914
|
-
letter-spacing: 0.04em;
|
|
4915
|
-
}
|
|
4916
|
-
|
|
4917
|
-
.copy {
|
|
4918
|
-
flex: none;
|
|
4919
|
-
display: inline-flex;
|
|
4920
|
-
align-items: center;
|
|
4921
|
-
justify-content: center;
|
|
4922
|
-
width: 28px;
|
|
4923
|
-
height: 28px;
|
|
4924
|
-
padding: 0;
|
|
4925
|
-
border: none;
|
|
4926
|
-
border-radius: var(--vox-radius-sm);
|
|
4927
|
-
background: none;
|
|
4928
|
-
color: var(--vox-color-text-2);
|
|
4929
|
-
cursor: pointer;
|
|
4930
|
-
}
|
|
4931
|
-
|
|
4932
|
-
.copy:hover {
|
|
4933
|
-
background-color: var(--vox-color-brand-soft);
|
|
4934
|
-
color: var(--vox-color-brand-1);
|
|
4935
|
-
}
|
|
4936
|
-
|
|
4937
|
-
.copy:focus-visible {
|
|
4938
|
-
outline: 2px solid var(--vox-color-brand-1);
|
|
4939
|
-
outline-offset: 2px;
|
|
4940
|
-
}
|
|
4941
|
-
|
|
4942
|
-
.copy svg {
|
|
4943
|
-
width: 15px;
|
|
4944
|
-
height: 15px;
|
|
4945
|
-
}
|
|
4946
|
-
|
|
4947
|
-
pre {
|
|
4948
|
-
margin: 0;
|
|
4949
|
-
padding: var(--vox-space-4);
|
|
4950
|
-
overflow-x: auto;
|
|
4951
|
-
white-space: pre;
|
|
4952
|
-
tab-size: 2;
|
|
4953
|
-
}
|
|
4954
|
-
|
|
4955
|
-
pre:focus-visible {
|
|
4956
|
-
outline: 2px solid var(--vox-color-brand-1);
|
|
4957
|
-
outline-offset: -2px;
|
|
4958
|
-
}
|
|
4959
|
-
|
|
4960
|
-
code {
|
|
4961
|
-
font-family: var(--vox-font-family-mono);
|
|
4962
|
-
font-size: 13px;
|
|
4963
|
-
line-height: 1.7;
|
|
4964
|
-
color: var(--vox-color-text-1);
|
|
4965
|
-
}
|
|
4966
|
-
|
|
4967
|
-
.line {
|
|
4968
|
-
display: block;
|
|
4969
|
-
}
|
|
4970
|
-
|
|
4971
|
-
:host([line-numbers]) code {
|
|
4972
|
-
counter-reset: line;
|
|
4973
|
-
}
|
|
4974
|
-
|
|
4975
|
-
:host([line-numbers]) .line {
|
|
4976
|
-
padding-left: 3.5ch;
|
|
4977
|
-
position: relative;
|
|
4978
|
-
}
|
|
4979
|
-
|
|
4980
|
-
:host([line-numbers]) .line::before {
|
|
4981
|
-
counter-increment: line;
|
|
4982
|
-
content: counter(line);
|
|
4983
|
-
position: absolute;
|
|
4984
|
-
left: 0;
|
|
4985
|
-
width: 2.5ch;
|
|
4986
|
-
text-align: right;
|
|
4987
|
-
color: var(--vox-color-text-3);
|
|
4988
|
-
user-select: none;
|
|
4989
|
-
}
|
|
4990
|
-
|
|
4991
|
-
.tok-comment {
|
|
4992
|
-
color: var(--vox-code-comment);
|
|
4993
|
-
font-style: italic;
|
|
4994
|
-
}
|
|
4995
|
-
.tok-keyword {
|
|
4996
|
-
color: var(--vox-code-keyword);
|
|
4997
|
-
}
|
|
4998
|
-
.tok-string {
|
|
4999
|
-
color: var(--vox-code-string);
|
|
5000
|
-
}
|
|
5001
|
-
.tok-number {
|
|
5002
|
-
color: var(--vox-code-number);
|
|
5003
|
-
}
|
|
5004
|
-
.tok-function {
|
|
5005
|
-
color: var(--vox-code-function);
|
|
5006
|
-
}
|
|
5007
|
-
.tok-property {
|
|
5008
|
-
color: var(--vox-code-property);
|
|
5009
|
-
}
|
|
5010
|
-
.tok-tag {
|
|
5011
|
-
color: var(--vox-code-tag);
|
|
5012
|
-
}
|
|
5013
|
-
|
|
5014
|
-
slot {
|
|
5015
|
-
display: none;
|
|
5016
|
-
}
|
|
5017
|
-
|
|
5018
|
-
.visually-hidden {
|
|
5019
|
-
position: absolute;
|
|
5020
|
-
width: 1px;
|
|
5021
|
-
height: 1px;
|
|
5022
|
-
overflow: hidden;
|
|
5023
|
-
clip: rect(0 0 0 0);
|
|
5024
|
-
white-space: nowrap;
|
|
5025
|
-
}
|
|
5026
|
-
`;
|
|
5027
|
-
O([
|
|
4569
|
+
], Q.prototype, "heading", 2);
|
|
4570
|
+
vt([
|
|
5028
4571
|
n()
|
|
5029
|
-
],
|
|
5030
|
-
|
|
4572
|
+
], Q.prototype, "href", 2);
|
|
4573
|
+
vt([
|
|
5031
4574
|
n()
|
|
5032
|
-
],
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
],
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
], $.prototype, "noCopy", 2);
|
|
5039
|
-
O([
|
|
5040
|
-
n({ type: Boolean, attribute: "no-header" })
|
|
5041
|
-
], $.prototype, "noHeader", 2);
|
|
5042
|
-
O([
|
|
5043
|
-
n({ type: Boolean, attribute: "no-border", reflect: !0 })
|
|
5044
|
-
], $.prototype, "noBorder", 2);
|
|
5045
|
-
O([
|
|
5046
|
-
ie()
|
|
5047
|
-
], $.prototype, "_code", 2);
|
|
5048
|
-
O([
|
|
5049
|
-
ie()
|
|
5050
|
-
], $.prototype, "_copied", 2);
|
|
5051
|
-
$ = O([
|
|
5052
|
-
p("vox-code-block")
|
|
5053
|
-
], $);
|
|
5054
|
-
var Vs = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, jo = (r, e, o, s) => {
|
|
5055
|
-
for (var t = s > 1 ? void 0 : s ? Ds(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4575
|
+
], Q.prototype, "target", 2);
|
|
4576
|
+
Q = vt([
|
|
4577
|
+
h("vox-card")
|
|
4578
|
+
], Q);
|
|
4579
|
+
var hs = Object.defineProperty, ps = Object.getOwnPropertyDescriptor, wo = (r, e, o, s) => {
|
|
4580
|
+
for (var t = s > 1 ? void 0 : s ? ps(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5056
4581
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5057
|
-
return s && t &&
|
|
4582
|
+
return s && t && hs(e, o, t), t;
|
|
5058
4583
|
};
|
|
5059
|
-
let
|
|
4584
|
+
let et = class extends p {
|
|
5060
4585
|
constructor() {
|
|
5061
4586
|
super(...arguments), this.heading = "", this.hasBody = !1, this.hasActions = !1;
|
|
5062
4587
|
}
|
|
@@ -5082,7 +4607,7 @@ let it = class extends h {
|
|
|
5082
4607
|
`;
|
|
5083
4608
|
}
|
|
5084
4609
|
};
|
|
5085
|
-
|
|
4610
|
+
et.styles = d`
|
|
5086
4611
|
:host {
|
|
5087
4612
|
display: block;
|
|
5088
4613
|
font-family: var(--vox-font-family-base);
|
|
@@ -5112,43 +4637,104 @@ it.styles = d`
|
|
|
5112
4637
|
color: var(--vox-color-text-2);
|
|
5113
4638
|
}
|
|
5114
4639
|
|
|
5115
|
-
.body:not(.has-content) {
|
|
5116
|
-
display: none;
|
|
5117
|
-
}
|
|
5118
|
-
|
|
5119
|
-
.body ::slotted(a) {
|
|
5120
|
-
color: var(--vox-color-brand-1);
|
|
5121
|
-
text-decoration: underline;
|
|
5122
|
-
}
|
|
5123
|
-
|
|
5124
|
-
.body ::slotted(a:hover) {
|
|
5125
|
-
color: var(--vox-color-brand-2);
|
|
5126
|
-
}
|
|
5127
|
-
|
|
5128
|
-
.actions {
|
|
4640
|
+
.body:not(.has-content) {
|
|
4641
|
+
display: none;
|
|
4642
|
+
}
|
|
4643
|
+
|
|
4644
|
+
.body ::slotted(a) {
|
|
4645
|
+
color: var(--vox-color-brand-1);
|
|
4646
|
+
text-decoration: underline;
|
|
4647
|
+
}
|
|
4648
|
+
|
|
4649
|
+
.body ::slotted(a:hover) {
|
|
4650
|
+
color: var(--vox-color-brand-2);
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
.actions {
|
|
4654
|
+
display: flex;
|
|
4655
|
+
gap: var(--vox-space-3);
|
|
4656
|
+
justify-content: center;
|
|
4657
|
+
flex-wrap: wrap;
|
|
4658
|
+
margin-top: var(--vox-space-6);
|
|
4659
|
+
}
|
|
4660
|
+
|
|
4661
|
+
.actions:not(.has-content) {
|
|
4662
|
+
display: none;
|
|
4663
|
+
}
|
|
4664
|
+
`;
|
|
4665
|
+
wo([
|
|
4666
|
+
n()
|
|
4667
|
+
], et.prototype, "heading", 2);
|
|
4668
|
+
et = wo([
|
|
4669
|
+
h("vox-cta-band")
|
|
4670
|
+
], et);
|
|
4671
|
+
var vs = Object.defineProperty, us = Object.getOwnPropertyDescriptor, _o = (r, e, o, s) => {
|
|
4672
|
+
for (var t = s > 1 ? void 0 : s ? us(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4673
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4674
|
+
return s && t && vs(e, o, t), t;
|
|
4675
|
+
};
|
|
4676
|
+
let tt = class extends p {
|
|
4677
|
+
constructor() {
|
|
4678
|
+
super(...arguments), this.name = "", this.hasIcon = !1;
|
|
4679
|
+
}
|
|
4680
|
+
handleIconSlotChange(r) {
|
|
4681
|
+
const e = r.target;
|
|
4682
|
+
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4683
|
+
}
|
|
4684
|
+
render() {
|
|
4685
|
+
return l`
|
|
4686
|
+
<span class="icon ${this.hasIcon ? "has-icon" : ""}">
|
|
4687
|
+
<slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
|
|
4688
|
+
</span>
|
|
4689
|
+
${this.name ? l`<span class="sr-only">${this.name}: </span>` : x}
|
|
4690
|
+
<slot></slot>
|
|
4691
|
+
`;
|
|
4692
|
+
}
|
|
4693
|
+
};
|
|
4694
|
+
tt.styles = d`
|
|
4695
|
+
:host {
|
|
4696
|
+
display: inline-flex;
|
|
4697
|
+
align-items: center;
|
|
4698
|
+
gap: var(--vox-space-1);
|
|
4699
|
+
font-family: var(--vox-font-family-base);
|
|
4700
|
+
font-size: 13px;
|
|
4701
|
+
color: var(--vox-color-text-2);
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4704
|
+
.icon {
|
|
5129
4705
|
display: flex;
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
flex-wrap: wrap;
|
|
5133
|
-
margin-top: var(--vox-space-6);
|
|
4706
|
+
flex: none;
|
|
4707
|
+
color: var(--vox-color-text-3);
|
|
5134
4708
|
}
|
|
5135
4709
|
|
|
5136
|
-
.
|
|
4710
|
+
.icon:not(.has-icon) {
|
|
5137
4711
|
display: none;
|
|
5138
4712
|
}
|
|
4713
|
+
|
|
4714
|
+
.sr-only {
|
|
4715
|
+
position: absolute;
|
|
4716
|
+
width: 1px;
|
|
4717
|
+
height: 1px;
|
|
4718
|
+
padding: 0;
|
|
4719
|
+
margin: -1px;
|
|
4720
|
+
overflow: hidden;
|
|
4721
|
+
clip: rect(0, 0, 0, 0);
|
|
4722
|
+
white-space: nowrap;
|
|
4723
|
+
border: 0;
|
|
4724
|
+
}
|
|
5139
4725
|
`;
|
|
5140
|
-
|
|
4726
|
+
_o([
|
|
5141
4727
|
n()
|
|
5142
|
-
],
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
],
|
|
5146
|
-
var
|
|
5147
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4728
|
+
], tt.prototype, "name", 2);
|
|
4729
|
+
tt = _o([
|
|
4730
|
+
h("vox-datum")
|
|
4731
|
+
], tt);
|
|
4732
|
+
var xs = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, Co = (r, e, o, s) => {
|
|
4733
|
+
for (var t = s > 1 ? void 0 : s ? fs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5148
4734
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5149
|
-
return s && t &&
|
|
4735
|
+
return s && t && xs(e, o, t), t;
|
|
5150
4736
|
};
|
|
5151
|
-
let
|
|
4737
|
+
let ot = class extends p {
|
|
5152
4738
|
constructor() {
|
|
5153
4739
|
super(...arguments), this.heading = "";
|
|
5154
4740
|
}
|
|
@@ -5163,7 +4749,7 @@ let nt = class extends h {
|
|
|
5163
4749
|
`;
|
|
5164
4750
|
}
|
|
5165
4751
|
};
|
|
5166
|
-
|
|
4752
|
+
ot.styles = d`
|
|
5167
4753
|
:host {
|
|
5168
4754
|
display: block;
|
|
5169
4755
|
font-family: var(--vox-font-family-base);
|
|
@@ -5207,18 +4793,18 @@ nt.styles = d`
|
|
|
5207
4793
|
margin-top: var(--vox-space-4);
|
|
5208
4794
|
}
|
|
5209
4795
|
`;
|
|
5210
|
-
|
|
4796
|
+
Co([
|
|
5211
4797
|
n()
|
|
5212
|
-
],
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
],
|
|
5216
|
-
var
|
|
5217
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4798
|
+
], ot.prototype, "heading", 2);
|
|
4799
|
+
ot = Co([
|
|
4800
|
+
h("vox-empty-state")
|
|
4801
|
+
], ot);
|
|
4802
|
+
var gs = Object.defineProperty, bs = Object.getOwnPropertyDescriptor, Ut = (r, e, o, s) => {
|
|
4803
|
+
for (var t = s > 1 ? void 0 : s ? bs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5218
4804
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5219
|
-
return s && t &&
|
|
4805
|
+
return s && t && gs(e, o, t), t;
|
|
5220
4806
|
};
|
|
5221
|
-
let
|
|
4807
|
+
let Ct = class extends p {
|
|
5222
4808
|
render() {
|
|
5223
4809
|
return l`
|
|
5224
4810
|
<footer>
|
|
@@ -5230,7 +4816,7 @@ let kt = class extends h {
|
|
|
5230
4816
|
`;
|
|
5231
4817
|
}
|
|
5232
4818
|
};
|
|
5233
|
-
|
|
4819
|
+
Ct.styles = d`
|
|
5234
4820
|
:host {
|
|
5235
4821
|
display: block;
|
|
5236
4822
|
font-family: var(--vox-font-family-base);
|
|
@@ -5258,10 +4844,10 @@ kt.styles = d`
|
|
|
5258
4844
|
color: var(--vox-color-text-3);
|
|
5259
4845
|
}
|
|
5260
4846
|
`;
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
],
|
|
5264
|
-
let
|
|
4847
|
+
Ct = Ut([
|
|
4848
|
+
h("vox-footer")
|
|
4849
|
+
], Ct);
|
|
4850
|
+
let rt = class extends p {
|
|
5265
4851
|
constructor() {
|
|
5266
4852
|
super(...arguments), this.heading = "";
|
|
5267
4853
|
}
|
|
@@ -5272,7 +4858,7 @@ let lt = class extends h {
|
|
|
5272
4858
|
`;
|
|
5273
4859
|
}
|
|
5274
4860
|
};
|
|
5275
|
-
|
|
4861
|
+
rt.styles = d`
|
|
5276
4862
|
:host {
|
|
5277
4863
|
display: block;
|
|
5278
4864
|
font-family: var(--vox-font-family-base);
|
|
@@ -5304,18 +4890,18 @@ lt.styles = d`
|
|
|
5304
4890
|
text-decoration: underline;
|
|
5305
4891
|
}
|
|
5306
4892
|
`;
|
|
5307
|
-
|
|
4893
|
+
Ut([
|
|
5308
4894
|
n()
|
|
5309
|
-
],
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
],
|
|
5313
|
-
var
|
|
5314
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4895
|
+
], rt.prototype, "heading", 2);
|
|
4896
|
+
rt = Ut([
|
|
4897
|
+
h("vox-footer-column")
|
|
4898
|
+
], rt);
|
|
4899
|
+
var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, ut = (r, e, o, s) => {
|
|
4900
|
+
for (var t = s > 1 ? void 0 : s ? ys(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5315
4901
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5316
|
-
return s && t &&
|
|
4902
|
+
return s && t && ms(e, o, t), t;
|
|
5317
4903
|
};
|
|
5318
|
-
let
|
|
4904
|
+
let ee = class extends p {
|
|
5319
4905
|
constructor() {
|
|
5320
4906
|
super(...arguments), this.cols = 0, this.min = "240px", this.gap = "md";
|
|
5321
4907
|
}
|
|
@@ -5326,7 +4912,7 @@ let se = class extends h {
|
|
|
5326
4912
|
return l`<slot></slot>`;
|
|
5327
4913
|
}
|
|
5328
4914
|
};
|
|
5329
|
-
|
|
4915
|
+
ee.styles = d`
|
|
5330
4916
|
:host {
|
|
5331
4917
|
display: grid;
|
|
5332
4918
|
}
|
|
@@ -5343,24 +4929,24 @@ se.styles = d`
|
|
|
5343
4929
|
gap: var(--vox-space-6);
|
|
5344
4930
|
}
|
|
5345
4931
|
`;
|
|
5346
|
-
|
|
4932
|
+
ut([
|
|
5347
4933
|
n({ type: Number })
|
|
5348
|
-
],
|
|
5349
|
-
|
|
4934
|
+
], ee.prototype, "cols", 2);
|
|
4935
|
+
ut([
|
|
5350
4936
|
n()
|
|
5351
|
-
],
|
|
5352
|
-
|
|
4937
|
+
], ee.prototype, "min", 2);
|
|
4938
|
+
ut([
|
|
5353
4939
|
n({ reflect: !0 })
|
|
5354
|
-
],
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
],
|
|
5358
|
-
var
|
|
5359
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
4940
|
+
], ee.prototype, "gap", 2);
|
|
4941
|
+
ee = ut([
|
|
4942
|
+
h("vox-grid")
|
|
4943
|
+
], ee);
|
|
4944
|
+
var $s = Object.defineProperty, ws = Object.getOwnPropertyDescriptor, qt = (r, e, o, s) => {
|
|
4945
|
+
for (var t = s > 1 ? void 0 : s ? ws(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5360
4946
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5361
|
-
return s && t &&
|
|
4947
|
+
return s && t && $s(e, o, t), t;
|
|
5362
4948
|
};
|
|
5363
|
-
let
|
|
4949
|
+
let Me = class extends p {
|
|
5364
4950
|
constructor() {
|
|
5365
4951
|
super(...arguments), this.eyebrow = "", this.heading = "", this.hasActions = !1;
|
|
5366
4952
|
}
|
|
@@ -5381,7 +4967,7 @@ let Le = class extends h {
|
|
|
5381
4967
|
`;
|
|
5382
4968
|
}
|
|
5383
4969
|
};
|
|
5384
|
-
|
|
4970
|
+
Me.styles = d`
|
|
5385
4971
|
:host {
|
|
5386
4972
|
display: block;
|
|
5387
4973
|
font-family: var(--vox-font-family-base);
|
|
@@ -5438,36 +5024,36 @@ Le.styles = d`
|
|
|
5438
5024
|
display: none;
|
|
5439
5025
|
}
|
|
5440
5026
|
`;
|
|
5441
|
-
|
|
5027
|
+
qt([
|
|
5442
5028
|
n()
|
|
5443
|
-
],
|
|
5444
|
-
|
|
5029
|
+
], Me.prototype, "eyebrow", 2);
|
|
5030
|
+
qt([
|
|
5445
5031
|
n()
|
|
5446
|
-
],
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
],
|
|
5450
|
-
var
|
|
5451
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5032
|
+
], Me.prototype, "heading", 2);
|
|
5033
|
+
Me = qt([
|
|
5034
|
+
h("vox-hero")
|
|
5035
|
+
], Me);
|
|
5036
|
+
var _s = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor, xt = (r, e, o, s) => {
|
|
5037
|
+
for (var t = s > 1 ? void 0 : s ? Cs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5452
5038
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5453
|
-
return s && t &&
|
|
5039
|
+
return s && t && _s(e, o, t), t;
|
|
5454
5040
|
};
|
|
5455
|
-
let
|
|
5041
|
+
let Ot = class extends p {
|
|
5456
5042
|
render() {
|
|
5457
5043
|
return l`<slot></slot>`;
|
|
5458
5044
|
}
|
|
5459
5045
|
};
|
|
5460
|
-
|
|
5046
|
+
Ot.styles = d`
|
|
5461
5047
|
:host {
|
|
5462
5048
|
display: grid;
|
|
5463
5049
|
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
|
|
5464
5050
|
gap: var(--vox-space-4);
|
|
5465
5051
|
}
|
|
5466
5052
|
`;
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
],
|
|
5470
|
-
let
|
|
5053
|
+
Ot = xt([
|
|
5054
|
+
h("vox-link-hub")
|
|
5055
|
+
], Ot);
|
|
5056
|
+
let Pe = class extends p {
|
|
5471
5057
|
constructor() {
|
|
5472
5058
|
super(...arguments), this.href = "#", this.heading = "", this.hasIcon = !1;
|
|
5473
5059
|
}
|
|
@@ -5493,7 +5079,7 @@ let Ee = class extends h {
|
|
|
5493
5079
|
`;
|
|
5494
5080
|
}
|
|
5495
5081
|
};
|
|
5496
|
-
|
|
5082
|
+
Pe.styles = d`
|
|
5497
5083
|
:host {
|
|
5498
5084
|
display: block;
|
|
5499
5085
|
font-family: var(--vox-font-family-base);
|
|
@@ -5554,21 +5140,21 @@ Ee.styles = d`
|
|
|
5554
5140
|
color: var(--vox-color-text-2);
|
|
5555
5141
|
}
|
|
5556
5142
|
`;
|
|
5557
|
-
|
|
5143
|
+
xt([
|
|
5558
5144
|
n()
|
|
5559
|
-
],
|
|
5560
|
-
|
|
5145
|
+
], Pe.prototype, "href", 2);
|
|
5146
|
+
xt([
|
|
5561
5147
|
n()
|
|
5562
|
-
],
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
],
|
|
5566
|
-
var
|
|
5567
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5148
|
+
], Pe.prototype, "heading", 2);
|
|
5149
|
+
Pe = xt([
|
|
5150
|
+
h("vox-link-hub-item")
|
|
5151
|
+
], Pe);
|
|
5152
|
+
var Os = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, Ft = (r, e, o, s) => {
|
|
5153
|
+
for (var t = s > 1 ? void 0 : s ? Ms(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5568
5154
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5569
|
-
return s && t &&
|
|
5155
|
+
return s && t && Os(e, o, t), t;
|
|
5570
5156
|
};
|
|
5571
|
-
let
|
|
5157
|
+
let Ae = class extends p {
|
|
5572
5158
|
constructor() {
|
|
5573
5159
|
super(...arguments), this.size = "md", this.label = "Loading";
|
|
5574
5160
|
}
|
|
@@ -5581,7 +5167,7 @@ let Se = class extends h {
|
|
|
5581
5167
|
`;
|
|
5582
5168
|
}
|
|
5583
5169
|
};
|
|
5584
|
-
|
|
5170
|
+
Ae.styles = d`
|
|
5585
5171
|
:host {
|
|
5586
5172
|
display: inline-block;
|
|
5587
5173
|
}
|
|
@@ -5634,21 +5220,21 @@ Se.styles = d`
|
|
|
5634
5220
|
white-space: nowrap;
|
|
5635
5221
|
}
|
|
5636
5222
|
`;
|
|
5637
|
-
|
|
5223
|
+
Ft([
|
|
5638
5224
|
n({ reflect: !0 })
|
|
5639
|
-
],
|
|
5640
|
-
|
|
5225
|
+
], Ae.prototype, "size", 2);
|
|
5226
|
+
Ft([
|
|
5641
5227
|
n()
|
|
5642
|
-
],
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
],
|
|
5646
|
-
var
|
|
5647
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5228
|
+
], Ae.prototype, "label", 2);
|
|
5229
|
+
Ae = Ft([
|
|
5230
|
+
h("vox-loader")
|
|
5231
|
+
], Ae);
|
|
5232
|
+
var Ps = Object.defineProperty, As = Object.getOwnPropertyDescriptor, Oo = (r, e, o, s) => {
|
|
5233
|
+
for (var t = s > 1 ? void 0 : s ? As(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5648
5234
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5649
|
-
return s && t &&
|
|
5235
|
+
return s && t && Ps(e, o, t), t;
|
|
5650
5236
|
};
|
|
5651
|
-
let
|
|
5237
|
+
let st = class extends p {
|
|
5652
5238
|
constructor() {
|
|
5653
5239
|
super(...arguments), this.label = "Pagination";
|
|
5654
5240
|
}
|
|
@@ -5660,7 +5246,7 @@ let ct = class extends h {
|
|
|
5660
5246
|
`;
|
|
5661
5247
|
}
|
|
5662
5248
|
};
|
|
5663
|
-
|
|
5249
|
+
st.styles = d`
|
|
5664
5250
|
:host {
|
|
5665
5251
|
display: block;
|
|
5666
5252
|
font-family: var(--vox-font-family-base);
|
|
@@ -5700,18 +5286,18 @@ ct.styles = d`
|
|
|
5700
5286
|
font-weight: 600;
|
|
5701
5287
|
}
|
|
5702
5288
|
`;
|
|
5703
|
-
|
|
5289
|
+
Oo([
|
|
5704
5290
|
n()
|
|
5705
|
-
],
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
],
|
|
5709
|
-
var
|
|
5710
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5291
|
+
], st.prototype, "label", 2);
|
|
5292
|
+
st = Oo([
|
|
5293
|
+
h("vox-pagination")
|
|
5294
|
+
], st);
|
|
5295
|
+
var ks = Object.defineProperty, Ls = Object.getOwnPropertyDescriptor, Zt = (r, e, o, s) => {
|
|
5296
|
+
for (var t = s > 1 ? void 0 : s ? Ls(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5711
5297
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5712
|
-
return s && t &&
|
|
5298
|
+
return s && t && ks(e, o, t), t;
|
|
5713
5299
|
};
|
|
5714
|
-
let
|
|
5300
|
+
let ke = class extends p {
|
|
5715
5301
|
constructor() {
|
|
5716
5302
|
super(...arguments), this.attribution = "", this.detail = "";
|
|
5717
5303
|
}
|
|
@@ -5729,7 +5315,7 @@ let je = class extends h {
|
|
|
5729
5315
|
`;
|
|
5730
5316
|
}
|
|
5731
5317
|
};
|
|
5732
|
-
|
|
5318
|
+
ke.styles = d`
|
|
5733
5319
|
:host {
|
|
5734
5320
|
display: block;
|
|
5735
5321
|
font-family: var(--vox-font-family-base);
|
|
@@ -5771,21 +5357,239 @@ je.styles = d`
|
|
|
5771
5357
|
color: var(--vox-color-text-2);
|
|
5772
5358
|
}
|
|
5773
5359
|
`;
|
|
5774
|
-
|
|
5360
|
+
Zt([
|
|
5361
|
+
n()
|
|
5362
|
+
], ke.prototype, "attribution", 2);
|
|
5363
|
+
Zt([
|
|
5364
|
+
n()
|
|
5365
|
+
], ke.prototype, "detail", 2);
|
|
5366
|
+
ke = Zt([
|
|
5367
|
+
h("vox-quote")
|
|
5368
|
+
], ke);
|
|
5369
|
+
var Es = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, Ie = (r, e, o, s) => {
|
|
5370
|
+
for (var t = s > 1 ? void 0 : s ? Ss(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5371
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5372
|
+
return s && t && Es(e, o, t), t;
|
|
5373
|
+
};
|
|
5374
|
+
let Mt = class extends p {
|
|
5375
|
+
render() {
|
|
5376
|
+
return l`<slot></slot>`;
|
|
5377
|
+
}
|
|
5378
|
+
};
|
|
5379
|
+
Mt.styles = d`
|
|
5380
|
+
:host {
|
|
5381
|
+
display: grid;
|
|
5382
|
+
grid-template-columns: repeat(3, max-content) 1fr;
|
|
5383
|
+
column-gap: var(--vox-space-4);
|
|
5384
|
+
}
|
|
5385
|
+
`;
|
|
5386
|
+
Mt = Ie([
|
|
5387
|
+
h("vox-record-list")
|
|
5388
|
+
], Mt);
|
|
5389
|
+
let te = class extends p {
|
|
5390
|
+
constructor() {
|
|
5391
|
+
super(...arguments), this.heading = "", this.size = "md", this.hasMeta = !1, this.hasEnd = !1;
|
|
5392
|
+
}
|
|
5393
|
+
handleMetaSlotChange(r) {
|
|
5394
|
+
const e = r.target;
|
|
5395
|
+
this.hasMeta = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5396
|
+
}
|
|
5397
|
+
handleEndSlotChange(r) {
|
|
5398
|
+
const e = r.target;
|
|
5399
|
+
this.hasEnd = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5400
|
+
}
|
|
5401
|
+
render() {
|
|
5402
|
+
if (this.size === "sm") {
|
|
5403
|
+
const r = l`
|
|
5404
|
+
<span class="meta ${this.hasMeta ? "has-meta" : ""}">
|
|
5405
|
+
<slot @slotchange=${this.handleMetaSlotChange}></slot>
|
|
5406
|
+
</span>
|
|
5407
|
+
`;
|
|
5408
|
+
return l`
|
|
5409
|
+
${this.href ? l`<a class="cell" href=${this.href}>${this.heading}</a>` : l`<span class="cell">${this.heading}</span>`}
|
|
5410
|
+
${this.hasMeta && this.href ? l`<a class="cell" href=${this.href}>${r}</a>` : l`<span class="cell">${r}</span>`}
|
|
5411
|
+
<span class="cell">
|
|
5412
|
+
<slot name="end" @slotchange=${this.handleEndSlotChange}></slot>
|
|
5413
|
+
</span>
|
|
5414
|
+
`;
|
|
5415
|
+
}
|
|
5416
|
+
return l`
|
|
5417
|
+
<div class="row">
|
|
5418
|
+
<div class="main">
|
|
5419
|
+
${this.href ? l`<a class="heading" href=${this.href}>${this.heading}</a>` : l`<span class="heading">${this.heading}</span>`}
|
|
5420
|
+
<div class="meta ${this.hasMeta ? "has-meta" : ""}">
|
|
5421
|
+
<slot @slotchange=${this.handleMetaSlotChange}></slot>
|
|
5422
|
+
</div>
|
|
5423
|
+
</div>
|
|
5424
|
+
<span class="end ${this.hasEnd ? "has-end" : ""}">
|
|
5425
|
+
<slot name="end" @slotchange=${this.handleEndSlotChange}></slot>
|
|
5426
|
+
</span>
|
|
5427
|
+
${this.href ? l`
|
|
5428
|
+
<a class="arrow" href=${this.href} aria-label="View ${this.heading}">
|
|
5429
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
5430
|
+
<path d="M5 12h14" />
|
|
5431
|
+
<path d="m13 6 6 6-6 6" />
|
|
5432
|
+
</svg>
|
|
5433
|
+
</a>
|
|
5434
|
+
` : x}
|
|
5435
|
+
</div>
|
|
5436
|
+
`;
|
|
5437
|
+
}
|
|
5438
|
+
};
|
|
5439
|
+
te.styles = d`
|
|
5440
|
+
:host {
|
|
5441
|
+
display: block;
|
|
5442
|
+
grid-column: 1 / -1;
|
|
5443
|
+
font-family: var(--vox-font-family-base);
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5446
|
+
.row {
|
|
5447
|
+
display: flex;
|
|
5448
|
+
align-items: center;
|
|
5449
|
+
justify-content: space-between;
|
|
5450
|
+
gap: var(--vox-space-4);
|
|
5451
|
+
padding: var(--vox-space-4) 0;
|
|
5452
|
+
border-bottom: 1px solid var(--vox-color-divider);
|
|
5453
|
+
}
|
|
5454
|
+
|
|
5455
|
+
:host(:last-child) .row {
|
|
5456
|
+
border-bottom: none;
|
|
5457
|
+
}
|
|
5458
|
+
|
|
5459
|
+
.main {
|
|
5460
|
+
display: flex;
|
|
5461
|
+
flex-direction: column;
|
|
5462
|
+
gap: var(--vox-space-1);
|
|
5463
|
+
min-width: 0;
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
.heading {
|
|
5467
|
+
font-size: 16px;
|
|
5468
|
+
font-weight: 600;
|
|
5469
|
+
line-height: 1.4;
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5472
|
+
a.heading {
|
|
5473
|
+
color: var(--vox-color-brand-1);
|
|
5474
|
+
text-decoration: none;
|
|
5475
|
+
}
|
|
5476
|
+
|
|
5477
|
+
a.heading:hover,
|
|
5478
|
+
a.heading:focus-visible {
|
|
5479
|
+
text-decoration: underline;
|
|
5480
|
+
}
|
|
5481
|
+
|
|
5482
|
+
a.heading:focus-visible {
|
|
5483
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
5484
|
+
outline-offset: 2px;
|
|
5485
|
+
}
|
|
5486
|
+
|
|
5487
|
+
span.heading {
|
|
5488
|
+
color: var(--vox-color-text-1);
|
|
5489
|
+
}
|
|
5490
|
+
|
|
5491
|
+
.meta {
|
|
5492
|
+
display: flex;
|
|
5493
|
+
flex-wrap: wrap;
|
|
5494
|
+
align-items: center;
|
|
5495
|
+
gap: var(--vox-space-4);
|
|
5496
|
+
}
|
|
5497
|
+
|
|
5498
|
+
.meta:not(.has-meta) {
|
|
5499
|
+
display: none;
|
|
5500
|
+
}
|
|
5501
|
+
|
|
5502
|
+
.arrow {
|
|
5503
|
+
display: flex;
|
|
5504
|
+
flex: none;
|
|
5505
|
+
align-items: center;
|
|
5506
|
+
justify-content: center;
|
|
5507
|
+
width: 36px;
|
|
5508
|
+
height: 36px;
|
|
5509
|
+
border-radius: var(--vox-radius-full);
|
|
5510
|
+
background-color: var(--vox-color-bg-soft);
|
|
5511
|
+
color: var(--vox-color-brand-1);
|
|
5512
|
+
text-decoration: none;
|
|
5513
|
+
transition: background-color var(--vox-transition-fast);
|
|
5514
|
+
}
|
|
5515
|
+
|
|
5516
|
+
.arrow:hover {
|
|
5517
|
+
background-color: var(--vox-color-brand-soft);
|
|
5518
|
+
}
|
|
5519
|
+
|
|
5520
|
+
.arrow:focus-visible {
|
|
5521
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
5522
|
+
outline-offset: 2px;
|
|
5523
|
+
}
|
|
5524
|
+
|
|
5525
|
+
.arrow svg {
|
|
5526
|
+
width: 16px;
|
|
5527
|
+
height: 16px;
|
|
5528
|
+
}
|
|
5529
|
+
|
|
5530
|
+
.end:not(.has-end) {
|
|
5531
|
+
display: none;
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5534
|
+
/* Small size: heading, meta, and end each become their own subgrid
|
|
5535
|
+
column, aligned against the same column in every other size="sm"
|
|
5536
|
+
row in the parent <vox-record-list> — the arrow drops out since
|
|
5537
|
+
there's no room for it at this density, and the whole "row" is
|
|
5538
|
+
really 3 separate grid cells rather than one box, so heading and
|
|
5539
|
+
the meta cell each link to href individually. */
|
|
5540
|
+
:host([size='sm']) {
|
|
5541
|
+
display: grid;
|
|
5542
|
+
grid-template-columns: subgrid;
|
|
5543
|
+
grid-column: 1 / -1;
|
|
5544
|
+
align-items: baseline;
|
|
5545
|
+
column-gap: var(--vox-space-4);
|
|
5546
|
+
padding: var(--vox-space-2) 0;
|
|
5547
|
+
border-bottom: 1px solid var(--vox-color-divider);
|
|
5548
|
+
font-size: 13px;
|
|
5549
|
+
}
|
|
5550
|
+
|
|
5551
|
+
:host([size='sm']:last-child) {
|
|
5552
|
+
border-bottom: none;
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5555
|
+
:host([size='sm']) .meta {
|
|
5556
|
+
flex-wrap: nowrap;
|
|
5557
|
+
gap: var(--vox-space-2);
|
|
5558
|
+
}
|
|
5559
|
+
|
|
5560
|
+
.cell {
|
|
5561
|
+
color: var(--vox-color-text-2);
|
|
5562
|
+
text-decoration: none;
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
a.cell:hover,
|
|
5566
|
+
a.cell:focus-visible {
|
|
5567
|
+
text-decoration: underline;
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
a.cell:focus-visible {
|
|
5571
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
5572
|
+
outline-offset: 2px;
|
|
5573
|
+
}
|
|
5574
|
+
`;
|
|
5575
|
+
Ie([
|
|
5775
5576
|
n()
|
|
5776
|
-
],
|
|
5777
|
-
|
|
5577
|
+
], te.prototype, "heading", 2);
|
|
5578
|
+
Ie([
|
|
5778
5579
|
n()
|
|
5779
|
-
],
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
],
|
|
5783
|
-
|
|
5784
|
-
|
|
5580
|
+
], te.prototype, "href", 2);
|
|
5581
|
+
Ie([
|
|
5582
|
+
n({ reflect: !0 })
|
|
5583
|
+
], te.prototype, "size", 2);
|
|
5584
|
+
te = Ie([
|
|
5585
|
+
h("vox-record-list-item")
|
|
5586
|
+
], te);
|
|
5587
|
+
var js = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, U = (r, e, o, s) => {
|
|
5588
|
+
for (var t = s > 1 ? void 0 : s ? Vs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5785
5589
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5786
|
-
return s && t &&
|
|
5590
|
+
return s && t && js(e, o, t), t;
|
|
5787
5591
|
};
|
|
5788
|
-
let
|
|
5592
|
+
let at = class extends p {
|
|
5789
5593
|
constructor() {
|
|
5790
5594
|
super(...arguments), this.heading = "", this.hasDescription = !1;
|
|
5791
5595
|
}
|
|
@@ -5808,7 +5612,7 @@ let dt = class extends h {
|
|
|
5808
5612
|
`;
|
|
5809
5613
|
}
|
|
5810
5614
|
};
|
|
5811
|
-
|
|
5615
|
+
at.styles = d`
|
|
5812
5616
|
:host {
|
|
5813
5617
|
display: block;
|
|
5814
5618
|
font-family: var(--vox-font-family-base);
|
|
@@ -5840,13 +5644,13 @@ dt.styles = d`
|
|
|
5840
5644
|
margin-top: var(--vox-space-6);
|
|
5841
5645
|
}
|
|
5842
5646
|
`;
|
|
5843
|
-
|
|
5647
|
+
U([
|
|
5844
5648
|
n()
|
|
5845
|
-
],
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
],
|
|
5849
|
-
let
|
|
5649
|
+
], at.prototype, "heading", 2);
|
|
5650
|
+
at = U([
|
|
5651
|
+
h("vox-sponsor-tier")
|
|
5652
|
+
], at);
|
|
5653
|
+
let N = class extends p {
|
|
5850
5654
|
constructor() {
|
|
5851
5655
|
super(...arguments), this.name = "", this.hasBody = !1;
|
|
5852
5656
|
}
|
|
@@ -5872,7 +5676,7 @@ let I = class extends h {
|
|
|
5872
5676
|
>` : l`<div class="sponsor">${r}</div>`;
|
|
5873
5677
|
}
|
|
5874
5678
|
};
|
|
5875
|
-
|
|
5679
|
+
N.styles = d`
|
|
5876
5680
|
:host {
|
|
5877
5681
|
display: block;
|
|
5878
5682
|
}
|
|
@@ -5938,27 +5742,27 @@ I.styles = d`
|
|
|
5938
5742
|
display: none;
|
|
5939
5743
|
}
|
|
5940
5744
|
`;
|
|
5941
|
-
|
|
5745
|
+
U([
|
|
5942
5746
|
n()
|
|
5943
|
-
],
|
|
5944
|
-
|
|
5747
|
+
], N.prototype, "name", 2);
|
|
5748
|
+
U([
|
|
5945
5749
|
n()
|
|
5946
|
-
],
|
|
5947
|
-
|
|
5750
|
+
], N.prototype, "href", 2);
|
|
5751
|
+
U([
|
|
5948
5752
|
n()
|
|
5949
|
-
],
|
|
5950
|
-
|
|
5753
|
+
], N.prototype, "logo", 2);
|
|
5754
|
+
U([
|
|
5951
5755
|
n()
|
|
5952
|
-
],
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
],
|
|
5956
|
-
var
|
|
5957
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5756
|
+
], N.prototype, "target", 2);
|
|
5757
|
+
N = U([
|
|
5758
|
+
h("vox-sponsor")
|
|
5759
|
+
], N);
|
|
5760
|
+
var Ds = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, Kt = (r, e, o, s) => {
|
|
5761
|
+
for (var t = s > 1 ? void 0 : s ? zs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5958
5762
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5959
|
-
return s && t &&
|
|
5763
|
+
return s && t && Ds(e, o, t), t;
|
|
5960
5764
|
};
|
|
5961
|
-
let
|
|
5765
|
+
let Le = class extends p {
|
|
5962
5766
|
constructor() {
|
|
5963
5767
|
super(...arguments), this.value = "", this.label = "";
|
|
5964
5768
|
}
|
|
@@ -5970,7 +5774,7 @@ let ze = class extends h {
|
|
|
5970
5774
|
`;
|
|
5971
5775
|
}
|
|
5972
5776
|
};
|
|
5973
|
-
|
|
5777
|
+
Le.styles = d`
|
|
5974
5778
|
:host {
|
|
5975
5779
|
display: block;
|
|
5976
5780
|
font-family: var(--vox-font-family-base);
|
|
@@ -5997,21 +5801,21 @@ ze.styles = d`
|
|
|
5997
5801
|
color: var(--vox-color-text-2);
|
|
5998
5802
|
}
|
|
5999
5803
|
`;
|
|
6000
|
-
|
|
5804
|
+
Kt([
|
|
6001
5805
|
n()
|
|
6002
|
-
],
|
|
6003
|
-
|
|
5806
|
+
], Le.prototype, "value", 2);
|
|
5807
|
+
Kt([
|
|
6004
5808
|
n()
|
|
6005
|
-
],
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
],
|
|
6009
|
-
var
|
|
6010
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5809
|
+
], Le.prototype, "label", 2);
|
|
5810
|
+
Le = Kt([
|
|
5811
|
+
h("vox-stat")
|
|
5812
|
+
], Le);
|
|
5813
|
+
var Hs = Object.defineProperty, Ts = Object.getOwnPropertyDescriptor, Ue = (r, e, o, s) => {
|
|
5814
|
+
for (var t = s > 1 ? void 0 : s ? Ts(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
6011
5815
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
6012
|
-
return s && t &&
|
|
5816
|
+
return s && t && Hs(e, o, t), t;
|
|
6013
5817
|
};
|
|
6014
|
-
let
|
|
5818
|
+
let Pt = class extends p {
|
|
6015
5819
|
numberSteps() {
|
|
6016
5820
|
this.querySelectorAll("vox-step").forEach((r, e) => {
|
|
6017
5821
|
r.number = e + 1;
|
|
@@ -6025,7 +5829,7 @@ let Et = class extends h {
|
|
|
6025
5829
|
`;
|
|
6026
5830
|
}
|
|
6027
5831
|
};
|
|
6028
|
-
|
|
5832
|
+
Pt.styles = d`
|
|
6029
5833
|
:host {
|
|
6030
5834
|
display: block;
|
|
6031
5835
|
}
|
|
@@ -6039,10 +5843,10 @@ Et.styles = d`
|
|
|
6039
5843
|
flex: 1 1 0;
|
|
6040
5844
|
}
|
|
6041
5845
|
`;
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
],
|
|
6045
|
-
let
|
|
5846
|
+
Pt = Ue([
|
|
5847
|
+
h("vox-step-indicator")
|
|
5848
|
+
], Pt);
|
|
5849
|
+
let oe = class extends p {
|
|
6046
5850
|
constructor() {
|
|
6047
5851
|
super(...arguments), this.label = "", this.state = "upcoming", this.number = 1;
|
|
6048
5852
|
}
|
|
@@ -6063,7 +5867,7 @@ let ae = class extends h {
|
|
|
6063
5867
|
`;
|
|
6064
5868
|
}
|
|
6065
5869
|
};
|
|
6066
|
-
|
|
5870
|
+
oe.styles = d`
|
|
6067
5871
|
:host {
|
|
6068
5872
|
display: block;
|
|
6069
5873
|
font-family: var(--vox-font-family-base);
|
|
@@ -6137,37 +5941,37 @@ ae.styles = d`
|
|
|
6137
5941
|
color: var(--vox-color-text-1);
|
|
6138
5942
|
}
|
|
6139
5943
|
`;
|
|
6140
|
-
|
|
5944
|
+
Ue([
|
|
6141
5945
|
n()
|
|
6142
|
-
],
|
|
6143
|
-
|
|
5946
|
+
], oe.prototype, "label", 2);
|
|
5947
|
+
Ue([
|
|
6144
5948
|
n({ reflect: !0 })
|
|
6145
|
-
],
|
|
6146
|
-
|
|
5949
|
+
], oe.prototype, "state", 2);
|
|
5950
|
+
Ue([
|
|
6147
5951
|
n({ type: Number })
|
|
6148
|
-
],
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
],
|
|
6152
|
-
var
|
|
6153
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
5952
|
+
], oe.prototype, "number", 2);
|
|
5953
|
+
oe = Ue([
|
|
5954
|
+
h("vox-step")
|
|
5955
|
+
], oe);
|
|
5956
|
+
var Bs = Object.defineProperty, Ns = Object.getOwnPropertyDescriptor, ft = (r, e, o, s) => {
|
|
5957
|
+
for (var t = s > 1 ? void 0 : s ? Ns(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
6154
5958
|
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
6155
|
-
return s && t &&
|
|
5959
|
+
return s && t && Bs(e, o, t), t;
|
|
6156
5960
|
};
|
|
6157
|
-
let
|
|
5961
|
+
let At = class extends p {
|
|
6158
5962
|
render() {
|
|
6159
5963
|
return l`<slot></slot>`;
|
|
6160
5964
|
}
|
|
6161
5965
|
};
|
|
6162
|
-
|
|
5966
|
+
At.styles = d`
|
|
6163
5967
|
:host {
|
|
6164
5968
|
display: block;
|
|
6165
5969
|
}
|
|
6166
5970
|
`;
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
],
|
|
6170
|
-
let
|
|
5971
|
+
At = ft([
|
|
5972
|
+
h("vox-timeline")
|
|
5973
|
+
], At);
|
|
5974
|
+
let Ee = class extends p {
|
|
6171
5975
|
constructor() {
|
|
6172
5976
|
super(...arguments), this.heading = "", this.date = "";
|
|
6173
5977
|
}
|
|
@@ -6182,7 +5986,7 @@ let Ve = class extends h {
|
|
|
6182
5986
|
`;
|
|
6183
5987
|
}
|
|
6184
5988
|
};
|
|
6185
|
-
|
|
5989
|
+
Ee.styles = d`
|
|
6186
5990
|
:host {
|
|
6187
5991
|
display: block;
|
|
6188
5992
|
font-family: var(--vox-font-family-base);
|
|
@@ -6232,70 +6036,73 @@ Ve.styles = d`
|
|
|
6232
6036
|
color: var(--vox-color-text-2);
|
|
6233
6037
|
}
|
|
6234
6038
|
`;
|
|
6235
|
-
|
|
6039
|
+
ft([
|
|
6236
6040
|
n()
|
|
6237
|
-
],
|
|
6238
|
-
|
|
6041
|
+
], Ee.prototype, "heading", 2);
|
|
6042
|
+
ft([
|
|
6239
6043
|
n()
|
|
6240
|
-
],
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
],
|
|
6044
|
+
], Ee.prototype, "date", 2);
|
|
6045
|
+
Ee = ft([
|
|
6046
|
+
h("vox-timeline-item")
|
|
6047
|
+
], Ee);
|
|
6244
6048
|
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
|
-
|
|
6049
|
+
Ye as VoxAccordion,
|
|
6050
|
+
_e as VoxAccordionItem,
|
|
6051
|
+
B as VoxAlert,
|
|
6052
|
+
z as VoxAvatar,
|
|
6053
|
+
Qe as VoxBadge,
|
|
6054
|
+
xe as VoxBillboard,
|
|
6055
|
+
wt as VoxBreadcrumbs,
|
|
6056
|
+
_ as VoxButton,
|
|
6057
|
+
Ce as VoxCalendarTile,
|
|
6058
|
+
Oe as VoxCallout,
|
|
6059
|
+
Q as VoxCard,
|
|
6060
|
+
pe as VoxCheckbox,
|
|
6061
|
+
he as VoxCta,
|
|
6062
|
+
et as VoxCtaBand,
|
|
6063
|
+
tt as VoxDatum,
|
|
6064
|
+
T as VoxDialog,
|
|
6065
|
+
$e as VoxDisclosure,
|
|
6066
|
+
we as VoxDropdown,
|
|
6067
|
+
ot as VoxEmptyState,
|
|
6068
|
+
P as VoxFileInput,
|
|
6069
|
+
Ct as VoxFooter,
|
|
6070
|
+
rt as VoxFooterColumn,
|
|
6071
|
+
ee as VoxGrid,
|
|
6072
|
+
X as VoxHeader,
|
|
6073
|
+
Me as VoxHero,
|
|
6074
|
+
W as VoxIcon,
|
|
6075
|
+
A as VoxInput,
|
|
6076
|
+
$t as VoxInputGroup,
|
|
6077
|
+
Ot as VoxLinkHub,
|
|
6078
|
+
Pe as VoxLinkHubItem,
|
|
6079
|
+
Ae as VoxLoader,
|
|
6080
|
+
Y as VoxMenu,
|
|
6081
|
+
st as VoxPagination,
|
|
6082
|
+
ke as VoxQuote,
|
|
6083
|
+
G as VoxRadio,
|
|
6084
|
+
Ge as VoxRadioGroup,
|
|
6085
|
+
Mt as VoxRecordList,
|
|
6086
|
+
te as VoxRecordListItem,
|
|
6087
|
+
ve as VoxSelect,
|
|
6088
|
+
H as VoxSeriesNav,
|
|
6089
|
+
J as VoxSidenav,
|
|
6090
|
+
fe as VoxSidenavGroup,
|
|
6091
|
+
ge as VoxSidenavItem,
|
|
6092
|
+
N as VoxSponsor,
|
|
6093
|
+
at as VoxSponsorTier,
|
|
6094
|
+
Le as VoxStat,
|
|
6095
|
+
oe as VoxStep,
|
|
6096
|
+
Pt as VoxStepIndicator,
|
|
6097
|
+
Xe as VoxSubnav,
|
|
6098
|
+
ue as VoxSwitch,
|
|
6099
|
+
be as VoxTab,
|
|
6100
|
+
me as VoxTabPanel,
|
|
6101
|
+
_t as VoxTabs,
|
|
6102
|
+
D as VoxTextarea,
|
|
6103
|
+
K as VoxThemeToggle,
|
|
6104
|
+
At as VoxTimeline,
|
|
6105
|
+
Ee as VoxTimelineItem,
|
|
6106
|
+
Je as VoxToc,
|
|
6107
|
+
ye as VoxTocItem
|
|
6301
6108
|
};
|