@florid-kit/components 0.10.1 → 0.10.4
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/mediumtile.d.ts +1 -1
- package/components/popin.d.ts +6 -0
- package/index.js +87 -57
- package/index.mjs +337 -276
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -45,10 +45,10 @@ const Ae = (o) => new xe(typeof o == "string" ? o : o + "", void 0, Zt), f = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Pe, defineProperty: Be, getOwnPropertyDescriptor: ze, getOwnPropertyNames: Oe, getOwnPropertySymbols: Ie, getPrototypeOf: De } = Object,
|
|
48
|
+
const { is: Pe, defineProperty: Be, getOwnPropertyDescriptor: ze, getOwnPropertyNames: Oe, getOwnPropertySymbols: Ie, getPrototypeOf: De } = Object, Q = globalThis, he = Q.trustedTypes, He = he ? he.emptyScript : "", Ht = Q.reactiveElementPolyfillSupport, vt = (o, t) => o, Pt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
o = o ?
|
|
51
|
+
o = o ? He : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -74,7 +74,7 @@ const { is: Pe, defineProperty: Be, getOwnPropertyDescriptor: ze, getOwnProperty
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
} }, Kt = (o, t) => !Pe(o, t), de = { attribute: !0, type: String, converter: Pt, reflect: !1, useDefault: !1, hasChanged: Kt };
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let ct = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -276,28 +276,28 @@ let ct = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
ct.elementStyles = [], ct.shadowRootOptions = { mode: "open" }, ct[vt("elementProperties")] = /* @__PURE__ */ new Map(), ct[vt("finalized")] = /* @__PURE__ */ new Map(),
|
|
279
|
+
ct.elementStyles = [], ct.shadowRootOptions = { mode: "open" }, ct[vt("elementProperties")] = /* @__PURE__ */ new Map(), ct[vt("finalized")] = /* @__PURE__ */ new Map(), Ht == null || Ht({ ReactiveElement: ct }), (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 gt = globalThis, Bt = gt.trustedTypes, pe = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, we = "$lit$",
|
|
286
|
-
\f\r]`, ft = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ue = /-->/g, fe = />/g, it = RegExp(`>|${
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ve = /'/g, ge = /"/g, ke = /^(?:script|style|textarea|title)$/i,
|
|
285
|
+
const gt = globalThis, Bt = gt.trustedTypes, pe = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, we = "$lit$", J = `lit$${Math.random().toFixed(9).slice(2)}$`, $e = "?" + J, Te = `<${$e}>`, st = document, yt = () => st.createComment(""), mt = (o) => o === null || typeof o != "object" && typeof o != "function", Wt = Array.isArray, Me = (o) => Wt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Tt = `[
|
|
286
|
+
\f\r]`, ft = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ue = /-->/g, fe = />/g, it = RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ve = /'/g, ge = /"/g, ke = /^(?:script|style|textarea|title)$/i, je = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = je(1), tt = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), be = /* @__PURE__ */ new WeakMap(), nt = st.createTreeWalker(st, 129);
|
|
288
288
|
function _e(o, t) {
|
|
289
289
|
if (!Wt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return pe !== void 0 ? pe.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const Fe = (o, t) => {
|
|
293
293
|
const e = o.length - 1, n = [];
|
|
294
294
|
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ft;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const h = o[c];
|
|
297
|
-
let
|
|
298
|
-
for (; q < h.length && (s.lastIndex = q,
|
|
299
|
-
const
|
|
300
|
-
r += s === ft ? h +
|
|
297
|
+
let w, _, v = -1, q = 0;
|
|
298
|
+
for (; q < h.length && (s.lastIndex = q, _ = s.exec(h), _ !== null); ) q = s.lastIndex, s === ft ? _[1] === "!--" ? s = ue : _[1] !== void 0 ? s = fe : _[2] !== void 0 ? (ke.test(_[2]) && (i = RegExp("</" + _[2], "g")), s = it) : _[3] !== void 0 && (s = it) : s === it ? _[0] === ">" ? (s = i ?? ft, v = -1) : _[1] === void 0 ? v = -2 : (v = s.lastIndex - _[2].length, w = _[1], s = _[3] === void 0 ? it : _[3] === '"' ? ge : ve) : s === ge || s === ve ? s = it : s === ue || s === fe ? s = ft : (s = it, i = void 0);
|
|
299
|
+
const Y = s === it && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === ft ? h + Te : v >= 0 ? (n.push(w), h.slice(0, v) + we + h.slice(v) + J + Y) : h + J + (v === -2 ? c : Y);
|
|
301
301
|
}
|
|
302
302
|
return [_e(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -306,29 +306,29 @@ class xt {
|
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, s = 0;
|
|
309
|
-
const c = t.length - 1, h = this.parts, [
|
|
310
|
-
if (this.el = xt.createElement(
|
|
309
|
+
const c = t.length - 1, h = this.parts, [w, _] = Fe(t, e);
|
|
310
|
+
if (this.el = xt.createElement(w, n), nt.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const v = this.el.content.firstChild;
|
|
312
312
|
v.replaceWith(...v.childNodes);
|
|
313
313
|
}
|
|
314
314
|
for (; (i = nt.nextNode()) !== null && h.length < c; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const v of i.getAttributeNames()) if (v.endsWith(we)) {
|
|
317
|
-
const q =
|
|
318
|
-
h.push({ type: 1, index: r, name: At[2], strings:
|
|
319
|
-
} else v.startsWith(
|
|
317
|
+
const q = _[s++], Y = i.getAttribute(v).split(J), At = /([.?@])?(.*)/.exec(q);
|
|
318
|
+
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? Ue : At[1] === "?" ? Ne : At[1] === "@" ? Ve : Ot }), i.removeAttribute(v);
|
|
319
|
+
} else v.startsWith(J) && (h.push({ type: 6, index: r }), i.removeAttribute(v));
|
|
320
320
|
if (ke.test(i.tagName)) {
|
|
321
|
-
const v = i.textContent.split(
|
|
321
|
+
const v = i.textContent.split(J), q = v.length - 1;
|
|
322
322
|
if (q > 0) {
|
|
323
323
|
i.textContent = Bt ? Bt.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let Y = 0; Y < q; Y++) i.append(v[Y], yt()), nt.nextNode(), h.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(v[q], yt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (i.nodeType === 8) if (i.data === $e) h.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let v = -1;
|
|
331
|
-
for (; (v = i.data.indexOf(
|
|
331
|
+
for (; (v = i.data.indexOf(J, v + 1)) !== -1; ) h.push({ type: 7, index: r }), v += J.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
@@ -340,7 +340,7 @@ class xt {
|
|
|
340
340
|
}
|
|
341
341
|
function ht(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 = mt(t) ? void 0 : t._$litDirective$;
|
|
346
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 = ht(o, i._$AS(o, t.values), i, n)), t;
|
|
@@ -361,8 +361,8 @@ class Re {
|
|
|
361
361
|
let r = nt.nextNode(), s = 0, c = 0, h = n[0];
|
|
362
362
|
for (; h !== void 0; ) {
|
|
363
363
|
if (s === h.index) {
|
|
364
|
-
let
|
|
365
|
-
h.type === 2 ?
|
|
364
|
+
let w;
|
|
365
|
+
h.type === 2 ? w = new Et(r, r.nextSibling, this, t) : h.type === 1 ? w = new h.ctor(r, h.name, h.strings, this, t) : h.type === 6 && (w = new qe(r, this, t)), this._$AV.push(w), h = n[++c];
|
|
366
366
|
}
|
|
367
367
|
s !== (h == null ? void 0 : h.index) && (r = nt.nextNode(), s++);
|
|
368
368
|
}
|
|
@@ -393,7 +393,7 @@ class Et {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = ht(this, t, e), mt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !==
|
|
396
|
+
t = ht(this, t, e), mt(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) : Me(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -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 = ht(this, t, e, 0), s = !mt(t) || t !== this._$AH && t !==
|
|
452
|
+
if (r === void 0) t = ht(this, t, e, 0), s = !mt(t) || t !== this._$AH && t !== tt, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
|
-
let h,
|
|
456
|
-
for (t = r[0], h = 0; h < r.length - 1; h++)
|
|
455
|
+
let h, w;
|
|
456
|
+
for (t = r[0], h = 0; h < r.length - 1; h++) w = ht(this, c[n + h], e, h), w === tt && (w = this._$AH[h]), s || (s = !mt(w) || w !== this._$AH[h]), w === d ? t = d : t !== d && (t += (w ?? "") + r[h + 1]), this._$AH[h] = w;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -482,7 +482,7 @@ class Ve extends Ot {
|
|
|
482
482
|
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t = ht(this, t, e, 0) ?? d) ===
|
|
485
|
+
if ((t = ht(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
|
}
|
|
@@ -541,13 +541,13 @@ let p = 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 me;
|
|
548
548
|
p._$litElement$ = !0, p.finalized = !0, (me = rt.litElementHydrateSupport) == null || me.call(rt, { LitElement: p });
|
|
549
|
-
const
|
|
550
|
-
|
|
549
|
+
const jt = rt.litElementPolyfillSupport;
|
|
550
|
+
jt == null || jt({ LitElement: p });
|
|
551
551
|
(rt.litElementVersions ?? (rt.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
@@ -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
|
/**
|
|
@@ -635,12 +635,12 @@ f`
|
|
|
635
635
|
* Copyright 2023 Google LLC
|
|
636
636
|
* SPDX-License-Identifier: Apache-2.0
|
|
637
637
|
*/
|
|
638
|
-
const Gt = Symbol("internals"),
|
|
638
|
+
const Gt = Symbol("internals"), Ft = Symbol("privateInternals");
|
|
639
639
|
function Xt(o) {
|
|
640
640
|
var t;
|
|
641
641
|
class e extends o {
|
|
642
642
|
get [(t = Gt, t)]() {
|
|
643
|
-
return this[
|
|
643
|
+
return this[Ft] || (this[Ft] = this.attachInternals()), this[Ft];
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
return e;
|
|
@@ -846,7 +846,7 @@ class Rt extends Qt {
|
|
|
846
846
|
}
|
|
847
847
|
render(t) {
|
|
848
848
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
849
|
-
if (t ===
|
|
849
|
+
if (t === tt) return t;
|
|
850
850
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
851
851
|
if (t === this.it) return this._t;
|
|
852
852
|
this.it = t;
|
|
@@ -863,7 +863,7 @@ Rt.directiveName = "unsafeHTML", Rt.resultType = 1;
|
|
|
863
863
|
class Ut extends Rt {
|
|
864
864
|
}
|
|
865
865
|
Ut.directiveName = "unsafeSVG", Ut.resultType = 2;
|
|
866
|
-
const
|
|
866
|
+
const S = Jt(Ut);
|
|
867
867
|
/**
|
|
868
868
|
* @license
|
|
869
869
|
* Copyright 2020 Google LLC
|
|
@@ -930,7 +930,7 @@ class Do extends Qt {
|
|
|
930
930
|
reconnected() {
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
|
-
class
|
|
933
|
+
class Ho extends Do {
|
|
934
934
|
constructor() {
|
|
935
935
|
super(...arguments), this.prevData = {};
|
|
936
936
|
}
|
|
@@ -957,7 +957,7 @@ class To extends Do {
|
|
|
957
957
|
(!t || !(i in t) && n[i] === e[i]) && (n[i] = void 0);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
class
|
|
960
|
+
class To extends Ho {
|
|
961
961
|
constructor() {
|
|
962
962
|
super(...arguments), this.eventData = {};
|
|
963
963
|
}
|
|
@@ -1001,7 +1001,7 @@ class Ho extends To {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
-
class Mo extends
|
|
1004
|
+
class Mo extends To {
|
|
1005
1005
|
apply(t) {
|
|
1006
1006
|
if (!t)
|
|
1007
1007
|
return;
|
|
@@ -1057,10 +1057,10 @@ const ye = Jt(Mo);
|
|
|
1057
1057
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1058
1058
|
*/
|
|
1059
1059
|
const P = (o) => o ?? d;
|
|
1060
|
-
var
|
|
1061
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1060
|
+
var jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, F = (o, t, e, n) => {
|
|
1061
|
+
for (var i = n > 1 ? void 0 : n ? Fo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1062
1062
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1063
|
-
return n && i &&
|
|
1063
|
+
return n && i && jo(t, e, i), i;
|
|
1064
1064
|
};
|
|
1065
1065
|
let B = class extends p {
|
|
1066
1066
|
constructor() {
|
|
@@ -1074,7 +1074,7 @@ let B = class extends p {
|
|
|
1074
1074
|
return l`
|
|
1075
1075
|
${this.type === "span" ? l`
|
|
1076
1076
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1077
|
-
${
|
|
1077
|
+
${S(e)}
|
|
1078
1078
|
</span>
|
|
1079
1079
|
` : l`
|
|
1080
1080
|
<button
|
|
@@ -1083,7 +1083,7 @@ let B = class extends p {
|
|
|
1083
1083
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1084
1084
|
?disabled="${this.disabled}"
|
|
1085
1085
|
>
|
|
1086
|
-
${
|
|
1086
|
+
${S(e)}
|
|
1087
1087
|
${n}
|
|
1088
1088
|
</button>
|
|
1089
1089
|
`}
|
|
@@ -1302,34 +1302,34 @@ B.styles = f`
|
|
|
1302
1302
|
display: none;
|
|
1303
1303
|
}
|
|
1304
1304
|
`;
|
|
1305
|
-
|
|
1305
|
+
F([
|
|
1306
1306
|
a({ type: String, reflect: !0 })
|
|
1307
1307
|
], B.prototype, "bgstyle", 2);
|
|
1308
|
-
|
|
1308
|
+
F([
|
|
1309
1309
|
a({ type: String, reflect: !0 })
|
|
1310
1310
|
], B.prototype, "size", 2);
|
|
1311
|
-
|
|
1311
|
+
F([
|
|
1312
1312
|
a({ type: String, reflect: !0 })
|
|
1313
1313
|
], B.prototype, "status", 2);
|
|
1314
|
-
|
|
1314
|
+
F([
|
|
1315
1315
|
a({ type: String, reflect: !0 })
|
|
1316
1316
|
], B.prototype, "type", 2);
|
|
1317
|
-
|
|
1317
|
+
F([
|
|
1318
1318
|
a({ type: String })
|
|
1319
1319
|
], B.prototype, "strokewidth", 2);
|
|
1320
|
-
|
|
1320
|
+
F([
|
|
1321
1321
|
a({ type: String })
|
|
1322
1322
|
], B.prototype, "icon", 2);
|
|
1323
|
-
|
|
1323
|
+
F([
|
|
1324
1324
|
a({ type: Boolean, reflect: !0 })
|
|
1325
1325
|
], B.prototype, "disabled", 2);
|
|
1326
|
-
|
|
1326
|
+
F([
|
|
1327
1327
|
a({ type: Boolean })
|
|
1328
1328
|
], B.prototype, "showSrLabel", 2);
|
|
1329
|
-
|
|
1329
|
+
F([
|
|
1330
1330
|
a({ type: String })
|
|
1331
1331
|
], B.prototype, "srLabel", 2);
|
|
1332
|
-
B =
|
|
1332
|
+
B = F([
|
|
1333
1333
|
g("o-icon-button")
|
|
1334
1334
|
], B);
|
|
1335
1335
|
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, b = (o, t, e, n) => {
|
|
@@ -1878,7 +1878,7 @@ b([
|
|
|
1878
1878
|
u = b([
|
|
1879
1879
|
g("o-side-panel")
|
|
1880
1880
|
], u);
|
|
1881
|
-
var No = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor,
|
|
1881
|
+
var No = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|
|
1882
1882
|
for (var i = n > 1 ? void 0 : n ? Vo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1883
1883
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1884
1884
|
return n && i && No(t, e, i), i;
|
|
@@ -1913,7 +1913,7 @@ let y = class extends qo {
|
|
|
1913
1913
|
"<svg",
|
|
1914
1914
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1915
1915
|
);
|
|
1916
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
1916
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${S(e)}</span>`;
|
|
1917
1917
|
}
|
|
1918
1918
|
renderButton() {
|
|
1919
1919
|
const o = this.text || this.textsecond;
|
|
@@ -2156,55 +2156,55 @@ y.styles = f`
|
|
|
2156
2156
|
}
|
|
2157
2157
|
//End icon movment on hover
|
|
2158
2158
|
`;
|
|
2159
|
-
|
|
2159
|
+
k([
|
|
2160
2160
|
a()
|
|
2161
2161
|
], y.prototype, "type", 2);
|
|
2162
|
-
|
|
2162
|
+
k([
|
|
2163
2163
|
a()
|
|
2164
2164
|
], y.prototype, "value", 2);
|
|
2165
|
-
|
|
2165
|
+
k([
|
|
2166
2166
|
a({ type: String, reflect: !0 })
|
|
2167
2167
|
], y.prototype, "variant", 2);
|
|
2168
|
-
|
|
2168
|
+
k([
|
|
2169
2169
|
a({ type: String })
|
|
2170
2170
|
], y.prototype, "text", 2);
|
|
2171
|
-
|
|
2171
|
+
k([
|
|
2172
2172
|
a({ type: String })
|
|
2173
2173
|
], y.prototype, "textsecond", 2);
|
|
2174
|
-
|
|
2174
|
+
k([
|
|
2175
2175
|
a({ type: Boolean, reflect: !0 })
|
|
2176
2176
|
], y.prototype, "fullwidth", 2);
|
|
2177
|
-
|
|
2177
|
+
k([
|
|
2178
2178
|
a({ type: Boolean, reflect: !0 })
|
|
2179
2179
|
], y.prototype, "disabled", 2);
|
|
2180
|
-
|
|
2180
|
+
k([
|
|
2181
2181
|
a({ type: String })
|
|
2182
2182
|
], y.prototype, "startIconModel", 2);
|
|
2183
|
-
|
|
2183
|
+
k([
|
|
2184
2184
|
a({ type: String })
|
|
2185
2185
|
], y.prototype, "endIconModel", 2);
|
|
2186
|
-
|
|
2186
|
+
k([
|
|
2187
2187
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
2188
2188
|
], y.prototype, "startIcon", 2);
|
|
2189
|
-
|
|
2189
|
+
k([
|
|
2190
2190
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
2191
2191
|
], y.prototype, "endIcon", 2);
|
|
2192
|
-
|
|
2192
|
+
k([
|
|
2193
2193
|
a({ type: String, attribute: "paneltarget" })
|
|
2194
2194
|
], y.prototype, "panelTarget", 2);
|
|
2195
|
-
|
|
2195
|
+
k([
|
|
2196
2196
|
a({ type: String })
|
|
2197
2197
|
], y.prototype, "href", 2);
|
|
2198
|
-
|
|
2198
|
+
k([
|
|
2199
2199
|
a({ type: String })
|
|
2200
2200
|
], y.prototype, "target", 2);
|
|
2201
|
-
|
|
2201
|
+
k([
|
|
2202
2202
|
a({ type: Boolean, reflect: !0 })
|
|
2203
2203
|
], y.prototype, "underlined", 2);
|
|
2204
|
-
|
|
2204
|
+
k([
|
|
2205
2205
|
a({ type: Boolean, reflect: !0 })
|
|
2206
2206
|
], y.prototype, "withbadge", 2);
|
|
2207
|
-
y =
|
|
2207
|
+
y = k([
|
|
2208
2208
|
g("o-button")
|
|
2209
2209
|
], y);
|
|
2210
2210
|
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, It = (o, t, e, n) => {
|
|
@@ -2239,7 +2239,7 @@ let dt = class extends p {
|
|
|
2239
2239
|
return l`
|
|
2240
2240
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
2241
2241
|
<span class="sr-only">${this.label}</span>
|
|
2242
|
-
${
|
|
2242
|
+
${S(o)}
|
|
2243
2243
|
</button>
|
|
2244
2244
|
`;
|
|
2245
2245
|
}
|
|
@@ -2510,7 +2510,7 @@ let pt = class extends p {
|
|
|
2510
2510
|
<div class="rating">
|
|
2511
2511
|
<div class="stars">
|
|
2512
2512
|
${o.map(
|
|
2513
|
-
(t) => l`<span class="star">${
|
|
2513
|
+
(t) => l`<span class="star">${S(Z[t] ?? "")}</span>`
|
|
2514
2514
|
)}
|
|
2515
2515
|
</div>
|
|
2516
2516
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -2569,7 +2569,7 @@ var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ot = (o, t
|
|
|
2569
2569
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2570
2570
|
return n && i && Jo(t, e, i), i;
|
|
2571
2571
|
};
|
|
2572
|
-
let
|
|
2572
|
+
let j = class extends p {
|
|
2573
2573
|
constructor() {
|
|
2574
2574
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2575
2575
|
<o-icon-button
|
|
@@ -2660,7 +2660,7 @@ let F = class extends p {
|
|
|
2660
2660
|
`;
|
|
2661
2661
|
}
|
|
2662
2662
|
};
|
|
2663
|
-
|
|
2663
|
+
j.styles = f`
|
|
2664
2664
|
:host {
|
|
2665
2665
|
display: flex;
|
|
2666
2666
|
gap: 5px;
|
|
@@ -2768,28 +2768,28 @@ F.styles = f`
|
|
|
2768
2768
|
`;
|
|
2769
2769
|
ot([
|
|
2770
2770
|
a({ type: Array })
|
|
2771
|
-
],
|
|
2771
|
+
], j.prototype, "thumbnails", 2);
|
|
2772
2772
|
ot([
|
|
2773
2773
|
a({ type: Number })
|
|
2774
|
-
],
|
|
2774
|
+
], j.prototype, "activeIndex", 2);
|
|
2775
2775
|
ot([
|
|
2776
2776
|
a({ type: Array })
|
|
2777
|
-
],
|
|
2777
|
+
], j.prototype, "disabledIndexes", 2);
|
|
2778
2778
|
ot([
|
|
2779
2779
|
a({ type: String })
|
|
2780
|
-
],
|
|
2780
|
+
], j.prototype, "maxWidth", 2);
|
|
2781
2781
|
ot([
|
|
2782
2782
|
a({ type: String })
|
|
2783
|
-
],
|
|
2783
|
+
], j.prototype, "altressource", 2);
|
|
2784
2784
|
ot([
|
|
2785
2785
|
a({ type: Object })
|
|
2786
|
-
],
|
|
2786
|
+
], j.prototype, "swiperInstance", 2);
|
|
2787
2787
|
ot([
|
|
2788
|
-
|
|
2789
|
-
],
|
|
2790
|
-
|
|
2788
|
+
W()
|
|
2789
|
+
], j.prototype, "focusedIndex", 2);
|
|
2790
|
+
j = ot([
|
|
2791
2791
|
g("thumbnail-navigation")
|
|
2792
|
-
],
|
|
2792
|
+
], j);
|
|
2793
2793
|
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, te = (o, t, e, n) => {
|
|
2794
2794
|
for (var i = n > 1 ? void 0 : n ? ei(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2795
2795
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -2994,12 +2994,12 @@ ee([
|
|
|
2994
2994
|
$t = ee([
|
|
2995
2995
|
g("o-tooltip")
|
|
2996
2996
|
], $t);
|
|
2997
|
-
var ni = Object.defineProperty, ri = Object.getOwnPropertyDescriptor,
|
|
2997
|
+
var ni = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, G = (o, t, e, n) => {
|
|
2998
2998
|
for (var i = n > 1 ? void 0 : n ? ri(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2999
2999
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3000
3000
|
return n && i && ni(t, e, i), i;
|
|
3001
3001
|
};
|
|
3002
|
-
let
|
|
3002
|
+
let T = class extends p {
|
|
3003
3003
|
constructor() {
|
|
3004
3004
|
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) => {
|
|
3005
3005
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3110,10 +3110,10 @@ let H = class extends p {
|
|
|
3110
3110
|
${e.url ? l`
|
|
3111
3111
|
<a href="${e.url}">
|
|
3112
3112
|
<span>${e.label}</span>
|
|
3113
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3113
|
+
${e.value === this.value ? l`<span class="check">${S(o)}</span>` : null}
|
|
3114
3114
|
</a>` : l`
|
|
3115
3115
|
<span>${e.label}</span>
|
|
3116
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3116
|
+
${e.value === this.value ? l`<span class="check">${S(o)}</span>` : null}`}
|
|
3117
3117
|
</li>`
|
|
3118
3118
|
)}
|
|
3119
3119
|
</ul>` : null}
|
|
@@ -3122,7 +3122,7 @@ let H = class extends p {
|
|
|
3122
3122
|
`;
|
|
3123
3123
|
}
|
|
3124
3124
|
};
|
|
3125
|
-
|
|
3125
|
+
T.styles = f`
|
|
3126
3126
|
:host {
|
|
3127
3127
|
display: inline-block;
|
|
3128
3128
|
position: relative;
|
|
@@ -3262,33 +3262,33 @@ H.styles = f`
|
|
|
3262
3262
|
display: none;
|
|
3263
3263
|
}
|
|
3264
3264
|
`;
|
|
3265
|
-
|
|
3265
|
+
G([
|
|
3266
3266
|
a({ type: Array, reflect: !0 })
|
|
3267
|
-
],
|
|
3268
|
-
|
|
3267
|
+
], T.prototype, "options", 2);
|
|
3268
|
+
G([
|
|
3269
3269
|
a({ type: String, reflect: !0 })
|
|
3270
|
-
],
|
|
3271
|
-
|
|
3270
|
+
], T.prototype, "value", 2);
|
|
3271
|
+
G([
|
|
3272
3272
|
a({ type: String, reflect: !0 })
|
|
3273
|
-
],
|
|
3274
|
-
|
|
3273
|
+
], T.prototype, "name", 2);
|
|
3274
|
+
G([
|
|
3275
3275
|
a({ type: Boolean, reflect: !0 })
|
|
3276
|
-
],
|
|
3277
|
-
|
|
3276
|
+
], T.prototype, "disabled", 2);
|
|
3277
|
+
G([
|
|
3278
3278
|
a({ type: String, reflect: !0 })
|
|
3279
|
-
],
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
],
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
],
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
],
|
|
3289
|
-
|
|
3279
|
+
], T.prototype, "width", 2);
|
|
3280
|
+
G([
|
|
3281
|
+
W()
|
|
3282
|
+
], T.prototype, "open", 2);
|
|
3283
|
+
G([
|
|
3284
|
+
W()
|
|
3285
|
+
], T.prototype, "activeIndex", 2);
|
|
3286
|
+
G([
|
|
3287
|
+
W()
|
|
3288
|
+
], T.prototype, "menuWidth", 2);
|
|
3289
|
+
T = G([
|
|
3290
3290
|
g("o-dropdown")
|
|
3291
|
-
],
|
|
3291
|
+
], T);
|
|
3292
3292
|
var si = Object.getOwnPropertyDescriptor, ai = (o, t, e, n) => {
|
|
3293
3293
|
for (var i = n > 1 ? void 0 : n ? si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3294
3294
|
(s = o[r]) && (i = s(i) || i);
|
|
@@ -3484,7 +3484,7 @@ let z = class extends p {
|
|
|
3484
3484
|
<div class="right">
|
|
3485
3485
|
<span class="additional-text">${P(e.additionaltext)}</span>
|
|
3486
3486
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3487
|
-
<span class="check">${
|
|
3487
|
+
<span class="check">${S(o)}</span>` : null}
|
|
3488
3488
|
</div>
|
|
3489
3489
|
</a>
|
|
3490
3490
|
</li>
|
|
@@ -3691,13 +3691,13 @@ R([
|
|
|
3691
3691
|
a({ type: String, reflect: !0 })
|
|
3692
3692
|
], z.prototype, "width", 2);
|
|
3693
3693
|
R([
|
|
3694
|
-
|
|
3694
|
+
W()
|
|
3695
3695
|
], z.prototype, "open", 2);
|
|
3696
3696
|
R([
|
|
3697
|
-
|
|
3697
|
+
W()
|
|
3698
3698
|
], z.prototype, "activeIndex", 2);
|
|
3699
3699
|
R([
|
|
3700
|
-
|
|
3700
|
+
W()
|
|
3701
3701
|
], z.prototype, "menuWidth", 2);
|
|
3702
3702
|
z = R([
|
|
3703
3703
|
g("o-dropdown-variant")
|
|
@@ -3730,7 +3730,7 @@ const Ee = "important", hi = " !" + Ee, di = Jt(class extends Qt {
|
|
|
3730
3730
|
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? Ee : "") : e[n] = i;
|
|
3731
3731
|
}
|
|
3732
3732
|
}
|
|
3733
|
-
return
|
|
3733
|
+
return tt;
|
|
3734
3734
|
}
|
|
3735
3735
|
});
|
|
3736
3736
|
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, oe = (o, t, e, n) => {
|
|
@@ -3850,7 +3850,7 @@ oe([
|
|
|
3850
3850
|
kt = oe([
|
|
3851
3851
|
g("o-reassurance")
|
|
3852
3852
|
], kt);
|
|
3853
|
-
var fi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor,
|
|
3853
|
+
var fi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, X = (o, t, e, n) => {
|
|
3854
3854
|
for (var i = n > 1 ? void 0 : n ? vi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3855
3855
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3856
3856
|
return n && i && fi(t, e, i), i;
|
|
@@ -3969,31 +3969,31 @@ O.styles = f`
|
|
|
3969
3969
|
align-items: center;
|
|
3970
3970
|
}
|
|
3971
3971
|
`;
|
|
3972
|
-
|
|
3972
|
+
X([
|
|
3973
3973
|
a({ type: String, reflect: !0 })
|
|
3974
3974
|
], O.prototype, "link", 2);
|
|
3975
|
-
|
|
3975
|
+
X([
|
|
3976
3976
|
a({ reflect: !0 })
|
|
3977
3977
|
], O.prototype, "name", 2);
|
|
3978
|
-
|
|
3978
|
+
X([
|
|
3979
3979
|
a({ reflect: !0 })
|
|
3980
3980
|
], O.prototype, "value", 2);
|
|
3981
|
-
|
|
3981
|
+
X([
|
|
3982
3982
|
a({ type: String })
|
|
3983
3983
|
], O.prototype, "text", 2);
|
|
3984
|
-
|
|
3984
|
+
X([
|
|
3985
3985
|
a({ type: String, reflect: !0 })
|
|
3986
3986
|
], O.prototype, "size", 2);
|
|
3987
|
-
|
|
3987
|
+
X([
|
|
3988
3988
|
a({ type: Boolean, reflect: !0 })
|
|
3989
3989
|
], O.prototype, "selected", 2);
|
|
3990
|
-
|
|
3990
|
+
X([
|
|
3991
3991
|
a({ type: Boolean, reflect: !0 })
|
|
3992
3992
|
], O.prototype, "fullwidth", 2);
|
|
3993
|
-
|
|
3993
|
+
X([
|
|
3994
3994
|
a({ type: Boolean, reflect: !0 })
|
|
3995
3995
|
], O.prototype, "inactive", 2);
|
|
3996
|
-
O =
|
|
3996
|
+
O = X([
|
|
3997
3997
|
g("o-chip")
|
|
3998
3998
|
], O);
|
|
3999
3999
|
var bi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, ie = (o, t, e, n) => {
|
|
@@ -4056,14 +4056,14 @@ let I = class extends wi {
|
|
|
4056
4056
|
"<svg",
|
|
4057
4057
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4058
4058
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4059
|
-
return l`<span class="cross-icon">${
|
|
4059
|
+
return l`<span class="cross-icon">${S(o)}</span>`;
|
|
4060
4060
|
}
|
|
4061
4061
|
strikeThroughImg() {
|
|
4062
4062
|
const o = Lo[this.strikethroughImgName].replace(
|
|
4063
4063
|
"<svg",
|
|
4064
4064
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4065
4065
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4066
|
-
return
|
|
4066
|
+
return S(o);
|
|
4067
4067
|
}
|
|
4068
4068
|
render() {
|
|
4069
4069
|
const o = this.text;
|
|
@@ -4398,38 +4398,38 @@ se.styles = f`
|
|
|
4398
4398
|
cursor: pointer;
|
|
4399
4399
|
}
|
|
4400
4400
|
`;
|
|
4401
|
-
let
|
|
4401
|
+
let A = se;
|
|
4402
4402
|
N([
|
|
4403
4403
|
a({ type: String })
|
|
4404
|
-
],
|
|
4404
|
+
], A.prototype, "type");
|
|
4405
4405
|
N([
|
|
4406
4406
|
a({ type: String })
|
|
4407
|
-
],
|
|
4407
|
+
], A.prototype, "titleProduct");
|
|
4408
4408
|
N([
|
|
4409
4409
|
a({ type: String })
|
|
4410
|
-
],
|
|
4410
|
+
], A.prototype, "volume");
|
|
4411
4411
|
N([
|
|
4412
4412
|
a({ type: String })
|
|
4413
|
-
],
|
|
4413
|
+
], A.prototype, "perLiter");
|
|
4414
4414
|
N([
|
|
4415
4415
|
a({ type: String })
|
|
4416
|
-
],
|
|
4416
|
+
], A.prototype, "mainPrice");
|
|
4417
4417
|
N([
|
|
4418
4418
|
a({ type: String })
|
|
4419
|
-
],
|
|
4419
|
+
], A.prototype, "imageUrl");
|
|
4420
4420
|
N([
|
|
4421
4421
|
a({ type: String })
|
|
4422
|
-
],
|
|
4422
|
+
], A.prototype, "altImage");
|
|
4423
4423
|
N([
|
|
4424
4424
|
a({ type: Boolean })
|
|
4425
|
-
],
|
|
4425
|
+
], A.prototype, "fullwidth");
|
|
4426
4426
|
N([
|
|
4427
4427
|
a({ type: String })
|
|
4428
|
-
],
|
|
4428
|
+
], A.prototype, "tagText");
|
|
4429
4429
|
N([
|
|
4430
4430
|
a({ type: Function })
|
|
4431
|
-
],
|
|
4432
|
-
customElements.define("mini-tile",
|
|
4431
|
+
], A.prototype, "onClickTile");
|
|
4432
|
+
customElements.define("mini-tile", A);
|
|
4433
4433
|
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, ne = (o, t, e, n) => {
|
|
4434
4434
|
for (var i = n > 1 ? void 0 : n ? _i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4435
4435
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4491,12 +4491,12 @@ ne([
|
|
|
4491
4491
|
Ct = ne([
|
|
4492
4492
|
g("o-badge")
|
|
4493
4493
|
], Ct);
|
|
4494
|
-
var Ci = Object.defineProperty, Si = Object.getOwnPropertyDescriptor,
|
|
4494
|
+
var Ci = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
4495
4495
|
for (var i = n > 1 ? void 0 : n ? Si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4496
4496
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4497
4497
|
return n && i && Ci(t, e, i), i;
|
|
4498
4498
|
};
|
|
4499
|
-
let
|
|
4499
|
+
let E = class extends p {
|
|
4500
4500
|
constructor() {
|
|
4501
4501
|
super(...arguments), this.icon = "info", this.text = "Sample text", this.verticalanchor = "top", this.horizontalanchor = "right", this.verticaloffset = 24, this.horizontaloffset = 24, this.animationduration = 500, this.animationaxis = "horizontal", this.animated = !0, this.lifeduration = 5e3, this.multiline = !1;
|
|
4502
4502
|
}
|
|
@@ -4544,7 +4544,7 @@ let S = class extends p {
|
|
|
4544
4544
|
return l`
|
|
4545
4545
|
<div class="o-toast">
|
|
4546
4546
|
<div class="o-toast-icon">
|
|
4547
|
-
${
|
|
4547
|
+
${S(t)}
|
|
4548
4548
|
</div>
|
|
4549
4549
|
<div class="o-toast-text">
|
|
4550
4550
|
${this.text}
|
|
@@ -4560,7 +4560,7 @@ let S = class extends p {
|
|
|
4560
4560
|
`;
|
|
4561
4561
|
}
|
|
4562
4562
|
};
|
|
4563
|
-
|
|
4563
|
+
E.styles = f`
|
|
4564
4564
|
:host {
|
|
4565
4565
|
--vertical-offset: 24px;
|
|
4566
4566
|
--horizontal-offset: 24px;
|
|
@@ -4638,48 +4638,48 @@ S.styles = f`
|
|
|
4638
4638
|
height: 16px;
|
|
4639
4639
|
}
|
|
4640
4640
|
`;
|
|
4641
|
-
|
|
4641
|
+
H([
|
|
4642
4642
|
a({ type: String, reflect: !0 })
|
|
4643
|
-
],
|
|
4644
|
-
|
|
4643
|
+
], E.prototype, "icon", 2);
|
|
4644
|
+
H([
|
|
4645
4645
|
a({ type: String, reflect: !0 })
|
|
4646
|
-
],
|
|
4647
|
-
|
|
4646
|
+
], E.prototype, "text", 2);
|
|
4647
|
+
H([
|
|
4648
4648
|
a({ type: String, reflect: !0 })
|
|
4649
|
-
],
|
|
4650
|
-
|
|
4649
|
+
], E.prototype, "verticalanchor", 2);
|
|
4650
|
+
H([
|
|
4651
4651
|
a({ type: String, reflect: !0 })
|
|
4652
|
-
],
|
|
4653
|
-
|
|
4652
|
+
], E.prototype, "horizontalanchor", 2);
|
|
4653
|
+
H([
|
|
4654
4654
|
a({ type: Number, reflect: !0 })
|
|
4655
|
-
],
|
|
4656
|
-
|
|
4655
|
+
], E.prototype, "verticaloffset", 2);
|
|
4656
|
+
H([
|
|
4657
4657
|
a({ type: Number, reflect: !0 })
|
|
4658
|
-
],
|
|
4659
|
-
|
|
4658
|
+
], E.prototype, "horizontaloffset", 2);
|
|
4659
|
+
H([
|
|
4660
4660
|
a({ type: Number, reflect: !0 })
|
|
4661
|
-
],
|
|
4662
|
-
|
|
4661
|
+
], E.prototype, "animationduration", 2);
|
|
4662
|
+
H([
|
|
4663
4663
|
a({ type: String, reflect: !0 })
|
|
4664
|
-
],
|
|
4665
|
-
|
|
4664
|
+
], E.prototype, "animationaxis", 2);
|
|
4665
|
+
H([
|
|
4666
4666
|
a({ type: Boolean, reflect: !0 })
|
|
4667
|
-
],
|
|
4668
|
-
|
|
4667
|
+
], E.prototype, "animated", 2);
|
|
4668
|
+
H([
|
|
4669
4669
|
a({ type: Number, reflect: !0 })
|
|
4670
|
-
],
|
|
4671
|
-
|
|
4670
|
+
], E.prototype, "lifeduration", 2);
|
|
4671
|
+
H([
|
|
4672
4672
|
a({ type: Boolean, reflect: !0 })
|
|
4673
|
-
],
|
|
4674
|
-
|
|
4673
|
+
], E.prototype, "multiline", 2);
|
|
4674
|
+
E = H([
|
|
4675
4675
|
g("o-toast")
|
|
4676
|
-
],
|
|
4676
|
+
], E);
|
|
4677
4677
|
var Ei = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
|
|
4678
4678
|
for (var i = n > 1 ? void 0 : n ? Ai(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4679
4679
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4680
4680
|
return n && i && Ei(t, e, i), i;
|
|
4681
4681
|
};
|
|
4682
|
-
let Li = 0,
|
|
4682
|
+
let Li = 0, L = class extends p {
|
|
4683
4683
|
constructor() {
|
|
4684
4684
|
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-${++Li}`);
|
|
4685
4685
|
}
|
|
@@ -4696,7 +4696,7 @@ let Li = 0, A = class extends p {
|
|
|
4696
4696
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4697
4697
|
}
|
|
4698
4698
|
render() {
|
|
4699
|
-
const o =
|
|
4699
|
+
const o = S(Z.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = S(Z.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4700
4700
|
return l`
|
|
4701
4701
|
<input
|
|
4702
4702
|
type="checkbox"
|
|
@@ -4719,7 +4719,7 @@ let Li = 0, A = class extends p {
|
|
|
4719
4719
|
`;
|
|
4720
4720
|
}
|
|
4721
4721
|
};
|
|
4722
|
-
|
|
4722
|
+
L.styles = f`
|
|
4723
4723
|
:host {
|
|
4724
4724
|
display: inline-flex;
|
|
4725
4725
|
align-items: center;
|
|
@@ -4825,37 +4825,37 @@ A.styles = f`
|
|
|
4825
4825
|
`;
|
|
4826
4826
|
M([
|
|
4827
4827
|
a({ type: Boolean, reflect: !0 })
|
|
4828
|
-
],
|
|
4828
|
+
], L.prototype, "checked", 2);
|
|
4829
4829
|
M([
|
|
4830
4830
|
a({ type: Boolean, reflect: !0 })
|
|
4831
|
-
],
|
|
4831
|
+
], L.prototype, "indeterminate", 2);
|
|
4832
4832
|
M([
|
|
4833
4833
|
a({ type: Boolean, reflect: !0 })
|
|
4834
|
-
],
|
|
4834
|
+
], L.prototype, "disabled", 2);
|
|
4835
4835
|
M([
|
|
4836
4836
|
a({ type: String, reflect: !0 })
|
|
4837
|
-
],
|
|
4837
|
+
], L.prototype, "size", 2);
|
|
4838
4838
|
M([
|
|
4839
4839
|
a({ type: Boolean })
|
|
4840
|
-
],
|
|
4840
|
+
], L.prototype, "showLabel", 2);
|
|
4841
4841
|
M([
|
|
4842
4842
|
a({ type: String })
|
|
4843
|
-
],
|
|
4843
|
+
], L.prototype, "label", 2);
|
|
4844
4844
|
M([
|
|
4845
4845
|
a({ type: String })
|
|
4846
|
-
],
|
|
4846
|
+
], L.prototype, "name", 2);
|
|
4847
4847
|
M([
|
|
4848
4848
|
a({ type: String })
|
|
4849
|
-
],
|
|
4849
|
+
], L.prototype, "value", 2);
|
|
4850
4850
|
M([
|
|
4851
4851
|
a({ type: String, reflect: !0 })
|
|
4852
|
-
],
|
|
4852
|
+
], L.prototype, "inputId", 2);
|
|
4853
4853
|
M([
|
|
4854
4854
|
Ce("input")
|
|
4855
|
-
],
|
|
4856
|
-
|
|
4855
|
+
], L.prototype, "inputEl", 2);
|
|
4856
|
+
L = M([
|
|
4857
4857
|
g("o-checkbox")
|
|
4858
|
-
],
|
|
4858
|
+
], L);
|
|
4859
4859
|
var Pi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, V = (o, t, e, n) => {
|
|
4860
4860
|
for (var i = n > 1 ? void 0 : n ? Bi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4861
4861
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -5046,8 +5046,8 @@ Vt.styles = f`
|
|
|
5046
5046
|
Vt = Ii([
|
|
5047
5047
|
g("o-breadcrumbs")
|
|
5048
5048
|
], Vt);
|
|
5049
|
-
var Di = Object.defineProperty,
|
|
5050
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5049
|
+
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, re = (o, t, e, n) => {
|
|
5050
|
+
for (var i = n > 1 ? void 0 : n ? Hi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5051
5051
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5052
5052
|
return n && i && Di(t, e, i), i;
|
|
5053
5053
|
};
|
|
@@ -5121,12 +5121,12 @@ re([
|
|
|
5121
5121
|
St = re([
|
|
5122
5122
|
g("o-breadcrumb")
|
|
5123
5123
|
], St);
|
|
5124
|
-
var
|
|
5124
|
+
var Ti = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ut = (o, t, e, n) => {
|
|
5125
5125
|
for (var i = n > 1 ? void 0 : n ? Mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5126
5126
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5127
|
-
return n && i &&
|
|
5127
|
+
return n && i && Ti(t, e, i), i;
|
|
5128
5128
|
};
|
|
5129
|
-
let
|
|
5129
|
+
let et = class extends p {
|
|
5130
5130
|
constructor() {
|
|
5131
5131
|
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1;
|
|
5132
5132
|
}
|
|
@@ -5145,7 +5145,7 @@ let tt = class extends p {
|
|
|
5145
5145
|
</div>`;
|
|
5146
5146
|
}
|
|
5147
5147
|
};
|
|
5148
|
-
|
|
5148
|
+
et.styles = f`
|
|
5149
5149
|
:host {
|
|
5150
5150
|
--card-width : 175px;
|
|
5151
5151
|
--card-height : 260px;
|
|
@@ -5207,23 +5207,23 @@ tt.styles = f`
|
|
|
5207
5207
|
`;
|
|
5208
5208
|
ut([
|
|
5209
5209
|
a({ type: String })
|
|
5210
|
-
],
|
|
5210
|
+
], et.prototype, "imageUrl", 2);
|
|
5211
5211
|
ut([
|
|
5212
5212
|
a({ type: String })
|
|
5213
|
-
],
|
|
5213
|
+
], et.prototype, "imageAlt", 2);
|
|
5214
5214
|
ut([
|
|
5215
5215
|
a({ type: String })
|
|
5216
|
-
],
|
|
5216
|
+
], et.prototype, "hoverUrl", 2);
|
|
5217
5217
|
ut([
|
|
5218
5218
|
a({ type: String })
|
|
5219
|
-
],
|
|
5219
|
+
], et.prototype, "hoverAlt", 2);
|
|
5220
5220
|
ut([
|
|
5221
5221
|
a({ type: Boolean, reflect: !0 })
|
|
5222
|
-
],
|
|
5223
|
-
|
|
5222
|
+
], et.prototype, "dimmed", 2);
|
|
5223
|
+
et = ut([
|
|
5224
5224
|
g("o-arch-image")
|
|
5225
|
-
],
|
|
5226
|
-
const
|
|
5225
|
+
], et);
|
|
5226
|
+
const ji = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
5227
5227
|
<svg
|
|
5228
5228
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
5229
5229
|
xmlns:cc="http://creativecommons.org/ns#"
|
|
@@ -5304,18 +5304,22 @@ const Fi = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
5304
5304
|
id="path52"
|
|
5305
5305
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
5306
5306
|
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;
|
|
5307
|
-
var
|
|
5307
|
+
var Fi = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, C = (o, t, e, n) => {
|
|
5308
5308
|
for (var i = n > 1 ? void 0 : n ? Ri(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5309
5309
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5310
|
-
return n && i &&
|
|
5310
|
+
return n && i && Fi(t, e, i), i;
|
|
5311
5311
|
};
|
|
5312
5312
|
const ae = class ae extends p {
|
|
5313
5313
|
constructor() {
|
|
5314
|
-
super(...arguments), this.ispagedesigner = !1, this._classPopin = "", this.open = !1, this.background = "", this.backgroundUrl = "", this.closeOnEsc = !0, this.closeOnBackdrop = !0, this.lockScroll = !0, this.variant = "fullscreen", this.maxWidth = "640px", this.showBackButton = !1, this.contrast = !1, this._labelId = `title-${Math.random().toString(36).slice(2)}`, this._onBackdropClick = (t) => {
|
|
5314
|
+
super(...arguments), this.ispagedesigner = !1, this._classPopin = "", this.open = !1, this.background = "", this.backgroundUrl = "", this.closeOnEsc = !0, this.closeOnBackdrop = !0, this.lockScroll = !0, this.variant = "fullscreen", this.maxWidth = "640px", this.showBackButton = !1, this.contrast = !1, this.iconSize = "large", this.hideHeaderOnScroll = !1, this._labelId = `title-${Math.random().toString(36).slice(2)}`, this._headerHidden = !1, this._onBackdropClick = (t) => {
|
|
5315
5315
|
var n;
|
|
5316
5316
|
if (!this.open || !this.closeOnBackdrop) return;
|
|
5317
5317
|
const e = t.composedPath()[0];
|
|
5318
5318
|
(n = e == null ? void 0 : e.classList) != null && n.contains("backdrop") && this._requestClose("backdrop");
|
|
5319
|
+
}, this._onScroll = (t) => {
|
|
5320
|
+
if (!this.hideHeaderOnScroll || !this.open) return;
|
|
5321
|
+
const i = t.target.scrollTop > 50;
|
|
5322
|
+
i !== this._headerHidden && (this._headerHidden = i, this.requestUpdate());
|
|
5319
5323
|
};
|
|
5320
5324
|
}
|
|
5321
5325
|
get classPopin() {
|
|
@@ -5325,27 +5329,41 @@ const ae = class ae extends p {
|
|
|
5325
5329
|
this._classPopin = t;
|
|
5326
5330
|
}
|
|
5327
5331
|
connectedCallback() {
|
|
5328
|
-
super.connectedCallback(), this._onKeydown = this._onKeydown.bind(this), document.addEventListener("keydown", this._onKeydown);
|
|
5332
|
+
super.connectedCallback(), this._onKeydown = this._onKeydown.bind(this), this._onScroll = this._onScroll.bind(this), document.addEventListener("keydown", this._onKeydown);
|
|
5329
5333
|
}
|
|
5330
5334
|
disconnectedCallback() {
|
|
5331
|
-
document.removeEventListener("keydown", this._onKeydown), super.disconnectedCallback();
|
|
5335
|
+
document.removeEventListener("keydown", this._onKeydown), this._removeScrollListener(), super.disconnectedCallback();
|
|
5332
5336
|
}
|
|
5333
5337
|
updated(t) {
|
|
5334
5338
|
if (t.has("background") || t.has("backgroundUrl")) {
|
|
5335
5339
|
let e = "";
|
|
5336
5340
|
this.background && this.background.trim() ? e = this.background.trim() : this.backgroundUrl && this.backgroundUrl.trim() && (e = `url('${this.backgroundUrl.trim()}') center/cover no-repeat`), this.style.setProperty("--_bg", e);
|
|
5337
5341
|
}
|
|
5338
|
-
if (t.has("open")
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5342
|
+
if (t.has("open")) {
|
|
5343
|
+
if (this.lockScroll) {
|
|
5344
|
+
const e = document == null ? void 0 : document.body;
|
|
5345
|
+
e && (e.style.overflow = this.open ? "hidden" : "");
|
|
5346
|
+
}
|
|
5347
|
+
this.open ? this.updateComplete.then(() => {
|
|
5348
|
+
var n;
|
|
5349
|
+
(n = this.renderRoot.querySelector("[data-close-btn]") ?? this.renderRoot.querySelector('[role="dialog"]')) == null || n.focus(), this._setupScrollListener(), this.dispatchEvent(new CustomEvent("open", { bubbles: !0, composed: !0 }));
|
|
5350
|
+
}) : (this._removeScrollListener(), this._headerHidden = !1, this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 })));
|
|
5344
5351
|
}
|
|
5352
|
+
(t.has("hideHeaderOnScroll") || t.has("open")) && (this.open ? this._setupScrollListener() : this._removeScrollListener());
|
|
5345
5353
|
}
|
|
5346
5354
|
_onKeydown(t) {
|
|
5347
5355
|
this.open && this.closeOnEsc && t.key === "Escape" && (t.preventDefault(), this._requestClose("esc"));
|
|
5348
5356
|
}
|
|
5357
|
+
_setupScrollListener() {
|
|
5358
|
+
this.hideHeaderOnScroll && (this._removeScrollListener(), this.updateComplete.then(() => {
|
|
5359
|
+
const t = this.renderRoot.querySelector('main[part="body"]');
|
|
5360
|
+
t && t.addEventListener("scroll", this._onScroll, { passive: !0 });
|
|
5361
|
+
}));
|
|
5362
|
+
}
|
|
5363
|
+
_removeScrollListener() {
|
|
5364
|
+
const t = this.renderRoot.querySelector('main[part="body"]');
|
|
5365
|
+
t && t.removeEventListener("scroll", this._onScroll);
|
|
5366
|
+
}
|
|
5349
5367
|
_onBackClick() {
|
|
5350
5368
|
this.dispatchEvent(new CustomEvent("back", { bubbles: !0, composed: !0 }));
|
|
5351
5369
|
}
|
|
@@ -5362,7 +5380,7 @@ const ae = class ae extends p {
|
|
|
5362
5380
|
<o-icon-button
|
|
5363
5381
|
data-close-btn
|
|
5364
5382
|
icon="cross"
|
|
5365
|
-
size="
|
|
5383
|
+
size="${this.iconSize}"
|
|
5366
5384
|
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
5367
5385
|
status="empty"
|
|
5368
5386
|
type="button"
|
|
@@ -5378,7 +5396,7 @@ const ae = class ae extends p {
|
|
|
5378
5396
|
<div part="back">
|
|
5379
5397
|
<o-icon-button
|
|
5380
5398
|
icon="arrowLeft"
|
|
5381
|
-
size="
|
|
5399
|
+
size="${this.iconSize}"
|
|
5382
5400
|
status="empty"
|
|
5383
5401
|
class="return-btn"
|
|
5384
5402
|
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
@@ -5393,21 +5411,22 @@ const ae = class ae extends p {
|
|
|
5393
5411
|
`;
|
|
5394
5412
|
}
|
|
5395
5413
|
render() {
|
|
5414
|
+
const t = `dialog${this._headerHidden ? " header-hidden" : ""}`, e = this._headerHidden ? "hidden" : "";
|
|
5396
5415
|
return l`
|
|
5397
5416
|
${this.open ? l`<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>` : null}
|
|
5398
5417
|
<div class="dialog-wrapper ${this.ispagedesigner ? "intro-pagedesigner" : ""}" @click=${this._onBackdropClick} aria-hidden=${this.open ? "false" : "true"}>
|
|
5399
5418
|
<section
|
|
5400
|
-
class="
|
|
5419
|
+
class="${t}"
|
|
5401
5420
|
part="dialog"
|
|
5402
5421
|
role="dialog"
|
|
5403
5422
|
aria-modal="true"
|
|
5404
5423
|
tabindex="-1"
|
|
5405
|
-
aria-labelledby=${this.
|
|
5424
|
+
aria-labelledby=${this._labelId}
|
|
5406
5425
|
>
|
|
5407
|
-
<header part="header">
|
|
5426
|
+
<header part="header" class="${e}">
|
|
5408
5427
|
${this.showBackButton ? this._renderBackButton() : null}
|
|
5409
5428
|
<div class="brand">
|
|
5410
|
-
<span slot="logo${this.contrast ? "-contrast" : ""}">${
|
|
5429
|
+
<span slot="logo${this.contrast ? "-contrast" : ""}">${S(ji)}</span>
|
|
5411
5430
|
</div>
|
|
5412
5431
|
<div part="close${this.contrast ? "-contrast" : ""}">${this._renderCloseButton()}</div>
|
|
5413
5432
|
</header>
|
|
@@ -5431,6 +5450,7 @@ ae.styles = f`
|
|
|
5431
5450
|
--_bg-blur: var(--popin-backdrop-blur, 2px);
|
|
5432
5451
|
--_header-height: 64px;
|
|
5433
5452
|
--_max-width: var(--popin-max-width, 640px);
|
|
5453
|
+
--_logo-width: 176px;
|
|
5434
5454
|
}
|
|
5435
5455
|
:host([ispagedesigner]) {
|
|
5436
5456
|
position: relative;
|
|
@@ -5500,11 +5520,36 @@ ae.styles = f`
|
|
|
5500
5520
|
rgba(0, 0, 0, 0)
|
|
5501
5521
|
);
|
|
5502
5522
|
z-index: 2;
|
|
5523
|
+
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
|
5524
|
+
overflow: hidden;
|
|
5525
|
+
}
|
|
5526
|
+
|
|
5527
|
+
/* Header hidden on scroll - use more specific selectors and important to override */
|
|
5528
|
+
:host([hide-header-on-scroll]) header[part="header"].hidden {
|
|
5529
|
+
transform: translateY(-100%) !important;
|
|
5530
|
+
opacity: 0 !important;
|
|
5531
|
+
pointer-events: none !important;
|
|
5532
|
+
visibility: hidden !important;
|
|
5533
|
+
height: 0 !important;
|
|
5534
|
+
min-height: 0 !important;
|
|
5535
|
+
padding: 0 !important;
|
|
5536
|
+
margin: 0 !important;
|
|
5537
|
+
overflow: hidden !important;
|
|
5538
|
+
}
|
|
5539
|
+
|
|
5540
|
+
/* When header is hidden, adjust the grid to give more space to content */
|
|
5541
|
+
:host([hide-header-on-scroll]) .dialog.header-hidden {
|
|
5542
|
+
grid-template-rows: 0px 1fr !important;
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
/* Ensure the header takes no space when hidden in dialog variant */
|
|
5546
|
+
:host([variant="dialog"][hide-header-on-scroll]) .dialog.header-hidden {
|
|
5547
|
+
grid-template-rows: 0px 1fr !important;
|
|
5503
5548
|
}
|
|
5504
5549
|
|
|
5505
5550
|
.brand { display: inline-flex; align-items: center; gap: var(--spacing-s, 8px); }
|
|
5506
5551
|
::slotted([slot="logo"]) { display: inline-flex; height: 28px; line-height: 0; }
|
|
5507
|
-
[slot="logo"] svg, [slot="logo-contrast"] svg { width: 176px; height: auto; }
|
|
5552
|
+
[slot="logo"] svg, [slot="logo-contrast"] svg { width: var(--_logo-width, 176px); height: auto; }
|
|
5508
5553
|
[slot="logo"] svg path { fill: #fff !important; }
|
|
5509
5554
|
|
|
5510
5555
|
[part="close"] { position: absolute; top: 16px; right: 36px; }
|
|
@@ -5529,64 +5574,76 @@ ae.styles = f`
|
|
|
5529
5574
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
5530
5575
|
}
|
|
5531
5576
|
`;
|
|
5532
|
-
let
|
|
5533
|
-
|
|
5577
|
+
let x = ae;
|
|
5578
|
+
C([
|
|
5534
5579
|
a({ type: Boolean, reflect: !0 })
|
|
5535
|
-
],
|
|
5536
|
-
|
|
5580
|
+
], x.prototype, "ispagedesigner", 2);
|
|
5581
|
+
C([
|
|
5537
5582
|
a({ type: String, reflect: !0 })
|
|
5538
|
-
],
|
|
5539
|
-
|
|
5583
|
+
], x.prototype, "classPopin", 1);
|
|
5584
|
+
C([
|
|
5540
5585
|
a({ type: Boolean, reflect: !0 })
|
|
5541
|
-
],
|
|
5542
|
-
|
|
5586
|
+
], x.prototype, "open", 2);
|
|
5587
|
+
C([
|
|
5543
5588
|
a({ type: String, reflect: !0 })
|
|
5544
|
-
],
|
|
5545
|
-
|
|
5589
|
+
], x.prototype, "background", 2);
|
|
5590
|
+
C([
|
|
5546
5591
|
a({ type: String, attribute: "background-url", reflect: !0 })
|
|
5547
|
-
],
|
|
5548
|
-
|
|
5592
|
+
], x.prototype, "backgroundUrl", 2);
|
|
5593
|
+
C([
|
|
5549
5594
|
a({ type: Boolean, attribute: "close-on-esc" })
|
|
5550
|
-
],
|
|
5551
|
-
|
|
5595
|
+
], x.prototype, "closeOnEsc", 2);
|
|
5596
|
+
C([
|
|
5552
5597
|
a({ type: Boolean, attribute: "close-on-backdrop" })
|
|
5553
|
-
],
|
|
5554
|
-
|
|
5598
|
+
], x.prototype, "closeOnBackdrop", 2);
|
|
5599
|
+
C([
|
|
5555
5600
|
a({ type: Boolean, attribute: "lock-scroll" })
|
|
5556
|
-
],
|
|
5557
|
-
|
|
5601
|
+
], x.prototype, "lockScroll", 2);
|
|
5602
|
+
C([
|
|
5558
5603
|
a({ type: String, reflect: !0 })
|
|
5559
|
-
],
|
|
5560
|
-
|
|
5604
|
+
], x.prototype, "variant", 2);
|
|
5605
|
+
C([
|
|
5561
5606
|
a({ type: String, attribute: "max-width" })
|
|
5562
|
-
],
|
|
5563
|
-
|
|
5607
|
+
], x.prototype, "maxWidth", 2);
|
|
5608
|
+
C([
|
|
5564
5609
|
a({ type: Boolean, reflect: !0 })
|
|
5565
|
-
],
|
|
5566
|
-
|
|
5610
|
+
], x.prototype, "showBackButton", 2);
|
|
5611
|
+
C([
|
|
5567
5612
|
a({ type: Boolean, reflect: !0 })
|
|
5568
|
-
],
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
],
|
|
5572
|
-
|
|
5573
|
-
|
|
5613
|
+
], x.prototype, "contrast", 2);
|
|
5614
|
+
C([
|
|
5615
|
+
a({ type: String, reflect: !0 })
|
|
5616
|
+
], x.prototype, "iconSize", 2);
|
|
5617
|
+
C([
|
|
5618
|
+
a({ type: Boolean, attribute: "hide-header-on-scroll" })
|
|
5619
|
+
], x.prototype, "hideHeaderOnScroll", 2);
|
|
5620
|
+
C([
|
|
5621
|
+
W()
|
|
5622
|
+
], x.prototype, "_labelId", 2);
|
|
5623
|
+
C([
|
|
5624
|
+
W()
|
|
5625
|
+
], x.prototype, "_headerHidden", 2);
|
|
5626
|
+
customElements.define("o-popin", x);
|
|
5627
|
+
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, $ = (o, t, e, n) => {
|
|
5574
5628
|
for (var i = n > 1 ? void 0 : n ? Ni(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5575
5629
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5576
5630
|
return n && i && Ui(t, e, i), i;
|
|
5577
5631
|
};
|
|
5578
5632
|
let m = class extends p {
|
|
5579
5633
|
constructor() {
|
|
5580
|
-
super(...arguments), this.type = "cart | notifyme", this.titleProduct = "", this.descriptionProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.salesPercentage = "", this.oldPrice = "", this.imageUrl = "https://placehold.co/112x140", this.outOfStock = !1, this.altImage = "", this.fullwidth = !1, this.current = !1, this.
|
|
5634
|
+
super(...arguments), this.type = "cart | notifyme", this.titleProduct = "", this.descriptionProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.salesPercentage = "", this.oldPrice = "", this.imageUrl = "https://placehold.co/112x140", this.outOfStock = !1, this.altImage = "", this.fullwidth = !1, this.current = !1, this.hideIcon = !1, this.tagText = "";
|
|
5581
5635
|
}
|
|
5582
|
-
onClick() {
|
|
5583
|
-
|
|
5636
|
+
onClick(o) {
|
|
5637
|
+
var e, n, i;
|
|
5638
|
+
const t = o.target;
|
|
5639
|
+
(e = t == null ? void 0 : t.classList) != null && e.contains("add-to-bag") || (n = t == null ? void 0 : t.classList) != null && n.contains("js-availability-notify-details-routine") || ((i = this.onClickTile) == null || i.call(this), this.dispatchEvent(new CustomEvent("tile-click", { bubbles: !0, composed: !0 })));
|
|
5584
5640
|
}
|
|
5585
5641
|
onClickIcons() {
|
|
5586
|
-
|
|
5642
|
+
var o;
|
|
5643
|
+
(o = this.onClickIcon) == null || o.call(this), this.dispatchEvent(new CustomEvent("tile-icon-click", { bubbles: !0, composed: !0 }));
|
|
5587
5644
|
}
|
|
5588
5645
|
get icons() {
|
|
5589
|
-
return this.
|
|
5646
|
+
return this.hideIcon ? "" : l`
|
|
5590
5647
|
<o-icon-button
|
|
5591
5648
|
@click=${this.onClickIcons}
|
|
5592
5649
|
icon=${this.type === "notifyme" ? "notifyme" : "cart"}
|
|
@@ -5597,7 +5654,7 @@ let m = class extends p {
|
|
|
5597
5654
|
strokewidth="0"
|
|
5598
5655
|
class=${this.type === "notifyme" ? "js-availability-notify-details-routine" : "add-to-bag"}
|
|
5599
5656
|
></o-icon-button>
|
|
5600
|
-
|
|
5657
|
+
`;
|
|
5601
5658
|
}
|
|
5602
5659
|
render() {
|
|
5603
5660
|
return l`
|
|
@@ -5680,11 +5737,11 @@ m.styles = f`
|
|
|
5680
5737
|
justify-content: space-between;
|
|
5681
5738
|
row-gap: var(--spacing-s);
|
|
5682
5739
|
min-height: 140px;
|
|
5740
|
+
}
|
|
5683
5741
|
|
|
5684
|
-
|
|
5742
|
+
.info:has(o-tag),.info:has(.discount-info) {
|
|
5685
5743
|
justify-content: flex-start;
|
|
5686
5744
|
}
|
|
5687
|
-
}
|
|
5688
5745
|
|
|
5689
5746
|
.info .title {
|
|
5690
5747
|
|
|
@@ -5695,6 +5752,10 @@ m.styles = f`
|
|
|
5695
5752
|
line-height: var(--line-height-200, 20px);
|
|
5696
5753
|
letter-spacing: var(--letter-spacing-000, 0);
|
|
5697
5754
|
text-align: left;
|
|
5755
|
+
display: -webkit-box;
|
|
5756
|
+
-webkit-line-clamp: 2;
|
|
5757
|
+
-webkit-box-orient: vertical;
|
|
5758
|
+
overflow: hidden;
|
|
5698
5759
|
}
|
|
5699
5760
|
|
|
5700
5761
|
.info .description {
|
|
@@ -5788,57 +5849,57 @@ m.styles = f`
|
|
|
5788
5849
|
cursor: pointer;
|
|
5789
5850
|
}
|
|
5790
5851
|
`;
|
|
5791
|
-
|
|
5852
|
+
$([
|
|
5792
5853
|
a({ type: String })
|
|
5793
5854
|
], m.prototype, "type", 2);
|
|
5794
|
-
|
|
5855
|
+
$([
|
|
5795
5856
|
a({ type: String })
|
|
5796
5857
|
], m.prototype, "titleProduct", 2);
|
|
5797
|
-
|
|
5858
|
+
$([
|
|
5798
5859
|
a({ type: String })
|
|
5799
5860
|
], m.prototype, "descriptionProduct", 2);
|
|
5800
|
-
|
|
5861
|
+
$([
|
|
5801
5862
|
a({ type: String })
|
|
5802
5863
|
], m.prototype, "volume", 2);
|
|
5803
|
-
|
|
5864
|
+
$([
|
|
5804
5865
|
a({ type: String })
|
|
5805
5866
|
], m.prototype, "perLiter", 2);
|
|
5806
|
-
|
|
5867
|
+
$([
|
|
5807
5868
|
a({ type: String })
|
|
5808
5869
|
], m.prototype, "mainPrice", 2);
|
|
5809
|
-
|
|
5870
|
+
$([
|
|
5810
5871
|
a({ type: String })
|
|
5811
5872
|
], m.prototype, "salesPercentage", 2);
|
|
5812
|
-
|
|
5873
|
+
$([
|
|
5813
5874
|
a({ type: String })
|
|
5814
5875
|
], m.prototype, "oldPrice", 2);
|
|
5815
|
-
|
|
5876
|
+
$([
|
|
5816
5877
|
a({ type: String })
|
|
5817
5878
|
], m.prototype, "imageUrl", 2);
|
|
5818
|
-
|
|
5879
|
+
$([
|
|
5819
5880
|
a({ type: Boolean })
|
|
5820
5881
|
], m.prototype, "outOfStock", 2);
|
|
5821
|
-
|
|
5882
|
+
$([
|
|
5822
5883
|
a({ type: String })
|
|
5823
5884
|
], m.prototype, "altImage", 2);
|
|
5824
|
-
|
|
5885
|
+
$([
|
|
5825
5886
|
a({ type: Boolean })
|
|
5826
5887
|
], m.prototype, "fullwidth", 2);
|
|
5827
|
-
|
|
5888
|
+
$([
|
|
5828
5889
|
a({ type: Boolean })
|
|
5829
5890
|
], m.prototype, "current", 2);
|
|
5830
|
-
|
|
5891
|
+
$([
|
|
5831
5892
|
a({ type: Boolean })
|
|
5832
|
-
], m.prototype, "
|
|
5833
|
-
|
|
5893
|
+
], m.prototype, "hideIcon", 2);
|
|
5894
|
+
$([
|
|
5834
5895
|
a({ type: String })
|
|
5835
5896
|
], m.prototype, "tagText", 2);
|
|
5836
|
-
|
|
5837
|
-
a({
|
|
5897
|
+
$([
|
|
5898
|
+
a({ attribute: !1 })
|
|
5838
5899
|
], m.prototype, "onClickTile", 2);
|
|
5839
|
-
|
|
5840
|
-
a({
|
|
5900
|
+
$([
|
|
5901
|
+
a({ attribute: !1 })
|
|
5841
5902
|
], m.prototype, "onClickIcon", 2);
|
|
5842
|
-
m =
|
|
5903
|
+
m = $([
|
|
5843
5904
|
g("o-medium-tile")
|
|
5844
5905
|
], m);
|