@florid-kit/components 0.8.41 → 0.8.44
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 +3 -0
- package/index.js +79 -79
- package/index.mjs +370 -353
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const ft = globalThis, Pt = ft.ShadowRoot && (ft.ShadyCSS === void 0 || ft.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, It = Symbol(), Vt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let oe = class {
|
|
8
8
|
constructor(t, e, n) {
|
|
9
9
|
if (this._$cssResult$ = !0, n !== It) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -22,7 +22,7 @@ let oe = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const ce = (o) => new oe(typeof o == "string" ? o : o + "", void 0, It),
|
|
25
|
+
const ce = (o) => new oe(typeof o == "string" ? o : o + "", void 0, It), y = (o, ...t) => {
|
|
26
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;
|
|
@@ -32,7 +32,7 @@ const ce = (o) => new oe(typeof o == "string" ? o : o + "", void 0, It), b = (o,
|
|
|
32
32
|
}, he = (o, t) => {
|
|
33
33
|
if (Pt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const n = document.createElement("style"), i =
|
|
35
|
+
const n = document.createElement("style"), i = ft.litNonce;
|
|
36
36
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
|
|
37
37
|
}
|
|
38
38
|
}, Zt = Pt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -45,7 +45,7 @@ const ce = (o) => new oe(typeof o == "string" ? o : o + "", void 0, It), b = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: de, defineProperty: pe, getOwnPropertyDescriptor: ue, getOwnPropertyNames: ve, getOwnPropertySymbols: fe, getPrototypeOf: be } = Object, U = globalThis, qt = U.trustedTypes, ge = qt ? qt.emptyScript : "", $t = U.reactiveElementPolyfillSupport, ot = (o, t) => o,
|
|
48
|
+
const { is: de, defineProperty: pe, getOwnPropertyDescriptor: ue, getOwnPropertyNames: ve, getOwnPropertySymbols: fe, getPrototypeOf: be } = Object, U = globalThis, qt = U.trustedTypes, ge = qt ? qt.emptyScript : "", $t = U.reactiveElementPolyfillSupport, ot = (o, t) => o, bt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? ge : null;
|
|
@@ -73,7 +73,7 @@ const { is: de, defineProperty: pe, getOwnPropertyDescriptor: ue, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} }, Ot = (o, t) => !de(o, t), Wt = { attribute: !0, type: String, converter:
|
|
76
|
+
} }, Ot = (o, t) => !de(o, t), Wt = { attribute: !0, type: String, converter: bt, reflect: !1, useDefault: !1, hasChanged: Ot };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), U.litPropertyMetadata ?? (U.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let J = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -184,7 +184,7 @@ let J = class extends HTMLElement {
|
|
|
184
184
|
var r;
|
|
185
185
|
const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
|
|
186
186
|
if (i !== void 0 && n.reflect === !0) {
|
|
187
|
-
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter :
|
|
187
|
+
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : bt).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
|
}
|
|
@@ -192,7 +192,7 @@ let J = class extends HTMLElement {
|
|
|
192
192
|
var r, s;
|
|
193
193
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
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 :
|
|
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 : bt;
|
|
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
|
}
|
|
@@ -282,9 +282,9 @@ J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[ot("elementPrope
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const it = globalThis,
|
|
285
|
+
const it = globalThis, gt = it.trustedTypes, Kt = gt ? gt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, ie = "$lit$", j = `lit$${Math.random().toFixed(9).slice(2)}$`, ne = "?" + j, ye = `<${ne}>`, W = document, rt = () => W.createComment(""), st = (o) => o === null || typeof o != "object" && typeof o != "function", Bt = Array.isArray, me = (o) => Bt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", _t = `[
|
|
286
286
|
\f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Xt = />/g, V = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Jt = /'/g, Qt = /"/g, re = /^(?:script|style|textarea|title)$/i, xe = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = xe(1),
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Jt = /'/g, Qt = /"/g, re = /^(?:script|style|textarea|title)$/i, xe = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = xe(1), F = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Yt = /* @__PURE__ */ new WeakMap(), Z = W.createTreeWalker(W, 129);
|
|
288
288
|
function se(o, t) {
|
|
289
289
|
if (!Bt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return Kt !== void 0 ? Kt.createHTML(t) : t;
|
|
@@ -294,10 +294,10 @@ const we = (o, t) => {
|
|
|
294
294
|
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = et;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
|
-
let
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
r += s === et ? c + ye : p >= 0 ? (n.push(
|
|
297
|
+
let v, g, p = -1, $ = 0;
|
|
298
|
+
for (; $ < c.length && (s.lastIndex = $, g = s.exec(c), g !== null); ) $ = s.lastIndex, s === et ? g[1] === "!--" ? s = Gt : g[1] !== void 0 ? s = Xt : g[2] !== void 0 ? (re.test(g[2]) && (i = RegExp("</" + g[2], "g")), s = V) : g[3] !== void 0 && (s = V) : s === V ? g[0] === ">" ? (s = i ?? et, p = -1) : g[1] === void 0 ? p = -2 : (p = s.lastIndex - g[2].length, v = g[1], s = g[3] === void 0 ? V : g[3] === '"' ? Qt : Jt) : s === Qt || s === Jt ? s = V : s === Gt || s === Xt ? s = et : (s = V, i = void 0);
|
|
299
|
+
const E = s === V && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === et ? c + ye : p >= 0 ? (n.push(v), c.slice(0, p) + ie + c.slice(p) + j + E) : c + j + (p === -2 ? h : E);
|
|
301
301
|
}
|
|
302
302
|
return [se(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -306,23 +306,23 @@ class at {
|
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, s = 0;
|
|
309
|
-
const h = t.length - 1, c = this.parts, [
|
|
310
|
-
if (this.el = at.createElement(
|
|
309
|
+
const h = t.length - 1, c = this.parts, [v, g] = we(t, e);
|
|
310
|
+
if (this.el = at.createElement(v, n), Z.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
314
|
for (; (i = Z.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(ie)) {
|
|
317
|
-
const
|
|
318
|
-
c.push({ type: 1, index: r, name:
|
|
317
|
+
const $ = g[s++], E = i.getAttribute(p).split(j), vt = /([.?@])?(.*)/.exec($);
|
|
318
|
+
c.push({ type: 1, index: r, name: vt[2], strings: E, ctor: vt[1] === "." ? _e : vt[1] === "?" ? Ce : vt[1] === "@" ? ke : mt }), i.removeAttribute(p);
|
|
319
319
|
} else p.startsWith(j) && (c.push({ type: 6, index: r }), i.removeAttribute(p));
|
|
320
320
|
if (re.test(i.tagName)) {
|
|
321
|
-
const p = i.textContent.split(j),
|
|
322
|
-
if (
|
|
323
|
-
i.textContent =
|
|
324
|
-
for (let
|
|
325
|
-
i.append(p[
|
|
321
|
+
const p = i.textContent.split(j), $ = p.length - 1;
|
|
322
|
+
if ($ > 0) {
|
|
323
|
+
i.textContent = gt ? gt.emptyScript : "";
|
|
324
|
+
for (let E = 0; E < $; E++) i.append(p[E], rt()), Z.nextNode(), c.push({ type: 2, index: ++r });
|
|
325
|
+
i.append(p[$], rt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (i.nodeType === 8) if (i.data === ne) c.push({ type: 2, index: r });
|
|
@@ -340,7 +340,7 @@ class at {
|
|
|
340
340
|
}
|
|
341
341
|
function Q(o, t, e = o, n) {
|
|
342
342
|
var s, h;
|
|
343
|
-
if (t ===
|
|
343
|
+
if (t === F) return t;
|
|
344
344
|
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
345
|
const r = st(t) ? void 0 : t._$litDirective$;
|
|
346
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 = Q(o, i._$AS(o, t.values), i, n)), t;
|
|
@@ -361,8 +361,8 @@ class $e {
|
|
|
361
361
|
let r = Z.nextNode(), s = 0, h = 0, c = n[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
363
|
if (s === c.index) {
|
|
364
|
-
let
|
|
365
|
-
c.type === 2 ?
|
|
364
|
+
let v;
|
|
365
|
+
c.type === 2 ? v = new pt(r, r.nextSibling, this, t) : c.type === 1 ? v = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (v = new Ae(r, this, t)), this._$AV.push(v), c = n[++h];
|
|
366
366
|
}
|
|
367
367
|
s !== (c == null ? void 0 : c.index) && (r = Z.nextNode(), s++);
|
|
368
368
|
}
|
|
@@ -393,7 +393,7 @@ class pt {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = Q(this, t, e), st(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !==
|
|
396
|
+
t = Q(this, t, e), st(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== F && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : me(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -436,7 +436,7 @@ class pt {
|
|
|
436
436
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class mt {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
@@ -449,11 +449,11 @@ class yt {
|
|
|
449
449
|
_$AI(t, e = this, n, i) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (r === void 0) t = Q(this, t, e, 0), s = !st(t) || t !== this._$AH && t !==
|
|
452
|
+
if (r === void 0) t = Q(this, t, e, 0), s = !st(t) || t !== this._$AH && t !== F, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
|
-
let c,
|
|
456
|
-
for (t = r[0], c = 0; c < r.length - 1; c++)
|
|
455
|
+
let c, v;
|
|
456
|
+
for (t = r[0], c = 0; c < r.length - 1; c++) v = Q(this, h[n + c], e, c), v === F && (v = this._$AH[c]), s || (s = !st(v) || v !== this._$AH[c]), v === d ? t = d : t !== d && (t += (v ?? "") + r[c + 1]), this._$AH[c] = v;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -461,7 +461,7 @@ class yt {
|
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class _e extends
|
|
464
|
+
class _e extends mt {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class _e extends yt {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class Ce extends
|
|
472
|
+
class Ce extends mt {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,12 +477,12 @@ class Ce extends yt {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class ke extends
|
|
480
|
+
class ke extends mt {
|
|
481
481
|
constructor(t, e, n, i, r) {
|
|
482
482
|
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t = Q(this, t, e, 0) ?? d) ===
|
|
485
|
+
if ((t = Q(this, t, e, 0) ?? d) === F) return;
|
|
486
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
487
|
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
@@ -519,7 +519,7 @@ const Ee = (o, t, e) => {
|
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
521
|
const q = globalThis;
|
|
522
|
-
let
|
|
522
|
+
let f = class extends J {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -541,13 +541,13 @@ let u = class extends J {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return F;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var ee;
|
|
548
|
-
|
|
548
|
+
f._$litElement$ = !0, f.finalized = !0, (ee = q.litElementHydrateSupport) == null || ee.call(q, { LitElement: f });
|
|
549
549
|
const kt = q.litElementPolyfillSupport;
|
|
550
|
-
kt == null || kt({ LitElement:
|
|
550
|
+
kt == null || kt({ LitElement: f });
|
|
551
551
|
(q.litElementVersions ?? (q.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
@@ -564,7 +564,7 @@ const x = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const Se = { attribute: !0, type: String, converter:
|
|
567
|
+
const Se = { attribute: !0, type: String, converter: bt, reflect: !1, hasChanged: Ot }, Le = (o = Se, t, e) => {
|
|
568
568
|
const { kind: n, metadata: i } = e;
|
|
569
569
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
570
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") {
|
|
@@ -599,11 +599,11 @@ function a(o) {
|
|
|
599
599
|
function K(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const ut = y`
|
|
603
603
|
outline: 1px dashed var(--color-border-primary);
|
|
604
604
|
outline-offset: 2px;
|
|
605
605
|
`;
|
|
606
|
-
|
|
606
|
+
y`
|
|
607
607
|
:host * {
|
|
608
608
|
box-sizing: border-box;
|
|
609
609
|
}
|
|
@@ -673,10 +673,10 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
673
673
|
`, He = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
674
674
|
<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"/>
|
|
675
675
|
</svg>
|
|
676
|
-
`,
|
|
676
|
+
`, Me = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
677
677
|
<path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
|
|
678
678
|
</svg>
|
|
679
|
-
`,
|
|
679
|
+
`, Te = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
680
680
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
|
|
681
681
|
</svg>
|
|
682
682
|
`, je = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -686,10 +686,10 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
686
686
|
<path d="M2 2L14 14" stroke="#3F2B2E"/>
|
|
687
687
|
<path d="M14 2L2 14" stroke="#3F2B2E"/>
|
|
688
688
|
</svg>
|
|
689
|
-
`,
|
|
689
|
+
`, Fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
690
690
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
691
691
|
</svg>
|
|
692
|
-
`,
|
|
692
|
+
`, Ne = `<?xml version="1.0" encoding="utf-8"?>
|
|
693
693
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
694
694
|
<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"
|
|
695
695
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -699,7 +699,7 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
699
699
|
<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
|
|
700
700
|
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"/>
|
|
701
701
|
</svg>
|
|
702
|
-
`,
|
|
702
|
+
`, Re = `<?xml version="1.0" encoding="utf-8"?>
|
|
703
703
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
704
704
|
<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"
|
|
705
705
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -747,15 +747,15 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
747
747
|
playerv: Oe,
|
|
748
748
|
chevronRight: Be,
|
|
749
749
|
chevronLeft: ze,
|
|
750
|
-
icoPlus:
|
|
751
|
-
icoMinus:
|
|
750
|
+
icoPlus: Ne,
|
|
751
|
+
icoMinus: Re,
|
|
752
752
|
"star-0": De,
|
|
753
753
|
"star-25": He,
|
|
754
|
-
"star-50":
|
|
755
|
-
"star-75":
|
|
754
|
+
"star-50": Me,
|
|
755
|
+
"star-75": Te,
|
|
756
756
|
"star-100": je,
|
|
757
757
|
cross: Ue,
|
|
758
|
-
search:
|
|
758
|
+
search: Fe,
|
|
759
759
|
arrowLeft: Ve,
|
|
760
760
|
arrowTop: Ze,
|
|
761
761
|
cart: qe,
|
|
@@ -774,8 +774,8 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
774
774
|
* Copyright 2017 Google LLC
|
|
775
775
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
776
776
|
*/
|
|
777
|
-
const Ht = { ATTRIBUTE: 1, CHILD: 2 },
|
|
778
|
-
let
|
|
777
|
+
const Ht = { ATTRIBUTE: 1, CHILD: 2 }, Mt = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
778
|
+
let Tt = class {
|
|
779
779
|
constructor(t) {
|
|
780
780
|
}
|
|
781
781
|
get _$AU() {
|
|
@@ -796,13 +796,13 @@ let Mt = class {
|
|
|
796
796
|
* Copyright 2017 Google LLC
|
|
797
797
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
798
798
|
*/
|
|
799
|
-
class Et extends
|
|
799
|
+
class Et extends Tt {
|
|
800
800
|
constructor(t) {
|
|
801
801
|
if (super(t), this.it = d, t.type !== Ht.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
802
802
|
}
|
|
803
803
|
render(t) {
|
|
804
804
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
805
|
-
if (t ===
|
|
805
|
+
if (t === F) return t;
|
|
806
806
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
807
807
|
if (t === this.it) return this._t;
|
|
808
808
|
this.it = t;
|
|
@@ -819,14 +819,14 @@ Et.directiveName = "unsafeHTML", Et.resultType = 1;
|
|
|
819
819
|
class St extends Et {
|
|
820
820
|
}
|
|
821
821
|
St.directiveName = "unsafeSVG", St.resultType = 2;
|
|
822
|
-
const
|
|
822
|
+
const I = Mt(St);
|
|
823
823
|
var oo = Object.defineProperty, io = Object.getOwnPropertyDescriptor, w = (o, t, e, n) => {
|
|
824
824
|
for (var i = n > 1 ? void 0 : n ? io(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
825
825
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
826
826
|
return n && i && oo(t, e, i), i;
|
|
827
827
|
};
|
|
828
|
-
const no = Dt(
|
|
829
|
-
let
|
|
828
|
+
const no = Dt(f);
|
|
829
|
+
let b = class extends no {
|
|
830
830
|
constructor() {
|
|
831
831
|
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;
|
|
832
832
|
}
|
|
@@ -855,7 +855,7 @@ let f = class extends no {
|
|
|
855
855
|
"<svg",
|
|
856
856
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
857
857
|
);
|
|
858
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
858
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${I(e)}</span>`;
|
|
859
859
|
}
|
|
860
860
|
renderButton() {
|
|
861
861
|
const o = this.text || this.textsecond;
|
|
@@ -889,9 +889,9 @@ let f = class extends no {
|
|
|
889
889
|
`;
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
|
-
Pe(
|
|
893
|
-
|
|
894
|
-
|
|
892
|
+
Pe(b);
|
|
893
|
+
b.formAssociated = !0;
|
|
894
|
+
b.styles = y`
|
|
895
895
|
:host {
|
|
896
896
|
--button-border: transparent;
|
|
897
897
|
cursor: pointer;
|
|
@@ -1007,7 +1007,7 @@ f.styles = b`
|
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
1009
|
.button:focus-visible {
|
|
1010
|
-
${
|
|
1010
|
+
${ut};
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
span.text + span.text::before {
|
|
@@ -1082,58 +1082,58 @@ f.styles = b`
|
|
|
1082
1082
|
`;
|
|
1083
1083
|
w([
|
|
1084
1084
|
a()
|
|
1085
|
-
],
|
|
1085
|
+
], b.prototype, "type", 2);
|
|
1086
1086
|
w([
|
|
1087
1087
|
a({ reflect: !0 })
|
|
1088
|
-
],
|
|
1088
|
+
], b.prototype, "value", 2);
|
|
1089
1089
|
w([
|
|
1090
1090
|
a({ type: String, reflect: !0 })
|
|
1091
|
-
],
|
|
1091
|
+
], b.prototype, "variant", 2);
|
|
1092
1092
|
w([
|
|
1093
1093
|
a({ type: String })
|
|
1094
|
-
],
|
|
1094
|
+
], b.prototype, "text", 2);
|
|
1095
1095
|
w([
|
|
1096
1096
|
a({ type: String })
|
|
1097
|
-
],
|
|
1097
|
+
], b.prototype, "textsecond", 2);
|
|
1098
1098
|
w([
|
|
1099
1099
|
a({ type: Boolean, reflect: !0 })
|
|
1100
|
-
],
|
|
1100
|
+
], b.prototype, "fullwidth", 2);
|
|
1101
1101
|
w([
|
|
1102
1102
|
a({ type: Boolean, reflect: !0 })
|
|
1103
|
-
],
|
|
1103
|
+
], b.prototype, "disabled", 2);
|
|
1104
1104
|
w([
|
|
1105
1105
|
a({ type: String, reflect: !0 })
|
|
1106
|
-
],
|
|
1106
|
+
], b.prototype, "startIconModel", 2);
|
|
1107
1107
|
w([
|
|
1108
1108
|
a({ type: String, reflect: !0 })
|
|
1109
|
-
],
|
|
1109
|
+
], b.prototype, "endIconModel", 2);
|
|
1110
1110
|
w([
|
|
1111
1111
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
1112
|
-
],
|
|
1112
|
+
], b.prototype, "startIcon", 2);
|
|
1113
1113
|
w([
|
|
1114
1114
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
1115
|
-
],
|
|
1115
|
+
], b.prototype, "endIcon", 2);
|
|
1116
1116
|
w([
|
|
1117
1117
|
a({ type: String, attribute: "paneltarget", reflect: !0 })
|
|
1118
|
-
],
|
|
1118
|
+
], b.prototype, "panelTarget", 2);
|
|
1119
1119
|
w([
|
|
1120
1120
|
a({ type: String })
|
|
1121
|
-
],
|
|
1121
|
+
], b.prototype, "href", 2);
|
|
1122
1122
|
w([
|
|
1123
1123
|
a({ type: String })
|
|
1124
|
-
],
|
|
1124
|
+
], b.prototype, "target", 2);
|
|
1125
1125
|
w([
|
|
1126
1126
|
a({ type: Boolean, reflect: !0 })
|
|
1127
|
-
],
|
|
1128
|
-
|
|
1127
|
+
], b.prototype, "underlined", 2);
|
|
1128
|
+
b = w([
|
|
1129
1129
|
x("o-button")
|
|
1130
|
-
],
|
|
1130
|
+
], b);
|
|
1131
1131
|
var ro = Object.defineProperty, so = Object.getOwnPropertyDescriptor, xt = (o, t, e, n) => {
|
|
1132
1132
|
for (var i = n > 1 ? void 0 : n ? so(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1133
1133
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1134
1134
|
return n && i && ro(t, e, i), i;
|
|
1135
1135
|
};
|
|
1136
|
-
let Y = class extends
|
|
1136
|
+
let Y = class extends f {
|
|
1137
1137
|
constructor() {
|
|
1138
1138
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1139
1139
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1160,7 +1160,7 @@ let Y = class extends u {
|
|
|
1160
1160
|
return l`
|
|
1161
1161
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1162
1162
|
<span class="sr-only">${this.label}</span>
|
|
1163
|
-
${
|
|
1163
|
+
${I(o)}
|
|
1164
1164
|
</button>
|
|
1165
1165
|
`;
|
|
1166
1166
|
}
|
|
@@ -1174,7 +1174,7 @@ let Y = class extends u {
|
|
|
1174
1174
|
this.label = o, this.requestUpdate();
|
|
1175
1175
|
}
|
|
1176
1176
|
};
|
|
1177
|
-
Y.styles =
|
|
1177
|
+
Y.styles = y`
|
|
1178
1178
|
:host {
|
|
1179
1179
|
display: inline-flex;
|
|
1180
1180
|
justify-content: center;
|
|
@@ -1257,13 +1257,13 @@ Y = xt([
|
|
|
1257
1257
|
* Copyright 2018 Google LLC
|
|
1258
1258
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1259
1259
|
*/
|
|
1260
|
-
const
|
|
1261
|
-
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor,
|
|
1260
|
+
const _ = (o) => o ?? d;
|
|
1261
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, B = (o, t, e, n) => {
|
|
1262
1262
|
for (var i = n > 1 ? void 0 : n ? lo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1263
1263
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1264
1264
|
return n && i && ao(t, e, i), i;
|
|
1265
1265
|
};
|
|
1266
|
-
let
|
|
1266
|
+
let C = class extends f {
|
|
1267
1267
|
constructor() {
|
|
1268
1268
|
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1, this.showSrLabel = !1, this.srLabel = "";
|
|
1269
1269
|
}
|
|
@@ -1278,27 +1278,28 @@ let _ = class extends u {
|
|
|
1278
1278
|
return l`
|
|
1279
1279
|
${this.type === "span" ? l`
|
|
1280
1280
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1281
|
-
${
|
|
1281
|
+
${I(e)}
|
|
1282
1282
|
</span>
|
|
1283
1283
|
` : l`
|
|
1284
1284
|
<button
|
|
1285
1285
|
type="button"
|
|
1286
|
-
aria-label=${
|
|
1286
|
+
aria-label=${_(i)}
|
|
1287
1287
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1288
1288
|
?disabled="${this.disabled}"
|
|
1289
1289
|
>
|
|
1290
|
-
${
|
|
1290
|
+
${I(e)}
|
|
1291
1291
|
${n}
|
|
1292
1292
|
</button>
|
|
1293
1293
|
`}
|
|
1294
1294
|
`;
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
|
|
1297
|
+
C.styles = y`
|
|
1298
1298
|
:host {
|
|
1299
1299
|
display: inline-flex;
|
|
1300
1300
|
justify-content: center;
|
|
1301
1301
|
align-items: center;
|
|
1302
|
+
outline: none !important;
|
|
1302
1303
|
}
|
|
1303
1304
|
|
|
1304
1305
|
.icon-button {
|
|
@@ -1498,49 +1499,49 @@ _.styles = b`
|
|
|
1498
1499
|
}
|
|
1499
1500
|
|
|
1500
1501
|
.icon-button:focus-visible {
|
|
1501
|
-
|
|
1502
|
+
${ut}
|
|
1502
1503
|
}
|
|
1503
1504
|
|
|
1504
1505
|
.sr-only {
|
|
1505
1506
|
display: none;
|
|
1506
1507
|
}
|
|
1507
1508
|
`;
|
|
1508
|
-
|
|
1509
|
+
B([
|
|
1509
1510
|
a({ type: String, reflect: !0 })
|
|
1510
|
-
],
|
|
1511
|
-
|
|
1511
|
+
], C.prototype, "bgstyle", 2);
|
|
1512
|
+
B([
|
|
1512
1513
|
a({ type: String, reflect: !0 })
|
|
1513
|
-
],
|
|
1514
|
-
|
|
1514
|
+
], C.prototype, "size", 2);
|
|
1515
|
+
B([
|
|
1515
1516
|
a({ type: String, reflect: !0 })
|
|
1516
|
-
],
|
|
1517
|
-
|
|
1517
|
+
], C.prototype, "status", 2);
|
|
1518
|
+
B([
|
|
1518
1519
|
a({ type: String, reflect: !0 })
|
|
1519
|
-
],
|
|
1520
|
-
|
|
1520
|
+
], C.prototype, "type", 2);
|
|
1521
|
+
B([
|
|
1521
1522
|
a({ type: String })
|
|
1522
|
-
],
|
|
1523
|
-
|
|
1523
|
+
], C.prototype, "strokewidth", 2);
|
|
1524
|
+
B([
|
|
1524
1525
|
a({ type: String })
|
|
1525
|
-
],
|
|
1526
|
-
|
|
1526
|
+
], C.prototype, "icon", 2);
|
|
1527
|
+
B([
|
|
1527
1528
|
a({ type: Boolean, reflect: !0 })
|
|
1528
|
-
],
|
|
1529
|
-
|
|
1529
|
+
], C.prototype, "disabled", 2);
|
|
1530
|
+
B([
|
|
1530
1531
|
a({ type: Boolean })
|
|
1531
|
-
],
|
|
1532
|
-
|
|
1532
|
+
], C.prototype, "showSrLabel", 2);
|
|
1533
|
+
B([
|
|
1533
1534
|
a({ type: String })
|
|
1534
|
-
],
|
|
1535
|
-
|
|
1535
|
+
], C.prototype, "srLabel", 2);
|
|
1536
|
+
C = B([
|
|
1536
1537
|
x("o-icon-button")
|
|
1537
|
-
],
|
|
1538
|
+
], C);
|
|
1538
1539
|
var co = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, X = (o, t, e, n) => {
|
|
1539
1540
|
for (var i = n > 1 ? void 0 : n ? ho(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1540
1541
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1541
1542
|
return n && i && co(t, e, i), i;
|
|
1542
1543
|
};
|
|
1543
|
-
let
|
|
1544
|
+
let D = class extends f {
|
|
1544
1545
|
constructor() {
|
|
1545
1546
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1546
1547
|
}
|
|
@@ -1552,7 +1553,7 @@ let z = class extends u {
|
|
|
1552
1553
|
return l`
|
|
1553
1554
|
<a
|
|
1554
1555
|
href="${o}"
|
|
1555
|
-
target="${
|
|
1556
|
+
target="${_(this.target || void 0)}"
|
|
1556
1557
|
@click="${this._handleClick}"
|
|
1557
1558
|
>
|
|
1558
1559
|
${this.endIcon && this.reverseEndIcon ? l`
|
|
@@ -1578,7 +1579,7 @@ let z = class extends u {
|
|
|
1578
1579
|
`;
|
|
1579
1580
|
}
|
|
1580
1581
|
};
|
|
1581
|
-
|
|
1582
|
+
D.styles = y`
|
|
1582
1583
|
:host([template="standard"]) a {
|
|
1583
1584
|
color: var(--color-content-action-secondary);
|
|
1584
1585
|
font-size: var(--font-size-200);
|
|
@@ -1668,31 +1669,31 @@ z.styles = b`
|
|
|
1668
1669
|
`;
|
|
1669
1670
|
X([
|
|
1670
1671
|
a({ type: String })
|
|
1671
|
-
],
|
|
1672
|
+
], D.prototype, "href", 2);
|
|
1672
1673
|
X([
|
|
1673
1674
|
a({ type: String })
|
|
1674
|
-
],
|
|
1675
|
+
], D.prototype, "target", 2);
|
|
1675
1676
|
X([
|
|
1676
1677
|
a({ type: String, reflect: !0 })
|
|
1677
|
-
],
|
|
1678
|
+
], D.prototype, "template", 2);
|
|
1678
1679
|
X([
|
|
1679
1680
|
a({ type: Boolean, reflect: !0 })
|
|
1680
|
-
],
|
|
1681
|
+
], D.prototype, "inverse", 2);
|
|
1681
1682
|
X([
|
|
1682
1683
|
a({ type: Boolean, reflect: !0 })
|
|
1683
|
-
],
|
|
1684
|
+
], D.prototype, "endIcon", 2);
|
|
1684
1685
|
X([
|
|
1685
1686
|
a({ type: Boolean, reflect: !0 })
|
|
1686
|
-
],
|
|
1687
|
-
|
|
1687
|
+
], D.prototype, "reverseEndIcon", 2);
|
|
1688
|
+
D = X([
|
|
1688
1689
|
x("o-link")
|
|
1689
|
-
],
|
|
1690
|
+
], D);
|
|
1690
1691
|
var po = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, wt = (o, t, e, n) => {
|
|
1691
1692
|
for (var i = n > 1 ? void 0 : n ? uo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1692
1693
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1693
1694
|
return n && i && po(t, e, i), i;
|
|
1694
1695
|
};
|
|
1695
|
-
let tt = class extends
|
|
1696
|
+
let tt = class extends f {
|
|
1696
1697
|
constructor() {
|
|
1697
1698
|
super(...arguments), this.rating = 0;
|
|
1698
1699
|
}
|
|
@@ -1711,7 +1712,7 @@ let tt = class extends u {
|
|
|
1711
1712
|
<div class="rating">
|
|
1712
1713
|
<div class="stars">
|
|
1713
1714
|
${o.map(
|
|
1714
|
-
(t) => l`<span class="star">${
|
|
1715
|
+
(t) => l`<span class="star">${I(G[t] ?? "")}</span>`
|
|
1715
1716
|
)}
|
|
1716
1717
|
</div>
|
|
1717
1718
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1719,7 +1720,7 @@ let tt = class extends u {
|
|
|
1719
1720
|
`;
|
|
1720
1721
|
}
|
|
1721
1722
|
};
|
|
1722
|
-
tt.styles =
|
|
1723
|
+
tt.styles = y`
|
|
1723
1724
|
svg {
|
|
1724
1725
|
width: 12px;
|
|
1725
1726
|
height: 12px;
|
|
@@ -1782,7 +1783,7 @@ const nt = (o, t) => {
|
|
|
1782
1783
|
if (e === void 0) return !1;
|
|
1783
1784
|
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), nt(i, t);
|
|
1784
1785
|
return !0;
|
|
1785
|
-
},
|
|
1786
|
+
}, yt = (o) => {
|
|
1786
1787
|
let t, e;
|
|
1787
1788
|
do {
|
|
1788
1789
|
if ((t = o._$AM) === void 0) break;
|
|
@@ -1797,18 +1798,18 @@ const nt = (o, t) => {
|
|
|
1797
1798
|
}
|
|
1798
1799
|
};
|
|
1799
1800
|
function fo(o) {
|
|
1800
|
-
this._$AN !== void 0 ? (
|
|
1801
|
+
this._$AN !== void 0 ? (yt(this), this._$AM = o, ae(this)) : this._$AM = o;
|
|
1801
1802
|
}
|
|
1802
1803
|
function bo(o, t = !1, e = 0) {
|
|
1803
1804
|
const n = this._$AH, i = this._$AN;
|
|
1804
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) nt(n[r], !1),
|
|
1805
|
-
else n != null && (nt(n, !1),
|
|
1805
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) nt(n[r], !1), yt(n[r]);
|
|
1806
|
+
else n != null && (nt(n, !1), yt(n));
|
|
1806
1807
|
else nt(this, o);
|
|
1807
1808
|
}
|
|
1808
1809
|
const go = (o) => {
|
|
1809
1810
|
o.type == Ht.CHILD && (o._$AP ?? (o._$AP = bo), o._$AQ ?? (o._$AQ = fo));
|
|
1810
1811
|
};
|
|
1811
|
-
class yo extends
|
|
1812
|
+
class yo extends Tt {
|
|
1812
1813
|
constructor() {
|
|
1813
1814
|
super(...arguments), this._$AN = void 0;
|
|
1814
1815
|
}
|
|
@@ -1817,7 +1818,7 @@ class yo extends Mt {
|
|
|
1817
1818
|
}
|
|
1818
1819
|
_$AO(t, e = !0) {
|
|
1819
1820
|
var n, i;
|
|
1820
|
-
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (nt(this, t),
|
|
1821
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (nt(this, t), yt(this));
|
|
1821
1822
|
}
|
|
1822
1823
|
setValue(t) {
|
|
1823
1824
|
if (vo(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1951,51 +1952,66 @@ class wo extends xo {
|
|
|
1951
1952
|
}
|
|
1952
1953
|
}
|
|
1953
1954
|
}
|
|
1954
|
-
const te =
|
|
1955
|
-
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor,
|
|
1955
|
+
const te = Mt(wo);
|
|
1956
|
+
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, m = (o, t, e, n) => {
|
|
1956
1957
|
for (var i = n > 1 ? void 0 : n ? _o(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1957
1958
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1958
1959
|
return n && i && $o(t, e, i), i;
|
|
1959
1960
|
};
|
|
1960
|
-
let
|
|
1961
|
+
let u = class extends f {
|
|
1961
1962
|
constructor() {
|
|
1962
|
-
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.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1963
|
+
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.previousFocusedElement = null, this.innerFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1963
1964
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
1964
1965
|
}, this.handleClosePanel = (o) => {
|
|
1965
1966
|
o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), this.closePanel());
|
|
1966
1967
|
};
|
|
1967
1968
|
}
|
|
1968
1969
|
connectedCallback() {
|
|
1969
|
-
super.connectedCallback(), !this.disablePortal && this.parentElement !== document.body && document.body.appendChild(this),
|
|
1970
|
+
super.connectedCallback(), !this.disablePortal && this.parentElement !== document.body && document.body.appendChild(this), this.addEventListener("keydown", this.handleKeyDown), this.updateComplete.then(() => {
|
|
1970
1971
|
this.initialized = !0;
|
|
1971
1972
|
});
|
|
1972
1973
|
}
|
|
1973
1974
|
disconnectedCallback() {
|
|
1974
|
-
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"),
|
|
1975
|
+
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback();
|
|
1975
1976
|
}
|
|
1976
1977
|
trapFocus(o) {
|
|
1978
|
+
var i, r, s, h, c, v, g, p, $, E;
|
|
1979
|
+
this.innerFocusedElement = document.activeElement || null, this.innerFocusedElement = ((r = (i = this.innerFocusedElement) == null ? void 0 : i.shadowRoot) == null ? void 0 : r.activeElement) || this.innerFocusedElement;
|
|
1977
1980
|
const t = this.getFocusableElements();
|
|
1978
1981
|
if (t.length === 0) return;
|
|
1979
1982
|
const e = t[0], n = t[t.length - 1];
|
|
1980
|
-
o.shiftKey &&
|
|
1983
|
+
o.shiftKey && this.innerFocusedElement === e ? (o.preventDefault(), n.shadowRoot ? (c = (h = (s = n.shadowRoot) == null ? void 0 : s.querySelector(u.focusablesSelector)) == null ? void 0 : h.focus) == null || c.call(h) : (v = n.focus) == null || v.call(n)) : !o.shiftKey && this.innerFocusedElement === n && (o.preventDefault(), e.shadowRoot ? ($ = (p = (g = e.shadowRoot) == null ? void 0 : g.querySelector(u.focusablesSelector)) == null ? void 0 : p.focus) == null || $.call(p) : (E = e.focus) == null || E.call(e));
|
|
1981
1984
|
}
|
|
1982
1985
|
getFocusableElements() {
|
|
1983
1986
|
const o = this.renderRoot.querySelector(".panel");
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1987
|
+
if (!o) return [];
|
|
1988
|
+
function t(i) {
|
|
1989
|
+
return !(i.disabled || i.hasAttribute("disabled") || i.hasAttribute("tabindex") && i.getAttribute("tabindex") === "-1");
|
|
1990
|
+
}
|
|
1991
|
+
function e(i) {
|
|
1992
|
+
var s;
|
|
1993
|
+
const r = [i.matches(u.focusablesSelector) ? i : []];
|
|
1994
|
+
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
1995
|
+
const h = Array.from(
|
|
1996
|
+
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
1997
|
+
).filter(t).flatMap(e), c = Array.from(
|
|
1998
|
+
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
1999
|
+
).filter(t).flatMap(e);
|
|
2000
|
+
r.push(...h, ...c);
|
|
2001
|
+
}
|
|
2002
|
+
return r.flat();
|
|
2003
|
+
}
|
|
2004
|
+
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
1989
2005
|
}
|
|
1990
2006
|
openPanel() {
|
|
1991
2007
|
this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open"), this.updateComplete.then(() => {
|
|
1992
|
-
var o, t, e;
|
|
2008
|
+
var o, t, e, n;
|
|
1993
2009
|
if (this.showHeader) {
|
|
1994
|
-
const
|
|
1995
|
-
|
|
2010
|
+
const i = ((o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel .close-btn")) || null, r = ((t = i == null ? void 0 : i.shadowRoot) == null ? void 0 : t.querySelector("button")) || null;
|
|
2011
|
+
r && ((e = r.focus) == null || e.call(r));
|
|
1996
2012
|
} else {
|
|
1997
|
-
const
|
|
1998
|
-
n == null || n.
|
|
2013
|
+
const i = this.getFocusableElements()[0];
|
|
2014
|
+
(n = i == null ? void 0 : i.focus) == null || n.call(i);
|
|
1999
2015
|
}
|
|
2000
2016
|
}), this.dispatchEvent(
|
|
2001
2017
|
new CustomEvent("open", { bubbles: !0, composed: !0 })
|
|
@@ -2091,7 +2107,7 @@ let v = class extends u {
|
|
|
2091
2107
|
`;
|
|
2092
2108
|
}
|
|
2093
2109
|
};
|
|
2094
|
-
|
|
2110
|
+
u.styles = y`
|
|
2095
2111
|
:host {
|
|
2096
2112
|
--z-overlay: 99;
|
|
2097
2113
|
--z-panel: 100;
|
|
@@ -2195,7 +2211,7 @@ v.styles = b`
|
|
|
2195
2211
|
.panel:focus-visible,
|
|
2196
2212
|
.close-btn:focus,
|
|
2197
2213
|
.close-btn:focus-visible {
|
|
2198
|
-
${
|
|
2214
|
+
${ut}
|
|
2199
2215
|
}
|
|
2200
2216
|
|
|
2201
2217
|
.content {
|
|
@@ -2240,69 +2256,71 @@ v.styles = b`
|
|
|
2240
2256
|
}
|
|
2241
2257
|
}
|
|
2242
2258
|
`;
|
|
2243
|
-
|
|
2259
|
+
u.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
|
|
2260
|
+
u.focusablesCustomElementsSelector = "o-icon-button, o-button";
|
|
2261
|
+
m([
|
|
2244
2262
|
a({ type: Boolean, reflect: !0 })
|
|
2245
|
-
],
|
|
2246
|
-
|
|
2263
|
+
], u.prototype, "open", 2);
|
|
2264
|
+
m([
|
|
2247
2265
|
a({ type: Boolean, reflect: !0 })
|
|
2248
|
-
],
|
|
2249
|
-
|
|
2266
|
+
], u.prototype, "showHeader", 2);
|
|
2267
|
+
m([
|
|
2250
2268
|
a({ type: Boolean, reflect: !0 })
|
|
2251
|
-
],
|
|
2252
|
-
|
|
2269
|
+
], u.prototype, "showFooter", 2);
|
|
2270
|
+
m([
|
|
2253
2271
|
a({ type: Boolean, reflect: !0 })
|
|
2254
|
-
],
|
|
2255
|
-
|
|
2272
|
+
], u.prototype, "showHeaderStartIcon", 2);
|
|
2273
|
+
m([
|
|
2256
2274
|
a({ type: String, reflect: !0 })
|
|
2257
|
-
],
|
|
2258
|
-
|
|
2275
|
+
], u.prototype, "headerTitle", 2);
|
|
2276
|
+
m([
|
|
2259
2277
|
a({ type: String, reflect: !0 })
|
|
2260
|
-
],
|
|
2261
|
-
|
|
2278
|
+
], u.prototype, "headerTitleClassName", 2);
|
|
2279
|
+
m([
|
|
2262
2280
|
a({ type: String, reflect: !0 })
|
|
2263
|
-
],
|
|
2264
|
-
|
|
2281
|
+
], u.prototype, "closeButtonLabel", 2);
|
|
2282
|
+
m([
|
|
2265
2283
|
a({ type: String, reflect: !0 })
|
|
2266
|
-
],
|
|
2267
|
-
|
|
2284
|
+
], u.prototype, "firstButtonLabel", 2);
|
|
2285
|
+
m([
|
|
2268
2286
|
a({ type: String, reflect: !0 })
|
|
2269
|
-
],
|
|
2270
|
-
|
|
2287
|
+
], u.prototype, "firstButtonVariant", 2);
|
|
2288
|
+
m([
|
|
2271
2289
|
a({ type: Object, reflect: !0 })
|
|
2272
|
-
],
|
|
2273
|
-
|
|
2290
|
+
], u.prototype, "firstButtonProps", 2);
|
|
2291
|
+
m([
|
|
2274
2292
|
a({ type: Boolean, reflect: !0 })
|
|
2275
|
-
],
|
|
2276
|
-
|
|
2293
|
+
], u.prototype, "onFirstButtonClickClose", 2);
|
|
2294
|
+
m([
|
|
2277
2295
|
a({ type: String, reflect: !0 })
|
|
2278
|
-
],
|
|
2279
|
-
|
|
2296
|
+
], u.prototype, "secondButtonLabel", 2);
|
|
2297
|
+
m([
|
|
2280
2298
|
a({ type: String, reflect: !0 })
|
|
2281
|
-
],
|
|
2282
|
-
|
|
2299
|
+
], u.prototype, "secondButtonVariant", 2);
|
|
2300
|
+
m([
|
|
2283
2301
|
a({ type: Object, reflect: !0 })
|
|
2284
|
-
],
|
|
2285
|
-
|
|
2302
|
+
], u.prototype, "secondButtonProps", 2);
|
|
2303
|
+
m([
|
|
2286
2304
|
a({ type: Boolean, reflect: !0 })
|
|
2287
|
-
],
|
|
2288
|
-
|
|
2305
|
+
], u.prototype, "onSecondButtonClickClose", 2);
|
|
2306
|
+
m([
|
|
2289
2307
|
a({ type: Boolean, reflect: !0 })
|
|
2290
|
-
],
|
|
2291
|
-
|
|
2308
|
+
], u.prototype, "disablePortal", 2);
|
|
2309
|
+
m([
|
|
2292
2310
|
a({ type: Number, reflect: !0 })
|
|
2293
|
-
],
|
|
2294
|
-
|
|
2311
|
+
], u.prototype, "zIndex", 2);
|
|
2312
|
+
m([
|
|
2295
2313
|
a({ type: Boolean, reflect: !0 })
|
|
2296
|
-
],
|
|
2297
|
-
|
|
2314
|
+
], u.prototype, "initialized", 2);
|
|
2315
|
+
u = m([
|
|
2298
2316
|
x("o-side-panel")
|
|
2299
|
-
],
|
|
2300
|
-
var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor,
|
|
2317
|
+
], u);
|
|
2318
|
+
var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, N = (o, t, e, n) => {
|
|
2301
2319
|
for (var i = n > 1 ? void 0 : n ? ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2302
2320
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2303
2321
|
return n && i && Co(t, e, i), i;
|
|
2304
2322
|
};
|
|
2305
|
-
let
|
|
2323
|
+
let O = class extends f {
|
|
2306
2324
|
constructor() {
|
|
2307
2325
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2308
2326
|
<o-icon-button
|
|
@@ -2379,7 +2397,7 @@ let P = class extends u {
|
|
|
2379
2397
|
`;
|
|
2380
2398
|
}
|
|
2381
2399
|
};
|
|
2382
|
-
|
|
2400
|
+
O.styles = y`
|
|
2383
2401
|
:host {
|
|
2384
2402
|
display: flex;
|
|
2385
2403
|
gap: 5px;
|
|
@@ -2485,36 +2503,36 @@ P.styles = b`
|
|
|
2485
2503
|
width: 0;
|
|
2486
2504
|
}
|
|
2487
2505
|
`;
|
|
2488
|
-
|
|
2506
|
+
N([
|
|
2489
2507
|
a({ type: Array })
|
|
2490
|
-
],
|
|
2491
|
-
|
|
2508
|
+
], O.prototype, "thumbnails", 2);
|
|
2509
|
+
N([
|
|
2492
2510
|
a({ type: Number })
|
|
2493
|
-
],
|
|
2494
|
-
|
|
2511
|
+
], O.prototype, "activeIndex", 2);
|
|
2512
|
+
N([
|
|
2495
2513
|
a({ type: Array })
|
|
2496
|
-
],
|
|
2497
|
-
|
|
2514
|
+
], O.prototype, "disabledIndexes", 2);
|
|
2515
|
+
N([
|
|
2498
2516
|
a({ type: String })
|
|
2499
|
-
],
|
|
2500
|
-
|
|
2517
|
+
], O.prototype, "maxWidth", 2);
|
|
2518
|
+
N([
|
|
2501
2519
|
a({ type: String })
|
|
2502
|
-
],
|
|
2503
|
-
|
|
2520
|
+
], O.prototype, "altressource", 2);
|
|
2521
|
+
N([
|
|
2504
2522
|
a({ type: Object })
|
|
2505
|
-
],
|
|
2506
|
-
|
|
2523
|
+
], O.prototype, "swiperInstance", 2);
|
|
2524
|
+
N([
|
|
2507
2525
|
K()
|
|
2508
|
-
],
|
|
2509
|
-
|
|
2526
|
+
], O.prototype, "focusedIndex", 2);
|
|
2527
|
+
O = N([
|
|
2510
2528
|
x("thumbnail-navigation")
|
|
2511
|
-
],
|
|
2529
|
+
], O);
|
|
2512
2530
|
var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, jt = (o, t, e, n) => {
|
|
2513
2531
|
for (var i = n > 1 ? void 0 : n ? Eo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2514
2532
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2515
2533
|
return n && i && Ao(t, e, i), i;
|
|
2516
2534
|
};
|
|
2517
|
-
let lt = class extends
|
|
2535
|
+
let lt = class extends f {
|
|
2518
2536
|
constructor() {
|
|
2519
2537
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2520
2538
|
}
|
|
@@ -2524,7 +2542,7 @@ let lt = class extends u {
|
|
|
2524
2542
|
`;
|
|
2525
2543
|
}
|
|
2526
2544
|
};
|
|
2527
|
-
lt.styles =
|
|
2545
|
+
lt.styles = y`
|
|
2528
2546
|
.tag {
|
|
2529
2547
|
display: inline-block;
|
|
2530
2548
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2594,7 +2612,7 @@ var So = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ut = (o, t
|
|
|
2594
2612
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2595
2613
|
return n && i && So(t, e, i), i;
|
|
2596
2614
|
};
|
|
2597
|
-
let ct = class extends
|
|
2615
|
+
let ct = class extends f {
|
|
2598
2616
|
constructor() {
|
|
2599
2617
|
super(...arguments), this.type = "top", this.text = "";
|
|
2600
2618
|
}
|
|
@@ -2607,7 +2625,7 @@ let ct = class extends u {
|
|
|
2607
2625
|
`;
|
|
2608
2626
|
}
|
|
2609
2627
|
};
|
|
2610
|
-
ct.styles =
|
|
2628
|
+
ct.styles = y`
|
|
2611
2629
|
.tooltip {
|
|
2612
2630
|
position: relative;
|
|
2613
2631
|
display: inline-block;
|
|
@@ -2709,12 +2727,12 @@ Ut([
|
|
|
2709
2727
|
ct = Ut([
|
|
2710
2728
|
x("o-tooltip")
|
|
2711
2729
|
], ct);
|
|
2712
|
-
var Po = Object.defineProperty, Io = Object.getOwnPropertyDescriptor,
|
|
2730
|
+
var Po = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
2713
2731
|
for (var i = n > 1 ? void 0 : n ? Io(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2714
2732
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2715
2733
|
return n && i && Po(t, e, i), i;
|
|
2716
2734
|
};
|
|
2717
|
-
let
|
|
2735
|
+
let S = class extends f {
|
|
2718
2736
|
constructor() {
|
|
2719
2737
|
super(...arguments), this.options = [], this.value = "", this.name = "", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
|
|
2720
2738
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2825,10 +2843,10 @@ let A = class extends u {
|
|
|
2825
2843
|
${e.url ? l`
|
|
2826
2844
|
<a href="${e.url}">
|
|
2827
2845
|
<span>${e.label}</span>
|
|
2828
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2846
|
+
${e.value === this.value ? l`<span class="check">${I(o)}</span>` : null}
|
|
2829
2847
|
</a>` : l`
|
|
2830
2848
|
<span>${e.label}</span>
|
|
2831
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2849
|
+
${e.value === this.value ? l`<span class="check">${I(o)}</span>` : null}`}
|
|
2832
2850
|
</li>`
|
|
2833
2851
|
)}
|
|
2834
2852
|
</ul>` : null}
|
|
@@ -2837,7 +2855,7 @@ let A = class extends u {
|
|
|
2837
2855
|
`;
|
|
2838
2856
|
}
|
|
2839
2857
|
};
|
|
2840
|
-
|
|
2858
|
+
S.styles = y`
|
|
2841
2859
|
:host {
|
|
2842
2860
|
display: inline-block;
|
|
2843
2861
|
position: relative;
|
|
@@ -2977,44 +2995,44 @@ A.styles = b`
|
|
|
2977
2995
|
display: none;
|
|
2978
2996
|
}
|
|
2979
2997
|
`;
|
|
2980
|
-
|
|
2998
|
+
H([
|
|
2981
2999
|
a({ type: Array, reflect: !0 })
|
|
2982
|
-
],
|
|
2983
|
-
|
|
3000
|
+
], S.prototype, "options", 2);
|
|
3001
|
+
H([
|
|
2984
3002
|
a({ type: String, reflect: !0 })
|
|
2985
|
-
],
|
|
2986
|
-
|
|
3003
|
+
], S.prototype, "value", 2);
|
|
3004
|
+
H([
|
|
2987
3005
|
a({ type: String, reflect: !0 })
|
|
2988
|
-
],
|
|
2989
|
-
|
|
3006
|
+
], S.prototype, "name", 2);
|
|
3007
|
+
H([
|
|
2990
3008
|
a({ type: Boolean, reflect: !0 })
|
|
2991
|
-
],
|
|
2992
|
-
|
|
3009
|
+
], S.prototype, "disabled", 2);
|
|
3010
|
+
H([
|
|
2993
3011
|
a({ type: String, reflect: !0 })
|
|
2994
|
-
],
|
|
2995
|
-
|
|
3012
|
+
], S.prototype, "width", 2);
|
|
3013
|
+
H([
|
|
2996
3014
|
K()
|
|
2997
|
-
],
|
|
2998
|
-
|
|
3015
|
+
], S.prototype, "open", 2);
|
|
3016
|
+
H([
|
|
2999
3017
|
K()
|
|
3000
|
-
],
|
|
3001
|
-
|
|
3018
|
+
], S.prototype, "activeIndex", 2);
|
|
3019
|
+
H([
|
|
3002
3020
|
K()
|
|
3003
|
-
],
|
|
3004
|
-
|
|
3021
|
+
], S.prototype, "menuWidth", 2);
|
|
3022
|
+
S = H([
|
|
3005
3023
|
x("o-dropdown")
|
|
3006
|
-
],
|
|
3024
|
+
], S);
|
|
3007
3025
|
var Oo = Object.getOwnPropertyDescriptor, Bo = (o, t, e, n) => {
|
|
3008
3026
|
for (var i = n > 1 ? void 0 : n ? Oo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3009
3027
|
(s = o[r]) && (i = s(i) || i);
|
|
3010
3028
|
return i;
|
|
3011
3029
|
};
|
|
3012
|
-
let Lt = class extends
|
|
3030
|
+
let Lt = class extends f {
|
|
3013
3031
|
render() {
|
|
3014
3032
|
return l` <span class="dots"></span> `;
|
|
3015
3033
|
}
|
|
3016
3034
|
};
|
|
3017
|
-
Lt.styles =
|
|
3035
|
+
Lt.styles = y`
|
|
3018
3036
|
:host {
|
|
3019
3037
|
display: flex;
|
|
3020
3038
|
align-items: center;
|
|
@@ -3069,12 +3087,12 @@ Lt.styles = b`
|
|
|
3069
3087
|
Lt = Bo([
|
|
3070
3088
|
x("o-dots")
|
|
3071
3089
|
], Lt);
|
|
3072
|
-
var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor,
|
|
3090
|
+
var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, z = (o, t, e, n) => {
|
|
3073
3091
|
for (var i = n > 1 ? void 0 : n ? Do(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3074
3092
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3075
3093
|
return n && i && zo(t, e, i), i;
|
|
3076
3094
|
};
|
|
3077
|
-
let
|
|
3095
|
+
let k = class extends f {
|
|
3078
3096
|
constructor() {
|
|
3079
3097
|
super(...arguments), this.options = [], this.value = "", this.name = "", this.additionaltext = "+X variant(s)", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
|
|
3080
3098
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3158,7 +3176,7 @@ let C = class extends u {
|
|
|
3158
3176
|
?disabled=${this.disabled}
|
|
3159
3177
|
class="btn-dropdown"
|
|
3160
3178
|
>
|
|
3161
|
-
<img alt="${
|
|
3179
|
+
<img alt="${_(t == null ? void 0 : t.label)}" src="${_(t == null ? void 0 : t.imgurl)}" />
|
|
3162
3180
|
<span id="dropdown-label" class="label">
|
|
3163
3181
|
${t ? t.label : "Select an option"}
|
|
3164
3182
|
</span>
|
|
@@ -3193,13 +3211,13 @@ let C = class extends u {
|
|
|
3193
3211
|
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3194
3212
|
@click=${() => this.selectOption(e)}
|
|
3195
3213
|
>
|
|
3196
|
-
<a href="${
|
|
3197
|
-
<img alt="${
|
|
3214
|
+
<a href="${_(e.url)}">
|
|
3215
|
+
<img alt="${_(e.label)}" src="${_(e.imgurl)}" />
|
|
3198
3216
|
<span class="label">${e.label}</span>
|
|
3199
3217
|
<div class="right">
|
|
3200
|
-
<span class="additional-text">${
|
|
3218
|
+
<span class="additional-text">${_(e.additionaltext)}</span>
|
|
3201
3219
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3202
|
-
<span class="check">${
|
|
3220
|
+
<span class="check">${I(o)}</span>` : null}
|
|
3203
3221
|
</div>
|
|
3204
3222
|
</a>
|
|
3205
3223
|
</li>
|
|
@@ -3211,7 +3229,7 @@ let C = class extends u {
|
|
|
3211
3229
|
`;
|
|
3212
3230
|
}
|
|
3213
3231
|
};
|
|
3214
|
-
|
|
3232
|
+
k.styles = y`
|
|
3215
3233
|
:host {
|
|
3216
3234
|
display: inline-block;
|
|
3217
3235
|
position: relative;
|
|
@@ -3387,42 +3405,42 @@ C.styles = b`
|
|
|
3387
3405
|
display: none;
|
|
3388
3406
|
}
|
|
3389
3407
|
`;
|
|
3390
|
-
|
|
3408
|
+
z([
|
|
3391
3409
|
a({ type: Array, reflect: !0 })
|
|
3392
|
-
],
|
|
3393
|
-
|
|
3410
|
+
], k.prototype, "options", 2);
|
|
3411
|
+
z([
|
|
3394
3412
|
a({ type: String, reflect: !0 })
|
|
3395
|
-
],
|
|
3396
|
-
|
|
3413
|
+
], k.prototype, "value", 2);
|
|
3414
|
+
z([
|
|
3397
3415
|
a({ type: String, reflect: !0 })
|
|
3398
|
-
],
|
|
3399
|
-
|
|
3416
|
+
], k.prototype, "name", 2);
|
|
3417
|
+
z([
|
|
3400
3418
|
a({ type: String, reflect: !0 })
|
|
3401
|
-
],
|
|
3402
|
-
|
|
3419
|
+
], k.prototype, "additionaltext", 2);
|
|
3420
|
+
z([
|
|
3403
3421
|
a({ type: Boolean, reflect: !0 })
|
|
3404
|
-
],
|
|
3405
|
-
|
|
3422
|
+
], k.prototype, "disabled", 2);
|
|
3423
|
+
z([
|
|
3406
3424
|
a({ type: String, reflect: !0 })
|
|
3407
|
-
],
|
|
3408
|
-
|
|
3425
|
+
], k.prototype, "width", 2);
|
|
3426
|
+
z([
|
|
3409
3427
|
K()
|
|
3410
|
-
],
|
|
3411
|
-
|
|
3428
|
+
], k.prototype, "open", 2);
|
|
3429
|
+
z([
|
|
3412
3430
|
K()
|
|
3413
|
-
],
|
|
3414
|
-
|
|
3431
|
+
], k.prototype, "activeIndex", 2);
|
|
3432
|
+
z([
|
|
3415
3433
|
K()
|
|
3416
|
-
],
|
|
3417
|
-
|
|
3434
|
+
], k.prototype, "menuWidth", 2);
|
|
3435
|
+
k = z([
|
|
3418
3436
|
x("o-dropdown-variant")
|
|
3419
|
-
],
|
|
3437
|
+
], k);
|
|
3420
3438
|
/**
|
|
3421
3439
|
* @license
|
|
3422
3440
|
* Copyright 2018 Google LLC
|
|
3423
3441
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3424
3442
|
*/
|
|
3425
|
-
const le = "important", Ho = " !" + le,
|
|
3443
|
+
const le = "important", Ho = " !" + le, Mo = Mt(class extends Tt {
|
|
3426
3444
|
constructor(o) {
|
|
3427
3445
|
var t;
|
|
3428
3446
|
if (super(o), o.type !== Ht.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.");
|
|
@@ -3445,15 +3463,15 @@ const le = "important", Ho = " !" + le, To = Tt(class extends Mt {
|
|
|
3445
3463
|
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? le : "") : e[n] = i;
|
|
3446
3464
|
}
|
|
3447
3465
|
}
|
|
3448
|
-
return
|
|
3466
|
+
return F;
|
|
3449
3467
|
}
|
|
3450
3468
|
});
|
|
3451
|
-
var
|
|
3469
|
+
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Ft = (o, t, e, n) => {
|
|
3452
3470
|
for (var i = n > 1 ? void 0 : n ? jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3453
3471
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3454
|
-
return n && i &&
|
|
3472
|
+
return n && i && To(t, e, i), i;
|
|
3455
3473
|
};
|
|
3456
|
-
let ht = class extends
|
|
3474
|
+
let ht = class extends f {
|
|
3457
3475
|
constructor() {
|
|
3458
3476
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3459
3477
|
}
|
|
@@ -3462,16 +3480,16 @@ let ht = class extends u {
|
|
|
3462
3480
|
width: `${this.imageSize}px`,
|
|
3463
3481
|
height: `${this.imageSize}px`
|
|
3464
3482
|
}, e = l`
|
|
3465
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${
|
|
3483
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${_(this.option.title)}" aria-hidden="true" style=${Mo(t)} />` : ""}
|
|
3466
3484
|
<div class="m-reassurance-content">
|
|
3467
|
-
<h3 class="a-reassurance-text">${
|
|
3468
|
-
<p class="a-reassurance-description">${
|
|
3485
|
+
<h3 class="a-reassurance-text">${_(this.option.title)}</h3>
|
|
3486
|
+
<p class="a-reassurance-description">${_(this.option.description)}</p>
|
|
3469
3487
|
</div>
|
|
3470
3488
|
`;
|
|
3471
|
-
return o ? l`<a href="${
|
|
3489
|
+
return o ? l`<a href="${_(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3472
3490
|
}
|
|
3473
3491
|
};
|
|
3474
|
-
ht.styles =
|
|
3492
|
+
ht.styles = y`
|
|
3475
3493
|
:host {
|
|
3476
3494
|
display: inline-block;
|
|
3477
3495
|
position: relative;
|
|
@@ -3553,22 +3571,22 @@ ht.styles = b`
|
|
|
3553
3571
|
}
|
|
3554
3572
|
}
|
|
3555
3573
|
`;
|
|
3556
|
-
|
|
3574
|
+
Ft([
|
|
3557
3575
|
a({ type: Object, reflect: !0 })
|
|
3558
3576
|
], ht.prototype, "option", 2);
|
|
3559
|
-
|
|
3577
|
+
Ft([
|
|
3560
3578
|
a({ type: Number, reflect: !0 })
|
|
3561
3579
|
], ht.prototype, "imageSize", 2);
|
|
3562
|
-
ht =
|
|
3580
|
+
ht = Ft([
|
|
3563
3581
|
x("o-reassurance")
|
|
3564
3582
|
], ht);
|
|
3565
|
-
var Uo = Object.defineProperty,
|
|
3566
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
3583
|
+
var Uo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
|
|
3584
|
+
for (var i = n > 1 ? void 0 : n ? Fo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3567
3585
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3568
3586
|
return n && i && Uo(t, e, i), i;
|
|
3569
3587
|
};
|
|
3570
|
-
const
|
|
3571
|
-
let
|
|
3588
|
+
const No = Dt(f);
|
|
3589
|
+
let A = class extends No {
|
|
3572
3590
|
constructor() {
|
|
3573
3591
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3574
3592
|
}
|
|
@@ -3591,7 +3609,7 @@ let k = class extends Ro {
|
|
|
3591
3609
|
`;
|
|
3592
3610
|
}
|
|
3593
3611
|
};
|
|
3594
|
-
|
|
3612
|
+
A.styles = y`
|
|
3595
3613
|
:host {
|
|
3596
3614
|
cursor: pointer;
|
|
3597
3615
|
display: inline-flex;
|
|
@@ -3667,7 +3685,7 @@ k.styles = b`
|
|
|
3667
3685
|
}
|
|
3668
3686
|
|
|
3669
3687
|
&:focus-visible {
|
|
3670
|
-
${
|
|
3688
|
+
${ut};
|
|
3671
3689
|
}
|
|
3672
3690
|
}
|
|
3673
3691
|
|
|
@@ -3681,44 +3699,44 @@ k.styles = b`
|
|
|
3681
3699
|
align-items: center;
|
|
3682
3700
|
}
|
|
3683
3701
|
`;
|
|
3684
|
-
|
|
3702
|
+
M([
|
|
3685
3703
|
a({ type: String, reflect: !0 })
|
|
3686
|
-
],
|
|
3687
|
-
|
|
3704
|
+
], A.prototype, "link", 2);
|
|
3705
|
+
M([
|
|
3688
3706
|
a({ reflect: !0 })
|
|
3689
|
-
],
|
|
3690
|
-
|
|
3707
|
+
], A.prototype, "name", 2);
|
|
3708
|
+
M([
|
|
3691
3709
|
a({ reflect: !0 })
|
|
3692
|
-
],
|
|
3693
|
-
|
|
3710
|
+
], A.prototype, "value", 2);
|
|
3711
|
+
M([
|
|
3694
3712
|
a({ type: String })
|
|
3695
|
-
],
|
|
3696
|
-
|
|
3713
|
+
], A.prototype, "text", 2);
|
|
3714
|
+
M([
|
|
3697
3715
|
a({ type: String, reflect: !0 })
|
|
3698
|
-
],
|
|
3699
|
-
|
|
3716
|
+
], A.prototype, "size", 2);
|
|
3717
|
+
M([
|
|
3700
3718
|
a({ type: Boolean, reflect: !0 })
|
|
3701
|
-
],
|
|
3702
|
-
|
|
3719
|
+
], A.prototype, "selected", 2);
|
|
3720
|
+
M([
|
|
3703
3721
|
a({ type: Boolean, reflect: !0 })
|
|
3704
|
-
],
|
|
3705
|
-
|
|
3722
|
+
], A.prototype, "fullwidth", 2);
|
|
3723
|
+
M([
|
|
3706
3724
|
a({ type: Boolean, reflect: !0 })
|
|
3707
|
-
],
|
|
3708
|
-
|
|
3725
|
+
], A.prototype, "inactive", 2);
|
|
3726
|
+
A = M([
|
|
3709
3727
|
x("o-chip")
|
|
3710
|
-
],
|
|
3711
|
-
var
|
|
3728
|
+
], A);
|
|
3729
|
+
var Ro = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Nt = (o, t, e, n) => {
|
|
3712
3730
|
for (var i = n > 1 ? void 0 : n ? Vo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3713
3731
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3714
|
-
return n && i &&
|
|
3732
|
+
return n && i && Ro(t, e, i), i;
|
|
3715
3733
|
};
|
|
3716
|
-
let dt = class extends
|
|
3734
|
+
let dt = class extends f {
|
|
3717
3735
|
constructor() {
|
|
3718
3736
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3719
3737
|
}
|
|
3720
3738
|
onChipSelected(o) {
|
|
3721
|
-
const t = o.target instanceof
|
|
3739
|
+
const t = o.target instanceof A ? o.target : null;
|
|
3722
3740
|
t != null && t.link || (this.name = (t == null ? void 0 : t.name) || "", this.value = (t == null ? void 0 : t.value) || "", this.querySelectorAll("o-chip").forEach((e) => {
|
|
3723
3741
|
e !== t && (e.selected = !1);
|
|
3724
3742
|
}));
|
|
@@ -3729,7 +3747,7 @@ let dt = class extends u {
|
|
|
3729
3747
|
`;
|
|
3730
3748
|
}
|
|
3731
3749
|
};
|
|
3732
|
-
dt.styles =
|
|
3750
|
+
dt.styles = y`
|
|
3733
3751
|
:host {
|
|
3734
3752
|
display: flex;
|
|
3735
3753
|
flex-direction: row;
|
|
@@ -3737,13 +3755,13 @@ dt.styles = b`
|
|
|
3737
3755
|
gap: var(--spacing-s);
|
|
3738
3756
|
}
|
|
3739
3757
|
`;
|
|
3740
|
-
|
|
3758
|
+
Nt([
|
|
3741
3759
|
a({ reflect: !0 })
|
|
3742
3760
|
], dt.prototype, "name", 2);
|
|
3743
|
-
|
|
3761
|
+
Nt([
|
|
3744
3762
|
a({ reflect: !0 })
|
|
3745
3763
|
], dt.prototype, "value", 2);
|
|
3746
|
-
dt =
|
|
3764
|
+
dt = Nt([
|
|
3747
3765
|
x("o-chipset")
|
|
3748
3766
|
], dt);
|
|
3749
3767
|
var Zo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
@@ -3751,8 +3769,8 @@ var Zo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, T = (o, t,
|
|
|
3751
3769
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3752
3770
|
return n && i && Zo(t, e, i), i;
|
|
3753
3771
|
};
|
|
3754
|
-
const Wo = Dt(
|
|
3755
|
-
let
|
|
3772
|
+
const Wo = Dt(f);
|
|
3773
|
+
let L = class extends Wo {
|
|
3756
3774
|
constructor() {
|
|
3757
3775
|
super(...arguments), this.name = "", this.value = "", this.type = "", this.dataHref = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
3758
3776
|
}
|
|
@@ -3768,14 +3786,14 @@ let E = class extends Wo {
|
|
|
3768
3786
|
"<svg",
|
|
3769
3787
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3770
3788
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3771
|
-
return l`<span class="cross-icon">${
|
|
3789
|
+
return l`<span class="cross-icon">${I(o)}</span>`;
|
|
3772
3790
|
}
|
|
3773
3791
|
strikeThroughImg() {
|
|
3774
3792
|
const o = eo[this.strikethroughImgName].replace(
|
|
3775
3793
|
"<svg",
|
|
3776
3794
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
3777
3795
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3778
|
-
return
|
|
3796
|
+
return I(o);
|
|
3779
3797
|
}
|
|
3780
3798
|
render() {
|
|
3781
3799
|
const o = this.text;
|
|
@@ -3802,7 +3820,7 @@ let E = class extends Wo {
|
|
|
3802
3820
|
`;
|
|
3803
3821
|
}
|
|
3804
3822
|
};
|
|
3805
|
-
|
|
3823
|
+
L.styles = y`
|
|
3806
3824
|
:host {
|
|
3807
3825
|
cursor: pointer;
|
|
3808
3826
|
display: inline-flex;
|
|
@@ -3882,7 +3900,7 @@ E.styles = b`
|
|
|
3882
3900
|
}
|
|
3883
3901
|
|
|
3884
3902
|
.button:focus-visible {
|
|
3885
|
-
${
|
|
3903
|
+
${ut};
|
|
3886
3904
|
}
|
|
3887
3905
|
|
|
3888
3906
|
span.text + span.text::before {
|
|
@@ -3930,37 +3948,37 @@ E.styles = b`
|
|
|
3930
3948
|
`;
|
|
3931
3949
|
T([
|
|
3932
3950
|
a({ reflect: !0 })
|
|
3933
|
-
],
|
|
3951
|
+
], L.prototype, "name", 2);
|
|
3934
3952
|
T([
|
|
3935
3953
|
a({ reflect: !0 })
|
|
3936
|
-
],
|
|
3954
|
+
], L.prototype, "value", 2);
|
|
3937
3955
|
T([
|
|
3938
3956
|
a({ type: String, reflect: !0 })
|
|
3939
|
-
],
|
|
3957
|
+
], L.prototype, "type", 2);
|
|
3940
3958
|
T([
|
|
3941
3959
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
3942
|
-
],
|
|
3960
|
+
], L.prototype, "dataHref", 2);
|
|
3943
3961
|
T([
|
|
3944
3962
|
a({ type: String })
|
|
3945
|
-
],
|
|
3963
|
+
], L.prototype, "text", 2);
|
|
3946
3964
|
T([
|
|
3947
3965
|
a({ type: Boolean, reflect: !0 })
|
|
3948
|
-
],
|
|
3966
|
+
], L.prototype, "selected", 2);
|
|
3949
3967
|
T([
|
|
3950
3968
|
a({ type: Boolean, reflect: !0 })
|
|
3951
|
-
],
|
|
3969
|
+
], L.prototype, "disabled", 2);
|
|
3952
3970
|
T([
|
|
3953
3971
|
a({ type: Boolean, reflect: !0 })
|
|
3954
|
-
],
|
|
3955
|
-
|
|
3972
|
+
], L.prototype, "fullwidth", 2);
|
|
3973
|
+
L = T([
|
|
3956
3974
|
x("o-filter-chip")
|
|
3957
|
-
],
|
|
3958
|
-
var Ko = Object.defineProperty,
|
|
3975
|
+
], L);
|
|
3976
|
+
var Ko = Object.defineProperty, R = (o, t, e, n) => {
|
|
3959
3977
|
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
3960
3978
|
(s = o[r]) && (i = s(t, e, i) || i);
|
|
3961
3979
|
return i && Ko(t, e, i), i;
|
|
3962
3980
|
};
|
|
3963
|
-
const
|
|
3981
|
+
const Rt = class Rt extends f {
|
|
3964
3982
|
constructor() {
|
|
3965
3983
|
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "";
|
|
3966
3984
|
}
|
|
@@ -3995,20 +4013,18 @@ const Ft = class Ft extends u {
|
|
|
3995
4013
|
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
3996
4014
|
<div class="info">
|
|
3997
4015
|
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
</div>
|
|
4004
|
-
` : ""}
|
|
4016
|
+
<div class="details">
|
|
4017
|
+
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
4018
|
+
${this.type === "cart" && this.mainPrice ? l`<span class="main-price">${this.mainPrice}</span>` : ""}
|
|
4019
|
+
${this.type === "cart" && this.perLiter ? l`<span class="per-liter">${this.perLiter}</span>` : ""}
|
|
4020
|
+
</div>
|
|
4005
4021
|
</div>
|
|
4006
4022
|
${this.icons}
|
|
4007
4023
|
</div>
|
|
4008
4024
|
`;
|
|
4009
4025
|
}
|
|
4010
4026
|
};
|
|
4011
|
-
|
|
4027
|
+
Rt.styles = y`
|
|
4012
4028
|
.tile {
|
|
4013
4029
|
display: flex;
|
|
4014
4030
|
align-items: center;
|
|
@@ -4027,6 +4043,7 @@ Ft.styles = b`
|
|
|
4027
4043
|
object-fit: cover;
|
|
4028
4044
|
width: 56px;
|
|
4029
4045
|
height: auto;
|
|
4046
|
+
background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
|
|
4030
4047
|
}
|
|
4031
4048
|
|
|
4032
4049
|
.info {
|
|
@@ -4081,29 +4098,29 @@ Ft.styles = b`
|
|
|
4081
4098
|
line-height: var(--line-height-160);
|
|
4082
4099
|
}
|
|
4083
4100
|
`;
|
|
4084
|
-
let
|
|
4085
|
-
|
|
4101
|
+
let P = Rt;
|
|
4102
|
+
R([
|
|
4086
4103
|
a({ type: String })
|
|
4087
|
-
],
|
|
4088
|
-
|
|
4104
|
+
], P.prototype, "type");
|
|
4105
|
+
R([
|
|
4089
4106
|
a({ type: String })
|
|
4090
|
-
],
|
|
4091
|
-
|
|
4107
|
+
], P.prototype, "titleProduct");
|
|
4108
|
+
R([
|
|
4092
4109
|
a({ type: String })
|
|
4093
|
-
],
|
|
4094
|
-
|
|
4110
|
+
], P.prototype, "volume");
|
|
4111
|
+
R([
|
|
4095
4112
|
a({ type: String })
|
|
4096
|
-
],
|
|
4097
|
-
|
|
4113
|
+
], P.prototype, "perLiter");
|
|
4114
|
+
R([
|
|
4098
4115
|
a({ type: String })
|
|
4099
|
-
],
|
|
4100
|
-
|
|
4116
|
+
], P.prototype, "mainPrice");
|
|
4117
|
+
R([
|
|
4101
4118
|
a({ type: String })
|
|
4102
|
-
],
|
|
4103
|
-
|
|
4119
|
+
], P.prototype, "imageUrl");
|
|
4120
|
+
R([
|
|
4104
4121
|
a({ type: String })
|
|
4105
|
-
],
|
|
4106
|
-
|
|
4122
|
+
], P.prototype, "altImage");
|
|
4123
|
+
R([
|
|
4107
4124
|
a({ type: Function })
|
|
4108
|
-
],
|
|
4109
|
-
customElements.define("mini-tile",
|
|
4125
|
+
], P.prototype, "onClickTile");
|
|
4126
|
+
customElements.define("mini-tile", P);
|