@florid-kit/components 0.4.6 → 0.4.8
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/icon-button.d.ts +1 -1
- package/components/thumbnail-navigation.d.ts +3 -3
- package/index.js +120 -73
- package/index.mjs +388 -344
- 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 X = globalThis, ht = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(),
|
|
7
|
-
let
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
6
|
+
const X = globalThis, ht = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), ft = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let St = class {
|
|
8
|
+
constructor(t, e, s) {
|
|
9
|
+
if (this._$cssResult$ = !0, s !== dt) 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
15
|
if (ht && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const s = e !== void 0 && e.length === 1;
|
|
17
|
+
s && (t = ft.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ft.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,22 +22,22 @@ let Et = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const It = (n) => new
|
|
26
|
-
const e = n.length === 1 ? n[0] : t.reduce((
|
|
27
|
-
if (
|
|
28
|
-
if (typeof
|
|
29
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
30
|
-
})(
|
|
31
|
-
return new
|
|
25
|
+
const It = (n) => new St(typeof n == "string" ? n : n + "", void 0, dt), A = (n, ...t) => {
|
|
26
|
+
const e = n.length === 1 ? n[0] : t.reduce((s, o, r) => s + ((i) => {
|
|
27
|
+
if (i._$cssResult$ === !0) return i.cssText;
|
|
28
|
+
if (typeof i == "number") return i;
|
|
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
|
+
})(o) + n[r + 1], n[0]);
|
|
31
|
+
return new St(e, n, dt);
|
|
32
32
|
}, Bt = (n, t) => {
|
|
33
33
|
if (ht) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const s = document.createElement("style"), o = X.litNonce;
|
|
36
|
+
o !== void 0 && s.setAttribute("nonce", o), s.textContent = e.cssText, n.appendChild(s);
|
|
37
37
|
}
|
|
38
38
|
}, bt = ht ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
41
41
|
return It(e);
|
|
42
42
|
})(n) : n;
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ const It = (n) => new Et(typeof n == "string" ? n : n + "", void 0, dt), A = (n,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Ot, defineProperty: zt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Tt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "",
|
|
48
|
+
const { is: Ot, defineProperty: zt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Tt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", st = C.reactiveElementPolyfillSupport, R = (n, t) => n, J = { toAttribute(n, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
n = n ? Ut : null;
|
|
@@ -84,19 +84,19 @@ let T = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = yt) {
|
|
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
|
-
const
|
|
88
|
-
|
|
87
|
+
const s = Symbol(), o = this.getPropertyDescriptor(t, s, e);
|
|
88
|
+
o !== void 0 && zt(this.prototype, t, o);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get:
|
|
91
|
+
static getPropertyDescriptor(t, e, s) {
|
|
92
|
+
const { get: o, set: r } = Mt(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
|
-
}, set(
|
|
95
|
-
this[e] =
|
|
94
|
+
}, set(i) {
|
|
95
|
+
this[e] = i;
|
|
96
96
|
} };
|
|
97
|
-
return { get:
|
|
98
|
-
const c =
|
|
99
|
-
|
|
97
|
+
return { get: o, set(i) {
|
|
98
|
+
const c = o == null ? void 0 : o.call(this);
|
|
99
|
+
r == null || r.call(this, i), this.requestUpdate(t, c, s);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
@@ -110,32 +110,32 @@ let T = class extends HTMLElement {
|
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(R("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const
|
|
113
|
+
const e = this.properties, s = [...Ht(e), ...Tt(e)];
|
|
114
|
+
for (const o of s) this.createProperty(o, e[o]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
117
117
|
if (t !== null) {
|
|
118
118
|
const e = litPropertyMetadata.get(t);
|
|
119
|
-
if (e !== void 0) for (const [
|
|
119
|
+
if (e !== void 0) for (const [s, o] of e) this.elementProperties.set(s, o);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const
|
|
124
|
-
|
|
122
|
+
for (const [e, s] of this.elementProperties) {
|
|
123
|
+
const o = this._$Eu(e, s);
|
|
124
|
+
o !== void 0 && this._$Eh.set(o, e);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
127
127
|
}
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const
|
|
131
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const o of s) e.unshift(bt(o));
|
|
133
133
|
} else t !== void 0 && e.push(bt(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const s = e.attribute;
|
|
138
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,7 +154,7 @@ let T = class extends HTMLElement {
|
|
|
154
154
|
}
|
|
155
155
|
_$E_() {
|
|
156
156
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
157
|
-
for (const
|
|
157
|
+
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
@@ -164,8 +164,8 @@ let T = class extends HTMLElement {
|
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var s;
|
|
168
|
+
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let T = class extends HTMLElement {
|
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var t;
|
|
175
175
|
(t = this._$EO) == null || t.forEach((e) => {
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
176
|
+
var s;
|
|
177
|
+
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, s) {
|
|
181
|
+
this._$AK(t, s);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
const
|
|
188
|
-
this._$Em = t,
|
|
184
|
+
var r;
|
|
185
|
+
const s = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, s);
|
|
186
|
+
if (o !== void 0 && s.reflect === !0) {
|
|
187
|
+
const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : J).toAttribute(e, s.type);
|
|
188
|
+
this._$Em = t, i == null ? this.removeAttribute(o) : this.setAttribute(o, i), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
195
|
-
const c =
|
|
196
|
-
this._$Em =
|
|
192
|
+
var r, i;
|
|
193
|
+
const s = this.constructor, o = s._$Eh.get(t);
|
|
194
|
+
if (o !== void 0 && this._$Em !== o) {
|
|
195
|
+
const c = s.getPropertyOptions(o), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : J;
|
|
196
|
+
this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(o)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
200
|
-
var
|
|
199
|
+
requestUpdate(t, e, s) {
|
|
200
|
+
var o;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const r = this.constructor, i = this[t];
|
|
203
|
+
if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? pt)(i, e) || s.useDefault && s.reflect && i === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
|
|
204
|
+
this.C(t, e, s);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: s, reflect: o, wrapped: r }, i) {
|
|
209
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), r !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), o === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
210
210
|
}
|
|
211
211
|
async _$EP() {
|
|
212
212
|
this.isUpdatePending = !0;
|
|
@@ -222,28 +222,28 @@ let T = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var s;
|
|
226
226
|
if (!this.isUpdatePending) return;
|
|
227
227
|
if (!this.hasUpdated) {
|
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
|
-
for (const [
|
|
229
|
+
for (const [r, i] of this._$Ep) this[r] = i;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const { wrapped: c } =
|
|
235
|
-
c !== !0 || this._$AL.has(
|
|
232
|
+
const o = this.constructor.elementProperties;
|
|
233
|
+
if (o.size > 0) for (const [r, i] of o) {
|
|
234
|
+
const { wrapped: c } = i, l = this[r];
|
|
235
|
+
c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, i, l);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
let t = !1;
|
|
239
239
|
const e = this._$AL;
|
|
240
240
|
try {
|
|
241
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
241
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((o) => {
|
|
242
|
+
var r;
|
|
243
|
+
return (r = o.hostUpdate) == null ? void 0 : r.call(o);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
|
-
} catch (
|
|
246
|
-
throw t = !1, this._$EM(),
|
|
245
|
+
} catch (o) {
|
|
246
|
+
throw t = !1, this._$EM(), o;
|
|
247
247
|
}
|
|
248
248
|
t && this._$AE(e);
|
|
249
249
|
}
|
|
@@ -251,9 +251,9 @@ let T = class extends HTMLElement {
|
|
|
251
251
|
}
|
|
252
252
|
_$AE(t) {
|
|
253
253
|
var e;
|
|
254
|
-
(e = this._$EO) == null || e.forEach((
|
|
255
|
-
var
|
|
256
|
-
return (
|
|
254
|
+
(e = this._$EO) == null || e.forEach((s) => {
|
|
255
|
+
var o;
|
|
256
|
+
return (o = s.hostUpdated) == null ? void 0 : o.call(s);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -276,74 +276,74 @@ let T = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(),
|
|
279
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.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 V = globalThis, Q = V.trustedTypes, mt = Q ? Q.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ct = "$lit$",
|
|
286
|
-
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Rt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }),
|
|
285
|
+
const V = globalThis, Q = V.trustedTypes, mt = Q ? Q.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ct = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + S, Nt = `<${Lt}>`, B = document, F = () => B.createComment(""), q = (n) => n === null || typeof n != "object" && typeof n != "function", ut = Array.isArray, jt = (n) => ut(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ot = `[
|
|
286
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, P = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Rt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), h = Rt(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), k = B.createTreeWalker(B, 129);
|
|
288
288
|
function kt(n, t) {
|
|
289
289
|
if (!ut(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return mt !== void 0 ? mt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const Vt = (n, t) => {
|
|
293
|
-
const e = n.length - 1,
|
|
294
|
-
let
|
|
293
|
+
const e = n.length - 1, s = [];
|
|
294
|
+
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = j;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const l = n[c];
|
|
297
|
-
let
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
|
|
297
|
+
let v, f, p = -1, w = 0;
|
|
298
|
+
for (; w < l.length && (i.lastIndex = w, f = i.exec(l), f !== null); ) w = i.lastIndex, i === j ? f[1] === "!--" ? i = $t : f[1] !== void 0 ? i = wt : f[2] !== void 0 ? (Pt.test(f[2]) && (o = RegExp("</" + f[2], "g")), i = P) : f[3] !== void 0 && (i = P) : i === P ? f[0] === ">" ? (i = o ?? j, p = -1) : f[1] === void 0 ? p = -2 : (p = i.lastIndex - f[2].length, v = f[1], i = f[3] === void 0 ? P : f[3] === '"' ? _t : xt) : i === _t || i === xt ? i = P : i === $t || i === wt ? i = j : (i = P, o = void 0);
|
|
299
|
+
const E = i === P && n[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += i === j ? l + Nt : p >= 0 ? (s.push(v), l.slice(0, p) + Ct + l.slice(p) + S + E) : l + S + (p === -2 ? c : E);
|
|
301
301
|
}
|
|
302
|
-
return [kt(n,
|
|
302
|
+
return [kt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
303
303
|
};
|
|
304
304
|
class Z {
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
306
|
-
let
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
|
306
|
+
let o;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
309
|
-
const c = t.length - 1, l = this.parts, [
|
|
310
|
-
if (this.el = Z.createElement(
|
|
308
|
+
let r = 0, i = 0;
|
|
309
|
+
const c = t.length - 1, l = this.parts, [v, f] = Vt(t, e);
|
|
310
|
+
if (this.el = Z.createElement(v, s), k.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (
|
|
315
|
-
if (
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
318
|
-
l.push({ type: 1, index:
|
|
319
|
-
} else p.startsWith(
|
|
320
|
-
if (Pt.test(
|
|
321
|
-
const p =
|
|
322
|
-
if (
|
|
323
|
-
|
|
324
|
-
for (let
|
|
325
|
-
|
|
314
|
+
for (; (o = k.nextNode()) !== null && l.length < c; ) {
|
|
315
|
+
if (o.nodeType === 1) {
|
|
316
|
+
if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(Ct)) {
|
|
317
|
+
const w = f[i++], E = o.getAttribute(p).split(S), K = /([.?@])?(.*)/.exec(w);
|
|
318
|
+
l.push({ type: 1, index: r, name: K[2], strings: E, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), o.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(S) && (l.push({ type: 6, index: r }), o.removeAttribute(p));
|
|
320
|
+
if (Pt.test(o.tagName)) {
|
|
321
|
+
const p = o.textContent.split(S), w = p.length - 1;
|
|
322
|
+
if (w > 0) {
|
|
323
|
+
o.textContent = Q ? Q.emptyScript : "";
|
|
324
|
+
for (let E = 0; E < w; E++) o.append(p[E], F()), k.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
|
+
o.append(p[w], F());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (
|
|
328
|
+
} else if (o.nodeType === 8) if (o.data === Lt) l.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p =
|
|
331
|
+
for (; (p = o.data.indexOf(S, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += S.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
r++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const s = B.createElement("template");
|
|
338
|
+
return s.innerHTML = t, s;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function D(n, t, e = n,
|
|
342
|
-
var
|
|
343
|
-
if (t ===
|
|
344
|
-
let
|
|
345
|
-
const
|
|
346
|
-
return (
|
|
341
|
+
function D(n, t, e = n, s) {
|
|
342
|
+
var i, c;
|
|
343
|
+
if (t === O) return t;
|
|
344
|
+
let o = s !== void 0 ? (i = e._$Co) == null ? void 0 : i[s] : e._$Cl;
|
|
345
|
+
const r = q(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (o == null ? void 0 : o.constructor) !== r && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), r === void 0 ? o = void 0 : (o = new r(n), o._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = o : e._$Cl = o), o !== void 0 && (t = D(n, o._$AS(n, t.values), o, s)), t;
|
|
347
347
|
}
|
|
348
348
|
class Ft {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,21 +356,21 @@ class Ft {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
360
|
-
|
|
361
|
-
let
|
|
359
|
+
const { el: { content: e }, parts: s } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? B).importNode(e, !0);
|
|
360
|
+
k.currentNode = o;
|
|
361
|
+
let r = k.nextNode(), i = 0, c = 0, l = s[0];
|
|
362
362
|
for (; l !== void 0; ) {
|
|
363
|
-
if (
|
|
364
|
-
let
|
|
365
|
-
l.type === 2 ?
|
|
363
|
+
if (i === l.index) {
|
|
364
|
+
let v;
|
|
365
|
+
l.type === 2 ? v = new G(r, r.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (v = new Gt(r, this, t)), this._$AV.push(v), l = s[++c];
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
i !== (l == null ? void 0 : l.index) && (r = k.nextNode(), i++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return k.currentNode = B, o;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
class G {
|
|
@@ -378,8 +378,8 @@ class G {
|
|
|
378
378
|
var t;
|
|
379
379
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
380
380
|
}
|
|
381
|
-
constructor(t, e,
|
|
382
|
-
this.type = 2, this._$AH =
|
|
381
|
+
constructor(t, e, s, o) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -393,7 +393,7 @@ class G {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = D(this, t, e), q(t) ? t ===
|
|
396
|
+
t = D(this, t, e), q(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : jt(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,15 +402,15 @@ class G {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !==
|
|
405
|
+
this._$AH !== d && q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(B.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
|
-
var
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((
|
|
408
|
+
var r;
|
|
409
|
+
const { values: e, _$litType$: s } = t, o = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Z.createElement(kt(s.h, s.h[0]), this.options)), s);
|
|
410
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
const i = new Ft(o, this), c = i.u(this.options);
|
|
413
|
+
i.p(e), this.T(c), this._$AH = i;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
@@ -420,15 +420,15 @@ class G {
|
|
|
420
420
|
k(t) {
|
|
421
421
|
ut(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const
|
|
425
|
-
|
|
423
|
+
let s, o = 0;
|
|
424
|
+
for (const r of t) o === e.length ? e.push(s = new G(this.O(F()), this.O(F()), this, this.options)) : s = e[o], s._$AI(r), o++;
|
|
425
|
+
o < e.length && (this._$AR(s && s._$AB.nextSibling, o), e.length = o);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
430
|
-
const
|
|
431
|
-
t.remove(), t =
|
|
428
|
+
var s;
|
|
429
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
|
+
const o = t.nextSibling;
|
|
431
|
+
t.remove(), t = o;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
setConnected(t) {
|
|
@@ -443,22 +443,22 @@ class Y {
|
|
|
443
443
|
get _$AU() {
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
|
-
constructor(t, e,
|
|
447
|
-
this.type = 1, this._$AH =
|
|
446
|
+
constructor(t, e, s, o, r) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
450
|
-
const
|
|
451
|
-
let
|
|
452
|
-
if (
|
|
449
|
+
_$AI(t, e = this, s, o) {
|
|
450
|
+
const r = this.strings;
|
|
451
|
+
let i = !1;
|
|
452
|
+
if (r === void 0) t = D(this, t, e, 0), i = !q(t) || t !== this._$AH && t !== O, i && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
|
-
let l,
|
|
456
|
-
for (t =
|
|
455
|
+
let l, v;
|
|
456
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) v = D(this, c[s + l], e, l), v === O && (v = this._$AH[l]), i || (i = !q(v) || v !== this._$AH[l]), v === d ? t = d : t !== d && (t += (v ?? "") + r[l + 1]), this._$AH[l] = v;
|
|
457
457
|
}
|
|
458
|
-
|
|
458
|
+
i && !o && 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
464
|
class qt extends Y {
|
|
@@ -466,7 +466,7 @@ class qt extends Y {
|
|
|
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
472
|
class Zt extends Y {
|
|
@@ -474,17 +474,17 @@ class Zt extends Y {
|
|
|
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
480
|
class Wt extends Y {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, s, o, r) {
|
|
482
|
+
super(t, e, s, o, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t = D(this, t, e, 0) ??
|
|
486
|
-
const
|
|
487
|
-
|
|
485
|
+
if ((t = D(this, t, e, 0) ?? d) === O) return;
|
|
486
|
+
const s = this._$AH, o = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== d && (s === d || o);
|
|
487
|
+
o && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -492,8 +492,8 @@ class Wt extends Y {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class Gt {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, s) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -502,23 +502,23 @@ class Gt {
|
|
|
502
502
|
D(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
505
|
+
const it = V.litHtmlPolyfillSupport;
|
|
506
|
+
it == null || it(Z, G), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Kt = (n, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let
|
|
510
|
-
if (
|
|
511
|
-
const
|
|
512
|
-
|
|
508
|
+
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let o = s._$litPart$;
|
|
510
|
+
if (o === void 0) {
|
|
511
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
s._$litPart$ = o = new G(t.insertBefore(F(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
|
-
return
|
|
514
|
+
return o._$AI(n), o;
|
|
515
515
|
};
|
|
516
516
|
/**
|
|
517
517
|
* @license
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
521
|
+
const I = globalThis;
|
|
522
522
|
let m = class extends T {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -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 O;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
(
|
|
547
|
+
var Et;
|
|
548
|
+
m._$litElement$ = !0, m.finalized = !0, (Et = I.litElementHydrateSupport) == null || Et.call(I, { LitElement: m });
|
|
549
|
+
const rt = I.litElementPolyfillSupport;
|
|
550
|
+
rt == null || rt({ LitElement: m });
|
|
551
|
+
(I.litElementVersions ?? (I.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 z = (n) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(n, t);
|
|
560
560
|
}) : customElements.define(n, t);
|
|
@@ -565,30 +565,30 @@ const M = (n) => (t, e) => {
|
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
567
|
const Xt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: pt }, Jt = (n = Xt, t, e) => {
|
|
568
|
-
const { kind:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
571
|
-
const { name:
|
|
568
|
+
const { kind: s, metadata: o } = e;
|
|
569
|
+
let r = globalThis.litPropertyMetadata.get(o);
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(e.name, n), s === "accessor") {
|
|
571
|
+
const { name: i } = e;
|
|
572
572
|
return { set(c) {
|
|
573
573
|
const l = t.get.call(this);
|
|
574
|
-
t.set.call(this, c), this.requestUpdate(
|
|
574
|
+
t.set.call(this, c), this.requestUpdate(i, l, n);
|
|
575
575
|
}, init(c) {
|
|
576
|
-
return c !== void 0 && this.C(
|
|
576
|
+
return c !== void 0 && this.C(i, void 0, n, c), c;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
580
|
-
const { name:
|
|
579
|
+
if (s === "setter") {
|
|
580
|
+
const { name: i } = e;
|
|
581
581
|
return function(c) {
|
|
582
|
-
const l = this[
|
|
583
|
-
t.call(this, c), this.requestUpdate(
|
|
582
|
+
const l = this[i];
|
|
583
|
+
t.call(this, c), this.requestUpdate(i, l, n);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + s);
|
|
587
587
|
};
|
|
588
588
|
function a(n) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Jt(n, t, e) : ((
|
|
590
|
-
const
|
|
591
|
-
return
|
|
589
|
+
return (t, e) => typeof e == "object" ? Jt(n, t, e) : ((s, o, r) => {
|
|
590
|
+
const i = o.hasOwnProperty(r);
|
|
591
|
+
return o.constructor.createProperty(r, s), i ? Object.getOwnPropertyDescriptor(o, r) : void 0;
|
|
592
592
|
})(n, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -614,11 +614,11 @@ A`
|
|
|
614
614
|
* Copyright 2023 Google LLC
|
|
615
615
|
* SPDX-License-Identifier: Apache-2.0
|
|
616
616
|
*/
|
|
617
|
-
const
|
|
617
|
+
const vt = Symbol("internals"), at = Symbol("privateInternals");
|
|
618
618
|
function te(n) {
|
|
619
619
|
var t;
|
|
620
620
|
class e extends n {
|
|
621
|
-
get [(t =
|
|
621
|
+
get [(t = vt, t)]() {
|
|
622
622
|
return this[at] || (this[at] = this.attachInternals()), this[at];
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -632,16 +632,16 @@ function te(n) {
|
|
|
632
632
|
function ee(n) {
|
|
633
633
|
n.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
|
-
e.addEventListener("click", async (
|
|
636
|
-
const { type:
|
|
637
|
-
if (!(!
|
|
635
|
+
e.addEventListener("click", async (s) => {
|
|
636
|
+
const { type: o, [vt]: r } = e, { form: i } = r;
|
|
637
|
+
if (!(!i || o === "button") && (await new Promise((c) => {
|
|
638
638
|
setTimeout(c);
|
|
639
|
-
}), !
|
|
640
|
-
if (
|
|
641
|
-
|
|
639
|
+
}), !s.defaultPrevented)) {
|
|
640
|
+
if (o === "reset") {
|
|
641
|
+
i.reset();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
i.addEventListener(
|
|
645
645
|
"submit",
|
|
646
646
|
(c) => {
|
|
647
647
|
Object.defineProperty(c, "submitter", {
|
|
@@ -651,7 +651,7 @@ function ee(n) {
|
|
|
651
651
|
});
|
|
652
652
|
},
|
|
653
653
|
{ capture: !0, once: !0 }
|
|
654
|
-
),
|
|
654
|
+
), r.setFormValue(e.value), i.requestSubmit();
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
});
|
|
@@ -659,16 +659,16 @@ function ee(n) {
|
|
|
659
659
|
const ne = `<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
|
+
`, se = `<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
|
+
`, oe = `<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
|
+
`, ie = `<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
|
+
`, re = `<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
|
`, ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -695,28 +695,28 @@ const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
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">
|
|
697
697
|
<style type="text/css">
|
|
698
|
-
.st0{fill:#
|
|
698
|
+
.st0{fill:#3F2B2E;}
|
|
699
699
|
</style>
|
|
700
|
-
<path class="st0" d="
|
|
701
|
-
|
|
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
|
+
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
|
+
`, ve = `<?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">
|
|
707
707
|
<style type="text/css">
|
|
708
|
-
.st0{fill:#
|
|
708
|
+
.st0{fill:#3F2B2E;}
|
|
709
709
|
</style>
|
|
710
|
-
<path class="st0" d="
|
|
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
|
`, tt = {
|
|
713
713
|
wishlist: ne,
|
|
714
|
-
playerv:
|
|
715
|
-
chevronRight:
|
|
716
|
-
chevronLeft:
|
|
714
|
+
playerv: se,
|
|
715
|
+
chevronRight: oe,
|
|
716
|
+
chevronLeft: ie,
|
|
717
717
|
icoPlus: ue,
|
|
718
|
-
icoMinus:
|
|
719
|
-
"star-0":
|
|
718
|
+
icoMinus: ve,
|
|
719
|
+
"star-0": re,
|
|
720
720
|
"star-25": ae,
|
|
721
721
|
"star-50": le,
|
|
722
722
|
"star-75": ce,
|
|
@@ -729,15 +729,15 @@ const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
729
729
|
* Copyright 2017 Google LLC
|
|
730
730
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
731
731
|
*/
|
|
732
|
-
const
|
|
732
|
+
const fe = { CHILD: 2 }, be = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
733
733
|
class ge {
|
|
734
734
|
constructor(t) {
|
|
735
735
|
}
|
|
736
736
|
get _$AU() {
|
|
737
737
|
return this._$AM._$AU;
|
|
738
738
|
}
|
|
739
|
-
_$AT(t, e,
|
|
740
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
739
|
+
_$AT(t, e, s) {
|
|
740
|
+
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
|
741
741
|
}
|
|
742
742
|
_$AS(t, e) {
|
|
743
743
|
return this.update(t, e);
|
|
@@ -753,11 +753,11 @@ class ge {
|
|
|
753
753
|
*/
|
|
754
754
|
class lt extends ge {
|
|
755
755
|
constructor(t) {
|
|
756
|
-
if (super(t), this.it =
|
|
756
|
+
if (super(t), this.it = d, t.type !== fe.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
757
757
|
}
|
|
758
758
|
render(t) {
|
|
759
|
-
if (t ===
|
|
760
|
-
if (t ===
|
|
759
|
+
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
760
|
+
if (t === O) return t;
|
|
761
761
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
762
762
|
if (t === this.it) return this._t;
|
|
763
763
|
this.it = t;
|
|
@@ -775,10 +775,10 @@ class ct extends lt {
|
|
|
775
775
|
}
|
|
776
776
|
ct.directiveName = "unsafeSVG", ct.resultType = 2;
|
|
777
777
|
const W = be(ct);
|
|
778
|
-
var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, g = (n, t, e,
|
|
779
|
-
for (var
|
|
780
|
-
(
|
|
781
|
-
return
|
|
778
|
+
var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, g = (n, t, e, s) => {
|
|
779
|
+
for (var o = s > 1 ? void 0 : s ? me(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
780
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
781
|
+
return s && o && ye(t, e, o), o;
|
|
782
782
|
};
|
|
783
783
|
const $e = te(m);
|
|
784
784
|
let u = class extends $e {
|
|
@@ -792,7 +792,7 @@ let u = class extends $e {
|
|
|
792
792
|
this.setAttribute("name", n);
|
|
793
793
|
}
|
|
794
794
|
get form() {
|
|
795
|
-
return this[
|
|
795
|
+
return this[vt].form;
|
|
796
796
|
}
|
|
797
797
|
handleClick() {
|
|
798
798
|
if (this.panelTarget) {
|
|
@@ -805,41 +805,41 @@ let u = class extends $e {
|
|
|
805
805
|
}
|
|
806
806
|
renderIcon(n) {
|
|
807
807
|
const t = n === "start" ? this.startIconModel : this.endIconModel;
|
|
808
|
-
if (!t) return
|
|
808
|
+
if (!t) return d;
|
|
809
809
|
const e = tt[t].replace(
|
|
810
810
|
"<svg",
|
|
811
811
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
812
812
|
);
|
|
813
|
-
return
|
|
813
|
+
return h`<span class="${n === "start" ? "icon-start" : "icon-end"}">${W(e)}</span>`;
|
|
814
814
|
}
|
|
815
815
|
renderButton() {
|
|
816
816
|
const n = this.text || this.textsecond;
|
|
817
|
-
return
|
|
817
|
+
return h`
|
|
818
818
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
819
|
-
${this.startIcon ? this.renderIcon("start") :
|
|
820
|
-
${n ?
|
|
821
|
-
${this.text ?
|
|
822
|
-
${this.textsecond ?
|
|
823
|
-
` :
|
|
824
|
-
${this.endIcon ? this.renderIcon("end") :
|
|
819
|
+
${this.startIcon ? this.renderIcon("start") : d}
|
|
820
|
+
${n ? h`
|
|
821
|
+
${this.text ? h`<span class="text">${this.text}</span>` : d}
|
|
822
|
+
${this.textsecond ? h`<span class="text">${this.textsecond}</span>` : d}
|
|
823
|
+
` : h`<slot></slot>`}
|
|
824
|
+
${this.endIcon ? this.renderIcon("end") : d}
|
|
825
825
|
</button>
|
|
826
826
|
`;
|
|
827
827
|
}
|
|
828
828
|
renderLink() {
|
|
829
829
|
const n = this.text || this.textsecond;
|
|
830
|
-
return
|
|
830
|
+
return h`
|
|
831
831
|
<a
|
|
832
832
|
href=${this.href}
|
|
833
|
-
target=${this.target ||
|
|
833
|
+
target=${this.target || d}
|
|
834
834
|
class="button"
|
|
835
835
|
?disabled=${this.disabled}
|
|
836
836
|
>
|
|
837
|
-
${this.startIcon ? this.renderIcon("start") :
|
|
838
|
-
${n ?
|
|
839
|
-
${this.text ?
|
|
840
|
-
${this.textsecond ?
|
|
841
|
-
` :
|
|
842
|
-
${this.endIcon ? this.renderIcon("end") :
|
|
837
|
+
${this.startIcon ? this.renderIcon("start") : d}
|
|
838
|
+
${n ? h`
|
|
839
|
+
${this.text ? h`<span>${this.text}</span>` : d}
|
|
840
|
+
${this.textsecond ? h`<span>${this.textsecond}</span>` : d}
|
|
841
|
+
` : h`<slot></slot>`}
|
|
842
|
+
${this.endIcon ? this.renderIcon("end") : d}
|
|
843
843
|
</a>
|
|
844
844
|
`;
|
|
845
845
|
}
|
|
@@ -1047,12 +1047,12 @@ g([
|
|
|
1047
1047
|
a({ type: String })
|
|
1048
1048
|
], u.prototype, "target", 2);
|
|
1049
1049
|
u = g([
|
|
1050
|
-
|
|
1050
|
+
z("o-button")
|
|
1051
1051
|
], u);
|
|
1052
|
-
var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, et = (n, t, e,
|
|
1053
|
-
for (var
|
|
1054
|
-
(
|
|
1055
|
-
return
|
|
1052
|
+
var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, et = (n, t, e, s) => {
|
|
1053
|
+
for (var o = s > 1 ? void 0 : s ? xe(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1054
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
1055
|
+
return s && o && we(t, e, o), o;
|
|
1056
1056
|
};
|
|
1057
1057
|
let U = class extends m {
|
|
1058
1058
|
constructor() {
|
|
@@ -1078,7 +1078,7 @@ let U = class extends m {
|
|
|
1078
1078
|
"<svg",
|
|
1079
1079
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1080
1080
|
);
|
|
1081
|
-
return
|
|
1081
|
+
return h`
|
|
1082
1082
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1083
1083
|
<span class="sr-only">${this.label}</span>
|
|
1084
1084
|
${W(n)}
|
|
@@ -1125,7 +1125,7 @@ U.styles = A`
|
|
|
1125
1125
|
background-color: var(--color-alpha-light-stronger);
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
-
|
|
1128
|
+
.wishlist-button:active {
|
|
1129
1129
|
background-color: var(--color-alpha-light-strongest);
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
@@ -1137,10 +1137,6 @@ U.styles = A`
|
|
|
1137
1137
|
fill: var(--color-content-action-secondary);
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
-
:host([status="filled"]) .wishlist-button:hover svg path {
|
|
1141
|
-
fill: var(--color-alpha-light-strong);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
1140
|
.sr-only {
|
|
1145
1141
|
border: 0 !important;
|
|
1146
1142
|
clip: rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;
|
|
@@ -1165,12 +1161,12 @@ et([
|
|
|
1165
1161
|
a({ type: String, reflect: !0 })
|
|
1166
1162
|
], U.prototype, "label", 2);
|
|
1167
1163
|
U = et([
|
|
1168
|
-
|
|
1164
|
+
z("o-wishlist-button")
|
|
1169
1165
|
], U);
|
|
1170
|
-
var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (n, t, e,
|
|
1171
|
-
for (var
|
|
1172
|
-
(
|
|
1173
|
-
return
|
|
1166
|
+
var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (n, t, e, s) => {
|
|
1167
|
+
for (var o = s > 1 ? void 0 : s ? Ae(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1168
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
1169
|
+
return s && o && _e(t, e, o), o;
|
|
1174
1170
|
};
|
|
1175
1171
|
let $ = class extends m {
|
|
1176
1172
|
constructor() {
|
|
@@ -1184,12 +1180,12 @@ let $ = class extends m {
|
|
|
1184
1180
|
"<svg",
|
|
1185
1181
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1186
1182
|
);
|
|
1187
|
-
return
|
|
1188
|
-
${this.type === "span" ?
|
|
1183
|
+
return h`
|
|
1184
|
+
${this.type === "span" ? h`
|
|
1189
1185
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1190
1186
|
${W(e)}
|
|
1191
1187
|
</span>
|
|
1192
|
-
` :
|
|
1188
|
+
` : h`
|
|
1193
1189
|
<button
|
|
1194
1190
|
type="button"
|
|
1195
1191
|
aria-label="icon"
|
|
@@ -1220,10 +1216,12 @@ $.styles = A`
|
|
|
1220
1216
|
cursor: pointer;
|
|
1221
1217
|
position: relative;
|
|
1222
1218
|
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1219
|
+
&[icon="wishlist"] {
|
|
1220
|
+
svg {
|
|
1221
|
+
path {
|
|
1222
|
+
stroke: var(--color-content-action-secondary);
|
|
1223
|
+
stroke-width: var(--icon-stroke-width, 1);
|
|
1224
|
+
}
|
|
1227
1225
|
}
|
|
1228
1226
|
}
|
|
1229
1227
|
}
|
|
@@ -1232,19 +1230,52 @@ $.styles = A`
|
|
|
1232
1230
|
fill: var(--color-content-action-secondary);
|
|
1233
1231
|
}
|
|
1234
1232
|
|
|
1235
|
-
.icon-button.
|
|
1233
|
+
.icon-button.smallxs {
|
|
1236
1234
|
width: 20px;
|
|
1237
1235
|
height: 20px;
|
|
1236
|
+
|
|
1237
|
+
&:not(.icon-wishlist) {
|
|
1238
|
+
svg {
|
|
1239
|
+
width: 8px;
|
|
1240
|
+
height: 8px;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1238
1243
|
}
|
|
1239
1244
|
|
|
1240
|
-
.icon-button.
|
|
1245
|
+
.icon-button.small {
|
|
1241
1246
|
width: 32px;
|
|
1242
1247
|
height: 32px;
|
|
1248
|
+
|
|
1249
|
+
&:not(.icon-wishlist) {
|
|
1250
|
+
svg {
|
|
1251
|
+
width: 16px;
|
|
1252
|
+
height: 16px;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.icon-button.medium {
|
|
1258
|
+
width: 40px;
|
|
1259
|
+
height: 40px;
|
|
1260
|
+
|
|
1261
|
+
&:not(.icon-wishlist) {
|
|
1262
|
+
svg {
|
|
1263
|
+
width: 16px;
|
|
1264
|
+
height: 16px;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1243
1267
|
}
|
|
1244
1268
|
|
|
1245
1269
|
.icon-button.large {
|
|
1246
1270
|
width: 40px;
|
|
1247
1271
|
height: 40px;
|
|
1272
|
+
|
|
1273
|
+
&:not(.icon-wishlist) {
|
|
1274
|
+
svg {
|
|
1275
|
+
width: 24px;
|
|
1276
|
+
height: 24px;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1248
1279
|
}
|
|
1249
1280
|
|
|
1250
1281
|
.icon-button.none-light, .icon-button.none-contrast {
|
|
@@ -1252,13 +1283,20 @@ $.styles = A`
|
|
|
1252
1283
|
width: auto;
|
|
1253
1284
|
height: auto;
|
|
1254
1285
|
|
|
1255
|
-
&.
|
|
1286
|
+
&.smallxs {
|
|
1256
1287
|
svg {
|
|
1257
1288
|
width: 8px;
|
|
1258
1289
|
height: 8px;
|
|
1259
1290
|
}
|
|
1260
1291
|
}
|
|
1261
1292
|
|
|
1293
|
+
&.small {
|
|
1294
|
+
svg {
|
|
1295
|
+
width: 16px;
|
|
1296
|
+
height: 16px;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1262
1300
|
&.medium {
|
|
1263
1301
|
svg {
|
|
1264
1302
|
width: 16px;
|
|
@@ -1382,21 +1420,21 @@ L([
|
|
|
1382
1420
|
a({ type: Boolean, reflect: !0 })
|
|
1383
1421
|
], $.prototype, "disabled", 2);
|
|
1384
1422
|
$ = L([
|
|
1385
|
-
|
|
1423
|
+
z("o-icon-button")
|
|
1386
1424
|
], $);
|
|
1387
|
-
var
|
|
1388
|
-
for (var
|
|
1389
|
-
(
|
|
1390
|
-
return
|
|
1425
|
+
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, M = (n, t, e, s) => {
|
|
1426
|
+
for (var o = s > 1 ? void 0 : s ? Se(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1427
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
1428
|
+
return s && o && Ee(t, e, o), o;
|
|
1391
1429
|
};
|
|
1392
|
-
let
|
|
1430
|
+
let x = class extends m {
|
|
1393
1431
|
constructor() {
|
|
1394
1432
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1395
1433
|
}
|
|
1396
1434
|
render() {
|
|
1397
|
-
return
|
|
1435
|
+
return h`
|
|
1398
1436
|
<a href="${this.href}" target="${this.target}">
|
|
1399
|
-
${this.endIcon && this.reverseEndIcon ?
|
|
1437
|
+
${this.endIcon && this.reverseEndIcon ? h`
|
|
1400
1438
|
<o-icon-button
|
|
1401
1439
|
icon="chevronLeft"
|
|
1402
1440
|
bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
|
|
@@ -1406,7 +1444,7 @@ let _ = class extends m {
|
|
|
1406
1444
|
></o-icon-button>
|
|
1407
1445
|
` : null}
|
|
1408
1446
|
<span class="link-text"><slot></slot></span>
|
|
1409
|
-
${this.endIcon && !this.reverseEndIcon ?
|
|
1447
|
+
${this.endIcon && !this.reverseEndIcon ? h`
|
|
1410
1448
|
<o-icon-button
|
|
1411
1449
|
icon="chevronRight"
|
|
1412
1450
|
bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
|
|
@@ -1419,7 +1457,7 @@ let _ = class extends m {
|
|
|
1419
1457
|
`;
|
|
1420
1458
|
}
|
|
1421
1459
|
};
|
|
1422
|
-
|
|
1460
|
+
x.styles = A`
|
|
1423
1461
|
:host([template="standard"]) a {
|
|
1424
1462
|
color: var(--color-content-action-secondary);
|
|
1425
1463
|
font-size: var(--font-size-200);
|
|
@@ -1507,31 +1545,31 @@ _.styles = A`
|
|
|
1507
1545
|
}
|
|
1508
1546
|
/* End of underline effect */
|
|
1509
1547
|
`;
|
|
1510
|
-
|
|
1548
|
+
M([
|
|
1511
1549
|
a({ type: String })
|
|
1512
|
-
],
|
|
1513
|
-
|
|
1550
|
+
], x.prototype, "href", 2);
|
|
1551
|
+
M([
|
|
1514
1552
|
a({ type: String })
|
|
1515
|
-
],
|
|
1516
|
-
|
|
1553
|
+
], x.prototype, "target", 2);
|
|
1554
|
+
M([
|
|
1517
1555
|
a({ type: String, reflect: !0 })
|
|
1518
|
-
],
|
|
1519
|
-
|
|
1556
|
+
], x.prototype, "template", 2);
|
|
1557
|
+
M([
|
|
1520
1558
|
a({ type: Boolean, reflect: !0 })
|
|
1521
|
-
],
|
|
1522
|
-
|
|
1559
|
+
], x.prototype, "inverse", 2);
|
|
1560
|
+
M([
|
|
1523
1561
|
a({ type: Boolean, reflect: !0 })
|
|
1524
|
-
],
|
|
1525
|
-
|
|
1562
|
+
], x.prototype, "endIcon", 2);
|
|
1563
|
+
M([
|
|
1526
1564
|
a({ type: Boolean, reflect: !0 })
|
|
1527
|
-
],
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
],
|
|
1531
|
-
var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, nt = (n, t, e,
|
|
1532
|
-
for (var
|
|
1533
|
-
(
|
|
1534
|
-
return
|
|
1565
|
+
], x.prototype, "reverseEndIcon", 2);
|
|
1566
|
+
x = M([
|
|
1567
|
+
z("o-link")
|
|
1568
|
+
], x);
|
|
1569
|
+
var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, nt = (n, t, e, s) => {
|
|
1570
|
+
for (var o = s > 1 ? void 0 : s ? Le(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1571
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
1572
|
+
return s && o && Ce(t, e, o), o;
|
|
1535
1573
|
};
|
|
1536
1574
|
let N = class extends m {
|
|
1537
1575
|
constructor() {
|
|
@@ -1541,21 +1579,21 @@ let N = class extends m {
|
|
|
1541
1579
|
const n = [];
|
|
1542
1580
|
for (let t = 0; t < 5; t++) {
|
|
1543
1581
|
const e = this.rating - t;
|
|
1544
|
-
let
|
|
1545
|
-
e >= 1 ?
|
|
1582
|
+
let s;
|
|
1583
|
+
e >= 1 ? s = 100 : e <= 0 ? s = 0 : s = Math.round(e * 100 / 25) * 25, n.push(`star-${s}`);
|
|
1546
1584
|
}
|
|
1547
1585
|
return n;
|
|
1548
1586
|
}
|
|
1549
1587
|
render() {
|
|
1550
1588
|
const n = this.getStarKeys();
|
|
1551
|
-
return
|
|
1589
|
+
return h`
|
|
1552
1590
|
<div class="rating">
|
|
1553
1591
|
<div class="stars">
|
|
1554
1592
|
${n.map(
|
|
1555
|
-
(t) =>
|
|
1593
|
+
(t) => h`<span class="star">${W(tt[t] ?? "")}</span>`
|
|
1556
1594
|
)}
|
|
1557
1595
|
</div>
|
|
1558
|
-
${this.reviewCount != null && this.href != null ?
|
|
1596
|
+
${this.reviewCount != null && this.href != null ? h`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
1559
1597
|
</div>
|
|
1560
1598
|
`;
|
|
1561
1599
|
}
|
|
@@ -1604,12 +1642,12 @@ nt([
|
|
|
1604
1642
|
a({ type: String })
|
|
1605
1643
|
], N.prototype, "href", 2);
|
|
1606
1644
|
N = nt([
|
|
1607
|
-
|
|
1645
|
+
z("o-rating")
|
|
1608
1646
|
], N);
|
|
1609
|
-
var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (n, t, e,
|
|
1610
|
-
for (var
|
|
1611
|
-
(
|
|
1612
|
-
return
|
|
1647
|
+
var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (n, t, e, s) => {
|
|
1648
|
+
for (var o = s > 1 ? void 0 : s ? ke(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1649
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
1650
|
+
return s && o && Pe(t, e, o), o;
|
|
1613
1651
|
};
|
|
1614
1652
|
let b = class extends m {
|
|
1615
1653
|
constructor() {
|
|
@@ -1626,8 +1664,8 @@ let b = class extends m {
|
|
|
1626
1664
|
trapFocus(n) {
|
|
1627
1665
|
const t = this.getFocusableElements();
|
|
1628
1666
|
if (t.length === 0) return;
|
|
1629
|
-
const e = t[0],
|
|
1630
|
-
n.shiftKey && document.activeElement === e ? (n.preventDefault(),
|
|
1667
|
+
const e = t[0], s = t[t.length - 1];
|
|
1668
|
+
n.shiftKey && document.activeElement === e ? (n.preventDefault(), s.focus()) : !n.shiftKey && document.activeElement === s && (n.preventDefault(), e.focus());
|
|
1631
1669
|
}
|
|
1632
1670
|
getFocusableElements() {
|
|
1633
1671
|
const n = this.renderRoot.querySelector(".panel");
|
|
@@ -1659,7 +1697,7 @@ let b = class extends m {
|
|
|
1659
1697
|
this.style.setProperty("--z-overlay", `${this.zIndex}`), this.style.setProperty("--z-panel", `${this.zIndex + 1}`);
|
|
1660
1698
|
}
|
|
1661
1699
|
render() {
|
|
1662
|
-
return
|
|
1700
|
+
return h`
|
|
1663
1701
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
|
|
1664
1702
|
<div
|
|
1665
1703
|
class="panel"
|
|
@@ -1670,7 +1708,7 @@ let b = class extends m {
|
|
|
1670
1708
|
>
|
|
1671
1709
|
<o-icon-button icon="cross" size="medium" class="close-btn" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
1672
1710
|
|
|
1673
|
-
${this.showHeader ?
|
|
1711
|
+
${this.showHeader ? h`
|
|
1674
1712
|
<div class="header">
|
|
1675
1713
|
<span id="panel-title" class="panel-title">${this.headerTitle}</span>
|
|
1676
1714
|
</div>
|
|
@@ -1680,9 +1718,9 @@ let b = class extends m {
|
|
|
1680
1718
|
<slot></slot>
|
|
1681
1719
|
</div>
|
|
1682
1720
|
|
|
1683
|
-
${this.showFooter ?
|
|
1721
|
+
${this.showFooter ? h`
|
|
1684
1722
|
<div class="footer">
|
|
1685
|
-
${this.firstButtonVariant && this.firstButtonLabel ?
|
|
1723
|
+
${this.firstButtonVariant && this.firstButtonLabel ? h`
|
|
1686
1724
|
<o-button
|
|
1687
1725
|
variant="${this.firstButtonVariant}"
|
|
1688
1726
|
@click=${this.handleFirstClick}
|
|
@@ -1691,7 +1729,7 @@ let b = class extends m {
|
|
|
1691
1729
|
</o-button>
|
|
1692
1730
|
` : null}
|
|
1693
1731
|
|
|
1694
|
-
${this.secondaryButtonVariant && this.secondaryButtonLabel ?
|
|
1732
|
+
${this.secondaryButtonVariant && this.secondaryButtonLabel ? h`
|
|
1695
1733
|
<o-button
|
|
1696
1734
|
variant="${this.secondaryButtonVariant}"
|
|
1697
1735
|
@click=${this.handleSecondaryClick}
|
|
@@ -1758,7 +1796,7 @@ b.styles = A`
|
|
|
1758
1796
|
|
|
1759
1797
|
.header {
|
|
1760
1798
|
flex: 0 0 auto;
|
|
1761
|
-
padding: 16px 0 16px
|
|
1799
|
+
padding: 16px 0 16px 16px;
|
|
1762
1800
|
border-bottom: var(--border-050) solid var(--color-border-tertiary);
|
|
1763
1801
|
|
|
1764
1802
|
.panel-title {
|
|
@@ -1843,16 +1881,25 @@ y([
|
|
|
1843
1881
|
a({ type: Number, reflect: !0 })
|
|
1844
1882
|
], b.prototype, "zIndex", 2);
|
|
1845
1883
|
b = y([
|
|
1846
|
-
|
|
1884
|
+
z("o-side-panel")
|
|
1847
1885
|
], b);
|
|
1848
|
-
var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor,
|
|
1849
|
-
for (var
|
|
1850
|
-
(
|
|
1851
|
-
return
|
|
1886
|
+
var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, H = (n, t, e, s) => {
|
|
1887
|
+
for (var o = s > 1 ? void 0 : s ? Be(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1888
|
+
(i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
|
|
1889
|
+
return s && o && Ie(t, e, o), o;
|
|
1852
1890
|
};
|
|
1853
|
-
let
|
|
1891
|
+
let _ = class extends m {
|
|
1854
1892
|
constructor() {
|
|
1855
|
-
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0
|
|
1893
|
+
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
|
|
1894
|
+
<o-icon-button
|
|
1895
|
+
icon="playerv"
|
|
1896
|
+
size="medium"
|
|
1897
|
+
bgstyle="background-light"
|
|
1898
|
+
type="span"
|
|
1899
|
+
status="filled"
|
|
1900
|
+
strokewidth="1.5"
|
|
1901
|
+
></o-icon-button>
|
|
1902
|
+
`;
|
|
1856
1903
|
}
|
|
1857
1904
|
handleKeyDown(n) {
|
|
1858
1905
|
n.key === "ArrowRight" ? (n.preventDefault(), this.focusNext()) : n.key === "ArrowLeft" ? (n.preventDefault(), this.focusPrevious()) : (n.key === "Enter" || n.key === " ") && (n.preventDefault(), this.selectThumbnail(this.focusedIndex));
|
|
@@ -1877,24 +1924,24 @@ let w = class extends m {
|
|
|
1877
1924
|
this.disabledIndexes.includes(n) || (this.activeIndex = n, this.swiperInstance && typeof this.swiperInstance.slideTo == "function" && this.swiperInstance.slideTo(n), this.dispatchEvent(new CustomEvent("thumbnail-select", { detail: { index: n } })));
|
|
1878
1925
|
}
|
|
1879
1926
|
render() {
|
|
1880
|
-
return
|
|
1927
|
+
return h`
|
|
1881
1928
|
<div class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
1882
1929
|
${this.thumbnails.map((n, t) => {
|
|
1883
|
-
const e = this.disabledIndexes.includes(t),
|
|
1884
|
-
return
|
|
1930
|
+
const e = this.disabledIndexes.includes(t), s = this.activeIndex === t, o = n.type === "video";
|
|
1931
|
+
return h`
|
|
1885
1932
|
<div class="thumb-wrapper">
|
|
1886
1933
|
<button
|
|
1887
1934
|
class="thumb"
|
|
1888
1935
|
data-index="${t}"
|
|
1889
1936
|
?disabled=${e}
|
|
1890
|
-
aria-selected=${
|
|
1937
|
+
aria-selected=${s}
|
|
1891
1938
|
tabindex="${this.focusedIndex === t ? 0 : -1}"
|
|
1892
1939
|
@click=${() => this.selectThumbnail(t)}
|
|
1893
1940
|
@keydown=${this.handleKeyDown}
|
|
1894
1941
|
>
|
|
1895
1942
|
<img src="${n.src}" />
|
|
1896
1943
|
</button>
|
|
1897
|
-
${
|
|
1944
|
+
${o ? h`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
1898
1945
|
</div>
|
|
1899
1946
|
`;
|
|
1900
1947
|
})}
|
|
@@ -1902,7 +1949,7 @@ let w = class extends m {
|
|
|
1902
1949
|
`;
|
|
1903
1950
|
}
|
|
1904
1951
|
};
|
|
1905
|
-
|
|
1952
|
+
_.styles = A`
|
|
1906
1953
|
:host {
|
|
1907
1954
|
display: flex;
|
|
1908
1955
|
gap: 5px;
|
|
@@ -2006,27 +2053,24 @@ w.styles = A`
|
|
|
2006
2053
|
width: 0;
|
|
2007
2054
|
}
|
|
2008
2055
|
`;
|
|
2009
|
-
|
|
2056
|
+
H([
|
|
2010
2057
|
a({ type: Array })
|
|
2011
|
-
],
|
|
2012
|
-
|
|
2058
|
+
], _.prototype, "thumbnails", 2);
|
|
2059
|
+
H([
|
|
2013
2060
|
a({ type: Number })
|
|
2014
|
-
],
|
|
2015
|
-
|
|
2061
|
+
], _.prototype, "activeIndex", 2);
|
|
2062
|
+
H([
|
|
2016
2063
|
a({ type: Array })
|
|
2017
|
-
],
|
|
2018
|
-
|
|
2019
|
-
a({ type: Object })
|
|
2020
|
-
], w.prototype, "playIcon", 2);
|
|
2021
|
-
P([
|
|
2064
|
+
], _.prototype, "disabledIndexes", 2);
|
|
2065
|
+
H([
|
|
2022
2066
|
a({ type: String })
|
|
2023
|
-
],
|
|
2024
|
-
|
|
2067
|
+
], _.prototype, "maxWidth", 2);
|
|
2068
|
+
H([
|
|
2025
2069
|
a({ type: Object })
|
|
2026
|
-
],
|
|
2027
|
-
|
|
2070
|
+
], _.prototype, "swiperInstance", 2);
|
|
2071
|
+
H([
|
|
2028
2072
|
Qt()
|
|
2029
|
-
],
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
],
|
|
2073
|
+
], _.prototype, "focusedIndex", 2);
|
|
2074
|
+
_ = H([
|
|
2075
|
+
z("thumbnail-navigation")
|
|
2076
|
+
], _);
|