@florid-kit/components 0.9.35 → 0.9.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/arch-image.d.ts +1 -0
- package/index.js +102 -81
- package/index.mjs +500 -476
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
const St = globalThis, Nt = St.ShadowRoot && (St.ShadyCSS === void 0 || St.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Vt = Symbol(), se = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let ye = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, r) {
|
|
9
|
+
if (this._$cssResult$ = !0, r !== Vt) 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 (Nt && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const r = e !== void 0 && e.length === 1;
|
|
17
|
+
r && (t = se.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && se.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -23,21 +23,21 @@ let ye = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
const Ee = (o) => new ye(typeof o == "string" ? o : o + "", void 0, Vt), v = (o, ...t) => {
|
|
26
|
-
const e = o.length === 1 ? o[0] : t.reduce((
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((r, i, n) => r + ((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[n + 1], o[0]);
|
|
31
31
|
return new ye(e, o, Vt);
|
|
32
32
|
}, Se = (o, t) => {
|
|
33
33
|
if (Nt) 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 r = document.createElement("style"), i = St.litNonce;
|
|
36
|
+
i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, o.appendChild(r);
|
|
37
37
|
}
|
|
38
38
|
}, ae = Nt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const r of t.cssRules) e += r.cssText;
|
|
41
41
|
return Ee(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ const Ee = (o) => new ye(typeof o == "string" ? o : o + "", void 0, Vt), v = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Ae, defineProperty: Le, getOwnPropertyDescriptor: Be, getOwnPropertyNames: Pe, getOwnPropertySymbols:
|
|
48
|
+
const { is: Ae, defineProperty: Le, getOwnPropertyDescriptor: Be, getOwnPropertyNames: Pe, getOwnPropertySymbols: ze, getPrototypeOf: Oe } = Object, X = globalThis, le = X.trustedTypes, Ie = le ? le.emptyScript : "", It = X.reactiveElementPolyfillSupport, ut = (o, t) => o, At = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Ie : null;
|
|
@@ -84,43 +84,43 @@ let at = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = ce) {
|
|
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 r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
|
|
88
88
|
i !== void 0 && Le(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get: i, set:
|
|
91
|
+
static getPropertyDescriptor(t, e, r) {
|
|
92
|
+
const { get: i, set: n } = Be(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
|
+
n == null || n.call(this, s), this.requestUpdate(t, c, r);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
103
|
return this.elementProperties.get(t) ?? ce;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(ut("elementProperties"))) return;
|
|
107
|
+
const t = Oe(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const i of
|
|
111
|
+
if (this.hasOwnProperty(ut("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ut("properties"))) {
|
|
113
|
+
const e = this.properties, r = [...Pe(e), ...ze(e)];
|
|
114
|
+
for (const i of r) 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 [r, i] of e) this.elementProperties.set(r, i);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const i = this._$Eu(e,
|
|
122
|
+
for (const [e, r] of this.elementProperties) {
|
|
123
|
+
const i = this._$Eu(e, r);
|
|
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 at = 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 r = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of r) e.unshift(ae(i));
|
|
133
133
|
} else t !== void 0 && e.push(ae(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const r = e.attribute;
|
|
138
|
+
return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,7 +154,7 @@ let at = 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 r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
@@ -164,8 +164,8 @@ let at = class extends HTMLElement {
|
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var r;
|
|
168
|
+
return (r = e.hostConnected) == null ? void 0 : r.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let at = 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 r;
|
|
177
|
+
return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, r) {
|
|
181
|
+
this._$AK(t, r);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
if (i !== void 0 &&
|
|
187
|
-
const s = (((
|
|
184
|
+
var n;
|
|
185
|
+
const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
|
|
186
|
+
if (i !== void 0 && r.reflect === !0) {
|
|
187
|
+
const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : At).toAttribute(e, r.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 n, s;
|
|
193
|
+
const r = this.constructor, i = r._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const c =
|
|
195
|
+
const c = r.getPropertyOptions(i), h = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((n = c.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? c.converter : At;
|
|
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, r) {
|
|
200
200
|
var i;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const n = this.constructor, s = this[t];
|
|
203
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? qt)(s, e) || r.useDefault && r.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
204
|
+
this.C(t, e, r);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: r, reflect: i, wrapped: n }, s) {
|
|
209
|
+
r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), n !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (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 at = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var r;
|
|
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 [n, s] of this._$Ep) this[n] = 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 [n, s] of i) {
|
|
234
|
+
const { wrapped: c } = s, h = this[n];
|
|
235
|
+
c !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, 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), (r = this._$EO) == null || r.forEach((i) => {
|
|
242
|
+
var n;
|
|
243
|
+
return (n = i.hostUpdate) == null ? void 0 : n.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 at = 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((r) => {
|
|
255
255
|
var i;
|
|
256
|
-
return (i =
|
|
256
|
+
return (i = r.hostUpdated) == null ? void 0 : i.call(r);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -276,74 +276,74 @@ let at = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
at.elementStyles = [], at.shadowRootOptions = { mode: "open" }, at[
|
|
279
|
+
at.elementStyles = [], at.shadowRootOptions = { mode: "open" }, at[ut("elementProperties")] = /* @__PURE__ */ new Map(), at[ut("finalized")] = /* @__PURE__ */ new Map(), It == null || It({ ReactiveElement: at }), (X.reactiveElementVersions ?? (X.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const
|
|
286
|
-
\f\r]`,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g, we = /^(?:script|style|textarea|title)$/i, Me = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Me(1), Y = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), fe = /* @__PURE__ */ new WeakMap(),
|
|
285
|
+
const vt = globalThis, Lt = vt.trustedTypes, he = Lt ? Lt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, me = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, xe = "?" + G, De = `<${xe}>`, rt = document, gt = () => rt.createComment(""), bt = (o) => o === null || typeof o != "object" && typeof o != "function", Zt = Array.isArray, He = (o) => Zt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Dt = `[
|
|
286
|
+
\f\r]`, pt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, de = /-->/g, pe = />/g, et = RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g, we = /^(?:script|style|textarea|title)$/i, Me = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Me(1), Y = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), fe = /* @__PURE__ */ new WeakMap(), ot = rt.createTreeWalker(rt, 129);
|
|
288
288
|
function $e(o, t) {
|
|
289
289
|
if (!Zt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return he !== void 0 ? he.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const Te = (o, t) => {
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i,
|
|
293
|
+
const e = o.length - 1, r = [];
|
|
294
|
+
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pt;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const h = o[c];
|
|
297
297
|
let m, w, f = -1, N = 0;
|
|
298
|
-
for (; N < h.length && (s.lastIndex = N, w = s.exec(h), w !== null); ) N = s.lastIndex, s ===
|
|
299
|
-
const W = s ===
|
|
300
|
-
|
|
298
|
+
for (; N < h.length && (s.lastIndex = N, w = s.exec(h), w !== null); ) N = s.lastIndex, s === pt ? w[1] === "!--" ? s = de : w[1] !== void 0 ? s = pe : w[2] !== void 0 ? (we.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = et) : w[3] !== void 0 && (s = et) : s === et ? w[0] === ">" ? (s = i ?? pt, f = -1) : w[1] === void 0 ? f = -2 : (f = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? et : w[3] === '"' ? ve : ue) : s === ve || s === ue ? s = et : s === de || s === pe ? s = pt : (s = et, i = void 0);
|
|
299
|
+
const W = s === et && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
n += s === pt ? h + De : f >= 0 ? (r.push(m), h.slice(0, f) + me + h.slice(f) + G + W) : h + G + (f === -2 ? c : W);
|
|
301
301
|
}
|
|
302
|
-
return [$e(o,
|
|
302
|
+
return [$e(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
303
303
|
};
|
|
304
|
-
class
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
304
|
+
class yt {
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, r) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
308
|
+
let n = 0, s = 0;
|
|
309
309
|
const c = t.length - 1, h = this.parts, [m, w] = Te(t, e);
|
|
310
|
-
if (this.el =
|
|
310
|
+
if (this.el = yt.createElement(m, r), ot.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const f = this.el.content.firstChild;
|
|
312
312
|
f.replaceWith(...f.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (i =
|
|
314
|
+
for (; (i = ot.nextNode()) !== null && h.length < c; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(me)) {
|
|
317
317
|
const N = w[s++], W = i.getAttribute(f).split(G), Et = /([.?@])?(.*)/.exec(N);
|
|
318
|
-
h.push({ type: 1, index:
|
|
319
|
-
} else f.startsWith(G) && (h.push({ type: 6, index:
|
|
318
|
+
h.push({ type: 1, index: n, name: Et[2], strings: W, ctor: Et[1] === "." ? je : Et[1] === "?" ? Re : Et[1] === "@" ? Ue : Pt }), i.removeAttribute(f);
|
|
319
|
+
} else f.startsWith(G) && (h.push({ type: 6, index: n }), i.removeAttribute(f));
|
|
320
320
|
if (we.test(i.tagName)) {
|
|
321
321
|
const f = i.textContent.split(G), N = f.length - 1;
|
|
322
322
|
if (N > 0) {
|
|
323
323
|
i.textContent = Lt ? Lt.emptyScript : "";
|
|
324
|
-
for (let W = 0; W < N; W++) i.append(f[W],
|
|
325
|
-
i.append(f[N],
|
|
324
|
+
for (let W = 0; W < N; W++) i.append(f[W], gt()), ot.nextNode(), h.push({ type: 2, index: ++n });
|
|
325
|
+
i.append(f[N], gt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === xe) h.push({ type: 2, index:
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === xe) h.push({ type: 2, index: n });
|
|
329
329
|
else {
|
|
330
330
|
let f = -1;
|
|
331
|
-
for (; (f = i.data.indexOf(G, f + 1)) !== -1; ) h.push({ type: 7, index:
|
|
331
|
+
for (; (f = i.data.indexOf(G, f + 1)) !== -1; ) h.push({ type: 7, index: n }), f += G.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
n++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const r = rt.createElement("template");
|
|
338
|
+
return r.innerHTML = t, r;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function lt(o, t, e = o,
|
|
341
|
+
function lt(o, t, e = o, r) {
|
|
342
342
|
var s, c;
|
|
343
343
|
if (t === Y) return t;
|
|
344
|
-
let i =
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
344
|
+
let i = r !== void 0 ? (s = e._$Co) == null ? void 0 : s[r] : e._$Cl;
|
|
345
|
+
const n = bt(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== n && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = i : e._$Cl = i), i !== void 0 && (t = lt(o, i._$AS(o, t.values), i, r)), t;
|
|
347
347
|
}
|
|
348
348
|
class Fe {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,30 +356,30 @@ class Fe {
|
|
|
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: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? rt).importNode(e, !0);
|
|
360
|
+
ot.currentNode = i;
|
|
361
|
+
let n = ot.nextNode(), s = 0, c = 0, h = r[0];
|
|
362
362
|
for (; h !== void 0; ) {
|
|
363
363
|
if (s === h.index) {
|
|
364
364
|
let m;
|
|
365
|
-
h.type === 2 ? m = new
|
|
365
|
+
h.type === 2 ? m = new Ct(n, n.nextSibling, this, t) : h.type === 1 ? m = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (m = new Ne(n, this, t)), this._$AV.push(m), h = r[++c];
|
|
366
366
|
}
|
|
367
|
-
s !== (h == null ? void 0 : h.index) && (
|
|
367
|
+
s !== (h == null ? void 0 : h.index) && (n = ot.nextNode(), s++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return ot.currentNode = rt, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class Ct {
|
|
377
377
|
get _$AU() {
|
|
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, r, i) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -393,7 +393,7 @@ class _t {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = lt(this, t, e),
|
|
396
|
+
t = lt(this, t, e), bt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== Y && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : He(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,12 +402,12 @@ class _t {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !== d &&
|
|
405
|
+
this._$AH !== d && bt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(rt.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
|
-
var
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((
|
|
408
|
+
var n;
|
|
409
|
+
const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = yt.createElement($e(r.h, r.h[0]), this.options)), r);
|
|
410
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
412
|
const s = new Fe(i, this), c = s.u(this.options);
|
|
413
413
|
s.p(e), this.T(c), this._$AH = s;
|
|
@@ -415,18 +415,18 @@ class _t {
|
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
417
|
let e = fe.get(t.strings);
|
|
418
|
-
return e === void 0 && fe.set(t.strings, e = new
|
|
418
|
+
return e === void 0 && fe.set(t.strings, e = new yt(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
421
|
Zt(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 r, i = 0;
|
|
424
|
+
for (const n of t) i === e.length ? e.push(r = new Ct(this.O(gt()), this.O(gt()), this, this.options)) : r = e[i], r._$AI(n), i++;
|
|
425
|
+
i < e.length && (this._$AR(r && r._$AB.nextSibling, i), e.length = i);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
428
|
+
var r;
|
|
429
|
+
for ((r = this._$AP) == null ? void 0 : r.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 Pt {
|
|
|
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, r, i, n) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
450
|
-
const
|
|
449
|
+
_$AI(t, e = this, r, i) {
|
|
450
|
+
const n = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (
|
|
452
|
+
if (n === void 0) t = lt(this, t, e, 0), s = !bt(t) || t !== this._$AH && t !== Y, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
455
|
let h, m;
|
|
456
|
-
for (t =
|
|
456
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) m = lt(this, c[r + h], e, h), m === Y && (m = this._$AH[h]), s || (s = !bt(m) || m !== this._$AH[h]), m === d ? t = d : t !== d && (t += (m ?? "") + n[h + 1]), this._$AH[h] = m;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -478,13 +478,13 @@ class Re extends Pt {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class Ue extends Pt {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, r, i, n) {
|
|
482
|
+
super(t, e, r, i, n), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
485
|
if ((t = lt(this, t, e, 0) ?? d) === Y) return;
|
|
486
|
-
const
|
|
487
|
-
i && this.element.removeEventListener(this.name, this,
|
|
486
|
+
const r = this._$AH, i = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== d && (r === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, r), n && 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 Ue extends Pt {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class Ne {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, r) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -502,14 +502,14 @@ class Ne {
|
|
|
502
502
|
lt(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const Ht =
|
|
506
|
-
Ht == null || Ht(
|
|
505
|
+
const Ht = vt.litHtmlPolyfillSupport;
|
|
506
|
+
Ht == null || Ht(yt, Ct), (vt.litHtmlVersions ?? (vt.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Ve = (o, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
508
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let i = r._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
r._$litPart$ = i = new Ct(t.insertBefore(gt(), n), n, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -518,7 +518,7 @@ const Ve = (o, t, e) => {
|
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
521
|
+
const it = globalThis;
|
|
522
522
|
let p = class extends at {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -545,10 +545,10 @@ let p = class extends at {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var be;
|
|
548
|
-
p._$litElement$ = !0, p.finalized = !0, (be =
|
|
549
|
-
const Mt =
|
|
548
|
+
p._$litElement$ = !0, p.finalized = !0, (be = it.litElementHydrateSupport) == null || be.call(it, { LitElement: p });
|
|
549
|
+
const Mt = it.litElementPolyfillSupport;
|
|
550
550
|
Mt == null || Mt({ LitElement: p });
|
|
551
|
-
(
|
|
551
|
+
(it.litElementVersions ?? (it.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 qe = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: qt }, Ze = (o = qe, t, e) => {
|
|
568
|
-
const { kind:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
568
|
+
const { kind: r, metadata: i } = e;
|
|
569
|
+
let n = globalThis.litPropertyMetadata.get(i);
|
|
570
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "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 qe = { attribute: !0, type: String, converter: At, 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 (r === "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: " + r);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Ze(o, t, e) : ((
|
|
590
|
-
const s = i.hasOwnProperty(
|
|
591
|
-
return i.constructor.createProperty(
|
|
589
|
+
return (t, e) => typeof e == "object" ? Ze(o, t, e) : ((r, i, n) => {
|
|
590
|
+
const s = i.hasOwnProperty(n);
|
|
591
|
+
return i.constructor.createProperty(n, r), s ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -596,7 +596,7 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function Q(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
@@ -611,17 +611,17 @@ const Ke = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorat
|
|
|
611
611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
612
612
|
*/
|
|
613
613
|
function ke(o, t) {
|
|
614
|
-
return (e,
|
|
615
|
-
const
|
|
614
|
+
return (e, r, i) => {
|
|
615
|
+
const n = (s) => {
|
|
616
616
|
var c;
|
|
617
617
|
return ((c = s.renderRoot) == null ? void 0 : c.querySelector(o)) ?? null;
|
|
618
618
|
};
|
|
619
|
-
return Ke(e,
|
|
620
|
-
return
|
|
619
|
+
return Ke(e, r, { get() {
|
|
620
|
+
return n(this);
|
|
621
621
|
} });
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
const
|
|
624
|
+
const nt = v`
|
|
625
625
|
outline: 1px dashed var(--color-border-primary);
|
|
626
626
|
outline-offset: 2px;
|
|
627
627
|
`;
|
|
@@ -653,11 +653,11 @@ function Wt(o) {
|
|
|
653
653
|
function We(o) {
|
|
654
654
|
o.addInitializer((t) => {
|
|
655
655
|
const e = t;
|
|
656
|
-
e.addEventListener("click", async (
|
|
657
|
-
const { type: i, [Kt]:
|
|
656
|
+
e.addEventListener("click", async (r) => {
|
|
657
|
+
const { type: i, [Kt]: n } = e, { form: s } = n;
|
|
658
658
|
if (!(!s || i === "button") && (await new Promise((c) => {
|
|
659
659
|
setTimeout(c);
|
|
660
|
-
}), !
|
|
660
|
+
}), !r.defaultPrevented)) {
|
|
661
661
|
if (i === "reset") {
|
|
662
662
|
s.reset();
|
|
663
663
|
return;
|
|
@@ -672,7 +672,7 @@ function We(o) {
|
|
|
672
672
|
});
|
|
673
673
|
},
|
|
674
674
|
{ capture: !0, once: !0 }
|
|
675
|
-
),
|
|
675
|
+
), n.setFormValue(e.value), s.requestSubmit();
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
});
|
|
@@ -704,11 +704,11 @@ const Ge = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
704
704
|
`, io = `<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
|
+
`, ro = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
708
708
|
<path d="M2 2L14 14" stroke="#3F2B2E"/>
|
|
709
709
|
<path d="M14 2L2 14" stroke="#3F2B2E"/>
|
|
710
710
|
</svg>
|
|
711
|
-
`,
|
|
711
|
+
`, no = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
712
712
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
713
713
|
</svg>
|
|
714
714
|
`, so = `<?xml version="1.0" encoding="utf-8"?>
|
|
@@ -790,8 +790,8 @@ const Ge = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
790
790
|
"star-50": eo,
|
|
791
791
|
"star-75": oo,
|
|
792
792
|
"star-100": io,
|
|
793
|
-
cross:
|
|
794
|
-
search:
|
|
793
|
+
cross: ro,
|
|
794
|
+
search: no,
|
|
795
795
|
arrowLeft: lo,
|
|
796
796
|
arrowTop: co,
|
|
797
797
|
cart: ho,
|
|
@@ -825,8 +825,8 @@ let Yt = 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, r) {
|
|
829
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
830
830
|
}
|
|
831
831
|
_$AS(t, e) {
|
|
832
832
|
return this.update(t, e);
|
|
@@ -875,11 +875,11 @@ const Lo = (o) => o.strings === void 0;
|
|
|
875
875
|
* Copyright 2017 Google LLC
|
|
876
876
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
877
877
|
*/
|
|
878
|
-
const
|
|
879
|
-
var
|
|
878
|
+
const ft = (o, t) => {
|
|
879
|
+
var r;
|
|
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) (r = i._$AO) == null || r.call(i, t, !1), ft(i, t);
|
|
883
883
|
return !0;
|
|
884
884
|
}, Bt = (o) => {
|
|
885
885
|
let t, e;
|
|
@@ -892,31 +892,31 @@ const vt = (o, t) => {
|
|
|
892
892
|
let e = t._$AN;
|
|
893
893
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
894
894
|
else if (e.has(o)) break;
|
|
895
|
-
e.add(o),
|
|
895
|
+
e.add(o), zo(t);
|
|
896
896
|
}
|
|
897
897
|
};
|
|
898
898
|
function Bo(o) {
|
|
899
899
|
this._$AN !== void 0 ? (Bt(this), this._$AM = o, _e(this)) : this._$AM = o;
|
|
900
900
|
}
|
|
901
901
|
function Po(o, t = !1, e = 0) {
|
|
902
|
-
const
|
|
903
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(
|
|
904
|
-
else
|
|
905
|
-
else
|
|
902
|
+
const r = this._$AH, i = this._$AN;
|
|
903
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = e; n < r.length; n++) ft(r[n], !1), Bt(r[n]);
|
|
904
|
+
else r != null && (ft(r, !1), Bt(r));
|
|
905
|
+
else ft(this, o);
|
|
906
906
|
}
|
|
907
|
-
const
|
|
907
|
+
const zo = (o) => {
|
|
908
908
|
o.type == Gt.CHILD && (o._$AP ?? (o._$AP = Po), o._$AQ ?? (o._$AQ = Bo));
|
|
909
909
|
};
|
|
910
|
-
class
|
|
910
|
+
class Oo extends Yt {
|
|
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, r) {
|
|
915
|
+
super._$AT(t, e, r), _e(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 r, i;
|
|
919
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), e && (ft(this, t), Bt(this));
|
|
920
920
|
}
|
|
921
921
|
setValue(t) {
|
|
922
922
|
if (Lo(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -930,7 +930,7 @@ class zo extends Yt {
|
|
|
930
930
|
reconnected() {
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
|
-
class Io extends
|
|
933
|
+
class Io extends Oo {
|
|
934
934
|
constructor() {
|
|
935
935
|
super(...arguments), this.prevData = {};
|
|
936
936
|
}
|
|
@@ -938,23 +938,23 @@ class Io extends zo {
|
|
|
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 r;
|
|
942
|
+
this.element !== t.element && (this.element = t.element), this.host = ((r = t.options) === null || r === void 0 ? void 0 : r.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: r } = this;
|
|
948
948
|
for (const i in t) {
|
|
949
|
-
const
|
|
950
|
-
|
|
949
|
+
const n = t[i];
|
|
950
|
+
n !== e[i] && (r[i] = n);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
groom(t) {
|
|
954
|
-
const { prevData: e, element:
|
|
954
|
+
const { prevData: e, element: r } = this;
|
|
955
955
|
if (e)
|
|
956
956
|
for (const i in e)
|
|
957
|
-
(!t || !(i in t) &&
|
|
957
|
+
(!t || !(i in t) && r[i] === e[i]) && (r[i] = void 0);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
class Do extends Io {
|
|
@@ -964,23 +964,23 @@ class Do extends Io {
|
|
|
964
964
|
apply(t) {
|
|
965
965
|
if (t)
|
|
966
966
|
for (const e in t) {
|
|
967
|
-
const
|
|
968
|
-
|
|
967
|
+
const r = t[e];
|
|
968
|
+
r !== this.eventData[e] && this.applyEvent(e, r);
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
971
|
applyEvent(t, e) {
|
|
972
|
-
const { prevData:
|
|
973
|
-
this.eventData[t] = e,
|
|
972
|
+
const { prevData: r, element: i } = this;
|
|
973
|
+
this.eventData[t] = e, r[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: r } = this;
|
|
977
977
|
if (e)
|
|
978
978
|
for (const i in e)
|
|
979
|
-
(!t || !(i in t) &&
|
|
979
|
+
(!t || !(i in t) && r[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: r } = this;
|
|
983
|
+
delete this.eventData[t], r.removeEventListener(t, this, e);
|
|
984
984
|
}
|
|
985
985
|
handleEvent(t) {
|
|
986
986
|
const e = this.eventData[t.type];
|
|
@@ -988,16 +988,16 @@ class Do extends Io {
|
|
|
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 r in t) {
|
|
992
|
+
const i = r.slice(1), n = t[r];
|
|
993
|
+
e.removeEventListener(i, this, n);
|
|
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 r in t) {
|
|
999
|
+
const i = r.slice(1), n = t[r];
|
|
1000
|
+
e.addEventListener(i, this, n);
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
@@ -1005,46 +1005,46 @@ class Ho extends Do {
|
|
|
1005
1005
|
apply(t) {
|
|
1006
1006
|
if (!t)
|
|
1007
1007
|
return;
|
|
1008
|
-
const { prevData: e, element:
|
|
1008
|
+
const { prevData: e, element: r } = this;
|
|
1009
1009
|
for (const i in t) {
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1010
|
+
const n = t[i];
|
|
1011
|
+
if (n === 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] = n, this.applyEvent(s, n);
|
|
1017
1017
|
break;
|
|
1018
1018
|
case ".":
|
|
1019
|
-
|
|
1019
|
+
r[s] = n;
|
|
1020
1020
|
break;
|
|
1021
1021
|
case "?":
|
|
1022
|
-
|
|
1022
|
+
n ? r.setAttribute(s, "") : r.removeAttribute(s);
|
|
1023
1023
|
break;
|
|
1024
1024
|
default:
|
|
1025
|
-
|
|
1025
|
+
n != null ? r.setAttribute(i, String(n)) : r.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: r } = this;
|
|
1032
1032
|
if (e)
|
|
1033
1033
|
for (const i in e) {
|
|
1034
|
-
const
|
|
1035
|
-
if (!t || !(i in t) && n
|
|
1034
|
+
const n = i.slice(1);
|
|
1035
|
+
if (!t || !(i in t) && r[n] === e[i])
|
|
1036
1036
|
switch (i[0]) {
|
|
1037
1037
|
case "@":
|
|
1038
|
-
this.groomEvent(
|
|
1038
|
+
this.groomEvent(n, e[i]);
|
|
1039
1039
|
break;
|
|
1040
1040
|
case ".":
|
|
1041
|
-
n
|
|
1041
|
+
r[n] = void 0;
|
|
1042
1042
|
break;
|
|
1043
1043
|
case "?":
|
|
1044
|
-
|
|
1044
|
+
r.removeAttribute(n);
|
|
1045
1045
|
break;
|
|
1046
1046
|
default:
|
|
1047
|
-
|
|
1047
|
+
r.removeAttribute(i);
|
|
1048
1048
|
break;
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
@@ -1057,10 +1057,10 @@ const ge = Xt(Ho);
|
|
|
1057
1057
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1058
1058
|
*/
|
|
1059
1059
|
const A = (o) => o ?? d;
|
|
1060
|
-
var Mo = Object.defineProperty, To = Object.getOwnPropertyDescriptor, T = (o, t, e,
|
|
1061
|
-
for (var i =
|
|
1062
|
-
(s = o[
|
|
1063
|
-
return
|
|
1060
|
+
var Mo = Object.defineProperty, To = Object.getOwnPropertyDescriptor, T = (o, t, e, r) => {
|
|
1061
|
+
for (var i = r > 1 ? void 0 : r ? To(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1062
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1063
|
+
return r && i && Mo(t, e, i), i;
|
|
1064
1064
|
};
|
|
1065
1065
|
let L = class extends p {
|
|
1066
1066
|
constructor() {
|
|
@@ -1070,7 +1070,7 @@ let L = class extends p {
|
|
|
1070
1070
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1071
1071
|
}
|
|
1072
1072
|
render() {
|
|
1073
|
-
const o = V[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 = V[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"'), r = 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 L = class extends p {
|
|
|
1084
1084
|
?disabled="${this.disabled}"
|
|
1085
1085
|
>
|
|
1086
1086
|
${k(e)}
|
|
1087
|
-
${
|
|
1087
|
+
${r}
|
|
1088
1088
|
</button>
|
|
1089
1089
|
`}
|
|
1090
1090
|
`;
|
|
@@ -1295,7 +1295,7 @@ L.styles = v`
|
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
.icon-button:focus-visible {
|
|
1298
|
-
${
|
|
1298
|
+
${nt}
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
1301
|
.sr-only {
|
|
@@ -1332,18 +1332,18 @@ T([
|
|
|
1332
1332
|
L = T([
|
|
1333
1333
|
g("o-icon-button")
|
|
1334
1334
|
], L);
|
|
1335
|
-
var Fo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, b = (o, t, e,
|
|
1336
|
-
for (var i =
|
|
1337
|
-
(s = o[
|
|
1338
|
-
return
|
|
1335
|
+
var Fo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, b = (o, t, e, r) => {
|
|
1336
|
+
for (var i = r > 1 ? void 0 : r ? jo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1337
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1338
|
+
return r && i && Fo(t, e, i), i;
|
|
1339
1339
|
};
|
|
1340
1340
|
let u = class extends p {
|
|
1341
1341
|
constructor() {
|
|
1342
1342
|
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", 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,
|
|
1343
|
+
var e, r;
|
|
1344
1344
|
const t = ((e = o.detail) == null ? void 0 : e.origin) ?? document.activeElement;
|
|
1345
1345
|
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 = (
|
|
1346
|
+
const i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".detail-view");
|
|
1347
1347
|
i && i.setAttribute("fromelement", this._detailOriginClass);
|
|
1348
1348
|
}
|
|
1349
1349
|
await this.focusDetailReturnBtn();
|
|
@@ -1356,15 +1356,15 @@ let u = class extends p {
|
|
|
1356
1356
|
const t = o.currentTarget, e = (t == null ? void 0 : t.getAttribute("data-role")) === "back";
|
|
1357
1357
|
if (this.showDetail && e) {
|
|
1358
1358
|
this.isHidingDetail = !0;
|
|
1359
|
-
const
|
|
1359
|
+
const r = this.renderRoot.querySelector(".content"), i = async () => {
|
|
1360
1360
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1, await this.updateComplete, this._restoreFocusToOrigin();
|
|
1361
1361
|
};
|
|
1362
|
-
if (
|
|
1362
|
+
if (r) {
|
|
1363
1363
|
this.showHeaderStartIcon = !1;
|
|
1364
|
-
const
|
|
1365
|
-
this.showDetail = !1, this.isHidingDetail = !1,
|
|
1364
|
+
const n = () => {
|
|
1365
|
+
this.showDetail = !1, this.isHidingDetail = !1, r.removeEventListener("animationend", n), i();
|
|
1366
1366
|
};
|
|
1367
|
-
|
|
1367
|
+
r.addEventListener("animationend", n);
|
|
1368
1368
|
} else
|
|
1369
1369
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1;
|
|
1370
1370
|
return;
|
|
@@ -1373,8 +1373,8 @@ let u = class extends p {
|
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
1375
|
focusFirstInPanel() {
|
|
1376
|
-
var t, e,
|
|
1377
|
-
(
|
|
1376
|
+
var t, e, r;
|
|
1377
|
+
(r = 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 || r.focus({ preventScroll: !0 });
|
|
1378
1378
|
}
|
|
1379
1379
|
resolveFocusable(o) {
|
|
1380
1380
|
var e;
|
|
@@ -1392,7 +1392,7 @@ let u = class extends p {
|
|
|
1392
1392
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
1393
1393
|
}
|
|
1394
1394
|
async focusDetailReturnBtn() {
|
|
1395
|
-
var i,
|
|
1395
|
+
var i, n, s, c, h;
|
|
1396
1396
|
await this.updateComplete;
|
|
1397
1397
|
const o = this.getDeepActiveElement(document);
|
|
1398
1398
|
if (o && o !== document.body)
|
|
@@ -1403,9 +1403,9 @@ let u = class extends p {
|
|
|
1403
1403
|
await new Promise(requestAnimationFrame);
|
|
1404
1404
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".detail-view .return-btn");
|
|
1405
1405
|
if (!t) return;
|
|
1406
|
-
t.updateComplete && await t.updateComplete, (c = (s = ((
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1406
|
+
t.updateComplete && await t.updateComplete, (c = (s = ((n = t.shadowRoot) == null ? void 0 : n.querySelector("button")) ?? t) == null ? void 0 : s.focus) == null || c.call(s, { preventScroll: !0 });
|
|
1407
|
+
const r = (h = this.shadowRoot) == null ? void 0 : h.querySelector('.panel[role="dialog"]');
|
|
1408
|
+
r && r.setAttribute("aria-label", this.headerTitle);
|
|
1409
1409
|
}
|
|
1410
1410
|
_restoreFocusToOrigin() {
|
|
1411
1411
|
var t, e;
|
|
@@ -1426,10 +1426,10 @@ let u = class extends p {
|
|
|
1426
1426
|
const t = this.getDeepActiveElement(), e = this.renderRoot.querySelector(".close-btn");
|
|
1427
1427
|
if (!o.shiftKey && e && e.contains(t)) {
|
|
1428
1428
|
o.preventDefault();
|
|
1429
|
-
const
|
|
1429
|
+
const r = this.renderRoot.querySelector(
|
|
1430
1430
|
".o-whats-inside--content p"
|
|
1431
1431
|
);
|
|
1432
|
-
|
|
1432
|
+
r == null || r.focus();
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
getFocusableElements() {
|
|
@@ -1440,16 +1440,16 @@ let u = class extends p {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
function e(i) {
|
|
1442
1442
|
var s;
|
|
1443
|
-
const
|
|
1443
|
+
const n = [i.matches(u.focusablesSelector) ? i : []];
|
|
1444
1444
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
1445
1445
|
const c = Array.from(
|
|
1446
1446
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
1447
1447
|
).filter(t).flatMap(e), h = Array.from(
|
|
1448
1448
|
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
1449
1449
|
).filter(t).flatMap(e);
|
|
1450
|
-
|
|
1450
|
+
n.push(...c, ...h);
|
|
1451
1451
|
}
|
|
1452
|
-
return
|
|
1452
|
+
return n.flat();
|
|
1453
1453
|
}
|
|
1454
1454
|
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
1455
1455
|
}
|
|
@@ -1459,7 +1459,7 @@ let u = class extends p {
|
|
|
1459
1459
|
o && o.setAttribute("aria-modal", "true"), this.updateComplete.then(() => {
|
|
1460
1460
|
var t, e;
|
|
1461
1461
|
if (this.showHeader) {
|
|
1462
|
-
const
|
|
1462
|
+
const r = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".panel .close-btn"), i = this.resolveFocusable(r);
|
|
1463
1463
|
(e = i == null ? void 0 : i.focus) == null || e.call(i, { preventScroll: !0 });
|
|
1464
1464
|
} else
|
|
1465
1465
|
this.focusFirstInPanel();
|
|
@@ -1468,8 +1468,8 @@ let u = class extends p {
|
|
|
1468
1468
|
);
|
|
1469
1469
|
}
|
|
1470
1470
|
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 = (
|
|
1471
|
+
var t, e, r, i, n;
|
|
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 = (r = (e = this.previousFocusedElement.shadowRoot) == null ? void 0 : e.querySelector(".button")) == null ? void 0 : r.focus) == null || i.call(r) : (n = this.previousFocusedElement) == null || n.focus();
|
|
1473
1473
|
const o = this.renderRoot.querySelector(".panel");
|
|
1474
1474
|
o && o.removeAttribute("aria-modal"), this.dispatchEvent(
|
|
1475
1475
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
@@ -1708,7 +1708,7 @@ u.styles = v`
|
|
|
1708
1708
|
|
|
1709
1709
|
.panel:focus-visible,
|
|
1710
1710
|
.close-btn:focus-visible {
|
|
1711
|
-
${
|
|
1711
|
+
${nt}
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
[role="document"] {
|
|
@@ -1878,10 +1878,10 @@ b([
|
|
|
1878
1878
|
u = b([
|
|
1879
1879
|
g("o-side-panel")
|
|
1880
1880
|
], u);
|
|
1881
|
-
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, x = (o, t, e,
|
|
1882
|
-
for (var i =
|
|
1883
|
-
(s = o[
|
|
1884
|
-
return
|
|
1881
|
+
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, x = (o, t, e, r) => {
|
|
1882
|
+
for (var i = r > 1 ? void 0 : r ? Uo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1883
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1884
|
+
return r && i && Ro(t, e, i), i;
|
|
1885
1885
|
};
|
|
1886
1886
|
const No = Wt(p);
|
|
1887
1887
|
let y = class extends No {
|
|
@@ -2071,7 +2071,7 @@ y.styles = v`
|
|
|
2071
2071
|
}
|
|
2072
2072
|
|
|
2073
2073
|
.button:focus-visible {
|
|
2074
|
-
${
|
|
2074
|
+
${nt};
|
|
2075
2075
|
}
|
|
2076
2076
|
|
|
2077
2077
|
span.text + span.text::before {
|
|
@@ -2207,10 +2207,10 @@ x([
|
|
|
2207
2207
|
y = x([
|
|
2208
2208
|
g("o-button")
|
|
2209
2209
|
], y);
|
|
2210
|
-
var Vo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor,
|
|
2211
|
-
for (var i =
|
|
2212
|
-
(s = o[
|
|
2213
|
-
return
|
|
2210
|
+
var Vo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, zt = (o, t, e, r) => {
|
|
2211
|
+
for (var i = r > 1 ? void 0 : r ? qo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2212
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2213
|
+
return r && i && Vo(t, e, i), i;
|
|
2214
2214
|
};
|
|
2215
2215
|
let ct = class extends p {
|
|
2216
2216
|
constructor() {
|
|
@@ -2283,7 +2283,7 @@ ct.styles = v`
|
|
|
2283
2283
|
}
|
|
2284
2284
|
|
|
2285
2285
|
.wishlist-button:focus-visible {
|
|
2286
|
-
${
|
|
2286
|
+
${nt};
|
|
2287
2287
|
}
|
|
2288
2288
|
|
|
2289
2289
|
.wishlist-button:hover svg path {
|
|
@@ -2318,22 +2318,22 @@ ct.styles = v`
|
|
|
2318
2318
|
white-space: nowrap !important;
|
|
2319
2319
|
}
|
|
2320
2320
|
`;
|
|
2321
|
-
|
|
2321
|
+
zt([
|
|
2322
2322
|
a({ type: String, reflect: !0 })
|
|
2323
2323
|
], ct.prototype, "status", 2);
|
|
2324
|
-
|
|
2324
|
+
zt([
|
|
2325
2325
|
a({ type: String, reflect: !0 })
|
|
2326
2326
|
], ct.prototype, "ariaDescribedBy", 2);
|
|
2327
|
-
|
|
2327
|
+
zt([
|
|
2328
2328
|
a({ type: String, reflect: !0 })
|
|
2329
2329
|
], ct.prototype, "label", 2);
|
|
2330
|
-
ct =
|
|
2330
|
+
ct = zt([
|
|
2331
2331
|
g("o-wishlist-button")
|
|
2332
2332
|
], ct);
|
|
2333
|
-
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, st = (o, t, e,
|
|
2334
|
-
for (var i =
|
|
2335
|
-
(s = o[
|
|
2336
|
-
return
|
|
2333
|
+
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, st = (o, t, e, r) => {
|
|
2334
|
+
for (var i = r > 1 ? void 0 : r ? Ko(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2335
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2336
|
+
return r && i && Zo(t, e, i), i;
|
|
2337
2337
|
};
|
|
2338
2338
|
let q = class extends p {
|
|
2339
2339
|
constructor() {
|
|
@@ -2486,10 +2486,10 @@ st([
|
|
|
2486
2486
|
q = st([
|
|
2487
2487
|
g("o-link")
|
|
2488
2488
|
], q);
|
|
2489
|
-
var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor,
|
|
2490
|
-
for (var i =
|
|
2491
|
-
(s = o[
|
|
2492
|
-
return
|
|
2489
|
+
var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, Ot = (o, t, e, r) => {
|
|
2490
|
+
for (var i = r > 1 ? void 0 : r ? Go(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2491
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2492
|
+
return r && i && Wo(t, e, i), i;
|
|
2493
2493
|
};
|
|
2494
2494
|
let ht = class extends p {
|
|
2495
2495
|
constructor() {
|
|
@@ -2499,8 +2499,8 @@ let ht = class extends p {
|
|
|
2499
2499
|
const o = [];
|
|
2500
2500
|
for (let t = 0; t < 5; t++) {
|
|
2501
2501
|
const e = this.rating - t;
|
|
2502
|
-
let
|
|
2503
|
-
e >= 1 ?
|
|
2502
|
+
let r;
|
|
2503
|
+
e >= 1 ? r = 100 : e <= 0 ? r = 0 : r = Math.round(e * 100 / 25) * 25, o.push(`star-${r}`);
|
|
2504
2504
|
}
|
|
2505
2505
|
return o;
|
|
2506
2506
|
}
|
|
@@ -2552,22 +2552,22 @@ ht.styles = v`
|
|
|
2552
2552
|
cursor: pointer;
|
|
2553
2553
|
}
|
|
2554
2554
|
`;
|
|
2555
|
-
|
|
2555
|
+
Ot([
|
|
2556
2556
|
a({ type: Number })
|
|
2557
2557
|
], ht.prototype, "rating", 2);
|
|
2558
|
-
|
|
2558
|
+
Ot([
|
|
2559
2559
|
a({ type: String })
|
|
2560
2560
|
], ht.prototype, "reviewCount", 2);
|
|
2561
|
-
|
|
2561
|
+
Ot([
|
|
2562
2562
|
a({ type: String })
|
|
2563
2563
|
], ht.prototype, "href", 2);
|
|
2564
|
-
ht =
|
|
2564
|
+
ht = Ot([
|
|
2565
2565
|
g("o-rating")
|
|
2566
2566
|
], ht);
|
|
2567
|
-
var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor,
|
|
2568
|
-
for (var i =
|
|
2569
|
-
(s = o[
|
|
2570
|
-
return
|
|
2567
|
+
var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, tt = (o, t, e, r) => {
|
|
2568
|
+
for (var i = r > 1 ? void 0 : r ? Yo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2569
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2570
|
+
return r && i && Xo(t, e, i), i;
|
|
2571
2571
|
};
|
|
2572
2572
|
let M = class extends p {
|
|
2573
2573
|
constructor() {
|
|
@@ -2622,8 +2622,8 @@ let M = class extends p {
|
|
|
2622
2622
|
}), t.classList.add("a--tabfocus"), this.requestUpdate();
|
|
2623
2623
|
}
|
|
2624
2624
|
onFocusOut(o) {
|
|
2625
|
-
const t = o.currentTarget, e = Number(t.dataset.index),
|
|
2626
|
-
(!
|
|
2625
|
+
const t = o.currentTarget, e = Number(t.dataset.index), r = o.relatedTarget;
|
|
2626
|
+
(!r || this.shadowRoot && !this.shadowRoot.contains(r)) && (this.renderRoot.querySelectorAll(".thumb").forEach((s) => s.classList.remove("a--tabfocus")), e === this.lastIndex ? this.dispatchEvent(new CustomEvent("thumb-exit", {
|
|
2627
2627
|
detail: { from: "last", direction: "unspecified" },
|
|
2628
2628
|
bubbles: !0,
|
|
2629
2629
|
composed: !0
|
|
@@ -2637,20 +2637,20 @@ let M = class extends p {
|
|
|
2637
2637
|
return l`
|
|
2638
2638
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2639
2639
|
${this.thumbnails.map((o, t) => {
|
|
2640
|
-
const e = this.disabledIndexes.includes(t),
|
|
2640
|
+
const e = this.disabledIndexes.includes(t), r = this.activeIndex === t, i = o.type === "video", n = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2641
2641
|
return l`
|
|
2642
2642
|
<li class="thumb-wrapper">
|
|
2643
2643
|
<button
|
|
2644
2644
|
class="thumb"
|
|
2645
2645
|
data-index="${t}"
|
|
2646
2646
|
?disabled=${e}
|
|
2647
|
-
aria-current=${
|
|
2647
|
+
aria-current=${r ? "true" : "false"}
|
|
2648
2648
|
@click=${() => this.selectThumbnail(t)}
|
|
2649
2649
|
@keydown=${this.handleKeyDown}
|
|
2650
2650
|
@focus=${(s) => this.onFocus(s)}
|
|
2651
2651
|
@focusout=${(s) => this.onFocusOut(s)}
|
|
2652
2652
|
>
|
|
2653
|
-
<img alt="${
|
|
2653
|
+
<img alt="${n}" src="${o.src}" />
|
|
2654
2654
|
</button>
|
|
2655
2655
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2656
2656
|
</li>
|
|
@@ -2766,36 +2766,36 @@ M.styles = v`
|
|
|
2766
2766
|
width: 0;
|
|
2767
2767
|
}
|
|
2768
2768
|
`;
|
|
2769
|
-
|
|
2769
|
+
tt([
|
|
2770
2770
|
a({ type: Array })
|
|
2771
2771
|
], M.prototype, "thumbnails", 2);
|
|
2772
|
-
|
|
2772
|
+
tt([
|
|
2773
2773
|
a({ type: Number })
|
|
2774
2774
|
], M.prototype, "activeIndex", 2);
|
|
2775
|
-
|
|
2775
|
+
tt([
|
|
2776
2776
|
a({ type: Array })
|
|
2777
2777
|
], M.prototype, "disabledIndexes", 2);
|
|
2778
|
-
|
|
2778
|
+
tt([
|
|
2779
2779
|
a({ type: String })
|
|
2780
2780
|
], M.prototype, "maxWidth", 2);
|
|
2781
|
-
|
|
2781
|
+
tt([
|
|
2782
2782
|
a({ type: String })
|
|
2783
2783
|
], M.prototype, "altressource", 2);
|
|
2784
|
-
|
|
2784
|
+
tt([
|
|
2785
2785
|
a({ type: Object })
|
|
2786
2786
|
], M.prototype, "swiperInstance", 2);
|
|
2787
|
-
|
|
2788
|
-
|
|
2787
|
+
tt([
|
|
2788
|
+
Q()
|
|
2789
2789
|
], M.prototype, "focusedIndex", 2);
|
|
2790
|
-
M =
|
|
2790
|
+
M = tt([
|
|
2791
2791
|
g("thumbnail-navigation")
|
|
2792
2792
|
], M);
|
|
2793
|
-
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, Jt = (o, t, e,
|
|
2794
|
-
for (var i =
|
|
2795
|
-
(s = o[
|
|
2796
|
-
return
|
|
2793
|
+
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, Jt = (o, t, e, r) => {
|
|
2794
|
+
for (var i = r > 1 ? void 0 : r ? Qo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2795
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2796
|
+
return r && i && Jo(t, e, i), i;
|
|
2797
2797
|
};
|
|
2798
|
-
let
|
|
2798
|
+
let mt = class extends p {
|
|
2799
2799
|
constructor() {
|
|
2800
2800
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2801
2801
|
}
|
|
@@ -2805,7 +2805,7 @@ let yt = class extends p {
|
|
|
2805
2805
|
`;
|
|
2806
2806
|
}
|
|
2807
2807
|
};
|
|
2808
|
-
|
|
2808
|
+
mt.styles = v`
|
|
2809
2809
|
.tag {
|
|
2810
2810
|
display: inline-block;
|
|
2811
2811
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2865,19 +2865,19 @@ yt.styles = v`
|
|
|
2865
2865
|
`;
|
|
2866
2866
|
Jt([
|
|
2867
2867
|
a({ type: String, reflect: !0 })
|
|
2868
|
-
],
|
|
2868
|
+
], mt.prototype, "type", 2);
|
|
2869
2869
|
Jt([
|
|
2870
2870
|
a({ type: String, reflect: !0 })
|
|
2871
|
-
],
|
|
2872
|
-
|
|
2871
|
+
], mt.prototype, "bgstyle", 2);
|
|
2872
|
+
mt = Jt([
|
|
2873
2873
|
g("o-tag")
|
|
2874
|
-
],
|
|
2875
|
-
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Qt = (o, t, e,
|
|
2876
|
-
for (var i =
|
|
2877
|
-
(s = o[
|
|
2878
|
-
return
|
|
2874
|
+
], mt);
|
|
2875
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Qt = (o, t, e, r) => {
|
|
2876
|
+
for (var i = r > 1 ? void 0 : r ? ei(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2877
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2878
|
+
return r && i && ti(t, e, i), i;
|
|
2879
2879
|
};
|
|
2880
|
-
let
|
|
2880
|
+
let xt = class extends p {
|
|
2881
2881
|
constructor() {
|
|
2882
2882
|
super(...arguments), this.type = "top", this.text = "";
|
|
2883
2883
|
}
|
|
@@ -2890,7 +2890,7 @@ let mt = class extends p {
|
|
|
2890
2890
|
`;
|
|
2891
2891
|
}
|
|
2892
2892
|
};
|
|
2893
|
-
|
|
2893
|
+
xt.styles = v`
|
|
2894
2894
|
.tooltip {
|
|
2895
2895
|
position: relative;
|
|
2896
2896
|
display: inline-block;
|
|
@@ -2985,17 +2985,17 @@ mt.styles = v`
|
|
|
2985
2985
|
`;
|
|
2986
2986
|
Qt([
|
|
2987
2987
|
a({ type: String, reflect: !0 })
|
|
2988
|
-
],
|
|
2988
|
+
], xt.prototype, "type", 2);
|
|
2989
2989
|
Qt([
|
|
2990
2990
|
a({ type: String, reflect: !0 })
|
|
2991
|
-
],
|
|
2992
|
-
|
|
2991
|
+
], xt.prototype, "text", 2);
|
|
2992
|
+
xt = Qt([
|
|
2993
2993
|
g("o-tooltip")
|
|
2994
|
-
],
|
|
2995
|
-
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, Z = (o, t, e,
|
|
2996
|
-
for (var i =
|
|
2997
|
-
(s = o[
|
|
2998
|
-
return
|
|
2994
|
+
], xt);
|
|
2995
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, Z = (o, t, e, r) => {
|
|
2996
|
+
for (var i = r > 1 ? void 0 : r ? ii(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2997
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2998
|
+
return r && i && oi(t, e, i), i;
|
|
2999
2999
|
};
|
|
3000
3000
|
let D = class extends p {
|
|
3001
3001
|
constructor() {
|
|
@@ -3096,13 +3096,13 @@ let D = class extends p {
|
|
|
3096
3096
|
style=${`width: ${this.width};`}
|
|
3097
3097
|
>
|
|
3098
3098
|
${this.options.map(
|
|
3099
|
-
(e,
|
|
3099
|
+
(e, r) => l`
|
|
3100
3100
|
<li
|
|
3101
|
-
id="option-${
|
|
3101
|
+
id="option-${r}"
|
|
3102
3102
|
role="option"
|
|
3103
3103
|
aria-selected="${e.value === this.value}"
|
|
3104
|
-
tabindex="${
|
|
3105
|
-
class="${
|
|
3104
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3105
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3106
3106
|
@click=${() => this.selectOption(e)}
|
|
3107
3107
|
>
|
|
3108
3108
|
${e.url ? l`
|
|
@@ -3276,20 +3276,20 @@ Z([
|
|
|
3276
3276
|
a({ type: String, reflect: !0 })
|
|
3277
3277
|
], D.prototype, "width", 2);
|
|
3278
3278
|
Z([
|
|
3279
|
-
|
|
3279
|
+
Q()
|
|
3280
3280
|
], D.prototype, "open", 2);
|
|
3281
3281
|
Z([
|
|
3282
|
-
|
|
3282
|
+
Q()
|
|
3283
3283
|
], D.prototype, "activeIndex", 2);
|
|
3284
3284
|
Z([
|
|
3285
|
-
|
|
3285
|
+
Q()
|
|
3286
3286
|
], D.prototype, "menuWidth", 2);
|
|
3287
3287
|
D = Z([
|
|
3288
3288
|
g("o-dropdown")
|
|
3289
3289
|
], D);
|
|
3290
|
-
var
|
|
3291
|
-
for (var i =
|
|
3292
|
-
(s = o[
|
|
3290
|
+
var ri = Object.getOwnPropertyDescriptor, ni = (o, t, e, r) => {
|
|
3291
|
+
for (var i = r > 1 ? void 0 : r ? ri(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3292
|
+
(s = o[n]) && (i = s(i) || i);
|
|
3293
3293
|
return i;
|
|
3294
3294
|
};
|
|
3295
3295
|
let Rt = class extends p {
|
|
@@ -3349,13 +3349,13 @@ Rt.styles = v`
|
|
|
3349
3349
|
}
|
|
3350
3350
|
}
|
|
3351
3351
|
`;
|
|
3352
|
-
Rt =
|
|
3352
|
+
Rt = ni([
|
|
3353
3353
|
g("o-dots")
|
|
3354
3354
|
], Rt);
|
|
3355
|
-
var si = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, F = (o, t, e,
|
|
3356
|
-
for (var i =
|
|
3357
|
-
(s = o[
|
|
3358
|
-
return
|
|
3355
|
+
var si = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, F = (o, t, e, r) => {
|
|
3356
|
+
for (var i = r > 1 ? void 0 : r ? ai(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3357
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3358
|
+
return r && i && si(t, e, i), i;
|
|
3359
3359
|
};
|
|
3360
3360
|
let B = class extends p {
|
|
3361
3361
|
constructor() {
|
|
@@ -3466,14 +3466,14 @@ let B = class extends p {
|
|
|
3466
3466
|
style=${`width: ${this.width};`}
|
|
3467
3467
|
>
|
|
3468
3468
|
${this.options.map(
|
|
3469
|
-
(e,
|
|
3469
|
+
(e, r) => l`
|
|
3470
3470
|
<li
|
|
3471
|
-
id="option-${
|
|
3471
|
+
id="option-${r}"
|
|
3472
3472
|
role="option"
|
|
3473
3473
|
aria-selected="${e.value === this.value}"
|
|
3474
3474
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3475
|
-
tabindex="${
|
|
3476
|
-
class="${
|
|
3475
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3476
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3477
3477
|
@click=${() => this.selectOption(e)}
|
|
3478
3478
|
>
|
|
3479
3479
|
<a href="${A(e.url)}">
|
|
@@ -3689,13 +3689,13 @@ F([
|
|
|
3689
3689
|
a({ type: String, reflect: !0 })
|
|
3690
3690
|
], B.prototype, "width", 2);
|
|
3691
3691
|
F([
|
|
3692
|
-
|
|
3692
|
+
Q()
|
|
3693
3693
|
], B.prototype, "open", 2);
|
|
3694
3694
|
F([
|
|
3695
|
-
|
|
3695
|
+
Q()
|
|
3696
3696
|
], B.prototype, "activeIndex", 2);
|
|
3697
3697
|
F([
|
|
3698
|
-
|
|
3698
|
+
Q()
|
|
3699
3699
|
], B.prototype, "menuWidth", 2);
|
|
3700
3700
|
B = F([
|
|
3701
3701
|
g("o-dropdown-variant")
|
|
@@ -3712,31 +3712,31 @@ const Ce = "important", li = " !" + Ce, ci = Xt(class extends Yt {
|
|
|
3712
3712
|
}
|
|
3713
3713
|
render(o) {
|
|
3714
3714
|
return Object.keys(o).reduce((t, e) => {
|
|
3715
|
-
const
|
|
3716
|
-
return
|
|
3715
|
+
const r = o[e];
|
|
3716
|
+
return r == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
|
|
3717
3717
|
}, "");
|
|
3718
3718
|
}
|
|
3719
3719
|
update(o, [t]) {
|
|
3720
3720
|
const { style: e } = o.element;
|
|
3721
3721
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3722
|
-
for (const
|
|
3723
|
-
for (const
|
|
3724
|
-
const i = t[
|
|
3722
|
+
for (const r of this.ft) t[r] == null && (this.ft.delete(r), r.includes("-") ? e.removeProperty(r) : e[r] = null);
|
|
3723
|
+
for (const r in t) {
|
|
3724
|
+
const i = t[r];
|
|
3725
3725
|
if (i != null) {
|
|
3726
|
-
this.ft.add(
|
|
3727
|
-
const
|
|
3728
|
-
|
|
3726
|
+
this.ft.add(r);
|
|
3727
|
+
const n = typeof i == "string" && i.endsWith(li);
|
|
3728
|
+
r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? Ce : "") : e[r] = i;
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
3731
|
return Y;
|
|
3732
3732
|
}
|
|
3733
3733
|
});
|
|
3734
|
-
var hi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, te = (o, t, e,
|
|
3735
|
-
for (var i =
|
|
3736
|
-
(s = o[
|
|
3737
|
-
return
|
|
3734
|
+
var hi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, te = (o, t, e, r) => {
|
|
3735
|
+
for (var i = r > 1 ? void 0 : r ? di(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3736
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3737
|
+
return r && i && hi(t, e, i), i;
|
|
3738
3738
|
};
|
|
3739
|
-
let
|
|
3739
|
+
let wt = class extends p {
|
|
3740
3740
|
constructor() {
|
|
3741
3741
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3742
3742
|
}
|
|
@@ -3747,17 +3747,17 @@ let xt = class extends p {
|
|
|
3747
3747
|
}, t = this.option && this.option.clickable, e = {
|
|
3748
3748
|
width: `${this.imageSize}px`,
|
|
3749
3749
|
height: `${this.imageSize}px`
|
|
3750
|
-
},
|
|
3751
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${A(
|
|
3750
|
+
}, r = this.option && this.option.title ? o(this.option.title) : "", i = this.option && this.option.description ? o(this.option.description) : "", n = l`
|
|
3751
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${A(r)}" aria-hidden="true" style=${ci(e)} />` : ""}
|
|
3752
3752
|
<div class="m-reassurance-content">
|
|
3753
|
-
<h3 class="a-reassurance-text">${A(
|
|
3753
|
+
<h3 class="a-reassurance-text">${A(r)}</h3>
|
|
3754
3754
|
<p class="a-reassurance-description">${A(i)}</p>
|
|
3755
3755
|
</div>
|
|
3756
3756
|
`;
|
|
3757
|
-
return t ? l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${
|
|
3757
|
+
return t ? l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${n}</a>` : l`<div class="reassurance-item">${n}</div>`;
|
|
3758
3758
|
}
|
|
3759
3759
|
};
|
|
3760
|
-
|
|
3760
|
+
wt.styles = v`
|
|
3761
3761
|
:host {
|
|
3762
3762
|
display: inline-block;
|
|
3763
3763
|
position: relative;
|
|
@@ -3841,17 +3841,17 @@ xt.styles = v`
|
|
|
3841
3841
|
`;
|
|
3842
3842
|
te([
|
|
3843
3843
|
a({ type: Object, reflect: !0 })
|
|
3844
|
-
],
|
|
3844
|
+
], wt.prototype, "option", 2);
|
|
3845
3845
|
te([
|
|
3846
3846
|
a({ type: Number, reflect: !0 })
|
|
3847
|
-
],
|
|
3848
|
-
|
|
3847
|
+
], wt.prototype, "imageSize", 2);
|
|
3848
|
+
wt = te([
|
|
3849
3849
|
g("o-reassurance")
|
|
3850
|
-
],
|
|
3851
|
-
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, K = (o, t, e,
|
|
3852
|
-
for (var i =
|
|
3853
|
-
(s = o[
|
|
3854
|
-
return
|
|
3850
|
+
], wt);
|
|
3851
|
+
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, K = (o, t, e, r) => {
|
|
3852
|
+
for (var i = r > 1 ? void 0 : r ? ui(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3853
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3854
|
+
return r && i && pi(t, e, i), i;
|
|
3855
3855
|
};
|
|
3856
3856
|
const vi = Wt(p);
|
|
3857
3857
|
let P = class extends vi {
|
|
@@ -3953,7 +3953,7 @@ P.styles = v`
|
|
|
3953
3953
|
}
|
|
3954
3954
|
|
|
3955
3955
|
&:focus-visible {
|
|
3956
|
-
${
|
|
3956
|
+
${nt};
|
|
3957
3957
|
}
|
|
3958
3958
|
}
|
|
3959
3959
|
|
|
@@ -3994,12 +3994,12 @@ K([
|
|
|
3994
3994
|
P = K([
|
|
3995
3995
|
g("o-chip")
|
|
3996
3996
|
], P);
|
|
3997
|
-
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, ee = (o, t, e,
|
|
3998
|
-
for (var i =
|
|
3999
|
-
(s = o[
|
|
4000
|
-
return
|
|
3997
|
+
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, ee = (o, t, e, r) => {
|
|
3998
|
+
for (var i = r > 1 ? void 0 : r ? gi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3999
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4000
|
+
return r && i && fi(t, e, i), i;
|
|
4001
4001
|
};
|
|
4002
|
-
let
|
|
4002
|
+
let $t = class extends p {
|
|
4003
4003
|
constructor() {
|
|
4004
4004
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
4005
4005
|
}
|
|
@@ -4015,7 +4015,7 @@ let wt = class extends p {
|
|
|
4015
4015
|
`;
|
|
4016
4016
|
}
|
|
4017
4017
|
};
|
|
4018
|
-
|
|
4018
|
+
$t.styles = v`
|
|
4019
4019
|
:host {
|
|
4020
4020
|
display: flex;
|
|
4021
4021
|
flex-direction: row;
|
|
@@ -4025,20 +4025,20 @@ wt.styles = v`
|
|
|
4025
4025
|
`;
|
|
4026
4026
|
ee([
|
|
4027
4027
|
a({ reflect: !0 })
|
|
4028
|
-
],
|
|
4028
|
+
], $t.prototype, "name", 2);
|
|
4029
4029
|
ee([
|
|
4030
4030
|
a({ reflect: !0 })
|
|
4031
|
-
],
|
|
4032
|
-
|
|
4031
|
+
], $t.prototype, "value", 2);
|
|
4032
|
+
$t = ee([
|
|
4033
4033
|
g("o-chipset")
|
|
4034
|
-
],
|
|
4035
|
-
var bi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, j = (o, t, e,
|
|
4036
|
-
for (var i =
|
|
4037
|
-
(s = o[
|
|
4038
|
-
return
|
|
4034
|
+
], $t);
|
|
4035
|
+
var bi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
4036
|
+
for (var i = r > 1 ? void 0 : r ? yi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4037
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4038
|
+
return r && i && bi(t, e, i), i;
|
|
4039
4039
|
};
|
|
4040
4040
|
const mi = Wt(p);
|
|
4041
|
-
let
|
|
4041
|
+
let z = class extends mi {
|
|
4042
4042
|
constructor() {
|
|
4043
4043
|
super(...arguments), this.name = "", this.value = "", this.type = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
4044
4044
|
}
|
|
@@ -4088,7 +4088,7 @@ let O = class extends mi {
|
|
|
4088
4088
|
`;
|
|
4089
4089
|
}
|
|
4090
4090
|
};
|
|
4091
|
-
|
|
4091
|
+
z.styles = v`
|
|
4092
4092
|
:host {
|
|
4093
4093
|
cursor: pointer;
|
|
4094
4094
|
display: inline-flex;
|
|
@@ -4168,7 +4168,7 @@ O.styles = v`
|
|
|
4168
4168
|
}
|
|
4169
4169
|
|
|
4170
4170
|
.button:focus-visible {
|
|
4171
|
-
${
|
|
4171
|
+
${nt};
|
|
4172
4172
|
}
|
|
4173
4173
|
|
|
4174
4174
|
span.text + span.text::before {
|
|
@@ -4216,40 +4216,40 @@ O.styles = v`
|
|
|
4216
4216
|
`;
|
|
4217
4217
|
j([
|
|
4218
4218
|
a({ reflect: !0 })
|
|
4219
|
-
],
|
|
4219
|
+
], z.prototype, "name", 2);
|
|
4220
4220
|
j([
|
|
4221
4221
|
a({ reflect: !0 })
|
|
4222
|
-
],
|
|
4222
|
+
], z.prototype, "value", 2);
|
|
4223
4223
|
j([
|
|
4224
4224
|
a({ type: String, reflect: !0 })
|
|
4225
|
-
],
|
|
4225
|
+
], z.prototype, "type", 2);
|
|
4226
4226
|
j([
|
|
4227
4227
|
a({ type: String, reflect: !0 })
|
|
4228
|
-
],
|
|
4228
|
+
], z.prototype, "href", 2);
|
|
4229
4229
|
j([
|
|
4230
4230
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4231
|
-
],
|
|
4231
|
+
], z.prototype, "dataHref", 2);
|
|
4232
4232
|
j([
|
|
4233
4233
|
a({ type: String })
|
|
4234
|
-
],
|
|
4234
|
+
], z.prototype, "text", 2);
|
|
4235
4235
|
j([
|
|
4236
4236
|
a({ type: Boolean, reflect: !0 })
|
|
4237
|
-
],
|
|
4237
|
+
], z.prototype, "selected", 2);
|
|
4238
4238
|
j([
|
|
4239
4239
|
a({ type: Boolean, reflect: !0 })
|
|
4240
|
-
],
|
|
4240
|
+
], z.prototype, "disabled", 2);
|
|
4241
4241
|
j([
|
|
4242
4242
|
a({ type: Boolean, reflect: !0 })
|
|
4243
|
-
],
|
|
4244
|
-
|
|
4243
|
+
], z.prototype, "fullwidth", 2);
|
|
4244
|
+
z = j([
|
|
4245
4245
|
g("o-filter-chip")
|
|
4246
|
-
],
|
|
4247
|
-
var xi = Object.defineProperty, R = (o, t, e,
|
|
4248
|
-
for (var i = void 0,
|
|
4249
|
-
(s = o[
|
|
4246
|
+
], z);
|
|
4247
|
+
var xi = Object.defineProperty, R = (o, t, e, r) => {
|
|
4248
|
+
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4249
|
+
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4250
4250
|
return i && xi(t, e, i), i;
|
|
4251
4251
|
};
|
|
4252
|
-
const
|
|
4252
|
+
const re = class re extends p {
|
|
4253
4253
|
constructor() {
|
|
4254
4254
|
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 = "";
|
|
4255
4255
|
}
|
|
@@ -4299,7 +4299,7 @@ const ne = class ne extends p {
|
|
|
4299
4299
|
`;
|
|
4300
4300
|
}
|
|
4301
4301
|
};
|
|
4302
|
-
|
|
4302
|
+
re.styles = v`
|
|
4303
4303
|
:host {
|
|
4304
4304
|
display: block;
|
|
4305
4305
|
max-width: 100%;
|
|
@@ -4396,7 +4396,7 @@ ne.styles = v`
|
|
|
4396
4396
|
cursor: pointer;
|
|
4397
4397
|
}
|
|
4398
4398
|
`;
|
|
4399
|
-
let C =
|
|
4399
|
+
let C = re;
|
|
4400
4400
|
R([
|
|
4401
4401
|
a({ type: String })
|
|
4402
4402
|
], C.prototype, "type");
|
|
@@ -4428,12 +4428,12 @@ R([
|
|
|
4428
4428
|
a({ type: Function })
|
|
4429
4429
|
], C.prototype, "onClickTile");
|
|
4430
4430
|
customElements.define("mini-tile", C);
|
|
4431
|
-
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, oe = (o, t, e,
|
|
4432
|
-
for (var i =
|
|
4433
|
-
(s = o[
|
|
4434
|
-
return
|
|
4431
|
+
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, oe = (o, t, e, r) => {
|
|
4432
|
+
for (var i = r > 1 ? void 0 : r ? $i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4433
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4434
|
+
return r && i && wi(t, e, i), i;
|
|
4435
4435
|
};
|
|
4436
|
-
let
|
|
4436
|
+
let kt = class extends p {
|
|
4437
4437
|
constructor() {
|
|
4438
4438
|
super(...arguments), this.variant = "cart", this.text = "";
|
|
4439
4439
|
}
|
|
@@ -4445,7 +4445,7 @@ let $t = class extends p {
|
|
|
4445
4445
|
`;
|
|
4446
4446
|
}
|
|
4447
4447
|
};
|
|
4448
|
-
|
|
4448
|
+
kt.styles = v`
|
|
4449
4449
|
:host([variant]) {
|
|
4450
4450
|
--badge-width: 19px;
|
|
4451
4451
|
display: inline-block;
|
|
@@ -4482,17 +4482,17 @@ $t.styles = v`
|
|
|
4482
4482
|
`;
|
|
4483
4483
|
oe([
|
|
4484
4484
|
a({ type: String, reflect: !0 })
|
|
4485
|
-
],
|
|
4485
|
+
], kt.prototype, "variant", 2);
|
|
4486
4486
|
oe([
|
|
4487
4487
|
a({ type: String })
|
|
4488
|
-
],
|
|
4489
|
-
|
|
4488
|
+
], kt.prototype, "text", 2);
|
|
4489
|
+
kt = oe([
|
|
4490
4490
|
g("o-badge")
|
|
4491
|
-
],
|
|
4492
|
-
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, I = (o, t, e,
|
|
4493
|
-
for (var i =
|
|
4494
|
-
(s = o[
|
|
4495
|
-
return
|
|
4491
|
+
], kt);
|
|
4492
|
+
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, I = (o, t, e, r) => {
|
|
4493
|
+
for (var i = r > 1 ? void 0 : r ? _i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4494
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4495
|
+
return r && i && ki(t, e, i), i;
|
|
4496
4496
|
};
|
|
4497
4497
|
let _ = class extends p {
|
|
4498
4498
|
constructor() {
|
|
@@ -4526,11 +4526,11 @@ let _ = class extends p {
|
|
|
4526
4526
|
}, 600);
|
|
4527
4527
|
}
|
|
4528
4528
|
firstUpdated() {
|
|
4529
|
-
var
|
|
4529
|
+
var r, i;
|
|
4530
4530
|
var o = this;
|
|
4531
|
-
const t = (
|
|
4531
|
+
const t = (r = this.renderRoot) == null ? void 0 : r.querySelector("o-icon-button"), e = (i = this.renderRoot) == null ? void 0 : i.querySelector(".o-toast-text");
|
|
4532
4532
|
if (e != null) {
|
|
4533
|
-
const
|
|
4533
|
+
const n = window.getComputedStyle(e), s = parseInt(n.getPropertyValue("line-height").replace("px", "")), c = parseInt(n.getPropertyValue("height").replace("px", ""));
|
|
4534
4534
|
!isNaN(s) && !isNaN(c) && c > s && (this.multiline = !0);
|
|
4535
4535
|
}
|
|
4536
4536
|
t != null && t.addEventListener("click", function() {
|
|
@@ -4672,10 +4672,10 @@ I([
|
|
|
4672
4672
|
_ = I([
|
|
4673
4673
|
g("o-toast")
|
|
4674
4674
|
], _);
|
|
4675
|
-
var Ci = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, H = (o, t, e,
|
|
4676
|
-
for (var i =
|
|
4677
|
-
(s = o[
|
|
4678
|
-
return
|
|
4675
|
+
var Ci = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
|
|
4676
|
+
for (var i = r > 1 ? void 0 : r ? Ei(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4677
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4678
|
+
return r && i && Ci(t, e, i), i;
|
|
4679
4679
|
};
|
|
4680
4680
|
let Si = 0, E = class extends p {
|
|
4681
4681
|
constructor() {
|
|
@@ -4704,8 +4704,8 @@ let Si = 0, E = class extends p {
|
|
|
4704
4704
|
name=${this.name}
|
|
4705
4705
|
value=${this.value}
|
|
4706
4706
|
@change=${(e) => {
|
|
4707
|
-
const
|
|
4708
|
-
this.checked =
|
|
4707
|
+
const r = e.target;
|
|
4708
|
+
this.checked = r.checked, this.indeterminate = r.indeterminate, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
|
|
4709
4709
|
}}
|
|
4710
4710
|
/>
|
|
4711
4711
|
|
|
@@ -4854,12 +4854,12 @@ H([
|
|
|
4854
4854
|
E = H([
|
|
4855
4855
|
g("o-checkbox")
|
|
4856
4856
|
], E);
|
|
4857
|
-
var Ai = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, U = (o, t, e,
|
|
4858
|
-
for (var i =
|
|
4859
|
-
(s = o[
|
|
4860
|
-
return
|
|
4857
|
+
var Ai = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, U = (o, t, e, r) => {
|
|
4858
|
+
for (var i = r > 1 ? void 0 : r ? Li(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4859
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4860
|
+
return r && i && Ai(t, e, i), i;
|
|
4861
4861
|
};
|
|
4862
|
-
let Bi = 0,
|
|
4862
|
+
let Bi = 0, O = class extends p {
|
|
4863
4863
|
constructor() {
|
|
4864
4864
|
super(), this.checked = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Radio button", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-radio-${++Bi}`);
|
|
4865
4865
|
}
|
|
@@ -4872,8 +4872,8 @@ let Bi = 0, z = class extends p {
|
|
|
4872
4872
|
updated(o) {
|
|
4873
4873
|
if (o.has("checked") && this.checked) {
|
|
4874
4874
|
const t = this.parentElement;
|
|
4875
|
-
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((
|
|
4876
|
-
|
|
4875
|
+
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((r) => {
|
|
4876
|
+
r !== this && (r.checked = !1);
|
|
4877
4877
|
});
|
|
4878
4878
|
}
|
|
4879
4879
|
this.syncInput();
|
|
@@ -4893,7 +4893,7 @@ let Bi = 0, z = class extends p {
|
|
|
4893
4893
|
`;
|
|
4894
4894
|
}
|
|
4895
4895
|
};
|
|
4896
|
-
|
|
4896
|
+
O.styles = v`
|
|
4897
4897
|
:host {
|
|
4898
4898
|
display: inline-flex;
|
|
4899
4899
|
align-items: center;
|
|
@@ -4985,37 +4985,37 @@ z.styles = v`
|
|
|
4985
4985
|
`;
|
|
4986
4986
|
U([
|
|
4987
4987
|
a({ type: Boolean, reflect: !0 })
|
|
4988
|
-
],
|
|
4988
|
+
], O.prototype, "checked", 2);
|
|
4989
4989
|
U([
|
|
4990
4990
|
a({ type: Boolean, reflect: !0 })
|
|
4991
|
-
],
|
|
4991
|
+
], O.prototype, "disabled", 2);
|
|
4992
4992
|
U([
|
|
4993
4993
|
a({ type: String, reflect: !0 })
|
|
4994
|
-
],
|
|
4994
|
+
], O.prototype, "size", 2);
|
|
4995
4995
|
U([
|
|
4996
4996
|
a({ type: Boolean })
|
|
4997
|
-
],
|
|
4997
|
+
], O.prototype, "showLabel", 2);
|
|
4998
4998
|
U([
|
|
4999
4999
|
a({ type: String })
|
|
5000
|
-
],
|
|
5000
|
+
], O.prototype, "label", 2);
|
|
5001
5001
|
U([
|
|
5002
5002
|
a({ type: String })
|
|
5003
|
-
],
|
|
5003
|
+
], O.prototype, "name", 2);
|
|
5004
5004
|
U([
|
|
5005
5005
|
a({ type: String })
|
|
5006
|
-
],
|
|
5006
|
+
], O.prototype, "value", 2);
|
|
5007
5007
|
U([
|
|
5008
5008
|
a({ type: String, reflect: !0 })
|
|
5009
|
-
],
|
|
5009
|
+
], O.prototype, "inputId", 2);
|
|
5010
5010
|
U([
|
|
5011
5011
|
ke("input")
|
|
5012
|
-
],
|
|
5013
|
-
|
|
5012
|
+
], O.prototype, "inputEl", 2);
|
|
5013
|
+
O = U([
|
|
5014
5014
|
g("o-radio")
|
|
5015
|
-
],
|
|
5016
|
-
var Pi = Object.getOwnPropertyDescriptor,
|
|
5017
|
-
for (var i =
|
|
5018
|
-
(s = o[
|
|
5015
|
+
], O);
|
|
5016
|
+
var Pi = Object.getOwnPropertyDescriptor, zi = (o, t, e, r) => {
|
|
5017
|
+
for (var i = r > 1 ? void 0 : r ? Pi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5018
|
+
(s = o[n]) && (i = s(i) || i);
|
|
5019
5019
|
return i;
|
|
5020
5020
|
};
|
|
5021
5021
|
let Ut = class extends p {
|
|
@@ -5041,15 +5041,15 @@ Ut.styles = v`
|
|
|
5041
5041
|
padding: var(--spacing-4-xs);
|
|
5042
5042
|
}
|
|
5043
5043
|
`;
|
|
5044
|
-
Ut =
|
|
5044
|
+
Ut = zi([
|
|
5045
5045
|
g("o-breadcrumbs")
|
|
5046
5046
|
], Ut);
|
|
5047
|
-
var
|
|
5048
|
-
for (var i =
|
|
5049
|
-
(s = o[
|
|
5050
|
-
return
|
|
5047
|
+
var Oi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, ie = (o, t, e, r) => {
|
|
5048
|
+
for (var i = r > 1 ? void 0 : r ? Ii(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5049
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5050
|
+
return r && i && Oi(t, e, i), i;
|
|
5051
5051
|
};
|
|
5052
|
-
let
|
|
5052
|
+
let _t = class extends p {
|
|
5053
5053
|
constructor() {
|
|
5054
5054
|
super(...arguments), this.href = "", this.active = !1;
|
|
5055
5055
|
}
|
|
@@ -5070,7 +5070,7 @@ let kt = class extends p {
|
|
|
5070
5070
|
`;
|
|
5071
5071
|
}
|
|
5072
5072
|
};
|
|
5073
|
-
|
|
5073
|
+
_t.styles = v`
|
|
5074
5074
|
:host(:not([active]))::after {
|
|
5075
5075
|
content: "/";
|
|
5076
5076
|
margin: 0 0.5rem;
|
|
@@ -5103,7 +5103,7 @@ kt.styles = v`
|
|
|
5103
5103
|
}
|
|
5104
5104
|
|
|
5105
5105
|
a:focus-visible {
|
|
5106
|
-
${
|
|
5106
|
+
${nt};
|
|
5107
5107
|
}
|
|
5108
5108
|
|
|
5109
5109
|
:host(.a--tabfocus) {
|
|
@@ -5112,21 +5112,21 @@ kt.styles = v`
|
|
|
5112
5112
|
`;
|
|
5113
5113
|
ie([
|
|
5114
5114
|
a({ type: String })
|
|
5115
|
-
],
|
|
5115
|
+
], _t.prototype, "href", 2);
|
|
5116
5116
|
ie([
|
|
5117
5117
|
a({ type: Boolean, reflect: !0 })
|
|
5118
|
-
],
|
|
5119
|
-
|
|
5118
|
+
], _t.prototype, "active", 2);
|
|
5119
|
+
_t = ie([
|
|
5120
5120
|
g("o-breadcrumb")
|
|
5121
|
-
],
|
|
5122
|
-
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor,
|
|
5123
|
-
for (var i =
|
|
5124
|
-
(s = o[
|
|
5125
|
-
return
|
|
5121
|
+
], _t);
|
|
5122
|
+
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, dt = (o, t, e, r) => {
|
|
5123
|
+
for (var i = r > 1 ? void 0 : r ? Hi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5124
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5125
|
+
return r && i && Di(t, e, i), i;
|
|
5126
5126
|
};
|
|
5127
|
-
let
|
|
5127
|
+
let J = class extends p {
|
|
5128
5128
|
constructor() {
|
|
5129
|
-
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "";
|
|
5129
|
+
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1;
|
|
5130
5130
|
}
|
|
5131
5131
|
render() {
|
|
5132
5132
|
return l`<div class="card">
|
|
@@ -5139,23 +5139,31 @@ let nt = class extends p {
|
|
|
5139
5139
|
</svg>
|
|
5140
5140
|
<img src="${this.imageUrl}" alt="${this.imageAlt}" class="card-img base" loading="lazy" />
|
|
5141
5141
|
${this.hoverUrl ? l`<img src="${this.hoverUrl}" alt="${this.hoverAlt || this.imageAlt}" class="card-img hover" loading="lazy" />` : ""}
|
|
5142
|
+
<div class="overlay" part="overlay"></div>
|
|
5142
5143
|
</div>`;
|
|
5143
5144
|
}
|
|
5144
5145
|
};
|
|
5145
|
-
|
|
5146
|
+
J.styles = v`
|
|
5146
5147
|
:host {
|
|
5148
|
+
--card-width : 175px;
|
|
5149
|
+
--card-height : 260px;
|
|
5150
|
+
--card-width-mobile: 100px;
|
|
5151
|
+
--card-height-mobile: 153px;
|
|
5152
|
+
--overlay-bg: rgba(0,0,0,0.56);
|
|
5153
|
+
--overlay-opacity: 1;
|
|
5154
|
+
|
|
5147
5155
|
.card {
|
|
5148
5156
|
position: relative;
|
|
5149
|
-
width:
|
|
5150
|
-
height:
|
|
5157
|
+
width: var(--card-width);
|
|
5158
|
+
height: var(--card-height);
|
|
5151
5159
|
overflow: hidden;
|
|
5152
5160
|
background-color: var(--colors-noir-des-terres-500);
|
|
5153
5161
|
clip-path: url(#arch-gift-finder);
|
|
5154
5162
|
-webkit-clip-path: url(#arch-gift-finder);
|
|
5155
5163
|
|
|
5156
5164
|
@media (max-width: 1024px) {
|
|
5157
|
-
width:
|
|
5158
|
-
height:
|
|
5165
|
+
width: var(--card-width-mobile);
|
|
5166
|
+
height: var(--card-height-mobile);
|
|
5159
5167
|
}
|
|
5160
5168
|
}
|
|
5161
5169
|
|
|
@@ -5178,23 +5186,39 @@ nt.styles = v`
|
|
|
5178
5186
|
.card:hover .card-img.hover {
|
|
5179
5187
|
opacity: 1;
|
|
5180
5188
|
}
|
|
5189
|
+
|
|
5190
|
+
.overlay {
|
|
5191
|
+
position: absolute; inset: 0;
|
|
5192
|
+
background: var(--overlay-bg);
|
|
5193
|
+
opacity: 0;
|
|
5194
|
+
transition: opacity .2s ease;
|
|
5195
|
+
pointer-events: none;
|
|
5196
|
+
z-index: 3;
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
|
|
5200
|
+
:host([dimmed]) .overlay {
|
|
5201
|
+
opacity: var(--overlay-opacity, 1);
|
|
5181
5202
|
}
|
|
5182
5203
|
`;
|
|
5183
|
-
|
|
5204
|
+
dt([
|
|
5184
5205
|
a({ type: String })
|
|
5185
|
-
],
|
|
5186
|
-
|
|
5206
|
+
], J.prototype, "imageUrl", 2);
|
|
5207
|
+
dt([
|
|
5187
5208
|
a({ type: String })
|
|
5188
|
-
],
|
|
5189
|
-
|
|
5209
|
+
], J.prototype, "imageAlt", 2);
|
|
5210
|
+
dt([
|
|
5190
5211
|
a({ type: String })
|
|
5191
|
-
],
|
|
5192
|
-
|
|
5212
|
+
], J.prototype, "hoverUrl", 2);
|
|
5213
|
+
dt([
|
|
5193
5214
|
a({ type: String })
|
|
5194
|
-
],
|
|
5195
|
-
|
|
5215
|
+
], J.prototype, "hoverAlt", 2);
|
|
5216
|
+
dt([
|
|
5217
|
+
a({ type: Boolean, reflect: !0 })
|
|
5218
|
+
], J.prototype, "dimmed", 2);
|
|
5219
|
+
J = dt([
|
|
5196
5220
|
g("o-arch-image")
|
|
5197
|
-
],
|
|
5221
|
+
], J);
|
|
5198
5222
|
const Mi = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
5199
5223
|
<svg
|
|
5200
5224
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
@@ -5276,18 +5300,18 @@ const Mi = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
5276
5300
|
id="path52"
|
|
5277
5301
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
5278
5302
|
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>`;
|
|
5279
|
-
var Ti = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, S = (o, t, e,
|
|
5280
|
-
for (var i =
|
|
5281
|
-
(s = o[
|
|
5282
|
-
return
|
|
5303
|
+
var Ti = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, S = (o, t, e, r) => {
|
|
5304
|
+
for (var i = r > 1 ? void 0 : r ? Fi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5305
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5306
|
+
return r && i && Ti(t, e, i), i;
|
|
5283
5307
|
};
|
|
5284
|
-
const
|
|
5308
|
+
const ne = class ne extends p {
|
|
5285
5309
|
constructor() {
|
|
5286
5310
|
super(...arguments), this.ispagedesigner = !1, this._classPopin = "", this.open = !1, this.background = "", this.backgroundUrl = "", this.closeOnEsc = !0, this.closeOnBackdrop = !0, this.lockScroll = !0, this.variant = "fullscreen", this.maxWidth = "640px", this.showBackButton = !1, this.contrast = !1, this._labelId = `title-${Math.random().toString(36).slice(2)}`, this._onBackdropClick = (t) => {
|
|
5287
|
-
var
|
|
5311
|
+
var r;
|
|
5288
5312
|
if (!this.open || !this.closeOnBackdrop) return;
|
|
5289
5313
|
const e = t.composedPath()[0];
|
|
5290
|
-
(
|
|
5314
|
+
(r = e == null ? void 0 : e.classList) != null && r.contains("backdrop") && this._requestClose("backdrop");
|
|
5291
5315
|
};
|
|
5292
5316
|
}
|
|
5293
5317
|
get classPopin() {
|
|
@@ -5391,7 +5415,7 @@ const re = class re extends p {
|
|
|
5391
5415
|
`;
|
|
5392
5416
|
}
|
|
5393
5417
|
};
|
|
5394
|
-
|
|
5418
|
+
ne.styles = v`
|
|
5395
5419
|
:host {
|
|
5396
5420
|
position: fixed;
|
|
5397
5421
|
inset: 0;
|
|
@@ -5501,7 +5525,7 @@ re.styles = v`
|
|
|
5501
5525
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
5502
5526
|
}
|
|
5503
5527
|
`;
|
|
5504
|
-
let $ =
|
|
5528
|
+
let $ = ne;
|
|
5505
5529
|
S([
|
|
5506
5530
|
a({ type: Boolean, reflect: !0 })
|
|
5507
5531
|
], $.prototype, "ispagedesigner", 2);
|
|
@@ -5539,6 +5563,6 @@ S([
|
|
|
5539
5563
|
a({ type: Boolean, reflect: !0 })
|
|
5540
5564
|
], $.prototype, "contrast", 2);
|
|
5541
5565
|
S([
|
|
5542
|
-
|
|
5566
|
+
Q()
|
|
5543
5567
|
], $.prototype, "_labelId", 2);
|
|
5544
5568
|
customElements.define("o-popin", $);
|