@florid-kit/components 0.9.9 → 0.9.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 +13 -1
- package/index.js +64 -57
- package/index.mjs +413 -371
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
const $t = globalThis, Mt = $t.ShadowRoot && ($t.ShadyCSS === void 0 || $t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Tt = Symbol(), Qt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let he = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, n) {
|
|
9
|
+
if (this._$cssResult$ = !0, n !== Tt) 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 (Mt && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const n = e !== void 0 && e.length === 1;
|
|
17
|
+
n && (t = Qt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Qt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -23,21 +23,21 @@ let he = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
const ye = (o) => new he(typeof o == "string" ? o : o + "", void 0, Tt), f = (o, ...t) => {
|
|
26
|
-
const e = o.length === 1 ? o[0] : t.reduce((
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(i) + o[
|
|
30
|
+
})(i) + o[r + 1], o[0]);
|
|
31
31
|
return new he(e, o, Tt);
|
|
32
32
|
}, me = (o, t) => {
|
|
33
33
|
if (Mt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const
|
|
36
|
-
i !== void 0 &&
|
|
35
|
+
const n = document.createElement("style"), i = $t.litNonce;
|
|
36
|
+
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
|
|
37
37
|
}
|
|
38
38
|
}, Yt = Mt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const n of t.cssRules) e += n.cssText;
|
|
41
41
|
return ye(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
@@ -84,19 +84,19 @@ let it = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = ee) {
|
|
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
|
|
87
|
+
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
88
|
i !== void 0 && we(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get: i, set:
|
|
91
|
+
static getPropertyDescriptor(t, e, n) {
|
|
92
|
+
const { get: i, set: r } = $e(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
96
96
|
} };
|
|
97
97
|
return { get: i, set(s) {
|
|
98
98
|
const h = i == null ? void 0 : i.call(this);
|
|
99
|
-
|
|
99
|
+
r == null || r.call(this, s), this.requestUpdate(t, h, n);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
@@ -110,17 +110,17 @@ let it = class extends HTMLElement {
|
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(lt("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(lt("properties"))) {
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const i of
|
|
113
|
+
const e = this.properties, n = [...Ce(e), ..._e(e)];
|
|
114
|
+
for (const i of n) this.createProperty(i, e[i]);
|
|
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 [n, i] of e) this.elementProperties.set(n, i);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const i = this._$Eu(e,
|
|
122
|
+
for (const [e, n] of this.elementProperties) {
|
|
123
|
+
const i = this._$Eu(e, n);
|
|
124
124
|
i !== void 0 && this._$Eh.set(i, e);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -128,14 +128,14 @@ let it = class extends HTMLElement {
|
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const i of
|
|
131
|
+
const n = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of n) e.unshift(Yt(i));
|
|
133
133
|
} else t !== void 0 && e.push(Yt(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const n = e.attribute;
|
|
138
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : 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 it = 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 n of e.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
@@ -164,8 +164,8 @@ let it = 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 n;
|
|
168
|
+
return (n = e.hostConnected) == null ? void 0 : n.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let it = 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 n;
|
|
177
|
+
return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, n) {
|
|
181
|
+
this._$AK(t, n);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
if (i !== void 0 &&
|
|
187
|
-
const s = (((
|
|
184
|
+
var r;
|
|
185
|
+
const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
|
|
186
|
+
if (i !== void 0 && n.reflect === !0) {
|
|
187
|
+
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ct).toAttribute(e, n.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var
|
|
193
|
-
const
|
|
192
|
+
var r, s;
|
|
193
|
+
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const h =
|
|
195
|
+
const h = n.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((r = h.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? h.converter : Ct;
|
|
196
196
|
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
199
|
+
requestUpdate(t, e, n) {
|
|
200
200
|
var i;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const r = this.constructor, s = this[t];
|
|
203
|
+
if (n ?? (n = r.getPropertyOptions(t)), !((n.hasChanged ?? jt)(s, e) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(r._$Eu(t, n)))) return;
|
|
204
|
+
this.C(t, e, n);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: n, reflect: i, wrapped: r }, s) {
|
|
209
|
+
n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), r !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), i === !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,25 +222,25 @@ let it = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var n;
|
|
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, s] of this._$Ep) this[r] = s;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
|
-
if (i.size > 0) for (const [
|
|
234
|
-
const { wrapped: h } = s, c = this[
|
|
235
|
-
h !== !0 || this._$AL.has(
|
|
233
|
+
if (i.size > 0) for (const [r, s] of i) {
|
|
234
|
+
const { wrapped: h } = s, c = this[r];
|
|
235
|
+
h !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, s, c);
|
|
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), (n = this._$EO) == null || n.forEach((i) => {
|
|
242
|
+
var r;
|
|
243
|
+
return (r = i.hostUpdate) == null ? void 0 : r.call(i);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
245
|
} catch (i) {
|
|
246
246
|
throw t = !1, this._$EM(), i;
|
|
@@ -251,9 +251,9 @@ let it = class extends HTMLElement {
|
|
|
251
251
|
}
|
|
252
252
|
_$AE(t) {
|
|
253
253
|
var e;
|
|
254
|
-
(e = this._$EO) == null || e.forEach((
|
|
254
|
+
(e = this._$EO) == null || e.forEach((n) => {
|
|
255
255
|
var i;
|
|
256
|
-
return (i =
|
|
256
|
+
return (i = n.hostUpdated) == null ? void 0 : i.call(n);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -283,67 +283,67 @@ it.elementStyles = [], it.shadowRootOptions = { mode: "open" }, it[lt("elementPr
|
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
285
|
const ct = globalThis, _t = ct.trustedTypes, oe = _t ? _t.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, de = "$lit$", K = `lit$${Math.random().toFixed(9).slice(2)}$`, pe = "?" + K, Ee = `<${pe}>`, tt = document, dt = () => tt.createComment(""), pt = (o) => o === null || typeof o != "object" && typeof o != "function", Rt = Array.isArray, Ae = (o) => Rt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", It = `[
|
|
286
|
-
\f\r]`, at = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
286
|
+
\f\r]`, at = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, J = RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, se = /"/g, ue = /^(?:script|style|textarea|title)$/i, Le = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Le(1), G = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), ae = /* @__PURE__ */ new WeakMap(), Q = tt.createTreeWalker(tt, 129);
|
|
288
288
|
function ve(o, t) {
|
|
289
289
|
if (!Rt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return oe !== void 0 ? oe.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const Ie = (o, t) => {
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i,
|
|
293
|
+
const e = o.length - 1, n = [];
|
|
294
|
+
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = at;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
297
|
let m, w, v = -1, R = 0;
|
|
298
|
-
for (; R < c.length && (s.lastIndex = R, w = s.exec(c), w !== null); ) R = s.lastIndex, s === at ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s =
|
|
299
|
-
const
|
|
300
|
-
|
|
298
|
+
for (; R < c.length && (s.lastIndex = R, w = s.exec(c), w !== null); ) R = s.lastIndex, s === at ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s = ne : w[2] !== void 0 ? (ue.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = J) : w[3] !== void 0 && (s = J) : s === J ? w[0] === ">" ? (s = i ?? at, v = -1) : w[1] === void 0 ? v = -2 : (v = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? J : w[3] === '"' ? se : re) : s === se || s === re ? s = J : s === ie || s === ne ? s = at : (s = J, i = void 0);
|
|
299
|
+
const Z = s === J && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === at ? c + Ee : v >= 0 ? (n.push(m), c.slice(0, v) + de + c.slice(v) + K + Z) : c + K + (v === -2 ? h : Z);
|
|
301
301
|
}
|
|
302
|
-
return [ve(o,
|
|
302
|
+
return [ve(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
304
304
|
class ut {
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, n) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
308
|
+
let r = 0, s = 0;
|
|
309
309
|
const h = t.length - 1, c = this.parts, [m, w] = Ie(t, e);
|
|
310
|
-
if (this.el = ut.createElement(m,
|
|
310
|
+
if (this.el = ut.createElement(m, n), Q.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const v = this.el.content.firstChild;
|
|
312
312
|
v.replaceWith(...v.childNodes);
|
|
313
313
|
}
|
|
314
314
|
for (; (i = Q.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const v of i.getAttributeNames()) if (v.endsWith(de)) {
|
|
317
|
-
const R = w[s++],
|
|
318
|
-
c.push({ type: 1, index:
|
|
319
|
-
} else v.startsWith(K) && (c.push({ type: 6, index:
|
|
317
|
+
const R = w[s++], Z = i.getAttribute(v).split(K), wt = /([.?@])?(.*)/.exec(R);
|
|
318
|
+
c.push({ type: 1, index: r, name: wt[2], strings: Z, ctor: wt[1] === "." ? Oe : wt[1] === "?" ? ze : wt[1] === "@" ? Be : St }), i.removeAttribute(v);
|
|
319
|
+
} else v.startsWith(K) && (c.push({ type: 6, index: r }), i.removeAttribute(v));
|
|
320
320
|
if (ue.test(i.tagName)) {
|
|
321
321
|
const v = i.textContent.split(K), R = v.length - 1;
|
|
322
322
|
if (R > 0) {
|
|
323
323
|
i.textContent = _t ? _t.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let Z = 0; Z < R; Z++) i.append(v[Z], dt()), Q.nextNode(), c.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(v[R], dt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === pe) c.push({ type: 2, index:
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === pe) c.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let v = -1;
|
|
331
|
-
for (; (v = i.data.indexOf(K, v + 1)) !== -1; ) c.push({ type: 7, index:
|
|
331
|
+
for (; (v = i.data.indexOf(K, v + 1)) !== -1; ) c.push({ type: 7, index: r }), v += K.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
r++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const n = tt.createElement("template");
|
|
338
|
+
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function nt(o, t, e = o, n) {
|
|
342
342
|
var s, h;
|
|
343
343
|
if (t === G) return t;
|
|
344
|
-
let i =
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
344
|
+
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
|
+
const r = pt(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== r && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (t = nt(o, i._$AS(o, t.values), i, n)), t;
|
|
347
347
|
}
|
|
348
348
|
class Pe {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,21 +356,21 @@ class Pe {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
359
|
+
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? tt).importNode(e, !0);
|
|
360
360
|
Q.currentNode = i;
|
|
361
|
-
let
|
|
361
|
+
let r = Q.nextNode(), s = 0, h = 0, c = n[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
363
|
if (s === c.index) {
|
|
364
364
|
let m;
|
|
365
|
-
c.type === 2 ? m = new mt(
|
|
365
|
+
c.type === 2 ? m = new mt(r, r.nextSibling, this, t) : c.type === 1 ? m = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (m = new De(r, this, t)), this._$AV.push(m), c = n[++h];
|
|
366
366
|
}
|
|
367
|
-
s !== (c == null ? void 0 : c.index) && (
|
|
367
|
+
s !== (c == null ? void 0 : c.index) && (r = Q.nextNode(), s++);
|
|
368
368
|
}
|
|
369
369
|
return Q.currentNode = tt, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
class mt {
|
|
@@ -378,8 +378,8 @@ class mt {
|
|
|
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, n, i) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -393,7 +393,7 @@ class mt {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = nt(this, t, e), pt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== G && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ae(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -405,9 +405,9 @@ class mt {
|
|
|
405
405
|
this._$AH !== d && pt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(tt.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$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = ut.createElement(ve(n.h, n.h[0]), this.options)), n);
|
|
410
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
412
|
const s = new Pe(i, this), h = s.u(this.options);
|
|
413
413
|
s.p(e), this.T(h), this._$AH = s;
|
|
@@ -420,13 +420,13 @@ class mt {
|
|
|
420
420
|
k(t) {
|
|
421
421
|
Rt(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const
|
|
425
|
-
i < e.length && (this._$AR(
|
|
423
|
+
let n, i = 0;
|
|
424
|
+
for (const r of t) i === e.length ? e.push(n = new mt(this.O(dt()), this.O(dt()), this, this.options)) : n = e[i], n._$AI(r), i++;
|
|
425
|
+
i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
428
|
+
var n;
|
|
429
|
+
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
430
|
const i = t.nextSibling;
|
|
431
431
|
t.remove(), t = i;
|
|
432
432
|
}
|
|
@@ -443,17 +443,17 @@ class St {
|
|
|
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 = i, this.options =
|
|
446
|
+
constructor(t, e, n, i, r) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
450
|
-
const
|
|
449
|
+
_$AI(t, e = this, n, i) {
|
|
450
|
+
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (
|
|
452
|
+
if (r === void 0) t = nt(this, t, e, 0), s = !pt(t) || t !== this._$AH && t !== G, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
455
|
let c, m;
|
|
456
|
-
for (t =
|
|
456
|
+
for (t = r[0], c = 0; c < r.length - 1; c++) m = nt(this, h[n + c], e, c), m === G && (m = this._$AH[c]), s || (s = !pt(m) || m !== this._$AH[c]), m === d ? t = d : t !== d && (t += (m ?? "") + r[c + 1]), this._$AH[c] = m;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -478,13 +478,13 @@ class ze extends St {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class Be extends St {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, n, i, r) {
|
|
482
|
+
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t =
|
|
486
|
-
const
|
|
487
|
-
i && this.element.removeEventListener(this.name, this,
|
|
485
|
+
if ((t = nt(this, t, e, 0) ?? d) === G) return;
|
|
486
|
+
const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== d && (n === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -492,24 +492,24 @@ class Be extends St {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class De {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, n) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
nt(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
const Pt = ct.litHtmlPolyfillSupport;
|
|
506
506
|
Pt == null || Pt(ut, mt), (ct.litHtmlVersions ?? (ct.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const He = (o, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let i = n._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
n._$litPart$ = i = new mt(t.insertBefore(dt(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -565,9 +565,9 @@ const y = (o) => (t, e) => {
|
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
567
|
const Me = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged: jt }, Te = (o = Me, t, e) => {
|
|
568
|
-
const { kind:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
568
|
+
const { kind: n, metadata: i } = e;
|
|
569
|
+
let r = globalThis.litPropertyMetadata.get(i);
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
|
|
571
571
|
const { name: s } = e;
|
|
572
572
|
return { set(h) {
|
|
573
573
|
const c = t.get.call(this);
|
|
@@ -576,19 +576,19 @@ const Me = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged
|
|
|
576
576
|
return h !== void 0 && this.C(s, void 0, o, h), h;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
579
|
+
if (n === "setter") {
|
|
580
580
|
const { name: s } = e;
|
|
581
581
|
return function(h) {
|
|
582
582
|
const c = this[s];
|
|
583
583
|
t.call(this, h), this.requestUpdate(s, c, o);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + n);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Te(o, t, e) : ((
|
|
590
|
-
const s = i.hasOwnProperty(
|
|
591
|
-
return i.constructor.createProperty(
|
|
589
|
+
return (t, e) => typeof e == "object" ? Te(o, t, e) : ((n, i, r) => {
|
|
590
|
+
const s = i.hasOwnProperty(r);
|
|
591
|
+
return i.constructor.createProperty(r, n), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -611,13 +611,13 @@ const je = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorat
|
|
|
611
611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
612
612
|
*/
|
|
613
613
|
function fe(o, t) {
|
|
614
|
-
return (e,
|
|
615
|
-
const
|
|
614
|
+
return (e, n, i) => {
|
|
615
|
+
const r = (s) => {
|
|
616
616
|
var h;
|
|
617
617
|
return ((h = s.renderRoot) == null ? void 0 : h.querySelector(o)) ?? null;
|
|
618
618
|
};
|
|
619
|
-
return je(e,
|
|
620
|
-
return
|
|
619
|
+
return je(e, n, { get() {
|
|
620
|
+
return r(this);
|
|
621
621
|
} });
|
|
622
622
|
};
|
|
623
623
|
}
|
|
@@ -636,7 +636,7 @@ f`
|
|
|
636
636
|
* SPDX-License-Identifier: Apache-2.0
|
|
637
637
|
*/
|
|
638
638
|
const Nt = Symbol("internals"), zt = Symbol("privateInternals");
|
|
639
|
-
function
|
|
639
|
+
function Ft(o) {
|
|
640
640
|
var t;
|
|
641
641
|
class e extends o {
|
|
642
642
|
get [(t = Nt, t)]() {
|
|
@@ -653,11 +653,11 @@ function Ut(o) {
|
|
|
653
653
|
function Re(o) {
|
|
654
654
|
o.addInitializer((t) => {
|
|
655
655
|
const e = t;
|
|
656
|
-
e.addEventListener("click", async (
|
|
657
|
-
const { type: i, [Nt]:
|
|
656
|
+
e.addEventListener("click", async (n) => {
|
|
657
|
+
const { type: i, [Nt]: r } = e, { form: s } = r;
|
|
658
658
|
if (!(!s || i === "button") && (await new Promise((h) => {
|
|
659
659
|
setTimeout(h);
|
|
660
|
-
}), !
|
|
660
|
+
}), !n.defaultPrevented)) {
|
|
661
661
|
if (i === "reset") {
|
|
662
662
|
s.reset();
|
|
663
663
|
return;
|
|
@@ -672,7 +672,7 @@ function Re(o) {
|
|
|
672
672
|
});
|
|
673
673
|
},
|
|
674
674
|
{ capture: !0, once: !0 }
|
|
675
|
-
),
|
|
675
|
+
), r.setFormValue(e.value), s.requestSubmit();
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
});
|
|
@@ -680,19 +680,19 @@ function Re(o) {
|
|
|
680
680
|
const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
681
681
|
<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"/>
|
|
682
682
|
</svg>
|
|
683
|
-
`,
|
|
683
|
+
`, Fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
684
684
|
<path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
|
|
685
685
|
</svg>
|
|
686
|
-
`,
|
|
686
|
+
`, Ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
687
687
|
<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"/>
|
|
688
688
|
</svg>
|
|
689
689
|
`, Ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
690
690
|
<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"/>
|
|
691
691
|
</svg>
|
|
692
|
-
`,
|
|
692
|
+
`, qe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
693
693
|
<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"/>
|
|
694
694
|
</svg>
|
|
695
|
-
`,
|
|
695
|
+
`, Ze = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
696
696
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
|
|
697
697
|
</svg>
|
|
698
698
|
`, Ke = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -736,10 +736,10 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
736
736
|
`, io = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
737
737
|
<path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
|
|
738
738
|
</svg>
|
|
739
|
-
`,
|
|
739
|
+
`, no = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
740
740
|
<path d="M12 17.4585L4 6.4585L20 6.4585L12 17.4585Z" fill="#3F2B2E"/>
|
|
741
741
|
</svg>
|
|
742
|
-
`,
|
|
742
|
+
`, ro = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
743
743
|
<path d="M12 6.4585L20 17.4585H4L12 6.4585Z" fill="#3F2B2E"/>
|
|
744
744
|
</svg>
|
|
745
745
|
`, so = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -774,13 +774,13 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
774
774
|
<path d="M1 4.5415L3 6.5415L9 0.541504" stroke="#FBF9F6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
775
775
|
</svg>`, N = {
|
|
776
776
|
wishlist: Ne,
|
|
777
|
-
playerv:
|
|
778
|
-
chevronRight:
|
|
777
|
+
playerv: Fe,
|
|
778
|
+
chevronRight: Ue,
|
|
779
779
|
chevronLeft: Ve,
|
|
780
780
|
icoPlus: Qe,
|
|
781
781
|
icoMinus: Ye,
|
|
782
|
-
"star-0":
|
|
783
|
-
"star-25":
|
|
782
|
+
"star-0": qe,
|
|
783
|
+
"star-25": Ze,
|
|
784
784
|
"star-50": Ke,
|
|
785
785
|
"star-75": We,
|
|
786
786
|
"star-100": Ge,
|
|
@@ -790,8 +790,8 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
790
790
|
arrowTop: eo,
|
|
791
791
|
cart: oo,
|
|
792
792
|
notifyme: io,
|
|
793
|
-
triangledown:
|
|
794
|
-
triangleup:
|
|
793
|
+
triangledown: no,
|
|
794
|
+
triangleup: ro,
|
|
795
795
|
checkstroke: so,
|
|
796
796
|
pause: ao,
|
|
797
797
|
mapDualArrow: lo,
|
|
@@ -810,15 +810,15 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
810
810
|
* Copyright 2017 Google LLC
|
|
811
811
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
812
812
|
*/
|
|
813
|
-
const
|
|
814
|
-
let
|
|
813
|
+
const Ut = { ATTRIBUTE: 1, CHILD: 2 }, Vt = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
814
|
+
let qt = class {
|
|
815
815
|
constructor(t) {
|
|
816
816
|
}
|
|
817
817
|
get _$AU() {
|
|
818
818
|
return this._$AM._$AU;
|
|
819
819
|
}
|
|
820
|
-
_$AT(t, e,
|
|
821
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
820
|
+
_$AT(t, e, n) {
|
|
821
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
|
822
822
|
}
|
|
823
823
|
_$AS(t, e) {
|
|
824
824
|
return this.update(t, e);
|
|
@@ -832,9 +832,9 @@ let Zt = class {
|
|
|
832
832
|
* Copyright 2017 Google LLC
|
|
833
833
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
834
834
|
*/
|
|
835
|
-
class Bt extends
|
|
835
|
+
class Bt extends qt {
|
|
836
836
|
constructor(t) {
|
|
837
|
-
if (super(t), this.it = d, t.type !==
|
|
837
|
+
if (super(t), this.it = d, t.type !== Ut.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
838
838
|
}
|
|
839
839
|
render(t) {
|
|
840
840
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
@@ -856,12 +856,12 @@ class Dt extends Bt {
|
|
|
856
856
|
}
|
|
857
857
|
Dt.directiveName = "unsafeSVG", Dt.resultType = 2;
|
|
858
858
|
const C = Vt(Dt);
|
|
859
|
-
var mo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, x = (o, t, e,
|
|
860
|
-
for (var i =
|
|
861
|
-
(s = o[
|
|
862
|
-
return
|
|
859
|
+
var mo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, x = (o, t, e, n) => {
|
|
860
|
+
for (var i = n > 1 ? void 0 : n ? xo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
861
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
862
|
+
return n && i && mo(t, e, i), i;
|
|
863
863
|
};
|
|
864
|
-
const wo =
|
|
864
|
+
const wo = Ft(u);
|
|
865
865
|
let b = class extends wo {
|
|
866
866
|
constructor() {
|
|
867
867
|
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1, this.withbadge = !1;
|
|
@@ -1181,12 +1181,12 @@ x([
|
|
|
1181
1181
|
b = x([
|
|
1182
1182
|
y("o-button")
|
|
1183
1183
|
], b);
|
|
1184
|
-
var $o = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Et = (o, t, e,
|
|
1185
|
-
for (var i =
|
|
1186
|
-
(s = o[
|
|
1187
|
-
return
|
|
1184
|
+
var $o = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Et = (o, t, e, n) => {
|
|
1185
|
+
for (var i = n > 1 ? void 0 : n ? Co(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1186
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1187
|
+
return n && i && $o(t, e, i), i;
|
|
1188
1188
|
};
|
|
1189
|
-
let
|
|
1189
|
+
let rt = class extends u {
|
|
1190
1190
|
constructor() {
|
|
1191
1191
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1192
1192
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1227,7 +1227,7 @@ let nt = class extends u {
|
|
|
1227
1227
|
this.label = o, this.requestUpdate();
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
|
-
|
|
1230
|
+
rt.styles = f`
|
|
1231
1231
|
:host {
|
|
1232
1232
|
display: inline-flex;
|
|
1233
1233
|
justify-content: center;
|
|
@@ -1295,26 +1295,26 @@ nt.styles = f`
|
|
|
1295
1295
|
`;
|
|
1296
1296
|
Et([
|
|
1297
1297
|
a({ type: String, reflect: !0 })
|
|
1298
|
-
],
|
|
1298
|
+
], rt.prototype, "status", 2);
|
|
1299
1299
|
Et([
|
|
1300
1300
|
a({ type: String, reflect: !0 })
|
|
1301
|
-
],
|
|
1301
|
+
], rt.prototype, "ariaDescribedBy", 2);
|
|
1302
1302
|
Et([
|
|
1303
1303
|
a({ type: String, reflect: !0 })
|
|
1304
|
-
],
|
|
1305
|
-
|
|
1304
|
+
], rt.prototype, "label", 2);
|
|
1305
|
+
rt = Et([
|
|
1306
1306
|
y("o-wishlist-button")
|
|
1307
|
-
],
|
|
1307
|
+
], rt);
|
|
1308
1308
|
/**
|
|
1309
1309
|
* @license
|
|
1310
1310
|
* Copyright 2018 Google LLC
|
|
1311
1311
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1312
1312
|
*/
|
|
1313
1313
|
const k = (o) => o ?? d;
|
|
1314
|
-
var _o = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, H = (o, t, e,
|
|
1315
|
-
for (var i =
|
|
1316
|
-
(s = o[
|
|
1317
|
-
return
|
|
1314
|
+
var _o = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
1315
|
+
for (var i = n > 1 ? void 0 : n ? ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1316
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1317
|
+
return n && i && _o(t, e, i), i;
|
|
1318
1318
|
};
|
|
1319
1319
|
let S = class extends u {
|
|
1320
1320
|
constructor() {
|
|
@@ -1324,7 +1324,7 @@ let S = class extends u {
|
|
|
1324
1324
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1325
1325
|
}
|
|
1326
1326
|
render() {
|
|
1327
|
-
const o = N[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'),
|
|
1327
|
+
const o = N[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1328
1328
|
return l`
|
|
1329
1329
|
${this.type === "span" ? l`
|
|
1330
1330
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
@@ -1338,7 +1338,7 @@ let S = class extends u {
|
|
|
1338
1338
|
?disabled="${this.disabled}"
|
|
1339
1339
|
>
|
|
1340
1340
|
${C(e)}
|
|
1341
|
-
${
|
|
1341
|
+
${n}
|
|
1342
1342
|
</button>
|
|
1343
1343
|
`}
|
|
1344
1344
|
`;
|
|
@@ -1586,12 +1586,12 @@ H([
|
|
|
1586
1586
|
S = H([
|
|
1587
1587
|
y("o-icon-button")
|
|
1588
1588
|
], S);
|
|
1589
|
-
var So = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, ot = (o, t, e,
|
|
1590
|
-
for (var i =
|
|
1591
|
-
(s = o[
|
|
1592
|
-
return
|
|
1589
|
+
var So = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
|
|
1590
|
+
for (var i = n > 1 ? void 0 : n ? Eo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1591
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1592
|
+
return n && i && So(t, e, i), i;
|
|
1593
1593
|
};
|
|
1594
|
-
let
|
|
1594
|
+
let F = class extends u {
|
|
1595
1595
|
constructor() {
|
|
1596
1596
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1597
1597
|
}
|
|
@@ -1629,7 +1629,7 @@ let U = class extends u {
|
|
|
1629
1629
|
`;
|
|
1630
1630
|
}
|
|
1631
1631
|
};
|
|
1632
|
-
|
|
1632
|
+
F.styles = f`
|
|
1633
1633
|
:host([template="standard"]) a {
|
|
1634
1634
|
color: var(--color-content-action-secondary);
|
|
1635
1635
|
font-size: var(--font-size-200);
|
|
@@ -1719,29 +1719,29 @@ U.styles = f`
|
|
|
1719
1719
|
`;
|
|
1720
1720
|
ot([
|
|
1721
1721
|
a({ type: String })
|
|
1722
|
-
],
|
|
1722
|
+
], F.prototype, "href", 2);
|
|
1723
1723
|
ot([
|
|
1724
1724
|
a({ type: String })
|
|
1725
|
-
],
|
|
1725
|
+
], F.prototype, "target", 2);
|
|
1726
1726
|
ot([
|
|
1727
1727
|
a({ type: String, reflect: !0 })
|
|
1728
|
-
],
|
|
1728
|
+
], F.prototype, "template", 2);
|
|
1729
1729
|
ot([
|
|
1730
1730
|
a({ type: Boolean, reflect: !0 })
|
|
1731
|
-
],
|
|
1731
|
+
], F.prototype, "inverse", 2);
|
|
1732
1732
|
ot([
|
|
1733
1733
|
a({ type: Boolean, reflect: !0 })
|
|
1734
|
-
],
|
|
1734
|
+
], F.prototype, "endIcon", 2);
|
|
1735
1735
|
ot([
|
|
1736
1736
|
a({ type: Boolean, reflect: !0 })
|
|
1737
|
-
],
|
|
1738
|
-
|
|
1737
|
+
], F.prototype, "reverseEndIcon", 2);
|
|
1738
|
+
F = ot([
|
|
1739
1739
|
y("o-link")
|
|
1740
|
-
],
|
|
1741
|
-
var Ao = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, At = (o, t, e,
|
|
1742
|
-
for (var i =
|
|
1743
|
-
(s = o[
|
|
1744
|
-
return
|
|
1740
|
+
], F);
|
|
1741
|
+
var Ao = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, At = (o, t, e, n) => {
|
|
1742
|
+
for (var i = n > 1 ? void 0 : n ? Lo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1743
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1744
|
+
return n && i && Ao(t, e, i), i;
|
|
1745
1745
|
};
|
|
1746
1746
|
let st = class extends u {
|
|
1747
1747
|
constructor() {
|
|
@@ -1751,8 +1751,8 @@ let st = class extends u {
|
|
|
1751
1751
|
const o = [];
|
|
1752
1752
|
for (let t = 0; t < 5; t++) {
|
|
1753
1753
|
const e = this.rating - t;
|
|
1754
|
-
let
|
|
1755
|
-
e >= 1 ?
|
|
1754
|
+
let n;
|
|
1755
|
+
e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, o.push(`star-${n}`);
|
|
1756
1756
|
}
|
|
1757
1757
|
return o;
|
|
1758
1758
|
}
|
|
@@ -1828,10 +1828,10 @@ const Io = (o) => o.strings === void 0;
|
|
|
1828
1828
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1829
1829
|
*/
|
|
1830
1830
|
const ht = (o, t) => {
|
|
1831
|
-
var
|
|
1831
|
+
var n;
|
|
1832
1832
|
const e = o._$AN;
|
|
1833
1833
|
if (e === void 0) return !1;
|
|
1834
|
-
for (const i of e) (
|
|
1834
|
+
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), ht(i, t);
|
|
1835
1835
|
return !0;
|
|
1836
1836
|
}, kt = (o) => {
|
|
1837
1837
|
let t, e;
|
|
@@ -1851,24 +1851,24 @@ function Po(o) {
|
|
|
1851
1851
|
this._$AN !== void 0 ? (kt(this), this._$AM = o, be(this)) : this._$AM = o;
|
|
1852
1852
|
}
|
|
1853
1853
|
function Oo(o, t = !1, e = 0) {
|
|
1854
|
-
const
|
|
1855
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(
|
|
1856
|
-
else
|
|
1854
|
+
const n = this._$AH, i = this._$AN;
|
|
1855
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) ht(n[r], !1), kt(n[r]);
|
|
1856
|
+
else n != null && (ht(n, !1), kt(n));
|
|
1857
1857
|
else ht(this, o);
|
|
1858
1858
|
}
|
|
1859
1859
|
const zo = (o) => {
|
|
1860
|
-
o.type ==
|
|
1860
|
+
o.type == Ut.CHILD && (o._$AP ?? (o._$AP = Oo), o._$AQ ?? (o._$AQ = Po));
|
|
1861
1861
|
};
|
|
1862
|
-
class Bo extends
|
|
1862
|
+
class Bo extends qt {
|
|
1863
1863
|
constructor() {
|
|
1864
1864
|
super(...arguments), this._$AN = void 0;
|
|
1865
1865
|
}
|
|
1866
|
-
_$AT(t, e,
|
|
1867
|
-
super._$AT(t, e,
|
|
1866
|
+
_$AT(t, e, n) {
|
|
1867
|
+
super._$AT(t, e, n), be(this), this.isConnected = t._$AU;
|
|
1868
1868
|
}
|
|
1869
1869
|
_$AO(t, e = !0) {
|
|
1870
|
-
var
|
|
1871
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
|
1870
|
+
var n, i;
|
|
1871
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (ht(this, t), kt(this));
|
|
1872
1872
|
}
|
|
1873
1873
|
setValue(t) {
|
|
1874
1874
|
if (Io(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1890,23 +1890,23 @@ class Do extends Bo {
|
|
|
1890
1890
|
return d;
|
|
1891
1891
|
}
|
|
1892
1892
|
update(t, [e]) {
|
|
1893
|
-
var
|
|
1894
|
-
this.element !== t.element && (this.element = t.element), this.host = ((
|
|
1893
|
+
var n;
|
|
1894
|
+
this.element !== t.element && (this.element = t.element), this.host = ((n = t.options) === null || n === void 0 ? void 0 : n.host) || this.element, this.apply(e), this.groom(e), this.prevData = { ...e };
|
|
1895
1895
|
}
|
|
1896
1896
|
apply(t) {
|
|
1897
1897
|
if (!t)
|
|
1898
1898
|
return;
|
|
1899
|
-
const { prevData: e, element:
|
|
1899
|
+
const { prevData: e, element: n } = this;
|
|
1900
1900
|
for (const i in t) {
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1901
|
+
const r = t[i];
|
|
1902
|
+
r !== e[i] && (n[i] = r);
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
groom(t) {
|
|
1906
|
-
const { prevData: e, element:
|
|
1906
|
+
const { prevData: e, element: n } = this;
|
|
1907
1907
|
if (e)
|
|
1908
1908
|
for (const i in e)
|
|
1909
|
-
(!t || !(i in t) &&
|
|
1909
|
+
(!t || !(i in t) && n[i] === e[i]) && (n[i] = void 0);
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
1912
|
class Ho extends Do {
|
|
@@ -1916,23 +1916,23 @@ class Ho extends Do {
|
|
|
1916
1916
|
apply(t) {
|
|
1917
1917
|
if (t)
|
|
1918
1918
|
for (const e in t) {
|
|
1919
|
-
const
|
|
1920
|
-
|
|
1919
|
+
const n = t[e];
|
|
1920
|
+
n !== this.eventData[e] && this.applyEvent(e, n);
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
1923
|
applyEvent(t, e) {
|
|
1924
|
-
const { prevData:
|
|
1925
|
-
this.eventData[t] = e,
|
|
1924
|
+
const { prevData: n, element: i } = this;
|
|
1925
|
+
this.eventData[t] = e, n[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
|
|
1926
1926
|
}
|
|
1927
1927
|
groom(t) {
|
|
1928
|
-
const { prevData: e, element:
|
|
1928
|
+
const { prevData: e, element: n } = this;
|
|
1929
1929
|
if (e)
|
|
1930
1930
|
for (const i in e)
|
|
1931
|
-
(!t || !(i in t) &&
|
|
1931
|
+
(!t || !(i in t) && n[i] === e[i]) && this.groomEvent(i, e[i]);
|
|
1932
1932
|
}
|
|
1933
1933
|
groomEvent(t, e) {
|
|
1934
|
-
const { element:
|
|
1935
|
-
delete this.eventData[t],
|
|
1934
|
+
const { element: n } = this;
|
|
1935
|
+
delete this.eventData[t], n.removeEventListener(t, this, e);
|
|
1936
1936
|
}
|
|
1937
1937
|
handleEvent(t) {
|
|
1938
1938
|
const e = this.eventData[t.type];
|
|
@@ -1940,16 +1940,16 @@ class Ho extends Do {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
disconnected() {
|
|
1942
1942
|
const { eventData: t, element: e } = this;
|
|
1943
|
-
for (const
|
|
1944
|
-
const i =
|
|
1945
|
-
e.removeEventListener(i, this,
|
|
1943
|
+
for (const n in t) {
|
|
1944
|
+
const i = n.slice(1), r = t[n];
|
|
1945
|
+
e.removeEventListener(i, this, r);
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
1948
|
reconnected() {
|
|
1949
1949
|
const { eventData: t, element: e } = this;
|
|
1950
|
-
for (const
|
|
1951
|
-
const i =
|
|
1952
|
-
e.addEventListener(i, this,
|
|
1950
|
+
for (const n in t) {
|
|
1951
|
+
const i = n.slice(1), r = t[n];
|
|
1952
|
+
e.addEventListener(i, this, r);
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
@@ -1957,62 +1957,70 @@ class Mo extends Ho {
|
|
|
1957
1957
|
apply(t) {
|
|
1958
1958
|
if (!t)
|
|
1959
1959
|
return;
|
|
1960
|
-
const { prevData: e, element:
|
|
1960
|
+
const { prevData: e, element: n } = this;
|
|
1961
1961
|
for (const i in t) {
|
|
1962
|
-
const
|
|
1963
|
-
if (
|
|
1962
|
+
const r = t[i];
|
|
1963
|
+
if (r === e[i])
|
|
1964
1964
|
continue;
|
|
1965
1965
|
const s = i.slice(1);
|
|
1966
1966
|
switch (i[0]) {
|
|
1967
1967
|
case "@":
|
|
1968
|
-
this.eventData[s] =
|
|
1968
|
+
this.eventData[s] = r, this.applyEvent(s, r);
|
|
1969
1969
|
break;
|
|
1970
1970
|
case ".":
|
|
1971
|
-
|
|
1971
|
+
n[s] = r;
|
|
1972
1972
|
break;
|
|
1973
1973
|
case "?":
|
|
1974
|
-
|
|
1974
|
+
r ? n.setAttribute(s, "") : n.removeAttribute(s);
|
|
1975
1975
|
break;
|
|
1976
1976
|
default:
|
|
1977
|
-
|
|
1977
|
+
r != null ? n.setAttribute(i, String(r)) : n.removeAttribute(i);
|
|
1978
1978
|
break;
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
1982
|
groom(t) {
|
|
1983
|
-
const { prevData: e, element:
|
|
1983
|
+
const { prevData: e, element: n } = this;
|
|
1984
1984
|
if (e)
|
|
1985
1985
|
for (const i in e) {
|
|
1986
|
-
const
|
|
1987
|
-
if (!t || !(i in t) && r
|
|
1986
|
+
const r = i.slice(1);
|
|
1987
|
+
if (!t || !(i in t) && n[r] === e[i])
|
|
1988
1988
|
switch (i[0]) {
|
|
1989
1989
|
case "@":
|
|
1990
|
-
this.groomEvent(
|
|
1990
|
+
this.groomEvent(r, e[i]);
|
|
1991
1991
|
break;
|
|
1992
1992
|
case ".":
|
|
1993
|
-
r
|
|
1993
|
+
n[r] = void 0;
|
|
1994
1994
|
break;
|
|
1995
1995
|
case "?":
|
|
1996
|
-
|
|
1996
|
+
n.removeAttribute(r);
|
|
1997
1997
|
break;
|
|
1998
1998
|
default:
|
|
1999
|
-
|
|
1999
|
+
n.removeAttribute(i);
|
|
2000
2000
|
break;
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
const le = Vt(Mo);
|
|
2006
|
-
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, g = (o, t, e,
|
|
2007
|
-
for (var i =
|
|
2008
|
-
(s = o[
|
|
2009
|
-
return
|
|
2006
|
+
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, g = (o, t, e, n) => {
|
|
2007
|
+
for (var i = n > 1 ? void 0 : n ? jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2008
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2009
|
+
return n && i && To(t, e, i), i;
|
|
2010
2010
|
};
|
|
2011
2011
|
let p = class extends u {
|
|
2012
2012
|
constructor() {
|
|
2013
|
-
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this.
|
|
2014
|
-
|
|
2015
|
-
|
|
2013
|
+
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this._onOpenDetail = async (o) => {
|
|
2014
|
+
var e, n;
|
|
2015
|
+
const t = ((e = o.detail) == null ? void 0 : e.origin) ?? document.activeElement;
|
|
2016
|
+
if (this._detailOriginEl = t, this._detailOriginClass = (t == null ? void 0 : t.className) ?? "", this.showDetail = !0, this.showHeaderStartIcon = !0, await this.updateComplete, this._detailOriginClass) {
|
|
2017
|
+
const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".detail-view");
|
|
2018
|
+
i && i.setAttribute("fromelement", this._detailOriginClass);
|
|
2019
|
+
}
|
|
2020
|
+
setTimeout(async () => {
|
|
2021
|
+
await this.focusDetailReturnBtn();
|
|
2022
|
+
}, 800);
|
|
2023
|
+
}, this._detailOriginEl = null, this._detailOriginClass = "", this.handleKeyDown = (o) => {
|
|
2016
2024
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
2017
2025
|
}, this.handleClosePanel = (o) => {
|
|
2018
2026
|
if (o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " ")
|
|
@@ -2021,18 +2029,23 @@ let p = class extends u {
|
|
|
2021
2029
|
const t = o.currentTarget, e = (t == null ? void 0 : t.getAttribute("data-role")) === "back";
|
|
2022
2030
|
if (this.showDetail && e) {
|
|
2023
2031
|
this.isHidingDetail = !0;
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2032
|
+
const n = this.renderRoot.querySelector(".content"), i = async () => {
|
|
2033
|
+
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1, await this.updateComplete, this._restoreFocusToOrigin();
|
|
2034
|
+
};
|
|
2035
|
+
if (n) {
|
|
2026
2036
|
this.showHeaderStartIcon = !1;
|
|
2027
|
-
const
|
|
2028
|
-
this.showDetail = !1, this.isHidingDetail = !1,
|
|
2037
|
+
const r = () => {
|
|
2038
|
+
this.showDetail = !1, this.isHidingDetail = !1, n.removeEventListener("animationend", r), i();
|
|
2029
2039
|
};
|
|
2030
|
-
|
|
2040
|
+
n.addEventListener("animationend", r);
|
|
2031
2041
|
} else
|
|
2032
2042
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1;
|
|
2033
2043
|
return;
|
|
2034
2044
|
}
|
|
2035
2045
|
this.closePanel();
|
|
2046
|
+
}, this._onDetailSlotChange = (o) => {
|
|
2047
|
+
const n = o.target.assignedElements({ flatten: !0 }).flatMap((i) => Array.from(i.querySelectorAll("img")))[0];
|
|
2048
|
+
n == null || n.setAttribute("tabindex", "0");
|
|
2036
2049
|
};
|
|
2037
2050
|
}
|
|
2038
2051
|
connectedCallback() {
|
|
@@ -2043,6 +2056,28 @@ let p = class extends u {
|
|
|
2043
2056
|
disconnectedCallback() {
|
|
2044
2057
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
2045
2058
|
}
|
|
2059
|
+
async focusDetailReturnBtn() {
|
|
2060
|
+
var n, i, r, s;
|
|
2061
|
+
await this.updateComplete;
|
|
2062
|
+
const o = this.getDeepActiveElement(document);
|
|
2063
|
+
if (o && o !== document.body)
|
|
2064
|
+
try {
|
|
2065
|
+
o.blur();
|
|
2066
|
+
} catch {
|
|
2067
|
+
}
|
|
2068
|
+
await new Promise(requestAnimationFrame);
|
|
2069
|
+
const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".detail-view .return-btn");
|
|
2070
|
+
if (!t) return;
|
|
2071
|
+
t.updateComplete && await t.updateComplete, (s = (r = ((i = t.shadowRoot) == null ? void 0 : i.querySelector("button")) ?? t) == null ? void 0 : r.focus) == null || s.call(r, { preventScroll: !0 });
|
|
2072
|
+
}
|
|
2073
|
+
_restoreFocusToOrigin() {
|
|
2074
|
+
var t, e;
|
|
2075
|
+
const o = this._detailOriginEl;
|
|
2076
|
+
!o || !document.contains(o) || ((e = (t = document.activeElement) == null ? void 0 : t.blur) == null || e.call(t), requestAnimationFrame(() => {
|
|
2077
|
+
var i;
|
|
2078
|
+
o.classList.add("a--tabfocus"), (((i = o.shadowRoot) == null ? void 0 : i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])')) ?? null ?? o).focus({ preventScroll: !0 });
|
|
2079
|
+
}));
|
|
2080
|
+
}
|
|
2046
2081
|
getDeepActiveElement(o = this.shadowRoot) {
|
|
2047
2082
|
let t = o.activeElement;
|
|
2048
2083
|
for (; t && t.shadowRoot && t.shadowRoot.activeElement; )
|
|
@@ -2054,10 +2089,10 @@ let p = class extends u {
|
|
|
2054
2089
|
const t = this.getDeepActiveElement(), e = this.renderRoot.querySelector(".close-btn");
|
|
2055
2090
|
if (!o.shiftKey && e && e.contains(t)) {
|
|
2056
2091
|
o.preventDefault();
|
|
2057
|
-
const
|
|
2092
|
+
const n = this.renderRoot.querySelector(
|
|
2058
2093
|
".o-whats-inside--content p"
|
|
2059
2094
|
);
|
|
2060
|
-
|
|
2095
|
+
n == null || n.focus();
|
|
2061
2096
|
}
|
|
2062
2097
|
}
|
|
2063
2098
|
getFocusableElements() {
|
|
@@ -2068,16 +2103,16 @@ let p = class extends u {
|
|
|
2068
2103
|
}
|
|
2069
2104
|
function e(i) {
|
|
2070
2105
|
var s;
|
|
2071
|
-
const
|
|
2106
|
+
const r = [i.matches(p.focusablesSelector) ? i : []];
|
|
2072
2107
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
2073
2108
|
const h = Array.from(
|
|
2074
2109
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
2075
2110
|
).filter(t).flatMap(e), c = Array.from(
|
|
2076
2111
|
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
2077
2112
|
).filter(t).flatMap(e);
|
|
2078
|
-
|
|
2113
|
+
r.push(...h, ...c);
|
|
2079
2114
|
}
|
|
2080
|
-
return
|
|
2115
|
+
return r.flat();
|
|
2081
2116
|
}
|
|
2082
2117
|
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
2083
2118
|
}
|
|
@@ -2085,21 +2120,21 @@ let p = class extends u {
|
|
|
2085
2120
|
this.removeAttribute("hidden"), this.getBoundingClientRect(), this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open");
|
|
2086
2121
|
const o = this.renderRoot.querySelector(".panel");
|
|
2087
2122
|
o && o.setAttribute("aria-modal", "true"), this.updateComplete.then(() => {
|
|
2088
|
-
var t, e,
|
|
2123
|
+
var t, e, n, i;
|
|
2089
2124
|
if (this.showHeader) {
|
|
2090
|
-
const
|
|
2091
|
-
s && ((
|
|
2125
|
+
const r = ((t = this.shadowRoot) == null ? void 0 : t.querySelector(".panel .close-btn")) || null, s = ((e = r == null ? void 0 : r.shadowRoot) == null ? void 0 : e.querySelector("button")) || null;
|
|
2126
|
+
s && ((n = s.focus) == null || n.call(s));
|
|
2092
2127
|
} else {
|
|
2093
|
-
const
|
|
2094
|
-
(i =
|
|
2128
|
+
const r = this.getFocusableElements()[0];
|
|
2129
|
+
(i = r == null ? void 0 : r.focus) == null || i.call(r);
|
|
2095
2130
|
}
|
|
2096
2131
|
}), this.dispatchEvent(
|
|
2097
2132
|
new CustomEvent("open", { bubbles: !0, composed: !0 })
|
|
2098
2133
|
);
|
|
2099
2134
|
}
|
|
2100
2135
|
closePanel() {
|
|
2101
|
-
var t, e,
|
|
2102
|
-
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((t = this.previousFocusedElement) == null ? void 0 : t.tagName.toLowerCase()) === "o-button" ? (i = (
|
|
2136
|
+
var t, e, n, i, r;
|
|
2137
|
+
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((t = this.previousFocusedElement) == null ? void 0 : t.tagName.toLowerCase()) === "o-button" ? (i = (n = (e = this.previousFocusedElement.shadowRoot) == null ? void 0 : e.querySelector(".button")) == null ? void 0 : n.focus) == null || i.call(n) : (r = this.previousFocusedElement) == null || r.focus();
|
|
2103
2138
|
const o = this.renderRoot.querySelector(".panel");
|
|
2104
2139
|
o && o.removeAttribute("aria-modal"), this.dispatchEvent(
|
|
2105
2140
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
@@ -2138,7 +2173,7 @@ let p = class extends u {
|
|
|
2138
2173
|
}
|
|
2139
2174
|
render() {
|
|
2140
2175
|
const o = this.showHeader ? l`
|
|
2141
|
-
<div class="header">
|
|
2176
|
+
<div tabindex="-1" class="header">
|
|
2142
2177
|
${this.showHeaderStartIcon ? l`
|
|
2143
2178
|
<o-icon-button
|
|
2144
2179
|
icon="arrowLeft"
|
|
@@ -2149,6 +2184,8 @@ let p = class extends u {
|
|
|
2149
2184
|
@click=${this.handleClosePanel}
|
|
2150
2185
|
@keydown=${this.handleClosePanel}
|
|
2151
2186
|
aria-label="${this.closeButtonLabel}"
|
|
2187
|
+
srlabel="${this.closeButtonLabel}"
|
|
2188
|
+
showsrlabel="true"
|
|
2152
2189
|
></o-icon-button>
|
|
2153
2190
|
` : null}
|
|
2154
2191
|
<p role="heading" aria-level="1" id="panel-title" class="${this.headerTitleClassName}">
|
|
@@ -2187,7 +2224,7 @@ let p = class extends u {
|
|
|
2187
2224
|
<div class="detail-view">
|
|
2188
2225
|
${o}
|
|
2189
2226
|
<div class="detail-content">
|
|
2190
|
-
<slot name="detail"></slot>
|
|
2227
|
+
<slot name="detail" @slotchange=${this._onDetailSlotChange}></slot>
|
|
2191
2228
|
</div>
|
|
2192
2229
|
</div>
|
|
2193
2230
|
` : l`<slot></slot>`}
|
|
@@ -2321,6 +2358,11 @@ p.styles = f`
|
|
|
2321
2358
|
.return-btn {
|
|
2322
2359
|
margin-right: 8px;
|
|
2323
2360
|
}
|
|
2361
|
+
|
|
2362
|
+
.return-btn.a--tabfocus {
|
|
2363
|
+
border: 2px solid #000;
|
|
2364
|
+
box-sizing: border-box;
|
|
2365
|
+
}
|
|
2324
2366
|
}
|
|
2325
2367
|
|
|
2326
2368
|
.panel:focus-visible,
|
|
@@ -2475,10 +2517,10 @@ g([
|
|
|
2475
2517
|
p = g([
|
|
2476
2518
|
y("o-side-panel")
|
|
2477
2519
|
], p);
|
|
2478
|
-
var Ro = Object.defineProperty, No = Object.getOwnPropertyDescriptor, X = (o, t, e,
|
|
2479
|
-
for (var i =
|
|
2480
|
-
(s = o[
|
|
2481
|
-
return
|
|
2520
|
+
var Ro = Object.defineProperty, No = Object.getOwnPropertyDescriptor, X = (o, t, e, n) => {
|
|
2521
|
+
for (var i = n > 1 ? void 0 : n ? No(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2522
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2523
|
+
return n && i && Ro(t, e, i), i;
|
|
2482
2524
|
};
|
|
2483
2525
|
let D = class extends u {
|
|
2484
2526
|
constructor() {
|
|
@@ -2533,8 +2575,8 @@ let D = class extends u {
|
|
|
2533
2575
|
}), t.classList.add("a--tabfocus"), this.requestUpdate();
|
|
2534
2576
|
}
|
|
2535
2577
|
onFocusOut(o) {
|
|
2536
|
-
const t = o.currentTarget, e = Number(t.dataset.index),
|
|
2537
|
-
(!
|
|
2578
|
+
const t = o.currentTarget, e = Number(t.dataset.index), n = o.relatedTarget;
|
|
2579
|
+
(!n || this.shadowRoot && !this.shadowRoot.contains(n)) && (this.renderRoot.querySelectorAll(".thumb").forEach((s) => s.classList.remove("a--tabfocus")), e === this.lastIndex ? this.dispatchEvent(new CustomEvent("thumb-exit", {
|
|
2538
2580
|
detail: { from: "last", direction: "unspecified" },
|
|
2539
2581
|
bubbles: !0,
|
|
2540
2582
|
composed: !0
|
|
@@ -2548,20 +2590,20 @@ let D = class extends u {
|
|
|
2548
2590
|
return l`
|
|
2549
2591
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2550
2592
|
${this.thumbnails.map((o, t) => {
|
|
2551
|
-
const e = this.disabledIndexes.includes(t),
|
|
2593
|
+
const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video", r = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2552
2594
|
return l`
|
|
2553
2595
|
<li class="thumb-wrapper">
|
|
2554
2596
|
<button
|
|
2555
2597
|
class="thumb"
|
|
2556
2598
|
data-index="${t}"
|
|
2557
2599
|
?disabled=${e}
|
|
2558
|
-
aria-current=${
|
|
2600
|
+
aria-current=${n ? "true" : "false"}
|
|
2559
2601
|
@click=${() => this.selectThumbnail(t)}
|
|
2560
2602
|
@keydown=${this.handleKeyDown}
|
|
2561
2603
|
@focus=${(s) => this.onFocus(s)}
|
|
2562
2604
|
@focusout=${(s) => this.onFocusOut(s)}
|
|
2563
2605
|
>
|
|
2564
|
-
<img alt="${
|
|
2606
|
+
<img alt="${r}" src="${o.src}" />
|
|
2565
2607
|
</button>
|
|
2566
2608
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2567
2609
|
</li>
|
|
@@ -2701,10 +2743,10 @@ X([
|
|
|
2701
2743
|
D = X([
|
|
2702
2744
|
y("thumbnail-navigation")
|
|
2703
2745
|
], D);
|
|
2704
|
-
var
|
|
2705
|
-
for (var i =
|
|
2706
|
-
(s = o[
|
|
2707
|
-
return
|
|
2746
|
+
var Fo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Zt = (o, t, e, n) => {
|
|
2747
|
+
for (var i = n > 1 ? void 0 : n ? Uo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2748
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2749
|
+
return n && i && Fo(t, e, i), i;
|
|
2708
2750
|
};
|
|
2709
2751
|
let vt = class extends u {
|
|
2710
2752
|
constructor() {
|
|
@@ -2774,19 +2816,19 @@ vt.styles = f`
|
|
|
2774
2816
|
}
|
|
2775
2817
|
|
|
2776
2818
|
`;
|
|
2777
|
-
|
|
2819
|
+
Zt([
|
|
2778
2820
|
a({ type: String, reflect: !0 })
|
|
2779
2821
|
], vt.prototype, "type", 2);
|
|
2780
|
-
|
|
2822
|
+
Zt([
|
|
2781
2823
|
a({ type: String, reflect: !0 })
|
|
2782
2824
|
], vt.prototype, "bgstyle", 2);
|
|
2783
|
-
vt =
|
|
2825
|
+
vt = Zt([
|
|
2784
2826
|
y("o-tag")
|
|
2785
2827
|
], vt);
|
|
2786
|
-
var Vo = Object.defineProperty,
|
|
2787
|
-
for (var i =
|
|
2788
|
-
(s = o[
|
|
2789
|
-
return
|
|
2828
|
+
var Vo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, Kt = (o, t, e, n) => {
|
|
2829
|
+
for (var i = n > 1 ? void 0 : n ? qo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2830
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2831
|
+
return n && i && Vo(t, e, i), i;
|
|
2790
2832
|
};
|
|
2791
2833
|
let ft = class extends u {
|
|
2792
2834
|
constructor() {
|
|
@@ -2903,10 +2945,10 @@ Kt([
|
|
|
2903
2945
|
ft = Kt([
|
|
2904
2946
|
y("o-tooltip")
|
|
2905
2947
|
], ft);
|
|
2906
|
-
var
|
|
2907
|
-
for (var i =
|
|
2908
|
-
(s = o[
|
|
2909
|
-
return
|
|
2948
|
+
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, U = (o, t, e, n) => {
|
|
2949
|
+
for (var i = n > 1 ? void 0 : n ? Ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2950
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2951
|
+
return n && i && Zo(t, e, i), i;
|
|
2910
2952
|
};
|
|
2911
2953
|
let z = class extends u {
|
|
2912
2954
|
constructor() {
|
|
@@ -3007,13 +3049,13 @@ let z = class extends u {
|
|
|
3007
3049
|
style=${`width: ${this.width};`}
|
|
3008
3050
|
>
|
|
3009
3051
|
${this.options.map(
|
|
3010
|
-
(e,
|
|
3052
|
+
(e, n) => l`
|
|
3011
3053
|
<li
|
|
3012
|
-
id="option-${
|
|
3054
|
+
id="option-${n}"
|
|
3013
3055
|
role="option"
|
|
3014
3056
|
aria-selected="${e.value === this.value}"
|
|
3015
|
-
tabindex="${
|
|
3016
|
-
class="${
|
|
3057
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
3058
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3017
3059
|
@click=${() => this.selectOption(e)}
|
|
3018
3060
|
>
|
|
3019
3061
|
${e.url ? l`
|
|
@@ -3171,36 +3213,36 @@ z.styles = f`
|
|
|
3171
3213
|
display: none;
|
|
3172
3214
|
}
|
|
3173
3215
|
`;
|
|
3174
|
-
|
|
3216
|
+
U([
|
|
3175
3217
|
a({ type: Array, reflect: !0 })
|
|
3176
3218
|
], z.prototype, "options", 2);
|
|
3177
|
-
|
|
3219
|
+
U([
|
|
3178
3220
|
a({ type: String, reflect: !0 })
|
|
3179
3221
|
], z.prototype, "value", 2);
|
|
3180
|
-
|
|
3222
|
+
U([
|
|
3181
3223
|
a({ type: String, reflect: !0 })
|
|
3182
3224
|
], z.prototype, "name", 2);
|
|
3183
|
-
|
|
3225
|
+
U([
|
|
3184
3226
|
a({ type: Boolean, reflect: !0 })
|
|
3185
3227
|
], z.prototype, "disabled", 2);
|
|
3186
|
-
|
|
3228
|
+
U([
|
|
3187
3229
|
a({ type: String, reflect: !0 })
|
|
3188
3230
|
], z.prototype, "width", 2);
|
|
3189
|
-
|
|
3231
|
+
U([
|
|
3190
3232
|
et()
|
|
3191
3233
|
], z.prototype, "open", 2);
|
|
3192
|
-
|
|
3234
|
+
U([
|
|
3193
3235
|
et()
|
|
3194
3236
|
], z.prototype, "activeIndex", 2);
|
|
3195
|
-
|
|
3237
|
+
U([
|
|
3196
3238
|
et()
|
|
3197
3239
|
], z.prototype, "menuWidth", 2);
|
|
3198
|
-
z =
|
|
3240
|
+
z = U([
|
|
3199
3241
|
y("o-dropdown")
|
|
3200
3242
|
], z);
|
|
3201
|
-
var Wo = Object.getOwnPropertyDescriptor, Go = (o, t, e,
|
|
3202
|
-
for (var i =
|
|
3203
|
-
(s = o[
|
|
3243
|
+
var Wo = Object.getOwnPropertyDescriptor, Go = (o, t, e, n) => {
|
|
3244
|
+
for (var i = n > 1 ? void 0 : n ? Wo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3245
|
+
(s = o[r]) && (i = s(i) || i);
|
|
3204
3246
|
return i;
|
|
3205
3247
|
};
|
|
3206
3248
|
let Ht = class extends u {
|
|
@@ -3263,10 +3305,10 @@ Ht.styles = f`
|
|
|
3263
3305
|
Ht = Go([
|
|
3264
3306
|
y("o-dots")
|
|
3265
3307
|
], Ht);
|
|
3266
|
-
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, M = (o, t, e,
|
|
3267
|
-
for (var i =
|
|
3268
|
-
(s = o[
|
|
3269
|
-
return
|
|
3308
|
+
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
|
|
3309
|
+
for (var i = n > 1 ? void 0 : n ? Jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3310
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3311
|
+
return n && i && Xo(t, e, i), i;
|
|
3270
3312
|
};
|
|
3271
3313
|
let E = class extends u {
|
|
3272
3314
|
constructor() {
|
|
@@ -3377,14 +3419,14 @@ let E = class extends u {
|
|
|
3377
3419
|
style=${`width: ${this.width};`}
|
|
3378
3420
|
>
|
|
3379
3421
|
${this.options.map(
|
|
3380
|
-
(e,
|
|
3422
|
+
(e, n) => l`
|
|
3381
3423
|
<li
|
|
3382
|
-
id="option-${
|
|
3424
|
+
id="option-${n}"
|
|
3383
3425
|
role="option"
|
|
3384
3426
|
aria-selected="${e.value === this.value}"
|
|
3385
3427
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3386
|
-
tabindex="${
|
|
3387
|
-
class="${
|
|
3428
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
3429
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3388
3430
|
@click=${() => this.selectOption(e)}
|
|
3389
3431
|
>
|
|
3390
3432
|
<a href="${k(e.url)}">
|
|
@@ -3616,36 +3658,36 @@ E = M([
|
|
|
3616
3658
|
* Copyright 2018 Google LLC
|
|
3617
3659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3618
3660
|
*/
|
|
3619
|
-
const ge = "important", Qo = " !" + ge, Yo = Vt(class extends
|
|
3661
|
+
const ge = "important", Qo = " !" + ge, Yo = Vt(class extends qt {
|
|
3620
3662
|
constructor(o) {
|
|
3621
3663
|
var t;
|
|
3622
|
-
if (super(o), o.type !==
|
|
3664
|
+
if (super(o), o.type !== Ut.ATTRIBUTE || o.name !== "style" || ((t = o.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
3623
3665
|
}
|
|
3624
3666
|
render(o) {
|
|
3625
3667
|
return Object.keys(o).reduce((t, e) => {
|
|
3626
|
-
const
|
|
3627
|
-
return
|
|
3668
|
+
const n = o[e];
|
|
3669
|
+
return n == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${n};`;
|
|
3628
3670
|
}, "");
|
|
3629
3671
|
}
|
|
3630
3672
|
update(o, [t]) {
|
|
3631
3673
|
const { style: e } = o.element;
|
|
3632
3674
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3633
|
-
for (const
|
|
3634
|
-
for (const
|
|
3635
|
-
const i = t[
|
|
3675
|
+
for (const n of this.ft) t[n] == null && (this.ft.delete(n), n.includes("-") ? e.removeProperty(n) : e[n] = null);
|
|
3676
|
+
for (const n in t) {
|
|
3677
|
+
const i = t[n];
|
|
3636
3678
|
if (i != null) {
|
|
3637
|
-
this.ft.add(
|
|
3638
|
-
const
|
|
3639
|
-
|
|
3679
|
+
this.ft.add(n);
|
|
3680
|
+
const r = typeof i == "string" && i.endsWith(Qo);
|
|
3681
|
+
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? ge : "") : e[n] = i;
|
|
3640
3682
|
}
|
|
3641
3683
|
}
|
|
3642
3684
|
return G;
|
|
3643
3685
|
}
|
|
3644
3686
|
});
|
|
3645
|
-
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Wt = (o, t, e,
|
|
3646
|
-
for (var i =
|
|
3647
|
-
(s = o[
|
|
3648
|
-
return
|
|
3687
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Wt = (o, t, e, n) => {
|
|
3688
|
+
for (var i = n > 1 ? void 0 : n ? ei(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3689
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3690
|
+
return n && i && ti(t, e, i), i;
|
|
3649
3691
|
};
|
|
3650
3692
|
let bt = class extends u {
|
|
3651
3693
|
constructor() {
|
|
@@ -3756,13 +3798,13 @@ Wt([
|
|
|
3756
3798
|
bt = Wt([
|
|
3757
3799
|
y("o-reassurance")
|
|
3758
3800
|
], bt);
|
|
3759
|
-
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, V = (o, t, e,
|
|
3760
|
-
for (var i =
|
|
3761
|
-
(s = o[
|
|
3762
|
-
return
|
|
3801
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, V = (o, t, e, n) => {
|
|
3802
|
+
for (var i = n > 1 ? void 0 : n ? ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3803
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3804
|
+
return n && i && oi(t, e, i), i;
|
|
3763
3805
|
};
|
|
3764
|
-
const
|
|
3765
|
-
let A = class extends
|
|
3806
|
+
const ni = Ft(u);
|
|
3807
|
+
let A = class extends ni {
|
|
3766
3808
|
constructor() {
|
|
3767
3809
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3768
3810
|
}
|
|
@@ -3902,10 +3944,10 @@ V([
|
|
|
3902
3944
|
A = V([
|
|
3903
3945
|
y("o-chip")
|
|
3904
3946
|
], A);
|
|
3905
|
-
var
|
|
3906
|
-
for (var i =
|
|
3907
|
-
(s = o[
|
|
3908
|
-
return
|
|
3947
|
+
var ri = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Gt = (o, t, e, n) => {
|
|
3948
|
+
for (var i = n > 1 ? void 0 : n ? si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3949
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3950
|
+
return n && i && ri(t, e, i), i;
|
|
3909
3951
|
};
|
|
3910
3952
|
let gt = class extends u {
|
|
3911
3953
|
constructor() {
|
|
@@ -3940,12 +3982,12 @@ Gt([
|
|
|
3940
3982
|
gt = Gt([
|
|
3941
3983
|
y("o-chipset")
|
|
3942
3984
|
], gt);
|
|
3943
|
-
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, T = (o, t, e,
|
|
3944
|
-
for (var i =
|
|
3945
|
-
(s = o[
|
|
3946
|
-
return
|
|
3985
|
+
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
3986
|
+
for (var i = n > 1 ? void 0 : n ? li(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3987
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3988
|
+
return n && i && ai(t, e, i), i;
|
|
3947
3989
|
};
|
|
3948
|
-
const ci =
|
|
3990
|
+
const ci = Ft(u);
|
|
3949
3991
|
let L = class extends ci {
|
|
3950
3992
|
constructor() {
|
|
3951
3993
|
super(...arguments), this.name = "", this.value = "", this.type = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
@@ -4152,9 +4194,9 @@ T([
|
|
|
4152
4194
|
L = T([
|
|
4153
4195
|
y("o-filter-chip")
|
|
4154
4196
|
], L);
|
|
4155
|
-
var hi = Object.defineProperty,
|
|
4156
|
-
for (var i = void 0,
|
|
4157
|
-
(s = o[
|
|
4197
|
+
var hi = Object.defineProperty, q = (o, t, e, n) => {
|
|
4198
|
+
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
4199
|
+
(s = o[r]) && (i = s(t, e, i) || i);
|
|
4158
4200
|
return i && hi(t, e, i), i;
|
|
4159
4201
|
};
|
|
4160
4202
|
const Jt = class Jt extends u {
|
|
@@ -4299,38 +4341,38 @@ Jt.styles = f`
|
|
|
4299
4341
|
}
|
|
4300
4342
|
`;
|
|
4301
4343
|
let I = Jt;
|
|
4302
|
-
|
|
4344
|
+
q([
|
|
4303
4345
|
a({ type: String })
|
|
4304
4346
|
], I.prototype, "type");
|
|
4305
|
-
|
|
4347
|
+
q([
|
|
4306
4348
|
a({ type: String })
|
|
4307
4349
|
], I.prototype, "titleProduct");
|
|
4308
|
-
|
|
4350
|
+
q([
|
|
4309
4351
|
a({ type: String })
|
|
4310
4352
|
], I.prototype, "volume");
|
|
4311
|
-
|
|
4353
|
+
q([
|
|
4312
4354
|
a({ type: String })
|
|
4313
4355
|
], I.prototype, "perLiter");
|
|
4314
|
-
|
|
4356
|
+
q([
|
|
4315
4357
|
a({ type: String })
|
|
4316
4358
|
], I.prototype, "mainPrice");
|
|
4317
|
-
|
|
4359
|
+
q([
|
|
4318
4360
|
a({ type: String })
|
|
4319
4361
|
], I.prototype, "imageUrl");
|
|
4320
|
-
|
|
4362
|
+
q([
|
|
4321
4363
|
a({ type: String })
|
|
4322
4364
|
], I.prototype, "altImage");
|
|
4323
|
-
|
|
4365
|
+
q([
|
|
4324
4366
|
a({ type: Boolean })
|
|
4325
4367
|
], I.prototype, "fullwidth");
|
|
4326
|
-
|
|
4368
|
+
q([
|
|
4327
4369
|
a({ type: Function })
|
|
4328
4370
|
], I.prototype, "onClickTile");
|
|
4329
4371
|
customElements.define("mini-tile", I);
|
|
4330
|
-
var di = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Xt = (o, t, e,
|
|
4331
|
-
for (var i =
|
|
4332
|
-
(s = o[
|
|
4333
|
-
return
|
|
4372
|
+
var di = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Xt = (o, t, e, n) => {
|
|
4373
|
+
for (var i = n > 1 ? void 0 : n ? pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4374
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4375
|
+
return n && i && di(t, e, i), i;
|
|
4334
4376
|
};
|
|
4335
4377
|
let yt = class extends u {
|
|
4336
4378
|
constructor() {
|
|
@@ -4388,10 +4430,10 @@ Xt([
|
|
|
4388
4430
|
yt = Xt([
|
|
4389
4431
|
y("o-badge")
|
|
4390
4432
|
], yt);
|
|
4391
|
-
var ui = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, O = (o, t, e,
|
|
4392
|
-
for (var i =
|
|
4393
|
-
(s = o[
|
|
4394
|
-
return
|
|
4433
|
+
var ui = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, O = (o, t, e, n) => {
|
|
4434
|
+
for (var i = n > 1 ? void 0 : n ? vi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4435
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4436
|
+
return n && i && ui(t, e, i), i;
|
|
4395
4437
|
};
|
|
4396
4438
|
let $ = class extends u {
|
|
4397
4439
|
constructor() {
|
|
@@ -4425,11 +4467,11 @@ let $ = class extends u {
|
|
|
4425
4467
|
}, 600);
|
|
4426
4468
|
}
|
|
4427
4469
|
firstUpdated() {
|
|
4428
|
-
var
|
|
4470
|
+
var n, i;
|
|
4429
4471
|
var o = this;
|
|
4430
|
-
const t = (
|
|
4472
|
+
const t = (n = this.renderRoot) == null ? void 0 : n.querySelector("o-icon-button"), e = (i = this.renderRoot) == null ? void 0 : i.querySelector(".o-toast-text");
|
|
4431
4473
|
if (e != null) {
|
|
4432
|
-
const
|
|
4474
|
+
const r = window.getComputedStyle(e), s = parseInt(r.getPropertyValue("line-height").replace("px", "")), h = parseInt(r.getPropertyValue("height").replace("px", ""));
|
|
4433
4475
|
!isNaN(s) && !isNaN(h) && h > s && (this.multiline = !0);
|
|
4434
4476
|
}
|
|
4435
4477
|
t != null && t.addEventListener("click", function() {
|
|
@@ -4571,10 +4613,10 @@ O([
|
|
|
4571
4613
|
$ = O([
|
|
4572
4614
|
y("o-toast")
|
|
4573
4615
|
], $);
|
|
4574
|
-
var fi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, B = (o, t, e,
|
|
4575
|
-
for (var i =
|
|
4576
|
-
(s = o[
|
|
4577
|
-
return
|
|
4616
|
+
var fi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, B = (o, t, e, n) => {
|
|
4617
|
+
for (var i = n > 1 ? void 0 : n ? bi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4618
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4619
|
+
return n && i && fi(t, e, i), i;
|
|
4578
4620
|
};
|
|
4579
4621
|
let gi = 0, _ = class extends u {
|
|
4580
4622
|
constructor() {
|
|
@@ -4603,8 +4645,8 @@ let gi = 0, _ = class extends u {
|
|
|
4603
4645
|
name=${this.name}
|
|
4604
4646
|
value=${this.value}
|
|
4605
4647
|
@change=${(e) => {
|
|
4606
|
-
const
|
|
4607
|
-
this.checked =
|
|
4648
|
+
const n = e.target;
|
|
4649
|
+
this.checked = n.checked, this.indeterminate = n.indeterminate, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
|
|
4608
4650
|
}}
|
|
4609
4651
|
/>
|
|
4610
4652
|
|
|
@@ -4746,10 +4788,10 @@ B([
|
|
|
4746
4788
|
_ = B([
|
|
4747
4789
|
y("o-checkbox")
|
|
4748
4790
|
], _);
|
|
4749
|
-
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, j = (o, t, e,
|
|
4750
|
-
for (var i =
|
|
4751
|
-
(s = o[
|
|
4752
|
-
return
|
|
4791
|
+
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
|
|
4792
|
+
for (var i = n > 1 ? void 0 : n ? mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4793
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4794
|
+
return n && i && yi(t, e, i), i;
|
|
4753
4795
|
};
|
|
4754
4796
|
let xi = 0, P = class extends u {
|
|
4755
4797
|
constructor() {
|
|
@@ -4764,8 +4806,8 @@ let xi = 0, P = class extends u {
|
|
|
4764
4806
|
updated(o) {
|
|
4765
4807
|
if (o.has("checked") && this.checked) {
|
|
4766
4808
|
const t = this.parentElement;
|
|
4767
|
-
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((
|
|
4768
|
-
|
|
4809
|
+
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((n) => {
|
|
4810
|
+
n !== this && (n.checked = !1);
|
|
4769
4811
|
});
|
|
4770
4812
|
}
|
|
4771
4813
|
this.syncInput();
|