@florid-kit/components 0.10.14 → 0.10.16
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/index.js +757 -785
- package/index.mjs +1089 -1117
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const At = globalThis, Vt = At.ShadowRoot && (At.ShadyCSS === void 0 || At.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Zt = Symbol(), le = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let xe = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, n) {
|
|
9
|
+
if (this._$cssResult$ = !0, n !== Zt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
15
|
if (Vt && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const n = e !== void 0 && e.length === 1;
|
|
17
|
+
n && (t = le.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && le.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,23 +22,23 @@ let xe = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const e = o.length === 1 ? o[0] : t.reduce((
|
|
25
|
+
const Le = (o) => new xe(typeof o == "string" ? o : o + "", void 0, Zt), f = (o, ...t) => {
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(i) + o[
|
|
30
|
+
})(i) + o[r + 1], o[0]);
|
|
31
31
|
return new xe(e, o, Zt);
|
|
32
|
-
},
|
|
32
|
+
}, Ae = (o, t) => {
|
|
33
33
|
if (Vt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const
|
|
36
|
-
i !== void 0 &&
|
|
35
|
+
const n = document.createElement("style"), i = At.litNonce;
|
|
36
|
+
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
|
|
37
37
|
}
|
|
38
38
|
}, ce = Vt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
41
|
-
return
|
|
40
|
+
for (const n of t.cssRules) e += n.cssText;
|
|
41
|
+
return Le(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
@@ -84,19 +84,19 @@ let ct = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = de) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
|
-
const
|
|
87
|
+
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
88
|
i !== void 0 && Be(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get: i, set:
|
|
91
|
+
static getPropertyDescriptor(t, e, n) {
|
|
92
|
+
const { get: i, set: r } = ze(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
96
96
|
} };
|
|
97
97
|
return { get: i, set(s) {
|
|
98
98
|
const c = i == null ? void 0 : i.call(this);
|
|
99
|
-
|
|
99
|
+
r == null || r.call(this, s), this.requestUpdate(t, c, n);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
@@ -110,17 +110,17 @@ let ct = class extends HTMLElement {
|
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(vt("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(vt("properties"))) {
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const i of
|
|
113
|
+
const e = this.properties, n = [...Oe(e), ...Ie(e)];
|
|
114
|
+
for (const i of n) this.createProperty(i, e[i]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
117
117
|
if (t !== null) {
|
|
118
118
|
const e = litPropertyMetadata.get(t);
|
|
119
|
-
if (e !== void 0) for (const [
|
|
119
|
+
if (e !== void 0) for (const [n, i] of e) this.elementProperties.set(n, i);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const i = this._$Eu(e,
|
|
122
|
+
for (const [e, n] of this.elementProperties) {
|
|
123
|
+
const i = this._$Eu(e, n);
|
|
124
124
|
i !== void 0 && this._$Eh.set(i, e);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -128,14 +128,14 @@ let ct = class extends HTMLElement {
|
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const i of
|
|
131
|
+
const n = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of n) e.unshift(ce(i));
|
|
133
133
|
} else t !== void 0 && e.push(ce(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const n = e.attribute;
|
|
138
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,18 +154,18 @@ let ct = class extends HTMLElement {
|
|
|
154
154
|
}
|
|
155
155
|
_$E_() {
|
|
156
156
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
157
|
-
for (const
|
|
157
|
+
for (const n of e.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Ae(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var n;
|
|
168
|
+
return (n = e.hostConnected) == null ? void 0 : n.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let ct = class extends HTMLElement {
|
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var t;
|
|
175
175
|
(t = this._$EO) == null || t.forEach((e) => {
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
176
|
+
var n;
|
|
177
|
+
return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, n) {
|
|
181
|
+
this._$AK(t, n);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
if (i !== void 0 &&
|
|
187
|
-
const s = (((
|
|
184
|
+
var r;
|
|
185
|
+
const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
|
|
186
|
+
if (i !== void 0 && n.reflect === !0) {
|
|
187
|
+
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Pt).toAttribute(e, n.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var
|
|
193
|
-
const
|
|
192
|
+
var r, s;
|
|
193
|
+
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const c =
|
|
195
|
+
const c = n.getPropertyOptions(i), h = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : Pt;
|
|
196
196
|
this._$Em = i, this[i] = h.fromAttribute(e, c.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
199
|
+
requestUpdate(t, e, n) {
|
|
200
200
|
var i;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const r = this.constructor, s = this[t];
|
|
203
|
+
if (n ?? (n = r.getPropertyOptions(t)), !((n.hasChanged ?? Kt)(s, e) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(r._$Eu(t, n)))) return;
|
|
204
|
+
this.C(t, e, n);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: n, reflect: i, wrapped: r }, s) {
|
|
209
|
+
n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), r !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
210
210
|
}
|
|
211
211
|
async _$EP() {
|
|
212
212
|
this.isUpdatePending = !0;
|
|
@@ -222,25 +222,25 @@ let ct = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var n;
|
|
226
226
|
if (!this.isUpdatePending) return;
|
|
227
227
|
if (!this.hasUpdated) {
|
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
|
-
for (const [
|
|
229
|
+
for (const [r, s] of this._$Ep) this[r] = s;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
|
-
if (i.size > 0) for (const [
|
|
234
|
-
const { wrapped: c } = s, h = this[
|
|
235
|
-
c !== !0 || this._$AL.has(
|
|
233
|
+
if (i.size > 0) for (const [r, s] of i) {
|
|
234
|
+
const { wrapped: c } = s, h = this[r];
|
|
235
|
+
c !== !0 || this._$AL.has(r) || h === void 0 || this.C(r, void 0, s, h);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
let t = !1;
|
|
239
239
|
const e = this._$AL;
|
|
240
240
|
try {
|
|
241
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
241
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((i) => {
|
|
242
|
+
var r;
|
|
243
|
+
return (r = i.hostUpdate) == null ? void 0 : r.call(i);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
245
|
} catch (i) {
|
|
246
246
|
throw t = !1, this._$EM(), i;
|
|
@@ -251,9 +251,9 @@ let ct = class extends HTMLElement {
|
|
|
251
251
|
}
|
|
252
252
|
_$AE(t) {
|
|
253
253
|
var e;
|
|
254
|
-
(e = this._$EO) == null || e.forEach((
|
|
254
|
+
(e = this._$EO) == null || e.forEach((n) => {
|
|
255
255
|
var i;
|
|
256
|
-
return (i =
|
|
256
|
+
return (i = n.hostUpdated) == null ? void 0 : i.call(n);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -284,66 +284,66 @@ ct.elementStyles = [], ct.shadowRootOptions = { mode: "open" }, ct[vt("elementPr
|
|
|
284
284
|
*/
|
|
285
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
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(),
|
|
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
292
|
const Fe = (o, t) => {
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i,
|
|
293
|
+
const e = o.length - 1, n = [];
|
|
294
|
+
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ft;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const h = o[c];
|
|
297
297
|
let w, _, v = -1, V = 0;
|
|
298
298
|
for (; V < h.length && (s.lastIndex = V, _ = s.exec(h), _ !== null); ) V = 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
299
|
const Y = s === it && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
|
|
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
|
-
return [_e(o,
|
|
302
|
+
return [_e(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
304
304
|
class xt {
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, n) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
308
|
+
let r = 0, s = 0;
|
|
309
309
|
const c = t.length - 1, h = this.parts, [w, _] = Fe(t, e);
|
|
310
|
-
if (this.el = xt.createElement(w,
|
|
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
|
-
for (; (i =
|
|
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 V = _[s++], Y = i.getAttribute(v).split(J),
|
|
318
|
-
h.push({ type: 1, index:
|
|
319
|
-
} else v.startsWith(J) && (h.push({ type: 6, index:
|
|
317
|
+
const V = _[s++], Y = i.getAttribute(v).split(J), Lt = /([.?@])?(.*)/.exec(V);
|
|
318
|
+
h.push({ type: 1, index: r, name: Lt[2], strings: Y, ctor: Lt[1] === "." ? Ue : Lt[1] === "?" ? Ne : Lt[1] === "@" ? qe : 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
321
|
const v = i.textContent.split(J), V = v.length - 1;
|
|
322
322
|
if (V > 0) {
|
|
323
323
|
i.textContent = Bt ? Bt.emptyScript : "";
|
|
324
|
-
for (let Y = 0; Y < V; Y++) i.append(v[Y], yt()),
|
|
324
|
+
for (let Y = 0; Y < V; Y++) i.append(v[Y], yt()), nt.nextNode(), h.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(v[V], yt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === $e) h.push({ type: 2, index:
|
|
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(J, v + 1)) !== -1; ) h.push({ type: 7, index:
|
|
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
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const n = st.createElement("template");
|
|
338
|
+
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function ht(o, t, e = o,
|
|
341
|
+
function ht(o, t, e = o, n) {
|
|
342
342
|
var s, c;
|
|
343
343
|
if (t === tt) return t;
|
|
344
|
-
let i =
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
344
|
+
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
|
+
const r = mt(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 = ht(o, i._$AS(o, t.values), i, n)), t;
|
|
347
347
|
}
|
|
348
348
|
class Re {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,21 +356,21 @@ class Re {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
360
|
-
|
|
361
|
-
let
|
|
359
|
+
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? st).importNode(e, !0);
|
|
360
|
+
nt.currentNode = i;
|
|
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
364
|
let w;
|
|
365
|
-
h.type === 2 ? w = new Et(
|
|
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 Ve(r, this, t)), this._$AV.push(w), h = n[++c];
|
|
366
366
|
}
|
|
367
|
-
s !== (h == null ? void 0 : h.index) && (
|
|
367
|
+
s !== (h == null ? void 0 : h.index) && (r = nt.nextNode(), s++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return nt.currentNode = st, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
class Et {
|
|
@@ -378,8 +378,8 @@ class Et {
|
|
|
378
378
|
var t;
|
|
379
379
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
380
380
|
}
|
|
381
|
-
constructor(t, e,
|
|
382
|
-
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
|
381
|
+
constructor(t, e, n, i) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -405,9 +405,9 @@ class Et {
|
|
|
405
405
|
this._$AH !== d && mt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(st.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
|
-
var
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((
|
|
408
|
+
var r;
|
|
409
|
+
const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = xt.createElement(_e(n.h, n.h[0]), this.options)), n);
|
|
410
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
412
|
const s = new Re(i, this), c = s.u(this.options);
|
|
413
413
|
s.p(e), this.T(c), this._$AH = s;
|
|
@@ -420,13 +420,13 @@ class Et {
|
|
|
420
420
|
k(t) {
|
|
421
421
|
Wt(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const
|
|
425
|
-
i < e.length && (this._$AR(
|
|
423
|
+
let n, i = 0;
|
|
424
|
+
for (const r of t) i === e.length ? e.push(n = new Et(this.O(yt()), this.O(yt()), this, this.options)) : n = e[i], n._$AI(r), i++;
|
|
425
|
+
i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
428
|
+
var n;
|
|
429
|
+
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
430
|
const i = t.nextSibling;
|
|
431
431
|
t.remove(), t = i;
|
|
432
432
|
}
|
|
@@ -443,17 +443,17 @@ class Ot {
|
|
|
443
443
|
get _$AU() {
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
|
-
constructor(t, e,
|
|
447
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options =
|
|
446
|
+
constructor(t, e, n, i, r) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
450
|
-
const
|
|
449
|
+
_$AI(t, e = this, n, i) {
|
|
450
|
+
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (
|
|
452
|
+
if (r === void 0) t = 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
455
|
let h, w;
|
|
456
|
-
for (t =
|
|
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
|
}
|
|
@@ -478,13 +478,13 @@ class Ne extends Ot {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class qe extends Ot {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, n, i, r) {
|
|
482
|
+
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
485
|
if ((t = ht(this, t, e, 0) ?? d) === tt) return;
|
|
486
|
-
const
|
|
487
|
-
i && this.element.removeEventListener(this.name, this,
|
|
486
|
+
const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== d && (n === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -492,8 +492,8 @@ class qe extends Ot {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class Ve {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, n) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -505,11 +505,11 @@ class Ve {
|
|
|
505
505
|
const Mt = gt.litHtmlPolyfillSupport;
|
|
506
506
|
Mt == null || Mt(xt, Et), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Ze = (o, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let i = n._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
n._$litPart$ = i = new Et(t.insertBefore(yt(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -518,7 +518,7 @@ const Ze = (o, t, e) => {
|
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
521
|
+
const rt = globalThis;
|
|
522
522
|
let p = class extends ct {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -545,10 +545,10 @@ let p = class extends ct {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var me;
|
|
548
|
-
p._$litElement$ = !0, p.finalized = !0, (me =
|
|
549
|
-
const jt =
|
|
548
|
+
p._$litElement$ = !0, p.finalized = !0, (me = rt.litElementHydrateSupport) == null || me.call(rt, { LitElement: p });
|
|
549
|
+
const jt = rt.litElementPolyfillSupport;
|
|
550
550
|
jt == null || jt({ LitElement: p });
|
|
551
|
-
(
|
|
551
|
+
(rt.litElementVersions ?? (rt.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
@@ -565,9 +565,9 @@ const g = (o) => (t, e) => {
|
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
567
|
const Ke = { attribute: !0, type: String, converter: Pt, reflect: !1, hasChanged: Kt }, We = (o = Ke, t, e) => {
|
|
568
|
-
const { kind:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
568
|
+
const { kind: n, metadata: i } = e;
|
|
569
|
+
let r = globalThis.litPropertyMetadata.get(i);
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
|
|
571
571
|
const { name: s } = e;
|
|
572
572
|
return { set(c) {
|
|
573
573
|
const h = t.get.call(this);
|
|
@@ -576,19 +576,19 @@ const Ke = { attribute: !0, type: String, converter: Pt, reflect: !1, hasChanged
|
|
|
576
576
|
return c !== void 0 && this.C(s, void 0, o, c), c;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
579
|
+
if (n === "setter") {
|
|
580
580
|
const { name: s } = e;
|
|
581
581
|
return function(c) {
|
|
582
582
|
const h = this[s];
|
|
583
583
|
t.call(this, c), this.requestUpdate(s, h, o);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + n);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? We(o, t, e) : ((
|
|
590
|
-
const s = i.hasOwnProperty(
|
|
591
|
-
return i.constructor.createProperty(
|
|
589
|
+
return (t, e) => typeof e == "object" ? We(o, t, e) : ((n, i, r) => {
|
|
590
|
+
const s = i.hasOwnProperty(r);
|
|
591
|
+
return i.constructor.createProperty(r, n), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -611,13 +611,13 @@ const Ge = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorat
|
|
|
611
611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
612
612
|
*/
|
|
613
613
|
function Ce(o, t) {
|
|
614
|
-
return (e,
|
|
615
|
-
const
|
|
614
|
+
return (e, n, i) => {
|
|
615
|
+
const r = (s) => {
|
|
616
616
|
var c;
|
|
617
617
|
return ((c = s.renderRoot) == null ? void 0 : c.querySelector(o)) ?? null;
|
|
618
618
|
};
|
|
619
|
-
return Ge(e,
|
|
620
|
-
return
|
|
619
|
+
return Ge(e, n, { get() {
|
|
620
|
+
return r(this);
|
|
621
621
|
} });
|
|
622
622
|
};
|
|
623
623
|
}
|
|
@@ -653,11 +653,11 @@ function Xt(o) {
|
|
|
653
653
|
function Xe(o) {
|
|
654
654
|
o.addInitializer((t) => {
|
|
655
655
|
const e = t;
|
|
656
|
-
e.addEventListener("click", async (
|
|
657
|
-
const { type: i, [Gt]:
|
|
656
|
+
e.addEventListener("click", async (n) => {
|
|
657
|
+
const { type: i, [Gt]: r } = e, { form: s } = r;
|
|
658
658
|
if (!(!s || i === "button") && (await new Promise((c) => {
|
|
659
659
|
setTimeout(c);
|
|
660
|
-
}), !
|
|
660
|
+
}), !n.defaultPrevented)) {
|
|
661
661
|
if (i === "reset") {
|
|
662
662
|
s.reset();
|
|
663
663
|
return;
|
|
@@ -672,7 +672,7 @@ function Xe(o) {
|
|
|
672
672
|
});
|
|
673
673
|
},
|
|
674
674
|
{ capture: !0, once: !0 }
|
|
675
|
-
),
|
|
675
|
+
), r.setFormValue(e.value), s.requestSubmit();
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
});
|
|
@@ -698,10 +698,10 @@ const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
698
698
|
`, io = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
699
699
|
<path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
|
|
700
700
|
</svg>
|
|
701
|
-
`,
|
|
701
|
+
`, no = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
702
702
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
|
|
703
703
|
</svg>
|
|
704
|
-
`,
|
|
704
|
+
`, ro = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
705
705
|
<path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
|
|
706
706
|
</svg>
|
|
707
707
|
`, so = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -775,7 +775,7 @@ const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
775
775
|
</svg>`, Eo = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
776
776
|
<path d="M4.5 8L11.5 13L11.5 3L4.5 8Z" fill="#3F2B2E"/>
|
|
777
777
|
</svg>
|
|
778
|
-
`,
|
|
778
|
+
`, Lo = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
779
779
|
<path d="M11.5 8L4.5 13L4.5 3L11.5 8Z" fill="#3F2B2E"/>
|
|
780
780
|
</svg>
|
|
781
781
|
`, Z = {
|
|
@@ -788,8 +788,8 @@ const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
788
788
|
"star-0": eo,
|
|
789
789
|
"star-25": oo,
|
|
790
790
|
"star-50": io,
|
|
791
|
-
"star-75":
|
|
792
|
-
"star-100":
|
|
791
|
+
"star-75": no,
|
|
792
|
+
"star-100": ro,
|
|
793
793
|
cross: so,
|
|
794
794
|
search: ao,
|
|
795
795
|
arrowLeft: ho,
|
|
@@ -805,8 +805,8 @@ const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
805
805
|
backToBag: Co,
|
|
806
806
|
checkbox: So,
|
|
807
807
|
sliderLeftArrow: Eo,
|
|
808
|
-
sliderRightArrow:
|
|
809
|
-
},
|
|
808
|
+
sliderRightArrow: Lo
|
|
809
|
+
}, Ao = {
|
|
810
810
|
strikeDiagonal: xo
|
|
811
811
|
}, Po = {
|
|
812
812
|
success: $o,
|
|
@@ -825,8 +825,8 @@ let Qt = class {
|
|
|
825
825
|
get _$AU() {
|
|
826
826
|
return this._$AM._$AU;
|
|
827
827
|
}
|
|
828
|
-
_$AT(t, e,
|
|
829
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
828
|
+
_$AT(t, e, n) {
|
|
829
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
|
830
830
|
}
|
|
831
831
|
_$AS(t, e) {
|
|
832
832
|
return this.update(t, e);
|
|
@@ -876,10 +876,10 @@ const Bo = (o) => o.strings === void 0;
|
|
|
876
876
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
877
877
|
*/
|
|
878
878
|
const bt = (o, t) => {
|
|
879
|
-
var
|
|
879
|
+
var n;
|
|
880
880
|
const e = o._$AN;
|
|
881
881
|
if (e === void 0) return !1;
|
|
882
|
-
for (const i of e) (
|
|
882
|
+
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), bt(i, t);
|
|
883
883
|
return !0;
|
|
884
884
|
}, zt = (o) => {
|
|
885
885
|
let t, e;
|
|
@@ -899,9 +899,9 @@ function zo(o) {
|
|
|
899
899
|
this._$AN !== void 0 ? (zt(this), this._$AM = o, Se(this)) : this._$AM = o;
|
|
900
900
|
}
|
|
901
901
|
function Oo(o, t = !1, e = 0) {
|
|
902
|
-
const
|
|
903
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(
|
|
904
|
-
else
|
|
902
|
+
const n = this._$AH, i = this._$AN;
|
|
903
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) bt(n[r], !1), zt(n[r]);
|
|
904
|
+
else n != null && (bt(n, !1), zt(n));
|
|
905
905
|
else bt(this, o);
|
|
906
906
|
}
|
|
907
907
|
const Io = (o) => {
|
|
@@ -911,12 +911,12 @@ class Do extends Qt {
|
|
|
911
911
|
constructor() {
|
|
912
912
|
super(...arguments), this._$AN = void 0;
|
|
913
913
|
}
|
|
914
|
-
_$AT(t, e,
|
|
915
|
-
super._$AT(t, e,
|
|
914
|
+
_$AT(t, e, n) {
|
|
915
|
+
super._$AT(t, e, n), Se(this), this.isConnected = t._$AU;
|
|
916
916
|
}
|
|
917
917
|
_$AO(t, e = !0) {
|
|
918
|
-
var
|
|
919
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
|
918
|
+
var n, i;
|
|
919
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (bt(this, t), zt(this));
|
|
920
920
|
}
|
|
921
921
|
setValue(t) {
|
|
922
922
|
if (Bo(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -938,23 +938,23 @@ class Ho extends Do {
|
|
|
938
938
|
return d;
|
|
939
939
|
}
|
|
940
940
|
update(t, [e]) {
|
|
941
|
-
var
|
|
942
|
-
this.element !== t.element && (this.element = t.element), this.host = ((
|
|
941
|
+
var n;
|
|
942
|
+
this.element !== t.element && (this.element = t.element), this.host = ((n = t.options) === null || n === void 0 ? void 0 : n.host) || this.element, this.apply(e), this.groom(e), this.prevData = { ...e };
|
|
943
943
|
}
|
|
944
944
|
apply(t) {
|
|
945
945
|
if (!t)
|
|
946
946
|
return;
|
|
947
|
-
const { prevData: e, element:
|
|
947
|
+
const { prevData: e, element: n } = this;
|
|
948
948
|
for (const i in t) {
|
|
949
|
-
const
|
|
950
|
-
|
|
949
|
+
const r = t[i];
|
|
950
|
+
r !== e[i] && (n[i] = r);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
groom(t) {
|
|
954
|
-
const { prevData: e, element:
|
|
954
|
+
const { prevData: e, element: n } = this;
|
|
955
955
|
if (e)
|
|
956
956
|
for (const i in e)
|
|
957
|
-
(!t || !(i in t) &&
|
|
957
|
+
(!t || !(i in t) && n[i] === e[i]) && (n[i] = void 0);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
class To extends Ho {
|
|
@@ -964,23 +964,23 @@ class To extends Ho {
|
|
|
964
964
|
apply(t) {
|
|
965
965
|
if (t)
|
|
966
966
|
for (const e in t) {
|
|
967
|
-
const
|
|
968
|
-
|
|
967
|
+
const n = t[e];
|
|
968
|
+
n !== this.eventData[e] && this.applyEvent(e, n);
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
971
|
applyEvent(t, e) {
|
|
972
|
-
const { prevData:
|
|
973
|
-
this.eventData[t] = e,
|
|
972
|
+
const { prevData: n, element: i } = this;
|
|
973
|
+
this.eventData[t] = e, n[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
|
|
974
974
|
}
|
|
975
975
|
groom(t) {
|
|
976
|
-
const { prevData: e, element:
|
|
976
|
+
const { prevData: e, element: n } = this;
|
|
977
977
|
if (e)
|
|
978
978
|
for (const i in e)
|
|
979
|
-
(!t || !(i in t) &&
|
|
979
|
+
(!t || !(i in t) && n[i] === e[i]) && this.groomEvent(i, e[i]);
|
|
980
980
|
}
|
|
981
981
|
groomEvent(t, e) {
|
|
982
|
-
const { element:
|
|
983
|
-
delete this.eventData[t],
|
|
982
|
+
const { element: n } = this;
|
|
983
|
+
delete this.eventData[t], n.removeEventListener(t, this, e);
|
|
984
984
|
}
|
|
985
985
|
handleEvent(t) {
|
|
986
986
|
const e = this.eventData[t.type];
|
|
@@ -988,16 +988,16 @@ class To extends Ho {
|
|
|
988
988
|
}
|
|
989
989
|
disconnected() {
|
|
990
990
|
const { eventData: t, element: e } = this;
|
|
991
|
-
for (const
|
|
992
|
-
const i =
|
|
993
|
-
e.removeEventListener(i, this,
|
|
991
|
+
for (const n in t) {
|
|
992
|
+
const i = n.slice(1), r = t[n];
|
|
993
|
+
e.removeEventListener(i, this, r);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
reconnected() {
|
|
997
997
|
const { eventData: t, element: e } = this;
|
|
998
|
-
for (const
|
|
999
|
-
const i =
|
|
1000
|
-
e.addEventListener(i, this,
|
|
998
|
+
for (const n in t) {
|
|
999
|
+
const i = n.slice(1), r = t[n];
|
|
1000
|
+
e.addEventListener(i, this, r);
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
@@ -1005,46 +1005,46 @@ class Mo extends To {
|
|
|
1005
1005
|
apply(t) {
|
|
1006
1006
|
if (!t)
|
|
1007
1007
|
return;
|
|
1008
|
-
const { prevData: e, element:
|
|
1008
|
+
const { prevData: e, element: n } = this;
|
|
1009
1009
|
for (const i in t) {
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1010
|
+
const r = t[i];
|
|
1011
|
+
if (r === e[i])
|
|
1012
1012
|
continue;
|
|
1013
1013
|
const s = i.slice(1);
|
|
1014
1014
|
switch (i[0]) {
|
|
1015
1015
|
case "@":
|
|
1016
|
-
this.eventData[s] =
|
|
1016
|
+
this.eventData[s] = r, this.applyEvent(s, r);
|
|
1017
1017
|
break;
|
|
1018
1018
|
case ".":
|
|
1019
|
-
|
|
1019
|
+
n[s] = r;
|
|
1020
1020
|
break;
|
|
1021
1021
|
case "?":
|
|
1022
|
-
|
|
1022
|
+
r ? n.setAttribute(s, "") : n.removeAttribute(s);
|
|
1023
1023
|
break;
|
|
1024
1024
|
default:
|
|
1025
|
-
|
|
1025
|
+
r != null ? n.setAttribute(i, String(r)) : n.removeAttribute(i);
|
|
1026
1026
|
break;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
groom(t) {
|
|
1031
|
-
const { prevData: e, element:
|
|
1031
|
+
const { prevData: e, element: n } = this;
|
|
1032
1032
|
if (e)
|
|
1033
1033
|
for (const i in e) {
|
|
1034
|
-
const
|
|
1035
|
-
if (!t || !(i in t) && r
|
|
1034
|
+
const r = i.slice(1);
|
|
1035
|
+
if (!t || !(i in t) && n[r] === e[i])
|
|
1036
1036
|
switch (i[0]) {
|
|
1037
1037
|
case "@":
|
|
1038
|
-
this.groomEvent(
|
|
1038
|
+
this.groomEvent(r, e[i]);
|
|
1039
1039
|
break;
|
|
1040
1040
|
case ".":
|
|
1041
|
-
r
|
|
1041
|
+
n[r] = void 0;
|
|
1042
1042
|
break;
|
|
1043
1043
|
case "?":
|
|
1044
|
-
|
|
1044
|
+
n.removeAttribute(r);
|
|
1045
1045
|
break;
|
|
1046
1046
|
default:
|
|
1047
|
-
|
|
1047
|
+
n.removeAttribute(i);
|
|
1048
1048
|
break;
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
@@ -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 jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, R = (o, t, e,
|
|
1061
|
-
for (var i =
|
|
1062
|
-
(s = o[
|
|
1063
|
-
return
|
|
1060
|
+
var jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, R = (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
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1063
|
+
return n && i && jo(t, e, i), i;
|
|
1064
1064
|
};
|
|
1065
1065
|
let B = class extends p {
|
|
1066
1066
|
constructor() {
|
|
@@ -1070,7 +1070,7 @@ let B = class extends p {
|
|
|
1070
1070
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1071
1071
|
}
|
|
1072
1072
|
render() {
|
|
1073
|
-
const o = Z[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'),
|
|
1073
|
+
const o = Z[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
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}">
|
|
@@ -1084,7 +1084,7 @@ let B = class extends p {
|
|
|
1084
1084
|
?disabled="${this.disabled}"
|
|
1085
1085
|
>
|
|
1086
1086
|
${S(e)}
|
|
1087
|
-
${
|
|
1087
|
+
${n}
|
|
1088
1088
|
</button>
|
|
1089
1089
|
`}
|
|
1090
1090
|
`;
|
|
@@ -1108,15 +1108,11 @@ B.styles = f`
|
|
|
1108
1108
|
border-radius: var(--radius-full);
|
|
1109
1109
|
cursor: pointer;
|
|
1110
1110
|
position: relative;
|
|
1111
|
+
}
|
|
1111
1112
|
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
stroke: var(--color-content-action-secondary);
|
|
1116
|
-
stroke-width: var(--icon-stroke-width, 1);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1113
|
+
.icon-button.icon-wishlist svg path {
|
|
1114
|
+
stroke: var(--color-content-action-secondary);
|
|
1115
|
+
stroke-width: var(--icon-stroke-width, 1);
|
|
1120
1116
|
}
|
|
1121
1117
|
|
|
1122
1118
|
.icon-button.filled svg {
|
|
@@ -1126,96 +1122,81 @@ B.styles = f`
|
|
|
1126
1122
|
.icon-button.xsmall {
|
|
1127
1123
|
width: 20px;
|
|
1128
1124
|
height: 20px;
|
|
1125
|
+
}
|
|
1129
1126
|
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
height: 8px;
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1127
|
+
.icon-button.xsmall:not(.icon-wishlist) svg {
|
|
1128
|
+
width: 8px;
|
|
1129
|
+
height: 8px;
|
|
1136
1130
|
}
|
|
1137
1131
|
|
|
1138
1132
|
.icon-button.small {
|
|
1139
1133
|
width: 32px;
|
|
1140
1134
|
height: 32px;
|
|
1135
|
+
}
|
|
1141
1136
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
height: 16px;
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1137
|
+
.icon-button.small:not(.icon-wishlist) svg {
|
|
1138
|
+
width: 16px;
|
|
1139
|
+
height: 16px;
|
|
1148
1140
|
}
|
|
1149
1141
|
|
|
1150
1142
|
.icon-button.medium {
|
|
1151
1143
|
width: 40px;
|
|
1152
1144
|
height: 40px;
|
|
1145
|
+
}
|
|
1153
1146
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
height: 16px;
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1147
|
+
.icon-button.medium:not(.icon-wishlist) svg {
|
|
1148
|
+
width: 16px;
|
|
1149
|
+
height: 16px;
|
|
1160
1150
|
}
|
|
1161
1151
|
|
|
1162
1152
|
.icon-button.large {
|
|
1163
1153
|
width: 40px;
|
|
1164
1154
|
height: 40px;
|
|
1155
|
+
}
|
|
1165
1156
|
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
height: 24px;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1157
|
+
.icon-button.large:not(.icon-wishlist) svg {
|
|
1158
|
+
width: 24px;
|
|
1159
|
+
height: 24px;
|
|
1172
1160
|
}
|
|
1173
1161
|
|
|
1174
1162
|
.icon-button.none-light, .icon-button.none-contrast {
|
|
1175
1163
|
background-color: transparent;
|
|
1176
1164
|
width: auto;
|
|
1177
1165
|
height: auto;
|
|
1166
|
+
}
|
|
1178
1167
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
}
|
|
1168
|
+
.icon-button.none-light.xsmall svg,
|
|
1169
|
+
.icon-button.none-contrast.xsmall svg {
|
|
1170
|
+
width: 8px;
|
|
1171
|
+
height: 8px;
|
|
1172
|
+
}
|
|
1185
1173
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
}
|
|
1174
|
+
.icon-button.none-light.small svg,
|
|
1175
|
+
.icon-button.none-contrast.small svg {
|
|
1176
|
+
width: 16px;
|
|
1177
|
+
height: 16px;
|
|
1178
|
+
}
|
|
1192
1179
|
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
}
|
|
1180
|
+
.icon-button.none-light.medium svg,
|
|
1181
|
+
.icon-button.none-contrast.medium svg {
|
|
1182
|
+
width: 16px;
|
|
1183
|
+
height: 16px;
|
|
1184
|
+
}
|
|
1199
1185
|
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
}
|
|
1186
|
+
.icon-button.none-light.large svg,
|
|
1187
|
+
.icon-button.none-contrast.large svg {
|
|
1188
|
+
width: 24px;
|
|
1189
|
+
height: 24px;
|
|
1190
|
+
}
|
|
1206
1191
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1192
|
+
.icon-button.none-light:disabled,
|
|
1193
|
+
.icon-button.none-contrast:disabled {
|
|
1194
|
+
background-color: transparent;
|
|
1210
1195
|
}
|
|
1211
1196
|
|
|
1212
|
-
.icon-button.none-light {
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
stroke: var(--color-content-action-primary);
|
|
1216
|
-
fill: var(--color-content-action-primary);
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1197
|
+
.icon-button.none-light svg path {
|
|
1198
|
+
stroke: var(--color-content-action-primary);
|
|
1199
|
+
fill: var(--color-content-action-primary);
|
|
1219
1200
|
}
|
|
1220
1201
|
|
|
1221
1202
|
.icon-button.none-light.icon-wishlist svg path {
|
|
@@ -1228,70 +1209,60 @@ B.styles = f`
|
|
|
1228
1209
|
|
|
1229
1210
|
.icon-button.background-light {
|
|
1230
1211
|
background-color: var(--color-alpha-light-strong);
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
background-color: var(--color-alpha-light-strongest);
|
|
1238
|
-
}
|
|
1212
|
+
}
|
|
1213
|
+
.icon-button.background-light:hover:not(:disabled) {
|
|
1214
|
+
background-color: var(--color-alpha-light-stronger);
|
|
1215
|
+
}
|
|
1216
|
+
.icon-button.background-light:active:not(:disabled) {
|
|
1217
|
+
background-color: var(--color-alpha-light-strongest);
|
|
1239
1218
|
}
|
|
1240
1219
|
|
|
1241
1220
|
.icon-button.background-contrast {
|
|
1242
1221
|
background-color: var(--color-container-action-tertiary-default);
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
background-color: var(--color-container-action-tertiary-pressed);
|
|
1250
|
-
}
|
|
1222
|
+
}
|
|
1223
|
+
.icon-button.background-contrast:hover:not(:disabled) {
|
|
1224
|
+
background-color: var(--color-container-action-tertiary-hover);
|
|
1225
|
+
}
|
|
1226
|
+
.icon-button.background-contrast:active:not(:disabled) {
|
|
1227
|
+
background-color: var(--color-container-action-tertiary-pressed);
|
|
1251
1228
|
}
|
|
1252
1229
|
|
|
1230
|
+
/* ghost-light */
|
|
1253
1231
|
.icon-button.ghost-light {
|
|
1254
1232
|
background-color: transparent;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
&:active:not(:disabled) {
|
|
1268
|
-
background-color: var(--color-alpha-light-light);
|
|
1269
|
-
}
|
|
1233
|
+
}
|
|
1234
|
+
.icon-button.ghost-light svg path {
|
|
1235
|
+
stroke: var(--color-content-action-primary);
|
|
1236
|
+
fill: var(--color-content-action-primary);
|
|
1237
|
+
}
|
|
1238
|
+
.icon-button.ghost-light:hover:not(:disabled) {
|
|
1239
|
+
background-color: var(--color-alpha-light-lightest);
|
|
1240
|
+
}
|
|
1241
|
+
.icon-button.ghost-light:active:not(:disabled) {
|
|
1242
|
+
background-color: var(--color-alpha-light-light);
|
|
1270
1243
|
}
|
|
1271
1244
|
|
|
1245
|
+
/* ghost-contrast */
|
|
1272
1246
|
.icon-button.ghost-contrast {
|
|
1273
1247
|
background-color: transparent;
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
background-color: var(--color-alpha-light-strongest);
|
|
1281
|
-
}
|
|
1248
|
+
}
|
|
1249
|
+
.icon-button.ghost-contrast:hover:not(:disabled) {
|
|
1250
|
+
background-color: var(--color-alpha-light-medium);
|
|
1251
|
+
}
|
|
1252
|
+
.icon-button.ghost-contrast:active:not(:disabled) {
|
|
1253
|
+
background-color: var(--color-alpha-light-strongest);
|
|
1282
1254
|
}
|
|
1283
1255
|
|
|
1256
|
+
/* disabled */
|
|
1284
1257
|
.icon-button:disabled {
|
|
1285
1258
|
background-color: var(--color-container-disabled);
|
|
1286
1259
|
cursor: default;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1260
|
+
}
|
|
1261
|
+
.icon-button:disabled svg {
|
|
1262
|
+
fill: var(--color-content-disabled);
|
|
1263
|
+
}
|
|
1264
|
+
.icon-button:disabled svg path {
|
|
1265
|
+
fill: var(--color-content-disabled);
|
|
1295
1266
|
}
|
|
1296
1267
|
|
|
1297
1268
|
.icon-button:focus-visible {
|
|
@@ -1332,18 +1303,18 @@ R([
|
|
|
1332
1303
|
B = R([
|
|
1333
1304
|
g("o-icon-button")
|
|
1334
1305
|
], B);
|
|
1335
|
-
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, b = (o, t, e,
|
|
1336
|
-
for (var i =
|
|
1337
|
-
(s = o[
|
|
1338
|
-
return
|
|
1306
|
+
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, b = (o, t, e, n) => {
|
|
1307
|
+
for (var i = n > 1 ? void 0 : n ? Uo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1308
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1309
|
+
return n && i && Ro(t, e, i), i;
|
|
1339
1310
|
};
|
|
1340
1311
|
let u = class extends p {
|
|
1341
1312
|
constructor() {
|
|
1342
1313
|
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", this.addToBagProductCount = "", this.closeButtonLabel = "Close the modal", this.goBackButtonLabel = "Go back to", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this._onOpenDetail = async (o) => {
|
|
1343
|
-
var e,
|
|
1314
|
+
var e, n;
|
|
1344
1315
|
const t = ((e = o.detail) == null ? void 0 : e.origin) ?? document.activeElement;
|
|
1345
1316
|
if (this._detailOriginEl = t, this._detailOriginClass = (t == null ? void 0 : t.className) ?? "", this.showDetail = !0, this.showHeaderStartIcon = !0, await this.updateComplete, this._detailOriginClass) {
|
|
1346
|
-
const i = (
|
|
1317
|
+
const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".detail-view");
|
|
1347
1318
|
i && i.setAttribute("fromelement", this._detailOriginClass);
|
|
1348
1319
|
}
|
|
1349
1320
|
await this.focusDetailReturnBtn();
|
|
@@ -1356,15 +1327,15 @@ let u = class extends p {
|
|
|
1356
1327
|
const t = o.currentTarget, e = (t == null ? void 0 : t.getAttribute("data-role")) === "back";
|
|
1357
1328
|
if (this.showDetail && e) {
|
|
1358
1329
|
this.isHidingDetail = !0;
|
|
1359
|
-
const
|
|
1330
|
+
const n = this.renderRoot.querySelector(".content"), i = async () => {
|
|
1360
1331
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1, await this.updateComplete, this._restoreFocusToOrigin();
|
|
1361
1332
|
};
|
|
1362
|
-
if (
|
|
1333
|
+
if (n) {
|
|
1363
1334
|
this.showHeaderStartIcon = !1;
|
|
1364
|
-
const
|
|
1365
|
-
this.showDetail = !1, this.isHidingDetail = !1,
|
|
1335
|
+
const r = () => {
|
|
1336
|
+
this.showDetail = !1, this.isHidingDetail = !1, n.removeEventListener("animationend", r), i();
|
|
1366
1337
|
};
|
|
1367
|
-
|
|
1338
|
+
n.addEventListener("animationend", r);
|
|
1368
1339
|
} else
|
|
1369
1340
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1;
|
|
1370
1341
|
return;
|
|
@@ -1373,8 +1344,8 @@ let u = class extends p {
|
|
|
1373
1344
|
};
|
|
1374
1345
|
}
|
|
1375
1346
|
focusFirstInPanel() {
|
|
1376
|
-
var t, e,
|
|
1377
|
-
(
|
|
1347
|
+
var t, e, n;
|
|
1348
|
+
(n = this.getFocusableElements().map((i) => this.resolveFocusable(i)).filter((i) => !!i && !i.hasAttribute("disabled"))[0] ?? ((t = this.shadowRoot) == null ? void 0 : t.querySelector(".close-btn")) ?? ((e = this.shadowRoot) == null ? void 0 : e.querySelector(".panel"))) == null || n.focus({ preventScroll: !0 });
|
|
1378
1349
|
}
|
|
1379
1350
|
resolveFocusable(o) {
|
|
1380
1351
|
var e;
|
|
@@ -1392,7 +1363,7 @@ let u = class extends p {
|
|
|
1392
1363
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
1393
1364
|
}
|
|
1394
1365
|
async focusDetailReturnBtn() {
|
|
1395
|
-
var i,
|
|
1366
|
+
var i, r, s, c, h;
|
|
1396
1367
|
await this.updateComplete;
|
|
1397
1368
|
const o = this.getDeepActiveElement(document);
|
|
1398
1369
|
if (o && o !== document.body)
|
|
@@ -1403,9 +1374,9 @@ let u = class extends p {
|
|
|
1403
1374
|
await new Promise(requestAnimationFrame);
|
|
1404
1375
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".detail-view .return-btn");
|
|
1405
1376
|
if (!t) return;
|
|
1406
|
-
t.updateComplete && await t.updateComplete, (c = (s = ((
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1377
|
+
t.updateComplete && await t.updateComplete, (c = (s = ((r = t.shadowRoot) == null ? void 0 : r.querySelector("button")) ?? t) == null ? void 0 : s.focus) == null || c.call(s, { preventScroll: !0 });
|
|
1378
|
+
const n = (h = this.shadowRoot) == null ? void 0 : h.querySelector('.panel[role="dialog"]');
|
|
1379
|
+
n && n.setAttribute("aria-label", this.headerTitle);
|
|
1409
1380
|
}
|
|
1410
1381
|
_restoreFocusToOrigin() {
|
|
1411
1382
|
var t, e;
|
|
@@ -1426,10 +1397,10 @@ let u = class extends p {
|
|
|
1426
1397
|
const t = this.getDeepActiveElement(), e = this.renderRoot.querySelector(".close-btn");
|
|
1427
1398
|
if (!o.shiftKey && e && e.contains(t)) {
|
|
1428
1399
|
o.preventDefault();
|
|
1429
|
-
const
|
|
1400
|
+
const n = this.renderRoot.querySelector(
|
|
1430
1401
|
".o-whats-inside--content p"
|
|
1431
1402
|
);
|
|
1432
|
-
|
|
1403
|
+
n == null || n.focus();
|
|
1433
1404
|
}
|
|
1434
1405
|
}
|
|
1435
1406
|
getFocusableElements() {
|
|
@@ -1440,16 +1411,16 @@ let u = class extends p {
|
|
|
1440
1411
|
}
|
|
1441
1412
|
function e(i) {
|
|
1442
1413
|
var s;
|
|
1443
|
-
const
|
|
1414
|
+
const r = [i.matches(u.focusablesSelector) ? i : []];
|
|
1444
1415
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
1445
1416
|
const c = Array.from(
|
|
1446
1417
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
1447
1418
|
).filter(t).flatMap(e), h = Array.from(
|
|
1448
1419
|
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
1449
1420
|
).filter(t).flatMap(e);
|
|
1450
|
-
|
|
1421
|
+
r.push(...c, ...h);
|
|
1451
1422
|
}
|
|
1452
|
-
return
|
|
1423
|
+
return r.flat();
|
|
1453
1424
|
}
|
|
1454
1425
|
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
1455
1426
|
}
|
|
@@ -1459,7 +1430,7 @@ let u = class extends p {
|
|
|
1459
1430
|
o && o.setAttribute("aria-modal", "true"), this.updateComplete.then(() => {
|
|
1460
1431
|
var t, e;
|
|
1461
1432
|
if (this.showHeader) {
|
|
1462
|
-
const
|
|
1433
|
+
const n = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".panel .close-btn"), i = this.resolveFocusable(n);
|
|
1463
1434
|
(e = i == null ? void 0 : i.focus) == null || e.call(i, { preventScroll: !0 });
|
|
1464
1435
|
} else
|
|
1465
1436
|
this.focusFirstInPanel();
|
|
@@ -1468,8 +1439,8 @@ let u = class extends p {
|
|
|
1468
1439
|
);
|
|
1469
1440
|
}
|
|
1470
1441
|
closePanel() {
|
|
1471
|
-
var t, e,
|
|
1472
|
-
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((t = this.previousFocusedElement) == null ? void 0 : t.tagName.toLowerCase()) === "o-button" ? (i = (
|
|
1442
|
+
var t, e, n, i, r;
|
|
1443
|
+
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((t = this.previousFocusedElement) == null ? void 0 : t.tagName.toLowerCase()) === "o-button" ? (i = (n = (e = this.previousFocusedElement.shadowRoot) == null ? void 0 : e.querySelector(".button")) == null ? void 0 : n.focus) == null || i.call(n) : (r = this.previousFocusedElement) == null || r.focus();
|
|
1473
1444
|
const o = this.renderRoot.querySelector(".panel");
|
|
1474
1445
|
o && o.removeAttribute("aria-modal"), this.dispatchEvent(
|
|
1475
1446
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
@@ -1668,77 +1639,73 @@ u.styles = f`
|
|
|
1668
1639
|
gap: 8px;
|
|
1669
1640
|
padding: 20px 16px;
|
|
1670
1641
|
border-bottom: var(--border-050) solid var(--color-border-tertiary);
|
|
1642
|
+
}
|
|
1671
1643
|
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1644
|
+
.header .header-title-container {
|
|
1645
|
+
display: flex;
|
|
1646
|
+
flex-direction: row;
|
|
1647
|
+
align-items: center;
|
|
1648
|
+
column-gap: 8px;
|
|
1649
|
+
flex: 1 1 auto;
|
|
1650
|
+
min-width: 0;
|
|
1651
|
+
}
|
|
1680
1652
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1653
|
+
.header .panel-title {
|
|
1654
|
+
font-family: var(--font-family-loccitane-serif);
|
|
1655
|
+
font-size: var(--font-size);
|
|
1656
|
+
font-weight: var(--font-weight-400);
|
|
1657
|
+
line-height: var(--line-height);
|
|
1658
|
+
font-style: var(--font-weight-italic);
|
|
1659
|
+
display: -webkit-box;
|
|
1660
|
+
-webkit-line-clamp: 2;
|
|
1661
|
+
-webkit-box-orient: vertical;
|
|
1662
|
+
height: auto;
|
|
1663
|
+
margin-top: auto;
|
|
1664
|
+
margin-bottom: auto;
|
|
1665
|
+
overflow: hidden;
|
|
1666
|
+
padding-right: 6px;
|
|
1667
|
+
color: var(--color-content-heading);
|
|
1668
|
+
flex: 0 1 auto;
|
|
1669
|
+
max-width: 100%;
|
|
1670
|
+
min-width: 0;
|
|
1671
|
+
}
|
|
1700
1672
|
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1673
|
+
.header .a-quantity {
|
|
1674
|
+
border-radius: var(--radius-full, 999px);
|
|
1675
|
+
border: var(--border-s, 0.5px) solid var(--color-border-primary, #3F2B2E);
|
|
1676
|
+
background: var(--color-container-brand-accent, #FFC700);
|
|
1677
|
+
overflow: hidden;
|
|
1678
|
+
color: var(--color-content-body, #3F2B2E);
|
|
1679
|
+
text-align: center;
|
|
1680
|
+
text-overflow: ellipsis;
|
|
1681
|
+
font-family: var(--font-family-loccitane-sans);
|
|
1682
|
+
font-size: var(--font-size-100, 12px);
|
|
1683
|
+
font-weight: var(--font-weight-400, 400);
|
|
1684
|
+
line-height: var(--line-height-160, 16px);
|
|
1685
|
+
letter-spacing: var(--letter-spacing-000, 0);
|
|
1686
|
+
width: 16px;
|
|
1687
|
+
height: 16px;
|
|
1688
|
+
flex-shrink: 0;
|
|
1689
|
+
}
|
|
1718
1690
|
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1691
|
+
.header .close-btn {
|
|
1692
|
+
margin-left: 8px;
|
|
1693
|
+
margin-top: 0;
|
|
1694
|
+
flex-direction: column;
|
|
1695
|
+
justify-content: start;
|
|
1696
|
+
margin-left: auto;
|
|
1697
|
+
}
|
|
1726
1698
|
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1699
|
+
.header .return-btn {
|
|
1700
|
+
margin-right: 8px;
|
|
1701
|
+
}
|
|
1730
1702
|
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
}
|
|
1703
|
+
.header.detail-view-header {
|
|
1704
|
+
display: none;
|
|
1734
1705
|
}
|
|
1735
1706
|
|
|
1736
|
-
.detail-view {
|
|
1737
|
-
|
|
1738
|
-
&.detail-view-header {
|
|
1739
|
-
display: flex;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1707
|
+
.detail-view .header.detail-view-header {
|
|
1708
|
+
display: flex;
|
|
1742
1709
|
}
|
|
1743
1710
|
|
|
1744
1711
|
.panel:focus-visible,
|
|
@@ -1754,17 +1721,17 @@ u.styles = f`
|
|
|
1754
1721
|
.content {
|
|
1755
1722
|
flex: 1 1 auto;
|
|
1756
1723
|
padding: var(--spacing-xl);
|
|
1724
|
+
}
|
|
1757
1725
|
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
}
|
|
1726
|
+
.content.with-detail {
|
|
1727
|
+
width: 100%;
|
|
1728
|
+
height: 100%;
|
|
1729
|
+
position: absolute;
|
|
1730
|
+
top: 0;
|
|
1731
|
+
left: 0;
|
|
1732
|
+
background: var(--color-container-bg-white);
|
|
1733
|
+
z-index: 3;
|
|
1734
|
+
padding: var(--spacing-4-xs);
|
|
1768
1735
|
}
|
|
1769
1736
|
|
|
1770
1737
|
.footer {
|
|
@@ -1772,7 +1739,7 @@ u.styles = f`
|
|
|
1772
1739
|
padding: var(--spacing-xl);
|
|
1773
1740
|
border-top: var(--border-050) solid var(--color-border-tertiary);
|
|
1774
1741
|
display: flex;
|
|
1775
|
-
|
|
1742
|
+
flex-direction: column;
|
|
1776
1743
|
gap: var(--spacing-l);
|
|
1777
1744
|
justify-content: flex-start;
|
|
1778
1745
|
}
|
|
@@ -1916,10 +1883,10 @@ b([
|
|
|
1916
1883
|
u = b([
|
|
1917
1884
|
g("o-side-panel")
|
|
1918
1885
|
], u);
|
|
1919
|
-
var No = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, k = (o, t, e,
|
|
1920
|
-
for (var i =
|
|
1921
|
-
(s = o[
|
|
1922
|
-
return
|
|
1886
|
+
var No = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|
|
1887
|
+
for (var i = n > 1 ? void 0 : n ? qo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1888
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1889
|
+
return n && i && No(t, e, i), i;
|
|
1923
1890
|
};
|
|
1924
1891
|
const Vo = Xt(p);
|
|
1925
1892
|
let y = class extends Vo {
|
|
@@ -2017,8 +1984,8 @@ y.styles = f`
|
|
|
2017
1984
|
--button-border: transparent;
|
|
2018
1985
|
--button-border-width: var(--border-m);
|
|
2019
1986
|
--button-padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
|
|
2020
|
-
--button-starticon-svg-width: 0px;
|
|
2021
|
-
--button-endicon-svg-width: 0px;
|
|
1987
|
+
--button-starticon-svg-width: 0px;
|
|
1988
|
+
--button-endicon-svg-width: 0px;
|
|
2022
1989
|
}
|
|
2023
1990
|
|
|
2024
1991
|
:host([variant="secondary"]) {
|
|
@@ -2031,7 +1998,7 @@ y.styles = f`
|
|
|
2031
1998
|
--button-border-width: var(--border-m);
|
|
2032
1999
|
--button-padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
|
|
2033
2000
|
--button-starticon-svg-width: 16px;
|
|
2034
|
-
--button-endicon-svg-width: 0px;
|
|
2001
|
+
--button-endicon-svg-width: 0px;
|
|
2035
2002
|
}
|
|
2036
2003
|
|
|
2037
2004
|
:host([variant="ghost"]) {
|
|
@@ -2041,7 +2008,7 @@ y.styles = f`
|
|
|
2041
2008
|
--button-text: var(--color-content-action-secondary);
|
|
2042
2009
|
--button-text-hover: var(--color-content-action-secondary);
|
|
2043
2010
|
--button-border-width: 0;
|
|
2044
|
-
--button-padding: var(--spacing-m, 10px) var(--spacing-xl, 16px);
|
|
2011
|
+
--button-padding: var(--spacing-m, 10px) var(--spacing-xl, 16px);
|
|
2045
2012
|
--button-starticon-svg-width: 16px;
|
|
2046
2013
|
--button-endicon-svg-width: 12px;
|
|
2047
2014
|
}
|
|
@@ -2053,9 +2020,9 @@ y.styles = f`
|
|
|
2053
2020
|
--button-text: var(--color-content-body);
|
|
2054
2021
|
--button-text-hover: var(--color-content-action-tertiary);
|
|
2055
2022
|
--button-border-width: 0;
|
|
2056
|
-
--button-padding: var(--spacing-m, 10px) var(--spacing-l, 12px);
|
|
2057
|
-
--button-starticon-svg-width: 0px;
|
|
2058
|
-
--button-endicon-svg-width: 8px;
|
|
2023
|
+
--button-padding: var(--spacing-m, 10px) var(--spacing-l, 12px);
|
|
2024
|
+
--button-starticon-svg-width: 0px;
|
|
2025
|
+
--button-endicon-svg-width: 8px;
|
|
2059
2026
|
}
|
|
2060
2027
|
|
|
2061
2028
|
:host([disabled]),
|
|
@@ -2076,7 +2043,6 @@ y.styles = f`
|
|
|
2076
2043
|
justify-content: center;
|
|
2077
2044
|
width: 100%;
|
|
2078
2045
|
gap: var(--spacing-s, 8px);
|
|
2079
|
-
height: 100%;
|
|
2080
2046
|
background-color: var(--button-bg);
|
|
2081
2047
|
color: var(--button-text);
|
|
2082
2048
|
border: var(--button-border-width, var(--border-m)) solid var(--button-border);
|
|
@@ -2090,13 +2056,13 @@ y.styles = f`
|
|
|
2090
2056
|
text-decoration: none;
|
|
2091
2057
|
cursor: inherit;
|
|
2092
2058
|
box-sizing: border-box;
|
|
2059
|
+
}
|
|
2093
2060
|
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2061
|
+
.button span {
|
|
2062
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2063
|
+
font-size: var(--font-size-150);
|
|
2064
|
+
font-weight: var(--font-weight-400);
|
|
2065
|
+
line-height: var(--line-height-200);
|
|
2100
2066
|
}
|
|
2101
2067
|
|
|
2102
2068
|
.button:hover:not([disabled]) {
|
|
@@ -2121,20 +2087,28 @@ y.styles = f`
|
|
|
2121
2087
|
.icon-end {
|
|
2122
2088
|
display: inline-flex;
|
|
2123
2089
|
align-items: center;
|
|
2090
|
+
}
|
|
2124
2091
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2092
|
+
.icon-start svg,
|
|
2093
|
+
.icon-end svg {
|
|
2094
|
+
max-height: 20px;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
.icon-start svg[x],
|
|
2098
|
+
.icon-end svg[x] {
|
|
2099
|
+
width: 15px;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.icon-start path[fill],
|
|
2103
|
+
.icon-start path[class],
|
|
2104
|
+
.icon-end path[fill],
|
|
2105
|
+
.icon-end path[class] {
|
|
2106
|
+
fill: var(--button-text) !important;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
.icon-start path[stroke],
|
|
2110
|
+
.icon-end path[stroke] {
|
|
2111
|
+
stroke: var(--button-text) !important;
|
|
2138
2112
|
}
|
|
2139
2113
|
|
|
2140
2114
|
:host([variant="tertiary"][fullwidth][endIcon]) .button {
|
|
@@ -2150,7 +2124,7 @@ y.styles = f`
|
|
|
2150
2124
|
display: inline-flex;
|
|
2151
2125
|
align-items: center;
|
|
2152
2126
|
}
|
|
2153
|
-
|
|
2127
|
+
|
|
2154
2128
|
:host([variant="tertiary"][endIcon]) .button .icon-end {
|
|
2155
2129
|
width: var(--button-endicon-svg-width, 8px);
|
|
2156
2130
|
}
|
|
@@ -2159,16 +2133,18 @@ y.styles = f`
|
|
|
2159
2133
|
:host([underlined]) .text,
|
|
2160
2134
|
:host([underlined]:not([text])) .button slot {
|
|
2161
2135
|
position: relative;
|
|
2136
|
+
}
|
|
2162
2137
|
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2138
|
+
:host([underlined]) span:not([class*="icon-"])::after,
|
|
2139
|
+
:host([underlined]) .text::after,
|
|
2140
|
+
:host([underlined]:not([text])) .button slot::after {
|
|
2141
|
+
content: "";
|
|
2142
|
+
display: block;
|
|
2143
|
+
position: absolute;
|
|
2144
|
+
bottom: 0;
|
|
2145
|
+
left: 0;
|
|
2146
|
+
width: 100%;
|
|
2147
|
+
border-bottom: var(--border-M, 1px) solid var(--button-text);
|
|
2172
2148
|
}
|
|
2173
2149
|
|
|
2174
2150
|
:host([underlined]:not([text])) .button slot {
|
|
@@ -2176,13 +2152,10 @@ y.styles = f`
|
|
|
2176
2152
|
gap: 8px;
|
|
2177
2153
|
}
|
|
2178
2154
|
|
|
2179
|
-
:host([underlined][withbadge]:not([text])) .button slot {
|
|
2180
|
-
|
|
2181
|
-
width: calc(100% - var(--badge-outer-width, 19px) - var(--spacing-s, 8px))
|
|
2182
|
-
}
|
|
2155
|
+
:host([underlined][withbadge]:not([text])) .button slot::after {
|
|
2156
|
+
width: calc(100% - var(--badge-outer-width, 19px) - var(--spacing-s, 8px));
|
|
2183
2157
|
}
|
|
2184
2158
|
|
|
2185
|
-
//Icon movement on hover
|
|
2186
2159
|
:host([variant="tertiary"][endIcon]) .icon-end {
|
|
2187
2160
|
display: inline-flex;
|
|
2188
2161
|
align-items: center;
|
|
@@ -2192,7 +2165,6 @@ y.styles = f`
|
|
|
2192
2165
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2193
2166
|
transform: translateX(4px);
|
|
2194
2167
|
}
|
|
2195
|
-
//End icon movment on hover
|
|
2196
2168
|
`;
|
|
2197
2169
|
k([
|
|
2198
2170
|
a()
|
|
@@ -2245,10 +2217,10 @@ k([
|
|
|
2245
2217
|
y = k([
|
|
2246
2218
|
g("o-button")
|
|
2247
2219
|
], y);
|
|
2248
|
-
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, It = (o, t, e,
|
|
2249
|
-
for (var i =
|
|
2250
|
-
(s = o[
|
|
2251
|
-
return
|
|
2220
|
+
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, It = (o, t, e, n) => {
|
|
2221
|
+
for (var i = n > 1 ? void 0 : n ? Ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2222
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2223
|
+
return n && i && Zo(t, e, i), i;
|
|
2252
2224
|
};
|
|
2253
2225
|
let dt = class extends p {
|
|
2254
2226
|
constructor() {
|
|
@@ -2368,10 +2340,10 @@ It([
|
|
|
2368
2340
|
dt = It([
|
|
2369
2341
|
g("o-wishlist-button")
|
|
2370
2342
|
], dt);
|
|
2371
|
-
var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, lt = (o, t, e,
|
|
2372
|
-
for (var i =
|
|
2373
|
-
(s = o[
|
|
2374
|
-
return
|
|
2343
|
+
var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, lt = (o, t, e, n) => {
|
|
2344
|
+
for (var i = n > 1 ? void 0 : n ? Go(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2345
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2346
|
+
return n && i && Wo(t, e, i), i;
|
|
2375
2347
|
};
|
|
2376
2348
|
let K = class extends p {
|
|
2377
2349
|
constructor() {
|
|
@@ -2515,10 +2487,10 @@ lt([
|
|
|
2515
2487
|
K = lt([
|
|
2516
2488
|
g("o-link")
|
|
2517
2489
|
], K);
|
|
2518
|
-
var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Dt = (o, t, e,
|
|
2519
|
-
for (var i =
|
|
2520
|
-
(s = o[
|
|
2521
|
-
return
|
|
2490
|
+
var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Dt = (o, t, e, n) => {
|
|
2491
|
+
for (var i = n > 1 ? void 0 : n ? Yo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2492
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2493
|
+
return n && i && Xo(t, e, i), i;
|
|
2522
2494
|
};
|
|
2523
2495
|
let pt = class extends p {
|
|
2524
2496
|
constructor() {
|
|
@@ -2528,8 +2500,8 @@ let pt = class extends p {
|
|
|
2528
2500
|
const o = [];
|
|
2529
2501
|
for (let t = 0; t < 5; t++) {
|
|
2530
2502
|
const e = this.rating - t;
|
|
2531
|
-
let
|
|
2532
|
-
e >= 1 ?
|
|
2503
|
+
let n;
|
|
2504
|
+
e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, o.push(`star-${n}`);
|
|
2533
2505
|
}
|
|
2534
2506
|
return o;
|
|
2535
2507
|
}
|
|
@@ -2593,10 +2565,10 @@ Dt([
|
|
|
2593
2565
|
pt = Dt([
|
|
2594
2566
|
g("o-rating")
|
|
2595
2567
|
], pt);
|
|
2596
|
-
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ot = (o, t, e,
|
|
2597
|
-
for (var i =
|
|
2598
|
-
(s = o[
|
|
2599
|
-
return
|
|
2568
|
+
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
|
|
2569
|
+
for (var i = n > 1 ? void 0 : n ? Qo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2570
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2571
|
+
return n && i && Jo(t, e, i), i;
|
|
2600
2572
|
};
|
|
2601
2573
|
let F = class extends p {
|
|
2602
2574
|
constructor() {
|
|
@@ -2651,8 +2623,8 @@ let F = class extends p {
|
|
|
2651
2623
|
}), t.classList.add("a--tabfocus"), this.requestUpdate();
|
|
2652
2624
|
}
|
|
2653
2625
|
onFocusOut(o) {
|
|
2654
|
-
const t = o.currentTarget, e = Number(t.dataset.index),
|
|
2655
|
-
(!
|
|
2626
|
+
const t = o.currentTarget, e = Number(t.dataset.index), n = o.relatedTarget;
|
|
2627
|
+
(!n || this.shadowRoot && !this.shadowRoot.contains(n)) && (this.renderRoot.querySelectorAll(".thumb").forEach((s) => s.classList.remove("a--tabfocus")), e === this.lastIndex ? this.dispatchEvent(new CustomEvent("thumb-exit", {
|
|
2656
2628
|
detail: { from: "last", direction: "unspecified" },
|
|
2657
2629
|
bubbles: !0,
|
|
2658
2630
|
composed: !0
|
|
@@ -2666,20 +2638,20 @@ let F = class extends p {
|
|
|
2666
2638
|
return l`
|
|
2667
2639
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2668
2640
|
${this.thumbnails.map((o, t) => {
|
|
2669
|
-
const e = this.disabledIndexes.includes(t),
|
|
2641
|
+
const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video", r = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2670
2642
|
return l`
|
|
2671
2643
|
<li class="thumb-wrapper">
|
|
2672
2644
|
<button
|
|
2673
2645
|
class="thumb"
|
|
2674
2646
|
data-index="${t}"
|
|
2675
2647
|
?disabled=${e}
|
|
2676
|
-
aria-current=${
|
|
2648
|
+
aria-current=${n ? "true" : "false"}
|
|
2677
2649
|
@click=${() => this.selectThumbnail(t)}
|
|
2678
2650
|
@keydown=${this.handleKeyDown}
|
|
2679
2651
|
@focus=${(s) => this.onFocus(s)}
|
|
2680
2652
|
@focusout=${(s) => this.onFocusOut(s)}
|
|
2681
2653
|
>
|
|
2682
|
-
<img alt="${
|
|
2654
|
+
<img alt="${r}" src="${o.src}" />
|
|
2683
2655
|
</button>
|
|
2684
2656
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2685
2657
|
</li>
|
|
@@ -2724,18 +2696,17 @@ F.styles = f`
|
|
|
2724
2696
|
}
|
|
2725
2697
|
}
|
|
2726
2698
|
|
|
2727
|
-
.thumb[aria-selected="true"],
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
}
|
|
2699
|
+
.thumb[aria-selected="true"]::before,
|
|
2700
|
+
.a--tabfocus::before {
|
|
2701
|
+
content: "";
|
|
2702
|
+
position: absolute;
|
|
2703
|
+
top: 0;
|
|
2704
|
+
left: 0;
|
|
2705
|
+
right: 0;
|
|
2706
|
+
bottom: 0;
|
|
2707
|
+
border: 1px solid var(--color-border-primary);
|
|
2708
|
+
pointer-events: none;
|
|
2709
|
+
z-index: 1;
|
|
2739
2710
|
}
|
|
2740
2711
|
|
|
2741
2712
|
.thumb[disabled] {
|
|
@@ -2819,10 +2790,10 @@ ot([
|
|
|
2819
2790
|
F = ot([
|
|
2820
2791
|
g("thumbnail-navigation")
|
|
2821
2792
|
], F);
|
|
2822
|
-
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, te = (o, t, e,
|
|
2823
|
-
for (var i =
|
|
2824
|
-
(s = o[
|
|
2825
|
-
return
|
|
2793
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, te = (o, t, e, n) => {
|
|
2794
|
+
for (var i = n > 1 ? void 0 : n ? ei(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2795
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2796
|
+
return n && i && ti(t, e, i), i;
|
|
2826
2797
|
};
|
|
2827
2798
|
let wt = class extends p {
|
|
2828
2799
|
constructor() {
|
|
@@ -2903,10 +2874,10 @@ te([
|
|
|
2903
2874
|
wt = te([
|
|
2904
2875
|
g("o-tag")
|
|
2905
2876
|
], wt);
|
|
2906
|
-
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, ee = (o, t, e,
|
|
2907
|
-
for (var i =
|
|
2908
|
-
(s = o[
|
|
2909
|
-
return
|
|
2877
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, ee = (o, t, e, n) => {
|
|
2878
|
+
for (var i = n > 1 ? void 0 : n ? ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2879
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2880
|
+
return n && i && oi(t, e, i), i;
|
|
2910
2881
|
};
|
|
2911
2882
|
let $t = class extends p {
|
|
2912
2883
|
constructor() {
|
|
@@ -2945,33 +2916,33 @@ $t.styles = f`
|
|
|
2945
2916
|
z-index: 1;
|
|
2946
2917
|
}
|
|
2947
2918
|
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2919
|
+
.tooltip:hover .tooltiptext {
|
|
2920
|
+
visibility: visible;
|
|
2921
|
+
}
|
|
2951
2922
|
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2923
|
+
:host([type="right"]) .tooltip .tooltiptext {
|
|
2924
|
+
top: -5px;
|
|
2925
|
+
left: 105%;
|
|
2926
|
+
}
|
|
2956
2927
|
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2928
|
+
:host([type="left"]) .tooltip .tooltiptext {
|
|
2929
|
+
top: -5px;
|
|
2930
|
+
right: 105%;
|
|
2931
|
+
}
|
|
2961
2932
|
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2933
|
+
:host([type="top"]) .tooltip .tooltiptext {
|
|
2934
|
+
width: 120px;
|
|
2935
|
+
bottom: 100%;
|
|
2936
|
+
left: 50%;
|
|
2937
|
+
margin-left: -60px;
|
|
2938
|
+
}
|
|
2968
2939
|
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2940
|
+
:host([type="bottom"]) .tooltip .tooltiptext {
|
|
2941
|
+
width: 120px;
|
|
2942
|
+
top: 100%;
|
|
2943
|
+
left: 50%;
|
|
2944
|
+
margin-left: -60px;
|
|
2945
|
+
}
|
|
2975
2946
|
|
|
2976
2947
|
/* Styles communs à tous les types */
|
|
2977
2948
|
.tooltip .tooltiptext::after {
|
|
@@ -3023,10 +2994,10 @@ ee([
|
|
|
3023
2994
|
$t = ee([
|
|
3024
2995
|
g("o-tooltip")
|
|
3025
2996
|
], $t);
|
|
3026
|
-
var
|
|
3027
|
-
for (var i =
|
|
3028
|
-
(s = o[
|
|
3029
|
-
return
|
|
2997
|
+
var ni = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, G = (o, t, e, n) => {
|
|
2998
|
+
for (var i = n > 1 ? void 0 : n ? ri(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2999
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3000
|
+
return n && i && ni(t, e, i), i;
|
|
3030
3001
|
};
|
|
3031
3002
|
let T = class extends p {
|
|
3032
3003
|
constructor() {
|
|
@@ -3127,13 +3098,13 @@ let T = class extends p {
|
|
|
3127
3098
|
style=${`width: ${this.width};`}
|
|
3128
3099
|
>
|
|
3129
3100
|
${this.options.map(
|
|
3130
|
-
(e,
|
|
3101
|
+
(e, n) => l`
|
|
3131
3102
|
<li
|
|
3132
|
-
id="option-${
|
|
3103
|
+
id="option-${n}"
|
|
3133
3104
|
role="option"
|
|
3134
3105
|
aria-selected="${e.value === this.value}"
|
|
3135
|
-
tabindex="${
|
|
3136
|
-
class="${
|
|
3106
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
3107
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3137
3108
|
@click=${() => this.selectOption(e)}
|
|
3138
3109
|
>
|
|
3139
3110
|
${e.url ? l`
|
|
@@ -3152,145 +3123,144 @@ let T = class extends p {
|
|
|
3152
3123
|
}
|
|
3153
3124
|
};
|
|
3154
3125
|
T.styles = f`
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3126
|
+
:host {
|
|
3127
|
+
display: inline-block;
|
|
3128
|
+
position: relative;
|
|
3158
3129
|
width: 100%;
|
|
3159
|
-
|
|
3130
|
+
}
|
|
3160
3131
|
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
.label {
|
|
3173
|
-
font-family: var(--font-family-loccitane-sans);
|
|
3174
|
-
font-weight: var(--font-weight-400);
|
|
3175
|
-
font-size: var(--font-size-150);
|
|
3176
|
-
line-height: var(--line-height-200);
|
|
3177
|
-
letter-spacing: var(--letter-spacing-000);
|
|
3178
|
-
}
|
|
3132
|
+
button {
|
|
3133
|
+
padding: var(--spacing-s) var(--spacing-l);
|
|
3134
|
+
background-color: var(--color-container-bg-default);
|
|
3135
|
+
cursor: pointer;
|
|
3136
|
+
border-radius: var(--radius-m);
|
|
3137
|
+
border: var(--border-m) solid var(--color-border-tertiary);
|
|
3138
|
+
display: flex;
|
|
3139
|
+
justify-content: space-between;
|
|
3140
|
+
width: 100%;
|
|
3141
|
+
color: var(--color-content-body);
|
|
3142
|
+
}
|
|
3179
3143
|
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3144
|
+
button .label {
|
|
3145
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3146
|
+
font-weight: var(--font-weight-400);
|
|
3147
|
+
font-size: var(--font-size-150);
|
|
3148
|
+
line-height: var(--line-height-200);
|
|
3149
|
+
letter-spacing: var(--letter-spacing-000);
|
|
3150
|
+
}
|
|
3185
3151
|
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3152
|
+
button .arrow {
|
|
3153
|
+
margin-top: auto;
|
|
3154
|
+
margin-bottom: auto;
|
|
3155
|
+
margin-left: var(--spacing-s);
|
|
3156
|
+
}
|
|
3189
3157
|
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3158
|
+
button:disabled {
|
|
3159
|
+
background-color: var(--color-container-disabled);
|
|
3160
|
+
pointer-events: none;
|
|
3161
|
+
}
|
|
3194
3162
|
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3163
|
+
button:disabled .label {
|
|
3164
|
+
color: var(--color-content-disabled);
|
|
3165
|
+
}
|
|
3198
3166
|
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
}
|
|
3167
|
+
button:hover {
|
|
3168
|
+
border: var(--border-m) solid var(--color-border-primary);
|
|
3169
|
+
}
|
|
3203
3170
|
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3171
|
+
button[aria-expanded="true"] {
|
|
3172
|
+
border: var(--border-l) solid var(--color-border-primary);
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
ul {
|
|
3176
|
+
list-style: none;
|
|
3177
|
+
margin: 4px 0 0 0;
|
|
3178
|
+
padding: 0;
|
|
3179
|
+
border: var(--border-m) solid var(--color-border-tertiary);
|
|
3180
|
+
position: absolute;
|
|
3181
|
+
background: white;
|
|
3182
|
+
height: auto;
|
|
3183
|
+
overflow-y: auto;
|
|
3184
|
+
z-index: 1000;
|
|
3214
3185
|
border-radius: var(--radius-200);
|
|
3215
3186
|
background-color: var(--color-container-action-secondary-default);
|
|
3216
3187
|
max-height: calc(5 * 40px);
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
li {
|
|
3220
|
-
display: flex;
|
|
3221
|
-
justify-content: space-between;
|
|
3222
|
-
align-items: center;
|
|
3223
|
-
padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
|
|
3224
|
-
cursor: pointer;
|
|
3225
|
-
border-bottom: var(--border-s) solid var(--color-border-tertiary);
|
|
3188
|
+
}
|
|
3226
3189
|
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3190
|
+
li {
|
|
3191
|
+
display: flex;
|
|
3192
|
+
justify-content: space-between;
|
|
3193
|
+
align-items: center;
|
|
3194
|
+
padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
|
|
3195
|
+
cursor: pointer;
|
|
3196
|
+
border-bottom: var(--border-s) solid var(--color-border-tertiary);
|
|
3197
|
+
}
|
|
3234
3198
|
|
|
3235
|
-
|
|
3236
|
-
|
|
3199
|
+
li a {
|
|
3200
|
+
display: flex;
|
|
3201
|
+
justify-content: space-between;
|
|
3202
|
+
width: 100%;
|
|
3203
|
+
text-decoration: none;
|
|
3204
|
+
color: var(--color-content-body);
|
|
3205
|
+
}
|
|
3237
3206
|
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
}
|
|
3207
|
+
li.disabled {
|
|
3208
|
+
background-color: var(--color-container-disabled);
|
|
3209
|
+
}
|
|
3242
3210
|
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3211
|
+
li.disabled span {
|
|
3212
|
+
color: var(--color-content-disabled);
|
|
3213
|
+
}
|
|
3246
3214
|
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3215
|
+
li:hover:not(.disabled) {
|
|
3216
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
3217
|
+
}
|
|
3250
3218
|
|
|
3251
|
-
|
|
3252
|
-
|
|
3219
|
+
li:active:not(.disabled) {
|
|
3220
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
3221
|
+
}
|
|
3253
3222
|
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3223
|
+
li[aria-selected="true"] {
|
|
3224
|
+
background-color: var(--color-container-action-tertiary-default);
|
|
3225
|
+
}
|
|
3257
3226
|
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3227
|
+
li[aria-selected="true"]:hover {
|
|
3228
|
+
background-color: var(--color-container-action-tertiary-hover);
|
|
3229
|
+
}
|
|
3261
3230
|
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
}
|
|
3231
|
+
li[aria-selected="true"]:active {
|
|
3232
|
+
background-color: var(--color-container-action-tertiary-pressed);
|
|
3233
|
+
}
|
|
3266
3234
|
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3235
|
+
li[aria-selected="true"].disabled {
|
|
3236
|
+
background-color: var(--color-container-disabled);
|
|
3237
|
+
}
|
|
3270
3238
|
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
font-size: var(--font-size-150);
|
|
3275
|
-
line-height: var(--line-height-200);
|
|
3276
|
-
letter-spacing: var(--letter-spacing-000);
|
|
3277
|
-
height: auto;
|
|
3278
|
-
color: var(--color-content-body);
|
|
3239
|
+
li:last-child {
|
|
3240
|
+
border-bottom: none;
|
|
3241
|
+
}
|
|
3279
3242
|
|
|
3280
|
-
|
|
3281
|
-
|
|
3243
|
+
li span {
|
|
3244
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3245
|
+
font-weight: var(--font-weight-400);
|
|
3246
|
+
font-size: var(--font-size-150);
|
|
3247
|
+
line-height: var(--line-height-200);
|
|
3248
|
+
letter-spacing: var(--letter-spacing-000);
|
|
3249
|
+
height: auto;
|
|
3250
|
+
color: var(--color-content-body);
|
|
3251
|
+
}
|
|
3282
3252
|
|
|
3283
|
-
|
|
3253
|
+
.check {
|
|
3284
3254
|
margin-left: var(--spacing-100);
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3255
|
+
width: 12px;
|
|
3256
|
+
height: auto;
|
|
3257
|
+
color: var(--color-content-action-secondary);
|
|
3258
|
+
}
|
|
3288
3259
|
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
`;
|
|
3260
|
+
input[type="hidden"] {
|
|
3261
|
+
display: none;
|
|
3262
|
+
}
|
|
3263
|
+
`;
|
|
3294
3264
|
G([
|
|
3295
3265
|
a({ type: Array, reflect: !0 })
|
|
3296
3266
|
], T.prototype, "options", 2);
|
|
@@ -3318,9 +3288,9 @@ G([
|
|
|
3318
3288
|
T = G([
|
|
3319
3289
|
g("o-dropdown")
|
|
3320
3290
|
], T);
|
|
3321
|
-
var si = Object.getOwnPropertyDescriptor, ai = (o, t, e,
|
|
3322
|
-
for (var i =
|
|
3323
|
-
(s = o[
|
|
3291
|
+
var si = Object.getOwnPropertyDescriptor, ai = (o, t, e, n) => {
|
|
3292
|
+
for (var i = n > 1 ? void 0 : n ? si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3293
|
+
(s = o[r]) && (i = s(i) || i);
|
|
3324
3294
|
return i;
|
|
3325
3295
|
};
|
|
3326
3296
|
let Nt = class extends p {
|
|
@@ -3329,64 +3299,55 @@ let Nt = class extends p {
|
|
|
3329
3299
|
}
|
|
3330
3300
|
};
|
|
3331
3301
|
Nt.styles = f`
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
display: inline-block;
|
|
3340
|
-
width: 6px;
|
|
3341
|
-
height: 6px;
|
|
3342
|
-
border-radius: 50%;
|
|
3343
|
-
cursor: pointer;
|
|
3344
|
-
border: 1px solid var(--color-border-primary);
|
|
3345
|
-
box-sizing: border-box;
|
|
3346
|
-
background-color: var(--color-container-action-secondary-default);
|
|
3347
|
-
}
|
|
3348
|
-
}
|
|
3302
|
+
:host {
|
|
3303
|
+
display: flex;
|
|
3304
|
+
align-items: center;
|
|
3305
|
+
justify-content: center;
|
|
3306
|
+
height: 20px;
|
|
3307
|
+
width: 20px;
|
|
3308
|
+
}
|
|
3349
3309
|
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3310
|
+
.dots {
|
|
3311
|
+
display: inline-block;
|
|
3312
|
+
width: 6px;
|
|
3313
|
+
height: 6px;
|
|
3314
|
+
border-radius: 50%;
|
|
3315
|
+
cursor: pointer;
|
|
3316
|
+
border: 1px solid var(--color-border-primary);
|
|
3317
|
+
box-sizing: border-box;
|
|
3318
|
+
background-color: var(--color-container-action-secondary-default);
|
|
3319
|
+
}
|
|
3355
3320
|
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
}
|
|
3360
|
-
}
|
|
3321
|
+
:host(:hover) .dots {
|
|
3322
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
3323
|
+
}
|
|
3361
3324
|
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
border: 0.5px solid var(--color-border-white);
|
|
3366
|
-
width: 8px;
|
|
3367
|
-
height: 8px;
|
|
3368
|
-
}
|
|
3369
|
-
}
|
|
3325
|
+
:host(:active) .dots {
|
|
3326
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
3327
|
+
}
|
|
3370
3328
|
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3329
|
+
:host([aria-current="true"]) .dots {
|
|
3330
|
+
background-color: var(--color-container-action-primary-default);
|
|
3331
|
+
border: 0.5px solid var(--color-border-white);
|
|
3332
|
+
width: 8px;
|
|
3333
|
+
height: 8px;
|
|
3334
|
+
}
|
|
3376
3335
|
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3336
|
+
:host([aria-current="true"]:hover) .dots {
|
|
3337
|
+
background-color: var(--color-container-action-primary-hover);
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
:host([aria-current="true"]:active) .dots {
|
|
3341
|
+
background-color: var(--color-container-action-primary-pressed);
|
|
3342
|
+
}
|
|
3343
|
+
`;
|
|
3383
3344
|
Nt = ai([
|
|
3384
3345
|
g("o-dots")
|
|
3385
3346
|
], Nt);
|
|
3386
|
-
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, U = (o, t, e,
|
|
3387
|
-
for (var i =
|
|
3388
|
-
(s = o[
|
|
3389
|
-
return
|
|
3347
|
+
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, U = (o, t, e, n) => {
|
|
3348
|
+
for (var i = n > 1 ? void 0 : n ? ci(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3349
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3350
|
+
return n && i && li(t, e, i), i;
|
|
3390
3351
|
};
|
|
3391
3352
|
let z = class extends p {
|
|
3392
3353
|
constructor() {
|
|
@@ -3497,14 +3458,14 @@ let z = class extends p {
|
|
|
3497
3458
|
style=${`width: ${this.width};`}
|
|
3498
3459
|
>
|
|
3499
3460
|
${this.options.map(
|
|
3500
|
-
(e,
|
|
3461
|
+
(e, n) => l`
|
|
3501
3462
|
<li
|
|
3502
|
-
id="option-${
|
|
3463
|
+
id="option-${n}"
|
|
3503
3464
|
role="option"
|
|
3504
3465
|
aria-selected="${e.value === this.value}"
|
|
3505
3466
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3506
|
-
tabindex="${
|
|
3507
|
-
class="${
|
|
3467
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
3468
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3508
3469
|
@click=${() => this.selectOption(e)}
|
|
3509
3470
|
>
|
|
3510
3471
|
<a href="${P(e.url)}">
|
|
@@ -3526,180 +3487,180 @@ let z = class extends p {
|
|
|
3526
3487
|
}
|
|
3527
3488
|
};
|
|
3528
3489
|
z.styles = f`
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3490
|
+
:host {
|
|
3491
|
+
display: inline-block;
|
|
3492
|
+
position: relative;
|
|
3493
|
+
width: 100%;
|
|
3494
|
+
}
|
|
3534
3495
|
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3496
|
+
.btn-dropdown {
|
|
3497
|
+
display: flex;
|
|
3498
|
+
gap: var(--spacing-l);
|
|
3499
|
+
width: 100%;
|
|
3500
|
+
color: var(--color-content-body);
|
|
3501
|
+
align-items: center;
|
|
3502
|
+
background-color: var(--color-container-bg-default);
|
|
3503
|
+
cursor: pointer;
|
|
3504
|
+
border-radius: var(--radius-m);
|
|
3505
|
+
border: var(--border-m) solid var(--color-border-tertiary);
|
|
3506
|
+
padding: 0;
|
|
3507
|
+
overflow: hidden;
|
|
3508
|
+
}
|
|
3547
3509
|
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3510
|
+
.btn-dropdown:disabled {
|
|
3511
|
+
background-color: var(--color-container-disabled);
|
|
3512
|
+
pointer-events: none;
|
|
3513
|
+
}
|
|
3551
3514
|
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
}
|
|
3515
|
+
.btn-dropdown:disabled .label {
|
|
3516
|
+
color: var(--color-content-disabled);
|
|
3517
|
+
}
|
|
3556
3518
|
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3519
|
+
.btn-dropdown img {
|
|
3520
|
+
width: 40px;
|
|
3521
|
+
height: 50px;
|
|
3522
|
+
}
|
|
3561
3523
|
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3524
|
+
.btn-dropdown .right {
|
|
3525
|
+
display: flex;
|
|
3526
|
+
align-items: center;
|
|
3527
|
+
gap: var(--spacing-l);
|
|
3528
|
+
}
|
|
3567
3529
|
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3530
|
+
.btn-dropdown .arrow {
|
|
3531
|
+
margin-top: auto;
|
|
3532
|
+
margin-bottom: auto;
|
|
3533
|
+
margin-right: var(--spacing-l);
|
|
3534
|
+
}
|
|
3573
3535
|
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3536
|
+
.btn-dropdown:hover {
|
|
3537
|
+
border: var(--border-m) solid var(--color-border-primary);
|
|
3538
|
+
}
|
|
3577
3539
|
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
}
|
|
3540
|
+
.btn-dropdown[aria-expanded="true"] {
|
|
3541
|
+
border: var(--border-l) solid var(--color-border-primary);
|
|
3542
|
+
}
|
|
3582
3543
|
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3544
|
+
.label {
|
|
3545
|
+
flex: 1;
|
|
3546
|
+
text-align: start;
|
|
3547
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3548
|
+
font-weight: var(--font-weight-500);
|
|
3549
|
+
font-size: var(--font-size-100);
|
|
3550
|
+
line-height: var(--line-height-160);
|
|
3551
|
+
letter-spacing: var(--letter-spacing-400);
|
|
3552
|
+
text-transform: uppercase;
|
|
3553
|
+
color: var(--color-content-body);
|
|
3554
|
+
}
|
|
3594
3555
|
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3556
|
+
ul {
|
|
3557
|
+
list-style: none;
|
|
3558
|
+
margin: 4px 0 0 0;
|
|
3559
|
+
padding: 0;
|
|
3560
|
+
border: var(--border-m) solid var(--color-border-tertiary);
|
|
3561
|
+
position: absolute;
|
|
3562
|
+
background: white;
|
|
3563
|
+
height: auto;
|
|
3564
|
+
overflow-y: auto;
|
|
3565
|
+
z-index: 1000;
|
|
3566
|
+
border-radius: var(--radius-200);
|
|
3567
|
+
background-color: var(--color-container-action-secondary-default);
|
|
3568
|
+
max-height: calc(5 * 40px);
|
|
3569
|
+
}
|
|
3609
3570
|
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
a {
|
|
3620
|
-
display: flex;
|
|
3621
|
-
width: 100%;
|
|
3622
|
-
gap: var(--spacing-l);
|
|
3623
|
-
align-items: center;
|
|
3624
|
-
text-decoration: none;
|
|
3625
|
-
|
|
3626
|
-
&:active {
|
|
3627
|
-
color: inherit;
|
|
3628
|
-
text-decoration: none;
|
|
3629
|
-
}
|
|
3630
|
-
|
|
3631
|
-
img {
|
|
3632
|
-
width: 40px;
|
|
3633
|
-
height: 50px;
|
|
3634
|
-
}
|
|
3635
|
-
}
|
|
3571
|
+
li {
|
|
3572
|
+
display: flex;
|
|
3573
|
+
justify-content: space-between;
|
|
3574
|
+
align-items: center;
|
|
3575
|
+
cursor: pointer;
|
|
3576
|
+
border-bottom: var(--border-s) solid var(--color-border-tertiary);
|
|
3577
|
+
gap: var(--spacing-l);
|
|
3578
|
+
padding-right: var(--spacing-l);
|
|
3579
|
+
}
|
|
3636
3580
|
|
|
3637
|
-
|
|
3638
|
-
|
|
3581
|
+
li a {
|
|
3582
|
+
display: flex;
|
|
3583
|
+
width: 100%;
|
|
3584
|
+
gap: var(--spacing-l);
|
|
3585
|
+
align-items: center;
|
|
3586
|
+
text-decoration: none;
|
|
3587
|
+
}
|
|
3639
3588
|
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3589
|
+
li a:active {
|
|
3590
|
+
color: inherit;
|
|
3591
|
+
text-decoration: none;
|
|
3592
|
+
}
|
|
3644
3593
|
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3594
|
+
li a img {
|
|
3595
|
+
width: 40px;
|
|
3596
|
+
height: 50px;
|
|
3597
|
+
}
|
|
3648
3598
|
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3599
|
+
li.disabled {
|
|
3600
|
+
background-color: var(--color-container-disabled);
|
|
3601
|
+
}
|
|
3652
3602
|
|
|
3653
|
-
|
|
3654
|
-
|
|
3603
|
+
li.disabled .label {
|
|
3604
|
+
color: var(--color-content-disabled);
|
|
3605
|
+
}
|
|
3655
3606
|
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3607
|
+
li:hover:not(.disabled) {
|
|
3608
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
3609
|
+
}
|
|
3659
3610
|
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3611
|
+
li:active:not(.disabled) {
|
|
3612
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
3613
|
+
}
|
|
3663
3614
|
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
}
|
|
3615
|
+
li[aria-selected="true"] {
|
|
3616
|
+
background-color: var(--color-container-action-tertiary-default);
|
|
3617
|
+
}
|
|
3668
3618
|
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3619
|
+
li[aria-selected="true"]:hover {
|
|
3620
|
+
background-color: var(--color-container-action-tertiary-hover);
|
|
3621
|
+
}
|
|
3672
3622
|
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
font-size: var(--font-size-150);
|
|
3677
|
-
line-height: var(--line-height-200);
|
|
3678
|
-
letter-spacing: var(--letter-spacing-000);
|
|
3679
|
-
height: auto;
|
|
3680
|
-
}
|
|
3681
|
-
}
|
|
3623
|
+
li[aria-selected="true"]:active {
|
|
3624
|
+
background-color: var(--color-container-action-tertiary-pressed);
|
|
3625
|
+
}
|
|
3682
3626
|
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
font-size: var(--font-size-100);
|
|
3687
|
-
line-height: var(--line-height-160);
|
|
3688
|
-
letter-spacing: var(--letter-spacing-400);
|
|
3689
|
-
text-decoration: none;
|
|
3690
|
-
color: var(--color-content-description);
|
|
3691
|
-
}
|
|
3627
|
+
li[aria-selected="true"].disabled {
|
|
3628
|
+
background-color: var(--color-container-disabled);
|
|
3629
|
+
}
|
|
3692
3630
|
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
height: auto;
|
|
3697
|
-
color: var(--color-content-action-secondary);
|
|
3698
|
-
}
|
|
3631
|
+
li:last-child {
|
|
3632
|
+
border-bottom: none;
|
|
3633
|
+
}
|
|
3699
3634
|
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3635
|
+
li span {
|
|
3636
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3637
|
+
font-weight: var(--font-weight-400);
|
|
3638
|
+
font-size: var(--font-size-150);
|
|
3639
|
+
line-height: var(--line-height-200);
|
|
3640
|
+
letter-spacing: var(--letter-spacing-000);
|
|
3641
|
+
height: auto;
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
.additional-text {
|
|
3645
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3646
|
+
font-weight: var(--font-weight-400);
|
|
3647
|
+
font-size: var(--font-size-100);
|
|
3648
|
+
line-height: var(--line-height-160);
|
|
3649
|
+
letter-spacing: var(--letter-spacing-400);
|
|
3650
|
+
text-decoration: none;
|
|
3651
|
+
color: var(--color-content-description);
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
.check {
|
|
3655
|
+
margin-left: var(--spacing-100);
|
|
3656
|
+
width: 12px;
|
|
3657
|
+
height: auto;
|
|
3658
|
+
color: var(--color-content-action-secondary);
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
input[type="hidden"] {
|
|
3662
|
+
display: none;
|
|
3663
|
+
}
|
|
3703
3664
|
`;
|
|
3704
3665
|
U([
|
|
3705
3666
|
a({ type: Array, reflect: !0 })
|
|
@@ -3743,29 +3704,29 @@ const Ee = "important", hi = " !" + Ee, di = Jt(class extends Qt {
|
|
|
3743
3704
|
}
|
|
3744
3705
|
render(o) {
|
|
3745
3706
|
return Object.keys(o).reduce((t, e) => {
|
|
3746
|
-
const
|
|
3747
|
-
return
|
|
3707
|
+
const n = o[e];
|
|
3708
|
+
return n == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${n};`;
|
|
3748
3709
|
}, "");
|
|
3749
3710
|
}
|
|
3750
3711
|
update(o, [t]) {
|
|
3751
3712
|
const { style: e } = o.element;
|
|
3752
3713
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3753
|
-
for (const
|
|
3754
|
-
for (const
|
|
3755
|
-
const i = t[
|
|
3714
|
+
for (const n of this.ft) t[n] == null && (this.ft.delete(n), n.includes("-") ? e.removeProperty(n) : e[n] = null);
|
|
3715
|
+
for (const n in t) {
|
|
3716
|
+
const i = t[n];
|
|
3756
3717
|
if (i != null) {
|
|
3757
|
-
this.ft.add(
|
|
3758
|
-
const
|
|
3759
|
-
|
|
3718
|
+
this.ft.add(n);
|
|
3719
|
+
const r = typeof i == "string" && i.endsWith(hi);
|
|
3720
|
+
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? Ee : "") : e[n] = i;
|
|
3760
3721
|
}
|
|
3761
3722
|
}
|
|
3762
3723
|
return tt;
|
|
3763
3724
|
}
|
|
3764
3725
|
});
|
|
3765
|
-
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, oe = (o, t, e,
|
|
3766
|
-
for (var i =
|
|
3767
|
-
(s = o[
|
|
3768
|
-
return
|
|
3726
|
+
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, oe = (o, t, e, n) => {
|
|
3727
|
+
for (var i = n > 1 ? void 0 : n ? ui(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3728
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3729
|
+
return n && i && pi(t, e, i), i;
|
|
3769
3730
|
};
|
|
3770
3731
|
let kt = class extends p {
|
|
3771
3732
|
constructor() {
|
|
@@ -3778,14 +3739,14 @@ let kt = class extends p {
|
|
|
3778
3739
|
}, t = this.option && this.option.clickable, e = {
|
|
3779
3740
|
width: `${this.imageSize}px`,
|
|
3780
3741
|
height: `${this.imageSize}px`
|
|
3781
|
-
},
|
|
3782
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${P(
|
|
3742
|
+
}, n = this.option && this.option.title ? o(this.option.title) : "", i = this.option && this.option.description ? o(this.option.description) : "", r = l`
|
|
3743
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${P(n)}" aria-hidden="true" style=${di(e)} />` : ""}
|
|
3783
3744
|
<div class="m-reassurance-content">
|
|
3784
|
-
<h3 class="a-reassurance-text">${P(
|
|
3745
|
+
<h3 class="a-reassurance-text">${P(n)}</h3>
|
|
3785
3746
|
<p class="a-reassurance-description">${P(i)}</p>
|
|
3786
3747
|
</div>
|
|
3787
3748
|
`;
|
|
3788
|
-
return t ? l`<a href="${P(this.option.url)}" class="reassurance-item clickable">${
|
|
3749
|
+
return t ? l`<a href="${P(this.option.url)}" class="reassurance-item clickable">${r}</a>` : l`<div class="reassurance-item">${r}</div>`;
|
|
3789
3750
|
}
|
|
3790
3751
|
};
|
|
3791
3752
|
kt.styles = f`
|
|
@@ -3803,71 +3764,71 @@ kt.styles = f`
|
|
|
3803
3764
|
background-color: var(--color-container-bg-white);
|
|
3804
3765
|
border-radius: var(--radius-m);
|
|
3805
3766
|
padding: var(--spacing-xl);
|
|
3767
|
+
}
|
|
3806
3768
|
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3769
|
+
.reassurance-item:has(img) {
|
|
3770
|
+
padding: 3px var(--spacing-s) 3px var(--spacing-2-xs);
|
|
3771
|
+
}
|
|
3810
3772
|
|
|
3811
|
-
|
|
3812
|
-
|
|
3773
|
+
.reassurance-item.clickable {
|
|
3774
|
+
text-decoration: none;
|
|
3775
|
+
}
|
|
3813
3776
|
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3777
|
+
.reassurance-item.clickable:disabled {
|
|
3778
|
+
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
|
|
3779
|
+
}
|
|
3817
3780
|
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3781
|
+
.reassurance-item.clickable:hover {
|
|
3782
|
+
border: none;
|
|
3783
|
+
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
|
|
3784
|
+
}
|
|
3822
3785
|
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
}
|
|
3786
|
+
.reassurance-item.clickable:active {
|
|
3787
|
+
border: none;
|
|
3788
|
+
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.32);
|
|
3789
|
+
}
|
|
3828
3790
|
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3791
|
+
.reassurance-item img {
|
|
3792
|
+
display: block;
|
|
3793
|
+
aspect-ratio: 1 / 1;
|
|
3794
|
+
border-radius: var(--radius-s);
|
|
3795
|
+
}
|
|
3834
3796
|
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3797
|
+
.reassurance-item .m-reassurance-content {
|
|
3798
|
+
display: flex;
|
|
3799
|
+
flex-direction: column;
|
|
3800
|
+
justify-content: flex-start;
|
|
3801
|
+
row-gap: var(--spacing-3-xs);
|
|
3802
|
+
}
|
|
3841
3803
|
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3804
|
+
.reassurance-item .a-reassurance-text {
|
|
3805
|
+
color: var(--color-content-body);
|
|
3806
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3807
|
+
font-size: var(--font-size-100);
|
|
3808
|
+
font-weight: var(--font-weight-500);
|
|
3809
|
+
line-height: var(--line-height-160);
|
|
3810
|
+
letter-spacing: var(--letter-spacing-400);
|
|
3811
|
+
text-transform: uppercase;
|
|
3812
|
+
margin: var(--spacing-4-xs);
|
|
3813
|
+
display: -webkit-box;
|
|
3814
|
+
-webkit-line-clamp: 1;
|
|
3815
|
+
line-clamp: 1;
|
|
3816
|
+
-webkit-box-orient: vertical;
|
|
3817
|
+
overflow: hidden;
|
|
3818
|
+
}
|
|
3857
3819
|
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
}
|
|
3820
|
+
.reassurance-item .a-reassurance-description {
|
|
3821
|
+
color: var(--color-content-description);
|
|
3822
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3823
|
+
font-size: var(--font-size-150);
|
|
3824
|
+
font-weight: var(--font-weight-400);
|
|
3825
|
+
line-height: var(--line-height-200);
|
|
3826
|
+
margin: var(--spacing-4-xs);
|
|
3827
|
+
display: -webkit-box;
|
|
3828
|
+
-webkit-line-clamp: 2;
|
|
3829
|
+
line-clamp: 2;
|
|
3830
|
+
-webkit-box-orient: vertical;
|
|
3831
|
+
overflow: hidden;
|
|
3871
3832
|
}
|
|
3872
3833
|
`;
|
|
3873
3834
|
oe([
|
|
@@ -3879,10 +3840,10 @@ oe([
|
|
|
3879
3840
|
kt = oe([
|
|
3880
3841
|
g("o-reassurance")
|
|
3881
3842
|
], kt);
|
|
3882
|
-
var fi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, X = (o, t, e,
|
|
3883
|
-
for (var i =
|
|
3884
|
-
(s = o[
|
|
3885
|
-
return
|
|
3843
|
+
var fi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, X = (o, t, e, n) => {
|
|
3844
|
+
for (var i = n > 1 ? void 0 : n ? vi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3845
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3846
|
+
return n && i && fi(t, e, i), i;
|
|
3886
3847
|
};
|
|
3887
3848
|
const gi = Xt(p);
|
|
3888
3849
|
let O = class extends gi {
|
|
@@ -3966,26 +3927,30 @@ O.styles = f`
|
|
|
3966
3927
|
text-decoration: none;
|
|
3967
3928
|
cursor: inherit;
|
|
3968
3929
|
box-sizing: border-box;
|
|
3930
|
+
}
|
|
3969
3931
|
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3932
|
+
.o-chip span,
|
|
3933
|
+
.button span {
|
|
3934
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3935
|
+
font-size: var(--font-size-150);
|
|
3936
|
+
font-weight: var(--font-weight-400);
|
|
3937
|
+
line-height: var(--line-height-200);
|
|
3938
|
+
}
|
|
3976
3939
|
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3940
|
+
.o-chip:hover,
|
|
3941
|
+
.button:hover {
|
|
3942
|
+
background-color: var(--button-bg-hover);
|
|
3943
|
+
color: var(--button-text-hover);
|
|
3944
|
+
}
|
|
3981
3945
|
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3946
|
+
.o-chip:active,
|
|
3947
|
+
.button:active {
|
|
3948
|
+
background-color: var(--button-bg-pressed);
|
|
3949
|
+
}
|
|
3985
3950
|
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
}
|
|
3951
|
+
.o-chip:focus-visible,
|
|
3952
|
+
.button:focus-visible {
|
|
3953
|
+
${at};
|
|
3989
3954
|
}
|
|
3990
3955
|
|
|
3991
3956
|
span.text + span.text::before {
|
|
@@ -4025,10 +3990,10 @@ X([
|
|
|
4025
3990
|
O = X([
|
|
4026
3991
|
g("o-chip")
|
|
4027
3992
|
], O);
|
|
4028
|
-
var bi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, ie = (o, t, e,
|
|
4029
|
-
for (var i =
|
|
4030
|
-
(s = o[
|
|
4031
|
-
return
|
|
3993
|
+
var bi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, ie = (o, t, e, n) => {
|
|
3994
|
+
for (var i = n > 1 ? void 0 : n ? yi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3995
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3996
|
+
return n && i && bi(t, e, i), i;
|
|
4032
3997
|
};
|
|
4033
3998
|
let _t = class extends p {
|
|
4034
3999
|
constructor() {
|
|
@@ -4063,10 +4028,10 @@ ie([
|
|
|
4063
4028
|
_t = ie([
|
|
4064
4029
|
g("o-chipset")
|
|
4065
4030
|
], _t);
|
|
4066
|
-
var mi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, N = (o, t, e,
|
|
4067
|
-
for (var i =
|
|
4068
|
-
(s = o[
|
|
4069
|
-
return
|
|
4031
|
+
var mi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, N = (o, t, e, n) => {
|
|
4032
|
+
for (var i = n > 1 ? void 0 : n ? xi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4033
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4034
|
+
return n && i && mi(t, e, i), i;
|
|
4070
4035
|
};
|
|
4071
4036
|
const wi = Xt(p);
|
|
4072
4037
|
let I = class extends wi {
|
|
@@ -4088,7 +4053,7 @@ let I = class extends wi {
|
|
|
4088
4053
|
return l`<span class="cross-icon">${S(o)}</span>`;
|
|
4089
4054
|
}
|
|
4090
4055
|
strikeThroughImg() {
|
|
4091
|
-
const o =
|
|
4056
|
+
const o = Ao[this.strikethroughImgName].replace(
|
|
4092
4057
|
"<svg",
|
|
4093
4058
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4094
4059
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
@@ -4180,13 +4145,15 @@ I.styles = f`
|
|
|
4180
4145
|
text-decoration: none;
|
|
4181
4146
|
cursor: inherit;
|
|
4182
4147
|
box-sizing: border-box;
|
|
4148
|
+
}
|
|
4183
4149
|
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4150
|
+
.button span {
|
|
4151
|
+
font-family: var(--font-family-loccitane-sans);
|
|
4152
|
+
font-size: var(--font-size-150);
|
|
4153
|
+
font-weight: var(--font-weight-400);
|
|
4154
|
+
line-height: var(--line-height-200);
|
|
4155
|
+
display: inline-flex;
|
|
4156
|
+
align-items: center;
|
|
4190
4157
|
}
|
|
4191
4158
|
|
|
4192
4159
|
.button:hover:not([disabled]) {
|
|
@@ -4210,17 +4177,12 @@ I.styles = f`
|
|
|
4210
4177
|
.cross-icon {
|
|
4211
4178
|
display: inline-flex;
|
|
4212
4179
|
align-items: center;
|
|
4213
|
-
|
|
4214
|
-
svg {
|
|
4215
|
-
width: 8px;
|
|
4216
|
-
height: 8px;
|
|
4217
|
-
stroke: var(--color-content-action-primary);
|
|
4218
|
-
}
|
|
4219
4180
|
}
|
|
4220
4181
|
|
|
4221
|
-
.
|
|
4222
|
-
|
|
4223
|
-
|
|
4182
|
+
.cross-icon svg {
|
|
4183
|
+
width: 8px;
|
|
4184
|
+
height: 8px;
|
|
4185
|
+
stroke: var(--color-content-action-primary);
|
|
4224
4186
|
}
|
|
4225
4187
|
|
|
4226
4188
|
.button slot {
|
|
@@ -4237,12 +4199,12 @@ I.styles = f`
|
|
|
4237
4199
|
bottom: 0;
|
|
4238
4200
|
left: 0;
|
|
4239
4201
|
right: 0;
|
|
4202
|
+
}
|
|
4240
4203
|
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
}
|
|
4204
|
+
[part="strikethrough"] line {
|
|
4205
|
+
stroke: var(--button-strikethrough-stroke);
|
|
4206
|
+
stroke-width: 4px;
|
|
4207
|
+
stroke-linecap: round;
|
|
4246
4208
|
}
|
|
4247
4209
|
`;
|
|
4248
4210
|
N([
|
|
@@ -4275,9 +4237,9 @@ N([
|
|
|
4275
4237
|
I = N([
|
|
4276
4238
|
g("o-filter-chip")
|
|
4277
4239
|
], I);
|
|
4278
|
-
var $i = Object.defineProperty, M = (o, t, e,
|
|
4279
|
-
for (var i = void 0,
|
|
4280
|
-
(s = o[
|
|
4240
|
+
var $i = Object.defineProperty, M = (o, t, e, n) => {
|
|
4241
|
+
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
4242
|
+
(s = o[r]) && (i = s(t, e, i) || i);
|
|
4281
4243
|
return i && $i(t, e, i), i;
|
|
4282
4244
|
};
|
|
4283
4245
|
const se = class se extends p {
|
|
@@ -4285,9 +4247,9 @@ const se = class se extends p {
|
|
|
4285
4247
|
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 = "";
|
|
4286
4248
|
}
|
|
4287
4249
|
onClick(t) {
|
|
4288
|
-
var
|
|
4250
|
+
var n, i;
|
|
4289
4251
|
const e = t.target;
|
|
4290
|
-
(
|
|
4252
|
+
(n = e == null ? void 0 : e.classList) != null && n.contains("add-to-bag") || ((i = this.onClickTile) == null || i.call(this), this.dispatchEvent(
|
|
4291
4253
|
new CustomEvent("tile-click", { bubbles: !0, composed: !0 })
|
|
4292
4254
|
));
|
|
4293
4255
|
}
|
|
@@ -4368,10 +4330,10 @@ se.styles = f`
|
|
|
4368
4330
|
margin: 0;
|
|
4369
4331
|
border: 0 none;
|
|
4370
4332
|
box-sizing: content-box;
|
|
4333
|
+
}
|
|
4371
4334
|
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
}
|
|
4335
|
+
.tile o-icon-button {
|
|
4336
|
+
margin-left: var(--spacing-xl);
|
|
4375
4337
|
}
|
|
4376
4338
|
|
|
4377
4339
|
.tile.fullwidth {
|
|
@@ -4405,16 +4367,16 @@ se.styles = f`
|
|
|
4405
4367
|
display: -webkit-box;
|
|
4406
4368
|
-webkit-line-clamp: 2;
|
|
4407
4369
|
-webkit-box-orient: vertical;
|
|
4370
|
+
}
|
|
4408
4371
|
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
}
|
|
4372
|
+
.info .title + .details {
|
|
4373
|
+
padding-top: var(--spacing-s);
|
|
4374
|
+
overflow: hidden;
|
|
4375
|
+
text-overflow: ellipsis;
|
|
4376
|
+
display: -webkit-box;
|
|
4377
|
+
-webkit-line-clamp: 1;
|
|
4378
|
+
-webkit-box-orient: vertical;
|
|
4379
|
+
text-align: left;
|
|
4418
4380
|
}
|
|
4419
4381
|
|
|
4420
4382
|
.info .details {
|
|
@@ -4427,14 +4389,12 @@ se.styles = f`
|
|
|
4427
4389
|
color: var(--colors-noir-des-terres-500);
|
|
4428
4390
|
font-family: var(--font-family-loccitane-sans);
|
|
4429
4391
|
line-height: var(--line-height-160);
|
|
4392
|
+
}
|
|
4430
4393
|
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
color: var(--colors-noir-des-terres-500);
|
|
4436
|
-
}
|
|
4437
|
-
}
|
|
4394
|
+
.info .volume-info + .main-price::before {
|
|
4395
|
+
content: "•";
|
|
4396
|
+
padding: 0 var(--spacing-xs) 0 var(--spacing-2-xs);
|
|
4397
|
+
color: var(--colors-noir-des-terres-500);
|
|
4438
4398
|
}
|
|
4439
4399
|
|
|
4440
4400
|
.info o-tag {
|
|
@@ -4496,10 +4456,10 @@ M([
|
|
|
4496
4456
|
a({ attribute: !1 })
|
|
4497
4457
|
], E.prototype, "onClickIcon");
|
|
4498
4458
|
customElements.define("mini-tile", E);
|
|
4499
|
-
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor,
|
|
4500
|
-
for (var i =
|
|
4501
|
-
(s = o[
|
|
4502
|
-
return
|
|
4459
|
+
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, ne = (o, t, e, n) => {
|
|
4460
|
+
for (var i = n > 1 ? void 0 : n ? _i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4461
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4462
|
+
return n && i && ki(t, e, i), i;
|
|
4503
4463
|
};
|
|
4504
4464
|
let Ct = class extends p {
|
|
4505
4465
|
constructor() {
|
|
@@ -4548,21 +4508,21 @@ Ct.styles = f`
|
|
|
4548
4508
|
}
|
|
4549
4509
|
|
|
4550
4510
|
`;
|
|
4551
|
-
|
|
4511
|
+
ne([
|
|
4552
4512
|
a({ type: String, reflect: !0 })
|
|
4553
4513
|
], Ct.prototype, "variant", 2);
|
|
4554
|
-
|
|
4514
|
+
ne([
|
|
4555
4515
|
a({ type: String })
|
|
4556
4516
|
], Ct.prototype, "text", 2);
|
|
4557
|
-
Ct =
|
|
4517
|
+
Ct = ne([
|
|
4558
4518
|
g("o-badge")
|
|
4559
4519
|
], Ct);
|
|
4560
|
-
var Ci = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, H = (o, t, e,
|
|
4561
|
-
for (var i =
|
|
4562
|
-
(s = o[
|
|
4563
|
-
return
|
|
4520
|
+
var Ci = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
4521
|
+
for (var i = n > 1 ? void 0 : n ? Si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4522
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4523
|
+
return n && i && Ci(t, e, i), i;
|
|
4564
4524
|
};
|
|
4565
|
-
let
|
|
4525
|
+
let L = class extends p {
|
|
4566
4526
|
constructor() {
|
|
4567
4527
|
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;
|
|
4568
4528
|
}
|
|
@@ -4594,11 +4554,11 @@ let A = class extends p {
|
|
|
4594
4554
|
}, 600);
|
|
4595
4555
|
}
|
|
4596
4556
|
firstUpdated() {
|
|
4597
|
-
var
|
|
4557
|
+
var n, i;
|
|
4598
4558
|
var o = this;
|
|
4599
|
-
const t = (
|
|
4559
|
+
const t = (n = this.renderRoot) == null ? void 0 : n.querySelector("o-icon-button"), e = (i = this.renderRoot) == null ? void 0 : i.querySelector(".o-toast-text");
|
|
4600
4560
|
if (e != null) {
|
|
4601
|
-
const
|
|
4561
|
+
const r = window.getComputedStyle(e), s = parseInt(r.getPropertyValue("line-height").replace("px", "")), c = parseInt(r.getPropertyValue("height").replace("px", ""));
|
|
4602
4562
|
!isNaN(s) && !isNaN(c) && c > s && (this.multiline = !0);
|
|
4603
4563
|
}
|
|
4604
4564
|
t != null && t.addEventListener("click", function() {
|
|
@@ -4626,7 +4586,7 @@ let A = class extends p {
|
|
|
4626
4586
|
`;
|
|
4627
4587
|
}
|
|
4628
4588
|
};
|
|
4629
|
-
|
|
4589
|
+
L.styles = f`
|
|
4630
4590
|
:host {
|
|
4631
4591
|
--vertical-offset: 24px;
|
|
4632
4592
|
--horizontal-offset: 24px;
|
|
@@ -4706,48 +4666,48 @@ A.styles = f`
|
|
|
4706
4666
|
`;
|
|
4707
4667
|
H([
|
|
4708
4668
|
a({ type: String, reflect: !0 })
|
|
4709
|
-
],
|
|
4669
|
+
], L.prototype, "icon", 2);
|
|
4710
4670
|
H([
|
|
4711
4671
|
a({ type: String, reflect: !0 })
|
|
4712
|
-
],
|
|
4672
|
+
], L.prototype, "text", 2);
|
|
4713
4673
|
H([
|
|
4714
4674
|
a({ type: String, reflect: !0 })
|
|
4715
|
-
],
|
|
4675
|
+
], L.prototype, "verticalanchor", 2);
|
|
4716
4676
|
H([
|
|
4717
4677
|
a({ type: String, reflect: !0 })
|
|
4718
|
-
],
|
|
4678
|
+
], L.prototype, "horizontalanchor", 2);
|
|
4719
4679
|
H([
|
|
4720
4680
|
a({ type: Number, reflect: !0 })
|
|
4721
|
-
],
|
|
4681
|
+
], L.prototype, "verticaloffset", 2);
|
|
4722
4682
|
H([
|
|
4723
4683
|
a({ type: Number, reflect: !0 })
|
|
4724
|
-
],
|
|
4684
|
+
], L.prototype, "horizontaloffset", 2);
|
|
4725
4685
|
H([
|
|
4726
4686
|
a({ type: Number, reflect: !0 })
|
|
4727
|
-
],
|
|
4687
|
+
], L.prototype, "animationduration", 2);
|
|
4728
4688
|
H([
|
|
4729
4689
|
a({ type: String, reflect: !0 })
|
|
4730
|
-
],
|
|
4690
|
+
], L.prototype, "animationaxis", 2);
|
|
4731
4691
|
H([
|
|
4732
4692
|
a({ type: Boolean, reflect: !0 })
|
|
4733
|
-
],
|
|
4693
|
+
], L.prototype, "animated", 2);
|
|
4734
4694
|
H([
|
|
4735
4695
|
a({ type: Number, reflect: !0 })
|
|
4736
|
-
],
|
|
4696
|
+
], L.prototype, "lifeduration", 2);
|
|
4737
4697
|
H([
|
|
4738
4698
|
a({ type: Boolean, reflect: !0 })
|
|
4739
|
-
],
|
|
4740
|
-
|
|
4699
|
+
], L.prototype, "multiline", 2);
|
|
4700
|
+
L = H([
|
|
4741
4701
|
g("o-toast")
|
|
4742
|
-
],
|
|
4743
|
-
var Ei = Object.defineProperty,
|
|
4744
|
-
for (var i =
|
|
4745
|
-
(s = o[
|
|
4746
|
-
return
|
|
4702
|
+
], L);
|
|
4703
|
+
var Ei = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
|
|
4704
|
+
for (var i = n > 1 ? void 0 : n ? Li(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4705
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4706
|
+
return n && i && Ei(t, e, i), i;
|
|
4747
4707
|
};
|
|
4748
|
-
let
|
|
4708
|
+
let Ai = 0, A = class extends p {
|
|
4749
4709
|
constructor() {
|
|
4750
|
-
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-${++
|
|
4710
|
+
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-${++Ai}`);
|
|
4751
4711
|
}
|
|
4752
4712
|
toggle() {
|
|
4753
4713
|
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 })));
|
|
@@ -4772,8 +4732,8 @@ let Li = 0, L = class extends p {
|
|
|
4772
4732
|
name=${this.name}
|
|
4773
4733
|
value=${this.value}
|
|
4774
4734
|
@change=${(e) => {
|
|
4775
|
-
const
|
|
4776
|
-
this.checked =
|
|
4735
|
+
const n = e.target;
|
|
4736
|
+
this.checked = n.checked, this.indeterminate = n.indeterminate, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
|
|
4777
4737
|
}}
|
|
4778
4738
|
/>
|
|
4779
4739
|
|
|
@@ -4785,7 +4745,7 @@ let Li = 0, L = class extends p {
|
|
|
4785
4745
|
`;
|
|
4786
4746
|
}
|
|
4787
4747
|
};
|
|
4788
|
-
|
|
4748
|
+
A.styles = f`
|
|
4789
4749
|
:host {
|
|
4790
4750
|
display: inline-flex;
|
|
4791
4751
|
align-items: center;
|
|
@@ -4815,17 +4775,16 @@ L.styles = f`
|
|
|
4815
4775
|
width: 16px;
|
|
4816
4776
|
height: 16px;
|
|
4817
4777
|
}
|
|
4818
|
-
:host([size="L"]) {
|
|
4819
|
-
.box {
|
|
4820
|
-
width: 24px;
|
|
4821
|
-
height: 24px;
|
|
4822
|
-
border: 2px solid var(--color-border-secondary);
|
|
4823
|
-
}
|
|
4824
4778
|
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4779
|
+
:host([size="L"]) .box {
|
|
4780
|
+
width: 24px;
|
|
4781
|
+
height: 24px;
|
|
4782
|
+
border: 2px solid var(--color-border-secondary);
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
:host([size="L"]) .label {
|
|
4786
|
+
line-height: var(--line-height-200);
|
|
4787
|
+
font-size: var(--font-size-200);
|
|
4829
4788
|
}
|
|
4830
4789
|
|
|
4831
4790
|
:host([checked]) .box,
|
|
@@ -4891,41 +4850,41 @@ L.styles = f`
|
|
|
4891
4850
|
`;
|
|
4892
4851
|
j([
|
|
4893
4852
|
a({ type: Boolean, reflect: !0 })
|
|
4894
|
-
],
|
|
4853
|
+
], A.prototype, "checked", 2);
|
|
4895
4854
|
j([
|
|
4896
4855
|
a({ type: Boolean, reflect: !0 })
|
|
4897
|
-
],
|
|
4856
|
+
], A.prototype, "indeterminate", 2);
|
|
4898
4857
|
j([
|
|
4899
4858
|
a({ type: Boolean, reflect: !0 })
|
|
4900
|
-
],
|
|
4859
|
+
], A.prototype, "disabled", 2);
|
|
4901
4860
|
j([
|
|
4902
4861
|
a({ type: String, reflect: !0 })
|
|
4903
|
-
],
|
|
4862
|
+
], A.prototype, "size", 2);
|
|
4904
4863
|
j([
|
|
4905
4864
|
a({ type: Boolean })
|
|
4906
|
-
],
|
|
4865
|
+
], A.prototype, "showLabel", 2);
|
|
4907
4866
|
j([
|
|
4908
4867
|
a({ type: String })
|
|
4909
|
-
],
|
|
4868
|
+
], A.prototype, "label", 2);
|
|
4910
4869
|
j([
|
|
4911
4870
|
a({ type: String })
|
|
4912
|
-
],
|
|
4871
|
+
], A.prototype, "name", 2);
|
|
4913
4872
|
j([
|
|
4914
4873
|
a({ type: String })
|
|
4915
|
-
],
|
|
4874
|
+
], A.prototype, "value", 2);
|
|
4916
4875
|
j([
|
|
4917
4876
|
a({ type: String, reflect: !0 })
|
|
4918
|
-
],
|
|
4877
|
+
], A.prototype, "inputId", 2);
|
|
4919
4878
|
j([
|
|
4920
4879
|
Ce("input")
|
|
4921
|
-
],
|
|
4922
|
-
|
|
4880
|
+
], A.prototype, "inputEl", 2);
|
|
4881
|
+
A = j([
|
|
4923
4882
|
g("o-checkbox")
|
|
4924
|
-
],
|
|
4925
|
-
var Pi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, q = (o, t, e,
|
|
4926
|
-
for (var i =
|
|
4927
|
-
(s = o[
|
|
4928
|
-
return
|
|
4883
|
+
], A);
|
|
4884
|
+
var Pi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, q = (o, t, e, n) => {
|
|
4885
|
+
for (var i = n > 1 ? void 0 : n ? Bi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4886
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4887
|
+
return n && i && Pi(t, e, i), i;
|
|
4929
4888
|
};
|
|
4930
4889
|
let zi = 0, D = class extends p {
|
|
4931
4890
|
constructor() {
|
|
@@ -4940,8 +4899,8 @@ let zi = 0, D = class extends p {
|
|
|
4940
4899
|
updated(o) {
|
|
4941
4900
|
if (o.has("checked") && this.checked) {
|
|
4942
4901
|
const t = this.parentElement;
|
|
4943
|
-
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((
|
|
4944
|
-
|
|
4902
|
+
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((n) => {
|
|
4903
|
+
n !== this && (n.checked = !1);
|
|
4945
4904
|
});
|
|
4946
4905
|
}
|
|
4947
4906
|
this.syncInput();
|
|
@@ -5081,9 +5040,9 @@ q([
|
|
|
5081
5040
|
D = q([
|
|
5082
5041
|
g("o-radio")
|
|
5083
5042
|
], D);
|
|
5084
|
-
var Oi = Object.getOwnPropertyDescriptor, Ii = (o, t, e,
|
|
5085
|
-
for (var i =
|
|
5086
|
-
(s = o[
|
|
5043
|
+
var Oi = Object.getOwnPropertyDescriptor, Ii = (o, t, e, n) => {
|
|
5044
|
+
for (var i = n > 1 ? void 0 : n ? Oi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5045
|
+
(s = o[r]) && (i = s(i) || i);
|
|
5087
5046
|
return i;
|
|
5088
5047
|
};
|
|
5089
5048
|
let qt = class extends p {
|
|
@@ -5112,10 +5071,10 @@ qt.styles = f`
|
|
|
5112
5071
|
qt = Ii([
|
|
5113
5072
|
g("o-breadcrumbs")
|
|
5114
5073
|
], qt);
|
|
5115
|
-
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor,
|
|
5116
|
-
for (var i =
|
|
5117
|
-
(s = o[
|
|
5118
|
-
return
|
|
5074
|
+
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, re = (o, t, e, n) => {
|
|
5075
|
+
for (var i = n > 1 ? void 0 : n ? Hi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5076
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5077
|
+
return n && i && Di(t, e, i), i;
|
|
5119
5078
|
};
|
|
5120
5079
|
let St = class extends p {
|
|
5121
5080
|
constructor() {
|
|
@@ -5178,19 +5137,19 @@ St.styles = f`
|
|
|
5178
5137
|
outline: none !important;
|
|
5179
5138
|
}
|
|
5180
5139
|
`;
|
|
5181
|
-
|
|
5140
|
+
re([
|
|
5182
5141
|
a({ type: String })
|
|
5183
5142
|
], St.prototype, "href", 2);
|
|
5184
|
-
|
|
5143
|
+
re([
|
|
5185
5144
|
a({ type: Boolean, reflect: !0 })
|
|
5186
5145
|
], St.prototype, "active", 2);
|
|
5187
|
-
St =
|
|
5146
|
+
St = re([
|
|
5188
5147
|
g("o-breadcrumb")
|
|
5189
5148
|
], St);
|
|
5190
|
-
var Ti = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ut = (o, t, e,
|
|
5191
|
-
for (var i =
|
|
5192
|
-
(s = o[
|
|
5193
|
-
return
|
|
5149
|
+
var Ti = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ut = (o, t, e, n) => {
|
|
5150
|
+
for (var i = n > 1 ? void 0 : n ? Mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5151
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5152
|
+
return n && i && Ti(t, e, i), i;
|
|
5194
5153
|
};
|
|
5195
5154
|
let et = class extends p {
|
|
5196
5155
|
constructor() {
|
|
@@ -5220,53 +5179,66 @@ et.styles = f`
|
|
|
5220
5179
|
--overlay-bg: rgba(0,0,0,0.56);
|
|
5221
5180
|
--overlay-opacity: 1;
|
|
5222
5181
|
--card-filter: none;
|
|
5182
|
+
display: block;
|
|
5183
|
+
}
|
|
5223
5184
|
|
|
5185
|
+
.card {
|
|
5186
|
+
position: relative;
|
|
5187
|
+
width: var(--card-width);
|
|
5188
|
+
height: var(--card-height);
|
|
5189
|
+
overflow: hidden;
|
|
5190
|
+
background-color: var(--colors-noir-des-terres-500);
|
|
5191
|
+
clip-path: url(#arch-gift-finder);
|
|
5192
|
+
-webkit-clip-path: url(#arch-gift-finder);
|
|
5193
|
+
filter: var(--card-filter, none);
|
|
5194
|
+
-webkit-tap-highlight-color: transparent;
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
@media (max-width: 1024px) {
|
|
5224
5198
|
.card {
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
height: var(--card-height);
|
|
5228
|
-
overflow: hidden;
|
|
5229
|
-
background-color: var(--colors-noir-des-terres-500);
|
|
5230
|
-
clip-path: url(#arch-gift-finder);
|
|
5231
|
-
-webkit-clip-path: url(#arch-gift-finder);
|
|
5232
|
-
filter: var(--card-filter, none);
|
|
5233
|
-
|
|
5234
|
-
@media (max-width: 1024px) {
|
|
5235
|
-
width: var(--card-width-mobile);
|
|
5236
|
-
height: var(--card-height-mobile);
|
|
5237
|
-
}
|
|
5199
|
+
width: var(--card-width-mobile);
|
|
5200
|
+
height: var(--card-height-mobile);
|
|
5238
5201
|
}
|
|
5202
|
+
}
|
|
5239
5203
|
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5204
|
+
.card-img {
|
|
5205
|
+
position: absolute;
|
|
5206
|
+
top: 0;
|
|
5207
|
+
left: 0;
|
|
5208
|
+
width: 100%;
|
|
5209
|
+
height: 100%;
|
|
5210
|
+
object-fit: cover;
|
|
5211
|
+
transition: opacity 0.3s ease-in-out;
|
|
5212
|
+
background: linear-gradient(180deg, #f9f4ed 0%, #f3f0eb 81.41%, #edeae5 100%);
|
|
5213
|
+
}
|
|
5249
5214
|
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
}
|
|
5215
|
+
.card-img.hover {
|
|
5216
|
+
opacity: 0;
|
|
5217
|
+
z-index: 2;
|
|
5218
|
+
}
|
|
5255
5219
|
|
|
5220
|
+
@media (hover: hover) and (pointer: fine) {
|
|
5256
5221
|
.card:hover .card-img.hover {
|
|
5257
5222
|
opacity: 1;
|
|
5258
5223
|
}
|
|
5224
|
+
}
|
|
5259
5225
|
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
opacity: 0;
|
|
5264
|
-
transition: opacity .2s ease;
|
|
5265
|
-
pointer-events: none;
|
|
5266
|
-
z-index: 3;
|
|
5226
|
+
@media (hover: none) and (pointer: coarse) {
|
|
5227
|
+
.card:active .card-img.hover {
|
|
5228
|
+
opacity: 1;
|
|
5267
5229
|
}
|
|
5268
5230
|
}
|
|
5269
5231
|
|
|
5232
|
+
.overlay {
|
|
5233
|
+
position: absolute; inset: 0;
|
|
5234
|
+
background: var(--overlay-bg);
|
|
5235
|
+
opacity: 0;
|
|
5236
|
+
transition: opacity .2s ease;
|
|
5237
|
+
pointer-events: none;
|
|
5238
|
+
z-index: 3;
|
|
5239
|
+
}
|
|
5240
|
+
|
|
5241
|
+
|
|
5270
5242
|
:host([dimmed]) .overlay {
|
|
5271
5243
|
opacity: var(--overlay-opacity, 1);
|
|
5272
5244
|
}
|
|
@@ -5370,18 +5342,18 @@ const ji = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
5370
5342
|
id="path52"
|
|
5371
5343
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
5372
5344
|
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>`;
|
|
5373
|
-
var Fi = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, C = (o, t, e,
|
|
5374
|
-
for (var i =
|
|
5375
|
-
(s = o[
|
|
5376
|
-
return
|
|
5345
|
+
var Fi = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, C = (o, t, e, n) => {
|
|
5346
|
+
for (var i = n > 1 ? void 0 : n ? Ri(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5347
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5348
|
+
return n && i && Fi(t, e, i), i;
|
|
5377
5349
|
};
|
|
5378
5350
|
const ae = class ae extends p {
|
|
5379
5351
|
constructor() {
|
|
5380
5352
|
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) => {
|
|
5381
|
-
var
|
|
5353
|
+
var n;
|
|
5382
5354
|
if (!this.open || !this.closeOnBackdrop) return;
|
|
5383
5355
|
const e = t.composedPath()[0];
|
|
5384
|
-
(
|
|
5356
|
+
(n = e == null ? void 0 : e.classList) != null && n.contains("backdrop") && this._requestClose("backdrop");
|
|
5385
5357
|
}, this._onScroll = (t) => {
|
|
5386
5358
|
if (!this.hideHeaderOnScroll || !this.open) return;
|
|
5387
5359
|
const i = t.target.scrollTop > 50;
|
|
@@ -5411,8 +5383,8 @@ const ae = class ae extends p {
|
|
|
5411
5383
|
e && (e.style.overflow = this.open && !this.ispagedesigner ? "hidden" : "");
|
|
5412
5384
|
}
|
|
5413
5385
|
this.open ? this.updateComplete.then(() => {
|
|
5414
|
-
var
|
|
5415
|
-
(
|
|
5386
|
+
var n;
|
|
5387
|
+
(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 }));
|
|
5416
5388
|
}) : (this._removeScrollListener(), this._headerHidden = !1, this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 })));
|
|
5417
5389
|
}
|
|
5418
5390
|
(t.has("hideHeaderOnScroll") || t.has("open")) && (this.open ? this._setupScrollListener() : this._removeScrollListener());
|
|
@@ -5690,19 +5662,19 @@ C([
|
|
|
5690
5662
|
W()
|
|
5691
5663
|
], x.prototype, "_headerHidden", 2);
|
|
5692
5664
|
customElements.define("o-popin", x);
|
|
5693
|
-
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, $ = (o, t, e,
|
|
5694
|
-
for (var i =
|
|
5695
|
-
(s = o[
|
|
5696
|
-
return
|
|
5665
|
+
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, $ = (o, t, e, n) => {
|
|
5666
|
+
for (var i = n > 1 ? void 0 : n ? Ni(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5667
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5668
|
+
return n && i && Ui(t, e, i), i;
|
|
5697
5669
|
};
|
|
5698
5670
|
let m = class extends p {
|
|
5699
5671
|
constructor() {
|
|
5700
5672
|
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 = "";
|
|
5701
5673
|
}
|
|
5702
5674
|
onClick(o) {
|
|
5703
|
-
var e,
|
|
5675
|
+
var e, n, i;
|
|
5704
5676
|
const t = o.target;
|
|
5705
|
-
(e = t == null ? void 0 : t.classList) != null && e.contains("add-to-bag") || (
|
|
5677
|
+
(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(
|
|
5706
5678
|
new CustomEvent("tile-click", { bubbles: !0, composed: !0 })
|
|
5707
5679
|
));
|
|
5708
5680
|
}
|