@florid-kit/components 0.3.37 → 0.3.39
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/thumbnail-navigation.d.ts +3 -0
- package/index.js +46 -51
- package/index.mjs +251 -253
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
const G = globalThis, ct = G.ShadowRoot && (G.ShadyCSS === void 0 || G.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ht = Symbol(), bt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let Et = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, n) {
|
|
9
|
+
if (this._$cssResult$ = !0, n !== ht) 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 (ct && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const n = e !== void 0 && e.length === 1;
|
|
17
|
+
n && (t = bt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && bt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -23,21 +23,21 @@ let Et = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
const Bt = (s) => new Et(typeof s == "string" ? s : s + "", void 0, ht), A = (s, ...t) => {
|
|
26
|
-
const e = s.length === 1 ? s[0] : t.reduce((
|
|
26
|
+
const e = s.length === 1 ? s[0] : t.reduce((n, o, r) => n + ((i) => {
|
|
27
27
|
if (i._$cssResult$ === !0) return i.cssText;
|
|
28
28
|
if (typeof i == "number") return i;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(
|
|
30
|
+
})(o) + s[r + 1], s[0]);
|
|
31
31
|
return new Et(e, s, ht);
|
|
32
32
|
}, It = (s, t) => {
|
|
33
33
|
if (ct) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const n = document.createElement("style"), o = G.litNonce;
|
|
36
|
+
o !== void 0 && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
|
|
37
37
|
}
|
|
38
38
|
}, vt = ct ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const n of t.cssRules) e += n.cssText;
|
|
41
41
|
return Bt(e);
|
|
42
42
|
})(s) : s;
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ const Bt = (s) => new Et(typeof s == "string" ? s : s + "", void 0, ht), A = (s,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor:
|
|
48
|
+
const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Tt, getOwnPropertyNames: Mt, getOwnPropertySymbols: zt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", st = C.reactiveElementPolyfillSupport, R = (s, t) => s, X = { toAttribute(s, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
s = s ? Ut : null;
|
|
@@ -84,19 +84,19 @@ let z = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = yt) {
|
|
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
|
|
88
|
-
|
|
87
|
+
const n = Symbol(), o = this.getPropertyDescriptor(t, n, e);
|
|
88
|
+
o !== void 0 && Ht(this.prototype, t, o);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get:
|
|
91
|
+
static getPropertyDescriptor(t, e, n) {
|
|
92
|
+
const { get: o, set: r } = Tt(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(i) {
|
|
95
95
|
this[e] = i;
|
|
96
96
|
} };
|
|
97
|
-
return { get:
|
|
98
|
-
const c =
|
|
99
|
-
r == null || r.call(this, i), this.requestUpdate(t, c,
|
|
97
|
+
return { get: o, set(i) {
|
|
98
|
+
const c = o == null ? void 0 : o.call(this);
|
|
99
|
+
r == null || r.call(this, i), this.requestUpdate(t, c, n);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
@@ -110,32 +110,32 @@ let z = class extends HTMLElement {
|
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(R("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const
|
|
113
|
+
const e = this.properties, n = [...Mt(e), ...zt(e)];
|
|
114
|
+
for (const o of n) 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 [n, o] of e) this.elementProperties.set(n, o);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const
|
|
124
|
-
|
|
122
|
+
for (const [e, n] of this.elementProperties) {
|
|
123
|
+
const o = this._$Eu(e, n);
|
|
124
|
+
o !== void 0 && this._$Eh.set(o, e);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
127
127
|
}
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const
|
|
131
|
+
const n = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const o of n) e.unshift(vt(o));
|
|
133
133
|
} else t !== void 0 && e.push(vt(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const n = e.attribute;
|
|
138
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,7 +154,7 @@ let z = class extends HTMLElement {
|
|
|
154
154
|
}
|
|
155
155
|
_$E_() {
|
|
156
156
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
157
|
-
for (const
|
|
157
|
+
for (const n of e.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
@@ -164,8 +164,8 @@ let z = 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 n;
|
|
168
|
+
return (n = e.hostConnected) == null ? void 0 : n.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let z = class extends HTMLElement {
|
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var t;
|
|
175
175
|
(t = this._$EO) == null || t.forEach((e) => {
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
176
|
+
var n;
|
|
177
|
+
return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, n) {
|
|
181
|
+
this._$AK(t, n);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
184
|
var r;
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
const i = (((r =
|
|
188
|
-
this._$Em = t, i == null ? this.removeAttribute(
|
|
185
|
+
const n = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, n);
|
|
186
|
+
if (o !== void 0 && n.reflect === !0) {
|
|
187
|
+
const i = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : X).toAttribute(e, n.type);
|
|
188
|
+
this._$Em = t, i == null ? this.removeAttribute(o) : this.setAttribute(o, i), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
192
|
var r, i;
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
195
|
-
const c =
|
|
196
|
-
this._$Em =
|
|
193
|
+
const n = this.constructor, o = n._$Eh.get(t);
|
|
194
|
+
if (o !== void 0 && this._$Em !== o) {
|
|
195
|
+
const c = n.getPropertyOptions(o), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : X;
|
|
196
|
+
this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(o)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
200
|
-
var
|
|
199
|
+
requestUpdate(t, e, n) {
|
|
200
|
+
var o;
|
|
201
201
|
if (t !== void 0) {
|
|
202
202
|
const r = this.constructor, i = this[t];
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
203
|
+
if (n ?? (n = r.getPropertyOptions(t)), !((n.hasChanged ?? dt)(i, e) || n.useDefault && n.reflect && i === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(r._$Eu(t, n)))) return;
|
|
204
|
+
this.C(t, e, n);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: n, reflect: o, wrapped: r }, i) {
|
|
209
|
+
n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), r !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (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,15 +222,15 @@ let z = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var n;
|
|
226
226
|
if (!this.isUpdatePending) return;
|
|
227
227
|
if (!this.hasUpdated) {
|
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
229
|
for (const [r, i] of this._$Ep) this[r] = i;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
232
|
+
const o = this.constructor.elementProperties;
|
|
233
|
+
if (o.size > 0) for (const [r, i] of o) {
|
|
234
234
|
const { wrapped: c } = i, l = this[r];
|
|
235
235
|
c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, i, l);
|
|
236
236
|
}
|
|
@@ -238,12 +238,12 @@ let z = class extends HTMLElement {
|
|
|
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), (n = this._$EO) == null || n.forEach((o) => {
|
|
242
242
|
var r;
|
|
243
|
-
return (r =
|
|
243
|
+
return (r = o.hostUpdate) == null ? void 0 : r.call(o);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
|
-
} catch (
|
|
246
|
-
throw t = !1, this._$EM(),
|
|
245
|
+
} catch (o) {
|
|
246
|
+
throw t = !1, this._$EM(), o;
|
|
247
247
|
}
|
|
248
248
|
t && this._$AE(e);
|
|
249
249
|
}
|
|
@@ -251,9 +251,9 @@ let z = class extends HTMLElement {
|
|
|
251
251
|
}
|
|
252
252
|
_$AE(t) {
|
|
253
253
|
var e;
|
|
254
|
-
(e = this._$EO) == null || e.forEach((
|
|
255
|
-
var
|
|
256
|
-
return (
|
|
254
|
+
(e = this._$EO) == null || e.forEach((n) => {
|
|
255
|
+
var o;
|
|
256
|
+
return (o = n.hostUpdated) == null ? void 0 : o.call(n);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -282,68 +282,68 @@ z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[R("elementProper
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const F = globalThis, J = F.trustedTypes, mt = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ct = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + E, Nt = `<${Lt}>`,
|
|
286
|
-
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, k = RegExp(`>|${
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g,
|
|
288
|
-
function
|
|
285
|
+
const F = globalThis, J = F.trustedTypes, mt = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ct = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + E, Nt = `<${Lt}>`, O = document, V = () => O.createComment(""), q = (s) => s === null || typeof s != "object" && typeof s != "function", pt = Array.isArray, jt = (s) => pt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", nt = `[
|
|
286
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, k = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Rt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), d = Rt(1), H = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), B = O.createTreeWalker(O, 129);
|
|
288
|
+
function kt(s, t) {
|
|
289
289
|
if (!pt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return mt !== void 0 ? mt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const Ft = (s, t) => {
|
|
293
|
-
const e = s.length - 1,
|
|
294
|
-
let
|
|
293
|
+
const e = s.length - 1, n = [];
|
|
294
|
+
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = j;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const l = s[c];
|
|
297
|
-
let f, b, p = -1,
|
|
298
|
-
for (;
|
|
297
|
+
let f, b, p = -1, x = 0;
|
|
298
|
+
for (; x < l.length && (i.lastIndex = x, b = i.exec(l), b !== null); ) x = i.lastIndex, i === j ? b[1] === "!--" ? i = $t : b[1] !== void 0 ? i = wt : b[2] !== void 0 ? (Pt.test(b[2]) && (o = RegExp("</" + b[2], "g")), i = k) : b[3] !== void 0 && (i = k) : i === k ? b[0] === ">" ? (i = o ?? j, p = -1) : b[1] === void 0 ? p = -2 : (p = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? k : b[3] === '"' ? _t : xt) : i === _t || i === xt ? i = k : i === $t || i === wt ? i = j : (i = k, o = void 0);
|
|
299
299
|
const S = i === k && s[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
r += i === j ? l + Nt : p >= 0 ? (
|
|
300
|
+
r += i === j ? l + Nt : p >= 0 ? (n.push(f), l.slice(0, p) + Ct + l.slice(p) + E + S) : l + E + (p === -2 ? c : S);
|
|
301
301
|
}
|
|
302
|
-
return [
|
|
302
|
+
return [kt(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
304
304
|
class Z {
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
306
|
-
let
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, n) {
|
|
306
|
+
let o;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, i = 0;
|
|
309
309
|
const c = t.length - 1, l = this.parts, [f, b] = Ft(t, e);
|
|
310
|
-
if (this.el = Z.createElement(f,
|
|
310
|
+
if (this.el = Z.createElement(f, n), B.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
|
-
for (; (
|
|
315
|
-
if (
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
318
|
-
l.push({ type: 1, index: r, name: K[2], strings: S, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }),
|
|
319
|
-
} else p.startsWith(E) && (l.push({ type: 6, index: r }),
|
|
320
|
-
if (
|
|
321
|
-
const p =
|
|
322
|
-
if (
|
|
323
|
-
|
|
324
|
-
for (let S = 0; S <
|
|
325
|
-
|
|
314
|
+
for (; (o = B.nextNode()) !== null && l.length < c; ) {
|
|
315
|
+
if (o.nodeType === 1) {
|
|
316
|
+
if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(Ct)) {
|
|
317
|
+
const x = b[i++], S = o.getAttribute(p).split(E), K = /([.?@])?(.*)/.exec(x);
|
|
318
|
+
l.push({ type: 1, index: r, name: K[2], strings: S, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), o.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(E) && (l.push({ type: 6, index: r }), o.removeAttribute(p));
|
|
320
|
+
if (Pt.test(o.tagName)) {
|
|
321
|
+
const p = o.textContent.split(E), x = p.length - 1;
|
|
322
|
+
if (x > 0) {
|
|
323
|
+
o.textContent = J ? J.emptyScript : "";
|
|
324
|
+
for (let S = 0; S < x; S++) o.append(p[S], V()), B.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
|
+
o.append(p[x], V());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (
|
|
328
|
+
} else if (o.nodeType === 8) if (o.data === Lt) l.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p =
|
|
331
|
+
for (; (p = o.data.indexOf(E, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += E.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const n = O.createElement("template");
|
|
338
|
+
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function D(s, t, e = s,
|
|
341
|
+
function D(s, t, e = s, n) {
|
|
342
342
|
var i, c;
|
|
343
|
-
if (t ===
|
|
344
|
-
let
|
|
343
|
+
if (t === H) return t;
|
|
344
|
+
let o = n !== void 0 ? (i = e._$Co) == null ? void 0 : i[n] : e._$Cl;
|
|
345
345
|
const r = q(t) ? void 0 : t._$litDirective$;
|
|
346
|
-
return (
|
|
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(s), o._$AT(s, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = o : e._$Cl = o), o !== void 0 && (t = D(s, o._$AS(s, t.values), o, n)), t;
|
|
347
347
|
}
|
|
348
348
|
class Vt {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,21 +356,21 @@ class Vt {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
360
|
-
|
|
361
|
-
let r =
|
|
359
|
+
const { el: { content: e }, parts: n } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
|
360
|
+
B.currentNode = o;
|
|
361
|
+
let r = B.nextNode(), i = 0, c = 0, l = n[0];
|
|
362
362
|
for (; l !== void 0; ) {
|
|
363
363
|
if (i === l.index) {
|
|
364
364
|
let f;
|
|
365
|
-
l.type === 2 ? f = new W(r, r.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (f = new Kt(r, this, t)), this._$AV.push(f), l =
|
|
365
|
+
l.type === 2 ? f = new W(r, r.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (f = new Kt(r, this, t)), this._$AV.push(f), l = n[++c];
|
|
366
366
|
}
|
|
367
|
-
i !== (l == null ? void 0 : l.index) && (r =
|
|
367
|
+
i !== (l == null ? void 0 : l.index) && (r = B.nextNode(), i++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return B.currentNode = O, o;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
class W {
|
|
@@ -378,8 +378,8 @@ class W {
|
|
|
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 = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
|
381
|
+
constructor(t, e, n, o) {
|
|
382
|
+
this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, 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 W {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = D(this, t, e), q(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !==
|
|
396
|
+
t = D(this, t, e), q(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : jt(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,14 +402,14 @@ class W {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !== h && q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
405
|
+
this._$AH !== h && q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
408
|
var r;
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((r = this._$AH) == null ? void 0 : r._$AD) ===
|
|
409
|
+
const { values: e, _$litType$: n } = t, o = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Z.createElement(kt(n.h, n.h[0]), this.options)), n);
|
|
410
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const i = new Vt(
|
|
412
|
+
const i = new Vt(o, this), c = i.u(this.options);
|
|
413
413
|
i.p(e), this.T(c), this._$AH = i;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -420,15 +420,15 @@ class W {
|
|
|
420
420
|
k(t) {
|
|
421
421
|
pt(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const r of t)
|
|
425
|
-
|
|
423
|
+
let n, o = 0;
|
|
424
|
+
for (const r of t) o === e.length ? e.push(n = new W(this.O(V()), this.O(V()), this, this.options)) : n = e[o], n._$AI(r), o++;
|
|
425
|
+
o < e.length && (this._$AR(n && n._$AB.nextSibling, o), e.length = o);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
430
|
-
const
|
|
431
|
-
t.remove(), t =
|
|
428
|
+
var n;
|
|
429
|
+
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
|
+
const o = t.nextSibling;
|
|
431
|
+
t.remove(), t = o;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
setConnected(t) {
|
|
@@ -443,19 +443,19 @@ class Y {
|
|
|
443
443
|
get _$AU() {
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
|
-
constructor(t, e,
|
|
447
|
-
this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
446
|
+
constructor(t, e, n, o, r) {
|
|
447
|
+
this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = h;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
449
|
+
_$AI(t, e = this, n, o) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let i = !1;
|
|
452
|
-
if (r === void 0) t = D(this, t, e, 0), i = !q(t) || t !== this._$AH && t !==
|
|
452
|
+
if (r === void 0) t = D(this, t, e, 0), i = !q(t) || t !== this._$AH && t !== H, i && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
455
|
let l, f;
|
|
456
|
-
for (t = r[0], l = 0; l < r.length - 1; l++) f = D(this, c[
|
|
456
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) f = D(this, c[n + l], e, l), f === H && (f = this._$AH[l]), i || (i = !q(f) || f !== this._$AH[l]), f === h ? t = h : t !== h && (t += (f ?? "") + r[l + 1]), this._$AH[l] = f;
|
|
457
457
|
}
|
|
458
|
-
i && !
|
|
458
|
+
i && !o && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
461
|
t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -478,13 +478,13 @@ class Zt extends Y {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class Wt extends Y {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, n, o, r) {
|
|
482
|
+
super(t, e, n, o, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t = D(this, t, e, 0) ?? h) ===
|
|
486
|
-
const
|
|
487
|
-
|
|
485
|
+
if ((t = D(this, t, e, 0) ?? h) === H) return;
|
|
486
|
+
const n = this._$AH, o = t === h && n !== h || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== h && (n === h || o);
|
|
487
|
+
o && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -492,8 +492,8 @@ class Wt extends Y {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class Kt {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, n) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -502,23 +502,23 @@ class Kt {
|
|
|
502
502
|
D(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
505
|
+
const ot = F.litHtmlPolyfillSupport;
|
|
506
|
+
ot == null || ot(Z, W), (F.litHtmlVersions ?? (F.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Gt = (s, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let
|
|
510
|
-
if (
|
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let o = n._$litPart$;
|
|
510
|
+
if (o === void 0) {
|
|
511
511
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
|
|
512
|
+
n._$litPart$ = o = new W(t.insertBefore(V(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
|
-
return
|
|
514
|
+
return o._$AI(s), o;
|
|
515
515
|
};
|
|
516
516
|
/**
|
|
517
517
|
* @license
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
521
|
+
const I = globalThis;
|
|
522
522
|
let m = class extends z {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -541,20 +541,20 @@ let m = class extends z {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return H;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var St;
|
|
548
|
-
m._$litElement$ = !0, m.finalized = !0, (St =
|
|
549
|
-
const it =
|
|
548
|
+
m._$litElement$ = !0, m.finalized = !0, (St = I.litElementHydrateSupport) == null || St.call(I, { LitElement: m });
|
|
549
|
+
const it = I.litElementPolyfillSupport;
|
|
550
550
|
it == null || it({ LitElement: m });
|
|
551
|
-
(
|
|
551
|
+
(I.litElementVersions ?? (I.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
555
555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
556
|
*/
|
|
557
|
-
const
|
|
557
|
+
const T = (s) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(s, t);
|
|
560
560
|
}) : customElements.define(s, t);
|
|
@@ -565,9 +565,9 @@ const H = (s) => (t, e) => {
|
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
567
|
const Xt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: dt }, Jt = (s = Xt, t, e) => {
|
|
568
|
-
const { kind:
|
|
569
|
-
let r = globalThis.litPropertyMetadata.get(
|
|
570
|
-
if (r === void 0 && globalThis.litPropertyMetadata.set(
|
|
568
|
+
const { kind: n, metadata: o } = e;
|
|
569
|
+
let r = globalThis.litPropertyMetadata.get(o);
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), n === "setter" && ((s = Object.create(s)).wrapped = !0), r.set(e.name, s), n === "accessor") {
|
|
571
571
|
const { name: i } = e;
|
|
572
572
|
return { set(c) {
|
|
573
573
|
const l = t.get.call(this);
|
|
@@ -576,19 +576,19 @@ const Xt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged:
|
|
|
576
576
|
return c !== void 0 && this.C(i, void 0, s, c), c;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
579
|
+
if (n === "setter") {
|
|
580
580
|
const { name: i } = e;
|
|
581
581
|
return function(c) {
|
|
582
582
|
const l = this[i];
|
|
583
583
|
t.call(this, c), this.requestUpdate(i, l, s);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + n);
|
|
587
587
|
};
|
|
588
588
|
function a(s) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Jt(s, t, e) : ((
|
|
590
|
-
const i =
|
|
591
|
-
return
|
|
589
|
+
return (t, e) => typeof e == "object" ? Jt(s, t, e) : ((n, o, r) => {
|
|
590
|
+
const i = o.hasOwnProperty(r);
|
|
591
|
+
return o.constructor.createProperty(r, n), i ? Object.getOwnPropertyDescriptor(o, r) : void 0;
|
|
592
592
|
})(s, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -632,12 +632,12 @@ function te(s) {
|
|
|
632
632
|
function ee(s) {
|
|
633
633
|
s.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
|
-
e.addEventListener("click", async (
|
|
636
|
-
const { type:
|
|
637
|
-
if (!(!i ||
|
|
635
|
+
e.addEventListener("click", async (n) => {
|
|
636
|
+
const { type: o, [ut]: r } = e, { form: i } = r;
|
|
637
|
+
if (!(!i || o === "button") && (await new Promise((c) => {
|
|
638
638
|
setTimeout(c);
|
|
639
|
-
}), !
|
|
640
|
-
if (
|
|
639
|
+
}), !n.defaultPrevented)) {
|
|
640
|
+
if (o === "reset") {
|
|
641
641
|
i.reset();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
@@ -661,15 +661,15 @@ function ee(s) {
|
|
|
661
661
|
* Copyright 2017 Google LLC
|
|
662
662
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
663
663
|
*/
|
|
664
|
-
const se = { CHILD: 2 },
|
|
665
|
-
class
|
|
664
|
+
const se = { CHILD: 2 }, ne = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
665
|
+
class oe {
|
|
666
666
|
constructor(t) {
|
|
667
667
|
}
|
|
668
668
|
get _$AU() {
|
|
669
669
|
return this._$AM._$AU;
|
|
670
670
|
}
|
|
671
|
-
_$AT(t, e,
|
|
672
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
671
|
+
_$AT(t, e, n) {
|
|
672
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
|
673
673
|
}
|
|
674
674
|
_$AS(t, e) {
|
|
675
675
|
return this.update(t, e);
|
|
@@ -683,13 +683,13 @@ class ne {
|
|
|
683
683
|
* Copyright 2017 Google LLC
|
|
684
684
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
685
685
|
*/
|
|
686
|
-
class at extends
|
|
686
|
+
class at extends oe {
|
|
687
687
|
constructor(t) {
|
|
688
688
|
if (super(t), this.it = h, t.type !== se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
689
689
|
}
|
|
690
690
|
render(t) {
|
|
691
691
|
if (t === h || t == null) return this._t = void 0, this.it = t;
|
|
692
|
-
if (t ===
|
|
692
|
+
if (t === H) return t;
|
|
693
693
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
694
694
|
if (t === this.it) return this._t;
|
|
695
695
|
this.it = t;
|
|
@@ -706,7 +706,7 @@ at.directiveName = "unsafeHTML", at.resultType = 1;
|
|
|
706
706
|
class lt extends at {
|
|
707
707
|
}
|
|
708
708
|
lt.directiveName = "unsafeSVG", lt.resultType = 2;
|
|
709
|
-
const Q =
|
|
709
|
+
const Q = ne(lt), ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
710
710
|
<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"/>
|
|
711
711
|
</svg>
|
|
712
712
|
`, re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -774,10 +774,10 @@ const Q = oe(lt), ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
|
|
|
774
774
|
cross: fe,
|
|
775
775
|
search: be
|
|
776
776
|
};
|
|
777
|
-
var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, L = (s, t, e,
|
|
778
|
-
for (var
|
|
779
|
-
(i = s[r]) && (
|
|
780
|
-
return
|
|
777
|
+
var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, L = (s, t, e, n) => {
|
|
778
|
+
for (var o = n > 1 ? void 0 : n ? me(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
779
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
780
|
+
return n && o && ye(t, e, o), o;
|
|
781
781
|
};
|
|
782
782
|
let $ = class extends m {
|
|
783
783
|
constructor() {
|
|
@@ -989,12 +989,12 @@ L([
|
|
|
989
989
|
a({ type: Boolean, reflect: !0 })
|
|
990
990
|
], $.prototype, "disabled", 2);
|
|
991
991
|
$ = L([
|
|
992
|
-
|
|
992
|
+
T("o-icon-button")
|
|
993
993
|
], $);
|
|
994
|
-
var $e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, v = (s, t, e,
|
|
995
|
-
for (var
|
|
996
|
-
(i = s[r]) && (
|
|
997
|
-
return
|
|
994
|
+
var $e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, v = (s, t, e, n) => {
|
|
995
|
+
for (var o = n > 1 ? void 0 : n ? we(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
996
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
997
|
+
return n && o && $e(t, e, o), o;
|
|
998
998
|
};
|
|
999
999
|
const xe = te(m);
|
|
1000
1000
|
let u = class extends xe {
|
|
@@ -1238,12 +1238,12 @@ v([
|
|
|
1238
1238
|
a({ type: String })
|
|
1239
1239
|
], u.prototype, "target", 2);
|
|
1240
1240
|
u = v([
|
|
1241
|
-
|
|
1241
|
+
T("o-button")
|
|
1242
1242
|
], u);
|
|
1243
|
-
var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, tt = (s, t, e,
|
|
1244
|
-
for (var
|
|
1245
|
-
(i = s[r]) && (
|
|
1246
|
-
return
|
|
1243
|
+
var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, tt = (s, t, e, n) => {
|
|
1244
|
+
for (var o = n > 1 ? void 0 : n ? Ae(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
1245
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
1246
|
+
return n && o && _e(t, e, o), o;
|
|
1247
1247
|
};
|
|
1248
1248
|
let U = class extends m {
|
|
1249
1249
|
constructor() {
|
|
@@ -1356,14 +1356,14 @@ tt([
|
|
|
1356
1356
|
a({ type: String, reflect: !0 })
|
|
1357
1357
|
], U.prototype, "label", 2);
|
|
1358
1358
|
U = tt([
|
|
1359
|
-
|
|
1359
|
+
T("o-wishlist-button")
|
|
1360
1360
|
], U);
|
|
1361
|
-
var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, M = (s, t, e,
|
|
1362
|
-
for (var
|
|
1363
|
-
(i = s[r]) && (
|
|
1364
|
-
return
|
|
1361
|
+
var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, M = (s, t, e, n) => {
|
|
1362
|
+
for (var o = n > 1 ? void 0 : n ? Ee(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
1363
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
1364
|
+
return n && o && Se(t, e, o), o;
|
|
1365
1365
|
};
|
|
1366
|
-
let
|
|
1366
|
+
let _ = class extends m {
|
|
1367
1367
|
constructor() {
|
|
1368
1368
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1369
1369
|
}
|
|
@@ -1393,7 +1393,7 @@ let x = class extends m {
|
|
|
1393
1393
|
`;
|
|
1394
1394
|
}
|
|
1395
1395
|
};
|
|
1396
|
-
|
|
1396
|
+
_.styles = A`
|
|
1397
1397
|
:host([template="standard"]) a {
|
|
1398
1398
|
color: var(--color-content-action-secondary);
|
|
1399
1399
|
font-size: var(--font-size-200);
|
|
@@ -1483,29 +1483,29 @@ x.styles = A`
|
|
|
1483
1483
|
`;
|
|
1484
1484
|
M([
|
|
1485
1485
|
a({ type: String })
|
|
1486
|
-
],
|
|
1486
|
+
], _.prototype, "href", 2);
|
|
1487
1487
|
M([
|
|
1488
1488
|
a({ type: String })
|
|
1489
|
-
],
|
|
1489
|
+
], _.prototype, "target", 2);
|
|
1490
1490
|
M([
|
|
1491
1491
|
a({ type: String, reflect: !0 })
|
|
1492
|
-
],
|
|
1492
|
+
], _.prototype, "template", 2);
|
|
1493
1493
|
M([
|
|
1494
1494
|
a({ type: Boolean, reflect: !0 })
|
|
1495
|
-
],
|
|
1495
|
+
], _.prototype, "inverse", 2);
|
|
1496
1496
|
M([
|
|
1497
1497
|
a({ type: Boolean, reflect: !0 })
|
|
1498
|
-
],
|
|
1498
|
+
], _.prototype, "endIcon", 2);
|
|
1499
1499
|
M([
|
|
1500
1500
|
a({ type: Boolean, reflect: !0 })
|
|
1501
|
-
],
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
],
|
|
1505
|
-
var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, et = (s, t, e,
|
|
1506
|
-
for (var
|
|
1507
|
-
(i = s[r]) && (
|
|
1508
|
-
return
|
|
1501
|
+
], _.prototype, "reverseEndIcon", 2);
|
|
1502
|
+
_ = M([
|
|
1503
|
+
T("o-link")
|
|
1504
|
+
], _);
|
|
1505
|
+
var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, et = (s, t, e, n) => {
|
|
1506
|
+
for (var o = n > 1 ? void 0 : n ? Le(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
1507
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
1508
|
+
return n && o && Ce(t, e, o), o;
|
|
1509
1509
|
};
|
|
1510
1510
|
let N = class extends m {
|
|
1511
1511
|
constructor() {
|
|
@@ -1515,8 +1515,8 @@ let N = class extends m {
|
|
|
1515
1515
|
const s = [];
|
|
1516
1516
|
for (let t = 0; t < 5; t++) {
|
|
1517
1517
|
const e = this.rating - t;
|
|
1518
|
-
let
|
|
1519
|
-
e >= 1 ?
|
|
1518
|
+
let n;
|
|
1519
|
+
e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, s.push(`star-${n}`);
|
|
1520
1520
|
}
|
|
1521
1521
|
return s;
|
|
1522
1522
|
}
|
|
@@ -1578,12 +1578,12 @@ et([
|
|
|
1578
1578
|
a({ type: String })
|
|
1579
1579
|
], N.prototype, "href", 2);
|
|
1580
1580
|
N = et([
|
|
1581
|
-
|
|
1581
|
+
T("o-rating")
|
|
1582
1582
|
], N);
|
|
1583
|
-
var
|
|
1584
|
-
for (var
|
|
1585
|
-
(i = s[r]) && (
|
|
1586
|
-
return
|
|
1583
|
+
var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (s, t, e, n) => {
|
|
1584
|
+
for (var o = n > 1 ? void 0 : n ? ke(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
1585
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
1586
|
+
return n && o && Pe(t, e, o), o;
|
|
1587
1587
|
};
|
|
1588
1588
|
let g = class extends m {
|
|
1589
1589
|
constructor() {
|
|
@@ -1600,8 +1600,8 @@ let g = class extends m {
|
|
|
1600
1600
|
trapFocus(s) {
|
|
1601
1601
|
const t = this.getFocusableElements();
|
|
1602
1602
|
if (t.length === 0) return;
|
|
1603
|
-
const e = t[0],
|
|
1604
|
-
s.shiftKey && document.activeElement === e ? (s.preventDefault(),
|
|
1603
|
+
const e = t[0], n = t[t.length - 1];
|
|
1604
|
+
s.shiftKey && document.activeElement === e ? (s.preventDefault(), n.focus()) : !s.shiftKey && document.activeElement === n && (s.preventDefault(), e.focus());
|
|
1605
1605
|
}
|
|
1606
1606
|
getFocusableElements() {
|
|
1607
1607
|
const s = this.renderRoot.querySelector(".panel");
|
|
@@ -1641,10 +1641,10 @@ let g = class extends m {
|
|
|
1641
1641
|
<o-icon-button icon="cross" size="medium" class="close-btn" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
1642
1642
|
|
|
1643
1643
|
${this.showHeader ? d`
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1644
|
+
<div class="header">
|
|
1645
|
+
<span id="panel-title" class="panel-title">${this.headerTitle}</span>
|
|
1646
|
+
</div>
|
|
1647
|
+
` : null}
|
|
1648
1648
|
|
|
1649
1649
|
<div class="content">
|
|
1650
1650
|
<slot></slot>
|
|
@@ -1653,24 +1653,24 @@ let g = class extends m {
|
|
|
1653
1653
|
${this.showFooter ? d`
|
|
1654
1654
|
<div class="footer">
|
|
1655
1655
|
${this.firstButtonVariant && this.firstButtonLabel ? d`
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1656
|
+
<o-button
|
|
1657
|
+
variant="${this.firstButtonVariant}"
|
|
1658
|
+
@click=${this.handleFirstClick}
|
|
1659
|
+
>
|
|
1660
|
+
${this.firstButtonLabel}
|
|
1661
|
+
</o-button>
|
|
1662
|
+
` : null}
|
|
1663
1663
|
|
|
1664
1664
|
${this.secondaryButtonVariant && this.secondaryButtonLabel ? d`
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1665
|
+
<o-button
|
|
1666
|
+
variant="${this.secondaryButtonVariant}"
|
|
1667
|
+
@click=${this.handleSecondaryClick}
|
|
1668
|
+
>
|
|
1669
|
+
${this.secondaryButtonLabel}
|
|
1670
|
+
</o-button>
|
|
1671
|
+
` : null}
|
|
1672
1672
|
</div>
|
|
1673
|
-
|
|
1673
|
+
` : null}
|
|
1674
1674
|
</div>
|
|
1675
1675
|
`;
|
|
1676
1676
|
}
|
|
@@ -1754,13 +1754,8 @@ g.styles = A`
|
|
|
1754
1754
|
|
|
1755
1755
|
.close-btn {
|
|
1756
1756
|
position: absolute;
|
|
1757
|
-
top:
|
|
1758
|
-
right:
|
|
1759
|
-
background: none;
|
|
1760
|
-
border: none;
|
|
1761
|
-
font-size: 1.5rem;
|
|
1762
|
-
cursor: pointer;
|
|
1763
|
-
color: inherit;
|
|
1757
|
+
top: 11px;
|
|
1758
|
+
right: 5px;
|
|
1764
1759
|
}
|
|
1765
1760
|
|
|
1766
1761
|
.close-btn:focus {
|
|
@@ -1811,14 +1806,14 @@ y([
|
|
|
1811
1806
|
a({ type: Boolean, reflect: !0 })
|
|
1812
1807
|
], g.prototype, "disablePortal", 2);
|
|
1813
1808
|
g = y([
|
|
1814
|
-
|
|
1809
|
+
T("o-side-panel")
|
|
1815
1810
|
], g);
|
|
1816
|
-
var Be = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor,
|
|
1817
|
-
for (var
|
|
1818
|
-
(i = s[r]) && (
|
|
1819
|
-
return
|
|
1811
|
+
var Be = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, P = (s, t, e, n) => {
|
|
1812
|
+
for (var o = n > 1 ? void 0 : n ? Ie(t, e) : t, r = s.length - 1, i; r >= 0; r--)
|
|
1813
|
+
(i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
|
|
1814
|
+
return n && o && Be(t, e, o), o;
|
|
1820
1815
|
};
|
|
1821
|
-
let
|
|
1816
|
+
let w = class extends m {
|
|
1822
1817
|
constructor() {
|
|
1823
1818
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0;
|
|
1824
1819
|
}
|
|
@@ -1842,27 +1837,27 @@ let _ = class extends m {
|
|
|
1842
1837
|
t == null || t.focus();
|
|
1843
1838
|
}
|
|
1844
1839
|
selectThumbnail(s) {
|
|
1845
|
-
this.disabledIndexes.includes(s) || (this.activeIndex = s, this.dispatchEvent(new CustomEvent("thumbnail-select", { detail: { index: s } })));
|
|
1840
|
+
this.disabledIndexes.includes(s) || (this.activeIndex = s, this.swiperInstance && typeof this.swiperInstance.slideTo == "function" && this.swiperInstance.slideTo(s), this.dispatchEvent(new CustomEvent("thumbnail-select", { detail: { index: s } })));
|
|
1846
1841
|
}
|
|
1847
1842
|
render() {
|
|
1848
1843
|
return d`
|
|
1849
1844
|
<div class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
1850
1845
|
${this.thumbnails.map((s, t) => {
|
|
1851
|
-
const e = this.disabledIndexes.includes(t),
|
|
1846
|
+
const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, o = s.type === "video";
|
|
1852
1847
|
return d`
|
|
1853
1848
|
<div class="thumb-wrapper">
|
|
1854
1849
|
<button
|
|
1855
1850
|
class="thumb"
|
|
1856
1851
|
data-index="${t}"
|
|
1857
1852
|
?disabled=${e}
|
|
1858
|
-
aria-selected=${
|
|
1853
|
+
aria-selected=${n}
|
|
1859
1854
|
tabindex="${this.focusedIndex === t ? 0 : -1}"
|
|
1860
1855
|
@click=${() => this.selectThumbnail(t)}
|
|
1861
1856
|
@keydown=${this.handleKeyDown}
|
|
1862
1857
|
>
|
|
1863
1858
|
<img src="${s.src}" />
|
|
1864
1859
|
</button>
|
|
1865
|
-
${
|
|
1860
|
+
${o && this.playIcon ? d`<div class="play-icon-wrapper">${this.playIcon}</div>` : null}
|
|
1866
1861
|
</div>
|
|
1867
1862
|
`;
|
|
1868
1863
|
})}
|
|
@@ -1870,7 +1865,7 @@ let _ = class extends m {
|
|
|
1870
1865
|
`;
|
|
1871
1866
|
}
|
|
1872
1867
|
};
|
|
1873
|
-
|
|
1868
|
+
w.styles = A`
|
|
1874
1869
|
:host {
|
|
1875
1870
|
display: flex;
|
|
1876
1871
|
gap: 8px;
|
|
@@ -1943,24 +1938,27 @@ _.styles = A`
|
|
|
1943
1938
|
border-radius: 3px;
|
|
1944
1939
|
}
|
|
1945
1940
|
`;
|
|
1946
|
-
|
|
1941
|
+
P([
|
|
1947
1942
|
a({ type: Array })
|
|
1948
|
-
],
|
|
1949
|
-
|
|
1943
|
+
], w.prototype, "thumbnails", 2);
|
|
1944
|
+
P([
|
|
1950
1945
|
a({ type: Number })
|
|
1951
|
-
],
|
|
1952
|
-
|
|
1946
|
+
], w.prototype, "activeIndex", 2);
|
|
1947
|
+
P([
|
|
1953
1948
|
a({ type: Array })
|
|
1954
|
-
],
|
|
1955
|
-
|
|
1949
|
+
], w.prototype, "disabledIndexes", 2);
|
|
1950
|
+
P([
|
|
1956
1951
|
a({ type: Object })
|
|
1957
|
-
],
|
|
1958
|
-
|
|
1952
|
+
], w.prototype, "playIcon", 2);
|
|
1953
|
+
P([
|
|
1959
1954
|
a({ type: String })
|
|
1960
|
-
],
|
|
1961
|
-
|
|
1955
|
+
], w.prototype, "maxWidth", 2);
|
|
1956
|
+
P([
|
|
1957
|
+
a({ type: Object })
|
|
1958
|
+
], w.prototype, "swiperInstance", 2);
|
|
1959
|
+
P([
|
|
1962
1960
|
Qt()
|
|
1963
|
-
],
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
],
|
|
1961
|
+
], w.prototype, "focusedIndex", 2);
|
|
1962
|
+
w = P([
|
|
1963
|
+
T("thumbnail-navigation")
|
|
1964
|
+
], w);
|