@florid-kit/components 0.4.8 → 0.4.10
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/side-panel.d.ts +1 -0
- package/index.js +38 -28
- package/index.mjs +237 -222
- 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(),
|
|
6
|
+
const X = globalThis, ht = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), vt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let St = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, o) {
|
|
9
|
+
if (this._$cssResult$ = !0, o !== 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 o = e !== void 0 && e.length === 1;
|
|
17
|
+
o && (t = vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && vt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -23,21 +23,21 @@ let St = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
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((
|
|
26
|
+
const e = n.length === 1 ? n[0] : t.reduce((o, s, r) => o + ((i) => {
|
|
27
27
|
if (i._$cssResult$ === !0) return i.cssText;
|
|
28
28
|
if (typeof i == "number") return i;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(
|
|
30
|
+
})(s) + n[r + 1], n[0]);
|
|
31
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 o = document.createElement("style"), s = X.litNonce;
|
|
36
|
+
s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, n.appendChild(o);
|
|
37
37
|
}
|
|
38
38
|
}, bt = ht ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const o of t.cssRules) e += o.cssText;
|
|
41
41
|
return It(e);
|
|
42
42
|
})(n) : n;
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ const It = (n) => new St(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:
|
|
48
|
+
const { is: Ot, defineProperty: zt, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Mt, getOwnPropertySymbols: Tt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", ot = 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 o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
|
|
88
|
+
s !== void 0 && zt(this.prototype, t, s);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get:
|
|
91
|
+
static getPropertyDescriptor(t, e, o) {
|
|
92
|
+
const { get: s, set: r } = Ht(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(i) {
|
|
95
95
|
this[e] = i;
|
|
96
96
|
} };
|
|
97
|
-
return { get:
|
|
98
|
-
const c =
|
|
99
|
-
r == null || r.call(this, i), this.requestUpdate(t, c,
|
|
97
|
+
return { get: s, set(i) {
|
|
98
|
+
const c = s == null ? void 0 : s.call(this);
|
|
99
|
+
r == null || r.call(this, i), this.requestUpdate(t, c, o);
|
|
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, o = [...Mt(e), ...Tt(e)];
|
|
114
|
+
for (const s of o) this.createProperty(s, e[s]);
|
|
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 [o, s] of e) this.elementProperties.set(o, s);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const
|
|
124
|
-
|
|
122
|
+
for (const [e, o] of this.elementProperties) {
|
|
123
|
+
const s = this._$Eu(e, o);
|
|
124
|
+
s !== void 0 && this._$Eh.set(s, 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 o = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const s of o) e.unshift(bt(s));
|
|
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 o = e.attribute;
|
|
138
|
+
return o === !1 ? void 0 : typeof o == "string" ? o : 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 o of e.keys()) this.hasOwnProperty(o) && (t.set(o, this[o]), delete this[o]);
|
|
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 o;
|
|
168
|
+
return (o = e.hostConnected) == null ? void 0 : o.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 o;
|
|
177
|
+
return (o = e.hostDisconnected) == null ? void 0 : o.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, o) {
|
|
181
|
+
this._$AK(t, o);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
184
|
var r;
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
const i = (((r =
|
|
188
|
-
this._$Em = t, i == null ? this.removeAttribute(
|
|
185
|
+
const o = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, o);
|
|
186
|
+
if (s !== void 0 && o.reflect === !0) {
|
|
187
|
+
const i = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : J).toAttribute(e, o.type);
|
|
188
|
+
this._$Em = t, i == null ? this.removeAttribute(s) : this.setAttribute(s, i), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
192
|
var r, i;
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
195
|
-
const c =
|
|
196
|
-
this._$Em =
|
|
193
|
+
const o = this.constructor, s = o._$Eh.get(t);
|
|
194
|
+
if (s !== void 0 && this._$Em !== s) {
|
|
195
|
+
const c = o.getPropertyOptions(s), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : J;
|
|
196
|
+
this._$Em = s, this[s] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(s)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
200
|
-
var
|
|
199
|
+
requestUpdate(t, e, o) {
|
|
200
|
+
var s;
|
|
201
201
|
if (t !== void 0) {
|
|
202
202
|
const r = this.constructor, i = this[t];
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
203
|
+
if (o ?? (o = r.getPropertyOptions(t)), !((o.hasChanged ?? pt)(i, e) || o.useDefault && o.reflect && i === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(r._$Eu(t, o)))) return;
|
|
204
|
+
this.C(t, e, o);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: o, reflect: s, wrapped: r }, i) {
|
|
209
|
+
o && !(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 || o || (e = void 0), this._$AL.set(t, e)), s === !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,15 +222,15 @@ let T = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var o;
|
|
226
226
|
if (!this.isUpdatePending) return;
|
|
227
227
|
if (!this.hasUpdated) {
|
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
229
|
for (const [r, i] of this._$Ep) this[r] = i;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
232
|
+
const s = this.constructor.elementProperties;
|
|
233
|
+
if (s.size > 0) for (const [r, i] of s) {
|
|
234
234
|
const { wrapped: c } = i, l = this[r];
|
|
235
235
|
c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, i, l);
|
|
236
236
|
}
|
|
@@ -238,12 +238,12 @@ let T = class extends HTMLElement {
|
|
|
238
238
|
let t = !1;
|
|
239
239
|
const e = this._$AL;
|
|
240
240
|
try {
|
|
241
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
|
241
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((s) => {
|
|
242
242
|
var r;
|
|
243
|
-
return (r =
|
|
243
|
+
return (r = s.hostUpdate) == null ? void 0 : r.call(s);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
|
-
} catch (
|
|
246
|
-
throw t = !1, this._$EM(),
|
|
245
|
+
} catch (s) {
|
|
246
|
+
throw t = !1, this._$EM(), s;
|
|
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((o) => {
|
|
255
|
+
var s;
|
|
256
|
+
return (s = o.hostUpdated) == null ? void 0 : s.call(o);
|
|
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(), ot == null || ot({ 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$", 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",
|
|
286
|
-
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, P = RegExp(`>|${
|
|
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", st = `[
|
|
286
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, P = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
287
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, o = [];
|
|
294
|
+
let s, 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 (; w < l.length && (i.lastIndex = w,
|
|
297
|
+
let f, b, p = -1, w = 0;
|
|
298
|
+
for (; w < l.length && (i.lastIndex = w, b = i.exec(l), b !== null); ) w = i.lastIndex, i === j ? b[1] === "!--" ? i = $t : b[1] !== void 0 ? i = wt : b[2] !== void 0 ? (Pt.test(b[2]) && (s = RegExp("</" + b[2], "g")), i = P) : b[3] !== void 0 && (i = P) : i === P ? b[0] === ">" ? (i = s ?? j, p = -1) : b[1] === void 0 ? p = -2 : (p = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? P : b[3] === '"' ? _t : xt) : i === _t || i === xt ? i = P : i === $t || i === wt ? i = j : (i = P, s = void 0);
|
|
299
299
|
const E = i === P && n[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
r += i === j ? l + Nt : p >= 0 ? (
|
|
300
|
+
r += i === j ? l + Nt : p >= 0 ? (o.push(f), l.slice(0, p) + Ct + l.slice(p) + S + E) : l + S + (p === -2 ? c : E);
|
|
301
301
|
}
|
|
302
|
-
return [kt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")),
|
|
302
|
+
return [kt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
|
|
303
303
|
};
|
|
304
304
|
class Z {
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
306
|
-
let
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, o) {
|
|
306
|
+
let s;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, i = 0;
|
|
309
|
-
const c = t.length - 1, l = this.parts, [
|
|
310
|
-
if (this.el = Z.createElement(
|
|
309
|
+
const c = t.length - 1, l = this.parts, [f, b] = Vt(t, e);
|
|
310
|
+
if (this.el = Z.createElement(f, o), 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 w =
|
|
318
|
-
l.push({ type: 1, index: r, name: K[2], strings: E, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }),
|
|
319
|
-
} else p.startsWith(S) && (l.push({ type: 6, index: r }),
|
|
320
|
-
if (Pt.test(
|
|
321
|
-
const p =
|
|
314
|
+
for (; (s = k.nextNode()) !== null && l.length < c; ) {
|
|
315
|
+
if (s.nodeType === 1) {
|
|
316
|
+
if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Ct)) {
|
|
317
|
+
const w = b[i++], E = s.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 }), s.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(S) && (l.push({ type: 6, index: r }), s.removeAttribute(p));
|
|
320
|
+
if (Pt.test(s.tagName)) {
|
|
321
|
+
const p = s.textContent.split(S), w = p.length - 1;
|
|
322
322
|
if (w > 0) {
|
|
323
|
-
|
|
324
|
-
for (let E = 0; E < w; E++)
|
|
325
|
-
|
|
323
|
+
s.textContent = Q ? Q.emptyScript : "";
|
|
324
|
+
for (let E = 0; E < w; E++) s.append(p[E], F()), k.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
|
+
s.append(p[w], F());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (
|
|
328
|
+
} else if (s.nodeType === 8) if (s.data === Lt) l.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p =
|
|
331
|
+
for (; (p = s.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 o = B.createElement("template");
|
|
338
|
+
return o.innerHTML = t, o;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function D(n, t, e = n,
|
|
341
|
+
function D(n, t, e = n, o) {
|
|
342
342
|
var i, c;
|
|
343
343
|
if (t === O) return t;
|
|
344
|
-
let
|
|
344
|
+
let s = o !== void 0 ? (i = e._$Co) == null ? void 0 : i[o] : e._$Cl;
|
|
345
345
|
const r = q(t) ? void 0 : t._$litDirective$;
|
|
346
|
-
return (
|
|
346
|
+
return (s == null ? void 0 : s.constructor) !== r && ((c = s == null ? void 0 : s._$AO) == null || c.call(s, !1), r === void 0 ? s = void 0 : (s = new r(n), s._$AT(n, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = s : e._$Cl = s), s !== void 0 && (t = D(n, s._$AS(n, t.values), s, o)), 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
|
-
k.currentNode =
|
|
361
|
-
let r = k.nextNode(), i = 0, c = 0, l =
|
|
359
|
+
const { el: { content: e }, parts: o } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? B).importNode(e, !0);
|
|
360
|
+
k.currentNode = s;
|
|
361
|
+
let r = k.nextNode(), i = 0, c = 0, l = o[0];
|
|
362
362
|
for (; l !== void 0; ) {
|
|
363
363
|
if (i === l.index) {
|
|
364
|
-
let
|
|
365
|
-
l.type === 2 ?
|
|
364
|
+
let f;
|
|
365
|
+
l.type === 2 ? f = new G(r, r.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (f = new Gt(r, this, t)), this._$AV.push(f), l = o[++c];
|
|
366
366
|
}
|
|
367
367
|
i !== (l == null ? void 0 : l.index) && (r = k.nextNode(), i++);
|
|
368
368
|
}
|
|
369
|
-
return k.currentNode = B,
|
|
369
|
+
return k.currentNode = B, s;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, e), e += o.strings.length - 2) : o._$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 = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
|
381
|
+
constructor(t, e, o, s) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = o, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -406,10 +406,10 @@ class G {
|
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
408
|
var r;
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((r = this._$AH) == null ? void 0 : r._$AD) ===
|
|
409
|
+
const { values: e, _$litType$: o } = t, s = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = Z.createElement(kt(o.h, o.h[0]), this.options)), o);
|
|
410
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const i = new Ft(
|
|
412
|
+
const i = new Ft(s, this), c = i.u(this.options);
|
|
413
413
|
i.p(e), this.T(c), this._$AH = i;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -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 r of t)
|
|
425
|
-
|
|
423
|
+
let o, s = 0;
|
|
424
|
+
for (const r of t) s === e.length ? e.push(o = new G(this.O(F()), this.O(F()), this, this.options)) : o = e[s], o._$AI(r), s++;
|
|
425
|
+
s < e.length && (this._$AR(o && o._$AB.nextSibling, s), e.length = s);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
430
|
-
const
|
|
431
|
-
t.remove(), t =
|
|
428
|
+
var o;
|
|
429
|
+
for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
|
+
const s = t.nextSibling;
|
|
431
|
+
t.remove(), t = s;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
setConnected(t) {
|
|
@@ -443,19 +443,19 @@ class Y {
|
|
|
443
443
|
get _$AU() {
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
|
-
constructor(t, e,
|
|
447
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
446
|
+
constructor(t, e, o, s, r) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
449
|
+
_$AI(t, e = this, o, s) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let i = !1;
|
|
452
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 = r[0], l = 0; l < r.length - 1; l++)
|
|
455
|
+
let l, f;
|
|
456
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) f = D(this, c[o + l], e, l), f === O && (f = this._$AH[l]), i || (i = !q(f) || f !== this._$AH[l]), f === d ? t = d : t !== d && (t += (f ?? "") + r[l + 1]), this._$AH[l] = f;
|
|
457
457
|
}
|
|
458
|
-
i && !
|
|
458
|
+
i && !s && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -478,13 +478,13 @@ class Zt extends Y {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class Wt extends Y {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, o, s, r) {
|
|
482
|
+
super(t, e, o, s, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
485
|
if ((t = D(this, t, e, 0) ?? d) === O) return;
|
|
486
|
-
const
|
|
487
|
-
|
|
486
|
+
const o = this._$AH, s = t === d && o !== d || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, r = t !== d && (o === d || s);
|
|
487
|
+
s && this.element.removeEventListener(this.name, this, o), 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, o) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = o;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -505,13 +505,13 @@ class Gt {
|
|
|
505
505
|
const it = V.litHtmlPolyfillSupport;
|
|
506
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 (
|
|
508
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let s = o._$litPart$;
|
|
510
|
+
if (s === void 0) {
|
|
511
511
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
|
|
512
|
+
o._$litPart$ = s = new G(t.insertBefore(F(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
|
-
return
|
|
514
|
+
return s._$AI(n), s;
|
|
515
515
|
};
|
|
516
516
|
/**
|
|
517
517
|
* @license
|
|
@@ -565,9 +565,9 @@ const z = (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 r = globalThis.litPropertyMetadata.get(
|
|
570
|
-
if (r === void 0 && globalThis.litPropertyMetadata.set(
|
|
568
|
+
const { kind: o, metadata: s } = e;
|
|
569
|
+
let r = globalThis.litPropertyMetadata.get(s);
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(e.name, n), o === "accessor") {
|
|
571
571
|
const { name: i } = e;
|
|
572
572
|
return { set(c) {
|
|
573
573
|
const l = t.get.call(this);
|
|
@@ -576,19 +576,19 @@ const Xt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged:
|
|
|
576
576
|
return c !== void 0 && this.C(i, void 0, n, c), c;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
579
|
+
if (o === "setter") {
|
|
580
580
|
const { name: i } = e;
|
|
581
581
|
return function(c) {
|
|
582
582
|
const l = this[i];
|
|
583
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: " + o);
|
|
587
587
|
};
|
|
588
588
|
function a(n) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Jt(n, t, e) : ((
|
|
590
|
-
const i =
|
|
591
|
-
return
|
|
589
|
+
return (t, e) => typeof e == "object" ? Jt(n, t, e) : ((o, s, r) => {
|
|
590
|
+
const i = s.hasOwnProperty(r);
|
|
591
|
+
return s.constructor.createProperty(r, o), i ? Object.getOwnPropertyDescriptor(s, 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 ft = 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 = ft, t)]() {
|
|
622
622
|
return this[at] || (this[at] = this.attachInternals()), this[at];
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -632,12 +632,12 @@ 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 (!(!i ||
|
|
635
|
+
e.addEventListener("click", async (o) => {
|
|
636
|
+
const { type: s, [ft]: r } = e, { form: i } = r;
|
|
637
|
+
if (!(!i || s === "button") && (await new Promise((c) => {
|
|
638
638
|
setTimeout(c);
|
|
639
|
-
}), !
|
|
640
|
-
if (
|
|
639
|
+
}), !o.defaultPrevented)) {
|
|
640
|
+
if (s === "reset") {
|
|
641
641
|
i.reset();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
@@ -659,10 +659,10 @@ 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
|
+
`, oe = `<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
|
+
`, se = `<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">
|
|
@@ -700,7 +700,7 @@ const ne = `<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
|
+
`, fe = `<?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">
|
|
@@ -711,11 +711,11 @@ const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
711
711
|
</svg>
|
|
712
712
|
`, tt = {
|
|
713
713
|
wishlist: ne,
|
|
714
|
-
playerv:
|
|
715
|
-
chevronRight:
|
|
714
|
+
playerv: oe,
|
|
715
|
+
chevronRight: se,
|
|
716
716
|
chevronLeft: ie,
|
|
717
717
|
icoPlus: ue,
|
|
718
|
-
icoMinus:
|
|
718
|
+
icoMinus: fe,
|
|
719
719
|
"star-0": re,
|
|
720
720
|
"star-25": ae,
|
|
721
721
|
"star-50": le,
|
|
@@ -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 ve = { 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, o) {
|
|
740
|
+
this._$Ct = t, this._$AM = e, this._$Ci = o;
|
|
741
741
|
}
|
|
742
742
|
_$AS(t, e) {
|
|
743
743
|
return this.update(t, e);
|
|
@@ -753,7 +753,7 @@ class ge {
|
|
|
753
753
|
*/
|
|
754
754
|
class lt extends ge {
|
|
755
755
|
constructor(t) {
|
|
756
|
-
if (super(t), this.it = d, t.type !==
|
|
756
|
+
if (super(t), this.it = d, t.type !== ve.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
757
757
|
}
|
|
758
758
|
render(t) {
|
|
759
759
|
if (t === d || t == null) return this._t = void 0, 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
|
-
(i = n[r]) && (
|
|
781
|
-
return
|
|
778
|
+
var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, g = (n, t, e, o) => {
|
|
779
|
+
for (var s = o > 1 ? void 0 : o ? me(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
780
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
781
|
+
return o && s && ye(t, e, s), s;
|
|
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[ft].form;
|
|
796
796
|
}
|
|
797
797
|
handleClick() {
|
|
798
798
|
if (this.panelTarget) {
|
|
@@ -1049,10 +1049,10 @@ g([
|
|
|
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
|
-
(i = n[r]) && (
|
|
1055
|
-
return
|
|
1052
|
+
var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, et = (n, t, e, o) => {
|
|
1053
|
+
for (var s = o > 1 ? void 0 : o ? xe(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1054
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1055
|
+
return o && s && we(t, e, s), s;
|
|
1056
1056
|
};
|
|
1057
1057
|
let U = class extends m {
|
|
1058
1058
|
constructor() {
|
|
@@ -1163,10 +1163,10 @@ et([
|
|
|
1163
1163
|
U = et([
|
|
1164
1164
|
z("o-wishlist-button")
|
|
1165
1165
|
], U);
|
|
1166
|
-
var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (n, t, e,
|
|
1167
|
-
for (var
|
|
1168
|
-
(i = n[r]) && (
|
|
1169
|
-
return
|
|
1166
|
+
var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (n, t, e, o) => {
|
|
1167
|
+
for (var s = o > 1 ? void 0 : o ? Ae(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1168
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1169
|
+
return o && s && _e(t, e, s), s;
|
|
1170
1170
|
};
|
|
1171
1171
|
let $ = class extends m {
|
|
1172
1172
|
constructor() {
|
|
@@ -1422,10 +1422,10 @@ L([
|
|
|
1422
1422
|
$ = L([
|
|
1423
1423
|
z("o-icon-button")
|
|
1424
1424
|
], $);
|
|
1425
|
-
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor,
|
|
1426
|
-
for (var
|
|
1427
|
-
(i = n[r]) && (
|
|
1428
|
-
return
|
|
1425
|
+
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, H = (n, t, e, o) => {
|
|
1426
|
+
for (var s = o > 1 ? void 0 : o ? Se(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1427
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1428
|
+
return o && s && Ee(t, e, s), s;
|
|
1429
1429
|
};
|
|
1430
1430
|
let x = class extends m {
|
|
1431
1431
|
constructor() {
|
|
@@ -1545,31 +1545,31 @@ x.styles = A`
|
|
|
1545
1545
|
}
|
|
1546
1546
|
/* End of underline effect */
|
|
1547
1547
|
`;
|
|
1548
|
-
|
|
1548
|
+
H([
|
|
1549
1549
|
a({ type: String })
|
|
1550
1550
|
], x.prototype, "href", 2);
|
|
1551
|
-
|
|
1551
|
+
H([
|
|
1552
1552
|
a({ type: String })
|
|
1553
1553
|
], x.prototype, "target", 2);
|
|
1554
|
-
|
|
1554
|
+
H([
|
|
1555
1555
|
a({ type: String, reflect: !0 })
|
|
1556
1556
|
], x.prototype, "template", 2);
|
|
1557
|
-
|
|
1557
|
+
H([
|
|
1558
1558
|
a({ type: Boolean, reflect: !0 })
|
|
1559
1559
|
], x.prototype, "inverse", 2);
|
|
1560
|
-
|
|
1560
|
+
H([
|
|
1561
1561
|
a({ type: Boolean, reflect: !0 })
|
|
1562
1562
|
], x.prototype, "endIcon", 2);
|
|
1563
|
-
|
|
1563
|
+
H([
|
|
1564
1564
|
a({ type: Boolean, reflect: !0 })
|
|
1565
1565
|
], x.prototype, "reverseEndIcon", 2);
|
|
1566
|
-
x =
|
|
1566
|
+
x = H([
|
|
1567
1567
|
z("o-link")
|
|
1568
1568
|
], x);
|
|
1569
|
-
var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, nt = (n, t, e,
|
|
1570
|
-
for (var
|
|
1571
|
-
(i = n[r]) && (
|
|
1572
|
-
return
|
|
1569
|
+
var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, nt = (n, t, e, o) => {
|
|
1570
|
+
for (var s = o > 1 ? void 0 : o ? Le(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1571
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1572
|
+
return o && s && Ce(t, e, s), s;
|
|
1573
1573
|
};
|
|
1574
1574
|
let N = class extends m {
|
|
1575
1575
|
constructor() {
|
|
@@ -1579,8 +1579,8 @@ let N = class extends m {
|
|
|
1579
1579
|
const n = [];
|
|
1580
1580
|
for (let t = 0; t < 5; t++) {
|
|
1581
1581
|
const e = this.rating - t;
|
|
1582
|
-
let
|
|
1583
|
-
e >= 1 ?
|
|
1582
|
+
let o;
|
|
1583
|
+
e >= 1 ? o = 100 : e <= 0 ? o = 0 : o = Math.round(e * 100 / 25) * 25, n.push(`star-${o}`);
|
|
1584
1584
|
}
|
|
1585
1585
|
return n;
|
|
1586
1586
|
}
|
|
@@ -1644,19 +1644,21 @@ nt([
|
|
|
1644
1644
|
N = nt([
|
|
1645
1645
|
z("o-rating")
|
|
1646
1646
|
], N);
|
|
1647
|
-
var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (n, t, e,
|
|
1648
|
-
for (var
|
|
1649
|
-
(i = n[r]) && (
|
|
1650
|
-
return
|
|
1647
|
+
var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (n, t, e, o) => {
|
|
1648
|
+
for (var s = o > 1 ? void 0 : o ? ke(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1649
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1650
|
+
return o && s && Pe(t, e, s), s;
|
|
1651
1651
|
};
|
|
1652
|
-
let
|
|
1652
|
+
let v = class extends m {
|
|
1653
1653
|
constructor() {
|
|
1654
|
-
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !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.previousFocusedElement = null, this.handleKeyDown = (n) => {
|
|
1654
|
+
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !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 = (n) => {
|
|
1655
1655
|
this.open && (n.key === "Escape" ? this.closePanel() : n.key === "Tab" && this.trapFocus(n));
|
|
1656
1656
|
};
|
|
1657
1657
|
}
|
|
1658
1658
|
connectedCallback() {
|
|
1659
|
-
super.connectedCallback(), !this.disablePortal && this.parentElement !== document.body && document.body.appendChild(this), window.addEventListener("keydown", this.handleKeyDown)
|
|
1659
|
+
super.connectedCallback(), !this.disablePortal && this.parentElement !== document.body && document.body.appendChild(this), window.addEventListener("keydown", this.handleKeyDown), this.updateComplete.then(() => {
|
|
1660
|
+
this.initialized = !0;
|
|
1661
|
+
});
|
|
1660
1662
|
}
|
|
1661
1663
|
disconnectedCallback() {
|
|
1662
1664
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), window.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback();
|
|
@@ -1664,8 +1666,8 @@ let b = class extends m {
|
|
|
1664
1666
|
trapFocus(n) {
|
|
1665
1667
|
const t = this.getFocusableElements();
|
|
1666
1668
|
if (t.length === 0) return;
|
|
1667
|
-
const e = t[0],
|
|
1668
|
-
n.shiftKey && document.activeElement === e ? (n.preventDefault(),
|
|
1669
|
+
const e = t[0], o = t[t.length - 1];
|
|
1670
|
+
n.shiftKey && document.activeElement === e ? (n.preventDefault(), o.focus()) : !n.shiftKey && document.activeElement === o && (n.preventDefault(), e.focus());
|
|
1669
1671
|
}
|
|
1670
1672
|
getFocusableElements() {
|
|
1671
1673
|
const n = this.renderRoot.querySelector(".panel");
|
|
@@ -1743,7 +1745,7 @@ let b = class extends m {
|
|
|
1743
1745
|
`;
|
|
1744
1746
|
}
|
|
1745
1747
|
};
|
|
1746
|
-
|
|
1748
|
+
v.styles = A`
|
|
1747
1749
|
:host {
|
|
1748
1750
|
--z-overlay: 99;
|
|
1749
1751
|
--z-panel: 100;
|
|
@@ -1756,6 +1758,16 @@ b.styles = A`
|
|
|
1756
1758
|
z-index: var(--z-overlay);
|
|
1757
1759
|
}
|
|
1758
1760
|
|
|
1761
|
+
/* Hide content until it is initialized */
|
|
1762
|
+
:host(:not([initialized])) .content {
|
|
1763
|
+
display: none;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/* hide the host completely until its initialized */
|
|
1767
|
+
:host(:not([initialized])) {
|
|
1768
|
+
display: none !important;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1759
1771
|
.overlay {
|
|
1760
1772
|
position: absolute;
|
|
1761
1773
|
inset: 0;
|
|
@@ -1843,61 +1855,64 @@ b.styles = A`
|
|
|
1843
1855
|
`;
|
|
1844
1856
|
y([
|
|
1845
1857
|
a({ type: Boolean, reflect: !0 })
|
|
1846
|
-
],
|
|
1858
|
+
], v.prototype, "open", 2);
|
|
1847
1859
|
y([
|
|
1848
1860
|
a({ type: Boolean, reflect: !0 })
|
|
1849
|
-
],
|
|
1861
|
+
], v.prototype, "showHeader", 2);
|
|
1850
1862
|
y([
|
|
1851
1863
|
a({ type: Boolean, reflect: !0 })
|
|
1852
|
-
],
|
|
1864
|
+
], v.prototype, "showFooter", 2);
|
|
1853
1865
|
y([
|
|
1854
1866
|
a({ type: String, reflect: !0 })
|
|
1855
|
-
],
|
|
1867
|
+
], v.prototype, "headerTitle", 2);
|
|
1856
1868
|
y([
|
|
1857
1869
|
a({ type: String, reflect: !0 })
|
|
1858
|
-
],
|
|
1870
|
+
], v.prototype, "closeButtonLabel", 2);
|
|
1859
1871
|
y([
|
|
1860
1872
|
a({ type: String, reflect: !0 })
|
|
1861
|
-
],
|
|
1873
|
+
], v.prototype, "firstButtonLabel", 2);
|
|
1862
1874
|
y([
|
|
1863
1875
|
a({ type: String, reflect: !0 })
|
|
1864
|
-
],
|
|
1876
|
+
], v.prototype, "firstButtonVariant", 2);
|
|
1865
1877
|
y([
|
|
1866
1878
|
a({ type: Function })
|
|
1867
|
-
],
|
|
1879
|
+
], v.prototype, "onFirstButtonClick", 2);
|
|
1868
1880
|
y([
|
|
1869
1881
|
a({ type: String, reflect: !0 })
|
|
1870
|
-
],
|
|
1882
|
+
], v.prototype, "secondaryButtonLabel", 2);
|
|
1871
1883
|
y([
|
|
1872
1884
|
a({ type: String, reflect: !0 })
|
|
1873
|
-
],
|
|
1885
|
+
], v.prototype, "secondaryButtonVariant", 2);
|
|
1874
1886
|
y([
|
|
1875
1887
|
a({ type: Function })
|
|
1876
|
-
],
|
|
1888
|
+
], v.prototype, "onSecondaryButtonClick", 2);
|
|
1877
1889
|
y([
|
|
1878
1890
|
a({ type: Boolean, reflect: !0 })
|
|
1879
|
-
],
|
|
1891
|
+
], v.prototype, "disablePortal", 2);
|
|
1880
1892
|
y([
|
|
1881
1893
|
a({ type: Number, reflect: !0 })
|
|
1882
|
-
],
|
|
1883
|
-
|
|
1894
|
+
], v.prototype, "zIndex", 2);
|
|
1895
|
+
y([
|
|
1896
|
+
a({ type: Boolean, reflect: !0 })
|
|
1897
|
+
], v.prototype, "initialized", 2);
|
|
1898
|
+
v = y([
|
|
1884
1899
|
z("o-side-panel")
|
|
1885
|
-
],
|
|
1886
|
-
var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor,
|
|
1887
|
-
for (var
|
|
1888
|
-
(i = n[r]) && (
|
|
1889
|
-
return
|
|
1900
|
+
], v);
|
|
1901
|
+
var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, M = (n, t, e, o) => {
|
|
1902
|
+
for (var s = o > 1 ? void 0 : o ? Be(t, e) : t, r = n.length - 1, i; r >= 0; r--)
|
|
1903
|
+
(i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1904
|
+
return o && s && Ie(t, e, s), s;
|
|
1890
1905
|
};
|
|
1891
1906
|
let _ = class extends m {
|
|
1892
1907
|
constructor() {
|
|
1893
1908
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
|
|
1894
1909
|
<o-icon-button
|
|
1895
1910
|
icon="playerv"
|
|
1896
|
-
size="
|
|
1911
|
+
size="smallxs"
|
|
1897
1912
|
bgstyle="background-light"
|
|
1898
1913
|
type="span"
|
|
1899
1914
|
status="filled"
|
|
1900
|
-
strokewidth="
|
|
1915
|
+
strokewidth="0"
|
|
1901
1916
|
></o-icon-button>
|
|
1902
1917
|
`;
|
|
1903
1918
|
}
|
|
@@ -1927,21 +1942,21 @@ let _ = class extends m {
|
|
|
1927
1942
|
return h`
|
|
1928
1943
|
<div class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
1929
1944
|
${this.thumbnails.map((n, t) => {
|
|
1930
|
-
const e = this.disabledIndexes.includes(t),
|
|
1945
|
+
const e = this.disabledIndexes.includes(t), o = this.activeIndex === t, s = n.type === "video";
|
|
1931
1946
|
return h`
|
|
1932
1947
|
<div class="thumb-wrapper">
|
|
1933
1948
|
<button
|
|
1934
1949
|
class="thumb"
|
|
1935
1950
|
data-index="${t}"
|
|
1936
1951
|
?disabled=${e}
|
|
1937
|
-
aria-selected=${
|
|
1952
|
+
aria-selected=${o}
|
|
1938
1953
|
tabindex="${this.focusedIndex === t ? 0 : -1}"
|
|
1939
1954
|
@click=${() => this.selectThumbnail(t)}
|
|
1940
1955
|
@keydown=${this.handleKeyDown}
|
|
1941
1956
|
>
|
|
1942
1957
|
<img src="${n.src}" />
|
|
1943
1958
|
</button>
|
|
1944
|
-
${
|
|
1959
|
+
${s ? h`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
1945
1960
|
</div>
|
|
1946
1961
|
`;
|
|
1947
1962
|
})}
|
|
@@ -2053,24 +2068,24 @@ _.styles = A`
|
|
|
2053
2068
|
width: 0;
|
|
2054
2069
|
}
|
|
2055
2070
|
`;
|
|
2056
|
-
|
|
2071
|
+
M([
|
|
2057
2072
|
a({ type: Array })
|
|
2058
2073
|
], _.prototype, "thumbnails", 2);
|
|
2059
|
-
|
|
2074
|
+
M([
|
|
2060
2075
|
a({ type: Number })
|
|
2061
2076
|
], _.prototype, "activeIndex", 2);
|
|
2062
|
-
|
|
2077
|
+
M([
|
|
2063
2078
|
a({ type: Array })
|
|
2064
2079
|
], _.prototype, "disabledIndexes", 2);
|
|
2065
|
-
|
|
2080
|
+
M([
|
|
2066
2081
|
a({ type: String })
|
|
2067
2082
|
], _.prototype, "maxWidth", 2);
|
|
2068
|
-
|
|
2083
|
+
M([
|
|
2069
2084
|
a({ type: Object })
|
|
2070
2085
|
], _.prototype, "swiperInstance", 2);
|
|
2071
|
-
|
|
2086
|
+
M([
|
|
2072
2087
|
Qt()
|
|
2073
2088
|
], _.prototype, "focusedIndex", 2);
|
|
2074
|
-
_ =
|
|
2089
|
+
_ = M([
|
|
2075
2090
|
z("thumbnail-navigation")
|
|
2076
2091
|
], _);
|