@florid-kit/components 0.9.36 → 0.9.38
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 +96 -86
- package/index.mjs +494 -481
- 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);
|
|
@@ -2816,6 +2816,9 @@ yt.styles = v`
|
|
|
2816
2816
|
font-family: var(--font-family-loccitane-sans);
|
|
2817
2817
|
letter-spacing: var(--letter-spacing-400);
|
|
2818
2818
|
position: relative;
|
|
2819
|
+
overflow: hidden;
|
|
2820
|
+
white-space: nowrap;
|
|
2821
|
+
text-overflow: ellipsis;
|
|
2819
2822
|
}
|
|
2820
2823
|
|
|
2821
2824
|
.tag.background-emphasis {
|
|
@@ -2853,31 +2856,22 @@ yt.styles = v`
|
|
|
2853
2856
|
background-color: var(--color-content-success);
|
|
2854
2857
|
}
|
|
2855
2858
|
|
|
2856
|
-
:host(:not([type$="percentage"])) .tag {
|
|
2857
|
-
@media (max-width: 480px) {
|
|
2858
|
-
overflow: hidden;
|
|
2859
|
-
white-space: nowrap;
|
|
2860
|
-
text-overflow: ellipsis;
|
|
2861
|
-
max-width: 19ch;
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
2859
|
`;
|
|
2866
2860
|
Jt([
|
|
2867
2861
|
a({ type: String, reflect: !0 })
|
|
2868
|
-
],
|
|
2862
|
+
], mt.prototype, "type", 2);
|
|
2869
2863
|
Jt([
|
|
2870
2864
|
a({ type: String, reflect: !0 })
|
|
2871
|
-
],
|
|
2872
|
-
|
|
2865
|
+
], mt.prototype, "bgstyle", 2);
|
|
2866
|
+
mt = Jt([
|
|
2873
2867
|
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
|
|
2868
|
+
], mt);
|
|
2869
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Qt = (o, t, e, r) => {
|
|
2870
|
+
for (var i = r > 1 ? void 0 : r ? ei(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2871
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2872
|
+
return r && i && ti(t, e, i), i;
|
|
2879
2873
|
};
|
|
2880
|
-
let
|
|
2874
|
+
let xt = class extends p {
|
|
2881
2875
|
constructor() {
|
|
2882
2876
|
super(...arguments), this.type = "top", this.text = "";
|
|
2883
2877
|
}
|
|
@@ -2890,7 +2884,7 @@ let mt = class extends p {
|
|
|
2890
2884
|
`;
|
|
2891
2885
|
}
|
|
2892
2886
|
};
|
|
2893
|
-
|
|
2887
|
+
xt.styles = v`
|
|
2894
2888
|
.tooltip {
|
|
2895
2889
|
position: relative;
|
|
2896
2890
|
display: inline-block;
|
|
@@ -2985,17 +2979,17 @@ mt.styles = v`
|
|
|
2985
2979
|
`;
|
|
2986
2980
|
Qt([
|
|
2987
2981
|
a({ type: String, reflect: !0 })
|
|
2988
|
-
],
|
|
2982
|
+
], xt.prototype, "type", 2);
|
|
2989
2983
|
Qt([
|
|
2990
2984
|
a({ type: String, reflect: !0 })
|
|
2991
|
-
],
|
|
2992
|
-
|
|
2985
|
+
], xt.prototype, "text", 2);
|
|
2986
|
+
xt = Qt([
|
|
2993
2987
|
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
|
|
2988
|
+
], xt);
|
|
2989
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, Z = (o, t, e, r) => {
|
|
2990
|
+
for (var i = r > 1 ? void 0 : r ? ii(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2991
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2992
|
+
return r && i && oi(t, e, i), i;
|
|
2999
2993
|
};
|
|
3000
2994
|
let D = class extends p {
|
|
3001
2995
|
constructor() {
|
|
@@ -3096,13 +3090,13 @@ let D = class extends p {
|
|
|
3096
3090
|
style=${`width: ${this.width};`}
|
|
3097
3091
|
>
|
|
3098
3092
|
${this.options.map(
|
|
3099
|
-
(e,
|
|
3093
|
+
(e, r) => l`
|
|
3100
3094
|
<li
|
|
3101
|
-
id="option-${
|
|
3095
|
+
id="option-${r}"
|
|
3102
3096
|
role="option"
|
|
3103
3097
|
aria-selected="${e.value === this.value}"
|
|
3104
|
-
tabindex="${
|
|
3105
|
-
class="${
|
|
3098
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3099
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3106
3100
|
@click=${() => this.selectOption(e)}
|
|
3107
3101
|
>
|
|
3108
3102
|
${e.url ? l`
|
|
@@ -3276,20 +3270,20 @@ Z([
|
|
|
3276
3270
|
a({ type: String, reflect: !0 })
|
|
3277
3271
|
], D.prototype, "width", 2);
|
|
3278
3272
|
Z([
|
|
3279
|
-
|
|
3273
|
+
Q()
|
|
3280
3274
|
], D.prototype, "open", 2);
|
|
3281
3275
|
Z([
|
|
3282
|
-
|
|
3276
|
+
Q()
|
|
3283
3277
|
], D.prototype, "activeIndex", 2);
|
|
3284
3278
|
Z([
|
|
3285
|
-
|
|
3279
|
+
Q()
|
|
3286
3280
|
], D.prototype, "menuWidth", 2);
|
|
3287
3281
|
D = Z([
|
|
3288
3282
|
g("o-dropdown")
|
|
3289
3283
|
], D);
|
|
3290
|
-
var
|
|
3291
|
-
for (var i =
|
|
3292
|
-
(s = o[
|
|
3284
|
+
var ri = Object.getOwnPropertyDescriptor, ni = (o, t, e, r) => {
|
|
3285
|
+
for (var i = r > 1 ? void 0 : r ? ri(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3286
|
+
(s = o[n]) && (i = s(i) || i);
|
|
3293
3287
|
return i;
|
|
3294
3288
|
};
|
|
3295
3289
|
let Rt = class extends p {
|
|
@@ -3349,13 +3343,13 @@ Rt.styles = v`
|
|
|
3349
3343
|
}
|
|
3350
3344
|
}
|
|
3351
3345
|
`;
|
|
3352
|
-
Rt =
|
|
3346
|
+
Rt = ni([
|
|
3353
3347
|
g("o-dots")
|
|
3354
3348
|
], Rt);
|
|
3355
|
-
var si = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, F = (o, t, e,
|
|
3356
|
-
for (var i =
|
|
3357
|
-
(s = o[
|
|
3358
|
-
return
|
|
3349
|
+
var si = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, F = (o, t, e, r) => {
|
|
3350
|
+
for (var i = r > 1 ? void 0 : r ? ai(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3351
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3352
|
+
return r && i && si(t, e, i), i;
|
|
3359
3353
|
};
|
|
3360
3354
|
let B = class extends p {
|
|
3361
3355
|
constructor() {
|
|
@@ -3466,14 +3460,14 @@ let B = class extends p {
|
|
|
3466
3460
|
style=${`width: ${this.width};`}
|
|
3467
3461
|
>
|
|
3468
3462
|
${this.options.map(
|
|
3469
|
-
(e,
|
|
3463
|
+
(e, r) => l`
|
|
3470
3464
|
<li
|
|
3471
|
-
id="option-${
|
|
3465
|
+
id="option-${r}"
|
|
3472
3466
|
role="option"
|
|
3473
3467
|
aria-selected="${e.value === this.value}"
|
|
3474
3468
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3475
|
-
tabindex="${
|
|
3476
|
-
class="${
|
|
3469
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3470
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3477
3471
|
@click=${() => this.selectOption(e)}
|
|
3478
3472
|
>
|
|
3479
3473
|
<a href="${A(e.url)}">
|
|
@@ -3689,13 +3683,13 @@ F([
|
|
|
3689
3683
|
a({ type: String, reflect: !0 })
|
|
3690
3684
|
], B.prototype, "width", 2);
|
|
3691
3685
|
F([
|
|
3692
|
-
|
|
3686
|
+
Q()
|
|
3693
3687
|
], B.prototype, "open", 2);
|
|
3694
3688
|
F([
|
|
3695
|
-
|
|
3689
|
+
Q()
|
|
3696
3690
|
], B.prototype, "activeIndex", 2);
|
|
3697
3691
|
F([
|
|
3698
|
-
|
|
3692
|
+
Q()
|
|
3699
3693
|
], B.prototype, "menuWidth", 2);
|
|
3700
3694
|
B = F([
|
|
3701
3695
|
g("o-dropdown-variant")
|
|
@@ -3712,31 +3706,31 @@ const Ce = "important", li = " !" + Ce, ci = Xt(class extends Yt {
|
|
|
3712
3706
|
}
|
|
3713
3707
|
render(o) {
|
|
3714
3708
|
return Object.keys(o).reduce((t, e) => {
|
|
3715
|
-
const
|
|
3716
|
-
return
|
|
3709
|
+
const r = o[e];
|
|
3710
|
+
return r == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
|
|
3717
3711
|
}, "");
|
|
3718
3712
|
}
|
|
3719
3713
|
update(o, [t]) {
|
|
3720
3714
|
const { style: e } = o.element;
|
|
3721
3715
|
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[
|
|
3716
|
+
for (const r of this.ft) t[r] == null && (this.ft.delete(r), r.includes("-") ? e.removeProperty(r) : e[r] = null);
|
|
3717
|
+
for (const r in t) {
|
|
3718
|
+
const i = t[r];
|
|
3725
3719
|
if (i != null) {
|
|
3726
|
-
this.ft.add(
|
|
3727
|
-
const
|
|
3728
|
-
|
|
3720
|
+
this.ft.add(r);
|
|
3721
|
+
const n = typeof i == "string" && i.endsWith(li);
|
|
3722
|
+
r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? Ce : "") : e[r] = i;
|
|
3729
3723
|
}
|
|
3730
3724
|
}
|
|
3731
3725
|
return Y;
|
|
3732
3726
|
}
|
|
3733
3727
|
});
|
|
3734
|
-
var hi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, te = (o, t, e,
|
|
3735
|
-
for (var i =
|
|
3736
|
-
(s = o[
|
|
3737
|
-
return
|
|
3728
|
+
var hi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, te = (o, t, e, r) => {
|
|
3729
|
+
for (var i = r > 1 ? void 0 : r ? di(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3730
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3731
|
+
return r && i && hi(t, e, i), i;
|
|
3738
3732
|
};
|
|
3739
|
-
let
|
|
3733
|
+
let wt = class extends p {
|
|
3740
3734
|
constructor() {
|
|
3741
3735
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3742
3736
|
}
|
|
@@ -3747,17 +3741,17 @@ let xt = class extends p {
|
|
|
3747
3741
|
}, t = this.option && this.option.clickable, e = {
|
|
3748
3742
|
width: `${this.imageSize}px`,
|
|
3749
3743
|
height: `${this.imageSize}px`
|
|
3750
|
-
},
|
|
3751
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${A(
|
|
3744
|
+
}, r = this.option && this.option.title ? o(this.option.title) : "", i = this.option && this.option.description ? o(this.option.description) : "", n = l`
|
|
3745
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${A(r)}" aria-hidden="true" style=${ci(e)} />` : ""}
|
|
3752
3746
|
<div class="m-reassurance-content">
|
|
3753
|
-
<h3 class="a-reassurance-text">${A(
|
|
3747
|
+
<h3 class="a-reassurance-text">${A(r)}</h3>
|
|
3754
3748
|
<p class="a-reassurance-description">${A(i)}</p>
|
|
3755
3749
|
</div>
|
|
3756
3750
|
`;
|
|
3757
|
-
return t ? l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${
|
|
3751
|
+
return t ? l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${n}</a>` : l`<div class="reassurance-item">${n}</div>`;
|
|
3758
3752
|
}
|
|
3759
3753
|
};
|
|
3760
|
-
|
|
3754
|
+
wt.styles = v`
|
|
3761
3755
|
:host {
|
|
3762
3756
|
display: inline-block;
|
|
3763
3757
|
position: relative;
|
|
@@ -3841,17 +3835,17 @@ xt.styles = v`
|
|
|
3841
3835
|
`;
|
|
3842
3836
|
te([
|
|
3843
3837
|
a({ type: Object, reflect: !0 })
|
|
3844
|
-
],
|
|
3838
|
+
], wt.prototype, "option", 2);
|
|
3845
3839
|
te([
|
|
3846
3840
|
a({ type: Number, reflect: !0 })
|
|
3847
|
-
],
|
|
3848
|
-
|
|
3841
|
+
], wt.prototype, "imageSize", 2);
|
|
3842
|
+
wt = te([
|
|
3849
3843
|
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
|
|
3844
|
+
], wt);
|
|
3845
|
+
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, K = (o, t, e, r) => {
|
|
3846
|
+
for (var i = r > 1 ? void 0 : r ? ui(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3847
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3848
|
+
return r && i && pi(t, e, i), i;
|
|
3855
3849
|
};
|
|
3856
3850
|
const vi = Wt(p);
|
|
3857
3851
|
let P = class extends vi {
|
|
@@ -3953,7 +3947,7 @@ P.styles = v`
|
|
|
3953
3947
|
}
|
|
3954
3948
|
|
|
3955
3949
|
&:focus-visible {
|
|
3956
|
-
${
|
|
3950
|
+
${nt};
|
|
3957
3951
|
}
|
|
3958
3952
|
}
|
|
3959
3953
|
|
|
@@ -3994,12 +3988,12 @@ K([
|
|
|
3994
3988
|
P = K([
|
|
3995
3989
|
g("o-chip")
|
|
3996
3990
|
], P);
|
|
3997
|
-
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, ee = (o, t, e,
|
|
3998
|
-
for (var i =
|
|
3999
|
-
(s = o[
|
|
4000
|
-
return
|
|
3991
|
+
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, ee = (o, t, e, r) => {
|
|
3992
|
+
for (var i = r > 1 ? void 0 : r ? gi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3993
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3994
|
+
return r && i && fi(t, e, i), i;
|
|
4001
3995
|
};
|
|
4002
|
-
let
|
|
3996
|
+
let $t = class extends p {
|
|
4003
3997
|
constructor() {
|
|
4004
3998
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
4005
3999
|
}
|
|
@@ -4015,7 +4009,7 @@ let wt = class extends p {
|
|
|
4015
4009
|
`;
|
|
4016
4010
|
}
|
|
4017
4011
|
};
|
|
4018
|
-
|
|
4012
|
+
$t.styles = v`
|
|
4019
4013
|
:host {
|
|
4020
4014
|
display: flex;
|
|
4021
4015
|
flex-direction: row;
|
|
@@ -4025,20 +4019,20 @@ wt.styles = v`
|
|
|
4025
4019
|
`;
|
|
4026
4020
|
ee([
|
|
4027
4021
|
a({ reflect: !0 })
|
|
4028
|
-
],
|
|
4022
|
+
], $t.prototype, "name", 2);
|
|
4029
4023
|
ee([
|
|
4030
4024
|
a({ reflect: !0 })
|
|
4031
|
-
],
|
|
4032
|
-
|
|
4025
|
+
], $t.prototype, "value", 2);
|
|
4026
|
+
$t = ee([
|
|
4033
4027
|
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
|
|
4028
|
+
], $t);
|
|
4029
|
+
var bi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
4030
|
+
for (var i = r > 1 ? void 0 : r ? yi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4031
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4032
|
+
return r && i && bi(t, e, i), i;
|
|
4039
4033
|
};
|
|
4040
4034
|
const mi = Wt(p);
|
|
4041
|
-
let
|
|
4035
|
+
let z = class extends mi {
|
|
4042
4036
|
constructor() {
|
|
4043
4037
|
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
4038
|
}
|
|
@@ -4088,7 +4082,7 @@ let O = class extends mi {
|
|
|
4088
4082
|
`;
|
|
4089
4083
|
}
|
|
4090
4084
|
};
|
|
4091
|
-
|
|
4085
|
+
z.styles = v`
|
|
4092
4086
|
:host {
|
|
4093
4087
|
cursor: pointer;
|
|
4094
4088
|
display: inline-flex;
|
|
@@ -4168,7 +4162,7 @@ O.styles = v`
|
|
|
4168
4162
|
}
|
|
4169
4163
|
|
|
4170
4164
|
.button:focus-visible {
|
|
4171
|
-
${
|
|
4165
|
+
${nt};
|
|
4172
4166
|
}
|
|
4173
4167
|
|
|
4174
4168
|
span.text + span.text::before {
|
|
@@ -4216,40 +4210,40 @@ O.styles = v`
|
|
|
4216
4210
|
`;
|
|
4217
4211
|
j([
|
|
4218
4212
|
a({ reflect: !0 })
|
|
4219
|
-
],
|
|
4213
|
+
], z.prototype, "name", 2);
|
|
4220
4214
|
j([
|
|
4221
4215
|
a({ reflect: !0 })
|
|
4222
|
-
],
|
|
4216
|
+
], z.prototype, "value", 2);
|
|
4223
4217
|
j([
|
|
4224
4218
|
a({ type: String, reflect: !0 })
|
|
4225
|
-
],
|
|
4219
|
+
], z.prototype, "type", 2);
|
|
4226
4220
|
j([
|
|
4227
4221
|
a({ type: String, reflect: !0 })
|
|
4228
|
-
],
|
|
4222
|
+
], z.prototype, "href", 2);
|
|
4229
4223
|
j([
|
|
4230
4224
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4231
|
-
],
|
|
4225
|
+
], z.prototype, "dataHref", 2);
|
|
4232
4226
|
j([
|
|
4233
4227
|
a({ type: String })
|
|
4234
|
-
],
|
|
4228
|
+
], z.prototype, "text", 2);
|
|
4235
4229
|
j([
|
|
4236
4230
|
a({ type: Boolean, reflect: !0 })
|
|
4237
|
-
],
|
|
4231
|
+
], z.prototype, "selected", 2);
|
|
4238
4232
|
j([
|
|
4239
4233
|
a({ type: Boolean, reflect: !0 })
|
|
4240
|
-
],
|
|
4234
|
+
], z.prototype, "disabled", 2);
|
|
4241
4235
|
j([
|
|
4242
4236
|
a({ type: Boolean, reflect: !0 })
|
|
4243
|
-
],
|
|
4244
|
-
|
|
4237
|
+
], z.prototype, "fullwidth", 2);
|
|
4238
|
+
z = j([
|
|
4245
4239
|
g("o-filter-chip")
|
|
4246
|
-
],
|
|
4247
|
-
var xi = Object.defineProperty, R = (o, t, e,
|
|
4248
|
-
for (var i = void 0,
|
|
4249
|
-
(s = o[
|
|
4240
|
+
], z);
|
|
4241
|
+
var xi = Object.defineProperty, R = (o, t, e, r) => {
|
|
4242
|
+
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4243
|
+
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4250
4244
|
return i && xi(t, e, i), i;
|
|
4251
4245
|
};
|
|
4252
|
-
const
|
|
4246
|
+
const re = class re extends p {
|
|
4253
4247
|
constructor() {
|
|
4254
4248
|
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
4249
|
}
|
|
@@ -4299,7 +4293,7 @@ const ne = class ne extends p {
|
|
|
4299
4293
|
`;
|
|
4300
4294
|
}
|
|
4301
4295
|
};
|
|
4302
|
-
|
|
4296
|
+
re.styles = v`
|
|
4303
4297
|
:host {
|
|
4304
4298
|
display: block;
|
|
4305
4299
|
max-width: 100%;
|
|
@@ -4396,7 +4390,7 @@ ne.styles = v`
|
|
|
4396
4390
|
cursor: pointer;
|
|
4397
4391
|
}
|
|
4398
4392
|
`;
|
|
4399
|
-
let C =
|
|
4393
|
+
let C = re;
|
|
4400
4394
|
R([
|
|
4401
4395
|
a({ type: String })
|
|
4402
4396
|
], C.prototype, "type");
|
|
@@ -4428,12 +4422,12 @@ R([
|
|
|
4428
4422
|
a({ type: Function })
|
|
4429
4423
|
], C.prototype, "onClickTile");
|
|
4430
4424
|
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
|
|
4425
|
+
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, oe = (o, t, e, r) => {
|
|
4426
|
+
for (var i = r > 1 ? void 0 : r ? $i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4427
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4428
|
+
return r && i && wi(t, e, i), i;
|
|
4435
4429
|
};
|
|
4436
|
-
let
|
|
4430
|
+
let kt = class extends p {
|
|
4437
4431
|
constructor() {
|
|
4438
4432
|
super(...arguments), this.variant = "cart", this.text = "";
|
|
4439
4433
|
}
|
|
@@ -4445,7 +4439,7 @@ let $t = class extends p {
|
|
|
4445
4439
|
`;
|
|
4446
4440
|
}
|
|
4447
4441
|
};
|
|
4448
|
-
|
|
4442
|
+
kt.styles = v`
|
|
4449
4443
|
:host([variant]) {
|
|
4450
4444
|
--badge-width: 19px;
|
|
4451
4445
|
display: inline-block;
|
|
@@ -4482,17 +4476,17 @@ $t.styles = v`
|
|
|
4482
4476
|
`;
|
|
4483
4477
|
oe([
|
|
4484
4478
|
a({ type: String, reflect: !0 })
|
|
4485
|
-
],
|
|
4479
|
+
], kt.prototype, "variant", 2);
|
|
4486
4480
|
oe([
|
|
4487
4481
|
a({ type: String })
|
|
4488
|
-
],
|
|
4489
|
-
|
|
4482
|
+
], kt.prototype, "text", 2);
|
|
4483
|
+
kt = oe([
|
|
4490
4484
|
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
|
|
4485
|
+
], kt);
|
|
4486
|
+
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, I = (o, t, e, r) => {
|
|
4487
|
+
for (var i = r > 1 ? void 0 : r ? _i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4488
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4489
|
+
return r && i && ki(t, e, i), i;
|
|
4496
4490
|
};
|
|
4497
4491
|
let _ = class extends p {
|
|
4498
4492
|
constructor() {
|
|
@@ -4526,11 +4520,11 @@ let _ = class extends p {
|
|
|
4526
4520
|
}, 600);
|
|
4527
4521
|
}
|
|
4528
4522
|
firstUpdated() {
|
|
4529
|
-
var
|
|
4523
|
+
var r, i;
|
|
4530
4524
|
var o = this;
|
|
4531
|
-
const t = (
|
|
4525
|
+
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
4526
|
if (e != null) {
|
|
4533
|
-
const
|
|
4527
|
+
const n = window.getComputedStyle(e), s = parseInt(n.getPropertyValue("line-height").replace("px", "")), c = parseInt(n.getPropertyValue("height").replace("px", ""));
|
|
4534
4528
|
!isNaN(s) && !isNaN(c) && c > s && (this.multiline = !0);
|
|
4535
4529
|
}
|
|
4536
4530
|
t != null && t.addEventListener("click", function() {
|
|
@@ -4672,10 +4666,10 @@ I([
|
|
|
4672
4666
|
_ = I([
|
|
4673
4667
|
g("o-toast")
|
|
4674
4668
|
], _);
|
|
4675
|
-
var Ci = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, H = (o, t, e,
|
|
4676
|
-
for (var i =
|
|
4677
|
-
(s = o[
|
|
4678
|
-
return
|
|
4669
|
+
var Ci = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
|
|
4670
|
+
for (var i = r > 1 ? void 0 : r ? Ei(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4671
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4672
|
+
return r && i && Ci(t, e, i), i;
|
|
4679
4673
|
};
|
|
4680
4674
|
let Si = 0, E = class extends p {
|
|
4681
4675
|
constructor() {
|
|
@@ -4704,8 +4698,8 @@ let Si = 0, E = class extends p {
|
|
|
4704
4698
|
name=${this.name}
|
|
4705
4699
|
value=${this.value}
|
|
4706
4700
|
@change=${(e) => {
|
|
4707
|
-
const
|
|
4708
|
-
this.checked =
|
|
4701
|
+
const r = e.target;
|
|
4702
|
+
this.checked = r.checked, this.indeterminate = r.indeterminate, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
|
|
4709
4703
|
}}
|
|
4710
4704
|
/>
|
|
4711
4705
|
|
|
@@ -4854,12 +4848,12 @@ H([
|
|
|
4854
4848
|
E = H([
|
|
4855
4849
|
g("o-checkbox")
|
|
4856
4850
|
], E);
|
|
4857
|
-
var Ai = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, U = (o, t, e,
|
|
4858
|
-
for (var i =
|
|
4859
|
-
(s = o[
|
|
4860
|
-
return
|
|
4851
|
+
var Ai = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, U = (o, t, e, r) => {
|
|
4852
|
+
for (var i = r > 1 ? void 0 : r ? Li(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4853
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4854
|
+
return r && i && Ai(t, e, i), i;
|
|
4861
4855
|
};
|
|
4862
|
-
let Bi = 0,
|
|
4856
|
+
let Bi = 0, O = class extends p {
|
|
4863
4857
|
constructor() {
|
|
4864
4858
|
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
4859
|
}
|
|
@@ -4872,8 +4866,8 @@ let Bi = 0, z = class extends p {
|
|
|
4872
4866
|
updated(o) {
|
|
4873
4867
|
if (o.has("checked") && this.checked) {
|
|
4874
4868
|
const t = this.parentElement;
|
|
4875
|
-
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((
|
|
4876
|
-
|
|
4869
|
+
t && Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach((r) => {
|
|
4870
|
+
r !== this && (r.checked = !1);
|
|
4877
4871
|
});
|
|
4878
4872
|
}
|
|
4879
4873
|
this.syncInput();
|
|
@@ -4893,7 +4887,7 @@ let Bi = 0, z = class extends p {
|
|
|
4893
4887
|
`;
|
|
4894
4888
|
}
|
|
4895
4889
|
};
|
|
4896
|
-
|
|
4890
|
+
O.styles = v`
|
|
4897
4891
|
:host {
|
|
4898
4892
|
display: inline-flex;
|
|
4899
4893
|
align-items: center;
|
|
@@ -4985,37 +4979,37 @@ z.styles = v`
|
|
|
4985
4979
|
`;
|
|
4986
4980
|
U([
|
|
4987
4981
|
a({ type: Boolean, reflect: !0 })
|
|
4988
|
-
],
|
|
4982
|
+
], O.prototype, "checked", 2);
|
|
4989
4983
|
U([
|
|
4990
4984
|
a({ type: Boolean, reflect: !0 })
|
|
4991
|
-
],
|
|
4985
|
+
], O.prototype, "disabled", 2);
|
|
4992
4986
|
U([
|
|
4993
4987
|
a({ type: String, reflect: !0 })
|
|
4994
|
-
],
|
|
4988
|
+
], O.prototype, "size", 2);
|
|
4995
4989
|
U([
|
|
4996
4990
|
a({ type: Boolean })
|
|
4997
|
-
],
|
|
4991
|
+
], O.prototype, "showLabel", 2);
|
|
4998
4992
|
U([
|
|
4999
4993
|
a({ type: String })
|
|
5000
|
-
],
|
|
4994
|
+
], O.prototype, "label", 2);
|
|
5001
4995
|
U([
|
|
5002
4996
|
a({ type: String })
|
|
5003
|
-
],
|
|
4997
|
+
], O.prototype, "name", 2);
|
|
5004
4998
|
U([
|
|
5005
4999
|
a({ type: String })
|
|
5006
|
-
],
|
|
5000
|
+
], O.prototype, "value", 2);
|
|
5007
5001
|
U([
|
|
5008
5002
|
a({ type: String, reflect: !0 })
|
|
5009
|
-
],
|
|
5003
|
+
], O.prototype, "inputId", 2);
|
|
5010
5004
|
U([
|
|
5011
5005
|
ke("input")
|
|
5012
|
-
],
|
|
5013
|
-
|
|
5006
|
+
], O.prototype, "inputEl", 2);
|
|
5007
|
+
O = U([
|
|
5014
5008
|
g("o-radio")
|
|
5015
|
-
],
|
|
5016
|
-
var Pi = Object.getOwnPropertyDescriptor,
|
|
5017
|
-
for (var i =
|
|
5018
|
-
(s = o[
|
|
5009
|
+
], O);
|
|
5010
|
+
var Pi = Object.getOwnPropertyDescriptor, zi = (o, t, e, r) => {
|
|
5011
|
+
for (var i = r > 1 ? void 0 : r ? Pi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5012
|
+
(s = o[n]) && (i = s(i) || i);
|
|
5019
5013
|
return i;
|
|
5020
5014
|
};
|
|
5021
5015
|
let Ut = class extends p {
|
|
@@ -5041,15 +5035,15 @@ Ut.styles = v`
|
|
|
5041
5035
|
padding: var(--spacing-4-xs);
|
|
5042
5036
|
}
|
|
5043
5037
|
`;
|
|
5044
|
-
Ut =
|
|
5038
|
+
Ut = zi([
|
|
5045
5039
|
g("o-breadcrumbs")
|
|
5046
5040
|
], Ut);
|
|
5047
|
-
var
|
|
5048
|
-
for (var i =
|
|
5049
|
-
(s = o[
|
|
5050
|
-
return
|
|
5041
|
+
var Oi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, ie = (o, t, e, r) => {
|
|
5042
|
+
for (var i = r > 1 ? void 0 : r ? Ii(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5043
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5044
|
+
return r && i && Oi(t, e, i), i;
|
|
5051
5045
|
};
|
|
5052
|
-
let
|
|
5046
|
+
let _t = class extends p {
|
|
5053
5047
|
constructor() {
|
|
5054
5048
|
super(...arguments), this.href = "", this.active = !1;
|
|
5055
5049
|
}
|
|
@@ -5070,7 +5064,7 @@ let kt = class extends p {
|
|
|
5070
5064
|
`;
|
|
5071
5065
|
}
|
|
5072
5066
|
};
|
|
5073
|
-
|
|
5067
|
+
_t.styles = v`
|
|
5074
5068
|
:host(:not([active]))::after {
|
|
5075
5069
|
content: "/";
|
|
5076
5070
|
margin: 0 0.5rem;
|
|
@@ -5103,7 +5097,7 @@ kt.styles = v`
|
|
|
5103
5097
|
}
|
|
5104
5098
|
|
|
5105
5099
|
a:focus-visible {
|
|
5106
|
-
${
|
|
5100
|
+
${nt};
|
|
5107
5101
|
}
|
|
5108
5102
|
|
|
5109
5103
|
:host(.a--tabfocus) {
|
|
@@ -5112,21 +5106,21 @@ kt.styles = v`
|
|
|
5112
5106
|
`;
|
|
5113
5107
|
ie([
|
|
5114
5108
|
a({ type: String })
|
|
5115
|
-
],
|
|
5109
|
+
], _t.prototype, "href", 2);
|
|
5116
5110
|
ie([
|
|
5117
5111
|
a({ type: Boolean, reflect: !0 })
|
|
5118
|
-
],
|
|
5119
|
-
|
|
5112
|
+
], _t.prototype, "active", 2);
|
|
5113
|
+
_t = ie([
|
|
5120
5114
|
g("o-breadcrumb")
|
|
5121
|
-
],
|
|
5122
|
-
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor,
|
|
5123
|
-
for (var i =
|
|
5124
|
-
(s = o[
|
|
5125
|
-
return
|
|
5115
|
+
], _t);
|
|
5116
|
+
var Di = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, dt = (o, t, e, r) => {
|
|
5117
|
+
for (var i = r > 1 ? void 0 : r ? Hi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5118
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5119
|
+
return r && i && Di(t, e, i), i;
|
|
5126
5120
|
};
|
|
5127
|
-
let
|
|
5121
|
+
let J = class extends p {
|
|
5128
5122
|
constructor() {
|
|
5129
|
-
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "";
|
|
5123
|
+
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1;
|
|
5130
5124
|
}
|
|
5131
5125
|
render() {
|
|
5132
5126
|
return l`<div class="card">
|
|
@@ -5139,15 +5133,18 @@ let nt = class extends p {
|
|
|
5139
5133
|
</svg>
|
|
5140
5134
|
<img src="${this.imageUrl}" alt="${this.imageAlt}" class="card-img base" loading="lazy" />
|
|
5141
5135
|
${this.hoverUrl ? l`<img src="${this.hoverUrl}" alt="${this.hoverAlt || this.imageAlt}" class="card-img hover" loading="lazy" />` : ""}
|
|
5136
|
+
<div class="overlay" part="overlay"></div>
|
|
5142
5137
|
</div>`;
|
|
5143
5138
|
}
|
|
5144
5139
|
};
|
|
5145
|
-
|
|
5140
|
+
J.styles = v`
|
|
5146
5141
|
:host {
|
|
5147
5142
|
--card-width : 175px;
|
|
5148
5143
|
--card-height : 260px;
|
|
5149
5144
|
--card-width-mobile: 100px;
|
|
5150
5145
|
--card-height-mobile: 153px;
|
|
5146
|
+
--overlay-bg: rgba(0,0,0,0.56);
|
|
5147
|
+
--overlay-opacity: 1;
|
|
5151
5148
|
|
|
5152
5149
|
.card {
|
|
5153
5150
|
position: relative;
|
|
@@ -5183,23 +5180,39 @@ nt.styles = v`
|
|
|
5183
5180
|
.card:hover .card-img.hover {
|
|
5184
5181
|
opacity: 1;
|
|
5185
5182
|
}
|
|
5183
|
+
|
|
5184
|
+
.overlay {
|
|
5185
|
+
position: absolute; inset: 0;
|
|
5186
|
+
background: var(--overlay-bg);
|
|
5187
|
+
opacity: 0;
|
|
5188
|
+
transition: opacity .2s ease;
|
|
5189
|
+
pointer-events: none;
|
|
5190
|
+
z-index: 3;
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5193
|
+
|
|
5194
|
+
:host([dimmed]) .overlay {
|
|
5195
|
+
opacity: var(--overlay-opacity, 1);
|
|
5186
5196
|
}
|
|
5187
5197
|
`;
|
|
5188
|
-
|
|
5198
|
+
dt([
|
|
5189
5199
|
a({ type: String })
|
|
5190
|
-
],
|
|
5191
|
-
|
|
5200
|
+
], J.prototype, "imageUrl", 2);
|
|
5201
|
+
dt([
|
|
5192
5202
|
a({ type: String })
|
|
5193
|
-
],
|
|
5194
|
-
|
|
5203
|
+
], J.prototype, "imageAlt", 2);
|
|
5204
|
+
dt([
|
|
5195
5205
|
a({ type: String })
|
|
5196
|
-
],
|
|
5197
|
-
|
|
5206
|
+
], J.prototype, "hoverUrl", 2);
|
|
5207
|
+
dt([
|
|
5198
5208
|
a({ type: String })
|
|
5199
|
-
],
|
|
5200
|
-
|
|
5209
|
+
], J.prototype, "hoverAlt", 2);
|
|
5210
|
+
dt([
|
|
5211
|
+
a({ type: Boolean, reflect: !0 })
|
|
5212
|
+
], J.prototype, "dimmed", 2);
|
|
5213
|
+
J = dt([
|
|
5201
5214
|
g("o-arch-image")
|
|
5202
|
-
],
|
|
5215
|
+
], J);
|
|
5203
5216
|
const Mi = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
5204
5217
|
<svg
|
|
5205
5218
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
@@ -5281,18 +5294,18 @@ const Mi = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
5281
5294
|
id="path52"
|
|
5282
5295
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
5283
5296
|
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>`;
|
|
5284
|
-
var Ti = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, S = (o, t, e,
|
|
5285
|
-
for (var i =
|
|
5286
|
-
(s = o[
|
|
5287
|
-
return
|
|
5297
|
+
var Ti = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, S = (o, t, e, r) => {
|
|
5298
|
+
for (var i = r > 1 ? void 0 : r ? Fi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5299
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5300
|
+
return r && i && Ti(t, e, i), i;
|
|
5288
5301
|
};
|
|
5289
|
-
const
|
|
5302
|
+
const ne = class ne extends p {
|
|
5290
5303
|
constructor() {
|
|
5291
5304
|
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) => {
|
|
5292
|
-
var
|
|
5305
|
+
var r;
|
|
5293
5306
|
if (!this.open || !this.closeOnBackdrop) return;
|
|
5294
5307
|
const e = t.composedPath()[0];
|
|
5295
|
-
(
|
|
5308
|
+
(r = e == null ? void 0 : e.classList) != null && r.contains("backdrop") && this._requestClose("backdrop");
|
|
5296
5309
|
};
|
|
5297
5310
|
}
|
|
5298
5311
|
get classPopin() {
|
|
@@ -5396,7 +5409,7 @@ const re = class re extends p {
|
|
|
5396
5409
|
`;
|
|
5397
5410
|
}
|
|
5398
5411
|
};
|
|
5399
|
-
|
|
5412
|
+
ne.styles = v`
|
|
5400
5413
|
:host {
|
|
5401
5414
|
position: fixed;
|
|
5402
5415
|
inset: 0;
|
|
@@ -5506,7 +5519,7 @@ re.styles = v`
|
|
|
5506
5519
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
5507
5520
|
}
|
|
5508
5521
|
`;
|
|
5509
|
-
let $ =
|
|
5522
|
+
let $ = ne;
|
|
5510
5523
|
S([
|
|
5511
5524
|
a({ type: Boolean, reflect: !0 })
|
|
5512
5525
|
], $.prototype, "ispagedesigner", 2);
|
|
@@ -5544,6 +5557,6 @@ S([
|
|
|
5544
5557
|
a({ type: Boolean, reflect: !0 })
|
|
5545
5558
|
], $.prototype, "contrast", 2);
|
|
5546
5559
|
S([
|
|
5547
|
-
|
|
5560
|
+
Q()
|
|
5548
5561
|
], $.prototype, "_labelId", 2);
|
|
5549
5562
|
customElements.define("o-popin", $);
|