@florid-kit/components 0.4.29 → 0.4.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +55 -48
- package/index.mjs +249 -241
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
6
|
const X = globalThis, dt = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pt = Symbol(), ft = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
let
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
7
|
+
let Et = class {
|
|
8
|
+
constructor(t, e, i) {
|
|
9
|
+
if (this._$cssResult$ = !0, i !== pt) 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 (dt && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const i = e !== void 0 && e.length === 1;
|
|
17
|
+
i && (t = ft.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ft.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,30 +22,30 @@ let Ct = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const e = n.length === 1 ? n[0] : t.reduce((
|
|
27
|
-
if (
|
|
28
|
-
if (typeof
|
|
29
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
25
|
+
const zt = (n) => new Et(typeof n == "string" ? n : n + "", void 0, pt), $ = (n, ...t) => {
|
|
26
|
+
const e = n.length === 1 ? n[0] : t.reduce((i, o, r) => i + ((s) => {
|
|
27
|
+
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
|
+
if (typeof s == "number") return s;
|
|
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
30
|
})(o) + n[r + 1], n[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
31
|
+
return new Et(e, n, pt);
|
|
32
|
+
}, Ot = (n, t) => {
|
|
33
33
|
if (dt) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const
|
|
36
|
-
o !== void 0 &&
|
|
35
|
+
const i = document.createElement("style"), o = X.litNonce;
|
|
36
|
+
o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, n.appendChild(i);
|
|
37
37
|
}
|
|
38
38
|
}, bt = dt ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
41
|
-
return
|
|
40
|
+
for (const i of t.cssRules) e += i.cssText;
|
|
41
|
+
return zt(e);
|
|
42
42
|
})(n) : n;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Ht, defineProperty: Mt, getOwnPropertyDescriptor: Tt, getOwnPropertyNames: Dt, getOwnPropertySymbols: Ut, getPrototypeOf: Nt } = Object,
|
|
48
|
+
const { is: Ht, defineProperty: Mt, getOwnPropertyDescriptor: Tt, getOwnPropertyNames: Dt, getOwnPropertySymbols: Ut, getPrototypeOf: Nt } = Object, E = globalThis, yt = E.trustedTypes, jt = yt ? yt.emptyScript : "", it = E.reactiveElementPolyfillSupport, V = (n, t) => n, J = { toAttribute(n, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
n = n ? jt : null;
|
|
@@ -74,7 +74,7 @@ const { is: Ht, defineProperty: Mt, getOwnPropertyDescriptor: Tt, getOwnProperty
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
} }, ut = (n, t) => !Ht(n, t), mt = { attribute: !0, type: String, converter: J, reflect: !1, useDefault: !1, hasChanged: ut };
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let T = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -84,43 +84,43 @@ let T = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = mt) {
|
|
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 i = Symbol(), o = this.getPropertyDescriptor(t, i, e);
|
|
88
88
|
o !== void 0 && Mt(this.prototype, t, o);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
91
|
+
static getPropertyDescriptor(t, e, i) {
|
|
92
92
|
const { get: o, set: r } = Tt(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
|
-
}, set(
|
|
95
|
-
this[e] =
|
|
94
|
+
}, set(s) {
|
|
95
|
+
this[e] = s;
|
|
96
96
|
} };
|
|
97
|
-
return { get: o, set(
|
|
97
|
+
return { get: o, set(s) {
|
|
98
98
|
const c = o == null ? void 0 : o.call(this);
|
|
99
|
-
r == null || r.call(this,
|
|
99
|
+
r == null || r.call(this, s), this.requestUpdate(t, c, i);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
103
|
return this.elementProperties.get(t) ?? mt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
106
|
+
if (this.hasOwnProperty(V("elementProperties"))) return;
|
|
107
107
|
const t = Nt(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 o of
|
|
111
|
+
if (this.hasOwnProperty(V("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V("properties"))) {
|
|
113
|
+
const e = this.properties, i = [...Dt(e), ...Ut(e)];
|
|
114
|
+
for (const o of i) this.createProperty(o, e[o]);
|
|
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 [i, o] of e) this.elementProperties.set(i, o);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const o = this._$Eu(e,
|
|
122
|
+
for (const [e, i] of this.elementProperties) {
|
|
123
|
+
const o = this._$Eu(e, i);
|
|
124
124
|
o !== void 0 && this._$Eh.set(o, e);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -128,14 +128,14 @@ let T = class extends HTMLElement {
|
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const o of
|
|
131
|
+
const i = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const o of i) e.unshift(bt(o));
|
|
133
133
|
} else t !== void 0 && e.push(bt(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const i = e.attribute;
|
|
138
|
+
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,18 +154,18 @@ let T = 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 i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Ot(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var i;
|
|
168
|
+
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let T = 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 i;
|
|
177
|
+
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, i) {
|
|
181
|
+
this._$AK(t, i);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
184
|
var r;
|
|
185
|
-
const
|
|
186
|
-
if (o !== void 0 &&
|
|
187
|
-
const
|
|
188
|
-
this._$Em = t,
|
|
185
|
+
const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
|
|
186
|
+
if (o !== void 0 && i.reflect === !0) {
|
|
187
|
+
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : J).toAttribute(e, i.type);
|
|
188
|
+
this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var r,
|
|
193
|
-
const
|
|
192
|
+
var r, s;
|
|
193
|
+
const i = this.constructor, o = i._$Eh.get(t);
|
|
194
194
|
if (o !== void 0 && this._$Em !== o) {
|
|
195
|
-
const c =
|
|
196
|
-
this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((
|
|
195
|
+
const c = i.getPropertyOptions(o), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : J;
|
|
196
|
+
this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(o)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
199
|
+
requestUpdate(t, e, i) {
|
|
200
200
|
var o;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const r = this.constructor,
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const r = this.constructor, s = this[t];
|
|
203
|
+
if (i ?? (i = r.getPropertyOptions(t)), !((i.hasChanged ?? ut)(s, e) || i.useDefault && i.reflect && s === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(r._$Eu(t, i)))) return;
|
|
204
|
+
this.C(t, e, i);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: i, reflect: o, wrapped: r }, s) {
|
|
209
|
+
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), r !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), o === !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,23 +222,23 @@ let T = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var i;
|
|
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 [r,
|
|
229
|
+
for (const [r, s] of this._$Ep) this[r] = s;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
232
|
const o = this.constructor.elementProperties;
|
|
233
|
-
if (o.size > 0) for (const [r,
|
|
234
|
-
const { wrapped: c } =
|
|
235
|
-
c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0,
|
|
233
|
+
if (o.size > 0) for (const [r, s] of o) {
|
|
234
|
+
const { wrapped: c } = s, l = this[r];
|
|
235
|
+
c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, s, l);
|
|
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), (
|
|
241
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((o) => {
|
|
242
242
|
var r;
|
|
243
243
|
return (r = o.hostUpdate) == null ? void 0 : r.call(o);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
@@ -251,9 +251,9 @@ let T = 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((i) => {
|
|
255
255
|
var o;
|
|
256
|
-
return (o =
|
|
256
|
+
return (o = i.hostUpdated) == null ? void 0 : o.call(i);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -276,74 +276,74 @@ let T = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[
|
|
279
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[V("elementProperties")] = /* @__PURE__ */ new Map(), T[V("finalized")] = /* @__PURE__ */ new Map(), it == null || it({ ReactiveElement: T }), (E.reactiveElementVersions ?? (E.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]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, xt = />/g, P = RegExp(`>|${
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), _t = /'/g,
|
|
285
|
+
const R = globalThis, Y = R.trustedTypes, wt = Y ? Y.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Lt = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, kt = "?" + S, Vt = `<${kt}>`, z = document, F = () => z.createComment(""), Z = (n) => n === null || typeof n != "object" && typeof n != "function", gt = Array.isArray, Rt = (n) => gt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", st = `[
|
|
286
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, xt = />/g, P = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), _t = /'/g, Ct = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Ft = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), h = Ft(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), I = z.createTreeWalker(z, 129);
|
|
288
288
|
function It(n, t) {
|
|
289
289
|
if (!gt(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return wt !== void 0 ? wt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const Zt = (n, t) => {
|
|
293
|
-
const e = n.length - 1,
|
|
294
|
-
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "",
|
|
293
|
+
const e = n.length - 1, i = [];
|
|
294
|
+
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = j;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const l = n[c];
|
|
297
297
|
let g, f, p = -1, x = 0;
|
|
298
|
-
for (; x < l.length && (
|
|
299
|
-
const
|
|
300
|
-
r +=
|
|
298
|
+
for (; x < l.length && (s.lastIndex = x, f = s.exec(l), f !== null); ) x = s.lastIndex, s === j ? f[1] === "!--" ? s = $t : f[1] !== void 0 ? s = xt : f[2] !== void 0 ? (Pt.test(f[2]) && (o = RegExp("</" + f[2], "g")), s = P) : f[3] !== void 0 && (s = P) : s === P ? f[0] === ">" ? (s = o ?? j, p = -1) : f[1] === void 0 ? p = -2 : (p = s.lastIndex - f[2].length, g = f[1], s = f[3] === void 0 ? P : f[3] === '"' ? Ct : _t) : s === Ct || s === _t ? s = P : s === $t || s === xt ? s = j : (s = P, o = void 0);
|
|
299
|
+
const A = s === P && n[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === j ? l + Vt : p >= 0 ? (i.push(g), l.slice(0, p) + Lt + l.slice(p) + S + A) : l + S + (p === -2 ? c : A);
|
|
301
301
|
}
|
|
302
|
-
return [It(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")),
|
|
302
|
+
return [It(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
303
303
|
};
|
|
304
304
|
class q {
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
|
306
306
|
let o;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let r = 0,
|
|
308
|
+
let r = 0, s = 0;
|
|
309
309
|
const c = t.length - 1, l = this.parts, [g, f] = Zt(t, e);
|
|
310
|
-
if (this.el = q.createElement(g,
|
|
310
|
+
if (this.el = q.createElement(g, i), I.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
314
314
|
for (; (o = I.nextNode()) !== null && l.length < c; ) {
|
|
315
315
|
if (o.nodeType === 1) {
|
|
316
316
|
if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(Lt)) {
|
|
317
|
-
const x = f[
|
|
318
|
-
l.push({ type: 1, index: r, name: K[2], strings:
|
|
319
|
-
} else p.startsWith(
|
|
317
|
+
const x = f[s++], A = o.getAttribute(p).split(S), K = /([.?@])?(.*)/.exec(x);
|
|
318
|
+
l.push({ type: 1, index: r, name: K[2], strings: A, ctor: K[1] === "." ? Wt : K[1] === "?" ? Gt : K[1] === "@" ? Kt : tt }), o.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(S) && (l.push({ type: 6, index: r }), o.removeAttribute(p));
|
|
320
320
|
if (Pt.test(o.tagName)) {
|
|
321
|
-
const p = o.textContent.split(
|
|
321
|
+
const p = o.textContent.split(S), x = p.length - 1;
|
|
322
322
|
if (x > 0) {
|
|
323
323
|
o.textContent = Y ? Y.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let A = 0; A < x; A++) o.append(p[A], F()), I.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
325
|
o.append(p[x], F());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (o.nodeType === 8) if (o.data === kt) l.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p = o.data.indexOf(
|
|
331
|
+
for (; (p = o.data.indexOf(S, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += S.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const i = z.createElement("template");
|
|
338
|
+
return i.innerHTML = t, i;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function D(n, t, e = n,
|
|
342
|
-
var
|
|
343
|
-
if (t ===
|
|
344
|
-
let o =
|
|
341
|
+
function D(n, t, e = n, i) {
|
|
342
|
+
var s, c;
|
|
343
|
+
if (t === O) return t;
|
|
344
|
+
let o = i !== void 0 ? (s = e._$Co) == null ? void 0 : s[i] : e._$Cl;
|
|
345
345
|
const r = Z(t) ? void 0 : t._$litDirective$;
|
|
346
|
-
return (o == null ? void 0 : o.constructor) !== r && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), r === void 0 ? o = void 0 : (o = new r(n), o._$AT(n, e,
|
|
346
|
+
return (o == null ? void 0 : o.constructor) !== r && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), r === void 0 ? o = void 0 : (o = new r(n), o._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = o : e._$Cl = o), o !== void 0 && (t = D(n, o._$AS(n, t.values), o, i)), t;
|
|
347
347
|
}
|
|
348
348
|
class qt {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,21 +356,21 @@ class qt {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
359
|
+
const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? z).importNode(e, !0);
|
|
360
360
|
I.currentNode = o;
|
|
361
|
-
let r = I.nextNode(),
|
|
361
|
+
let r = I.nextNode(), s = 0, c = 0, l = i[0];
|
|
362
362
|
for (; l !== void 0; ) {
|
|
363
|
-
if (
|
|
363
|
+
if (s === l.index) {
|
|
364
364
|
let g;
|
|
365
|
-
l.type === 2 ? g = new G(r, r.nextSibling, this, t) : l.type === 1 ? g = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (g = new Xt(r, this, t)), this._$AV.push(g), l =
|
|
365
|
+
l.type === 2 ? g = new G(r, r.nextSibling, this, t) : l.type === 1 ? g = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (g = new Xt(r, this, t)), this._$AV.push(g), l = i[++c];
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
s !== (l == null ? void 0 : l.index) && (r = I.nextNode(), s++);
|
|
368
368
|
}
|
|
369
|
-
return I.currentNode =
|
|
369
|
+
return I.currentNode = z, o;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
class G {
|
|
@@ -378,8 +378,8 @@ class G {
|
|
|
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, i, o) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -393,7 +393,7 @@ class G {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = D(this, t, e), Z(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !==
|
|
396
|
+
t = D(this, t, e), Z(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Rt(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,31 +402,31 @@ class G {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !== d && Z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
405
|
+
this._$AH !== d && Z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(z.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
408
|
var r;
|
|
409
|
-
const { values: e, _$litType$:
|
|
409
|
+
const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = q.createElement(It(i.h, i.h[0]), this.options)), i);
|
|
410
410
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
const s = new qt(o, this), c = s.u(this.options);
|
|
413
|
+
s.p(e), this.T(c), this._$AH = s;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
|
-
let e =
|
|
418
|
-
return e === void 0 &&
|
|
417
|
+
let e = At.get(t.strings);
|
|
418
|
+
return e === void 0 && At.set(t.strings, e = new q(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
421
|
gt(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const r of t) o === e.length ? e.push(
|
|
425
|
-
o < e.length && (this._$AR(
|
|
423
|
+
let i, o = 0;
|
|
424
|
+
for (const r of t) o === e.length ? e.push(i = new G(this.O(F()), this.O(F()), this, this.options)) : i = e[o], i._$AI(r), o++;
|
|
425
|
+
o < e.length && (this._$AR(i && i._$AB.nextSibling, o), e.length = o);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
428
|
+
var i;
|
|
429
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
430
|
const o = t.nextSibling;
|
|
431
431
|
t.remove(), t = o;
|
|
432
432
|
}
|
|
@@ -443,19 +443,19 @@ class tt {
|
|
|
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 = o, this.options = r,
|
|
446
|
+
constructor(t, e, i, o, r) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
449
|
+
_$AI(t, e = this, i, o) {
|
|
450
450
|
const r = this.strings;
|
|
451
|
-
let
|
|
452
|
-
if (r === void 0) t = D(this, t, e, 0),
|
|
451
|
+
let s = !1;
|
|
452
|
+
if (r === void 0) t = D(this, t, e, 0), s = !Z(t) || t !== this._$AH && t !== O, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
455
|
let l, g;
|
|
456
|
-
for (t = r[0], l = 0; l < r.length - 1; l++) g = D(this, c[
|
|
456
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) g = D(this, c[i + l], e, l), g === O && (g = this._$AH[l]), s || (s = !Z(g) || g !== this._$AH[l]), g === d ? t = d : t !== d && (t += (g ?? "") + r[l + 1]), this._$AH[l] = g;
|
|
457
457
|
}
|
|
458
|
-
|
|
458
|
+
s && !o && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -478,13 +478,13 @@ class Gt extends tt {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class Kt extends tt {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, i, o, r) {
|
|
482
|
+
super(t, e, i, o, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t = D(this, t, e, 0) ?? d) ===
|
|
486
|
-
const
|
|
487
|
-
o && this.element.removeEventListener(this.name, this,
|
|
485
|
+
if ((t = D(this, t, e, 0) ?? d) === O) return;
|
|
486
|
+
const i = this._$AH, o = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== d && (i === d || o);
|
|
487
|
+
o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -492,8 +492,8 @@ class Kt extends tt {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class Xt {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, i) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -502,14 +502,14 @@ class Xt {
|
|
|
502
502
|
D(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const rt =
|
|
506
|
-
rt == null || rt(q, G), (
|
|
505
|
+
const rt = R.litHtmlPolyfillSupport;
|
|
506
|
+
rt == null || rt(q, G), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Jt = (n, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let o =
|
|
508
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let o = i._$litPart$;
|
|
510
510
|
if (o === void 0) {
|
|
511
511
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
|
|
512
|
+
i._$litPart$ = o = new G(t.insertBefore(F(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return o._$AI(n), o;
|
|
515
515
|
};
|
|
@@ -541,11 +541,11 @@ let m = class extends T {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return O;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
|
547
|
+
var St;
|
|
548
|
+
m._$litElement$ = !0, m.finalized = !0, (St = B.litElementHydrateSupport) == null || St.call(B, { LitElement: m });
|
|
549
549
|
const at = B.litElementPolyfillSupport;
|
|
550
550
|
at == null || at({ LitElement: m });
|
|
551
551
|
(B.litElementVersions ?? (B.litElementVersions = [])).push("4.2.0");
|
|
@@ -565,30 +565,30 @@ const L = (n) => (t, e) => {
|
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
567
|
const Yt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: ut }, Qt = (n = Yt, t, e) => {
|
|
568
|
-
const { kind:
|
|
568
|
+
const { kind: i, metadata: o } = e;
|
|
569
569
|
let r = globalThis.litPropertyMetadata.get(o);
|
|
570
|
-
if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()),
|
|
571
|
-
const { name:
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), i === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(e.name, n), i === "accessor") {
|
|
571
|
+
const { name: s } = e;
|
|
572
572
|
return { set(c) {
|
|
573
573
|
const l = t.get.call(this);
|
|
574
|
-
t.set.call(this, c), this.requestUpdate(
|
|
574
|
+
t.set.call(this, c), this.requestUpdate(s, l, n);
|
|
575
575
|
}, init(c) {
|
|
576
|
-
return c !== void 0 && this.C(
|
|
576
|
+
return c !== void 0 && this.C(s, void 0, n, c), c;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
580
|
-
const { name:
|
|
579
|
+
if (i === "setter") {
|
|
580
|
+
const { name: s } = e;
|
|
581
581
|
return function(c) {
|
|
582
|
-
const l = this[
|
|
583
|
-
t.call(this, c), this.requestUpdate(
|
|
582
|
+
const l = this[s];
|
|
583
|
+
t.call(this, c), this.requestUpdate(s, l, n);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + i);
|
|
587
587
|
};
|
|
588
588
|
function a(n) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Qt(n, t, e) : ((
|
|
590
|
-
const
|
|
591
|
-
return o.constructor.createProperty(r,
|
|
589
|
+
return (t, e) => typeof e == "object" ? Qt(n, t, e) : ((i, o, r) => {
|
|
590
|
+
const s = o.hasOwnProperty(r);
|
|
591
|
+
return o.constructor.createProperty(r, i), s ? Object.getOwnPropertyDescriptor(o, r) : void 0;
|
|
592
592
|
})(n, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -632,16 +632,16 @@ function ne(n) {
|
|
|
632
632
|
function oe(n) {
|
|
633
633
|
n.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
|
-
e.addEventListener("click", async (
|
|
636
|
-
const { type: o, [vt]: r } = e, { form:
|
|
637
|
-
if (!(!
|
|
635
|
+
e.addEventListener("click", async (i) => {
|
|
636
|
+
const { type: o, [vt]: r } = e, { form: s } = r;
|
|
637
|
+
if (!(!s || o === "button") && (await new Promise((c) => {
|
|
638
638
|
setTimeout(c);
|
|
639
|
-
}), !
|
|
639
|
+
}), !i.defaultPrevented)) {
|
|
640
640
|
if (o === "reset") {
|
|
641
|
-
|
|
641
|
+
s.reset();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
s.addEventListener(
|
|
645
645
|
"submit",
|
|
646
646
|
(c) => {
|
|
647
647
|
Object.defineProperty(c, "submitter", {
|
|
@@ -651,15 +651,15 @@ function oe(n) {
|
|
|
651
651
|
});
|
|
652
652
|
},
|
|
653
653
|
{ capture: !0, once: !0 }
|
|
654
|
-
), r.setFormValue(e.value),
|
|
654
|
+
), r.setFormValue(e.value), s.requestSubmit();
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
const
|
|
659
|
+
const ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
660
660
|
<path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
|
|
661
661
|
</svg>
|
|
662
|
-
`,
|
|
662
|
+
`, se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
663
663
|
<path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
|
|
664
664
|
</svg>
|
|
665
665
|
`, re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -715,9 +715,12 @@ const se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
715
715
|
`, ye = `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
716
716
|
<path d="M6.33317 8.00033C6.33317 3.95024 7.52708 0.666992 8.99984 0.666992C10.4726 0.666992 11.6665 3.95024 11.6665 8.00033M5.33317 15.3337H12.6665L16.3332 6.20033C14.9582 5.76699 12.2998 5.33366 8.99984 5.33366C5.69984 5.33366 3.49984 5.76699 1.6665 6.20033L5.33317 15.3337Z" stroke="#3F2B2E"/>
|
|
717
717
|
</svg>
|
|
718
|
+
`, me = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
719
|
+
<path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
|
|
720
|
+
</svg>
|
|
718
721
|
`, et = {
|
|
719
|
-
wishlist:
|
|
720
|
-
playerv:
|
|
722
|
+
wishlist: ie,
|
|
723
|
+
playerv: se,
|
|
721
724
|
chevronRight: re,
|
|
722
725
|
chevronLeft: ae,
|
|
723
726
|
icoPlus: ve,
|
|
@@ -730,22 +733,23 @@ const se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
730
733
|
cross: ue,
|
|
731
734
|
search: ge,
|
|
732
735
|
arrowLeft: be,
|
|
733
|
-
cart: ye
|
|
736
|
+
cart: ye,
|
|
737
|
+
notifyme: me
|
|
734
738
|
};
|
|
735
739
|
/**
|
|
736
740
|
* @license
|
|
737
741
|
* Copyright 2017 Google LLC
|
|
738
742
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
739
743
|
*/
|
|
740
|
-
const
|
|
741
|
-
class
|
|
744
|
+
const we = { CHILD: 2 }, $e = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
745
|
+
class xe {
|
|
742
746
|
constructor(t) {
|
|
743
747
|
}
|
|
744
748
|
get _$AU() {
|
|
745
749
|
return this._$AM._$AU;
|
|
746
750
|
}
|
|
747
|
-
_$AT(t, e,
|
|
748
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
751
|
+
_$AT(t, e, i) {
|
|
752
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
|
749
753
|
}
|
|
750
754
|
_$AS(t, e) {
|
|
751
755
|
return this.update(t, e);
|
|
@@ -759,13 +763,13 @@ class $e {
|
|
|
759
763
|
* Copyright 2017 Google LLC
|
|
760
764
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
761
765
|
*/
|
|
762
|
-
class ct extends
|
|
766
|
+
class ct extends xe {
|
|
763
767
|
constructor(t) {
|
|
764
|
-
if (super(t), this.it = d, t.type !==
|
|
768
|
+
if (super(t), this.it = d, t.type !== we.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
765
769
|
}
|
|
766
770
|
render(t) {
|
|
767
771
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
768
|
-
if (t ===
|
|
772
|
+
if (t === O) return t;
|
|
769
773
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
770
774
|
if (t === this.it) return this._t;
|
|
771
775
|
this.it = t;
|
|
@@ -782,11 +786,11 @@ ct.directiveName = "unsafeHTML", ct.resultType = 1;
|
|
|
782
786
|
class ht extends ct {
|
|
783
787
|
}
|
|
784
788
|
ht.directiveName = "unsafeSVG", ht.resultType = 2;
|
|
785
|
-
const W =
|
|
786
|
-
var
|
|
787
|
-
for (var o =
|
|
788
|
-
(
|
|
789
|
-
return
|
|
789
|
+
const W = $e(ht);
|
|
790
|
+
var _e = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, y = (n, t, e, i) => {
|
|
791
|
+
for (var o = i > 1 ? void 0 : i ? Ce(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
792
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
793
|
+
return i && o && _e(t, e, o), o;
|
|
790
794
|
};
|
|
791
795
|
const Ae = ne(m);
|
|
792
796
|
let u = class extends Ae {
|
|
@@ -1057,10 +1061,10 @@ y([
|
|
|
1057
1061
|
u = y([
|
|
1058
1062
|
L("o-button")
|
|
1059
1063
|
], u);
|
|
1060
|
-
var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, nt = (n, t, e,
|
|
1061
|
-
for (var o =
|
|
1062
|
-
(
|
|
1063
|
-
return
|
|
1064
|
+
var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, nt = (n, t, e, i) => {
|
|
1065
|
+
for (var o = i > 1 ? void 0 : i ? Ee(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1066
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1067
|
+
return i && o && Se(t, e, o), o;
|
|
1064
1068
|
};
|
|
1065
1069
|
let U = class extends m {
|
|
1066
1070
|
constructor() {
|
|
@@ -1175,10 +1179,10 @@ nt([
|
|
|
1175
1179
|
U = nt([
|
|
1176
1180
|
L("o-wishlist-button")
|
|
1177
1181
|
], U);
|
|
1178
|
-
var
|
|
1179
|
-
for (var o =
|
|
1180
|
-
(
|
|
1181
|
-
return
|
|
1182
|
+
var Le = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, k = (n, t, e, i) => {
|
|
1183
|
+
for (var o = i > 1 ? void 0 : i ? ke(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1184
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1185
|
+
return i && o && Le(t, e, o), o;
|
|
1182
1186
|
};
|
|
1183
1187
|
let w = class extends m {
|
|
1184
1188
|
constructor() {
|
|
@@ -1434,10 +1438,10 @@ k([
|
|
|
1434
1438
|
w = k([
|
|
1435
1439
|
L("o-icon-button")
|
|
1436
1440
|
], w);
|
|
1437
|
-
var
|
|
1438
|
-
for (var o =
|
|
1439
|
-
(
|
|
1440
|
-
return
|
|
1441
|
+
var Pe = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, H = (n, t, e, i) => {
|
|
1442
|
+
for (var o = i > 1 ? void 0 : i ? Ie(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1443
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1444
|
+
return i && o && Pe(t, e, o), o;
|
|
1441
1445
|
};
|
|
1442
1446
|
let _ = class extends m {
|
|
1443
1447
|
constructor() {
|
|
@@ -1578,10 +1582,10 @@ H([
|
|
|
1578
1582
|
_ = H([
|
|
1579
1583
|
L("o-link")
|
|
1580
1584
|
], _);
|
|
1581
|
-
var
|
|
1582
|
-
for (var o =
|
|
1583
|
-
(
|
|
1584
|
-
return
|
|
1585
|
+
var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, ot = (n, t, e, i) => {
|
|
1586
|
+
for (var o = i > 1 ? void 0 : i ? ze(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1587
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1588
|
+
return i && o && Be(t, e, o), o;
|
|
1585
1589
|
};
|
|
1586
1590
|
let N = class extends m {
|
|
1587
1591
|
constructor() {
|
|
@@ -1591,8 +1595,8 @@ let N = class extends m {
|
|
|
1591
1595
|
const n = [];
|
|
1592
1596
|
for (let t = 0; t < 5; t++) {
|
|
1593
1597
|
const e = this.rating - t;
|
|
1594
|
-
let
|
|
1595
|
-
e >= 1 ?
|
|
1598
|
+
let i;
|
|
1599
|
+
e >= 1 ? i = 100 : e <= 0 ? i = 0 : i = Math.round(e * 100 / 25) * 25, n.push(`star-${i}`);
|
|
1596
1600
|
}
|
|
1597
1601
|
return n;
|
|
1598
1602
|
}
|
|
@@ -1656,10 +1660,10 @@ ot([
|
|
|
1656
1660
|
N = ot([
|
|
1657
1661
|
L("o-rating")
|
|
1658
1662
|
], N);
|
|
1659
|
-
var Oe = Object.defineProperty,
|
|
1660
|
-
for (var o =
|
|
1661
|
-
(
|
|
1662
|
-
return
|
|
1663
|
+
var Oe = Object.defineProperty, He = Object.getOwnPropertyDescriptor, b = (n, t, e, i) => {
|
|
1664
|
+
for (var o = i > 1 ? void 0 : i ? He(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1665
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1666
|
+
return i && o && Oe(t, e, o), o;
|
|
1663
1667
|
};
|
|
1664
1668
|
let v = class extends m {
|
|
1665
1669
|
constructor() {
|
|
@@ -1678,8 +1682,8 @@ let v = class extends m {
|
|
|
1678
1682
|
trapFocus(n) {
|
|
1679
1683
|
const t = this.getFocusableElements();
|
|
1680
1684
|
if (t.length === 0) return;
|
|
1681
|
-
const e = t[0],
|
|
1682
|
-
n.shiftKey && document.activeElement === e ? (n.preventDefault(),
|
|
1685
|
+
const e = t[0], i = t[t.length - 1];
|
|
1686
|
+
n.shiftKey && document.activeElement === e ? (n.preventDefault(), i.focus()) : !n.shiftKey && document.activeElement === i && (n.preventDefault(), e.focus());
|
|
1683
1687
|
}
|
|
1684
1688
|
getFocusableElements() {
|
|
1685
1689
|
const n = this.renderRoot.querySelector(".panel");
|
|
@@ -1773,6 +1777,8 @@ v.styles = $`
|
|
|
1773
1777
|
z-index: var(--z-overlay);
|
|
1774
1778
|
--side-panel-width: 100%;
|
|
1775
1779
|
--side-panel-max-width: 416px;
|
|
1780
|
+
--font-size: var(--font-size-300);
|
|
1781
|
+
--line-height: var(--line-height-240);
|
|
1776
1782
|
}
|
|
1777
1783
|
|
|
1778
1784
|
/* Hide content until it is initialized */
|
|
@@ -1822,29 +1828,6 @@ v.styles = $`
|
|
|
1822
1828
|
transform: translateX(0%);
|
|
1823
1829
|
}
|
|
1824
1830
|
|
|
1825
|
-
/* Mobile */
|
|
1826
|
-
@media (max-width: 767px) {
|
|
1827
|
-
:host {
|
|
1828
|
-
--side-panel-width: 100%;
|
|
1829
|
-
--side-panel-max-width: none;
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
/* Tablet */
|
|
1834
|
-
@media (min-width: 768px) and (max-width: 1024px) {
|
|
1835
|
-
:host {
|
|
1836
|
-
--side-panel-width: 375px;
|
|
1837
|
-
--side-panel-max-width: 375px;
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
@media (min-width: 1025px) {
|
|
1842
|
-
:host {
|
|
1843
|
-
--side-panel-width: 100%;
|
|
1844
|
-
--side-panel-max-width: 416px;
|
|
1845
|
-
}
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
1831
|
.header {
|
|
1849
1832
|
flex: 0 0 auto;
|
|
1850
1833
|
display: flex;
|
|
@@ -1854,9 +1837,9 @@ v.styles = $`
|
|
|
1854
1837
|
|
|
1855
1838
|
.panel-title {
|
|
1856
1839
|
font-family: var(--font-family-loccitane-serif);
|
|
1857
|
-
font-size: var(--font-size
|
|
1840
|
+
font-size: var(--font-size);
|
|
1858
1841
|
font-weight: var(--font-weight-400);
|
|
1859
|
-
line-height: var(--line-height
|
|
1842
|
+
line-height: var(--line-height);
|
|
1860
1843
|
font-style: italic;
|
|
1861
1844
|
display: -webkit-box;
|
|
1862
1845
|
-webkit-line-clamp: 2;
|
|
@@ -1899,6 +1882,31 @@ v.styles = $`
|
|
|
1899
1882
|
gap: 16px;
|
|
1900
1883
|
justify-content: flex-start;
|
|
1901
1884
|
}
|
|
1885
|
+
|
|
1886
|
+
/* Mobile */
|
|
1887
|
+
@media (max-width: 767px) {
|
|
1888
|
+
:host {
|
|
1889
|
+
--side-panel-width: 100%;
|
|
1890
|
+
--side-panel-max-width: none;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/* Tablet */
|
|
1895
|
+
@media (min-width: 768px) and (max-width: 1024px) {
|
|
1896
|
+
:host {
|
|
1897
|
+
--side-panel-width: 375px;
|
|
1898
|
+
--side-panel-max-width: 375px;
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
@media (min-width: 1025px) {
|
|
1903
|
+
:host {
|
|
1904
|
+
--side-panel-width: 100%;
|
|
1905
|
+
--side-panel-max-width: 416px;
|
|
1906
|
+
--font-size: var(--font-size-400);
|
|
1907
|
+
--line-height: var(--line-height-280);
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1902
1910
|
`;
|
|
1903
1911
|
b([
|
|
1904
1912
|
a({ type: Boolean, reflect: !0 })
|
|
@@ -1948,12 +1956,12 @@ b([
|
|
|
1948
1956
|
v = b([
|
|
1949
1957
|
L("o-side-panel")
|
|
1950
1958
|
], v);
|
|
1951
|
-
var
|
|
1952
|
-
for (var o =
|
|
1953
|
-
(
|
|
1954
|
-
return
|
|
1959
|
+
var Me = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, M = (n, t, e, i) => {
|
|
1960
|
+
for (var o = i > 1 ? void 0 : i ? Te(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1961
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1962
|
+
return i && o && Me(t, e, o), o;
|
|
1955
1963
|
};
|
|
1956
|
-
let
|
|
1964
|
+
let C = class extends m {
|
|
1957
1965
|
constructor() {
|
|
1958
1966
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
|
|
1959
1967
|
<o-icon-button
|
|
@@ -1992,14 +2000,14 @@ let A = class extends m {
|
|
|
1992
2000
|
return h`
|
|
1993
2001
|
<div class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
1994
2002
|
${this.thumbnails.map((n, t) => {
|
|
1995
|
-
const e = this.disabledIndexes.includes(t),
|
|
2003
|
+
const e = this.disabledIndexes.includes(t), i = this.activeIndex === t, o = n.type === "video";
|
|
1996
2004
|
return h`
|
|
1997
2005
|
<div class="thumb-wrapper">
|
|
1998
2006
|
<button
|
|
1999
2007
|
class="thumb"
|
|
2000
2008
|
data-index="${t}"
|
|
2001
2009
|
?disabled=${e}
|
|
2002
|
-
aria-selected=${
|
|
2010
|
+
aria-selected=${i}
|
|
2003
2011
|
tabindex="${this.focusedIndex === t ? 0 : -1}"
|
|
2004
2012
|
@click=${() => this.selectThumbnail(t)}
|
|
2005
2013
|
@keydown=${this.handleKeyDown}
|
|
@@ -2014,7 +2022,7 @@ let A = class extends m {
|
|
|
2014
2022
|
`;
|
|
2015
2023
|
}
|
|
2016
2024
|
};
|
|
2017
|
-
|
|
2025
|
+
C.styles = $`
|
|
2018
2026
|
:host {
|
|
2019
2027
|
display: flex;
|
|
2020
2028
|
gap: 5px;
|
|
@@ -2120,29 +2128,29 @@ A.styles = $`
|
|
|
2120
2128
|
`;
|
|
2121
2129
|
M([
|
|
2122
2130
|
a({ type: Array })
|
|
2123
|
-
],
|
|
2131
|
+
], C.prototype, "thumbnails", 2);
|
|
2124
2132
|
M([
|
|
2125
2133
|
a({ type: Number })
|
|
2126
|
-
],
|
|
2134
|
+
], C.prototype, "activeIndex", 2);
|
|
2127
2135
|
M([
|
|
2128
2136
|
a({ type: Array })
|
|
2129
|
-
],
|
|
2137
|
+
], C.prototype, "disabledIndexes", 2);
|
|
2130
2138
|
M([
|
|
2131
2139
|
a({ type: String })
|
|
2132
|
-
],
|
|
2140
|
+
], C.prototype, "maxWidth", 2);
|
|
2133
2141
|
M([
|
|
2134
2142
|
a({ type: Object })
|
|
2135
|
-
],
|
|
2143
|
+
], C.prototype, "swiperInstance", 2);
|
|
2136
2144
|
M([
|
|
2137
2145
|
te()
|
|
2138
|
-
],
|
|
2139
|
-
|
|
2146
|
+
], C.prototype, "focusedIndex", 2);
|
|
2147
|
+
C = M([
|
|
2140
2148
|
L("thumbnail-navigation")
|
|
2141
|
-
],
|
|
2142
|
-
var
|
|
2143
|
-
for (var o =
|
|
2144
|
-
(
|
|
2145
|
-
return
|
|
2149
|
+
], C);
|
|
2150
|
+
var De = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Bt = (n, t, e, i) => {
|
|
2151
|
+
for (var o = i > 1 ? void 0 : i ? Ue(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
2152
|
+
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
2153
|
+
return i && o && De(t, e, o), o;
|
|
2146
2154
|
};
|
|
2147
2155
|
let Q = class extends m {
|
|
2148
2156
|
constructor() {
|