@florid-kit/components 0.4.40 → 0.5.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/components/dropdown.d.ts +32 -0
- package/index.js +214 -66
- package/index.mjs +583 -340
- package/package.json +1 -1
package/index.mjs
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 et = globalThis, gt = et.ShadowRoot && (et.ShadyCSS === void 0 || et.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ft = Symbol(), $t = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Ot = class {
|
|
8
8
|
constructor(t, e, i) {
|
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
|
9
|
+
if (this._$cssResult$ = !0, i !== ft) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (gt && t === void 0) {
|
|
16
16
|
const i = e !== void 0 && e.length === 1;
|
|
17
|
-
i && (t =
|
|
17
|
+
i && (t = $t.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && $t.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let Pt = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const Dt = (o) => new Ot(typeof o == "string" ? o : o + "", void 0, ft), w = (o, ...t) => {
|
|
26
26
|
const e = o.length === 1 ? o[0] : t.reduce((i, n, r) => i + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(n) + o[r + 1], o[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new Ot(e, o, ft);
|
|
32
|
+
}, Ut = (o, t) => {
|
|
33
|
+
if (gt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const i = document.createElement("style"), n =
|
|
35
|
+
const i = document.createElement("style"), n = et.litNonce;
|
|
36
36
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, o.appendChild(i);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, _t = gt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
40
|
for (const i of t.cssRules) e += i.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Dt(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: jt, defineProperty: Nt, getOwnPropertyDescriptor: Ft, getOwnPropertyNames: Vt, getOwnPropertySymbols: Rt, getPrototypeOf: Zt } = Object, P = globalThis, Ct = P.trustedTypes, qt = Ct ? Ct.emptyScript : "", lt = P.reactiveElementPolyfillSupport, Z = (o, t) => o, ot = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
o = o ?
|
|
51
|
+
o = o ? qt : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,23 +73,23 @@ const { is: Tt, defineProperty: Dt, getOwnPropertyDescriptor: Ut, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, bt = (o, t) => !jt(o, t), At = { attribute: !0, type: String, converter: ot, reflect: !1, useDefault: !1, hasChanged: bt };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let U = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, e =
|
|
85
|
+
static createProperty(t, e = At) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
|
|
88
|
-
n !== void 0 &&
|
|
88
|
+
n !== void 0 && Nt(this.prototype, t, n);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, i) {
|
|
92
|
-
const { get: n, set: r } =
|
|
92
|
+
const { get: n, set: r } = Ft(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
@@ -100,17 +100,17 @@ let T = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ??
|
|
103
|
+
return this.elementProperties.get(t) ?? At;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(Z("elementProperties"))) return;
|
|
107
|
+
const t = Zt(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const e = this.properties, i = [...
|
|
111
|
+
if (this.hasOwnProperty(Z("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Z("properties"))) {
|
|
113
|
+
const e = this.properties, i = [...Vt(e), ...Rt(e)];
|
|
114
114
|
for (const n of i) this.createProperty(n, e[n]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let T = class extends HTMLElement {
|
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
131
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const n of i) e.unshift(
|
|
133
|
-
} else t !== void 0 && e.push(
|
|
132
|
+
for (const n of i) e.unshift(_t(n));
|
|
133
|
+
} else t !== void 0 && e.push(_t(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
@@ -159,7 +159,7 @@ let T = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Ut(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
@@ -184,7 +184,7 @@ let T = class extends HTMLElement {
|
|
|
184
184
|
var r;
|
|
185
185
|
const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
|
|
186
186
|
if (n !== void 0 && i.reflect === !0) {
|
|
187
|
-
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
|
187
|
+
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : ot).toAttribute(e, i.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(n) : this.setAttribute(n, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ let T = class extends HTMLElement {
|
|
|
192
192
|
var r, s;
|
|
193
193
|
const i = this.constructor, n = i._$Eh.get(t);
|
|
194
194
|
if (n !== void 0 && this._$Em !== n) {
|
|
195
|
-
const c = i.getPropertyOptions(n), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter :
|
|
195
|
+
const c = i.getPropertyOptions(n), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : ot;
|
|
196
196
|
this._$Em = n, this[n] = l.fromAttribute(e, c.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(n)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ let T = class extends HTMLElement {
|
|
|
200
200
|
var n;
|
|
201
201
|
if (t !== void 0) {
|
|
202
202
|
const r = this.constructor, s = this[t];
|
|
203
|
-
if (i ?? (i = r.getPropertyOptions(t)), !((i.hasChanged ??
|
|
203
|
+
if (i ?? (i = r.getPropertyOptions(t)), !((i.hasChanged ?? bt)(s, e) || i.useDefault && i.reflect && s === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(r._$Eu(t, i)))) return;
|
|
204
204
|
this.C(t, e, i);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -276,76 +276,76 @@ let T = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[Z("elementProperties")] = /* @__PURE__ */ new Map(), U[Z("finalized")] = /* @__PURE__ */ new Map(), lt == null || lt({ ReactiveElement: U }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const
|
|
286
|
-
\f\r]`,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
288
|
-
function
|
|
289
|
-
if (!
|
|
290
|
-
return
|
|
285
|
+
const q = globalThis, nt = q.trustedTypes, kt = nt ? nt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, zt = "$lit$", L = `lit$${Math.random().toFixed(9).slice(2)}$`, Ht = "?" + L, Wt = `<${Ht}>`, H = document, W = () => H.createComment(""), K = (o) => o === null || typeof o != "object" && typeof o != "function", yt = Array.isArray, Kt = (o) => yt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", ct = `[
|
|
286
|
+
\f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Et = /-->/g, St = />/g, B = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Lt = /'/g, Pt = /"/g, Mt = /^(?:script|style|textarea|title)$/i, Gt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), h = Gt(1), M = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), O = H.createTreeWalker(H, 129);
|
|
288
|
+
function Tt(o, t) {
|
|
289
|
+
if (!yt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
|
+
return kt !== void 0 ? kt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const Xt = (o, t) => {
|
|
293
293
|
const e = o.length - 1, i = [];
|
|
294
|
-
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s =
|
|
294
|
+
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = R;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const l = o[c];
|
|
297
|
-
let
|
|
298
|
-
for (;
|
|
299
|
-
const S = s ===
|
|
300
|
-
r += s ===
|
|
297
|
+
let v, f, p = -1, C = 0;
|
|
298
|
+
for (; C < l.length && (s.lastIndex = C, f = s.exec(l), f !== null); ) C = s.lastIndex, s === R ? f[1] === "!--" ? s = Et : f[1] !== void 0 ? s = St : f[2] !== void 0 ? (Mt.test(f[2]) && (n = RegExp("</" + f[2], "g")), s = B) : f[3] !== void 0 && (s = B) : s === B ? f[0] === ">" ? (s = n ?? R, p = -1) : f[1] === void 0 ? p = -2 : (p = s.lastIndex - f[2].length, v = f[1], s = f[3] === void 0 ? B : f[3] === '"' ? Pt : Lt) : s === Pt || s === Lt ? s = B : s === Et || s === St ? s = R : (s = B, n = void 0);
|
|
299
|
+
const S = s === B && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === R ? l + Wt : p >= 0 ? (i.push(v), l.slice(0, p) + zt + l.slice(p) + L + S) : l + L + (p === -2 ? c : S);
|
|
301
301
|
}
|
|
302
|
-
return [
|
|
302
|
+
return [Tt(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
303
303
|
};
|
|
304
|
-
class
|
|
304
|
+
class G {
|
|
305
305
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
306
306
|
let n;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, s = 0;
|
|
309
|
-
const c = t.length - 1, l = this.parts, [
|
|
310
|
-
if (this.el =
|
|
311
|
-
const
|
|
312
|
-
|
|
309
|
+
const c = t.length - 1, l = this.parts, [v, f] = Xt(t, e);
|
|
310
|
+
if (this.el = G.createElement(v, i), O.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
|
+
const p = this.el.content.firstChild;
|
|
312
|
+
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (n =
|
|
314
|
+
for (; (n = O.nextNode()) !== null && l.length < c; ) {
|
|
315
315
|
if (n.nodeType === 1) {
|
|
316
|
-
if (n.hasAttributes()) for (const
|
|
317
|
-
const
|
|
318
|
-
l.push({ type: 1, index: r, name:
|
|
319
|
-
} else
|
|
320
|
-
if (
|
|
321
|
-
const
|
|
322
|
-
if (
|
|
323
|
-
n.textContent =
|
|
324
|
-
for (let S = 0; S <
|
|
325
|
-
n.append(
|
|
316
|
+
if (n.hasAttributes()) for (const p of n.getAttributeNames()) if (p.endsWith(zt)) {
|
|
317
|
+
const C = f[s++], S = n.getAttribute(p).split(L), tt = /([.?@])?(.*)/.exec(C);
|
|
318
|
+
l.push({ type: 1, index: r, name: tt[2], strings: S, ctor: tt[1] === "." ? Yt : tt[1] === "?" ? Qt : tt[1] === "@" ? te : it }), n.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(L) && (l.push({ type: 6, index: r }), n.removeAttribute(p));
|
|
320
|
+
if (Mt.test(n.tagName)) {
|
|
321
|
+
const p = n.textContent.split(L), C = p.length - 1;
|
|
322
|
+
if (C > 0) {
|
|
323
|
+
n.textContent = nt ? nt.emptyScript : "";
|
|
324
|
+
for (let S = 0; S < C; S++) n.append(p[S], W()), O.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
|
+
n.append(p[C], W());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
328
|
+
} else if (n.nodeType === 8) if (n.data === Ht) l.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
|
-
let
|
|
331
|
-
for (; (
|
|
330
|
+
let p = -1;
|
|
331
|
+
for (; (p = n.data.indexOf(L, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += L.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const i =
|
|
337
|
+
const i = H.createElement("template");
|
|
338
338
|
return i.innerHTML = t, i;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function j(o, t, e = o, i) {
|
|
342
342
|
var s, c;
|
|
343
|
-
if (t ===
|
|
343
|
+
if (t === M) return t;
|
|
344
344
|
let n = i !== void 0 ? (s = e._$Co) == null ? void 0 : s[i] : e._$Cl;
|
|
345
|
-
const r =
|
|
346
|
-
return (n == null ? void 0 : n.constructor) !== r && ((c = n == null ? void 0 : n._$AO) == null || c.call(n, !1), r === void 0 ? n = void 0 : (n = new r(o), n._$AT(o, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t =
|
|
345
|
+
const r = K(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (n == null ? void 0 : n.constructor) !== r && ((c = n == null ? void 0 : n._$AO) == null || c.call(n, !1), r === void 0 ? n = void 0 : (n = new r(o), n._$AT(o, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = j(o, n._$AS(o, t.values), n, i)), t;
|
|
347
347
|
}
|
|
348
|
-
class
|
|
348
|
+
class Jt {
|
|
349
349
|
constructor(t, e) {
|
|
350
350
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
351
351
|
}
|
|
@@ -356,30 +356,30 @@ class Gt {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ??
|
|
360
|
-
|
|
361
|
-
let r =
|
|
359
|
+
const { el: { content: e }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? H).importNode(e, !0);
|
|
360
|
+
O.currentNode = n;
|
|
361
|
+
let r = O.nextNode(), s = 0, c = 0, l = i[0];
|
|
362
362
|
for (; l !== void 0; ) {
|
|
363
363
|
if (s === l.index) {
|
|
364
|
-
let
|
|
365
|
-
l.type === 2 ?
|
|
364
|
+
let v;
|
|
365
|
+
l.type === 2 ? v = new Y(r, r.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (v = new ee(r, this, t)), this._$AV.push(v), l = i[++c];
|
|
366
366
|
}
|
|
367
|
-
s !== (l == null ? void 0 : l.index) && (r =
|
|
367
|
+
s !== (l == null ? void 0 : l.index) && (r = O.nextNode(), s++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return O.currentNode = H, n;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
373
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class Y {
|
|
377
377
|
get _$AU() {
|
|
378
378
|
var t;
|
|
379
379
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
380
380
|
}
|
|
381
381
|
constructor(t, e, i, n) {
|
|
382
|
-
this.type = 2, this._$AH =
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -393,7 +393,7 @@ class X {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = j(this, t, e), K(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== M && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Kt(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,26 +402,26 @@ class X {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !==
|
|
405
|
+
this._$AH !== d && K(this._$AH) ? this._$AA.nextSibling.data = t : this.T(H.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
408
|
var r;
|
|
409
|
-
const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
409
|
+
const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = G.createElement(Tt(i.h, i.h[0]), this.options)), i);
|
|
410
410
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const s = new
|
|
412
|
+
const s = new Jt(n, this), c = s.u(this.options);
|
|
413
413
|
s.p(e), this.T(c), this._$AH = s;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
|
-
let e =
|
|
418
|
-
return e === void 0 &&
|
|
417
|
+
let e = It.get(t.strings);
|
|
418
|
+
return e === void 0 && It.set(t.strings, e = new G(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
|
-
|
|
421
|
+
yt(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
423
|
let i, n = 0;
|
|
424
|
-
for (const r of t) n === e.length ? e.push(i = new
|
|
424
|
+
for (const r of t) n === e.length ? e.push(i = new Y(this.O(W()), this.O(W()), this, this.options)) : i = e[n], i._$AI(r), n++;
|
|
425
425
|
n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -436,7 +436,7 @@ class X {
|
|
|
436
436
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class it {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
@@ -444,46 +444,46 @@ class et {
|
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
446
|
constructor(t, e, i, n, r) {
|
|
447
|
-
this.type = 1, this._$AH =
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
|
448
448
|
}
|
|
449
449
|
_$AI(t, e = this, i, n) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (r === void 0) t =
|
|
452
|
+
if (r === void 0) t = j(this, t, e, 0), s = !K(t) || t !== this._$AH && t !== M, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
|
-
let l,
|
|
456
|
-
for (t = r[0], l = 0; l < r.length - 1; l++)
|
|
455
|
+
let l, v;
|
|
456
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) v = j(this, c[i + l], e, l), v === M && (v = this._$AH[l]), s || (s = !K(v) || v !== this._$AH[l]), v === d ? t = d : t !== d && (t += (v ?? "") + r[l + 1]), this._$AH[l] = v;
|
|
457
457
|
}
|
|
458
458
|
s && !n && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
|
-
t ===
|
|
461
|
+
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class Yt extends it {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
468
468
|
j(t) {
|
|
469
|
-
this.element[this.name] = t ===
|
|
469
|
+
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class Qt extends it {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
476
476
|
j(t) {
|
|
477
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
477
|
+
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class
|
|
480
|
+
class te extends it {
|
|
481
481
|
constructor(t, e, i, n, r) {
|
|
482
482
|
super(t, e, i, n, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t =
|
|
486
|
-
const i = this._$AH, n = t ===
|
|
485
|
+
if ((t = j(this, t, e, 0) ?? d) === M) return;
|
|
486
|
+
const i = this._$AH, n = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== d && (i === d || n);
|
|
487
487
|
n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
@@ -491,7 +491,7 @@ class Jt extends et {
|
|
|
491
491
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
class
|
|
494
|
+
class ee {
|
|
495
495
|
constructor(t, e, i) {
|
|
496
496
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
497
497
|
}
|
|
@@ -499,17 +499,17 @@ class Yt {
|
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
j(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
505
|
+
const ht = q.litHtmlPolyfillSupport;
|
|
506
|
+
ht == null || ht(G, Y), (q.litHtmlVersions ?? (q.litHtmlVersions = [])).push("3.3.0");
|
|
507
|
+
const oe = (o, t, e) => {
|
|
508
508
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
509
|
let n = i._$litPart$;
|
|
510
510
|
if (n === void 0) {
|
|
511
511
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
i._$litPart$ = n = new
|
|
512
|
+
i._$litPart$ = n = new Y(t.insertBefore(W(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return n._$AI(o), n;
|
|
515
515
|
};
|
|
@@ -518,8 +518,8 @@ const Qt = (o, t, e) => {
|
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
522
|
-
let m = class extends
|
|
521
|
+
const z = globalThis;
|
|
522
|
+
let m = class extends U {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -530,7 +530,7 @@ let m = class extends T {
|
|
|
530
530
|
}
|
|
531
531
|
update(t) {
|
|
532
532
|
const e = this.render();
|
|
533
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
533
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = oe(e, this.renderRoot, this.renderOptions);
|
|
534
534
|
}
|
|
535
535
|
connectedCallback() {
|
|
536
536
|
var t;
|
|
@@ -541,20 +541,20 @@ let m = class extends T {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return M;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
(
|
|
547
|
+
var Bt;
|
|
548
|
+
m._$litElement$ = !0, m.finalized = !0, (Bt = z.litElementHydrateSupport) == null || Bt.call(z, { LitElement: m });
|
|
549
|
+
const dt = z.litElementPolyfillSupport;
|
|
550
|
+
dt == null || dt({ LitElement: m });
|
|
551
|
+
(z.litElementVersions ?? (z.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
555
555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
556
|
*/
|
|
557
|
-
const
|
|
557
|
+
const _ = (o) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(o, t);
|
|
560
560
|
}) : customElements.define(o, t);
|
|
@@ -564,7 +564,7 @@ const A = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const
|
|
567
|
+
const ne = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: bt }, ie = (o = ne, t, e) => {
|
|
568
568
|
const { kind: i, metadata: n } = e;
|
|
569
569
|
let r = globalThis.litPropertyMetadata.get(n);
|
|
570
570
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), i === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), i === "accessor") {
|
|
@@ -586,7 +586,7 @@ const te = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged:
|
|
|
586
586
|
throw Error("Unsupported decorator location: " + i);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ?
|
|
589
|
+
return (t, e) => typeof e == "object" ? ie(o, t, e) : ((i, n, r) => {
|
|
590
590
|
const s = n.hasOwnProperty(r);
|
|
591
591
|
return n.constructor.createProperty(r, i), s ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
@@ -596,10 +596,10 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function st(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const se = w`
|
|
603
603
|
outline: 1px dashed var(--button-border-color);
|
|
604
604
|
outline-offset: 2px;
|
|
605
605
|
outline: dashed black;
|
|
@@ -614,12 +614,12 @@ w`
|
|
|
614
614
|
* Copyright 2023 Google LLC
|
|
615
615
|
* SPDX-License-Identifier: Apache-2.0
|
|
616
616
|
*/
|
|
617
|
-
const
|
|
618
|
-
function
|
|
617
|
+
const mt = Symbol("internals"), pt = Symbol("privateInternals");
|
|
618
|
+
function re(o) {
|
|
619
619
|
var t;
|
|
620
620
|
class e extends o {
|
|
621
|
-
get [(t =
|
|
622
|
-
return this[
|
|
621
|
+
get [(t = mt, t)]() {
|
|
622
|
+
return this[pt] || (this[pt] = this.attachInternals()), this[pt];
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
return e;
|
|
@@ -629,11 +629,11 @@ function ie(o) {
|
|
|
629
629
|
* Copyright 2023 Google LLC
|
|
630
630
|
* SPDX-License-Identifier: Apache-2.0
|
|
631
631
|
*/
|
|
632
|
-
function
|
|
632
|
+
function ae(o) {
|
|
633
633
|
o.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
635
|
e.addEventListener("click", async (i) => {
|
|
636
|
-
const { type: n, [
|
|
636
|
+
const { type: n, [mt]: r } = e, { form: s } = r;
|
|
637
637
|
if (!(!s || n === "button") && (await new Promise((c) => {
|
|
638
638
|
setTimeout(c);
|
|
639
639
|
}), !i.defaultPrevented)) {
|
|
@@ -656,41 +656,41 @@ function se(o) {
|
|
|
656
656
|
});
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
const
|
|
659
|
+
const le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
660
660
|
<path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
|
|
661
661
|
</svg>
|
|
662
|
-
`,
|
|
662
|
+
`, ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
663
663
|
<path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
|
|
664
664
|
</svg>
|
|
665
|
-
`,
|
|
665
|
+
`, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
666
666
|
<path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
|
|
667
667
|
</svg>
|
|
668
|
-
`,
|
|
668
|
+
`, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
669
669
|
<path d="M5 7.83838C6.02128 6.73401 8.16109 4.12121 11.4195 0L11.8571 0.282829C10.8116 2.59933 9.55927 5.17172 8.1003 8C9.55927 10.8283 10.8115 13.4007 11.8571 15.7172L11.4195 16C8.16109 11.8788 6.02128 9.266 5 8.16162L5 7.83838Z" fill="#3F2B2E"/>
|
|
670
670
|
</svg>
|
|
671
|
-
`,
|
|
671
|
+
`, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
672
672
|
<path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834ZM7.98873 10.328L10.6602 12.2353L9.64573 9.15787L12.2721 7.28568H9.02576L8 4.17317L6.97424 7.28568H3.72786L6.35427 9.15787L5.33977 12.2353L8.01127 10.328H7.98873Z" fill="#3F2B2E"/>
|
|
673
673
|
</svg>
|
|
674
|
-
`,
|
|
674
|
+
`, ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
675
675
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
|
|
676
676
|
</svg>
|
|
677
|
-
`,
|
|
677
|
+
`, ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
678
678
|
<path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
|
|
679
679
|
</svg>
|
|
680
|
-
`,
|
|
680
|
+
`, ge = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
681
681
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
|
|
682
682
|
</svg>
|
|
683
|
-
`,
|
|
683
|
+
`, fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
684
684
|
<path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
|
|
685
685
|
</svg>
|
|
686
|
-
`,
|
|
686
|
+
`, be = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
687
687
|
<path d="M2 2L14 14" stroke="#3F2B2E"/>
|
|
688
688
|
<path d="M14 2L2 14" stroke="#3F2B2E"/>
|
|
689
689
|
</svg>
|
|
690
|
-
`,
|
|
690
|
+
`, ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
691
691
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
692
692
|
</svg>
|
|
693
|
-
`,
|
|
693
|
+
`, me = `<?xml version="1.0" encoding="utf-8"?>
|
|
694
694
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
695
695
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
696
696
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -700,7 +700,7 @@ const re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
700
700
|
<path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
|
|
701
701
|
s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
|
|
702
702
|
</svg>
|
|
703
|
-
`,
|
|
703
|
+
`, we = `<?xml version="1.0" encoding="utf-8"?>
|
|
704
704
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
705
705
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
706
706
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -709,44 +709,56 @@ const re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
709
709
|
</style>
|
|
710
710
|
<path class="st0" d="M38.8,20.5H1.2c-0.7,0-1.2-0.6-1.2-1.2S0.6,18,1.2,18h37.5c0.7,0,1.2,0.6,1.2,1.2S39.4,20.5,38.8,20.5z"/>
|
|
711
711
|
</svg>
|
|
712
|
-
`,
|
|
712
|
+
`, xe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
713
713
|
<path d="M15.0009 8.12175C15.0009 8.36347 14.805 8.55943 14.5634 8.55943H2.49495L7.43502 13.5017C7.60609 13.6726 7.60628 13.9499 7.43546 14.1211C7.26464 14.2922 6.98749 14.2924 6.81642 14.1215L1.13 8.43163C1.04685 8.34998 1 8.23831 1 8.12175C1 8.00518 1.04685 7.89351 1.13 7.81187L6.81642 2.12286C6.98808 1.95699 7.26094 1.95937 7.4297 2.12819C7.59845 2.29702 7.60082 2.57001 7.43502 2.74175L2.49495 7.68406H14.5634C14.805 7.68406 15.0009 7.88002 15.0009 8.12175Z" fill="#3F2B2E"/>
|
|
714
714
|
</svg>
|
|
715
|
-
`,
|
|
715
|
+
`, $e = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
716
716
|
<path d="M14.1218 7.43502C13.9504 7.60543 13.6735 7.60543 13.5021 7.43502L8.55961 2.49408V14.5625C8.55961 14.8041 8.36365 15 8.12192 15C7.88018 15 7.68422 14.8041 7.68422 14.5625V2.49408L2.74177 7.43502C2.57002 7.60082 2.29703 7.59845 2.1282 7.4297C1.95936 7.26094 1.95699 6.98808 2.12287 6.81642L7.81203 1.13C7.89368 1.04685 8.00535 1 8.12192 1C8.23848 1 8.35015 1.04685 8.4318 1.13L14.121 6.81642C14.2921 6.98702 14.2925 7.26395 14.1218 7.43502Z" fill="#3F2B2E"/>
|
|
717
717
|
</svg>
|
|
718
|
-
`,
|
|
718
|
+
`, _e = `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
719
719
|
<path d="M6.33317 8.00033C6.33317 3.95024 7.52708 0.666992 8.99984 0.666992C10.4726 0.666992 11.6665 3.95024 11.6665 8.00033M5.33317 15.3337H12.6665L16.3332 6.20033C14.9582 5.76699 12.2998 5.33366 8.99984 5.33366C5.69984 5.33366 3.49984 5.76699 1.6665 6.20033L5.33317 15.3337Z" stroke="#3F2B2E"/>
|
|
720
720
|
</svg>
|
|
721
|
-
`,
|
|
721
|
+
`, Ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
722
722
|
<path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
|
|
723
723
|
</svg>
|
|
724
|
-
`,
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
724
|
+
`, Ae = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
725
|
+
<path d="M12 17.4585L4 6.4585L20 6.4585L12 17.4585Z" fill="#3F2B2E"/>
|
|
726
|
+
</svg>
|
|
727
|
+
`, ke = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
728
|
+
<path d="M12 6.4585L20 17.4585H4L12 6.4585Z" fill="#3F2B2E"/>
|
|
729
|
+
</svg>
|
|
730
|
+
`, Ee = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
731
|
+
<path d="M5.24611 10.4659C5.04705 10.4654 4.85616 10.3867 4.71465 10.2467L0.210718 5.74273C-0.0737595 5.44819 -0.0696911 4.98 0.219862 4.69045C0.509415 4.4009 0.977603 4.39683 1.27214 4.6813L5.18306 8.59071L10.6628 1.74024C10.9219 1.41646 11.3945 1.36403 11.7183 1.62314C12.042 1.88225 12.0945 2.35477 11.8354 2.67856L5.83012 10.1851C5.69763 10.3521 5.49956 10.4539 5.28665 10.4643L5.24611 10.4659Z" fill="#3F2B2E"/>
|
|
732
|
+
</svg>
|
|
733
|
+
`, Q = {
|
|
734
|
+
wishlist: le,
|
|
735
|
+
playerv: ce,
|
|
736
|
+
chevronRight: he,
|
|
737
|
+
chevronLeft: de,
|
|
738
|
+
icoPlus: me,
|
|
739
|
+
icoMinus: we,
|
|
740
|
+
"star-0": pe,
|
|
741
|
+
"star-25": ue,
|
|
742
|
+
"star-50": ve,
|
|
743
|
+
"star-75": ge,
|
|
744
|
+
"star-100": fe,
|
|
745
|
+
cross: be,
|
|
746
|
+
search: ye,
|
|
747
|
+
arrowLeft: xe,
|
|
748
|
+
arrowTop: $e,
|
|
749
|
+
cart: _e,
|
|
750
|
+
notifyme: Ce,
|
|
751
|
+
triangledown: Ae,
|
|
752
|
+
triangleup: ke,
|
|
753
|
+
checkstroke: Ee
|
|
742
754
|
};
|
|
743
755
|
/**
|
|
744
756
|
* @license
|
|
745
757
|
* Copyright 2017 Google LLC
|
|
746
758
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
747
759
|
*/
|
|
748
|
-
const
|
|
749
|
-
class
|
|
760
|
+
const Se = { CHILD: 2 }, Le = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
761
|
+
class Pe {
|
|
750
762
|
constructor(t) {
|
|
751
763
|
}
|
|
752
764
|
get _$AU() {
|
|
@@ -767,13 +779,13 @@ class Ae {
|
|
|
767
779
|
* Copyright 2017 Google LLC
|
|
768
780
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
769
781
|
*/
|
|
770
|
-
class
|
|
782
|
+
class ut extends Pe {
|
|
771
783
|
constructor(t) {
|
|
772
|
-
if (super(t), this.it =
|
|
784
|
+
if (super(t), this.it = d, t.type !== Se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
773
785
|
}
|
|
774
786
|
render(t) {
|
|
775
|
-
if (t ===
|
|
776
|
-
if (t ===
|
|
787
|
+
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
788
|
+
if (t === M) return t;
|
|
777
789
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
778
790
|
if (t === this.it) return this._t;
|
|
779
791
|
this.it = t;
|
|
@@ -781,23 +793,23 @@ class ht extends Ae {
|
|
|
781
793
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
782
794
|
}
|
|
783
795
|
}
|
|
784
|
-
|
|
796
|
+
ut.directiveName = "unsafeHTML", ut.resultType = 1;
|
|
785
797
|
/**
|
|
786
798
|
* @license
|
|
787
799
|
* Copyright 2017 Google LLC
|
|
788
800
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
789
801
|
*/
|
|
790
|
-
class
|
|
802
|
+
class vt extends ut {
|
|
791
803
|
}
|
|
792
|
-
|
|
793
|
-
const
|
|
794
|
-
var
|
|
795
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
804
|
+
vt.directiveName = "unsafeSVG", vt.resultType = 2;
|
|
805
|
+
const N = Le(vt);
|
|
806
|
+
var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, y = (o, t, e, i) => {
|
|
807
|
+
for (var n = i > 1 ? void 0 : i ? Be(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
796
808
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
797
|
-
return i && n &&
|
|
809
|
+
return i && n && Ie(t, e, n), n;
|
|
798
810
|
};
|
|
799
|
-
const
|
|
800
|
-
let u = class extends
|
|
811
|
+
const Oe = re(m);
|
|
812
|
+
let u = class extends Oe {
|
|
801
813
|
constructor() {
|
|
802
814
|
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "search", this.endIconModel = "chevronRight", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "";
|
|
803
815
|
}
|
|
@@ -808,7 +820,7 @@ let u = class extends Le {
|
|
|
808
820
|
this.setAttribute("name", o);
|
|
809
821
|
}
|
|
810
822
|
get form() {
|
|
811
|
-
return this[
|
|
823
|
+
return this[mt].form;
|
|
812
824
|
}
|
|
813
825
|
handleClick() {
|
|
814
826
|
if (this.panelTarget) {
|
|
@@ -821,23 +833,23 @@ let u = class extends Le {
|
|
|
821
833
|
}
|
|
822
834
|
renderIcon(o) {
|
|
823
835
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
824
|
-
if (!t) return
|
|
825
|
-
const e =
|
|
836
|
+
if (!t) return d;
|
|
837
|
+
const e = Q[t].replace(
|
|
826
838
|
"<svg",
|
|
827
839
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
828
840
|
);
|
|
829
|
-
return h`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
841
|
+
return h`<span class="${o === "start" ? "icon-start" : "icon-end"}">${N(e)}</span>`;
|
|
830
842
|
}
|
|
831
843
|
renderButton() {
|
|
832
844
|
const o = this.text || this.textsecond;
|
|
833
845
|
return h`
|
|
834
846
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
835
|
-
${this.startIcon ? this.renderIcon("start") :
|
|
847
|
+
${this.startIcon ? this.renderIcon("start") : d}
|
|
836
848
|
${o ? h`
|
|
837
|
-
${this.text ? h`<span class="text">${this.text}</span>` :
|
|
838
|
-
${this.textsecond ? h`<span class="text">${this.textsecond}</span>` :
|
|
849
|
+
${this.text ? h`<span class="text">${this.text}</span>` : d}
|
|
850
|
+
${this.textsecond ? h`<span class="text">${this.textsecond}</span>` : d}
|
|
839
851
|
` : h`<slot></slot>`}
|
|
840
|
-
${this.endIcon ? this.renderIcon("end") :
|
|
852
|
+
${this.endIcon ? this.renderIcon("end") : d}
|
|
841
853
|
</button>
|
|
842
854
|
`;
|
|
843
855
|
}
|
|
@@ -846,21 +858,21 @@ let u = class extends Le {
|
|
|
846
858
|
return h`
|
|
847
859
|
<a
|
|
848
860
|
href=${this.href}
|
|
849
|
-
target=${this.target ||
|
|
861
|
+
target=${this.target || d}
|
|
850
862
|
class="button"
|
|
851
863
|
?disabled=${this.disabled}
|
|
852
864
|
>
|
|
853
|
-
${this.startIcon ? this.renderIcon("start") :
|
|
865
|
+
${this.startIcon ? this.renderIcon("start") : d}
|
|
854
866
|
${o ? h`
|
|
855
|
-
${this.text ? h`<span>${this.text}</span>` :
|
|
856
|
-
${this.textsecond ? h`<span>${this.textsecond}</span>` :
|
|
867
|
+
${this.text ? h`<span>${this.text}</span>` : d}
|
|
868
|
+
${this.textsecond ? h`<span>${this.textsecond}</span>` : d}
|
|
857
869
|
` : h`<slot></slot>`}
|
|
858
|
-
${this.endIcon ? this.renderIcon("end") :
|
|
870
|
+
${this.endIcon ? this.renderIcon("end") : d}
|
|
859
871
|
</a>
|
|
860
872
|
`;
|
|
861
873
|
}
|
|
862
874
|
};
|
|
863
|
-
|
|
875
|
+
ae(u);
|
|
864
876
|
u.formAssociated = !0;
|
|
865
877
|
u.styles = w`
|
|
866
878
|
:host {
|
|
@@ -974,7 +986,7 @@ u.styles = w`
|
|
|
974
986
|
}
|
|
975
987
|
|
|
976
988
|
.button:focus-visible {
|
|
977
|
-
${
|
|
989
|
+
${se};
|
|
978
990
|
}
|
|
979
991
|
|
|
980
992
|
span.text + span.text::before {
|
|
@@ -1063,14 +1075,14 @@ y([
|
|
|
1063
1075
|
a({ type: String })
|
|
1064
1076
|
], u.prototype, "target", 2);
|
|
1065
1077
|
u = y([
|
|
1066
|
-
|
|
1078
|
+
_("o-button")
|
|
1067
1079
|
], u);
|
|
1068
|
-
var
|
|
1069
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
1080
|
+
var ze = Object.defineProperty, He = Object.getOwnPropertyDescriptor, rt = (o, t, e, i) => {
|
|
1081
|
+
for (var n = i > 1 ? void 0 : i ? He(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1070
1082
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
1071
|
-
return i && n &&
|
|
1083
|
+
return i && n && ze(t, e, n), n;
|
|
1072
1084
|
};
|
|
1073
|
-
let
|
|
1085
|
+
let F = class extends m {
|
|
1074
1086
|
constructor() {
|
|
1075
1087
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1076
1088
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1090,14 +1102,14 @@ let U = class extends m {
|
|
|
1090
1102
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
1091
1103
|
}
|
|
1092
1104
|
render() {
|
|
1093
|
-
const o =
|
|
1105
|
+
const o = Q.wishlist.replace(
|
|
1094
1106
|
"<svg",
|
|
1095
1107
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1096
1108
|
);
|
|
1097
1109
|
return h`
|
|
1098
1110
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1099
1111
|
<span class="sr-only">${this.label}</span>
|
|
1100
|
-
${
|
|
1112
|
+
${N(o)}
|
|
1101
1113
|
</button>
|
|
1102
1114
|
`;
|
|
1103
1115
|
}
|
|
@@ -1111,7 +1123,7 @@ let U = class extends m {
|
|
|
1111
1123
|
this.label = o, this.requestUpdate();
|
|
1112
1124
|
}
|
|
1113
1125
|
};
|
|
1114
|
-
|
|
1126
|
+
F.styles = w`
|
|
1115
1127
|
:host {
|
|
1116
1128
|
display: inline-flex;
|
|
1117
1129
|
justify-content: center;
|
|
@@ -1176,24 +1188,24 @@ U.styles = w`
|
|
|
1176
1188
|
white-space: nowrap !important;
|
|
1177
1189
|
}
|
|
1178
1190
|
`;
|
|
1179
|
-
|
|
1191
|
+
rt([
|
|
1180
1192
|
a({ type: String, reflect: !0 })
|
|
1181
|
-
],
|
|
1182
|
-
|
|
1193
|
+
], F.prototype, "status", 2);
|
|
1194
|
+
rt([
|
|
1183
1195
|
a({ type: String, reflect: !0 })
|
|
1184
|
-
],
|
|
1185
|
-
|
|
1196
|
+
], F.prototype, "ariaDescribedBy", 2);
|
|
1197
|
+
rt([
|
|
1186
1198
|
a({ type: String, reflect: !0 })
|
|
1187
|
-
],
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
],
|
|
1191
|
-
var
|
|
1192
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
1199
|
+
], F.prototype, "label", 2);
|
|
1200
|
+
F = rt([
|
|
1201
|
+
_("o-wishlist-button")
|
|
1202
|
+
], F);
|
|
1203
|
+
var Me = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, I = (o, t, e, i) => {
|
|
1204
|
+
for (var n = i > 1 ? void 0 : i ? Te(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1193
1205
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
1194
|
-
return i && n &&
|
|
1206
|
+
return i && n && Me(t, e, n), n;
|
|
1195
1207
|
};
|
|
1196
|
-
let
|
|
1208
|
+
let $ = class extends m {
|
|
1197
1209
|
constructor() {
|
|
1198
1210
|
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
|
|
1199
1211
|
}
|
|
@@ -1201,14 +1213,14 @@ let x = class extends m {
|
|
|
1201
1213
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1202
1214
|
}
|
|
1203
1215
|
render() {
|
|
1204
|
-
const o =
|
|
1216
|
+
const o = Q[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
|
|
1205
1217
|
"<svg",
|
|
1206
1218
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1207
1219
|
);
|
|
1208
1220
|
return h`
|
|
1209
1221
|
${this.type === "span" ? h`
|
|
1210
1222
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1211
|
-
${
|
|
1223
|
+
${N(e)}
|
|
1212
1224
|
</span>
|
|
1213
1225
|
` : h`
|
|
1214
1226
|
<button
|
|
@@ -1217,13 +1229,13 @@ let x = class extends m {
|
|
|
1217
1229
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1218
1230
|
?disabled="${this.disabled}"
|
|
1219
1231
|
>
|
|
1220
|
-
${
|
|
1232
|
+
${N(e)}
|
|
1221
1233
|
</button>
|
|
1222
1234
|
`}
|
|
1223
1235
|
`;
|
|
1224
1236
|
}
|
|
1225
1237
|
};
|
|
1226
|
-
|
|
1238
|
+
$.styles = w`
|
|
1227
1239
|
:host {
|
|
1228
1240
|
display: inline-flex;
|
|
1229
1241
|
justify-content: center;
|
|
@@ -1423,42 +1435,42 @@ x.styles = w`
|
|
|
1423
1435
|
|
|
1424
1436
|
}
|
|
1425
1437
|
`;
|
|
1426
|
-
|
|
1438
|
+
I([
|
|
1427
1439
|
a({ type: String, reflect: !0 })
|
|
1428
|
-
],
|
|
1429
|
-
|
|
1440
|
+
], $.prototype, "bgstyle", 2);
|
|
1441
|
+
I([
|
|
1430
1442
|
a({ type: String, reflect: !0 })
|
|
1431
|
-
],
|
|
1432
|
-
|
|
1443
|
+
], $.prototype, "size", 2);
|
|
1444
|
+
I([
|
|
1433
1445
|
a({ type: String, reflect: !0 })
|
|
1434
|
-
],
|
|
1435
|
-
|
|
1446
|
+
], $.prototype, "status", 2);
|
|
1447
|
+
I([
|
|
1436
1448
|
a({ type: String, reflect: !0 })
|
|
1437
|
-
],
|
|
1438
|
-
|
|
1449
|
+
], $.prototype, "type", 2);
|
|
1450
|
+
I([
|
|
1439
1451
|
a({ type: String })
|
|
1440
|
-
],
|
|
1441
|
-
|
|
1452
|
+
], $.prototype, "strokewidth", 2);
|
|
1453
|
+
I([
|
|
1442
1454
|
a({ type: String })
|
|
1443
|
-
],
|
|
1444
|
-
|
|
1455
|
+
], $.prototype, "icon", 2);
|
|
1456
|
+
I([
|
|
1445
1457
|
a({ type: Boolean, reflect: !0 })
|
|
1446
|
-
],
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
],
|
|
1458
|
+
], $.prototype, "disabled", 2);
|
|
1459
|
+
$ = I([
|
|
1460
|
+
_("o-icon-button")
|
|
1461
|
+
], $);
|
|
1450
1462
|
/**
|
|
1451
1463
|
* @license
|
|
1452
1464
|
* Copyright 2018 Google LLC
|
|
1453
1465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1454
1466
|
*/
|
|
1455
|
-
const
|
|
1456
|
-
var
|
|
1457
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
1467
|
+
const De = (o) => o ?? d;
|
|
1468
|
+
var Ue = Object.defineProperty, je = Object.getOwnPropertyDescriptor, T = (o, t, e, i) => {
|
|
1469
|
+
for (var n = i > 1 ? void 0 : i ? je(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1458
1470
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
1459
|
-
return i && n &&
|
|
1471
|
+
return i && n && Ue(t, e, n), n;
|
|
1460
1472
|
};
|
|
1461
|
-
let
|
|
1473
|
+
let A = class extends m {
|
|
1462
1474
|
constructor() {
|
|
1463
1475
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1464
1476
|
}
|
|
@@ -1470,7 +1482,7 @@ let _ = class extends m {
|
|
|
1470
1482
|
return h`
|
|
1471
1483
|
<a
|
|
1472
1484
|
href="${o}"
|
|
1473
|
-
target="${
|
|
1485
|
+
target="${De(this.target || void 0)}"
|
|
1474
1486
|
@click="${this._handleClick}"
|
|
1475
1487
|
>
|
|
1476
1488
|
${this.endIcon && this.reverseEndIcon ? h`
|
|
@@ -1496,7 +1508,7 @@ let _ = class extends m {
|
|
|
1496
1508
|
`;
|
|
1497
1509
|
}
|
|
1498
1510
|
};
|
|
1499
|
-
|
|
1511
|
+
A.styles = w`
|
|
1500
1512
|
:host([template="standard"]) a {
|
|
1501
1513
|
color: var(--color-content-action-secondary);
|
|
1502
1514
|
font-size: var(--font-size-200);
|
|
@@ -1584,33 +1596,33 @@ _.styles = w`
|
|
|
1584
1596
|
}
|
|
1585
1597
|
/* End of underline effect */
|
|
1586
1598
|
`;
|
|
1587
|
-
|
|
1599
|
+
T([
|
|
1588
1600
|
a({ type: String })
|
|
1589
|
-
],
|
|
1590
|
-
|
|
1601
|
+
], A.prototype, "href", 2);
|
|
1602
|
+
T([
|
|
1591
1603
|
a({ type: String })
|
|
1592
|
-
],
|
|
1593
|
-
|
|
1604
|
+
], A.prototype, "target", 2);
|
|
1605
|
+
T([
|
|
1594
1606
|
a({ type: String, reflect: !0 })
|
|
1595
|
-
],
|
|
1596
|
-
|
|
1607
|
+
], A.prototype, "template", 2);
|
|
1608
|
+
T([
|
|
1597
1609
|
a({ type: Boolean, reflect: !0 })
|
|
1598
|
-
],
|
|
1599
|
-
|
|
1610
|
+
], A.prototype, "inverse", 2);
|
|
1611
|
+
T([
|
|
1600
1612
|
a({ type: Boolean, reflect: !0 })
|
|
1601
|
-
],
|
|
1602
|
-
|
|
1613
|
+
], A.prototype, "endIcon", 2);
|
|
1614
|
+
T([
|
|
1603
1615
|
a({ type: Boolean, reflect: !0 })
|
|
1604
|
-
],
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
],
|
|
1608
|
-
var
|
|
1609
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
1616
|
+
], A.prototype, "reverseEndIcon", 2);
|
|
1617
|
+
A = T([
|
|
1618
|
+
_("o-link")
|
|
1619
|
+
], A);
|
|
1620
|
+
var Ne = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, at = (o, t, e, i) => {
|
|
1621
|
+
for (var n = i > 1 ? void 0 : i ? Fe(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1610
1622
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
1611
|
-
return i && n &&
|
|
1623
|
+
return i && n && Ne(t, e, n), n;
|
|
1612
1624
|
};
|
|
1613
|
-
let
|
|
1625
|
+
let V = class extends m {
|
|
1614
1626
|
constructor() {
|
|
1615
1627
|
super(...arguments), this.rating = 0;
|
|
1616
1628
|
}
|
|
@@ -1629,7 +1641,7 @@ let N = class extends m {
|
|
|
1629
1641
|
<div class="rating">
|
|
1630
1642
|
<div class="stars">
|
|
1631
1643
|
${o.map(
|
|
1632
|
-
(t) => h`<span class="star">${
|
|
1644
|
+
(t) => h`<span class="star">${N(Q[t] ?? "")}</span>`
|
|
1633
1645
|
)}
|
|
1634
1646
|
</div>
|
|
1635
1647
|
${this.reviewCount != null && this.href != null ? h`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1637,7 +1649,7 @@ let N = class extends m {
|
|
|
1637
1649
|
`;
|
|
1638
1650
|
}
|
|
1639
1651
|
};
|
|
1640
|
-
|
|
1652
|
+
V.styles = w`
|
|
1641
1653
|
svg {
|
|
1642
1654
|
width: 12px;
|
|
1643
1655
|
height: 12px;
|
|
@@ -1671,24 +1683,24 @@ N.styles = w`
|
|
|
1671
1683
|
cursor: pointer;
|
|
1672
1684
|
}
|
|
1673
1685
|
`;
|
|
1674
|
-
|
|
1686
|
+
at([
|
|
1675
1687
|
a({ type: Number })
|
|
1676
|
-
],
|
|
1677
|
-
|
|
1688
|
+
], V.prototype, "rating", 2);
|
|
1689
|
+
at([
|
|
1678
1690
|
a({ type: String })
|
|
1679
|
-
],
|
|
1680
|
-
|
|
1691
|
+
], V.prototype, "reviewCount", 2);
|
|
1692
|
+
at([
|
|
1681
1693
|
a({ type: String })
|
|
1682
|
-
],
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
],
|
|
1686
|
-
var
|
|
1687
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
1694
|
+
], V.prototype, "href", 2);
|
|
1695
|
+
V = at([
|
|
1696
|
+
_("o-rating")
|
|
1697
|
+
], V);
|
|
1698
|
+
var Ve = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, b = (o, t, e, i) => {
|
|
1699
|
+
for (var n = i > 1 ? void 0 : i ? Re(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1688
1700
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
1689
|
-
return i && n &&
|
|
1701
|
+
return i && n && Ve(t, e, n), n;
|
|
1690
1702
|
};
|
|
1691
|
-
let
|
|
1703
|
+
let g = class extends m {
|
|
1692
1704
|
constructor() {
|
|
1693
1705
|
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1694
1706
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
@@ -1787,7 +1799,7 @@ let f = class extends m {
|
|
|
1787
1799
|
`;
|
|
1788
1800
|
}
|
|
1789
1801
|
};
|
|
1790
|
-
|
|
1802
|
+
g.styles = w`
|
|
1791
1803
|
:host {
|
|
1792
1804
|
--z-overlay: 99;
|
|
1793
1805
|
--z-panel: 100;
|
|
@@ -1930,58 +1942,58 @@ f.styles = w`
|
|
|
1930
1942
|
`;
|
|
1931
1943
|
b([
|
|
1932
1944
|
a({ type: Boolean, reflect: !0 })
|
|
1933
|
-
],
|
|
1945
|
+
], g.prototype, "open", 2);
|
|
1934
1946
|
b([
|
|
1935
1947
|
a({ type: Boolean, reflect: !0 })
|
|
1936
|
-
],
|
|
1948
|
+
], g.prototype, "showHeader", 2);
|
|
1937
1949
|
b([
|
|
1938
1950
|
a({ type: Boolean, reflect: !0 })
|
|
1939
|
-
],
|
|
1951
|
+
], g.prototype, "showFooter", 2);
|
|
1940
1952
|
b([
|
|
1941
1953
|
a({ type: Boolean, reflect: !0 })
|
|
1942
|
-
],
|
|
1954
|
+
], g.prototype, "showHeaderStartIcon", 2);
|
|
1943
1955
|
b([
|
|
1944
1956
|
a({ type: String, reflect: !0 })
|
|
1945
|
-
],
|
|
1957
|
+
], g.prototype, "headerTitle", 2);
|
|
1946
1958
|
b([
|
|
1947
1959
|
a({ type: String, reflect: !0 })
|
|
1948
|
-
],
|
|
1960
|
+
], g.prototype, "closeButtonLabel", 2);
|
|
1949
1961
|
b([
|
|
1950
1962
|
a({ type: String, reflect: !0 })
|
|
1951
|
-
],
|
|
1963
|
+
], g.prototype, "firstButtonLabel", 2);
|
|
1952
1964
|
b([
|
|
1953
1965
|
a({ type: String, reflect: !0 })
|
|
1954
|
-
],
|
|
1966
|
+
], g.prototype, "firstButtonVariant", 2);
|
|
1955
1967
|
b([
|
|
1956
1968
|
a({ type: Function })
|
|
1957
|
-
],
|
|
1969
|
+
], g.prototype, "onFirstButtonClick", 2);
|
|
1958
1970
|
b([
|
|
1959
1971
|
a({ type: String, reflect: !0 })
|
|
1960
|
-
],
|
|
1972
|
+
], g.prototype, "secondaryButtonLabel", 2);
|
|
1961
1973
|
b([
|
|
1962
1974
|
a({ type: String, reflect: !0 })
|
|
1963
|
-
],
|
|
1975
|
+
], g.prototype, "secondaryButtonVariant", 2);
|
|
1964
1976
|
b([
|
|
1965
1977
|
a({ type: Function })
|
|
1966
|
-
],
|
|
1978
|
+
], g.prototype, "onSecondaryButtonClick", 2);
|
|
1967
1979
|
b([
|
|
1968
1980
|
a({ type: Boolean, reflect: !0 })
|
|
1969
|
-
],
|
|
1981
|
+
], g.prototype, "disablePortal", 2);
|
|
1970
1982
|
b([
|
|
1971
1983
|
a({ type: Number, reflect: !0 })
|
|
1972
|
-
],
|
|
1984
|
+
], g.prototype, "zIndex", 2);
|
|
1973
1985
|
b([
|
|
1974
1986
|
a({ type: Boolean, reflect: !0 })
|
|
1975
|
-
],
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
],
|
|
1979
|
-
var
|
|
1980
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
1987
|
+
], g.prototype, "initialized", 2);
|
|
1988
|
+
g = b([
|
|
1989
|
+
_("o-side-panel")
|
|
1990
|
+
], g);
|
|
1991
|
+
var Ze = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, D = (o, t, e, i) => {
|
|
1992
|
+
for (var n = i > 1 ? void 0 : i ? qe(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1981
1993
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
1982
|
-
return i && n &&
|
|
1994
|
+
return i && n && Ze(t, e, n), n;
|
|
1983
1995
|
};
|
|
1984
|
-
let
|
|
1996
|
+
let k = class extends m {
|
|
1985
1997
|
constructor() {
|
|
1986
1998
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
|
|
1987
1999
|
<o-icon-button
|
|
@@ -2042,7 +2054,7 @@ let C = class extends m {
|
|
|
2042
2054
|
`;
|
|
2043
2055
|
}
|
|
2044
2056
|
};
|
|
2045
|
-
|
|
2057
|
+
k.styles = w`
|
|
2046
2058
|
:host {
|
|
2047
2059
|
display: flex;
|
|
2048
2060
|
gap: 5px;
|
|
@@ -2146,33 +2158,33 @@ C.styles = w`
|
|
|
2146
2158
|
width: 0;
|
|
2147
2159
|
}
|
|
2148
2160
|
`;
|
|
2149
|
-
|
|
2161
|
+
D([
|
|
2150
2162
|
a({ type: Array })
|
|
2151
|
-
],
|
|
2152
|
-
|
|
2163
|
+
], k.prototype, "thumbnails", 2);
|
|
2164
|
+
D([
|
|
2153
2165
|
a({ type: Number })
|
|
2154
|
-
],
|
|
2155
|
-
|
|
2166
|
+
], k.prototype, "activeIndex", 2);
|
|
2167
|
+
D([
|
|
2156
2168
|
a({ type: Array })
|
|
2157
|
-
],
|
|
2158
|
-
|
|
2169
|
+
], k.prototype, "disabledIndexes", 2);
|
|
2170
|
+
D([
|
|
2159
2171
|
a({ type: String })
|
|
2160
|
-
],
|
|
2161
|
-
|
|
2172
|
+
], k.prototype, "maxWidth", 2);
|
|
2173
|
+
D([
|
|
2162
2174
|
a({ type: Object })
|
|
2163
|
-
],
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
],
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
],
|
|
2170
|
-
var
|
|
2171
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
2175
|
+
], k.prototype, "swiperInstance", 2);
|
|
2176
|
+
D([
|
|
2177
|
+
st()
|
|
2178
|
+
], k.prototype, "focusedIndex", 2);
|
|
2179
|
+
k = D([
|
|
2180
|
+
_("thumbnail-navigation")
|
|
2181
|
+
], k);
|
|
2182
|
+
var We = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, wt = (o, t, e, i) => {
|
|
2183
|
+
for (var n = i > 1 ? void 0 : i ? Ke(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2172
2184
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
2173
|
-
return i && n &&
|
|
2185
|
+
return i && n && We(t, e, n), n;
|
|
2174
2186
|
};
|
|
2175
|
-
let
|
|
2187
|
+
let X = class extends m {
|
|
2176
2188
|
constructor() {
|
|
2177
2189
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2178
2190
|
}
|
|
@@ -2182,7 +2194,7 @@ let G = class extends m {
|
|
|
2182
2194
|
`;
|
|
2183
2195
|
}
|
|
2184
2196
|
};
|
|
2185
|
-
|
|
2197
|
+
X.styles = w`
|
|
2186
2198
|
.tag {
|
|
2187
2199
|
display: inline-block;
|
|
2188
2200
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2238,21 +2250,21 @@ G.styles = w`
|
|
|
2238
2250
|
}
|
|
2239
2251
|
|
|
2240
2252
|
`;
|
|
2241
|
-
|
|
2253
|
+
wt([
|
|
2242
2254
|
a({ type: String, reflect: !0 })
|
|
2243
|
-
],
|
|
2244
|
-
|
|
2255
|
+
], X.prototype, "type", 2);
|
|
2256
|
+
wt([
|
|
2245
2257
|
a({ type: String, reflect: !0 })
|
|
2246
|
-
],
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
],
|
|
2250
|
-
var
|
|
2251
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
2258
|
+
], X.prototype, "bgstyle", 2);
|
|
2259
|
+
X = wt([
|
|
2260
|
+
_("o-tag")
|
|
2261
|
+
], X);
|
|
2262
|
+
var Ge = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, xt = (o, t, e, i) => {
|
|
2263
|
+
for (var n = i > 1 ? void 0 : i ? Xe(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2252
2264
|
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
2253
|
-
return i && n &&
|
|
2265
|
+
return i && n && Ge(t, e, n), n;
|
|
2254
2266
|
};
|
|
2255
|
-
let
|
|
2267
|
+
let J = class extends m {
|
|
2256
2268
|
constructor() {
|
|
2257
2269
|
super(...arguments), this.type = "top", this.text = "";
|
|
2258
2270
|
}
|
|
@@ -2265,7 +2277,7 @@ let K = class extends m {
|
|
|
2265
2277
|
`;
|
|
2266
2278
|
}
|
|
2267
2279
|
};
|
|
2268
|
-
|
|
2280
|
+
J.styles = w`
|
|
2269
2281
|
.tooltip {
|
|
2270
2282
|
position: relative;
|
|
2271
2283
|
display: inline-block;
|
|
@@ -2281,7 +2293,7 @@ K.styles = w`
|
|
|
2281
2293
|
font-size: var(--font-size-100);
|
|
2282
2294
|
font-weight: var(--font-weight-400);
|
|
2283
2295
|
text-align: center;
|
|
2284
|
-
padding:
|
|
2296
|
+
padding: 8px;
|
|
2285
2297
|
border-radius: 6px;
|
|
2286
2298
|
min-width: 120px;
|
|
2287
2299
|
max-width: 500px;
|
|
@@ -2358,12 +2370,243 @@ K.styles = w`
|
|
|
2358
2370
|
}
|
|
2359
2371
|
|
|
2360
2372
|
`;
|
|
2361
|
-
|
|
2373
|
+
xt([
|
|
2374
|
+
a({ type: String, reflect: !0 })
|
|
2375
|
+
], J.prototype, "type", 2);
|
|
2376
|
+
xt([
|
|
2377
|
+
a({ type: String, reflect: !0 })
|
|
2378
|
+
], J.prototype, "text", 2);
|
|
2379
|
+
J = xt([
|
|
2380
|
+
_("o-tooltip")
|
|
2381
|
+
], J);
|
|
2382
|
+
var Je = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, E = (o, t, e, i) => {
|
|
2383
|
+
for (var n = i > 1 ? void 0 : i ? Ye(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2384
|
+
(s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
2385
|
+
return i && n && Je(t, e, n), n;
|
|
2386
|
+
};
|
|
2387
|
+
let x = class extends m {
|
|
2388
|
+
constructor() {
|
|
2389
|
+
super(...arguments), this.options = [], this.value = "", this.name = "", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this._handleOutsideClick = (o) => {
|
|
2390
|
+
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
2391
|
+
}, this.menuWidth = "";
|
|
2392
|
+
}
|
|
2393
|
+
connectedCallback() {
|
|
2394
|
+
super.connectedCallback(), document.addEventListener("click", this._handleOutsideClick);
|
|
2395
|
+
}
|
|
2396
|
+
disconnectedCallback() {
|
|
2397
|
+
document.removeEventListener("click", this._handleOutsideClick), super.disconnectedCallback();
|
|
2398
|
+
}
|
|
2399
|
+
toggle() {
|
|
2400
|
+
var o;
|
|
2401
|
+
if (!this.disabled && (this.open = !this.open, this.activeIndex = this.open ? this.options.findIndex((t) => t.value === this.value) : -1, this.open && this.width === "auto")) {
|
|
2402
|
+
const t = (o = this.renderRoot) == null ? void 0 : o.querySelector("button");
|
|
2403
|
+
t && (this.menuWidth = `${t.getBoundingClientRect().width}px`);
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
selectOption(o) {
|
|
2407
|
+
this.value = o.value, this.dispatchEvent(new CustomEvent("change", { detail: { value: this.value } }));
|
|
2408
|
+
}
|
|
2409
|
+
handleKeydown(o) {
|
|
2410
|
+
if (this.disabled) {
|
|
2411
|
+
o.preventDefault();
|
|
2412
|
+
return;
|
|
2413
|
+
}
|
|
2414
|
+
if (!this.open) {
|
|
2415
|
+
(o.key === "ArrowDown" || o.key === "ArrowUp") && (o.preventDefault(), this.open = !0, this.activeIndex = this.options.findIndex((t) => t.value === this.value));
|
|
2416
|
+
return;
|
|
2417
|
+
}
|
|
2418
|
+
switch (o.key) {
|
|
2419
|
+
case "ArrowDown":
|
|
2420
|
+
o.preventDefault(), this.activeIndex = (this.activeIndex + 1) % this.options.length;
|
|
2421
|
+
break;
|
|
2422
|
+
case "ArrowUp":
|
|
2423
|
+
o.preventDefault(), this.activeIndex = (this.activeIndex - 1 + this.options.length) % this.options.length;
|
|
2424
|
+
break;
|
|
2425
|
+
case "Enter":
|
|
2426
|
+
o.preventDefault(), this.activeIndex >= 0 && this.selectOption(this.options[this.activeIndex]);
|
|
2427
|
+
break;
|
|
2428
|
+
case "Escape":
|
|
2429
|
+
o.preventDefault(), this.open = !1, this.activeIndex = -1;
|
|
2430
|
+
break;
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
updated(o) {
|
|
2434
|
+
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
2435
|
+
}
|
|
2436
|
+
render() {
|
|
2437
|
+
const o = Q.checkstroke.replace(
|
|
2438
|
+
"<svg",
|
|
2439
|
+
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2440
|
+
), t = this.options.find((e) => e.value === this.value);
|
|
2441
|
+
return h`
|
|
2442
|
+
<button
|
|
2443
|
+
@click=${this.toggle}
|
|
2444
|
+
@keydown=${this.handleKeydown}
|
|
2445
|
+
aria-haspopup="listbox"
|
|
2446
|
+
aria-expanded="${this.open}"
|
|
2447
|
+
style=${`width: ${this.width};`}
|
|
2448
|
+
?disabled=${this.disabled}
|
|
2449
|
+
>
|
|
2450
|
+
<div class="btn-content">
|
|
2451
|
+
<span class="label">${t ? t.label : "Select an option"}</span>
|
|
2452
|
+
<span class="arrow"><o-icon-button icon='${this.open ? "triangleup" : "triangledown"}' size="small" bgstyle="none-contrast" type="span"></o-icon-button></span>
|
|
2453
|
+
</div>
|
|
2454
|
+
</button>
|
|
2455
|
+
|
|
2456
|
+
${this.open ? h`
|
|
2457
|
+
<ul role="listbox" style=${`width: ${this.width};`}>
|
|
2458
|
+
${this.options.map(
|
|
2459
|
+
(e, i) => h`
|
|
2460
|
+
<li
|
|
2461
|
+
role="option"
|
|
2462
|
+
aria-selected="${e.value === this.value}"
|
|
2463
|
+
class="${i === this.activeIndex ? "active" : ""}"
|
|
2464
|
+
@click=${() => this.selectOption(e)}
|
|
2465
|
+
>
|
|
2466
|
+
<span>${e.label}</span>
|
|
2467
|
+
${e.value === this.value ? h`<span class="check">${N(o)}</span>` : null}
|
|
2468
|
+
</li>
|
|
2469
|
+
`
|
|
2470
|
+
)}
|
|
2471
|
+
</ul>
|
|
2472
|
+
` : null}
|
|
2473
|
+
|
|
2474
|
+
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
2475
|
+
`;
|
|
2476
|
+
}
|
|
2477
|
+
};
|
|
2478
|
+
x.styles = w`
|
|
2479
|
+
:host {
|
|
2480
|
+
display: inline-block;
|
|
2481
|
+
position: relative;
|
|
2482
|
+
width: 100%;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
.btn-content {
|
|
2486
|
+
display: flex;
|
|
2487
|
+
justify-content: space-between;
|
|
2488
|
+
width: 100%;
|
|
2489
|
+
color: var(--color-content-body);
|
|
2490
|
+
|
|
2491
|
+
.label {
|
|
2492
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2493
|
+
font-weight: var(--font-weight-400);
|
|
2494
|
+
font-size: var(--font-size-150);
|
|
2495
|
+
line-height: var(--line-height-200);
|
|
2496
|
+
letter-spacing: var(--letter-spacing-000);
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
.arrow {
|
|
2500
|
+
margin-top: auto;
|
|
2501
|
+
margin-bottom: auto;
|
|
2502
|
+
margin-left: var(--spacing-s);
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
button {
|
|
2507
|
+
padding: var(--spacing-s) var(--spacing-l);
|
|
2508
|
+
background-color: var(--color-container-default);
|
|
2509
|
+
cursor: pointer;
|
|
2510
|
+
border-radius: var(--radius-m);
|
|
2511
|
+
border: var(--border-m) solid var(--color-border-tertiary);
|
|
2512
|
+
|
|
2513
|
+
&:disabled {
|
|
2514
|
+
background-color: var(--color-container-disabled);
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
ul {
|
|
2519
|
+
list-style: none;
|
|
2520
|
+
margin: 4px 0 0 0;
|
|
2521
|
+
padding: 0;
|
|
2522
|
+
border: var(--border-m) solid var(--color-border-tertiary);
|
|
2523
|
+
position: absolute;
|
|
2524
|
+
background: white;
|
|
2525
|
+
height: auto;
|
|
2526
|
+
overflow-y: auto;
|
|
2527
|
+
z-index: 1000;
|
|
2528
|
+
border-radius: var(--radius-200);
|
|
2529
|
+
background-color: var(--color-container-action-secondary-default);
|
|
2530
|
+
max-height: calc(5 * 40px);
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
li {
|
|
2534
|
+
display: flex;
|
|
2535
|
+
justify-content: space-between;
|
|
2536
|
+
align-items: center;
|
|
2537
|
+
padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
|
|
2538
|
+
cursor: pointer;
|
|
2539
|
+
border-bottom: var(--border-s) solid var(--color-border-tertiary);
|
|
2540
|
+
|
|
2541
|
+
&:hover {
|
|
2542
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
&:active {
|
|
2546
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
&[aria-selected="true"] {
|
|
2550
|
+
background-color: var(--color-container-action-tertiary-default);
|
|
2551
|
+
|
|
2552
|
+
&:hover {
|
|
2553
|
+
background-color: var(--color-container-action-tertiary-hover);
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
&:active {
|
|
2557
|
+
background-color: var(--color-container-action-tertiary-pressed);
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
&:last-child {
|
|
2562
|
+
border-bottom: none;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
span {
|
|
2566
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2567
|
+
font-weight: var(--font-weight-400);
|
|
2568
|
+
font-size: var(--font-size-150);
|
|
2569
|
+
line-height: var(--line-height-200);
|
|
2570
|
+
letter-spacing: var(--letter-spacing-000);
|
|
2571
|
+
height: auto;
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
.check {
|
|
2576
|
+
margin-left: var(--spacing-100);
|
|
2577
|
+
width: 12px;
|
|
2578
|
+
height: auto;
|
|
2579
|
+
color: var(--color-content-action-secondary);
|
|
2580
|
+
|
|
2581
|
+
}
|
|
2582
|
+
input[type="hidden"] {
|
|
2583
|
+
display: none;
|
|
2584
|
+
}
|
|
2585
|
+
`;
|
|
2586
|
+
E([
|
|
2587
|
+
a({ type: Array, reflect: !0 })
|
|
2588
|
+
], x.prototype, "options", 2);
|
|
2589
|
+
E([
|
|
2362
2590
|
a({ type: String, reflect: !0 })
|
|
2363
|
-
],
|
|
2364
|
-
|
|
2591
|
+
], x.prototype, "value", 2);
|
|
2592
|
+
E([
|
|
2365
2593
|
a({ type: String, reflect: !0 })
|
|
2366
|
-
],
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
],
|
|
2594
|
+
], x.prototype, "name", 2);
|
|
2595
|
+
E([
|
|
2596
|
+
a({ type: Boolean, reflect: !0 })
|
|
2597
|
+
], x.prototype, "disabled", 2);
|
|
2598
|
+
E([
|
|
2599
|
+
a({ type: String, reflect: !0 })
|
|
2600
|
+
], x.prototype, "width", 2);
|
|
2601
|
+
E([
|
|
2602
|
+
st()
|
|
2603
|
+
], x.prototype, "open", 2);
|
|
2604
|
+
E([
|
|
2605
|
+
st()
|
|
2606
|
+
], x.prototype, "activeIndex", 2);
|
|
2607
|
+
E([
|
|
2608
|
+
st()
|
|
2609
|
+
], x.prototype, "menuWidth", 2);
|
|
2610
|
+
x = E([
|
|
2611
|
+
_("o-dropdown")
|
|
2612
|
+
], x);
|