@florid-kit/components 0.10.40 → 0.10.42
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/arch-image.d.ts +1 -0
- package/components/minitile.d.ts +1 -0
- package/index.js +64 -50
- package/index.mjs +231 -211
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const Pe = (o) => new we(typeof o == "string" ? o : o + "", void 0, Kt), f = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: Oe, defineProperty: ze, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: De, getOwnPropertySymbols: He, getPrototypeOf: Te } = Object, Q = globalThis, de = Q.trustedTypes, Me = de ? de.emptyScript : "", Tt = Q.reactiveElementPolyfillSupport, gt = (o, t) => o, Pt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Me : null;
|
|
@@ -73,9 +73,9 @@ const { is: ze, defineProperty: Oe, getOwnPropertyDescriptor: Ie, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} }, Wt = (o, t) => !
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, Wt = (o, t) => !Oe(o, t), pe = { attribute: !0, type: String, converter: Pt, reflect: !1, useDefault: !1, hasChanged: Wt };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let ht = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@ let ct = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(t, e = pe) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && ze(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, n) {
|
|
@@ -276,15 +276,15 @@ let ct = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[gt("elementProperties")] = /* @__PURE__ */ new Map(), ht[gt("finalized")] = /* @__PURE__ */ new Map(), Tt == null || Tt({ ReactiveElement: ht }), (Q.reactiveElementVersions ?? (Q.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const bt = globalThis, Bt = bt.trustedTypes, ue = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, $e = "$lit$",
|
|
285
|
+
const bt = globalThis, Bt = bt.trustedTypes, ue = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, $e = "$lit$", J = `lit$${Math.random().toFixed(9).slice(2)}$`, ke = "?" + J, je = `<${ke}>`, st = document, mt = () => st.createComment(""), xt = (o) => o === null || typeof o != "object" && typeof o != "function", Gt = Array.isArray, Fe = (o) => Gt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Mt = `[
|
|
286
286
|
\f\r]`, vt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fe = /-->/g, ve = />/g, it = RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ge = /'/g, be = /"/g, _e = /^(?:script|style|textarea|title)$/i, Re = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Re(1),
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ge = /'/g, be = /"/g, _e = /^(?:script|style|textarea|title)$/i, Re = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Re(1), tt = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), ye = /* @__PURE__ */ new WeakMap(), nt = st.createTreeWalker(st, 129);
|
|
288
288
|
function Ce(o, t) {
|
|
289
289
|
if (!Gt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return ue !== void 0 ? ue.createHTML(t) : t;
|
|
@@ -296,8 +296,8 @@ const Ue = (o, t) => {
|
|
|
296
296
|
const h = o[c];
|
|
297
297
|
let v, w, g = -1, V = 0;
|
|
298
298
|
for (; V < h.length && (s.lastIndex = V, w = s.exec(h), w !== null); ) V = s.lastIndex, s === vt ? w[1] === "!--" ? s = fe : w[1] !== void 0 ? s = ve : w[2] !== void 0 ? (_e.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = it) : w[3] !== void 0 && (s = it) : s === it ? w[0] === ">" ? (s = i ?? vt, g = -1) : w[1] === void 0 ? g = -2 : (g = s.lastIndex - w[2].length, v = w[1], s = w[3] === void 0 ? it : w[3] === '"' ? be : ge) : s === be || s === ge ? s = it : s === fe || s === ve ? s = vt : (s = it, i = void 0);
|
|
299
|
-
const
|
|
300
|
-
r += s === vt ? h + je : g >= 0 ? (n.push(v), h.slice(0, g) + $e + h.slice(g) +
|
|
299
|
+
const Y = s === it && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === vt ? h + je : g >= 0 ? (n.push(v), h.slice(0, g) + $e + h.slice(g) + J + Y) : h + J + (g === -2 ? c : Y);
|
|
301
301
|
}
|
|
302
302
|
return [Ce(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -314,21 +314,21 @@ class wt {
|
|
|
314
314
|
for (; (i = nt.nextNode()) !== null && h.length < c; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const g of i.getAttributeNames()) if (g.endsWith($e)) {
|
|
317
|
-
const V = w[s++],
|
|
318
|
-
h.push({ type: 1, index: r, name: At[2], strings:
|
|
319
|
-
} else g.startsWith(
|
|
317
|
+
const V = w[s++], Y = i.getAttribute(g).split(J), At = /([.?@])?(.*)/.exec(V);
|
|
318
|
+
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? qe : At[1] === "?" ? Ve : At[1] === "@" ? Ze : zt }), i.removeAttribute(g);
|
|
319
|
+
} else g.startsWith(J) && (h.push({ type: 6, index: r }), i.removeAttribute(g));
|
|
320
320
|
if (_e.test(i.tagName)) {
|
|
321
|
-
const g = i.textContent.split(
|
|
321
|
+
const g = i.textContent.split(J), V = g.length - 1;
|
|
322
322
|
if (V > 0) {
|
|
323
323
|
i.textContent = Bt ? Bt.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let Y = 0; Y < V; Y++) i.append(g[Y], mt()), nt.nextNode(), h.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(g[V], mt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (i.nodeType === 8) if (i.data === ke) h.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let g = -1;
|
|
331
|
-
for (; (g = i.data.indexOf(
|
|
331
|
+
for (; (g = i.data.indexOf(J, g + 1)) !== -1; ) h.push({ type: 7, index: r }), g += J.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
@@ -338,12 +338,12 @@ class wt {
|
|
|
338
338
|
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function dt(o, t, e = o, n) {
|
|
342
342
|
var s, c;
|
|
343
|
-
if (t ===
|
|
343
|
+
if (t === tt) return t;
|
|
344
344
|
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
345
|
const r = xt(t) ? void 0 : t._$litDirective$;
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !== r && ((c = i == null ? void 0 : i._$AO) == null || c.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 =
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== r && ((c = i == null ? void 0 : i._$AO) == null || c.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 = dt(o, i._$AS(o, t.values), i, n)), t;
|
|
347
347
|
}
|
|
348
348
|
class Ne {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -393,7 +393,7 @@ class Et {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = dt(this, t, e), xt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== tt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Fe(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 Et {
|
|
|
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 zt {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
@@ -449,11 +449,11 @@ class Ot {
|
|
|
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 =
|
|
452
|
+
if (r === void 0) t = dt(this, t, e, 0), s = !xt(t) || t !== this._$AH && t !== tt, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
455
|
let h, v;
|
|
456
|
-
for (t = r[0], h = 0; h < r.length - 1; h++) v =
|
|
456
|
+
for (t = r[0], h = 0; h < r.length - 1; h++) v = dt(this, c[n + h], e, h), v === tt && (v = this._$AH[h]), s || (s = !xt(v) || v !== this._$AH[h]), v === d ? t = d : t !== d && (t += (v ?? "") + r[h + 1]), this._$AH[h] = v;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -461,7 +461,7 @@ class Ot {
|
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class qe extends
|
|
464
|
+
class qe extends zt {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class qe extends Ot {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class Ve extends
|
|
472
|
+
class Ve extends zt {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,12 +477,12 @@ class Ve extends Ot {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class Ze extends
|
|
480
|
+
class Ze extends zt {
|
|
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 =
|
|
485
|
+
if ((t = dt(this, t, e, 0) ?? d) === tt) 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
|
}
|
|
@@ -499,7 +499,7 @@ class Ke {
|
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
dt(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
const jt = bt.litHtmlPolyfillSupport;
|
|
@@ -519,7 +519,7 @@ const We = (o, t, e) => {
|
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
521
|
const rt = globalThis;
|
|
522
|
-
let u = class extends
|
|
522
|
+
let u = class extends ht {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -541,7 +541,7 @@ let u = class extends ct {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return tt;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var xe;
|
|
@@ -596,7 +596,7 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function W(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
@@ -824,14 +824,14 @@ const Qe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
824
824
|
small: 12,
|
|
825
825
|
medium: 16,
|
|
826
826
|
large: 24
|
|
827
|
-
},
|
|
827
|
+
}, Oo = (o, { size: t, bgstyle: e }) => {
|
|
828
828
|
const n = Bo[t], i = e === "none-light" || e === "none-contrast";
|
|
829
829
|
return {
|
|
830
830
|
svg: Ee[o] ?? "",
|
|
831
831
|
pixelSize: n,
|
|
832
832
|
shouldApplyLogicalSize: i
|
|
833
833
|
};
|
|
834
|
-
},
|
|
834
|
+
}, et = Ee, zo = {
|
|
835
835
|
strikeDiagonal: $o
|
|
836
836
|
}, Io = {
|
|
837
837
|
success: _o,
|
|
@@ -871,7 +871,7 @@ class Ut extends ee {
|
|
|
871
871
|
}
|
|
872
872
|
render(t) {
|
|
873
873
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
874
|
-
if (t ===
|
|
874
|
+
if (t === tt) return t;
|
|
875
875
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
876
876
|
if (t === this.it) return this._t;
|
|
877
877
|
this.it = t;
|
|
@@ -888,7 +888,7 @@ Ut.directiveName = "unsafeHTML", Ut.resultType = 1;
|
|
|
888
888
|
class Nt extends Ut {
|
|
889
889
|
}
|
|
890
890
|
Nt.directiveName = "unsafeSVG", Nt.resultType = 2;
|
|
891
|
-
const
|
|
891
|
+
const E = te(Nt);
|
|
892
892
|
/**
|
|
893
893
|
* @license
|
|
894
894
|
* Copyright 2020 Google LLC
|
|
@@ -906,7 +906,7 @@ const yt = (o, t) => {
|
|
|
906
906
|
if (e === void 0) return !1;
|
|
907
907
|
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), yt(i, t);
|
|
908
908
|
return !0;
|
|
909
|
-
},
|
|
909
|
+
}, Ot = (o) => {
|
|
910
910
|
let t, e;
|
|
911
911
|
do {
|
|
912
912
|
if ((t = o._$AM) === void 0) break;
|
|
@@ -921,12 +921,12 @@ const yt = (o, t) => {
|
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
923
|
function Ho(o) {
|
|
924
|
-
this._$AN !== void 0 ? (
|
|
924
|
+
this._$AN !== void 0 ? (Ot(this), this._$AM = o, Ae(this)) : this._$AM = o;
|
|
925
925
|
}
|
|
926
926
|
function To(o, t = !1, e = 0) {
|
|
927
927
|
const n = this._$AH, i = this._$AN;
|
|
928
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) yt(n[r], !1),
|
|
929
|
-
else n != null && (yt(n, !1),
|
|
928
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) yt(n[r], !1), Ot(n[r]);
|
|
929
|
+
else n != null && (yt(n, !1), Ot(n));
|
|
930
930
|
else yt(this, o);
|
|
931
931
|
}
|
|
932
932
|
const Mo = (o) => {
|
|
@@ -941,7 +941,7 @@ class jo extends ee {
|
|
|
941
941
|
}
|
|
942
942
|
_$AO(t, e = !0) {
|
|
943
943
|
var n, i;
|
|
944
|
-
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (yt(this, t),
|
|
944
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (yt(this, t), Ot(this));
|
|
945
945
|
}
|
|
946
946
|
setValue(t) {
|
|
947
947
|
if (Do(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1097,14 +1097,14 @@ let B = class extends u {
|
|
|
1097
1097
|
render() {
|
|
1098
1098
|
if (!this.icon)
|
|
1099
1099
|
return d;
|
|
1100
|
-
const { svg: o, pixelSize: t, shouldApplyLogicalSize: e } =
|
|
1100
|
+
const { svg: o, pixelSize: t, shouldApplyLogicalSize: e } = Oo(this.icon, {
|
|
1101
1101
|
size: this.size,
|
|
1102
1102
|
bgstyle: this.bgstyle
|
|
1103
1103
|
}), n = `icon-${this.icon}`, i = e ? ` width="${t}" height="${t}"` : "", r = o.replace("<svg", `<svg aria-hidden="true" focusable="false" part="svg"${i}`).replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), s = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, c = this.showSrLabel ? null : "icon";
|
|
1104
1104
|
return l`
|
|
1105
1105
|
${this.type === "span" ? l`
|
|
1106
1106
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}" ?disabled="${this.disabled}">
|
|
1107
|
-
${
|
|
1107
|
+
${E(r)}
|
|
1108
1108
|
</span>
|
|
1109
1109
|
` : l`
|
|
1110
1110
|
<button
|
|
@@ -1114,7 +1114,7 @@ let B = class extends u {
|
|
|
1114
1114
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}"
|
|
1115
1115
|
?disabled="${this.disabled}"
|
|
1116
1116
|
>
|
|
1117
|
-
${
|
|
1117
|
+
${E(r)}
|
|
1118
1118
|
${s}
|
|
1119
1119
|
</button>
|
|
1120
1120
|
`}
|
|
@@ -1978,11 +1978,11 @@ let m = class extends Go {
|
|
|
1978
1978
|
renderIcon(o) {
|
|
1979
1979
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
1980
1980
|
if (!t) return d;
|
|
1981
|
-
const e =
|
|
1981
|
+
const e = et[t].replace(
|
|
1982
1982
|
"<svg",
|
|
1983
1983
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1984
1984
|
);
|
|
1985
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
1985
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${E(e)}</span>`;
|
|
1986
1986
|
}
|
|
1987
1987
|
renderButton() {
|
|
1988
1988
|
const o = this.text || this.textsecond;
|
|
@@ -2290,7 +2290,7 @@ var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, It = (o, t
|
|
|
2290
2290
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2291
2291
|
return n && i && Xo(t, e, i), i;
|
|
2292
2292
|
};
|
|
2293
|
-
let
|
|
2293
|
+
let pt = class extends u {
|
|
2294
2294
|
constructor() {
|
|
2295
2295
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
2296
2296
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -2310,14 +2310,14 @@ let dt = class extends u {
|
|
|
2310
2310
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
2311
2311
|
}
|
|
2312
2312
|
render() {
|
|
2313
|
-
const o =
|
|
2313
|
+
const o = et.wishlist.replace(
|
|
2314
2314
|
"<svg",
|
|
2315
2315
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2316
2316
|
);
|
|
2317
2317
|
return l`
|
|
2318
2318
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
2319
2319
|
<span class="sr-only">${this.label}</span>
|
|
2320
|
-
${
|
|
2320
|
+
${E(o)}
|
|
2321
2321
|
</button>
|
|
2322
2322
|
`;
|
|
2323
2323
|
}
|
|
@@ -2331,7 +2331,7 @@ let dt = class extends u {
|
|
|
2331
2331
|
this.label = o, this.requestUpdate();
|
|
2332
2332
|
}
|
|
2333
2333
|
};
|
|
2334
|
-
|
|
2334
|
+
pt.styles = f`
|
|
2335
2335
|
:host {
|
|
2336
2336
|
display: inline-flex;
|
|
2337
2337
|
justify-content: center;
|
|
@@ -2388,16 +2388,16 @@ dt.styles = f`
|
|
|
2388
2388
|
`;
|
|
2389
2389
|
It([
|
|
2390
2390
|
a({ type: String, reflect: !0 })
|
|
2391
|
-
],
|
|
2391
|
+
], pt.prototype, "status", 2);
|
|
2392
2392
|
It([
|
|
2393
2393
|
a({ type: String, reflect: !0 })
|
|
2394
|
-
],
|
|
2394
|
+
], pt.prototype, "ariaDescribedBy", 2);
|
|
2395
2395
|
It([
|
|
2396
2396
|
a({ type: String, reflect: !0 })
|
|
2397
|
-
],
|
|
2398
|
-
|
|
2397
|
+
], pt.prototype, "label", 2);
|
|
2398
|
+
pt = It([
|
|
2399
2399
|
y("o-wishlist-button")
|
|
2400
|
-
],
|
|
2400
|
+
], pt);
|
|
2401
2401
|
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, lt = (o, t, e, n) => {
|
|
2402
2402
|
for (var i = n > 1 ? void 0 : n ? Qo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2403
2403
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -2557,7 +2557,7 @@ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Dt = (o, t
|
|
|
2557
2557
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2558
2558
|
return n && i && ti(t, e, i), i;
|
|
2559
2559
|
};
|
|
2560
|
-
let
|
|
2560
|
+
let ut = class extends u {
|
|
2561
2561
|
constructor() {
|
|
2562
2562
|
super(...arguments), this.rating = 0;
|
|
2563
2563
|
}
|
|
@@ -2576,7 +2576,7 @@ let pt = class extends u {
|
|
|
2576
2576
|
<div class="rating">
|
|
2577
2577
|
<div class="stars">
|
|
2578
2578
|
${o.map(
|
|
2579
|
-
(t) => l`<span class="star">${
|
|
2579
|
+
(t) => l`<span class="star">${E(et[t] ?? "")}</span>`
|
|
2580
2580
|
)}
|
|
2581
2581
|
</div>
|
|
2582
2582
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -2584,7 +2584,7 @@ let pt = class extends u {
|
|
|
2584
2584
|
`;
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
|
-
|
|
2587
|
+
ut.styles = f`
|
|
2588
2588
|
svg {
|
|
2589
2589
|
width: 12px;
|
|
2590
2590
|
height: 12px;
|
|
@@ -2620,16 +2620,16 @@ pt.styles = f`
|
|
|
2620
2620
|
`;
|
|
2621
2621
|
Dt([
|
|
2622
2622
|
a({ type: Number })
|
|
2623
|
-
],
|
|
2623
|
+
], ut.prototype, "rating", 2);
|
|
2624
2624
|
Dt([
|
|
2625
2625
|
a({ type: String })
|
|
2626
|
-
],
|
|
2626
|
+
], ut.prototype, "reviewCount", 2);
|
|
2627
2627
|
Dt([
|
|
2628
2628
|
a({ type: String })
|
|
2629
|
-
],
|
|
2630
|
-
|
|
2629
|
+
], ut.prototype, "href", 2);
|
|
2630
|
+
ut = Dt([
|
|
2631
2631
|
y("o-rating")
|
|
2632
|
-
],
|
|
2632
|
+
], ut);
|
|
2633
2633
|
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
|
|
2634
2634
|
for (var i = n > 1 ? void 0 : n ? ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2635
2635
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -2850,7 +2850,7 @@ ot([
|
|
|
2850
2850
|
a({ type: Object })
|
|
2851
2851
|
], F.prototype, "swiperInstance", 2);
|
|
2852
2852
|
ot([
|
|
2853
|
-
|
|
2853
|
+
W()
|
|
2854
2854
|
], F.prototype, "focusedIndex", 2);
|
|
2855
2855
|
F = ot([
|
|
2856
2856
|
y("thumbnail-navigation")
|
|
@@ -3056,12 +3056,12 @@ ie([
|
|
|
3056
3056
|
kt = ie([
|
|
3057
3057
|
y("o-tooltip")
|
|
3058
3058
|
], kt);
|
|
3059
|
-
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor,
|
|
3059
|
+
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, G = (o, t, e, n) => {
|
|
3060
3060
|
for (var i = n > 1 ? void 0 : n ? ci(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3061
3061
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3062
3062
|
return n && i && li(t, e, i), i;
|
|
3063
3063
|
};
|
|
3064
|
-
let
|
|
3064
|
+
let M = class extends u {
|
|
3065
3065
|
constructor() {
|
|
3066
3066
|
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) => {
|
|
3067
3067
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3127,7 +3127,7 @@ let T = class extends u {
|
|
|
3127
3127
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
3128
3128
|
}
|
|
3129
3129
|
render() {
|
|
3130
|
-
const o =
|
|
3130
|
+
const o = et.checkstroke.replace(
|
|
3131
3131
|
"<svg",
|
|
3132
3132
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3133
3133
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3172,10 +3172,10 @@ let T = class extends u {
|
|
|
3172
3172
|
${e.url ? l`
|
|
3173
3173
|
<a href="${e.url}">
|
|
3174
3174
|
<span>${e.label}</span>
|
|
3175
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3175
|
+
${e.value === this.value ? l`<span class="check">${E(o)}</span>` : null}
|
|
3176
3176
|
</a>` : l`
|
|
3177
3177
|
<span>${e.label}</span>
|
|
3178
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3178
|
+
${e.value === this.value ? l`<span class="check">${E(o)}</span>` : null}`}
|
|
3179
3179
|
</li>`
|
|
3180
3180
|
)}
|
|
3181
3181
|
</ul>` : null}
|
|
@@ -3184,7 +3184,7 @@ let T = class extends u {
|
|
|
3184
3184
|
`;
|
|
3185
3185
|
}
|
|
3186
3186
|
};
|
|
3187
|
-
|
|
3187
|
+
M.styles = f`
|
|
3188
3188
|
:host {
|
|
3189
3189
|
display: inline-block;
|
|
3190
3190
|
position: relative;
|
|
@@ -3323,33 +3323,33 @@ T.styles = f`
|
|
|
3323
3323
|
display: none;
|
|
3324
3324
|
}
|
|
3325
3325
|
`;
|
|
3326
|
-
|
|
3326
|
+
G([
|
|
3327
3327
|
a({ type: Array, reflect: !0 })
|
|
3328
|
-
],
|
|
3329
|
-
|
|
3328
|
+
], M.prototype, "options", 2);
|
|
3329
|
+
G([
|
|
3330
3330
|
a({ type: String, reflect: !0 })
|
|
3331
|
-
],
|
|
3332
|
-
|
|
3331
|
+
], M.prototype, "value", 2);
|
|
3332
|
+
G([
|
|
3333
3333
|
a({ type: String, reflect: !0 })
|
|
3334
|
-
],
|
|
3335
|
-
|
|
3334
|
+
], M.prototype, "name", 2);
|
|
3335
|
+
G([
|
|
3336
3336
|
a({ type: Boolean, reflect: !0 })
|
|
3337
|
-
],
|
|
3338
|
-
|
|
3337
|
+
], M.prototype, "disabled", 2);
|
|
3338
|
+
G([
|
|
3339
3339
|
a({ type: String, reflect: !0 })
|
|
3340
|
-
],
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
],
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
],
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
],
|
|
3350
|
-
|
|
3340
|
+
], M.prototype, "width", 2);
|
|
3341
|
+
G([
|
|
3342
|
+
W()
|
|
3343
|
+
], M.prototype, "open", 2);
|
|
3344
|
+
G([
|
|
3345
|
+
W()
|
|
3346
|
+
], M.prototype, "activeIndex", 2);
|
|
3347
|
+
G([
|
|
3348
|
+
W()
|
|
3349
|
+
], M.prototype, "menuWidth", 2);
|
|
3350
|
+
M = G([
|
|
3351
3351
|
y("o-dropdown")
|
|
3352
|
-
],
|
|
3352
|
+
], M);
|
|
3353
3353
|
var hi = Object.getOwnPropertyDescriptor, di = (o, t, e, n) => {
|
|
3354
3354
|
for (var i = n > 1 ? void 0 : n ? hi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3355
3355
|
(s = o[r]) && (i = s(i) || i);
|
|
@@ -3411,7 +3411,7 @@ var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, U = (o, t,
|
|
|
3411
3411
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3412
3412
|
return n && i && pi(t, e, i), i;
|
|
3413
3413
|
};
|
|
3414
|
-
let
|
|
3414
|
+
let O = class extends u {
|
|
3415
3415
|
constructor() {
|
|
3416
3416
|
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) => {
|
|
3417
3417
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3477,7 +3477,7 @@ let z = class extends u {
|
|
|
3477
3477
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
3478
3478
|
}
|
|
3479
3479
|
render() {
|
|
3480
|
-
const o =
|
|
3480
|
+
const o = et.checkstroke.replace(
|
|
3481
3481
|
"<svg",
|
|
3482
3482
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3483
3483
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3536,7 +3536,7 @@ let z = class extends u {
|
|
|
3536
3536
|
<div class="right">
|
|
3537
3537
|
<span class="additional-text">${P(e.additionaltext)}</span>
|
|
3538
3538
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3539
|
-
<span class="check">${
|
|
3539
|
+
<span class="check">${E(o)}</span>` : null}
|
|
3540
3540
|
</div>
|
|
3541
3541
|
</a>
|
|
3542
3542
|
</li>
|
|
@@ -3548,7 +3548,7 @@ let z = class extends u {
|
|
|
3548
3548
|
`;
|
|
3549
3549
|
}
|
|
3550
3550
|
};
|
|
3551
|
-
|
|
3551
|
+
O.styles = f`
|
|
3552
3552
|
:host {
|
|
3553
3553
|
display: inline-block;
|
|
3554
3554
|
position: relative;
|
|
@@ -3727,34 +3727,34 @@ z.styles = f`
|
|
|
3727
3727
|
`;
|
|
3728
3728
|
U([
|
|
3729
3729
|
a({ type: Array, reflect: !0 })
|
|
3730
|
-
],
|
|
3730
|
+
], O.prototype, "options", 2);
|
|
3731
3731
|
U([
|
|
3732
3732
|
a({ type: String, reflect: !0 })
|
|
3733
|
-
],
|
|
3733
|
+
], O.prototype, "value", 2);
|
|
3734
3734
|
U([
|
|
3735
3735
|
a({ type: String, reflect: !0 })
|
|
3736
|
-
],
|
|
3736
|
+
], O.prototype, "name", 2);
|
|
3737
3737
|
U([
|
|
3738
3738
|
a({ type: String, reflect: !0 })
|
|
3739
|
-
],
|
|
3739
|
+
], O.prototype, "additionaltext", 2);
|
|
3740
3740
|
U([
|
|
3741
3741
|
a({ type: Boolean, reflect: !0 })
|
|
3742
|
-
],
|
|
3742
|
+
], O.prototype, "disabled", 2);
|
|
3743
3743
|
U([
|
|
3744
3744
|
a({ type: String, reflect: !0 })
|
|
3745
|
-
],
|
|
3745
|
+
], O.prototype, "width", 2);
|
|
3746
3746
|
U([
|
|
3747
|
-
|
|
3748
|
-
],
|
|
3747
|
+
W()
|
|
3748
|
+
], O.prototype, "open", 2);
|
|
3749
3749
|
U([
|
|
3750
|
-
|
|
3751
|
-
],
|
|
3750
|
+
W()
|
|
3751
|
+
], O.prototype, "activeIndex", 2);
|
|
3752
3752
|
U([
|
|
3753
|
-
|
|
3754
|
-
],
|
|
3755
|
-
|
|
3753
|
+
W()
|
|
3754
|
+
], O.prototype, "menuWidth", 2);
|
|
3755
|
+
O = U([
|
|
3756
3756
|
y("o-dropdown-variant")
|
|
3757
|
-
],
|
|
3757
|
+
], O);
|
|
3758
3758
|
/**
|
|
3759
3759
|
* @license
|
|
3760
3760
|
* Copyright 2018 Google LLC
|
|
@@ -3783,7 +3783,7 @@ const Le = "important", fi = " !" + Le, vi = te(class extends ee {
|
|
|
3783
3783
|
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? Le : "") : e[n] = i;
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
3786
|
-
return
|
|
3786
|
+
return tt;
|
|
3787
3787
|
}
|
|
3788
3788
|
});
|
|
3789
3789
|
var gi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, ne = (o, t, e, n) => {
|
|
@@ -3903,13 +3903,13 @@ ne([
|
|
|
3903
3903
|
_t = ne([
|
|
3904
3904
|
y("o-reassurance")
|
|
3905
3905
|
], _t);
|
|
3906
|
-
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor,
|
|
3906
|
+
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, X = (o, t, e, n) => {
|
|
3907
3907
|
for (var i = n > 1 ? void 0 : n ? mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3908
3908
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3909
3909
|
return n && i && yi(t, e, i), i;
|
|
3910
3910
|
};
|
|
3911
3911
|
const xi = Jt(u);
|
|
3912
|
-
let
|
|
3912
|
+
let z = class extends xi {
|
|
3913
3913
|
constructor() {
|
|
3914
3914
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3915
3915
|
}
|
|
@@ -3933,7 +3933,7 @@ let O = class extends xi {
|
|
|
3933
3933
|
`;
|
|
3934
3934
|
}
|
|
3935
3935
|
};
|
|
3936
|
-
|
|
3936
|
+
z.styles = f`
|
|
3937
3937
|
:host {
|
|
3938
3938
|
cursor: pointer;
|
|
3939
3939
|
display: inline-flex;
|
|
@@ -4027,33 +4027,33 @@ O.styles = f`
|
|
|
4027
4027
|
align-items: center;
|
|
4028
4028
|
}
|
|
4029
4029
|
`;
|
|
4030
|
-
|
|
4030
|
+
X([
|
|
4031
4031
|
a({ type: String, reflect: !0 })
|
|
4032
|
-
],
|
|
4033
|
-
|
|
4032
|
+
], z.prototype, "link", 2);
|
|
4033
|
+
X([
|
|
4034
4034
|
a({ reflect: !0 })
|
|
4035
|
-
],
|
|
4036
|
-
|
|
4035
|
+
], z.prototype, "name", 2);
|
|
4036
|
+
X([
|
|
4037
4037
|
a({ reflect: !0 })
|
|
4038
|
-
],
|
|
4039
|
-
|
|
4038
|
+
], z.prototype, "value", 2);
|
|
4039
|
+
X([
|
|
4040
4040
|
a({ type: String })
|
|
4041
|
-
],
|
|
4042
|
-
|
|
4041
|
+
], z.prototype, "text", 2);
|
|
4042
|
+
X([
|
|
4043
4043
|
a({ type: String, reflect: !0 })
|
|
4044
|
-
],
|
|
4045
|
-
|
|
4044
|
+
], z.prototype, "size", 2);
|
|
4045
|
+
X([
|
|
4046
4046
|
a({ type: Boolean, reflect: !0 })
|
|
4047
|
-
],
|
|
4048
|
-
|
|
4047
|
+
], z.prototype, "selected", 2);
|
|
4048
|
+
X([
|
|
4049
4049
|
a({ type: Boolean, reflect: !0 })
|
|
4050
|
-
],
|
|
4051
|
-
|
|
4050
|
+
], z.prototype, "fullwidth", 2);
|
|
4051
|
+
X([
|
|
4052
4052
|
a({ type: Boolean, reflect: !0 })
|
|
4053
|
-
],
|
|
4054
|
-
|
|
4053
|
+
], z.prototype, "inactive", 2);
|
|
4054
|
+
z = X([
|
|
4055
4055
|
y("o-chip")
|
|
4056
|
-
],
|
|
4056
|
+
], z);
|
|
4057
4057
|
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, re = (o, t, e, n) => {
|
|
4058
4058
|
for (var i = n > 1 ? void 0 : n ? $i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4059
4059
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4064,7 +4064,7 @@ let Ct = class extends u {
|
|
|
4064
4064
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
4065
4065
|
}
|
|
4066
4066
|
onChipSelected(o) {
|
|
4067
|
-
const t = o.target instanceof
|
|
4067
|
+
const t = o.target instanceof z ? o.target : null;
|
|
4068
4068
|
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) => {
|
|
4069
4069
|
e !== t && (e.selected = !1);
|
|
4070
4070
|
}));
|
|
@@ -4110,18 +4110,18 @@ let I = class extends Ci {
|
|
|
4110
4110
|
this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
|
|
4111
4111
|
}
|
|
4112
4112
|
crossIcon() {
|
|
4113
|
-
const o =
|
|
4113
|
+
const o = et[this.crossIconName].replace(
|
|
4114
4114
|
"<svg",
|
|
4115
4115
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4116
4116
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4117
|
-
return l`<span class="cross-icon">${
|
|
4117
|
+
return l`<span class="cross-icon">${E(o)}</span>`;
|
|
4118
4118
|
}
|
|
4119
4119
|
strikeThroughImg() {
|
|
4120
|
-
const o =
|
|
4120
|
+
const o = zo[this.strikethroughImgName].replace(
|
|
4121
4121
|
"<svg",
|
|
4122
4122
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4123
4123
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4124
|
-
return
|
|
4124
|
+
return E(o);
|
|
4125
4125
|
}
|
|
4126
4126
|
render() {
|
|
4127
4127
|
const o = this.text;
|
|
@@ -4301,19 +4301,19 @@ N([
|
|
|
4301
4301
|
I = N([
|
|
4302
4302
|
y("o-filter-chip")
|
|
4303
4303
|
], I);
|
|
4304
|
-
var Si = Object.defineProperty,
|
|
4304
|
+
var Si = Object.defineProperty, H = (o, t, e, n) => {
|
|
4305
4305
|
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
4306
4306
|
(s = o[r]) && (i = s(t, e, i) || i);
|
|
4307
4307
|
return i && Si(t, e, i), i;
|
|
4308
4308
|
};
|
|
4309
4309
|
const ae = class ae extends u {
|
|
4310
4310
|
constructor() {
|
|
4311
|
-
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "";
|
|
4311
|
+
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "", this.outOfStock = !1;
|
|
4312
4312
|
}
|
|
4313
4313
|
onClick(t) {
|
|
4314
|
-
var n, i;
|
|
4314
|
+
var n, i, r;
|
|
4315
4315
|
const e = t.target;
|
|
4316
|
-
(n = e == null ? void 0 : e.classList) != null && n.contains("add-to-bag") || (
|
|
4316
|
+
(n = e == null ? void 0 : e.classList) != null && n.contains("add-to-bag") || (i = e == null ? void 0 : e.classList) != null && i.contains("js-availability-notify-details-cart") || ((r = this.onClickTile) == null || r.call(this), this.dispatchEvent(
|
|
4317
4317
|
new CustomEvent("tile-click", { bubbles: !0, composed: !0 })
|
|
4318
4318
|
));
|
|
4319
4319
|
}
|
|
@@ -4340,13 +4340,13 @@ const ae = class ae extends u {
|
|
|
4340
4340
|
` : l`
|
|
4341
4341
|
<o-icon-button
|
|
4342
4342
|
@click=${this.onClickIcons}
|
|
4343
|
-
icon
|
|
4343
|
+
icon=${this.outOfStock ? "notifyme" : "cart"}
|
|
4344
4344
|
size="small"
|
|
4345
4345
|
bgstyle="background-contrast"
|
|
4346
4346
|
type="span"
|
|
4347
4347
|
status="empty"
|
|
4348
4348
|
strokewidth="0"
|
|
4349
|
-
class
|
|
4349
|
+
class=${this.outOfStock ? "js-availability-notify-details-cart" : "add-to-bag"}
|
|
4350
4350
|
></o-icon-button>
|
|
4351
4351
|
`;
|
|
4352
4352
|
}
|
|
@@ -4359,7 +4359,9 @@ const ae = class ae extends u {
|
|
|
4359
4359
|
>
|
|
4360
4360
|
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
4361
4361
|
<div class="info">
|
|
4362
|
-
${this.
|
|
4362
|
+
${this.outOfStock ? l`<o-tag type="nostock" role="status" aria-live="polite"
|
|
4363
|
+
>${this.tagText}</o-tag
|
|
4364
|
+
>` : this.tagText ? l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>` : ""}
|
|
4363
4365
|
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
4364
4366
|
<div class="details">
|
|
4365
4367
|
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
@@ -4485,47 +4487,50 @@ ae.styles = f`
|
|
|
4485
4487
|
cursor: pointer;
|
|
4486
4488
|
}
|
|
4487
4489
|
`;
|
|
4488
|
-
let
|
|
4489
|
-
|
|
4490
|
+
let S = ae;
|
|
4491
|
+
H([
|
|
4490
4492
|
a({ type: String })
|
|
4491
|
-
],
|
|
4492
|
-
|
|
4493
|
+
], S.prototype, "type");
|
|
4494
|
+
H([
|
|
4493
4495
|
a({ type: String })
|
|
4494
|
-
],
|
|
4495
|
-
|
|
4496
|
+
], S.prototype, "titleProduct");
|
|
4497
|
+
H([
|
|
4496
4498
|
a({ type: String })
|
|
4497
|
-
],
|
|
4498
|
-
|
|
4499
|
+
], S.prototype, "volume");
|
|
4500
|
+
H([
|
|
4499
4501
|
a({ type: String })
|
|
4500
|
-
],
|
|
4501
|
-
|
|
4502
|
+
], S.prototype, "perLiter");
|
|
4503
|
+
H([
|
|
4502
4504
|
a({ type: String })
|
|
4503
|
-
],
|
|
4504
|
-
|
|
4505
|
+
], S.prototype, "mainPrice");
|
|
4506
|
+
H([
|
|
4505
4507
|
a({ type: String })
|
|
4506
|
-
],
|
|
4507
|
-
|
|
4508
|
+
], S.prototype, "imageUrl");
|
|
4509
|
+
H([
|
|
4508
4510
|
a({ type: String })
|
|
4509
|
-
],
|
|
4510
|
-
|
|
4511
|
+
], S.prototype, "altImage");
|
|
4512
|
+
H([
|
|
4511
4513
|
a({ type: Boolean })
|
|
4512
|
-
],
|
|
4513
|
-
|
|
4514
|
+
], S.prototype, "fullwidth");
|
|
4515
|
+
H([
|
|
4514
4516
|
a({ type: String })
|
|
4515
|
-
],
|
|
4516
|
-
|
|
4517
|
+
], S.prototype, "tagText");
|
|
4518
|
+
H([
|
|
4519
|
+
a({ type: Boolean })
|
|
4520
|
+
], S.prototype, "outOfStock");
|
|
4521
|
+
H([
|
|
4517
4522
|
a({ attribute: !1 })
|
|
4518
|
-
],
|
|
4519
|
-
|
|
4523
|
+
], S.prototype, "onClickTile");
|
|
4524
|
+
H([
|
|
4520
4525
|
a({ attribute: !1 })
|
|
4521
|
-
],
|
|
4522
|
-
customElements.define("mini-tile",
|
|
4526
|
+
], S.prototype, "onClickIcon");
|
|
4527
|
+
customElements.define("mini-tile", S);
|
|
4523
4528
|
var Ei = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Ht = (o, t, e, n) => {
|
|
4524
4529
|
for (var i = n > 1 ? void 0 : n ? Ai(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4525
4530
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4526
4531
|
return n && i && Ei(t, e, i), i;
|
|
4527
4532
|
};
|
|
4528
|
-
let
|
|
4533
|
+
let ft = class extends u {
|
|
4529
4534
|
constructor() {
|
|
4530
4535
|
super(...arguments), this.variant = "cart", this.text = 0, this.srlabel = "";
|
|
4531
4536
|
}
|
|
@@ -4537,7 +4542,7 @@ let ut = class extends u {
|
|
|
4537
4542
|
`;
|
|
4538
4543
|
}
|
|
4539
4544
|
};
|
|
4540
|
-
|
|
4545
|
+
ft.styles = f`
|
|
4541
4546
|
:host([variant]) {
|
|
4542
4547
|
--badge-width: 19px;
|
|
4543
4548
|
display: inline-block;
|
|
@@ -4577,17 +4582,17 @@ ut.styles = f`
|
|
|
4577
4582
|
`;
|
|
4578
4583
|
Ht([
|
|
4579
4584
|
a({ type: String, reflect: !0 })
|
|
4580
|
-
],
|
|
4585
|
+
], ft.prototype, "variant", 2);
|
|
4581
4586
|
Ht([
|
|
4582
4587
|
a({ type: Number })
|
|
4583
|
-
],
|
|
4588
|
+
], ft.prototype, "text", 2);
|
|
4584
4589
|
Ht([
|
|
4585
4590
|
a({ type: String })
|
|
4586
|
-
],
|
|
4587
|
-
|
|
4591
|
+
], ft.prototype, "srlabel", 2);
|
|
4592
|
+
ft = Ht([
|
|
4588
4593
|
y("o-badge")
|
|
4589
|
-
],
|
|
4590
|
-
var Li = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor,
|
|
4594
|
+
], ft);
|
|
4595
|
+
var Li = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
4591
4596
|
for (var i = n > 1 ? void 0 : n ? Pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4592
4597
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4593
4598
|
return n && i && Li(t, e, i), i;
|
|
@@ -4640,7 +4645,7 @@ let A = class extends u {
|
|
|
4640
4645
|
return l`
|
|
4641
4646
|
<div class="o-toast">
|
|
4642
4647
|
<div class="o-toast-icon">
|
|
4643
|
-
${
|
|
4648
|
+
${E(t)}
|
|
4644
4649
|
</div>
|
|
4645
4650
|
<div class="o-toast-text">
|
|
4646
4651
|
${this.text}
|
|
@@ -4734,50 +4739,50 @@ A.styles = f`
|
|
|
4734
4739
|
height: 16px;
|
|
4735
4740
|
}
|
|
4736
4741
|
`;
|
|
4737
|
-
|
|
4742
|
+
T([
|
|
4738
4743
|
a({ type: String, reflect: !0 })
|
|
4739
4744
|
], A.prototype, "icon", 2);
|
|
4740
|
-
|
|
4745
|
+
T([
|
|
4741
4746
|
a({ type: String, reflect: !0 })
|
|
4742
4747
|
], A.prototype, "text", 2);
|
|
4743
|
-
|
|
4748
|
+
T([
|
|
4744
4749
|
a({ type: String, reflect: !0 })
|
|
4745
4750
|
], A.prototype, "verticalanchor", 2);
|
|
4746
|
-
|
|
4751
|
+
T([
|
|
4747
4752
|
a({ type: String, reflect: !0 })
|
|
4748
4753
|
], A.prototype, "horizontalanchor", 2);
|
|
4749
|
-
|
|
4754
|
+
T([
|
|
4750
4755
|
a({ type: Number, reflect: !0 })
|
|
4751
4756
|
], A.prototype, "verticaloffset", 2);
|
|
4752
|
-
|
|
4757
|
+
T([
|
|
4753
4758
|
a({ type: Number, reflect: !0 })
|
|
4754
4759
|
], A.prototype, "horizontaloffset", 2);
|
|
4755
|
-
|
|
4760
|
+
T([
|
|
4756
4761
|
a({ type: Number, reflect: !0 })
|
|
4757
4762
|
], A.prototype, "animationduration", 2);
|
|
4758
|
-
|
|
4763
|
+
T([
|
|
4759
4764
|
a({ type: String, reflect: !0 })
|
|
4760
4765
|
], A.prototype, "animationaxis", 2);
|
|
4761
|
-
|
|
4766
|
+
T([
|
|
4762
4767
|
a({ type: Boolean, reflect: !0 })
|
|
4763
4768
|
], A.prototype, "animated", 2);
|
|
4764
|
-
|
|
4769
|
+
T([
|
|
4765
4770
|
a({ type: Number, reflect: !0 })
|
|
4766
4771
|
], A.prototype, "lifeduration", 2);
|
|
4767
|
-
|
|
4772
|
+
T([
|
|
4768
4773
|
a({ type: Boolean, reflect: !0 })
|
|
4769
4774
|
], A.prototype, "multiline", 2);
|
|
4770
|
-
A =
|
|
4775
|
+
A = T([
|
|
4771
4776
|
y("o-toast")
|
|
4772
4777
|
], A);
|
|
4773
|
-
var Bi = Object.defineProperty,
|
|
4774
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4778
|
+
var Bi = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
|
|
4779
|
+
for (var i = n > 1 ? void 0 : n ? Oi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4775
4780
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4776
4781
|
return n && i && Bi(t, e, i), i;
|
|
4777
4782
|
};
|
|
4778
|
-
let
|
|
4783
|
+
let zi = 0, L = class extends u {
|
|
4779
4784
|
constructor() {
|
|
4780
|
-
super(), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Checkbox", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-checkbox-${++
|
|
4785
|
+
super(), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Checkbox", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-checkbox-${++zi}`);
|
|
4781
4786
|
}
|
|
4782
4787
|
toggle() {
|
|
4783
4788
|
this.disabled || (this.indeterminate ? (this.indeterminate = !1, this.checked = !0) : this.checked = !this.checked, this.syncInput(), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
|
|
@@ -4792,7 +4797,7 @@ let Oi = 0, L = class extends u {
|
|
|
4792
4797
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4793
4798
|
}
|
|
4794
4799
|
render() {
|
|
4795
|
-
const o =
|
|
4800
|
+
const o = E(et.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = E(et.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4796
4801
|
return l`
|
|
4797
4802
|
<input
|
|
4798
4803
|
type="checkbox"
|
|
@@ -5218,14 +5223,14 @@ se([
|
|
|
5218
5223
|
St = se([
|
|
5219
5224
|
y("o-breadcrumb")
|
|
5220
5225
|
], St);
|
|
5221
|
-
var Ri = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor,
|
|
5226
|
+
var Ri = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, ct = (o, t, e, n) => {
|
|
5222
5227
|
for (var i = n > 1 ? void 0 : n ? Ui(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5223
5228
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5224
5229
|
return n && i && Ri(t, e, i), i;
|
|
5225
5230
|
};
|
|
5226
|
-
let
|
|
5231
|
+
let K = class extends u {
|
|
5227
5232
|
constructor() {
|
|
5228
|
-
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1;
|
|
5233
|
+
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1, this.showHover = !1;
|
|
5229
5234
|
}
|
|
5230
5235
|
render() {
|
|
5231
5236
|
return l`<div class="card">
|
|
@@ -5242,7 +5247,7 @@ let et = class extends u {
|
|
|
5242
5247
|
</div>`;
|
|
5243
5248
|
}
|
|
5244
5249
|
};
|
|
5245
|
-
|
|
5250
|
+
K.styles = f`
|
|
5246
5251
|
:host {
|
|
5247
5252
|
--card-width : 175px;
|
|
5248
5253
|
--card-height : 260px;
|
|
@@ -5289,6 +5294,18 @@ et.styles = f`
|
|
|
5289
5294
|
z-index: 2;
|
|
5290
5295
|
}
|
|
5291
5296
|
|
|
5297
|
+
.card-img.base {
|
|
5298
|
+
z-index: 1;
|
|
5299
|
+
}
|
|
5300
|
+
|
|
5301
|
+
:host([showhover]) .card-img.hover {
|
|
5302
|
+
opacity: 1;
|
|
5303
|
+
}
|
|
5304
|
+
|
|
5305
|
+
:host([showhover]) .card-img.base {
|
|
5306
|
+
opacity: 0;
|
|
5307
|
+
}
|
|
5308
|
+
|
|
5292
5309
|
@media (hover: hover) and (pointer: fine) {
|
|
5293
5310
|
.card:hover .card-img.hover {
|
|
5294
5311
|
opacity: 1;
|
|
@@ -5315,24 +5332,27 @@ et.styles = f`
|
|
|
5315
5332
|
opacity: var(--overlay-opacity, 1);
|
|
5316
5333
|
}
|
|
5317
5334
|
`;
|
|
5318
|
-
|
|
5335
|
+
ct([
|
|
5319
5336
|
a({ type: String })
|
|
5320
|
-
],
|
|
5321
|
-
|
|
5337
|
+
], K.prototype, "imageUrl", 2);
|
|
5338
|
+
ct([
|
|
5322
5339
|
a({ type: String })
|
|
5323
|
-
],
|
|
5324
|
-
|
|
5340
|
+
], K.prototype, "imageAlt", 2);
|
|
5341
|
+
ct([
|
|
5325
5342
|
a({ type: String })
|
|
5326
|
-
],
|
|
5327
|
-
|
|
5343
|
+
], K.prototype, "hoverUrl", 2);
|
|
5344
|
+
ct([
|
|
5328
5345
|
a({ type: String })
|
|
5329
|
-
],
|
|
5330
|
-
|
|
5346
|
+
], K.prototype, "hoverAlt", 2);
|
|
5347
|
+
ct([
|
|
5331
5348
|
a({ type: Boolean, reflect: !0 })
|
|
5332
|
-
],
|
|
5333
|
-
|
|
5349
|
+
], K.prototype, "dimmed", 2);
|
|
5350
|
+
ct([
|
|
5351
|
+
a({ type: Boolean, reflect: !0, attribute: "showhover" })
|
|
5352
|
+
], K.prototype, "showHover", 2);
|
|
5353
|
+
K = ct([
|
|
5334
5354
|
y("o-arch-image")
|
|
5335
|
-
],
|
|
5355
|
+
], K);
|
|
5336
5356
|
const Ni = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
5337
5357
|
<svg
|
|
5338
5358
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
@@ -5536,7 +5556,7 @@ const le = class le extends u {
|
|
|
5536
5556
|
<header part="header" class="${e}">
|
|
5537
5557
|
${this.showBackButton ? this._renderBackButton() : null}
|
|
5538
5558
|
<div class="brand">
|
|
5539
|
-
<span slot="logo${this.contrast ? "-contrast" : ""}">${
|
|
5559
|
+
<span slot="logo${this.contrast ? "-contrast" : ""}">${E(Ni)}</span>
|
|
5540
5560
|
</div>
|
|
5541
5561
|
<div part="close${this.contrast ? "-contrast" : ""}">${this._renderCloseButton()}</div>
|
|
5542
5562
|
</header>
|
|
@@ -5728,10 +5748,10 @@ C([
|
|
|
5728
5748
|
a({ type: Boolean, attribute: "hide-header-on-scroll" })
|
|
5729
5749
|
], $.prototype, "hideHeaderOnScroll", 2);
|
|
5730
5750
|
C([
|
|
5731
|
-
|
|
5751
|
+
W()
|
|
5732
5752
|
], $.prototype, "_labelId", 2);
|
|
5733
5753
|
C([
|
|
5734
|
-
|
|
5754
|
+
W()
|
|
5735
5755
|
], $.prototype, "_headerHidden", 2);
|
|
5736
5756
|
customElements.define("o-popin", $);
|
|
5737
5757
|
var Zi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|